Lines Matching defs:ata_bio
131 .ata_bio = ahci_ata_bio,
790 /* return error code from ata_bio */
1407 struct ata_bio *ata_bio = &xfer->c_bio;
1413 if (ata_bio->flags & ATA_POLL)
1416 xfer->c_databuf = ata_bio->databuf;
1417 xfer->c_bcount = ata_bio->bcount;
1427 struct ata_bio *ata_bio = &xfer->c_bio;
1446 if (ahci_dma_setup(chp, xfer->c_slot, ata_bio->databuf, ata_bio->bcount,
1447 (ata_bio->flags & ATA_READ) ? BUS_DMA_READ : BUS_DMA_WRITE)) {
1448 ata_bio->error = ERR_DMA;
1449 ata_bio->r_error = 0;
1453 ((ata_bio->flags & ATA_READ) ? 0 : AHCI_CMDH_F_WR) |
1520 struct ata_bio *ata_bio = &xfer->c_bio;
1526 ata_bio->flags |= ATA_ITSDONE;
1532 ata_bio->error = ERR_NODEV;
1535 ata_bio->error = ERR_RESET;
1538 ata_bio->error = REQUEUE;
1544 ata_bio->r_error = WDCE_ABRT;
1555 struct ata_bio *ata_bio = &xfer->c_bio;
1567 ata_bio->error = TIMEOUT;
1572 (ata_bio->flags & ATA_READ) ? BUS_DMASYNC_POSTREAD :
1576 ata_bio->flags |= ATA_ITSDONE;
1578 ata_bio->error = ERR_DF;
1580 ata_bio->error = ERROR;
1581 ata_bio->r_error = AHCI_TFD_ERR(tfd);
1583 ata_bio->flags |= ATA_CORR;
1588 ata_bio->bcount), DEBUG_XFERS);
1598 if (ata_bio->error == NOERROR)
1599 ata_bio->bcount = 0;
1601 if ((ata_bio->flags & ATA_READ) || ata_bio->error == NOERROR)
1602 ata_bio->bcount -=
1605 AHCIDEBUG_PRINT((" now %ld\n", ata_bio->bcount), DEBUG_XFERS);