Lines Matching refs:hwqcb
142 bzero(qcb->hwqcb, sizeof(struct ida_hdr) + sizeof(struct ida_req));
158 idahwqcbvtop(struct ida_softc *ida, struct ida_hardware_qcb *hwqcb)
161 ((bus_addr_t)hwqcb - (bus_addr_t)ida->hwqcbs));
167 struct ida_hardware_qcb *hwqcb;
169 hwqcb = (struct ida_hardware_qcb *)
171 return (hwqcb->qcb);
189 qcb->hwqcb = &ida->hwqcbs[i];
190 qcb->hwqcb->qcb = qcb;
191 qcb->hwqcb_busaddr = idahwqcbvtop(ida, qcb->hwqcb);
377 struct ida_hardware_qcb *hwqcb;
393 hwqcb = qcb->hwqcb;
394 hwqcb->hdr.size = htole16((sizeof(struct ida_req) +
398 hwqcb->seg[i].addr = htole32(segs[i].ds_addr);
399 hwqcb->seg[i].length = htole32(segs[i].ds_len);
401 hwqcb->req.sgcount = nsegments;
449 struct ida_hardware_qcb *hwqcb;
463 hwqcb = qcb->hwqcb;
464 hwqcb->hdr.drive = drive;
465 hwqcb->req.blkno = htole32(pblkno);
466 hwqcb->req.bcount = htole16(howmany(datasize, DEV_BSIZE));
467 hwqcb->req.command = command;
497 struct ida_hardware_qcb *hwqcb;
519 hwqcb = qcb->hwqcb;
521 hwqcb->hdr.drive = drv->drive;
522 hwqcb->req.blkno = bp->bio_pblkno;
523 hwqcb->req.bcount = howmany(bp->bio_bcount, DEV_BSIZE);
524 hwqcb->req.command = bp->bio_cmd == BIO_READ ? CMD_READ : CMD_WRITE;
618 if ((completed & 3) && (qcb->hwqcb->req.error == 0))
619 qcb->hwqcb->req.error = CMD_REJECTED;
662 if (qcb->hwqcb->req.error & SOFT_ERROR) {
670 if (qcb->hwqcb->req.error & HARD_ERROR) {
679 if (qcb->hwqcb->req.error & CMD_REJECTED) {