Lines Matching defs:command

3  * This file contains the handling of command.
4 * It prepares command and sends it to firmware when it is ready.
22 * lbs_cmd_copyback - Simple callback that copies response back into command
25 * @extra: A pointer to the original command structure for which
27 * @resp: A pointer to the command response
45 * Use this if you just want to send a command to the hardware, but don't
62 * is_command_allowed_in_ps - tests if a command is allowed in Power Save mode
64 * @cmd: the command ID
186 * Certain firmware versions do not support EHS_REMOVE_WAKEUP command
790 /* Set command header sizes */
815 * @reg: register command, one of CMD_MAC_REG_ACCESS,
857 * @reg: register command, one of CMD_MAC_REG_ACCESS,
905 /* Exit_PS command needs to be queued in the header always. */
906 if (le16_to_cpu(cmdnode->cmdbuf->command) == CMD_802_11_PS_MODE) {
915 if (le16_to_cpu(cmdnode->cmdbuf->command) == CMD_802_11_WAKEUP_CONFIRM)
927 lbs_deb_host("QUEUE_CMD: inserted command 0x%04x into cmdpendingq\n",
928 le16_to_cpu(cmdnode->cmdbuf->command));
937 uint16_t command;
950 command = le16_to_cpu(cmd->command);
953 if (command == CMD_802_11_SCAN || command == CMD_802_11_ASSOCIATE)
956 lbs_deb_cmd("DNLD_CMD: command 0x%04x, seq %d, size %d\n",
957 command, le16_to_cpu(cmd->seqnum), cmdsize);
970 if (command == CMD_802_11_DEEP_SLEEP) {
978 /* Setup the timer after transmit command */
984 * This function inserts command node to cmdfreeq
1017 * where the command is still pending. Make sure the command really
1106 * lbs_allocate_cmd_buffer - allocates the command buffer and links
1107 * it to command free queue
1120 /* Allocate and initialize the command array */
1129 /* Allocate and initialize each command buffer in the command array */
1159 * lbs_free_cmd_buffer - free the command buffer
1197 * lbs_get_free_cmd_node - gets a free command node if available in
1198 * command free queue
1230 * lbs_execute_next_command - execute next command in command
1251 "EXEC_NEXT_CMD: already processing command!\n");
1267 if (is_command_allowed_in_ps(le16_to_cpu(cmd->command))) {
1272 le16_to_cpu(cmd->command),
1277 lbs_deb_host("EXEC_NEXT_CMD: OK to send command "
1279 le16_to_cpu(cmd->command), priv->psstate);
1282 * 1. Non-PS command:
1285 * 2. PS command but not EXIT_PS:
1287 * 3. PS command EXIT_PS:
1289 * otherwise send this command down to firmware
1292 if (cmd->command != cpu_to_le16(CMD_802_11_PS_MODE)) {
1294 * this non PS command will be sent later */
1311 * PS command. Ignore it if it is not Exit_PS.
1347 lbs_deb_host("EXEC_NEXT_CMD: sending command 0x%04x\n",
1348 le16_to_cpu(cmd->command));
1404 * send sleep confirm command to firmware if ok
1421 /* In-progress command? */
1427 /* Pending events or command responses? */
1430 lbs_deb_host("pending events or command responses\n");
1508 uint16_t command, struct cmd_header *in_cmd, int in_cmd_size,
1525 lbs_deb_cmd("command not allowed in deep sleep\n");
1535 /* Wake up main thread to execute next command */
1544 /* Copy the incoming command to the buffer */
1547 /* Set command, clean result, move to buffer */
1548 cmdnode->cmdbuf->command = cpu_to_le16(command);
1552 lbs_deb_host("PREP_CMD: command 0x%04x\n", command);
1562 void lbs_cmd_async(struct lbs_private *priv, uint16_t command,
1565 __lbs_cmd_async(priv, command, in_cmd, in_cmd_size,
1569 int __lbs_cmd(struct lbs_private *priv, uint16_t command,
1578 cmdnode = __lbs_cmd_async(priv, command, in_cmd, in_cmd_size,
1590 * command, so we perform an uninterruptible sleep.
1597 netdev_info(priv->dev, "PREP_CMD: command 0x%04x failed: %d\n",
1598 command, ret);