Lines Matching refs:acx

85 	struct acx_current_tx_power *acx;  in wl1271_acx_tx_power()  local
93 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_tx_power()
94 if (!acx) { in wl1271_acx_tx_power()
99 acx->role_id = wlvif->role_id; in wl1271_acx_tx_power()
100 acx->current_tx_power = power * 10; in wl1271_acx_tx_power()
102 ret = wl1271_cmd_configure(wl, DOT11_CUR_TX_PWR, acx, sizeof(*acx)); in wl1271_acx_tx_power()
109 kfree(acx); in wl1271_acx_tx_power()
160 struct acx_rx_msdu_lifetime *acx; in wl1271_acx_rx_msdu_life_time() local
165 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_rx_msdu_life_time()
166 if (!acx) { in wl1271_acx_rx_msdu_life_time()
171 acx->lifetime = cpu_to_le32(wl->conf.rx.rx_msdu_life_time); in wl1271_acx_rx_msdu_life_time()
173 acx, sizeof(*acx)); in wl1271_acx_rx_msdu_life_time()
180 kfree(acx); in wl1271_acx_rx_msdu_life_time()
216 struct acx_dot11_grp_addr_tbl *acx; in wl1271_acx_group_address_tbl() local
221 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_group_address_tbl()
222 if (!acx) { in wl1271_acx_group_address_tbl()
228 acx->role_id = wlvif->role_id; in wl1271_acx_group_address_tbl()
229 acx->enabled = enable; in wl1271_acx_group_address_tbl()
230 acx->num_groups = mc_list_len; in wl1271_acx_group_address_tbl()
231 memcpy(acx->mac_table, mc_list, mc_list_len * ETH_ALEN); in wl1271_acx_group_address_tbl()
234 acx, sizeof(*acx)); in wl1271_acx_group_address_tbl()
241 kfree(acx); in wl1271_acx_group_address_tbl()
441 struct acx_conn_monit_params *acx; in wl1271_acx_conn_monit_params() local
449 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_conn_monit_params()
450 if (!acx) { in wl1271_acx_conn_monit_params()
460 acx->role_id = wlvif->role_id; in wl1271_acx_conn_monit_params()
461 acx->synch_fail_thold = cpu_to_le32(threshold); in wl1271_acx_conn_monit_params()
462 acx->bss_lose_timeout = cpu_to_le32(timeout); in wl1271_acx_conn_monit_params()
465 acx, sizeof(*acx)); in wl1271_acx_conn_monit_params()
473 kfree(acx); in wl1271_acx_conn_monit_params()
652 struct acx_preamble *acx; in wl1271_acx_set_preamble() local
657 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_set_preamble()
658 if (!acx) { in wl1271_acx_set_preamble()
663 acx->role_id = wlvif->role_id; in wl1271_acx_set_preamble()
664 acx->preamble = preamble; in wl1271_acx_set_preamble()
666 ret = wl1271_cmd_configure(wl, ACX_PREAMBLE_TYPE, acx, sizeof(*acx)); in wl1271_acx_set_preamble()
673 kfree(acx); in wl1271_acx_set_preamble()
680 struct acx_ctsprotect *acx; in wl1271_acx_cts_protect() local
685 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_cts_protect()
686 if (!acx) { in wl1271_acx_cts_protect()
691 acx->role_id = wlvif->role_id; in wl1271_acx_cts_protect()
692 acx->ctsprotect = ctsprotect; in wl1271_acx_cts_protect()
694 ret = wl1271_cmd_configure(wl, ACX_CTS_PROTECTION, acx, sizeof(*acx)); in wl1271_acx_cts_protect()
701 kfree(acx); in wl1271_acx_cts_protect()
724 struct acx_rate_policy *acx; in wl1271_acx_sta_rate_policies() local
730 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_sta_rate_policies()
732 if (!acx) { in wl1271_acx_sta_rate_policies()
741 acx->rate_policy_idx = cpu_to_le32(wlvif->sta.basic_rate_idx); in wl1271_acx_sta_rate_policies()
742 acx->rate_policy.enabled_rates = cpu_to_le32(wlvif->basic_rate); in wl1271_acx_sta_rate_policies()
743 acx->rate_policy.short_retry_limit = c->short_retry_limit; in wl1271_acx_sta_rate_policies()
744 acx->rate_policy.long_retry_limit = c->long_retry_limit; in wl1271_acx_sta_rate_policies()
745 acx->rate_policy.aflags = c->aflags; in wl1271_acx_sta_rate_policies()
747 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1271_acx_sta_rate_policies()
754 acx->rate_policy_idx = cpu_to_le32(wlvif->sta.ap_rate_idx); in wl1271_acx_sta_rate_policies()
757 acx->rate_policy.enabled_rates = in wl1271_acx_sta_rate_policies()
759 acx->rate_policy.short_retry_limit = c->short_retry_limit; in wl1271_acx_sta_rate_policies()
760 acx->rate_policy.long_retry_limit = c->long_retry_limit; in wl1271_acx_sta_rate_policies()
761 acx->rate_policy.aflags = c->aflags; in wl1271_acx_sta_rate_policies()
763 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1271_acx_sta_rate_policies()
774 acx->rate_policy_idx = cpu_to_le32(wlvif->sta.p2p_rate_idx); in wl1271_acx_sta_rate_policies()
775 acx->rate_policy.enabled_rates = in wl1271_acx_sta_rate_policies()
777 acx->rate_policy.short_retry_limit = c->short_retry_limit; in wl1271_acx_sta_rate_policies()
778 acx->rate_policy.long_retry_limit = c->long_retry_limit; in wl1271_acx_sta_rate_policies()
779 acx->rate_policy.aflags = c->aflags; in wl1271_acx_sta_rate_policies()
781 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1271_acx_sta_rate_policies()
788 kfree(acx); in wl1271_acx_sta_rate_policies()
795 struct acx_rate_policy *acx; in wl1271_acx_ap_rate_policy() local
801 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_ap_rate_policy()
802 if (!acx) { in wl1271_acx_ap_rate_policy()
807 acx->rate_policy.enabled_rates = cpu_to_le32(c->enabled_rates); in wl1271_acx_ap_rate_policy()
808 acx->rate_policy.short_retry_limit = c->short_retry_limit; in wl1271_acx_ap_rate_policy()
809 acx->rate_policy.long_retry_limit = c->long_retry_limit; in wl1271_acx_ap_rate_policy()
810 acx->rate_policy.aflags = c->aflags; in wl1271_acx_ap_rate_policy()
812 acx->rate_policy_idx = cpu_to_le32(idx); in wl1271_acx_ap_rate_policy()
814 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1271_acx_ap_rate_policy()
821 kfree(acx); in wl1271_acx_ap_rate_policy()
828 struct acx_ac_cfg *acx; in wl1271_acx_ac_cfg() local
834 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_ac_cfg()
836 if (!acx) { in wl1271_acx_ac_cfg()
841 acx->role_id = wlvif->role_id; in wl1271_acx_ac_cfg()
842 acx->ac = ac; in wl1271_acx_ac_cfg()
843 acx->cw_min = cw_min; in wl1271_acx_ac_cfg()
844 acx->cw_max = cpu_to_le16(cw_max); in wl1271_acx_ac_cfg()
845 acx->aifsn = aifsn; in wl1271_acx_ac_cfg()
846 acx->tx_op_limit = cpu_to_le16(txop); in wl1271_acx_ac_cfg()
848 ret = wl1271_cmd_configure(wl, ACX_AC_CFG, acx, sizeof(*acx)); in wl1271_acx_ac_cfg()
855 kfree(acx); in wl1271_acx_ac_cfg()
864 struct acx_tid_config *acx; in wl1271_acx_tid_cfg() local
869 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_tid_cfg()
871 if (!acx) { in wl1271_acx_tid_cfg()
876 acx->role_id = wlvif->role_id; in wl1271_acx_tid_cfg()
877 acx->queue_id = queue_id; in wl1271_acx_tid_cfg()
878 acx->channel_type = channel_type; in wl1271_acx_tid_cfg()
879 acx->tsid = tsid; in wl1271_acx_tid_cfg()
880 acx->ps_scheme = ps_scheme; in wl1271_acx_tid_cfg()
881 acx->ack_policy = ack_policy; in wl1271_acx_tid_cfg()
882 acx->apsd_conf[0] = cpu_to_le32(apsd_conf0); in wl1271_acx_tid_cfg()
883 acx->apsd_conf[1] = cpu_to_le32(apsd_conf1); in wl1271_acx_tid_cfg()
885 ret = wl1271_cmd_configure(wl, ACX_TID_CFG, acx, sizeof(*acx)); in wl1271_acx_tid_cfg()
892 kfree(acx); in wl1271_acx_tid_cfg()
898 struct acx_frag_threshold *acx; in wl1271_acx_frag_threshold() local
910 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_frag_threshold()
912 if (!acx) { in wl1271_acx_frag_threshold()
917 acx->frag_threshold = cpu_to_le16((u16)frag_threshold); in wl1271_acx_frag_threshold()
918 ret = wl1271_cmd_configure(wl, ACX_FRAG_CFG, acx, sizeof(*acx)); in wl1271_acx_frag_threshold()
925 kfree(acx); in wl1271_acx_frag_threshold()
931 struct acx_tx_config_options *acx; in wl1271_acx_tx_config_options() local
936 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_tx_config_options()
938 if (!acx) { in wl1271_acx_tx_config_options()
943 acx->tx_compl_timeout = cpu_to_le16(wl->conf.tx.tx_compl_timeout); in wl1271_acx_tx_config_options()
944 acx->tx_compl_threshold = cpu_to_le16(wl->conf.tx.tx_compl_threshold); in wl1271_acx_tx_config_options()
945 ret = wl1271_cmd_configure(wl, ACX_TX_CONFIG_OPT, acx, sizeof(*acx)); in wl1271_acx_tx_config_options()
952 kfree(acx); in wl1271_acx_tx_config_options()
1061 struct wl1271_acx_bet_enable *acx = NULL; in wl1271_acx_bet_enable() local
1069 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_bet_enable()
1070 if (!acx) { in wl1271_acx_bet_enable()
1075 acx->role_id = wlvif->role_id; in wl1271_acx_bet_enable()
1076 acx->enable = enable ? CONF_BET_MODE_ENABLE : CONF_BET_MODE_DISABLE; in wl1271_acx_bet_enable()
1077 acx->max_consecutive = wl->conf.conn.bet_max_consecutive; in wl1271_acx_bet_enable()
1079 ret = wl1271_cmd_configure(wl, ACX_BET_ENABLE, acx, sizeof(*acx)); in wl1271_acx_bet_enable()
1086 kfree(acx); in wl1271_acx_bet_enable()
1093 struct wl1271_acx_arp_filter *acx; in wl1271_acx_arp_ip_filter() local
1098 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_arp_ip_filter()
1099 if (!acx) { in wl1271_acx_arp_ip_filter()
1104 acx->role_id = wlvif->role_id; in wl1271_acx_arp_ip_filter()
1105 acx->version = ACX_IPV4_VERSION; in wl1271_acx_arp_ip_filter()
1106 acx->enable = enable; in wl1271_acx_arp_ip_filter()
1109 memcpy(acx->address, &address, ACX_IPV4_ADDR_SIZE); in wl1271_acx_arp_ip_filter()
1112 acx, sizeof(*acx)); in wl1271_acx_arp_ip_filter()
1119 kfree(acx); in wl1271_acx_arp_ip_filter()
1125 struct wl1271_acx_pm_config *acx = NULL; in wl1271_acx_pm_config() local
1131 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_pm_config()
1132 if (!acx) { in wl1271_acx_pm_config()
1137 acx->host_clk_settling_time = cpu_to_le32(c->host_clk_settling_time); in wl1271_acx_pm_config()
1138 acx->host_fast_wakeup_support = c->host_fast_wakeup_support; in wl1271_acx_pm_config()
1140 ret = wl1271_cmd_configure(wl, ACX_PM_CONFIG, acx, sizeof(*acx)); in wl1271_acx_pm_config()
1147 kfree(acx); in wl1271_acx_pm_config()
1155 struct wl1271_acx_keep_alive_mode *acx = NULL; in wl1271_acx_keep_alive_mode() local
1160 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_keep_alive_mode()
1161 if (!acx) { in wl1271_acx_keep_alive_mode()
1166 acx->role_id = wlvif->role_id; in wl1271_acx_keep_alive_mode()
1167 acx->enabled = enable; in wl1271_acx_keep_alive_mode()
1169 ret = wl1271_cmd_configure(wl, ACX_KEEP_ALIVE_MODE, acx, sizeof(*acx)); in wl1271_acx_keep_alive_mode()
1176 kfree(acx); in wl1271_acx_keep_alive_mode()
1183 struct wl1271_acx_keep_alive_config *acx = NULL; in wl1271_acx_keep_alive_config() local
1188 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_keep_alive_config()
1189 if (!acx) { in wl1271_acx_keep_alive_config()
1194 acx->role_id = wlvif->role_id; in wl1271_acx_keep_alive_config()
1195 acx->period = cpu_to_le32(wl->conf.conn.keep_alive_interval); in wl1271_acx_keep_alive_config()
1196 acx->index = index; in wl1271_acx_keep_alive_config()
1197 acx->tpl_validation = tpl_valid; in wl1271_acx_keep_alive_config()
1198 acx->trigger = ACX_KEEP_ALIVE_NO_TX; in wl1271_acx_keep_alive_config()
1201 acx, sizeof(*acx)); in wl1271_acx_keep_alive_config()
1208 kfree(acx); in wl1271_acx_keep_alive_config()
1215 struct wl1271_acx_rssi_snr_trigger *acx = NULL; in wl1271_acx_rssi_snr_trigger() local
1220 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_rssi_snr_trigger()
1221 if (!acx) { in wl1271_acx_rssi_snr_trigger()
1228 acx->role_id = wlvif->role_id; in wl1271_acx_rssi_snr_trigger()
1229 acx->pacing = cpu_to_le16(wl->conf.roam_trigger.trigger_pacing); in wl1271_acx_rssi_snr_trigger()
1230 acx->metric = WL1271_ACX_TRIG_METRIC_RSSI_BEACON; in wl1271_acx_rssi_snr_trigger()
1231 acx->type = WL1271_ACX_TRIG_TYPE_EDGE; in wl1271_acx_rssi_snr_trigger()
1233 acx->enable = WL1271_ACX_TRIG_ENABLE; in wl1271_acx_rssi_snr_trigger()
1235 acx->enable = WL1271_ACX_TRIG_DISABLE; in wl1271_acx_rssi_snr_trigger()
1237 acx->index = WL1271_ACX_TRIG_IDX_RSSI; in wl1271_acx_rssi_snr_trigger()
1238 acx->dir = WL1271_ACX_TRIG_DIR_BIDIR; in wl1271_acx_rssi_snr_trigger()
1239 acx->threshold = cpu_to_le16(thold); in wl1271_acx_rssi_snr_trigger()
1240 acx->hysteresis = hyst; in wl1271_acx_rssi_snr_trigger()
1242 ret = wl1271_cmd_configure(wl, ACX_RSSI_SNR_TRIGGER, acx, sizeof(*acx)); in wl1271_acx_rssi_snr_trigger()
1249 kfree(acx); in wl1271_acx_rssi_snr_trigger()
1256 struct wl1271_acx_rssi_snr_avg_weights *acx = NULL; in wl1271_acx_rssi_snr_avg_weights() local
1262 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_rssi_snr_avg_weights()
1263 if (!acx) { in wl1271_acx_rssi_snr_avg_weights()
1268 acx->role_id = wlvif->role_id; in wl1271_acx_rssi_snr_avg_weights()
1269 acx->rssi_beacon = c->avg_weight_rssi_beacon; in wl1271_acx_rssi_snr_avg_weights()
1270 acx->rssi_data = c->avg_weight_rssi_data; in wl1271_acx_rssi_snr_avg_weights()
1271 acx->snr_beacon = c->avg_weight_snr_beacon; in wl1271_acx_rssi_snr_avg_weights()
1272 acx->snr_data = c->avg_weight_snr_data; in wl1271_acx_rssi_snr_avg_weights()
1274 ret = wl1271_cmd_configure(wl, ACX_RSSI_SNR_WEIGHTS, acx, sizeof(*acx)); in wl1271_acx_rssi_snr_avg_weights()
1281 kfree(acx); in wl1271_acx_rssi_snr_avg_weights()
1289 struct wl1271_acx_ht_capabilities *acx; in wl1271_acx_set_ht_capabilities() local
1297 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_set_ht_capabilities()
1298 if (!acx) { in wl1271_acx_set_ht_capabilities()
1314 acx->ampdu_max_length = ht_cap->ampdu_factor; in wl1271_acx_set_ht_capabilities()
1315 acx->ampdu_min_spacing = ht_cap->ampdu_density; in wl1271_acx_set_ht_capabilities()
1318 acx->hlid = hlid; in wl1271_acx_set_ht_capabilities()
1319 acx->ht_capabilites = cpu_to_le32(ht_capabilites); in wl1271_acx_set_ht_capabilities()
1321 ret = wl1271_cmd_configure(wl, ACX_PEER_HT_CAP, acx, sizeof(*acx)); in wl1271_acx_set_ht_capabilities()
1328 kfree(acx); in wl1271_acx_set_ht_capabilities()
1338 struct wl1271_acx_ht_information *acx; in wl1271_acx_set_ht_information() local
1343 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_set_ht_information()
1344 if (!acx) { in wl1271_acx_set_ht_information()
1349 acx->role_id = wlvif->role_id; in wl1271_acx_set_ht_information()
1350 acx->ht_protection = in wl1271_acx_set_ht_information()
1352 acx->rifs_mode = 0; in wl1271_acx_set_ht_information()
1353 acx->gf_protection = in wl1271_acx_set_ht_information()
1355 acx->ht_tx_burst_limit = 0; in wl1271_acx_set_ht_information()
1356 acx->dual_cts_protection = 0; in wl1271_acx_set_ht_information()
1358 ret = wl1271_cmd_configure(wl, ACX_HT_BSS_OPERATION, acx, sizeof(*acx)); in wl1271_acx_set_ht_information()
1366 kfree(acx); in wl1271_acx_set_ht_information()
1374 struct wl1271_acx_ba_initiator_policy *acx; in wl12xx_acx_set_ba_initiator_policy() local
1379 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl12xx_acx_set_ba_initiator_policy()
1380 if (!acx) { in wl12xx_acx_set_ba_initiator_policy()
1386 acx->role_id = wlvif->role_id; in wl12xx_acx_set_ba_initiator_policy()
1387 acx->tid_bitmap = wl->conf.ht.tx_ba_tid_bitmap; in wl12xx_acx_set_ba_initiator_policy()
1388 acx->win_size = wl->conf.ht.tx_ba_win_size; in wl12xx_acx_set_ba_initiator_policy()
1389 acx->inactivity_timeout = wl->conf.ht.inactivity_timeout; in wl12xx_acx_set_ba_initiator_policy()
1393 acx, in wl12xx_acx_set_ba_initiator_policy()
1394 sizeof(*acx)); in wl12xx_acx_set_ba_initiator_policy()
1401 kfree(acx); in wl12xx_acx_set_ba_initiator_policy()
1410 struct wl1271_acx_ba_receiver_setup *acx; in wl12xx_acx_set_ba_receiver_session() local
1415 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl12xx_acx_set_ba_receiver_session()
1416 if (!acx) { in wl12xx_acx_set_ba_receiver_session()
1421 acx->hlid = peer_hlid; in wl12xx_acx_set_ba_receiver_session()
1422 acx->tid = tid_index; in wl12xx_acx_set_ba_receiver_session()
1423 acx->enable = enable; in wl12xx_acx_set_ba_receiver_session()
1424 acx->win_size = win_size; in wl12xx_acx_set_ba_receiver_session()
1425 acx->ssn = ssn; in wl12xx_acx_set_ba_receiver_session()
1427 ret = wlcore_cmd_configure_failsafe(wl, ACX_BA_SESSION_RX_SETUP, acx, in wl12xx_acx_set_ba_receiver_session()
1428 sizeof(*acx), in wl12xx_acx_set_ba_receiver_session()
1444 kfree(acx); in wl12xx_acx_set_ba_receiver_session()
1528 struct wl1271_acx_ap_max_tx_retry *acx = NULL; in wl1271_acx_ap_max_tx_retry() local
1533 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_ap_max_tx_retry()
1534 if (!acx) in wl1271_acx_ap_max_tx_retry()
1537 acx->role_id = wlvif->role_id; in wl1271_acx_ap_max_tx_retry()
1538 acx->max_tx_retry = cpu_to_le16(wl->conf.tx.max_tx_retries); in wl1271_acx_ap_max_tx_retry()
1540 ret = wl1271_cmd_configure(wl, ACX_MAX_TX_FAILURE, acx, sizeof(*acx)); in wl1271_acx_ap_max_tx_retry()
1547 kfree(acx); in wl1271_acx_ap_max_tx_retry()
1584 struct wl1271_acx_inconnection_sta *acx = NULL; in wl1271_acx_set_inconnection_sta() local
1589 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_set_inconnection_sta()
1590 if (!acx) in wl1271_acx_set_inconnection_sta()
1593 memcpy(acx->addr, addr, ETH_ALEN); in wl1271_acx_set_inconnection_sta()
1594 acx->role_id = wlvif->role_id; in wl1271_acx_set_inconnection_sta()
1597 acx, sizeof(*acx)); in wl1271_acx_set_inconnection_sta()
1604 kfree(acx); in wl1271_acx_set_inconnection_sta()
1610 struct wl1271_acx_fm_coex *acx; in wl1271_acx_fm_coex() local
1615 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_fm_coex()
1616 if (!acx) { in wl1271_acx_fm_coex()
1621 acx->enable = wl->conf.fm_coex.enable; in wl1271_acx_fm_coex()
1622 acx->swallow_period = wl->conf.fm_coex.swallow_period; in wl1271_acx_fm_coex()
1623 acx->n_divider_fref_set_1 = wl->conf.fm_coex.n_divider_fref_set_1; in wl1271_acx_fm_coex()
1624 acx->n_divider_fref_set_2 = wl->conf.fm_coex.n_divider_fref_set_2; in wl1271_acx_fm_coex()
1625 acx->m_divider_fref_set_1 = in wl1271_acx_fm_coex()
1627 acx->m_divider_fref_set_2 = in wl1271_acx_fm_coex()
1629 acx->coex_pll_stabilization_time = in wl1271_acx_fm_coex()
1631 acx->ldo_stabilization_time = in wl1271_acx_fm_coex()
1633 acx->fm_disturbed_band_margin = in wl1271_acx_fm_coex()
1635 acx->swallow_clk_diff = wl->conf.fm_coex.swallow_clk_diff; in wl1271_acx_fm_coex()
1637 ret = wl1271_cmd_configure(wl, ACX_FM_COEX_CFG, acx, sizeof(*acx)); in wl1271_acx_fm_coex()
1644 kfree(acx); in wl1271_acx_fm_coex()
1650 struct wl12xx_acx_set_rate_mgmt_params *acx = NULL; in wl12xx_acx_set_rate_mgmt_params() local
1656 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl12xx_acx_set_rate_mgmt_params()
1657 if (!acx) in wl12xx_acx_set_rate_mgmt_params()
1660 acx->index = ACX_RATE_MGMT_ALL_PARAMS; in wl12xx_acx_set_rate_mgmt_params()
1661 acx->rate_retry_score = cpu_to_le16(conf->rate_retry_score); in wl12xx_acx_set_rate_mgmt_params()
1662 acx->per_add = cpu_to_le16(conf->per_add); in wl12xx_acx_set_rate_mgmt_params()
1663 acx->per_th1 = cpu_to_le16(conf->per_th1); in wl12xx_acx_set_rate_mgmt_params()
1664 acx->per_th2 = cpu_to_le16(conf->per_th2); in wl12xx_acx_set_rate_mgmt_params()
1665 acx->max_per = cpu_to_le16(conf->max_per); in wl12xx_acx_set_rate_mgmt_params()
1666 acx->inverse_curiosity_factor = conf->inverse_curiosity_factor; in wl12xx_acx_set_rate_mgmt_params()
1667 acx->tx_fail_low_th = conf->tx_fail_low_th; in wl12xx_acx_set_rate_mgmt_params()
1668 acx->tx_fail_high_th = conf->tx_fail_high_th; in wl12xx_acx_set_rate_mgmt_params()
1669 acx->per_alpha_shift = conf->per_alpha_shift; in wl12xx_acx_set_rate_mgmt_params()
1670 acx->per_add_shift = conf->per_add_shift; in wl12xx_acx_set_rate_mgmt_params()
1671 acx->per_beta1_shift = conf->per_beta1_shift; in wl12xx_acx_set_rate_mgmt_params()
1672 acx->per_beta2_shift = conf->per_beta2_shift; in wl12xx_acx_set_rate_mgmt_params()
1673 acx->rate_check_up = conf->rate_check_up; in wl12xx_acx_set_rate_mgmt_params()
1674 acx->rate_check_down = conf->rate_check_down; in wl12xx_acx_set_rate_mgmt_params()
1675 memcpy(acx->rate_retry_policy, conf->rate_retry_policy, in wl12xx_acx_set_rate_mgmt_params()
1676 sizeof(acx->rate_retry_policy)); in wl12xx_acx_set_rate_mgmt_params()
1679 acx, sizeof(*acx)); in wl12xx_acx_set_rate_mgmt_params()
1686 kfree(acx); in wl12xx_acx_set_rate_mgmt_params()
1692 struct wl12xx_acx_config_hangover *acx; in wl12xx_acx_config_hangover() local
1698 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl12xx_acx_config_hangover()
1699 if (!acx) { in wl12xx_acx_config_hangover()
1704 acx->recover_time = cpu_to_le32(conf->recover_time); in wl12xx_acx_config_hangover()
1705 acx->hangover_period = conf->hangover_period; in wl12xx_acx_config_hangover()
1706 acx->dynamic_mode = conf->dynamic_mode; in wl12xx_acx_config_hangover()
1707 acx->early_termination_mode = conf->early_termination_mode; in wl12xx_acx_config_hangover()
1708 acx->max_period = conf->max_period; in wl12xx_acx_config_hangover()
1709 acx->min_period = conf->min_period; in wl12xx_acx_config_hangover()
1710 acx->increase_delta = conf->increase_delta; in wl12xx_acx_config_hangover()
1711 acx->decrease_delta = conf->decrease_delta; in wl12xx_acx_config_hangover()
1712 acx->quiet_time = conf->quiet_time; in wl12xx_acx_config_hangover()
1713 acx->increase_time = conf->increase_time; in wl12xx_acx_config_hangover()
1714 acx->window_size = conf->window_size; in wl12xx_acx_config_hangover()
1716 ret = wl1271_cmd_configure(wl, ACX_CONFIG_HANGOVER, acx, in wl12xx_acx_config_hangover()
1717 sizeof(*acx)); in wl12xx_acx_config_hangover()
1725 kfree(acx); in wl12xx_acx_config_hangover()
1733 struct acx_roaming_stats *acx; in wlcore_acx_average_rssi() local
1738 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wlcore_acx_average_rssi()
1739 if (!acx) { in wlcore_acx_average_rssi()
1744 acx->role_id = wlvif->role_id; in wlcore_acx_average_rssi()
1746 acx, sizeof(*acx), sizeof(*acx)); in wlcore_acx_average_rssi()
1753 *avg_rssi = acx->rssi_beacon; in wlcore_acx_average_rssi()
1755 kfree(acx); in wlcore_acx_average_rssi()
1764 struct acx_default_rx_filter *acx; in wl1271_acx_default_rx_filter_enable() local
1770 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_default_rx_filter_enable()
1771 if (!acx) in wl1271_acx_default_rx_filter_enable()
1774 acx->enable = enable; in wl1271_acx_default_rx_filter_enable()
1775 acx->default_action = action; in wl1271_acx_default_rx_filter_enable()
1777 ret = wl1271_cmd_configure(wl, ACX_ENABLE_RX_DATA_FILTER, acx, in wl1271_acx_default_rx_filter_enable()
1778 sizeof(*acx)); in wl1271_acx_default_rx_filter_enable()
1785 kfree(acx); in wl1271_acx_default_rx_filter_enable()
1793 struct acx_rx_filter_cfg *acx; in wl1271_acx_set_rx_filter() local
1812 acx_size = ALIGN(sizeof(*acx) + fields_size, 4); in wl1271_acx_set_rx_filter()
1813 acx = kzalloc(acx_size, GFP_KERNEL); in wl1271_acx_set_rx_filter()
1815 if (!acx) in wl1271_acx_set_rx_filter()
1818 acx->enable = enable; in wl1271_acx_set_rx_filter()
1819 acx->index = index; in wl1271_acx_set_rx_filter()
1822 acx->num_fields = filter->num_fields; in wl1271_acx_set_rx_filter()
1823 acx->action = filter->action; in wl1271_acx_set_rx_filter()
1824 wl1271_rx_filter_flatten_fields(filter, acx->fields); in wl1271_acx_set_rx_filter()
1827 wl1271_dump(DEBUG_ACX, "RX_FILTER: ", acx, acx_size); in wl1271_acx_set_rx_filter()
1829 ret = wl1271_cmd_configure(wl, ACX_SET_RX_DATA_FILTER, acx, acx_size); in wl1271_acx_set_rx_filter()
1836 kfree(acx); in wl1271_acx_set_rx_filter()