Lines Matching refs:sreq
150 struct scsi_request *sreq; in ata_cmd_ioctl() local
158 sreq = scsi_allocate_request(scsidev); in ata_cmd_ioctl()
159 if (!sreq) in ata_cmd_ioctl()
175 sreq->sr_data_direction = DMA_FROM_DEVICE; in ata_cmd_ioctl()
179 sreq->sr_data_direction = DMA_NONE; in ata_cmd_ioctl()
197 scsi_wait_req(sreq, scsi_cmd, argbuf, argsize, (10*HZ), 5); in ata_cmd_ioctl()
199 if (sreq->sr_result) { in ata_cmd_ioctl()
210 scsi_release_request(sreq); in ata_cmd_ioctl()
234 struct scsi_request *sreq; in ata_task_ioctl() local
253 sreq = scsi_allocate_request(scsidev); in ata_task_ioctl()
254 if (!sreq) { in ata_task_ioctl()
259 sreq->sr_data_direction = DMA_NONE; in ata_task_ioctl()
262 scsi_wait_req(sreq, scsi_cmd, NULL, 0, (10*HZ), 5); in ata_task_ioctl()
264 if (sreq->sr_result) { in ata_task_ioctl()
272 scsi_release_request(sreq); in ata_task_ioctl()