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

123

/drivers/scsi/arm/
H A Dscsi.h82 static inline void init_SCp(struct scsi_cmnd *SCpnt) argument
84 memset(&SCpnt->SCp, 0, sizeof(struct scsi_pointer));
86 if (scsi_bufflen(SCpnt)) {
89 SCpnt->SCp.buffer = scsi_sglist(SCpnt);
90 SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1;
91 SCpnt->SCp.ptr = sg_virt(SCpnt->SCp.buffer);
92 SCpnt
[all...]
H A Dqueue.h52 #define queue_add_cmd_ordered(queue,SCpnt) \
53 __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE)
54 #define queue_add_cmd_tail(queue,SCpnt) \
55 __queue_add(queue,SCpnt,0)
57 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
60 * SCpnt - command to add
64 extern int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head);
99 * Function: int queue_remove_cmd (Queue_t *queue, struct scsi_cmnd *SCpnt)
102 * SCpnt
[all...]
H A Dqueue.c32 struct scsi_cmnd *SCpnt; member in struct:queue_entry
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) argument
124 q->SCpnt = SCpnt;
151 return q->SCpnt;
165 struct scsi_cmnd *SCpnt local
189 struct scsi_cmnd *SCpnt = NULL; local
213 struct scsi_cmnd *SCpnt = NULL; local
285 queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt) argument
[all...]
H A Dacornscsi.c395 host->SCpnt = NULL;
573 if (host->SCpnt)
574 return '0' + host->SCpnt->device->id;
711 struct scsi_cmnd *SCpnt; local
714 SCpnt = host->origSCpnt;
718 if (!SCpnt) {
719 SCpnt = queue_remove_exclude(&host->queues.issue, host->busyluns);
720 if (!SCpnt)
726 if (host->scsi.disconnectable && host->SCpnt) {
727 queue_add_cmd_tail(&host->queues.disconnected, host->SCpnt);
803 struct scsi_cmnd *SCpnt = *SCpntp; local
1317 struct scsi_cmnd *SCpnt = host->SCpnt; local
1692 struct scsi_cmnd *SCpnt = host->SCpnt; local
2513 acornscsi_queuecmd_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) argument
2577 struct scsi_cmnd *SCpnt = *SCpntp1; local
2598 acornscsi_do_abort(AS_Host *host, struct scsi_cmnd *SCpnt) argument
2690 acornscsi_abort(struct scsi_cmnd *SCpnt) argument
2770 acornscsi_bus_reset(struct scsi_cmnd *SCpnt) argument
[all...]
H A Dfas216.c191 printk(" { magic_start=%lX host=%p SCpnt=%p origSCpnt=%p\n",
192 info->magic_start, info->host, info->SCpnt,
284 if (info->SCpnt)
285 return '0' + info->SCpnt->device->id;
300 struct scsi_cmnd *SCpnt, char *fmt, ...)
308 fas216_do_log(info, '0' + SCpnt->device->id, fmt, args);
312 __scsi_print_command(SCpnt->cmnd);
517 struct fas216_device *dev = &info->device[info->SCpnt->device->id];
600 fas216_set_sync(info, info->SCpnt->device->id);
613 fas216_set_sync(info, info->SCpnt
299 fas216_log_command(FAS216_Info *info, int level, struct scsi_cmnd *SCpnt, char *fmt, ...) argument
1664 __fas216_start_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) argument
1756 fas216_start_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) argument
1810 fas216_allocate_tag(FAS216_Info *info, struct scsi_cmnd *SCpnt) argument
1844 fas216_do_bus_device_reset(FAS216_Info *info, struct scsi_cmnd *SCpnt) argument
1893 struct scsi_cmnd *SCpnt = NULL; local
1981 fas216_devicereset_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) argument
1999 fas216_rq_sns_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) argument
2034 fas216_std_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) argument
2137 struct scsi_cmnd *SCpnt; local
2201 fas216_queue_command_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) argument
2251 fas216_internal_done(struct scsi_cmnd *SCpnt) argument
2268 fas216_noqueue_command_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) argument
2350 fas216_find_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) argument
2418 fas216_eh_abort(struct scsi_cmnd *SCpnt) argument
2475 fas216_eh_device_reset(struct scsi_cmnd *SCpnt) argument
2556 fas216_eh_bus_reset(struct scsi_cmnd *SCpnt) argument
2656 fas216_eh_host_reset(struct scsi_cmnd *SCpnt) argument
[all...]
/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.c135 static inline void nsp_inc_resid(struct scsi_cmnd *SCpnt, int residInc) argument
137 scsi_set_resid(SCpnt, scsi_get_resid(SCpnt) + residInc);
176 * You must be set SCpnt->result before call this function.
178 static void nsp_scsi_done(struct scsi_cmnd *SCpnt) argument
180 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata;
184 SCpnt->scsi_done(SCpnt);
187 static int nsp_queuecommand_lck(struct scsi_cmnd *SCpnt, argument
191 /*unsigned int host_id = SCpnt
365 nsphw_start_selection(struct scsi_cmnd *SCpnt) argument
446 nsp_analyze_sdtr(struct scsi_cmnd *SCpnt) argument
504 nsp_start_timer(struct scsi_cmnd *SCpnt, int time) argument
517 nsp_negate_signal(struct scsi_cmnd *SCpnt, unsigned char mask, char *str) argument
545 nsp_expect_signal(struct scsi_cmnd *SCpnt, unsigned char current_phase, unsigned char mask) argument
580 nsp_xfer(struct scsi_cmnd *SCpnt, int phase) argument
620 nsp_dataphase_bypass(struct scsi_cmnd *SCpnt) argument
652 nsp_reselected(struct scsi_cmnd *SCpnt) argument
691 nsp_fifo_count(struct scsi_cmnd *SCpnt) argument
718 nsp_pio_read(struct scsi_cmnd *SCpnt) argument
817 nsp_pio_write(struct scsi_cmnd *SCpnt) argument
914 nsp_nexus(struct scsi_cmnd *SCpnt) argument
1510 nsp_eh_bus_reset(struct scsi_cmnd *SCpnt) argument
1519 nsp_eh_host_reset(struct scsi_cmnd *SCpnt) argument
[all...]
H A Dnsp_cs.h302 static int nsp_queuecommand(struct Scsi_Host *h, struct scsi_cmnd *SCpnt);
305 /*static int nsp_eh_abort (struct scsi_cmnd *SCpnt);*/
306 /*static int nsp_eh_device_reset(struct scsi_cmnd *SCpnt);*/
307 static int nsp_eh_bus_reset (struct scsi_cmnd *SCpnt);
308 static int nsp_eh_host_reset (struct scsi_cmnd *SCpnt);
313 static int nsphw_start_selection(struct scsi_cmnd *SCpnt);
314 static void nsp_start_timer (struct scsi_cmnd *SCpnt, int time);
315 static int nsp_fifo_count (struct scsi_cmnd *SCpnt);
316 static void nsp_pio_read (struct scsi_cmnd *SCpnt);
317 static void nsp_pio_write (struct scsi_cmnd *SCpnt);
[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 = SCpnt->SCp.phase;
/drivers/scsi/
H A Dfdomain.h24 extern int fdomain_16x0_bus_reset(struct scsi_cmnd *SCpnt);
H A Daha1542.c560 static int aha1542_queuecommand_lck(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *)) argument
564 unchar *cmd = (unchar *) SCpnt->cmnd;
565 unchar target = SCpnt->device->id;
566 unchar lun = SCpnt->device->lun;
568 int bufflen = scsi_bufflen(SCpnt);
575 mb = HOSTDATA(SCpnt->device->host)->mb;
576 ccb = HOSTDATA(SCpnt->device->host)->ccb;
579 SCpnt->result = DID_TIME_OUT << 16;
580 done(SCpnt); return 0;
593 SCpnt
1288 aha1542_dev_reset(Scsi_Cmnd * SCpnt) argument
1380 aha1542_bus_reset(Scsi_Cmnd * SCpnt) argument
1444 aha1542_host_reset(Scsi_Cmnd * SCpnt) argument
[all...]
H A Deata.c87 * + Use SCpnt->sc_data_direction if set.
806 struct scsi_cmnd *SCpnt; member in struct:mscp
1616 struct scsi_cmnd *SCpnt; local
1619 SCpnt = cpp->SCpnt;
1620 pci_dir = SCpnt->sc_data_direction;
1622 if (SCpnt->sense_buffer)
1624 H2DEV(pci_map_single(ha->pdev, SCpnt->sense_buffer,
1629 if (!scsi_sg_count(SCpnt)) {
1634 count = pci_map_sg(ha->pdev, scsi_sglist(SCpnt), scsi_sg_coun
1655 struct scsi_cmnd *SCpnt; local
1681 struct scsi_cmnd *SCpnt; local
1722 struct scsi_cmnd *SCpnt; local
1760 eata2x_queuecommand_lck(struct scsi_cmnd *SCpnt, void (*done) (struct scsi_cmnd *)) argument
1915 struct scsi_cmnd *SCpnt; local
2113 struct scsi_cmnd *SCpnt; local
2253 struct scsi_cmnd *SCpnt; local
2298 struct scsi_cmnd *SCpnt; local
[all...]
H A Du14-34f.c66 * + Use SCpnt->sc_data_direction if set.
579 struct scsi_cmnd *SCpnt; member in struct:mscp
1118 struct scsi_cmnd *SCpnt; local
1120 cpp = &HD(j)->cp[i]; SCpnt = cpp->SCpnt;
1121 pci_dir = SCpnt->sc_data_direction;
1123 if (SCpnt->sense_buffer)
1124 cpp->sense_addr = H2DEV(pci_map_single(HD(j)->pdev, SCpnt->sense_buffer,
1129 if (scsi_bufflen(SCpnt)) {
1130 count = scsi_dma_map(SCpnt);
1156 struct scsi_cmnd *SCpnt; local
1177 struct scsi_cmnd *SCpnt; local
1213 struct scsi_cmnd *SCpnt; local
1250 u14_34f_queuecommand_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) argument
1399 struct scsi_cmnd *SCpnt; local
1580 struct scsi_cmnd *SCpnt; local
1680 struct scsi_cmnd *SCpnt; local
1720 struct scsi_cmnd *SCpnt; local
[all...]
H A Dnsp32.c368 static void nsp32_build_identify(struct scsi_cmnd *SCpnt) argument
370 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata;
379 data->msgoutbuf[pos] = IDENTIFY(mode, SCpnt->device->lun); pos++;
387 static void nsp32_build_sdtr(struct scsi_cmnd *SCpnt, argument
391 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata;
406 static void nsp32_build_nop(struct scsi_cmnd *SCpnt) argument
408 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata;
424 static void nsp32_build_reject(struct scsi_cmnd *SCpnt) argument
426 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata;
437 static void nsp32_start_timer(struct scsi_cmnd *SCpnt, in
455 nsp32_selection_autopara(struct scsi_cmnd *SCpnt) argument
586 nsp32_selection_autoscsi(struct scsi_cmnd *SCpnt) argument
761 nsp32_arbitration(struct scsi_cmnd *SCpnt, unsigned int base) argument
810 nsp32_reselection(struct scsi_cmnd *SCpnt, unsigned char newlun) argument
864 nsp32_setup_sg_table(struct scsi_cmnd *SCpnt) argument
910 nsp32_queuecommand_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) argument
1165 struct scsi_cmnd *SCpnt = data->CurrentSC; local
1553 nsp32_scsi_done(struct scsi_cmnd *SCpnt) argument
1591 nsp32_busfree_occur(struct scsi_cmnd *SCpnt, unsigned short execph) argument
1749 nsp32_adjust_busfree(struct scsi_cmnd *SCpnt, unsigned int s_sacklen) argument
1822 nsp32_msgout_occur(struct scsi_cmnd *SCpnt) argument
1898 nsp32_restart_autoscsi(struct scsi_cmnd *SCpnt, unsigned short command) argument
1964 nsp32_msgin_occur(struct scsi_cmnd *SCpnt, unsigned long irq_status, unsigned short execph) argument
2261 nsp32_analyze_sdtr(struct scsi_cmnd *SCpnt) argument
2851 nsp32_eh_abort(struct scsi_cmnd *SCpnt) argument
2879 nsp32_eh_bus_reset(struct scsi_cmnd *SCpnt) argument
2939 nsp32_eh_host_reset(struct scsi_cmnd *SCpnt) argument
[all...]
H A Dsr.c299 static int sr_done(struct scsi_cmnd *SCpnt) argument
301 int result = SCpnt->result;
302 int this_count = scsi_bufflen(SCpnt);
306 struct scsi_cd *cd = scsi_cd(SCpnt->request->rq_disk);
319 (SCpnt->sense_buffer[0] & 0x7f) == 0x70) { /* Sense current */
320 switch (SCpnt->sense_buffer[2]) {
324 if (!(SCpnt->sense_buffer[0] & 0x90))
326 error_sector = (SCpnt->sense_buffer[3] << 24) |
327 (SCpnt->sense_buffer[4] << 16) |
328 (SCpnt
371 struct scsi_cmnd *SCpnt; local
[all...]
H A Dsd.c669 * @SCpnt: pointer to mid-level's per scsi command structure that
676 struct scsi_cmnd *SCpnt; local
706 SCpnt = rq->special;
713 SCSI_LOG_HLQUEUE(1, scmd_printk(KERN_INFO, SCpnt,
721 SCSI_LOG_HLQUEUE(2, scmd_printk(KERN_INFO, SCpnt,
724 SCSI_LOG_HLQUEUE(2, scmd_printk(KERN_INFO, SCpnt,
725 "Retry with 0x%p\n", SCpnt));
755 SCSI_LOG_HLQUEUE(2, scmd_printk(KERN_INFO, SCpnt, "block=%llu\n",
771 scmd_printk(KERN_ERR, SCpnt,
781 scmd_printk(KERN_ERR, SCpnt,
1456 sd_done(struct scsi_cmnd *SCpnt) argument
[all...]
H A Daha1740.c266 SCtmp = ecbptr->SCpnt;
333 static int aha1740_queuecommand_lck(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *)) argument
336 unchar *cmd = (unchar *) SCpnt->cmnd;
337 unchar target = scmd_id(SCpnt);
338 struct aha1740_hostdata *host = HOSTDATA(SCpnt->device->host);
346 SCpnt->result = 0;
347 done(SCpnt);
361 for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
366 spin_lock_irqsave(SCpnt->device->host->host_lock, flags);
385 spin_unlock_irqrestore(SCpnt
[all...]
H A Daha1542.h136 static int aha1542_bus_reset(Scsi_Cmnd * SCpnt);
137 static int aha1542_dev_reset(Scsi_Cmnd * SCpnt);
138 static int aha1542_host_reset(Scsi_Cmnd * SCpnt);
140 static int aha1542_old_abort(Scsi_Cmnd * SCpnt);
H A Dwd7000.c465 struct scsi_cmnd *SCpnt;/* scsi_cmnd using this SCB */ member in struct:scb
888 scbs[i].SCpnt = NULL;
891 scbs[MAX_SCBS - 1].SCpnt = NULL;
1006 struct scsi_cmnd *SCpnt; local
1064 SCpnt = scb->SCpnt;
1065 if (--(SCpnt->SCp.phase) <= 0) { /* all scbs are done */
1069 SCpnt->result = errstatus;
1073 SCpnt->scsi_done(SCpnt);
1084 wd7000_queuecommand_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) argument
1587 wd7000_host_reset(struct scsi_cmnd *SCpnt) argument
[all...]
H A Dultrastor.c292 static inline void build_sg_list(struct mscp *, struct scsi_cmnd *SCpnt);
683 static inline void build_sg_list(struct mscp *mscp, struct scsi_cmnd *SCpnt)
689 max = scsi_sg_count(SCpnt);
690 scsi_for_each_sg(SCpnt, sg, max, i) {
703 static int ultrastor_queuecommand_lck(struct scsi_cmnd *SCpnt,
735 my_mscp->ca = SCpnt->device->type != TYPE_TAPE;
736 my_mscp->target_id = SCpnt->device->id;
738 my_mscp->lun = SCpnt->device->lun;
739 if (scsi_sg_count(SCpnt)) {
742 build_sg_list(my_mscp, SCpnt);
[all...]
H A Dfd_mcs.c1074 static int fd_mcs_queue_lck(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *)) argument
1076 struct Scsi_Host *shpnt = SCpnt->device->host;
1083 SCpnt->target, *(unsigned char *) SCpnt->cmnd,
1084 scsi_sg_count(SCpnt), scsi_bufflen(SCpnt));
1089 SCpnt->scsi_done = done; /* Save this for the done function */
1090 current_SC = SCpnt;
1127 static void fd_mcs_print_info(Scsi_Cmnd * SCpnt) argument
1132 struct Scsi_Host *shpnt = SCpnt
1198 fd_mcs_abort(Scsi_Cmnd * SCpnt) argument
1234 fd_mcs_bus_reset(Scsi_Cmnd * SCpnt) argument
[all...]
/drivers/message/i2o/
H A Di2o_scsi.c496 * @SCpnt: scsi command pointer
508 static int i2o_scsi_queuecommand_lck(struct scsi_cmnd *SCpnt, argument
529 i2o_dev = SCpnt->device->hostdata;
531 SCpnt->scsi_done = done;
535 SCpnt->result = DID_NO_CONNECT << 16;
536 done(SCpnt);
548 switch (SCpnt->sc_data_direction) {
568 SCpnt->result = DID_NO_CONNECT << 16;
569 done(SCpnt);
591 if (SCpnt
705 i2o_scsi_abort(struct scsi_cmnd *SCpnt) argument
[all...]
/drivers/message/fusion/
H A Dmptscsih.h116 extern int mptscsih_qcmd(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *));
121 extern int mptscsih_abort(struct scsi_cmnd * SCpnt);
122 extern int mptscsih_dev_reset(struct scsi_cmnd * SCpnt);
123 extern int mptscsih_bus_reset(struct scsi_cmnd * SCpnt);
124 extern int mptscsih_host_reset(struct scsi_cmnd *SCpnt);
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);
107 static int mptfc_host_reset(struct scsi_cmnd *SCpnt);
187 mptfc_block_error_handler(struct scsi_cmnd *SCpnt, argument
188 int (*func)(struct scsi_cmnd *SCpnt),
192 struct scsi_device *sdev = SCpnt->device;
200 hd = shost_priv(SCpnt->device->host);
210 SCpnt
236 mptfc_abort(struct scsi_cmnd *SCpnt) argument
243 mptfc_dev_reset(struct scsi_cmnd *SCpnt) argument
250 mptfc_bus_reset(struct scsi_cmnd *SCpnt) argument
257 mptfc_host_reset(struct scsi_cmnd *SCpnt) argument
652 mptfc_qcmd_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) argument
[all...]
H A Dmptscsih.c92 static int mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt,
173 * @SCpnt: Pointer to scsi_cmnd structure
179 mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, argument
210 sges_left = scsi_dma_map(SCpnt);
216 sg = scsi_sglist(SCpnt);
350 ioc->name, pReq->CDB[0], SCpnt));
1389 * @SCpnt: Pointer to scsi_cmnd structure
1399 mptscsih_qcmd(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) argument
1404 VirtDevice *vdevice = SCpnt->device->hostdata;
1413 hd = shost_priv(SCpnt
1775 mptscsih_abort(struct scsi_cmnd * SCpnt) argument
1898 mptscsih_dev_reset(struct scsi_cmnd * SCpnt) argument
1958 mptscsih_bus_reset(struct scsi_cmnd * SCpnt) argument
2008 mptscsih_host_reset(struct scsi_cmnd *SCpnt) argument
[all...]

Completed in 446 milliseconds

123