Lines Matching refs:cmd
44 struct host_cmd_ds_command *cmd, u16 cmd_action) in mwifiex_cmd_802_11_rssi_info() argument
46 cmd->command = cpu_to_le16(HostCmd_CMD_RSSI_INFO); in mwifiex_cmd_802_11_rssi_info()
47 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_rssi_info) + in mwifiex_cmd_802_11_rssi_info()
49 cmd->params.rssi_info.action = cpu_to_le16(cmd_action); in mwifiex_cmd_802_11_rssi_info()
50 cmd->params.rssi_info.ndata = cpu_to_le16(priv->data_avg_factor); in mwifiex_cmd_802_11_rssi_info()
51 cmd->params.rssi_info.nbcn = cpu_to_le16(priv->bcn_avg_factor); in mwifiex_cmd_802_11_rssi_info()
74 struct host_cmd_ds_command *cmd, in mwifiex_cmd_mac_control() argument
77 struct host_cmd_ds_mac_control *mac_ctrl = &cmd->params.mac_ctrl; in mwifiex_cmd_mac_control()
85 cmd->command = cpu_to_le16(HostCmd_CMD_MAC_CONTROL); in mwifiex_cmd_mac_control()
86 cmd->size = in mwifiex_cmd_mac_control()
109 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_snmp_mib() argument
113 struct host_cmd_ds_802_11_snmp_mib *snmp_mib = &cmd->params.smib; in mwifiex_cmd_802_11_snmp_mib()
116 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SNMP_MIB); in mwifiex_cmd_802_11_snmp_mib()
117 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_snmp_mib) in mwifiex_cmd_802_11_snmp_mib()
124 le16_add_cpu(&cmd->size, MAX_SNMP_BUF_SIZE); in mwifiex_cmd_802_11_snmp_mib()
129 le16_add_cpu(&cmd->size, sizeof(u16)); in mwifiex_cmd_802_11_snmp_mib()
148 mwifiex_cmd_802_11_get_log(struct host_cmd_ds_command *cmd) in mwifiex_cmd_802_11_get_log() argument
150 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_GET_LOG); in mwifiex_cmd_802_11_get_log()
151 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_get_log) + in mwifiex_cmd_802_11_get_log()
166 struct host_cmd_ds_command *cmd, in mwifiex_cmd_tx_rate_cfg() argument
169 struct host_cmd_ds_tx_rate_cfg *rate_cfg = &cmd->params.tx_rate_cfg; in mwifiex_cmd_tx_rate_cfg()
174 cmd->command = cpu_to_le16(HostCmd_CMD_TX_RATE_CFG); in mwifiex_cmd_tx_rate_cfg()
224 cmd->size = in mwifiex_cmd_tx_rate_cfg()
241 static int mwifiex_cmd_tx_power_cfg(struct host_cmd_ds_command *cmd, in mwifiex_cmd_tx_power_cfg() argument
246 struct host_cmd_ds_txpwr_cfg *cmd_txp_cfg = &cmd->params.txp_cfg; in mwifiex_cmd_tx_power_cfg()
248 cmd->command = cpu_to_le16(HostCmd_CMD_TXPWR_CFG); in mwifiex_cmd_tx_power_cfg()
249 cmd->size = in mwifiex_cmd_tx_power_cfg()
265 cmd->size = cpu_to_le16(le16_to_cpu(cmd->size) + in mwifiex_cmd_tx_power_cfg()
285 struct host_cmd_ds_command *cmd, in mwifiex_cmd_rf_tx_power() argument
288 struct host_cmd_ds_rf_tx_pwr *txp = &cmd->params.txp; in mwifiex_cmd_rf_tx_power()
290 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_rf_tx_pwr) in mwifiex_cmd_rf_tx_power()
292 cmd->command = cpu_to_le16(HostCmd_CMD_RF_TX_PWR); in mwifiex_cmd_rf_tx_power()
302 struct host_cmd_ds_command *cmd, in mwifiex_cmd_rf_antenna() argument
306 struct host_cmd_ds_rf_ant_mimo *ant_mimo = &cmd->params.ant_mimo; in mwifiex_cmd_rf_antenna()
307 struct host_cmd_ds_rf_ant_siso *ant_siso = &cmd->params.ant_siso; in mwifiex_cmd_rf_antenna()
309 cmd->command = cpu_to_le16(HostCmd_CMD_RF_ANTENNA); in mwifiex_cmd_rf_antenna()
315 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_rf_ant_mimo) + in mwifiex_cmd_rf_antenna()
322 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_rf_ant_siso) + in mwifiex_cmd_rf_antenna()
342 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_hs_cfg() argument
347 struct host_cmd_ds_802_11_hs_cfg_enh *hs_cfg = &cmd->params.opt_hs_cfg; in mwifiex_cmd_802_11_hs_cfg()
353 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_HS_CFG_ENH); in mwifiex_cmd_802_11_hs_cfg()
365 cmd->size = cpu_to_le16 in mwifiex_cmd_802_11_hs_cfg()
370 cmd->size = cpu_to_le16(S_DS_GEN + sizeof(struct in mwifiex_cmd_802_11_hs_cfg()
400 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_mac_address() argument
403 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_MAC_ADDRESS); in mwifiex_cmd_802_11_mac_address()
404 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_mac_address) + in mwifiex_cmd_802_11_mac_address()
406 cmd->result = 0; in mwifiex_cmd_802_11_mac_address()
408 cmd->params.mac_addr.action = cpu_to_le16(cmd_action); in mwifiex_cmd_802_11_mac_address()
411 memcpy(cmd->params.mac_addr.mac_addr, priv->curr_addr, in mwifiex_cmd_802_11_mac_address()
425 mwifiex_cmd_mac_multicast_adr(struct host_cmd_ds_command *cmd, in mwifiex_cmd_mac_multicast_adr() argument
429 struct host_cmd_ds_mac_multicast_adr *mcast_addr = &cmd->params.mc_addr; in mwifiex_cmd_mac_multicast_adr()
431 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_mac_multicast_adr) + in mwifiex_cmd_mac_multicast_adr()
433 cmd->command = cpu_to_le16(HostCmd_CMD_MAC_MULTICAST_ADR); in mwifiex_cmd_mac_multicast_adr()
453 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_deauthenticate() argument
456 struct host_cmd_ds_802_11_deauthenticate *deauth = &cmd->params.deauth; in mwifiex_cmd_802_11_deauthenticate()
458 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_DEAUTHENTICATE); in mwifiex_cmd_802_11_deauthenticate()
459 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_deauthenticate) in mwifiex_cmd_802_11_deauthenticate()
479 static int mwifiex_cmd_802_11_ad_hoc_stop(struct host_cmd_ds_command *cmd) in mwifiex_cmd_802_11_ad_hoc_stop() argument
481 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_AD_HOC_STOP); in mwifiex_cmd_802_11_ad_hoc_stop()
482 cmd->size = cpu_to_le16(S_DS_GEN); in mwifiex_cmd_802_11_ad_hoc_stop()
557 struct host_cmd_ds_command *cmd, in mwifiex_set_aes_key_v2() argument
593 cmd->size = cpu_to_le16(size); in mwifiex_set_aes_key_v2()
608 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_key_material_v2() argument
616 &cmd->params.key_material_v2; in mwifiex_cmd_802_11_key_material_v2()
618 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_KEY_MATERIAL); in mwifiex_cmd_802_11_key_material_v2()
639 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + in mwifiex_cmd_802_11_key_material_v2()
657 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + in mwifiex_cmd_802_11_key_material_v2()
702 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + in mwifiex_cmd_802_11_key_material_v2()
730 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + in mwifiex_cmd_802_11_key_material_v2()
750 return mwifiex_set_aes_key_v2(priv, cmd, enc_key, km); in mwifiex_cmd_802_11_key_material_v2()
765 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + in mwifiex_cmd_802_11_key_material_v2()
784 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_key_material_v1() argument
789 &cmd->params.key_material; in mwifiex_cmd_802_11_key_material_v1()
794 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_KEY_MATERIAL); in mwifiex_cmd_802_11_key_material_v1()
798 cmd->size = in mwifiex_cmd_802_11_key_material_v1()
810 cmd->size = cpu_to_le16(key_param_len + in mwifiex_cmd_802_11_key_material_v1()
857 cmd->size = cpu_to_le16(sizeof(key_material->action) in mwifiex_cmd_802_11_key_material_v1()
942 cmd->size = cpu_to_le16(sizeof(key_material->action) + S_DS_GEN in mwifiex_cmd_802_11_key_material_v1()
959 cmd->size = cpu_to_le16(cmd_size); in mwifiex_cmd_802_11_key_material_v1()
968 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_key_material() argument
973 return mwifiex_cmd_802_11_key_material_v2(priv, cmd, in mwifiex_cmd_802_11_key_material()
978 return mwifiex_cmd_802_11_key_material_v1(priv, cmd, in mwifiex_cmd_802_11_key_material()
992 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11d_domain_info() argument
997 &cmd->params.domain_info; in mwifiex_cmd_802_11d_domain_info()
1004 cmd->command = cpu_to_le16(HostCmd_CMD_802_11D_DOMAIN_INFO); in mwifiex_cmd_802_11d_domain_info()
1007 cmd->size = cpu_to_le16(sizeof(domain_info->action) + S_DS_GEN); in mwifiex_cmd_802_11d_domain_info()
1026 cmd->size = cpu_to_le16(sizeof(domain_info->action) + in mwifiex_cmd_802_11d_domain_info()
1031 cmd->size = cpu_to_le16(sizeof(domain_info->action) + S_DS_GEN); in mwifiex_cmd_802_11d_domain_info()
1045 static int mwifiex_cmd_ibss_coalescing_status(struct host_cmd_ds_command *cmd, in mwifiex_cmd_ibss_coalescing_status() argument
1049 &(cmd->params.ibss_coalescing); in mwifiex_cmd_ibss_coalescing_status()
1051 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_IBSS_COALESCING_STATUS); in mwifiex_cmd_ibss_coalescing_status()
1052 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_ibss_status) + in mwifiex_cmd_ibss_coalescing_status()
1054 cmd->result = 0; in mwifiex_cmd_ibss_coalescing_status()
1091 static int mwifiex_cmd_reg_access(struct host_cmd_ds_command *cmd, in mwifiex_cmd_reg_access() argument
1096 switch (le16_to_cpu(cmd->command)) { in mwifiex_cmd_reg_access()
1101 cmd->size = cpu_to_le16(sizeof(*mac_reg) + S_DS_GEN); in mwifiex_cmd_reg_access()
1102 mac_reg = &cmd->params.mac_reg; in mwifiex_cmd_reg_access()
1113 cmd->size = cpu_to_le16(sizeof(*bbp_reg) + S_DS_GEN); in mwifiex_cmd_reg_access()
1114 bbp_reg = &cmd->params.bbp_reg; in mwifiex_cmd_reg_access()
1125 cmd->size = cpu_to_le16(sizeof(*rf_reg) + S_DS_GEN); in mwifiex_cmd_reg_access()
1126 rf_reg = &cmd->params.rf_reg; in mwifiex_cmd_reg_access()
1136 cmd->size = cpu_to_le16(sizeof(*pmic_reg) + S_DS_GEN); in mwifiex_cmd_reg_access()
1137 pmic_reg = &cmd->params.pmic_reg; in mwifiex_cmd_reg_access()
1148 cmd->size = cpu_to_le16(sizeof(*cau_reg) + S_DS_GEN); in mwifiex_cmd_reg_access()
1149 cau_reg = &cmd->params.rf_reg; in mwifiex_cmd_reg_access()
1160 &cmd->params.eeprom; in mwifiex_cmd_reg_access()
1162 cmd->size = cpu_to_le16(sizeof(*cmd_eeprom) + S_DS_GEN); in mwifiex_cmd_reg_access()
1187 struct host_cmd_ds_command *cmd, u16 action) in mwifiex_cmd_pcie_host_spec() argument
1190 &cmd->params.pcie_host_spec; in mwifiex_cmd_pcie_host_spec()
1193 cmd->command = cpu_to_le16(HostCmd_CMD_PCIE_DESC_DETAILS); in mwifiex_cmd_pcie_host_spec()
1194 cmd->size = cpu_to_le16(sizeof(struct in mwifiex_cmd_pcie_host_spec()
1196 cmd->result = 0; in mwifiex_cmd_pcie_host_spec()
1233 struct host_cmd_ds_command *cmd, in mwifiex_cmd_802_11_subsc_evt() argument
1236 struct host_cmd_ds_802_11_subsc_evt *subsc_evt = &cmd->params.subsc_evt; in mwifiex_cmd_802_11_subsc_evt()
1241 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SUBSCRIBE_EVENT); in mwifiex_cmd_802_11_subsc_evt()
1242 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_subsc_evt) + in mwifiex_cmd_802_11_subsc_evt()
1293 le16_add_cpu(&cmd->size, in mwifiex_cmd_802_11_subsc_evt()
1313 le16_add_cpu(&cmd->size, in mwifiex_cmd_802_11_subsc_evt()
1369 struct host_cmd_ds_command *cmd, in mwifiex_cmd_mef_cfg() argument
1372 struct host_cmd_ds_mef_cfg *mef_cfg = &cmd->params.mef_cfg; in mwifiex_cmd_mef_cfg()
1377 cmd->command = cpu_to_le16(HostCmd_CMD_MEF_CFG); in mwifiex_cmd_mef_cfg()
1396 cmd->size = cpu_to_le16((u16) (pos - (u8 *)mef_cfg) + S_DS_GEN); in mwifiex_cmd_mef_cfg()
1452 struct host_cmd_ds_command *cmd, void *data_buf) in mwifiex_cmd_cfg_data() argument
1457 u8 *data = (u8 *)cmd + S_DS_GEN; in mwifiex_cmd_cfg_data()
1476 cmd->command = cpu_to_le16(HostCmd_CMD_CFG_DATA); in mwifiex_cmd_cfg_data()
1477 cmd->size = cpu_to_le16(S_DS_GEN + len); in mwifiex_cmd_cfg_data()
1484 struct host_cmd_ds_command *cmd, in mwifiex_cmd_coalesce_cfg() argument
1488 &cmd->params.coalesce_cfg; in mwifiex_cmd_coalesce_cfg()
1494 cmd->command = cpu_to_le16(HostCmd_CMD_COALESCE_CFG); in mwifiex_cmd_coalesce_cfg()
1495 cmd->size = cpu_to_le16(S_DS_GEN); in mwifiex_cmd_coalesce_cfg()
1534 le16_add_cpu(&cmd->size, le16_to_cpu(rule->header.len) + in mwifiex_cmd_coalesce_cfg()
1541 le16_add_cpu(&cmd->size, sizeof(u16) + sizeof(u16)); in mwifiex_cmd_coalesce_cfg()
1548 struct host_cmd_ds_command *cmd, in mwifiex_cmd_tdls_oper() argument
1551 struct host_cmd_ds_tdls_oper *tdls_oper = &cmd->params.tdls_oper; in mwifiex_cmd_tdls_oper()
1565 cmd->command = cpu_to_le16(HostCmd_CMD_TDLS_OPER); in mwifiex_cmd_tdls_oper()
1566 cmd->size = cpu_to_le16(S_DS_GEN); in mwifiex_cmd_tdls_oper()
1567 le16_add_cpu(&cmd->size, sizeof(struct host_cmd_ds_tdls_oper)); in mwifiex_cmd_tdls_oper()
1670 le16_add_cpu(&cmd->size, config_len); in mwifiex_cmd_tdls_oper()
1676 static int mwifiex_cmd_sdio_rx_aggr_cfg(struct host_cmd_ds_command *cmd, in mwifiex_cmd_sdio_rx_aggr_cfg() argument
1680 &cmd->params.sdio_rx_aggr_cfg; in mwifiex_cmd_sdio_rx_aggr_cfg()
1682 cmd->command = cpu_to_le16(HostCmd_CMD_SDIO_SP_RX_AGGR_CFG); in mwifiex_cmd_sdio_rx_aggr_cfg()
1683 cmd->size = in mwifiex_cmd_sdio_rx_aggr_cfg()