Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 1425) sorted by relevance

12345678910>>...57

/linux-2.4.37.9/include/linux/
Dfcntl.h29 #define IS_GETLK32(cmd) ((cmd) == F_GETLK) argument
30 #define IS_SETLK32(cmd) ((cmd) == F_SETLK) argument
31 #define IS_SETLKW32(cmd) ((cmd) == F_SETLKW) argument
32 #define IS_GETLK64(cmd) ((cmd) == F_GETLK64) argument
33 #define IS_SETLK64(cmd) ((cmd) == F_SETLK64) argument
34 #define IS_SETLKW64(cmd) ((cmd) == F_SETLKW64) argument
36 #define IS_GETLK32(cmd) (0) argument
37 #define IS_SETLK32(cmd) (0) argument
38 #define IS_SETLKW32(cmd) (0) argument
39 #define IS_GETLK64(cmd) ((cmd) == F_GETLK) argument
[all …]
/linux-2.4.37.9/drivers/scsi/
Dsun3_NCR5380.c267 #define NEXT(cmd) ((Scsi_Cmnd *)((cmd)->host_scribble)) argument
268 #define NEXTADDR(cmd) ((Scsi_Cmnd **)&((cmd)->host_scribble)) argument
271 #define H_NO(cmd) (cmd)->host->host_no argument
358 static int is_lun_busy( Scsi_Cmnd *cmd, int should_be_tagged ) in is_lun_busy() argument
360 SETUP_HOSTDATA(cmd->host); in is_lun_busy()
362 if (hostdata->busy[cmd->target] & (1 << cmd->lun)) in is_lun_busy()
365 !setup_use_tagged_queuing || !cmd->device->tagged_supported) in is_lun_busy()
367 if (TagAlloc[cmd->target][cmd->lun].nr_allocated >= in is_lun_busy()
368 TagAlloc[cmd->target][cmd->lun].queue_size ) { in is_lun_busy()
370 H_NO(cmd), cmd->target, cmd->lun ); in is_lun_busy()
[all …]
Datari_NCR5380.c265 #define NEXT(cmd) ((Scsi_Cmnd *)((cmd)->host_scribble)) argument
266 #define NEXTADDR(cmd) ((Scsi_Cmnd **)&((cmd)->host_scribble)) argument
269 #define H_NO(cmd) (cmd)->host->host_no argument
351 static int is_lun_busy( Scsi_Cmnd *cmd, int should_be_tagged ) in is_lun_busy() argument
353 SETUP_HOSTDATA(cmd->host); in is_lun_busy()
355 if (hostdata->busy[cmd->target] & (1 << cmd->lun)) in is_lun_busy()
358 !setup_use_tagged_queuing || !cmd->device->tagged_supported) in is_lun_busy()
360 if (TagAlloc[cmd->target][cmd->lun].nr_allocated >= in is_lun_busy()
361 TagAlloc[cmd->target][cmd->lun].queue_size ) { in is_lun_busy()
363 H_NO(cmd), cmd->target, cmd->lun ); in is_lun_busy()
[all …]
Dmac_NCR5380.c283 #define NEXT(cmd) ((Scsi_Cmnd *)((cmd)->host_scribble)) argument
284 #define NEXTADDR(cmd) ((Scsi_Cmnd **)&((cmd)->host_scribble)) argument
287 #define H_NO(cmd) (cmd)->host->host_no argument
374 static int is_lun_busy( Scsi_Cmnd *cmd, int should_be_tagged ) in is_lun_busy() argument
376 SETUP_HOSTDATA(cmd->host); in is_lun_busy()
378 if (hostdata->busy[cmd->target] & (1 << cmd->lun)) in is_lun_busy()
381 !setup_use_tagged_queuing || !cmd->device->tagged_supported) in is_lun_busy()
383 if (TagAlloc[cmd->target][cmd->lun].nr_allocated >= in is_lun_busy()
384 TagAlloc[cmd->target][cmd->lun].queue_size ) { in is_lun_busy()
386 H_NO(cmd), cmd->target, cmd->lun ); in is_lun_busy()
[all …]
Din2000.c210 static inline void write_3393_cmd(struct IN2000_hostdata *hostdata, uchar cmd) in write_3393_cmd() argument
215 write1_io(cmd,IO_WD_DATA); in write_3393_cmd()
260 static int is_dir_out(Scsi_Cmnd *cmd) in is_dir_out() argument
262 switch (cmd->cmnd[0]) { in is_dir_out()
320 int in2000_queuecommand (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)) in in2000_queuecommand() argument
326 hostdata = (struct IN2000_hostdata *)cmd->host->hostdata; in in2000_queuecommand()
328 DB(DB_QUEUE_COMMAND,printk("Q-%d-%02x-%ld(",cmd->target,cmd->cmnd[0],cmd->pid)) in in2000_queuecommand()
336 cmd->host_scribble = NULL; in in2000_queuecommand()
337 cmd->scsi_done = done; in in2000_queuecommand()
338 cmd->result = 0; in in2000_queuecommand()
[all …]
Dwd33c93.c199 static inline void write_wd33c93_cmd(const wd33c93_regs regs, uchar cmd) in write_wd33c93_cmd() argument
203 *regs.SCMD = cmd; in write_wd33c93_cmd()
254 static int is_dir_out(Scsi_Cmnd *cmd) in is_dir_out() argument
256 switch (cmd->cmnd[0]) { in is_dir_out()
314 int wd33c93_queuecommand (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)) in wd33c93_queuecommand() argument
320 hostdata = (struct WD33C93_hostdata *)cmd->host->hostdata; in wd33c93_queuecommand()
322 DB(DB_QUEUE_COMMAND,printk("Q-%d-%02x-%ld( ",cmd->target,cmd->cmnd[0],cmd->pid)) in wd33c93_queuecommand()
330 cmd->host_scribble = NULL; in wd33c93_queuecommand()
331 cmd->scsi_done = done; in wd33c93_queuecommand()
332 cmd->result = 0; in wd33c93_queuecommand()
[all …]
Dsr_vendor.c109 unsigned char cmd[MAX_COMMAND_SIZE]; /* the scsi-command */ in sr_set_blocklength() local
125 memset(cmd, 0, MAX_COMMAND_SIZE); in sr_set_blocklength()
126 cmd[0] = MODE_SELECT; in sr_set_blocklength()
127 cmd[1] = (scsi_CDs[minor].device->scsi_level <= SCSI_2) ? in sr_set_blocklength()
129 cmd[1] |= (1 << 4); in sr_set_blocklength()
130 cmd[4] = 12; in sr_set_blocklength()
137 if (0 == (rc = sr_do_ioctl(minor, cmd, buffer, sizeof(*modesel), 0, SCSI_DATA_WRITE, NULL))) { in sr_set_blocklength()
158 unsigned char cmd[MAX_COMMAND_SIZE]; /* the scsi-command */ in sr_cd_check() local
176 memset(cmd, 0, MAX_COMMAND_SIZE); in sr_cd_check()
177 cmd[0] = READ_TOC; in sr_cd_check()
[all …]
DAM53C974.c361 static __inline__ void initialize_SCp(Scsi_Cmnd * cmd);
374 static int AM53C974_message(struct Scsi_Host *instance, Scsi_Cmnd * cmd, unsigned char msg);
375 static void AM53C974_select(struct Scsi_Host *instance, Scsi_Cmnd * cmd, int tag);
840 static __inline__ void initialize_SCp(Scsi_Cmnd * cmd) in initialize_SCp() argument
842 if (cmd->use_sg) { in initialize_SCp()
843 cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; in initialize_SCp()
844 cmd->SCp.buffers_residual = cmd->use_sg - 1; in initialize_SCp()
845 cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; in initialize_SCp()
846 cmd->SCp.this_residual = cmd->SCp.buffer->length; in initialize_SCp()
848 cmd->SCp.buffer = NULL; in initialize_SCp()
[all …]
Dmac53c94.c151 mac53c94_queue(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)) in mac53c94_queue() argument
157 if (data_goes_out(cmd)) { in mac53c94_queue()
159 printk(KERN_DEBUG "mac53c94_queue %p: command is", cmd); in mac53c94_queue()
160 for (i = 0; i < cmd->cmd_len; ++i) in mac53c94_queue()
161 printk(" %.2x", cmd->cmnd[i]); in mac53c94_queue()
163 cmd->use_sg, cmd->request_bufflen, cmd->request_buffer); in mac53c94_queue()
167 cmd->scsi_done = done; in mac53c94_queue()
168 cmd->host_scribble = NULL; in mac53c94_queue()
170 state = (struct fsc_state *) cmd->host->hostdata; in mac53c94_queue()
175 state->request_q = cmd; in mac53c94_queue()
[all …]
DNCR5380.c330 static __inline__ void initialize_SCp(Scsi_Cmnd * cmd) in initialize_SCp() argument
337 if (cmd->use_sg) { in initialize_SCp()
338 cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; in initialize_SCp()
339 cmd->SCp.buffers_residual = cmd->use_sg - 1; in initialize_SCp()
340 cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; in initialize_SCp()
341 cmd->SCp.this_residual = cmd->SCp.buffer->length; in initialize_SCp()
343 cmd->SCp.buffer = NULL; in initialize_SCp()
344 cmd->SCp.buffers_residual = 0; in initialize_SCp()
345 cmd->SCp.ptr = (char *) cmd->request_buffer; in initialize_SCp()
346 cmd->SCp.this_residual = cmd->request_bufflen; in initialize_SCp()
[all …]
Dscsi_queue.c79 int scsi_mlqueue_insert(Scsi_Cmnd * cmd, int reason) in scsi_mlqueue_insert() argument
84 SCSI_LOG_MLQUEUE(1, printk("Inserting command %p into mlqueue\n", cmd)); in scsi_mlqueue_insert()
90 scsi_delete_timer(cmd); in scsi_mlqueue_insert()
92 host = cmd->host; in scsi_mlqueue_insert()
107 if (scsi_retry_command(cmd) == 0) { in scsi_mlqueue_insert()
121 if (cmd->device->device_busy == 0) { in scsi_mlqueue_insert()
122 if (scsi_retry_command(cmd) == 0) { in scsi_mlqueue_insert()
126 cmd->device->device_blocked = TRUE; in scsi_mlqueue_insert()
132 cmd->state = SCSI_STATE_MLQUEUE; in scsi_mlqueue_insert()
133 cmd->owner = SCSI_OWNER_MIDLEVEL; in scsi_mlqueue_insert()
[all …]
Dgvp11.c56 static int dma_setup (Scsi_Cmnd *cmd, int dir_in) in dma_setup() argument
59 unsigned long addr = virt_to_bus(cmd->SCp.ptr); in dma_setup()
64 if (addr & HDATA(cmd->host)->dma_xfer_mask || in dma_setup()
65 (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) in dma_setup()
67 HDATA(cmd->host)->dma_bounce_len = (cmd->SCp.this_residual + 511) in dma_setup()
71 HDATA(cmd->host)->dma_bounce_buffer = in dma_setup()
72 scsi_malloc (HDATA(cmd->host)->dma_bounce_len); in dma_setup()
73 HDATA(cmd->host)->dma_buffer_pool = BUF_SCSI_ALLOCED; in dma_setup()
76 if ( scsi_alloc_out_of_range || !HDATA(cmd->host)->dma_bounce_buffer) { in dma_setup()
77 HDATA(cmd->host)->dma_bounce_buffer = in dma_setup()
[all …]
Dppa.c640 static inline int ppa_send_command(Scsi_Cmnd * cmd) in ppa_send_command() argument
642 int host_no = cmd->host->unique_id; in ppa_send_command()
647 for (k = 0; k < cmd->cmd_len; k++) in ppa_send_command()
648 if (!ppa_out(host_no, &cmd->cmnd[k], 1)) in ppa_send_command()
661 static int ppa_completion(Scsi_Cmnd * cmd) in ppa_completion() argument
668 int host_no = cmd->host->unique_id; in ppa_completion()
675 v = cmd->cmnd[0]; in ppa_completion()
695 if ((cmd->SCp.this_residual <= 0)) { in ppa_completion()
723 fast = (bulk && (cmd->SCp.this_residual >= PPA_BURST_SIZE)) in ppa_completion()
727 status = ppa_out(host_no, cmd->SCp.ptr, fast); in ppa_completion()
[all …]
D53c7xx.c319 static void print_progress (Scsi_Cmnd *cmd);
323 static void abnormal_finished (struct NCR53c7x0_cmd *cmd, int result);
330 *cmd);
331 static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd);
337 static void NCR53c7xx_dsa_fixup (struct NCR53c7x0_cmd *cmd);
340 NCR53c7x0_cmd *cmd);
1671 unsigned char cmd[6]; in NCR53c7xx_run_tests() local
1676 cmd[0] = INQUIRY; in NCR53c7xx_run_tests()
1677 cmd[1] = cmd[2] = cmd[3] = cmd[5] = 0; in NCR53c7xx_run_tests()
1678 cmd[4] = sizeof(data); in NCR53c7xx_run_tests()
[all …]
Dimm.c748 static inline int imm_send_command(Scsi_Cmnd * cmd) in imm_send_command() argument
750 int host_no = cmd->host->unique_id; in imm_send_command()
754 for (k = 0; k < cmd->cmd_len; k += 2) in imm_send_command()
755 if (!imm_out(host_no, &cmd->cmnd[k], 2)) in imm_send_command()
768 static int imm_completion(Scsi_Cmnd * cmd) in imm_completion() argument
775 int host_no = cmd->host->unique_id; in imm_completion()
782 v = cmd->cmnd[0]; in imm_completion()
812 if (((r & 0x88) != 0x88) || (cmd->SCp.this_residual <= 0)) { in imm_completion()
818 fast = (bulk && (cmd->SCp.this_residual >= IMM_BURST_SIZE)) ? IMM_BURST_SIZE : 2; in imm_completion()
819 status = imm_out(host_no, cmd->SCp.ptr, fast); in imm_completion()
[all …]
Dscsi_debug.c139 static int resp_inquiry(unsigned char * cmd, int target, unsigned char * buff,
141 static int resp_mode_sense(unsigned char * cmd, int target,
148 static int resp_report_luns(unsigned char * cmd, unsigned char * buff,
171 unsigned char *cmd = (unsigned char *) SCpnt->cmnd; in scsi_debug_queuecommand() local
212 SCpnt->device, (int)*cmd); in scsi_debug_queuecommand()
230 switch (*cmd) { in scsi_debug_queuecommand()
235 errsts = resp_inquiry(cmd, target, buff, bufflen, devip); in scsi_debug_queuecommand()
260 cmd[4] ? "inhibited" : "enabled"); in scsi_debug_queuecommand()
304 if ((*cmd) == SCSI_CMD_READ_16) { in scsi_debug_queuecommand()
305 upper_blk = cmd[5] + (cmd[4] << 8) + in scsi_debug_queuecommand()
[all …]
Deata_pio.c122 Scsi_Cmnd *cmd; in eata_pio_int_handler() local
146 cmd = cp->cmd; in eata_pio_int_handler()
147 base = (uint) cmd->host->base; in eata_pio_int_handler()
156 while ((cmd->SCp.Status)&&((z>0)||(odd))) in eata_pio_int_handler()
160 *(cmd->SCp.ptr)=zwickel>>8; in eata_pio_int_handler()
161 IncStat(&cmd->SCp,1); in eata_pio_int_handler()
164 x=min_t(unsigned int,z,cmd->SCp.this_residual/2); in eata_pio_int_handler()
165 insw(base+HA_RDATA,cmd->SCp.ptr,x); in eata_pio_int_handler()
167 IncStat(&cmd->SCp,2*x); in eata_pio_int_handler()
168 if ((z>0)&&(cmd->SCp.this_residual==1)) in eata_pio_int_handler()
[all …]
Deata_dma.c178 inline void eata_latency_out(struct eata_ccb *cp, Scsi_Cmnd *cmd) in eata_latency_out() argument
185 switch(cmd->cmnd[0]) { in eata_latency_out()
187 x = cmd->cmnd[4]/2; in eata_latency_out()
191 x = cmd->cmnd[4]/2; in eata_latency_out()
195 sho = (short *) &cmd->cmnd[7]; in eata_latency_out()
200 sho = (short *) &cmd->cmnd[7]; in eata_latency_out()
205 lon = (long *) &cmd->cmnd[6]; in eata_latency_out()
210 lon = (long *) &cmd->cmnd[6]; in eata_latency_out()
218 if (cmd->cmnd[0] == WRITE_6 || cmd->cmnd[0] == WRITE_10 || in eata_latency_out()
219 cmd->cmnd[0] == WRITE_12 || cmd->cmnd[0] == READ_6 || in eata_latency_out()
[all …]
D53c7,8xx.c258 static void print_progress (Scsi_Cmnd *cmd);
262 static void abnormal_finished (struct NCR53c7x0_cmd *cmd, int result);
271 *cmd);
272 static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd);
278 static void NCR53c8xx_dsa_fixup (struct NCR53c7x0_cmd *cmd);
281 NCR53c7x0_cmd *cmd);
1915 unsigned char cmd[6]; in NCR53c8xx_run_tests() local
1920 cmd[0] = INQUIRY; in NCR53c8xx_run_tests()
1921 cmd[1] = cmd[2] = cmd[3] = cmd[5] = 0; in NCR53c8xx_run_tests()
1922 cmd[4] = sizeof(data); in NCR53c8xx_run_tests()
[all …]
/linux-2.4.37.9/arch/m68k/atari/
Datakeyb.c549 static const char cmd[2] = { 0x80, 0x01 }; in ikbd_reset() local
551 ikbd_write(cmd, 2); in ikbd_reset()
560 char cmd[2] = { 0x07, mode }; in ikbd_mouse_button_action() local
562 ikbd_write(cmd, 2); in ikbd_mouse_button_action()
568 static const char cmd[1] = { 0x08 }; in ikbd_mouse_rel_pos() local
570 ikbd_write(cmd, 1); in ikbd_mouse_rel_pos()
576 char cmd[5] = { 0x09, xmax>>8, xmax&0xFF, ymax>>8, ymax&0xFF }; in ikbd_mouse_abs_pos() local
578 ikbd_write(cmd, 5); in ikbd_mouse_abs_pos()
584 char cmd[3] = { 0x0A, dx, dy }; in ikbd_mouse_kbd_mode() local
586 ikbd_write(cmd, 3); in ikbd_mouse_kbd_mode()
[all …]
/linux-2.4.37.9/drivers/net/
Daironet4500_core.c165 awc_issue_command_and_block(struct awc_command * cmd){ in awc_issue_command_and_block() argument
178 AWC_LOCK_COMMAND_ISSUING(cmd->priv); in awc_issue_command_and_block()
180 if (awc_command_busy_clear_wait(cmd->dev)) goto final; in awc_issue_command_and_block()
182 if (cmd->priv->sleeping_bap) udelay(sleep_before_command); in awc_issue_command_and_block()
184 awc4500wout(cmd->port,cmd->command,cmd->par0,cmd->par1,cmd->par2); in awc_issue_command_and_block()
188 if (cmd->priv->sleeping_bap) udelay(sleep_in_command); in awc_issue_command_and_block()
190 enabled_interrupts = awc_ints_enabled(cmd->dev->base_addr); in awc_issue_command_and_block()
191 awc_ints_enable(cmd->dev->base_addr, enabled_interrupts & ~0x10); in awc_issue_command_and_block()
192 if(cmd->priv->enabled_interrupts & 0x10) in awc_issue_command_and_block()
193 cmd->priv->enabled_interrupts &= ~0x10; in awc_issue_command_and_block()
[all …]
/linux-2.4.37.9/arch/x86_64/kernel/
Dmsr.c99 struct msr_command *cmd = (struct msr_command *) cmd_block; in msr_smp_wrmsr() local
101 if ( cmd->cpu == smp_processor_id() ) in msr_smp_wrmsr()
102 cmd->err = wrmsr_eio(cmd->reg, cmd->data[0], cmd->data[1]); in msr_smp_wrmsr()
107 struct msr_command *cmd = (struct msr_command *) cmd_block; in msr_smp_rdmsr() local
109 if ( cmd->cpu == smp_processor_id() ) in msr_smp_rdmsr()
110 cmd->err = rdmsr_eio(cmd->reg, &cmd->data[0], &cmd->data[1]); in msr_smp_rdmsr()
115 struct msr_command cmd; in do_wrmsr() local
120 cmd.cpu = cpu; in do_wrmsr()
121 cmd.reg = reg; in do_wrmsr()
122 cmd.data[0] = eax; in do_wrmsr()
[all …]
/linux-2.4.37.9/drivers/char/drm-4.0/
Di810_drv.h81 unsigned int cmd, unsigned long arg);
85 unsigned int cmd, unsigned long arg);
87 unsigned int cmd, unsigned long arg);
92 unsigned int cmd, unsigned long arg);
96 unsigned int cmd, unsigned long arg);
98 unsigned int cmd, unsigned long arg);
100 unsigned int cmd, unsigned long arg);
102 unsigned int cmd, unsigned long arg);
104 extern int i810_getage(struct inode *inode, struct file *filp, unsigned int cmd,
108 unsigned int cmd, unsigned long arg);
[all …]
/linux-2.4.37.9/arch/i386/kernel/
Dmsr.c99 struct msr_command *cmd = (struct msr_command *) cmd_block; in msr_smp_wrmsr() local
101 if ( cmd->cpu == smp_processor_id() ) in msr_smp_wrmsr()
102 cmd->err = wrmsr_eio(cmd->reg, cmd->data[0], cmd->data[1]); in msr_smp_wrmsr()
107 struct msr_command *cmd = (struct msr_command *) cmd_block; in msr_smp_rdmsr() local
109 if ( cmd->cpu == smp_processor_id() ) in msr_smp_rdmsr()
110 cmd->err = rdmsr_eio(cmd->reg, &cmd->data[0], &cmd->data[1]); in msr_smp_rdmsr()
115 struct msr_command cmd; in do_wrmsr() local
120 cmd.cpu = cpu; in do_wrmsr()
121 cmd.reg = reg; in do_wrmsr()
122 cmd.data[0] = eax; in do_wrmsr()
[all …]
/linux-2.4.37.9/drivers/char/ip2/
Di2cmd.h53 UCHAR cmd[2]; member
201 (((cmdSyntaxPtr)(ct07))->cmd[1] = (arg),(cmdSyntaxPtr)(ct07))
237 (((cmdSyntaxPtr)(ct08))->cmd[1] = (arg),(cmdSyntaxPtr)(ct08))
247 (((cmdSyntaxPtr)(ct09))->cmd[1] = (arg),(cmdSyntaxPtr)(ct09))
256 (((cmdSyntaxPtr)(ct10))->cmd[1] = (arg),(cmdSyntaxPtr)(ct10))
267 (((cmdSyntaxPtr)(ct11))->cmd[1] = (arg),(cmdSyntaxPtr)(ct11))
272 (((cmdSyntaxPtr)(ct12))->cmd[1] = (arg),(cmdSyntaxPtr)(ct12))
286 (((cmdSyntaxPtr)(ct15))->cmd[1] = (arg),(cmdSyntaxPtr)(ct15))
301 (((cmdSyntaxPtr)(ct16))->cmd[1] = (arg),(cmdSyntaxPtr)(ct16))
310 (((cmdSyntaxPtr)(ct17))->cmd[1] = (arg),(cmdSyntaxPtr)(ct17))
[all …]

12345678910>>...57