Lines Matching refs:status

54  *	ata_sff_check_status - Read device status reg & clear interrupt
57 * Reads ATA taskfile status register for currently-selected device
71 * ata_sff_altstatus - Read device alternate status reg
74 * Reads ATA taskfile alternate status register for
96 * if available in order to avoid clearing shared IRQ status
105 u8 status;
108 status = ata_sff_altstatus(ap);
110 if (status & ATA_BUSY)
111 return status;
114 status = ap->ops->sff_check_status(ap);
115 return status;
169 messing up the IRQ status */
182 * @ap: port containing status register to be polled
199 u8 status;
201 status = ata_sff_busy_wait(ap, ATA_BUSY, 300);
204 while (status != 0xff && (status & ATA_BUSY) &&
207 status = ata_sff_busy_wait(ap, ATA_BUSY, 3);
210 if (status != 0xff && (status & ATA_BUSY))
213 status);
216 while (status != 0xff && (status & ATA_BUSY) &&
219 status = ap->ops->sff_check_status(ap);
222 if (status == 0xff)
225 if (status & ATA_BUSY) {
228 DIV_ROUND_UP(tmout, 1000), status);
238 u8 status = link->ap->ops->sff_check_status(link->ap);
240 return ata_check_ready(status);
245 * @link: SFF link to wait ready status for
325 * pauses and status polling, where needed.
451 * status method) then you will need to provide a replacement tf_read
981 * @status: current device status
985 * 1 when poll next status needed, 0 otherwise.
988 u8 status, int in_wq)
1006 ap->print_id, qc->tf.protocol, ap->hsm_task_state, status);
1018 /* check device status */
1019 if (unlikely((status & ATA_DRQ) == 0)) {
1021 if (likely(status & (ATA_ERR | ATA_DF)))
1041 if (unlikely(status & (ATA_ERR | ATA_DF))) {
1050 "dev_stat 0x%X", status);
1081 if ((status & ATA_DRQ) == 0) {
1095 if (unlikely(status & (ATA_ERR | ATA_DF))) {
1098 "dev_stat 0x%X", status);
1112 if (unlikely((status & ATA_DRQ) == 0)) {
1114 if (likely(status & (ATA_ERR | ATA_DF))) {
1133 "dev_stat 0x%X", status);
1152 if (unlikely(status & (ATA_ERR | ATA_DF))) {
1158 status = ata_wait_idle(ap);
1161 if (status & (ATA_BUSY | ATA_DRQ)) {
1164 "dev_stat 0x%X", status);
1169 * status register stuck at 0x7f and
1175 if (status == 0x7f)
1191 status = ata_wait_idle(ap);
1200 if (unlikely(!ata_ok(status))) {
1201 qc->err_mask |= __ac_err_mask(status);
1208 ap->print_id, qc->dev->devno, status);
1293 u8 status;
1312 * a chk-status or two. If not, the drive is probably seeking
1314 * chk-status again. If still busy, queue delayed work.
1316 status = ata_sff_busy_wait(ap, ATA_BUSY, 5);
1317 if (status & ATA_BUSY) {
1322 status = ata_sff_busy_wait(ap, ATA_BUSY, 10);
1323 if (status & ATA_BUSY) {
1335 poll_next = ata_sff_hsm_move(ap, qc, status, 1);
1479 u8 status;
1504 /* check main status, clearing INTRQ if needed */
1505 status = ata_sff_irq_status(ap);
1506 if (status & ATA_BUSY) {
1519 ata_sff_hsm_move(ap, qc, status, 0);
1574 * pending status if available and clear spurious IRQ.
1650 u8 status;
1660 status = ata_sff_altstatus(ap);
1661 if (status & ATA_BUSY)
1667 status);
1885 * status register too early.
1908 * and TF status is 0xff, bail out on it too.
2807 /* check status of DMA engine */
2938 * Clear interrupt and error flags in DMA status register.
3006 * Further, a read of the DMA status register _immediately_
3044 * ata_bmdma_status - Read PCI IDE BMDMA status
3047 * Read and return BMDMA status register.
3171 * even if DMA is not in use to clear IRQ status via