Home
last modified time | relevance | path

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

123

/linux-3.4.99/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.c395 host->SCpnt = NULL; in acornscsi_resetcard()
573 if (host->SCpnt) in acornscsi_target()
574 return '0' + host->SCpnt->device->id; in acornscsi_target()
711 struct scsi_cmnd *SCpnt; in acornscsi_kick() local
714 SCpnt = host->origSCpnt; in acornscsi_kick()
718 if (!SCpnt) { in acornscsi_kick()
719 SCpnt = queue_remove_exclude(&host->queues.issue, host->busyluns); in acornscsi_kick()
720 if (!SCpnt) in acornscsi_kick()
726 if (host->scsi.disconnectable && host->SCpnt) { in acornscsi_kick()
727 queue_add_cmd_tail(&host->queues.disconnected, host->SCpnt); in acornscsi_kick()
[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 + q->SCpnt->device->lun, exclude)) { in queue_remove_exclude()
171 SCpnt = __queue_remove(queue, l); in queue_remove_exclude()
177 return SCpnt; in queue_remove_exclude()
189 struct scsi_cmnd *SCpnt = NULL; in queue_remove() local
[all …]
Dfas216.c192 info->magic_start, info->host, info->SCpnt, in fas216_dumpinfo()
284 if (info->SCpnt) in fas216_target()
285 return '0' + info->SCpnt->device->id; in fas216_target()
300 struct scsi_cmnd *SCpnt, char *fmt, ...) in fas216_log_command() argument
308 fas216_do_log(info, '0' + SCpnt->device->id, fmt, args); in fas216_log_command()
312 __scsi_print_command(SCpnt->cmnd); in fas216_log_command()
517 struct fas216_device *dev = &info->device[info->SCpnt->device->id]; in fas216_handlesync()
600 fas216_set_sync(info, info->SCpnt->device->id); in fas216_handlesync()
613 fas216_set_sync(info, info->SCpnt->device->id); in fas216_handlesync()
648 info->host->host_no, '0' + info->SCpnt->device->id); in fas216_updateptrs()
[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);
/linux-3.4.99/drivers/scsi/pcmcia/
Dnsp_cs.c135 static inline void nsp_inc_resid(struct scsi_cmnd *SCpnt, int residInc) in nsp_inc_resid() argument
137 scsi_set_resid(SCpnt, scsi_get_resid(SCpnt) + residInc); in nsp_inc_resid()
178 static void nsp_scsi_done(struct scsi_cmnd *SCpnt) in nsp_scsi_done() argument
180 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_scsi_done()
184 SCpnt->scsi_done(SCpnt); in nsp_scsi_done()
187 static int nsp_queuecommand_lck(struct scsi_cmnd *SCpnt, in nsp_queuecommand_lck() argument
193 unsigned char target = scmd_id(SCpnt); in nsp_queuecommand_lck()
195 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_queuecommand_lck()
199 SCpnt, target, SCpnt->device->lun, scsi_sglist(SCpnt), in nsp_queuecommand_lck()
200 scsi_bufflen(SCpnt), scsi_sg_count(SCpnt)); in nsp_queuecommand_lck()
[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()
Dnsp_cs.h302 static int nsp_queuecommand(struct Scsi_Host *h, 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);
318 static int nsp_nexus (struct scsi_cmnd *SCpnt);
319 static void nsp_scsi_done (struct scsi_cmnd *SCpnt);
[all …]
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 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 …]
/linux-3.4.99/drivers/scsi/
Daha1542.c560 static int aha1542_queuecommand_lck(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *)) in aha1542_queuecommand_lck() argument
564 unchar *cmd = (unchar *) SCpnt->cmnd; in aha1542_queuecommand_lck()
565 unchar target = SCpnt->device->id; in aha1542_queuecommand_lck()
566 unchar lun = SCpnt->device->lun; in aha1542_queuecommand_lck()
568 int bufflen = scsi_bufflen(SCpnt); in aha1542_queuecommand_lck()
575 mb = HOSTDATA(SCpnt->device->host)->mb; in aha1542_queuecommand_lck()
576 ccb = HOSTDATA(SCpnt->device->host)->ccb; in aha1542_queuecommand_lck()
579 SCpnt->result = DID_TIME_OUT << 16; in aha1542_queuecommand_lck()
580 done(SCpnt); return 0; in aha1542_queuecommand_lck()
593 SCpnt->result = 0; in aha1542_queuecommand_lck()
[all …]
Du14-34f.c579 struct scsi_cmnd *SCpnt; member
1118 struct scsi_cmnd *SCpnt; in map_dma() local
1120 cpp = &HD(j)->cp[i]; SCpnt = cpp->SCpnt; in map_dma()
1121 pci_dir = SCpnt->sc_data_direction; in map_dma()
1123 if (SCpnt->sense_buffer) in map_dma()
1124 cpp->sense_addr = H2DEV(pci_map_single(HD(j)->pdev, SCpnt->sense_buffer, in map_dma()
1129 if (scsi_bufflen(SCpnt)) { in map_dma()
1130 count = scsi_dma_map(SCpnt); in map_dma()
1133 scsi_for_each_sg(SCpnt, sg, count, k) { in map_dma()
1140 cpp->use_sg = scsi_sg_count(SCpnt); in map_dma()
[all …]
Dnsp32.c368 static void nsp32_build_identify(struct scsi_cmnd *SCpnt) in nsp32_build_identify() argument
370 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_identify()
379 data->msgoutbuf[pos] = IDENTIFY(mode, SCpnt->device->lun); pos++; in nsp32_build_identify()
387 static void nsp32_build_sdtr(struct scsi_cmnd *SCpnt, in nsp32_build_sdtr() argument
391 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_sdtr()
406 static void nsp32_build_nop(struct scsi_cmnd *SCpnt) in nsp32_build_nop() argument
408 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_nop()
424 static void nsp32_build_reject(struct scsi_cmnd *SCpnt) in nsp32_build_reject() argument
426 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_reject()
437 static void nsp32_start_timer(struct scsi_cmnd *SCpnt, int time)
[all …]
Deata.c806 struct scsi_cmnd *SCpnt; member
1616 struct scsi_cmnd *SCpnt; in map_dma() local
1619 SCpnt = cpp->SCpnt; in map_dma()
1620 pci_dir = SCpnt->sc_data_direction; in map_dma()
1622 if (SCpnt->sense_buffer) in map_dma()
1624 H2DEV(pci_map_single(ha->pdev, SCpnt->sense_buffer, in map_dma()
1629 if (!scsi_sg_count(SCpnt)) { in map_dma()
1634 count = pci_map_sg(ha->pdev, scsi_sglist(SCpnt), scsi_sg_count(SCpnt), in map_dma()
1638 scsi_for_each_sg(SCpnt, sg, count, k) { in map_dma()
1645 scsi_sg_count(SCpnt) * in map_dma()
[all …]
Dsr.c299 static int sr_done(struct scsi_cmnd *SCpnt) in sr_done() argument
301 int result = SCpnt->result; in sr_done()
302 int this_count = scsi_bufflen(SCpnt); in sr_done()
306 struct scsi_cd *cd = scsi_cd(SCpnt->request->rq_disk); in sr_done()
319 (SCpnt->sense_buffer[0] & 0x7f) == 0x70) { /* Sense current */ in sr_done()
320 switch (SCpnt->sense_buffer[2]) { in sr_done()
324 if (!(SCpnt->sense_buffer[0] & 0x90)) in sr_done()
326 error_sector = (SCpnt->sense_buffer[3] << 24) | in sr_done()
327 (SCpnt->sense_buffer[4] << 16) | in sr_done()
328 (SCpnt->sense_buffer[5] << 8) | in sr_done()
[all …]
Dsd.c675 struct scsi_cmnd *SCpnt = rq->special; in sd_unprep_fn() local
681 if (SCpnt->cmnd != rq->cmd) { in sd_unprep_fn()
682 mempool_free(SCpnt->cmnd, sd_cdb_pool); in sd_unprep_fn()
683 SCpnt->cmnd = NULL; in sd_unprep_fn()
684 SCpnt->cmd_len = 0; in sd_unprep_fn()
698 struct scsi_cmnd *SCpnt; in sd_prep_fn() local
728 SCpnt = rq->special; in sd_prep_fn()
735 SCSI_LOG_HLQUEUE(1, scmd_printk(KERN_INFO, SCpnt, in sd_prep_fn()
743 SCSI_LOG_HLQUEUE(2, scmd_printk(KERN_INFO, SCpnt, in sd_prep_fn()
746 SCSI_LOG_HLQUEUE(2, scmd_printk(KERN_INFO, SCpnt, in sd_prep_fn()
[all …]
Daha1740.c266 SCtmp = ecbptr->SCpnt; in aha1740_intr_handle()
333 static int aha1740_queuecommand_lck(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *)) in aha1740_queuecommand_lck() argument
336 unchar *cmd = (unchar *) SCpnt->cmnd; in aha1740_queuecommand_lck()
337 unchar target = scmd_id(SCpnt); in aha1740_queuecommand_lck()
338 struct aha1740_hostdata *host = HOSTDATA(SCpnt->device->host); in aha1740_queuecommand_lck()
346 SCpnt->result = 0; in aha1740_queuecommand_lck()
347 done(SCpnt); in aha1740_queuecommand_lck()
361 for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); in aha1740_queuecommand_lck()
366 spin_lock_irqsave(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck()
385 spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck()
[all …]
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) in build_sg_list() argument
689 max = scsi_sg_count(SCpnt); in build_sg_list()
690 scsi_for_each_sg(SCpnt, sg, max, i) { in build_sg_list()
703 static int ultrastor_queuecommand_lck(struct scsi_cmnd *SCpnt, in ultrastor_queuecommand_lck() argument
735 my_mscp->ca = SCpnt->device->type != TYPE_TAPE; in ultrastor_queuecommand_lck()
736 my_mscp->target_id = SCpnt->device->id; in ultrastor_queuecommand_lck()
738 my_mscp->lun = SCpnt->device->lun; in ultrastor_queuecommand_lck()
739 if (scsi_sg_count(SCpnt)) { in ultrastor_queuecommand_lck()
742 build_sg_list(my_mscp, SCpnt); in ultrastor_queuecommand_lck()
[all …]
Dfd_mcs.c1074 static int fd_mcs_queue_lck(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *)) in fd_mcs_queue_lck() argument
1076 struct Scsi_Host *shpnt = SCpnt->device->host; in fd_mcs_queue_lck()
1083 SCpnt->target, *(unsigned char *) SCpnt->cmnd, in fd_mcs_queue_lck()
1084 scsi_sg_count(SCpnt), scsi_bufflen(SCpnt)); in fd_mcs_queue_lck()
1089 SCpnt->scsi_done = done; /* Save this for the done function */ in fd_mcs_queue_lck()
1090 current_SC = SCpnt; in fd_mcs_queue_lck()
1127 static void fd_mcs_print_info(Scsi_Cmnd * SCpnt) in DEF_SCSI_QCMD()
1132 struct Scsi_Host *shpnt = SCpnt->host; in DEF_SCSI_QCMD()
1134 if (!SCpnt || !SCpnt->host) { in DEF_SCSI_QCMD()
1138 printk("%s\n", fd_mcs_info(SCpnt->host)); in DEF_SCSI_QCMD()
[all …]
Dwd7000.c465 struct scsi_cmnd *SCpnt;/* scsi_cmnd using this SCB */ member
888 scbs[i].SCpnt = NULL; in init_scbs()
891 scbs[MAX_SCBS - 1].SCpnt = NULL; in init_scbs()
1006 struct scsi_cmnd *SCpnt; in wd7000_intr() local
1064 SCpnt = scb->SCpnt; in wd7000_intr()
1065 if (--(SCpnt->SCp.phase) <= 0) { /* all scbs are done */ in wd7000_intr()
1069 SCpnt->result = errstatus; in wd7000_intr()
1073 SCpnt->scsi_done(SCpnt); in wd7000_intr()
1084 static int wd7000_queuecommand_lck(struct scsi_cmnd *SCpnt, in wd7000_queuecommand_lck() argument
1089 unchar *cdb = (unchar *) SCpnt->cmnd; in wd7000_queuecommand_lck()
[all …]
Daha152x.c620 #define SCDATA(SCpnt) ((struct aha152x_scdata *) (SCpnt)->host_scribble) argument
621 #define SCNEXT(SCpnt) SCDATA(SCpnt)->next argument
622 #define SCSEM(SCpnt) SCDATA(SCpnt)->done argument
983 static int aha152x_internal_queue(Scsi_Cmnd *SCpnt, struct completion *complete, in aha152x_internal_queue() argument
986 struct Scsi_Host *shpnt = SCpnt->device->host; in aha152x_internal_queue()
992 CMDINFO(SCpnt), SCpnt, SCpnt->cmd_len, in aha152x_internal_queue()
993 scsi_sg_count(SCpnt), scsi_bufflen(SCpnt)); in aha152x_internal_queue()
994 __scsi_print_command(SCpnt->cmnd); in aha152x_internal_queue()
998 SCpnt->scsi_done = done; in aha152x_internal_queue()
999 SCpnt->SCp.phase = not_issued | phase; in aha152x_internal_queue()
[all …]
Dscsi_debug.c405 static int check_readiness(struct scsi_cmnd * SCpnt, int reset_only, in check_readiness() argument
1717 static int prot_verify_read(struct scsi_cmnd *SCpnt, sector_t start_sec, in prot_verify_read() argument
1787 scsi_for_each_prot_sg(SCpnt, psgl, scsi_prot_sg_count(SCpnt), i) { in prot_verify_read()
1808 static int resp_read(struct scsi_cmnd *SCpnt, unsigned long long lba, in resp_read() argument
1834 scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); in resp_read()
1839 if (scsi_debug_dix && scsi_prot_sg_count(SCpnt)) { in resp_read()
1840 int prot_ret = prot_verify_read(SCpnt, lba, num, ei_lba); in resp_read()
1849 ret = do_device_access(SCpnt, devip, lba, num, 0); in resp_read()
1875 static int prot_verify_write(struct scsi_cmnd *SCpnt, sector_t start_sec, in prot_verify_write() argument
1880 struct scatterlist *dsgl = scsi_sglist(SCpnt); in prot_verify_write()
[all …]
/linux-3.4.99/drivers/message/i2o/
Di2o_scsi.c508 static int i2o_scsi_queuecommand_lck(struct scsi_cmnd *SCpnt, in i2o_scsi_queuecommand_lck() argument
529 i2o_dev = SCpnt->device->hostdata; in i2o_scsi_queuecommand_lck()
531 SCpnt->scsi_done = done; in i2o_scsi_queuecommand_lck()
535 SCpnt->result = DID_NO_CONNECT << 16; in i2o_scsi_queuecommand_lck()
536 done(SCpnt); in i2o_scsi_queuecommand_lck()
548 switch (SCpnt->sc_data_direction) { in i2o_scsi_queuecommand_lck()
568 SCpnt->result = DID_NO_CONNECT << 16; in i2o_scsi_queuecommand_lck()
569 done(SCpnt); in i2o_scsi_queuecommand_lck()
591 if (SCpnt->sc_request && SCpnt->sc_request->upper_private_data) { in i2o_scsi_queuecommand_lck()
593 ((Sg_request *) (SCpnt->sc_request-> in i2o_scsi_queuecommand_lck()
[all …]
/linux-3.4.99/drivers/message/fusion/
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()
1399 mptscsih_qcmd(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) in mptscsih_qcmd() argument
1404 VirtDevice *vdevice = SCpnt->device->hostdata; in mptscsih_qcmd()
1413 hd = shost_priv(SCpnt->device->host); in mptscsih_qcmd()
1415 SCpnt->scsi_done = done; in mptscsih_qcmd()
1418 ioc->name, SCpnt, done)); in mptscsih_qcmd()
[all …]
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.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);

123