Lines Matching defs: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),
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 */
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);
203 /* Set command sequence number */
271 /* Save the last command id and action to debug log */
278 /* Setup the timer after transmit command, except that specific
279 * command might not have command response.
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),
361 /* Response is not needed for sleep confirm command */
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 */
407 "unable to allocate command buffer\n");
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 */
614 /* Initialize the command node */
626 cmd_ptr->command = cpu_to_le16(cmd_no);
629 /* Prepare command */
653 /* Return error, since the command preparation failed */
662 /* Send command */
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;
697 command = le16_to_cpu(host_cmd->command);
699 /* Exit_PS command needs to be queued in the header always. */
700 if (command == HostCmd_CMD_802_11_PS_MODE_ENH) {
711 if (command == HostCmd_CMD_802_11_HS_CFG_ENH) {
729 command, atomic_read(&adapter->cmd_pending));
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 */
786 /* Any command sent to the firmware when host is in sleep
788 * host sleep configuration command itself though
790 if (priv && (host_cmd->command !=
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));
827 orig_cmdresp_no = le16_to_cpu(resp->command);
836 /* Now we got response from FW, cancel the command timer */
861 resp->command = cpu_to_le16(orig_cmdresp_no & HostCmd_CMD_ID_MASK);
863 cmdresp_no = le16_to_cpu(resp->command);
866 /* Save the last command response to debug log */
901 /* Check init command response */
928 * This function handles the timeout of command sending.
930 * It will re-send the same command again.
1028 /* Cancel all pending scan command */
1042 * The current command, all commands in command pending queue and all scan
1059 /* Cancel all pending command */
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);
1261 command, result, le16_to_cpu(cmd->size), seq_num);
1272 command &= HostCmd_CMD_ID_MASK;
1274 if (command != HostCmd_CMD_802_11_PS_MODE_ENH) {
1277 __func__, command, result);
1295 cmd->command = cpu_to_le16(command);
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);
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);
1481 * This function handles the command response of get hardware
1686 /* This function handles the command response of hs wakeup reason
1687 * command.