Lines Matching refs:cmd
532 struct iwl_mac_ctx_cmd *cmd, in iwl_mvm_mac_ctxt_cmd_common() argument
540 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_cmd_common()
542 cmd->action = cpu_to_le32(action); in iwl_mvm_mac_ctxt_cmd_common()
543 cmd->mac_type = cpu_to_le32(iwl_mvm_get_mac_type(vif)); in iwl_mvm_mac_ctxt_cmd_common()
545 cmd->tsf_id = cpu_to_le32(mvmvif->tsf_id); in iwl_mvm_mac_ctxt_cmd_common()
547 memcpy(cmd->node_addr, vif->addr, ETH_ALEN); in iwl_mvm_mac_ctxt_cmd_common()
550 memcpy(cmd->bssid_addr, bssid, ETH_ALEN); in iwl_mvm_mac_ctxt_cmd_common()
552 eth_broadcast_addr(cmd->bssid_addr); in iwl_mvm_mac_ctxt_cmd_common()
554 iwl_mvm_set_fw_basic_rates(mvm, vif, &vif->bss_conf, &cmd->cck_rates, in iwl_mvm_mac_ctxt_cmd_common()
555 &cmd->ofdm_rates); in iwl_mvm_mac_ctxt_cmd_common()
557 cmd->cck_short_preamble = in iwl_mvm_mac_ctxt_cmd_common()
560 cmd->short_slot = in iwl_mvm_mac_ctxt_cmd_common()
564 cmd->filter_flags = 0; in iwl_mvm_mac_ctxt_cmd_common()
566 iwl_mvm_set_fw_qos_params(mvm, vif, &vif->bss_conf, cmd->ac, in iwl_mvm_mac_ctxt_cmd_common()
567 &cmd->qos_flags); in iwl_mvm_mac_ctxt_cmd_common()
572 &cmd->protection_flags, in iwl_mvm_mac_ctxt_cmd_common()
577 struct iwl_mac_ctx_cmd *cmd) in iwl_mvm_mac_ctxt_send_cmd() argument
580 sizeof(*cmd), cmd); in iwl_mvm_mac_ctxt_send_cmd()
583 le32_to_cpu(cmd->action), ret); in iwl_mvm_mac_ctxt_send_cmd()
657 struct iwl_mac_ctx_cmd cmd = {}; in iwl_mvm_mac_ctxt_cmd_sta() local
663 iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, bssid_override, action); in iwl_mvm_mac_ctxt_cmd_sta()
669 cmd.filter_flags |= cpu_to_le32(MAC_FILTER_ACCEPT_GRP); in iwl_mvm_mac_ctxt_cmd_sta()
672 cmd.p2p_sta.ctwin = in iwl_mvm_mac_ctxt_cmd_sta()
675 ctxt_sta = &cmd.p2p_sta.sta; in iwl_mvm_mac_ctxt_cmd_sta()
677 ctxt_sta = &cmd.sta; in iwl_mvm_mac_ctxt_cmd_sta()
703 cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_BEACON); in iwl_mvm_mac_ctxt_cmd_sta()
714 cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_PROBE_REQUEST); in iwl_mvm_mac_ctxt_cmd_sta()
717 cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_11AX); in iwl_mvm_mac_ctxt_cmd_sta()
723 return iwl_mvm_mac_ctxt_send_cmd(mvm, &cmd); in iwl_mvm_mac_ctxt_cmd_sta()
730 struct iwl_mac_ctx_cmd cmd = {}; in iwl_mvm_mac_ctxt_cmd_listener() local
736 iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, NULL, action); in iwl_mvm_mac_ctxt_cmd_listener()
738 cmd.filter_flags = cpu_to_le32(MAC_FILTER_IN_PROMISC | in iwl_mvm_mac_ctxt_cmd_listener()
760 return iwl_mvm_mac_ctxt_send_cmd(mvm, &cmd); in iwl_mvm_mac_ctxt_cmd_listener()
768 struct iwl_mac_ctx_cmd cmd = {}; in iwl_mvm_mac_ctxt_cmd_ibss() local
772 iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, NULL, action); in iwl_mvm_mac_ctxt_cmd_ibss()
774 cmd.filter_flags = cpu_to_le32(MAC_FILTER_IN_BEACON | in iwl_mvm_mac_ctxt_cmd_ibss()
779 cmd.ibss.bi = cpu_to_le32(vif->bss_conf.beacon_int); in iwl_mvm_mac_ctxt_cmd_ibss()
782 cmd.ibss.beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_ibss()
784 return iwl_mvm_mac_ctxt_send_cmd(mvm, &cmd); in iwl_mvm_mac_ctxt_cmd_ibss()
825 struct iwl_mac_ctx_cmd cmd = {}; in iwl_mvm_mac_ctxt_cmd_p2p_device() local
829 iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, NULL, action); in iwl_mvm_mac_ctxt_cmd_p2p_device()
831 cmd.p2p_dev.is_disc_extended = in iwl_mvm_mac_ctxt_cmd_p2p_device()
835 cmd.filter_flags = cpu_to_le32(MAC_FILTER_IN_PROBE_REQUEST); in iwl_mvm_mac_ctxt_cmd_p2p_device()
837 return iwl_mvm_mac_ctxt_send_cmd(mvm, &cmd); in iwl_mvm_mac_ctxt_cmd_p2p_device()
1022 struct iwl_host_cmd cmd = { in iwl_mvm_mac_ctxt_send_beacon_cmd() local
1027 cmd.len[0] = len; in iwl_mvm_mac_ctxt_send_beacon_cmd()
1028 cmd.data[0] = data; in iwl_mvm_mac_ctxt_send_beacon_cmd()
1029 cmd.dataflags[0] = 0; in iwl_mvm_mac_ctxt_send_beacon_cmd()
1030 cmd.len[1] = beacon->len; in iwl_mvm_mac_ctxt_send_beacon_cmd()
1031 cmd.data[1] = beacon->data; in iwl_mvm_mac_ctxt_send_beacon_cmd()
1032 cmd.dataflags[1] = IWL_HCMD_DFL_DUP; in iwl_mvm_mac_ctxt_send_beacon_cmd()
1034 return iwl_mvm_send_cmd(mvm, &cmd); in iwl_mvm_mac_ctxt_send_beacon_cmd()
1251 struct iwl_mac_ctx_cmd *cmd, in iwl_mvm_mac_ctxt_cmd_fill_ap() argument
1263 cmd->ac[IWL_MVM_TX_FIFO_VO].fifos_mask |= BIT(IWL_MVM_TX_FIFO_MCAST); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1266 &cmd->filter_flags, in iwl_mvm_mac_ctxt_cmd_fill_ap()
1314 struct iwl_mac_ctx_cmd cmd = {}; in iwl_mvm_mac_ctxt_cmd_ap() local
1319 iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, NULL, action); in iwl_mvm_mac_ctxt_cmd_ap()
1322 iwl_mvm_mac_ctxt_cmd_fill_ap(mvm, vif, &cmd, &cmd.ap, in iwl_mvm_mac_ctxt_cmd_ap()
1325 return iwl_mvm_mac_ctxt_send_cmd(mvm, &cmd); in iwl_mvm_mac_ctxt_cmd_ap()
1332 struct iwl_mac_ctx_cmd cmd = {}; in iwl_mvm_mac_ctxt_cmd_go() local
1338 iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, NULL, action); in iwl_mvm_mac_ctxt_cmd_go()
1341 iwl_mvm_mac_ctxt_cmd_fill_ap(mvm, vif, &cmd, &cmd.go.ap, in iwl_mvm_mac_ctxt_cmd_go()
1344 cmd.go.ctwin = cpu_to_le32(noa->oppps_ctwindow & in iwl_mvm_mac_ctxt_cmd_go()
1346 cmd.go.opp_ps_enabled = in iwl_mvm_mac_ctxt_cmd_go()
1350 return iwl_mvm_mac_ctxt_send_cmd(mvm, &cmd); in iwl_mvm_mac_ctxt_cmd_go()
1417 struct iwl_mac_ctx_cmd cmd; in iwl_mvm_mac_ctxt_remove() local
1424 memset(&cmd, 0, sizeof(cmd)); in iwl_mvm_mac_ctxt_remove()
1426 cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_remove()
1428 cmd.action = cpu_to_le32(FW_CTXT_ACTION_REMOVE); in iwl_mvm_mac_ctxt_remove()
1430 ret = iwl_mvm_mac_ctxt_send_cmd(mvm, &cmd); in iwl_mvm_mac_ctxt_remove()