Lines Matching refs:stat
154 u8 stat;
159 stat = hwif->tp_ops->read_status(hwif);
160 if ((stat & ATA_BUSY) == 0 || retries-- == 0)
165 if (!OK_STAT(stat, ATA_DRDY, BAD_STAT)) {
169 (void)ide_dump_status(drive, __func__, stat);
172 if ((stat & (ATA_ERR | ATA_DRQ)) == 0) {
178 return ide_error(drive, "task_no_data_intr", stat);
191 ide_finish_cmd(drive, cmd, stat);
201 u8 stat;
208 stat = hwif->tp_ops->read_status(hwif);
210 if (stat & ATA_BUSY)
216 if (stat & ATA_BUSY)
219 return stat;
324 void ide_finish_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat)
330 ide_complete_cmd(drive, cmd, stat, err);
348 u8 stat = hwif->tp_ops->read_status(hwif);
353 if (stat & ATA_ERR)
357 if ((stat & ATA_DRQ) == 0) {
359 if (OK_STAT(stat, ATA_DRDY, ATA_BUSY))
366 if (!OK_STAT(stat, DRIVE_READY, drive->bad_wstat))
370 if (((stat & ATA_DRQ) == 0) ^ (cmd->nleft == 0))
382 stat = wait_drive_not_busy(drive);
383 if (!OK_STAT(stat, 0, BAD_STAT))
394 ide_finish_cmd(drive, cmd, stat);
400 return ide_error(drive, __func__, stat);