Lines Matching refs:status
110 uint8_t status;
122 status = inb(ide->base + IDE_STATUS);
123 if ((status & IDE_STATUS_BSY) == 0)
124 return status;
147 uint8_t status;
152 status = IDEWaitForBusy(ide, true);
153 if ((status & IDE_STATUS_RDY) != IDE_STATUS_RDY) {
185 uint8_t status;
197 status = IDEWaitForBusy(ide, true);
198 if ((status & IDE_STATUS_ERR) != 0) {
210 status = inb(ide->base + IDE_STATUS);
211 if (status == 0) {
218 if ((status & IDE_STATUS_BSY) == 0)
220 status = inb(ide->base + IDE_STATUS);
223 if ((status & IDE_STATUS_ERR) != 0) {
274 int status;
280 status = IDE_ReadOne(idedrive,
285 if (status < 0)
286 return status;
296 int status;
302 status = IDE_WriteOne(idedrive,
307 if (status < 0)
308 return status;
344 uint8_t status;
363 status = IDEWaitForBusy(ide, true);
364 if ((status & IDE_STATUS_ERR) != 0) {
388 status = IDEWaitForBusy(ide, false);
389 if ((status & IDE_STATUS_ERR) != 0) {
401 status = IDEWaitForBusy(ide, true);
402 if ((status & IDE_STATUS_ERR) != 0) {
418 uint8_t status;
437 status = IDEWaitForBusy(ide, true);
438 if ((status & IDE_STATUS_ERR) != 0) {
462 status = IDEWaitForBusy(ide, false);
463 if ((status & IDE_STATUS_ERR) != 0) {
475 status = IDEWaitForBusy(ide, true);
476 if ((status & IDE_STATUS_ERR) != 0) {