/linux/drivers/scsi/arm/ |
H A D | arm_scsi.h | 13 struct scsi_pointer scsi_pointer; member 16 static inline struct scsi_pointer *arm_scsi_pointer(struct scsi_cmnd *cmd) in arm_scsi_pointer() 20 return &acmd->scsi_pointer; in arm_scsi_pointer() 33 static inline int copy_SCp_to_sg(struct scatterlist *sg, struct scsi_pointer *SCp, int max) in copy_SCp_to_sg() 56 static inline int next_SCp(struct scsi_pointer *SCp) in next_SCp() 71 static inline unsigned char get_next_SCp_byte(struct scsi_pointer *SCp) in get_next_SCp_byte() 81 static inline void put_next_SCp_byte(struct scsi_pointer *SCp, unsigned char c) in put_next_SCp_byte() 90 struct scsi_pointer *scsi_pointer = arm_scsi_pointer(SCpnt); in init_SCp() local 92 memset(scsi_pointer, 0, sizeof(struct scsi_pointer)); in init_SCp() 97 scsi_pointer->buffer = scsi_sglist(SCpnt); in init_SCp() [all …]
|
H A D | fas216.h | 241 struct scsi_pointer SCp; /* current commands data pointer */ 302 …fasdmatype_t (*setup) (struct Scsi_Host *host, struct scsi_pointer *SCp, fasdmadir_t direction, fa… 303 …void (*pseudo)(struct Scsi_Host *host, struct scsi_pointer *SCp, fasdmadir_t direction, int trans… 304 void (*stop) (struct Scsi_Host *host, struct scsi_pointer *SCp); 318 struct scsi_pointer scsi_pointer; member
|
H A D | arxescsi.c | 71 arxescsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in arxescsi_dma_setup() 117 arxescsi_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, in arxescsi_dma_pseudo() 203 static void arxescsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in arxescsi_dma_stop()
|
H A D | fas216.c | 177 static void print_SCp(struct scsi_pointer *SCp, const char *prefix, const char *suffix) in print_SCp() 632 struct scsi_pointer *SCp = &info->scsi.SCp; in fas216_updateptrs() 672 struct scsi_pointer *SCp = &info->scsi.SCp; in fas216_pio() 1057 struct scsi_pointer *scsi_pointer; in fas216_parse_message() local 1082 scsi_pointer = arm_scsi_pointer(info->SCpnt); in fas216_parse_message() 1083 *scsi_pointer = info->scsi.SCp; in fas216_parse_message() 1084 scsi_pointer->sent_command = 0; in fas216_parse_message() 2004 struct scsi_pointer *scsi_pointer = arm_scsi_pointer(SCpnt); in fas216_rq_sns_done() local 2008 result, scsi_pointer->Message, scsi_pointer->Status); in fas216_rq_sns_done() 2010 if (result != DID_OK || scsi_pointer->Status != SAM_STAT_GOOD) in fas216_rq_sns_done() [all …]
|
H A D | cumana_2.c | 158 cumanascsi_2_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in cumanascsi_2_dma_setup() 211 cumanascsi_2_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, in cumanascsi_2_dma_pseudo() 285 cumanascsi_2_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in cumanascsi_2_dma_stop()
|
H A D | acornscsi.c | 866 void acornscsi_data_updateptr(AS_Host *host, struct scsi_pointer *SCp, unsigned int length) in acornscsi_data_updateptr() 1427 struct scsi_pointer *scsi_pointer; in acornscsi_message() local 1497 scsi_pointer = arm_scsi_pointer(host->SCpnt); in acornscsi_message() 1498 *scsi_pointer = host->scsi.SCp; in acornscsi_message() 1499 scsi_pointer->sent_command = 0; in acornscsi_message() 2413 struct scsi_pointer *scsi_pointer = arm_scsi_pointer(SCpnt); in acornscsi_queuecmd_lck() local 2429 scsi_pointer->phase = (int)acornscsi_datadirection(SCpnt->cmnd[0]); in acornscsi_queuecmd_lck() 2430 scsi_pointer->sent_command = 0; in acornscsi_queuecmd_lck() 2431 scsi_pointer->scsi_xferred = 0; in acornscsi_queuecmd_lck()
|
H A D | eesox.c | 159 eesoxscsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in eesoxscsi_dma_setup() 355 eesoxscsi_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, in eesoxscsi_dma_pseudo() 372 eesoxscsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in eesoxscsi_dma_stop()
|
H A D | powertec.c | 132 powertecscsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in powertecscsi_dma_setup() 175 powertecscsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in powertecscsi_dma_stop()
|
H A D | acornscsi.h | 292 struct scsi_pointer SCp; /* current commands data pointer */
|
/linux/drivers/scsi/pcmcia/ |
H A D | nsp_cs.c | 73 static struct scsi_pointer *nsp_priv(struct scsi_cmnd *cmd) in nsp_priv() 91 .cmd_size = sizeof(struct scsi_pointer), 191 struct scsi_pointer *scsi_pointer = nsp_priv(SCpnt); in nsp_queuecommand_lck() local 227 scsi_pointer->Status = SAM_STAT_CHECK_CONDITION; in nsp_queuecommand_lck() 228 scsi_pointer->Message = 0; in nsp_queuecommand_lck() 229 scsi_pointer->have_data_in = IO_UNKNOWN; in nsp_queuecommand_lck() 230 scsi_pointer->sent_command = 0; in nsp_queuecommand_lck() 231 scsi_pointer->phase = PH_UNDETERMINED; in nsp_queuecommand_lck() 241 scsi_pointer->buffer = scsi_sglist(SCpnt); in nsp_queuecommand_lck() 242 scsi_pointer->ptr = BUFFER_ADDR(SCpnt); in nsp_queuecommand_lck() [all …]
|
/linux/drivers/scsi/ |
H A D | a2091.c | 50 struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(cmd); in dma_setup() local 51 unsigned long len = scsi_pointer->this_residual; in dma_setup() 59 addr = dma_map_single(hdata->dev, scsi_pointer->ptr, in dma_setup() 63 scsi_pointer->ptr); in dma_setup() 66 scsi_pointer->dma_handle = addr; in dma_setup() 71 dma_unmap_single(hdata->dev, scsi_pointer->dma_handle, in dma_setup() 72 scsi_pointer->this_residual, in dma_setup() 74 scsi_pointer->dma_handle = (dma_addr_t) NULL; in dma_setup() 76 wh->dma_bounce_len = (scsi_pointer->this_residual + 511) & ~0x1ff; in dma_setup() 88 memcpy(wh->dma_bounce_buffer, scsi_pointer->ptr, in dma_setup() [all …]
|
H A D | gvp11.c | 55 struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(cmd); in dma_setup() local 56 unsigned long len = scsi_pointer->this_residual; in dma_setup() 66 addr = dma_map_single(hdata->dev, scsi_pointer->ptr, in dma_setup() 70 scsi_pointer->ptr); in dma_setup() 73 scsi_pointer->dma_handle = addr; in dma_setup() 78 dma_unmap_single(hdata->dev, scsi_pointer->dma_handle, in dma_setup() 79 scsi_pointer->this_residual, in dma_setup() 81 scsi_pointer->dma_handle = (dma_addr_t) NULL; in dma_setup() 83 wh->dma_bounce_len = (scsi_pointer->this_residual + 511) & ~0x1ff; in dma_setup() 107 memcpy(wh->dma_bounce_buffer, scsi_pointer->ptr, in dma_setup() [all …]
|
H A D | fdomain.c | 118 static struct scsi_pointer *fdomain_scsi_pointer(struct scsi_cmnd *cmd) in fdomain_scsi_pointer() 271 struct scsi_pointer *scsi_pointer = fdomain_scsi_pointer(cmd); in fdomain_work() local 278 if (scsi_pointer->phase & in_arbitration) { in fdomain_work() 285 scsi_pointer->phase = in_selection; in fdomain_work() 294 } else if (scsi_pointer->phase & in_selection) { in fdomain_work() 306 scsi_pointer->phase = in_other; in fdomain_work() 318 outb(cmd->cmnd[scsi_pointer->sent_command++], in fdomain_work() 322 if (fd->chip != tmc1800 && !scsi_pointer->have_data_in) { in fdomain_work() 323 scsi_pointer->have_data_in = -1; in fdomain_work() 329 if (fd->chip != tmc1800 && !scsi_pointer->have_data_in) { in fdomain_work() [all …]
|
H A D | wd33c93.c | 307 struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(cmd); in wd33c93_queuecommand_lck() local 339 scsi_pointer->buffer = scsi_sglist(cmd); in wd33c93_queuecommand_lck() 340 scsi_pointer->buffers_residual = scsi_sg_count(cmd) - 1; in wd33c93_queuecommand_lck() 341 scsi_pointer->ptr = sg_virt(scsi_pointer->buffer); in wd33c93_queuecommand_lck() 342 scsi_pointer->this_residual = scsi_pointer->buffer->length; in wd33c93_queuecommand_lck() 344 scsi_pointer->buffer = NULL; in wd33c93_queuecommand_lck() 345 scsi_pointer->buffers_residual = 0; in wd33c93_queuecommand_lck() 346 scsi_pointer->ptr = NULL; in wd33c93_queuecommand_lck() 347 scsi_pointer->this_residual = 0; in wd33c93_queuecommand_lck() 367 scsi_pointer->Status = ILLEGAL_STATUS_BYTE; in wd33c93_queuecommand_lck() [all …]
|
H A D | imm.c | 642 struct scsi_pointer *scsi_pointer = imm_scsi_pointer(cmd); in imm_completion() local 678 if ((r & 0x88) != 0x88 || scsi_pointer->this_residual <= 0) { in imm_completion() 684 fast = bulk && scsi_pointer->this_residual >= in imm_completion() 686 status = imm_out(dev, scsi_pointer->ptr, fast); in imm_completion() 688 fast = bulk && scsi_pointer->this_residual >= in imm_completion() 690 status = imm_in(dev, scsi_pointer->ptr, fast); in imm_completion() 693 scsi_pointer->ptr += fast; in imm_completion() 694 scsi_pointer->this_residual -= fast; in imm_completion() 700 if (scsi_pointer->buffer && !scsi_pointer->this_residual) { in imm_completion() 702 if (scsi_pointer->buffers_residual--) { in imm_completion() [all …]
|
H A D | ppa.c | 53 static struct scsi_pointer *ppa_scsi_pointer(struct scsi_cmnd *cmd) in ppa_scsi_pointer() 546 struct scsi_pointer *scsi_pointer = ppa_scsi_pointer(cmd); in ppa_completion() local 572 if (scsi_pointer->this_residual <= 0) { in ppa_completion() 601 fast = bulk && scsi_pointer->this_residual >= PPA_BURST_SIZE ? in ppa_completion() 605 status = ppa_out(dev, scsi_pointer->ptr, fast); in ppa_completion() 607 status = ppa_in(dev, scsi_pointer->ptr, fast); in ppa_completion() 609 scsi_pointer->ptr += fast; in ppa_completion() 610 scsi_pointer->this_residual -= fast; in ppa_completion() 616 if (scsi_pointer->buffer && !scsi_pointer->this_residual) { in ppa_completion() 618 if (scsi_pointer->buffers_residual--) { in ppa_completion() [all …]
|
H A D | mvme147.c | 36 struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(cmd); in dma_setup() local 40 unsigned long addr = virt_to_bus(scsi_pointer->ptr); in dma_setup() 51 cache_clear(addr, scsi_pointer->this_residual); in dma_setup() 54 cache_push(addr, scsi_pointer->this_residual); in dma_setup() 58 m147_pcc->dma_bcr = scsi_pointer->this_residual | (1 << 24); in dma_setup() 85 .cmd_size = sizeof(struct scsi_pointer),
|
H A D | imm.h | 138 static inline struct scsi_pointer *imm_scsi_pointer(struct scsi_cmnd *cmd) in imm_scsi_pointer()
|
H A D | wd33c93.h | 260 static inline struct scsi_pointer *WD33C93_scsi_pointer(struct scsi_cmnd *cmd) in WD33C93_scsi_pointer()
|
/linux/include/scsi/ |
H A D | scsi_cmnd.h | 36 struct scsi_pointer { struct
|