Lines Matching refs:SCpnt
33 struct scsi_cmnd *SCpnt;
69 * If life was easier, then SCpnt would have a
78 q->SCpnt = NULL;
100 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
103 * SCpnt - command to add
107 int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
125 q->SCpnt = SCpnt;
152 return q->SCpnt;
166 struct scsi_cmnd *SCpnt = NULL;
171 if (!test_bit(q->SCpnt->device->id * 8 +
172 (u8)(q->SCpnt->device->lun & 0x7), exclude)) {
173 SCpnt = __queue_remove(queue, l);
179 return SCpnt;
191 struct scsi_cmnd *SCpnt = NULL;
195 SCpnt = __queue_remove(queue, queue->head.next);
198 return SCpnt;
215 struct scsi_cmnd *SCpnt = NULL;
220 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun &&
221 scsi_cmd_to_rq(q->SCpnt)->tag == tag) {
222 SCpnt = __queue_remove(queue, l);
228 return SCpnt;
246 if (q->SCpnt->device->id == target)
270 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun) {
281 * Function: int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt)
284 * SCpnt - command to find
287 int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt)
296 if (q->SCpnt == SCpnt) {