Home
last modified time | relevance | path

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

12

/drivers/scsi/pcmcia/
Dnsp_cs.c134 static inline void nsp_inc_resid(struct scsi_cmnd *SCpnt, int residInc) in nsp_inc_resid() argument
136 scsi_set_resid(SCpnt, scsi_get_resid(SCpnt) + residInc); in nsp_inc_resid()
177 static void nsp_scsi_done(struct scsi_cmnd *SCpnt) in nsp_scsi_done() argument
179 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_scsi_done()
183 SCpnt->scsi_done(SCpnt); in nsp_scsi_done()
186 static int nsp_queuecommand_lck(struct scsi_cmnd *SCpnt, in nsp_queuecommand_lck() argument
192 unsigned char target = scmd_id(SCpnt); in nsp_queuecommand_lck()
194 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_queuecommand_lck()
198 SCpnt, target, SCpnt->device->lun, scsi_sglist(SCpnt), in nsp_queuecommand_lck()
199 scsi_bufflen(SCpnt), scsi_sg_count(SCpnt)); in nsp_queuecommand_lck()
[all …]
Dnsp_cs.h297 static int nsp_queuecommand(struct Scsi_Host *h, 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 int 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);
313 static int nsp_nexus (struct scsi_cmnd *SCpnt);
314 static void nsp_scsi_done (struct scsi_cmnd *SCpnt);
[all …]
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()
Dsym53c500_cs.c550 SYM53C500_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) in SYM53C500_queue_lck() argument
553 int port_base = SCpnt->device->host->io_port; in SYM53C500_queue_lck()
555 (struct sym53c500_data *)SCpnt->device->host->hostdata; in SYM53C500_queue_lck()
560 SCpnt->cmnd[0], SCpnt->cmd_len, SCpnt->device->id, in SYM53C500_queue_lck()
561 (u8)SCpnt->device->lun, scsi_bufflen(SCpnt))); in SYM53C500_queue_lck()
563 VDEB(for (i = 0; i < SCpnt->cmd_len; i++) in SYM53C500_queue_lck()
564 printk("cmd[%d]=%02x ", i, SCpnt->cmnd[i])); in SYM53C500_queue_lck()
567 data->current_SC = SCpnt; in SYM53C500_queue_lck()
575 outb(scmd_id(SCpnt), port_base + DEST_ID); /* set destination */ in SYM53C500_queue_lck()
578 for (i = 0; i < SCpnt->cmd_len; i++) { in SYM53C500_queue_lck()
[all …]
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()
/drivers/scsi/arm/
Dscsi.h82 static inline void init_SCp(struct scsi_cmnd *SCpnt) in init_SCp() argument
84 memset(&SCpnt->SCp, 0, sizeof(struct scsi_pointer)); in init_SCp()
86 if (scsi_bufflen(SCpnt)) { in init_SCp()
89 SCpnt->SCp.buffer = scsi_sglist(SCpnt); in init_SCp()
90 SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1; in init_SCp()
91 SCpnt->SCp.ptr = sg_virt(SCpnt->SCp.buffer); in init_SCp()
92 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in init_SCp()
93 SCpnt->SCp.phase = scsi_bufflen(SCpnt); in init_SCp()
101 unsigned i, sg_count = scsi_sg_count(SCpnt); in init_SCp()
103 scsi_for_each_sg(SCpnt, sg, sg_count, i) in init_SCp()
[all …]
Dacornscsi.c384 host->SCpnt = NULL; in acornscsi_resetcard()
562 if (host->SCpnt) in acornscsi_target()
563 return '0' + host->SCpnt->device->id; in acornscsi_target()
701 struct scsi_cmnd *SCpnt; in acornscsi_kick() local
704 SCpnt = host->origSCpnt; in acornscsi_kick()
708 if (!SCpnt) { in acornscsi_kick()
709 SCpnt = queue_remove_exclude(&host->queues.issue, host->busyluns); in acornscsi_kick()
710 if (!SCpnt) in acornscsi_kick()
716 if (host->scsi.disconnectable && host->SCpnt) { in acornscsi_kick()
717 queue_add_cmd_tail(&host->queues.disconnected, host->SCpnt); in acornscsi_kick()
[all …]
Dfas216.c195 info->magic_start, info->host, info->SCpnt, in fas216_dumpinfo()
286 if (info->SCpnt) in fas216_target()
287 return '0' + info->SCpnt->device->id; in fas216_target()
302 struct scsi_cmnd *SCpnt, char *fmt, ...) in fas216_log_command() argument
310 fas216_do_log(info, '0' + SCpnt->device->id, fmt, args); in fas216_log_command()
313 scsi_print_command(SCpnt); in fas216_log_command()
518 struct fas216_device *dev = &info->device[info->SCpnt->device->id]; in fas216_handlesync()
601 fas216_set_sync(info, info->SCpnt->device->id); in fas216_handlesync()
614 fas216_set_sync(info, info->SCpnt->device->id); in fas216_handlesync()
649 info->host->host_no, '0' + info->SCpnt->device->id); in fas216_updateptrs()
[all …]
Dqueue.c32 struct scsi_cmnd *SCpnt; member
77 q->SCpnt = NULL; in queue_initialise()
106 int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head) in __queue_add() argument
124 q->SCpnt = SCpnt; in __queue_add()
151 return q->SCpnt; in __queue_remove()
165 struct scsi_cmnd *SCpnt = NULL; in queue_remove_exclude() local
170 if (!test_bit(q->SCpnt->device->id * 8 + in queue_remove_exclude()
171 (u8)(q->SCpnt->device->lun & 0x7), exclude)) { in queue_remove_exclude()
172 SCpnt = __queue_remove(queue, l); in queue_remove_exclude()
178 return SCpnt; in queue_remove_exclude()
[all …]
Dqueue.h52 #define queue_add_cmd_ordered(queue,SCpnt) \ argument
53 __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE)
54 #define queue_add_cmd_tail(queue,SCpnt) \ argument
55 __queue_add(queue,SCpnt,0)
64 extern int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head);
105 int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt);
Dfas216.h219 struct scsi_cmnd *SCpnt; /* currently processing command */ member
336 extern int fas216_queue_command(struct Scsi_Host *h, struct scsi_cmnd *SCpnt);
370 extern int fas216_eh_abort(struct scsi_cmnd *SCpnt);
377 extern int fas216_eh_device_reset(struct scsi_cmnd *SCpnt);
384 extern int fas216_eh_bus_reset(struct scsi_cmnd *SCpnt);
391 extern int fas216_eh_host_reset(struct scsi_cmnd *SCpnt);
/drivers/scsi/
Dnsp32.c367 static void nsp32_build_identify(struct scsi_cmnd *SCpnt) in nsp32_build_identify() argument
369 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_identify()
378 data->msgoutbuf[pos] = IDENTIFY(mode, SCpnt->device->lun); pos++; in nsp32_build_identify()
386 static void nsp32_build_sdtr(struct scsi_cmnd *SCpnt, in nsp32_build_sdtr() argument
390 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_sdtr()
405 static void nsp32_build_nop(struct scsi_cmnd *SCpnt) in nsp32_build_nop() argument
407 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_nop()
423 static void nsp32_build_reject(struct scsi_cmnd *SCpnt) in nsp32_build_reject() argument
425 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_reject()
436 static void nsp32_start_timer(struct scsi_cmnd *SCpnt, int time)
[all …]
Deata.c806 struct scsi_cmnd *SCpnt; member
1604 struct scsi_cmnd *SCpnt; in map_dma() local
1607 SCpnt = cpp->SCpnt; in map_dma()
1608 pci_dir = SCpnt->sc_data_direction; in map_dma()
1610 if (SCpnt->sense_buffer) in map_dma()
1612 H2DEV(pci_map_single(ha->pdev, SCpnt->sense_buffer, in map_dma()
1617 if (!scsi_sg_count(SCpnt)) { in map_dma()
1622 count = pci_map_sg(ha->pdev, scsi_sglist(SCpnt), scsi_sg_count(SCpnt), in map_dma()
1626 scsi_for_each_sg(SCpnt, sg, count, k) { in map_dma()
1633 scsi_sg_count(SCpnt) * in map_dma()
[all …]
Dsr.c82 static int sr_init_command(struct scsi_cmnd *SCpnt);
318 static int sr_done(struct scsi_cmnd *SCpnt) in sr_done() argument
320 int result = SCpnt->result; in sr_done()
321 int this_count = scsi_bufflen(SCpnt); in sr_done()
325 struct scsi_cd *cd = scsi_cd(SCpnt->request->rq_disk); in sr_done()
328 scmd_printk(KERN_INFO, SCpnt, "done: %x\n", result); in sr_done()
338 (SCpnt->sense_buffer[0] & 0x7f) == 0x70) { /* Sense current */ in sr_done()
339 switch (SCpnt->sense_buffer[2]) { in sr_done()
343 if (!(SCpnt->sense_buffer[0] & 0x90)) in sr_done()
345 error_sector = (SCpnt->sense_buffer[3] << 24) | in sr_done()
[all …]
Dsd.c114 static int sd_init_command(struct scsi_cmnd *SCpnt);
115 static void sd_uninit_command(struct scsi_cmnd *SCpnt);
907 static int sd_setup_read_write_cmnd(struct scsi_cmnd *SCpnt) in sd_setup_read_write_cmnd() argument
909 struct request *rq = SCpnt->request; in sd_setup_read_write_cmnd()
910 struct scsi_device *sdp = SCpnt->device; in sd_setup_read_write_cmnd()
920 ret = scsi_init_io(SCpnt); in sd_setup_read_write_cmnd()
923 SCpnt = rq->special; in sd_setup_read_write_cmnd()
931 scmd_printk(KERN_INFO, SCpnt, in sd_setup_read_write_cmnd()
937 SCSI_LOG_HLQUEUE(2, scmd_printk(KERN_INFO, SCpnt, in sd_setup_read_write_cmnd()
940 SCSI_LOG_HLQUEUE(2, scmd_printk(KERN_INFO, SCpnt, in sd_setup_read_write_cmnd()
[all …]
Daha1740.c247 SCtmp = ecbptr->SCpnt; in aha1740_intr_handle()
314 static int aha1740_queuecommand_lck(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *)) in aha1740_queuecommand_lck() argument
317 unchar *cmd = (unchar *) SCpnt->cmnd; in aha1740_queuecommand_lck()
318 unchar target = scmd_id(SCpnt); in aha1740_queuecommand_lck()
319 struct aha1740_hostdata *host = HOSTDATA(SCpnt->device->host); in aha1740_queuecommand_lck()
327 SCpnt->result = 0; in aha1740_queuecommand_lck()
328 done(SCpnt); in aha1740_queuecommand_lck()
342 for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); in aha1740_queuecommand_lck()
347 spin_lock_irqsave(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck()
366 spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck()
[all …]
Daha152x.c564 #define SCDATA(SCpnt) ((struct aha152x_scdata *) (SCpnt)->host_scribble) argument
565 #define SCNEXT(SCpnt) SCDATA(SCpnt)->next argument
566 #define SCSEM(SCpnt) SCDATA(SCpnt)->done argument
915 static int aha152x_internal_queue(Scsi_Cmnd *SCpnt, struct completion *complete, in aha152x_internal_queue() argument
918 struct Scsi_Host *shpnt = SCpnt->device->host; in aha152x_internal_queue()
921 SCpnt->scsi_done = done; in aha152x_internal_queue()
922 SCpnt->SCp.phase = not_issued | phase; in aha152x_internal_queue()
923 SCpnt->SCp.Status = 0x1; /* Ilegal status by SCSI standard */ in aha152x_internal_queue()
924 SCpnt->SCp.Message = 0; in aha152x_internal_queue()
925 SCpnt->SCp.have_data_in = 0; in aha152x_internal_queue()
[all …]
Dfdomain.c1421 static int fdomain_16x0_queue_lck(struct scsi_cmnd *SCpnt, in fdomain_16x0_queue_lck() argument
1429 SCpnt->target, in fdomain_16x0_queue_lck()
1430 *(unsigned char *)SCpnt->cmnd, in fdomain_16x0_queue_lck()
1431 scsi_sg_count(SCpnt), in fdomain_16x0_queue_lck()
1432 scsi_bufflen(SCpnt)); in fdomain_16x0_queue_lck()
1437 current_SC = SCpnt; /* Save this for the done function */ in fdomain_16x0_queue_lck()
1474 static void print_info(struct scsi_cmnd *SCpnt) in DEF_SCSI_QCMD()
1480 if (!SCpnt || !SCpnt->device || !SCpnt->device->host) { in DEF_SCSI_QCMD()
1485 printk(KERN_INFO "%s\n", fdomain_16x0_info( SCpnt->device->host ) ); in DEF_SCSI_QCMD()
1486 print_banner(SCpnt->device->host); in DEF_SCSI_QCMD()
[all …]
DNCR53c406a.c696 static int NCR53c406a_queue_lck(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *)) in NCR53c406a_queue_lck() argument
701 …x, lun=%02x, bufflen=%d\n", SCpnt->cmnd[0], SCpnt->cmd_len, SCpnt->device->target, (u8)SCpnt->devi… in NCR53c406a_queue_lck()
704 VDEB(for (i = 0; i < SCpnt->cmd_len; i++) in NCR53c406a_queue_lck()
705 printk("cmd[%d]=%02x ", i, SCpnt->cmnd[i])); in NCR53c406a_queue_lck()
709 current_SC = SCpnt; in NCR53c406a_queue_lck()
717 outb(scmd_id(SCpnt), DEST_ID); /* set destination */ in NCR53c406a_queue_lck()
720 for (i = 0; i < SCpnt->cmd_len; i++) { in NCR53c406a_queue_lck()
721 outb(SCpnt->cmnd[i], SCSI_FIFO); in NCR53c406a_queue_lck()
731 static int NCR53c406a_host_reset(Scsi_Cmnd * SCpnt) in DEF_SCSI_QCMD()
735 spin_lock_irq(SCpnt->device->host->host_lock); in DEF_SCSI_QCMD()
[all …]
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()
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()
Dsym53c416.c736 static int sym53c416_queuecommand_lck(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)) in sym53c416_queuecommand_lck() argument
743 base = SCpnt->device->host->io_port; in sym53c416_queuecommand_lck()
744 current_command = SCpnt; /* set current command */ in sym53c416_queuecommand_lck()
751 outb(scmd_id(SCpnt), base + DEST_BUS_ID); /* Set scsi id target */ in sym53c416_queuecommand_lck()
754 for(i = 0; i < SCpnt->cmd_len; i++) in sym53c416_queuecommand_lck()
755 outb(SCpnt->cmnd[i], base + SCSI_FIFO); in sym53c416_queuecommand_lck()
765 static int sym53c416_host_reset(Scsi_Cmnd *SCpnt) in DEF_SCSI_QCMD()
775 base = SCpnt->device->host->io_port; in DEF_SCSI_QCMD()
/drivers/message/fusion/
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, in mptfc_block_error_handler() argument
188 int (*func)(struct scsi_cmnd *SCpnt), in mptfc_block_error_handler() argument
192 struct scsi_device *sdev = SCpnt->device; in mptfc_block_error_handler()
200 hd = shost_priv(SCpnt->device->host); in mptfc_block_error_handler()
210 SCpnt->device->id, SCpnt->device->lun, in mptfc_block_error_handler()
[all …]
Dmptscsih.c92 static int mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt,
179 mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, in mptscsih_AddSGE() argument
210 sges_left = scsi_dma_map(SCpnt); in mptscsih_AddSGE()
216 sg = scsi_sglist(SCpnt); in mptscsih_AddSGE()
350 ioc->name, pReq->CDB[0], SCpnt)); in mptscsih_AddSGE()
1313 mptscsih_qcmd(struct scsi_cmnd *SCpnt) in mptscsih_qcmd() argument
1318 VirtDevice *vdevice = SCpnt->device->hostdata; in mptscsih_qcmd()
1327 hd = shost_priv(SCpnt->device->host); in mptscsih_qcmd()
1331 ioc->name, SCpnt)); in mptscsih_qcmd()
1355 if (SCpnt->sc_data_direction == DMA_FROM_DEVICE) { in mptscsih_qcmd()
[all …]
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);

12