Searched refs:SCpnt (Results 1 - 25 of 39) sorted by relevance

12

/linux-master/drivers/scsi/arm/
H A Dqueue.h49 #define queue_add_cmd_ordered(queue,SCpnt) \
50 __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE)
51 #define queue_add_cmd_tail(queue,SCpnt) \
52 __queue_add(queue,SCpnt,0)
54 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
57 * SCpnt - command to add
61 extern int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head);
96 * Function: int queue_remove_cmd (Queue_t *queue, struct scsi_cmnd *SCpnt)
99 * SCpnt
[all...]
H A Darm_scsi.h88 static inline void init_SCp(struct scsi_cmnd *SCpnt) argument
90 struct scsi_pointer *scsi_pointer = arm_scsi_pointer(SCpnt);
94 if (scsi_bufflen(SCpnt)) {
97 scsi_pointer->buffer = scsi_sglist(SCpnt);
98 scsi_pointer->buffers_residual = scsi_sg_count(SCpnt) - 1;
101 scsi_pointer->phase = scsi_bufflen(SCpnt);
109 unsigned i, sg_count = scsi_sg_count(SCpnt);
111 scsi_for_each_sg(SCpnt, sg, sg_count, i)
114 if (scsi_bufflen(SCpnt) != len) {
118 SCpnt
[all...]
H A Dqueue.c33 struct scsi_cmnd *SCpnt; member in struct:queue_entry
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) argument
125 q->SCpnt = SCpnt;
152 return q->SCpnt;
166 struct scsi_cmnd *SCpnt local
191 struct scsi_cmnd *SCpnt = NULL; local
215 struct scsi_cmnd *SCpnt = NULL; local
287 queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt) argument
[all...]
H A Dacornscsi.c375 host->SCpnt = NULL;
553 if (host->SCpnt)
554 return '0' + host->SCpnt->device->id;
692 struct scsi_cmnd *SCpnt; local
695 SCpnt = host->origSCpnt;
699 if (!SCpnt) {
700 SCpnt = queue_remove_exclude(&host->queues.issue, host->busyluns);
701 if (!SCpnt)
707 if (host->scsi.disconnectable && host->SCpnt) {
708 queue_add_cmd_tail(&host->queues.disconnected, host->SCpnt);
774 struct scsi_cmnd *SCpnt = *SCpntp; local
1289 struct scsi_cmnd *SCpnt = host->SCpnt; local
2411 acornscsi_queuecmd_lck(struct scsi_cmnd *SCpnt) argument
2463 acornscsi_do_abort(AS_Host *host, struct scsi_cmnd *SCpnt) argument
2555 acornscsi_abort(struct scsi_cmnd *SCpnt) argument
2637 acornscsi_host_reset(struct scsi_cmnd *SCpnt) argument
[all...]
H A Dfas216.c194 printk(" { magic_start=%lX host=%p SCpnt=%p origSCpnt=%p\n",
195 info->magic_start, info->host, info->SCpnt,
286 if (info->SCpnt)
287 return '0' + info->SCpnt->device->id;
302 struct scsi_cmnd *SCpnt, char *fmt, ...)
310 fas216_do_log(info, '0' + SCpnt->device->id, fmt, args);
313 scsi_print_command(SCpnt);
518 struct fas216_device *dev = &info->device[info->SCpnt->device->id];
601 fas216_set_sync(info, info->SCpnt->device->id);
615 fas216_set_sync(info, info->SCpnt
301 fas216_log_command(FAS216_Info *info, int level, struct scsi_cmnd *SCpnt, char *fmt, ...) argument
1675 __fas216_start_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) argument
1767 fas216_start_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) argument
1822 fas216_allocate_tag(FAS216_Info *info, struct scsi_cmnd *SCpnt) argument
1845 fas216_do_bus_device_reset(FAS216_Info *info, struct scsi_cmnd *SCpnt) argument
1894 struct scsi_cmnd *SCpnt = NULL; local
1983 fas216_devicereset_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) argument
2001 fas216_rq_sns_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) argument
2038 fas216_std_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) argument
2141 struct scsi_cmnd *SCpnt; local
2205 fas216_queue_command_internal(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) argument
2246 fas216_queue_command_lck(struct scsi_cmnd *SCpnt) argument
2259 fas216_internal_done(struct scsi_cmnd *SCpnt) argument
2276 fas216_noqueue_command_lck(struct scsi_cmnd *SCpnt) argument
2357 fas216_find_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) argument
2426 fas216_eh_abort(struct scsi_cmnd *SCpnt) argument
2479 fas216_eh_device_reset(struct scsi_cmnd *SCpnt) argument
2560 fas216_eh_bus_reset(struct scsi_cmnd *SCpnt) argument
2660 fas216_eh_host_reset(struct scsi_cmnd *SCpnt) argument
[all...]
H A Dfas216.h216 struct scsi_cmnd *SCpnt; /* currently processing command */ member in struct:__anon2634
341 /* Function: int fas216_queue_command(struct Scsi_Host *h, struct scsi_cmnd *SCpnt)
344 * : SCpnt - Command to queue
347 extern int fas216_queue_command(struct Scsi_Host *h, struct scsi_cmnd *SCpnt);
349 /* Function: int fas216_noqueue_command(struct Scsi_Host *h, struct scsi_cmnd *SCpnt)
352 * : SCpnt - Command to queue
376 /* Function: int fas216_eh_abort(struct scsi_cmnd *SCpnt)
378 * Params : SCpnt - command to abort
381 extern int fas216_eh_abort(struct scsi_cmnd *SCpnt);
383 /* Function: int fas216_eh_device_reset(struct scsi_cmnd *SCpnt)
[all...]
/linux-master/drivers/scsi/pcmcia/
H A Dnsp_message.c11 static void nsp_message_in(struct scsi_cmnd *SCpnt) argument
13 unsigned int base = SCpnt->device->host->io_port;
14 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata;
36 nsp_negate_signal(SCpnt, BUSMON_REQ, "msgin<REQ>");
46 ret = nsp_expect_signal(SCpnt, BUSPHASE_MESSAGE_IN, BUSMON_REQ);
53 static void nsp_message_out(struct scsi_cmnd *SCpnt) argument
55 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata;
68 if (nsp_xfer(SCpnt, BUSPHASE_MESSAGE_OUT)) {
73 ret = nsp_expect_signal(SCpnt, BUSPHASE_MESSAGE_OUT, BUSMON_REQ);
H A Dnsp_cs.h297 static int nsp_queuecommand(struct Scsi_Host *h, struct scsi_cmnd *SCpnt);
300 /*static int nsp_eh_abort (struct scsi_cmnd *SCpnt);*/
301 /*static int nsp_eh_device_reset(struct scsi_cmnd *SCpnt);*/
302 static int nsp_eh_bus_reset (struct scsi_cmnd *SCpnt);
303 static int nsp_eh_host_reset (struct scsi_cmnd *SCpnt);
308 static bool nsphw_start_selection(struct scsi_cmnd *SCpnt);
309 static void nsp_start_timer (struct scsi_cmnd *SCpnt, int time);
310 static int nsp_fifo_count (struct scsi_cmnd *SCpnt);
311 static void nsp_pio_read (struct scsi_cmnd *SCpnt);
312 static void nsp_pio_write (struct scsi_cmnd *SCpnt);
[all...]
H A Dnsp_cs.c136 static inline void nsp_inc_resid(struct scsi_cmnd *SCpnt, int residInc) argument
138 scsi_set_resid(SCpnt, scsi_get_resid(SCpnt) + residInc);
178 * You must be set SCpnt->result before call this function.
180 static void nsp_scsi_done(struct scsi_cmnd *SCpnt) argument
182 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata;
186 scsi_done(SCpnt);
189 static int nsp_queuecommand_lck(struct scsi_cmnd *const SCpnt) argument
191 struct scsi_pointer *scsi_pointer = nsp_priv(SCpnt);
193 /*unsigned int host_id = SCpnt
363 nsphw_start_selection(struct scsi_cmnd *const SCpnt) argument
445 nsp_analyze_sdtr(struct scsi_cmnd *SCpnt) argument
501 nsp_start_timer(struct scsi_cmnd *SCpnt, int time) argument
514 nsp_negate_signal(struct scsi_cmnd *SCpnt, unsigned char mask, char *str) argument
542 nsp_expect_signal(struct scsi_cmnd *SCpnt, unsigned char current_phase, unsigned char mask) argument
577 nsp_xfer(struct scsi_cmnd *const SCpnt, int phase) argument
618 nsp_dataphase_bypass(struct scsi_cmnd *const SCpnt) argument
651 nsp_reselected(struct scsi_cmnd *SCpnt) argument
688 nsp_fifo_count(struct scsi_cmnd *SCpnt) argument
715 nsp_pio_read(struct scsi_cmnd *const SCpnt) argument
818 nsp_pio_write(struct scsi_cmnd *SCpnt) argument
919 nsp_nexus(struct scsi_cmnd *SCpnt) argument
1489 nsp_eh_bus_reset(struct scsi_cmnd *SCpnt) argument
1498 nsp_eh_host_reset(struct scsi_cmnd *SCpnt) argument
[all...]
H A Dnsp_debug.c141 static void show_command(struct scsi_cmnd *SCpnt) argument
143 print_commandk(SCpnt->cmnd);
146 static void show_phase(struct scsi_cmnd *SCpnt) argument
148 int i = nsp_scsi_pointer(SCpnt)->phase;
H A Dsym53c500_cs.c547 static int SYM53C500_queue_lck(struct scsi_cmnd *SCpnt) argument
549 struct sym53c500_cmd_priv *scp = scsi_cmd_priv(SCpnt);
551 int port_base = SCpnt->device->host->io_port;
553 (struct sym53c500_data *)SCpnt->device->host->hostdata;
558 SCpnt->cmnd[0], SCpnt->cmd_len, SCpnt->device->id,
559 (u8)SCpnt->device->lun, scsi_bufflen(SCpnt)));
561 VDEB(for (i = 0; i < SCpnt
586 SYM53C500_host_reset(struct scsi_cmnd *SCpnt) argument
[all...]
/linux-master/drivers/scsi/
H A Dnsp32.c362 static void nsp32_build_identify(struct scsi_cmnd *SCpnt) argument
364 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata;
373 data->msgoutbuf[pos] = IDENTIFY(mode, SCpnt->device->lun); pos++;
381 static void nsp32_build_sdtr(struct scsi_cmnd *SCpnt, argument
385 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata;
400 static void nsp32_build_nop(struct scsi_cmnd *SCpnt) argument
402 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata;
418 static void nsp32_build_reject(struct scsi_cmnd *SCpnt) argument
420 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata;
431 static void nsp32_start_timer(struct scsi_cmnd *SCpnt, in
449 nsp32_selection_autopara(struct scsi_cmnd *SCpnt) argument
581 nsp32_selection_autoscsi(struct scsi_cmnd *SCpnt) argument
757 nsp32_arbitration(struct scsi_cmnd *SCpnt, unsigned int base) argument
806 nsp32_reselection(struct scsi_cmnd *SCpnt, unsigned char newlun) argument
861 nsp32_setup_sg_table(struct scsi_cmnd *SCpnt) argument
908 nsp32_queuecommand_lck(struct scsi_cmnd *SCpnt) argument
1160 struct scsi_cmnd *SCpnt = data->CurrentSC; local
1528 nsp32_scsi_done(struct scsi_cmnd *SCpnt) argument
1566 nsp32_busfree_occur(struct scsi_cmnd *SCpnt, unsigned short execph) argument
1719 nsp32_adjust_busfree(struct scsi_cmnd *SCpnt, unsigned int s_sacklen) argument
1794 nsp32_msgout_occur(struct scsi_cmnd *SCpnt) argument
1860 nsp32_restart_autoscsi(struct scsi_cmnd *SCpnt, unsigned short command) argument
1926 nsp32_msgin_occur(struct scsi_cmnd *SCpnt, unsigned long irq_status, unsigned short execph) argument
2223 nsp32_analyze_sdtr(struct scsi_cmnd *SCpnt) argument
2809 nsp32_eh_abort(struct scsi_cmnd *SCpnt) argument
2879 nsp32_eh_host_reset(struct scsi_cmnd *SCpnt) argument
[all...]
H A Dsr.c87 static blk_status_t sr_init_command(struct scsi_cmnd *SCpnt);
295 static int sr_done(struct scsi_cmnd *SCpnt) argument
297 int result = SCpnt->result;
298 int this_count = scsi_bufflen(SCpnt);
302 struct request *rq = scsi_cmd_to_rq(SCpnt);
306 scmd_printk(KERN_INFO, SCpnt, "done: %x\n", result);
316 (SCpnt->sense_buffer[0] & 0x7f) == 0x70) { /* Sense current */
317 switch (SCpnt->sense_buffer[2]) {
321 if (!(SCpnt->sense_buffer[0] & 0x90))
324 get_unaligned_be32(&SCpnt
360 sr_init_command(struct scsi_cmnd *SCpnt) argument
[all...]
H A Daha1740.c252 SCtmp = ecbptr->SCpnt;
322 static int aha1740_queuecommand_lck(struct scsi_cmnd *SCpnt) argument
326 unchar *cmd = (unchar *) SCpnt->cmnd;
327 unchar target = scmd_id(SCpnt);
328 struct aha1740_hostdata *host = HOSTDATA(SCpnt->device->host);
336 SCpnt->result = 0;
337 done(SCpnt);
351 for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
356 spin_lock_irqsave(SCpnt->device->host->host_lock, flags);
375 spin_unlock_irqrestore(SCpnt
[all...]
H A Daha152x.c571 #define SCDATA(SCpnt) ((struct aha152x_scdata *) (SCpnt)->host_scribble)
572 #define SCNEXT(SCpnt) SCDATA(SCpnt)->next
573 #define SCSEM(SCpnt) SCDATA(SCpnt)->done
927 static int aha152x_internal_queue(struct scsi_cmnd *SCpnt, argument
930 struct aha152x_cmd_priv *acp = aha152x_priv(SCpnt);
931 struct Scsi_Host *shpnt = SCpnt->device->host;
940 if (!SCpnt
998 aha152x_queue_lck(struct scsi_cmnd *SCpnt) argument
1009 reset_done(struct scsi_cmnd *SCpnt) argument
1018 aha152x_scsi_done(struct scsi_cmnd *SCpnt) argument
1030 aha152x_abort(struct scsi_cmnd *SCpnt) argument
1071 aha152x_device_reset(struct scsi_cmnd * SCpnt) argument
1191 aha152x_bus_reset(struct scsi_cmnd *SCpnt) argument
[all...]
H A Dnsp32_debug.c140 static void show_command(struct scsi_cmnd *SCpnt) argument
142 print_commandk(SCpnt->cmnd);
H A Da3000.c139 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, argument
142 struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(SCpnt);
185 if (SCpnt) {
186 if (wh->dma_dir && SCpnt)
H A Dsgiwd93.c142 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, argument
145 struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(SCpnt);
149 if (!SCpnt)
155 hregs = (struct hpc3_scsiregs *) SCpnt->device->host->base;
H A Dwd33c93.h188 typedef int (*dma_setup_t) (struct scsi_cmnd *SCpnt, int dir_in);
190 struct scsi_cmnd *SCpnt, int status);
H A Da2091.c135 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, argument
138 struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(SCpnt);
H A Dgvp11.c186 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, argument
189 struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(SCpnt);
206 if (wh->dma_dir && SCpnt)
/linux-master/drivers/message/fusion/
H A Dmptscsih.h116 extern int mptscsih_qcmd(struct scsi_cmnd *SCpnt);
121 extern int mptscsih_abort(struct scsi_cmnd * SCpnt);
122 extern int mptscsih_dev_reset(struct scsi_cmnd * SCpnt);
123 extern int mptscsih_target_reset(struct scsi_cmnd * SCpnt);
124 extern int mptscsih_bus_reset(struct scsi_cmnd * SCpnt);
125 extern int mptscsih_host_reset(struct scsi_cmnd *SCpnt);
H A Dmptscsih.c92 static int mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt,
171 * @SCpnt: Pointer to scsi_cmnd structure
177 mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, argument
208 sges_left = scsi_dma_map(SCpnt);
214 sg = scsi_sglist(SCpnt);
348 ioc->name, pReq->CDB[0], SCpnt));
1304 * @SCpnt: Pointer to scsi_cmnd structure
1313 mptscsih_qcmd(struct scsi_cmnd *SCpnt) argument
1318 VirtDevice *vdevice = SCpnt->device->hostdata;
1327 hd = shost_priv(SCpnt
1681 mptscsih_abort(struct scsi_cmnd * SCpnt) argument
1804 mptscsih_dev_reset(struct scsi_cmnd * SCpnt) argument
1856 mptscsih_target_reset(struct scsi_cmnd * SCpnt) argument
1916 mptscsih_bus_reset(struct scsi_cmnd * SCpnt) argument
1966 mptscsih_host_reset(struct scsi_cmnd *SCpnt) argument
[all...]
H A Dmptfc.c100 static int mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt);
104 static int mptfc_abort(struct scsi_cmnd *SCpnt);
105 static int mptfc_dev_reset(struct scsi_cmnd *SCpnt);
106 static int mptfc_bus_reset(struct scsi_cmnd *SCpnt);
224 mptfc_abort(struct scsi_cmnd *SCpnt) argument
226 struct Scsi_Host *shost = SCpnt->device->host;
227 struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device));
236 SCpnt->device->id, SCpnt->device->lun));
237 rtn = mptscsih_abort(SCpnt);
243 mptfc_dev_reset(struct scsi_cmnd *SCpnt) argument
262 mptfc_bus_reset(struct scsi_cmnd *SCpnt) argument
679 mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) argument
[all...]
H A Dmptspi.c777 mptspi_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) argument
780 VirtDevice *vdevice = SCpnt->device->hostdata;
784 SCpnt->result = DID_NO_CONNECT << 16;
785 scsi_done(SCpnt);
789 if (SCpnt->device->channel == 1 &&
790 mptscsih_is_phys_disk(ioc, 0, SCpnt->device->id) == 0) {
791 SCpnt->result = DID_NO_CONNECT << 16;
792 scsi_done(SCpnt);
796 if (spi_dv_pending(scsi_target(SCpnt->device)))
797 ddvprintk(ioc, scsi_print_command(SCpnt));
[all...]

Completed in 230 milliseconds

12