Lines Matching refs:arg
1618 const struct wmi_channel_arg *arg) in ath10k_wmi_put_wmi_channel() argument
1624 if (arg->passive) in ath10k_wmi_put_wmi_channel()
1626 if (arg->allow_ibss) in ath10k_wmi_put_wmi_channel()
1628 if (arg->allow_ht) in ath10k_wmi_put_wmi_channel()
1630 if (arg->allow_vht) in ath10k_wmi_put_wmi_channel()
1632 if (arg->ht40plus) in ath10k_wmi_put_wmi_channel()
1634 if (arg->chan_radar) in ath10k_wmi_put_wmi_channel()
1637 ch->mhz = __cpu_to_le32(arg->freq); in ath10k_wmi_put_wmi_channel()
1638 ch->band_center_freq1 = __cpu_to_le32(arg->band_center_freq1); in ath10k_wmi_put_wmi_channel()
1640 ch->min_power = arg->min_power; in ath10k_wmi_put_wmi_channel()
1641 ch->max_power = arg->max_power; in ath10k_wmi_put_wmi_channel()
1642 ch->reg_power = arg->max_reg_power; in ath10k_wmi_put_wmi_channel()
1643 ch->antenna_max = arg->max_antenna_gain; in ath10k_wmi_put_wmi_channel()
1644 ch->max_tx_power = arg->max_power; in ath10k_wmi_put_wmi_channel()
1647 ch->mode = arg->mode; in ath10k_wmi_put_wmi_channel()
2039 struct wmi_scan_ev_arg *arg) in ath10k_wmi_op_pull_scan_ev() argument
2047 arg->event_type = ev->event_type; in ath10k_wmi_op_pull_scan_ev()
2048 arg->reason = ev->reason; in ath10k_wmi_op_pull_scan_ev()
2049 arg->channel_freq = ev->channel_freq; in ath10k_wmi_op_pull_scan_ev()
2050 arg->scan_req_id = ev->scan_req_id; in ath10k_wmi_op_pull_scan_ev()
2051 arg->scan_id = ev->scan_id; in ath10k_wmi_op_pull_scan_ev()
2052 arg->vdev_id = ev->vdev_id; in ath10k_wmi_op_pull_scan_ev()
2059 struct wmi_scan_ev_arg arg = {}; in ath10k_wmi_event_scan() local
2068 ret = ath10k_wmi_pull_scan(ar, skb, &arg); in ath10k_wmi_event_scan()
2074 event_type = __le32_to_cpu(arg.event_type); in ath10k_wmi_event_scan()
2075 reason = __le32_to_cpu(arg.reason); in ath10k_wmi_event_scan()
2076 freq = __le32_to_cpu(arg.channel_freq); in ath10k_wmi_event_scan()
2077 req_id = __le32_to_cpu(arg.scan_req_id); in ath10k_wmi_event_scan()
2078 scan_id = __le32_to_cpu(arg.scan_id); in ath10k_wmi_event_scan()
2079 vdev_id = __le32_to_cpu(arg.vdev_id); in ath10k_wmi_event_scan()
2153 struct wmi_mgmt_rx_ev_arg *arg) in ath10k_wmi_op_pull_mgmt_rx_ev() argument
2178 arg->channel = ev_hdr->channel; in ath10k_wmi_op_pull_mgmt_rx_ev()
2179 arg->buf_len = ev_hdr->buf_len; in ath10k_wmi_op_pull_mgmt_rx_ev()
2180 arg->status = ev_hdr->status; in ath10k_wmi_op_pull_mgmt_rx_ev()
2181 arg->snr = ev_hdr->snr; in ath10k_wmi_op_pull_mgmt_rx_ev()
2182 arg->phy_mode = ev_hdr->phy_mode; in ath10k_wmi_op_pull_mgmt_rx_ev()
2183 arg->rate = ev_hdr->rate; in ath10k_wmi_op_pull_mgmt_rx_ev()
2185 msdu_len = __le32_to_cpu(arg->buf_len); in ath10k_wmi_op_pull_mgmt_rx_ev()
2189 if (le32_to_cpu(arg->status) & WMI_RX_STATUS_EXT_INFO) { in ath10k_wmi_op_pull_mgmt_rx_ev()
2190 len = ALIGN(le32_to_cpu(arg->buf_len), 4); in ath10k_wmi_op_pull_mgmt_rx_ev()
2192 memcpy(&arg->ext_info, ext_info, in ath10k_wmi_op_pull_mgmt_rx_ev()
2205 struct wmi_mgmt_rx_ev_arg *arg) in ath10k_wmi_10_4_op_pull_mgmt_rx_ev() argument
2222 arg->channel = ev_hdr->channel; in ath10k_wmi_10_4_op_pull_mgmt_rx_ev()
2223 arg->buf_len = ev_hdr->buf_len; in ath10k_wmi_10_4_op_pull_mgmt_rx_ev()
2224 arg->status = ev_hdr->status; in ath10k_wmi_10_4_op_pull_mgmt_rx_ev()
2225 arg->snr = ev_hdr->snr; in ath10k_wmi_10_4_op_pull_mgmt_rx_ev()
2226 arg->phy_mode = ev_hdr->phy_mode; in ath10k_wmi_10_4_op_pull_mgmt_rx_ev()
2227 arg->rate = ev_hdr->rate; in ath10k_wmi_10_4_op_pull_mgmt_rx_ev()
2229 msdu_len = __le32_to_cpu(arg->buf_len); in ath10k_wmi_10_4_op_pull_mgmt_rx_ev()
2233 if (le32_to_cpu(arg->status) & WMI_RX_STATUS_EXT_INFO) { in ath10k_wmi_10_4_op_pull_mgmt_rx_ev()
2234 len = ALIGN(le32_to_cpu(arg->buf_len), 4); in ath10k_wmi_10_4_op_pull_mgmt_rx_ev()
2236 memcpy(&arg->ext_info, ext_info, in ath10k_wmi_10_4_op_pull_mgmt_rx_ev()
2271 struct wmi_mgmt_rx_ev_arg arg = {}; in ath10k_wmi_event_mgmt_rx() local
2284 ret = ath10k_wmi_pull_mgmt_rx(ar, skb, &arg); in ath10k_wmi_event_mgmt_rx()
2291 channel = __le32_to_cpu(arg.channel); in ath10k_wmi_event_mgmt_rx()
2292 buf_len = __le32_to_cpu(arg.buf_len); in ath10k_wmi_event_mgmt_rx()
2293 rx_status = __le32_to_cpu(arg.status); in ath10k_wmi_event_mgmt_rx()
2294 snr = __le32_to_cpu(arg.snr); in ath10k_wmi_event_mgmt_rx()
2295 phy_mode = __le32_to_cpu(arg.phy_mode); in ath10k_wmi_event_mgmt_rx()
2296 rate = __le32_to_cpu(arg.rate); in ath10k_wmi_event_mgmt_rx()
2315 __le64_to_cpu(arg.ext_info.rx_mac_timestamp); in ath10k_wmi_event_mgmt_rx()
2405 struct wmi_ch_info_ev_arg *arg) in ath10k_wmi_op_pull_ch_info_ev() argument
2413 arg->err_code = ev->err_code; in ath10k_wmi_op_pull_ch_info_ev()
2414 arg->freq = ev->freq; in ath10k_wmi_op_pull_ch_info_ev()
2415 arg->cmd_flags = ev->cmd_flags; in ath10k_wmi_op_pull_ch_info_ev()
2416 arg->noise_floor = ev->noise_floor; in ath10k_wmi_op_pull_ch_info_ev()
2417 arg->rx_clear_count = ev->rx_clear_count; in ath10k_wmi_op_pull_ch_info_ev()
2418 arg->cycle_count = ev->cycle_count; in ath10k_wmi_op_pull_ch_info_ev()
2425 struct wmi_ch_info_ev_arg *arg) in ath10k_wmi_10_4_op_pull_ch_info_ev() argument
2433 arg->err_code = ev->err_code; in ath10k_wmi_10_4_op_pull_ch_info_ev()
2434 arg->freq = ev->freq; in ath10k_wmi_10_4_op_pull_ch_info_ev()
2435 arg->cmd_flags = ev->cmd_flags; in ath10k_wmi_10_4_op_pull_ch_info_ev()
2436 arg->noise_floor = ev->noise_floor; in ath10k_wmi_10_4_op_pull_ch_info_ev()
2437 arg->rx_clear_count = ev->rx_clear_count; in ath10k_wmi_10_4_op_pull_ch_info_ev()
2438 arg->cycle_count = ev->cycle_count; in ath10k_wmi_10_4_op_pull_ch_info_ev()
2439 arg->chan_tx_pwr_range = ev->chan_tx_pwr_range; in ath10k_wmi_10_4_op_pull_ch_info_ev()
2440 arg->chan_tx_pwr_tp = ev->chan_tx_pwr_tp; in ath10k_wmi_10_4_op_pull_ch_info_ev()
2441 arg->rx_frame_count = ev->rx_frame_count; in ath10k_wmi_10_4_op_pull_ch_info_ev()
2448 struct wmi_ch_info_ev_arg arg = {}; in ath10k_wmi_event_chan_info() local
2453 ret = ath10k_wmi_pull_ch_info(ar, skb, &arg); in ath10k_wmi_event_chan_info()
2459 err_code = __le32_to_cpu(arg.err_code); in ath10k_wmi_event_chan_info()
2460 freq = __le32_to_cpu(arg.freq); in ath10k_wmi_event_chan_info()
2461 cmd_flags = __le32_to_cpu(arg.cmd_flags); in ath10k_wmi_event_chan_info()
2462 noise_floor = __le32_to_cpu(arg.noise_floor); in ath10k_wmi_event_chan_info()
2463 rx_clear_count = __le32_to_cpu(arg.rx_clear_count); in ath10k_wmi_event_chan_info()
2464 cycle_count = __le32_to_cpu(arg.cycle_count); in ath10k_wmi_event_chan_info()
2520 struct wmi_echo_ev_arg arg = {}; in ath10k_wmi_event_echo() local
2523 ret = ath10k_wmi_pull_echo_ev(ar, skb, &arg); in ath10k_wmi_event_echo()
2531 le32_to_cpu(arg.value)); in ath10k_wmi_event_echo()
2533 if (le32_to_cpu(arg.value) == ATH10K_WMI_BARRIER_ECHO_ID) in ath10k_wmi_event_echo()
3079 struct wmi_vdev_start_ev_arg *arg) in ath10k_wmi_op_pull_vdev_start_ev() argument
3087 arg->vdev_id = ev->vdev_id; in ath10k_wmi_op_pull_vdev_start_ev()
3088 arg->req_id = ev->req_id; in ath10k_wmi_op_pull_vdev_start_ev()
3089 arg->resp_type = ev->resp_type; in ath10k_wmi_op_pull_vdev_start_ev()
3090 arg->status = ev->status; in ath10k_wmi_op_pull_vdev_start_ev()
3097 struct wmi_vdev_start_ev_arg arg = {}; in ath10k_wmi_event_vdev_start_resp() local
3102 ret = ath10k_wmi_pull_vdev_start(ar, skb, &arg); in ath10k_wmi_event_vdev_start_resp()
3108 if (WARN_ON(__le32_to_cpu(arg.status))) in ath10k_wmi_event_vdev_start_resp()
3122 struct wmi_peer_kick_ev_arg *arg) in ath10k_wmi_op_pull_peer_kick_ev() argument
3130 arg->mac_addr = ev->peer_macaddr.addr; in ath10k_wmi_op_pull_peer_kick_ev()
3137 struct wmi_peer_kick_ev_arg arg = {}; in ath10k_wmi_event_peer_sta_kickout() local
3141 ret = ath10k_wmi_pull_peer_kick(ar, skb, &arg); in ath10k_wmi_event_peer_sta_kickout()
3149 arg.mac_addr); in ath10k_wmi_event_peer_sta_kickout()
3153 sta = ieee80211_find_sta_by_ifaddr(ar->hw, arg.mac_addr, NULL); in ath10k_wmi_event_peer_sta_kickout()
3156 arg.mac_addr); in ath10k_wmi_event_peer_sta_kickout()
3307 struct wmi_swba_ev_arg *arg) in ath10k_wmi_op_pull_swba_ev() argument
3317 arg->vdev_map = ev->vdev_map; in ath10k_wmi_op_pull_swba_ev()
3326 if (WARN_ON_ONCE(i == ARRAY_SIZE(arg->tim_info))) in ath10k_wmi_op_pull_swba_ev()
3335 arg->tim_info[i].tim_len = ev->bcn_info[i].tim_info.tim_len; in ath10k_wmi_op_pull_swba_ev()
3336 arg->tim_info[i].tim_mcast = ev->bcn_info[i].tim_info.tim_mcast; in ath10k_wmi_op_pull_swba_ev()
3337 arg->tim_info[i].tim_bitmap = in ath10k_wmi_op_pull_swba_ev()
3339 arg->tim_info[i].tim_changed = in ath10k_wmi_op_pull_swba_ev()
3341 arg->tim_info[i].tim_num_ps_pending = in ath10k_wmi_op_pull_swba_ev()
3344 arg->noa_info[i] = &ev->bcn_info[i].p2p_noa_info; in ath10k_wmi_op_pull_swba_ev()
3353 struct wmi_swba_ev_arg *arg) in ath10k_wmi_10_2_4_op_pull_swba_ev() argument
3363 arg->vdev_map = ev->vdev_map; in ath10k_wmi_10_2_4_op_pull_swba_ev()
3372 if (WARN_ON_ONCE(i == ARRAY_SIZE(arg->tim_info))) in ath10k_wmi_10_2_4_op_pull_swba_ev()
3381 arg->tim_info[i].tim_len = ev->bcn_info[i].tim_info.tim_len; in ath10k_wmi_10_2_4_op_pull_swba_ev()
3382 arg->tim_info[i].tim_mcast = ev->bcn_info[i].tim_info.tim_mcast; in ath10k_wmi_10_2_4_op_pull_swba_ev()
3383 arg->tim_info[i].tim_bitmap = in ath10k_wmi_10_2_4_op_pull_swba_ev()
3385 arg->tim_info[i].tim_changed = in ath10k_wmi_10_2_4_op_pull_swba_ev()
3387 arg->tim_info[i].tim_num_ps_pending = in ath10k_wmi_10_2_4_op_pull_swba_ev()
3397 struct wmi_swba_ev_arg *arg) in ath10k_wmi_10_4_op_pull_swba_ev() argument
3407 arg->vdev_map = ev->vdev_map; in ath10k_wmi_10_4_op_pull_swba_ev()
3416 if (WARN_ON_ONCE(i == ARRAY_SIZE(arg->tim_info))) in ath10k_wmi_10_4_op_pull_swba_ev()
3429 arg->tim_info[i].tim_len = __cpu_to_le32(tim_len); in ath10k_wmi_10_4_op_pull_swba_ev()
3431 arg->tim_info[i].tim_len = 0; in ath10k_wmi_10_4_op_pull_swba_ev()
3434 arg->tim_info[i].tim_mcast = ev->bcn_info[i].tim_info.tim_mcast; in ath10k_wmi_10_4_op_pull_swba_ev()
3435 arg->tim_info[i].tim_bitmap = in ath10k_wmi_10_4_op_pull_swba_ev()
3437 arg->tim_info[i].tim_changed = in ath10k_wmi_10_4_op_pull_swba_ev()
3439 arg->tim_info[i].tim_num_ps_pending = in ath10k_wmi_10_4_op_pull_swba_ev()
3459 struct wmi_swba_ev_arg arg = {}; in ath10k_wmi_event_host_swba() local
3469 ret = ath10k_wmi_pull_swba(ar, skb, &arg); in ath10k_wmi_event_host_swba()
3475 map = __le32_to_cpu(arg.vdev_map); in ath10k_wmi_event_host_swba()
3491 tim_info = &arg.tim_info[i]; in ath10k_wmi_event_host_swba()
3492 noa_info = arg.noa_info[i]; in ath10k_wmi_event_host_swba()
3857 struct wmi_phyerr_hdr_arg *arg) in ath10k_wmi_op_pull_phyerr_ev_hdr() argument
3864 arg->num_phyerrs = __le32_to_cpu(ev->num_phyerrs); in ath10k_wmi_op_pull_phyerr_ev_hdr()
3865 arg->tsf_l32 = __le32_to_cpu(ev->tsf_l32); in ath10k_wmi_op_pull_phyerr_ev_hdr()
3866 arg->tsf_u32 = __le32_to_cpu(ev->tsf_u32); in ath10k_wmi_op_pull_phyerr_ev_hdr()
3867 arg->buf_len = skb->len - sizeof(*ev); in ath10k_wmi_op_pull_phyerr_ev_hdr()
3868 arg->phyerrs = ev->phyerrs; in ath10k_wmi_op_pull_phyerr_ev_hdr()
3875 struct wmi_phyerr_hdr_arg *arg) in ath10k_wmi_10_4_op_pull_phyerr_ev_hdr() argument
3883 arg->num_phyerrs = 1; in ath10k_wmi_10_4_op_pull_phyerr_ev_hdr()
3885 arg->tsf_l32 = __le32_to_cpu(ev->tsf_l32); in ath10k_wmi_10_4_op_pull_phyerr_ev_hdr()
3886 arg->tsf_u32 = __le32_to_cpu(ev->tsf_u32); in ath10k_wmi_10_4_op_pull_phyerr_ev_hdr()
3887 arg->buf_len = skb->len; in ath10k_wmi_10_4_op_pull_phyerr_ev_hdr()
3888 arg->phyerrs = skb->data; in ath10k_wmi_10_4_op_pull_phyerr_ev_hdr()
3896 struct wmi_phyerr_ev_arg *arg) in ath10k_wmi_op_pull_phyerr_ev() argument
3907 arg->tsf_timestamp = __le32_to_cpu(phyerr->tsf_timestamp); in ath10k_wmi_op_pull_phyerr_ev()
3908 arg->freq1 = __le16_to_cpu(phyerr->freq1); in ath10k_wmi_op_pull_phyerr_ev()
3909 arg->freq2 = __le16_to_cpu(phyerr->freq2); in ath10k_wmi_op_pull_phyerr_ev()
3910 arg->rssi_combined = phyerr->rssi_combined; in ath10k_wmi_op_pull_phyerr_ev()
3911 arg->chan_width_mhz = phyerr->chan_width_mhz; in ath10k_wmi_op_pull_phyerr_ev()
3912 arg->buf_len = __le32_to_cpu(phyerr->buf_len); in ath10k_wmi_op_pull_phyerr_ev()
3913 arg->buf = phyerr->buf; in ath10k_wmi_op_pull_phyerr_ev()
3914 arg->hdr_len = sizeof(*phyerr); in ath10k_wmi_op_pull_phyerr_ev()
3917 arg->nf_chains[i] = __le16_to_cpu(phyerr->nf_chains[i]); in ath10k_wmi_op_pull_phyerr_ev()
3921 arg->phy_err_code = PHY_ERROR_SPECTRAL_SCAN; in ath10k_wmi_op_pull_phyerr_ev()
3924 arg->phy_err_code = PHY_ERROR_FALSE_RADAR_EXT; in ath10k_wmi_op_pull_phyerr_ev()
3927 arg->phy_err_code = PHY_ERROR_RADAR; in ath10k_wmi_op_pull_phyerr_ev()
3930 arg->phy_err_code = PHY_ERROR_UNKNOWN; in ath10k_wmi_op_pull_phyerr_ev()
3940 struct wmi_phyerr_ev_arg *arg) in ath10k_wmi_10_4_op_pull_phyerr_ev() argument
3952 arg->tsf_timestamp = __le32_to_cpu(phyerr->tsf_timestamp); in ath10k_wmi_10_4_op_pull_phyerr_ev()
3953 arg->freq1 = __le16_to_cpu(phyerr->freq1); in ath10k_wmi_10_4_op_pull_phyerr_ev()
3954 arg->freq2 = __le16_to_cpu(phyerr->freq2); in ath10k_wmi_10_4_op_pull_phyerr_ev()
3955 arg->rssi_combined = phyerr->rssi_combined; in ath10k_wmi_10_4_op_pull_phyerr_ev()
3956 arg->chan_width_mhz = phyerr->chan_width_mhz; in ath10k_wmi_10_4_op_pull_phyerr_ev()
3957 arg->buf_len = __le32_to_cpu(phyerr->buf_len); in ath10k_wmi_10_4_op_pull_phyerr_ev()
3958 arg->buf = phyerr->buf; in ath10k_wmi_10_4_op_pull_phyerr_ev()
3959 arg->hdr_len = sizeof(*phyerr); in ath10k_wmi_10_4_op_pull_phyerr_ev()
3962 arg->nf_chains[i] = __le16_to_cpu(phyerr->nf_chains[i]); in ath10k_wmi_10_4_op_pull_phyerr_ev()
3967 arg->phy_err_code = PHY_ERROR_SPECTRAL_SCAN; in ath10k_wmi_10_4_op_pull_phyerr_ev()
3969 arg->phy_err_code = PHY_ERROR_RADAR; in ath10k_wmi_10_4_op_pull_phyerr_ev()
3971 arg->phy_err_code = PHY_ERROR_UNKNOWN; in ath10k_wmi_10_4_op_pull_phyerr_ev()
4047 struct wmi_roam_ev_arg arg = {}; in ath10k_wmi_event_roam() local
4053 ret = ath10k_wmi_pull_roam_ev(ar, skb, &arg); in ath10k_wmi_event_roam()
4059 vdev_id = __le32_to_cpu(arg.vdev_id); in ath10k_wmi_event_roam()
4060 reason = __le32_to_cpu(arg.reason); in ath10k_wmi_event_roam()
4061 rssi = __le32_to_cpu(arg.rssi); in ath10k_wmi_event_roam()
4577 struct wmi_svc_rdy_ev_arg *arg) in ath10k_wmi_main_op_pull_svc_rdy_ev() argument
4587 arg->min_tx_power = ev->hw_min_tx_power; in ath10k_wmi_main_op_pull_svc_rdy_ev()
4588 arg->max_tx_power = ev->hw_max_tx_power; in ath10k_wmi_main_op_pull_svc_rdy_ev()
4589 arg->ht_cap = ev->ht_cap_info; in ath10k_wmi_main_op_pull_svc_rdy_ev()
4590 arg->vht_cap = ev->vht_cap_info; in ath10k_wmi_main_op_pull_svc_rdy_ev()
4591 arg->sw_ver0 = ev->sw_version; in ath10k_wmi_main_op_pull_svc_rdy_ev()
4592 arg->sw_ver1 = ev->sw_version_1; in ath10k_wmi_main_op_pull_svc_rdy_ev()
4593 arg->phy_capab = ev->phy_capability; in ath10k_wmi_main_op_pull_svc_rdy_ev()
4594 arg->num_rf_chains = ev->num_rf_chains; in ath10k_wmi_main_op_pull_svc_rdy_ev()
4595 arg->eeprom_rd = ev->hal_reg_capabilities.eeprom_rd; in ath10k_wmi_main_op_pull_svc_rdy_ev()
4596 arg->num_mem_reqs = ev->num_mem_reqs; in ath10k_wmi_main_op_pull_svc_rdy_ev()
4597 arg->service_map = ev->wmi_service_bitmap; in ath10k_wmi_main_op_pull_svc_rdy_ev()
4598 arg->service_map_len = sizeof(ev->wmi_service_bitmap); in ath10k_wmi_main_op_pull_svc_rdy_ev()
4600 n = min_t(size_t, __le32_to_cpu(arg->num_mem_reqs), in ath10k_wmi_main_op_pull_svc_rdy_ev()
4601 ARRAY_SIZE(arg->mem_reqs)); in ath10k_wmi_main_op_pull_svc_rdy_ev()
4603 arg->mem_reqs[i] = &ev->mem_reqs[i]; in ath10k_wmi_main_op_pull_svc_rdy_ev()
4606 __le32_to_cpu(arg->num_mem_reqs) * sizeof(arg->mem_reqs[0])) in ath10k_wmi_main_op_pull_svc_rdy_ev()
4614 struct wmi_svc_rdy_ev_arg *arg) in ath10k_wmi_10x_op_pull_svc_rdy_ev() argument
4624 arg->min_tx_power = ev->hw_min_tx_power; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4625 arg->max_tx_power = ev->hw_max_tx_power; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4626 arg->ht_cap = ev->ht_cap_info; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4627 arg->vht_cap = ev->vht_cap_info; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4628 arg->sw_ver0 = ev->sw_version; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4629 arg->phy_capab = ev->phy_capability; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4630 arg->num_rf_chains = ev->num_rf_chains; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4631 arg->eeprom_rd = ev->hal_reg_capabilities.eeprom_rd; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4632 arg->num_mem_reqs = ev->num_mem_reqs; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4633 arg->service_map = ev->wmi_service_bitmap; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4634 arg->service_map_len = sizeof(ev->wmi_service_bitmap); in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4636 n = min_t(size_t, __le32_to_cpu(arg->num_mem_reqs), in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4637 ARRAY_SIZE(arg->mem_reqs)); in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4639 arg->mem_reqs[i] = &ev->mem_reqs[i]; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4642 __le32_to_cpu(arg->num_mem_reqs) * sizeof(arg->mem_reqs[0])) in ath10k_wmi_10x_op_pull_svc_rdy_ev()
4652 struct wmi_svc_rdy_ev_arg arg = {}; in ath10k_wmi_event_service_ready_work() local
4662 ret = ath10k_wmi_pull_svc_rdy(ar, skb, &arg); in ath10k_wmi_event_service_ready_work()
4669 ath10k_wmi_map_svc(ar, arg.service_map, ar->wmi.svc_map, in ath10k_wmi_event_service_ready_work()
4670 arg.service_map_len); in ath10k_wmi_event_service_ready_work()
4672 ar->hw_min_tx_power = __le32_to_cpu(arg.min_tx_power); in ath10k_wmi_event_service_ready_work()
4673 ar->hw_max_tx_power = __le32_to_cpu(arg.max_tx_power); in ath10k_wmi_event_service_ready_work()
4674 ar->ht_cap_info = __le32_to_cpu(arg.ht_cap); in ath10k_wmi_event_service_ready_work()
4675 ar->vht_cap_info = __le32_to_cpu(arg.vht_cap); in ath10k_wmi_event_service_ready_work()
4677 (__le32_to_cpu(arg.sw_ver0) & 0xff000000) >> 24; in ath10k_wmi_event_service_ready_work()
4678 ar->fw_version_minor = (__le32_to_cpu(arg.sw_ver0) & 0x00ffffff); in ath10k_wmi_event_service_ready_work()
4680 (__le32_to_cpu(arg.sw_ver1) & 0xffff0000) >> 16; in ath10k_wmi_event_service_ready_work()
4681 ar->fw_version_build = (__le32_to_cpu(arg.sw_ver1) & 0x0000ffff); in ath10k_wmi_event_service_ready_work()
4682 ar->phy_capability = __le32_to_cpu(arg.phy_capab); in ath10k_wmi_event_service_ready_work()
4683 ar->num_rf_chains = __le32_to_cpu(arg.num_rf_chains); in ath10k_wmi_event_service_ready_work()
4684 ar->ath_common.regulatory.current_rd = __le32_to_cpu(arg.eeprom_rd); in ath10k_wmi_event_service_ready_work()
4687 arg.service_map, arg.service_map_len); in ath10k_wmi_event_service_ready_work()
4710 num_mem_reqs = __le32_to_cpu(arg.num_mem_reqs); in ath10k_wmi_event_service_ready_work()
4736 allocated = ath10k_wmi_is_host_mem_allocated(ar, arg.mem_reqs, in ath10k_wmi_event_service_ready_work()
4749 req_id = __le32_to_cpu(arg.mem_reqs[i]->req_id); in ath10k_wmi_event_service_ready_work()
4750 num_units = __le32_to_cpu(arg.mem_reqs[i]->num_units); in ath10k_wmi_event_service_ready_work()
4751 unit_size = __le32_to_cpu(arg.mem_reqs[i]->unit_size); in ath10k_wmi_event_service_ready_work()
4752 num_unit_info = __le32_to_cpu(arg.mem_reqs[i]->num_unit_info); in ath10k_wmi_event_service_ready_work()
4772 __le32_to_cpu(arg.mem_reqs[i]->num_units), in ath10k_wmi_event_service_ready_work()
4786 __le32_to_cpu(arg.min_tx_power), in ath10k_wmi_event_service_ready_work()
4787 __le32_to_cpu(arg.max_tx_power), in ath10k_wmi_event_service_ready_work()
4788 __le32_to_cpu(arg.ht_cap), in ath10k_wmi_event_service_ready_work()
4789 __le32_to_cpu(arg.vht_cap), in ath10k_wmi_event_service_ready_work()
4790 __le32_to_cpu(arg.sw_ver0), in ath10k_wmi_event_service_ready_work()
4791 __le32_to_cpu(arg.sw_ver1), in ath10k_wmi_event_service_ready_work()
4792 __le32_to_cpu(arg.fw_build), in ath10k_wmi_event_service_ready_work()
4793 __le32_to_cpu(arg.phy_capab), in ath10k_wmi_event_service_ready_work()
4794 __le32_to_cpu(arg.num_rf_chains), in ath10k_wmi_event_service_ready_work()
4795 __le32_to_cpu(arg.eeprom_rd), in ath10k_wmi_event_service_ready_work()
4796 __le32_to_cpu(arg.num_mem_reqs)); in ath10k_wmi_event_service_ready_work()
4810 struct wmi_rdy_ev_arg *arg) in ath10k_wmi_op_pull_rdy_ev() argument
4818 arg->sw_version = ev->sw_version; in ath10k_wmi_op_pull_rdy_ev()
4819 arg->abi_version = ev->abi_version; in ath10k_wmi_op_pull_rdy_ev()
4820 arg->status = ev->status; in ath10k_wmi_op_pull_rdy_ev()
4821 arg->mac_addr = ev->mac_addr.addr; in ath10k_wmi_op_pull_rdy_ev()
4827 struct wmi_roam_ev_arg *arg) in ath10k_wmi_op_pull_roam_ev() argument
4835 arg->vdev_id = ev->vdev_id; in ath10k_wmi_op_pull_roam_ev()
4836 arg->reason = ev->reason; in ath10k_wmi_op_pull_roam_ev()
4843 struct wmi_echo_ev_arg *arg) in ath10k_wmi_op_pull_echo_ev() argument
4847 arg->value = ev->value; in ath10k_wmi_op_pull_echo_ev()
4854 struct wmi_rdy_ev_arg arg = {}; in ath10k_wmi_event_ready() local
4857 ret = ath10k_wmi_pull_rdy(ar, skb, &arg); in ath10k_wmi_event_ready()
4865 __le32_to_cpu(arg.sw_version), in ath10k_wmi_event_ready()
4866 __le32_to_cpu(arg.abi_version), in ath10k_wmi_event_ready()
4867 arg.mac_addr, in ath10k_wmi_event_ready()
4868 __le32_to_cpu(arg.status)); in ath10k_wmi_event_ready()
4870 ether_addr_copy(ar->mac_addr, arg.mac_addr); in ath10k_wmi_event_ready()
5884 int ath10k_wmi_start_scan_verify(const struct wmi_start_scan_arg *arg) in ath10k_wmi_start_scan_verify() argument
5886 if (arg->ie_len && !arg->ie) in ath10k_wmi_start_scan_verify()
5888 if (arg->n_channels && !arg->channels) in ath10k_wmi_start_scan_verify()
5890 if (arg->n_ssids && !arg->ssids) in ath10k_wmi_start_scan_verify()
5892 if (arg->n_bssids && !arg->bssids) in ath10k_wmi_start_scan_verify()
5895 if (arg->ie_len > WLAN_SCAN_PARAMS_MAX_IE_LEN) in ath10k_wmi_start_scan_verify()
5897 if (arg->n_channels > ARRAY_SIZE(arg->channels)) in ath10k_wmi_start_scan_verify()
5899 if (arg->n_ssids > WLAN_SCAN_PARAMS_MAX_SSID) in ath10k_wmi_start_scan_verify()
5901 if (arg->n_bssids > WLAN_SCAN_PARAMS_MAX_BSSID) in ath10k_wmi_start_scan_verify()
5908 ath10k_wmi_start_scan_tlvs_len(const struct wmi_start_scan_arg *arg) in ath10k_wmi_start_scan_tlvs_len() argument
5912 if (arg->ie_len) { in ath10k_wmi_start_scan_tlvs_len()
5914 len += roundup(arg->ie_len, 4); in ath10k_wmi_start_scan_tlvs_len()
5917 if (arg->n_channels) { in ath10k_wmi_start_scan_tlvs_len()
5919 len += sizeof(__le32) * arg->n_channels; in ath10k_wmi_start_scan_tlvs_len()
5922 if (arg->n_ssids) { in ath10k_wmi_start_scan_tlvs_len()
5924 len += sizeof(struct wmi_ssid) * arg->n_ssids; in ath10k_wmi_start_scan_tlvs_len()
5927 if (arg->n_bssids) { in ath10k_wmi_start_scan_tlvs_len()
5929 len += sizeof(struct wmi_mac_addr) * arg->n_bssids; in ath10k_wmi_start_scan_tlvs_len()
5936 const struct wmi_start_scan_arg *arg) in ath10k_wmi_put_start_scan_common() argument
5942 scan_id |= arg->scan_id; in ath10k_wmi_put_start_scan_common()
5945 scan_req_id |= arg->scan_req_id; in ath10k_wmi_put_start_scan_common()
5949 cmn->vdev_id = __cpu_to_le32(arg->vdev_id); in ath10k_wmi_put_start_scan_common()
5950 cmn->scan_priority = __cpu_to_le32(arg->scan_priority); in ath10k_wmi_put_start_scan_common()
5951 cmn->notify_scan_events = __cpu_to_le32(arg->notify_scan_events); in ath10k_wmi_put_start_scan_common()
5952 cmn->dwell_time_active = __cpu_to_le32(arg->dwell_time_active); in ath10k_wmi_put_start_scan_common()
5953 cmn->dwell_time_passive = __cpu_to_le32(arg->dwell_time_passive); in ath10k_wmi_put_start_scan_common()
5954 cmn->min_rest_time = __cpu_to_le32(arg->min_rest_time); in ath10k_wmi_put_start_scan_common()
5955 cmn->max_rest_time = __cpu_to_le32(arg->max_rest_time); in ath10k_wmi_put_start_scan_common()
5956 cmn->repeat_probe_time = __cpu_to_le32(arg->repeat_probe_time); in ath10k_wmi_put_start_scan_common()
5957 cmn->probe_spacing_time = __cpu_to_le32(arg->probe_spacing_time); in ath10k_wmi_put_start_scan_common()
5958 cmn->idle_time = __cpu_to_le32(arg->idle_time); in ath10k_wmi_put_start_scan_common()
5959 cmn->max_scan_time = __cpu_to_le32(arg->max_scan_time); in ath10k_wmi_put_start_scan_common()
5960 cmn->probe_delay = __cpu_to_le32(arg->probe_delay); in ath10k_wmi_put_start_scan_common()
5961 cmn->scan_ctrl_flags = __cpu_to_le32(arg->scan_ctrl_flags); in ath10k_wmi_put_start_scan_common()
5966 const struct wmi_start_scan_arg *arg) in ath10k_wmi_put_start_scan_tlvs() argument
5975 if (arg->n_channels) { in ath10k_wmi_put_start_scan_tlvs()
5978 channels->num_chan = __cpu_to_le32(arg->n_channels); in ath10k_wmi_put_start_scan_tlvs()
5980 for (i = 0; i < arg->n_channels; i++) in ath10k_wmi_put_start_scan_tlvs()
5982 __cpu_to_le16(arg->channels[i]); in ath10k_wmi_put_start_scan_tlvs()
5985 ptr += sizeof(__le32) * arg->n_channels; in ath10k_wmi_put_start_scan_tlvs()
5988 if (arg->n_ssids) { in ath10k_wmi_put_start_scan_tlvs()
5991 ssids->num_ssids = __cpu_to_le32(arg->n_ssids); in ath10k_wmi_put_start_scan_tlvs()
5993 for (i = 0; i < arg->n_ssids; i++) { in ath10k_wmi_put_start_scan_tlvs()
5995 __cpu_to_le32(arg->ssids[i].len); in ath10k_wmi_put_start_scan_tlvs()
5997 arg->ssids[i].ssid, in ath10k_wmi_put_start_scan_tlvs()
5998 arg->ssids[i].len); in ath10k_wmi_put_start_scan_tlvs()
6002 ptr += sizeof(struct wmi_ssid) * arg->n_ssids; in ath10k_wmi_put_start_scan_tlvs()
6005 if (arg->n_bssids) { in ath10k_wmi_put_start_scan_tlvs()
6008 bssids->num_bssid = __cpu_to_le32(arg->n_bssids); in ath10k_wmi_put_start_scan_tlvs()
6010 for (i = 0; i < arg->n_bssids; i++) in ath10k_wmi_put_start_scan_tlvs()
6012 arg->bssids[i].bssid); in ath10k_wmi_put_start_scan_tlvs()
6015 ptr += sizeof(struct wmi_mac_addr) * arg->n_bssids; in ath10k_wmi_put_start_scan_tlvs()
6018 if (arg->ie_len) { in ath10k_wmi_put_start_scan_tlvs()
6021 ie->ie_len = __cpu_to_le32(arg->ie_len); in ath10k_wmi_put_start_scan_tlvs()
6022 memcpy(ie->ie_data, arg->ie, arg->ie_len); in ath10k_wmi_put_start_scan_tlvs()
6025 ptr += roundup(arg->ie_len, 4); in ath10k_wmi_put_start_scan_tlvs()
6031 const struct wmi_start_scan_arg *arg) in ath10k_wmi_op_gen_start_scan() argument
6038 ret = ath10k_wmi_start_scan_verify(arg); in ath10k_wmi_op_gen_start_scan()
6042 len = sizeof(*cmd) + ath10k_wmi_start_scan_tlvs_len(arg); in ath10k_wmi_op_gen_start_scan()
6049 ath10k_wmi_put_start_scan_common(&cmd->common, arg); in ath10k_wmi_op_gen_start_scan()
6050 ath10k_wmi_put_start_scan_tlvs(&cmd->tlvs, arg); in ath10k_wmi_op_gen_start_scan()
6060 const struct wmi_start_scan_arg *arg) in ath10k_wmi_10x_op_gen_start_scan() argument
6067 ret = ath10k_wmi_start_scan_verify(arg); in ath10k_wmi_10x_op_gen_start_scan()
6071 len = sizeof(*cmd) + ath10k_wmi_start_scan_tlvs_len(arg); in ath10k_wmi_10x_op_gen_start_scan()
6078 ath10k_wmi_put_start_scan_common(&cmd->common, arg); in ath10k_wmi_10x_op_gen_start_scan()
6079 ath10k_wmi_put_start_scan_tlvs(&cmd->tlvs, arg); in ath10k_wmi_10x_op_gen_start_scan()
6086 struct wmi_start_scan_arg *arg) in ath10k_wmi_start_scan_init() argument
6089 arg->scan_req_id = 1; in ath10k_wmi_start_scan_init()
6090 arg->scan_priority = WMI_SCAN_PRIORITY_LOW; in ath10k_wmi_start_scan_init()
6091 arg->dwell_time_active = 50; in ath10k_wmi_start_scan_init()
6092 arg->dwell_time_passive = 150; in ath10k_wmi_start_scan_init()
6093 arg->min_rest_time = 50; in ath10k_wmi_start_scan_init()
6094 arg->max_rest_time = 500; in ath10k_wmi_start_scan_init()
6095 arg->repeat_probe_time = 0; in ath10k_wmi_start_scan_init()
6096 arg->probe_spacing_time = 0; in ath10k_wmi_start_scan_init()
6097 arg->idle_time = 0; in ath10k_wmi_start_scan_init()
6098 arg->max_scan_time = 20000; in ath10k_wmi_start_scan_init()
6099 arg->probe_delay = 5; in ath10k_wmi_start_scan_init()
6100 arg->notify_scan_events = WMI_SCAN_EVENT_STARTED in ath10k_wmi_start_scan_init()
6105 arg->scan_ctrl_flags |= WMI_SCAN_CHAN_STAT_EVENT; in ath10k_wmi_start_scan_init()
6106 arg->n_bssids = 1; in ath10k_wmi_start_scan_init()
6107 arg->bssids[0].bssid = "\xFF\xFF\xFF\xFF\xFF\xFF"; in ath10k_wmi_start_scan_init()
6112 const struct wmi_stop_scan_arg *arg) in ath10k_wmi_op_gen_stop_scan() argument
6119 if (arg->req_id > 0xFFF) in ath10k_wmi_op_gen_stop_scan()
6121 if (arg->req_type == WMI_SCAN_STOP_ONE && arg->u.scan_id > 0xFFF) in ath10k_wmi_op_gen_stop_scan()
6128 scan_id = arg->u.scan_id; in ath10k_wmi_op_gen_stop_scan()
6131 req_id = arg->req_id; in ath10k_wmi_op_gen_stop_scan()
6135 cmd->req_type = __cpu_to_le32(arg->req_type); in ath10k_wmi_op_gen_stop_scan()
6136 cmd->vdev_id = __cpu_to_le32(arg->u.vdev_id); in ath10k_wmi_op_gen_stop_scan()
6142 arg->req_id, arg->req_type, arg->u.scan_id); in ath10k_wmi_op_gen_stop_scan()
6191 const struct wmi_vdev_start_request_arg *arg, in ath10k_wmi_op_gen_vdev_start() argument
6199 if (WARN_ON(arg->hidden_ssid && !arg->ssid)) in ath10k_wmi_op_gen_vdev_start()
6201 if (WARN_ON(arg->ssid_len > sizeof(cmd->ssid.ssid))) in ath10k_wmi_op_gen_vdev_start()
6213 if (arg->hidden_ssid) in ath10k_wmi_op_gen_vdev_start()
6215 if (arg->pmf_enabled) in ath10k_wmi_op_gen_vdev_start()
6219 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); in ath10k_wmi_op_gen_vdev_start()
6220 cmd->disable_hw_ack = __cpu_to_le32(arg->disable_hw_ack); in ath10k_wmi_op_gen_vdev_start()
6221 cmd->beacon_interval = __cpu_to_le32(arg->bcn_intval); in ath10k_wmi_op_gen_vdev_start()
6222 cmd->dtim_period = __cpu_to_le32(arg->dtim_period); in ath10k_wmi_op_gen_vdev_start()
6224 cmd->bcn_tx_rate = __cpu_to_le32(arg->bcn_tx_rate); in ath10k_wmi_op_gen_vdev_start()
6225 cmd->bcn_tx_power = __cpu_to_le32(arg->bcn_tx_power); in ath10k_wmi_op_gen_vdev_start()
6227 if (arg->ssid) { in ath10k_wmi_op_gen_vdev_start()
6228 cmd->ssid.ssid_len = __cpu_to_le32(arg->ssid_len); in ath10k_wmi_op_gen_vdev_start()
6229 memcpy(cmd->ssid.ssid, arg->ssid, arg->ssid_len); in ath10k_wmi_op_gen_vdev_start()
6232 ath10k_wmi_put_wmi_channel(&cmd->chan, &arg->channel); in ath10k_wmi_op_gen_vdev_start()
6236 cmdname, arg->vdev_id, in ath10k_wmi_op_gen_vdev_start()
6237 flags, arg->channel.freq, arg->channel.mode, in ath10k_wmi_op_gen_vdev_start()
6238 cmd->chan.flags, arg->channel.max_power); in ath10k_wmi_op_gen_vdev_start()
6331 const struct wmi_vdev_install_key_arg *arg) in ath10k_wmi_op_gen_vdev_install_key() argument
6336 if (arg->key_cipher == WMI_CIPHER_NONE && arg->key_data != NULL) in ath10k_wmi_op_gen_vdev_install_key()
6338 if (arg->key_cipher != WMI_CIPHER_NONE && arg->key_data == NULL) in ath10k_wmi_op_gen_vdev_install_key()
6341 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd) + arg->key_len); in ath10k_wmi_op_gen_vdev_install_key()
6346 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); in ath10k_wmi_op_gen_vdev_install_key()
6347 cmd->key_idx = __cpu_to_le32(arg->key_idx); in ath10k_wmi_op_gen_vdev_install_key()
6348 cmd->key_flags = __cpu_to_le32(arg->key_flags); in ath10k_wmi_op_gen_vdev_install_key()
6349 cmd->key_cipher = __cpu_to_le32(arg->key_cipher); in ath10k_wmi_op_gen_vdev_install_key()
6350 cmd->key_len = __cpu_to_le32(arg->key_len); in ath10k_wmi_op_gen_vdev_install_key()
6351 cmd->key_txmic_len = __cpu_to_le32(arg->key_txmic_len); in ath10k_wmi_op_gen_vdev_install_key()
6352 cmd->key_rxmic_len = __cpu_to_le32(arg->key_rxmic_len); in ath10k_wmi_op_gen_vdev_install_key()
6354 if (arg->macaddr) in ath10k_wmi_op_gen_vdev_install_key()
6355 ether_addr_copy(cmd->peer_macaddr.addr, arg->macaddr); in ath10k_wmi_op_gen_vdev_install_key()
6356 if (arg->key_data) in ath10k_wmi_op_gen_vdev_install_key()
6357 memcpy(cmd->key_data, arg->key_data, arg->key_len); in ath10k_wmi_op_gen_vdev_install_key()
6361 arg->key_idx, arg->key_cipher, arg->key_len); in ath10k_wmi_op_gen_vdev_install_key()
6367 const struct wmi_vdev_spectral_conf_arg *arg) in ath10k_wmi_op_gen_vdev_spectral_conf() argument
6377 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); in ath10k_wmi_op_gen_vdev_spectral_conf()
6378 cmd->scan_count = __cpu_to_le32(arg->scan_count); in ath10k_wmi_op_gen_vdev_spectral_conf()
6379 cmd->scan_period = __cpu_to_le32(arg->scan_period); in ath10k_wmi_op_gen_vdev_spectral_conf()
6380 cmd->scan_priority = __cpu_to_le32(arg->scan_priority); in ath10k_wmi_op_gen_vdev_spectral_conf()
6381 cmd->scan_fft_size = __cpu_to_le32(arg->scan_fft_size); in ath10k_wmi_op_gen_vdev_spectral_conf()
6382 cmd->scan_gc_ena = __cpu_to_le32(arg->scan_gc_ena); in ath10k_wmi_op_gen_vdev_spectral_conf()
6383 cmd->scan_restart_ena = __cpu_to_le32(arg->scan_restart_ena); in ath10k_wmi_op_gen_vdev_spectral_conf()
6384 cmd->scan_noise_floor_ref = __cpu_to_le32(arg->scan_noise_floor_ref); in ath10k_wmi_op_gen_vdev_spectral_conf()
6385 cmd->scan_init_delay = __cpu_to_le32(arg->scan_init_delay); in ath10k_wmi_op_gen_vdev_spectral_conf()
6386 cmd->scan_nb_tone_thr = __cpu_to_le32(arg->scan_nb_tone_thr); in ath10k_wmi_op_gen_vdev_spectral_conf()
6387 cmd->scan_str_bin_thr = __cpu_to_le32(arg->scan_str_bin_thr); in ath10k_wmi_op_gen_vdev_spectral_conf()
6388 cmd->scan_wb_rpt_mode = __cpu_to_le32(arg->scan_wb_rpt_mode); in ath10k_wmi_op_gen_vdev_spectral_conf()
6389 cmd->scan_rssi_rpt_mode = __cpu_to_le32(arg->scan_rssi_rpt_mode); in ath10k_wmi_op_gen_vdev_spectral_conf()
6390 cmd->scan_rssi_thr = __cpu_to_le32(arg->scan_rssi_thr); in ath10k_wmi_op_gen_vdev_spectral_conf()
6391 cmd->scan_pwr_format = __cpu_to_le32(arg->scan_pwr_format); in ath10k_wmi_op_gen_vdev_spectral_conf()
6392 cmd->scan_rpt_mode = __cpu_to_le32(arg->scan_rpt_mode); in ath10k_wmi_op_gen_vdev_spectral_conf()
6393 cmd->scan_bin_scale = __cpu_to_le32(arg->scan_bin_scale); in ath10k_wmi_op_gen_vdev_spectral_conf()
6394 cmd->scan_dbm_adj = __cpu_to_le32(arg->scan_dbm_adj); in ath10k_wmi_op_gen_vdev_spectral_conf()
6395 cmd->scan_chn_mask = __cpu_to_le32(arg->scan_chn_mask); in ath10k_wmi_op_gen_vdev_spectral_conf()
6581 const struct wmi_scan_chan_list_arg *arg) in ath10k_wmi_op_gen_scan_chan_list() argument
6590 len = sizeof(*cmd) + arg->n_channels * sizeof(struct wmi_channel); in ath10k_wmi_op_gen_scan_chan_list()
6597 cmd->num_scan_chans = __cpu_to_le32(arg->n_channels); in ath10k_wmi_op_gen_scan_chan_list()
6599 for (i = 0; i < arg->n_channels; i++) { in ath10k_wmi_op_gen_scan_chan_list()
6600 ch = &arg->channels[i]; in ath10k_wmi_op_gen_scan_chan_list()
6611 const struct wmi_peer_assoc_complete_arg *arg) in ath10k_wmi_peer_assoc_fill() argument
6615 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); in ath10k_wmi_peer_assoc_fill()
6616 cmd->peer_new_assoc = __cpu_to_le32(arg->peer_reassoc ? 0 : 1); in ath10k_wmi_peer_assoc_fill()
6617 cmd->peer_associd = __cpu_to_le32(arg->peer_aid); in ath10k_wmi_peer_assoc_fill()
6618 cmd->peer_flags = __cpu_to_le32(arg->peer_flags); in ath10k_wmi_peer_assoc_fill()
6619 cmd->peer_caps = __cpu_to_le32(arg->peer_caps); in ath10k_wmi_peer_assoc_fill()
6620 cmd->peer_listen_intval = __cpu_to_le32(arg->peer_listen_intval); in ath10k_wmi_peer_assoc_fill()
6621 cmd->peer_ht_caps = __cpu_to_le32(arg->peer_ht_caps); in ath10k_wmi_peer_assoc_fill()
6622 cmd->peer_max_mpdu = __cpu_to_le32(arg->peer_max_mpdu); in ath10k_wmi_peer_assoc_fill()
6623 cmd->peer_mpdu_density = __cpu_to_le32(arg->peer_mpdu_density); in ath10k_wmi_peer_assoc_fill()
6624 cmd->peer_rate_caps = __cpu_to_le32(arg->peer_rate_caps); in ath10k_wmi_peer_assoc_fill()
6625 cmd->peer_nss = __cpu_to_le32(arg->peer_num_spatial_streams); in ath10k_wmi_peer_assoc_fill()
6626 cmd->peer_vht_caps = __cpu_to_le32(arg->peer_vht_caps); in ath10k_wmi_peer_assoc_fill()
6627 cmd->peer_phymode = __cpu_to_le32(arg->peer_phymode); in ath10k_wmi_peer_assoc_fill()
6629 ether_addr_copy(cmd->peer_macaddr.addr, arg->addr); in ath10k_wmi_peer_assoc_fill()
6632 __cpu_to_le32(arg->peer_legacy_rates.num_rates); in ath10k_wmi_peer_assoc_fill()
6633 memcpy(cmd->peer_legacy_rates.rates, arg->peer_legacy_rates.rates, in ath10k_wmi_peer_assoc_fill()
6634 arg->peer_legacy_rates.num_rates); in ath10k_wmi_peer_assoc_fill()
6637 __cpu_to_le32(arg->peer_ht_rates.num_rates); in ath10k_wmi_peer_assoc_fill()
6638 memcpy(cmd->peer_ht_rates.rates, arg->peer_ht_rates.rates, in ath10k_wmi_peer_assoc_fill()
6639 arg->peer_ht_rates.num_rates); in ath10k_wmi_peer_assoc_fill()
6642 __cpu_to_le32(arg->peer_vht_rates.rx_max_rate); in ath10k_wmi_peer_assoc_fill()
6644 __cpu_to_le32(arg->peer_vht_rates.rx_mcs_set); in ath10k_wmi_peer_assoc_fill()
6646 __cpu_to_le32(arg->peer_vht_rates.tx_max_rate); in ath10k_wmi_peer_assoc_fill()
6648 __cpu_to_le32(arg->peer_vht_rates.tx_mcs_set); in ath10k_wmi_peer_assoc_fill()
6653 const struct wmi_peer_assoc_complete_arg *arg) in ath10k_wmi_peer_assoc_fill_main() argument
6657 ath10k_wmi_peer_assoc_fill(ar, buf, arg); in ath10k_wmi_peer_assoc_fill_main()
6663 const struct wmi_peer_assoc_complete_arg *arg) in ath10k_wmi_peer_assoc_fill_10_1() argument
6665 ath10k_wmi_peer_assoc_fill(ar, buf, arg); in ath10k_wmi_peer_assoc_fill_10_1()
6670 const struct wmi_peer_assoc_complete_arg *arg) in ath10k_wmi_peer_assoc_fill_10_2() argument
6683 ath10k_wmi_peer_assoc_fill(ar, buf, arg); in ath10k_wmi_peer_assoc_fill_10_2()
6689 const struct wmi_peer_assoc_complete_arg *arg) in ath10k_wmi_peer_assoc_fill_10_4() argument
6693 ath10k_wmi_peer_assoc_fill_10_2(ar, buf, arg); in ath10k_wmi_peer_assoc_fill_10_4()
6698 ath10k_wmi_peer_assoc_check_arg(const struct wmi_peer_assoc_complete_arg *arg) in ath10k_wmi_peer_assoc_check_arg() argument
6700 if (arg->peer_mpdu_density > 16) in ath10k_wmi_peer_assoc_check_arg()
6702 if (arg->peer_legacy_rates.num_rates > MAX_SUPPORTED_RATES) in ath10k_wmi_peer_assoc_check_arg()
6704 if (arg->peer_ht_rates.num_rates > MAX_SUPPORTED_RATES) in ath10k_wmi_peer_assoc_check_arg()
6712 const struct wmi_peer_assoc_complete_arg *arg) in ath10k_wmi_op_gen_peer_assoc() argument
6718 ret = ath10k_wmi_peer_assoc_check_arg(arg); in ath10k_wmi_op_gen_peer_assoc()
6726 ath10k_wmi_peer_assoc_fill_main(ar, skb->data, arg); in ath10k_wmi_op_gen_peer_assoc()
6730 arg->vdev_id, arg->addr, in ath10k_wmi_op_gen_peer_assoc()
6731 arg->peer_reassoc ? "reassociate" : "new"); in ath10k_wmi_op_gen_peer_assoc()
6737 const struct wmi_peer_assoc_complete_arg *arg) in ath10k_wmi_10_1_op_gen_peer_assoc() argument
6743 ret = ath10k_wmi_peer_assoc_check_arg(arg); in ath10k_wmi_10_1_op_gen_peer_assoc()
6751 ath10k_wmi_peer_assoc_fill_10_1(ar, skb->data, arg); in ath10k_wmi_10_1_op_gen_peer_assoc()
6755 arg->vdev_id, arg->addr, in ath10k_wmi_10_1_op_gen_peer_assoc()
6756 arg->peer_reassoc ? "reassociate" : "new"); in ath10k_wmi_10_1_op_gen_peer_assoc()
6762 const struct wmi_peer_assoc_complete_arg *arg) in ath10k_wmi_10_2_op_gen_peer_assoc() argument
6768 ret = ath10k_wmi_peer_assoc_check_arg(arg); in ath10k_wmi_10_2_op_gen_peer_assoc()
6776 ath10k_wmi_peer_assoc_fill_10_2(ar, skb->data, arg); in ath10k_wmi_10_2_op_gen_peer_assoc()
6780 arg->vdev_id, arg->addr, in ath10k_wmi_10_2_op_gen_peer_assoc()
6781 arg->peer_reassoc ? "reassociate" : "new"); in ath10k_wmi_10_2_op_gen_peer_assoc()
6787 const struct wmi_peer_assoc_complete_arg *arg) in ath10k_wmi_10_4_op_gen_peer_assoc() argument
6793 ret = ath10k_wmi_peer_assoc_check_arg(arg); in ath10k_wmi_10_4_op_gen_peer_assoc()
6801 ath10k_wmi_peer_assoc_fill_10_4(ar, skb->data, arg); in ath10k_wmi_10_4_op_gen_peer_assoc()
6805 arg->vdev_id, arg->addr, in ath10k_wmi_10_4_op_gen_peer_assoc()
6806 arg->peer_reassoc ? "reassociate" : "new"); in ath10k_wmi_10_4_op_gen_peer_assoc()
6880 const struct wmi_wmm_params_arg *arg) in ath10k_wmi_set_wmm_param() argument
6882 params->cwmin = __cpu_to_le32(arg->cwmin); in ath10k_wmi_set_wmm_param()
6883 params->cwmax = __cpu_to_le32(arg->cwmax); in ath10k_wmi_set_wmm_param()
6884 params->aifs = __cpu_to_le32(arg->aifs); in ath10k_wmi_set_wmm_param()
6885 params->txop = __cpu_to_le32(arg->txop); in ath10k_wmi_set_wmm_param()
6886 params->acm = __cpu_to_le32(arg->acm); in ath10k_wmi_set_wmm_param()
6887 params->no_ack = __cpu_to_le32(arg->no_ack); in ath10k_wmi_set_wmm_param()
6892 const struct wmi_wmm_params_all_arg *arg) in ath10k_wmi_op_gen_pdev_set_wmm() argument
6902 ath10k_wmi_set_wmm_param(&cmd->ac_be, &arg->ac_be); in ath10k_wmi_op_gen_pdev_set_wmm()
6903 ath10k_wmi_set_wmm_param(&cmd->ac_bk, &arg->ac_bk); in ath10k_wmi_op_gen_pdev_set_wmm()
6904 ath10k_wmi_set_wmm_param(&cmd->ac_vi, &arg->ac_vi); in ath10k_wmi_op_gen_pdev_set_wmm()
6905 ath10k_wmi_set_wmm_param(&cmd->ac_vo, &arg->ac_vo); in ath10k_wmi_op_gen_pdev_set_wmm()