Lines Matching refs:SCpnt
32 struct scsi_cmnd *SCpnt;
68 * If life was easier, then SCpnt would have a
77 q->SCpnt = NULL;
99 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
102 * SCpnt - command to add
106 int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
124 q->SCpnt = SCpnt;
151 return q->SCpnt;
165 struct scsi_cmnd *SCpnt = NULL;
170 if (!test_bit(q->SCpnt->device->id * 8 +
171 (u8)(q->SCpnt->device->lun & 0x7), exclude)) {
172 SCpnt = __queue_remove(queue, l);
178 return SCpnt;
190 struct scsi_cmnd *SCpnt = NULL;
194 SCpnt = __queue_remove(queue, queue->head.next);
197 return SCpnt;
214 struct scsi_cmnd *SCpnt = NULL;
219 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun &&
220 q->SCpnt->tag == tag) {
221 SCpnt = __queue_remove(queue, l);
227 return SCpnt;
245 if (q->SCpnt->device->id == target)
269 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun) {
280 * Function: int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt)
283 * SCpnt - command to find
286 int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt)
295 if (q->SCpnt == SCpnt) {