Lines Matching refs:request
68 static void __scsi_insert_special(request_queue_t *q, struct request *rq, in __scsi_insert_special()
123 __scsi_insert_special(q, &SCpnt->request, SCpnt, at_head); in scsi_insert_special_cmd()
264 SCpnt->request.special = (void *) SCpnt; in scsi_queue_next_request()
265 list_add(&SCpnt->request.queue, &q->queue_head); in scsi_queue_next_request()
364 struct request *req; in __scsi_end_request()
371 req = &SCpnt->request; in __scsi_end_request()
517 if (SCpnt->request_buffer != SCpnt->request.buffer) { in scsi_release_buffers()
555 struct request *req = &SCpnt->request; in scsi_io_completion()
623 SCpnt->request.nr_sectors, in scsi_io_completion()
726 kdevname(SCpnt->request.rq_dev)); in scsi_io_completion()
755 STpnt = scsi_get_request_dev(&SCpnt->request); in scsi_io_completion()
770 SCpnt = scsi_end_request(SCpnt, 0, SCpnt->request.current_nr_sectors); in scsi_io_completion()
792 struct Scsi_Device_Template *scsi_get_request_dev(struct request *req) in scsi_get_request_dev()
849 struct request *req; in scsi_request_fn()
1008 if (req != &SCpnt->request && req != &SRpnt->sr_request ) { in scsi_request_fn()
1009 memcpy(&SCpnt->request, req, sizeof(struct request)); in scsi_request_fn()
1027 if (SCpnt->request.cmd != SPECIAL) { in scsi_request_fn()
1063 SCpnt->request.special = SCpnt; in scsi_request_fn()
1064 list_add(&SCpnt->request.queue, &q->queue_head); in scsi_request_fn()
1074 SCpnt->request.nr_sectors, 0, 0); in scsi_request_fn()