Searched refs:command (Results 1 - 200 of 3945) sorted by relevance

1234567891011>>

/linux-4.1.27/drivers/misc/ibmasm/
H A DMakefile7 command.o \
H A Ddot_command.c66 * send the 4.3.5.10 dot command (driver VPD) to the service processor
70 struct command *command; ibmasm_send_driver_vpd() local
76 command = ibmasm_new_command(sp, INIT_BUFFER_SIZE); ibmasm_send_driver_vpd()
77 if (command == NULL) ibmasm_send_driver_vpd()
80 header = (struct dot_command_header *)command->buffer; ibmasm_send_driver_vpd()
87 vpd_command = command->buffer + sizeof(struct dot_command_header); ibmasm_send_driver_vpd()
99 ibmasm_exec_command(sp, command); ibmasm_send_driver_vpd()
100 ibmasm_wait_for_response(command, IBMASM_CMD_TIMEOUT_NORMAL); ibmasm_send_driver_vpd()
102 if (command->status != IBMASM_CMD_COMPLETE) ibmasm_send_driver_vpd()
105 command_put(command); ibmasm_send_driver_vpd()
112 unsigned char command[3]; member in struct:os_state_command
117 * send the 4.3.6 dot command (os state) to the service processor
126 struct command *cmd; ibmasm_send_os_state()
139 os_state_cmd->command[0] = 4; ibmasm_send_os_state()
140 os_state_cmd->command[1] = 3; ibmasm_send_os_state()
141 os_state_cmd->command[2] = 6; ibmasm_send_os_state()
H A Dcommand.c34 struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size) ibmasm_new_command()
36 struct command *cmd; ibmasm_new_command()
41 cmd = kzalloc(sizeof(struct command), GFP_KERNEL); ibmasm_new_command()
61 dbg("command count: %d\n", atomic_read(&command_count)); ibmasm_new_command()
68 struct command *cmd = to_command(kref); ibmasm_free_command()
72 dbg("command count: %d\n", atomic_read(&command_count)); ibmasm_free_command()
77 static void enqueue_command(struct service_processor *sp, struct command *cmd) enqueue_command()
82 static struct command *dequeue_command(struct service_processor *sp) dequeue_command()
84 struct command *cmd; dequeue_command()
92 cmd = list_entry(next, struct command, queue_node); dequeue_command()
113 * send a command to a service processor
114 * Commands are executed sequentially. One command (sp->current_command)
119 void ibmasm_exec_command(struct service_processor *sp, struct command *cmd) ibmasm_exec_command()
158 * Sleep until a command has failed or a response has been received
159 * and the command status been updated by the interrupt handler.
162 void ibmasm_wait_for_response(struct command *cmd, int timeout) ibmasm_wait_for_response()
172 * called by the interrupt handler when a dot command of type command_response
177 struct command *cmd = sp->current_command; ibmasm_receive_command_response()
H A Dr_heartbeat.c33 /* the reverse heartbeat dot command */
37 unsigned char command[3]; member in struct:__anon5989
45 .command = { 4, 3, 6 }
57 * Loop forever, sending a reverse heartbeat dot command to the service
63 struct command *cmd; ibmasm_start_reverse_heartbeat()
H A Dlowlevel.c38 struct command *command = sp->current_command; ibmasm_send_i2o_message() local
44 command_size = get_dot_command_size(command->buffer); ibmasm_send_i2o_message()
50 memcpy_toio(&message->data, command->buffer, command_size); ibmasm_send_i2o_message()
H A Dibmasmfs.c36 * | |-- command
47 * |-- command
57 * command: execute dot commands
58 * write: execute a dot command on the service processor
59 * read: return the result of a previously executed dot command
216 /* struct to save state between command file operations */
219 struct command *command; member in struct:ibmasmfs_command_data
247 command_data->command = NULL; command_file_open()
257 if (command_data->command) command_file_close()
258 command_put(command_data->command); command_file_close()
267 struct command *cmd; command_file_read()
279 cmd = command_data->command; command_file_read()
284 command_data->command = NULL; command_file_read()
304 struct command *cmd; command_file_write()
314 /* commands are executed sequentially, only one command at a time */ command_file_write()
315 if (command_data->command) command_file_write()
328 if (command_data->command) { command_file_write()
333 command_data->command = cmd; command_file_write()
617 ibmasmfs_create_file(dir, "command", &command_fops, sp, S_IRUSR|S_IWUSR); ibmasmfs_create_files()
H A Dibmasm.h90 struct command { struct
99 #define to_command(c) container_of(c, struct command, kref)
102 static inline void command_put(struct command *cmd) command_put()
112 static inline void command_get(struct command *cmd) command_get()
155 struct command *current_command;
156 struct command *heartbeat;
167 /* command processing */
168 struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size);
169 void ibmasm_exec_command(struct service_processor *sp, struct command *cmd);
170 void ibmasm_wait_for_response(struct command *cmd, int timeout);
/linux-4.1.27/drivers/media/platform/s5p-mfc/
H A Ds5p_mfc_intr.c5 * This file contains functions used to wait for command completion.
24 int s5p_mfc_wait_for_done_dev(struct s5p_mfc_dev *dev, int command) s5p_mfc_wait_for_done_dev() argument
29 (dev->int_cond && (dev->int_type == command s5p_mfc_wait_for_done_dev()
33 mfc_err("Interrupt (dev->int_type:%d, command:%d) timed out\n", s5p_mfc_wait_for_done_dev()
34 dev->int_type, command); s5p_mfc_wait_for_done_dev()
40 mfc_debug(1, "Finished waiting (dev->int_type:%d, command: %d)\n", s5p_mfc_wait_for_done_dev()
41 dev->int_type, command); s5p_mfc_wait_for_done_dev()
55 int command, int interrupt) s5p_mfc_wait_for_done_ctx()
61 (ctx->int_cond && (ctx->int_type == command s5p_mfc_wait_for_done_ctx()
66 (ctx->int_cond && (ctx->int_type == command s5p_mfc_wait_for_done_ctx()
71 mfc_err("Interrupt (ctx->int_type:%d, command:%d) timed out\n", s5p_mfc_wait_for_done_ctx()
72 ctx->int_type, command); s5p_mfc_wait_for_done_ctx()
78 mfc_debug(1, "Finished waiting (ctx->int_type:%d, command: %d)\n", s5p_mfc_wait_for_done_ctx()
79 ctx->int_type, command); s5p_mfc_wait_for_done_ctx()
54 s5p_mfc_wait_for_done_ctx(struct s5p_mfc_ctx *ctx, int command, int interrupt) s5p_mfc_wait_for_done_ctx() argument
H A Ds5p_mfc_intr.h21 int command, int interrupt);
22 int s5p_mfc_wait_for_done_dev(struct s5p_mfc_dev *dev, int command);
/linux-4.1.27/include/uapi/linux/netfilter/
H A Dnf_conntrack_ftp.h7 /* PORT command from client */
11 /* EPRT command from client */
/linux-4.1.27/arch/sh/boot/compressed/
H A Dcache.c1 int cache_control(unsigned int command) cache_control() argument
/linux-4.1.27/net/nfc/hci/
H A DMakefile7 hci-y := core.o hcp.o command.o llc.o llc_nop.o
/linux-4.1.27/drivers/net/usb/
H A Dsr9800.h13 /* SR9800 spec. command table on Linux Platform */
15 /* command : Software Station Management Control Reg */
17 /* command : PHY Read Reg */
19 /* command : PHY Write Reg */
21 /* command : Hardware Station Management Control Reg */
23 /* command : SROM Read Reg */
25 /* command : SROM Write Reg */
27 /* command : SROM Write Enable Reg */
29 /* command : SROM Write Disable Reg */
31 /* command : RX Control Read Reg */
44 /* command : RX Control Write Reg */
46 /* command : IPG0/IPG1/IPG2 Control Read Reg */
48 /* command : IPG0/IPG1/IPG2 Control Write Reg */
50 /* command : Node ID Read Reg */
52 /* command : Node ID Write Reg */
54 /* command : Multicast Filter Array Read Reg */
56 /* command : Multicast Filter Array Write Reg */
58 /* command : Eth/HomePNA PHY Address Reg */
60 /* command : Medium Status Read Reg */
65 /* command : Medium Status Write Reg */
80 /* command : Monitor Mode Status Read Reg */
82 /* command : Monitor Mode Status Write Reg */
84 /* command : GPIO Status Read Reg */
94 /* command : GPIO Status Write Reg */
96 /* command : Eth PHY Power and Reset Control Reg */
106 /* command : Software Interface Selection Status Read Reg */
108 /* command : Software Interface Selection Status Write Reg */
110 /* command : BULK in Buffer Size Reg */
112 /* command : LED_MUX Control Reg */
H A Dcdc_eem.c174 * may have received multiple EEM payloads, or command payloads. eem_rx_fixup()
179 * all payloads (the last or only message was a command, or a eem_rx_fixup()
201 * packet is data or command : eem_rx_fixup()
203 * bmType = 1 : EEM (link) command eem_rx_fixup()
209 * EEM (link) command packet: eem_rx_fixup()
213 * b15: 1 (EEM command) eem_rx_fixup()
216 netdev_dbg(dev->net, "reserved command %04x\n", eem_rx_fixup()
225 case 0: /* Echo command */ eem_rx_fixup()
228 /* bogus command? */ eem_rx_fixup()
258 * or reserved command codes; or responses to an eem_rx_fixup()
259 * echo command we didn't send. eem_rx_fixup()
265 "unexpected link command %d\n", eem_rx_fixup()
/linux-4.1.27/drivers/net/appletalk/
H A Dltpc.h19 unsigned char command; member in struct:lt_getresult
24 unsigned char command; member in struct:lt_mem
31 unsigned char command; member in struct:lt_setflags
37 unsigned char command; member in struct:lt_getflags
42 unsigned char command; member in struct:lt_init
48 unsigned char command; member in struct:lt_sendlap
56 unsigned char command; member in struct:lt_rcvlap
/linux-4.1.27/drivers/scsi/pcmcia/
H A Dnsp_debug.c12 * Show the command data of a command
88 static void print_commandk (unsigned char *command) print_commandk() argument
92 print_opcodek(command[0]); print_commandk()
94 if ((command[0] >> 5) == 6 || print_commandk()
95 (command[0] >> 5) == 7 ) { print_commandk()
98 s = COMMAND_SIZE(command[0]); print_commandk()
101 printk("%02x ", command[i]); print_commandk()
107 (((unsigned int)command[1] & 0x0f) << 16) | print_commandk()
108 ( (unsigned int)command[2] << 8) | print_commandk()
109 ( (unsigned int)command[3] ), print_commandk()
110 (unsigned int)command[4] print_commandk()
115 ((unsigned int)command[2] << 24) | print_commandk()
116 ((unsigned int)command[3] << 16) | print_commandk()
117 ((unsigned int)command[4] << 8) | print_commandk()
118 ((unsigned int)command[5] ), print_commandk()
119 ((unsigned int)command[7] << 8) | print_commandk()
120 ((unsigned int)command[8] ) print_commandk()
125 ((unsigned int)command[2] << 24) | print_commandk()
126 ((unsigned int)command[3] << 16) | print_commandk()
127 ((unsigned int)command[4] << 8) | print_commandk()
128 ((unsigned int)command[5] ), print_commandk()
129 ((unsigned int)command[6] << 24) | print_commandk()
130 ((unsigned int)command[7] << 16) | print_commandk()
131 ((unsigned int)command[8] << 8) | print_commandk()
132 ((unsigned int)command[9] ) print_commandk()
/linux-4.1.27/arch/sh/include/asm/
H A Dromimage-macros.h4 /* The LIST command is used to include comments in the script */
8 /* The ED command is used to write a 32-bit word */
21 /* The EW command is used to write a 16-bit word */
34 /* The EB command is used to write an 8-bit word */
47 /* The WAIT command is used to delay the execution */
62 /* The DD command is used to read a 32-bit word */
/linux-4.1.27/drivers/scsi/arm/
H A Dqueue.h36 * Purpose : removes first SCSI command from a queue
37 * Params : queue - queue to remove command from
38 * Returns : struct scsi_cmnd if successful (and a reference), or NULL if no command available
44 * Purpose : remove a SCSI command from a queue
45 * Params : queue - queue to remove command from
47 * Returns : struct scsi_cmnd if successful (and a reference), or NULL if no command available
58 * Purpose : Add a new command onto a queue
60 * SCpnt - command to add
61 * head - add command to head of queue
68 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag
69 * Params : queue - queue to remove command from
73 * Returns : struct scsi_cmnd if successful, or NULL if no command satisfies requirements
81 * Params : queue - queue to remove command from
89 * Purpose : check to see if we have a command in the queue for the specified
100 * Purpose : remove a specific command from the queues
102 * SCpnt - command to find
H A Dqueue.c100 * Purpose : Add a new command onto a queue, adding REQUEST_SENSE to head.
102 * SCpnt - command to add
103 * head - add command to head of queue
156 * Purpose : remove a SCSI command from a queue
157 * Params : queue - queue to remove command from
159 * Returns : struct scsi_cmnd if successful (and a reference), or NULL if no command available
183 * Purpose : removes first SCSI command from a queue
184 * Params : queue - queue to remove command from
185 * Returns : struct scsi_cmnd if successful (and a reference), or NULL if no command available
202 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag
203 * Params : queue - queue to remove command from
207 * Returns : struct scsi_cmnd if successful, or NULL if no command satisfies requirements
233 * Params : queue - queue to remove command from
253 * Purpose : check to see if we have a command in the queue for the specified
281 * Purpose : remove a specific command from the queues
283 * SCpnt - command to find
317 MODULE_DESCRIPTION("SCSI command queueing");
H A Dfas216.h33 /* command */
88 #define INST_ILLEGALCMD (1 << 6) /* Illegal command */
99 #define IS_NOTCOMMAND 0x02 /* Not in command state */
175 PHASE_SELSTEPS, /* selection with command steps */
176 PHASE_COMMAND, /* command sent */
219 struct scsi_cmnd *SCpnt; /* currently processing command */
220 struct scsi_cmnd *origSCpnt; /* original connecting command */
221 struct scsi_cmnd *reqSCpnt; /* request sense command */
222 struct scsi_cmnd *rstSCpnt; /* reset command */
252 unsigned char disconnectable:1; /* this command can be disconnected */
253 unsigned char aborting:1; /* aborting command */
285 Queue_t disconnected; /* disconnected command queue */
331 * Purpose : queue a command for adapter to process.
339 * Purpose : queue a command for adapter to process, and process it to completion.
347 * Purpose : handle interrupts from the interface to progress a command
366 * Purpose : abort this command
367 * Params : SCpnt - command to abort
373 * Purpose : Reset the device associated with this command
374 * Params : SCpnt - command specifing device to reset
380 * Purpose : Reset the complete bus associated with this command
381 * Params : SCpnt - command specifing bus to reset
387 * Purpose : Reset the host associated with this command
388 * Params : SCpnt - command specifing host to reset
H A Dfas216.c265 [PHASE_COMMAND] = "command", fas216_drv_phase()
363 static struct { int command; void *from; } cmd_list[8]; member in struct:__anon8645
366 static void fas216_cmd(FAS216_Info *info, unsigned int command) fas216_cmd() argument
368 cmd_list[cmd_ptr].command = command; fas216_cmd()
373 fas216_writeb(info, REG_CMD, command); fas216_cmd()
397 printk("%02x:%p ", cmd_list[i].command, cmd_list[i].from); print_debug_list()
492 * synchronous negotiation on each REQUEST SENSE and INQUIRY command.
909 case PHASE_DONE: /* at end of command - complete */ fas216_disconnect_intr()
993 fas216_log(info, LOG_CONNECT, "reconnected previously executing command"); fas216_reselected_intr()
996 fas216_log(info, LOG_CONNECT, "had to move command to disconnected queue"); fas216_reselected_intr()
1003 fas216_log(info, LOG_CONNECT, "had to get command"); fas216_reselected_intr()
1017 * Our command structure not found - abort the fas216_reselected_intr()
1018 * command on the target. Since we have no fas216_reselected_intr()
1019 * record of this command, we can't send fas216_reselected_intr()
1060 printk(KERN_ERR "scsi%d.%c: command complete with no " fas216_parse_message()
1073 * NOTE: we DO NOT save the command nor status pointers fas216_parse_message()
1151 * invalid command interrupt when I do. Weird. fas216_parse_message()
1281 * fas216_send_command - send command after all message bytes have been sent
1284 * Send a command to a target after all message bytes have been sent
1295 /* load command */ fas216_send_command()
1491 /* error - we've sent out all the command bytes
1494 * to include the command bytes sent for this to work
1498 "target trying to receive more command bytes\n",
1619 * fas216_intr - handle interrupts to progress a command
1622 * Handle interrupts from the interface to progress a command
1643 fas216_log(info, LOG_ERROR, "illegal command given\n"); fas216_intr()
1716 /* load command */ __fas216_start_command()
1813 * tagged queuing - allocate a new tag to this command fas216_allocate_tag()
1885 * fas216_kick - kick a command to the interface
1888 * Kick a command to the interface, interface should be idle.
1902 * Obtain the next command to process. fas216_kick()
1924 /* retrieve next command */ fas216_kick()
1935 * no command pending, so enable reselection. fas216_kick()
1942 * We're going to start a command, so disable reselection fas216_kick()
1948 "moved command for %d to disconnected queue", fas216_kick()
1992 * fas216_rq_sns_done - Finish processing automatic request sense command
1994 * @SCpnt: command that completed
1997 * Finish processing automatic request sense command
2017 * reflect the status of the command that we were asked by fas216_rq_sns_done()
2026 * fas216_std_done - finish processing of standard command
2028 * @SCpnt: command that completed
2031 * Finish processing of standard command
2042 "command complete, result=0x%08x", SCpnt->result); fas216_std_done()
2052 * If the command returned CHECK_CONDITION or COMMAND_TERMINATED fas216_std_done()
2060 * If the command did not complete with GOOD status, fas216_std_done()
2067 * We have successfully completed a command. Make sure that fas216_std_done()
2115 * Place this command into the high priority "request fas216_std_done()
2116 * sense" slot. This will be the very next command fas216_std_done()
2120 printk(KERN_WARNING "scsi%d.%c: losing request command\n", fas216_std_done()
2126 * fas216_done - complete processing for current command
2130 * Complete processing for current command
2166 * Clear down this command as completed. If we need to request fas216_done()
2186 panic("scsi%d.H: null command in fas216_done", fas216_done()
2191 * fas216_queue_command - queue a command for adapter to process.
2193 * @done: done function to call once command is complete
2195 * Queue a command for adapter to process.
2208 "received command (%p)", SCpnt); fas216_queue_command_lck()
2222 * Add command into execute queue and let it complete under fas216_queue_command_lck()
2228 * If we successfully added the command, fas216_queue_command_lck()
2259 * fas216_noqueue_command - process a command for the adapter.
2262 * Queue a command for adapter to process.
2283 * This wastes time, since we can't return until the command is fas216_noqueue_command_lck()
2294 * interrupt routine. That way, we keep the command fas216_noqueue_command_lck()
2337 res_success, /* command on issue queue */
2338 res_hw_abort /* command on disconnected dev */
2342 * fas216_do_abort - decide how to abort a command
2343 * @SCpnt: command to abort
2345 * Decide how to abort a command.
2355 * The command was on the issue queue, and has not been fas216_find_command()
2356 * issued yet. We can remove the command from the queue, fas216_find_command()
2358 * interface know about the command. fas216_find_command()
2365 * The command was on the disconnected queue. We must fas216_find_command()
2377 * If the interface is idle, and the command is 'disconnectable', fas216_find_command()
2393 * The command will be executed next, but a command fas216_find_command()
2410 * fas216_eh_abort - abort this command
2411 * @SCpnt: command to abort
2413 * Abort this command.
2426 scmd_printk(KERN_WARNING, SCpnt, "abort command\n"); fas216_eh_abort()
2433 * We found the command, and cleared it out. Either fas216_eh_abort()
2434 * the command is still known to be executing on the fas216_eh_abort()
2450 * We are unable to abort the command for some reason. fas216_eh_abort()
2462 * fas216_eh_device_reset - Reset the device associated with this command
2463 * @SCpnt: command specifing device to reset
2465 * Reset the device associated with this command.
2494 * so, we guarantee that we won't touch the command fas216_eh_device_reset()
2507 * Hijack this SCSI command structure to send fas216_eh_device_reset()
2544 * fas216_eh_bus_reset - Reset the bus associated with the command
2545 * @SCpnt: command specifing bus to reset
2547 * Reset the bus associated with the command.
2580 * all command structures. Leave the running fas216_eh_bus_reset()
2581 * command in place. fas216_eh_bus_reset()
2644 * fas216_eh_host_reset - Reset the host associated with this command
2645 * @SCpnt: command specifing host to reset
2647 * Reset the host associated with this command.
/linux-4.1.27/arch/um/include/asm/
H A Dsetup.h5 * command line, so this choice is ok.
/linux-4.1.27/sound/firewire/oxfw/
H A DMakefile1 snd-oxfw-objs := oxfw-command.o oxfw-stream.o oxfw-control.o oxfw-pcm.o \
/linux-4.1.27/drivers/staging/fsl-mc/bus/
H A Ddpbp.c42 /* prepare command */ dpbp_open()
47 /* send command to mc*/ dpbp_open()
63 /* prepare command */ dpbp_close()
67 /* send command to mc*/ dpbp_close()
81 /* prepare command */ dpbp_create()
85 /* send command to mc*/ dpbp_create()
100 /* prepare command */ dpbp_destroy()
104 /* send command to mc*/ dpbp_destroy()
112 /* prepare command */ dpbp_enable()
116 /* send command to mc*/ dpbp_enable()
125 /* prepare command */ dpbp_disable()
129 /* send command to mc*/ dpbp_disable()
138 /* prepare command */ dpbp_is_enabled()
142 /* send command to mc*/ dpbp_is_enabled()
157 /* prepare command */ dpbp_reset()
161 /* send command to mc*/ dpbp_reset()
174 /* prepare command */ dpbp_set_irq()
182 /* send command to mc*/ dpbp_set_irq()
197 /* prepare command */ dpbp_get_irq()
202 /* send command to mc*/ dpbp_get_irq()
222 /* prepare command */ dpbp_set_irq_enable()
228 /* send command to mc*/ dpbp_set_irq_enable()
240 /* prepare command */ dpbp_get_irq_enable()
245 /* send command to mc*/ dpbp_get_irq_enable()
262 /* prepare command */ dpbp_set_irq_mask()
268 /* send command to mc*/ dpbp_set_irq_mask()
280 /* prepare command */ dpbp_get_irq_mask()
285 /* send command to mc*/ dpbp_get_irq_mask()
303 /* prepare command */ dpbp_get_irq_status()
308 /* send command to mc*/ dpbp_get_irq_status()
325 /* prepare command */ dpbp_clear_irq_status()
331 /* send command to mc*/ dpbp_clear_irq_status()
342 /* prepare command */ dpbp_get_attributes()
346 /* send command to mc*/ dpbp_get_attributes()
H A Ddpmcp.c42 /* prepare command */ dpmcp_open()
47 /* send command to mc*/ dpmcp_open()
62 /* prepare command */ dpmcp_close()
66 /* send command to mc*/ dpmcp_close()
77 /* prepare command */ dpmcp_create()
82 /* send command to mc*/ dpmcp_create()
97 /* prepare command */ dpmcp_destroy()
101 /* send command to mc*/ dpmcp_destroy()
109 /* prepare command */ dpmcp_reset()
113 /* send command to mc*/ dpmcp_reset()
126 /* prepare command */ dpmcp_set_irq()
134 /* send command to mc*/ dpmcp_set_irq()
149 /* prepare command */ dpmcp_get_irq()
154 /* send command to mc*/ dpmcp_get_irq()
174 /* prepare command */ dpmcp_set_irq_enable()
180 /* send command to mc*/ dpmcp_set_irq_enable()
192 /* prepare command */ dpmcp_get_irq_enable()
197 /* send command to mc*/ dpmcp_get_irq_enable()
214 /* prepare command */ dpmcp_set_irq_mask()
220 /* send command to mc*/ dpmcp_set_irq_mask()
232 /* prepare command */ dpmcp_get_irq_mask()
237 /* send command to mc*/ dpmcp_get_irq_mask()
255 /* prepare command */ dpmcp_get_irq_status()
260 /* send command to mc*/ dpmcp_get_irq_status()
277 /* prepare command */ dpmcp_clear_irq_status()
283 /* send command to mc*/ dpmcp_clear_irq_status()
294 /* prepare command */ dpmcp_get_attributes()
298 /* send command to mc*/ dpmcp_get_attributes()
H A Dmc-sys.c43 * Timeout in jiffies to wait for the completion of an MC command
49 * iterations while waiting for MC command completion
179 * mc_write_command - writes a command to a Management Complex (MC) portal
182 * @cmd: pointer to a filled command
189 /* copy command parameters into the portal */ mc_write_command()
193 /* submit the command by writing the header */ mc_write_command()
198 * mc_read_response - reads the response for the last MC command from a
202 * @resp: pointer to command response buffer
213 /* Copy command response header from MC portal: */ mc_read_response()
219 /* Copy command response data from MC portal: */ mc_read_response()
227 * Sends an command to the MC device using the given MC I/O object
230 * @cmd: command to be sent
243 * Send command to the MC hardware: mc_send_command()
256 * TODO: When MC command completion interrupts are supported mc_send_command()
263 pr_debug("MC command timed out (portal: %#llx, obj handle: %#x, command: %#x)\n", mc_send_command()
275 pr_debug("MC command failed: portal: %#llx, obj handle: %#x, command: %#x, status: %s (%#x)\n", mc_send_command()
H A Ddprc.c42 /* prepare command */ dprc_open()
47 /* send command to mc*/ dprc_open()
63 /* prepare command */ dprc_close()
67 /* send command to mc*/ dprc_close()
81 /* prepare command */ dprc_create_container()
89 /* send command to mc*/ dprc_create_container()
107 /* prepare command */ dprc_destroy_container()
112 /* send command to mc*/ dprc_destroy_container()
122 /* prepare command */ dprc_reset_container()
127 /* send command to mc*/ dprc_reset_container()
142 /* prepare command */ dprc_get_irq()
148 /* send command to mc*/ dprc_get_irq()
171 /* prepare command */ dprc_set_irq()
180 /* send command to mc*/ dprc_set_irq()
192 /* prepare command */ dprc_get_irq_enable()
197 /* send command to mc*/ dprc_get_irq_enable()
215 /* prepare command */ dprc_set_irq_enable()
221 /* send command to mc*/ dprc_set_irq_enable()
233 /* prepare command */ dprc_get_irq_mask()
238 /* send command to mc*/ dprc_get_irq_mask()
256 /* prepare command */ dprc_set_irq_mask()
262 /* send command to mc*/ dprc_set_irq_mask()
274 /* prepare command */ dprc_get_irq_status()
279 /* send command to mc*/ dprc_get_irq_status()
297 /* prepare command */ dprc_clear_irq_status()
303 /* send command to mc*/ dprc_clear_irq_status()
314 /* prepare command */ dprc_get_attributes()
319 /* send command to mc*/ dprc_get_attributes()
343 /* prepare command */ dprc_set_res_quota()
365 /* send command to mc*/ dprc_set_res_quota()
378 /* prepare command */ dprc_get_res_quota()
399 /* send command to mc*/ dprc_get_res_quota()
417 /* prepare command */ dprc_assign()
441 /* send command to mc*/ dprc_assign()
452 /* prepare command */ dprc_unassign()
477 /* send command to mc*/ dprc_unassign()
488 /* prepare command */ dprc_get_pool_count()
492 /* send command to mc*/ dprc_get_pool_count()
511 /* prepare command */ dprc_get_pool()
517 /* send command to mc*/ dprc_get_pool()
548 /* prepare command */ dprc_get_obj_count()
552 /* send command to mc*/ dprc_get_obj_count()
572 /* prepare command */ dprc_get_obj()
578 /* send command to mc*/ dprc_get_obj()
622 /* prepare command */ dprc_get_res_count()
642 /* send command to mc*/ dprc_get_res_count()
662 /* prepare command */ dprc_get_res_ids()
685 /* send command to mc*/ dprc_get_res_ids()
707 /* prepare command */ dprc_get_portal_paddr()
712 /* send command to mc*/ dprc_get_portal_paddr()
734 /* prepare command */ dprc_get_obj_region()
756 /* send command to mc*/ dprc_get_obj_region()
776 /* prepare command */ dprc_connect()
817 /* send command to mc*/ dprc_connect()
827 /* prepare command */ dprc_disconnect()
850 /* send command to mc*/ dprc_disconnect()
863 /* prepare command */ dprc_get_connection()
886 /* send command to mc*/ dprc_get_connection()
H A Ddpmng.c42 /* prepare command */ mc_get_version()
46 /* send command to mc*/ mc_get_version()
64 /* prepare command */ dpmng_get_container_id()
68 /* send command to mc*/ dpmng_get_container_id()
/linux-4.1.27/drivers/mtd/devices/
H A Dsst25l.c97 unsigned char command[2]; sst25l_write_enable() local
100 command[0] = enable ? SST25L_CMD_WREN : SST25L_CMD_WRDI; sst25l_write_enable()
101 err = spi_write(flash->spi, command, 1); sst25l_write_enable()
105 command[0] = SST25L_CMD_EWSR; sst25l_write_enable()
106 err = spi_write(flash->spi, command, 1); sst25l_write_enable()
110 command[0] = SST25L_CMD_WRSR; sst25l_write_enable()
111 command[1] = enable ? 0 : SST25L_STATUS_BP0 | SST25L_STATUS_BP1; sst25l_write_enable()
112 err = spi_write(flash->spi, command, 2); sst25l_write_enable()
148 unsigned char command[4]; sst25l_erase_sector() local
155 command[0] = SST25L_CMD_SECTOR_ERASE; sst25l_erase_sector()
156 command[1] = offset >> 16; sst25l_erase_sector()
157 command[2] = offset >> 8; sst25l_erase_sector()
158 command[3] = offset; sst25l_erase_sector()
159 err = spi_write(flash->spi, command, 4); sst25l_erase_sector()
219 unsigned char command[4]; sst25l_read() local
225 command[0] = SST25L_CMD_READ; sst25l_read()
226 command[1] = from >> 16; sst25l_read()
227 command[2] = from >> 8; sst25l_read()
228 command[3] = from; sst25l_read()
230 transfer[0].tx_buf = command; sst25l_read()
231 transfer[0].len = sizeof(command); sst25l_read()
249 if (retlen && message.actual_length > sizeof(command)) sst25l_read()
250 *retlen += message.actual_length - sizeof(command); sst25l_read()
261 unsigned char command[5]; sst25l_write() local
278 command[0] = SST25L_CMD_AAI_PROGRAM; sst25l_write()
279 command[1] = (to + i) >> 16; sst25l_write()
280 command[2] = (to + i) >> 8; sst25l_write()
281 command[3] = (to + i); sst25l_write()
282 command[4] = buf[i]; sst25l_write()
283 ret = spi_write(flash->spi, command, 5); sst25l_write()
298 command[1] = buf[i + j]; sst25l_write()
299 ret = spi_write(flash->spi, command, 2); sst25l_write()
H A Dmtd_dataflash.c87 uint8_t command[4]; member in struct:dataflash
155 uint8_t *command; dataflash_erase() local
171 x.tx_buf = command = priv->command; dataflash_erase()
188 command[0] = do_block ? OP_ERASE_BLOCK : OP_ERASE_PAGE; dataflash_erase()
189 command[1] = (uint8_t)(pageaddr >> 16); dataflash_erase()
190 command[2] = (uint8_t)(pageaddr >> 8); dataflash_erase()
191 command[3] = 0; dataflash_erase()
195 command[0], command[1], command[2], command[3], dataflash_erase()
241 uint8_t *command; dataflash_read() local
251 command = priv->command; dataflash_read()
254 command[0], command[1], command[2], command[3]); dataflash_read()
258 x[0].tx_buf = command; dataflash_read()
272 command[0] = OP_READ_CONTINUOUS; dataflash_read()
273 command[1] = (uint8_t)(addr >> 16); dataflash_read()
274 command[2] = (uint8_t)(addr >> 8); dataflash_read()
275 command[3] = (uint8_t)(addr >> 0); dataflash_read()
310 uint8_t *command; dataflash_write() local
317 x[0].tx_buf = command = priv->command; dataflash_write()
353 command[0] = OP_TRANSFER_BUF1; dataflash_write()
354 command[1] = (addr & 0x00FF0000) >> 16; dataflash_write()
355 command[2] = (addr & 0x0000FF00) >> 8; dataflash_write()
356 command[3] = 0; dataflash_write()
359 command[0], command[1], command[2], command[3]); dataflash_write()
371 command[0] = OP_PROGRAM_VIA_BUF1; dataflash_write()
372 command[1] = (addr & 0x00FF0000) >> 16; dataflash_write()
373 command[2] = (addr & 0x0000FF00) >> 8; dataflash_write()
374 command[3] = (addr & 0x000000FF); dataflash_write()
377 command[0], command[1], command[2], command[3]); dataflash_write()
395 command[0] = OP_COMPARE_BUF1; dataflash_write()
396 command[1] = (addr & 0x00FF0000) >> 16; dataflash_write()
397 command[2] = (addr & 0x0000FF00) >> 8; dataflash_write()
398 command[3] = 0; dataflash_write()
401 command[0], command[1], command[2], command[3]); dataflash_write()
H A Dm25p80.c35 u8 command[MAX_CMD_SIZE]; member in struct:m25p
71 flash->command[0] = opcode; m25p80_write_reg()
73 memcpy(&flash->command[1], buf, len); m25p80_write_reg()
75 return spi_write(spi, flash->command, len + 1); m25p80_write_reg()
92 flash->command[0] = nor->program_opcode; m25p80_write()
93 m25p_addr2cmd(nor, to, flash->command); m25p80_write()
95 t[0].tx_buf = flash->command; m25p80_write()
139 flash->command[0] = nor->read_opcode; m25p80_read()
140 m25p_addr2cmd(nor, from, flash->command); m25p80_read()
142 t[0].tx_buf = flash->command; m25p80_read()
164 /* Set up command buffer. */ m25p80_erase()
165 flash->command[0] = nor->erase_opcode; m25p80_erase()
166 m25p_addr2cmd(nor, offset, flash->command); m25p80_erase()
168 spi_write(flash->spi, flash->command, m25p_cmdsz(nor)); m25p80_erase()
175 * matches what the READ command supports, at least until this driver
256 * differences can often be differentiated by the JEDEC read-ID command, we
/linux-4.1.27/samples/kdb/
H A Dkdb_hello.c15 * All kdb shell command call backs receive argc and argv, where
16 * argv[0] is the command the end user typed
35 * Registration of a dynamically added kdb command is done with kdb_hello_cmd_init()
37 * 1: The name of the shell command kdb_hello_cmd_init()
38 * 2: The function that processes the command kdb_hello_cmd_init()
41 * 5: Number of characters to complete the command kdb_hello_cmd_init()
42 * 0 == type the whole command kdb_hello_cmd_init()
59 MODULE_DESCRIPTION("KDB example to add a hello command");
/linux-4.1.27/arch/mips/jazz/
H A Dreset.c17 status = jazz_kh->command; jazz_write_output()
27 status = jazz_kh->command; jazz_write_command()
29 jazz_kh->command = val; jazz_write_command()
34 return jazz_kh->command; jazz_read_status()
48 void jazz_machine_restart(char *command) jazz_machine_restart() argument
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
H A Drtw_android.c88 static int rtw_android_get_rssi(struct net_device *net, char *command, rtw_android_get_rssi() argument
97 bytes_written += snprintf(&command[bytes_written], total_len, rtw_android_get_rssi()
105 static int rtw_android_get_link_speed(struct net_device *net, char *command, rtw_android_get_link_speed() argument
112 return snprintf(command, total_len, "LinkSpeed %d", rtw_android_get_link_speed()
116 static int rtw_android_get_macaddr(struct net_device *net, char *command, rtw_android_get_macaddr() argument
119 return snprintf(command, total_len, "Macaddr = %pM", rtw_android_get_macaddr()
123 static int android_set_cntry(struct net_device *net, char *command, android_set_cntry() argument
127 char *country_code = command + strlen(android_wifi_cmd_str[ANDROID_WIFI_CMD_COUNTRY]) + 1; android_set_cntry()
134 static int android_get_p2p_addr(struct net_device *net, char *command, android_get_p2p_addr() argument
138 memcpy(command, net->dev_addr, ETH_ALEN); android_get_p2p_addr()
142 static int rtw_android_set_block(struct net_device *net, char *command, rtw_android_set_block() argument
151 char *command; rtw_android_priv_cmd() local
162 command = memdup_user(priv_cmd.buf, priv_cmd.total_len); rtw_android_priv_cmd()
163 if (IS_ERR(command)) rtw_android_priv_cmd()
164 return PTR_ERR(command); rtw_android_priv_cmd()
165 command[priv_cmd.total_len - 1] = 0; rtw_android_priv_cmd()
167 __func__, command, ifr->ifr_name); rtw_android_priv_cmd()
168 cmd_num = rtw_android_cmdstr_to_num(command); rtw_android_priv_cmd()
177 __func__, command, ifr->ifr_name); rtw_android_priv_cmd()
189 bytes_written = rtw_android_get_rssi(net, command, rtw_android_priv_cmd()
193 bytes_written = rtw_android_get_link_speed(net, command, rtw_android_priv_cmd()
197 bytes_written = rtw_android_get_macaddr(net, command, rtw_android_priv_cmd()
201 bytes_written = rtw_android_set_block(net, command, rtw_android_priv_cmd()
227 bytes_written = android_set_cntry(net, command, rtw_android_priv_cmd()
231 bytes_written = android_get_p2p_addr(net, command, rtw_android_priv_cmd()
241 DBG_88E("Unknown PRIVATE command %s - ignored\n", command); rtw_android_priv_cmd()
242 snprintf(command, 3, "OK"); rtw_android_priv_cmd()
249 command[0] = '\0'; rtw_android_priv_cmd()
258 if (copy_to_user((char __user *)priv_cmd.buf, command, rtw_android_priv_cmd()
268 kfree(command); rtw_android_priv_cmd()
/linux-4.1.27/arch/powerpc/include/asm/
H A Ddbdma.h17 unsigned int cmdptr_hi; /* upper 32 bits of command address */
18 unsigned int cmdptr; /* (lower 32 bits of) command address (phys) */
42 * DBDMA command structure. These fields are all little-endian!
46 __le16 command; /* command word (has bit-fields) */ member in struct:dbdma_cmd
48 __le32 cmd_dep; /* command-dependent field */
53 /* DBDMA command values in command field */
63 /* Key values in command field */
72 /* Interrupt control values in command field */
78 /* Branch control values in command field */
84 /* Wait control values in command field */
90 /* Align an address for a DBDMA command structure */
H A Dsmu.h34 * The data must then be obtained with calls to another command:
46 * This is a "mux" for fan control commands. The command seem to
68 * mask of fans affected by the command. Followed by 6 words containing the
77 * Same command number as the PMU, could it be same syntax ?
85 * This is a "mux", first data byte contains the "sub" command.
110 * To issue an i2c command, first is to send a parameter block to the
111 * the SMU. This is a command of type 0x9a with 9 bytes of header
140 * obtained via a command of type 0x9a with a length of 1 byte containing
142 * though I can't tell yet if this is actually necessary. Once this command
156 * from the response command, it waits 5ms and tries again up to 20 times,
159 * This driver provides an asynchronous paramblock based i2c command
175 * The "sub" command is an ASCII string in the data, the
178 * The VSLEW command can be used to get or set the voltage slewing.
199 * This command takes one byte of parameter: the sensor ID (or "reg"
207 * This command seem to be a grab bag of various things
220 * the same codebase for all OF versions. On PowerBooks, this command would
293 * This command seem to be a grab bag of various things
298 * break your transfer in "chunks" since that command cannot transfer
305 * For each chunk, the command takes 7 bytes of arguments:
394 u8 cmd; /* command */
399 int status; /* command status */
408 * Queues an SMU command, all fields have to be initialized
413 * Simple command wrapper. This structure embeds a small buffer
423 * Queues a simple command. All fields will be initialized by that
426 extern int smu_queue_simple(struct smu_simple_cmd *scmd, u8 command,
440 * Synchronous helpers. Will spin-wait for completion of a command
465 * Common command wrappers
474 * SMU command buffer absolute address, exported by pmac_setup,
518 * Call this to queue an i2c command to the SMU. You must fill info,
666 * Commands are written with write() of a command block. They can be
668 * or real SMU commands. They are made of a header followed by command
685 #define SMU_CMDTYPE_SMU 0 /* SMU command */
689 __u8 cmd; /* SMU command byte */
/linux-4.1.27/drivers/media/usb/as102/
H A Das10x_cmd_cfg.c25 * as10x_cmd_get_context - Send get context command to AS10x
41 /* prepare command */ as10x_cmd_get_context()
45 /* fill command */ as10x_cmd_get_context()
50 /* send command */ as10x_cmd_get_context()
66 /* parse response: context command do not follow the common response */ as10x_cmd_get_context()
81 * as10x_cmd_set_context - send set context command to AS10x
97 /* prepare command */ as10x_cmd_set_context()
101 /* fill command */ as10x_cmd_set_context()
108 /* send command */ as10x_cmd_set_context()
124 /* parse response: context command do not follow the common response */ as10x_cmd_set_context()
133 * as10x_cmd_eLNA_change_mode - send eLNA change mode command to AS10x
151 /* prepare command */ as10x_cmd_eLNA_change_mode()
155 /* fill command */ as10x_cmd_eLNA_change_mode()
160 /* send command */ as10x_cmd_eLNA_change_mode()
182 * as10x_context_rsp_parse - Parse context command response
183 * @prsp: pointer to AS10x command response buffer
184 * @proc_id: id of the command
186 * Since the contex command response does not follow the common
H A Das10x_cmd.c22 * as10x_cmd_turn_on - send turn on command to AS10x
35 /* prepare command */ as10x_cmd_turn_on()
39 /* fill command */ as10x_cmd_turn_on()
42 /* send command */ as10x_cmd_turn_on()
63 * as10x_cmd_turn_off - send turn off command to AS10x
76 /* prepare command */ as10x_cmd_turn_off()
80 /* fill command */ as10x_cmd_turn_off()
83 /* send command */ as10x_cmd_turn_off()
103 * as10x_cmd_set_tune - send set tune command to AS10x
118 /* prepare command */ as10x_cmd_set_tune()
122 /* fill command */ as10x_cmd_set_tune()
136 /* send command */ as10x_cmd_set_tune()
158 * as10x_cmd_get_tune_status - send get tune status command to AS10x
173 /* prepare command */ as10x_cmd_get_tune_status()
177 /* fill command */ as10x_cmd_get_tune_status()
181 /* send command */ as10x_cmd_get_tune_status()
211 * as10x_cmd_get_tps - send get TPS command to AS10x
225 /* prepare command */ as10x_cmd_get_tps()
229 /* fill command */ as10x_cmd_get_tps()
233 /* send command */ as10x_cmd_get_tps()
269 * as10x_cmd_get_demod_stats - send get demod stats command to AS10x
284 /* prepare command */ as10x_cmd_get_demod_stats()
288 /* fill command */ as10x_cmd_get_demod_stats()
292 /* send command */ as10x_cmd_get_demod_stats()
328 * as10x_cmd_get_impulse_resp - send get impulse response command to AS10x
344 /* prepare command */ as10x_cmd_get_impulse_resp()
348 /* fill command */ as10x_cmd_get_impulse_resp()
352 /* send command */ as10x_cmd_get_impulse_resp()
379 * as10x_cmd_build - build AS10x command header
380 * @pcmd: pointer to AS10x command buffer
381 * @xid: sequence id of the command
382 * @cmd_len: length of the command
394 * as10x_rsp_parse - Parse command response
395 * @prsp: pointer to AS10x command buffer
396 * @proc_id: id of the command
404 /* extract command error code */ as10x_rsp_parse()
H A Das10x_cmd_stream.c21 * as10x_cmd_add_PID_filter - send add filter command to AS10x
36 /* prepare command */ as10x_cmd_add_PID_filter()
40 /* fill command */ as10x_cmd_add_PID_filter()
51 /* send command */ as10x_cmd_add_PID_filter()
78 * as10x_cmd_del_PID_filter - Send delete filter command to AS10x
93 /* prepare command */ as10x_cmd_del_PID_filter()
97 /* fill command */ as10x_cmd_del_PID_filter()
102 /* send command */ as10x_cmd_del_PID_filter()
124 * as10x_cmd_start_streaming - Send start streaming command to AS10x
137 /* prepare command */ as10x_cmd_start_streaming()
141 /* fill command */ as10x_cmd_start_streaming()
145 /* send command */ as10x_cmd_start_streaming()
167 * as10x_cmd_stop_streaming - Send stop streaming command to AS10x
180 /* prepare command */ as10x_cmd_stop_streaming()
184 /* fill command */ as10x_cmd_stop_streaming()
188 /* send command */ as10x_cmd_stop_streaming()
/linux-4.1.27/drivers/scsi/
H A Dnsp32_debug.c10 * Show the command data of a command
86 static void print_commandk (unsigned char *command) print_commandk() argument
90 print_opcodek(command[0]); print_commandk()
92 if ((command[0] >> 5) == 6 || print_commandk()
93 (command[0] >> 5) == 7 ) { print_commandk()
96 s = COMMAND_SIZE(command[0]); print_commandk()
100 printk("%02x ", command[i]); print_commandk()
106 (((unsigned int)command[1] & 0x0f) << 16) | print_commandk()
107 ( (unsigned int)command[2] << 8) | print_commandk()
108 ( (unsigned int)command[3] ), print_commandk()
109 (unsigned int)command[4] print_commandk()
114 ((unsigned int)command[2] << 24) | print_commandk()
115 ((unsigned int)command[3] << 16) | print_commandk()
116 ((unsigned int)command[4] << 8) | print_commandk()
117 ((unsigned int)command[5] ), print_commandk()
118 ((unsigned int)command[7] << 8) | print_commandk()
119 ((unsigned int)command[8] ) print_commandk()
124 ((unsigned int)command[2] << 24) | print_commandk()
125 ((unsigned int)command[3] << 16) | print_commandk()
126 ((unsigned int)command[4] << 8) | print_commandk()
127 ((unsigned int)command[5] ), print_commandk()
128 ((unsigned int)command[6] << 24) | print_commandk()
129 ((unsigned int)command[7] << 16) | print_commandk()
130 ((unsigned int)command[8] << 8) | print_commandk()
131 ((unsigned int)command[9] ) print_commandk()
H A Dscsi_lib_dma.c16 * scsi_dma_map - perform DMA mapping against command's sg lists
17 * @cmd: scsi command
39 * scsi_dma_unmap - unmap command's sg lists mapped by scsi_dma_map
40 * @cmd: scsi command
H A Dmac53c94.c76 printk(KERN_DEBUG "mac53c94_queue %p: command is", cmd); mac53c94_queue_lck()
114 writeb(CMD_SCSI_RESET, &regs->command); /* assert RST */ mac53c94_host_reset()
116 writeb(CMD_RESET, &regs->command); mac53c94_host_reset()
119 writeb(CMD_NOP, &regs->command); mac53c94_host_reset()
143 * Start the next command for a 53C94.
163 writeb(CMD_NOP + CMD_DMA_MODE, &regs->command); mac53c94_start()
165 writeb(CMD_FLUSH, &regs->command); mac53c94_start()
171 /* load the command into the FIFO */ mac53c94_start()
176 writeb(CMD_SELECT, &regs->command); mac53c94_start()
218 writeb(CMD_NOP, &regs->command); mac53c94_interrupt()
236 writeb(CMD_NOP + CMD_DMA_MODE, &regs->command); mac53c94_interrupt()
239 printk(KERN_DEBUG "53c94: interrupt with no command active?\n"); mac53c94_interrupt()
260 printk(KERN_DEBUG "seq step %x after command\n", seq); mac53c94_interrupt()
264 writeb(CMD_NOP, &regs->command); mac53c94_interrupt()
274 writeb(CMD_DMA_MODE + CMD_NOP, &regs->command); mac53c94_interrupt()
277 writeb(CMD_DMA_MODE + CMD_XFER_DATA, &regs->command); mac53c94_interrupt()
282 writeb(CMD_I_COMPLETE, &regs->command); mac53c94_interrupt()
307 writeb(CMD_DMA_MODE + CMD_NOP, &regs->command); mac53c94_interrupt()
308 writeb(CMD_DMA_MODE + CMD_XFER_DATA, &regs->command); mac53c94_interrupt()
317 writeb(CMD_I_COMPLETE, &regs->command); mac53c94_interrupt()
329 writeb(CMD_ACCEPT_MSG, &regs->command); mac53c94_interrupt()
386 dcmds->command = cpu_to_le16(dma_cmd); scsi_for_each_sg()
393 dcmds[-1].command = cpu_to_le16(dma_cmd);
394 dcmds->command = cpu_to_le16(DBDMA_STOP);
465 /* Space for dma command list: +1 for stop command, mac53c94_probe()
473 "command space for %s\n", node->full_name); mac53c94_probe()
H A Dgdth_ioctl.h19 #define GDTIOCTL_SCSI (GDTIOCTL_MASK | 9) /* SCSI command */
47 /* command structure */
50 u32 CommandIndex; /* command number */
51 u16 OpCode; /* the command (READ,..) */
74 } __attribute__((packed)) ioctl; /* IOCTL command structure */
93 u8 cmd[12]; /* SCSI command */
112 u8 cmd[16]; /* SCSI command */
126 u16 Status; /* command result */
191 u8 command[512]; /* controller command */ member in struct:__anon8932::__anon8933::__anon8934
212 u8 cmd_len; /* command length */
213 u8 cmd[12]; /* SCSI command */
273 gdth_cmd_str command; /* command */ member in struct:__anon8949
H A Deata_pio.h38 #define DBG_COM 0 /* Trace command call */
39 #define DBG_QUEUE 0 /* Trace command queueing. */
H A Dultrastor.c7 * 24F and multiple command support by John F. Carr (jfc@athena.mit.edu)
18 * 1. Find out why scatter/gather is limited to 16 requests per command.
20 * 2. Look at command linking (mscp.command_link and
29 * performance SCSI-2 host adapters. They all support command queueing
83 * Removed CSIR command code.
93 * handle aborted command interrupt (24F)
107 * Clear busy when aborted command finishes, not when abort is called.
120 * after it was tested, so after a command abort no further commands would
175 /* MailBox SCSI Command Packet. Basic command structure for communicating
178 unsigned char opcode: 3; /* type of command */
188 unsigned int command_link PACKED; /* for linking command chains */
189 unsigned char scsi_command_link_id; /* identifies command in chain */
333 int command) log_ultrastor_abort()
348 printk(fmt, command, &config->mscp[command], config->mscp_free); log_ultrastor_abort()
488 command here and verify the data returned. But frankly, I'm ultrastor_14f_detect()
717 /* Has the command been aborted? */
729 READ command for a tape doesn't have a block offset, and the adapter
740 /* Set scatter/gather flag in SCSI command packet */
744 /* Unset scatter/gather flag in SCSI command packet */
814 /* Write OGM command register on 24F */
832 1. The command has not been written to the OGM. In this case, set
835 2. The command has been written to the OGM and is stuck somewhere in
838 2a. On a 24F, ask the adapter to abort the command. It will interrupt
841 2b. Call the command's done procedure.
900 printk("Ux4F: abort while completed command pending\n");
913 the command. It will notice the new abort flag and fail. */
942 the OGM is busy. Don't free the command -- the adapter might
944 handler to ignore the command. */
947 the command after a bus reset. We would probably rather leave
948 the command in the queue. The upper level code will automatically
949 leave the command in the active state instead of requeueing it. ERY */
953 printk("abort: command mismatch, %p != %p\n",
968 /* Need to set a timeout here in case command never completes. */
1016 /* FIXME - if the device implements soft resets, then the command
1067 /* A command has been lost. Reset and report an error
1087 printk("UltraStor abort command failed\n");
1109 printk("MSCP %d (%x): no command\n", mscp_index, (unsigned int) mscp);
1121 once we call done, we may get another command queued before this
1132 case 0x01: /* invalid command */
1150 /* Free up mscp block for next command */
332 log_ultrastor_abort(struct ultrastor_config *config, int command) log_ultrastor_abort() argument
H A Datari_NCR5380.c71 * 1. Test linked command handling code after Eric is ready with
113 * As far as command queueing, two queues are maintained for
120 * while a command is already executing.
154 * the command structure is placed into the per instance disconnected
158 * If a command has disconnected, eventually an interrupt will trigger,
162 * On command termination, the done function will be called as
165 * SCSI pointers are maintained in the SCp field of SCSI command
166 * structures, being initialized after the command is connected
247 * command has been preempted for a long time. My solution: a bitfield for
254 * target. The command is returned to the mid-level, but with status changed
259 * command is active. And REQUEST SENSE commands after a contingent allegiance
260 * condition _must_ be untagged. To keep track whether an untagged command has
297 /* Check if we can issue a command to this LUN: First see if the LUN is marked
298 * busy by an untagged command. If the command should use tagged queuing, also
325 /* Allocate a tag for a command (there are no checks anymore, check_lun_busy()
326 * must be called before!), or reserve the LUN in 'busy' if the command is
336 * an untagged command. cmd_get_tag()
344 "command\n", H_NO(cmd), cmd->device->id, lun); cmd_get_tag()
359 /* Mark the tag of command 'cmd' as free, or in case of an untagged command,
413 * The command to work on. The first scatter buffer's data are
449 * @cmd: command block to set up
451 * Set up the internal fields in the SCSI command.
605 any newly queued command. */ queue_main()
666 unsigned char *command; lprint_Scsi_Cmnd() local
669 printk(KERN_CONT " command = "); lprint_Scsi_Cmnd()
670 command = cmd->cmnd; lprint_Scsi_Cmnd()
671 printk(KERN_CONT "%2d (0x%02x)", command[0], command[0]); lprint_Scsi_Cmnd()
672 for (i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) lprint_Scsi_Cmnd()
673 printk(KERN_CONT " %02x", command[i]); lprint_Scsi_Cmnd()
692 printk("scsi%d: no currently connected command\n", HOSTNO); NCR5380_print_status()
711 unsigned char *command; show_Scsi_Cmnd() local
714 seq_puts(m, " command = "); show_Scsi_Cmnd()
715 command = cmd->cmnd; show_Scsi_Cmnd()
716 seq_printf(m, "%2d (0x%02x)", command[0], command[0]); show_Scsi_Cmnd()
717 for (i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) show_Scsi_Cmnd()
718 seq_printf(m, " %02x", command[i]); show_Scsi_Cmnd()
735 seq_printf(m, "scsi%d: no currently connected command\n", HOSTNO); NCR5380_show_info()
818 * NCR5380_queue_command - queue a command
820 * @cmd: SCSI command
847 * We use the host_scribble field as a pointer to the next command NCR5380_queue_command()
856 * commands are added to the head of the queue since any command will NCR5380_queue_command()
866 * Stop timer for this command while waiting for the lock, or timeouts NCR5380_queue_command()
867 * may happen (and they really do), and it's no good if the command doesn't NCR5380_queue_command()
880 * commands are added to the head of the queue since any command will NCR5380_queue_command()
898 dprintk(NDEBUG_QUEUES, "scsi%d: command added to %s of queue\n", H_NO(cmd), NCR5380_queue_command()
980 * Search through the issue_queue for a command destined NCR5380_main()
1027 * On failure, we must add the command back to the NCR5380_main()
1030 dprintk(NDEBUG_MAIN, "scsi%d: main(): command for target %d " NCR5380_main()
1040 * REQUEST SENSE command are untagged. NCR5380_main()
1282 * Purpose : establishes I_T_L or I_T_L_Q nexus for new or existing command,
1287 * target lives, cmd - SCSI command to execute.
1562 * message (2 bytes) with a tag ID that we increment with every command NCR5380_select()
1791 * If we got here, and the command completed successfully, do_abort()
1931 * directs us to. Operates on the currently connected command,
1937 * modified if a command disconnects, *instance->connected will
1984 /* this command setup for dma yet? */ NCR5380_information_transfer()
2100 /* if we had intended to dma that command clear it */ NCR5380_information_transfer()
2115 * next command out to the device, hopefully this will NCR5380_information_transfer()
2120 * merely have to start the next command, pointed to by NCR5380_information_transfer()
2129 dprintk(NDEBUG_LINKED, "scsi%d: target %d lun %llu linked command " NCR5380_information_transfer()
2135 * Sanity check : A linked command should only terminate NCR5380_information_transfer()
2142 "linked command complete, no next_link\n", NCR5380_information_transfer()
2150 /* The next command is still part of this process; copy it NCR5380_information_transfer()
2165 dprintk(NDEBUG_QUEUES, "scsi%d: command for target %d, lun %llu " NCR5380_information_transfer()
2176 * command is retried after BUSY). Also update our NCR5380_information_transfer()
2199 * If the command that just executed is NOT a request NCR5380_information_transfer()
2203 * If it was a REQUEST SENSE command, we need some way to NCR5380_information_transfer()
2272 * the command is treated as untagged further on. NCR5380_information_transfer()
2294 dprintk(NDEBUG_QUEUES, "scsi%d: command for target %d lun %llu was " NCR5380_information_transfer()
2560 * Find the command corresponding to the I_T_L or I_T_L_Q nexus we NCR5380_reselect()
2603 /* engage dma setup for the command we just saw */ NCR5380_reselect()
2615 /* setup this command for dma if not already */ NCR5380_reselect()
2656 * Purpose : abort a command
2664 * XXX - there is no way to abort the command that is currently
2678 scmd_printk(KERN_NOTICE, cmd, "aborting command\n"); NCR5380_abort()
2690 * Case 1 : If the command is the currently executing command, NCR5380_abort()
2697 dprintk(NDEBUG_ABORT, "scsi%d: aborting connected command\n", HOSTNO); NCR5380_abort()
2730 printk("scsi%d: abort of connected command failed!\n", HOSTNO); NCR5380_abort()
2737 * Case 2 : If the command hasn't been issued yet, we simply remove it NCR5380_abort()
2750 dprintk(NDEBUG_ABORT, "scsi%d: abort removed command from issue queue.\n", NCR5380_abort()
2772 dprintk(NDEBUG_ABORT, "scsi%d: abort failed, command connected.\n", HOSTNO); NCR5380_abort()
2777 * Case 4: If the command is currently disconnected from the bus, and NCR5380_abort()
2796 * So, we must first locate the command, and if NCR5380_select() NCR5380_abort()
2797 * succeeds, then issue the abort, relocate the command and remove NCR5380_abort()
2805 dprintk(NDEBUG_ABORT, "scsi%d: aborting disconnected command.\n", HOSTNO); NCR5380_abort()
2849 * Case 5 : If we reached this point, the command was not found in any of NCR5380_abort()
2853 * between the command completing successfully and the abortion code, NCR5380_abort()
2858 printk(KERN_INFO "scsi%d: warning : SCSI command probably completed successfully before abortion\n", HOSTNO); NCR5380_abort()
2904 dprintk(NDEBUG_ABORT, "scsi%d: reset aborted issued command(s)\n", H_NO(cmd)); NCR5380_bus_reset()
2906 dprintk(NDEBUG_ABORT, "scsi%d: reset aborted a connected command\n", H_NO(cmd)); NCR5380_bus_reset()
2908 dprintk(NDEBUG_ABORT, "scsi%d: reset aborted disconnected command(s)\n", H_NO(cmd)); NCR5380_bus_reset()
H A Dscsi_ioctl.c67 * The SCSI_IOCTL_SEND_COMMAND ioctl sends a command out to the SCSI host.
71 * input data, if any, not including the command string & counts,
74 * *(char *) ((int *) arg)[2] the actual command byte.
81 * The SCSI command is read from the memory location immediately after the
82 * length words, and the input data is right after the command. The SCSI
83 * routines know the command size based on the opcode decode.
85 * The output area is then filled in starting from the command byte.
95 "Trying ioctl with scsi command %d\n", *cmd)); ioctl_internal_command()
135 "IOCTL Releasing command\n")); ioctl_internal_command()
/linux-4.1.27/drivers/isdn/sc/
H A DMakefile9 sc-y := shmem.o init.o packet.o command.o event.o \
H A Dioctl.c33 switch (data->command) { sc_ioctl()
55 pr_debug("%s: SCIOCLOAD: command failed, LoadProc while engine running.\n", sc_ioctl()
77 pr_debug("%s: SCIOCLOAD: command failed, status = %d\n", sc_ioctl()
82 pr_debug("%s: SCIOCLOAD: command successful\n", sc_ioctl()
94 pr_debug("%s: SCIOCSTART: command failed, engine already running.\n", sc_ioctl()
123 pr_debug("%s: SCIOCSETSWITCH: command successful\n", sc_ioctl()
129 pr_debug("%s: SCIOCSETSWITCH: command failed (status = %d)\n", sc_ioctl()
147 pr_debug("%s: SCIOCGETSWITCH: command successful\n", sc_ioctl()
151 pr_debug("%s: SCIOCGETSWITCH: command failed (status = %d)\n", sc_ioctl()
188 pr_debug("%s: SCIOCGETSPID: command successful\n", sc_ioctl()
191 pr_debug("%s: SCIOCGETSPID: command failed (status = %d)\n", sc_ioctl()
233 pr_debug("%s: SCIOCSETSPID: command successful\n", sc_ioctl()
240 pr_debug("%s: SCIOCSETSPID: command failed (status = %d)\n", sc_ioctl()
259 pr_debug("%s: SCIOCGETDN: command successful\n", sc_ioctl()
263 pr_debug("%s: SCIOCGETDN: command failed (status = %d)\n", sc_ioctl()
308 pr_debug("%s: SCIOCSETDN: command successful\n", sc_ioctl()
315 pr_debug("%s: SCIOCSETDN: command failed (status = %d)\n", sc_ioctl()
369 pr_debug("%s: SCIOCGETSPEED: command successful\n", sc_ioctl()
373 pr_debug("%s: SCIOCGETSPEED: command failed (status = %d)\n", sc_ioctl()
/linux-4.1.27/drivers/input/serio/
H A Di8042-ip22io.h32 #define I8042_COMMAND_REG ((unsigned long)&sgioc->kbdmouse.command)
33 #define I8042_STATUS_REG ((unsigned long)&sgioc->kbdmouse.command)
43 return sgioc->kbdmouse.command; i8042_read_status()
53 sgioc->kbdmouse.command = val; i8042_write_command()
H A Di8042-jazzio.h27 #define I8042_COMMAND_REG ((unsigned long)&jazz_kh->command)
28 #define I8042_STATUS_REG ((unsigned long)&jazz_kh->command)
38 return jazz_kh->command; i8042_read_status()
48 jazz_kh->command = val; i8042_write_command()
H A Dlibps2.c123 * ps2_adjust_timeout() is called after receiving 1st byte of command
124 * response and tries to reduce remaining timeout to speed up command
128 static int ps2_adjust_timeout(struct ps2dev *ps2dev, int command, int timeout) ps2_adjust_timeout() argument
130 switch (command) { ps2_adjust_timeout()
134 * reset command, reset is thus done, so we can ps2_adjust_timeout()
146 * the GET ID command as it were a mouse, with ps2_adjust_timeout()
147 * a single byte. Fail the command so atkbd will ps2_adjust_timeout()
177 * ps2_command() sends a command and its parameters to the mouse,
183 int __ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command) __ps2_command() argument
186 int send = (command >> 12) & 0xf; __ps2_command()
187 int receive = (command >> 8) & 0xf; __ps2_command()
202 ps2dev->flags = command == PS2_CMD_GETID ? PS2_FLAG_WAITID : 0; __ps2_command()
211 * ACKing the reset command, and so it can take a long __ps2_command()
214 if (ps2_sendbyte(ps2dev, command & 0xff, __ps2_command()
215 command == PS2_CMD_RESET_BAT ? 1000 : 200)) __ps2_command()
223 * The reset command takes a long time to execute. __ps2_command()
225 timeout = msecs_to_jiffies(command == PS2_CMD_RESET_BAT ? 4000 : 500); __ps2_command()
232 timeout = ps2_adjust_timeout(ps2dev, command, timeout); __ps2_command()
241 if (ps2dev->cmdcnt && (command != PS2_CMD_RESET_BAT || ps2dev->cmdcnt != 1)) __ps2_command()
255 int ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command) ps2_command() argument
260 rc = __ps2_command(ps2dev, param, command); ps2_command()
282 * to properly process ACK/NAK of a command from a PS/2 device.
305 * Workaround for mice which don't ACK the Get ID command. ps2_handle_ack()
339 * to properly store device's response to a command and notify process
340 * waiting for completion of the command.
/linux-4.1.27/arch/mips/kernel/
H A Dreset.c23 void (*_machine_restart)(char *command);
29 void machine_restart(char *command) machine_restart() argument
32 _machine_restart(command); machine_restart()
38 do_kernel_restart(command); machine_restart()
/linux-4.1.27/tools/power/cpupower/bench/
H A Dcpufreq-bench_script.sh68 local command
71 command="cpufreq-bench_plot.sh -o \"sampling_rate_${SAMPLING_RATE}_up_threshold_${up_threshold}\" -t \"Ondemand sampling_rate: ${SAMPLING_RATE} comparison - Up_threshold: $up_threshold %\""
73 command="${command} /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate}/* \"sampling_rate = $sampling_rate\""
75 echo $command
76 eval "$command"
81 command="cpufreq-bench_plot.sh -o \"up_threshold_${UP_THRESHOLD}_sampling_rate_${sampling_rate}\" -t \"Ondemand up_threshold: ${UP_THRESHOLD} % comparison - sampling_rate: $sampling_rate\""
83 command="${command} /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate}/* \"up_threshold = $up_threshold\""
85 echo $command
86 eval "$command"
90 command="cpufreq-bench_plot.sh -o \"up_threshold_${UP_THRESHOLD}_sampling_rate_${SAMPLING_RATE}\" -t \"Ondemand up_threshold: ${UP_THRESHOLD} and sampling_rate ${SAMPLING_RATE} comparison\""
93 command="${command} /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate}/* \"up_threshold = $up_threshold - sampling_rate = $sampling_rate\""
96 echo "$command"
97 eval "$command"
H A DMakefile2 ifeq ("$(origin O)", "command line")
/linux-4.1.27/include/trace/events/
H A Di2c.h153 char read_write, u8 command, int protocol,
155 TP_ARGS(adap, addr, flags, read_write, command, protocol, data),
163 __field(__u8, command )
171 __entry->command = command;
200 __entry->command,
221 char read_write, u8 command, int protocol),
222 TP_ARGS(adap, addr, flags, read_write, command, protocol),
230 __field(__u8, command )
237 __entry->command = command;
244 __entry->command,
263 char read_write, u8 command, int protocol,
265 TP_ARGS(adap, addr, flags, read_write, command, protocol, data),
271 __field(__u8, command )
279 __entry->command = command;
308 __entry->command,
329 char read_write, u8 command, int protocol,
331 TP_ARGS(adap, addr, flags, read_write, command, protocol, res),
337 __field(__u8, command )
346 __entry->command = command;
354 __entry->command,
/linux-4.1.27/arch/arm/mach-shmobile/include/mach/
H A Dzboot_macros.h4 /* The LIST command is used to include comments in the script */
8 /* The ED command is used to write a 32-bit word */
19 /* The EW command is used to write a 16-bit word */
30 /* The EB command is used to write an 8-bit word */
41 /* The WAIT command is used to delay the execution */
57 /* The DD command is used to read a 32-bit word */
/linux-4.1.27/drivers/i2c/
H A Di2c-stub.c72 u8 command; member in struct:smbus_block_data
99 u8 command, bool create) stub_find_block()
104 if (b->command == command) { stub_find_block()
113 rb->command = command; stub_find_block()
132 char read_write, u8 command, int size, union i2c_smbus_data *data) stub_xfer()
159 chip->pointer = command; stub_xfer()
162 addr, command); stub_xfer()
175 wordp = stub_get_wordp(chip, command); stub_xfer()
181 addr, data->byte, command); stub_xfer()
184 if (chip->bank_words && command == chip->bank_reg) { stub_xfer()
196 addr, data->byte, command); stub_xfer()
198 chip->pointer = command + 1; stub_xfer()
204 wordp = stub_get_wordp(chip, command); stub_xfer()
209 addr, data->word, command); stub_xfer()
214 addr, data->word, command); stub_xfer()
225 if (data->block[0] > 256 - command) /* Avoid overrun */ stub_xfer()
226 data->block[0] = 256 - command; stub_xfer()
230 chip->words[command + i] &= 0xff00; stub_xfer()
231 chip->words[command + i] |= data->block[1 + i]; stub_xfer()
235 addr, len, command); stub_xfer()
239 chip->words[command + i] & 0xff; stub_xfer()
243 addr, len, command); stub_xfer()
254 b = stub_find_block(&adap->dev, chip, command, false); stub_xfer()
262 b = stub_find_block(&adap->dev, chip, command, stub_xfer()
275 chip->words[command] = (b->block[0] << 8) | b->len; stub_xfer()
278 addr, len, command); stub_xfer()
282 "SMBus block read command without prior block write not supported\n"); stub_xfer()
292 addr, len, command); stub_xfer()
299 dev_dbg(&adap->dev, "Unsupported I2C/SMBus command\n"); stub_xfer()
97 stub_find_block(struct device *dev, struct stub_chip *chip, u8 command, bool create) stub_find_block() argument
131 stub_xfer(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) stub_xfer() argument
/linux-4.1.27/drivers/net/ethernet/i825xx/
H A Dsun3_82586.h74 unsigned char cmd_ruc; /* command word: RU part */
75 unsigned char cmd_cuc; /* command word: CU part & ACK */
76 unsigned short cbl_offset; /* pointeroffset, command block list */
85 * possible command values for the command word
88 #define RUC_NOP 0x0000 /* NOP-command */
94 #define CUC_MASK 0x07 /* mask for CU command */
95 #define CUC_NOP 0x00 /* NOP-command */
99 #define CUC_ABORT 0x04 /* abort command operation immediately */
101 #define ACK_MASK 0xf0 /* mask for ACK command */
178 #define STAT_COMPL 0x8000 /* status: frame/command is complete */
179 #define STAT_BUSY 0x4000 /* status: frame/command is busy */
180 #define STAT_OK 0x2000 /* status: frame/command is ok */
186 #define CMD_IASETUP 0x0001 /* initial address setup command */
187 #define CMD_CONFIGURE 0x0002 /* configure command */
188 #define CMD_MCSETUP 0x0003 /* MC setup command */
189 #define CMD_XMIT 0x0004 /* transmit command */
190 #define CMD_TDR 0x0005 /* time domain reflectometer (TDR) command */
191 #define CMD_DUMP 0x0006 /* dump command */
192 #define CMD_DIAGNOSE 0x0007 /* diagnose command */
195 * Action command bits
197 #define CMD_LAST 0x8000 /* indicates last command in the CBL */
202 * NOP - command
206 unsigned short cmd_status; /* status of this command */
207 unsigned short cmd_cmd; /* the command itself (+bits) */
208 unsigned short cmd_link; /* offsetpointer to next command */
212 * IA Setup command
223 * Configure command
245 * Multicast Setup command
257 * DUMP command
268 * transmit command
H A Dlib82596.c16 about when and how the command and RX units are started. some
17 command ordering was changed.
114 * The MPU_PORT command allows direct access to the 82596. With PORT access
115 * the following commands are available (p5-18). The 32-bit port command
138 #define CMD_EOL 0x8000 /* The last command of the list, stop. */
183 /* The command structure has two 'next' pointers; v_next is the address of
184 * the next command as seen by the CPU, b_next is the address of the next
185 * command as seen by the 82596. The b_next pointer, as used by the 82596
186 * always references the status field of the next command, rather than the
189 * because the 82596 expects other fields to be there, depending on command
196 unsigned short command; member in struct:i596_cmd
276 unsigned short command; member in struct:i596_scb
388 while (--delcnt && dma->scb.command) { wait_cmd()
396 SWAP16(dma->scb.command)); wait_cmd()
415 printk(KERN_DEBUG "scb at %p, scb.status = %04x, .command = %04x," i596_display_data()
417 &dma->scb, SWAP16(dma->scb.status), SWAP16(dma->scb.command), i596_display_data()
427 "cmd at %p, .status = %04x, .command = %04x," i596_display_data()
429 cmd, SWAP16(cmd->status), SWAP16(cmd->command), i596_display_data()
598 dma->scb.command = 0; init_i596_mem()
604 dma->cf_cmd.cmd.command = SWAP16(CmdConfigure); init_i596_mem()
610 dma->sa_cmd.cmd.command = SWAP16(CmdSASetup); init_i596_mem()
615 dma->tdr_cmd.cmd.command = SWAP16(CmdTDR); init_i596_mem()
626 dma->scb.command = SWAP16(RX_START); init_i596_mem()
806 switch (SWAP16(ptr->command) & 0x7) { i596_cleanup_cmd()
822 tx_cmd->cmd.command = 0; /* Mark as free */ i596_cleanup_cmd()
850 /* FIXME: this command might cause an lpmc */ i596_reset()
851 lp->dma->scb.command = SWAP16(CUC_ABORT | RX_ABORT); i596_reset()
877 cmd->command |= SWAP16(CMD_EOL | CMD_INTR); i596_add_cmd()
892 dma->scb.command = SWAP16(CUC_START); i596_add_cmd()
908 "%s: command unit timed out, status resetting.\n", i596_add_cmd()
957 lp->dma->scb.command = SWAP16(CUC_START | RX_START); i596_tx_timeout()
990 if (tx_cmd->cmd.command) { i596_start_xmit()
1003 tx_cmd->cmd.command = SWAP16(CMD_FLEX | CmdTx); i596_start_xmit()
1079 dma->scb.command = 0; i82596_probe()
1148 "%s: i596 interrupt completed command.\n", i596_interrupt()
1153 "%s: i596 interrupt command unit inactive %x.\n", i596_interrupt()
1165 "cmd_head->status = %04x, ->command = %04x\n", i596_interrupt()
1167 SWAP16(lp->cmd_head->command))); i596_interrupt()
1171 switch (SWAP16(ptr->command) & 0x7) { i596_interrupt()
1198 tx_cmd->cmd.command = 0; /* Mark free */ i596_interrupt()
1231 * Zap command so set_multicast_list() know i596_interrupt()
1234 ptr->command = 0; i596_interrupt()
1251 ptr->command &= SWAP16(0x1fff); i596_interrupt()
1283 dma->scb.command = SWAP16(ack_cmd); i596_interrupt()
1314 lp->dma->scb.command = SWAP16(CUC_ABORT | RX_ABORT); i596_close()
1368 if (dma->cf_cmd.cmd.command) set_multicast_list()
1373 dma->cf_cmd.cmd.command = SWAP16(CmdConfigure); set_multicast_list()
1392 cmd->cmd.command = SWAP16(CmdMulticastList); set_multicast_list()
H A D82596.c140 * The MPU_PORT command allows direct access to the 82596. With PORT access
141 * the following commands are available (p5-18). The 32-bit port command
172 #define CMD_EOL 0x8000 /* The last command of the list, stop. */
216 /* The command structure has two 'next' pointers; v_next is the address of
217 * the next command as seen by the CPU, b_next is the address of the next
218 * command as seen by the 82596. The b_next pointer, as used by the 82596
219 * always references the status field of the next command, rather than the
222 * because the 82596 expects other fields to be there, depending on command
229 unsigned short command; member in struct:i596_cmd
292 unsigned short command; member in struct:i596_scb
419 dev->name, str, lp->scb.status, lp->scb.command); wait_istat()
429 while (--delcnt && lp->scb.command) wait_cmd()
433 dev->name, str, lp->scb.status, lp->scb.command); wait_cmd()
445 while (--delcnt && c->command) wait_cfg()
467 printk(KERN_ERR "scb at %p, scb.status = %04x, .command = %04x," i596_display_data()
469 &lp->scb, lp->scb.status, lp->scb.command, i596_display_data()
477 printk(KERN_ERR "cmd at %p, .status = %04x, .command = %04x, .b_next = %p\n", i596_display_data()
478 cmd, cmd->status, cmd->command, cmd->b_next); i596_display_data()
688 lp->scb.command = 0; init_i596_mem()
710 lp->cf_cmd.cmd.command = CmdConfigure; init_i596_mem()
715 lp->sa_cmd.cmd.command = CmdSASetup; init_i596_mem()
719 lp->tdr_cmd.cmd.command = CmdTDR; init_i596_mem()
729 lp->scb.command = RX_START; init_i596_mem()
885 switch ((ptr->command) & 0x7) { i596_cleanup_cmd()
897 tx_cmd->cmd.command = 0; /* Mark as free */ i596_cleanup_cmd()
922 lp->scb.command = CUC_ABORT | RX_ABORT; i596_reset()
945 cmd->command |= (CMD_EOL | CMD_INTR); i596_add_cmd()
957 lp->scb.command = CUC_START; i596_add_cmd()
971 printk(KERN_NOTICE "%s: command unit timed out, status resetting.\n", dev->name); i596_add_cmd()
1040 lp->scb.command = CUC_START | RX_START; i596_tx_timeout()
1069 if (tx_cmd->cmd.command) { i596_start_xmit()
1081 tx_cmd->cmd.command = CMD_FLEX | CmdTx; i596_start_xmit()
1216 lp->scb.command = 0; i82596_probe()
1279 DEB(DEB_INTS,printk(KERN_DEBUG "%s: i596 interrupt completed command.\n", dev->name)); i596_interrupt()
1281 DEB(DEB_INTS,printk(KERN_DEBUG "%s: i596 interrupt command unit inactive %x.\n", dev->name, status & 0x0700)); i596_interrupt()
1286 DEB(DEB_STATUS,printk(KERN_DEBUG "cmd_head->status = %04x, ->command = %04x\n", i596_interrupt()
1287 lp->cmd_head->status, lp->cmd_head->command)); i596_interrupt()
1291 switch ((ptr->command) & 0x7) { i596_interrupt()
1315 tx_cmd->cmd.command = 0; /* Mark free */ i596_interrupt()
1338 /* Zap command so set_multicast_list() knows it is free */ i596_interrupt()
1339 ptr->command = 0; i596_interrupt()
1348 ptr->command &= 0x1fff; i596_interrupt()
1372 lp->scb.command = ack_cmd; i596_interrupt()
1412 lp->scb.command = CUC_ABORT | RX_ABORT; i596_close()
1482 lp->cf_cmd.cmd.command = CmdConfigure; set_multicast_list()
1502 cmd->cmd.command = CmdMulticastList; set_multicast_list()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
H A Dbmi.h32 * command, this opportunity ends.
35 * from mailbox0. BMI requests all begin with a command
37 * command-specific data.
40 * The Host can only issue a command once the Target gives it a
42 * Target has completed a command, it issues another BMI Command
43 * Credit (so the Host can issue the next command).
56 * u32 command (BMI_DONE)
64 * u32 command (BMI_READ_MEMORY)
75 * u32 command (BMI_WRITE_MEMORY)
86 * u32 command (BMI_EXECUTE)
97 * u32 command (BMI_SET_APP_START)
106 * u32 command (BMI_READ_REGISTER)
116 * u32 command (BMI_WRITE_REGISTER)
128 * u32 command (BMI_GET_TARGET_ID/INFO)
143 * u32 command (BMI_ROMPATCH_INSTALL)
158 * u32 command (BMI_ROMPATCH_UNINSTALL)
168 * u32 command (BMI_ROMPATCH_ACTIVATE)
179 * u32 command (BMI_ROMPATCH_DEACTIVATE)
194 * command should be followed by a series of 1 or more
196 * u32 command (BMI_LZ_STREAM_START)
204 * data which is uncompressed by the Target. This command
205 * must be preceded by a BMI_LZ_STREAM_START command. A series
209 * u32 command (BMI_LZ_DATA)
/linux-4.1.27/drivers/usb/storage/
H A Dshuttle_usbat.c110 #define USBAT_ATA_CMD 0x17 /* device command (W) */
203 * Convenience function to produce an ATA read/write sectors command
294 * Some USBAT-specific commands can only be executed over a command transport
354 unsigned char *command = us->iobuf; usbat_set_shuttle_features() local
356 command[0] = 0x40; usbat_set_shuttle_features()
357 command[1] = USBAT_CMD_SET_FEAT; usbat_set_shuttle_features()
363 command[2] = epp_control; usbat_set_shuttle_features()
371 command[3] = external_trigger; usbat_set_shuttle_features()
378 command[4] = test_pattern; usbat_set_shuttle_features()
382 * in the read/write command. usbat_set_shuttle_features()
384 command[5] = mask_byte; usbat_set_shuttle_features()
392 command[6] = subcountL; usbat_set_shuttle_features()
393 command[7] = subcountH; usbat_set_shuttle_features()
395 return usbat_execute_command(us, command, 8); usbat_set_shuttle_features()
456 unsigned char *command = us->iobuf; usbat_read_block() local
461 command[0] = 0xC0; usbat_read_block()
462 command[1] = USBAT_ATA | USBAT_CMD_READ_BLOCK; usbat_read_block()
463 command[2] = USBAT_ATA_DATA; usbat_read_block()
464 command[3] = 0; usbat_read_block()
465 command[4] = 0; usbat_read_block()
466 command[5] = 0; usbat_read_block()
467 command[6] = LSB_of(len); usbat_read_block()
468 command[7] = MSB_of(len); usbat_read_block()
470 result = usbat_execute_command(us, command, 8); usbat_read_block()
490 unsigned char *command = us->iobuf; usbat_write_block() local
495 command[0] = 0x40; usbat_write_block()
496 command[1] = access | USBAT_CMD_WRITE_BLOCK; usbat_write_block()
497 command[2] = USBAT_ATA_DATA; usbat_write_block()
498 command[3] = 0; usbat_write_block()
499 command[4] = 0; usbat_write_block()
500 command[5] = 0; usbat_write_block()
501 command[6] = LSB_of(len); usbat_write_block()
502 command[7] = MSB_of(len); usbat_write_block()
504 result = usbat_execute_command(us, command, 8); usbat_write_block()
538 unsigned char *command = us->iobuf; usbat_hp8200e_rw_block_test() local
549 * The first time we send the full command, which consists usbat_hp8200e_rw_block_test()
550 * of downloading the SCSI command followed by downloading usbat_hp8200e_rw_block_test()
552 * send the command to download the data -- the SCSI command usbat_hp8200e_rw_block_test()
567 command[0] = 0x40; usbat_hp8200e_rw_block_test()
568 command[1] = access | USBAT_CMD_WRITE_REGS; usbat_hp8200e_rw_block_test()
569 command[2] = 0x07; usbat_hp8200e_rw_block_test()
570 command[3] = 0x17; usbat_hp8200e_rw_block_test()
571 command[4] = 0xFC; usbat_hp8200e_rw_block_test()
572 command[5] = 0xE7; usbat_hp8200e_rw_block_test()
573 command[6] = LSB_of(num_registers*2); usbat_hp8200e_rw_block_test()
574 command[7] = MSB_of(num_registers*2); usbat_hp8200e_rw_block_test()
579 command[cmdlen-8] = (direction==DMA_TO_DEVICE ? 0x40 : 0xC0); usbat_hp8200e_rw_block_test()
580 command[cmdlen-7] = access | usbat_hp8200e_rw_block_test()
583 command[cmdlen-6] = data_reg; usbat_hp8200e_rw_block_test()
584 command[cmdlen-5] = status_reg; usbat_hp8200e_rw_block_test()
585 command[cmdlen-4] = timeout; usbat_hp8200e_rw_block_test()
586 command[cmdlen-3] = qualifier; usbat_hp8200e_rw_block_test()
587 command[cmdlen-2] = LSB_of(len); usbat_hp8200e_rw_block_test()
588 command[cmdlen-1] = MSB_of(len); usbat_hp8200e_rw_block_test()
590 result = usbat_execute_command(us, command, cmdlen); usbat_hp8200e_rw_block_test()
613 * the bulk download -- but not the SCSI command because usbat_hp8200e_rw_block_test()
614 * in some sense the SCSI command is still 'active' and usbat_hp8200e_rw_block_test()
618 * Note that a stall for the test-and-read/write command means usbat_hp8200e_rw_block_test()
691 unsigned char *command = us->iobuf; usbat_multiple_write() local
696 command[0] = 0x40; usbat_multiple_write()
697 command[1] = USBAT_ATA | USBAT_CMD_WRITE_REGS; usbat_multiple_write()
700 command[2] = 0; usbat_multiple_write()
701 command[3] = 0; usbat_multiple_write()
702 command[4] = 0; usbat_multiple_write()
703 command[5] = 0; usbat_multiple_write()
706 command[6] = LSB_of(num_registers*2); usbat_multiple_write()
707 command[7] = MSB_of(num_registers*2); usbat_multiple_write()
709 /* The setup command */ usbat_multiple_write()
710 result = usbat_execute_command(us, command, 8); usbat_multiple_write()
737 * The read will start when the condition is met, otherwise the command aborts.
749 unsigned char *command = us->iobuf; usbat_read_blocks() local
751 command[0] = 0xC0; usbat_read_blocks()
752 command[1] = USBAT_ATA | USBAT_CMD_COND_READ_BLOCK; usbat_read_blocks()
753 command[2] = USBAT_ATA_DATA; usbat_read_blocks()
754 command[3] = USBAT_ATA_STATUS; usbat_read_blocks()
755 command[4] = 0xFD; /* Timeout (ms); */ usbat_read_blocks()
756 command[5] = USBAT_QUAL_FCQ; usbat_read_blocks()
757 command[6] = LSB_of(len); usbat_read_blocks()
758 command[7] = MSB_of(len); usbat_read_blocks()
760 /* Multiple block read setup command */ usbat_read_blocks()
761 result = usbat_execute_command(us, command, 8); usbat_read_blocks()
779 * The read will start when the condition is met, otherwise the command aborts.
791 unsigned char *command = us->iobuf; usbat_write_blocks() local
793 command[0] = 0x40; usbat_write_blocks()
794 command[1] = USBAT_ATA | USBAT_CMD_COND_WRITE_BLOCK; usbat_write_blocks()
795 command[2] = USBAT_ATA_DATA; usbat_write_blocks()
796 command[3] = USBAT_ATA_STATUS; usbat_write_blocks()
797 command[4] = 0xFD; /* Timeout (ms) */ usbat_write_blocks()
798 command[5] = USBAT_QUAL_FCQ; usbat_write_blocks()
799 command[6] = LSB_of(len); usbat_write_blocks()
800 command[7] = MSB_of(len); usbat_write_blocks()
802 /* Multiple block write setup command */ usbat_write_blocks()
803 result = usbat_execute_command(us, command, 8); usbat_write_blocks()
999 * execute the IDENTIFY PACKET DEVICE command. On ATA devices (i.e. flash usbat_identify_device()
1000 * readers), this command should fail with error. On ATAPI devices (i.e. usbat_identify_device()
1011 /* Check for error bit, or if the command 'fell through' */ usbat_identify_device()
1066 unsigned char command[3] = { 0x01, 0xA0, 0xEC }; usbat_flash_get_sector_count() local
1078 /* ATA command : IDENTIFY DEVICE */ usbat_flash_get_sector_count()
1079 rc = usbat_multiple_write(us, registers, command, 3); usbat_flash_get_sector_count()
1128 unsigned char command[7]; usbat_flash_read_data() local
1171 /* ATA command 0x20 (READ SECTORS) */ usbat_flash_read_data()
1172 usbat_pack_ata_sector_cmd(command, thistime, sector, 0x20); usbat_flash_read_data()
1174 /* Write/execute ATA read command */ usbat_flash_read_data()
1175 result = usbat_multiple_write(us, registers, command, 7); usbat_flash_read_data()
1219 unsigned char command[7]; usbat_flash_write_data() local
1266 /* ATA command 0x30 (WRITE SECTORS) */ usbat_flash_write_data()
1267 usbat_pack_ata_sector_cmd(command, thistime, sector, 0x30); usbat_flash_write_data()
1269 /* Write/execute ATA write command */ usbat_flash_write_data()
1270 result = usbat_multiple_write(us, registers, command, 7); usbat_flash_write_data()
1292 * Squeeze a potentially huge (> 65535 byte) read10 command into
1324 * a single read command (max is 64k-1), we will perform usbat_hp8200e_handle_read10()
1369 /* Fix up the SCSI command sector and num sectors */ usbat_hp8200e_handle_read10()
1371 data[7+2] = MSB_of(sector>>16); /* SCSI command sector */ usbat_hp8200e_handle_read10()
1377 data[7+7] = MSB_of(len / srb->transfersize); /* SCSI command */ usbat_hp8200e_handle_read10()
1588 data[6] = 0xA0; /* (command) = ATA PACKET COMMAND */ usbat_hp8200e_transport()
1638 * Write the 12-byte command header. usbat_hp8200e_transport()
1640 * If the command is BLANK then set the timer for 75 minutes. usbat_hp8200e_transport()
1819 usb_stor_dbg(us, "Gah! Unknown command: %d (0x%x)\n", usbat_flash_transport()
H A Dsddr09.c294 /* send vendor interface command (0x41) */
324 unsigned char *command, sddr09_send_scsi_command()
326 return sddr09_send_command(us, 0, USB_DIR_OUT, command, command_len); sddr09_send_scsi_command()
336 unsigned char *command = us->iobuf;
339 memset(command, 0, 6);
340 command[1] = LUNBITS;
342 result = sddr09_send_scsi_command(us, command, 6);
357 unsigned char *command = us->iobuf; sddr09_request_sense() local
360 memset(command, 0, 12); sddr09_request_sense()
361 command[0] = 0x03; sddr09_request_sense()
362 command[1] = LUNBITS; sddr09_request_sense()
363 command[4] = buflen; sddr09_request_sense()
365 result = sddr09_send_scsi_command(us, command, 12); sddr09_request_sense()
384 * A read data command gets data in 512-byte pages.
385 * A read control command gets control in 64-byte chunks.
386 * A read both command gets data+control in 576-byte chunks.
401 unsigned char *command = us->iobuf; sddr09_readX() local
404 command[0] = 0xE8; sddr09_readX()
405 command[1] = LUNBITS | x; sddr09_readX()
406 command[2] = MSB_of(fromaddress>>16); sddr09_readX()
407 command[3] = LSB_of(fromaddress>>16); sddr09_readX()
408 command[4] = MSB_of(fromaddress & 0xFFFF); sddr09_readX()
409 command[5] = LSB_of(fromaddress & 0xFFFF); sddr09_readX()
410 command[6] = 0; sddr09_readX()
411 command[7] = 0; sddr09_readX()
412 command[8] = 0; sddr09_readX()
413 command[9] = 0; sddr09_readX()
414 command[10] = MSB_of(nr_of_pages); sddr09_readX()
415 command[11] = LSB_of(nr_of_pages); sddr09_readX()
417 result = sddr09_send_scsi_command(us, command, 12); sddr09_readX()
531 unsigned char *command = us->iobuf; sddr09_erase() local
536 memset(command, 0, 12); sddr09_erase()
537 command[0] = 0xEA; sddr09_erase()
538 command[1] = LUNBITS; sddr09_erase()
539 command[6] = MSB_of(Eaddress>>16); sddr09_erase()
540 command[7] = LSB_of(Eaddress>>16); sddr09_erase()
541 command[8] = MSB_of(Eaddress & 0xFFFF); sddr09_erase()
542 command[9] = LSB_of(Eaddress & 0xFFFF); sddr09_erase()
544 result = sddr09_send_scsi_command(us, command, 12); sddr09_erase()
583 unsigned char *command = us->iobuf; sddr09_writeX() local
586 command[0] = 0xE9; sddr09_writeX()
587 command[1] = LUNBITS; sddr09_writeX()
589 command[2] = MSB_of(Waddress>>16); sddr09_writeX()
590 command[3] = LSB_of(Waddress>>16); sddr09_writeX()
591 command[4] = MSB_of(Waddress & 0xFFFF); sddr09_writeX()
592 command[5] = LSB_of(Waddress & 0xFFFF); sddr09_writeX()
594 command[6] = MSB_of(Eaddress>>16); sddr09_writeX()
595 command[7] = LSB_of(Eaddress>>16); sddr09_writeX()
596 command[8] = MSB_of(Eaddress & 0xFFFF); sddr09_writeX()
597 command[9] = LSB_of(Eaddress & 0xFFFF); sddr09_writeX()
599 command[10] = MSB_of(nr_of_pages); sddr09_writeX()
600 command[11] = LSB_of(nr_of_pages); sddr09_writeX()
602 result = sddr09_send_scsi_command(us, command, 12); sddr09_writeX()
645 unsigned char *command = us->iobuf;
651 command[0] = 0xE7;
652 command[1] = LUNBITS;
653 command[2] = 0;
657 command[4*nsg+2] = ct;
658 command[4*nsg+1] = ((address >> 9) & 0xFF);
659 command[4*nsg+0] = ((address >> 17) & 0xFF);
660 command[4*nsg-1] = ((address >> 25) & 0xFF);
665 command[4*nsg+2] = ct;
666 command[4*nsg+1] = ((address >> 9) & 0xFF);
667 command[4*nsg+0] = ((address >> 17) & 0xFF);
668 command[4*nsg-1] = ((address >> 25) & 0xFF);
673 command[4*nsg+2] = ct;
674 command[4*nsg+1] = ((address >> 9) & 0xFF);
675 command[4*nsg+0] = ((address >> 17) & 0xFF);
676 command[4*nsg-1] = ((address >> 25) & 0xFF);
678 command[2] = nsg;
680 result = sddr09_send_scsi_command(us, command, 4*nsg+3);
719 unsigned char *command = us->iobuf; sddr09_read_status() local
725 memset(command, 0, 12); sddr09_read_status()
726 command[0] = 0xEC; sddr09_read_status()
727 command[1] = LUNBITS; sddr09_read_status()
729 result = sddr09_send_scsi_command(us, command, 12); sddr09_read_status()
1071 * signifying that the secret command to read an 128-bit ID is available.
1077 unsigned char *command = us->iobuf; sddr09_read_deviceID() local
1081 memset(command, 0, 12); sddr09_read_deviceID()
1082 command[0] = 0xED; sddr09_read_deviceID()
1083 command[1] = LUNBITS; sddr09_read_deviceID()
1085 result = sddr09_send_scsi_command(us, command, 12); sddr09_read_deviceID()
1131 unsigned char *command = us->iobuf;
1133 memset(command, 0, 12);
1134 command[0] = 0xEB;
1135 command[1] = LUNBITS;
1137 return sddr09_send_scsi_command(us, command, 12);
1184 /* Byte 3 announces the availability of another read ID command */ sddr09_get_cardinfo()
1480 // 70: current command usb_stor_sddr09_dpcm_init()
1562 /* for a faked command, we have to follow with a faked sense */ sddr09_transport()
1688 sensecode = 0x20; /* invalid command */ sddr09_transport()
1702 usb_stor_dbg(us, "Send control for command %s\n", ptr); sddr09_transport()
323 sddr09_send_scsi_command(struct us_data *us, unsigned char *command, unsigned int command_len) sddr09_send_scsi_command() argument
H A Ddatafab.c148 unsigned char *command = us->iobuf; datafab_read_data() local
188 command[0] = 0; datafab_read_data()
189 command[1] = thistime; datafab_read_data()
190 command[2] = sector & 0xFF; datafab_read_data()
191 command[3] = (sector >> 8) & 0xFF; datafab_read_data()
192 command[4] = (sector >> 16) & 0xFF; datafab_read_data()
194 command[5] = 0xE0 + (info->lun << 4); datafab_read_data()
195 command[5] |= (sector >> 24) & 0x0F; datafab_read_data()
196 command[6] = 0x20; datafab_read_data()
197 command[7] = 0x01; datafab_read_data()
199 // send the read command datafab_read_data()
200 result = datafab_bulk_write(us, command, 8); datafab_read_data()
231 unsigned char *command = us->iobuf; datafab_write_data() local
276 command[0] = 0; datafab_write_data()
277 command[1] = thistime; datafab_write_data()
278 command[2] = sector & 0xFF; datafab_write_data()
279 command[3] = (sector >> 8) & 0xFF; datafab_write_data()
280 command[4] = (sector >> 16) & 0xFF; datafab_write_data()
282 command[5] = 0xE0 + (info->lun << 4); datafab_write_data()
283 command[5] |= (sector >> 24) & 0x0F; datafab_write_data()
284 command[6] = 0x30; datafab_write_data()
285 command[7] = 0x02; datafab_write_data()
287 // send the command datafab_write_data()
288 result = datafab_bulk_write(us, command, 8); datafab_write_data()
327 // We'll send an IDENTIFY DEVICE command and see which LUN responds... datafab_determine_lun()
332 unsigned char *command = us->iobuf; datafab_determine_lun() local
339 memcpy(command, scommand, 8); datafab_determine_lun()
349 command[5] = 0xa0; datafab_determine_lun()
351 rc = datafab_bulk_write(us, command, 8); datafab_determine_lun()
364 command[5] = 0xb0; datafab_determine_lun()
366 rc = datafab_bulk_write(us, command, 8); datafab_determine_lun()
392 // this is a variation of the ATA "IDENTIFY DEVICE" command...according datafab_id_device()
397 unsigned char *command = us->iobuf; datafab_id_device() local
410 memcpy(command, scommand, 8); datafab_id_device()
415 command[5] += (info->lun << 4); datafab_id_device()
417 rc = datafab_bulk_write(us, command, 8); datafab_id_device()
716 usb_stor_dbg(us, "Gah! Unknown command: %d (0x%x)\n", datafab_transport()
H A Dcypress_atacb.c78 * send raw ATA command over mass storage
95 /* check if we support the command */ cypress_atacb_passthrough()
108 /* first build the ATACB command */ cypress_atacb_passthrough()
111 srb->cmnd[0] = 0x24; /* bVSCBSignature : vendor-specific command cypress_atacb_passthrough()
117 lba high, device, command are valid */ cypress_atacb_passthrough()
127 srb->cmnd[12] = save_cmnd[14]; /* command */ cypress_atacb_passthrough()
142 srb->cmnd[12] = save_cmnd[9]; /* command */ cypress_atacb_passthrough()
145 /* Filter SET_FEATURES - XFER MODE command */ cypress_atacb_passthrough()
177 /* build the command for cypress_atacb_passthrough()
181 /* we use the same command as before, but we set cypress_atacb_passthrough()
182 * the read taskfile bit, for not executing atacb command, cypress_atacb_passthrough()
193 /* we fail to get registers, report invalid command */ cypress_atacb_passthrough()
200 /* set sk, asc for a good command */ cypress_atacb_passthrough()
227 desc[13] = regs[7]; /* command */ cypress_atacb_passthrough()
H A Dsddr55.c137 unsigned char *command = us->iobuf; sddr55_status() local
141 /* send command */ sddr55_status()
142 memset(command, 0, 8); sddr55_status()
143 command[5] = 0xB0; sddr55_status()
144 command[7] = 0x80; sddr55_status()
146 DMA_TO_DEVICE, command, 8); sddr55_status()
200 unsigned char *command = us->iobuf; sddr55_read_data() local
248 command[0] = 0; sddr55_read_data()
249 command[1] = LSB_of(address>>16); sddr55_read_data()
250 command[2] = LSB_of(address>>8); sddr55_read_data()
251 command[3] = LSB_of(address); sddr55_read_data()
253 command[4] = 0; sddr55_read_data()
254 command[5] = 0xB0; sddr55_read_data()
255 command[6] = LSB_of(pages << (1 - info->smallpageshift)); sddr55_read_data()
256 command[7] = 0x85; sddr55_read_data()
258 /* send command */ sddr55_read_data()
260 DMA_TO_DEVICE, command, 8); sddr55_read_data()
319 unsigned char *command = us->iobuf; sddr55_write_data() local
372 command[4] = 0; sddr55_write_data()
418 command[4] = 0x40; sddr55_write_data()
423 command[1] = LSB_of(address>>16); sddr55_write_data()
424 command[2] = LSB_of(address>>8); sddr55_write_data()
425 command[3] = LSB_of(address); sddr55_write_data()
427 /* set the lba into the command, modulo 1000 */ sddr55_write_data()
428 command[0] = LSB_of(lba % 1000); sddr55_write_data()
429 command[6] = MSB_of(lba % 1000); sddr55_write_data()
431 command[4] |= LSB_of(pages >> info->smallpageshift); sddr55_write_data()
432 command[5] = 0xB0; sddr55_write_data()
433 command[7] = 0x86; sddr55_write_data()
435 /* send command */ sddr55_write_data()
437 DMA_TO_DEVICE, command, 8); sddr55_write_data()
524 unsigned char *command = us->iobuf; sddr55_read_deviceID() local
527 memset(command, 0, 8); sddr55_read_deviceID()
528 command[5] = 0xB0; sddr55_read_deviceID()
529 command[7] = 0x84; sddr55_read_deviceID()
530 result = sddr55_bulk_transport(us, DMA_TO_DEVICE, command, 8); sddr55_read_deviceID()
650 unsigned char *command = us->iobuf; sddr55_read_map() local
666 memset(command, 0, 8); sddr55_read_map()
667 command[5] = 0xB0; sddr55_read_map()
668 command[6] = numblocks * 2 / 256; sddr55_read_map()
669 command[7] = 0x8A; sddr55_read_map()
671 result = sddr55_bulk_transport(us, DMA_TO_DEVICE, command, 8); sddr55_read_map()
685 result = sddr55_bulk_transport(us, DMA_FROM_DEVICE, command, 2); sddr55_read_map()
903 set_sense_info (5, 0x24, 0); /* invalid field in command */ sddr55_transport()
937 set_sense_info (5, 0x24, 0); /* invalid field in command */ sddr55_transport()
966 set_sense_info (5, 0x20, 0); /* illegal command */ sddr55_transport()
H A Djumpshot.c167 unsigned char *command = us->iobuf; jumpshot_read_data() local
200 command[0] = 0; jumpshot_read_data()
201 command[1] = thistime; jumpshot_read_data()
202 command[2] = sector & 0xFF; jumpshot_read_data()
203 command[3] = (sector >> 8) & 0xFF; jumpshot_read_data()
204 command[4] = (sector >> 16) & 0xFF; jumpshot_read_data()
206 command[5] = 0xE0 | ((sector >> 24) & 0x0F); jumpshot_read_data()
207 command[6] = 0x20; jumpshot_read_data()
209 // send the setup + command jumpshot_read_data()
211 0, 0x20, 0, 1, command, 7); jumpshot_read_data()
244 unsigned char *command = us->iobuf; jumpshot_write_data() local
282 command[0] = 0; jumpshot_write_data()
283 command[1] = thistime; jumpshot_write_data()
284 command[2] = sector & 0xFF; jumpshot_write_data()
285 command[3] = (sector >> 8) & 0xFF; jumpshot_write_data()
286 command[4] = (sector >> 16) & 0xFF; jumpshot_write_data()
288 command[5] = 0xE0 | ((sector >> 24) & 0x0F); jumpshot_write_data()
289 command[6] = 0x30; jumpshot_write_data()
291 // send the setup + command jumpshot_write_data()
293 0, 0x20, 0, 1, command, 7); jumpshot_write_data()
333 unsigned char *command = us->iobuf; jumpshot_id_device() local
340 command[0] = 0xE0; jumpshot_id_device()
341 command[1] = 0xEC; jumpshot_id_device()
348 0, 0x20, 0, 6, command, 2); jumpshot_id_device()
642 usb_stor_dbg(us, "Gah! Unknown command: %d (0x%x)\n", jumpshot_transport()
/linux-4.1.27/drivers/scsi/lpfc/
H A Dlpfc_mbox.c47 * @pmb: pointer to the driver internal queue element for mailbox command.
50 * The dump mailbox command provides a method for the device driver to obtain
53 * This routine prepares the mailbox command for dumping list of static
106 * @pmb: pointer to the driver internal queue element for mailbox command.
108 * This routine prepares a mailbox command to bring down HBA link.
121 * lpfc_dump_mem - Prepare a mailbox command for reading a region.
123 * @pmb: pointer to the driver internal queue element for mailbox command.
127 * The dump mailbox command provides a method for the device driver to obtain
130 * This routine prepares the mailbox command for dumping HBA's config region.
158 * lpfc_dump_wakeup_param - Prepare mailbox command for retrieving wakeup params
160 * @pmb: pointer to the driver internal queue element for mailbox command.
162 * This function create a dump memory mailbox command to dump wake up
192 * lpfc_read_nv - Prepare a mailbox command for reading HBA's NVRAM param
194 * @pmb: pointer to the driver internal queue element for mailbox command.
196 * The read NVRAM mailbox command returns the HBA's non-volatile parameters
199 * This routine prepares the mailbox command for reading information stored
215 * lpfc_config_async - Prepare a mailbox command for enabling HBA async event
217 * @pmb: pointer to the driver internal queue element for mailbox command.
220 * The asynchronous event enable mailbox command is used to enable the
224 * This routine prepares the mailbox command for enabling HBA asynchronous
242 * lpfc_heart_beat - Prepare a mailbox command for heart beat
244 * @pmb: pointer to the driver internal queue element for mailbox command.
246 * The heart beat mailbox command is used to detect an unresponsive HBA, which
250 * This routine prepares the mailbox command for issuing a heart beat in the
251 * form of mailbox command to the HBA. The timely completion of the heart
252 * beat mailbox command indicates the health of the HBA.
267 * lpfc_read_topology - Prepare a mailbox command for reading HBA topology
269 * @pmb: pointer to the driver internal queue element for mailbox command.
272 * The read topology mailbox command is issued to read the link topology
279 * This routine prepares the mailbox command for reading HBA link topology
282 * memory as part of the execution of the mailbox command.
313 * lpfc_clear_la - Prepare a mailbox command for clearing HBA link attention
315 * @pmb: pointer to the driver internal queue element for mailbox command.
317 * The clear link attention mailbox command is issued to clear the link event
322 * command.
324 * This routine prepares the mailbox command for clearing HBA link attention
342 * lpfc_config_link - Prepare a mailbox command for configuring link on a HBA
344 * @pmb: pointer to the driver internal queue element for mailbox command.
346 * The configure link mailbox command is used before the initialize link
347 * mailbox command to override default value and to configure link-oriented
349 * command would be used after an F_Port login to set the returned DID address
350 * and the fabric timeout values. This command is not valid before a configure
351 * port command has configured the HBA port.
353 * This routine prepares the mailbox command for configuring link on a HBA.
390 * lpfc_config_msi - Prepare a mailbox command for configuring msi-x
392 * @pmb: pointer to the driver internal queue element for mailbox command.
394 * The configure MSI-X mailbox command is used to configure the HBA's SLI-3
423 /* Clear mailbox command fields */ lpfc_config_msi()
460 /* Set command and owner bit */ lpfc_config_msi()
468 * lpfc_init_link - Prepare a mailbox command for initialize link on a HBA
470 * @pmb: pointer to the driver internal queue element for mailbox command.
474 * The initialize link mailbox command is used to initialize the Fibre
475 * Channel link. This command must follow a configure port command that
478 * This routine prepares the mailbox command for initializing link on a HBA
563 * lpfc_read_sparam - Prepare a mailbox command for reading HBA parameters
565 * @pmb: pointer to the driver internal queue element for mailbox command.
568 * The read service parameter mailbox command is used to read the HBA port
570 * specified directly by a BDE in the mailbox command. These service
574 * This routine prepares the mailbox command for reading HBA port service
576 * are populated into the mailbox command for the HBA to DMA the service
624 * lpfc_unreg_did - Prepare a mailbox command for unregistering DID
628 * @pmb: pointer to the driver internal queue element for mailbox command.
630 * The unregister DID mailbox command is used to unregister an N_Port/F_Port
632 * command frees an RPI context in the HBA port. This has the effect of
635 * This routine prepares the mailbox command for unregistering a remote
659 * lpfc_read_config - Prepare a mailbox command for reading HBA configuration
661 * @pmb: pointer to the driver internal queue element for mailbox command.
663 * The read configuration mailbox command is used to read the HBA port
664 * configuration parameters. This mailbox command provides a method for
668 * This routine prepares the mailbox command for reading out HBA configuration
685 * lpfc_read_lnk_stat - Prepare a mailbox command for reading HBA link stats
687 * @pmb: pointer to the driver internal queue element for mailbox command.
689 * The read link status mailbox command is used to read the link status from
694 * This routine prepares the mailbox command for reading out HBA link status.
710 * lpfc_reg_rpi - Prepare a mailbox command for registering remote login
715 * @pmb: pointer to the driver internal queue element for mailbox command.
718 * The registration login mailbox command is used to register an N_Port or
725 * This routine prepares the mailbox command for registering remote port login.
727 * HBA with the mailbox command.
781 * lpfc_unreg_login - Prepare a mailbox command for unregistering remote login
785 * @pmb: pointer to the driver internal queue element for mailbox command.
787 * The unregistration login mailbox command is used to unregister an N_Port
788 * or F_Port login. This command frees an RPI context in the HBA. It has the
791 * This routine prepares the mailbox command for unregistering remote port
821 * This routine sends mailbox command to unregister all active RPIs for
853 * lpfc_reg_vpi - Prepare a mailbox command for registering vport identifier
857 * @pmb: pointer to the driver internal queue element for mailbox command.
859 * The registration vport identifier mailbox command is used to activate a
865 * This routine prepares the mailbox command for registering a virtual N_Port.
899 * lpfc_unreg_vpi - Prepare a mailbox command for unregistering vport id
902 * @pmb: pointer to the driver internal queue element for mailbox command.
904 * The unregistration vport identifier mailbox command is used to inactivate
911 * This routine prepares the mailbox command for unregistering a virtual
999 * lpfc_read_rev - Prepare a mailbox command for reading HBA revision
1001 * @pmb: pointer to the driver internal queue element for mailbox command.
1003 * The read revision mailbox command is used to read the revision levels of
1009 * This routine prepares the mailbox command for reading HBA revision
1046 * @hbqmb: pointer to the HBQ configuration data structure in mailbox command.
1065 * @hbqmb: pointer to the HBQ configuration data structure in mailbox command.
1087 * @hbqmb: pointer to the HBQ configuration data structure in mailbox command.
1109 * lpfc_config_hbq - Prepare a mailbox command for configuring an HBQ
1114 * @pmb: pointer to the driver internal queue element for mailbox command.
1116 * The configure HBQ (Host Buffer Queue) mailbox command is used to configure
1120 * This routine prepares the mailbox command for configuring an HBQ.
1183 * lpfc_config_ring - Prepare a mailbox command for configuring an IOCB ring
1186 * @pmb: pointer to the driver internal queue element for mailbox command.
1188 * The configure ring mailbox command is used to configure an IOCB ring. This
1194 * configure ring command more than once with the same ring number. The HBA
1197 * This routine prepares the mailbox command for configuring IOCB ring.
1241 * lpfc_config_port - Prepare a mailbox command for configuring port
1243 * @pmb: pointer to the driver internal queue element for mailbox command.
1245 * The configure port mailbox command is used to identify the Port Control
1246 * Block (PCB) in the driver memory. After this command is issued, the
1252 * This routine prepares the mailbox command for configuring port.
1429 * lpfc_kill_board - Prepare a mailbox command for killing board
1431 * @pmb: pointer to the driver internal queue element for mailbox command.
1433 * The kill board mailbox command is used to tell firmware to perform a
1435 * When the kill board mailbox command is received, the ER3 bit is set to 1
1438 * command.
1440 * This routine prepares the mailbox command for killing the board in
1457 * @mbq: pointer to the driver internal queue element for mailbox command.
1459 * Driver maintains a internal mailbox command queue implemented as a linked
1460 * list. When a mailbox command is issued, it shall be put into the mailbox
1461 * command queue such that they shall be processed orderly as HBA can process
1462 * one mailbox command at a time.
1482 * Driver maintains a internal mailbox command queue implemented as a linked
1483 * list. When a mailbox command is issued, it shall be put into the mailbox
1484 * command queue such that they shall be processed orderly as HBA can process
1485 * one mailbox command at a time. After HBA finished processing a mailbox
1486 * command, the driver will remove a pending mailbox command from the head of
1487 * the mailbox command queue and send to the HBA for processing.
1490 * pointer to the driver internal queue element for mailbox command.
1508 * @mbq: pointer to the driver internal queue element for mailbox command.
1510 * This routine put the completed mailbox command into the mailbox command
1522 * lpfc_mbox_cmpl_put - Put mailbox command into mailbox command complete list
1524 * @mbq: pointer to the driver internal queue element for mailbox command.
1526 * This routine put the completed mailbox command into the mailbox command
1544 * lpfc_mbox_cmd_check - Check the validality of a mailbox command
1546 * @mboxq: pointer to the driver internal queue element for mailbox command.
1548 * This routine is to check whether a mailbox command is valid to be issued.
1550 * is to issue a mailbox command to the mailbox transport.
1557 /* Mailbox command that have a completion handler must also have a lpfc_mbox_cmd_check()
1574 * lpfc_mbox_dev_check - Check the device state for issuing a mailbox command
1578 * mailbox command. It is used by the mailbox transport API at the time the
1579 * to post a mailbox command to the device.
1598 * lpfc_mbox_tmo_val - Retrieve mailbox command timeout value
1600 * @cmd: mailbox command code.
1603 * command code.
1606 * Timeout value to be used for the given mailbox command
1661 * lpfc_sli4_mbx_sge_set - Set a sge entry in non-embedded mailbox command
1662 * @mbox: pointer to lpfc mbox command.
1667 * This routine sets up an entry in the non-embedded mailbox command at the sge
1684 * lpfc_sli4_mbx_sge_get - Get a sge entry from non-embedded mailbox command
1685 * @mbox: pointer to lpfc mbox command.
1688 * This routine gets an entry from the non-embedded mailbox command at the sge
1705 * lpfc_sli4_mbox_cmd_free - Free a sli4 mailbox command
1707 * @mbox: pointer to lpfc mbox command.
1709 * This routine frees SLI4 specific mailbox command for sending IOCTL command.
1721 /* For embedded mbox command, just free the mbox command */ lpfc_sli4_mbox_cmd_free()
1727 /* For non-embedded mbox command, we need to free the pages first */ lpfc_sli4_mbox_cmd_free()
1743 /* Finally, free the mailbox command itself */ lpfc_sli4_mbox_cmd_free()
1748 * lpfc_sli4_config - Initialize the SLI4 Config Mailbox command
1750 * @mbox: pointer to lpfc mbox command.
1752 * @opcode: The sli4 config sub mailbox command opcode.
1753 * @length: Length of the sli4 config mailbox command (including sub-header).
1755 * This routine sets up the header fields of SLI4 specific mailbox command
1756 * for sending IOCTL command.
1758 * Return: the actual length of the mbox command allocated (mostly useful
1759 * for none embedded mailbox command).
1773 /* Set up SLI4 mailbox command header fields */ lpfc_sli4_config()
1777 /* Set up SLI4 ioctl command header fields */ lpfc_sli4_config()
1780 /* Setup for the embedded mbox command */ lpfc_sli4_config()
1795 /* Setup for the non-embedded mbox command */ lpfc_sli4_config()
1836 /* Set up main header fields in mailbox command */ lpfc_sli4_config()
1867 * Return: the actual length of the mbox command allocated.
1877 /* Set up SLI4 ioctl command header fields */ lpfc_sli4_mbox_rsrc_extent()
1933 * @mbox: pointer to lpfc mbox command queue entry.
1936 * command. If the mailbox command is not MBX_SLI4_CONFIG (0x9B) or if the
1950 /* For embedded mbox command, get opcode from embedded sub-header*/ lpfc_sli_config_mbox_subsys_get()
1956 /* For non-embedded mbox command, get opcode from first dma page */ lpfc_sli_config_mbox_subsys_get()
1966 * @mbox: pointer to lpfc mbox command queue entry.
1969 * command. If the mailbox command is not MBX_SLI4_CONFIG (0x9B) or if
1983 /* For embedded mbox command, get opcode from embedded sub-header*/ lpfc_sli_config_mbox_opcode_get()
1989 /* For non-embedded mbox command, get opcode from first dma page */ lpfc_sli_config_mbox_opcode_get()
2001 * This routine routine allocates and constructs non-embedded mailbox command
2004 * Return: pointer to the mailbox command constructed if successful, otherwise
2025 /* Set up READ_FCF SLI4_CONFIG mailbox-ioctl command */ lpfc_sli4_mbx_read_fcf_rec()
2046 /* Set up command fields */ lpfc_sli4_mbx_read_fcf_rec()
2057 * @mboxq: pointer to lpfc mbox command.
2060 * mailbox command.
2065 /* Set up SLI4 mailbox command header fields */ lpfc_request_features()
2085 * lpfc_init_vfi - Initialize the INIT_VFI mailbox command
2086 * @mbox: pointer to lpfc mbox command to initialize.
2091 * in the context of an FCF. The driver issues this command to setup a VFI
2116 * lpfc_reg_vfi - Initialize the REG_VFI mailbox command
2117 * @mbox: pointer to lpfc mbox command to initialize.
2171 * lpfc_init_vpi - Initialize the INIT_VPI mailbox command
2173 * @mbox: pointer to lpfc mbox command to initialize.
2176 * The INIT_VPI mailbox command supports virtual N_Ports. The driver uses the
2177 * command to activate a virtual N_Port. The HBA assigns a MAC address to use
2178 * with the virtual N Port. The SLI Host issues this command before issuing a
2194 * lpfc_unreg_vfi - Initialize the UNREG_VFI mailbox command
2195 * @mbox: pointer to lpfc mbox command to initialize.
2198 * The UNREG_VFI mailbox command causes the SLI Host to put a virtual fabric
2216 * @mbox: pointer to lpfc mbox command to initialize.
2218 * This function create a SLI4 dump mailbox command to dump configure
2259 * lpfc_reg_fcfi - Initialize the REG_FCFI mailbox command
2261 * @mbox: pointer to lpfc mbox command to initialize.
2263 * The REG_FCFI mailbox command supports Fibre Channel Forwarders (FCFs). The
2264 * SLI Host uses the command to activate an FCF after it has acquired FCF
2265 * information via a READ_FCF mailbox command. This mailbox command also is used
2295 * lpfc_unreg_fcfi - Initialize the UNREG_FCFI mailbox command
2296 * @mbox: pointer to lpfc mbox command to initialize.
2299 * The UNREG_FCFI mailbox command supports Fibre Channel Forwarders (FCFs).
2300 * The SLI Host uses the command to inactivate an FCFI.
2311 * lpfc_resume_rpi - Initialize the RESUME_RPI mailbox command
2312 * @mbox: pointer to lpfc mbox command to initialize.
2315 * The RESUME_RPI mailbox command is used to restart I/O to an RPI after a
2335 * mailbox command.
2336 * @mbox: pointer to lpfc mbox command to initialize.
2338 * The PORT_CAPABILITIES supported pages mailbox command is issued to
2354 * @mbox: pointer to lpfc mbox command to initialize.
2356 * The PORT_CAPABILITIES SLI4 parameters mailbox command is issued to
H A Dlpfc_bsg.h40 uint32_t command; member in struct:set_ct_event
47 uint32_t command; member in struct:get_ct_event
58 uint32_t command; member in struct:send_mgmt_resp
67 uint32_t command; member in struct:diag_mode_set
73 uint32_t command; member in struct:sli4_link_diag
82 uint32_t command; member in struct:diag_mode_test
95 uint32_t command; member in struct:get_mgmt_rev
111 #define BSG_MBOX_SIZE 4096 /* mailbox command plus extended data */
115 uint32_t command; member in struct:dfc_mbox_req
123 /* Used for menlo command or menlo data. The xri is only used for menlo data */
134 * macros and data structures for handling sli-config mailbox command
/linux-4.1.27/drivers/net/wireless/mwifiex/
H A Dcmdevt.c30 * This function initializes a command node.
54 * This function returns a command node from the free queue depending upon
78 * This function cleans up a command node.
107 * This function sends a host command to the firmware.
109 * The function copies the host command into the driver command
117 /* Copy the HOST command to command buffer */ mwifiex_cmd_host_cmd()
124 * This function downloads a command to the firmware.
126 * The function performs sanity tests, sets the command sequence
128 * sending. Afterwards, it logs the command ID and action for debugging
129 * and sets up the command timeout timer.
158 cmd_code = le16_to_cpu(host_cmd->command); mwifiex_dnld_cmd_to_fw()
174 /* Set command sequence number */ mwifiex_dnld_cmd_to_fw()
239 /* Save the last command id and action to debug log */ mwifiex_dnld_cmd_to_fw()
249 /* Setup the timer after transmit command */ mwifiex_dnld_cmd_to_fw()
257 * This function downloads a sleep confirm command to the firmware.
259 * The function performs sanity tests, sets the command sequence
263 * No responses are needed for sleep confirm command.
285 le16_to_cpu(sleep_cfm_buf->command), mwifiex_dnld_sleep_confirm_cmd()
320 /* Response is not needed for sleep confirm command */ mwifiex_dnld_sleep_confirm_cmd()
337 * This function allocates the command buffers and links them to
338 * the command free queue.
340 * The driver uses a pre allocated number of command buffers, which
342 * Every command needs to obtain a command buffer from this pool before
343 * it can be issued. The command free queue lists the command buffers
344 * currently free to use, while the command pending queue lists the
345 * command buffers already in use and awaiting handling. Command buffers
361 /* Allocate and initialize command buffers */ mwifiex_alloc_cmd_buffer()
377 * This function frees the command buffers.
379 * The function calls the completion callback for all the command
477 * This function prepares a command and send it to the firmware.
482 * - Getting a new command node from the command free queue
483 * - Initializing the command node for default parameters
485 * - Add the command to pending queue
527 /* Get a new command node */ mwifiex_send_cmd()
535 /* Initialize the command node */ mwifiex_send_cmd()
547 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_send_cmd()
550 /* Prepare command */ mwifiex_send_cmd()
572 /* Return error, since the command preparation failed */ mwifiex_send_cmd()
580 /* Send command */ mwifiex_send_cmd()
595 * This function returns a command to the command free queue.
598 * cleaning the command node and re-inserting it into the free queue.
620 /* This function reuses a command node. */ mwifiex_recycle_cmd_node()
630 le16_to_cpu(host_cmd->command), mwifiex_recycle_cmd_node()
635 * This function queues a command to the command pending queue.
637 * This in effect adds the command to the command list to be executed.
638 * Exit PS command is handled specially, by placing it always to the
639 * front of the command queue.
646 u16 command; mwifiex_insert_cmd_to_pending_q() local
655 command = le16_to_cpu(host_cmd->command); mwifiex_insert_cmd_to_pending_q()
657 /* Exit_PS command needs to be queued in the header always. */ mwifiex_insert_cmd_to_pending_q()
658 if (command == HostCmd_CMD_802_11_PS_MODE_ENH) { mwifiex_insert_cmd_to_pending_q()
677 command, atomic_read(&adapter->cmd_pending)); mwifiex_insert_cmd_to_pending_q()
681 * This function executes the next command in command pending queue.
683 * This function will fail if a command is already in processing stage,
684 * otherwise it will dequeue the first command from the command pending
688 * host sleep configuration command will de-activate the host sleep. For PS
707 /* Check if any command is pending */ mwifiex_exec_next_cmd()
738 /* Any command sent to the firmware when host is in sleep mwifiex_exec_next_cmd()
740 * host sleep configuration command itself though mwifiex_exec_next_cmd()
742 if (priv && (host_cmd->command != mwifiex_exec_next_cmd()
754 * This function handles the command response.
756 * After processing, the function cleans the command node and puts
757 * it back to the command free queue.
770 /* Now we got response from FW, cancel the command timer */ mwifiex_process_cmdresp()
776 le16_to_cpu(resp->command)); mwifiex_process_cmdresp()
785 le16_to_cpu(resp->command)); mwifiex_process_cmdresp()
805 orig_cmdresp_no = le16_to_cpu(resp->command); mwifiex_process_cmdresp()
814 resp->command = cpu_to_le16(orig_cmdresp_no & HostCmd_CMD_ID_MASK); mwifiex_process_cmdresp()
816 cmdresp_no = le16_to_cpu(resp->command); mwifiex_process_cmdresp()
819 /* Save the last command response to debug log */ mwifiex_process_cmdresp()
852 /* Check init command response */ mwifiex_process_cmdresp()
878 * This function handles the timeout of command sending.
880 * It will re-send the same command again.
961 * The current command, all commands in command pending queue and all scan
980 /* Cancel all pending command */ mwifiex_cancel_all_pending_cmd()
998 /* Cancel all pending scan command */ mwifiex_cancel_all_pending_cmd()
1030 * Both the current command buffer and the pending command queue are
1032 * the matched command is called with failure status to ensure cleanup.
1057 /* Cancel all pending scan command */ mwifiex_cancel_pending_ioctl()
1088 * This function sends the sleep confirm command to firmware, if
1091 * The sleep confirm command cannot be issued if command response,
1093 * are in the middle of sending a command, or expecting a command
1137 * This function handles the command response of a Host Sleep configuration
1138 * command.
1199 * This function handles the command response of a sleep confirm command.
1211 uint16_t command = le16_to_cpu(cmd->command); mwifiex_process_sleep_confirm_resp() local
1221 command, result, le16_to_cpu(cmd->size), seq_num); mwifiex_process_sleep_confirm_resp()
1232 command &= HostCmd_CMD_ID_MASK; mwifiex_process_sleep_confirm_resp()
1234 if (command != HostCmd_CMD_802_11_PS_MODE_ENH) { mwifiex_process_sleep_confirm_resp()
1237 __func__, command, result); mwifiex_process_sleep_confirm_resp()
1254 cmd->command = cpu_to_le16(command); mwifiex_process_sleep_confirm_resp()
1260 * This function prepares an enhanced power mode command.
1266 * - Setting command ID, action and proper size
1281 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_PS_MODE_ENH); mwifiex_cmd_enh_power_mode()
1348 * This function handles the command response of an enhanced power mode
1349 * command.
1413 * This function prepares command to get hardware specifications.
1416 * - Setting command ID, action and proper size
1425 cmd->command = cpu_to_le16(HostCmd_CMD_GET_HW_SPEC); mwifiex_cmd_get_hw_spec()
1434 * This function handles the command response of get hardware
H A Dsta_cmd.c2 * Marvell Wireless LAN device driver: station command handling
34 * This function prepares command to set/get RSSI information.
37 * - Setting command ID, action and proper size
46 cmd->command = cpu_to_le16(HostCmd_CMD_RSSI_INFO); mwifiex_cmd_802_11_rssi_info()
67 * This function prepares command to set MAC control.
70 * - Setting command ID, action and proper size
85 cmd->command = cpu_to_le16(HostCmd_CMD_MAC_CONTROL); mwifiex_cmd_mac_control()
94 * This function prepares command to set/get SNMP MIB.
97 * - Setting command ID, action and proper size
116 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SNMP_MIB); mwifiex_cmd_802_11_snmp_mib()
141 * This function prepares command to get log.
144 * - Setting command ID and proper size
150 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_GET_LOG); mwifiex_cmd_802_11_get_log()
157 * This function prepares command to set/get Tx data rate configuration.
160 * - Setting command ID, action and proper size
174 cmd->command = cpu_to_le16(HostCmd_CMD_TX_RATE_CFG); mwifiex_cmd_tx_rate_cfg()
233 * This function prepares command to set/get Tx power configuration.
236 * - Setting command ID, action and proper size
248 cmd->command = cpu_to_le16(HostCmd_CMD_TXPWR_CFG); mwifiex_cmd_tx_power_cfg()
282 * This function prepares command to get RF Tx power.
292 cmd->command = cpu_to_le16(HostCmd_CMD_RF_TX_PWR); mwifiex_cmd_rf_tx_power()
299 * This function prepares command to set rf antenna.
309 cmd->command = cpu_to_le16(HostCmd_CMD_RF_ANTENNA); mwifiex_cmd_rf_antenna()
332 * This function prepares command to set Host Sleep configuration.
335 * - Setting command ID and proper size
351 /* New Activate command */ mwifiex_cmd_802_11_hs_cfg()
353 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_HS_CFG_ENH); mwifiex_cmd_802_11_hs_cfg()
392 * This function prepares command to set/get MAC address.
395 * - Setting command ID, action and proper size
403 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_MAC_ADDRESS); mwifiex_cmd_802_11_mac_address()
417 * This function prepares command to set MAC multicast address.
420 * - Setting command ID, action and proper size
433 cmd->command = cpu_to_le16(HostCmd_CMD_MAC_MULTICAST_ADR); mwifiex_cmd_mac_multicast_adr()
445 * This function prepares command to deauthenticate.
448 * - Setting command ID and proper size
458 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_DEAUTHENTICATE); mwifiex_cmd_802_11_deauthenticate()
473 * This function prepares command to stop Ad-Hoc network.
476 * - Setting command ID and proper size
481 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_AD_HOC_STOP); mwifiex_cmd_802_11_ad_hoc_stop()
553 /* This function populates key material v2 command
598 /* This function prepares command to set/get/reset network key(s).
599 * This function prepares key material command for V2 format.
601 * - Setting command ID, action and proper size
618 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_KEY_MATERIAL); mwifiex_cmd_802_11_key_material_v2()
773 * This function prepares command to set/get/reset network key(s).
774 * This function prepares key material command for V1 format.
777 * - Setting command ID, action and proper size
794 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_KEY_MATERIAL); mwifiex_cmd_802_11_key_material_v1()
984 * This function prepares command to set/get 11d domain information.
987 * - Setting command ID, action and proper size
1004 cmd->command = cpu_to_le16(HostCmd_CMD_802_11D_DOMAIN_INFO); mwifiex_cmd_802_11d_domain_info()
1038 * This function prepares command to set/get IBSS coalescing status.
1041 * - Setting command ID, action and proper size
1051 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_IBSS_COALESCING_STATUS); mwifiex_cmd_ibss_coalescing_status()
1075 * This function prepares command to set/get register value.
1078 * - Setting command ID, action and proper size
1096 switch (le16_to_cpu(cmd->command)) { mwifiex_cmd_reg_access()
1177 * This function prepares command to set PCI-Express
1181 * - Setting command ID, action and proper size
1193 cmd->command = cpu_to_le16(HostCmd_CMD_PCIE_DESC_DETAILS); mwifiex_cmd_pcie_host_spec()
1226 * This function prepares command for event subscription, configuration
1241 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SUBSCRIBE_EVENT); mwifiex_cmd_802_11_subsc_evt()
1377 cmd->command = cpu_to_le16(HostCmd_CMD_MEF_CFG); mwifiex_cmd_mef_cfg()
1450 /* This function prepares command of set_cfg_data. */ mwifiex_cmd_cfg_data()
1476 cmd->command = cpu_to_le16(HostCmd_CMD_CFG_DATA); mwifiex_cmd_cfg_data()
1494 cmd->command = cpu_to_le16(HostCmd_CMD_COALESCE_CFG); mwifiex_cmd_coalesce_cfg()
1533 /* Add the rule length to the command size*/ mwifiex_cmd_coalesce_cfg()
1540 /* Add sizeof action, num_of_rules to total command length */ mwifiex_cmd_coalesce_cfg()
1565 cmd->command = cpu_to_le16(HostCmd_CMD_TDLS_OPER); mwifiex_cmd_tdls_oper()
1675 /* This function prepares command of sdio rx aggr info. */ mwifiex_cmd_sdio_rx_aggr_cfg()
1682 cmd->command = cpu_to_le16(HostCmd_CMD_SDIO_SP_RX_AGGR_CFG); mwifiex_cmd_sdio_rx_aggr_cfg()
1696 * This is a generic function which calls specific command preparation
1697 * routines based upon the command number.
1706 /* Prepare command */ mwifiex_sta_prepare_cmd()
1785 cmd_ptr->command = mwifiex_sta_prepare_cmd()
1794 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1805 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1814 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1825 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1835 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1840 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1875 cmd_ptr->command = cpu_to_le16(HostCmd_CMD_WMM_GET_STATUS); mwifiex_sta_prepare_cmd()
1897 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1962 * - Set MAC control (this must be the last command to initialize firmware)
2083 /* MAC Control must be the last command in init_fw */ mwifiex_sta_init_cmd()
2123 /* set last_init_cmd before sending the command */ mwifiex_sta_init_cmd()
H A Dsta_cmdresp.c2 * Marvell Wireless LAN device driver: station command response handling
31 * This function handles the command response error case.
37 * For Power Save command failure, we do not retry enter PS
38 * command in case of Ad-hoc mode.
40 * For all other response errors, the current command buffer is freed
41 * and returned to the free command queue.
53 resp->command, resp->result); mwifiex_process_cmdresp_error()
58 switch (le16_to_cpu(resp->command)) { mwifiex_process_cmdresp_error()
64 /* We do not re-try enter-ps command in ad-hoc mode. */ mwifiex_process_cmdresp_error()
73 /* Cancel all pending scan command */ mwifiex_process_cmdresp_error()
109 * This function handles the command response of get RSSI info.
170 * This function handles the command response of set/get SNMP
222 * This function handles the command response of get log request
263 * This function handles the command response of set/get Tx rate
340 * This function handles the command response of get Tx power level.
384 * This function handles the command response of set/get Tx power
442 * This function handles the command response of get RF Tx power.
466 * This function handles the command response of set rf antenna
493 * This function handles the command response of set/get MAC address.
512 * This function handles the command response of set/get MAC multicast
522 * This function handles the command response of get Tx rate query.
544 * This function handles the command response of a deauthenticate
545 * command.
565 * This function handles the command response of ad-hoc stop.
577 * This function handles the command response of set/get v1 key material.
606 * This function handles the command response of set/get v2 key material.
640 /* Wrapper function for processing response of key material command */ mwifiex_ret_802_11_key_material()
651 * This function handles the command response of get 11d domain information.
692 * This function handles the command response of get extended version.
713 * This function handles the command response of remain on channel.
729 * This function handles the command response of P2P mode cfg.
745 * This function handles the command response of register access.
818 * This function handles the command response of get IBSS coalescing status.
915 "Unknown TDLS command action response %d", action); mwifiex_ret_tdls_oper()
922 * This function handles the command response for subscribe event command.
930 /* For every subscribe event command (Get/Set/Clear), FW reports the mwifiex_ret_subsc_evt()
938 /* This function handles the command response of set_cfg_data */ mwifiex_ret_cfg_data()
950 /** This Function handles the command response of sdio rx aggr */ mwifiex_ret_sdio_rx_aggr_cfg()
965 * This function handles the command responses.
967 * This is a generic function, which calls command specific
968 * response handlers based on the command ID.
977 /* If the command is not successful, cleanup and return failure */ mwifiex_process_sta_cmdresp()
1150 resp->command); mwifiex_process_sta_cmdresp()
/linux-4.1.27/drivers/cpufreq/
H A Dspeedstep-smi.c27 /* speedstep system management interface port/command.
64 u32 command, result, magic, dummy; speedstep_smi_ownership() local
68 command = (smi_sig & 0xffffff00) | (smi_cmd & 0xff); speedstep_smi_ownership()
71 pr_debug("trying to obtain ownership with command %x at port %x\n", speedstep_smi_ownership()
72 command, smi_port); speedstep_smi_ownership()
81 : "a" (command), "b" (function), "c" (0), "d" (smi_port), speedstep_smi_ownership()
102 u32 command, result = 0, edi, high_mhz, low_mhz, dummy; speedstep_smi_get_freqs() local
111 command = (smi_sig & 0xffffff00) | (smi_cmd & 0xff); speedstep_smi_get_freqs()
113 pr_debug("trying to determine frequencies with command %x at port %x\n", speedstep_smi_get_freqs()
114 command, smi_port); speedstep_smi_get_freqs()
124 : "a" (command), speedstep_smi_get_freqs()
150 unsigned int result = 0, command, new_state, dummy; speedstep_set_state() local
162 command = (smi_sig & 0xffffff00) | (smi_cmd & 0xff); speedstep_set_state()
165 "with command %x at port %x\n", speedstep_set_state()
166 state, command, smi_port); speedstep_set_state()
192 : "a" (command), "b" (function), "c" (state), speedstep_set_state()
339 pr_debug("signature:0x%.8x, command:0x%.8x, " speedstep_init()
341 ist_info.signature, ist_info.command, speedstep_init()
359 smi_port = ist_info.command & 0xff; speedstep_init()
364 smi_cmd = (ist_info.command >> 16) & 0xff; speedstep_init()
386 MODULE_PARM_DESC(smi_cmd, "Override the BIOS-given IST command with this value "
/linux-4.1.27/tools/usb/usbip/src/
H A Dutils.c30 char command[SYSFS_BUS_ID_SIZE + 4]; modify_match_busid() local
40 snprintf(command, SYSFS_BUS_ID_SIZE + 4, "add %s", busid); modify_match_busid()
42 snprintf(command, SYSFS_BUS_ID_SIZE + 4, "del %s", busid); modify_match_busid()
44 rc = write_sysfs_attribute(match_busid_attr_path, command, modify_match_busid()
45 sizeof(command)); modify_match_busid()
H A Dusbip.c2 * command structure borrowed from udev
39 " [help] <command> <args>\n";
46 struct command { struct
53 static const struct command cmds[] = {
107 const struct command *cmd; usbip_help()
139 static int run_command(const struct command *cmd, int argc, char *argv[]) run_command()
141 dbg("running command: `%s'", cmd->name); run_command()
197 /* invalid command */ main()
/linux-4.1.27/include/linux/
H A Dlibps2.h24 #define PS2_FLAG_CMD 2 /* Waiting for command to finish */
25 #define PS2_FLAG_CMD1 4 /* Waiting for the first byte of command response */
32 /* Ensures that only one command is executing at a time */
49 int __ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command);
50 int ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command);
H A Dsony-laptop.h30 int sony_pic_camera_command(int command, u8 value);
H A Dmaple.h9 /* Maple Bus command and response codes */
53 enum maple_code command; member in struct:mapleq
96 u32 command, u32 length, void *data);
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_cmdbuf_res.c59 * @resources: Hash table containing staged and commited command buffer
61 * @list: List of commited command buffer resources.
74 * vmw_cmdbuf_res_lookup - Look up a command buffer resource
76 * @man: Pointer to the command buffer resource manager
102 * vmw_cmdbuf_res_free - Free a command buffer resource.
104 * @man: Pointer to the command buffer resource manager
120 * vmw_cmdbuf_res_commit - Commit a list of command buffer resource actions
122 * @list: Caller's list of command buffer resource actions.
124 * This function commits a list of command buffer resource
152 * vmw_cmdbuf_res_revert - Revert a list of command buffer resource actions
154 * @man: Pointer to the command buffer resource manager
155 * @list: Caller's list of command buffer resource action
157 * This function reverts a list of command buffer resource
160 * actions failed for some reason, and the command stream was never
188 * vmw_cmdbuf_res_add - Stage a command buffer managed resource for addition.
190 * @man: Pointer to the command buffer resource manager.
228 * vmw_cmdbuf_res_remove - Stage a command buffer managed resource for removal.
230 * @man: Pointer to the command buffer resource manager.
275 * vmw_cmdbuf_res_man_create - Allocate a command buffer managed resource
280 * Allocates and initializes a command buffer managed resource manager. Returns
304 * vmw_cmdbuf_res_man_destroy - Destroy a command buffer managed resource
309 * This function destroys a command buffer managed resource manager and
310 * unreferences / frees all command buffer managed resources and -entries
325 * vmw_cmdbuf_res_man_size - Return the size of a command buffer managed
328 * Returns the approximate allocation size of a command buffer managed
H A Dsvga_escape.h37 * Namespace IDs for the escape command
48 * minor command number, respectively.
50 * Major command number allocation:
82 uint32 command; member in struct:__anon4553
H A Dvmwgfx_execbuf.c40 * @offset: Offset of 4 byte entries into the command buffer where the
58 * the command batch. Otherwise NULL.
61 * the command stream.
63 * reservation. The command stream will provide one.
77 * struct vmw_cmd_entry - Describe a command for the verifier
97 * command submission.
100 * @backoff: Whether command submission failed.
187 * @sw_context: Pointer to a software context used for this command submission
225 * @offset: Offset into the command buffer currently being parsed where the
265 * @cb: Pointer to the start of the command buffer bein patch. This need
301 * @sw_context: The software context used for this command submission batch.
307 * Returns -EINVAL if the limit of number of buffer objects per command
366 * Note that since vmware's command submission currently is protected by
495 * @id_loc: Pointer to the location in the command buffer currently being
604 * vmw_cmd_cid_check - Check a command header for valid context information.
608 * @header: A command header with an embedded user-space context handle.
746 * @sw_context: The software context used for this command submission.
752 * command batch.
798 * @sw_context: The software context used for this command submission batch.
866 * @sw_context: The software context used for this command batch validation.
928 * @sw_context: The software context used for this command batch validation.
986 * vmw_cmd_begin_gb_query - validate a SVGA_3D_CMD_BEGIN_GB_QUERY command.
989 * @sw_context: The software context used for this command submission.
990 * @header: Pointer to the command header in the command stream.
1010 * vmw_cmd_begin_query - validate a SVGA_3D_CMD_BEGIN_QUERY command.
1013 * @sw_context: The software context used for this command submission.
1014 * @header: Pointer to the command header in the command stream.
1051 * vmw_cmd_end_gb_query - validate a SVGA_3D_CMD_END_GB_QUERY command.
1054 * @sw_context: The software context used for this command submission.
1055 * @header: Pointer to the command header in the command stream.
1086 * vmw_cmd_end_query - validate a SVGA_3D_CMD_END_QUERY command.
1089 * @sw_context: The software context used for this command submission.
1090 * @header: Pointer to the command header in the command stream.
1140 * vmw_cmd_wait_gb_query - validate a SVGA_3D_CMD_WAIT_GB_QUERY command.
1143 * @sw_context: The software context used for this command submission.
1144 * @header: Pointer to the command header in the command stream.
1173 * vmw_cmd_wait_query - validate a SVGA_3D_CMD_WAIT_QUERY command.
1176 * @sw_context: The software context used for this command submission.
1177 * @header: Pointer to the command header in the command stream.
1419 * @res_id: Pointer to the user-space resource handle in the command stream.
1420 * @buf_id: Pointer to the user-space backup buffer handle in the command
1461 * command
1465 * @header: Pointer to the command header in the command stream.
1486 * command
1490 * @header: Pointer to the command header in the command stream.
1510 * command
1514 * @header: Pointer to the command header in the command stream.
1534 * command
1538 * @header: Pointer to the command header in the command stream.
1558 * command
1562 * @header: Pointer to the command header in the command stream.
1582 * command
1586 * @header: Pointer to the command header in the command stream.
1606 * SVGA_3D_CMD_INVALIDATE_GB_SURFACE command
1610 * @header: Pointer to the command header in the command stream.
1631 * command
1635 * @header: Pointer to the command header in the command stream.
1679 * command
1683 * @header: Pointer to the command header in the command stream.
1724 * command
1728 * @header: Pointer to the command header in the command stream.
1790 * command
1794 * @header: Pointer to the command header in the command stream.
1823 * command
1827 * @header: Pointer to the command header in the command stream.
1869 DRM_ERROR("Unsupported SVGA command: %u.\n", cmd_id); vmw_cmd_check_not_3d()
1874 DRM_ERROR("Invalid SVGA command (size mismatch):" vmw_cmd_check_not_3d()
1880 DRM_ERROR("Kernel only SVGA command: %u.\n", cmd_id); vmw_cmd_check_not_3d()
2105 DRM_ERROR("Invalid SVGA3D command: %d\n", vmw_cmd_check()
2109 DRM_ERROR("Privileged SVGA3D command: %d\n", vmw_cmd_check()
2113 DRM_ERROR("Deprecated (disallowed) SVGA3D command: %d\n", vmw_cmd_check()
2117 DRM_ERROR("SVGA3D command: %d not supported by virtual hardware.\n", vmw_cmd_check()
2194 * Drop references to resources held during command submission. vmw_resource_list_unreference()
2212 * Drop references to DMA buffers held during command submission. vmw_clear_validations()
2303 DRM_ERROR("Failed to allocate command bounce buffer.\n"); vmw_resize_cmd_bounce()
2312 * vmw_execbuf_fence_commands - create and submit a command stream fence
2314 * Creates a fence object and submits a command stream marker.
2650 * finished before the next fifo command. (For example on hardware
2738 * finished before the next fifo command. (For example on hardware
/linux-4.1.27/drivers/hid/
H A Dhid-roccat-arvo.h18 uint8_t command; /* ARVO_COMMAND_MODE_KEY */ member in struct:arvo_mode_key
31 uint8_t command; /* ARVO_COMMAND_KEY_MASK */ member in struct:arvo_key_mask
37 uint8_t command; /* ARVO_COMMAND_ACTUAL_PROFILE */ member in struct:arvo_actual_profile
H A Dhid-roccat-common.c111 uint command, void const *buf, uint size) roccat_common2_send_with_status()
115 retval = roccat_common2_send(usb_dev, command, buf, size); roccat_common2_send_with_status()
135 size_t real_size, uint command) roccat_common2_sysfs_read()
150 retval = roccat_common2_receive(usb_dev, command, buf, real_size); roccat_common2_sysfs_read()
159 size_t real_size, uint command) roccat_common2_sysfs_write()
171 retval = roccat_common2_send_with_status(usb_dev, command, buf, real_size); roccat_common2_sysfs_write()
110 roccat_common2_send_with_status(struct usb_device *usb_dev, uint command, void const *buf, uint size) roccat_common2_send_with_status() argument
133 roccat_common2_sysfs_read(struct file *fp, struct kobject *kobj, char *buf, loff_t off, size_t count, size_t real_size, uint command) roccat_common2_sysfs_read() argument
157 roccat_common2_sysfs_write(struct file *fp, struct kobject *kobj, void const *buf, loff_t off, size_t count, size_t real_size, uint command) roccat_common2_sysfs_write() argument
H A Dhid-roccat-common.h23 uint8_t command; member in struct:roccat_common2_control
33 uint command, void const *buf, uint size);
45 size_t real_size, uint command);
48 size_t real_size, uint command);
H A Dhid-roccat-kovaplus.h32 uint8_t command; /* KOVAPLUS_COMMAND_ACTUAL_PROFILE */ member in struct:kovaplus_actual_profile
38 uint8_t command; /* KOVAPLUS_COMMAND_PROFILE_SETTINGS */ member in struct:kovaplus_profile_settings
50 uint8_t command; /* KOVAPLUS_COMMAND_PROFILE_BUTTONS */ member in struct:kovaplus_profile_buttons
57 uint8_t command; /* KOVAPLUS_COMMAND_INFO */ member in struct:kovaplus_info
H A Dhid-roccat-pyra.h31 uint8_t command; /* PYRA_COMMAND_SETTINGS */ member in struct:pyra_settings
37 uint8_t command; /* PYRA_COMMAND_PROFILE_SETTINGS */ member in struct:pyra_profile_settings
52 uint8_t command; /* PYRA_COMMAND_INFO */ member in struct:pyra_info
/linux-4.1.27/include/uapi/linux/
H A Dreboot.h18 * RESTART Restart system using default command and mode.
20 * CAD_ON Ctrl-Alt-Del sequence causes RESTART command.
23 * RESTART2 Restart system using given command string.
H A Dpg.h6 command driver for parallel port ATAPI devices (pg). The
14 A write operation delivers a command and any outbound data in
17 command pending. If the write succeeds, it should be followed
28 current ATAPI devices, command packets are assumed to be exactly
49 char packet[12]; /* packet command */
58 int duration; /* time in seconds command took */
H A Disdn_divertif.h20 #define DIVERT_CMD_REG 0x00 /* register command */
21 #define DIVERT_CMD_REL 0x01 /* release command */
H A Dreiserfs_fs.h17 /* ioctl's command */
H A Dtarget_core_user.h17 * 2) The command ring
18 * 3) Everything beyond the command ring (data)
20 * The mailbox tells userspace the offset of the command ring from the
21 * start of the shared memory region, and how big the command ring is.
35 * When userspace is completed handling the command, set
/linux-4.1.27/arch/m68k/68000/
H A Dm68EZ328.c56 void __init config_BSP(char *command, int len) config_BSP() argument
69 if (p) strcpy(p,command); config_BSP()
70 else command[0] = 0; config_BSP()
H A Dm68VZ328.c63 static void __init init_hardware(char *command, int size) init_hardware() argument
149 static void __init init_hardware(char *command, int size) init_hardware() argument
159 strcpy(p, command); init_hardware()
161 command[0] = 0; init_hardware()
171 static void __init init_hardware(char *command, int size) init_hardware() argument
179 void __init config_BSP(char *command, int size) config_BSP() argument
183 init_hardware(command, size); config_BSP()
/linux-4.1.27/drivers/misc/eeprom/
H A Deeprom_93cx6.c184 u16 command; eeprom_93cx6_read() local
194 command = (PCI_EEPROM_READ_OPCODE << eeprom->width) | word; eeprom_93cx6_read()
195 eeprom_93cx6_write_bits(eeprom, command, eeprom_93cx6_read()
249 u16 command; eeprom_93cx6_readb() local
260 command = (PCI_EEPROM_READ_OPCODE << (eeprom->width + 1)) | byte; eeprom_93cx6_readb()
261 eeprom_93cx6_write_bits(eeprom, command, eeprom_93cx6_readb()
307 u16 command; eeprom_93cx6_wren() local
309 /* start the command */ eeprom_93cx6_wren()
312 /* create command to enable/disable */ eeprom_93cx6_wren()
314 command = enable ? PCI_EEPROM_EWEN_OPCODE : PCI_EEPROM_EWDS_OPCODE; eeprom_93cx6_wren()
315 command <<= (eeprom->width - 2); eeprom_93cx6_wren()
317 eeprom_93cx6_write_bits(eeprom, command, eeprom_93cx6_wren()
340 u16 command; eeprom_93cx6_write() local
342 /* start the command */ eeprom_93cx6_write()
345 command = PCI_EEPROM_WRITE_OPCODE << eeprom->width; eeprom_93cx6_write()
346 command |= addr; eeprom_93cx6_write()
348 /* send write command */ eeprom_93cx6_write()
349 eeprom_93cx6_write_bits(eeprom, command, eeprom_93cx6_write()
/linux-4.1.27/drivers/firmware/
H A Dqcom_scm.c63 * struct qcom_scm_command - one SCM command buffer
64 * @len: total available memory for command and response
65 * @buf_offset: start of command buffer
67 * @id: command to be executed
70 * An SCM command is laid out in memory as follows:
73 * | command header |
75 * | command buffer |
98 * @is_complete: indicates if the command has finished processing
107 * alloc_qcom_scm_command() - Allocate an SCM command
108 * @cmd_size: size of the command buffer
111 * Allocate an SCM command, including enough room for the command
112 * and response headers as well as the command and response buffers.
134 * free_qcom_scm_command() - Free an SCM command
135 * @cmd: command to free
137 * Free an SCM command.
146 * @cmd: command
148 * Returns a pointer to a response for a command.
157 * qcom_scm_get_command_buffer() - Get a pointer to a command buffer
158 * @cmd: command
160 * Returns a pointer to the command buffer of a command.
225 * Flush the command buffer so that the secure world sees __qcom_scm_call()
258 * qcom_scm_call() - Send an SCM command
260 * @cmd_id: command identifier
261 * @cmd_buf: command buffer
262 * @cmd_len: length of the command buffer
266 * Sends a command to the SCM and waits for the command to finish processing.
271 * immediately after qcom_scm_call returns. Cache maintenance on the command
322 * qcom_scm_call_atomic1() - Send an atomic SCM command with one argument
324 * @cmd_id: command identifier
/linux-4.1.27/drivers/input/touchscreen/
H A Dad7879-spi.c36 u16 *command; ad7879_spi_xfer() local
47 command = spi_data; ad7879_spi_xfer()
48 command[0] = cmd; ad7879_spi_xfer()
51 command[1] = *tx_buf; ad7879_spi_xfer()
52 tx_buf = &command[1]; ad7879_spi_xfer()
54 rx_buf = &command[2]; ad7879_spi_xfer()
58 xfers[0].tx_buf = command; ad7879_spi_xfer()
75 _rx_buf[0] = command[2]; ad7879_spi_xfer()
/linux-4.1.27/drivers/acpi/
H A Dsbshc.h28 u8 command, u8 * data);
30 u8 command, u8 * data, u8 length);
/linux-4.1.27/arch/s390/include/asm/
H A Dclp.h21 #define CLP_RC_FMT 0x0040 /* Invalid command request format */
22 #define CLP_RC_LEN 0x0050 /* Invalid command request length */
H A Dscsw.h16 * struct cmd_scsw - command-mode subchannel status word
134 * @cmd: command-mode SCSW
230 * whether it is a transport mode or command mode scsw.
245 * whether it is a transport mode or command mode scsw.
260 * whether it is a transport mode or command mode scsw.
275 * whether it is a transport mode or command mode scsw.
290 * whether it is a transport mode or command mode scsw.
305 * whether it is a transport mode or command mode scsw.
320 * whether it is a transport mode or command mode scsw.
335 * whether it is a transport mode or command mode scsw.
350 * whether it is a transport mode or command mode scsw.
365 * whether it is a transport mode or command mode scsw.
379 * Return non-zero if the key field of the specified command mode scsw is
391 * Return non-zero if the fctl field of the specified command mode scsw is
403 * Return non-zero if the eswf field of the specified command mode scsw is
415 * Return non-zero if the cc field of the specified command mode scsw is
428 * Return non-zero if the fmt field of the specified command mode scsw is
440 * Return non-zero if the pfch field of the specified command mode scsw is
452 * Return non-zero if the isic field of the specified command mode scsw is
464 * Return non-zero if the alcc field of the specified command mode scsw is
476 * Return non-zero if the ssi field of the specified command mode scsw is
488 * Return non-zero if the zcc field of the specified command mode scsw is
501 * Return non-zero if the ectl field of the specified command mode scsw is
515 * Return non-zero if the pno field of the specified command mode scsw is
531 * Return non-zero if the fctl field of the specified command mode scsw is
544 * Return non-zero if the actl field of the specified command mode scsw is
557 * Return non-zero if the stctl field of the specified command mode scsw is
570 * Return non-zero if the dstat field of the specified command mode scsw is
583 * Return non-zero if the cstat field of the specified command mode scsw is
792 * regardless of whether it is a transport mode or command mode scsw.
808 * regardless of whether it is a transport mode or command mode scsw.
824 * regardless of whether it is a transport mode or command mode scsw.
840 * regardless of whether it is a transport mode or command mode scsw.
856 * regardless of whether it is a transport mode or command mode scsw.
872 * regardless of whether it is a transport mode or command mode scsw.
888 * regardless of whether it is a transport mode or command mode scsw.
904 * regardless of whether it is a transport mode or command mode scsw.
920 * regardless of whether it is a transport mode or command mode scsw.
936 * regardless of whether it is a transport mode or command mode scsw.
951 * Return non-zero if the command mode scsw indicates that the associated
977 * Return non-zero if the transport or command mode scsw indicates that the
/linux-4.1.27/drivers/media/rc/
H A Dir-rc5-decoder.c129 u8 xdata, command, system; ir_rc5_decode() local
135 command = (data->bits & 0x00FC0) >> 6; ir_rc5_decode()
138 command += (data->bits & 0x01000) ? 0 : 0x40; ir_rc5_decode()
139 scancode = system << 16 | command << 8 | xdata; ir_rc5_decode()
144 u8 command, system; ir_rc5_decode() local
149 command = (data->bits & 0x0003F) >> 0; ir_rc5_decode()
152 command += (data->bits & 0x01000) ? 0 : 0x40; ir_rc5_decode()
153 scancode = system << 8 | command; ir_rc5_decode()
158 u8 command, system; ir_rc5_decode() local
163 command = (data->bits & 0x0003F) >> 0; ir_rc5_decode()
166 scancode = system << 6 | command; ir_rc5_decode()
/linux-4.1.27/arch/mn10300/proc-mn2ws0050/include/proc/
H A Dnand-regs.h19 /* command register */
49 #define FCOMMAND_FCMD_READ0 0x00 /* read1 command */
50 #define FCOMMAND_FCMD_SEQIN 0x80 /* page program 1st command */
51 #define FCOMMAND_FCMD_PAGEPROG 0x10 /* page program 2nd command */
52 #define FCOMMAND_FCMD_RESET 0xff /* reset command */
53 #define FCOMMAND_FCMD_ERASE1 0x60 /* erase 1st command */
54 #define FCOMMAND_FCMD_ERASE2 0xd0 /* erase 2nd command */
55 #define FCOMMAND_FCMD_STATUS 0x70 /* read status command */
56 #define FCOMMAND_FCMD_READID 0x90 /* read id command */
57 #define FCOMMAND_FCMD_READOOB 0x50 /* read3 command */
112 /* command register 2 */
/linux-4.1.27/arch/mips/include/asm/octeon/
H A Dcvmx-cmd-queue.h30 * Support functions for managing command queues used for
33 * The common command queue infrastructure abstracts out the
38 * they all use basic linked command buffers to store the
84 * don't use it and it slows down the command queue processing
92 * Enumeration representing all hardware blocks that use command
94 * multiple command queues. Not all chips support all hardware
115 * Command write operations can fail if the command queue needs
117 * fail if the number of queued command words reaches the maximum
132 /* Maximum outstanding command words */
136 /* Top of command buffer pointer shifted 7 */
146 * This structure contains the global state of all command queues.
159 * Initialize a command queue for use. The initial FPA buffer is
161 * new command queue.
163 * @queue_id: Hardware command queue to initialize.
165 * @fpa_pool: FPA pool the command queues should come from.
175 * Shutdown a queue a free it's command buffers to the FPA. The
186 * Return the number of command words pending in the queue. This
189 * @queue_id: Hardware command queue to query
196 * Return the command buffer to be written to. The purpose of this
312 * Write an arbitrary number of command words to a command queue.
313 * This is a generic function; the fixed number of command word
316 * @queue_id: Hardware command queue to write to
321 * @cmd_count: Number of command words to write
340 * exceed it. If any part of the command would be below the cvmx_cmd_queue_write()
354 * the command. cvmx_cmd_queue_write()
368 * We need a new command buffer. Fail if there isn't cvmx_cmd_queue_write()
382 * Figure out how many command words will fit in this cvmx_cmd_queue_write()
411 * Simple function to write two command words to a command
414 * @queue_id: Hardware command queue to write to
438 * exceed it. If any part of the command would be below the cvmx_cmd_queue_write2()
452 * the command. cvmx_cmd_queue_write2()
465 * Figure out how many command words will fit in this cvmx_cmd_queue_write2()
471 * We need a new command buffer. Fail if there isn't cvmx_cmd_queue_write2()
510 * Simple function to write three command words to a command
513 * @queue_id: Hardware command queue to write to
539 * exceed it. If any part of the command would be below the cvmx_cmd_queue_write3()
553 * the command. cvmx_cmd_queue_write3()
567 * Figure out how many command words will fit in this cvmx_cmd_queue_write3()
573 * We need a new command buffer. Fail if there isn't cvmx_cmd_queue_write3()
/linux-4.1.27/drivers/usb/misc/
H A Dftdi-elan.c156 struct u132_command command[COMMAND_SIZE]; member in struct:usb_ftdi
376 struct u132_command *command = &ftdi->command[ ftdi_elan_flush_targets() local
378 command->header = 0x80 | (ed_number << 5) | 0x4; ftdi_elan_flush_targets()
379 command->length = 0x00; ftdi_elan_flush_targets()
380 command->address = 0x00; ftdi_elan_flush_targets()
381 command->width = 0x00; ftdi_elan_flush_targets()
382 command->follows = 0; ftdi_elan_flush_targets()
383 command->value = 0; ftdi_elan_flush_targets()
384 command->buffer = &command->value; ftdi_elan_flush_targets()
398 struct u132_command *command = &ftdi->command[ ftdi_elan_flush_targets() local
400 command->header = 0x90 | (ed_number << 5); ftdi_elan_flush_targets()
401 command->length = 0x00; ftdi_elan_flush_targets()
402 command->address = 0x00; ftdi_elan_flush_targets()
403 command->width = 0x00; ftdi_elan_flush_targets()
404 command->follows = 0; ftdi_elan_flush_targets()
405 command->value = 0; ftdi_elan_flush_targets()
406 command->buffer = &command->value; ftdi_elan_flush_targets()
434 struct u132_command *command = &ftdi->command[ ftdi_elan_cancel_targets() local
436 command->header = 0x80 | (ed_number << 5) | 0x4; ftdi_elan_cancel_targets()
437 command->length = 0x00; ftdi_elan_cancel_targets()
438 command->address = 0x00; ftdi_elan_cancel_targets()
439 command->width = 0x00; ftdi_elan_cancel_targets()
440 command->follows = 0; ftdi_elan_cancel_targets()
441 command->value = 0; ftdi_elan_cancel_targets()
442 command->buffer = &command->value; ftdi_elan_cancel_targets()
479 dev_err(&ftdi->udev->dev, "command error %d\n", retval); ftdi_elan_command_work()
745 struct u132_command *command = &ftdi->command[COMMAND_MASK & fill_buffer_with_all_queued_commands() local
747 int F = command->follows; fill_buffer_with_all_queued_commands()
748 u8 *f = command->buffer; fill_buffer_with_all_queued_commands()
749 if (command->header & 0x80) { fill_buffer_with_all_queued_commands()
750 ed_commands |= 1 << (0x3 & (command->header >> 5)); fill_buffer_with_all_queued_commands()
752 buf[b++] = command->header; fill_buffer_with_all_queued_commands()
753 buf[b++] = (command->length >> 0) & 0x00FF; fill_buffer_with_all_queued_commands()
754 buf[b++] = (command->length >> 8) & 0x00FF; fill_buffer_with_all_queued_commands()
755 buf[b++] = command->address; fill_buffer_with_all_queued_commands()
756 buf[b++] = command->width; fill_buffer_with_all_queued_commands()
770 struct u132_command *command = &ftdi->command[COMMAND_MASK & ftdi_elan_total_command_size() local
772 total_size += 5 + command->follows; ftdi_elan_total_command_size()
1252 struct u132_command *command = &ftdi->command[ ftdi_elan_write_reg() local
1254 command->header = 0x00 | cPCIu132wr; ftdi_elan_write_reg()
1255 command->length = 0x04; ftdi_elan_write_reg()
1256 command->address = 0x00; ftdi_elan_write_reg()
1257 command->width = 0x00; ftdi_elan_write_reg()
1258 command->follows = 4; ftdi_elan_write_reg()
1259 command->value = data; ftdi_elan_write_reg()
1260 command->buffer = &command->value; ftdi_elan_write_reg()
1284 struct u132_command *command = &ftdi->command[ ftdi_elan_write_config() local
1286 command->header = 0x00 | (cPCIcfgwr & 0x0F); ftdi_elan_write_config()
1287 command->length = 0x04; ftdi_elan_write_config()
1288 command->address = addressofs; ftdi_elan_write_config()
1289 command->width = 0x00 | (width & 0x0F); ftdi_elan_write_config()
1290 command->follows = 4; ftdi_elan_write_config()
1291 command->value = data; ftdi_elan_write_config()
1292 command->buffer = &command->value; ftdi_elan_write_config()
1316 struct u132_command *command = &ftdi->command[ ftdi_elan_write_pcimem() local
1318 command->header = 0x00 | (cPCImemwr & 0x0F); ftdi_elan_write_pcimem()
1319 command->length = 0x04; ftdi_elan_write_pcimem()
1320 command->address = addressofs; ftdi_elan_write_pcimem()
1321 command->width = 0x00 | (width & 0x0F); ftdi_elan_write_pcimem()
1322 command->follows = 4; ftdi_elan_write_pcimem()
1323 command->value = data; ftdi_elan_write_pcimem()
1324 command->buffer = &command->value; ftdi_elan_write_pcimem()
1358 struct u132_command *command = &ftdi->command[ ftdi_elan_read_reg() local
1364 respond->header = command->header = 0x00 | cPCIu132rd; ftdi_elan_read_reg()
1365 command->length = 0x04; ftdi_elan_read_reg()
1366 respond->address = command->address = cU132cmd_status; ftdi_elan_read_reg()
1367 command->width = 0x00; ftdi_elan_read_reg()
1368 command->follows = 0; ftdi_elan_read_reg()
1369 command->value = 0; ftdi_elan_read_reg()
1370 command->buffer = NULL; ftdi_elan_read_reg()
1401 struct u132_command *command = &ftdi->command[ ftdi_elan_read_config() local
1407 respond->header = command->header = 0x00 | (cPCIcfgrd & ftdi_elan_read_config()
1409 command->length = 0x04; ftdi_elan_read_config()
1410 respond->address = command->address = addressofs; ftdi_elan_read_config()
1411 command->width = 0x00 | (width & 0x0F); ftdi_elan_read_config()
1412 command->follows = 0; ftdi_elan_read_config()
1413 command->value = 0; ftdi_elan_read_config()
1414 command->buffer = NULL; ftdi_elan_read_config()
1445 struct u132_command *command = &ftdi->command[ ftdi_elan_read_pcimem() local
1451 respond->header = command->header = 0x00 | (cPCImemrd & ftdi_elan_read_pcimem()
1453 command->length = 0x04; ftdi_elan_read_pcimem()
1454 respond->address = command->address = addressofs; ftdi_elan_read_pcimem()
1455 command->width = 0x00 | (width & 0x0F); ftdi_elan_read_pcimem()
1456 command->follows = 0; ftdi_elan_read_pcimem()
1457 command->value = 0; ftdi_elan_read_pcimem()
1458 command->buffer = NULL; ftdi_elan_read_pcimem()
1504 struct u132_command *command = &ftdi->command[ ftdi_elan_edset_setup() local
1506 command->header = 0x80 | (ed << 5); ftdi_elan_edset_setup()
1507 command->length = 0x8007; ftdi_elan_edset_setup()
1508 command->address = (toggle_bits << 6) | (ep_number << 2) ftdi_elan_edset_setup()
1510 command->width = usb_maxpacket(urb->dev, urb->pipe, ftdi_elan_edset_setup()
1512 command->follows = 8; ftdi_elan_edset_setup()
1513 command->value = 0; ftdi_elan_edset_setup()
1514 command->buffer = urb->setup_packet; ftdi_elan_edset_setup()
1561 struct u132_command *command = &ftdi->command[ ftdi_elan_edset_input() local
1565 command->header = 0x82 | (ed << 5); ftdi_elan_edset_input()
1567 command->length = 0x0000; ftdi_elan_edset_input()
1569 command->length = 0x8000 | 1023; ftdi_elan_edset_input()
1571 command->length = 0x8000 | (remaining_length - ftdi_elan_edset_input()
1573 command->address = (toggle_bits << 6) | (ep_number << 2) ftdi_elan_edset_input()
1575 command->width = usb_maxpacket(urb->dev, urb->pipe, ftdi_elan_edset_input()
1577 command->follows = 0; ftdi_elan_edset_input()
1578 command->value = 0; ftdi_elan_edset_input()
1579 command->buffer = NULL; ftdi_elan_edset_input()
1626 struct u132_command *command = &ftdi->command[ ftdi_elan_edset_empty() local
1628 command->header = 0x81 | (ed << 5); ftdi_elan_edset_empty()
1629 command->length = 0x0000; ftdi_elan_edset_empty()
1630 command->address = (toggle_bits << 6) | (ep_number << 2) ftdi_elan_edset_empty()
1632 command->width = usb_maxpacket(urb->dev, urb->pipe, ftdi_elan_edset_empty()
1634 command->follows = 0; ftdi_elan_edset_empty()
1635 command->value = 0; ftdi_elan_edset_empty()
1636 command->buffer = NULL; ftdi_elan_edset_empty()
1690 struct u132_command *command = &ftdi->command[ ftdi_elan_edset_output() local
1692 command->header = 0x81 | (ed << 5); ftdi_elan_edset_output()
1693 command->address = (toggle_bits << 6) | (ep_number << 2) ftdi_elan_edset_output()
1695 command->width = usb_maxpacket(urb->dev, urb->pipe, ftdi_elan_edset_output()
1697 command->follows = min_t(u32, 1024, ftdi_elan_edset_output()
1700 command->value = 0; ftdi_elan_edset_output()
1701 command->buffer = urb->transfer_buffer + ftdi_elan_edset_output()
1703 command->length = 0x8000 | (command->follows - 1); ftdi_elan_edset_output()
1704 b = command->buffer; ftdi_elan_edset_output()
1705 urb_size = command->follows; ftdi_elan_edset_output()
1764 struct u132_command *command = &ftdi->command[ ftdi_elan_edset_single() local
1766 command->header = 0x83 | (ed << 5); ftdi_elan_edset_single()
1768 command->length = 0x0000; ftdi_elan_edset_single()
1770 command->length = 0x8000 | 1023; ftdi_elan_edset_single()
1772 command->length = 0x8000 | (remaining_length - ftdi_elan_edset_single()
1774 command->address = (toggle_bits << 6) | (ep_number << 2) ftdi_elan_edset_single()
1776 command->width = usb_maxpacket(urb->dev, urb->pipe, ftdi_elan_edset_single()
1778 command->follows = 0; ftdi_elan_edset_single()
1779 command->value = 0; ftdi_elan_edset_single()
1780 command->buffer = NULL; ftdi_elan_edset_single()
1830 struct u132_command *command = ftdi_elan_edset_flush() local
1831 &ftdi->command[COMMAND_MASK & ftdi_elan_edset_flush()
1833 command->header = 0x80 | (ed << 5) | ftdi_elan_edset_flush()
1835 command->length = 0x00; ftdi_elan_edset_flush()
1836 command->address = 0x00; ftdi_elan_edset_flush()
1837 command->width = 0x00; ftdi_elan_edset_flush()
1838 command->follows = 0; ftdi_elan_edset_flush()
1839 command->value = 0; ftdi_elan_edset_flush()
1840 command->buffer = &command->value; ftdi_elan_edset_flush()
2859 command_queue = create_singlethread_workqueue("ftdi-command-engine"); ftdi_elan_init()
/linux-4.1.27/drivers/net/wireless/libertas/
H A Dcmdresp.c2 * This file contains the handling of command
81 curcmd = le16_to_cpu(priv->cur_cmd->cmdbuf->command); lbs_process_command_response()
82 respcmd = le16_to_cpu(resp->command); lbs_process_command_response()
100 netdev_info(priv->dev, "Invalid CMD_RESP %x to command %x!\n", lbs_process_command_response()
111 "Firmware returns DEFER to command %x. Will let it time out...\n", lbs_process_command_response()
112 le16_to_cpu(resp->command)); lbs_process_command_response()
118 /* Now we got response from FW, cancel the command timer */ lbs_process_command_response()
131 lbs_deb_host("CMD_RESP: PS command failed with 0x%x\n", lbs_process_command_response()
134 * We should not re-try enter-ps command in lbs_process_command_response()
145 lbs_deb_host("CMD_RESP: ENTER_PS command response\n"); lbs_process_command_response()
148 * When Deauth Event received before Enter_PS command lbs_process_command_response()
164 lbs_deb_host("CMD_RESP: EXIT_PS command response\n"); lbs_process_command_response()
176 /* If the command is not successful, cleanup and return failure */ lbs_process_command_response()
178 lbs_deb_host("CMD_RESP: error 0x%04x in command reply 0x%04x\n", lbs_process_command_response()
207 /* Clean up and Put current command back to cmdfreeq */ lbs_process_command_response()
293 * wait for the command processing to finish lbs_process_event()
H A Dcmd.c2 * This file contains the handling of command.
3 * It prepares command and sends it to firmware when it is ready.
21 * lbs_cmd_copyback - Simple callback that copies response back into command
24 * @extra: A pointer to the original command structure for which
26 * @resp: A pointer to the command response
44 * Use this if you just want to send a command to the hardware, but don't
61 * is_command_allowed_in_ps - tests if a command is allowed in Power Save mode
63 * @cmd: the command ID
190 * Certain firmware versions do not support EHS_REMOVE_WAKEUP command lbs_host_sleep_cfg()
834 /* Set command header sizes */ lbs_set_11d_domain_info()
860 * @reg: register command, one of CMD_MAC_REG_ACCESS,
905 * @reg: register command, one of CMD_MAC_REG_ACCESS,
958 /* Exit_PS command needs to be queued in the header always. */ lbs_queue_cmd()
959 if (le16_to_cpu(cmdnode->cmdbuf->command) == CMD_802_11_PS_MODE) { lbs_queue_cmd()
968 if (le16_to_cpu(cmdnode->cmdbuf->command) == CMD_802_11_WAKEUP_CONFIRM) lbs_queue_cmd()
980 lbs_deb_host("QUEUE_CMD: inserted command 0x%04x into cmdpendingq\n", lbs_queue_cmd()
981 le16_to_cpu(cmdnode->cmdbuf->command)); lbs_queue_cmd()
993 uint16_t command; lbs_submit_command() local
1008 command = le16_to_cpu(cmd->command); lbs_submit_command()
1011 if (command == CMD_802_11_SCAN || command == CMD_802_11_ASSOCIATE) lbs_submit_command()
1014 lbs_deb_cmd("DNLD_CMD: command 0x%04x, seq %d, size %d\n", lbs_submit_command()
1015 command, le16_to_cpu(cmd->seqnum), cmdsize); lbs_submit_command()
1028 if (command == CMD_802_11_DEEP_SLEEP) { lbs_submit_command()
1036 /* Setup the timer after transmit command */ lbs_submit_command()
1044 * This function inserts command node to cmdfreeq
1081 * where the command is still pending. Make sure the command really __lbs_complete_command()
1180 * lbs_allocate_cmd_buffer - allocates the command buffer and links
1181 * it to command free queue
1196 /* Allocate and initialize the command array */ lbs_allocate_cmd_buffer()
1205 /* Allocate and initialize each command buffer in the command array */ lbs_allocate_cmd_buffer()
1227 * lbs_free_cmd_buffer - free the command buffer
1268 * lbs_get_free_cmd_node - gets a free command node if available in
1269 * command free queue
1304 * lbs_execute_next_command - execute next command in command
1327 "EXEC_NEXT_CMD: already processing command!\n"); lbs_execute_next_command()
1343 if (is_command_allowed_in_ps(le16_to_cpu(cmd->command))) { lbs_execute_next_command()
1348 le16_to_cpu(cmd->command), lbs_execute_next_command()
1353 lbs_deb_host("EXEC_NEXT_CMD: OK to send command " lbs_execute_next_command()
1355 le16_to_cpu(cmd->command), priv->psstate); lbs_execute_next_command()
1358 * 1. Non-PS command: lbs_execute_next_command()
1361 * 2. PS command but not EXIT_PS: lbs_execute_next_command()
1363 * 3. PS command EXIT_PS: lbs_execute_next_command()
1365 * otherwise send this command down to firmware lbs_execute_next_command()
1368 if (cmd->command != cpu_to_le16(CMD_802_11_PS_MODE)) { lbs_execute_next_command()
1370 * this non PS command will be sent later */ lbs_execute_next_command()
1387 * PS command. Ignore it if it is not Exit_PS. lbs_execute_next_command()
1423 lbs_deb_host("EXEC_NEXT_CMD: sending command 0x%04x\n", lbs_execute_next_command()
1424 le16_to_cpu(cmd->command)); lbs_execute_next_command()
1511 * send sleep confirm command to firmware if ok
1530 /* In-progress command? */ lbs_ps_confirm_sleep()
1536 /* Pending events or command responses? */ lbs_ps_confirm_sleep()
1539 lbs_deb_host("pending events or command responses\n"); lbs_ps_confirm_sleep()
1619 uint16_t command, struct cmd_header *in_cmd, int in_cmd_size, __lbs_cmd_async()
1638 lbs_deb_cmd("command not allowed in deep sleep\n"); __lbs_cmd_async()
1648 /* Wake up main thread to execute next command */ __lbs_cmd_async()
1657 /* Copy the incoming command to the buffer */ __lbs_cmd_async()
1660 /* Set command, clean result, move to buffer */ __lbs_cmd_async()
1661 cmdnode->cmdbuf->command = cpu_to_le16(command); __lbs_cmd_async()
1665 lbs_deb_host("PREP_CMD: command 0x%04x\n", command); __lbs_cmd_async()
1676 void lbs_cmd_async(struct lbs_private *priv, uint16_t command, lbs_cmd_async() argument
1680 __lbs_cmd_async(priv, command, in_cmd, in_cmd_size, lbs_cmd_async()
1685 int __lbs_cmd(struct lbs_private *priv, uint16_t command, __lbs_cmd() argument
1696 cmdnode = __lbs_cmd_async(priv, command, in_cmd, in_cmd_size, __lbs_cmd()
1708 * command, so we perform an uninterruptible sleep. __lbs_cmd()
1715 netdev_info(priv->dev, "PREP_CMD: command 0x%04x failed: %d\n", __lbs_cmd()
1716 command, ret); __lbs_cmd()
1618 __lbs_cmd_async(struct lbs_private *priv, uint16_t command, struct cmd_header *in_cmd, int in_cmd_size, int (*callback)(struct lbs_private *, unsigned long, struct cmd_header *), unsigned long callback_arg) __lbs_cmd_async() argument
H A Dcmd.h17 /* command response */
22 /* command data */
31 the size of the target of the pointer. Since the command to be sent
42 void lbs_cmd_async(struct lbs_private *priv, uint16_t command,
45 int __lbs_cmd(struct lbs_private *priv, uint16_t command,
51 uint16_t command, struct cmd_header *in_cmd, int in_cmd_size,
/linux-4.1.27/drivers/s390/char/
H A Dhmcdrv_ftp.c45 * hmcdrv_ftp_cmd_getid() - determine FTP command ID from a command string
46 * @cmd: FTP command string (NOT zero-terminated)
47 * @len: length of FTP command string in @cmd
51 /* HMC FTP command descriptor */ hmcdrv_ftp_cmd_getid()
53 const char *str; /* command string */ hmcdrv_ftp_cmd_getid()
54 enum hmcdrv_ftp_cmdid cmd; /* associated command as enum */ hmcdrv_ftp_cmd_getid()
63 * 3. Original command 'nlist' was renamed, else the CRC would hmcdrv_ftp_cmd_getid()
92 pr_debug("FTP command '%s' has CRC 0x%04x, at table pos. %lu\n", hmcdrv_ftp_cmd_getid()
98 pr_debug("FTP command '%s' found, with ID %d\n", hmcdrv_ftp_cmd_getid()
105 * hmcdrv_ftp_parse() - HMC drive FTP command parser
106 * @cmd: FTP command string "<cmd> <filename>"
107 * @ftp: Pointer to FTP command specification buffer (output)
130 case 0: /* 1st argument (FTP command) */ hmcdrv_ftp_parse()
156 * @ftp: pointer to FTP command specification
227 * @cmd: FTP command string "<cmd> <filename>"
/linux-4.1.27/arch/mips/dec/
H A Dreset.c21 void __noreturn dec_machine_restart(char *command) dec_machine_restart() argument
/linux-4.1.27/arch/mips/include/asm/
H A Dreboot.h12 extern void (*_machine_restart)(char *command);
/linux-4.1.27/scripts/
H A Dheaders.sh2 # Run headers_$1 command for all suitable architectures
H A Dobjdiff13 # $ <your fancy build command here>
17 # $ <your fancy build command here>
38 echo >&2 "Usage: $0 <command> <args>"
156 echo >&2 "Unrecognized command '$1'"
/linux-4.1.27/tools/power/x86/turbostat/
H A DMakefile6 ifeq ("$(origin O)", "command line")
/linux-4.1.27/include/linux/mtd/
H A Dpfow.h25 /* Address command code register */
27 /* command data register */
29 /* command address register lower address bits */
31 /* command address register upper address bits */
37 /* command execution register, the only possible value is 0x01 */
46 /* LPDDR memory device command codes */
47 /* They are possible values of PFOW command code register */
59 /* Defines possible value of PFOW command execution register */
90 * with 0x41 command */
132 "half with 41h command\n"); print_drs_error()
/linux-4.1.27/include/linux/usb/
H A Dstorage.h52 /* command block wrapper */
55 __u32 Tag; /* unique per command id */
60 __u8 CDB[16]; /* max command */
68 /* command status wrapper */
71 __u32 Tag; /* same as original command */
/linux-4.1.27/drivers/net/wireless/libertas_tf/
H A Dcmd.c37 * lbtf_cmd_copyback - Simple callback that copies response back into command
40 * @extra A pointer to the original command structure for which
42 * @resp A pointer to the command response
229 lbtf_deb_host("QUEUE_CMD: inserted command 0x%04x into cmdpendingq\n", lbtf_queue_cmd()
230 le16_to_cpu(cmdnode->cmdbuf->command)); lbtf_queue_cmd()
242 uint16_t command; lbtf_submit_command() local
253 command = le16_to_cpu(cmd->command); lbtf_submit_command()
255 lbtf_deb_cmd("DNLD_CMD: command 0x%04x, seq %d, size %d\n", lbtf_submit_command()
256 command, le16_to_cpu(cmd->seqnum), cmdsize); lbtf_submit_command()
269 /* Setup the timer after transmit command */ lbtf_submit_command()
276 * This function inserts command node to cmdfreeq
454 /* Allocate and initialize the command array */ lbtf_allocate_cmd_buffer()
464 /* Allocate and initialize each command buffer in the command array */ lbtf_allocate_cmd_buffer()
558 * lbtf_execute_next_command: execute next command in cmd pending queue.
579 pr_alert("EXEC_NEXT_CMD: already processing command!\n"); lbtf_execute_next_command()
594 lbtf_deb_host("EXEC_NEXT_CMD: sending command 0x%04x\n", lbtf_execute_next_command()
595 le16_to_cpu(cmd->command)); lbtf_execute_next_command()
608 uint16_t command, struct cmd_header *in_cmd, int in_cmd_size, __lbtf_cmd_async()
627 /* Wake up main thread to execute next command */ __lbtf_cmd_async()
636 /* Copy the incoming command to the buffer */ __lbtf_cmd_async()
641 cmdnode->cmdbuf->command = cpu_to_le16(command); __lbtf_cmd_async()
646 lbtf_deb_host("PREP_CMD: command 0x%04x\n", command); __lbtf_cmd_async()
657 void lbtf_cmd_async(struct lbtf_private *priv, uint16_t command, lbtf_cmd_async() argument
661 __lbtf_cmd_async(priv, command, in_cmd, in_cmd_size, NULL, 0); lbtf_cmd_async()
665 int __lbtf_cmd(struct lbtf_private *priv, uint16_t command, __lbtf_cmd() argument
677 cmdnode = __lbtf_cmd_async(priv, command, in_cmd, in_cmd_size, __lbtf_cmd()
688 pr_info("PREP_CMD: command 0x%04x interrupted by signal: %d\n", __lbtf_cmd()
689 command, ret); __lbtf_cmd()
696 pr_info("PREP_CMD: command 0x%04x failed: %d\n", __lbtf_cmd()
697 command, ret); __lbtf_cmd()
736 curcmd = le16_to_cpu(priv->cur_cmd->cmdbuf->command); lbtf_process_rx_command()
737 respcmd = le16_to_cpu(resp->command); lbtf_process_rx_command()
764 /* Now we got response from FW, cancel the command timer */ lbtf_process_rx_command()
770 /* If the command is not successful, cleanup and return failure */ lbtf_process_rx_command()
798 /* Clean up and Put current command back to cmdfreeq */ lbtf_process_rx_command()
607 __lbtf_cmd_async(struct lbtf_private *priv, uint16_t command, struct cmd_header *in_cmd, int in_cmd_size, int (*callback)(struct lbtf_private *, unsigned long, struct cmd_header *), unsigned long callback_arg) __lbtf_cmd_async() argument
H A Dlibertas_tf.h27 /* Return command are almost always the same as the host command, but with
205 /** command-related variables */
210 /** Current command */
212 /** command Queues */
213 /** Free command buffers */
215 /** Pending command buffers */
318 __le16 command; member in struct:cmd_header
327 /* command response */
331 /* command data */
340 * This structure defines the response for the GET_HW_SPEC command
498 the size of the target of the pointer. Since the command to be sent
509 void lbtf_cmd_async(struct lbtf_private *priv, uint16_t command,
512 int __lbtf_cmd(struct lbtf_private *priv, uint16_t command,
/linux-4.1.27/drivers/staging/rtl8192u/
H A Dr819xU_cmdpkt.c6 * (RTL8190 TX/RX command packet handler Source C File)
8 * Note: The module is responsible for handling TX and RX command packet.
9 * 1. TX : Send set and query configuration command packet.
11 * command packet.
146 * ws-06-0063-rtl8190-command-packet-specification.
148 * We have to read 20 bytes in the command packet.
151 * u8 *pmsg - Msg Ptr of the command packet.
213 * ws-07-0063-v06-rtl819x-command-packet-specification-070315.doc.
217 * u8 *pmsg - Message Pointer of the command packet.
280 * ws-06-0063-rtl8190-command-packet-specification. Please
283 * Input: u8 *pmsg - Message Pointer of the command packet.
319 * Overview: Count aggregated tx status from firmwar of one type rx command
382 * Overview: Firmware add a new tx feedback status to reduce rx command
479 * Overview: In the function, we will capture different RX command packet
480 * info. Every RX command packet element has different message
482 * command packet now. Please refer to document
483 * ws-06-0063-rtl8190-command-packet-specification.
504 /* 0. Check inpt arguments. If is is a command queue message or cmpk_message_handle_rx()
507 return 0; /* This is not a command packet. */ cmpk_message_handle_rx()
509 /* 1. Read received command packet message length from RFD. */ cmpk_message_handle_rx()
515 /* 3. Read command packet element id and length. */ cmpk_message_handle_rx()
518 /* 4. Check every received command packet content according to different cmpk_message_handle_rx()
519 element type. Because FW may aggregate RX command packet to cmpk_message_handle_rx()
563 return 1; /* This is a command packet. */ cmpk_message_handle_rx()
569 return 1; /* This is a command packet. */ cmpk_message_handle_rx()
/linux-4.1.27/drivers/usb/gadget/udc/bdc/
H A Dbdc_cmd.c43 "command completed cmd_sts:%x\n", cmd_status); bdc_issue_cmd()
50 "command operation timedout cmd_status=%d\n", cmd_status); bdc_issue_cmd()
70 dev_err(bdc->dev, "command processor busy: %x\n", cmd_status); bdc_submit_cmd()
76 dev_dbg(bdc->dev, "command completed successfully\n"); bdc_submit_cmd()
81 dev_err(bdc->dev, "command parameter error\n"); bdc_submit_cmd()
103 "command timedout waited for %dusec\n", bdc_submit_cmd()
109 dev_dbg(bdc->dev, "Unknown command completion code:%x\n", ret); bdc_submit_cmd()
127 /* Reinitalize the bdlist after config ep command */ ep_bd_list_reinit()
219 dev_err(bdc->dev, "command failed :%x\n", ret); bdc_config_ep()
228 * Change the HW deq pointer, if this command is successful, HW will start
262 /* Send a Function Wake notification packet using FH command */ bdc_function_wake_fh()
280 /* Send a Function Wake notification packet using DNC command */ bdc_function_wake()
299 /* issue a stall endpoint command */ bdc_ep_set_stall()
330 /* issue a reset endpoint command */ bdc_ep_clear_stall()
335 dev_err(bdc->dev, "command failed:%x\n", ret); bdc_ep_clear_stall()
353 /* Endpoint has to be in running state to execute stop ep command */ bdc_stop_ep()
361 /* issue a stop endpoint command */ bdc_stop_ep()
368 "stop endpoint command didn't complete:%d ep:%s\n", bdc_stop_ep()
/linux-4.1.27/drivers/usb/host/whci/
H A Dhw.c41 * whc_do_gencmd - start a generic command via the WUSBGENCMDSTS register
43 * @cmd: command to start.
44 * @params: parameters for the command (the WUSBGENCMDPARAMS register value).
45 * @addr: pointer to any data for the command (may be NULL).
57 /* Wait for previous command to complete. */ whc_do_gencmd()
62 dev_err(&whc->umc->dev, "generic command timeout (%04x/%04x)\n", whc_do_gencmd()
/linux-4.1.27/drivers/iio/adc/
H A Dad7291.c54 * AD7291 command
85 u16 command; member in struct:ad7291_chip_info
116 u16 command; ad7291_event_handler() local
129 command = chip->command | AD7291_ALERT_CLEAR; ad7291_event_handler()
130 ad7291_i2c_write(chip, AD7291_COMMAND, command); ad7291_event_handler()
132 command = chip->command & ~AD7291_ALERT_CLEAR; ad7291_event_handler()
133 ad7291_i2c_write(chip, AD7291_COMMAND, command); ad7291_event_handler()
283 regval = chip->command; ad7291_write_event_config()
310 chip->command = regval; ad7291_write_event_config()
337 if (chip->command & AD7291_AUTOCYCLE) { ad7291_read_raw()
342 regval = chip->command & (~AD7291_VOLTAGE_MASK); ad7291_read_raw()
360 /* Assumes tsense bit of command register always set */ ad7291_read_raw()
496 chip->command = AD7291_NOISE_DELAY | ad7291_probe()
501 chip->command |= AD7291_EXT_REF; ad7291_probe()
517 ret = ad7291_i2c_write(chip, AD7291_COMMAND, chip->command); ad7291_probe()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
H A Dcmd.c14 * send command to firmware
17 * @id: command id
18 * @buf: buffer containing the command, must work with dma
43 wl1251_error("command complete timeout"); wl1251_cmd_send()
61 * send test command to firmware
64 * @buf: buffer containing the command, with all headers, must work with dma
77 wl1251_warning("TEST command failed"); wl1251_cmd_test()
85 * The test command got in, we can read the answer. wl1251_cmd_test()
94 wl1251_error("TEST command answer error: %d", wl1251_cmd_test()
123 wl1251_error("INTERROGATE command failed"); wl1251_cmd_interrogate()
127 /* the interrogate command got in, we can read the answer */ wl1251_cmd_interrogate()
132 wl1251_error("INTERROGATE command error: %d", wl1251_cmd_interrogate()
161 wl1251_warning("CONFIGURE command NOK"); wl1251_cmd_configure()
197 wl1251_error("VBM command failed"); wl1251_cmd_vbm()
371 wl1251_error("read memory command failed: %d", ret); wl1251_cmd_read_memory()
375 /* the read command got in, we can now read the answer */ wl1251_cmd_read_memory()
379 wl1251_error("error in read command result: %d", wl1251_cmd_read_memory()
/linux-4.1.27/net/irda/
H A Dirlap_frame.c48 int command);
118 * Transmits a connect SNRM command frame
169 * Received SNRM (Set Normal Response Mode) command frame
310 * Function irlap_send_discovery_xid_frame (S, s, command)
316 __u8 command, discovery_t *discovery) irlap_send_discovery_xid_frame()
323 pr_debug("%s(), s=%d, S=%d, command=%d\n", __func__, irlap_send_discovery_xid_frame()
324 s, S, command); irlap_send_discovery_xid_frame()
338 if (command) { irlap_send_discovery_xid_frame()
349 if (command) irlap_send_discovery_xid_frame()
380 if (!command || (frame->slotnr == 0xff)) { irlap_send_discovery_xid_frame()
478 * Received a XID discovery command
577 * Function irlap_send_rr_frame (self, command)
582 void irlap_send_rr_frame(struct irlap_cb *self, int command) irlap_send_rr_frame() argument
594 frame->caddr |= (command) ? CMD_FRAME : 0; irlap_send_rr_frame()
633 struct irlap_info *info, int command) irlap_recv_rr_frame()
637 /* Check if this is a command or a response frame */ irlap_recv_rr_frame()
638 if (command) irlap_recv_rr_frame()
651 struct irlap_info *info, int command) irlap_recv_rnr_frame()
657 if (command) irlap_recv_rnr_frame()
664 struct irlap_info *info, int command) irlap_recv_rej_frame()
668 /* Check if this is a command or a response frame */ irlap_recv_rej_frame()
669 if (command) irlap_recv_rej_frame()
676 struct irlap_info *info, int command) irlap_recv_srej_frame()
680 /* Check if this is a command or a response frame */ irlap_recv_srej_frame()
681 if (command) irlap_recv_srej_frame()
688 struct irlap_info *info, int command) irlap_recv_disc_frame()
690 /* Check if this is a command or a response frame */ irlap_recv_disc_frame()
691 if (command) irlap_recv_disc_frame()
972 void irlap_resend_rejected_frames(struct irlap_cb *self, int command) irlap_resend_rejected_frames() argument
1005 irlap_send_i_frame(self, tx_skb, command); irlap_resend_rejected_frames()
1034 void irlap_resend_rejected_frame(struct irlap_cb *self, int command) irlap_resend_rejected_frame() argument
1063 irlap_send_i_frame(self, tx_skb, command); irlap_resend_rejected_frame()
1068 * Function irlap_send_ui_frame (self, skb, command)
1074 __u8 caddr, int command) irlap_send_ui_frame()
1081 skb->data[0] = caddr | ((command) ? CMD_FRAME : 0); irlap_send_ui_frame()
1092 int command) irlap_send_i_frame()
1096 skb->data[0] |= (command) ? CMD_FRAME : 0; irlap_send_i_frame()
1112 struct irlap_info *info, int command) irlap_recv_i_frame()
1118 /* Check if this is a command or a response frame */ irlap_recv_i_frame()
1119 if (command) irlap_recv_i_frame()
1234 struct irlap_info *info, int command) irlap_recv_test_frame()
1263 if (command) irlap_recv_test_frame()
1290 int command; irlap_driver_rcv() local
1318 command = skb->data[0] & CMD_FRAME; irlap_driver_rcv()
1337 irlap_recv_i_frame(self, skb, &info, command); irlap_driver_rcv()
1351 irlap_recv_rr_frame(self, skb, &info, command); irlap_driver_rcv()
1354 irlap_recv_rnr_frame(self, skb, &info, command); irlap_driver_rcv()
1357 irlap_recv_rej_frame(self, skb, &info, command); irlap_driver_rcv()
1360 irlap_recv_srej_frame(self, skb, &info, command); irlap_driver_rcv()
1386 irlap_recv_disc_frame(self, skb, &info, command); irlap_driver_rcv()
1389 irlap_recv_test_frame(self, skb, &info, command); irlap_driver_rcv()
315 irlap_send_discovery_xid_frame(struct irlap_cb *self, int S, __u8 s, __u8 command, discovery_t *discovery) irlap_send_discovery_xid_frame() argument
631 irlap_recv_rr_frame(struct irlap_cb *self, struct sk_buff *skb, struct irlap_info *info, int command) irlap_recv_rr_frame() argument
650 irlap_recv_rnr_frame(struct irlap_cb *self, struct sk_buff *skb, struct irlap_info *info, int command) irlap_recv_rnr_frame() argument
663 irlap_recv_rej_frame(struct irlap_cb *self, struct sk_buff *skb, struct irlap_info *info, int command) irlap_recv_rej_frame() argument
675 irlap_recv_srej_frame(struct irlap_cb *self, struct sk_buff *skb, struct irlap_info *info, int command) irlap_recv_srej_frame() argument
687 irlap_recv_disc_frame(struct irlap_cb *self, struct sk_buff *skb, struct irlap_info *info, int command) irlap_recv_disc_frame() argument
1073 irlap_send_ui_frame(struct irlap_cb *self, struct sk_buff *skb, __u8 caddr, int command) irlap_send_ui_frame() argument
1091 irlap_send_i_frame(struct irlap_cb *self, struct sk_buff *skb, int command) irlap_send_i_frame() argument
1110 irlap_recv_i_frame(struct irlap_cb *self, struct sk_buff *skb, struct irlap_info *info, int command) irlap_recv_i_frame() argument
1233 irlap_recv_test_frame(struct irlap_cb *self, struct sk_buff *skb, struct irlap_info *info, int command) irlap_recv_test_frame() argument
/linux-4.1.27/drivers/block/mtip32xx/
H A Dmtip32xx.c59 /* DMA region containing command table (should be 8192 bytes) */
64 /* DMA region per command (contains header and SGL) */
214 * command that was issued by the kernel completes. It first calls the
217 * scatter list associated with the completed command, and finally
218 * clears the allocated bit associated with the completed command.
221 * @tag Tag of the command.
289 * Issue a command to the hardware.
292 * registers, causing hardware command processing to begin.
295 * @tag The tag of the command to be issued.
403 * then initializes it by setting the command header and RX FIS addresses,
417 /* Program the command list base and FIS base addresses */ mtip_init_port()
561 "%d command(s) %s: tagmap [%s]", cnt, msg, tagmap); print_tags()
565 * Internal command completion callback function.
568 * command completed. This function signals the command completion by
572 * @tag Tag of the command that has completed.
580 int tag, struct mtip_cmd *command, int status) mtip_completion()
582 struct completion *waiting = command->comp_data; mtip_completion()
585 "Internal command %d completed with TFE\n", tag); mtip_completion()
591 int tag, struct mtip_cmd *command, int status) mtip_null_completion()
629 dbg_printk(MTIP_DRV_NAME " TFE for the internal command\n"); mtip_handle_tfe()
656 /* Skip the internal command slot */ mtip_handle_tfe()
689 "Error in READ LOG EXT (10h) command\n"); mtip_handle_tfe()
726 fis = (struct host_to_dev_fis *)cmd->command; mtip_handle_tfe()
730 fis->command == ATA_CMD_SET_FEATURES) mtip_handle_tfe()
735 fis->command == ATA_CMD_FPDMA_WRITE)) { mtip_handle_tfe()
738 fis->command == ATA_CMD_FPDMA_WRITE ? mtip_handle_tfe()
752 * First check if this command has mtip_handle_tfe()
759 /* Re-issue the command. */ mtip_handle_tfe()
765 /* Retire a command that will not be reissued */ mtip_handle_tfe()
793 struct mtip_cmd *command; mtip_workq_sdbfx() local
807 /* skip internal command slot. */ mtip_workq_sdbfx()
811 command = mtip_cmd_from_tag(dd, tag); mtip_workq_sdbfx()
812 if (likely(command->comp_func)) mtip_workq_sdbfx()
813 command->comp_func(port, tag, command, 0); mtip_workq_sdbfx()
1001 if (fis->command == ATA_CMD_SEC_ERASE_PREP) { mtip_pause_ncq()
1005 } else if ((fis->command == ATA_CMD_DOWNLOAD_MICRO) && mtip_pause_ncq()
1010 } else if ((fis->command == ATA_CMD_SEC_ERASE_UNIT) || mtip_pause_ncq()
1011 ((fis->command == 0xFC) && mtip_pause_ncq()
1076 * Execute an internal command and wait for the completion.
1079 * @fis Pointer to the FIS that describes the command.
1081 * @buffer DMA accessible for command data.
1085 * @timeout Time in ms to wait for the command to complete.
1090 * -EBUSY Internal command or other IO in progress.
1091 * -EAGAIN Time out waiting for command to complete.
1124 if (fis->command != ATA_CMD_STANDBYNOW1) { mtip_exec_internal_command()
1137 /* Set the completion function and data for the command. */ mtip_exec_internal_command()
1147 /* Copy the command to the command table */ mtip_exec_internal_command()
1148 memcpy(int_cmd->command, fis, fis_len*4); mtip_exec_internal_command()
1154 command_sg = int_cmd->command + AHCI_CMD_TBL_HDR_SZ; mtip_exec_internal_command()
1167 /* Populate the command header */ mtip_exec_internal_command()
1172 /* Issue the command to the hardware */ mtip_exec_internal_command()
1176 /* Wait for the command to complete or timeout. */ mtip_exec_internal_command()
1183 "Internal command [%02X] was interrupted after %u ms\n", mtip_exec_internal_command()
1184 fis->command, mtip_exec_internal_command()
1190 "Internal command did not complete [%02X] within timeout of %lu ms\n", mtip_exec_internal_command()
1191 fis->command, timeout); mtip_exec_internal_command()
1194 "Internal command [%02X] wait returned code [%d] after %lu ms - unhandled\n", mtip_exec_internal_command()
1195 fis->command, rv, timeout); mtip_exec_internal_command()
1201 "Internal command [%02X] wait returned due to SR\n", mtip_exec_internal_command()
1202 fis->command); mtip_exec_internal_command()
1213 /* Spin for <timeout> checking if command still outstanding */ mtip_exec_internal_command()
1222 if ((fis->command != ATA_CMD_STANDBYNOW1) && mtip_exec_internal_command()
1234 "Internal command [%02X] failed\n", mtip_exec_internal_command()
1235 fis->command); mtip_exec_internal_command()
1259 /* Clear the allocated and active bits for the internal command. */ mtip_exec_internal_command()
1295 switch (fis->command) { mtip_set_timeout()
1353 fis.command = ATA_CMD_ID_ATA; mtip_get_identify()
1361 /* Execute the command. */ mtip_get_identify()
1424 * Issue a standby immediate command to the device.
1430 * -1 An error occurred while executing the command.
1443 fis.command = ATA_CMD_STANDBYNOW1; mtip_standby_immediate()
1460 "STANDBY IMMEDIATE command failed.\n"); mtip_standby_immediate()
1466 * Issue a READ LOG EXT command to the device.
1485 fis.command = ATA_CMD_READ_LOG_EXT; mtip_read_log_page()
1505 * Issue a SMART READ DATA command to the device.
1522 fis.command = ATA_CMD_SMART; mtip_get_smart_data()
1652 fis.command = 0xfb; mtip_send_trim()
1695 * Display the identify command data.
1749 * Map the commands scatter list into the command table.
1751 * @command Pointer to the command.
1758 struct mtip_cmd *command, fill_command_sg()
1764 struct scatterlist *sg = command->sg; fill_command_sg()
1766 command_sg = command->command + AHCI_CMD_TBL_HDR_SZ; fill_command_sg()
1785 * @brief Execute a drive command.
1787 * return value 0 The command completed successfully.
1788 * return value -1 An error occurred while executing the command.
1790 static int exec_drive_task(struct mtip_port *port, u8 *command) exec_drive_task() argument
1800 fis.command = command[0]; exec_drive_task()
1801 fis.features = command[1]; exec_drive_task()
1802 fis.sect_count = command[2]; exec_drive_task()
1803 fis.sector = command[3]; exec_drive_task()
1804 fis.cyl_low = command[4]; exec_drive_task()
1805 fis.cyl_hi = command[5]; exec_drive_task()
1806 fis.device = command[6] & ~0x10; /* Clear the dev bit*/ exec_drive_task()
1812 command[0], exec_drive_task()
1813 command[1], exec_drive_task()
1814 command[2], exec_drive_task()
1815 command[3], exec_drive_task()
1816 command[4], exec_drive_task()
1817 command[5], exec_drive_task()
1818 command[6]); exec_drive_task()
1820 /* Execute the command. */ exec_drive_task()
1832 command[0] = reply->command; /* Status*/ exec_drive_task()
1833 command[1] = reply->features; /* Error*/ exec_drive_task()
1834 command[4] = reply->cyl_low; exec_drive_task()
1835 command[5] = reply->cyl_hi; exec_drive_task()
1839 command[0], exec_drive_task()
1840 command[1], exec_drive_task()
1841 command[4], exec_drive_task()
1842 command[5]); exec_drive_task()
1848 * @brief Execute a drive command.
1851 * @param command Pointer to the user specified command parameters.
1855 * return value 0 The command completed successfully.
1858 * return value -1 An error occurred while executing the command.
1860 static int exec_drive_command(struct mtip_port *port, u8 *command, exec_drive_command() argument
1867 int rv = 0, xfer_sz = command[3]; exec_drive_command()
1891 fis.command = command[0]; exec_drive_command()
1892 fis.features = command[2]; exec_drive_command()
1893 fis.sect_count = command[3]; exec_drive_command()
1894 if (fis.command == ATA_CMD_SMART) { exec_drive_command()
1895 fis.sector = command[1]; exec_drive_command()
1911 command[0], exec_drive_command()
1912 command[1], exec_drive_command()
1913 command[2], exec_drive_command()
1914 command[3]); exec_drive_command()
1916 /* Execute the command. */ exec_drive_command()
1931 command[0] = reply->command; /* Status*/ exec_drive_command()
1932 command[1] = reply->features; /* Error*/ exec_drive_command()
1933 command[2] = reply->sect_count; exec_drive_command()
1939 command[0], exec_drive_command()
1940 command[1], exec_drive_command()
1941 command[2]); exec_drive_command()
1946 ATA_SECT_SIZE * command[3])) { exec_drive_command()
1959 * Indicates whether a command has a single sector payload.
1961 * @command passed to the device to perform the certain event.
1965 * 1 command is one that always has a single sector payload,
1970 static unsigned int implicit_sector(unsigned char command, implicit_sector() argument
1976 switch (command) { implicit_sector()
2104 fis.command = req_task->io_ports[7]; exec_drive_taskfile()
2127 force_single_sector = implicit_sector(fis.command, fis.features); exec_drive_taskfile()
2148 fis.command, exec_drive_taskfile()
2157 if ((fis.command == ATA_CMD_SEC_ERASE_UNIT) && outbuf && exec_drive_taskfile()
2170 /* Execute the command.*/ exec_drive_taskfile()
2190 req_task->io_ports[7] = reply->command; exec_drive_taskfile()
2261 * command that it does not understand. If the IOCTL command is not supported
2265 * @cmd IOCTL command passed from the Block Layer.
2270 * -ENOTTY The specified command is not supported.
2272 * -EIO An error occurred while executing the command.
2289 /* Copy the user command info to our buffer. */ mtip_hw_ioctl()
2295 /* Execute the drive command. */ mtip_hw_ioctl()
2313 /* Copy the user command info to our buffer. */ mtip_hw_ioctl()
2319 /* Execute the drive command. */ mtip_hw_ioctl()
2367 * @nents Number of entries in scatter list for the read command.
2368 * @tag The tag of this read command.
2379 struct mtip_cmd *command, int nents, mtip_hw_submit_io()
2389 nents = dma_map_sg(&dd->pdev->dev, command->sg, nents, dma_dir); mtip_hw_submit_io()
2393 command->scatter_ents = nents; mtip_hw_submit_io()
2396 * The number of retries for this command before it is mtip_hw_submit_io()
2399 command->retries = MTIP_MAX_RETRIES; mtip_hw_submit_io()
2402 fis = command->command; mtip_hw_submit_io()
2406 fis->command = ATA_CMD_FPDMA_READ; mtip_hw_submit_io()
2408 fis->command = ATA_CMD_FPDMA_WRITE; mtip_hw_submit_io()
2423 fill_command_sg(dd, command, nents); mtip_hw_submit_io()
2425 if (unlikely(command->unaligned)) mtip_hw_submit_io()
2428 /* Populate the command header */ mtip_hw_submit_io()
2429 command->command_header->opts = mtip_hw_submit_io()
2432 command->command_header->byte_count = 0; mtip_hw_submit_io()
2435 * Set the completion function and data for the command mtip_hw_submit_io()
2438 command->comp_data = dd; mtip_hw_submit_io()
2439 command->comp_func = mtip_async_complete; mtip_hw_submit_io()
2440 command->direction = dma_dir; mtip_hw_submit_io()
2443 * To prevent this command from being issued mtip_hw_submit_io()
2444 * if an internal command is in progress or error handling is active. mtip_hw_submit_io()
2452 /* Issue the command to the hardware */ mtip_hw_submit_io()
2945 * the condition is to check neither an internal command is mtip_service_thread()
2997 /* Issue the command to the hardware */ mtip_service_thread()
3068 /* Allocate dma memory for command list */ mtip_dma_alloc()
3116 "Error in READ LOG EXT (10h) command\n"); mtip_hw_get_identify()
3367 * Issue a Standby Immediate command to the device.
3408 "Failed standby-immediate command\n"); mtip_hw_suspend()
3494 * @cmd IOCTL command passed from the user application.
3532 * @cmd IOCTL command passed from the user application.
3783 if (!cmd->command) mtip_free_cmd()
3787 cmd->command, cmd->command_dma); mtip_free_cmd()
3797 cmd->command = dmam_alloc_coherent(&dd->pdev->dev, CMD_DMA_ALLOC_SZ, mtip_init_cmd()
3799 if (!cmd->command) mtip_init_cmd()
3802 memset(cmd->command, 0, CMD_DMA_ALLOC_SZ); mtip_init_cmd()
3804 /* Point the command headers at the command tables. */ mtip_init_cmd()
579 mtip_completion(struct mtip_port *port, int tag, struct mtip_cmd *command, int status) mtip_completion() argument
590 mtip_null_completion(struct mtip_port *port, int tag, struct mtip_cmd *command, int status) mtip_null_completion() argument
1757 fill_command_sg(struct driver_data *dd, struct mtip_cmd *command, int nents) fill_command_sg() argument
2378 mtip_hw_submit_io(struct driver_data *dd, struct request *rq, struct mtip_cmd *command, int nents, struct blk_mq_hw_ctx *hctx) mtip_hw_submit_io() argument
H A Dmtip32xx.h72 * a single command may have.
82 /* Internal command tag. */
102 /* Maximum number of supported command slots. */
221 unsigned char command; member in struct:host_to_dev_fis
272 * - Bits 4:0 Length of the command FIS in DWords (DWord = 4 bytes).
281 * Lower 32 bits of the command table address associated with this
282 * header. The command table addresses must be 128 byte aligned.
287 * of the command table address associated with this command.
319 /* Structure used to describe a command. */
322 struct mtip_cmd_hdr *command_header; /* ptr to command header entry */
326 void *command; /* ptr to command table entry */ member in struct:mtip_cmd
333 * a command.
342 int unaligned; /* command is unaligned on 4k boundary */
346 int retries; /* The number of retries left for this command. */
369 * Pointer to the beginning of the command header memory as used
374 * Pointer to the beginning of the command header memory as used
417 * Bit significant, used to determine if a command slot has
419 * when the command slot and all associated data structures
430 * used to queue commands when an internal command is in progress
449 /* Spinlock for working around command-issue bug. */
/linux-4.1.27/drivers/gpu/drm/udl/
H A Dudl_drv.h144 #define CMD_WRITE_RAW8 "\xAF\x60" /**< 8 bit raw write command. */
145 #define CMD_WRITE_RL8 "\xAF\x61" /**< 8 bit run length command. */
146 #define CMD_WRITE_COPY8 "\xAF\x62" /**< 8 bit copy command. */
147 #define CMD_WRITE_RLX8 "\xAF\x63" /**< 8 bit extended run length command. */
149 #define CMD_WRITE_RAW16 "\xAF\x68" /**< 16 bit raw write command. */
150 #define CMD_WRITE_RL16 "\xAF\x69" /**< 16 bit run length command. */
151 #define CMD_WRITE_COPY16 "\xAF\x6A" /**< 16 bit copy command. */
152 #define CMD_WRITE_RLX16 "\xAF\x6B" /**< 16 bit extended run length command. */
/linux-4.1.27/arch/m68k/include/asm/
H A Dadb_iop.h29 #define ADB_IOP_EXPLICIT 0x80 /* nonzero if explicit command */
39 __u8 cmd; /* ADB command */
H A Datafdreg.h10 #define FDCSELREG_STP (0x80) /* command/status register */
23 /* command opcodes */
37 /* command modifier bits */
/linux-4.1.27/sound/usb/line6/
H A Dmidibuf.c136 int command; line6_midibuf_read() local
155 /* check MIDI command length */ line6_midibuf_read()
156 command = this->buf[this->pos_read]; line6_midibuf_read()
158 if (command & 0x80) { line6_midibuf_read()
159 midi_length = midibuf_message_length(command); line6_midibuf_read()
160 this->command_prev = command; line6_midibuf_read()
209 return 0; /* command is not yet complete */ line6_midibuf_read()
212 return 0; /* command is not yet complete */ line6_midibuf_read()
/linux-4.1.27/tools/perf/util/
H A Dsetup.py6 from distutils.command.build_ext import build_ext as _build_ext
7 from distutils.command.install_lib import install_lib as _install_lib
/linux-4.1.27/arch/mips/dec/prom/
H A Dcmdline.c2 * cmdline.c: read the command line passed to us by the PROM.
/linux-4.1.27/include/uapi/scsi/fc/
H A Dfc_gs.h37 __be16 ct_cmd; /* command / response code */
73 FC_FS_RJT_CMD = 0x01, /* invalid command code */
79 FC_FS_RJT_UNABL = 0x09, /* unable to perform command request */
80 FC_FS_RJT_UNSUP = 0x0b, /* command not supported */
/linux-4.1.27/arch/mips/loongson/lemote-2f/
H A Dec_kb3310b.c52 * This function is used for EC command writes and corresponding status queries.
68 /* check if the command is received by ec */ ec_query_seq()
83 "(%x/%d)ec issued command %d status : 0x%x\n", ec_query_seq()
91 * Send query command to EC to get the proper event number
/linux-4.1.27/arch/arm/mach-keystone/
H A Dkeystone.h20 extern u32 keystone_cpu_smc(u32 command, u32 cpu, u32 addr);
/linux-4.1.27/sound/pci/lx6464es/
H A Dlx6464es.h39 ES_cmd_free = 0, /* no command executing */
40 ES_cmd_processing = 1, /* execution of a read/write command */
41 ES_read_pending = 2, /* a asynchron read command is pending */
42 ES_read_finishing = 3, /* a read command has finished waiting (set by
/linux-4.1.27/tools/power/cpupower/debug/x86_64/
H A DMakefile2 ifeq ("$(origin O)", "command line")
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-amd756-s4882.c49 u8 command, int size, amd756_access_virt0()
62 command, size, data); amd756_access_virt0()
77 u8 command, int size, amd756_access_channel()
102 command, size, data); amd756_access_channel()
111 u8 command, int size, amd756_access_virt1()
115 return amd756_access_channel(adap, addr, flags, read_write, command, amd756_access_virt1()
121 u8 command, int size, amd756_access_virt2()
125 return amd756_access_channel(adap, addr, flags, read_write, command, amd756_access_virt2()
131 u8 command, int size, amd756_access_virt3()
135 return amd756_access_channel(adap, addr, flags, read_write, command, amd756_access_virt3()
141 u8 command, int size, amd756_access_virt4()
145 return amd756_access_channel(adap, addr, flags, read_write, command, amd756_access_virt4()
47 amd756_access_virt0(struct i2c_adapter * adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data * data) amd756_access_virt0() argument
75 amd756_access_channel(struct i2c_adapter * adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data * data, u8 channels) amd756_access_channel() argument
109 amd756_access_virt1(struct i2c_adapter * adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data * data) amd756_access_virt1() argument
119 amd756_access_virt2(struct i2c_adapter * adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data * data) amd756_access_virt2() argument
129 amd756_access_virt3(struct i2c_adapter * adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data * data) amd756_access_virt3() argument
139 amd756_access_virt4(struct i2c_adapter * adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data * data) amd756_access_virt4() argument
H A Di2c-nforce2-s4985.c47 u8 command, int size, nforce2_access_virt0()
59 command, size, data); nforce2_access_virt0()
73 u8 command, int size, nforce2_access_channel()
97 command, size, data); nforce2_access_channel()
106 u8 command, int size, nforce2_access_virt1()
110 return nforce2_access_channel(adap, addr, flags, read_write, command, nforce2_access_virt1()
116 u8 command, int size, nforce2_access_virt2()
120 return nforce2_access_channel(adap, addr, flags, read_write, command, nforce2_access_virt2()
126 u8 command, int size, nforce2_access_virt3()
130 return nforce2_access_channel(adap, addr, flags, read_write, command, nforce2_access_virt3()
136 u8 command, int size, nforce2_access_virt4()
140 return nforce2_access_channel(adap, addr, flags, read_write, command, nforce2_access_virt4()
45 nforce2_access_virt0(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) nforce2_access_virt0() argument
71 nforce2_access_channel(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data, u8 channels) nforce2_access_channel() argument
104 nforce2_access_virt1(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) nforce2_access_virt1() argument
114 nforce2_access_virt2(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) nforce2_access_virt2() argument
124 nforce2_access_virt3(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) nforce2_access_virt3() argument
134 nforce2_access_virt4(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) nforce2_access_virt4() argument
/linux-4.1.27/drivers/gpu/drm/exynos/
H A Dexynos_drm_ipp.h35 * A structure of command work information.
38 * @c_node: command node information.
39 * @ctrl: command control.
49 * A structure of command node.
51 * @list: list head to command queue information.
57 * @start_complete: completion of start of command.
58 * @stop_complete: completion of stop of command.
60 * @start_work: start command work structure.
61 * @stop_work: stop command work structure.
63 * @state: state of command node.
148 * @c_node: current command information.
149 * @cmd_list: list head for command information.
/linux-4.1.27/arch/x86/xen/
H A Dmulticalls.h57 * Try to extend the arguments of the previous multicall command. The
58 * previous command's op must match. If it does, then it attempts to
63 * command on success, or NULL on failure, and args pointing to the
/linux-4.1.27/include/uapi/linux/mmc/
H A Dioctl.h10 /* Application-specific command. true = precede with CMD55 */
22 * postsleep_max_us useconds *after* issuing command. Needed for
24 * they're ready for the next command (i.e. there is no equivalent of
/linux-4.1.27/arch/mips/sgi-ip27/
H A Dip27-reset.c29 void machine_restart(char *command) __noreturn;
35 /* XXX How to pass the reboot command to the firmware??? */ ip27_machine_restart()
36 static void ip27_machine_restart(char *command) ip27_machine_restart() argument
/linux-4.1.27/sound/firewire/fireworks/
H A Dfireworks_command.c16 * number is just used to match command and response.
35 /* command categories */
84 [EFR_STATUS_BAD_COMMAND] = "bad command",
103 unsigned int command, efw_transaction()
139 header->command = cpu_to_be32(command); efw_transaction()
142 /* fill transaction command parameters */ efw_transaction()
153 (be32_to_cpu(header->command) != command) || efw_transaction()
155 dev_err(&efw->unit->device, "EFW command failed [%u/%u]: %s\n", efw_transaction()
157 be32_to_cpu(header->command), efw_transaction()
335 * parameters are not immediately retrieved by get command. In my command_set_clock()
102 efw_transaction(struct snd_efw *efw, unsigned int category, unsigned int command, const __be32 *params, unsigned int param_bytes, const __be32 *resp, unsigned int resp_bytes) efw_transaction() argument
/linux-4.1.27/fs/cachefiles/
H A Ddaemon.c206 * command the cache
228 /* drag the command string into the kernel so we can parse it */ cachefiles_daemon_write()
252 /* parse the command */ cachefiles_daemon_write()
265 /* run the appropriate command handler */ cachefiles_daemon_write()
325 * - command: "frun <N>%"
349 * - command: "fcull <N>%"
373 * - command: "fstop <N>%"
397 * - command: "brun <N>%"
421 * - command: "bcull <N>%"
445 * - command: "bstop <N>%"
469 * - command: "dir <name>"
497 * - command: "secctx <ctx>"
525 * - command: "tag <name>"
551 * - command: "cull <name>"
590 pr_err("cull command requires dirfd to be a directory\n"); cachefiles_daemon_cull()
594 pr_err("cull command requires dirfd and filename\n"); cachefiles_daemon_cull()
600 * - command: "debug <mask>"
617 pr_err("debug command requires mask\n"); cachefiles_daemon_debug()
623 * - command: "inuse <name>"
662 pr_err("inuse command requires dirfd to be a directory\n"); cachefiles_daemon_inuse()
666 pr_err("inuse command requires dirfd and filename\n"); cachefiles_daemon_inuse()
/linux-4.1.27/drivers/mtd/nand/
H A Dcafe_nand.c158 static void cafe_nand_cmdfunc(struct mtd_info *mtd, unsigned command, cafe_nand_cmdfunc() argument
167 command, column, page_addr); cafe_nand_cmdfunc()
169 if (command == NAND_CMD_ERASE2 || command == NAND_CMD_PAGEPROG) { cafe_nand_cmdfunc()
170 /* Second half of a command we already calculated */ cafe_nand_cmdfunc()
171 cafe_writel(cafe, cafe->ctl2 | 0x100 | command, NAND_CTRL2); cafe_nand_cmdfunc()
174 cafe_dev_dbg(&cafe->pdev->dev, "Continue command, ctl1 %08x, #data %d\n", cafe_nand_cmdfunc()
183 command == NAND_CMD_READOOB) { cafe_nand_cmdfunc()
185 command = NAND_CMD_READ0; cafe_nand_cmdfunc()
188 /* FIXME: Do we need to send read command before sending data cafe_nand_cmdfunc()
208 /* Set command valid bit, mask in the chip select bit */ cafe_nand_cmdfunc()
209 ctl1 = 0x80000000 | command | (cafe->ctl1 & CTRL1_CHIPSELECT); cafe_nand_cmdfunc()
212 if (command == NAND_CMD_READID || command == NAND_CMD_STATUS) { cafe_nand_cmdfunc()
218 } else if (command == NAND_CMD_READ0 || command == NAND_CMD_READ1 || cafe_nand_cmdfunc()
219 command == NAND_CMD_READOOB || command == NAND_CMD_RNDOUT) { cafe_nand_cmdfunc()
223 } else if (command == NAND_CMD_SEQIN) cafe_nand_cmdfunc()
230 if (command == NAND_CMD_SEQIN || command == NAND_CMD_ERASE1) { cafe_nand_cmdfunc()
231 /* Ignore the first command of a pair; the hardware cafe_nand_cmdfunc()
234 cafe_dev_dbg(&cafe->pdev->dev, "Setup for delayed command, ctl1 %08x, dlen %x\n", cafe_nand_cmdfunc()
239 if (command == NAND_CMD_RNDOUT) cafe_nand_cmdfunc()
241 else if (command == NAND_CMD_READ0 && mtd->writesize > 512) cafe_nand_cmdfunc()
258 the command. */ cafe_nand_cmdfunc()
267 printk("About to write command %08x to register 0\n", ctl1); cafe_nand_cmdfunc()
292 command, 500000-c, irqs, cafe_readl(cafe, NAND_IRQ)); cafe_nand_cmdfunc()
297 switch (command) { cafe_nand_cmdfunc()
H A Dpxa3xx_nand.c46 * Define a buffer size for the initial command that detects the flash device:
47 * STATUS, READID and PARAM. The largest of these is the PARAM command,
124 #define EXT_CMD_TYPE_FINAL 3 /* Final command */
408 * command buffer, otherwise, it does not work.
740 static void prepare_start_command(struct pxa3xx_nand_info *info, int command) prepare_start_command() argument
758 switch (command) { prepare_start_command()
775 * If we are about to issue a read command, or about to set prepare_start_command()
778 if (command == NAND_CMD_READ0 || prepare_start_command()
779 command == NAND_CMD_READOOB || prepare_start_command()
780 command == NAND_CMD_SEQIN) { prepare_start_command()
788 static int prepare_set_command(struct pxa3xx_nand_info *info, int command, prepare_set_command() argument
805 if (command == NAND_CMD_SEQIN) prepare_set_command()
811 switch (command) { prepare_set_command()
819 if (command == NAND_CMD_READOOB) prepare_set_command()
823 * Multiple page read needs an 'extended command type' field, prepare_set_command()
847 * SEQIN command that sets the page address. prepare_set_command()
853 | command; prepare_set_command()
867 /* Second command setting for large pages */ prepare_set_command()
870 * Multiple page write uses the 'extended command' prepare_set_command()
871 * field. This can be used to issue a command dispatch prepare_set_command()
881 * This is the command dispatch that completes a chunked prepare_set_command()
887 | command; prepare_set_command()
908 | command; prepare_set_command()
918 | command; prepare_set_command()
927 | command; prepare_set_command()
945 | command; prepare_set_command()
955 dev_err(&info->pdev->dev, "non-supported command %x\n", prepare_set_command()
956 command); prepare_set_command()
963 static void nand_cmdfunc(struct mtd_info *mtd, unsigned command, nand_cmdfunc() argument
989 prepare_start_command(info, command); nand_cmdfunc()
992 exec_cmd = prepare_set_command(info, command, 0, column, page_addr); nand_cmdfunc()
1003 /* Stop State Machine for next command cycle */ nand_cmdfunc()
1011 const unsigned command, nand_cmdfunc_extended()
1037 /* Select the extended command for the first command */ nand_cmdfunc_extended()
1038 switch (command) { nand_cmdfunc_extended()
1054 prepare_start_command(info, command); nand_cmdfunc_extended()
1057 * Prepare the "is ready" completion before starting a command nand_cmdfunc_extended()
1058 * transaction sequence. If the command is not executed the nand_cmdfunc_extended()
1061 * We can do that inside the loop because the command variable nand_cmdfunc_extended()
1068 exec_cmd = prepare_set_command(info, command, ext_cmd_type, nand_cmdfunc_extended()
1082 /* Stop State Machine for next command cycle */ nand_cmdfunc_extended()
1088 if (info->data_size == 0 && command != NAND_CMD_PAGEPROG) nand_cmdfunc_extended()
1092 * After a splitted program command sequence has issued nand_cmdfunc_extended()
1093 * the command dispatch, the command sequence is complete. nand_cmdfunc_extended()
1096 command == NAND_CMD_PAGEPROG && nand_cmdfunc_extended()
1100 if (command == NAND_CMD_READ0 || command == NAND_CMD_READOOB) { nand_cmdfunc_extended()
1108 * If a splitted program command has no more data to transfer, nand_cmdfunc_extended()
1109 * the command dispatch must be issued to complete. nand_cmdfunc_extended()
1111 } else if (command == NAND_CMD_PAGEPROG && nand_cmdfunc_extended()
1164 /* Has just send a new command? */ pxa3xx_nand_read_byte()
1223 /* pxa3xx_nand_send_command has waited for command complete */ pxa3xx_nand_waitfunc()
1561 * (aka splitted) command handling, pxa3xx_nand_scan()
1010 nand_cmdfunc_extended(struct mtd_info *mtd, const unsigned command, int column, int page_addr) nand_cmdfunc_extended() argument
H A Dau1550nd.c189 /* Select the command latch by setting CLE to high */
191 /* Deselect the command latch by setting CLE to low */
262 * au1550_command - Send command to NAND device
264 * @command: the command to be sent
265 * @column: the column address for this command, -1 if none
266 * @page_addr: the page address for this command, -1 if none
268 static void au1550_command(struct mtd_info *mtd, unsigned command, int column, int page_addr) au1550_command() argument
275 /* Begin command latch cycle */ au1550_command()
278 * Write out the command to the device. au1550_command()
280 if (command == NAND_CMD_SEQIN) { au1550_command()
296 ctx->write_byte(mtd, command); au1550_command()
308 !nand_opcode_8bits(command)) au1550_command()
315 if (command == NAND_CMD_READ0 || au1550_command()
316 command == NAND_CMD_READ1 || au1550_command()
317 command == NAND_CMD_READOOB) { au1550_command()
346 switch (command) { au1550_command()
457 /* 30 us command delay time */ au1550nd_probe()
/linux-4.1.27/drivers/scsi/ufs/
H A Dufshcd.h80 * struct uic_command - UIC command structure
81 * @command: UIC command
82 * @argument1: UIC command argument 1
83 * @argument2: UIC command argument 2
84 * @argument3: UIC command argument 3
85 * @cmd_active: Indicate if UIC command is outstanding
86 * @result: UIC command result
87 * @done: UIC command completion
90 u32 command; member in struct:uic_command
149 * @utr_descriptor_ptr: UTRD address of the command
150 * @ucd_req_ptr: UCD address of the command
151 * @ucd_rsp_ptr: Response UPIU address for this command
152 * @ucd_prdt_ptr: PRDT address of the command
153 * @cmd: pointer to SCSI command
154 * @sense_buffer: pointer to sense buffer address of the SCSI command
156 * @scsi_status: SCSI status of the command
158 * @task_tag: Task tag of the command
159 * @lun: LUN of the command
160 * @intr_cmd: Interrupt command (doesn't participate in interrupt aggregation)
193 * @type: device management command type - Query, NOP OUT
194 * @lock: lock to allow one command at a time
196 * @tag_wq: wait queue until free command slot is available
348 * @active_uic_cmd: handle of active UIC command
349 * @uic_cmd_mutex: mutex for uic command
368 * @dev_cmd: ufs device management command information
369 * @last_dme_cmd_tstamp: time stamp of the last completed DME command
421 * delay before each dme command is required as the unipro
557 /* UIC command interfaces for DME primitives */
/linux-4.1.27/drivers/staging/vt6656/
H A Dwcmd.c21 * Purpose: Handles the management command interface functions
59 priv->command = priv->cmd_queue[priv->cmd_dequeue_idx]; vnt_cmd_complete()
65 switch (priv->command) { vnt_cmd_complete()
169 int vnt_schedule_command(struct vnt_private *priv, enum vnt_cmd command) vnt_schedule_command() argument
175 priv->cmd_queue[priv->cmd_enqueue_idx] = command; vnt_schedule_command()
/linux-4.1.27/drivers/pci/hotplug/
H A Dpciehp_pci.c83 u16 command; pciehp_unconfigure_device() local
118 pci_read_config_word(dev, PCI_COMMAND, &command); pciehp_unconfigure_device()
119 command &= ~(PCI_COMMAND_MASTER | PCI_COMMAND_SERR); pciehp_unconfigure_device()
120 command |= PCI_COMMAND_INTX_DISABLE; pciehp_unconfigure_device()
121 pci_write_config_word(dev, PCI_COMMAND, command); pciehp_unconfigure_device()
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
H A Dbfi_cna.h95 * @brief H2I command structure for resetting the stats.
103 * @brief H2I command structure for resetting the stats.
111 * @brief get configuration command from host
130 * @brief get configuration command from host
148 /* @brief mailbox command structures from host to firmware */
/linux-4.1.27/arch/cris/arch-v32/mach-fs/
H A Ddram_init.S71 ; Issue NOP command
81 ; Issue initialization command sequence
85 move.b [$r2+], $r6 ; Load command
88 ; Wait 80 ns between each command
92 cmp.d $r2, $r3 ; Last command?
/linux-4.1.27/sound/drivers/opl3/
H A Dopl3_lib.c105 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER_CONTROL, OPL3_TIMER1_MASK | OPL3_TIMER2_MASK); snd_opl3_detect()
107 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER_CONTROL, OPL3_IRQ_RESET); snd_opl3_detect()
114 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER1, 0xff); snd_opl3_detect()
116 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER_CONTROL, OPL3_TIMER2_MASK | OPL3_TIMER1_START); snd_opl3_detect()
122 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER_CONTROL, OPL3_TIMER1_MASK | OPL3_TIMER2_MASK); snd_opl3_detect()
124 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER_CONTROL, OPL3_IRQ_RESET); snd_opl3_detect()
170 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER1, 256 - ticks); /* timer 1 count */ snd_opl3_timer1_start()
171 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER_CONTROL, tmp); /* enable timer 1 IRQ */ snd_opl3_timer1_start()
186 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER_CONTROL, tmp); /* disable timer #1 */ snd_opl3_timer1_stop()
207 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER2, 256 - ticks); /* timer 1 count */ snd_opl3_timer2_start()
208 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER_CONTROL, tmp); /* enable timer 1 IRQ */ snd_opl3_timer2_start()
223 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER_CONTROL, tmp); /* disable timer #1 */ snd_opl3_timer2_stop()
381 if (! opl3->command) { snd_opl3_init()
382 printk(KERN_ERR "snd_opl3_init: command not defined!\n"); snd_opl3_init()
386 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TEST, OPL3_ENABLE_WAVE_SELECT); snd_opl3_init()
388 opl3->command(opl3, OPL3_LEFT | OPL3_REG_PERCUSSION, 0x00); snd_opl3_init()
398 opl3->command(opl3, OPL3_RIGHT | OPL3_REG_MODE, OPL3_OPL3_ENABLE); snd_opl3_init()
439 opl3->command = &snd_opl3_command; snd_opl3_create()
442 opl3->command = &snd_opl2_command; snd_opl3_create()
453 opl3->command = &snd_opl3_command; snd_opl3_create()
H A Dopl3_drums.c92 opl3->command(opl3, opl3_reg, data->am_vib); snd_opl3_drum_voice_set()
96 opl3->command(opl3, opl3_reg, data->ksl_level); snd_opl3_drum_voice_set()
100 opl3->command(opl3, opl3_reg, data->attack_decay); snd_opl3_drum_voice_set()
104 opl3->command(opl3, opl3_reg, data->sustain_release); snd_opl3_drum_voice_set()
108 opl3->command(opl3, opl3_reg, data->feedback_connection); snd_opl3_drum_voice_set()
112 opl3->command(opl3, opl3_reg, data->wave_select); snd_opl3_drum_voice_set()
126 opl3->command(opl3, opl3_reg, data->fnum); snd_opl3_drum_note_set()
130 opl3->command(opl3, opl3_reg, data->octave_f); snd_opl3_drum_note_set()
149 opl3->command(opl3, opl3_reg, reg_val); snd_opl3_drum_vol_set()
159 opl3->command(opl3, opl3_reg, reg_val); snd_opl3_drum_vol_set()
224 opl3->command(opl3, OPL3_LEFT | OPL3_REG_PERCUSSION, snd_opl3_drum_switch()
H A Dopl3_synth.c382 opl3->command(opl3, opl3_reg, OPL3_TOTAL_LEVEL_MASK); /* Operator 1 volume */ snd_opl3_reset()
384 opl3->command(opl3, opl3_reg, OPL3_TOTAL_LEVEL_MASK); /* Operator 2 volume */ snd_opl3_reset()
387 opl3->command(opl3, opl3_reg, 0x00); /* Note off */ snd_opl3_reset()
393 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TEST, OPL3_ENABLE_WAVE_SELECT); snd_opl3_reset()
394 opl3->command(opl3, OPL3_LEFT | OPL3_REG_PERCUSSION, 0x00); /* Melodic mode */ snd_opl3_reset()
428 opl3->command(opl3, opl3_reg, reg_val); snd_opl3_play_note()
441 opl3->command(opl3, opl3_reg, reg_val); snd_opl3_play_note()
496 opl3->command(opl3, opl3_reg, reg_val); snd_opl3_set_voice()
505 opl3->command(opl3, opl3_reg, reg_val); snd_opl3_set_voice()
514 opl3->command(opl3, opl3_reg, reg_val); snd_opl3_set_voice()
523 opl3->command(opl3, opl3_reg, reg_val); snd_opl3_set_voice()
539 opl3->command(opl3, opl3_reg, reg_val); snd_opl3_set_voice()
544 opl3->command(opl3, opl3_reg, reg_val); snd_opl3_set_voice()
557 opl3->command(opl3, OPL3_LEFT | OPL3_REG_KBD_SPLIT, reg_val); snd_opl3_set_params()
585 opl3->command(opl3, OPL3_LEFT | OPL3_REG_PERCUSSION, reg_val); snd_opl3_set_params()
596 opl3->command(opl3, OPL3_RIGHT | OPL3_REG_CONNECTION_SELECT, 0x00); /* Clear 4-op connections */ snd_opl3_set_mode()
612 opl3->command(opl3, OPL3_RIGHT | OPL3_REG_CONNECTION_SELECT, reg_val); snd_opl3_set_connection()
/linux-4.1.27/drivers/media/pci/cx18/
H A Dcx18-mailbox.h55 /* The sender sets a handle in 'request' after he fills the command. The
60 /* The receiver detects a new command when 'req' is different than 'ack'.
61 He sets 'ack' to the same value as 'req' to clear the command. He, also,
66 /* 'cmd' identifies the command. The list of these commands are in
69 /* Each command can have up to 6 arguments */
72 command is completed successfully, the error will be ERR_SYS_SUCCESS.
77 If the command is pending, the return will be passed in a MB from the
H A Dcx23418.h28 /* The MSB of the command code indicates that this is the completion of a
29 command */
32 /* Description: This command creates a new instance of a certain task
40 /* Description: This command destroys an instance of a task
77 /* Description: This command indicates that a Memory Descriptor List has been
96 /* Description: This command starts streaming with the set channel type
101 /* Description: This command stops streaming with the set channel type
107 /* Description: This command pauses streaming with the set channel type
112 /* Description: This command resumes streaming with the set channel type
127 /* Description: This command sets the channel type. This can only be done
166 /* Description: This command set filter parameters
176 /* Description: This command set spatial filter type
184 /* Description: This command set coring levels for median filter
193 /* Description: This command set the picture type mask for index file
354 /* Description: This command provides the physical base address of the local
360 /* Description: This command provides the offsets in the device memory where
370 /* Description: This command provides the offset to a Memory Descriptor List
379 /* Description: This command requests return of all current Memory
385 /* Description: This command signals the cpu that the dat buffer has been
396 /* Received unknown command */
399 /* First parameter in the command is invalid */
402 /* Second parameter in the command is invalid */
420 /* Device busy, command cannot be executed */
/linux-4.1.27/drivers/misc/mei/
H A Dhw.h49 /* Host bus message command opcode */
51 /* Host bus message command RESPONSE */
167 * struct hbm_cl_cmd - client specific host bus command
170 * @hbm_cmd: bus message command header
253 * @hbm_cmd: bus message command header
264 * @hbm_cmd: bus message command header
279 * @hbm_cmd: bus message command header
/linux-4.1.27/drivers/crypto/caam/
H A Ddesc_constr.h105 static inline void append_cmd(u32 *desc, u32 command) append_cmd() argument
109 *cmd = command; append_cmd()
126 /* Write command without affecting header, and return pointer to next word */ write_cmd()
127 static inline u32 *write_cmd(u32 *desc, u32 command) write_cmd() argument
129 *desc = command; write_cmd()
135 u32 command) append_cmd_ptr()
137 append_cmd(desc, command | len); append_cmd_ptr()
141 /* Write length after pointer, rather than inside command */ append_cmd_ptr_extlen()
143 unsigned int len, u32 command) append_cmd_ptr_extlen()
145 append_cmd(desc, command); append_cmd_ptr_extlen()
146 if (!(command & (SQIN_RTO | SQIN_PRE))) append_cmd_ptr_extlen()
152 u32 command) append_cmd_data()
154 append_cmd(desc, command | IMMEDIATE | len); append_cmd_data()
307 * Append math command. Only the last part of destination and source need to
134 append_cmd_ptr(u32 *desc, dma_addr_t ptr, int len, u32 command) append_cmd_ptr() argument
142 append_cmd_ptr_extlen(u32 *desc, dma_addr_t ptr, unsigned int len, u32 command) append_cmd_ptr_extlen() argument
151 append_cmd_data(u32 *desc, void *data, int len, u32 command) append_cmd_data() argument
/linux-4.1.27/sound/firewire/
H A Dfcp.c63 /* do transaction and check buf[1-5] are the same against command */ avc_general_set_sig_fmt()
106 /* do transaction and check buf[1-4] are the same against command */ avc_general_get_sig_fmt()
202 * fcp_avc_transaction - send an AV/C command and wait for its response
204 * @command: a buffer containing the command frame; must be DMA-able
205 * @command_size: the size of @command
211 * This function sends a FCP command frame to the target and waits for the
219 * @command and @response can point to the same buffer.
224 const void *command, unsigned int command_size, fcp_avc_transaction()
238 if (*(const u8 *)command == 0x00 || *(const u8 *)command == 0x03) fcp_avc_transaction()
250 (void *)command, command_size, 0); fcp_avc_transaction()
260 * on command completion once an INTERIM response has fcp_avc_transaction()
273 dev_err(&t.unit->device, "FCP command timed out\n"); fcp_avc_transaction()
223 fcp_avc_transaction(struct fw_unit *unit, const void *command, unsigned int command_size, void *response, unsigned int response_size, unsigned int response_match_bytes) fcp_avc_transaction() argument
H A Dfcp.h28 const void *command, unsigned int command_size,
/linux-4.1.27/drivers/media/pci/saa7164/
H A Dsaa7164-bus.c116 dprintk(DBGLVL_BUS, " .command = 0x%x\n", m->command); saa7164_bus_dumpmsg()
124 * Places a command or a response on the bus. The implementation does not
125 * know if it is a command or a response it just places the data on the
127 * structure. If the command or response does not fit into the bus ring
230 msg->command = (__force u32)cpu_to_le32(msg->command); saa7164_bus_set()
298 msg->command = le32_to_cpu((__force __le32)msg->command); saa7164_bus_set()
310 * Receive a command or a response from the bus. The implementation does not
311 * know if it is a command or a response it simply dequeues the data,
394 msg_tmp.command = le32_to_cpu((__force __le32)msg_tmp.command); saa7164_bus_get()
404 /* Check if the command/response matches what is expected */ saa7164_bus_get()
405 if ((msg_tmp.id != msg->id) || (msg_tmp.command != msg->command) || saa7164_bus_get()
416 /* Get the actual command and response from the bus */ saa7164_bus_get()
479 msg->command = le32_to_cpu((__force __le32)msg->command); saa7164_bus_get()
/linux-4.1.27/drivers/usb/serial/
H A Dwhiteheat.c146 waiting for a command to
162 static int firm_send_command(struct usb_serial_port *port, __u8 command,
176 #define COMMAND_TIMEOUT (2*HZ) /* 2 second timeout for a command */
259 __u8 *command; whiteheat_attach() local
266 command = kmalloc(2, GFP_KERNEL); whiteheat_attach()
267 if (!command) whiteheat_attach()
269 command[0] = WHITEHEAT_GET_HW_INFO; whiteheat_attach()
270 command[1] = 0; whiteheat_attach()
281 ret = usb_bulk_msg(serial->dev, pipe, command, 2, whiteheat_attach()
284 dev_err(&serial->dev->dev, "%s: Couldn't send command [%d]\n", whiteheat_attach()
288 dev_err(&serial->dev->dev, "%s: Send command incomplete [%d]\n", whiteheat_attach()
307 } else if (result[0] != command[0]) { whiteheat_attach()
331 kfree(command); whiteheat_attach()
347 kfree(command); whiteheat_attach()
353 kfree(command); whiteheat_attach()
362 /* free up our private data for our command port */ whiteheat_release()
398 /* send an open port command */ whiteheat_open()
570 waiting command to wakeup */ command_port_read_callback()
592 static int firm_send_command(struct usb_serial_port *port, __u8 command, firm_send_command() argument
603 dev_dbg(dev, "%s - command %d\n", __func__, command); firm_send_command()
611 transfer_buffer[0] = command; firm_send_command()
620 /* wait for the command to complete */ firm_send_command()
627 dev_dbg(dev, "%s - command timed out.\n", __func__); firm_send_command()
633 dev_dbg(dev, "%s - command failed.\n", __func__); firm_send_command()
639 dev_dbg(dev, "%s - command completed.\n", __func__); firm_send_command()
640 switch (command) { firm_send_command()
/linux-4.1.27/drivers/mfd/
H A Dsi476x-cmd.c2 * drivers/mfd/si476x-cmd.c -- Subroutines implementing command
192 cause = "Bad command"; si476x_core_parse_and_nag_about_error()
251 * si476x_core_send_command() - sends a command to si476x and waits its
255 * @command: command id
256 * @args: command arguments we are sending
267 const u8 command, si476x_core_send_command()
288 /* First send the command and its arguments */ si476x_core_send_command()
289 data[0] = command; si476x_core_send_command()
297 "Error while sending command 0x%02x\n", si476x_core_send_command()
298 command); si476x_core_send_command()
302 /* Set CTS to zero only after the command is send to avoid si476x_core_send_command()
306 /* if (unlikely(command == CMD_POWER_DOWN) */ si476x_core_send_command()
307 if (!wait_event_timeout(core->command, si476x_core_send_command()
312 __func__, command); si476x_core_send_command()
318 tuner is actually completed the POWER_UP command. To si476x_core_send_command()
321 if (unlikely(!core->client->irq && command == CMD_POWER_UP)) { si476x_core_send_command()
322 if (!wait_event_timeout(core->command, si476x_core_send_command()
334 "Error while reading response for command 0x%02x\n", si476x_core_send_command()
335 command); si476x_core_send_command()
345 "[CMD 0x%02x] Chip set error flag\n", command); si476x_core_send_command()
402 * si476x_cmd_func_info() - send 'FUNC_INFO' command to the device
403 * @core: device to send the command to
405 * returned by the command
407 * The command requests the firmware and patch version for currently
436 * si476x_cmd_set_property() - send 'SET_PROPERTY' command to the device
437 * @core: device to send the command to
464 * si476x_cmd_get_property() - send 'GET_PROPERTY' command to the device
465 * @core: device to send the command to
493 * si476x_cmd_dig_audio_pin_cfg() - send 'DIG_AUDIO_PIN_CFG' command to
495 * @core: device to send the command to
552 * @core - device to send the command to
602 * @core - device to send the command to
659 * @core - device to send the command to
686 * si476x_cmd_intb_pin_cfg - send 'INTB_PIN_CFG' command to the device
687 * @core - device to send the command to
738 * si476x_cmd_am_rsq_status - send 'AM_RSQ_STATUS' command to the
740 * @core - device to send the command to
741 * @rsqack - if set command clears RSQINT, SNRINT, SNRLINT, RSSIHINT,
747 * @report - all signal quality information retured by the command
748 * (if NULL then the output of the command is ignored)
769 * command can be used to just acknowledge different interrupt si476x_core_cmd_am_rsq_status()
872 * si476x_cmd_fm_seek_start - send 'FM_SEEK_START' command to the
874 * @core - device to send the command to
900 * si476x_cmd_fm_rds_status - send 'FM_RDS_STATUS' command to the
902 * @core - device to send the command to
906 * @mtfifo if set the command clears RDS receive FIFO
907 * @intack if set the command clards the RDSINT bit.
928 * Besides getting RDS status information this command can be si476x_core_cmd_fm_rds_status()
1046 * si476x_cmd_am_seek_start - send 'FM_SEEK_START' command to the
1048 * @core - device to send the command to
1194 * command can be used to just acknowledge different interrupt si476x_core_cmd_fm_rsq_status_a10()
1248 * command can be used to just acknowledge different interrupt si476x_core_cmd_fm_rsq_status_a20()
1303 * command can be used to just acknowledge different interrupt si476x_core_cmd_fm_rsq_status_a30()
1555 MODULE_DESCRIPTION("API for command exchange for si476x");
266 si476x_core_send_command(struct si476x_core *core, const u8 command, const u8 args[], const int argn, u8 resp[], const int respn, const int usecs) si476x_core_send_command() argument
H A Dcros_ec.c39 out[1] = msg->command; cros_ec_prepare_tx()
57 dev_dbg(ec_dev->dev, "command 0x%02x in progress\n", cros_ec_check_result()
58 msg->command); cros_ec_check_result()
61 dev_dbg(ec_dev->dev, "command 0x%02x returned %d\n", cros_ec_check_result()
62 msg->command, msg->result); cros_ec_check_result()
80 status_msg.command = EC_CMD_GET_COMMS_STATUS; cros_ec_cmd_xfer()
/linux-4.1.27/drivers/media/pci/bt8xx/
H A Ddst_ca.c74 static void put_command_and_length(u8 *data, int command, int length) put_command_and_length() argument
76 data[0] = (command >> 16) & 0xff; put_command_and_length()
77 data[1] = (command >> 8) & 0xff; put_command_and_length()
78 data[2] = command & 0xff; put_command_and_length()
157 static u8 command[8] = {0x07, 0x40, 0x01, 0x00, 0x01, 0x00, 0x00, 0xff}; ca_get_app_info() local
159 put_checksum(&command[0], command[0]); ca_get_app_info()
160 if ((dst_put_ci(state, command, sizeof(command), state->messages, GET_REPLY)) < 0) { ca_get_app_info()
179 // First, the command and length fields ca_get_app_info()
212 // Set the command and length of the output ca_get_ca_info()
318 u32 command = 0; ca_get_message() local
328 command = command | p_ca_message->msg[i]; ca_get_message()
330 command = command << 8; ca_get_message()
332 dprintk(verbose, DST_CA_NOTICE, 1, " Command=[0x%x]", command); ca_get_message()
334 switch (command) { ca_get_message()
482 u32 command = 0; ca_send_message() local
500 command = 0; ca_send_message()
503 command = command | p_ca_message->msg[i]; ca_send_message()
505 command = command << 8; ca_send_message()
507 dprintk(verbose, DST_CA_DEBUG, 1, " Command=[0x%x]\n", command); ca_send_message()
509 switch (command) { ca_send_message()
/linux-4.1.27/drivers/usb/host/
H A Dxhci.c94 cmd = readl(&xhci->op_regs->command); xhci_quiesce()
96 writel(cmd, &xhci->op_regs->command); xhci_quiesce()
132 temp = readl(&xhci->op_regs->command); xhci_start()
136 writel(temp, &xhci->op_regs->command); xhci_start()
164 u32 command; xhci_reset() local
175 command = readl(&xhci->op_regs->command); xhci_reset()
176 command |= CMD_RESET; xhci_reset()
177 writel(command, &xhci->op_regs->command); xhci_reset()
189 ret = xhci_handshake(&xhci->op_regs->command, xhci_reset()
536 * device contexts (?), set up a command ring segment (or two?), create event
594 * set command ring pointer and event ring pointer.
642 temp = readl(&xhci->op_regs->command); xhci_run()
646 writel(temp, &xhci->op_regs->command); xhci_run()
656 struct xhci_command *command; xhci_run() local
657 command = xhci_alloc_command(xhci, false, false, GFP_KERNEL); xhci_run()
658 if (!command) xhci_run()
660 xhci_queue_vendor_command(xhci, command, 0, 0, 0, xhci_run()
781 xhci->s3.command = readl(&xhci->op_regs->command); xhci_save_registers()
794 writel(xhci->s3.command, &xhci->op_regs->command); xhci_restore_registers()
809 /* step 2: initialize command ring buffer */ xhci_set_cmd_ring_deq()
817 "// Setting command ring address to 0x%llx", xhci_set_cmd_ring_deq()
823 * The whole command ring must be cleared to zero when we suspend the host.
825 * The host doesn't save the command ring pointer in the suspend well, so we
827 * aligned, because of the reserved bits in the command ring dequeue pointer
864 * the command ring pointers. xhci_clear_command_ring()
914 u32 command; xhci_suspend() local
938 command = readl(&xhci->op_regs->command); xhci_suspend()
939 command &= ~CMD_RUN; xhci_suspend()
940 writel(command, &xhci->op_regs->command); xhci_suspend()
957 command = readl(&xhci->op_regs->command); xhci_suspend()
958 command |= CMD_CSS; xhci_suspend()
959 writel(command, &xhci->op_regs->command); xhci_suspend()
996 u32 command, temp = 0, status; xhci_resume() local
1020 /* step 2: initialize command ring buffer */ xhci_resume()
1024 command = readl(&xhci->op_regs->command); xhci_resume()
1025 command |= CMD_CRS; xhci_resume()
1026 writel(command, &xhci->op_regs->command); xhci_resume()
1095 command = readl(&xhci->op_regs->command); xhci_resume()
1096 command |= CMD_RUN; xhci_resume()
1097 writel(command, &xhci->op_regs->command); xhci_resume()
1246 struct usb_device *udev, struct xhci_command *command,
1253 * we need to issue an evaluate context command and wait on it.
1261 struct xhci_command *command; xhci_check_maxpacket() local
1280 "Issuing evaluate context command."); xhci_check_maxpacket()
1282 /* Set up the input context flags for the command */ xhci_check_maxpacket()
1287 command = xhci_alloc_command(xhci, false, true, GFP_KERNEL); xhci_check_maxpacket()
1288 if (!command) xhci_check_maxpacket()
1291 command->in_ctx = xhci->devs[slot_id]->in_ctx; xhci_check_maxpacket()
1292 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); xhci_check_maxpacket()
1303 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); xhci_check_maxpacket()
1311 xhci_dbg_ctx(xhci, command->in_ctx, ep_index); xhci_check_maxpacket()
1315 ret = xhci_configure_endpoint(xhci, urb->dev, command, xhci_check_maxpacket()
1323 kfree(command->completion); xhci_check_maxpacket()
1324 kfree(command); xhci_check_maxpacket()
1520 * Transfer Ring Dequeue Pointer command. This will be the common case,
1526 * endpoint command, as noted in the xHCI 0.95 errata.
1532 * doorbell while this code is waiting for a Stop Endpoint command to complete.
1550 struct xhci_command *command; xhci_urb_dequeue() local
1585 /* Let the stop endpoint command watchdog timer (which set this xhci_urb_dequeue()
1618 /* Queue a stop endpoint command, but only if this is xhci_urb_dequeue()
1622 command = xhci_alloc_command(xhci, false, false, GFP_ATOMIC); xhci_urb_dequeue()
1623 if (!command) { xhci_urb_dequeue()
1632 xhci_queue_stop_endpoint(xhci, command, urb->dev->slot_id, xhci_urb_dequeue()
1749 /* So we won't queue a reset ep command for a root hub */ xhci_add_endpoint()
1759 /* FIXME when we have to issue an evaluate endpoint command to xhci_add_endpoint()
1846 * configure endpoint command will leave that endpoint's state xhci_zero_in_ctx()
1873 xhci_warn(xhci, "Timeout while waiting for configure endpoint command\n"); xhci_configure_endpoint_result()
1898 "ERROR: Incompatible device for endpoint configure command.\n"); xhci_configure_endpoint_result()
1903 "Successful Endpoint Configure command"); xhci_configure_endpoint_result()
1907 xhci_err(xhci, "ERROR: unexpected command completion code 0x%x.\n", xhci_configure_endpoint_result()
1924 xhci_warn(xhci, "Timeout while waiting for evaluate context command\n"); xhci_evaluate_context_result()
1929 "WARN: xHCI driver setup invalid evaluate context command.\n"); xhci_evaluate_context_result()
1934 "WARN: slot not enabled for evaluate context command.\n"); xhci_evaluate_context_result()
1939 "WARN: invalid context state for evaluate context command.\n"); xhci_evaluate_context_result()
1945 "ERROR: Incompatible device for evaluate context command.\n"); xhci_evaluate_context_result()
1955 "Successful evaluate context command"); xhci_evaluate_context_result()
1959 xhci_err(xhci, "ERROR: unexpected command completion code 0x%x.\n", xhci_evaluate_context_result()
1975 * Device command and is never removed until the slot is disabled. xhci_count_num_new_endpoints()
2003 * command completes. We can't subtract the dropped endpoints from the number
2004 * of active endpoints until the command completes because we can oversubscribe
2007 * - the first configure endpoint command drops more endpoints than it adds
2008 * - a second configure endpoint command that adds more endpoints is queued
2009 * - the first configure endpoint command fails, so the config is unchanged
2010 * - the second command may succeed, even though there isn't enough resources
2055 * Now that the command has completed, clean up the active endpoint count by
2642 /* Issue a configure endpoint command or evaluate context command
2647 struct xhci_command *command, xhci_configure_endpoint()
2655 if (!command) xhci_configure_endpoint()
2661 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); xhci_configure_endpoint()
2678 xhci_reserve_bandwidth(xhci, virt_dev, command->in_ctx)) { xhci_configure_endpoint()
2687 ret = xhci_queue_configure_endpoint(xhci, command, xhci_configure_endpoint()
2688 command->in_ctx->dma, xhci_configure_endpoint()
2691 ret = xhci_queue_evaluate_context(xhci, command, xhci_configure_endpoint()
2692 command->in_ctx->dma, xhci_configure_endpoint()
2705 /* Wait for the configure endpoint command to complete */ xhci_configure_endpoint()
2706 wait_for_completion(command->completion); xhci_configure_endpoint()
2710 &command->status); xhci_configure_endpoint()
2713 &command->status); xhci_configure_endpoint()
2717 /* If the command failed, remove the reserved resources. xhci_configure_endpoint()
2761 struct xhci_command *command; xhci_check_bandwidth() local
2774 command = xhci_alloc_command(xhci, false, true, GFP_KERNEL); xhci_check_bandwidth()
2775 if (!command) xhci_check_bandwidth()
2778 command->in_ctx = virt_dev->in_ctx; xhci_check_bandwidth()
2781 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); xhci_check_bandwidth()
2792 /* Don't issue the command if there's no endpoints to update. */ xhci_check_bandwidth()
2814 ret = xhci_configure_endpoint(xhci, udev, command, xhci_check_bandwidth()
2851 kfree(command->completion); xhci_check_bandwidth()
2852 kfree(command); xhci_check_bandwidth()
2920 "reset ep command\n"); xhci_setup_input_ctx_for_quirk()
2954 * issue a configure endpoint command later. xhci_cleanup_stalled_ring()
2969 "configure endpoint command"); xhci_cleanup_stalled_ring()
2977 * already be cleared with a reset endpoint command issued when the STALL tx
3146 * coordinate mass storage command queueing across multiple endpoints (basically
3150 * for each endpoint and issuing a configure endpoint command for all endpoints.
3193 xhci_dbg(xhci, "Could not allocate xHCI command structure.\n"); xhci_alloc_streams()
3253 /* Set up the input context for a configure endpoint command. */ xhci_alloc_streams()
3272 /* Issue and wait for the configure endpoint command */ xhci_alloc_streams()
3276 /* xHC rejected the configure endpoint command for some reason, so we xhci_alloc_streams()
3317 * Modify the endpoint context state, submit a configure endpoint command,
3327 struct xhci_command *command; xhci_free_streams() local
3336 /* Set up a configure endpoint command to remove the streams rings */ xhci_free_streams()
3350 command = vdev->eps[ep_index].stream_info->free_streams_command; xhci_free_streams()
3351 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); xhci_free_streams()
3363 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); xhci_free_streams()
3367 xhci_endpoint_copy(xhci, command->in_ctx, xhci_free_streams()
3372 xhci_setup_input_ctx_for_config_ep(xhci, command->in_ctx, xhci_free_streams()
3377 /* Issue and wait for the configure endpoint command, xhci_free_streams()
3380 ret = xhci_configure_endpoint(xhci, udev, command, xhci_free_streams()
3383 /* xHC rejected the configure endpoint command for some reason, so we xhci_free_streams()
3407 * Device command, or a Disable Slot command. The Reset Device command leaves
3408 * the control endpoint intact, whereas the Disable Slot command deletes it.
3443 * Wait for the Reset Device command to finish. Remove all structures
3505 /* Allocate the command structure that holds the struct completion. xhci_discover_or_reset_device()
3513 xhci_dbg(xhci, "Couldn't allocate command structure.\n"); xhci_discover_or_reset_device()
3517 /* Attempt to submit the Reset Device command to the command ring */ xhci_discover_or_reset_device()
3522 xhci_dbg(xhci, "FIXME: allocate a command ring segment\n"); xhci_discover_or_reset_device()
3529 /* Wait for the Reset Device command to finish */ xhci_discover_or_reset_device()
3532 /* The Reset Device command can't fail, according to the 0.95/0.96 spec, xhci_discover_or_reset_device()
3540 xhci_warn(xhci, "Timeout waiting for reset device command\n"); xhci_discover_or_reset_device()
3553 xhci_dbg(xhci, "Successful reset device command.\n"); xhci_discover_or_reset_device()
3559 "reset device command.\n", ret); xhci_discover_or_reset_device()
3622 struct xhci_command *command; xhci_free_dev() local
3624 command = xhci_alloc_command(xhci, false, false, GFP_KERNEL); xhci_free_dev()
3625 if (!command) xhci_free_dev()
3643 kfree(command); xhci_free_dev()
3662 kfree(command); xhci_free_dev()
3666 if (xhci_queue_slot_control(xhci, command, TRB_DISABLE_SLOT, xhci_free_dev()
3669 xhci_dbg(xhci, "FIXME: allocate a command ring segment\n"); xhci_free_dev()
3676 * Event command completion handler will free any data structures xhci_free_dev()
3705 * Returns 0 if the xHC ran out of device slots, the Enable Slot command
3713 struct xhci_command *command; xhci_alloc_dev() local
3715 command = xhci_alloc_command(xhci, false, false, GFP_KERNEL); xhci_alloc_dev()
3716 if (!command) xhci_alloc_dev()
3722 command->completion = &xhci->addr_dev; xhci_alloc_dev()
3723 ret = xhci_queue_slot_control(xhci, command, TRB_ENABLE_SLOT, 0); xhci_alloc_dev()
3727 xhci_dbg(xhci, "FIXME: allocate a command ring segment\n"); xhci_alloc_dev()
3728 kfree(command); xhci_alloc_dev()
3734 wait_for_completion(command->completion); xhci_alloc_dev()
3738 if (!slot_id || command->status != COMP_SUCCESS) { xhci_alloc_dev()
3743 kfree(command); xhci_alloc_dev()
3779 kfree(command); xhci_alloc_dev()
3787 command->completion = NULL; xhci_alloc_dev()
3788 command->status = 0; xhci_alloc_dev()
3789 if (!xhci_queue_slot_control(xhci, command, TRB_DISABLE_SLOT, xhci_alloc_dev()
3797 * Issue an Address Device command and optionally send a corresponding
3800 * so we should only issue and wait on one address command at the same time.
3813 struct xhci_command *command = NULL; xhci_setup_device() local
3850 command = xhci_alloc_command(xhci, false, false, GFP_KERNEL); xhci_setup_device()
3851 if (!command) { xhci_setup_device()
3856 command->in_ctx = virt_dev->in_ctx; xhci_setup_device()
3857 command->completion = &xhci->addr_dev; xhci_setup_device()
3886 ret = xhci_queue_address_device(xhci, command, virt_dev->in_ctx->dma, xhci_setup_device()
3891 "FIXME: allocate a command ring segment"); xhci_setup_device()
3898 wait_for_completion(command->completion); xhci_setup_device()
3902 * command on a timeout. xhci_setup_device()
3904 switch (command->status) { xhci_setup_device()
3907 xhci_warn(xhci, "Timeout while waiting for setup device command\n"); xhci_setup_device()
3912 xhci_err(xhci, "Setup ERROR: setup %s command for slot %d.\n", xhci_setup_device()
3922 "ERROR: Incompatible device for setup %s command\n", act); xhci_setup_device()
3927 "Successful setup %s command", act); xhci_setup_device()
3931 "ERROR: unexpected setup %s command completion code 0x%x.\n", xhci_setup_device()
3932 act, command->status); xhci_setup_device()
3975 kfree(command); xhci_setup_device()
4012 * Issue an Evaluate Context command to change the Maximum Exit Latency in the
4019 struct xhci_command *command; xhci_change_max_exit_latency() local
4040 /* Attempt to issue an Evaluate Context command to change the MEL. */ xhci_change_max_exit_latency()
4041 command = xhci->lpm_command; xhci_change_max_exit_latency()
4042 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); xhci_change_max_exit_latency()
4050 xhci_slot_copy(xhci, command->in_ctx, virt_dev->out_ctx); xhci_change_max_exit_latency()
4054 slot_ctx = xhci_get_slot_ctx(xhci, command->in_ctx); xhci_change_max_exit_latency()
4062 xhci_dbg_ctx(xhci, command->in_ctx, 0); xhci_change_max_exit_latency()
4064 /* Issue and wait for the evaluate context command. */ xhci_change_max_exit_latency()
4065 ret = xhci_configure_endpoint(xhci, udev, command, xhci_change_max_exit_latency()
4777 xhci_dbg(xhci, "Could not allocate xHCI command structure.\n"); xhci_update_hub_device()
4844 * evaluate context command. xhci_update_hub_device()
2645 xhci_configure_endpoint(struct xhci_hcd *xhci, struct usb_device *udev, struct xhci_command *command, bool ctx_change, bool must_succeed) xhci_configure_endpoint() argument
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/
H A Danysee.h134 | 00 | 0x31 I2C write command
155 | 00 | 0x33 I2C read command
177 | 00 | 0xb1 register write command
195 | 00 | 0xb0 register read command
211 | 00 | 0x16 LED and IR control command
232 | 00 | 0x16 LED and IR control command
249 | 00 | 0x12 streaming control command
266 | 00 | 0x41 remote control command
293 | 00 | 0x19 get hardware info command
319 | 00 | 0x34 smart card reader command
/linux-4.1.27/drivers/target/
H A Dtarget_core_ua.c60 * a) if an INQUIRY command enters the enabled command state, the target_scsi3_ua_check()
61 * device server shall process the INQUIRY command and shall neither target_scsi3_ua_check()
63 * b) if a REPORT LUNS command enters the enabled command state, the target_scsi3_ua_check()
64 * device server shall process the REPORT LUNS command and shall not target_scsi3_ua_check()
66 * e) if a REQUEST SENSE command enters the enabled command state while target_scsi3_ua_check()
68 * associated with the I_T nexus on which the REQUEST SENSE command target_scsi3_ua_check()
69 * was received, then the device server shall process the command target_scsi3_ua_check()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
H A Dmanage.c52 * This function checks whether the HOST IF is enabled for command operation
53 * and also checks whether the previous command is completed. It busy waits
54 * in case of previous command is not completed.
72 /* check the previous command is completed */ e1000_mng_enable_host_if()
81 e_dbg("Previous command timeout failed.\n"); e1000_mng_enable_host_if()
162 * e1000_mng_write_cmd_header - Writes manageability command header
164 * @hdr: pointer to the host interface command header
166 * Writes the command header after does the checksum calculation.
173 /* Write the whole command header structure with new checksum. */ e1000_mng_write_cmd_header()
178 /* Write the relevant command block into the ram area. */ e1000_mng_write_cmd_header()
233 /* The device driver writes the relevant command block into the e1000_mng_host_if_write()
290 /* Write the manageability command header */ e1000e_mng_write_dhcp_info()
295 /* Tell the ARC a new command is pending. */ e1000e_mng_write_dhcp_info()
/linux-4.1.27/include/linux/mfd/
H A Dcros_ec_commands.h2 * Host communication command constants for ChromeOS EC
42 /* I/O addresses for host command */
46 /* I/O addresses for host command args and params */
61 /* EC command register bit functions */
64 #define EC_LPC_CMDR_BUSY (1 << 2) /* EC is busy processing a command */
65 #define EC_LPC_CMDR_CMD (1 << 3) /* Last host write was a command */
172 /* Host command interface flags */
173 /* Host command interface supports LPC args (LPC interface only) */
175 /* Host command interface supports version 3 protocol */
200 /* LPC command status byte masks */
203 /* Host has written a command/data byte and the EC hasn't read it yet */
205 /* EC is processing a command */
207 /* Last write to EC was a command, not data */
219 * EC is busy. This covers both the EC processing a command, and the host has
220 * written a new command but the EC hasn't picked it up yet.
225 /* Host command response codes */
235 EC_RES_IN_PROGRESS = 8, /* Accepted, command in progress */
246 * EC command uses code 0 to mean "no event pending". We explicitly specify
267 * for this event following sending a EC_CMD_REBOOT_EC command to
307 * Checksum; sum of command + flags + command_version + data_size +
315 * Args are from host. Data area at EC_LPC_ADDR_HOST_PARAM contains command
318 * If EC gets a command and this flag is not set, this is an old-style command.
327 * If EC responds to a command and this flag is not set, this is an old-style
421 * 0 EC_CMD_VERSION0 + (command version)
456 * Value written to legacy command port / prefix byte to indicate protocol
479 uint16_t command; member in struct:ec_host_request
518 * Each command is an 8-byte command value. Commands which take params or
520 * specified, the command does not input or output data, respectively.
540 * Hello. This is a simple command to test the EC is responsive to
621 /* Read versions supported for a command */
640 * lpc must read the status from the command register. Attempting this on
673 /* EC_RES_IN_PROGRESS may be returned if a command is slow */
700 meaning for an individual command. */
713 /* More than one command can use these structs to get/set paramters. */
744 /* Flags for version 1+ flash info command */
791 /* Version 0 of the flash command supported only 64 bytes of data */
955 * command to say "talk to the lightbar", we put the "and tell it to do X" part
967 * host command, but the alignment is the same regardless. Keep it that way.
1126 * Note: command code 0x29 version 0 was VBOOT_CMD in Link EVT; it may be
1130 /* Verified boot hash command */
1188 * Dump command returns all motion sensor data including motion sense
1194 * Info command returns data describing the details of a given sensor,
1201 * EC Rate command is a setter/getter command for the EC sampling rate
1207 * Sensor ODR command is a setter/getter command for the output data
1213 * Sensor range command is a setter/getter command for the range of
1219 * Setter/getter command for the keyboard wake angle. When the lid
1238 * in ec_response_motion_sense dump command must be modified.
1260 /* Module flag masks used for the dump sub-command. */
1263 /* Sensor flag masks used for the dump sub-command. */
1367 /* Maximum bytes that can be read/written in a single command */
1433 * reuse the command number, but the data and behavior is incompatible.
1862 * For unsupported battery, just don't implement this command and lets EC
1927 /* I2C passthru command */
1984 /* Any host command from AP received */
2020 * This is the single catch-all host command to exchange data regarding the
2025 /* Subcommands for this host command */
2158 /* (command 3 was jump to RW-B) */
2185 * These are valid ONLY on the ACPI command/data port.
2301 * These do not follow the normal rules for commands. See each command for
2308 * This command will work even when the EC LPC interface is busy, because the
2309 * reboot command is processed at interrupt level. Note that when the EC
2310 * reboots, the host will reboot too, so there is no response to this command.
2320 * there was no previous command, or the previous command's response was too
2326 * This header byte on a command indicate version 0. Any header byte less
H A Ddln2.h48 * dln2_transfer - issue a DLN2 command and wait for a response and the
52 * @cmd - the command to be sent to the device
54 * doesn't need to transmit data with this command
71 * @cmd - the command to be sent to the device
90 * @cmd - the command to be sent to the device
92 * user doesn't need to transmit data with this command
/linux-4.1.27/drivers/spi/
H A Dspi-tegra20-sflash.c267 u32 command; tegra_sflash_start_transfer_one() local
282 command = tsd->def_command_reg; tegra_sflash_start_transfer_one()
283 command |= SPI_BIT_LENGTH(t->bits_per_word - 1); tegra_sflash_start_transfer_one()
284 command |= SPI_CS_VAL_HIGH; tegra_sflash_start_transfer_one()
286 command &= ~SPI_MODES; tegra_sflash_start_transfer_one()
288 command |= SPI_CK_SDA_FALLING; tegra_sflash_start_transfer_one()
291 command |= SPI_ACTIVE_SCLK_DRIVE_HIGH; tegra_sflash_start_transfer_one()
293 command |= SPI_ACTIVE_SCLK_DRIVE_LOW; tegra_sflash_start_transfer_one()
294 command |= SPI_CS0_EN << spi->chip_select; tegra_sflash_start_transfer_one()
296 command = tsd->command_reg; tegra_sflash_start_transfer_one()
297 command &= ~SPI_BIT_LENGTH(~0); tegra_sflash_start_transfer_one()
298 command |= SPI_BIT_LENGTH(t->bits_per_word - 1); tegra_sflash_start_transfer_one()
299 command &= ~(SPI_RX_EN | SPI_TX_EN); tegra_sflash_start_transfer_one()
304 command |= SPI_RX_EN; tegra_sflash_start_transfer_one()
308 command |= SPI_TX_EN; tegra_sflash_start_transfer_one()
311 tegra_sflash_writel(tsd, command, SPI_COMMAND); tegra_sflash_start_transfer_one()
312 tsd->command_reg = command; tegra_sflash_start_transfer_one()
/linux-4.1.27/drivers/net/can/usb/peak_usb/
H A Dpcan_ucan.h40 /* uCAN command common header */
46 /* uCAN TIMING_SLOW command fields */
63 /* uCAN TIMING_FAST command fields */
80 /* uCAN FILTER_STD command fields */
90 /* uCAN WR_ERR_CNT command fields */
104 /* uCAN SET_EN/CLR_DIS _OPTION command fields */
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dbmi.h34 * command, this opportunity ends.
37 * from mailbox0. BMI requests all begin with a command
39 * command-specific data.
42 * The Host can only issue a command once the Target gives it a
44 * Target has completed a command, it issues another BMI Command
45 * Credit (so the Host can issue the next command).
H A Dtestmode_i.h23 * addition of a new command or an attribute.
63 /* The command used to transmit a WMI command to the firmware and
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
H A Dcmd.c77 wl1271_error("failed to send channel switch command"); wl18xx_cmd_channel_switch()
105 wl1271_error("failed to send smart config start command"); wl18xx_cmd_smart_config_start()
130 wl1271_error("failed to send smart config stop command"); wl18xx_cmd_smart_config_stop()
198 wl1271_error("failed to send cac command"); wl18xx_cmd_set_cac()
224 wl1271_error("failed to send radar detection debug command"); wl18xx_cmd_radar_detection_debug()
250 wl1271_error("failed to send dfs master restart command"); wl18xx_cmd_dfs_master_restart()
/linux-4.1.27/include/linux/mmc/
H A Dsdio.h49 r : detected and set for the actual command response
50 x : detected and set during command execution. the host must poll
51 the card by sending status command in order to read these bits.
54 b : always related to the previous command. Reception of
55 a valid command will clear it (with a delay of one command)
/linux-4.1.27/drivers/input/mouse/
H A Dtouchkit_ps2.c73 int command; touchkit_ps2_detect() local
77 command = TOUCHKIT_SEND_PARMS(2, 3, TOUCHKIT_CMD); touchkit_ps2_detect()
79 if (ps2_command(&psmouse->ps2dev, param, command)) touchkit_ps2_detect()
/linux-4.1.27/drivers/block/
H A Dida_ioctl.h42 * Normally, the ioctl determines the logical unit for this command by
44 * a command to a different/nonexistant unit (such as during config), you
46 * it should be zero) The controller the command is sent to is still
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Duvd_v3_1.c31 * uvd_v3_1_semaphore_emit - emit semaphore command
36 * @emit_wait: true if we should emit a wait command
38 * Emit a semaphore command (either wait or signal) to the UVD ring.
/linux-4.1.27/include/scsi/
H A Dscsi_tcq.h26 * scsi_find_tag - find a tagged command by device
45 /* single command, look in space */ scsi_find_tag()
79 * scsi_host_find_tag - find the tagged command by host
/linux-4.1.27/arch/s390/kernel/
H A Druntime_instr.c95 SYSCALL_DEFINE2(s390_runtime_instr, int, command, int, signum) SYSCALL_DEFINE2()
102 if (command == S390_RUNTIME_INSTR_STOP) { SYSCALL_DEFINE2()
109 if (command != S390_RUNTIME_INSTR_START || SYSCALL_DEFINE2()
/linux-4.1.27/arch/arm/mach-s3c24xx/
H A Dsleep-s3c2410.S53 orr r7, r7, #S3C2410_REFRESH_SELF @ SDRAM sleep command
55 orr r9, r9, #S3C2410_CLKCON_POWER @ power down command
65 streq r7, [r4] @ SDRAM sleep command
/linux-4.1.27/tools/perf/
H A Dbuiltin-data.c28 "perf data [<common options>] <command> [<options>]",
101 /* No command specified. */ cmd_data()
119 pr_err("Unknown command: %s\n", cmdstr);
/linux-4.1.27/drivers/misc/
H A Dvexpress-syscfg.c60 u32 command, status; vexpress_syscfg_exec() local
67 command = readl(syscfg->base + SYS_CFGCTRL); vexpress_syscfg_exec()
68 if (WARN_ON(command & SYS_CFGCTRL_START)) vexpress_syscfg_exec()
71 command = func->template[index]; vexpress_syscfg_exec()
72 command |= SYS_CFGCTRL_START; vexpress_syscfg_exec()
73 command |= write ? SYS_CFGCTRL_WRITE : 0; vexpress_syscfg_exec()
79 dev_dbg(syscfg->dev, "func %p, command %x, data %x\n", vexpress_syscfg_exec()
80 func, command, *data); vexpress_syscfg_exec()
83 writel(command, syscfg->base + SYS_CFGCTRL); vexpress_syscfg_exec()
/linux-4.1.27/drivers/media/usb/go7007/
H A Dgo7007-i2c.c47 u16 command, int flags, u8 *data) go7007_i2c_xfer()
58 command, addr); go7007_i2c_xfer()
62 *data, command, addr); go7007_i2c_xfer()
86 /* Set target register (command) */ go7007_i2c_xfer()
88 go7007_write_addr(go, I2C_LO_ADDR_REG_ADDR, command); go7007_i2c_xfer()
94 (addr << 9) | (command >> 8)); go7007_i2c_xfer()
105 (addr << 9) | 0x0100 | (command >> 8)); go7007_i2c_xfer()
138 u8 command, int size, union i2c_smbus_data *data) go7007_smbus_xfer()
144 return go7007_i2c_xfer(go, addr, read_write == I2C_SMBUS_READ, command, go7007_smbus_xfer()
46 go7007_i2c_xfer(struct go7007 *go, u16 addr, int read, u16 command, int flags, u8 *data) go7007_i2c_xfer() argument
136 go7007_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) go7007_smbus_xfer() argument
/linux-4.1.27/drivers/staging/fbtft/
H A Dfb_hx8340bn.c54 /* SETEXTCOM: Set extended command set (C1h) init_display()
55 This command is used to set extended command set access enable. init_display()
56 Enable: After command (C1h), must write: ffh,83h,40h */ init_display()
60 This command turns off sleep mode. init_display()
70 This command is used to set internal oscillator related settings */ init_display()
80 This command is used to set VCOM Low and VCOM High Voltage */ init_display()
95 This command is used to define the format of RGB picture data, init_display()
101 This command is used to recover from DISPLAY OFF mode. init_display()
/linux-4.1.27/arch/x86/include/uapi/asm/
H A Dist.h24 __u32 command; member in struct:ist_info
/linux-4.1.27/arch/x86/boot/
H A Dcmdline.c12 * Simple command-line parser for early boot.
25 * the last instance on the command line.
45 return -1; /* No command line */ __cmdline_find_option()
115 return -1; /* No command line */ __cmdline_find_option_bool()
/linux-4.1.27/arch/mips/cavium-octeon/executive/
H A Dcvmx-cmd-queue.c29 * Support functions for managing command queues used for
101 * Initialize a command queue for use. The initial FPA buffer is
103 * new command queue.
105 * @queue_id: Hardware command queue to initialize.
107 * @fpa_pool: FPA pool the command queues should come from.
199 * Shutdown a queue a free it's command buffers to the FPA. The
235 * Return the number of command words pending in the queue. This
238 * @queue_id: Hardware command queue to query
291 * Return the command buffer to be written to. The purpose of this
/linux-4.1.27/arch/mips/include/asm/mach-loongson1/
H A Dprom.h20 /* loongson-specific command line, env and memory initialization */
/linux-4.1.27/crypto/
H A Dfips.c18 /* Process kernel command-line parameter at boot time. fips=0 or fips=1 */ fips_enable()
/linux-4.1.27/drivers/ata/
H A Dsata_promise.h98 /* and finally the command itself; also includes end-of-pkt marker */ pdc_pkt_footer()
100 buf[i++] = tf->command; pdc_pkt_footer()
109 /* ATA command block registers */ pdc_prep_lba28()
132 /* ATA command block registers */ pdc_prep_lba48()
/linux-4.1.27/drivers/usb/image/
H A Dmicrotek.h25 u8 *scsi_status; /* status returned from ep_response after command completion */
/linux-4.1.27/drivers/uwb/
H A Dreset.c3 * UWB basic command support and radio reset
27 * - Now we are serializing (using the uwb_dev->mutex) the command
149 * @cmd_name: Name of the command being issued (for error messages)
150 * @cmd: Pointer to rccb structure containing the command;
152 * the full command structure.
153 * @cmd_size: Size of the whole command buffer pointed to by @cmd.
209 * @cmd_name: Name of the command being issued (for error messages)
210 * @cmd: Pointer to rccb structure containing the command;
212 * the full command structure.
213 * @cmd_size: Size of the whole command buffer pointed to by @cmd.
254 * @cmd_name: Name of the command being issued (for error messages)
255 * @cmd: Pointer to rccb structure containing the command;
257 * the full command structure.
258 * @cmd_size: Size of the whole command buffer pointed to by @cmd.
287 * We put the command on kmalloc'ed memory as some arches cannot do
312 "RESET: command execution failed: %s (%d)\n", uwb_rc_reset()
/linux-4.1.27/arch/mips/mti-malta/
H A Dmalta-reset.c18 static void mips_machine_restart(char *command) mips_machine_restart() argument
/linux-4.1.27/arch/mips/mti-sead3/
H A Dsead3-reset.c16 static void mips_machine_restart(char *command) mips_machine_restart() argument
/linux-4.1.27/arch/mips/sni/
H A Dreset.c25 void sni_machine_restart(char *command) sni_machine_restart() argument
/linux-4.1.27/arch/ia64/include/uapi/asm/
H A Dsetup.h7 __u64 command_line; /* physical address of command line arguments */

Completed in 4554 milliseconds

1234567891011>>