Lines Matching refs:cmd_result
489 int cmd_result; in ata_cmd_ioctl() local
536 cmd_result = scsi_execute(scsidev, scsi_cmd, data_dir, argbuf, argsize, in ata_cmd_ioctl()
539 if (driver_byte(cmd_result) == DRIVER_SENSE) {/* sense data available */ in ata_cmd_ioctl()
541 cmd_result &= ~(0xFF<<24); /* DRIVER_SENSE is not an error */ in ata_cmd_ioctl()
545 if (cmd_result & SAM_STAT_CHECK_CONDITION) { in ata_cmd_ioctl()
551 cmd_result &= ~SAM_STAT_CHECK_CONDITION; in ata_cmd_ioctl()
566 if (cmd_result) { in ata_cmd_ioctl()
596 int cmd_result; in ata_task_ioctl() local
622 cmd_result = scsi_execute(scsidev, scsi_cmd, DMA_NONE, NULL, 0, in ata_task_ioctl()
625 if (driver_byte(cmd_result) == DRIVER_SENSE) {/* sense data available */ in ata_task_ioctl()
627 cmd_result &= ~(0xFF<<24); /* DRIVER_SENSE is not an error */ in ata_task_ioctl()
631 if (cmd_result & SAM_STAT_CHECK_CONDITION) { in ata_task_ioctl()
637 cmd_result &= ~SAM_STAT_CHECK_CONDITION; in ata_task_ioctl()
655 if (cmd_result) { in ata_task_ioctl()