Lines Matching refs:wma

742 static void wma_cp_stats_set_rate_flag(tp_wma_handle wma, uint8_t vdev_id)  in wma_cp_stats_set_rate_flag()  argument
745 struct wlan_objmgr_psoc *psoc = wma->psoc; in wma_cp_stats_set_rate_flag()
746 struct wma_txrx_node *iface = &wma->interfaces[vdev_id]; in wma_cp_stats_set_rate_flag()
853 void wma_set_bss_rate_flags(tp_wma_handle wma, uint8_t vdev_id, in wma_set_bss_rate_flags() argument
856 struct wma_txrx_node *iface = &wma->interfaces[vdev_id]; in wma_set_bss_rate_flags()
894 wma_cp_stats_set_rate_flag(wma, vdev_id); in wma_set_bss_rate_flags()
901 tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA); in wma_set_vht_txbf_cfg() local
903 if (!wma) in wma_set_vht_txbf_cfg()
911 status = wma_vdev_set_param(wma->wmi_handle, vdev_id, in wma_set_vht_txbf_cfg()
925 int32_t wmi_unified_send_txbf(tp_wma_handle wma, tpAddStaParams params) in wmi_unified_send_txbf() argument
943 return wma_vdev_set_param(wma->wmi_handle, in wmi_unified_send_txbf()
1098 tp_wma_handle wma = NULL; in wma_set_enable_disable_mcc_adaptive_scheduler() local
1101 wma = cds_get_context(QDF_MODULE_ID_WMA); in wma_set_enable_disable_mcc_adaptive_scheduler()
1102 if (!wma) in wma_set_enable_disable_mcc_adaptive_scheduler()
1118 wma->wmi_handle, mcc_adaptive_scheduler, pdev_id); in wma_set_enable_disable_mcc_adaptive_scheduler()
1133 QDF_STATUS wma_set_mcc_channel_time_latency(tp_wma_handle wma, in wma_set_mcc_channel_time_latency() argument
1141 if (!wma) { in wma_set_mcc_channel_time_latency()
1173 return wmi_unified_set_mcc_channel_time_latency_cmd(wma->wmi_handle, in wma_set_mcc_channel_time_latency()
1194 QDF_STATUS wma_set_mcc_channel_time_quota(tp_wma_handle wma, in wma_set_mcc_channel_time_quota() argument
1203 if (!wma) { in wma_set_mcc_channel_time_quota()
1235 return wmi_unified_set_mcc_channel_time_quota_cmd(wma->wmi_handle, in wma_set_mcc_channel_time_quota()
1246 QDF_STATUS wma_process_rate_update_indicate(tp_wma_handle wma, in wma_process_rate_update_indicate() argument
1256 struct wma_txrx_node *intr = wma->interfaces; in wma_process_rate_update_indicate()
1262 if (wma_find_vdev_id_by_addr(wma, pRateUpdateParams->bssid.bytes, in wma_process_rate_update_indicate()
1475 tp_wma_handle wma, in wma_process_vdev_tx_pause_evt() argument
1513 if (wma->interfaces[vdev_id].pause_bitmap) in wma_process_vdev_tx_pause_evt()
1532 tp_wma_handle wma = (tp_wma_handle) handle; in wma_mcc_vdev_tx_pause_evt_handler() local
1545 if (ucfg_pmo_get_wow_bus_suspend(wma->psoc)) { in wma_mcc_vdev_tx_pause_evt_handler()
1559 for (vdev_id = 0; vdev_map != 0 && vdev_id < wma->max_bssid; in wma_mcc_vdev_tx_pause_evt_handler()
1564 if (!wma->interfaces[vdev_id].vdev) { in wma_mcc_vdev_tx_pause_evt_handler()
1571 wma_process_vdev_tx_pause_evt(soc, wma, in wma_mcc_vdev_tx_pause_evt_handler()
1646 QDF_STATUS wma_process_init_bad_peer_tx_ctl_info(tp_wma_handle wma, in wma_process_init_bad_peer_tx_ctl_info() argument
1652 if (!wma || !config) { in wma_process_init_bad_peer_tx_ctl_info()
1687 return wma_set_peer_rate_report_condition(wma, config); in wma_process_init_bad_peer_tx_ctl_info()
1701 static QDF_STATUS wma_update_thermal_mitigation_to_fw(tp_wma_handle wma, in wma_update_thermal_mitigation_to_fw() argument
1710 wma->thermal_mgmt_info.throttle_duty_cycle_tbl[thermal_level]; in wma_update_thermal_mitigation_to_fw()
1714 return wmi_unified_thermal_mitigation_param_cmd_send(wma->wmi_handle, in wma_update_thermal_mitigation_to_fw()
1727 static QDF_STATUS wma_update_thermal_mitigation_to_fw(tp_wma_handle wma, in wma_update_thermal_mitigation_to_fw() argument
1742 static QDF_STATUS wma_update_thermal_cfg_to_fw(tp_wma_handle wma) in wma_update_thermal_cfg_to_fw() argument
1748 wma->thermal_mgmt_info.thermalLevels[WLAN_WMA_THERMAL_LEVEL_0]. in wma_update_thermal_cfg_to_fw()
1751 wma->thermal_mgmt_info.thermalLevels[WLAN_WMA_THERMAL_LEVEL_0]. in wma_update_thermal_cfg_to_fw()
1754 wma->thermal_mgmt_info.thermalMgmtEnabled; in wma_update_thermal_cfg_to_fw()
1755 thermal_params.thermal_action = wma->thermal_mgmt_info.thermal_action; in wma_update_thermal_cfg_to_fw()
1761 return wma_set_thermal_mgmt(wma, thermal_params); in wma_update_thermal_cfg_to_fw()
1775 QDF_STATUS wma_process_init_thermal_info(tp_wma_handle wma, in wma_process_init_thermal_info() argument
1783 if (!wma || !pThermalParams) { in wma_process_init_thermal_info()
1807 wma->thermal_mgmt_info.thermalMgmtEnabled = in wma_process_init_thermal_info()
1809 wma->thermal_mgmt_info.thermalLevels[0].minTempThreshold = in wma_process_init_thermal_info()
1811 wma->thermal_mgmt_info.thermalLevels[0].maxTempThreshold = in wma_process_init_thermal_info()
1813 wma->thermal_mgmt_info.thermalLevels[1].minTempThreshold = in wma_process_init_thermal_info()
1815 wma->thermal_mgmt_info.thermalLevels[1].maxTempThreshold = in wma_process_init_thermal_info()
1817 wma->thermal_mgmt_info.thermalLevels[2].minTempThreshold = in wma_process_init_thermal_info()
1819 wma->thermal_mgmt_info.thermalLevels[2].maxTempThreshold = in wma_process_init_thermal_info()
1821 wma->thermal_mgmt_info.thermalLevels[3].minTempThreshold = in wma_process_init_thermal_info()
1823 wma->thermal_mgmt_info.thermalLevels[3].maxTempThreshold = in wma_process_init_thermal_info()
1825 wma->thermal_mgmt_info.thermalLevels[4].minTempThreshold = in wma_process_init_thermal_info()
1827 wma->thermal_mgmt_info.thermalLevels[4].maxTempThreshold = in wma_process_init_thermal_info()
1829 wma->thermal_mgmt_info.thermalLevels[5].minTempThreshold = in wma_process_init_thermal_info()
1831 wma->thermal_mgmt_info.thermalLevels[5].maxTempThreshold = in wma_process_init_thermal_info()
1833 wma->thermal_mgmt_info.thermalCurrLevel = WLAN_WMA_THERMAL_LEVEL_0; in wma_process_init_thermal_info()
1834 wma->thermal_mgmt_info.thermal_action = pThermalParams->thermal_action; in wma_process_init_thermal_info()
1842 wma->thermal_mgmt_info.thermalLevels[0].minTempThreshold, in wma_process_init_thermal_info()
1843 wma->thermal_mgmt_info.thermalLevels[0].maxTempThreshold, in wma_process_init_thermal_info()
1844 wma->thermal_mgmt_info.thermalLevels[1].minTempThreshold, in wma_process_init_thermal_info()
1845 wma->thermal_mgmt_info.thermalLevels[1].maxTempThreshold, in wma_process_init_thermal_info()
1846 wma->thermal_mgmt_info.thermalLevels[2].minTempThreshold, in wma_process_init_thermal_info()
1847 wma->thermal_mgmt_info.thermalLevels[2].maxTempThreshold, in wma_process_init_thermal_info()
1848 wma->thermal_mgmt_info.thermalLevels[3].minTempThreshold, in wma_process_init_thermal_info()
1849 wma->thermal_mgmt_info.thermalLevels[3].maxTempThreshold, in wma_process_init_thermal_info()
1850 wma->thermal_mgmt_info.thermalLevels[4].minTempThreshold, in wma_process_init_thermal_info()
1851 wma->thermal_mgmt_info.thermalLevels[4].maxTempThreshold, in wma_process_init_thermal_info()
1852 wma->thermal_mgmt_info.thermalLevels[5].minTempThreshold, in wma_process_init_thermal_info()
1853 wma->thermal_mgmt_info.thermalLevels[5].maxTempThreshold); in wma_process_init_thermal_info()
1857 wma->thermal_mgmt_info.throttle_duty_cycle_tbl[i] = in wma_process_init_thermal_info()
1861 if (wma->thermal_mgmt_info.thermalMgmtEnabled) { in wma_process_init_thermal_info()
1862 if (!wma->fw_therm_throt_support) { in wma_process_init_thermal_info()
1869 wma, WLAN_WMA_THERMAL_LEVEL_0); in wma_process_init_thermal_info()
1873 qdf_status = wma_update_thermal_cfg_to_fw(wma); in wma_process_init_thermal_info()
1915 QDF_STATUS wma_process_set_thermal_level(tp_wma_handle wma, in wma_process_set_thermal_level() argument
1918 if (!wma) { in wma_process_set_thermal_level()
1926 if (!wma->thermal_mgmt_info.thermalMgmtEnabled) { in wma_process_set_thermal_level()
1936 if (thermal_level == wma->thermal_mgmt_info.thermalCurrLevel) { in wma_process_set_thermal_level()
1938 wma->thermal_mgmt_info.thermalCurrLevel); in wma_process_set_thermal_level()
1942 wma->thermal_mgmt_info.thermalCurrLevel = thermal_level; in wma_process_set_thermal_level()
1996 tp_wma_handle wma = (tp_wma_handle) handle; in wma_thermal_mgmt_get_level() local
2000 level = i = wma->thermal_mgmt_info.thermalCurrLevel; in wma_thermal_mgmt_get_level()
2001 while (temp < wma->thermal_mgmt_info.thermalLevels[i].minTempThreshold in wma_thermal_mgmt_get_level()
2007 i = wma->thermal_mgmt_info.thermalCurrLevel; in wma_thermal_mgmt_get_level()
2008 while (temp > wma->thermal_mgmt_info.thermalLevels[i].maxTempThreshold in wma_thermal_mgmt_get_level()
2015 wma->thermal_mgmt_info.thermalCurrLevel, level); in wma_thermal_mgmt_get_level()
2057 tp_wma_handle wma; in wma_thermal_mgmt_evt_handler() local
2070 wma = (tp_wma_handle) handle; in wma_thermal_mgmt_evt_handler()
2072 if (wma_validate_handle(wma)) in wma_thermal_mgmt_evt_handler()
2075 psoc = wma->psoc; in wma_thermal_mgmt_evt_handler()
2084 if (!wma->thermal_mgmt_info.thermalMgmtEnabled) { in wma_thermal_mgmt_evt_handler()
2098 if (thermal_level == wma->thermal_mgmt_info.thermalCurrLevel) { in wma_thermal_mgmt_evt_handler()
2100 wma->thermal_mgmt_info.thermalCurrLevel); in wma_thermal_mgmt_evt_handler()
2104 wma->thermal_mgmt_info.thermalCurrLevel = thermal_level; in wma_thermal_mgmt_evt_handler()
2108 if (!wma->fw_therm_throt_support) { in wma_thermal_mgmt_evt_handler()
2117 if (wma->fw_therm_throt_support) { in wma_thermal_mgmt_evt_handler()
2120 wma_update_thermal_mitigation_to_fw(wma, thermal_level)) in wma_thermal_mgmt_evt_handler()
2126 wma->thermal_mgmt_info.thermalLevels[thermal_level]. in wma_thermal_mgmt_evt_handler()
2129 wma->thermal_mgmt_info.thermalLevels[thermal_level]. in wma_thermal_mgmt_evt_handler()
2132 wma->thermal_mgmt_info.thermalMgmtEnabled; in wma_thermal_mgmt_evt_handler()
2133 thermal_params.thermal_action = wma->thermal_mgmt_info.thermal_action; in wma_thermal_mgmt_evt_handler()
2135 if (QDF_STATUS_SUCCESS != wma_set_thermal_mgmt(wma, thermal_params)) { in wma_thermal_mgmt_evt_handler()
2946 tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA); in ol_rx_err() local
2952 if (!wma) in ol_rx_err()
2968 bssid = wma_get_vdev_bssid(wma->interfaces[vdev_id].vdev); in ol_rx_err()
3007 tp_wma_handle wma; in wma_tx_abort() local
3013 wma = cds_get_context(QDF_MODULE_ID_WMA); in wma_tx_abort()
3014 if (!wma) in wma_tx_abort()
3017 iface = &wma->interfaces[vdev_id]; in wma_tx_abort()
3039 wmi_unified_peer_flush_tids_send(wma->wmi_handle, bssid, in wma_tx_abort()
3045 tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA); in wma_delete_invalid_peer_entries() local
3049 if (!wma) in wma_delete_invalid_peer_entries()
3052 iface = &wma->interfaces[vdev_id]; in wma_delete_invalid_peer_entries()
3078 tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA); in wma_rx_invalid_peer_ind() local
3083 if (!wma) in wma_rx_invalid_peer_ind()
3086 iface = &wma->interfaces[vdev_id]; in wma_rx_invalid_peer_ind()
3121 wma_send_msg(wma, in wma_rx_invalid_peer_ind()
3135 wma_drop_delba(tp_wma_handle wma, uint8_t vdev_id, in wma_drop_delba() argument
3142 vdev = wlan_objmgr_get_vdev_by_id_from_psoc(wma->psoc, vdev_id, in wma_drop_delba()
3171 tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA); in wma_dp_send_delba_ind() local
3174 if (!wma || !peer_macaddr) { in wma_dp_send_delba_ind()
3179 if (wma_drop_delba(wma, vdev_id, cdp_reason_code)) in wma_dp_send_delba_ind()
3191 wma_send_msg_high_priority(wma, SIR_HAL_REQ_SEND_DELBA_REQ_IND, in wma_dp_send_delba_ind()
3199 tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA); in wma_is_roam_in_progress() local
3205 if (!wma || !wma->interfaces[vdev_id].vdev) in wma_is_roam_in_progress()
3208 opmode = wlan_vdev_mlme_get_opmode(wma->interfaces[vdev_id].vdev); in wma_is_roam_in_progress()
3212 return wlan_cm_is_vdev_roam_started(wma->interfaces[vdev_id].vdev); in wma_is_roam_in_progress()