/kernel/linux/linux-5.10/drivers/scsi/arm/ |
D | scsi.h | 79 static inline void init_SCp(struct scsi_cmnd *SCpnt) in init_SCp() argument 81 memset(&SCpnt->SCp, 0, sizeof(struct scsi_pointer)); in init_SCp() 83 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() 98 unsigned i, sg_count = scsi_sg_count(SCpnt); in init_SCp() 100 scsi_for_each_sg(SCpnt, sg, sg_count, i) in init_SCp() [all …]
|
D | acornscsi.c | 381 host->SCpnt = NULL; in acornscsi_resetcard() 559 if (host->SCpnt) in acornscsi_target() 560 return '0' + host->SCpnt->device->id; in acornscsi_target() 698 struct scsi_cmnd *SCpnt; in acornscsi_kick() local 701 SCpnt = host->origSCpnt; in acornscsi_kick() 705 if (!SCpnt) { in acornscsi_kick() 706 SCpnt = queue_remove_exclude(&host->queues.issue, host->busyluns); in acornscsi_kick() 707 if (!SCpnt) in acornscsi_kick() 713 if (host->scsi.disconnectable && host->SCpnt) { in acornscsi_kick() 714 queue_add_cmd_tail(&host->queues.disconnected, host->SCpnt); in acornscsi_kick() [all …]
|
D | fas216.c | 192 info->magic_start, info->host, info->SCpnt, in fas216_dumpinfo() 283 if (info->SCpnt) in fas216_target() 284 return '0' + info->SCpnt->device->id; in fas216_target() 299 struct scsi_cmnd *SCpnt, char *fmt, ...) in fas216_log_command() argument 307 fas216_do_log(info, '0' + SCpnt->device->id, fmt, args); in fas216_log_command() 310 scsi_print_command(SCpnt); in fas216_log_command() 515 struct fas216_device *dev = &info->device[info->SCpnt->device->id]; in fas216_handlesync() 598 fas216_set_sync(info, info->SCpnt->device->id); in fas216_handlesync() 612 fas216_set_sync(info, info->SCpnt->device->id); in fas216_handlesync() 647 info->host->host_no, '0' + info->SCpnt->device->id); in fas216_updateptrs() [all …]
|
D | queue.c | 29 struct scsi_cmnd *SCpnt; member 74 q->SCpnt = NULL; in queue_initialise() 103 int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head) in __queue_add() argument 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 167 if (!test_bit(q->SCpnt->device->id * 8 + in queue_remove_exclude() 168 (u8)(q->SCpnt->device->lun & 0x7), exclude)) { in queue_remove_exclude() 169 SCpnt = __queue_remove(queue, l); in queue_remove_exclude() 175 return SCpnt; in queue_remove_exclude() [all …]
|
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);
|
D | fas216.h | 216 struct scsi_cmnd *SCpnt; /* currently processing command */ member 333 extern int fas216_queue_command(struct Scsi_Host *h, struct scsi_cmnd *SCpnt); 367 extern int fas216_eh_abort(struct scsi_cmnd *SCpnt); 374 extern int fas216_eh_device_reset(struct scsi_cmnd *SCpnt); 381 extern int fas216_eh_bus_reset(struct scsi_cmnd *SCpnt); 388 extern int fas216_eh_host_reset(struct scsi_cmnd *SCpnt);
|
/kernel/linux/linux-5.10/drivers/scsi/pcmcia/ |
D | nsp_cs.c | 132 static inline void nsp_inc_resid(struct scsi_cmnd *SCpnt, int residInc) in nsp_inc_resid() argument 134 scsi_set_resid(SCpnt, scsi_get_resid(SCpnt) + residInc); in nsp_inc_resid() 176 static void nsp_scsi_done(struct scsi_cmnd *SCpnt) in nsp_scsi_done() argument 178 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_scsi_done() 182 SCpnt->scsi_done(SCpnt); in nsp_scsi_done() 185 static int nsp_queuecommand_lck(struct scsi_cmnd *SCpnt, in nsp_queuecommand_lck() argument 191 unsigned char target = scmd_id(SCpnt); in nsp_queuecommand_lck() 193 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_queuecommand_lck() 197 SCpnt, target, SCpnt->device->lun, scsi_sglist(SCpnt), in nsp_queuecommand_lck() 198 scsi_bufflen(SCpnt), scsi_sg_count(SCpnt)); in nsp_queuecommand_lck() [all …]
|
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 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 …]
|
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()
|
D | sym53c500_cs.c | 541 SYM53C500_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) in SYM53C500_queue_lck() argument 544 int port_base = SCpnt->device->host->io_port; in SYM53C500_queue_lck() 546 (struct sym53c500_data *)SCpnt->device->host->hostdata; in SYM53C500_queue_lck() 551 SCpnt->cmnd[0], SCpnt->cmd_len, SCpnt->device->id, in SYM53C500_queue_lck() 552 (u8)SCpnt->device->lun, scsi_bufflen(SCpnt))); in SYM53C500_queue_lck() 554 VDEB(for (i = 0; i < SCpnt->cmd_len; i++) in SYM53C500_queue_lck() 555 printk("cmd[%d]=%02x ", i, SCpnt->cmnd[i])); in SYM53C500_queue_lck() 558 data->current_SC = SCpnt; in SYM53C500_queue_lck() 566 outb(scmd_id(SCpnt), port_base + DEST_ID); /* set destination */ in SYM53C500_queue_lck() 569 for (i = 0; i < SCpnt->cmd_len; i++) { in SYM53C500_queue_lck() [all …]
|
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 = SCpnt->SCp.phase; in show_phase()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | nsp32.c | 355 static void nsp32_build_identify(struct scsi_cmnd *SCpnt) in nsp32_build_identify() argument 357 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_identify() 366 data->msgoutbuf[pos] = IDENTIFY(mode, SCpnt->device->lun); pos++; in nsp32_build_identify() 374 static void nsp32_build_sdtr(struct scsi_cmnd *SCpnt, in nsp32_build_sdtr() argument 378 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_sdtr() 393 static void nsp32_build_nop(struct scsi_cmnd *SCpnt) in nsp32_build_nop() argument 395 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_nop() 411 static void nsp32_build_reject(struct scsi_cmnd *SCpnt) in nsp32_build_reject() argument 413 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_reject() 424 static void nsp32_start_timer(struct scsi_cmnd *SCpnt, int time) [all …]
|
D | sr.c | 86 static blk_status_t sr_init_command(struct scsi_cmnd *SCpnt); 324 static int sr_done(struct scsi_cmnd *SCpnt) in sr_done() argument 326 int result = SCpnt->result; in sr_done() 327 int this_count = scsi_bufflen(SCpnt); in sr_done() 331 struct scsi_cd *cd = scsi_cd(SCpnt->request->rq_disk); in sr_done() 334 scmd_printk(KERN_INFO, SCpnt, "done: %x\n", result); in sr_done() 344 (SCpnt->sense_buffer[0] & 0x7f) == 0x70) { /* Sense current */ in sr_done() 345 switch (SCpnt->sense_buffer[2]) { in sr_done() 349 if (!(SCpnt->sense_buffer[0] & 0x90)) in sr_done() 352 get_unaligned_be32(&SCpnt->sense_buffer[3]); in sr_done() [all …]
|
D | aha1740.c | 247 SCtmp = ecbptr->SCpnt; in aha1740_intr_handle() 314 static int aha1740_queuecommand_lck(struct scsi_cmnd * SCpnt, in aha1740_queuecommand_lck() argument 318 unchar *cmd = (unchar *) SCpnt->cmnd; in aha1740_queuecommand_lck() 319 unchar target = scmd_id(SCpnt); in aha1740_queuecommand_lck() 320 struct aha1740_hostdata *host = HOSTDATA(SCpnt->device->host); in aha1740_queuecommand_lck() 328 SCpnt->result = 0; in aha1740_queuecommand_lck() 329 done(SCpnt); in aha1740_queuecommand_lck() 343 for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); in aha1740_queuecommand_lck() 348 spin_lock_irqsave(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck() 367 spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags); in aha1740_queuecommand_lck() [all …]
|
D | aha152x.c | 553 #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 906 static int aha152x_internal_queue(struct scsi_cmnd *SCpnt, in aha152x_internal_queue() argument 910 struct Scsi_Host *shpnt = SCpnt->device->host; in aha152x_internal_queue() 913 SCpnt->scsi_done = done; in aha152x_internal_queue() 914 SCpnt->SCp.phase = not_issued | phase; in aha152x_internal_queue() 915 SCpnt->SCp.Status = 0x1; /* Ilegal status by SCSI standard */ in aha152x_internal_queue() 916 SCpnt->SCp.Message = 0; in aha152x_internal_queue() 917 SCpnt->SCp.have_data_in = 0; in aha152x_internal_queue() [all …]
|
D | sgiwd93.c | 136 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()
|
D | a3000.c | 109 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()
|
D | sd.c | 118 static blk_status_t sd_init_command(struct scsi_cmnd *SCpnt); 119 static void sd_uninit_command(struct scsi_cmnd *SCpnt); 1377 static void sd_uninit_command(struct scsi_cmnd *SCpnt) in sd_uninit_command() argument 1379 struct request *rq = SCpnt->request; in sd_uninit_command() 1385 if (SCpnt->cmnd != scsi_req(rq)->cmd) { in sd_uninit_command() 1386 cmnd = SCpnt->cmnd; in sd_uninit_command() 1387 SCpnt->cmnd = NULL; in sd_uninit_command() 1388 SCpnt->cmd_len = 0; in sd_uninit_command() 2036 static int sd_done(struct scsi_cmnd *SCpnt) in sd_done() argument 2038 int result = SCpnt->result; in sd_done() [all …]
|
D | gvp11.c | 146 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()
|
D | a2091.c | 107 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()
|
D | 3w-9xxx.c | 1723 static int twa_scsi_eh_reset(struct scsi_cmnd *SCpnt) in twa_scsi_eh_reset() argument 1728 tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in twa_scsi_eh_reset() 1732 sdev_printk(KERN_WARNING, SCpnt->device, in twa_scsi_eh_reset() 1734 TW_DRIVER, 0x2c, SCpnt->cmnd[0]); in twa_scsi_eh_reset() 1752 static int twa_scsi_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) in twa_scsi_queue_lck() argument 1755 TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in twa_scsi_queue_lck() 1764 if ((SCpnt->device->lun != 0) && (tw_dev->tw_compat_info.working_srl < TW_FW_SRL_LUNS_SUPPORTED)) { in twa_scsi_queue_lck() 1765 SCpnt->result = (DID_BAD_TARGET << 16); in twa_scsi_queue_lck() 1766 done(SCpnt); in twa_scsi_queue_lck() 1772 SCpnt->scsi_done = done; in twa_scsi_queue_lck() [all …]
|
/kernel/linux/linux-5.10/drivers/message/fusion/ |
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); 186 mptfc_block_error_handler(struct scsi_cmnd *SCpnt, in mptfc_block_error_handler() argument 187 int (*func)(struct scsi_cmnd *SCpnt), in mptfc_block_error_handler() argument 191 struct scsi_device *sdev = SCpnt->device; in mptfc_block_error_handler() 199 hd = shost_priv(SCpnt->device->host); in mptfc_block_error_handler() 209 SCpnt->device->id, SCpnt->device->lun, in mptfc_block_error_handler() 217 if (ready == DID_NO_CONNECT || !SCpnt->device->hostdata in mptfc_block_error_handler() [all …]
|
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() 1314 mptscsih_qcmd(struct scsi_cmnd *SCpnt) in mptscsih_qcmd() argument 1319 VirtDevice *vdevice = SCpnt->device->hostdata; in mptscsih_qcmd() 1328 hd = shost_priv(SCpnt->device->host); in mptscsih_qcmd() 1332 ioc->name, SCpnt)); in mptscsih_qcmd() 1356 if (SCpnt->sc_data_direction == DMA_FROM_DEVICE) { in mptscsih_qcmd() [all …]
|
D | mptscsih.h | 116 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);
|
D | mptspi.c | 777 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 SCpnt->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 SCpnt->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 …]
|