| /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 enum scsi_qc_status 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_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 enum scsi_qc_status 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/arm/ |
| 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 | acornscsi.h | 276 struct scsi_cmnd *SCpnt; /* currently processing command */ member
|
| /linux/drivers/scsi/ |
| H A D | sr.c | 87 static blk_status_t sr_init_command(struct scsi_cmnd *SCpnt); 294 static int sr_done(struct scsi_cmnd *SCpnt) in sr_done() argument 296 int result = SCpnt->result; in sr_done() 297 int this_count = scsi_bufflen(SCpnt); in sr_done() 301 struct request *rq = scsi_cmd_to_rq(SCpnt); in sr_done() 305 scmd_printk(KERN_INFO, SCpnt, "done: %x\n", result); in sr_done() 315 (SCpnt->sense_buffer[0] & 0x7f) == 0x70) { /* Sense current */ in sr_done() 316 switch (SCpnt->sense_buffer[2]) { in sr_done() 320 if (!(SCpnt->sense_buffer[0] & 0x90)) in sr_done() 323 get_unaligned_be32(&SCpnt->sense_buffer[3]); in sr_done() [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 enum scsi_qc_status 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 | sd.c | 1513 static void sd_uninit_command(struct scsi_cmnd *SCpnt) in sd_uninit_command() argument 1515 struct request *rq = scsi_cmd_to_rq(SCpnt); in sd_uninit_command() 2310 static int sd_done(struct scsi_cmnd *SCpnt) in sd_done() argument 2312 int result = SCpnt->result; in sd_done() 2313 unsigned int good_bytes = result ? 0 : scsi_bufflen(SCpnt); in sd_done() 2314 unsigned int sector_size = SCpnt->device->sector_size; in sd_done() 2317 struct request *req = scsi_cmd_to_rq(SCpnt); in sd_done() 2332 scsi_set_resid(SCpnt, 0); in sd_done() 2335 scsi_set_resid(SCpnt, blk_rq_bytes(req)); in sd_done() 2344 resid = scsi_get_resid(SCpnt); in sd_done() [all …]
|
| 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-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 enum scsi_qc_status twl_scsi_queue_lck(struct scsi_cmnd *SCpnt) in twl_scsi_queue_lck() argument 1459 (TW_Device_Extension *)SCpnt->device->host->hostdata; in twl_scsi_queue_lck() 1474 tw_dev->srb[request_id] = SCpnt; in twl_scsi_queue_lck() 1480 SCpnt->result = (DID_ERROR << 16); in twl_scsi_queue_lck() 1481 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 | scsi_debug.c | 4704 static int prot_verify_write(struct scsi_cmnd *SCpnt, sector_t start_sec, in prot_verify_write() argument 4716 BUG_ON(scsi_sg_count(SCpnt) == 0); in prot_verify_write() 4717 BUG_ON(scsi_prot_sg_count(SCpnt) == 0); in prot_verify_write() 4719 sg_miter_start(&piter, scsi_prot_sglist(SCpnt), in prot_verify_write() 4720 scsi_prot_sg_count(SCpnt), in prot_verify_write() 4722 sg_miter_start(&diter, scsi_sglist(SCpnt), scsi_sg_count(SCpnt), in prot_verify_write() 4749 if (SCpnt->cmnd[1] >> 5 != 3) { /* WRPROTECT */ in prot_verify_write() 4764 dif_copy_prot(SCpnt, start_sec, sectors, false); in prot_verify_write() 6858 static int scsi_debug_abort(struct scsi_cmnd *SCpnt) in scsi_debug_abort() argument 6860 bool aborted = scsi_debug_abort_cmnd(SCpnt); in scsi_debug_abort() [all …]
|
| H A D | mvme147.c | 66 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, in dma_stop() argument
|
| H A D | aha1740.h | 138 struct scsi_cmnd *SCpnt; /* Link to the SCSI Command Block */ member
|
| H A D | nsp32.h | 488 struct scsi_cmnd *SCpnt; /* Current Handling struct scsi_cmnd */ member
|
| H A D | BusLogic.c | 2858 static int blogic_hostreset(struct scsi_cmnd *SCpnt) in blogic_hostreset() argument 2861 (struct blogic_adapter *) SCpnt->device->host->hostdata; in blogic_hostreset() 2863 unsigned int id = SCpnt->device->id; in blogic_hostreset() 2867 spin_lock_irq(SCpnt->device->host->host_lock); in blogic_hostreset() 2872 spin_unlock_irq(SCpnt->device->host->host_lock); in blogic_hostreset()
|
| H A D | 53c700.c | 157 STATIC int NCR_700_abort(struct scsi_cmnd * SCpnt); 158 STATIC int NCR_700_host_reset(struct scsi_cmnd * SCpnt);
|
| /linux/drivers/message/fusion/ |
| H A D | mptfc.c | 101 struct scsi_cmnd *SCpnt); 105 static int mptfc_abort(struct scsi_cmnd *SCpnt); 106 static int mptfc_dev_reset(struct scsi_cmnd *SCpnt); 107 static int mptfc_bus_reset(struct scsi_cmnd *SCpnt); 226 mptfc_abort(struct scsi_cmnd *SCpnt) in mptfc_abort() argument 228 struct Scsi_Host *shost = SCpnt->device->host; in mptfc_abort() 229 struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); in mptfc_abort() 238 SCpnt->device->id, SCpnt->device->lun)); in mptfc_abort() 239 rtn = mptscsih_abort(SCpnt); in mptfc_abort() 245 mptfc_dev_reset(struct scsi_cmnd *SCpnt) in mptfc_dev_reset() argument [all …]
|
| H A D | mptspi.c | 778 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 …]
|
| H A D | mptsas.c | 1923 struct scsi_cmnd *SCpnt) in mptsas_qcmd() argument 1927 VirtDevice *vdevice = SCpnt->device->hostdata; in mptsas_qcmd() 1930 SCpnt->result = DID_NO_CONNECT << 16; in mptsas_qcmd() 1931 scsi_done(SCpnt); in mptsas_qcmd() 1942 scsi_print_command(SCpnt); in mptsas_qcmd() 1944 return mptscsih_qcmd(SCpnt); in mptsas_qcmd()
|
| /linux/Documentation/translations/zh_CN/scsi/ |
| H A D | scsi_mid_low_api.rst | 1089 scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); 1091 其中SCpnt是一个指向scsi_cmnd对象的指针。如果表示仅接收到 1094 scsi_set_resid(SCpnt, scsi_bufflen(SCpnt) - (3 * 512));
|