Lines Matching full:vif
11 struct ieee80211_vif *vif, in iwl_dbgfs_update_pm() argument
14 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_update_pm()
21 int dtimper = vif->bss_conf.dtim_period ?: 1; in iwl_dbgfs_update_pm()
22 int dtimper_msec = dtimper * vif->bss_conf.beacon_int; in iwl_dbgfs_update_pm()
72 static ssize_t iwl_dbgfs_pm_params_write(struct ieee80211_vif *vif, char *buf, in iwl_dbgfs_pm_params_write() argument
75 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_pm_params_write()
128 iwl_dbgfs_update_pm(mvm, vif, param, val); in iwl_dbgfs_pm_params_write()
139 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_tx_pwr_lmt_read() local
145 vif->bss_conf.txpower); in iwl_dbgfs_tx_pwr_lmt_read()
154 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_pm_params_read() local
155 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_pm_params_read()
161 pos = iwl_mvm_power_mac_dbgfs_read(mvm, vif, buf, bufsz); in iwl_dbgfs_pm_params_read()
170 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_mac_params_read() local
171 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_mac_params_read()
184 switch (ieee80211_vif_type_p2p(vif)) { in iwl_dbgfs_mac_params_read()
210 vif->bss_conf.bssid); in iwl_dbgfs_mac_params_read()
223 if (vif->type == NL80211_IFTYPE_STATION && in iwl_dbgfs_mac_params_read()
237 chanctx_conf = rcu_dereference(vif->bss_conf.chanctx_conf); in iwl_dbgfs_mac_params_read()
250 static void iwl_dbgfs_update_bf(struct ieee80211_vif *vif, in iwl_dbgfs_update_bf() argument
253 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_update_bf()
295 static ssize_t iwl_dbgfs_bf_params_write(struct ieee80211_vif *vif, char *buf, in iwl_dbgfs_bf_params_write() argument
298 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_bf_params_write()
382 iwl_dbgfs_update_bf(vif, param, value); in iwl_dbgfs_bf_params_write()
384 ret = iwl_mvm_disable_beacon_filter(mvm, vif); in iwl_dbgfs_bf_params_write()
386 ret = iwl_mvm_enable_beacon_filter(mvm, vif); in iwl_dbgfs_bf_params_write()
396 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_bf_params_read() local
397 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_bf_params_read()
409 iwl_mvm_beacon_filter_debugfs_parameters(vif, &cmd); in iwl_dbgfs_bf_params_read()
445 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_os_device_timediff_read() local
446 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_os_device_timediff_read()
466 static ssize_t iwl_dbgfs_low_latency_write(struct ieee80211_vif *vif, char *buf, in iwl_dbgfs_low_latency_write() argument
469 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_low_latency_write()
481 iwl_mvm_update_low_latency(mvm, vif, value, LOW_LATENCY_DEBUGFS); in iwl_dbgfs_low_latency_write()
488 iwl_dbgfs_low_latency_force_write(struct ieee80211_vif *vif, char *buf, in iwl_dbgfs_low_latency_force_write() argument
491 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_low_latency_force_write()
505 iwl_mvm_update_low_latency(mvm, vif, false, in iwl_dbgfs_low_latency_force_write()
507 iwl_mvm_update_low_latency(mvm, vif, false, in iwl_dbgfs_low_latency_force_write()
510 iwl_mvm_update_low_latency(mvm, vif, in iwl_dbgfs_low_latency_force_write()
513 iwl_mvm_update_low_latency(mvm, vif, true, in iwl_dbgfs_low_latency_force_write()
524 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_low_latency_read() local
525 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_low_latency_read()
552 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_uapsd_misbehaving_read() local
553 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_uapsd_misbehaving_read()
561 static ssize_t iwl_dbgfs_uapsd_misbehaving_write(struct ieee80211_vif *vif, in iwl_dbgfs_uapsd_misbehaving_write() argument
565 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_uapsd_misbehaving_write()
576 static ssize_t iwl_dbgfs_rx_phyinfo_write(struct ieee80211_vif *vif, char *buf, in iwl_dbgfs_rx_phyinfo_write() argument
579 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_rx_phyinfo_write()
593 for_each_vif_active_link(vif, link_conf, link_id) { in iwl_dbgfs_rx_phyinfo_write()
631 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_rx_phyinfo_read() local
632 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_rx_phyinfo_read()
643 struct ieee80211_vif *vif) in iwl_dbgfs_quota_check() argument
645 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_quota_check()
652 static ssize_t iwl_dbgfs_quota_min_write(struct ieee80211_vif *vif, char *buf, in iwl_dbgfs_quota_min_write() argument
655 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_quota_min_write()
685 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_quota_min_read() local
686 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_quota_min_read()
695 static ssize_t iwl_dbgfs_max_tx_op_write(struct ieee80211_vif *vif, char *buf, in iwl_dbgfs_max_tx_op_write() argument
698 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_max_tx_op_write()
718 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_max_tx_op_read() local
719 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_max_tx_op_read()
731 static ssize_t iwl_dbgfs_int_mlo_scan_write(struct ieee80211_vif *vif, in iwl_dbgfs_int_mlo_scan_write() argument
735 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_int_mlo_scan_write()
740 if (!vif->cfg.assoc || !ieee80211_vif_is_mld(vif)) in iwl_dbgfs_int_mlo_scan_write()
751 ret = iwl_mvm_int_mlo_scan(mvm, vif); in iwl_dbgfs_int_mlo_scan_write()
765 struct ieee80211_vif *vif = file->private_data; in iwl_dbgfs_esr_disable_reason_read() local
766 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_esr_disable_reason_read()
793 static ssize_t iwl_dbgfs_esr_disable_reason_write(struct ieee80211_vif *vif, in iwl_dbgfs_esr_disable_reason_write() argument
797 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_esr_disable_reason_write()
812 iwl_mvm_block_esr(mvm, vif, reason, in iwl_dbgfs_esr_disable_reason_write()
813 iwl_mvm_get_primary_link(vif)); in iwl_dbgfs_esr_disable_reason_write()
815 iwl_mvm_unblock_esr(mvm, vif, reason); in iwl_dbgfs_esr_disable_reason_write()
826 debugfs_create_file(#name, mode, parent, vif, \
844 void iwl_mvm_vif_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif) in iwl_mvm_vif_add_debugfs() argument
847 struct dentry *dbgfs_dir = vif->debugfs_dir; in iwl_mvm_vif_add_debugfs()
848 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_vif_add_debugfs()
858 ((vif->type == NL80211_IFTYPE_STATION && !vif->p2p) || in iwl_mvm_vif_add_debugfs()
859 (vif->type == NL80211_IFTYPE_STATION && vif->p2p))) in iwl_mvm_vif_add_debugfs()
876 if (vif->type == NL80211_IFTYPE_STATION && !vif->p2p && in iwl_mvm_vif_add_debugfs()
881 void iwl_mvm_vif_dbgfs_add_link(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_vif_dbgfs_add_link() argument
883 struct dentry *dbgfs_dir = vif->debugfs_dir; in iwl_mvm_vif_dbgfs_add_link()
884 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_vif_dbgfs_add_link()
907 void iwl_mvm_vif_dbgfs_rm_link(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_vif_dbgfs_rm_link() argument
909 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_vif_dbgfs_rm_link()
925 static void iwl_mvm_debugfs_add_link_files(struct ieee80211_vif *vif, in iwl_mvm_debugfs_add_link_files() argument
933 struct ieee80211_vif *vif, in iwl_mvm_link_add_debugfs() argument
937 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_link_add_debugfs()
946 if (dir == vif->debugfs_dir) { in iwl_mvm_link_add_debugfs()
958 iwl_mvm_debugfs_add_link_files(vif, link_conf, mvm_dir); in iwl_mvm_link_add_debugfs()