• Home
  • Raw
  • Download

Lines Matching refs:acx

93 	struct acx_current_tx_power *acx;  in wl1271_acx_tx_power()  local
101 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_tx_power()
102 if (!acx) { in wl1271_acx_tx_power()
107 acx->role_id = wlvif->role_id; in wl1271_acx_tx_power()
108 acx->current_tx_power = power * 10; in wl1271_acx_tx_power()
110 ret = wl1271_cmd_configure(wl, DOT11_CUR_TX_PWR, acx, sizeof(*acx)); in wl1271_acx_tx_power()
117 kfree(acx); in wl1271_acx_tx_power()
167 struct acx_rx_msdu_lifetime *acx; in wl1271_acx_rx_msdu_life_time() local
172 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_rx_msdu_life_time()
173 if (!acx) { in wl1271_acx_rx_msdu_life_time()
178 acx->lifetime = cpu_to_le32(wl->conf.rx.rx_msdu_life_time); in wl1271_acx_rx_msdu_life_time()
180 acx, sizeof(*acx)); in wl1271_acx_rx_msdu_life_time()
187 kfree(acx); in wl1271_acx_rx_msdu_life_time()
223 struct acx_dot11_grp_addr_tbl *acx; in wl1271_acx_group_address_tbl() local
228 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_group_address_tbl()
229 if (!acx) { in wl1271_acx_group_address_tbl()
235 acx->role_id = wlvif->role_id; in wl1271_acx_group_address_tbl()
236 acx->enabled = enable; in wl1271_acx_group_address_tbl()
237 acx->num_groups = mc_list_len; in wl1271_acx_group_address_tbl()
238 memcpy(acx->mac_table, mc_list, mc_list_len * ETH_ALEN); in wl1271_acx_group_address_tbl()
241 acx, sizeof(*acx)); in wl1271_acx_group_address_tbl()
248 kfree(acx); in wl1271_acx_group_address_tbl()
447 struct acx_conn_monit_params *acx; in wl1271_acx_conn_monit_params() local
455 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_conn_monit_params()
456 if (!acx) { in wl1271_acx_conn_monit_params()
466 acx->role_id = wlvif->role_id; in wl1271_acx_conn_monit_params()
467 acx->synch_fail_thold = cpu_to_le32(threshold); in wl1271_acx_conn_monit_params()
468 acx->bss_lose_timeout = cpu_to_le32(timeout); in wl1271_acx_conn_monit_params()
471 acx, sizeof(*acx)); in wl1271_acx_conn_monit_params()
479 kfree(acx); in wl1271_acx_conn_monit_params()
658 struct acx_preamble *acx; in wl1271_acx_set_preamble() local
663 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_set_preamble()
664 if (!acx) { in wl1271_acx_set_preamble()
669 acx->role_id = wlvif->role_id; in wl1271_acx_set_preamble()
670 acx->preamble = preamble; in wl1271_acx_set_preamble()
672 ret = wl1271_cmd_configure(wl, ACX_PREAMBLE_TYPE, acx, sizeof(*acx)); in wl1271_acx_set_preamble()
679 kfree(acx); in wl1271_acx_set_preamble()
686 struct acx_ctsprotect *acx; in wl1271_acx_cts_protect() local
691 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_cts_protect()
692 if (!acx) { in wl1271_acx_cts_protect()
697 acx->role_id = wlvif->role_id; in wl1271_acx_cts_protect()
698 acx->ctsprotect = ctsprotect; in wl1271_acx_cts_protect()
700 ret = wl1271_cmd_configure(wl, ACX_CTS_PROTECTION, acx, sizeof(*acx)); in wl1271_acx_cts_protect()
707 kfree(acx); in wl1271_acx_cts_protect()
729 struct acx_rate_policy *acx; in wl1271_acx_sta_rate_policies() local
735 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_sta_rate_policies()
737 if (!acx) { in wl1271_acx_sta_rate_policies()
746 acx->rate_policy_idx = cpu_to_le32(wlvif->sta.basic_rate_idx); in wl1271_acx_sta_rate_policies()
747 acx->rate_policy.enabled_rates = cpu_to_le32(wlvif->basic_rate); in wl1271_acx_sta_rate_policies()
748 acx->rate_policy.short_retry_limit = c->short_retry_limit; in wl1271_acx_sta_rate_policies()
749 acx->rate_policy.long_retry_limit = c->long_retry_limit; in wl1271_acx_sta_rate_policies()
750 acx->rate_policy.aflags = c->aflags; in wl1271_acx_sta_rate_policies()
752 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1271_acx_sta_rate_policies()
759 acx->rate_policy_idx = cpu_to_le32(wlvif->sta.ap_rate_idx); in wl1271_acx_sta_rate_policies()
760 acx->rate_policy.enabled_rates = cpu_to_le32(wlvif->rate_set); in wl1271_acx_sta_rate_policies()
761 acx->rate_policy.short_retry_limit = c->short_retry_limit; in wl1271_acx_sta_rate_policies()
762 acx->rate_policy.long_retry_limit = c->long_retry_limit; in wl1271_acx_sta_rate_policies()
763 acx->rate_policy.aflags = c->aflags; in wl1271_acx_sta_rate_policies()
765 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1271_acx_sta_rate_policies()
776 acx->rate_policy_idx = cpu_to_le32(wlvif->sta.p2p_rate_idx); in wl1271_acx_sta_rate_policies()
777 acx->rate_policy.enabled_rates = in wl1271_acx_sta_rate_policies()
779 acx->rate_policy.short_retry_limit = c->short_retry_limit; in wl1271_acx_sta_rate_policies()
780 acx->rate_policy.long_retry_limit = c->long_retry_limit; in wl1271_acx_sta_rate_policies()
781 acx->rate_policy.aflags = c->aflags; in wl1271_acx_sta_rate_policies()
783 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1271_acx_sta_rate_policies()
790 kfree(acx); in wl1271_acx_sta_rate_policies()
797 struct acx_rate_policy *acx; in wl1271_acx_ap_rate_policy() local
803 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_ap_rate_policy()
804 if (!acx) { in wl1271_acx_ap_rate_policy()
809 acx->rate_policy.enabled_rates = cpu_to_le32(c->enabled_rates); in wl1271_acx_ap_rate_policy()
810 acx->rate_policy.short_retry_limit = c->short_retry_limit; in wl1271_acx_ap_rate_policy()
811 acx->rate_policy.long_retry_limit = c->long_retry_limit; in wl1271_acx_ap_rate_policy()
812 acx->rate_policy.aflags = c->aflags; in wl1271_acx_ap_rate_policy()
814 acx->rate_policy_idx = cpu_to_le32(idx); in wl1271_acx_ap_rate_policy()
816 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1271_acx_ap_rate_policy()
823 kfree(acx); in wl1271_acx_ap_rate_policy()
830 struct acx_ac_cfg *acx; in wl1271_acx_ac_cfg() local
836 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_ac_cfg()
838 if (!acx) { in wl1271_acx_ac_cfg()
843 acx->role_id = wlvif->role_id; in wl1271_acx_ac_cfg()
844 acx->ac = ac; in wl1271_acx_ac_cfg()
845 acx->cw_min = cw_min; in wl1271_acx_ac_cfg()
846 acx->cw_max = cpu_to_le16(cw_max); in wl1271_acx_ac_cfg()
847 acx->aifsn = aifsn; in wl1271_acx_ac_cfg()
848 acx->tx_op_limit = cpu_to_le16(txop); in wl1271_acx_ac_cfg()
850 ret = wl1271_cmd_configure(wl, ACX_AC_CFG, acx, sizeof(*acx)); in wl1271_acx_ac_cfg()
857 kfree(acx); in wl1271_acx_ac_cfg()
866 struct acx_tid_config *acx; in wl1271_acx_tid_cfg() local
871 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_tid_cfg()
873 if (!acx) { in wl1271_acx_tid_cfg()
878 acx->role_id = wlvif->role_id; in wl1271_acx_tid_cfg()
879 acx->queue_id = queue_id; in wl1271_acx_tid_cfg()
880 acx->channel_type = channel_type; in wl1271_acx_tid_cfg()
881 acx->tsid = tsid; in wl1271_acx_tid_cfg()
882 acx->ps_scheme = ps_scheme; in wl1271_acx_tid_cfg()
883 acx->ack_policy = ack_policy; in wl1271_acx_tid_cfg()
884 acx->apsd_conf[0] = cpu_to_le32(apsd_conf0); in wl1271_acx_tid_cfg()
885 acx->apsd_conf[1] = cpu_to_le32(apsd_conf1); in wl1271_acx_tid_cfg()
887 ret = wl1271_cmd_configure(wl, ACX_TID_CFG, acx, sizeof(*acx)); in wl1271_acx_tid_cfg()
894 kfree(acx); in wl1271_acx_tid_cfg()
900 struct acx_frag_threshold *acx; in wl1271_acx_frag_threshold() local
912 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_frag_threshold()
914 if (!acx) { in wl1271_acx_frag_threshold()
919 acx->frag_threshold = cpu_to_le16((u16)frag_threshold); in wl1271_acx_frag_threshold()
920 ret = wl1271_cmd_configure(wl, ACX_FRAG_CFG, acx, sizeof(*acx)); in wl1271_acx_frag_threshold()
927 kfree(acx); in wl1271_acx_frag_threshold()
933 struct acx_tx_config_options *acx; in wl1271_acx_tx_config_options() local
938 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_tx_config_options()
940 if (!acx) { in wl1271_acx_tx_config_options()
945 acx->tx_compl_timeout = cpu_to_le16(wl->conf.tx.tx_compl_timeout); in wl1271_acx_tx_config_options()
946 acx->tx_compl_threshold = cpu_to_le16(wl->conf.tx.tx_compl_threshold); in wl1271_acx_tx_config_options()
947 ret = wl1271_cmd_configure(wl, ACX_TX_CONFIG_OPT, acx, sizeof(*acx)); in wl1271_acx_tx_config_options()
954 kfree(acx); in wl1271_acx_tx_config_options()
1090 struct wl1271_acx_bet_enable *acx = NULL; in wl1271_acx_bet_enable() local
1098 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_bet_enable()
1099 if (!acx) { in wl1271_acx_bet_enable()
1104 acx->role_id = wlvif->role_id; in wl1271_acx_bet_enable()
1105 acx->enable = enable ? CONF_BET_MODE_ENABLE : CONF_BET_MODE_DISABLE; in wl1271_acx_bet_enable()
1106 acx->max_consecutive = wl->conf.conn.bet_max_consecutive; in wl1271_acx_bet_enable()
1108 ret = wl1271_cmd_configure(wl, ACX_BET_ENABLE, acx, sizeof(*acx)); in wl1271_acx_bet_enable()
1115 kfree(acx); in wl1271_acx_bet_enable()
1122 struct wl1271_acx_arp_filter *acx; in wl1271_acx_arp_ip_filter() local
1127 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_arp_ip_filter()
1128 if (!acx) { in wl1271_acx_arp_ip_filter()
1133 acx->role_id = wlvif->role_id; in wl1271_acx_arp_ip_filter()
1134 acx->version = ACX_IPV4_VERSION; in wl1271_acx_arp_ip_filter()
1135 acx->enable = enable; in wl1271_acx_arp_ip_filter()
1138 memcpy(acx->address, &address, ACX_IPV4_ADDR_SIZE); in wl1271_acx_arp_ip_filter()
1141 acx, sizeof(*acx)); in wl1271_acx_arp_ip_filter()
1148 kfree(acx); in wl1271_acx_arp_ip_filter()
1154 struct wl1271_acx_pm_config *acx = NULL; in wl1271_acx_pm_config() local
1160 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_pm_config()
1161 if (!acx) { in wl1271_acx_pm_config()
1166 acx->host_clk_settling_time = cpu_to_le32(c->host_clk_settling_time); in wl1271_acx_pm_config()
1167 acx->host_fast_wakeup_support = c->host_fast_wakeup_support; in wl1271_acx_pm_config()
1169 ret = wl1271_cmd_configure(wl, ACX_PM_CONFIG, acx, sizeof(*acx)); in wl1271_acx_pm_config()
1176 kfree(acx); in wl1271_acx_pm_config()
1183 struct wl1271_acx_keep_alive_mode *acx = NULL; in wl1271_acx_keep_alive_mode() local
1188 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_keep_alive_mode()
1189 if (!acx) { in wl1271_acx_keep_alive_mode()
1194 acx->role_id = wlvif->role_id; in wl1271_acx_keep_alive_mode()
1195 acx->enabled = enable; in wl1271_acx_keep_alive_mode()
1197 ret = wl1271_cmd_configure(wl, ACX_KEEP_ALIVE_MODE, acx, sizeof(*acx)); in wl1271_acx_keep_alive_mode()
1204 kfree(acx); in wl1271_acx_keep_alive_mode()
1211 struct wl1271_acx_keep_alive_config *acx = NULL; in wl1271_acx_keep_alive_config() local
1216 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_keep_alive_config()
1217 if (!acx) { in wl1271_acx_keep_alive_config()
1222 acx->role_id = wlvif->role_id; in wl1271_acx_keep_alive_config()
1223 acx->period = cpu_to_le32(wl->conf.conn.keep_alive_interval); in wl1271_acx_keep_alive_config()
1224 acx->index = index; in wl1271_acx_keep_alive_config()
1225 acx->tpl_validation = tpl_valid; in wl1271_acx_keep_alive_config()
1226 acx->trigger = ACX_KEEP_ALIVE_NO_TX; in wl1271_acx_keep_alive_config()
1229 acx, sizeof(*acx)); in wl1271_acx_keep_alive_config()
1236 kfree(acx); in wl1271_acx_keep_alive_config()
1243 struct wl1271_acx_rssi_snr_trigger *acx = NULL; in wl1271_acx_rssi_snr_trigger() local
1248 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_rssi_snr_trigger()
1249 if (!acx) { in wl1271_acx_rssi_snr_trigger()
1256 acx->role_id = wlvif->role_id; in wl1271_acx_rssi_snr_trigger()
1257 acx->pacing = cpu_to_le16(wl->conf.roam_trigger.trigger_pacing); in wl1271_acx_rssi_snr_trigger()
1258 acx->metric = WL1271_ACX_TRIG_METRIC_RSSI_BEACON; in wl1271_acx_rssi_snr_trigger()
1259 acx->type = WL1271_ACX_TRIG_TYPE_EDGE; in wl1271_acx_rssi_snr_trigger()
1261 acx->enable = WL1271_ACX_TRIG_ENABLE; in wl1271_acx_rssi_snr_trigger()
1263 acx->enable = WL1271_ACX_TRIG_DISABLE; in wl1271_acx_rssi_snr_trigger()
1265 acx->index = WL1271_ACX_TRIG_IDX_RSSI; in wl1271_acx_rssi_snr_trigger()
1266 acx->dir = WL1271_ACX_TRIG_DIR_BIDIR; in wl1271_acx_rssi_snr_trigger()
1267 acx->threshold = cpu_to_le16(thold); in wl1271_acx_rssi_snr_trigger()
1268 acx->hysteresis = hyst; in wl1271_acx_rssi_snr_trigger()
1270 ret = wl1271_cmd_configure(wl, ACX_RSSI_SNR_TRIGGER, acx, sizeof(*acx)); in wl1271_acx_rssi_snr_trigger()
1277 kfree(acx); in wl1271_acx_rssi_snr_trigger()
1284 struct wl1271_acx_rssi_snr_avg_weights *acx = NULL; in wl1271_acx_rssi_snr_avg_weights() local
1290 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_rssi_snr_avg_weights()
1291 if (!acx) { in wl1271_acx_rssi_snr_avg_weights()
1296 acx->role_id = wlvif->role_id; in wl1271_acx_rssi_snr_avg_weights()
1297 acx->rssi_beacon = c->avg_weight_rssi_beacon; in wl1271_acx_rssi_snr_avg_weights()
1298 acx->rssi_data = c->avg_weight_rssi_data; in wl1271_acx_rssi_snr_avg_weights()
1299 acx->snr_beacon = c->avg_weight_snr_beacon; in wl1271_acx_rssi_snr_avg_weights()
1300 acx->snr_data = c->avg_weight_snr_data; in wl1271_acx_rssi_snr_avg_weights()
1302 ret = wl1271_cmd_configure(wl, ACX_RSSI_SNR_WEIGHTS, acx, sizeof(*acx)); in wl1271_acx_rssi_snr_avg_weights()
1309 kfree(acx); in wl1271_acx_rssi_snr_avg_weights()
1317 struct wl1271_acx_ht_capabilities *acx; in wl1271_acx_set_ht_capabilities() local
1325 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_set_ht_capabilities()
1326 if (!acx) { in wl1271_acx_set_ht_capabilities()
1342 acx->ampdu_max_length = ht_cap->ampdu_factor; in wl1271_acx_set_ht_capabilities()
1343 acx->ampdu_min_spacing = ht_cap->ampdu_density; in wl1271_acx_set_ht_capabilities()
1346 acx->hlid = hlid; in wl1271_acx_set_ht_capabilities()
1347 acx->ht_capabilites = cpu_to_le32(ht_capabilites); in wl1271_acx_set_ht_capabilities()
1349 ret = wl1271_cmd_configure(wl, ACX_PEER_HT_CAP, acx, sizeof(*acx)); in wl1271_acx_set_ht_capabilities()
1356 kfree(acx); in wl1271_acx_set_ht_capabilities()
1364 struct wl1271_acx_ht_information *acx; in wl1271_acx_set_ht_information() local
1369 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_set_ht_information()
1370 if (!acx) { in wl1271_acx_set_ht_information()
1375 acx->role_id = wlvif->role_id; in wl1271_acx_set_ht_information()
1376 acx->ht_protection = in wl1271_acx_set_ht_information()
1378 acx->rifs_mode = 0; in wl1271_acx_set_ht_information()
1379 acx->gf_protection = in wl1271_acx_set_ht_information()
1381 acx->ht_tx_burst_limit = 0; in wl1271_acx_set_ht_information()
1382 acx->dual_cts_protection = 0; in wl1271_acx_set_ht_information()
1384 ret = wl1271_cmd_configure(wl, ACX_HT_BSS_OPERATION, acx, sizeof(*acx)); in wl1271_acx_set_ht_information()
1392 kfree(acx); in wl1271_acx_set_ht_information()
1400 struct wl1271_acx_ba_initiator_policy *acx; in wl12xx_acx_set_ba_initiator_policy() local
1405 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl12xx_acx_set_ba_initiator_policy()
1406 if (!acx) { in wl12xx_acx_set_ba_initiator_policy()
1412 acx->role_id = wlvif->role_id; in wl12xx_acx_set_ba_initiator_policy()
1413 acx->tid_bitmap = wl->conf.ht.tx_ba_tid_bitmap; in wl12xx_acx_set_ba_initiator_policy()
1414 acx->win_size = wl->conf.ht.tx_ba_win_size; in wl12xx_acx_set_ba_initiator_policy()
1415 acx->inactivity_timeout = wl->conf.ht.inactivity_timeout; in wl12xx_acx_set_ba_initiator_policy()
1419 acx, in wl12xx_acx_set_ba_initiator_policy()
1420 sizeof(*acx)); in wl12xx_acx_set_ba_initiator_policy()
1427 kfree(acx); in wl12xx_acx_set_ba_initiator_policy()
1435 struct wl1271_acx_ba_receiver_setup *acx; in wl12xx_acx_set_ba_receiver_session() local
1440 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl12xx_acx_set_ba_receiver_session()
1441 if (!acx) { in wl12xx_acx_set_ba_receiver_session()
1446 acx->hlid = peer_hlid; in wl12xx_acx_set_ba_receiver_session()
1447 acx->tid = tid_index; in wl12xx_acx_set_ba_receiver_session()
1448 acx->enable = enable; in wl12xx_acx_set_ba_receiver_session()
1449 acx->win_size = wl->conf.ht.rx_ba_win_size; in wl12xx_acx_set_ba_receiver_session()
1450 acx->ssn = ssn; in wl12xx_acx_set_ba_receiver_session()
1452 ret = wl1271_cmd_configure(wl, ACX_BA_SESSION_RX_SETUP, acx, in wl12xx_acx_set_ba_receiver_session()
1453 sizeof(*acx)); in wl12xx_acx_set_ba_receiver_session()
1460 kfree(acx); in wl12xx_acx_set_ba_receiver_session()
1544 struct wl1271_acx_ap_max_tx_retry *acx = NULL; in wl1271_acx_ap_max_tx_retry() local
1549 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_ap_max_tx_retry()
1550 if (!acx) in wl1271_acx_ap_max_tx_retry()
1553 acx->role_id = wlvif->role_id; in wl1271_acx_ap_max_tx_retry()
1554 acx->max_tx_retry = cpu_to_le16(wl->conf.tx.max_tx_retries); in wl1271_acx_ap_max_tx_retry()
1556 ret = wl1271_cmd_configure(wl, ACX_MAX_TX_FAILURE, acx, sizeof(*acx)); in wl1271_acx_ap_max_tx_retry()
1563 kfree(acx); in wl1271_acx_ap_max_tx_retry()
1599 struct wl1271_acx_inconnection_sta *acx = NULL; in wl1271_acx_set_inconnection_sta() local
1604 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_set_inconnection_sta()
1605 if (!acx) in wl1271_acx_set_inconnection_sta()
1608 memcpy(acx->addr, addr, ETH_ALEN); in wl1271_acx_set_inconnection_sta()
1611 acx, sizeof(*acx)); in wl1271_acx_set_inconnection_sta()
1618 kfree(acx); in wl1271_acx_set_inconnection_sta()
1624 struct wl1271_acx_fm_coex *acx; in wl1271_acx_fm_coex() local
1629 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_fm_coex()
1630 if (!acx) { in wl1271_acx_fm_coex()
1635 acx->enable = wl->conf.fm_coex.enable; in wl1271_acx_fm_coex()
1636 acx->swallow_period = wl->conf.fm_coex.swallow_period; in wl1271_acx_fm_coex()
1637 acx->n_divider_fref_set_1 = wl->conf.fm_coex.n_divider_fref_set_1; in wl1271_acx_fm_coex()
1638 acx->n_divider_fref_set_2 = wl->conf.fm_coex.n_divider_fref_set_2; in wl1271_acx_fm_coex()
1639 acx->m_divider_fref_set_1 = in wl1271_acx_fm_coex()
1641 acx->m_divider_fref_set_2 = in wl1271_acx_fm_coex()
1643 acx->coex_pll_stabilization_time = in wl1271_acx_fm_coex()
1645 acx->ldo_stabilization_time = in wl1271_acx_fm_coex()
1647 acx->fm_disturbed_band_margin = in wl1271_acx_fm_coex()
1649 acx->swallow_clk_diff = wl->conf.fm_coex.swallow_clk_diff; in wl1271_acx_fm_coex()
1651 ret = wl1271_cmd_configure(wl, ACX_FM_COEX_CFG, acx, sizeof(*acx)); in wl1271_acx_fm_coex()
1658 kfree(acx); in wl1271_acx_fm_coex()
1664 struct wl12xx_acx_set_rate_mgmt_params *acx = NULL; in wl12xx_acx_set_rate_mgmt_params() local
1670 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl12xx_acx_set_rate_mgmt_params()
1671 if (!acx) in wl12xx_acx_set_rate_mgmt_params()
1674 acx->index = ACX_RATE_MGMT_ALL_PARAMS; in wl12xx_acx_set_rate_mgmt_params()
1675 acx->rate_retry_score = cpu_to_le16(conf->rate_retry_score); in wl12xx_acx_set_rate_mgmt_params()
1676 acx->per_add = cpu_to_le16(conf->per_add); in wl12xx_acx_set_rate_mgmt_params()
1677 acx->per_th1 = cpu_to_le16(conf->per_th1); in wl12xx_acx_set_rate_mgmt_params()
1678 acx->per_th2 = cpu_to_le16(conf->per_th2); in wl12xx_acx_set_rate_mgmt_params()
1679 acx->max_per = cpu_to_le16(conf->max_per); in wl12xx_acx_set_rate_mgmt_params()
1680 acx->inverse_curiosity_factor = conf->inverse_curiosity_factor; in wl12xx_acx_set_rate_mgmt_params()
1681 acx->tx_fail_low_th = conf->tx_fail_low_th; in wl12xx_acx_set_rate_mgmt_params()
1682 acx->tx_fail_high_th = conf->tx_fail_high_th; in wl12xx_acx_set_rate_mgmt_params()
1683 acx->per_alpha_shift = conf->per_alpha_shift; in wl12xx_acx_set_rate_mgmt_params()
1684 acx->per_add_shift = conf->per_add_shift; in wl12xx_acx_set_rate_mgmt_params()
1685 acx->per_beta1_shift = conf->per_beta1_shift; in wl12xx_acx_set_rate_mgmt_params()
1686 acx->per_beta2_shift = conf->per_beta2_shift; in wl12xx_acx_set_rate_mgmt_params()
1687 acx->rate_check_up = conf->rate_check_up; in wl12xx_acx_set_rate_mgmt_params()
1688 acx->rate_check_down = conf->rate_check_down; in wl12xx_acx_set_rate_mgmt_params()
1689 memcpy(acx->rate_retry_policy, conf->rate_retry_policy, in wl12xx_acx_set_rate_mgmt_params()
1690 sizeof(acx->rate_retry_policy)); in wl12xx_acx_set_rate_mgmt_params()
1693 acx, sizeof(*acx)); in wl12xx_acx_set_rate_mgmt_params()
1700 kfree(acx); in wl12xx_acx_set_rate_mgmt_params()
1706 struct wl12xx_acx_config_hangover *acx; in wl12xx_acx_config_hangover() local
1712 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl12xx_acx_config_hangover()
1713 if (!acx) { in wl12xx_acx_config_hangover()
1718 acx->recover_time = cpu_to_le32(conf->recover_time); in wl12xx_acx_config_hangover()
1719 acx->hangover_period = conf->hangover_period; in wl12xx_acx_config_hangover()
1720 acx->dynamic_mode = conf->dynamic_mode; in wl12xx_acx_config_hangover()
1721 acx->early_termination_mode = conf->early_termination_mode; in wl12xx_acx_config_hangover()
1722 acx->max_period = conf->max_period; in wl12xx_acx_config_hangover()
1723 acx->min_period = conf->min_period; in wl12xx_acx_config_hangover()
1724 acx->increase_delta = conf->increase_delta; in wl12xx_acx_config_hangover()
1725 acx->decrease_delta = conf->decrease_delta; in wl12xx_acx_config_hangover()
1726 acx->quiet_time = conf->quiet_time; in wl12xx_acx_config_hangover()
1727 acx->increase_time = conf->increase_time; in wl12xx_acx_config_hangover()
1728 acx->window_size = acx->window_size; in wl12xx_acx_config_hangover()
1730 ret = wl1271_cmd_configure(wl, ACX_CONFIG_HANGOVER, acx, in wl12xx_acx_config_hangover()
1731 sizeof(*acx)); in wl12xx_acx_config_hangover()
1739 kfree(acx); in wl12xx_acx_config_hangover()