Lines Matching refs:cpu_to_le32

769 	cmd->vdev_id = cpu_to_le32(vdev_id);  in ath12k_wmi_mgmt_send()
770 cmd->desc_id = cpu_to_le32(buf_id); in ath12k_wmi_mgmt_send()
772 cmd->paddr_lo = cpu_to_le32(lower_32_bits(ATH12K_SKB_CB(frame)->paddr)); in ath12k_wmi_mgmt_send()
773 cmd->paddr_hi = cpu_to_le32(upper_32_bits(ATH12K_SKB_CB(frame)->paddr)); in ath12k_wmi_mgmt_send()
774 cmd->frame_len = cpu_to_le32(frame->len); in ath12k_wmi_mgmt_send()
775 cmd->buf_len = cpu_to_le32(buf_len); in ath12k_wmi_mgmt_send()
819 cmd->vdev_id = cpu_to_le32(args->if_id); in ath12k_wmi_vdev_create()
820 cmd->vdev_type = cpu_to_le32(args->type); in ath12k_wmi_vdev_create()
821 cmd->vdev_subtype = cpu_to_le32(args->subtype); in ath12k_wmi_vdev_create()
822 cmd->num_cfg_txrx_streams = cpu_to_le32(WMI_NUM_SUPPORTED_BAND_MAX); in ath12k_wmi_vdev_create()
823 cmd->pdev_id = cpu_to_le32(args->pdev_id); in ath12k_wmi_vdev_create()
824 cmd->vdev_stats_id = cpu_to_le32(args->if_stats_id); in ath12k_wmi_vdev_create()
882 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_vdev_delete()
910 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_vdev_stop()
938 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_vdev_down()
956 chan->mhz = cpu_to_le32(arg->freq); in ath12k_wmi_put_wmi_channel()
957 chan->band_center_freq1 = cpu_to_le32(arg->band_center_freq1); in ath12k_wmi_put_wmi_channel()
959 chan->band_center_freq2 = cpu_to_le32(arg->band_center_freq2); in ath12k_wmi_put_wmi_channel()
965 chan->info |= cpu_to_le32(WMI_CHAN_INFO_PASSIVE); in ath12k_wmi_put_wmi_channel()
967 chan->info |= cpu_to_le32(WMI_CHAN_INFO_ADHOC_ALLOWED); in ath12k_wmi_put_wmi_channel()
969 chan->info |= cpu_to_le32(WMI_CHAN_INFO_ALLOW_HT); in ath12k_wmi_put_wmi_channel()
971 chan->info |= cpu_to_le32(WMI_CHAN_INFO_ALLOW_VHT); in ath12k_wmi_put_wmi_channel()
973 chan->info |= cpu_to_le32(WMI_CHAN_INFO_ALLOW_HE); in ath12k_wmi_put_wmi_channel()
975 chan->info |= cpu_to_le32(WMI_CHAN_INFO_HT40_PLUS); in ath12k_wmi_put_wmi_channel()
977 chan->info |= cpu_to_le32(WMI_CHAN_INFO_DFS); in ath12k_wmi_put_wmi_channel()
979 chan->info |= cpu_to_le32(WMI_CHAN_INFO_DFS_FREQ2); in ath12k_wmi_put_wmi_channel()
1014 cmd->vdev_id = cpu_to_le32(arg->vdev_id); in ath12k_wmi_vdev_start()
1015 cmd->beacon_interval = cpu_to_le32(arg->bcn_intval); in ath12k_wmi_vdev_start()
1016 cmd->bcn_tx_rate = cpu_to_le32(arg->bcn_tx_rate); in ath12k_wmi_vdev_start()
1017 cmd->dtim_period = cpu_to_le32(arg->dtim_period); in ath12k_wmi_vdev_start()
1018 cmd->num_noa_descriptors = cpu_to_le32(arg->num_noa_descriptors); in ath12k_wmi_vdev_start()
1019 cmd->preferred_rx_streams = cpu_to_le32(arg->pref_rx_streams); in ath12k_wmi_vdev_start()
1020 cmd->preferred_tx_streams = cpu_to_le32(arg->pref_tx_streams); in ath12k_wmi_vdev_start()
1021 cmd->cac_duration_ms = cpu_to_le32(arg->cac_duration_ms); in ath12k_wmi_vdev_start()
1022 cmd->regdomain = cpu_to_le32(arg->regdomain); in ath12k_wmi_vdev_start()
1023 cmd->he_ops = cpu_to_le32(arg->he_ops); in ath12k_wmi_vdev_start()
1024 cmd->punct_bitmap = cpu_to_le32(arg->punct_bitmap); in ath12k_wmi_vdev_start()
1028 cmd->ssid.ssid_len = cpu_to_le32(arg->ssid_len); in ath12k_wmi_vdev_start()
1032 cmd->flags |= cpu_to_le32(WMI_VDEV_START_HIDDEN_SSID); in ath12k_wmi_vdev_start()
1034 cmd->flags |= cpu_to_le32(WMI_VDEV_START_PMF_ENABLED); in ath12k_wmi_vdev_start()
1037 cmd->flags |= cpu_to_le32(WMI_VDEV_START_LDPC_RX_ENABLED); in ath12k_wmi_vdev_start()
1091 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_vdev_up()
1092 cmd->vdev_assoc_id = cpu_to_le32(aid); in ath12k_wmi_vdev_up()
1126 cmd->peer_type = cpu_to_le32(arg->peer_type); in ath12k_wmi_send_peer_create_cmd()
1127 cmd->vdev_id = cpu_to_le32(arg->vdev_id); in ath12k_wmi_send_peer_create_cmd()
1159 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_send_peer_delete_cmd()
1190 cmd->reg_domain = cpu_to_le32(arg->current_rd_in_use); in ath12k_wmi_send_pdev_set_regdomain()
1191 cmd->reg_domain_2g = cpu_to_le32(arg->current_rd_2g); in ath12k_wmi_send_pdev_set_regdomain()
1192 cmd->reg_domain_5g = cpu_to_le32(arg->current_rd_5g); in ath12k_wmi_send_pdev_set_regdomain()
1193 cmd->conformance_test_limit_2g = cpu_to_le32(arg->ctl_2g); in ath12k_wmi_send_pdev_set_regdomain()
1194 cmd->conformance_test_limit_5g = cpu_to_le32(arg->ctl_5g); in ath12k_wmi_send_pdev_set_regdomain()
1195 cmd->dfs_domain = cpu_to_le32(arg->dfs_domain); in ath12k_wmi_send_pdev_set_regdomain()
1196 cmd->pdev_id = cpu_to_le32(arg->pdev_id); in ath12k_wmi_send_pdev_set_regdomain()
1229 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_set_peer_param()
1230 cmd->param_id = cpu_to_le32(param_id); in ath12k_wmi_set_peer_param()
1231 cmd->param_value = cpu_to_le32(param_val); in ath12k_wmi_set_peer_param()
1265 cmd->peer_tid_bitmap = cpu_to_le32(peer_tid_bitmap); in ath12k_wmi_send_peer_flush_tids_cmd()
1266 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_send_peer_flush_tids_cmd()
1301 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_peer_rx_reorder_queue_setup()
1302 cmd->tid = cpu_to_le32(tid); in ath12k_wmi_peer_rx_reorder_queue_setup()
1303 cmd->queue_ptr_lo = cpu_to_le32(lower_32_bits(paddr)); in ath12k_wmi_peer_rx_reorder_queue_setup()
1304 cmd->queue_ptr_hi = cpu_to_le32(upper_32_bits(paddr)); in ath12k_wmi_peer_rx_reorder_queue_setup()
1305 cmd->queue_no = cpu_to_le32(tid); in ath12k_wmi_peer_rx_reorder_queue_setup()
1306 cmd->ba_window_size_valid = cpu_to_le32(ba_window_size_valid); in ath12k_wmi_peer_rx_reorder_queue_setup()
1307 cmd->ba_window_size = cpu_to_le32(ba_window_size); in ath12k_wmi_peer_rx_reorder_queue_setup()
1342 cmd->vdev_id = cpu_to_le32(arg->vdev_id); in ath12k_wmi_rx_reord_queue_remove()
1343 cmd->tid_mask = cpu_to_le32(arg->peer_tid_bitmap); in ath12k_wmi_rx_reord_queue_remove()
1375 cmd->pdev_id = cpu_to_le32(pdev_id); in ath12k_wmi_pdev_set_param()
1376 cmd->param_id = cpu_to_le32(param_id); in ath12k_wmi_pdev_set_param()
1377 cmd->param_value = cpu_to_le32(param_value); in ath12k_wmi_pdev_set_param()
1406 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_pdev_set_ps_mode()
1407 cmd->sta_ps_mode = cpu_to_le32(enable); in ath12k_wmi_pdev_set_ps_mode()
1439 cmd->suspend_opt = cpu_to_le32(suspend_opt); in ath12k_wmi_pdev_suspend()
1440 cmd->pdev_id = cpu_to_le32(pdev_id); in ath12k_wmi_pdev_suspend()
1469 cmd->pdev_id = cpu_to_le32(pdev_id); in ath12k_wmi_pdev_resume()
1503 cmd->req_type = cpu_to_le32(type); in ath12k_wmi_pdev_bss_chan_info_request()
1535 cmd->vdev_id = cpu_to_le32(arg->vdev_id); in ath12k_wmi_send_set_ap_ps_param_cmd()
1537 cmd->param = cpu_to_le32(arg->param); in ath12k_wmi_send_set_ap_ps_param_cmd()
1538 cmd->value = cpu_to_le32(arg->value); in ath12k_wmi_send_set_ap_ps_param_cmd()
1570 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_set_sta_ps_param()
1571 cmd->param = cpu_to_le32(param); in ath12k_wmi_set_sta_ps_param()
1572 cmd->value = cpu_to_le32(param_value); in ath12k_wmi_set_sta_ps_param()
1604 cmd->type = cpu_to_le32(type); in ath12k_wmi_force_fw_hang_cmd()
1605 cmd->delay_time_ms = cpu_to_le32(delay_time_ms); in ath12k_wmi_force_fw_hang_cmd()
1632 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_vdev_set_param_cmd()
1633 cmd->param_id = cpu_to_le32(param_id); in ath12k_wmi_vdev_set_param_cmd()
1634 cmd->param_value = cpu_to_le32(param_value); in ath12k_wmi_vdev_set_param_cmd()
1664 cmd->pdev_id = cpu_to_le32(ar->pdev->pdev_id); in ath12k_wmi_send_pdev_temperature_cmd()
1694 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_send_bcn_offload_control_cmd()
1695 cmd->bcn_ctrl_op = cpu_to_le32(bcn_ctrl_op); in ath12k_wmi_send_bcn_offload_control_cmd()
1733 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_bcn_tmpl()
1734 cmd->tim_ie_offset = cpu_to_le32(offs->tim_offset); in ath12k_wmi_bcn_tmpl()
1735 cmd->csa_switch_count_offset = cpu_to_le32(offs->cntdwn_counter_offs[0]); in ath12k_wmi_bcn_tmpl()
1736 cmd->ext_csa_switch_count_offset = cpu_to_le32(offs->cntdwn_counter_offs[1]); in ath12k_wmi_bcn_tmpl()
1737 cmd->buf_len = cpu_to_le32(bcn->len); in ath12k_wmi_bcn_tmpl()
1786 cmd->vdev_id = cpu_to_le32(arg->vdev_id); in ath12k_wmi_vdev_install_key()
1788 cmd->key_idx = cpu_to_le32(arg->key_idx); in ath12k_wmi_vdev_install_key()
1789 cmd->key_flags = cpu_to_le32(arg->key_flags); in ath12k_wmi_vdev_install_key()
1790 cmd->key_cipher = cpu_to_le32(arg->key_cipher); in ath12k_wmi_vdev_install_key()
1791 cmd->key_len = cpu_to_le32(arg->key_len); in ath12k_wmi_vdev_install_key()
1792 cmd->key_txmic_len = cpu_to_le32(arg->key_txmic_len); in ath12k_wmi_vdev_install_key()
1793 cmd->key_rxmic_len = cpu_to_le32(arg->key_rxmic_len); in ath12k_wmi_vdev_install_key()
1825 cmd->peer_flags |= cpu_to_le32(WMI_PEER_QOS); in ath12k_wmi_copy_peer_flags()
1827 cmd->peer_flags |= cpu_to_le32(WMI_PEER_APSD); in ath12k_wmi_copy_peer_flags()
1829 cmd->peer_flags |= cpu_to_le32(WMI_PEER_HT); in ath12k_wmi_copy_peer_flags()
1831 cmd->peer_flags |= cpu_to_le32(WMI_PEER_40MHZ); in ath12k_wmi_copy_peer_flags()
1833 cmd->peer_flags |= cpu_to_le32(WMI_PEER_80MHZ); in ath12k_wmi_copy_peer_flags()
1835 cmd->peer_flags |= cpu_to_le32(WMI_PEER_160MHZ); in ath12k_wmi_copy_peer_flags()
1837 cmd->peer_flags |= cpu_to_le32(WMI_PEER_EXT_320MHZ); in ath12k_wmi_copy_peer_flags()
1843 cmd->peer_flags |= cpu_to_le32(WMI_PEER_STBC); in ath12k_wmi_copy_peer_flags()
1849 cmd->peer_flags |= cpu_to_le32(WMI_PEER_LDPC); in ath12k_wmi_copy_peer_flags()
1852 cmd->peer_flags |= cpu_to_le32(WMI_PEER_STATIC_MIMOPS); in ath12k_wmi_copy_peer_flags()
1854 cmd->peer_flags |= cpu_to_le32(WMI_PEER_DYN_MIMOPS); in ath12k_wmi_copy_peer_flags()
1856 cmd->peer_flags |= cpu_to_le32(WMI_PEER_SPATIAL_MUX); in ath12k_wmi_copy_peer_flags()
1858 cmd->peer_flags |= cpu_to_le32(WMI_PEER_VHT); in ath12k_wmi_copy_peer_flags()
1860 cmd->peer_flags |= cpu_to_le32(WMI_PEER_HE); in ath12k_wmi_copy_peer_flags()
1862 cmd->peer_flags |= cpu_to_le32(WMI_PEER_TWT_REQ); in ath12k_wmi_copy_peer_flags()
1864 cmd->peer_flags |= cpu_to_le32(WMI_PEER_TWT_RESP); in ath12k_wmi_copy_peer_flags()
1866 cmd->peer_flags_ext |= cpu_to_le32(WMI_PEER_EXT_EHT); in ath12k_wmi_copy_peer_flags()
1874 cmd->peer_flags |= cpu_to_le32(WMI_PEER_AUTH); in ath12k_wmi_copy_peer_flags()
1876 cmd->peer_flags |= cpu_to_le32(WMI_PEER_NEED_PTK_4_WAY); in ath12k_wmi_copy_peer_flags()
1878 cmd->peer_flags &= cpu_to_le32(~WMI_PEER_AUTH); in ath12k_wmi_copy_peer_flags()
1881 cmd->peer_flags |= cpu_to_le32(WMI_PEER_NEED_GTK_2_WAY); in ath12k_wmi_copy_peer_flags()
1884 cmd->peer_flags &= cpu_to_le32(~(WMI_PEER_NEED_PTK_4_WAY | in ath12k_wmi_copy_peer_flags()
1888 cmd->peer_flags |= cpu_to_le32(WMI_PEER_PMF); in ath12k_wmi_copy_peer_flags()
1901 cmd->peer_flags &= cpu_to_le32(~WMI_PEER_HT); in ath12k_wmi_copy_peer_flags()
1942 cmd->vdev_id = cpu_to_le32(arg->vdev_id); in ath12k_wmi_send_peer_assoc_cmd()
1944 cmd->peer_new_assoc = cpu_to_le32(arg->peer_new_assoc); in ath12k_wmi_send_peer_assoc_cmd()
1945 cmd->peer_associd = cpu_to_le32(arg->peer_associd); in ath12k_wmi_send_peer_assoc_cmd()
1946 cmd->punct_bitmap = cpu_to_le32(arg->punct_bitmap); in ath12k_wmi_send_peer_assoc_cmd()
1954 cmd->peer_rate_caps = cpu_to_le32(arg->peer_rate_caps); in ath12k_wmi_send_peer_assoc_cmd()
1955 cmd->peer_caps = cpu_to_le32(arg->peer_caps); in ath12k_wmi_send_peer_assoc_cmd()
1956 cmd->peer_listen_intval = cpu_to_le32(arg->peer_listen_intval); in ath12k_wmi_send_peer_assoc_cmd()
1957 cmd->peer_ht_caps = cpu_to_le32(arg->peer_ht_caps); in ath12k_wmi_send_peer_assoc_cmd()
1958 cmd->peer_max_mpdu = cpu_to_le32(arg->peer_max_mpdu); in ath12k_wmi_send_peer_assoc_cmd()
1959 cmd->peer_mpdu_density = cpu_to_le32(arg->peer_mpdu_density); in ath12k_wmi_send_peer_assoc_cmd()
1960 cmd->peer_vht_caps = cpu_to_le32(arg->peer_vht_caps); in ath12k_wmi_send_peer_assoc_cmd()
1961 cmd->peer_phymode = cpu_to_le32(arg->peer_phymode); in ath12k_wmi_send_peer_assoc_cmd()
1964 cmd->peer_he_cap_info = cpu_to_le32(arg->peer_he_cap_macinfo[0]); in ath12k_wmi_send_peer_assoc_cmd()
1965 cmd->peer_he_cap_info_ext = cpu_to_le32(arg->peer_he_cap_macinfo[1]); in ath12k_wmi_send_peer_assoc_cmd()
1966 cmd->peer_he_cap_info_internal = cpu_to_le32(arg->peer_he_cap_macinfo_internal); in ath12k_wmi_send_peer_assoc_cmd()
1967 cmd->peer_he_caps_6ghz = cpu_to_le32(arg->peer_he_caps_6ghz); in ath12k_wmi_send_peer_assoc_cmd()
1968 cmd->peer_he_ops = cpu_to_le32(arg->peer_he_ops); in ath12k_wmi_send_peer_assoc_cmd()
1971 cpu_to_le32(arg->peer_he_cap_phyinfo[i]); in ath12k_wmi_send_peer_assoc_cmd()
1972 cmd->peer_ppet.numss_m1 = cpu_to_le32(arg->peer_ppet.numss_m1); in ath12k_wmi_send_peer_assoc_cmd()
1973 cmd->peer_ppet.ru_info = cpu_to_le32(arg->peer_ppet.ru_bit_mask); in ath12k_wmi_send_peer_assoc_cmd()
1976 cpu_to_le32(arg->peer_ppet.ppet16_ppet8_ru3_ru0[i]); in ath12k_wmi_send_peer_assoc_cmd()
1996 cmd->num_peer_legacy_rates = cpu_to_le32(arg->peer_legacy_rates.num_rates); in ath12k_wmi_send_peer_assoc_cmd()
2006 cmd->num_peer_ht_rates = cpu_to_le32(arg->peer_ht_rates.num_rates); in ath12k_wmi_send_peer_assoc_cmd()
2018 cmd->peer_nss = cpu_to_le32(arg->peer_nss); in ath12k_wmi_send_peer_assoc_cmd()
2022 cmd->peer_bw_rxnss_override |= cpu_to_le32(arg->peer_bw_rxnss_override); in ath12k_wmi_send_peer_assoc_cmd()
2025 mcs->rx_max_rate = cpu_to_le32(arg->rx_max_rate); in ath12k_wmi_send_peer_assoc_cmd()
2026 mcs->rx_mcs_set = cpu_to_le32(arg->rx_mcs_set); in ath12k_wmi_send_peer_assoc_cmd()
2027 mcs->tx_max_rate = cpu_to_le32(arg->tx_max_rate); in ath12k_wmi_send_peer_assoc_cmd()
2028 mcs->tx_mcs_set = cpu_to_le32(arg->tx_mcs_set); in ath12k_wmi_send_peer_assoc_cmd()
2032 cmd->peer_he_mcs = cpu_to_le32(arg->peer_he_mcs_count); in ath12k_wmi_send_peer_assoc_cmd()
2033 cmd->min_data_rate = cpu_to_le32(arg->min_data_rate); in ath12k_wmi_send_peer_assoc_cmd()
2049 he_mcs->rx_mcs_set = cpu_to_le32(arg->peer_he_rx_mcs_set[i]); in ath12k_wmi_send_peer_assoc_cmd()
2050 he_mcs->tx_mcs_set = cpu_to_le32(arg->peer_he_tx_mcs_set[i]); in ath12k_wmi_send_peer_assoc_cmd()
2071 eht_mcs->rx_mcs_set = cpu_to_le32(arg->peer_eht_rx_mcs_set[i]); in ath12k_wmi_send_peer_assoc_cmd()
2072 eht_mcs->tx_mcs_set = cpu_to_le32(arg->peer_eht_tx_mcs_set[i]); in ath12k_wmi_send_peer_assoc_cmd()
2145 cmd->notify_scan_events |= cpu_to_le32(WMI_SCAN_EVENT_STARTED); in ath12k_wmi_copy_scan_event_cntrl_flags()
2147 cmd->notify_scan_events |= cpu_to_le32(WMI_SCAN_EVENT_COMPLETED); in ath12k_wmi_copy_scan_event_cntrl_flags()
2149 cmd->notify_scan_events |= cpu_to_le32(WMI_SCAN_EVENT_BSS_CHANNEL); in ath12k_wmi_copy_scan_event_cntrl_flags()
2151 cmd->notify_scan_events |= cpu_to_le32(WMI_SCAN_EVENT_FOREIGN_CHAN); in ath12k_wmi_copy_scan_event_cntrl_flags()
2153 cmd->notify_scan_events |= cpu_to_le32(WMI_SCAN_EVENT_DEQUEUED); in ath12k_wmi_copy_scan_event_cntrl_flags()
2155 cmd->notify_scan_events |= cpu_to_le32(WMI_SCAN_EVENT_PREEMPTED); in ath12k_wmi_copy_scan_event_cntrl_flags()
2157 cmd->notify_scan_events |= cpu_to_le32(WMI_SCAN_EVENT_START_FAILED); in ath12k_wmi_copy_scan_event_cntrl_flags()
2159 cmd->notify_scan_events |= cpu_to_le32(WMI_SCAN_EVENT_RESTARTED); in ath12k_wmi_copy_scan_event_cntrl_flags()
2161 cmd->notify_scan_events |= cpu_to_le32(WMI_SCAN_EVENT_FOREIGN_CHAN_EXIT); in ath12k_wmi_copy_scan_event_cntrl_flags()
2163 cmd->notify_scan_events |= cpu_to_le32(WMI_SCAN_EVENT_SUSPENDED); in ath12k_wmi_copy_scan_event_cntrl_flags()
2165 cmd->notify_scan_events |= cpu_to_le32(WMI_SCAN_EVENT_RESUMED); in ath12k_wmi_copy_scan_event_cntrl_flags()
2170 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_FLAG_PASSIVE); in ath12k_wmi_copy_scan_event_cntrl_flags()
2172 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_FLAG_STRICT_PASSIVE_ON_PCHN); in ath12k_wmi_copy_scan_event_cntrl_flags()
2174 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_FILTER_PROMISCUOS); in ath12k_wmi_copy_scan_event_cntrl_flags()
2176 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_CAPTURE_PHY_ERROR); in ath12k_wmi_copy_scan_event_cntrl_flags()
2178 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_FLAG_HALF_RATE_SUPPORT); in ath12k_wmi_copy_scan_event_cntrl_flags()
2180 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_FLAG_QUARTER_RATE_SUPPORT); in ath12k_wmi_copy_scan_event_cntrl_flags()
2182 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_ADD_CCK_RATES); in ath12k_wmi_copy_scan_event_cntrl_flags()
2184 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_ADD_OFDM_RATES); in ath12k_wmi_copy_scan_event_cntrl_flags()
2186 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_CHAN_STAT_EVENT); in ath12k_wmi_copy_scan_event_cntrl_flags()
2188 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_FILTER_PROBE_REQ); in ath12k_wmi_copy_scan_event_cntrl_flags()
2190 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_ADD_BCAST_PROBE_REQ); in ath12k_wmi_copy_scan_event_cntrl_flags()
2192 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_OFFCHAN_MGMT_TX); in ath12k_wmi_copy_scan_event_cntrl_flags()
2194 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_OFFCHAN_DATA_TX); in ath12k_wmi_copy_scan_event_cntrl_flags()
2196 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_FLAG_FORCE_ACTIVE_ON_DFS); in ath12k_wmi_copy_scan_event_cntrl_flags()
2198 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_ADD_TPC_IE_IN_PROBE_REQ); in ath12k_wmi_copy_scan_event_cntrl_flags()
2200 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_ADD_DS_IE_IN_PROBE_REQ); in ath12k_wmi_copy_scan_event_cntrl_flags()
2202 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_ADD_SPOOF_MAC_IN_PROBE_REQ); in ath12k_wmi_copy_scan_event_cntrl_flags()
2204 cmd->scan_ctrl_flags |= cpu_to_le32(WMI_SCAN_RANDOM_SEQ_NO_IN_PROBE_REQ); in ath12k_wmi_copy_scan_event_cntrl_flags()
2207 cpu_to_le32(WMI_SCAN_ENABLE_IE_WHTELIST_IN_PROBE_REQ); in ath12k_wmi_copy_scan_event_cntrl_flags()
2272 cmd->scan_id = cpu_to_le32(arg->scan_id); in ath12k_wmi_send_scan_start_cmd()
2273 cmd->scan_req_id = cpu_to_le32(arg->scan_req_id); in ath12k_wmi_send_scan_start_cmd()
2274 cmd->vdev_id = cpu_to_le32(arg->vdev_id); in ath12k_wmi_send_scan_start_cmd()
2275 cmd->scan_priority = cpu_to_le32(arg->scan_priority); in ath12k_wmi_send_scan_start_cmd()
2276 cmd->notify_scan_events = cpu_to_le32(arg->notify_scan_events); in ath12k_wmi_send_scan_start_cmd()
2280 cmd->dwell_time_active = cpu_to_le32(arg->dwell_time_active); in ath12k_wmi_send_scan_start_cmd()
2281 cmd->dwell_time_active_2g = cpu_to_le32(arg->dwell_time_active_2g); in ath12k_wmi_send_scan_start_cmd()
2282 cmd->dwell_time_passive = cpu_to_le32(arg->dwell_time_passive); in ath12k_wmi_send_scan_start_cmd()
2283 cmd->dwell_time_active_6g = cpu_to_le32(arg->dwell_time_active_6g); in ath12k_wmi_send_scan_start_cmd()
2284 cmd->dwell_time_passive_6g = cpu_to_le32(arg->dwell_time_passive_6g); in ath12k_wmi_send_scan_start_cmd()
2285 cmd->min_rest_time = cpu_to_le32(arg->min_rest_time); in ath12k_wmi_send_scan_start_cmd()
2286 cmd->max_rest_time = cpu_to_le32(arg->max_rest_time); in ath12k_wmi_send_scan_start_cmd()
2287 cmd->repeat_probe_time = cpu_to_le32(arg->repeat_probe_time); in ath12k_wmi_send_scan_start_cmd()
2288 cmd->probe_spacing_time = cpu_to_le32(arg->probe_spacing_time); in ath12k_wmi_send_scan_start_cmd()
2289 cmd->idle_time = cpu_to_le32(arg->idle_time); in ath12k_wmi_send_scan_start_cmd()
2290 cmd->max_scan_time = cpu_to_le32(arg->max_scan_time); in ath12k_wmi_send_scan_start_cmd()
2291 cmd->probe_delay = cpu_to_le32(arg->probe_delay); in ath12k_wmi_send_scan_start_cmd()
2292 cmd->burst_duration = cpu_to_le32(arg->burst_duration); in ath12k_wmi_send_scan_start_cmd()
2293 cmd->num_chan = cpu_to_le32(arg->num_chan); in ath12k_wmi_send_scan_start_cmd()
2294 cmd->num_bssid = cpu_to_le32(arg->num_bssid); in ath12k_wmi_send_scan_start_cmd()
2295 cmd->num_ssids = cpu_to_le32(arg->num_ssids); in ath12k_wmi_send_scan_start_cmd()
2296 cmd->ie_len = cpu_to_le32(arg->extraie.len); in ath12k_wmi_send_scan_start_cmd()
2297 cmd->n_probes = cpu_to_le32(arg->n_probes); in ath12k_wmi_send_scan_start_cmd()
2321 ssid->ssid_len = cpu_to_le32(arg->ssid[i].ssid_len); in ath12k_wmi_send_scan_start_cmd()
2413 cmd->vdev_id = cpu_to_le32(arg->vdev_id); in ath12k_wmi_send_scan_stop_cmd()
2414 cmd->requestor = cpu_to_le32(arg->requester); in ath12k_wmi_send_scan_stop_cmd()
2415 cmd->scan_id = cpu_to_le32(arg->scan_id); in ath12k_wmi_send_scan_stop_cmd()
2416 cmd->pdev_id = cpu_to_le32(arg->pdev_id); in ath12k_wmi_send_scan_stop_cmd()
2420 cmd->req_type = cpu_to_le32(WMI_SCAN_STOP_ALL); in ath12k_wmi_send_scan_stop_cmd()
2423 cmd->req_type = cpu_to_le32(WMI_SCAN_STOP_VAP_ALL); in ath12k_wmi_send_scan_stop_cmd()
2476 cmd->pdev_id = cpu_to_le32(arg->pdev_id); in ath12k_wmi_send_scan_chan_list_cmd()
2477 cmd->num_scan_chans = cpu_to_le32(num_send_chans); in ath12k_wmi_send_scan_chan_list_cmd()
2479 cmd->flags |= cpu_to_le32(WMI_APPEND_TO_EXISTING_CHAN_LIST_FLAG); in ath12k_wmi_send_scan_chan_list_cmd()
2502 chan_info->mhz = cpu_to_le32(channel_arg->mhz); in ath12k_wmi_send_scan_chan_list_cmd()
2503 chan_info->band_center_freq1 = cpu_to_le32(channel_arg->cfreq1); in ath12k_wmi_send_scan_chan_list_cmd()
2504 chan_info->band_center_freq2 = cpu_to_le32(channel_arg->cfreq2); in ath12k_wmi_send_scan_chan_list_cmd()
2507 chan_info->info |= cpu_to_le32(WMI_CHAN_INFO_PASSIVE); in ath12k_wmi_send_scan_chan_list_cmd()
2509 chan_info->info |= cpu_to_le32(WMI_CHAN_INFO_ALLOW_HE); in ath12k_wmi_send_scan_chan_list_cmd()
2511 chan_info->info |= cpu_to_le32(WMI_CHAN_INFO_ALLOW_VHT); in ath12k_wmi_send_scan_chan_list_cmd()
2513 chan_info->info |= cpu_to_le32(WMI_CHAN_INFO_ALLOW_HT); in ath12k_wmi_send_scan_chan_list_cmd()
2515 chan_info->info |= cpu_to_le32(WMI_CHAN_INFO_HALF_RATE); in ath12k_wmi_send_scan_chan_list_cmd()
2518 cpu_to_le32(WMI_CHAN_INFO_QUARTER_RATE); in ath12k_wmi_send_scan_chan_list_cmd()
2521 chan_info->info |= cpu_to_le32(WMI_CHAN_INFO_PSC); in ath12k_wmi_send_scan_chan_list_cmd()
2524 chan_info->info |= cpu_to_le32(WMI_CHAN_INFO_DFS); in ath12k_wmi_send_scan_chan_list_cmd()
2579 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_send_wmm_update_cmd()
2603 wmm_param->aifs = cpu_to_le32(wmi_wmm_arg->aifs); in ath12k_wmi_send_wmm_update_cmd()
2604 wmm_param->cwmin = cpu_to_le32(wmi_wmm_arg->cwmin); in ath12k_wmi_send_wmm_update_cmd()
2605 wmm_param->cwmax = cpu_to_le32(wmi_wmm_arg->cwmax); in ath12k_wmi_send_wmm_update_cmd()
2606 wmm_param->txoplimit = cpu_to_le32(wmi_wmm_arg->txop); in ath12k_wmi_send_wmm_update_cmd()
2607 wmm_param->acm = cpu_to_le32(wmi_wmm_arg->acm); in ath12k_wmi_send_wmm_update_cmd()
2608 wmm_param->no_ack = cpu_to_le32(wmi_wmm_arg->no_ack); in ath12k_wmi_send_wmm_update_cmd()
2644 cmd->pdev_id = cpu_to_le32(pdev_id); in ath12k_wmi_send_dfs_phyerr_offload_enable_cmd()
2675 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_delba_send()
2677 cmd->tid = cpu_to_le32(tid); in ath12k_wmi_delba_send()
2678 cmd->initiator = cpu_to_le32(initiator); in ath12k_wmi_delba_send()
2679 cmd->reasoncode = cpu_to_le32(reason); in ath12k_wmi_delba_send()
2712 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_addba_set_resp()
2714 cmd->tid = cpu_to_le32(tid); in ath12k_wmi_addba_set_resp()
2715 cmd->statuscode = cpu_to_le32(status); in ath12k_wmi_addba_set_resp()
2747 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_addba_send()
2749 cmd->tid = cpu_to_le32(tid); in ath12k_wmi_addba_send()
2750 cmd->buffersize = cpu_to_le32(buf_size); in ath12k_wmi_addba_send()
2782 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_addba_clear_resp()
2817 cmd->pdev_id = cpu_to_le32(ar->pdev->pdev_id); in ath12k_wmi_send_init_country_cmd()
2825 cmd->init_cc_type = cpu_to_le32(WMI_COUNTRY_INFO_TYPE_COUNTRY_CODE); in ath12k_wmi_send_init_country_cmd()
2827 cpu_to_le32(arg->cc_info.country_code); in ath12k_wmi_send_init_country_cmd()
2830 cmd->init_cc_type = cpu_to_le32(WMI_COUNTRY_INFO_TYPE_REGDOMAIN); in ath12k_wmi_send_init_country_cmd()
2831 cmd->cc_info.regdom_id = cpu_to_le32(arg->cc_info.regdom_id); in ath12k_wmi_send_init_country_cmd()
2870 cmd->pdev_id = cpu_to_le32(pdev_id); in ath12k_wmi_send_twt_enable_cmd()
2871 cmd->sta_cong_timer_ms = cpu_to_le32(ATH12K_TWT_DEF_STA_CONG_TIMER_MS); in ath12k_wmi_send_twt_enable_cmd()
2872 cmd->default_slot_size = cpu_to_le32(ATH12K_TWT_DEF_DEFAULT_SLOT_SIZE); in ath12k_wmi_send_twt_enable_cmd()
2874 cpu_to_le32(ATH12K_TWT_DEF_CONGESTION_THRESH_SETUP); in ath12k_wmi_send_twt_enable_cmd()
2876 cpu_to_le32(ATH12K_TWT_DEF_CONGESTION_THRESH_TEARDOWN); in ath12k_wmi_send_twt_enable_cmd()
2878 cpu_to_le32(ATH12K_TWT_DEF_CONGESTION_THRESH_CRITICAL); in ath12k_wmi_send_twt_enable_cmd()
2880 cpu_to_le32(ATH12K_TWT_DEF_INTERFERENCE_THRESH_TEARDOWN); in ath12k_wmi_send_twt_enable_cmd()
2882 cpu_to_le32(ATH12K_TWT_DEF_INTERFERENCE_THRESH_SETUP); in ath12k_wmi_send_twt_enable_cmd()
2883 cmd->min_no_sta_setup = cpu_to_le32(ATH12K_TWT_DEF_MIN_NO_STA_SETUP); in ath12k_wmi_send_twt_enable_cmd()
2884 cmd->min_no_sta_teardown = cpu_to_le32(ATH12K_TWT_DEF_MIN_NO_STA_TEARDOWN); in ath12k_wmi_send_twt_enable_cmd()
2886 cpu_to_le32(ATH12K_TWT_DEF_NO_OF_BCAST_MCAST_SLOTS); in ath12k_wmi_send_twt_enable_cmd()
2887 cmd->min_no_twt_slots = cpu_to_le32(ATH12K_TWT_DEF_MIN_NO_TWT_SLOTS); in ath12k_wmi_send_twt_enable_cmd()
2888 cmd->max_no_sta_twt = cpu_to_le32(ATH12K_TWT_DEF_MAX_NO_STA_TWT); in ath12k_wmi_send_twt_enable_cmd()
2889 cmd->mode_check_interval = cpu_to_le32(ATH12K_TWT_DEF_MODE_CHECK_INTERVAL); in ath12k_wmi_send_twt_enable_cmd()
2890 cmd->add_sta_slot_interval = cpu_to_le32(ATH12K_TWT_DEF_ADD_STA_SLOT_INTERVAL); in ath12k_wmi_send_twt_enable_cmd()
2892 cpu_to_le32(ATH12K_TWT_DEF_REMOVE_STA_SLOT_INTERVAL); in ath12k_wmi_send_twt_enable_cmd()
2923 cmd->pdev_id = cpu_to_le32(pdev_id); in ath12k_wmi_send_twt_disable_cmd()
2953 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_send_obss_spr_cmd()
2954 cmd->enable = cpu_to_le32(he_obss_pd->enable); in ath12k_wmi_send_obss_spr_cmd()
2987 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_obss_color_cfg_cmd()
2988 cmd->evt_type = enable ? cpu_to_le32(ATH12K_OBSS_COLOR_COLLISION_DETECTION) : in ath12k_wmi_obss_color_cfg_cmd()
2989 cpu_to_le32(ATH12K_OBSS_COLOR_COLLISION_DETECTION_DISABLE); in ath12k_wmi_obss_color_cfg_cmd()
2990 cmd->current_bss_color = cpu_to_le32(bss_color); in ath12k_wmi_obss_color_cfg_cmd()
2991 cmd->detection_period_ms = cpu_to_le32(period); in ath12k_wmi_obss_color_cfg_cmd()
2992 cmd->scan_period_ms = cpu_to_le32(ATH12K_BSS_COLOR_COLLISION_SCAN_PERIOD_MS); in ath12k_wmi_obss_color_cfg_cmd()
3028 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_send_bss_color_change_enable_cmd()
3029 cmd->enable = enable ? cpu_to_le32(1) : 0; in ath12k_wmi_send_bss_color_change_enable_cmd()
3067 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_fils_discovery_tmpl()
3068 cmd->buf_len = cpu_to_le32(tmpl->len); in ath12k_wmi_fils_discovery_tmpl()
3108 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_probe_resp_tmpl()
3109 cmd->buf_len = cpu_to_le32(tmpl->len); in ath12k_wmi_probe_resp_tmpl()
3157 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_fils_discovery()
3158 cmd->interval = cpu_to_le32(interval); in ath12k_wmi_fils_discovery()
3159 cmd->config = cpu_to_le32(unsol_bcast_probe_resp_enabled); in ath12k_wmi_fils_discovery()
3207 wmi_cfg->num_vdevs = cpu_to_le32(tg_cfg->num_vdevs); in ath12k_wmi_copy_resource_config()
3208 wmi_cfg->num_peers = cpu_to_le32(tg_cfg->num_peers); in ath12k_wmi_copy_resource_config()
3209 wmi_cfg->num_offload_peers = cpu_to_le32(tg_cfg->num_offload_peers); in ath12k_wmi_copy_resource_config()
3211 cpu_to_le32(tg_cfg->num_offload_reorder_buffs); in ath12k_wmi_copy_resource_config()
3212 wmi_cfg->num_peer_keys = cpu_to_le32(tg_cfg->num_peer_keys); in ath12k_wmi_copy_resource_config()
3213 wmi_cfg->num_tids = cpu_to_le32(tg_cfg->num_tids); in ath12k_wmi_copy_resource_config()
3214 wmi_cfg->ast_skid_limit = cpu_to_le32(tg_cfg->ast_skid_limit); in ath12k_wmi_copy_resource_config()
3215 wmi_cfg->tx_chain_mask = cpu_to_le32(tg_cfg->tx_chain_mask); in ath12k_wmi_copy_resource_config()
3216 wmi_cfg->rx_chain_mask = cpu_to_le32(tg_cfg->rx_chain_mask); in ath12k_wmi_copy_resource_config()
3217 wmi_cfg->rx_timeout_pri[0] = cpu_to_le32(tg_cfg->rx_timeout_pri[0]); in ath12k_wmi_copy_resource_config()
3218 wmi_cfg->rx_timeout_pri[1] = cpu_to_le32(tg_cfg->rx_timeout_pri[1]); in ath12k_wmi_copy_resource_config()
3219 wmi_cfg->rx_timeout_pri[2] = cpu_to_le32(tg_cfg->rx_timeout_pri[2]); in ath12k_wmi_copy_resource_config()
3220 wmi_cfg->rx_timeout_pri[3] = cpu_to_le32(tg_cfg->rx_timeout_pri[3]); in ath12k_wmi_copy_resource_config()
3221 wmi_cfg->rx_decap_mode = cpu_to_le32(tg_cfg->rx_decap_mode); in ath12k_wmi_copy_resource_config()
3222 wmi_cfg->scan_max_pending_req = cpu_to_le32(tg_cfg->scan_max_pending_req); in ath12k_wmi_copy_resource_config()
3223 wmi_cfg->bmiss_offload_max_vdev = cpu_to_le32(tg_cfg->bmiss_offload_max_vdev); in ath12k_wmi_copy_resource_config()
3224 wmi_cfg->roam_offload_max_vdev = cpu_to_le32(tg_cfg->roam_offload_max_vdev); in ath12k_wmi_copy_resource_config()
3226 cpu_to_le32(tg_cfg->roam_offload_max_ap_profiles); in ath12k_wmi_copy_resource_config()
3227 wmi_cfg->num_mcast_groups = cpu_to_le32(tg_cfg->num_mcast_groups); in ath12k_wmi_copy_resource_config()
3228 wmi_cfg->num_mcast_table_elems = cpu_to_le32(tg_cfg->num_mcast_table_elems); in ath12k_wmi_copy_resource_config()
3229 wmi_cfg->mcast2ucast_mode = cpu_to_le32(tg_cfg->mcast2ucast_mode); in ath12k_wmi_copy_resource_config()
3230 wmi_cfg->tx_dbg_log_size = cpu_to_le32(tg_cfg->tx_dbg_log_size); in ath12k_wmi_copy_resource_config()
3231 wmi_cfg->num_wds_entries = cpu_to_le32(tg_cfg->num_wds_entries); in ath12k_wmi_copy_resource_config()
3232 wmi_cfg->dma_burst_size = cpu_to_le32(tg_cfg->dma_burst_size); in ath12k_wmi_copy_resource_config()
3233 wmi_cfg->mac_aggr_delim = cpu_to_le32(tg_cfg->mac_aggr_delim); in ath12k_wmi_copy_resource_config()
3235 cpu_to_le32(tg_cfg->rx_skip_defrag_timeout_dup_detection_check); in ath12k_wmi_copy_resource_config()
3236 wmi_cfg->vow_config = cpu_to_le32(tg_cfg->vow_config); in ath12k_wmi_copy_resource_config()
3237 wmi_cfg->gtk_offload_max_vdev = cpu_to_le32(tg_cfg->gtk_offload_max_vdev); in ath12k_wmi_copy_resource_config()
3238 wmi_cfg->num_msdu_desc = cpu_to_le32(tg_cfg->num_msdu_desc); in ath12k_wmi_copy_resource_config()
3239 wmi_cfg->max_frag_entries = cpu_to_le32(tg_cfg->max_frag_entries); in ath12k_wmi_copy_resource_config()
3240 wmi_cfg->num_tdls_vdevs = cpu_to_le32(tg_cfg->num_tdls_vdevs); in ath12k_wmi_copy_resource_config()
3242 cpu_to_le32(tg_cfg->num_tdls_conn_table_entries); in ath12k_wmi_copy_resource_config()
3244 cpu_to_le32(tg_cfg->beacon_tx_offload_max_vdev); in ath12k_wmi_copy_resource_config()
3246 cpu_to_le32(tg_cfg->num_multicast_filter_entries); in ath12k_wmi_copy_resource_config()
3247 wmi_cfg->num_wow_filters = cpu_to_le32(tg_cfg->num_wow_filters); in ath12k_wmi_copy_resource_config()
3248 wmi_cfg->num_keep_alive_pattern = cpu_to_le32(tg_cfg->num_keep_alive_pattern); in ath12k_wmi_copy_resource_config()
3249 wmi_cfg->keep_alive_pattern_size = cpu_to_le32(tg_cfg->keep_alive_pattern_size); in ath12k_wmi_copy_resource_config()
3251 cpu_to_le32(tg_cfg->max_tdls_concurrent_sleep_sta); in ath12k_wmi_copy_resource_config()
3253 cpu_to_le32(tg_cfg->max_tdls_concurrent_buffer_sta); in ath12k_wmi_copy_resource_config()
3254 wmi_cfg->wmi_send_separate = cpu_to_le32(tg_cfg->wmi_send_separate); in ath12k_wmi_copy_resource_config()
3255 wmi_cfg->num_ocb_vdevs = cpu_to_le32(tg_cfg->num_ocb_vdevs); in ath12k_wmi_copy_resource_config()
3256 wmi_cfg->num_ocb_channels = cpu_to_le32(tg_cfg->num_ocb_channels); in ath12k_wmi_copy_resource_config()
3257 wmi_cfg->num_ocb_schedules = cpu_to_le32(tg_cfg->num_ocb_schedules); in ath12k_wmi_copy_resource_config()
3258 wmi_cfg->bpf_instruction_size = cpu_to_le32(tg_cfg->bpf_instruction_size); in ath12k_wmi_copy_resource_config()
3259 wmi_cfg->max_bssid_rx_filters = cpu_to_le32(tg_cfg->max_bssid_rx_filters); in ath12k_wmi_copy_resource_config()
3260 wmi_cfg->use_pdev_id = cpu_to_le32(tg_cfg->use_pdev_id); in ath12k_wmi_copy_resource_config()
3261 wmi_cfg->flag1 = cpu_to_le32(tg_cfg->atf_config); in ath12k_wmi_copy_resource_config()
3262 wmi_cfg->peer_map_unmap_version = cpu_to_le32(tg_cfg->peer_map_unmap_version); in ath12k_wmi_copy_resource_config()
3263 wmi_cfg->sched_params = cpu_to_le32(tg_cfg->sched_params); in ath12k_wmi_copy_resource_config()
3264 wmi_cfg->twt_ap_pdev_count = cpu_to_le32(tg_cfg->twt_ap_pdev_count); in ath12k_wmi_copy_resource_config()
3265 wmi_cfg->twt_ap_sta_count = cpu_to_le32(tg_cfg->twt_ap_sta_count); in ath12k_wmi_copy_resource_config()
3266 wmi_cfg->host_service_flags = cpu_to_le32(tg_cfg->is_reg_cc_ext_event_supported << in ath12k_wmi_copy_resource_config()
3319 host_mem_chunks[idx].ptr = cpu_to_le32(arg->mem_chunks[idx].paddr); in ath12k_init_cmd_send()
3320 host_mem_chunks[idx].size = cpu_to_le32(arg->mem_chunks[idx].len); in ath12k_init_cmd_send()
3321 host_mem_chunks[idx].req_id = cpu_to_le32(arg->mem_chunks[idx].req_id); in ath12k_init_cmd_send()
3329 cmd->num_host_mem_chunks = cpu_to_le32(arg->num_mem_chunks); in ath12k_init_cmd_send()
3342 hw_mode->hw_mode_index = cpu_to_le32(arg->hw_mode_id); in ath12k_init_cmd_send()
3343 hw_mode->num_band_to_mac = cpu_to_le32(arg->num_band_to_mac); in ath12k_init_cmd_send()
3360 band_to_mac->pdev_id = cpu_to_le32(arg->band_to_mac[idx].pdev_id); in ath12k_init_cmd_send()
3362 cpu_to_le32(arg->band_to_mac[idx].start_freq); in ath12k_init_cmd_send()
3364 cpu_to_le32(arg->band_to_mac[idx].end_freq); in ath12k_init_cmd_send()
3396 cmd->pdev_id = cpu_to_le32(pdev_id); in ath12k_wmi_pdev_lro_cfg()
3459 cmd->hw_mode_index = cpu_to_le32(mode); in ath12k_wmi_set_hw_mode()
3508 cmd->vdev_id = cpu_to_le32(arg->vdev_id); in ath12k_wmi_vdev_spectral_conf()
3509 cmd->scan_count = cpu_to_le32(arg->scan_count); in ath12k_wmi_vdev_spectral_conf()
3510 cmd->scan_period = cpu_to_le32(arg->scan_period); in ath12k_wmi_vdev_spectral_conf()
3511 cmd->scan_priority = cpu_to_le32(arg->scan_priority); in ath12k_wmi_vdev_spectral_conf()
3512 cmd->scan_fft_size = cpu_to_le32(arg->scan_fft_size); in ath12k_wmi_vdev_spectral_conf()
3513 cmd->scan_gc_ena = cpu_to_le32(arg->scan_gc_ena); in ath12k_wmi_vdev_spectral_conf()
3514 cmd->scan_restart_ena = cpu_to_le32(arg->scan_restart_ena); in ath12k_wmi_vdev_spectral_conf()
3515 cmd->scan_noise_floor_ref = cpu_to_le32(arg->scan_noise_floor_ref); in ath12k_wmi_vdev_spectral_conf()
3516 cmd->scan_init_delay = cpu_to_le32(arg->scan_init_delay); in ath12k_wmi_vdev_spectral_conf()
3517 cmd->scan_nb_tone_thr = cpu_to_le32(arg->scan_nb_tone_thr); in ath12k_wmi_vdev_spectral_conf()
3518 cmd->scan_str_bin_thr = cpu_to_le32(arg->scan_str_bin_thr); in ath12k_wmi_vdev_spectral_conf()
3519 cmd->scan_wb_rpt_mode = cpu_to_le32(arg->scan_wb_rpt_mode); in ath12k_wmi_vdev_spectral_conf()
3520 cmd->scan_rssi_rpt_mode = cpu_to_le32(arg->scan_rssi_rpt_mode); in ath12k_wmi_vdev_spectral_conf()
3521 cmd->scan_rssi_thr = cpu_to_le32(arg->scan_rssi_thr); in ath12k_wmi_vdev_spectral_conf()
3522 cmd->scan_pwr_format = cpu_to_le32(arg->scan_pwr_format); in ath12k_wmi_vdev_spectral_conf()
3523 cmd->scan_rpt_mode = cpu_to_le32(arg->scan_rpt_mode); in ath12k_wmi_vdev_spectral_conf()
3524 cmd->scan_bin_scale = cpu_to_le32(arg->scan_bin_scale); in ath12k_wmi_vdev_spectral_conf()
3525 cmd->scan_dbm_adj = cpu_to_le32(arg->scan_dbm_adj); in ath12k_wmi_vdev_spectral_conf()
3526 cmd->scan_chn_mask = cpu_to_le32(arg->scan_chn_mask); in ath12k_wmi_vdev_spectral_conf()
3561 cmd->vdev_id = cpu_to_le32(vdev_id); in ath12k_wmi_vdev_spectral_enable()
3562 cmd->trigger_cmd = cpu_to_le32(trigger); in ath12k_wmi_vdev_spectral_enable()
3563 cmd->enable_cmd = cpu_to_le32(enable); in ath12k_wmi_vdev_spectral_enable()
3598 cmd->pdev_id = cpu_to_le32(DP_SW2HW_MACID(arg->pdev_id)); in ath12k_wmi_pdev_dma_ring_cfg()
3599 cmd->module_id = cpu_to_le32(arg->module_id); in ath12k_wmi_pdev_dma_ring_cfg()
3600 cmd->base_paddr_lo = cpu_to_le32(arg->base_paddr_lo); in ath12k_wmi_pdev_dma_ring_cfg()
3601 cmd->base_paddr_hi = cpu_to_le32(arg->base_paddr_hi); in ath12k_wmi_pdev_dma_ring_cfg()
3602 cmd->head_idx_paddr_lo = cpu_to_le32(arg->head_idx_paddr_lo); in ath12k_wmi_pdev_dma_ring_cfg()
3603 cmd->head_idx_paddr_hi = cpu_to_le32(arg->head_idx_paddr_hi); in ath12k_wmi_pdev_dma_ring_cfg()
3604 cmd->tail_idx_paddr_lo = cpu_to_le32(arg->tail_idx_paddr_lo); in ath12k_wmi_pdev_dma_ring_cfg()
3605 cmd->tail_idx_paddr_hi = cpu_to_le32(arg->tail_idx_paddr_hi); in ath12k_wmi_pdev_dma_ring_cfg()
3606 cmd->num_elems = cpu_to_le32(arg->num_elems); in ath12k_wmi_pdev_dma_ring_cfg()
3607 cmd->buf_size = cpu_to_le32(arg->buf_size); in ath12k_wmi_pdev_dma_ring_cfg()
3608 cmd->num_resp_per_event = cpu_to_le32(arg->num_resp_per_event); in ath12k_wmi_pdev_dma_ring_cfg()
3609 cmd->event_timeout_ms = cpu_to_le32(arg->event_timeout_ms); in ath12k_wmi_pdev_dma_ring_cfg()
3676 arg->fixed.pdev_id = cpu_to_le32(pdev_id); in ath12k_wmi_dma_buf_parse()
6815 wmi_ut.vdev_id = cpu_to_le32(arvif->vdev_id); in ath12k_wmi_simulate_radar()
6816 wmi_ut.module_id = cpu_to_le32(DFS_UNIT_TEST_MODULE); in ath12k_wmi_simulate_radar()
6817 wmi_ut.num_args = cpu_to_le32(DFS_MAX_TEST_ARGS); in ath12k_wmi_simulate_radar()
6818 wmi_ut.diag_token = cpu_to_le32(DFS_UNIT_TEST_TOKEN); in ath12k_wmi_simulate_radar()