Lines Matching refs:cmd

48 			     struct host_cmd_ds_command *cmd, u16 cmd_action)  in mwifiex_cmd_802_11_rssi_info()  argument
50 cmd->command = cpu_to_le16(HostCmd_CMD_RSSI_INFO); in mwifiex_cmd_802_11_rssi_info()
51 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_rssi_info) + in mwifiex_cmd_802_11_rssi_info()
53 cmd->params.rssi_info.action = cpu_to_le16(cmd_action); in mwifiex_cmd_802_11_rssi_info()
54 cmd->params.rssi_info.ndata = cpu_to_le16(priv->data_avg_factor); in mwifiex_cmd_802_11_rssi_info()
55 cmd->params.rssi_info.nbcn = cpu_to_le16(priv->bcn_avg_factor); in mwifiex_cmd_802_11_rssi_info()
78 struct host_cmd_ds_command *cmd, in mwifiex_cmd_mac_control() argument
81 struct host_cmd_ds_mac_control *mac_ctrl = &cmd->params.mac_ctrl; in mwifiex_cmd_mac_control()
89 cmd->command = cpu_to_le16(HostCmd_CMD_MAC_CONTROL); in mwifiex_cmd_mac_control()
90 cmd->size = in mwifiex_cmd_mac_control()
113 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_snmp_mib() argument
117 struct host_cmd_ds_802_11_snmp_mib *snmp_mib = &cmd->params.smib; in mwifiex_cmd_802_11_snmp_mib()
121 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SNMP_MIB); in mwifiex_cmd_802_11_snmp_mib()
122 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_snmp_mib) in mwifiex_cmd_802_11_snmp_mib()
129 le16_add_cpu(&cmd->size, MAX_SNMP_BUF_SIZE); in mwifiex_cmd_802_11_snmp_mib()
134 le16_add_cpu(&cmd->size, sizeof(u16)); in mwifiex_cmd_802_11_snmp_mib()
153 mwifiex_cmd_802_11_get_log(struct host_cmd_ds_command *cmd) in mwifiex_cmd_802_11_get_log() argument
155 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_GET_LOG); in mwifiex_cmd_802_11_get_log()
156 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_get_log) + in mwifiex_cmd_802_11_get_log()
171 struct host_cmd_ds_command *cmd, in mwifiex_cmd_tx_rate_cfg() argument
174 struct host_cmd_ds_tx_rate_cfg *rate_cfg = &cmd->params.tx_rate_cfg; in mwifiex_cmd_tx_rate_cfg()
179 cmd->command = cpu_to_le16(HostCmd_CMD_TX_RATE_CFG); in mwifiex_cmd_tx_rate_cfg()
229 cmd->size = in mwifiex_cmd_tx_rate_cfg()
246 static int mwifiex_cmd_tx_power_cfg(struct host_cmd_ds_command *cmd, in mwifiex_cmd_tx_power_cfg() argument
251 struct host_cmd_ds_txpwr_cfg *cmd_txp_cfg = &cmd->params.txp_cfg; in mwifiex_cmd_tx_power_cfg()
253 cmd->command = cpu_to_le16(HostCmd_CMD_TXPWR_CFG); in mwifiex_cmd_tx_power_cfg()
254 cmd->size = in mwifiex_cmd_tx_power_cfg()
270 cmd->size = cpu_to_le16(le16_to_cpu(cmd->size) + in mwifiex_cmd_tx_power_cfg()
290 struct host_cmd_ds_command *cmd, in mwifiex_cmd_rf_tx_power() argument
293 struct host_cmd_ds_rf_tx_pwr *txp = &cmd->params.txp; in mwifiex_cmd_rf_tx_power()
295 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_rf_tx_pwr) in mwifiex_cmd_rf_tx_power()
297 cmd->command = cpu_to_le16(HostCmd_CMD_RF_TX_PWR); in mwifiex_cmd_rf_tx_power()
307 struct host_cmd_ds_command *cmd, in mwifiex_cmd_rf_antenna() argument
311 struct host_cmd_ds_rf_ant_mimo *ant_mimo = &cmd->params.ant_mimo; in mwifiex_cmd_rf_antenna()
312 struct host_cmd_ds_rf_ant_siso *ant_siso = &cmd->params.ant_siso; in mwifiex_cmd_rf_antenna()
314 cmd->command = cpu_to_le16(HostCmd_CMD_RF_ANTENNA); in mwifiex_cmd_rf_antenna()
320 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_rf_ant_mimo) + in mwifiex_cmd_rf_antenna()
327 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_rf_ant_siso) + in mwifiex_cmd_rf_antenna()
347 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_hs_cfg() argument
352 struct host_cmd_ds_802_11_hs_cfg_enh *hs_cfg = &cmd->params.opt_hs_cfg; in mwifiex_cmd_802_11_hs_cfg()
358 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_HS_CFG_ENH); in mwifiex_cmd_802_11_hs_cfg()
370 cmd->size = cpu_to_le16 in mwifiex_cmd_802_11_hs_cfg()
375 cmd->size = cpu_to_le16(S_DS_GEN + sizeof(struct in mwifiex_cmd_802_11_hs_cfg()
405 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_mac_address() argument
408 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_MAC_ADDRESS); in mwifiex_cmd_802_11_mac_address()
409 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_mac_address) + in mwifiex_cmd_802_11_mac_address()
411 cmd->result = 0; in mwifiex_cmd_802_11_mac_address()
413 cmd->params.mac_addr.action = cpu_to_le16(cmd_action); in mwifiex_cmd_802_11_mac_address()
416 memcpy(cmd->params.mac_addr.mac_addr, priv->curr_addr, in mwifiex_cmd_802_11_mac_address()
430 mwifiex_cmd_mac_multicast_adr(struct host_cmd_ds_command *cmd, in mwifiex_cmd_mac_multicast_adr() argument
434 struct host_cmd_ds_mac_multicast_adr *mcast_addr = &cmd->params.mc_addr; in mwifiex_cmd_mac_multicast_adr()
436 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_mac_multicast_adr) + in mwifiex_cmd_mac_multicast_adr()
438 cmd->command = cpu_to_le16(HostCmd_CMD_MAC_MULTICAST_ADR); in mwifiex_cmd_mac_multicast_adr()
458 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_deauthenticate() argument
461 struct host_cmd_ds_802_11_deauthenticate *deauth = &cmd->params.deauth; in mwifiex_cmd_802_11_deauthenticate()
463 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_DEAUTHENTICATE); in mwifiex_cmd_802_11_deauthenticate()
464 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_deauthenticate) in mwifiex_cmd_802_11_deauthenticate()
484 static int mwifiex_cmd_802_11_ad_hoc_stop(struct host_cmd_ds_command *cmd) in mwifiex_cmd_802_11_ad_hoc_stop() argument
486 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_AD_HOC_STOP); in mwifiex_cmd_802_11_ad_hoc_stop()
487 cmd->size = cpu_to_le16(S_DS_GEN); in mwifiex_cmd_802_11_ad_hoc_stop()
562 struct host_cmd_ds_command *cmd, in mwifiex_set_aes_key_v2() argument
600 cmd->size = cpu_to_le16(size); in mwifiex_set_aes_key_v2()
615 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_key_material_v2() argument
623 &cmd->params.key_material_v2; in mwifiex_cmd_802_11_key_material_v2()
625 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_KEY_MATERIAL); in mwifiex_cmd_802_11_key_material_v2()
646 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + in mwifiex_cmd_802_11_key_material_v2()
664 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + in mwifiex_cmd_802_11_key_material_v2()
709 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + in mwifiex_cmd_802_11_key_material_v2()
737 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + in mwifiex_cmd_802_11_key_material_v2()
757 return mwifiex_set_aes_key_v2(priv, cmd, enc_key, km); in mwifiex_cmd_802_11_key_material_v2()
773 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + in mwifiex_cmd_802_11_key_material_v2()
792 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_key_material_v1() argument
797 &cmd->params.key_material; in mwifiex_cmd_802_11_key_material_v1()
802 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_KEY_MATERIAL); in mwifiex_cmd_802_11_key_material_v1()
806 cmd->size = in mwifiex_cmd_802_11_key_material_v1()
818 cmd->size = cpu_to_le16(key_param_len + in mwifiex_cmd_802_11_key_material_v1()
865 cmd->size = cpu_to_le16(sizeof(key_material->action) in mwifiex_cmd_802_11_key_material_v1()
950 cmd->size = cpu_to_le16(sizeof(key_material->action) + S_DS_GEN in mwifiex_cmd_802_11_key_material_v1()
967 cmd->size = cpu_to_le16(cmd_size); in mwifiex_cmd_802_11_key_material_v1()
976 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_key_material() argument
981 return mwifiex_cmd_802_11_key_material_v2(priv, cmd, in mwifiex_cmd_802_11_key_material()
986 return mwifiex_cmd_802_11_key_material_v1(priv, cmd, in mwifiex_cmd_802_11_key_material()
1000 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11d_domain_info() argument
1005 &cmd->params.domain_info; in mwifiex_cmd_802_11d_domain_info()
1013 cmd->command = cpu_to_le16(HostCmd_CMD_802_11D_DOMAIN_INFO); in mwifiex_cmd_802_11d_domain_info()
1016 cmd->size = cpu_to_le16(sizeof(domain_info->action) + S_DS_GEN); in mwifiex_cmd_802_11d_domain_info()
1035 cmd->size = cpu_to_le16(sizeof(domain_info->action) + in mwifiex_cmd_802_11d_domain_info()
1040 cmd->size = cpu_to_le16(sizeof(domain_info->action) + S_DS_GEN); in mwifiex_cmd_802_11d_domain_info()
1054 static int mwifiex_cmd_ibss_coalescing_status(struct host_cmd_ds_command *cmd, in mwifiex_cmd_ibss_coalescing_status() argument
1058 &(cmd->params.ibss_coalescing); in mwifiex_cmd_ibss_coalescing_status()
1060 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_IBSS_COALESCING_STATUS); in mwifiex_cmd_ibss_coalescing_status()
1061 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_ibss_status) + in mwifiex_cmd_ibss_coalescing_status()
1063 cmd->result = 0; in mwifiex_cmd_ibss_coalescing_status()
1086 mwifiex_cmd_mem_access(struct host_cmd_ds_command *cmd, u16 cmd_action, in mwifiex_cmd_mem_access() argument
1090 struct host_cmd_ds_mem_access *mem_access = (void *)&cmd->params.mem; in mwifiex_cmd_mem_access()
1092 cmd->command = cpu_to_le16(HostCmd_CMD_MEM_ACCESS); in mwifiex_cmd_mem_access()
1093 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_mem_access) + in mwifiex_cmd_mem_access()
1120 static int mwifiex_cmd_reg_access(struct host_cmd_ds_command *cmd, in mwifiex_cmd_reg_access() argument
1125 switch (le16_to_cpu(cmd->command)) { in mwifiex_cmd_reg_access()
1130 cmd->size = cpu_to_le16(sizeof(*mac_reg) + S_DS_GEN); in mwifiex_cmd_reg_access()
1131 mac_reg = &cmd->params.mac_reg; in mwifiex_cmd_reg_access()
1142 cmd->size = cpu_to_le16(sizeof(*bbp_reg) + S_DS_GEN); in mwifiex_cmd_reg_access()
1143 bbp_reg = &cmd->params.bbp_reg; in mwifiex_cmd_reg_access()
1154 cmd->size = cpu_to_le16(sizeof(*rf_reg) + S_DS_GEN); in mwifiex_cmd_reg_access()
1155 rf_reg = &cmd->params.rf_reg; in mwifiex_cmd_reg_access()
1165 cmd->size = cpu_to_le16(sizeof(*pmic_reg) + S_DS_GEN); in mwifiex_cmd_reg_access()
1166 pmic_reg = &cmd->params.pmic_reg; in mwifiex_cmd_reg_access()
1177 cmd->size = cpu_to_le16(sizeof(*cau_reg) + S_DS_GEN); in mwifiex_cmd_reg_access()
1178 cau_reg = &cmd->params.rf_reg; in mwifiex_cmd_reg_access()
1189 &cmd->params.eeprom; in mwifiex_cmd_reg_access()
1191 cmd->size = cpu_to_le16(sizeof(*cmd_eeprom) + S_DS_GEN); in mwifiex_cmd_reg_access()
1216 struct host_cmd_ds_command *cmd, u16 action) in mwifiex_cmd_pcie_host_spec() argument
1219 &cmd->params.pcie_host_spec; in mwifiex_cmd_pcie_host_spec()
1222 cmd->command = cpu_to_le16(HostCmd_CMD_PCIE_DESC_DETAILS); in mwifiex_cmd_pcie_host_spec()
1223 cmd->size = cpu_to_le16(sizeof(struct in mwifiex_cmd_pcie_host_spec()
1225 cmd->result = 0; in mwifiex_cmd_pcie_host_spec()
1263 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_subsc_evt() argument
1266 struct host_cmd_ds_802_11_subsc_evt *subsc_evt = &cmd->params.subsc_evt; in mwifiex_cmd_802_11_subsc_evt()
1271 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SUBSCRIBE_EVENT); in mwifiex_cmd_802_11_subsc_evt()
1272 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_subsc_evt) + in mwifiex_cmd_802_11_subsc_evt()
1326 le16_add_cpu(&cmd->size, in mwifiex_cmd_802_11_subsc_evt()
1347 le16_add_cpu(&cmd->size, in mwifiex_cmd_802_11_subsc_evt()
1403 struct host_cmd_ds_command *cmd, in mwifiex_cmd_mef_cfg() argument
1406 struct host_cmd_ds_mef_cfg *mef_cfg = &cmd->params.mef_cfg; in mwifiex_cmd_mef_cfg()
1411 cmd->command = cpu_to_le16(HostCmd_CMD_MEF_CFG); in mwifiex_cmd_mef_cfg()
1430 cmd->size = cpu_to_le16((u16) (pos - (u8 *)mef_cfg) + S_DS_GEN); in mwifiex_cmd_mef_cfg()
1486 struct host_cmd_ds_command *cmd, void *data_buf) in mwifiex_cmd_cfg_data() argument
1491 u8 *data = (u8 *)cmd + S_DS_GEN; in mwifiex_cmd_cfg_data()
1512 cmd->command = cpu_to_le16(HostCmd_CMD_CFG_DATA); in mwifiex_cmd_cfg_data()
1513 cmd->size = cpu_to_le16(S_DS_GEN + len); in mwifiex_cmd_cfg_data()
1520 struct host_cmd_ds_command *cmd, in mwifiex_cmd_set_mc_policy() argument
1523 struct host_cmd_ds_multi_chan_policy *mc_pol = &cmd->params.mc_policy; in mwifiex_cmd_set_mc_policy()
1528 cmd->command = cpu_to_le16(HostCmd_CMD_MC_POLICY); in mwifiex_cmd_set_mc_policy()
1529 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_multi_chan_policy) + in mwifiex_cmd_set_mc_policy()
1535 struct host_cmd_ds_command *cmd, in mwifiex_cmd_robust_coex() argument
1538 struct host_cmd_ds_robust_coex *coex = &cmd->params.coex; in mwifiex_cmd_robust_coex()
1541 cmd->command = cpu_to_le16(HostCmd_CMD_ROBUST_COEX); in mwifiex_cmd_robust_coex()
1542 cmd->size = cpu_to_le16(sizeof(*coex) + sizeof(*coex_tlv) + S_DS_GEN); in mwifiex_cmd_robust_coex()
1563 struct host_cmd_ds_command *cmd, in mwifiex_cmd_coalesce_cfg() argument
1567 &cmd->params.coalesce_cfg; in mwifiex_cmd_coalesce_cfg()
1573 cmd->command = cpu_to_le16(HostCmd_CMD_COALESCE_CFG); in mwifiex_cmd_coalesce_cfg()
1574 cmd->size = cpu_to_le16(S_DS_GEN); in mwifiex_cmd_coalesce_cfg()
1613 le16_add_cpu(&cmd->size, le16_to_cpu(rule->header.len) + in mwifiex_cmd_coalesce_cfg()
1620 le16_add_cpu(&cmd->size, sizeof(u16) + sizeof(u16)); in mwifiex_cmd_coalesce_cfg()
1627 struct host_cmd_ds_command *cmd, in mwifiex_cmd_tdls_config() argument
1630 struct host_cmd_ds_tdls_config *tdls_config = &cmd->params.tdls_config; in mwifiex_cmd_tdls_config()
1635 cmd->command = cpu_to_le16(HostCmd_CMD_TDLS_CONFIG); in mwifiex_cmd_tdls_config()
1636 cmd->size = cpu_to_le16(S_DS_GEN); in mwifiex_cmd_tdls_config()
1638 le16_add_cpu(&cmd->size, sizeof(tdls_config->tdls_action)); in mwifiex_cmd_tdls_config()
1665 le16_add_cpu(&cmd->size, len); in mwifiex_cmd_tdls_config()
1671 struct host_cmd_ds_command *cmd, in mwifiex_cmd_tdls_oper() argument
1674 struct host_cmd_ds_tdls_oper *tdls_oper = &cmd->params.tdls_oper; in mwifiex_cmd_tdls_oper()
1688 cmd->command = cpu_to_le16(HostCmd_CMD_TDLS_OPER); in mwifiex_cmd_tdls_oper()
1689 cmd->size = cpu_to_le16(S_DS_GEN); in mwifiex_cmd_tdls_oper()
1690 le16_add_cpu(&cmd->size, sizeof(struct host_cmd_ds_tdls_oper)); in mwifiex_cmd_tdls_oper()
1793 le16_add_cpu(&cmd->size, config_len); in mwifiex_cmd_tdls_oper()
1799 static int mwifiex_cmd_sdio_rx_aggr_cfg(struct host_cmd_ds_command *cmd, in mwifiex_cmd_sdio_rx_aggr_cfg() argument
1803 &cmd->params.sdio_rx_aggr_cfg; in mwifiex_cmd_sdio_rx_aggr_cfg()
1805 cmd->command = cpu_to_le16(HostCmd_CMD_SDIO_SP_RX_AGGR_CFG); in mwifiex_cmd_sdio_rx_aggr_cfg()
1806 cmd->size = in mwifiex_cmd_sdio_rx_aggr_cfg()