Lines Matching full:command

29  * 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 */ in 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 /* Set command sequence number */ in mwifiex_dnld_cmd_to_fw()
168 cmd_code = le16_to_cpu(host_cmd->command); in mwifiex_dnld_cmd_to_fw()
201 /* Save the last command id and action to debug log */ in mwifiex_dnld_cmd_to_fw()
211 /* Setup the timer after transmit command */ in mwifiex_dnld_cmd_to_fw()
219 * This function downloads a sleep confirm command to the firmware.
221 * The function performs sanity tests, sets the command sequence
225 * No responses are needed for sleep confirm command.
256 confirm command */ in mwifiex_dnld_sleep_confirm_cmd()
274 * This function allocates the command buffers and links them to
275 * the command free queue.
277 * The driver uses a pre allocated number of command buffers, which
279 * Every command needs to obtain a command buffer from this pool before
280 * it can be issued. The command free queue lists the command buffers
281 * currently free to use, while the command pending queue lists the
282 * command buffers already in use and awaiting handling. Command buffers
303 /* Allocate and initialize command buffers */ in mwifiex_alloc_cmd_buffer()
319 * This function frees the command buffers.
321 * The function calls the completion callback for all the command
413 * This function is used to send synchronous command to the firmware.
415 * it allocates a wait queue for the command and wait for the command
436 * This function prepares a command and asynchronously send it to the firmware.
441 * - Getting a new command node from the command free queue
442 * - Initializing the command node for default parameters
444 * - Add the command to pending queue
476 /* Get a new command node */ in mwifiex_send_cmd_async()
484 /* Initialize the command node */ in mwifiex_send_cmd_async()
496 cmd_ptr->command = cpu_to_le16(cmd_no); in mwifiex_send_cmd_async()
499 /* Prepare command */ in mwifiex_send_cmd_async()
508 /* Return error, since the command preparation failed */ in mwifiex_send_cmd_async()
516 /* Send command */ in mwifiex_send_cmd_async()
528 * This function returns a command to the command free queue.
531 * cleaning the command node and re-inserting it into the free queue.
554 * This function queues a command to the command pending queue.
556 * This in effect adds the command to the command list to be executed.
557 * Exit PS command is handled specially, by placing it always to the
558 * front of the command queue.
565 u16 command; in mwifiex_insert_cmd_to_pending_q() local
574 command = le16_to_cpu(host_cmd->command); in mwifiex_insert_cmd_to_pending_q()
576 /* Exit_PS command needs to be queued in the header always. */ in mwifiex_insert_cmd_to_pending_q()
577 if (command == HostCmd_CMD_802_11_PS_MODE_ENH) { in mwifiex_insert_cmd_to_pending_q()
594 dev_dbg(adapter->dev, "cmd: QUEUE_CMD: cmd=%#x is queued\n", command); in mwifiex_insert_cmd_to_pending_q()
598 * This function executes the next command in command pending queue.
600 * This function will fail if a command is already in processing stage,
601 * otherwise it will dequeue the first command from the command pending
605 * host sleep configuration command will de-activate the host sleep. For PS
624 /* Check if any command is pending */ in mwifiex_exec_next_cmd()
655 /* Any command sent to the firmware when host is in sleep in mwifiex_exec_next_cmd()
657 * host sleep configuration command itself though in mwifiex_exec_next_cmd()
659 if (priv && (host_cmd->command != in mwifiex_exec_next_cmd()
671 * This function handles the command response.
673 * After processing, the function cleans the command node and puts
674 * it back to the command free queue.
688 /* Now we got response from FW, cancel the command timer */ in mwifiex_process_cmdresp()
694 le16_to_cpu(resp->command)); in mwifiex_process_cmdresp()
703 le16_to_cpu(resp->command)); in mwifiex_process_cmdresp()
723 orig_cmdresp_no = le16_to_cpu(resp->command); in mwifiex_process_cmdresp()
732 resp->command = cpu_to_le16(orig_cmdresp_no & HostCmd_CMD_ID_MASK); in mwifiex_process_cmdresp()
734 cmdresp_no = le16_to_cpu(resp->command); in mwifiex_process_cmdresp()
737 /* Save the last command response to debug log */ in mwifiex_process_cmdresp()
771 /* Check init command response */ in mwifiex_process_cmdresp()
788 /* Clean up and put current command back to cmd_free_q */ in mwifiex_process_cmdresp()
800 * This function handles the timeout of command sending.
802 * It will re-send the same command again.
874 * The current command, all commands in command pending queue and all scan
892 /* Cancel all pending command */ in mwifiex_cancel_all_pending_cmd()
909 /* Cancel all pending scan command */ in mwifiex_cancel_all_pending_cmd()
931 * Both the current command buffer and the pending command queue are
933 * the matched command is called with failure status to ensure cleanup.
957 /* Cancel all pending scan command */ in mwifiex_cancel_pending_ioctl()
983 * This function sends the sleep confirm command to firmware, if
986 * The sleep confirm command cannot be issued if command response,
988 * are in the middle of sending a command, or expecting a command
1030 * This function handles the command response of a Host Sleep configuration
1031 * command.
1086 * This function handles the command response of a sleep confirm command.
1098 uint16_t command = le16_to_cpu(cmd->command); in mwifiex_process_sleep_confirm_resp() local
1115 command &= HostCmd_CMD_ID_MASK; in mwifiex_process_sleep_confirm_resp()
1117 if (command != HostCmd_CMD_802_11_PS_MODE_ENH) { in mwifiex_process_sleep_confirm_resp()
1119 " cmd %x, result = %x\n", __func__, command, result); in mwifiex_process_sleep_confirm_resp()
1135 cmd->command = cpu_to_le16(command); in mwifiex_process_sleep_confirm_resp()
1141 * This function prepares an enhanced power mode command.
1147 * - Setting command ID, action and proper size
1162 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_PS_MODE_ENH); in mwifiex_cmd_enh_power_mode()
1189 dev_dbg(adapter->dev, "cmd: PS Command: Enter PS\n"); in mwifiex_cmd_enh_power_mode()
1221 "cmd: PS Command: Enter Auto Deep Sleep\n"); in mwifiex_cmd_enh_power_mode()
1230 * This function handles the command response of an enhanced power mode
1231 * command.
1293 * This function prepares command to get hardware specifications.
1296 * - Setting command ID, action and proper size
1305 cmd->command = cpu_to_le16(HostCmd_CMD_GET_HW_SPEC); in mwifiex_cmd_get_hw_spec()
1314 * This function handles the command response of get hardware