Lines Matching refs:curr_cmd
223 adapter->curr_cmd = cmd_node; in mwifiex_dnld_cmd_to_fw()
273 mwifiex_recycle_cmd_node(adapter, adapter->curr_cmd); in mwifiex_dnld_cmd_to_fw()
276 adapter->curr_cmd = NULL; in mwifiex_dnld_cmd_to_fw()
763 if (adapter->curr_cmd) { in mwifiex_exec_next_cmd()
830 if (!adapter->curr_cmd || !adapter->curr_cmd->resp_skb) { in mwifiex_process_cmdresp()
838 resp = (struct host_cmd_ds_command *)adapter->curr_cmd->resp_skb->data; in mwifiex_process_cmdresp()
842 if (adapter->curr_cmd->cmd_no != cmdresp_no) { in mwifiex_process_cmdresp()
845 adapter->curr_cmd->cmd_no, cmdresp_no); in mwifiex_process_cmdresp()
852 if (adapter->curr_cmd->cmd_flag & CMD_F_HOSTCMD) { in mwifiex_process_cmdresp()
859 if (adapter->curr_cmd->data_buf) { in mwifiex_process_cmdresp()
860 hostcmd = adapter->curr_cmd->data_buf; in mwifiex_process_cmdresp()
893 if (adapter->curr_cmd->wait_q_enabled) in mwifiex_process_cmdresp()
896 mwifiex_recycle_cmd_node(adapter, adapter->curr_cmd); in mwifiex_process_cmdresp()
898 adapter->curr_cmd = NULL; in mwifiex_process_cmdresp()
903 if (adapter->curr_cmd->cmd_flag & CMD_F_HOSTCMD) { in mwifiex_process_cmdresp()
904 adapter->curr_cmd->cmd_flag &= ~CMD_F_HOSTCMD; in mwifiex_process_cmdresp()
925 if (adapter->curr_cmd) { in mwifiex_process_cmdresp()
926 if (adapter->curr_cmd->wait_q_enabled) in mwifiex_process_cmdresp()
929 mwifiex_recycle_cmd_node(adapter, adapter->curr_cmd); in mwifiex_process_cmdresp()
932 adapter->curr_cmd = NULL; in mwifiex_process_cmdresp()
951 if (!adapter->curr_cmd) { in mwifiex_cmd_timeout_func()
956 cmd_node = adapter->curr_cmd; in mwifiex_cmd_timeout_func()
1065 if ((adapter->curr_cmd) && (adapter->curr_cmd->wait_q_enabled)) { in mwifiex_cancel_all_pending_cmd()
1067 mwifiex_complete_cmd(adapter, adapter->curr_cmd); in mwifiex_cancel_all_pending_cmd()
1068 adapter->curr_cmd->wait_q_enabled = false; in mwifiex_cancel_all_pending_cmd()
1102 if ((adapter->curr_cmd) && in mwifiex_cancel_pending_ioctl()
1103 (adapter->curr_cmd->wait_q_enabled)) { in mwifiex_cancel_pending_ioctl()
1105 cmd_node = adapter->curr_cmd; in mwifiex_cancel_pending_ioctl()
1114 adapter->curr_cmd = NULL; in mwifiex_cancel_pending_ioctl()
1136 !adapter->curr_cmd && !IS_CARD_RX_RCVD(adapter)) in mwifiex_check_ps_cond()
1143 (adapter->curr_cmd) ? "C" : "", in mwifiex_check_ps_cond()