Lines Matching defs:ld
33 * AMI RAID controller front-end for ld(4) driver.
83 struct ld_softc *ld = &sc->sc_ld;
88 ld->sc_dv = self;
91 ld->sc_maxxfer = amr_max_xfer;
92 ld->sc_maxqueuecnt = (amr->amr_maxqueuecnt - AMR_NCCB_RESV)
94 ld->sc_secperunit = amr->amr_drive[sc->sc_hwunit].al_size;
95 ld->sc_secsize = AMR_SECTOR_SIZE;
96 ld->sc_start = ld_amr_start;
97 ld->sc_dump = ld_amr_dump;
99 if (ld->sc_maxqueuecnt > AMR_MAX_CMDS_PU)
100 ld->sc_maxqueuecnt = AMR_MAX_CMDS_PU;
103 * Print status information and attach to the ld driver proper.
108 ld->sc_flags = LDF_ENABLED;
113 ldattach(ld, BUFQ_DISK_DEFAULT_STRAT);
166 ld_amr_start(struct ld_softc *ld, struct buf *bp)
168 return (ld_amr_dobio((struct ld_amr_softc *)ld, bp->b_data,
198 ld_amr_dump(struct ld_softc *ld, void *data, daddr_t blkno, int blkcnt)
206 sc = (struct ld_amr_softc *)ld;
208 return (ld_amr_dobio(sc, data, blkcnt * ld->sc_secsize, blkno, 1,
212 MODULE(MODULE_CLASS_DRIVER, ld_amr, "ld,amr");