Lines Matching full:command

20  * This function initializes a command node.
45 * This function returns a command node from the free queue depending upon
69 * This function cleans up a command node.
98 * This function returns a command to the command free queue.
101 * cleaning the command node and re-inserting it into the free queue.
121 /* This function reuses a command node. */
132 le16_to_cpu(host_cmd->command), in mwifiex_recycle_cmd_node()
137 * This function sends a host command to the firmware.
139 * The function copies the host command into the driver command
147 /* Copy the HOST command to command buffer */ in mwifiex_cmd_host_cmd()
155 * This function downloads a command to the firmware.
157 * The function performs sanity tests, sets the command sequence
159 * sending. Afterwards, it logs the command ID and action for debugging
160 * and sets up the command timeout timer.
188 cmd_code = le16_to_cpu(host_cmd->command); in mwifiex_dnld_cmd_to_fw()
203 /* Set command sequence number */ in mwifiex_dnld_cmd_to_fw()
271 /* Save the last command id and action to debug log */ in mwifiex_dnld_cmd_to_fw()
278 /* Setup the timer after transmit command, except that specific in mwifiex_dnld_cmd_to_fw()
279 * command might not have command response. in mwifiex_dnld_cmd_to_fw()
292 * This function downloads a sleep confirm command to the firmware.
294 * The function performs sanity tests, sets the command sequence
298 * No responses are needed for sleep confirm command.
319 le16_to_cpu(sleep_cfm_buf->command), in mwifiex_dnld_sleep_confirm_cmd()
361 /* Response is not needed for sleep confirm command */ in mwifiex_dnld_sleep_confirm_cmd()
378 * This function allocates the command buffers and links them to
379 * the command free queue.
381 * The driver uses a pre allocated number of command buffers, which
383 * Every command needs to obtain a command buffer from this pool before
384 * it can be issued. The command free queue lists the command buffers
385 * currently free to use, while the command pending queue lists the
386 * command buffers already in use and awaiting handling. Command buffers
402 /* Allocate and initialize command buffers */ in mwifiex_alloc_cmd_buffer()
407 "unable to allocate command buffer\n"); in mwifiex_alloc_cmd_buffer()
419 * This function frees the command buffers.
421 * The function calls the completion callback for all the command
536 * This function prepares a command and send it to the firmware.
541 * - Getting a new command node from the command free queue
542 * - Initializing the command node for default parameters
544 * - Add the command to pending queue
605 /* Get a new command node */ in mwifiex_send_cmd()
614 /* Initialize the command node */ in mwifiex_send_cmd()
626 cmd_ptr->command = cpu_to_le16(cmd_no); in mwifiex_send_cmd()
629 /* Prepare command */ in mwifiex_send_cmd()
653 /* Return error, since the command preparation failed */ in mwifiex_send_cmd()
662 /* Send command */ in mwifiex_send_cmd()
677 * This function queues a command to the command pending queue.
679 * This in effect adds the command to the command list to be executed.
680 * Exit PS command is handled specially, by placing it always to the
681 * front of the command queue.
688 u16 command; in mwifiex_insert_cmd_to_pending_q() local
697 command = le16_to_cpu(host_cmd->command); in mwifiex_insert_cmd_to_pending_q()
699 /* Exit_PS command needs to be queued in the header always. */ in mwifiex_insert_cmd_to_pending_q()
700 if (command == HostCmd_CMD_802_11_PS_MODE_ENH) { in mwifiex_insert_cmd_to_pending_q()
711 if (command == HostCmd_CMD_802_11_HS_CFG_ENH) { in mwifiex_insert_cmd_to_pending_q()
729 command, atomic_read(&adapter->cmd_pending)); in mwifiex_insert_cmd_to_pending_q()
733 * This function executes the next command in command pending queue.
735 * This function will fail if a command is already in processing stage,
736 * otherwise it will dequeue the first command from the command pending
740 * host sleep configuration command will de-activate the host sleep. For PS
758 /* Check if any command is pending */ in mwifiex_exec_next_cmd()
786 /* Any command sent to the firmware when host is in sleep in mwifiex_exec_next_cmd()
788 * host sleep configuration command itself though in mwifiex_exec_next_cmd()
790 if (priv && (host_cmd->command != in mwifiex_exec_next_cmd()
803 * This function handles the command response.
805 * After processing, the function cleans the command node and puts
806 * it back to the command free queue.
822 le16_to_cpu(resp->command)); in mwifiex_process_cmdresp()
827 orig_cmdresp_no = le16_to_cpu(resp->command); in mwifiex_process_cmdresp()
836 /* Now we got response from FW, cancel the command timer */ in mwifiex_process_cmdresp()
861 resp->command = cpu_to_le16(orig_cmdresp_no & HostCmd_CMD_ID_MASK); in mwifiex_process_cmdresp()
863 cmdresp_no = le16_to_cpu(resp->command); in mwifiex_process_cmdresp()
866 /* Save the last command response to debug log */ in mwifiex_process_cmdresp()
901 /* Check init command response */ in mwifiex_process_cmdresp()
928 * This function handles the timeout of command sending.
930 * It will re-send the same command again.
1028 /* Cancel all pending scan command */ in mwifiex_cancel_pending_scan_cmd()
1042 * The current command, all commands in command pending queue and all scan
1059 /* Cancel all pending command */ in mwifiex_cancel_all_pending_cmd()
1079 * Both the current command buffer and the pending command queue are
1081 * the matched command is called with failure status to ensure cleanup.
1112 * This function sends the sleep confirm command to firmware, if
1115 * The sleep confirm command cannot be issued if command response,
1117 * are in the middle of sending a command, or expecting a command
1166 * This function handles the command response of a Host Sleep configuration
1167 * command.
1238 * This function handles the command response of a sleep confirm command.
1250 uint16_t command = le16_to_cpu(cmd->command); in mwifiex_process_sleep_confirm_resp() local
1261 command, result, le16_to_cpu(cmd->size), seq_num); in mwifiex_process_sleep_confirm_resp()
1272 command &= HostCmd_CMD_ID_MASK; in mwifiex_process_sleep_confirm_resp()
1274 if (command != HostCmd_CMD_802_11_PS_MODE_ENH) { in mwifiex_process_sleep_confirm_resp()
1277 __func__, command, result); in mwifiex_process_sleep_confirm_resp()
1295 cmd->command = cpu_to_le16(command); in mwifiex_process_sleep_confirm_resp()
1301 * This function prepares an enhanced power mode command.
1307 * - Setting command ID, action and proper size
1322 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_PS_MODE_ENH); in mwifiex_cmd_enh_power_mode()
1350 "cmd: PS Command: Enter PS\n"); in mwifiex_cmd_enh_power_mode()
1381 "cmd: PS Command: Enter Auto Deep Sleep\n"); in mwifiex_cmd_enh_power_mode()
1390 * This function handles the command response of an enhanced power mode
1391 * command.
1460 * This function prepares command to get hardware specifications.
1463 * - Setting command ID, action and proper size
1472 cmd->command = cpu_to_le16(HostCmd_CMD_GET_HW_SPEC); in mwifiex_cmd_get_hw_spec()
1481 * This function handles the command response of get hardware
1681 /* This function handles the command response of hs wakeup reason
1682 * command.