Lines Matching refs:SCpnt
29 struct scsi_cmnd *SCpnt;
65 * If life was easier, then SCpnt would have a
74 q->SCpnt = NULL;
96 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
99 * SCpnt - command to add
103 int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
121 q->SCpnt = SCpnt;
148 return q->SCpnt;
162 struct scsi_cmnd *SCpnt = NULL;
167 if (!test_bit(q->SCpnt->device->id * 8 +
168 (u8)(q->SCpnt->device->lun & 0x7), exclude)) {
169 SCpnt = __queue_remove(queue, l);
175 return SCpnt;
187 struct scsi_cmnd *SCpnt = NULL;
191 SCpnt = __queue_remove(queue, queue->head.next);
194 return SCpnt;
211 struct scsi_cmnd *SCpnt = NULL;
216 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun &&
217 q->SCpnt->tag == tag) {
218 SCpnt = __queue_remove(queue, l);
224 return SCpnt;
242 if (q->SCpnt->device->id == target)
266 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun) {
277 * Function: int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt)
280 * SCpnt - command to find
283 int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt)
292 if (q->SCpnt == SCpnt) {