Lines Matching defs:tfd
648 uint32_t is, tfd, sact;
658 "is 0x%x CI 0x%x SACT 0x%x TFD 0x%x\n",
679 tfd = AHCI_READ(sc, AHCI_P_TFD(chp->ch_channel));
690 "%s port %d: TFE: sact 0x%x is 0x%x tfd 0x%x\n",
691 AHCINAME(sc), chp->ch_channel, sact, is, tfd),
695 tfd = (WDCE_ABRT << AHCI_P_TFD_ERR_SHIFT) |
709 tfd = AHCI_READ(sc, AHCI_P_TFD(chp->ch_channel));
712 if ((tfd & WDCS_ERR) != 0) {
717 AHCINAME(sc), chp->ch_channel, tfd), DEBUG_INTR);
720 tfd = 0;
732 xfer->ops->c_intr(chp, xfer, tfd);
749 xfer->ops->c_intr(chp, xfer, tfd);
757 ata_thread_run(chp, 0, ATACH_TH_RECOVERY, tfd);
997 int i, tfd;
1016 tfd = AHCI_READ(sc, AHCI_P_TFD(chp->ch_channel));
1017 if ((AHCI_TFD_ST(tfd) & WDCS_BSY) == 0)
1021 if ((AHCI_TFD_ST(tfd) & WDCS_BSY) != 0)
1023 AHCINAME(sc), tfd);
1308 ahci_cmd_complete(struct ata_channel *chp, struct ata_xfer *xfer, int tfd)
1327 if (AHCI_TFD_ST(tfd) & WDCS_BSY) {
1329 } else if (AHCI_TFD_ST(tfd) & WDCS_ERR) {
1330 ata_c->r_error = AHCI_TFD_ERR(tfd);
1553 ahci_bio_complete(struct ata_channel *chp, struct ata_xfer *xfer, int tfd)
1577 if (AHCI_TFD_ERR(tfd) & WDCS_DWF) {
1579 } else if (AHCI_TFD_ST(tfd) & WDCS_ERR) {
1581 ata_bio->r_error = AHCI_TFD_ERR(tfd);
1582 } else if (AHCI_TFD_ST(tfd) & WDCS_CORR)
1610 if ((AHCI_TFD_ST(tfd) & WDCS_ERR) == 0)
1683 ahci_channel_recover(struct ata_channel *chp, int flags, uint32_t tfd)
1738 if (reset || (AHCI_TFD_ST(tfd) & (WDCS_BSY|WDCS_DRQ)) != 0) {
1748 ata_recovery_resume(chp, drive, tfd, flags);
2015 ahci_atapi_complete(struct ata_channel *chp, struct ata_xfer *xfer, int tfd)
2045 if (AHCI_TFD_ST(tfd) & WDCS_ERR &&
2049 sc_xfer->sense.atapi_sense = AHCI_TFD_ERR(tfd);
2062 if ((AHCI_TFD_ST(tfd) & WDCS_ERR) == 0)