Lines Matching refs:SDpnt
250 Scsi_Device *SDpnt; in scsi_queue_next_request() local
273 SDpnt = (Scsi_Device *) q->queuedata; in scsi_queue_next_request()
274 SHpnt = SDpnt->host; in scsi_queue_next_request()
283 if (SDpnt->single_lun in scsi_queue_next_request()
285 && SDpnt->device_busy == 0) { in scsi_queue_next_request()
288 for (SDpnt = SHpnt->host_queue; in scsi_queue_next_request()
289 SDpnt; in scsi_queue_next_request()
290 SDpnt = SDpnt->next) { in scsi_queue_next_request()
295 || (SDpnt->device_blocked)) { in scsi_queue_next_request()
298 q = &SDpnt->request_queue; in scsi_queue_next_request()
313 for (SDpnt = SHpnt->host_queue; SDpnt; SDpnt = SDpnt->next) { in scsi_queue_next_request()
320 if (SDpnt->device_blocked || !SDpnt->starved) { in scsi_queue_next_request()
323 q = &SDpnt->request_queue; in scsi_queue_next_request()
327 if (SDpnt == NULL && all_clear) { in scsi_queue_next_request()
852 Scsi_Device *SDpnt; in scsi_request_fn() local
858 SDpnt = (Scsi_Device *) q->queuedata; in scsi_request_fn()
859 if (!SDpnt) { in scsi_request_fn()
862 SHpnt = SDpnt->host; in scsi_request_fn()
880 if (SDpnt->device_blocked) { in scsi_request_fn()
894 if (SDpnt->device_busy == 0) { in scsi_request_fn()
895 SDpnt->starved = 1; in scsi_request_fn()
900 SDpnt->starved = 0; in scsi_request_fn()
911 if (SDpnt->was_reset) { in scsi_request_fn()
921 SDpnt->was_reset = 0; in scsi_request_fn()
922 if (SDpnt->removable && !in_interrupt()) { in scsi_request_fn()
924 scsi_ioctl(SDpnt, SCSI_IOCTL_DOORLOCK, 0); in scsi_request_fn()
979 SCpnt = scsi_allocate_device(SDpnt, FALSE, FALSE); in scsi_request_fn()
996 SDpnt->device_busy++; in scsi_request_fn()
1048 if (!SDpnt->scsi_init_io_fn(SCpnt)) { in scsi_request_fn()
1058 SDpnt->device_busy--; in scsi_request_fn()
1059 if (SDpnt->device_busy == 0) { in scsi_request_fn()
1060 SDpnt->starved = 1; in scsi_request_fn()
1081 SDpnt->device_busy--; in scsi_request_fn()