Home | History | Annotate | Download | only in ata

Lines Matching refs:c_bio

695 	KASSERT(bp == xfer->c_bio.bp || xfer->c_bio.bp == NULL);
702 memset(&xfer->c_bio, 0, sizeof(xfer->c_bio));
705 xfer->c_bio.blkno = bp->b_rawblkno;
706 xfer->c_bio.bcount = bp->b_bcount;
707 xfer->c_bio.databuf = bp->b_data;
708 xfer->c_bio.blkdone = 0;
709 xfer->c_bio.bp = bp;
713 KASSERT(xfer->c_skip < xfer->c_bio.bcount);
715 xfer->c_bio.bcount -= xfer->c_skip;
716 xfer->c_bio.blkno += xfer->c_skip / secsize;
730 xfer->c_bio.blkno = 7777777 + wd->sc_capacity;
744 xfer->c_bio.flags = ATA_SINGLE;
746 xfer->c_bio.flags = 0;
753 (((xfer->c_bio.blkno + xfer->c_bio.bcount / secsize) >
755 ((xfer->c_bio.bcount / secsize) > 128)))
756 xfer->c_bio.flags |= ATA_LBA48;
769 xfer->c_bio.flags |= ATA_LBA48;
774 xfer->c_bio.flags |= ATA_PRIO_HIGH;
778 xfer->c_bio.flags |= ATA_LBA;
780 xfer->c_bio.flags |= ATA_READ;
789 xfer->c_bio.flags |= ATA_LBA48;
791 xfer->c_bio.flags |= ATA_FUA;
909 bp = xfer->c_bio.bp;
912 bp->b_resid = xfer->c_bio.bcount;
913 switch (xfer->c_bio.error) {
931 if (xfer->c_bio.r_error != 0 &&
932 (xfer->c_bio.r_error & ~(WDCE_MC | WDCE_MCR)) == 0)
948 xfer->c_bio.blkdone, dksc->sc_dkdev.dk_label);
961 if (xfer->c_bio.error == REQUEUE) {
987 ((wd->drvp->ata_vers >= 4 && xfer->c_bio.r_error & 64) ||
988 (wd->drvp->ata_vers < 4 && xfer->c_bio.r_error & 192))) {
1020 xfer->c_bio.error = REQUEUE;
1026 noerror: if ((xfer->c_bio.flags & ATA_CORR) || xfer->c_retries > 0)
1065 wdstart1(wd, xfer->c_bio.bp, xfer);
1082 wdstart1(wd, xfer->c_bio.bp, xfer);
1265 int errno = xfer->c_bio.r_error;
1637 xfer->c_bio.blkno = blkno;
1638 xfer->c_bio.flags = ATA_POLL;
1640 (xfer->c_bio.blkno + nblk) > wd->sc_capacity28)
1641 xfer->c_bio.flags |= ATA_LBA48;
1643 xfer->c_bio.flags |= ATA_LBA;
1644 xfer->c_bio.bcount = nblk * dg->dg_secsize;
1645 xfer->c_bio.databuf = va;
1650 switch(err = xfer->c_bio.error) {