Searched refs:curr_cmd (Results 1 - 14 of 14) sorted by relevance

/linux-4.1.27/drivers/net/wireless/mwifiex/
H A Dcmdevt.c182 adapter->curr_cmd = cmd_node; mwifiex_dnld_cmd_to_fw()
229 mwifiex_recycle_cmd_node(adapter, adapter->curr_cmd); mwifiex_dnld_cmd_to_fw()
232 adapter->curr_cmd = NULL; mwifiex_dnld_cmd_to_fw()
701 if (adapter->curr_cmd) { mwifiex_exec_next_cmd()
773 if (!adapter->curr_cmd || !adapter->curr_cmd->resp_skb) { mwifiex_process_cmdresp()
775 dev_err(adapter->dev, "CMD_RESP: NULL curr_cmd, %#x\n", mwifiex_process_cmdresp()
782 resp = (struct host_cmd_ds_command *) adapter->curr_cmd->resp_skb->data; mwifiex_process_cmdresp()
783 if (adapter->curr_cmd->cmd_flag & CMD_F_CANCELED) { mwifiex_process_cmdresp()
786 mwifiex_recycle_cmd_node(adapter, adapter->curr_cmd); mwifiex_process_cmdresp()
788 adapter->curr_cmd = NULL; mwifiex_process_cmdresp()
793 if (adapter->curr_cmd->cmd_flag & CMD_F_HOSTCMD) { mwifiex_process_cmdresp()
799 if (adapter->curr_cmd->data_buf) { mwifiex_process_cmdresp()
800 hostcmd = adapter->curr_cmd->data_buf; mwifiex_process_cmdresp()
832 if (adapter->curr_cmd->wait_q_enabled) mwifiex_process_cmdresp()
835 mwifiex_recycle_cmd_node(adapter, adapter->curr_cmd); mwifiex_process_cmdresp()
837 adapter->curr_cmd = NULL; mwifiex_process_cmdresp()
842 if (adapter->curr_cmd->cmd_flag & CMD_F_HOSTCMD) { mwifiex_process_cmdresp()
843 adapter->curr_cmd->cmd_flag &= ~CMD_F_HOSTCMD; mwifiex_process_cmdresp()
863 if (adapter->curr_cmd) { mwifiex_process_cmdresp()
864 if (adapter->curr_cmd->wait_q_enabled) mwifiex_process_cmdresp()
867 mwifiex_recycle_cmd_node(adapter, adapter->curr_cmd); mwifiex_process_cmdresp()
870 adapter->curr_cmd = NULL; mwifiex_process_cmdresp()
890 if (!adapter->curr_cmd) { mwifiex_cmd_timeout_func()
891 dev_dbg(adapter->dev, "cmd: empty curr_cmd\n"); mwifiex_cmd_timeout_func()
894 cmd_node = adapter->curr_cmd; mwifiex_cmd_timeout_func()
975 if ((adapter->curr_cmd) && (adapter->curr_cmd->wait_q_enabled)) { mwifiex_cancel_all_pending_cmd()
976 adapter->curr_cmd->wait_q_enabled = false; mwifiex_cancel_all_pending_cmd()
978 mwifiex_complete_cmd(adapter, adapter->curr_cmd); mwifiex_cancel_all_pending_cmd()
1045 if ((adapter->curr_cmd) && mwifiex_cancel_pending_ioctl()
1046 (adapter->curr_cmd->wait_q_enabled)) { mwifiex_cancel_pending_ioctl()
1048 cmd_node = adapter->curr_cmd; mwifiex_cancel_pending_ioctl()
1052 mwifiex_complete_cmd(adapter, adapter->curr_cmd); mwifiex_cancel_pending_ioctl()
1053 adapter->curr_cmd = NULL; mwifiex_cancel_pending_ioctl()
1100 !adapter->curr_cmd && !IS_CARD_RX_RCVD(adapter)) mwifiex_check_ps_cond()
1106 (adapter->curr_cmd) ? "C" : "", mwifiex_check_ps_cond()
H A Dinit.c667 if (adapter->curr_cmd) { mwifiex_shutdown_drv()
668 dev_warn(adapter->dev, "curr_cmd is still in processing\n"); mwifiex_shutdown_drv()
670 mwifiex_recycle_cmd_node(adapter, adapter->curr_cmd); mwifiex_shutdown_drv()
671 adapter->curr_cmd = NULL; mwifiex_shutdown_drv()
H A Dsta_cmdresp.c55 if (adapter->curr_cmd->wait_q_enabled) mwifiex_process_cmdresp_error()
101 mwifiex_recycle_cmd_node(adapter, adapter->curr_cmd); mwifiex_process_cmdresp_error()
104 adapter->curr_cmd = NULL; mwifiex_process_cmdresp_error()
975 void *data_buf = adapter->curr_cmd->data_buf; mwifiex_process_sta_cmdresp()
1003 adapter->curr_cmd->wait_q_enabled = false; mwifiex_process_sta_cmdresp()
1007 adapter->curr_cmd->wait_q_enabled = false; mwifiex_process_sta_cmdresp()
H A Dmain.c300 if (adapter->cmd_sent || adapter->curr_cmd || mwifiex_main_process()
327 if (!adapter->cmd_sent && !adapter->curr_cmd) mwifiex_main_process()
342 if (!adapter->cmd_sent && !adapter->curr_cmd) { mwifiex_main_process()
377 !adapter->curr_cmd && !is_command_pending(adapter) && mwifiex_main_process()
H A Dsta_tx.c228 if (ret && !adapter->cmd_sent && !adapter->curr_cmd && mwifiex_check_last_packet_indication()
H A Dusb.c89 } else if (!adapter->curr_cmd) { mwifiex_usb_recv()
90 dev_dbg(dev, "CMD: no curr_cmd\n"); mwifiex_usb_recv()
102 adapter->curr_cmd->resp_skb = skb; mwifiex_usb_recv()
H A Dsta_event.c127 if (adapter->is_cmd_timedout && adapter->curr_cmd) mwifiex_reset_connect_state()
H A Dsdio.c1145 /* take care of curr_cmd = NULL case */ mwifiex_decode_rx_packet()
1146 if (!adapter->curr_cmd) { mwifiex_decode_rx_packet()
1161 adapter->curr_cmd->resp_skb = skb; mwifiex_decode_rx_packet()
H A Djoin.c747 if (adapter->curr_cmd->wait_q_enabled) { mwifiex_ret_802_11_associate()
1268 if (adapter->curr_cmd->wait_q_enabled) { mwifiex_ret_802_11_ad_hoc()
H A Dpcie.c1593 if (!adapter->curr_cmd) { mwifiex_pcie_process_cmd_complete()
1621 adapter->curr_cmd->resp_skb = skb; mwifiex_pcie_process_cmd_complete()
H A Dscan.c1765 if (adapter->curr_cmd->wait_q_enabled) { mwifiex_complete_scan()
1769 mwifiex_complete_cmd(adapter, adapter->curr_cmd); mwifiex_complete_scan()
H A Dmain.h811 struct cmd_ctrl_node *curr_cmd; member in struct:mwifiex_adapter
/linux-4.1.27/drivers/scsi/
H A Dps3rom.c46 struct scsi_cmnd *curr_cmd; member in struct:ps3rom_private
223 priv->curr_cmd = cmd; ps3rom_queuecommand_lck()
253 priv->curr_cmd = NULL; ps3rom_queuecommand_lck()
304 cmd = priv->curr_cmd; ps3rom_interrupt()
338 priv->curr_cmd = NULL; ps3rom_interrupt()
/linux-4.1.27/drivers/gpu/drm/sti/
H A Dsti_hqvdp.c384 int curr_cmd, next_cmd; sti_hqvdp_get_free_cmd() local
388 curr_cmd = readl(hqvdp->regs + HQVDP_MBX_CURRENT_CMD); sti_hqvdp_get_free_cmd()
392 if ((cmd != curr_cmd) && (cmd != next_cmd)) sti_hqvdp_get_free_cmd()
412 int curr_cmd; sti_hqvdp_get_curr_cmd() local
416 curr_cmd = readl(hqvdp->regs + HQVDP_MBX_CURRENT_CMD); sti_hqvdp_get_curr_cmd()
419 if (cmd == curr_cmd) sti_hqvdp_get_curr_cmd()

Completed in 348 milliseconds