Lines Matching refs:cpu_to_le32

638 		cmd->protection_flags |= cpu_to_le32(ht_flag);  in iwl_mvm_mac_ctxt_set_ht_flags()
643 cmd->protection_flags |= cpu_to_le32(ht_flag); in iwl_mvm_mac_ctxt_set_ht_flags()
666 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_cmd_common()
668 cmd->action = cpu_to_le32(action); in iwl_mvm_mac_ctxt_cmd_common()
673 cmd->mac_type = cpu_to_le32(FW_MAC_TYPE_P2P_STA); in iwl_mvm_mac_ctxt_cmd_common()
675 cmd->mac_type = cpu_to_le32(FW_MAC_TYPE_BSS_STA); in iwl_mvm_mac_ctxt_cmd_common()
678 cmd->mac_type = cpu_to_le32(FW_MAC_TYPE_GO); in iwl_mvm_mac_ctxt_cmd_common()
681 cmd->mac_type = cpu_to_le32(FW_MAC_TYPE_LISTENER); in iwl_mvm_mac_ctxt_cmd_common()
684 cmd->mac_type = cpu_to_le32(FW_MAC_TYPE_P2P_DEVICE); in iwl_mvm_mac_ctxt_cmd_common()
687 cmd->mac_type = cpu_to_le32(FW_MAC_TYPE_IBSS); in iwl_mvm_mac_ctxt_cmd_common()
693 cmd->tsf_id = cpu_to_le32(mvmvif->tsf_id); in iwl_mvm_mac_ctxt_cmd_common()
709 cmd->cck_rates = cpu_to_le32((u32)cck_ack_rates); in iwl_mvm_mac_ctxt_cmd_common()
710 cmd->ofdm_rates = cpu_to_le32((u32)ofdm_ack_rates); in iwl_mvm_mac_ctxt_cmd_common()
713 cpu_to_le32(vif->bss_conf.use_short_preamble ? in iwl_mvm_mac_ctxt_cmd_common()
716 cpu_to_le32(vif->bss_conf.use_short_slot ? in iwl_mvm_mac_ctxt_cmd_common()
738 cmd->qos_flags |= cpu_to_le32(MAC_QOS_FLG_UPDATE_EDCA); in iwl_mvm_mac_ctxt_cmd_common()
741 cmd->protection_flags |= cpu_to_le32(MAC_PROT_FLG_TGG_PROTECT); in iwl_mvm_mac_ctxt_cmd_common()
747 cmd->qos_flags |= cpu_to_le32(MAC_QOS_FLG_TGN); in iwl_mvm_mac_ctxt_cmd_common()
751 cmd->filter_flags = cpu_to_le32(MAC_FILTER_ACCEPT_GRP); in iwl_mvm_mac_ctxt_cmd_common()
782 cmd.p2p_sta.ctwin = cpu_to_le32(noa->oppps_ctwindow & in iwl_mvm_mac_ctxt_cmd_sta()
817 cpu_to_le32(vif->bss_conf.sync_device_ts + dtim_offs); in iwl_mvm_mac_ctxt_cmd_sta()
824 ctxt_sta->is_assoc = cpu_to_le32(1); in iwl_mvm_mac_ctxt_cmd_sta()
826 ctxt_sta->is_assoc = cpu_to_le32(0); in iwl_mvm_mac_ctxt_cmd_sta()
831 cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_BEACON); in iwl_mvm_mac_ctxt_cmd_sta()
834 ctxt_sta->bi = cpu_to_le32(vif->bss_conf.beacon_int); in iwl_mvm_mac_ctxt_cmd_sta()
836 cpu_to_le32(iwl_mvm_reciprocal(vif->bss_conf.beacon_int)); in iwl_mvm_mac_ctxt_cmd_sta()
837 ctxt_sta->dtim_interval = cpu_to_le32(vif->bss_conf.beacon_int * in iwl_mvm_mac_ctxt_cmd_sta()
840 cpu_to_le32(iwl_mvm_reciprocal(vif->bss_conf.beacon_int * in iwl_mvm_mac_ctxt_cmd_sta()
843 ctxt_sta->listen_interval = cpu_to_le32(mvm->hw->conf.listen_interval); in iwl_mvm_mac_ctxt_cmd_sta()
844 ctxt_sta->assoc_id = cpu_to_le32(vif->bss_conf.aid); in iwl_mvm_mac_ctxt_cmd_sta()
847 cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_PROBE_REQUEST); in iwl_mvm_mac_ctxt_cmd_sta()
862 cmd.filter_flags = cpu_to_le32(MAC_FILTER_IN_PROMISC | in iwl_mvm_mac_ctxt_cmd_listener()
883 cmd.filter_flags = cpu_to_le32(MAC_FILTER_IN_BEACON | in iwl_mvm_mac_ctxt_cmd_ibss()
887 cmd.ibss.bi = cpu_to_le32(vif->bss_conf.beacon_int); in iwl_mvm_mac_ctxt_cmd_ibss()
889 cpu_to_le32(iwl_mvm_reciprocal(vif->bss_conf.beacon_int)); in iwl_mvm_mac_ctxt_cmd_ibss()
892 cmd.ibss.beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_ibss()
922 cmd.protection_flags |= cpu_to_le32(MAC_PROT_FLG_TGG_PROTECT); in iwl_mvm_mac_ctxt_cmd_p2p_device()
925 cmd.filter_flags = cpu_to_le32(MAC_FILTER_IN_PROBE_REQUEST); in iwl_mvm_mac_ctxt_cmd_p2p_device()
939 cmd.p2p_dev.is_disc_extended = cpu_to_le32(data.go_active ? 1 : 0); in iwl_mvm_mac_ctxt_cmd_p2p_device()
961 beacon_cmd->tim_idx = cpu_to_le32(tim_idx); in iwl_mvm_mac_ctxt_set_tim()
962 beacon_cmd->tim_size = cpu_to_le32((u32)beacon[tim_idx+1]); in iwl_mvm_mac_ctxt_set_tim()
989 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); in iwl_mvm_mac_ctxt_send_beacon()
995 beacon_cmd.tx.life_time = cpu_to_le32(TX_CMD_LIFE_TIME_INFINITE); in iwl_mvm_mac_ctxt_send_beacon()
1000 beacon_cmd.tx.tx_flags = cpu_to_le32(tx_flags); in iwl_mvm_mac_ctxt_send_beacon()
1007 cpu_to_le32(BIT(mvm->mgmt_last_antenna_idx) << in iwl_mvm_mac_ctxt_send_beacon()
1014 beacon_cmd.tx.rate_n_flags |= cpu_to_le32(RATE_MCS_CCK_MSK); in iwl_mvm_mac_ctxt_send_beacon()
1017 cpu_to_le32(iwl_mvm_mac80211_idx_to_hwrate(rate)); in iwl_mvm_mac_ctxt_send_beacon()
1094 ctxt_ap->bi = cpu_to_le32(vif->bss_conf.beacon_int); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1096 cpu_to_le32(iwl_mvm_reciprocal(vif->bss_conf.beacon_int)); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1097 ctxt_ap->dtim_interval = cpu_to_le32(vif->bss_conf.beacon_int * in iwl_mvm_mac_ctxt_cmd_fill_ap()
1100 cpu_to_le32(iwl_mvm_reciprocal(vif->bss_conf.beacon_int * in iwl_mvm_mac_ctxt_cmd_fill_ap()
1103 ctxt_ap->mcast_qid = cpu_to_le32(vif->cab_queue); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1132 ctxt_ap->beacon_time = cpu_to_le32(mvmvif->ap_beacon_time); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1136 ctxt_ap->beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1156 cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_PROBE_REQUEST); in iwl_mvm_mac_ctxt_cmd_ap()
1158 cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_BEACON); in iwl_mvm_mac_ctxt_cmd_ap()
1187 cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_PROBE_REQUEST | in iwl_mvm_mac_ctxt_cmd_go()
1194 cmd.go.ctwin = cpu_to_le32(noa->oppps_ctwindow & in iwl_mvm_mac_ctxt_cmd_go()
1197 cpu_to_le32(!!(noa->oppps_ctwindow & in iwl_mvm_mac_ctxt_cmd_go()
1278 cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_remove()
1280 cmd.action = cpu_to_le32(FW_CTXT_ACTION_REMOVE); in iwl_mvm_mac_ctxt_remove()