Lines Matching refs:status

84 /* USBAT Flash Media status types */
101 #define USBAT_ATA_STATUS 0x17 /* device status (R) */
103 #define USBAT_ATA_ALTSTATUS 0x0E /* status (no clear IRQ) (R) */
300 * Read the status register
302 static int usbat_get_status(struct us_data *us, unsigned char *status)
305 rc = usbat_read(us, USBAT_ATA, USBAT_ATA_STATUS, status);
307 usb_stor_dbg(us, "0x%02X\n", *status);
312 * Check the device status
373 * This value is logically ANDed with the status register field specified
398 unsigned char *status = us->iobuf;
409 result = usbat_get_status(us, status);
413 if (*status & 0x01) { /* check condition */
414 result = usbat_read(us, USBAT_ATA, 0x10, status);
417 if (*status & 0x20) /* device fault */
420 if ((*status & 0x80)==0x00) { /* not busy */
535 unsigned char *status = us->iobuf;
614 * (i.e. bit 0 -- CHK -- of status is 0). The most likely
638 * Read status: is the device angry, or just busy?
644 status);
648 if (*status & 0x01) /* check condition */
650 if (*status & 0x20) /* device fault */
727 * condition that a status register can be successfully masked with a status
769 * condition that a status register can be successfully masked with a status
980 unsigned char status;
1000 rc = usbat_get_status(us, &status);
1005 if (status == 0xA1 || !(status & 0x01)) {
1061 unsigned char status;
1079 /* Read device status */
1080 if (usbat_get_status(us, &status) != USB_STOR_XFER_GOOD) {
1402 unsigned char *status = us->iobuf;
1410 if (usbat_read(us, USBAT_ATA, USBAT_ATA_STATUS, status) !=
1414 if (usbat_read(us, USBAT_ATA, USBAT_ATA_DEVICE, status) !=
1418 if (usbat_read(us, USBAT_ATA, USBAT_ATA_LBA_ME, status) !=
1422 if (usbat_read(us, USBAT_ATA, USBAT_ATA_LBA_HI, status) !=
1434 if (usbat_read(us, USBAT_ATA, USBAT_ATA_LBA_ME, status) !=
1438 if (usbat_read(us, USBAT_ATA, USBAT_ATA_LBA_ME, status) !=
1455 unsigned char *status = us->iobuf;
1474 rc = usbat_read_user_io(us, status);
1480 rc = usbat_read_user_io(us, status);
1484 rc = usbat_read_user_io(us, status);
1496 rc = usbat_read_user_io(us, status);
1509 rc = usbat_read_user_io(us, status);
1517 rc = usbat_read_user_io(us, status);
1555 unsigned char *status = us->iobuf;
1589 result = usbat_get_status(us, status);
1590 usb_stor_dbg(us, "Status = %02X\n", *status);
1653 if (usbat_read(us, USBAT_ATA, USBAT_ATA_LBA_ME, status) !=
1659 len = *status;
1660 if (usbat_read(us, USBAT_ATA, USBAT_ATA_LBA_HI, status) !=
1664 len += ((unsigned int) *status)<<8;
1667 len = *status;