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()
655 /* Return error, since the command preparation failed */ in mwifiex_send_cmd()
664 /* Send command */ in mwifiex_send_cmd()
679 * This function queues a command to the command pending queue.
681 * This in effect adds the command to the command list to be executed.
682 * Exit PS command is handled specially, by placing it always to the
683 * front of the command queue.
690 u16 command; in mwifiex_insert_cmd_to_pending_q() local
699 command = le16_to_cpu(host_cmd->command); in mwifiex_insert_cmd_to_pending_q()
701 /* Exit_PS command needs to be queued in the header always. */ in mwifiex_insert_cmd_to_pending_q()
702 if (command == HostCmd_CMD_802_11_PS_MODE_ENH) { in mwifiex_insert_cmd_to_pending_q()
713 if (command == HostCmd_CMD_802_11_HS_CFG_ENH) { in mwifiex_insert_cmd_to_pending_q()
731 command, atomic_read(&adapter->cmd_pending)); in mwifiex_insert_cmd_to_pending_q()
735 * This function executes the next command in command pending queue.
737 * This function will fail if a command is already in processing stage,
738 * otherwise it will dequeue the first command from the command pending
742 * host sleep configuration command will de-activate the host sleep. For PS
760 /* Check if any command is pending */ in mwifiex_exec_next_cmd()
788 /* Any command sent to the firmware when host is in sleep in mwifiex_exec_next_cmd()
790 * host sleep configuration command itself though in mwifiex_exec_next_cmd()
792 if (priv && (host_cmd->command != in mwifiex_exec_next_cmd()
805 * This function handles the command response.
807 * After processing, the function cleans the command node and puts
808 * it back to the command free queue.
824 le16_to_cpu(resp->command)); in mwifiex_process_cmdresp()
829 orig_cmdresp_no = le16_to_cpu(resp->command); in mwifiex_process_cmdresp()
838 /* Now we got response from FW, cancel the command timer */ in mwifiex_process_cmdresp()
863 resp->command = cpu_to_le16(orig_cmdresp_no & HostCmd_CMD_ID_MASK); in mwifiex_process_cmdresp()
865 cmdresp_no = le16_to_cpu(resp->command); in mwifiex_process_cmdresp()
868 /* Save the last command response to debug log */ in mwifiex_process_cmdresp()
903 /* Check init command response */ in mwifiex_process_cmdresp()
950 * This function handles the timeout of command sending.
952 * It will re-send the same command again.
1050 /* Cancel all pending scan command */ in mwifiex_cancel_pending_scan_cmd()
1064 * The current command, all commands in command pending queue and all scan
1081 /* Cancel all pending command */ in mwifiex_cancel_all_pending_cmd()
1101 * Both the current command buffer and the pending command queue are
1103 * the matched command is called with failure status to ensure cleanup.
1134 * This function sends the sleep confirm command to firmware, if
1137 * The sleep confirm command cannot be issued if command response,
1139 * are in the middle of sending a command, or expecting a command
1188 * This function handles the command response of a Host Sleep configuration
1189 * command.
1260 * This function handles the command response of a sleep confirm command.
1270 uint16_t command = le16_to_cpu(cmd->command); in mwifiex_process_sleep_confirm_resp() local
1281 command, result, le16_to_cpu(cmd->size), seq_num); in mwifiex_process_sleep_confirm_resp()
1286 command &= HostCmd_CMD_ID_MASK; in mwifiex_process_sleep_confirm_resp()
1288 if (command != HostCmd_CMD_802_11_PS_MODE_ENH) { in mwifiex_process_sleep_confirm_resp()
1291 __func__, command, result); in mwifiex_process_sleep_confirm_resp()
1309 cmd->command = cpu_to_le16(command); in mwifiex_process_sleep_confirm_resp()
1315 * This function prepares an enhanced power mode command.
1321 * - Setting command ID, action and proper size
1336 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_PS_MODE_ENH); in mwifiex_cmd_enh_power_mode()
1364 "cmd: PS Command: Enter PS\n"); in mwifiex_cmd_enh_power_mode()
1395 "cmd: PS Command: Enter Auto Deep Sleep\n"); in mwifiex_cmd_enh_power_mode()
1404 * This function handles the command response of an enhanced power mode
1405 * command.
1474 * This function prepares command to get hardware specifications.
1477 * - Setting command ID, action and proper size
1486 cmd->command = cpu_to_le16(HostCmd_CMD_GET_HW_SPEC); in mwifiex_cmd_get_hw_spec()
1495 * This function handles the command response of get hardware
1707 /* This function handles the command response of hs wakeup reason
1708 * command.