Home
last modified time | relevance | path

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

12

/linux/drivers/scsi/pcmcia/
A Dnsp_cs.c133 scsi_set_resid(SCpnt, scsi_get_resid(SCpnt) + residInc); in nsp_inc_resid()
195 SCpnt, target, SCpnt->device->lun, scsi_sglist(SCpnt), in nsp_queuecommand_lck()
196 scsi_bufflen(SCpnt), scsi_sg_count(SCpnt)); in nsp_queuecommand_lck()
226 scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); in nsp_queuecommand_lck()
235 SCpnt->SCp.buffer = scsi_sglist(SCpnt); in nsp_queuecommand_lck()
724 SCpnt, scsi_get_resid(SCpnt), ocount, SCpnt->SCp.ptr, in nsp_pio_read()
725 SCpnt->SCp.this_residual, SCpnt->SCp.buffer, in nsp_pio_read()
787 SCpnt->SCp.buffer = sg_next(SCpnt->SCp.buffer); in nsp_pio_read()
800 scsi_get_resid(SCpnt), SCpnt->SCp.this_residual, in nsp_pio_read()
824 SCpnt->SCp.buffer, SCpnt->SCp.buffers_residual, in nsp_pio_write()
[all …]
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 int 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);
312 static void nsp_pio_write (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);
[all …]
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()
A Dsym53c500_cs.c543 int port_base = SCpnt->device->host->io_port; in SYM53C500_queue_lck()
550 SCpnt->cmnd[0], SCpnt->cmd_len, SCpnt->device->id, in SYM53C500_queue_lck()
551 (u8)SCpnt->device->lun, scsi_bufflen(SCpnt))); in SYM53C500_queue_lck()
553 VDEB(for (i = 0; i < SCpnt->cmd_len; i++) in SYM53C500_queue_lck()
557 data->current_SC = SCpnt; in SYM53C500_queue_lck()
567 for (i = 0; i < SCpnt->cmd_len; i++) { in SYM53C500_queue_lck()
568 outb(SCpnt->cmnd[i], port_base + SCSI_FIFO); in SYM53C500_queue_lck()
578 SYM53C500_host_reset(struct scsi_cmnd *SCpnt) in DEF_SCSI_QCMD()
580 int port_base = SCpnt->device->host->io_port; in DEF_SCSI_QCMD()
583 spin_lock_irq(SCpnt->device->host->host_lock); in DEF_SCSI_QCMD()
[all …]
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 = SCpnt->SCp.phase; in show_phase()
/linux/drivers/scsi/arm/
A Dscsi.h83 if (scsi_bufflen(SCpnt)) { in init_SCp()
86 SCpnt->SCp.buffer = scsi_sglist(SCpnt); in init_SCp()
87 SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1; in init_SCp()
88 SCpnt->SCp.ptr = sg_virt(SCpnt->SCp.buffer); in init_SCp()
89 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in init_SCp()
90 SCpnt->SCp.phase = scsi_bufflen(SCpnt); in init_SCp()
108 '0' + SCpnt->device->id, in init_SCp()
109 scsi_bufflen(SCpnt), len); in init_SCp()
114 SCpnt->SCp.phase = in init_SCp()
121 SCpnt->SCp.ptr = NULL; in init_SCp()
[all …]
A Dacornscsi.c549 if (host->SCpnt) in acornscsi_target()
695 if (!SCpnt) { in acornscsi_kick()
697 if (!SCpnt) in acornscsi_kick()
710 host->SCpnt = NULL; in acornscsi_kick()
727 host->SCpnt = SCpnt; in acornscsi_kick()
777 if (SCpnt) { in acornscsi_done()
847 scsi_done(SCpnt); in acornscsi_done()
1285 struct scsi_cmnd *SCpnt = host->SCpnt; in acornscsi_sendcommand() local
2415 done(SCpnt); in acornscsi_queuecmd_lck()
2435 done(SCpnt); in acornscsi_queuecmd_lck()
[all …]
A Dfas216.c282 if (info->SCpnt) in fas216_target()
1770 info->SCpnt = SCpnt; in fas216_start_command()
1849 info->SCpnt = SCpnt; in fas216_do_bus_device_reset()
1920 if (!SCpnt) { in fas216_kick()
1928 if (!SCpnt) { in fas216_kick()
2000 result, SCpnt->SCp.Message, SCpnt->SCp.Status); in fas216_rq_sns_done()
2018 fas216_cmd_priv(SCpnt)->scsi_done(SCpnt); in fas216_rq_sns_done()
2090 fas216_cmd_priv(SCpnt)->scsi_done(SCpnt); in fas216_std_done()
2139 SCpnt = info->SCpnt; in fas216_done()
2371 } else if (info->SCpnt == SCpnt) { in fas216_find_command()
[all …]
A Dqueue.c29 struct scsi_cmnd *SCpnt; member
74 q->SCpnt = NULL; in queue_initialise()
121 q->SCpnt = SCpnt; in __queue_add()
148 return q->SCpnt; in __queue_remove()
162 struct scsi_cmnd *SCpnt = NULL; in queue_remove_exclude() local
175 return SCpnt; in queue_remove_exclude()
194 return SCpnt; in queue_remove()
216 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun && in queue_remove_tgtluntag()
224 return SCpnt; in queue_remove_tgtluntag()
266 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun) { in queue_probetgtlun()
[all …]
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);
A Dfas216.h216 struct scsi_cmnd *SCpnt; /* currently processing command */ member
343 extern int fas216_queue_command(struct Scsi_Host *h, struct scsi_cmnd *SCpnt);
377 extern int fas216_eh_abort(struct scsi_cmnd *SCpnt);
384 extern int fas216_eh_device_reset(struct scsi_cmnd *SCpnt);
391 extern int fas216_eh_bus_reset(struct scsi_cmnd *SCpnt);
398 extern int fas216_eh_host_reset(struct scsi_cmnd *SCpnt);
/linux/drivers/scsi/
A Dnsp32.c918 SCpnt->device->id, SCpnt->device->lun, SCpnt->cmnd[0], in nsp32_queuecommand_lck()
919 SCpnt->cmd_len, scsi_sg_count(SCpnt), scsi_sglist(SCpnt), in nsp32_queuecommand_lck()
926 done(SCpnt); in nsp32_queuecommand_lck()
931 if (scmd_id(SCpnt) == SCpnt->device->host->this_id) { in nsp32_queuecommand_lck()
934 done(SCpnt); in nsp32_queuecommand_lck()
950 scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); in nsp32_queuecommand_lck()
952 SCpnt->SCp.ptr = (char *)scsi_sglist(SCpnt); in nsp32_queuecommand_lck()
953 SCpnt->SCp.this_residual = scsi_bufflen(SCpnt); in nsp32_queuecommand_lck()
961 cur_lunt->SCpnt = SCpnt; in nsp32_queuecommand_lck()
1693 SCpnt->SCp.Status, scsi_get_resid(SCpnt)); in nsp32_busfree_occur()
[all …]
A Dsr.c332 int result = SCpnt->result; in sr_done()
436 SCpnt->cmnd[0] = WRITE_10; in sr_init_command()
440 SCpnt->cmnd[0] = READ_10; in sr_init_command()
455 scmd_printk(KERN_ERR, SCpnt, in sr_init_command()
457 size, scsi_bufflen(SCpnt)); in sr_init_command()
459 SCpnt->sdb.length = size; in sr_init_command()
481 SCpnt->cmnd[1] = 0; in sr_init_command()
490 SCpnt->cmnd[6] = SCpnt->cmnd[9] = 0; in sr_init_command()
500 SCpnt->allowed = MAX_RETRIES; in sr_init_command()
501 SCpnt->cmd_len = 10; in sr_init_command()
[all …]
A Daha1740.c248 SCtmp = ecbptr->SCpnt; in aha1740_intr_handle()
322 unchar *cmd = (unchar *) SCpnt->cmnd; in aha1740_queuecommand_lck()
323 unchar target = scmd_id(SCpnt); in aha1740_queuecommand_lck()
332 SCpnt->result = 0; in aha1740_queuecommand_lck()
333 done(SCpnt); in aha1740_queuecommand_lck()
387 memcpy(host->ecb[ecbno].cdb, cmd, SCpnt->cmd_len); in aha1740_queuecommand_lck()
392 if(SCpnt->host_scribble == NULL) { in aha1740_queuecommand_lck()
399 nseg = scsi_dma_map(SCpnt); in aha1740_queuecommand_lck()
410 scsi_for_each_sg(SCpnt, sg, nseg, i) { in aha1740_queuecommand_lck()
425 host->ecb[ecbno].lun = SCpnt->device->lun; in aha1740_queuecommand_lck()
[all …]
A Daha152x.c553 #define SCDATA(SCpnt) ((struct aha152x_scdata *) (SCpnt)->host_scribble) argument
554 #define SCNEXT(SCpnt) SCDATA(SCpnt)->next argument
555 #define SCSEM(SCpnt) SCDATA(SCpnt)->done argument
920 if (!SCpnt->host_scribble || SCSEM(SCpnt) || SCNEXT(SCpnt)) { in aha152x_internal_queue()
947 scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); in aha152x_internal_queue()
948 SCpnt->SCp.buffer = scsi_sglist(SCpnt); in aha152x_internal_queue()
949 SCpnt->SCp.ptr = SG_ADDRESS(SCpnt->SCp.buffer); in aha152x_internal_queue()
950 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in aha152x_internal_queue()
991 if(SCSEM(SCpnt)) { in DEF_SCSI_QCMD()
1001 reset_done(SCpnt); in aha152x_scsi_done()
[all …]
A Dsgiwd93.c136 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, in dma_stop() argument
142 if (!SCpnt) in dma_stop()
145 if (SCpnt->SCp.ptr == NULL || SCpnt->SCp.this_residual == 0) in dma_stop()
148 hregs = (struct hpc3_scsiregs *) SCpnt->device->host->base; in dma_stop()
159 dma_unmap_single(hdata->dev, SCpnt->SCp.dma_handle, in dma_stop()
160 SCpnt->SCp.this_residual, in dma_stop()
A Da3000.c109 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, in dma_stop() argument
150 if (SCpnt) { in dma_stop()
151 if (wh->dma_dir && SCpnt) in dma_stop()
152 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, in dma_stop()
153 SCpnt->SCp.this_residual); in dma_stop()
A Dsd.c1383 cmnd = SCpnt->cmnd; in sd_uninit_command()
1384 SCpnt->cmnd = NULL; in sd_uninit_command()
1385 SCpnt->cmd_len = 0; in sd_uninit_command()
2031 int result = SCpnt->result; in sd_done()
2052 scsi_set_resid(SCpnt, 0); in sd_done()
2064 resid = scsi_get_resid(SCpnt); in sd_done()
2069 scsi_print_command(SCpnt); in sd_done()
2070 resid = min(scsi_bufflen(SCpnt), in sd_done()
2072 scsi_set_resid(SCpnt, resid); in sd_done()
2100 SCpnt->result = 0; in sd_done()
[all …]
A Dgvp11.c146 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, in dma_stop() argument
160 if (wh->dma_dir && SCpnt) in dma_stop()
161 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, in dma_stop()
162 SCpnt->SCp.this_residual); in dma_stop()
A Da2091.c107 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, in dma_stop() argument
142 memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, in dma_stop()
143 SCpnt->SCp.this_residual); in dma_stop()
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 …]
/linux/drivers/message/fusion/
A Dmptscsih.c214 sg = scsi_sglist(SCpnt); in mptscsih_AddSGE()
1332 ioc->name, SCpnt)); in mptscsih_qcmd()
1696 scsi_done(SCpnt); in mptscsih_abort()
1711 ioc->name, SCpnt)); in mptscsih_abort()
1713 scsi_done(SCpnt); in mptscsih_abort()
1723 ioc->name, SCpnt)); in mptscsih_abort()
1734 ioc->name, SCpnt)); in mptscsih_abort()
1749 SCpnt)); in mptscsih_abort()
1778 ioc->name, SCpnt)); in mptscsih_abort()
1790 SCpnt); in mptscsih_abort()
[all …]
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 …]
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);
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 …]

Completed in 84 milliseconds

12