Lines Matching full:command
32 * This function initializes a command node.
57 * This function returns a command node from the free queue depending upon
81 * This function cleans up a command node.
110 * This function returns a command to the command free queue.
113 * cleaning the command node and re-inserting it into the free queue.
133 /* This function reuses a command node. */
144 le16_to_cpu(host_cmd->command), in mwifiex_recycle_cmd_node()
149 * This function sends a host command to the firmware.
151 * The function copies the host command into the driver command
159 /* Copy the HOST command to command buffer */ in mwifiex_cmd_host_cmd()
167 * This function downloads a command to the firmware.
169 * The function performs sanity tests, sets the command sequence
171 * sending. Afterwards, it logs the command ID and action for debugging
172 * and sets up the command timeout timer.
200 cmd_code = le16_to_cpu(host_cmd->command); in mwifiex_dnld_cmd_to_fw()
215 /* Set command sequence number */ in mwifiex_dnld_cmd_to_fw()
283 /* Save the last command id and action to debug log */ in mwifiex_dnld_cmd_to_fw()
290 /* Setup the timer after transmit command, except that specific in mwifiex_dnld_cmd_to_fw()
291 * command might not have command response. in mwifiex_dnld_cmd_to_fw()
304 * This function downloads a sleep confirm command to the firmware.
306 * The function performs sanity tests, sets the command sequence
310 * No responses are needed for sleep confirm command.
331 le16_to_cpu(sleep_cfm_buf->command), in mwifiex_dnld_sleep_confirm_cmd()
373 /* Response is not needed for sleep confirm command */ in mwifiex_dnld_sleep_confirm_cmd()
390 * This function allocates the command buffers and links them to
391 * the command free queue.
393 * The driver uses a pre allocated number of command buffers, which
395 * Every command needs to obtain a command buffer from this pool before
396 * it can be issued. The command free queue lists the command buffers
397 * currently free to use, while the command pending queue lists the
398 * command buffers already in use and awaiting handling. Command buffers
414 /* Allocate and initialize command buffers */ in mwifiex_alloc_cmd_buffer()
419 "unable to allocate command buffer\n"); in mwifiex_alloc_cmd_buffer()
431 * This function frees the command buffers.
433 * The function calls the completion callback for all the command
548 * This function prepares a command and send it to the firmware.
553 * - Getting a new command node from the command free queue
554 * - Initializing the command node for default parameters
556 * - Add the command to pending queue
612 /* Get a new command node */ in mwifiex_send_cmd()
621 /* Initialize the command node */ in mwifiex_send_cmd()
633 cmd_ptr->command = cpu_to_le16(cmd_no); in mwifiex_send_cmd()
636 /* Prepare command */ in mwifiex_send_cmd()
660 /* Return error, since the command preparation failed */ in mwifiex_send_cmd()
669 /* Send command */ in mwifiex_send_cmd()
684 * This function queues a command to the command pending queue.
686 * This in effect adds the command to the command list to be executed.
687 * Exit PS command is handled specially, by placing it always to the
688 * front of the command queue.
695 u16 command; in mwifiex_insert_cmd_to_pending_q() local
704 command = le16_to_cpu(host_cmd->command); in mwifiex_insert_cmd_to_pending_q()
706 /* Exit_PS command needs to be queued in the header always. */ in mwifiex_insert_cmd_to_pending_q()
707 if (command == HostCmd_CMD_802_11_PS_MODE_ENH) { in mwifiex_insert_cmd_to_pending_q()
727 command, atomic_read(&adapter->cmd_pending)); in mwifiex_insert_cmd_to_pending_q()
731 * This function executes the next command in command pending queue.
733 * This function will fail if a command is already in processing stage,
734 * otherwise it will dequeue the first command from the command pending
738 * host sleep configuration command will de-activate the host sleep. For PS
756 /* Check if any command is pending */ in mwifiex_exec_next_cmd()
784 /* Any command sent to the firmware when host is in sleep in mwifiex_exec_next_cmd()
786 * host sleep configuration command itself though in mwifiex_exec_next_cmd()
788 if (priv && (host_cmd->command != in mwifiex_exec_next_cmd()
801 * This function handles the command response.
803 * After processing, the function cleans the command node and puts
804 * it back to the command free queue.
820 le16_to_cpu(resp->command)); in mwifiex_process_cmdresp()
825 orig_cmdresp_no = le16_to_cpu(resp->command); in mwifiex_process_cmdresp()
834 /* Now we got response from FW, cancel the command timer */ in mwifiex_process_cmdresp()
859 resp->command = cpu_to_le16(orig_cmdresp_no & HostCmd_CMD_ID_MASK); in mwifiex_process_cmdresp()
861 cmdresp_no = le16_to_cpu(resp->command); in mwifiex_process_cmdresp()
864 /* Save the last command response to debug log */ in mwifiex_process_cmdresp()
899 /* Check init command response */ in mwifiex_process_cmdresp()
926 * This function handles the timeout of command sending.
928 * It will re-send the same command again.
1026 /* Cancel all pending scan command */ in mwifiex_cancel_pending_scan_cmd()
1040 * The current command, all commands in command pending queue and all scan
1057 /* Cancel all pending command */ in mwifiex_cancel_all_pending_cmd()
1077 * Both the current command buffer and the pending command queue are
1079 * the matched command is called with failure status to ensure cleanup.
1110 * This function sends the sleep confirm command to firmware, if
1113 * The sleep confirm command cannot be issued if command response,
1115 * are in the middle of sending a command, or expecting a command
1164 * This function handles the command response of a Host Sleep configuration
1165 * command.
1229 * This function handles the command response of a sleep confirm command.
1241 uint16_t command = le16_to_cpu(cmd->command); in mwifiex_process_sleep_confirm_resp() local
1252 command, result, le16_to_cpu(cmd->size), seq_num); in mwifiex_process_sleep_confirm_resp()
1263 command &= HostCmd_CMD_ID_MASK; in mwifiex_process_sleep_confirm_resp()
1265 if (command != HostCmd_CMD_802_11_PS_MODE_ENH) { in mwifiex_process_sleep_confirm_resp()
1268 __func__, command, result); in mwifiex_process_sleep_confirm_resp()
1286 cmd->command = cpu_to_le16(command); in mwifiex_process_sleep_confirm_resp()
1292 * This function prepares an enhanced power mode command.
1298 * - Setting command ID, action and proper size
1313 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_PS_MODE_ENH); in mwifiex_cmd_enh_power_mode()
1341 "cmd: PS Command: Enter PS\n"); in mwifiex_cmd_enh_power_mode()
1372 "cmd: PS Command: Enter Auto Deep Sleep\n"); in mwifiex_cmd_enh_power_mode()
1381 * This function handles the command response of an enhanced power mode
1382 * command.
1451 * This function prepares command to get hardware specifications.
1454 * - Setting command ID, action and proper size
1463 cmd->command = cpu_to_le16(HostCmd_CMD_GET_HW_SPEC); in mwifiex_cmd_get_hw_spec()
1472 * This function handles the command response of get hardware
1672 /* This function handles the command response of hs wakeup reason
1673 * command.