/linux/drivers/scsi/arm/ |
H A D | acornscsi.c | 375 host->SCpnt = NULL; in acornscsi_resetcard() 553 if (host->SCpnt) in acornscsi_target() 554 return '0' + host->SCpnt->device->id; in acornscsi_target() 692 struct scsi_cmnd *SCpnt; in acornscsi_kick() local 695 SCpnt = host->origSCpnt; in acornscsi_kick() 699 if (!SCpnt) { in acornscsi_kick() 700 SCpnt = queue_remove_exclude(&host->queues.issue, host->busyluns); in acornscsi_kick() 701 if (!SCpnt) in acornscsi_kick() 707 if (host->scsi.disconnectable && host->SCpnt) { in acornscsi_kick() 708 queue_add_cmd_tail(&host->queues.disconnected, host->SCpnt); in acornscsi_kick() [all …]
|
H A D | fas216.c | 195 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() 615 fas216_set_sync(info, info->SCpnt->device->id); in fas216_handlesync() 650 info->host->host_no, '0' + info->SCpnt->device->id); in fas216_updateptrs() [all …]
|
H A D | queue.c | 33 struct scsi_cmnd *SCpnt; member 78 q->SCpnt = NULL; in queue_initialise() 107 int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head) in __queue_add() argument 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 171 if (!test_bit(q->SCpnt->device->id * 8 + in queue_remove_exclude() 172 (u8)(q->SCpnt->device->lun & 0x7), exclude)) { in queue_remove_exclude() 173 SCpnt = __queue_remove(queue, l); in queue_remove_exclude() 179 return SCpnt; in queue_remove_exclude() [all …]
|
H A D | arm_scsi.h | 88 static inline void init_SCp(struct scsi_cmnd *SCpnt) in init_SCp() argument 90 struct scsi_pointer *scsi_pointer = arm_scsi_pointer(SCpnt); in init_SCp() 94 if (scsi_bufflen(SCpnt)) { in init_SCp() 97 scsi_pointer->buffer = scsi_sglist(SCpnt); in init_SCp() 98 scsi_pointer->buffers_residual = scsi_sg_count(SCpnt) - 1; 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() [all …]
|
H A D | queue.h | 49 #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 D | fas216.h | 216 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);
|
/linux/drivers/scsi/pcmcia/ |
H A D | nsp_cs.c | 136 static inline void nsp_inc_resid(struct scsi_cmnd *SCpnt, int residInc) in nsp_inc_resid() argument 138 scsi_set_resid(SCpnt, scsi_get_resid(SCpnt) + residInc); in nsp_inc_resid() 180 static void nsp_scsi_done(struct scsi_cmnd *SCpnt) in nsp_scsi_done() argument 182 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_scsi_done() 186 scsi_done(SCpnt); in nsp_scsi_done() 189 static int nsp_queuecommand_lck(struct scsi_cmnd *const SCpnt) in nsp_queuecommand_lck() argument 191 struct scsi_pointer *scsi_pointer = nsp_priv(SCpnt); in nsp_queuecommand_lck() 195 unsigned char target = scmd_id(SCpnt); in nsp_queuecommand_lck() 197 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_queuecommand_lck() 201 SCpnt, target, SCpnt->device->lun, scsi_sglist(SCpnt), in nsp_queuecommand_lck() [all …]
|
H A D | nsp_cs.h | 297 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 bool 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 …]
|
H A D | nsp_message.c | 11 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 D | sym53c500_cs.c | 547 static int SYM53C500_queue_lck(struct scsi_cmnd *SCpnt) in SYM53C500_queue_lck() argument 549 struct sym53c500_cmd_priv *scp = scsi_cmd_priv(SCpnt); in SYM53C500_queue_lck() 551 int port_base = SCpnt->device->host->io_port; in SYM53C500_queue_lck() 553 (struct sym53c500_data *)SCpnt->device->host->hostdata; 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() 562 printk("cmd[%d]=%02x ", i, SCpnt->cmnd[i])); in SYM53C500_queue_lck() 565 data->current_SC = SCpnt; in SYM53C500_queue_lck() 572 outb(scmd_id(SCpnt), port_base + DEST_ID); /* set destination */ in SYM53C500_queue_lck() [all …]
|
H A D | nsp_debug.c | 141 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()
|
/linux/drivers/scsi/ |
H A D | nsp32.c | 362 static void nsp32_build_identify(struct scsi_cmnd *SCpnt) in nsp32_build_identify() argument 364 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_identify() 373 data->msgoutbuf[pos] = IDENTIFY(mode, SCpnt->device->lun); pos++; in nsp32_build_identify() 381 static void nsp32_build_sdtr(struct scsi_cmnd *SCpnt, in nsp32_build_sdtr() argument 385 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_sdtr() 400 static void nsp32_build_nop(struct scsi_cmnd *SCpnt) in nsp32_build_nop() argument 402 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_nop() 418 static void nsp32_build_reject(struct scsi_cmnd *SCpnt) in nsp32_build_reject() argument 420 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_reject() 431 static void nsp32_start_timer(struct scsi_cmnd *SCpnt, int time) [all …]
|
H A D | aha1740.c | 252 SCtmp = ecbptr->SCpnt; in aha1740_intr_handle() 322 static int aha1740_queuecommand_lck(struct scsi_cmnd *SCpnt) in aha1740_queuecommand_lck() argument 326 unchar *cmd = (unchar *) SCpnt->cmnd; in aha1740_queuecommand_lck() 327 unchar target = scmd_id(SCpnt); in aha1740_queuecommand_lck() 328 struct aha1740_hostdata *host = HOSTDATA(SCpnt->device->host); in aha1740_queuecommand_lck() 336 SCpnt->result = 0; in aha1740_queuecommand_lck() 337 done(SCpnt); in aha1740_queuecommand_lck() 351 for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); in aha1740_queuecommand_lck() 356 spin_lock_irqsave(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck() 375 spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck() [all …]
|
H A D | 3w-9xxx.c | 1720 static int twa_scsi_eh_reset(struct scsi_cmnd *SCpnt) in twa_scsi_eh_reset() argument 1725 tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in twa_scsi_eh_reset() 1729 sdev_printk(KERN_WARNING, SCpnt->device, in twa_scsi_eh_reset() 1731 TW_DRIVER, 0x2c, SCpnt->cmnd[0]); in twa_scsi_eh_reset() 1749 static int twa_scsi_queue_lck(struct scsi_cmnd *SCpnt) in twa_scsi_queue_lck() argument 1753 TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in twa_scsi_queue_lck() 1762 if ((SCpnt->device->lun != 0) && (tw_dev->tw_compat_info.working_srl < TW_FW_SRL_LUNS_SUPPORTED)) { in twa_scsi_queue_lck() 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() [all …]
|
H A D | wd33c93.h | 188 typedef int (*dma_setup_t) (struct scsi_cmnd *SCpnt, int dir_in); 190 struct scsi_cmnd *SCpnt, int status);
|
H A D | nsp32_debug.c | 140 static void show_command(struct scsi_cmnd *SCpnt) in show_command() argument 142 print_commandk(SCpnt->cmnd); in show_command()
|
H A D | gvp11.c | 186 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, in dma_stop() argument 189 struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(SCpnt); in dma_stop() 206 if (wh->dma_dir && SCpnt) in dma_stop()
|
H A D | 3w-xxxx.c | 1369 static int tw_scsi_eh_reset(struct scsi_cmnd *SCpnt) in tw_scsi_eh_reset() argument 1374 tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in tw_scsi_eh_reset() 1378 sdev_printk(KERN_WARNING, SCpnt->device, in tw_scsi_eh_reset() 1380 SCpnt->cmnd[0]); in tw_scsi_eh_reset() 1923 static int tw_scsi_queue_lck(struct scsi_cmnd *SCpnt) in tw_scsi_queue_lck() argument 1926 unsigned char *command = SCpnt->cmnd; in tw_scsi_queue_lck() 1929 TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in tw_scsi_queue_lck() 1939 tw_dev->srb[request_id] = SCpnt; in tw_scsi_queue_lck() 1980 scsi_build_sense(SCpnt, 1, ILLEGAL_REQUEST, 0x20, 0); in tw_scsi_queue_lck() 1981 done(SCpnt); in tw_scsi_queue_lck() [all …]
|
H A D | 3w-sas.c | 1427 static int twl_scsi_eh_reset(struct scsi_cmnd *SCpnt) in twl_scsi_eh_reset() argument 1432 tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in twl_scsi_eh_reset() 1436 sdev_printk(KERN_WARNING, SCpnt->device, in twl_scsi_eh_reset() 1438 TW_DRIVER, 0x2c, SCpnt->cmnd[0]); in twl_scsi_eh_reset() 1456 static int twl_scsi_queue_lck(struct scsi_cmnd *SCpnt) in twl_scsi_queue_lck() argument 1460 TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in twl_scsi_queue_lck() 1472 tw_dev->srb[request_id] = SCpnt; in twl_scsi_queue_lck() 1478 SCpnt->result = (DID_ERROR << 16); in twl_scsi_queue_lck() 1479 done(SCpnt); in twl_scsi_queue_lck()
|
H A D | a2091.c | 135 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, in dma_stop() argument 138 struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(SCpnt); in dma_stop()
|
H A D | mvme147.c | 66 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, in dma_stop() argument
|
/linux/drivers/message/fusion/ |
H A D | mptscsih.c | 92 static int mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, 177 mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, in mptscsih_AddSGE() argument 208 sges_left = scsi_dma_map(SCpnt); in mptscsih_AddSGE() 214 sg = scsi_sglist(SCpnt); in mptscsih_AddSGE() 348 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 …]
|
H A D | mptscsih.h | 116 extern int mptscsih_qcmd(struct scsi_cmnd *SCpnt); 122 extern int mptscsih_abort(struct scsi_cmnd * SCpnt); 123 extern int mptscsih_dev_reset(struct scsi_cmnd * SCpnt); 124 extern int mptscsih_target_reset(struct scsi_cmnd * SCpnt); 125 extern int mptscsih_bus_reset(struct scsi_cmnd * SCpnt); 126 extern int mptscsih_host_reset(struct scsi_cmnd *SCpnt);
|
H A D | mptfc.c | 100 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); 225 mptfc_abort(struct scsi_cmnd *SCpnt) in mptfc_abort() argument 227 struct Scsi_Host *shost = SCpnt->device->host; in mptfc_abort() 228 struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); in mptfc_abort() 237 SCpnt->device->id, SCpnt->device->lun)); in mptfc_abort() 238 rtn = mptscsih_abort(SCpnt); in mptfc_abort() 244 mptfc_dev_reset(struct scsi_cmnd *SCpnt) in mptfc_dev_reset() argument [all …]
|
H A D | mptspi.c | 778 mptspi_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) in mptspi_qcmd() argument 781 VirtDevice *vdevice = SCpnt->device->hostdata; in mptspi_qcmd() 785 SCpnt->result = DID_NO_CONNECT << 16; in mptspi_qcmd() 786 scsi_done(SCpnt); in mptspi_qcmd() 790 if (SCpnt->device->channel == 1 && in mptspi_qcmd() 791 mptscsih_is_phys_disk(ioc, 0, SCpnt->device->id) == 0) { in mptspi_qcmd() 792 SCpnt->result = DID_NO_CONNECT << 16; in mptspi_qcmd() 793 scsi_done(SCpnt); in mptspi_qcmd() 797 if (spi_dv_pending(scsi_target(SCpnt->device))) in mptspi_qcmd() 798 ddvprintk(ioc, scsi_print_command(SCpnt)); in mptspi_qcmd() [all …]
|