Lines Matching defs: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),
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 */
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);
215 /* Set command sequence number */
283 /* Save the last command id and action to debug log */
290 /* Setup the timer after transmit command, except that specific
291 * command might not have command response.
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),
373 /* Response is not needed for sleep confirm command */
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 */
419 "unable to allocate command buffer\n");
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 */
621 /* Initialize the command node */
633 cmd_ptr->command = cpu_to_le16(cmd_no);
636 /* Prepare command */
660 /* Return error, since the command preparation failed */
669 /* Send command */
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;
704 command = le16_to_cpu(host_cmd->command);
706 /* Exit_PS command needs to be queued in the header always. */
707 if (command == HostCmd_CMD_802_11_PS_MODE_ENH) {
727 command, atomic_read(&adapter->cmd_pending));
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 */
784 /* Any command sent to the firmware when host is in sleep
786 * host sleep configuration command itself though
788 if (priv && (host_cmd->command !=
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));
825 orig_cmdresp_no = le16_to_cpu(resp->command);
834 /* Now we got response from FW, cancel the command timer */
859 resp->command = cpu_to_le16(orig_cmdresp_no & HostCmd_CMD_ID_MASK);
861 cmdresp_no = le16_to_cpu(resp->command);
864 /* Save the last command response to debug log */
899 /* Check init command response */
926 * This function handles the timeout of command sending.
928 * It will re-send the same command again.
1026 /* Cancel all pending scan command */
1040 * The current command, all commands in command pending queue and all scan
1057 /* Cancel all pending command */
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);
1252 command, result, le16_to_cpu(cmd->size), seq_num);
1263 command &= HostCmd_CMD_ID_MASK;
1265 if (command != HostCmd_CMD_802_11_PS_MODE_ENH) {
1268 __func__, command, result);
1286 cmd->command = cpu_to_le16(command);
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);
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);
1472 * This function handles the command response of get hardware
1672 /* This function handles the command response of hs wakeup reason
1673 * command.