Lines Matching defs:ld
33 * 3ware "Escalade" RAID controller front-end for ld(4) driver.
96 struct ld_softc *ld = &sc->sc_ld;
104 ld->sc_dv = self;
109 ld->sc_flags = LDF_ENABLED;
110 ld->sc_maxxfer = twe_get_maxxfer(twe_get_maxsegs());
111 ld->sc_secperunit = td->td_size;
112 ld->sc_secsize = TWE_SECTOR_SIZE;
113 ld->sc_maxqueuecnt = twe->sc_openings;
114 ld->sc_start = ld_twe_start;
115 ld->sc_dump = ld_twe_dump;
116 ld->sc_ioctl = ld_twe_ioctl;
154 ldattach(ld, BUFQ_DISK_DEFAULT_STRAT);
161 struct ld_softc *ld = &sc->sc_ld;
164 if ((rv = ldbegindetach(ld, flags)) != 0)
166 ldenddetach(ld);
229 ld_twe_start(struct ld_softc *ld, struct buf *bp)
232 return (ld_twe_dobio((struct ld_twe_softc *)ld, bp->b_data,
262 ld_twe_dump(struct ld_softc *ld, void *data, daddr_t blkno, int blkcnt)
269 return (ld_twe_dobio((struct ld_twe_softc *)ld, data,
270 blkcnt * ld->sc_secsize, blkno, 1, NULL));
274 ld_twe_flush(struct ld_softc *ld, bool poll)
276 struct ld_twe_softc *sc = (void *) ld;
277 struct twe_softc *twe = device_private(device_parent(ld->sc_dv));
307 ccb->ccb_tx.tx_dv = ld->sc_dv;
324 ld_twe_ioctl(struct ld_softc *ld, u_long cmd, void *addr, int32_t flag, bool poll)
330 error = ld_twe_flush(ld, poll);
345 struct ld_softc *ld = &sc->sc_ld;
347 ldadjqparam(ld, openings);
350 MODULE(MODULE_CLASS_DRIVER, ld_twe, "ld,twe");