Lines Matching refs:SCpnt
33 struct scsi_cmnd *SCpnt; member
78 q->SCpnt = NULL; in queue_initialise()
107 int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head) in __queue_add() argument
125 q->SCpnt = SCpnt; in __queue_add()
152 return q->SCpnt; in __queue_remove()
166 struct scsi_cmnd *SCpnt = NULL; in queue_remove_exclude() local
171 if (!test_bit(q->SCpnt->device->id * 8 + in queue_remove_exclude()
172 (u8)(q->SCpnt->device->lun & 0x7), exclude)) { in queue_remove_exclude()
173 SCpnt = __queue_remove(queue, l); in queue_remove_exclude()
179 return SCpnt; in queue_remove_exclude()
191 struct scsi_cmnd *SCpnt = NULL; in queue_remove() local
195 SCpnt = __queue_remove(queue, queue->head.next); in queue_remove()
198 return SCpnt; in queue_remove()
215 struct scsi_cmnd *SCpnt = NULL; in queue_remove_tgtluntag() local
220 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun && in queue_remove_tgtluntag()
221 scsi_cmd_to_rq(q->SCpnt)->tag == tag) { in queue_remove_tgtluntag()
222 SCpnt = __queue_remove(queue, l); in queue_remove_tgtluntag()
228 return SCpnt; in queue_remove_tgtluntag()
246 if (q->SCpnt->device->id == target) in queue_remove_all_target()
270 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun) { in queue_probetgtlun()
287 int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt) in queue_remove_cmd() argument
296 if (q->SCpnt == SCpnt) { in queue_remove_cmd()