Lines Matching refs:hwqcb
140 bzero(qcb->hwqcb, sizeof(struct ida_hdr) + sizeof(struct ida_req));
156 idahwqcbvtop(struct ida_softc *ida, struct ida_hardware_qcb *hwqcb)
159 ((bus_addr_t)hwqcb - (bus_addr_t)ida->hwqcbs));
165 struct ida_hardware_qcb *hwqcb;
167 hwqcb = (struct ida_hardware_qcb *)
169 return (hwqcb->qcb);
187 qcb->hwqcb = &ida->hwqcbs[i];
188 qcb->hwqcb->qcb = qcb;
189 qcb->hwqcb_busaddr = idahwqcbvtop(ida, qcb->hwqcb);
375 struct ida_hardware_qcb *hwqcb;
391 hwqcb = qcb->hwqcb;
392 hwqcb->hdr.size = htole16((sizeof(struct ida_req) +
396 hwqcb->seg[i].addr = htole32(segs[i].ds_addr);
397 hwqcb->seg[i].length = htole32(segs[i].ds_len);
399 hwqcb->req.sgcount = nsegments;
447 struct ida_hardware_qcb *hwqcb;
461 hwqcb = qcb->hwqcb;
462 hwqcb->hdr.drive = drive;
463 hwqcb->req.blkno = htole32(pblkno);
464 hwqcb->req.bcount = htole16(howmany(datasize, DEV_BSIZE));
465 hwqcb->req.command = command;
495 struct ida_hardware_qcb *hwqcb;
517 hwqcb = qcb->hwqcb;
519 hwqcb->hdr.drive = drv->drive;
520 hwqcb->req.blkno = bp->bio_pblkno;
521 hwqcb->req.bcount = howmany(bp->bio_bcount, DEV_BSIZE);
522 hwqcb->req.command = bp->bio_cmd == BIO_READ ? CMD_READ : CMD_WRITE;
616 if ((completed & 3) && (qcb->hwqcb->req.error == 0))
617 qcb->hwqcb->req.error = CMD_REJECTED;
660 if (qcb->hwqcb->req.error & SOFT_ERROR) {
668 if (qcb->hwqcb->req.error & HARD_ERROR) {
677 if (qcb->hwqcb->req.error & CMD_REJECTED) {