Home
last modified time | relevance | path

Searched refs:SCpnt (Results 1 – 25 of 40) sorted by relevance

12

/openbmc/linux/drivers/scsi/arm/
H A Dacornscsi.c553 if (host->SCpnt) in acornscsi_target()
699 if (!SCpnt) { in acornscsi_kick()
701 if (!SCpnt) in acornscsi_kick()
714 host->SCpnt = NULL; in acornscsi_kick()
731 host->SCpnt = SCpnt; in acornscsi_kick()
781 if (SCpnt) { in acornscsi_done()
851 scsi_done(SCpnt); in acornscsi_done()
1289 struct scsi_cmnd *SCpnt = host->SCpnt; in acornscsi_sendcommand() local
2422 done(SCpnt); in acornscsi_queuecmd_lck()
2442 done(SCpnt); in acornscsi_queuecmd_lck()
[all …]
H A Dqueue.c33 struct scsi_cmnd *SCpnt; member
78 q->SCpnt = NULL; in queue_initialise()
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
179 return SCpnt; in queue_remove_exclude()
198 return SCpnt; in queue_remove()
220 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun && in queue_remove_tgtluntag()
228 return SCpnt; in queue_remove_tgtluntag()
270 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun) { in queue_probetgtlun()
[all …]
H A Dfas216.c286 if (info->SCpnt) in fas216_target()
1776 info->SCpnt = SCpnt; in fas216_start_command()
1855 info->SCpnt = SCpnt; in fas216_do_bus_device_reset()
1926 if (!SCpnt) { in fas216_kick()
1934 if (!SCpnt) { in fas216_kick()
2026 fas216_cmd_priv(SCpnt)->scsi_done(SCpnt); in fas216_rq_sns_done()
2100 fas216_cmd_priv(SCpnt)->scsi_done(SCpnt); in fas216_std_done()
2149 SCpnt = info->SCpnt; in fas216_done()
2381 } else if (info->SCpnt == SCpnt) { in fas216_find_command()
2463 scmd_printk(KERN_WARNING, SCpnt, "abort %p failed\n", SCpnt); in fas216_eh_abort()
[all …]
H A Darm_scsi.h88 static inline void init_SCp(struct scsi_cmnd *SCpnt) in init_SCp() argument
94 if (scsi_bufflen(SCpnt)) { in init_SCp()
97 scsi_pointer->buffer = scsi_sglist(SCpnt); in init_SCp()
101 scsi_pointer->phase = scsi_bufflen(SCpnt); in init_SCp()
109 unsigned i, sg_count = scsi_sg_count(SCpnt); in init_SCp()
111 scsi_for_each_sg(SCpnt, sg, sg_count, i) in init_SCp()
114 if (scsi_bufflen(SCpnt) != len) { in init_SCp()
118 SCpnt->device->host->host_no, in init_SCp()
119 '0' + SCpnt->device->id, in init_SCp()
120 scsi_bufflen(SCpnt), len); in init_SCp()
[all …]
H A Dqueue.h49 #define queue_add_cmd_ordered(queue,SCpnt) \ argument
50 __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE)
51 #define queue_add_cmd_tail(queue,SCpnt) \ argument
52 __queue_add(queue,SCpnt,0)
61 extern int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head);
102 int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt);
H A Dfas216.h216 struct scsi_cmnd *SCpnt; /* currently processing command */ member
347 extern int fas216_queue_command(struct Scsi_Host *h, struct scsi_cmnd *SCpnt);
381 extern int fas216_eh_abort(struct scsi_cmnd *SCpnt);
388 extern int fas216_eh_device_reset(struct scsi_cmnd *SCpnt);
395 extern int fas216_eh_bus_reset(struct scsi_cmnd *SCpnt);
402 extern int fas216_eh_host_reset(struct scsi_cmnd *SCpnt);
/openbmc/linux/drivers/scsi/pcmcia/
H A Dnsp_cs.c138 scsi_set_resid(SCpnt, scsi_get_resid(SCpnt) + residInc); in nsp_inc_resid()
186 scsi_done(SCpnt); in nsp_scsi_done()
201 SCpnt, target, SCpnt->device->lun, scsi_sglist(SCpnt), in nsp_queuecommand_lck()
202 scsi_bufflen(SCpnt), scsi_sg_count(SCpnt)); in nsp_queuecommand_lck()
208 nsp_scsi_done(SCpnt); in nsp_queuecommand_lck()
218 nsp_scsi_done(SCpnt); in nsp_queuecommand_lck()
223 show_command(SCpnt); in nsp_queuecommand_lck()
232 scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); in nsp_queuecommand_lck()
642 nsp_pio_read(SCpnt); in nsp_dataphase_bypass()
679 nsp_nexus(SCpnt); in nsp_reselected()
[all …]
H A Dnsp_cs.h302 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);
310 static int nsp_fifo_count (struct scsi_cmnd *SCpnt);
311 static void nsp_pio_read (struct scsi_cmnd *SCpnt);
316 static int nsp_negate_signal (struct scsi_cmnd *SCpnt,
318 static int nsp_expect_signal (struct scsi_cmnd *SCpnt,
331 static void show_command (struct scsi_cmnd *SCpnt);
332 static void show_phase (struct scsi_cmnd *SCpnt);
337 # define show_phase(SCpnt) /* */ argument
[all …]
H A Dnsp_message.c11 static void nsp_message_in(struct scsi_cmnd *SCpnt) in nsp_message_in() argument
13 unsigned int base = SCpnt->device->host->io_port; in nsp_message_in()
14 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_message_in()
36 nsp_negate_signal(SCpnt, BUSMON_REQ, "msgin<REQ>"); in nsp_message_in()
46 ret = nsp_expect_signal(SCpnt, BUSPHASE_MESSAGE_IN, BUSMON_REQ); in nsp_message_in()
53 static void nsp_message_out(struct scsi_cmnd *SCpnt) in nsp_message_out() argument
55 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_message_out()
68 if (nsp_xfer(SCpnt, BUSPHASE_MESSAGE_OUT)) { in nsp_message_out()
73 ret = nsp_expect_signal(SCpnt, BUSPHASE_MESSAGE_OUT, BUSMON_REQ); in nsp_message_out()
H A Dsym53c500_cs.c551 int port_base = SCpnt->device->host->io_port; in SYM53C500_queue_lck()
558 SCpnt->cmnd[0], SCpnt->cmd_len, SCpnt->device->id, in SYM53C500_queue_lck()
559 (u8)SCpnt->device->lun, scsi_bufflen(SCpnt))); in SYM53C500_queue_lck()
561 VDEB(for (i = 0; i < SCpnt->cmd_len; i++) in SYM53C500_queue_lck()
565 data->current_SC = SCpnt; in SYM53C500_queue_lck()
575 for (i = 0; i < SCpnt->cmd_len; i++) { in SYM53C500_queue_lck()
576 outb(SCpnt->cmnd[i], port_base + SCSI_FIFO); in SYM53C500_queue_lck()
586 SYM53C500_host_reset(struct scsi_cmnd *SCpnt) in DEF_SCSI_QCMD()
588 int port_base = SCpnt->device->host->io_port; in DEF_SCSI_QCMD()
591 spin_lock_irq(SCpnt->device->host->host_lock); in DEF_SCSI_QCMD()
[all …]
H A Dnsp_debug.c141 static void show_command(struct scsi_cmnd *SCpnt) in show_command() argument
143 print_commandk(SCpnt->cmnd); in show_command()
146 static void show_phase(struct scsi_cmnd *SCpnt) in show_phase() argument
148 int i = nsp_scsi_pointer(SCpnt)->phase; in show_phase()
/openbmc/linux/drivers/scsi/
H A Dnsp32.c919 SCpnt->device->id, SCpnt->device->lun, SCpnt->cmnd[0], in nsp32_queuecommand_lck()
920 SCpnt->cmd_len, scsi_sg_count(SCpnt), scsi_sglist(SCpnt), in nsp32_queuecommand_lck()
927 done(SCpnt); in nsp32_queuecommand_lck()
932 if (scmd_id(SCpnt) == SCpnt->device->host->this_id) { in nsp32_queuecommand_lck()
935 done(SCpnt); in nsp32_queuecommand_lck()
943 done(SCpnt); in nsp32_queuecommand_lck()
951 scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); in nsp32_queuecommand_lck()
956 cur_lunt = &(data->lunt[SCpnt->device->id][SCpnt->device->lun]); in nsp32_queuecommand_lck()
957 cur_lunt->SCpnt = SCpnt; in nsp32_queuecommand_lck()
1689 nsp32_priv(SCpnt)->status, scsi_get_resid(SCpnt)); in nsp32_busfree_occur()
[all …]
H A Dsr.c296 int result = SCpnt->result; in sr_done()
400 SCpnt->cmnd[0] = WRITE_10; in sr_init_command()
404 SCpnt->cmnd[0] = READ_10; in sr_init_command()
419 scmd_printk(KERN_ERR, SCpnt, in sr_init_command()
421 size, scsi_bufflen(SCpnt)); in sr_init_command()
423 SCpnt->sdb.length = size; in sr_init_command()
445 SCpnt->cmnd[1] = 0; in sr_init_command()
454 SCpnt->cmnd[6] = SCpnt->cmnd[9] = 0; in sr_init_command()
464 SCpnt->allowed = MAX_RETRIES; in sr_init_command()
465 SCpnt->cmd_len = 10; in sr_init_command()
[all …]
H A Daha1740.c252 SCtmp = ecbptr->SCpnt; in aha1740_intr_handle()
326 unchar *cmd = (unchar *) SCpnt->cmnd; in aha1740_queuecommand_lck()
327 unchar target = scmd_id(SCpnt); in aha1740_queuecommand_lck()
336 SCpnt->result = 0; in aha1740_queuecommand_lck()
337 done(SCpnt); in aha1740_queuecommand_lck()
391 memcpy(host->ecb[ecbno].cdb, cmd, SCpnt->cmd_len); in aha1740_queuecommand_lck()
396 if(SCpnt->host_scribble == NULL) { in aha1740_queuecommand_lck()
403 nseg = scsi_dma_map(SCpnt); in aha1740_queuecommand_lck()
414 scsi_for_each_sg(SCpnt, sg, nseg, i) { in aha1740_queuecommand_lck()
429 host->ecb[ecbno].lun = SCpnt->device->lun; in aha1740_queuecommand_lck()
[all …]
H A Daha152x.c571 #define SCDATA(SCpnt) ((struct aha152x_scdata *) (SCpnt)->host_scribble) argument
572 #define SCNEXT(SCpnt) SCDATA(SCpnt)->next argument
573 #define SCSEM(SCpnt) SCDATA(SCpnt)->done argument
940 if (!SCpnt->host_scribble || SCSEM(SCpnt) || SCNEXT(SCpnt)) { in aha152x_internal_queue()
952 SCNEXT(SCpnt) = NULL; in aha152x_internal_queue()
967 scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); in aha152x_internal_queue()
1011 if(SCSEM(SCpnt)) { in DEF_SCSI_QCMD()
1012 complete(SCSEM(SCpnt)); in DEF_SCSI_QCMD()
1021 reset_done(SCpnt); in aha152x_scsi_done()
1023 scsi_done(SCpnt); in aha152x_scsi_done()
[all …]
H A Da3000.c139 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, in dma_stop() argument
142 struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(SCpnt); in dma_stop()
185 if (SCpnt) { in dma_stop()
186 if (wh->dma_dir && SCpnt) in dma_stop()
H A Dsgiwd93.c142 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, in dma_stop() argument
145 struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(SCpnt); in dma_stop()
149 if (!SCpnt) in dma_stop()
155 hregs = (struct hpc3_scsiregs *) SCpnt->device->host->base; in dma_stop()
H A Dsd.c2119 int result = SCpnt->result; in sd_done()
2139 scsi_set_resid(SCpnt, 0); in sd_done()
2151 resid = scsi_get_resid(SCpnt); in sd_done()
2156 scsi_print_command(SCpnt); in sd_done()
2157 resid = min(scsi_bufflen(SCpnt), in sd_done()
2159 scsi_set_resid(SCpnt, resid); in sd_done()
2177 good_bytes = sd_completed_bytes(SCpnt); in sd_done()
2180 good_bytes = scsi_bufflen(SCpnt); in sd_done()
2187 SCpnt->result = 0; in sd_done()
2201 switch (SCpnt->cmnd[0]) { in sd_done()
[all …]
H A Dnsp32_debug.c140 static void show_command(struct scsi_cmnd *SCpnt) in show_command() argument
142 print_commandk(SCpnt->cmnd); in show_command()
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 D3w-9xxx.c1729 sdev_printk(KERN_WARNING, SCpnt->device, in twa_scsi_eh_reset()
1731 TW_DRIVER, 0x2c, SCpnt->cmnd[0]); in twa_scsi_eh_reset()
1763 SCpnt->result = (DID_BAD_TARGET << 16); in twa_scsi_queue_lck()
1764 done(SCpnt); in twa_scsi_queue_lck()
1773 tw_dev->srb[request_id] = SCpnt; in twa_scsi_queue_lck()
1778 if (twa_command_mapped(SCpnt)) in twa_scsi_queue_lck()
1779 scsi_dma_unmap(SCpnt); in twa_scsi_queue_lck()
1783 SCpnt->result = (DID_ERROR << 16); in twa_scsi_queue_lck()
1784 if (twa_command_mapped(SCpnt)) in twa_scsi_queue_lck()
1785 scsi_dma_unmap(SCpnt); in twa_scsi_queue_lck()
[all …]
/openbmc/linux/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_bus_reset(struct scsi_cmnd * SCpnt);
124 extern int mptscsih_host_reset(struct scsi_cmnd *SCpnt);
H A Dmptfc.c199 hd = shost_priv(SCpnt->device->host); in mptfc_block_error_handler()
209 SCpnt->device->id, SCpnt->device->lun, in mptfc_block_error_handler()
223 SCpnt->device->id, SCpnt->device->lun, ready, in mptfc_block_error_handler()
230 SCpnt->device->id, SCpnt->device->lun)); in mptfc_block_error_handler()
231 return (*func)(SCpnt); in mptfc_block_error_handler()
235 mptfc_abort(struct scsi_cmnd *SCpnt) in mptfc_abort() argument
652 scsi_done(SCpnt); in mptfc_qcmd()
658 SCpnt->result = err; in mptfc_qcmd()
659 scsi_done(SCpnt); in mptfc_qcmd()
667 scsi_done(SCpnt); in mptfc_qcmd()
[all …]
H A Dmptscsih.c214 sg = scsi_sglist(SCpnt); in mptscsih_AddSGE()
1331 ioc->name, SCpnt)); in mptscsih_qcmd()
1695 scsi_done(SCpnt); in mptscsih_abort()
1710 ioc->name, SCpnt)); in mptscsih_abort()
1712 scsi_done(SCpnt); in mptscsih_abort()
1722 ioc->name, SCpnt)); in mptscsih_abort()
1733 ioc->name, SCpnt)); in mptscsih_abort()
1748 SCpnt)); in mptscsih_abort()
1777 ioc->name, SCpnt)); in mptscsih_abort()
1789 SCpnt); in mptscsih_abort()
[all …]
H A Dmptspi.c777 mptspi_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) in mptspi_qcmd() argument
780 VirtDevice *vdevice = SCpnt->device->hostdata; in mptspi_qcmd()
784 SCpnt->result = DID_NO_CONNECT << 16; in mptspi_qcmd()
785 scsi_done(SCpnt); in mptspi_qcmd()
789 if (SCpnt->device->channel == 1 && in mptspi_qcmd()
790 mptscsih_is_phys_disk(ioc, 0, SCpnt->device->id) == 0) { in mptspi_qcmd()
791 SCpnt->result = DID_NO_CONNECT << 16; in mptspi_qcmd()
792 scsi_done(SCpnt); in mptspi_qcmd()
796 if (spi_dv_pending(scsi_target(SCpnt->device))) in mptspi_qcmd()
797 ddvprintk(ioc, scsi_print_command(SCpnt)); in mptspi_qcmd()
[all …]

12