Home
last modified time | relevance | path

Searched refs:SCpnt (Results 1 - 25 of 78) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/scsi/arm/
H A Dscsi.h79 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 in init_SCp()
[all...]
H A Dacornscsi.c381 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()
791 struct scsi_cmnd *SCpnt = *SCpntp; acornscsi_done() local
1306 struct scsi_cmnd *SCpnt = host->SCpnt; acornscsi_sendcommand() local
2467 acornscsi_queuecmd_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) acornscsi_queuecmd_lck() argument
2531 struct scsi_cmnd *SCpnt = *SCpntp1; acornscsi_reportstatus() local
2552 acornscsi_do_abort(AS_Host *host, struct scsi_cmnd *SCpnt) acornscsi_do_abort() argument
2644 acornscsi_abort(struct scsi_cmnd *SCpnt) acornscsi_abort() argument
2725 acornscsi_host_reset(struct scsi_cmnd *SCpnt) acornscsi_host_reset() argument
[all...]
H A Dqueue.c29 struct scsi_cmnd *SCpnt; member
65 * If life was easier, then SCpnt would have a in queue_initialise()
74 q->SCpnt = NULL; in queue_initialise()
96 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
99 * SCpnt - command to add
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 in queue_remove_exclude() local
187 struct scsi_cmnd *SCpnt = NULL; queue_remove() local
211 struct scsi_cmnd *SCpnt = NULL; queue_remove_tgtluntag() local
283 queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt) queue_remove_cmd() argument
[all...]
H A Dfas216.c191 printk(" { magic_start=%lX host=%p SCpnt=%p origSCpnt=%p\n", in fas216_dumpinfo()
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()
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 in fas216_handlesync()
298 fas216_log_command(FAS216_Info *info, int level, struct scsi_cmnd *SCpnt, char *fmt, ...) fas216_log_command() argument
1669 __fas216_start_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) __fas216_start_command() argument
1761 fas216_start_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) fas216_start_command() argument
1815 fas216_allocate_tag(FAS216_Info *info, struct scsi_cmnd *SCpnt) fas216_allocate_tag() argument
1850 fas216_do_bus_device_reset(FAS216_Info *info, struct scsi_cmnd *SCpnt) fas216_do_bus_device_reset() argument
1899 struct scsi_cmnd *SCpnt = NULL; fas216_kick() local
1988 fas216_devicereset_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) fas216_devicereset_done() argument
2006 fas216_rq_sns_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) fas216_rq_sns_done() argument
2041 fas216_std_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) fas216_std_done() argument
2142 struct scsi_cmnd *SCpnt; fas216_done() local
2206 fas216_queue_command_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) fas216_queue_command_lck() argument
2256 fas216_internal_done(struct scsi_cmnd *SCpnt) fas216_internal_done() argument
2273 fas216_noqueue_command_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) fas216_noqueue_command_lck() argument
2355 fas216_find_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) fas216_find_command() argument
2424 fas216_eh_abort(struct scsi_cmnd *SCpnt) fas216_eh_abort() argument
2477 fas216_eh_device_reset(struct scsi_cmnd *SCpnt) fas216_eh_device_reset() argument
2558 fas216_eh_bus_reset(struct scsi_cmnd *SCpnt) fas216_eh_bus_reset() argument
2658 fas216_eh_host_reset(struct scsi_cmnd *SCpnt) fas216_eh_host_reset() argument
[all...]
H A Dqueue.h49 #define queue_add_cmd_ordered(queue,SCpnt) \
50 __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE)
51 #define queue_add_cmd_tail(queue,SCpnt) \
52 __queue_add(queue,SCpnt,0)
54 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
57 * SCpnt - command to add
61 extern int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head);
96 * Function: int queue_remove_cmd (Queue_t *queue, struct scsi_cmnd *SCpnt)
99 * SCpnt
[all...]
/kernel/linux/linux-5.10/drivers/scsi/pcmcia/
H A Dnsp_cs.c132 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()
174 * You must be set SCpnt->result before call this function.
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
189 /*unsigned int host_id = SCpnt in nsp_queuecommand_lck()
363 nsphw_start_selection(struct scsi_cmnd *SCpnt) nsphw_start_selection() argument
444 nsp_analyze_sdtr(struct scsi_cmnd *SCpnt) nsp_analyze_sdtr() argument
502 nsp_start_timer(struct scsi_cmnd *SCpnt, int time) nsp_start_timer() argument
515 nsp_negate_signal(struct scsi_cmnd *SCpnt, unsigned char mask, char *str) nsp_negate_signal() argument
543 nsp_expect_signal(struct scsi_cmnd *SCpnt, unsigned char current_phase, unsigned char mask) nsp_expect_signal() argument
578 nsp_xfer(struct scsi_cmnd *SCpnt, int phase) nsp_xfer() argument
618 nsp_dataphase_bypass(struct scsi_cmnd *SCpnt) nsp_dataphase_bypass() argument
650 nsp_reselected(struct scsi_cmnd *SCpnt) nsp_reselected() argument
689 nsp_fifo_count(struct scsi_cmnd *SCpnt) nsp_fifo_count() argument
716 nsp_pio_read(struct scsi_cmnd *SCpnt) nsp_pio_read() argument
815 nsp_pio_write(struct scsi_cmnd *SCpnt) nsp_pio_write() argument
912 nsp_nexus(struct scsi_cmnd *SCpnt) nsp_nexus() argument
1479 nsp_eh_bus_reset(struct scsi_cmnd *SCpnt) nsp_eh_bus_reset() argument
1488 nsp_eh_host_reset(struct scsi_cmnd *SCpnt) nsp_eh_host_reset() argument
[all...]
H A 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()
H A Dnsp_cs.h297 static int nsp_queuecommand(struct Scsi_Host *h, struct scsi_cmnd *SCpnt);
300 /*static int nsp_eh_abort (struct scsi_cmnd *SCpnt);*/
301 /*static int nsp_eh_device_reset(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);
[all...]
/kernel/linux/linux-6.6/drivers/scsi/pcmcia/
H A Dnsp_cs.c136 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()
178 * You must be set SCpnt->result before call this function.
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()
193 /*unsigned int host_id = SCpnt in nsp_queuecommand_lck()
363 nsphw_start_selection(struct scsi_cmnd *const SCpnt) nsphw_start_selection() argument
445 nsp_analyze_sdtr(struct scsi_cmnd *SCpnt) nsp_analyze_sdtr() argument
501 nsp_start_timer(struct scsi_cmnd *SCpnt, int time) nsp_start_timer() argument
514 nsp_negate_signal(struct scsi_cmnd *SCpnt, unsigned char mask, char *str) nsp_negate_signal() argument
542 nsp_expect_signal(struct scsi_cmnd *SCpnt, unsigned char current_phase, unsigned char mask) nsp_expect_signal() argument
577 nsp_xfer(struct scsi_cmnd *const SCpnt, int phase) nsp_xfer() argument
618 nsp_dataphase_bypass(struct scsi_cmnd *const SCpnt) nsp_dataphase_bypass() argument
651 nsp_reselected(struct scsi_cmnd *SCpnt) nsp_reselected() argument
688 nsp_fifo_count(struct scsi_cmnd *SCpnt) nsp_fifo_count() argument
715 nsp_pio_read(struct scsi_cmnd *const SCpnt) nsp_pio_read() argument
818 nsp_pio_write(struct scsi_cmnd *SCpnt) nsp_pio_write() argument
919 nsp_nexus(struct scsi_cmnd *SCpnt) nsp_nexus() argument
1489 nsp_eh_bus_reset(struct scsi_cmnd *SCpnt) nsp_eh_bus_reset() argument
1498 nsp_eh_host_reset(struct scsi_cmnd *SCpnt) nsp_eh_host_reset() argument
[all...]
H A 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()
H A Dnsp_cs.h297 static int nsp_queuecommand(struct Scsi_Host *h, struct scsi_cmnd *SCpnt);
300 /*static int nsp_eh_abort (struct scsi_cmnd *SCpnt);*/
301 /*static int nsp_eh_device_reset(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);
[all...]
H A Dsym53c500_cs.c547 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 in SYM53C500_queue_lck()
586 SYM53C500_host_reset(struct scsi_cmnd *SCpnt) SYM53C500_host_reset() argument
[all...]
/kernel/linux/linux-6.6/drivers/scsi/arm/
H A Dacornscsi.c375 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()
774 struct scsi_cmnd *SCpnt = *SCpntp; acornscsi_done() local
1289 struct scsi_cmnd *SCpnt = host->SCpnt; acornscsi_sendcommand() local
2411 acornscsi_queuecmd_lck(struct scsi_cmnd *SCpnt) acornscsi_queuecmd_lck() argument
2463 acornscsi_do_abort(AS_Host *host, struct scsi_cmnd *SCpnt) acornscsi_do_abort() argument
2555 acornscsi_abort(struct scsi_cmnd *SCpnt) acornscsi_abort() argument
2637 acornscsi_host_reset(struct scsi_cmnd *SCpnt) acornscsi_host_reset() argument
[all...]
H A Dfas216.c194 printk(" { magic_start=%lX host=%p SCpnt=%p origSCpnt=%p\n", in fas216_dumpinfo()
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()
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 in fas216_handlesync()
301 fas216_log_command(FAS216_Info *info, int level, struct scsi_cmnd *SCpnt, char *fmt, ...) fas216_log_command() argument
1675 __fas216_start_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) __fas216_start_command() argument
1767 fas216_start_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) fas216_start_command() argument
1822 fas216_allocate_tag(FAS216_Info *info, struct scsi_cmnd *SCpnt) fas216_allocate_tag() argument
1845 fas216_do_bus_device_reset(FAS216_Info *info, struct scsi_cmnd *SCpnt) fas216_do_bus_device_reset() argument
1894 struct scsi_cmnd *SCpnt = NULL; fas216_kick() local
1983 fas216_devicereset_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) fas216_devicereset_done() argument
2001 fas216_rq_sns_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) fas216_rq_sns_done() argument
2038 fas216_std_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) fas216_std_done() argument
2141 struct scsi_cmnd *SCpnt; fas216_done() local
2205 fas216_queue_command_internal(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) fas216_queue_command_internal() argument
2246 fas216_queue_command_lck(struct scsi_cmnd *SCpnt) fas216_queue_command_lck() argument
2259 fas216_internal_done(struct scsi_cmnd *SCpnt) fas216_internal_done() argument
2276 fas216_noqueue_command_lck(struct scsi_cmnd *SCpnt) fas216_noqueue_command_lck() argument
2357 fas216_find_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) fas216_find_command() argument
2426 fas216_eh_abort(struct scsi_cmnd *SCpnt) fas216_eh_abort() argument
2479 fas216_eh_device_reset(struct scsi_cmnd *SCpnt) fas216_eh_device_reset() argument
2560 fas216_eh_bus_reset(struct scsi_cmnd *SCpnt) fas216_eh_bus_reset() argument
2660 fas216_eh_host_reset(struct scsi_cmnd *SCpnt) fas216_eh_host_reset() argument
[all...]
H A Dqueue.c33 struct scsi_cmnd *SCpnt; member
69 * If life was easier, then SCpnt would have a in queue_initialise()
78 q->SCpnt = NULL; in queue_initialise()
100 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
103 * SCpnt - command to add
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 in queue_remove_exclude() local
191 struct scsi_cmnd *SCpnt = NULL; queue_remove() local
215 struct scsi_cmnd *SCpnt = NULL; queue_remove_tgtluntag() local
287 queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt) queue_remove_cmd() argument
[all...]
H A Darm_scsi.h88 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 in init_SCp()
[all...]
H A Dqueue.h49 #define queue_add_cmd_ordered(queue,SCpnt) \
50 __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE)
51 #define queue_add_cmd_tail(queue,SCpnt) \
52 __queue_add(queue,SCpnt,0)
54 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
57 * SCpnt - command to add
61 extern int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head);
96 * Function: int queue_remove_cmd (Queue_t *queue, struct scsi_cmnd *SCpnt)
99 * SCpnt
[all...]
/kernel/linux/linux-5.10/drivers/scsi/
H A Dnsp32.c355 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, in
442 nsp32_selection_autopara(struct scsi_cmnd *SCpnt) nsp32_selection_autopara() argument
573 nsp32_selection_autoscsi(struct scsi_cmnd *SCpnt) nsp32_selection_autoscsi() argument
748 nsp32_arbitration(struct scsi_cmnd *SCpnt, unsigned int base) nsp32_arbitration() argument
797 nsp32_reselection(struct scsi_cmnd *SCpnt, unsigned char newlun) nsp32_reselection() argument
851 nsp32_setup_sg_table(struct scsi_cmnd *SCpnt) nsp32_setup_sg_table() argument
897 nsp32_queuecommand_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) nsp32_queuecommand_lck() argument
1152 struct scsi_cmnd *SCpnt = data->CurrentSC; do_nsp32_isr() local
1510 nsp32_scsi_done(struct scsi_cmnd *SCpnt) nsp32_scsi_done() argument
1548 nsp32_busfree_occur(struct scsi_cmnd *SCpnt, unsigned short execph) nsp32_busfree_occur() argument
1706 nsp32_adjust_busfree(struct scsi_cmnd *SCpnt, unsigned int s_sacklen) nsp32_adjust_busfree() argument
1779 nsp32_msgout_occur(struct scsi_cmnd *SCpnt) nsp32_msgout_occur() argument
1855 nsp32_restart_autoscsi(struct scsi_cmnd *SCpnt, unsigned short command) nsp32_restart_autoscsi() argument
1921 nsp32_msgin_occur(struct scsi_cmnd *SCpnt, unsigned long irq_status, unsigned short execph) nsp32_msgin_occur() argument
2218 nsp32_analyze_sdtr(struct scsi_cmnd *SCpnt) nsp32_analyze_sdtr() argument
2809 nsp32_eh_abort(struct scsi_cmnd *SCpnt) nsp32_eh_abort() argument
2879 nsp32_eh_host_reset(struct scsi_cmnd *SCpnt) nsp32_eh_host_reset() argument
[all...]
H A Dsr.c86 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 in sr_done()
390 sr_init_command(struct scsi_cmnd *SCpnt) sr_init_command() argument
[all...]
H A Daha1740.c247 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 in aha1740_queuecommand_lck()
[all...]
H A Daha152x.c553 #define SCDATA(SCpnt) ((struct aha152x_scdata *) (SCpnt)->host_scribble)
554 #define SCNEXT(SCpnt) SCDATA(SCpnt)->next
555 #define SCSEM(SCpnt) SCDATA(SCpnt)->done
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 in aha152x_internal_queue()
979 aha152x_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) aha152x_queue_lck() argument
991 reset_done(struct scsi_cmnd *SCpnt) reset_done() argument
1004 aha152x_abort(struct scsi_cmnd *SCpnt) aha152x_abort() argument
1045 aha152x_device_reset(struct scsi_cmnd * SCpnt) aha152x_device_reset() argument
1165 aha152x_bus_reset(struct scsi_cmnd *SCpnt) aha152x_bus_reset() argument
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A Dnsp32.c362 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, in
449 nsp32_selection_autopara(struct scsi_cmnd *SCpnt) nsp32_selection_autopara() argument
581 nsp32_selection_autoscsi(struct scsi_cmnd *SCpnt) nsp32_selection_autoscsi() argument
757 nsp32_arbitration(struct scsi_cmnd *SCpnt, unsigned int base) nsp32_arbitration() argument
806 nsp32_reselection(struct scsi_cmnd *SCpnt, unsigned char newlun) nsp32_reselection() argument
861 nsp32_setup_sg_table(struct scsi_cmnd *SCpnt) nsp32_setup_sg_table() argument
908 nsp32_queuecommand_lck(struct scsi_cmnd *SCpnt) nsp32_queuecommand_lck() argument
1160 struct scsi_cmnd *SCpnt = data->CurrentSC; do_nsp32_isr() local
1528 nsp32_scsi_done(struct scsi_cmnd *SCpnt) nsp32_scsi_done() argument
1566 nsp32_busfree_occur(struct scsi_cmnd *SCpnt, unsigned short execph) nsp32_busfree_occur() argument
1719 nsp32_adjust_busfree(struct scsi_cmnd *SCpnt, unsigned int s_sacklen) nsp32_adjust_busfree() argument
1794 nsp32_msgout_occur(struct scsi_cmnd *SCpnt) nsp32_msgout_occur() argument
1860 nsp32_restart_autoscsi(struct scsi_cmnd *SCpnt, unsigned short command) nsp32_restart_autoscsi() argument
1926 nsp32_msgin_occur(struct scsi_cmnd *SCpnt, unsigned long irq_status, unsigned short execph) nsp32_msgin_occur() argument
2223 nsp32_analyze_sdtr(struct scsi_cmnd *SCpnt) nsp32_analyze_sdtr() argument
2809 nsp32_eh_abort(struct scsi_cmnd *SCpnt) nsp32_eh_abort() argument
2879 nsp32_eh_host_reset(struct scsi_cmnd *SCpnt) nsp32_eh_host_reset() argument
[all...]
H A Dsr.c87 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 in sr_done()
359 sr_init_command(struct scsi_cmnd *SCpnt) sr_init_command() argument
[all...]
H A Daha1740.c252 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 in aha1740_queuecommand_lck()
[all...]
/kernel/linux/linux-5.10/drivers/message/fusion/
H A 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);
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()
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 in mptfc_block_error_handler()
235 mptfc_abort(struct scsi_cmnd *SCpnt) mptfc_abort() argument
242 mptfc_dev_reset(struct scsi_cmnd *SCpnt) mptfc_dev_reset() argument
249 mptfc_bus_reset(struct scsi_cmnd *SCpnt) mptfc_bus_reset() argument
643 mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) mptfc_qcmd() argument
[all...]

Completed in 22 milliseconds

1234