Lines Matching refs:tfd

163 	uint32_t tfd;  member
374 ahci_write_fis_sdb(struct ahci_port *p, int slot, uint8_t *cfis, uint32_t tfd) in ahci_write_fis_sdb() argument
379 error = (tfd >> 8) & 0xff; in ahci_write_fis_sdb()
380 tfd &= 0x77; in ahci_write_fis_sdb()
384 fis[2] = tfd; in ahci_write_fis_sdb()
388 p->err_cfis[2] = tfd; in ahci_write_fis_sdb()
395 p->tfd &= ~0x77; in ahci_write_fis_sdb()
396 p->tfd |= tfd; in ahci_write_fis_sdb()
401 ahci_write_fis_d2h(struct ahci_port *p, int slot, uint8_t *cfis, uint32_t tfd) in ahci_write_fis_d2h() argument
406 error = (tfd >> 8) & 0xff; in ahci_write_fis_d2h()
410 fis[2] = tfd & 0xff; in ahci_write_fis_d2h()
424 p->err_cfis[2] = tfd & 0xff; in ahci_write_fis_d2h()
429 p->tfd = tfd; in ahci_write_fis_d2h()
438 p->tfd = ATA_S_READY | ATA_S_DSC; in ahci_write_fis_d2h_ncq()
442 fis[2] = p->tfd; /* Status */ in ahci_write_fis_d2h_ncq()
541 pr->tfd = 0x7F; in ahci_port_reset()
549 pr->tfd = (1 << 8) | ATA_S_DSC | ATA_S_DMA; in ahci_port_reset()
552 pr->tfd |= ATA_S_READY; in ahci_port_reset()
1195 uint32_t tfd; in atapi_inquiry() local
1210 tfd = (p->sense_key << 12) | ATA_S_READY | ATA_S_ERROR; in atapi_inquiry()
1212 ahci_write_fis_d2h(p, slot, cfis, tfd); in atapi_inquiry()
1273 uint32_t tfd; in atapi_read_toc() local
1276 tfd = (p->sense_key << 12) | ATA_S_READY | ATA_S_ERROR; in atapi_read_toc()
1278 ahci_write_fis_d2h(p, slot, cfis, tfd); in atapi_read_toc()
1421 uint32_t tfd; in atapi_read_toc() local
1425 tfd = (p->sense_key << 12) | ATA_S_READY | ATA_S_ERROR; in atapi_read_toc()
1427 ahci_write_fis_d2h(p, slot, cfis, tfd); in atapi_read_toc()
1524 uint32_t tfd; in atapi_start_stop_unit() local
1531 tfd = ATA_S_READY | ATA_S_DSC; in atapi_start_stop_unit()
1538 tfd = (p->sense_key << 12) | ATA_S_READY | ATA_S_ERROR; in atapi_start_stop_unit()
1541 ahci_write_fis_d2h(p, slot, cfis, tfd); in atapi_start_stop_unit()
1548 uint32_t tfd; in atapi_mode_sense() local
1574 tfd = ATA_S_READY | ATA_S_DSC; in atapi_mode_sense()
1594 tfd = ATA_S_READY | ATA_S_DSC; in atapi_mode_sense()
1605 tfd = (p->sense_key << 12) | ATA_S_READY | ATA_S_ERROR; in atapi_mode_sense()
1612 tfd = (p->sense_key << 12) | ATA_S_READY | ATA_S_ERROR; in atapi_mode_sense()
1616 ahci_write_fis_d2h(p, slot, cfis, tfd); in atapi_mode_sense()
1624 uint32_t tfd; in atapi_get_event_status_notification() local
1632 tfd = (p->sense_key << 12) | ATA_S_READY | ATA_S_ERROR; in atapi_get_event_status_notification()
1647 tfd = ATA_S_READY | ATA_S_DSC; in atapi_get_event_status_notification()
1650 ahci_write_fis_d2h(p, slot, cfis, tfd); in atapi_get_event_status_notification()
1722 p->tfd |= ATA_S_BUSY; in ahci_handle_cmd()
1733 p->tfd = ATA_S_DSC | ATA_S_READY; in ahci_handle_cmd()
1736 p->tfd = ATA_S_ERROR | ATA_S_READY; in ahci_handle_cmd()
1737 p->tfd |= (ATA_ERROR_ABORT << 8); in ahci_handle_cmd()
1745 p->tfd = ATA_S_DSC | ATA_S_READY; in ahci_handle_cmd()
1758 p->tfd = ATA_S_DSC | ATA_S_READY; in ahci_handle_cmd()
1762 p->tfd = ATA_S_ERROR | ATA_S_READY; in ahci_handle_cmd()
1763 p->tfd |= (ATA_ERROR_ABORT << 8); in ahci_handle_cmd()
1766 ahci_write_fis_d2h(p, slot, cfis, p->tfd); in ahci_handle_cmd()
1772 p->tfd = ATA_S_ERROR | ATA_S_READY; in ahci_handle_cmd()
1773 p->tfd |= (ATA_ERROR_ABORT << 8); in ahci_handle_cmd()
1776 p->tfd = ATA_S_DSC | ATA_S_READY; in ahci_handle_cmd()
1778 ahci_write_fis_d2h(p, slot, cfis, p->tfd); in ahci_handle_cmd()
1927 if ((p->tfd & (ATA_S_BUSY | ATA_S_DRQ)) != 0) in ahci_handle_port()
1950 uint32_t tfd; in ata_ioreq_cb() local
1996 tfd = ATA_S_READY | ATA_S_DSC; in ata_ioreq_cb()
1998 tfd = (ATA_E_ABORT << 8) | ATA_S_READY | ATA_S_ERROR; in ata_ioreq_cb()
2000 ahci_write_fis_sdb(p, slot, cfis, tfd); in ata_ioreq_cb()
2002 ahci_write_fis_d2h(p, slot, cfis, tfd); in ata_ioreq_cb()
2025 uint32_t tfd; in atapi_ioreq_cb() local
2058 tfd = ATA_S_READY | ATA_S_DSC; in atapi_ioreq_cb()
2062 tfd = (p->sense_key << 12) | ATA_S_READY | ATA_S_ERROR; in atapi_ioreq_cb()
2065 ahci_write_fis_d2h(p, slot, cfis, tfd); in atapi_ioreq_cb()
2171 p->tfd &= ~(ATA_S_BUSY | ATA_S_DRQ); in pci_ahci_port_write()
2701 SNAPSHOT_VAR_OR_LEAVE(port->tfd, meta, ret, done); in pci_ahci_snapshot()