Lines Matching refs:tpc_stats
4705 struct ath10k_tpc_stats *tpc_stats, in ath10k_tpc_config_disp_tables() argument
4719 tpc_stats->flag[type] = ATH10K_TPC_TABLE_TYPE_FLAG; in ath10k_tpc_config_disp_tables()
4726 tpc_stats->flag[type] = ATH10K_TPC_TABLE_TYPE_FLAG; in ath10k_tpc_config_disp_tables()
4733 tpc_stats->flag[type] = ATH10K_TPC_TABLE_TYPE_FLAG; in ath10k_tpc_config_disp_tables()
4744 for (i = 0; i < tpc_stats->rate_max; i++) { in ath10k_tpc_config_disp_tables()
4750 for (j = 0; j < tpc_stats->num_tx_chain; j++) { in ath10k_tpc_config_disp_tables()
4757 tpc_stats->tpc_table[type].pream_idx[i] = pream_idx; in ath10k_tpc_config_disp_tables()
4758 tpc_stats->tpc_table[type].rate_code[i] = rate_code[i]; in ath10k_tpc_config_disp_tables()
4759 memcpy(tpc_stats->tpc_table[type].tpc_value[i], in ath10k_tpc_config_disp_tables()
4867 struct ath10k_tpc_stats *tpc_stats; in ath10k_wmi_event_pdev_tpc_config() local
4886 tpc_stats = kzalloc(sizeof(*tpc_stats), GFP_ATOMIC); in ath10k_wmi_event_pdev_tpc_config()
4887 if (!tpc_stats) in ath10k_wmi_event_pdev_tpc_config()
4893 tpc_stats->chan_freq = __le32_to_cpu(ev->chan_freq); in ath10k_wmi_event_pdev_tpc_config()
4894 tpc_stats->phy_mode = __le32_to_cpu(ev->phy_mode); in ath10k_wmi_event_pdev_tpc_config()
4895 tpc_stats->ctl = __le32_to_cpu(ev->ctl); in ath10k_wmi_event_pdev_tpc_config()
4896 tpc_stats->reg_domain = __le32_to_cpu(ev->reg_domain); in ath10k_wmi_event_pdev_tpc_config()
4897 tpc_stats->twice_antenna_gain = a_sle32_to_cpu(ev->twice_antenna_gain); in ath10k_wmi_event_pdev_tpc_config()
4898 tpc_stats->twice_antenna_reduction = in ath10k_wmi_event_pdev_tpc_config()
4900 tpc_stats->power_limit = __le32_to_cpu(ev->power_limit); in ath10k_wmi_event_pdev_tpc_config()
4901 tpc_stats->twice_max_rd_power = __le32_to_cpu(ev->twice_max_rd_power); in ath10k_wmi_event_pdev_tpc_config()
4902 tpc_stats->num_tx_chain = num_tx_chain; in ath10k_wmi_event_pdev_tpc_config()
4903 tpc_stats->rate_max = rate_max; in ath10k_wmi_event_pdev_tpc_config()
4905 ath10k_tpc_config_disp_tables(ar, ev, tpc_stats, in ath10k_wmi_event_pdev_tpc_config()
4908 ath10k_tpc_config_disp_tables(ar, ev, tpc_stats, in ath10k_wmi_event_pdev_tpc_config()
4911 ath10k_tpc_config_disp_tables(ar, ev, tpc_stats, in ath10k_wmi_event_pdev_tpc_config()
4915 ath10k_debug_tpc_stats_process(ar, tpc_stats); in ath10k_wmi_event_pdev_tpc_config()
5059 struct ath10k_tpc_stats_final *tpc_stats, in ath10k_wmi_tpc_stats_final_disp_tables() argument
5073 tpc_stats->flag[type] = ATH10K_TPC_TABLE_TYPE_FLAG; in ath10k_wmi_tpc_stats_final_disp_tables()
5080 tpc_stats->flag[type] = ATH10K_TPC_TABLE_TYPE_FLAG; in ath10k_wmi_tpc_stats_final_disp_tables()
5087 tpc_stats->flag[type] = ATH10K_TPC_TABLE_TYPE_FLAG; in ath10k_wmi_tpc_stats_final_disp_tables()
5098 for (i = 0; i < tpc_stats->rate_max; i++) { in ath10k_wmi_tpc_stats_final_disp_tables()
5104 for (j = 0; j < tpc_stats->num_tx_chain; j++) { in ath10k_wmi_tpc_stats_final_disp_tables()
5111 tpc_stats->tpc_table_final[type].pream_idx[i] = pream_idx; in ath10k_wmi_tpc_stats_final_disp_tables()
5112 tpc_stats->tpc_table_final[type].rate_code[i] = rate_code[i]; in ath10k_wmi_tpc_stats_final_disp_tables()
5113 memcpy(tpc_stats->tpc_table_final[type].tpc_value[i], in ath10k_wmi_tpc_stats_final_disp_tables()
5124 struct ath10k_tpc_stats_final *tpc_stats; in ath10k_wmi_event_tpc_final_table() local
5142 tpc_stats = kzalloc(sizeof(*tpc_stats), GFP_ATOMIC); in ath10k_wmi_event_tpc_final_table()
5143 if (!tpc_stats) in ath10k_wmi_event_tpc_final_table()
5149 tpc_stats->chan_freq = __le32_to_cpu(ev->chan_freq); in ath10k_wmi_event_tpc_final_table()
5150 tpc_stats->phy_mode = __le32_to_cpu(ev->phy_mode); in ath10k_wmi_event_tpc_final_table()
5151 tpc_stats->ctl = __le32_to_cpu(ev->ctl); in ath10k_wmi_event_tpc_final_table()
5152 tpc_stats->reg_domain = __le32_to_cpu(ev->reg_domain); in ath10k_wmi_event_tpc_final_table()
5153 tpc_stats->twice_antenna_gain = a_sle32_to_cpu(ev->twice_antenna_gain); in ath10k_wmi_event_tpc_final_table()
5154 tpc_stats->twice_antenna_reduction = in ath10k_wmi_event_tpc_final_table()
5156 tpc_stats->power_limit = __le32_to_cpu(ev->power_limit); in ath10k_wmi_event_tpc_final_table()
5157 tpc_stats->twice_max_rd_power = __le32_to_cpu(ev->twice_max_rd_power); in ath10k_wmi_event_tpc_final_table()
5158 tpc_stats->num_tx_chain = num_tx_chain; in ath10k_wmi_event_tpc_final_table()
5159 tpc_stats->rate_max = rate_max; in ath10k_wmi_event_tpc_final_table()
5161 ath10k_wmi_tpc_stats_final_disp_tables(ar, ev, tpc_stats, in ath10k_wmi_event_tpc_final_table()
5164 ath10k_wmi_tpc_stats_final_disp_tables(ar, ev, tpc_stats, in ath10k_wmi_event_tpc_final_table()
5167 ath10k_wmi_tpc_stats_final_disp_tables(ar, ev, tpc_stats, in ath10k_wmi_event_tpc_final_table()
5171 ath10k_debug_tpc_stats_final_process(ar, tpc_stats); in ath10k_wmi_event_tpc_final_table()