Searched refs:tpc_stats (Results 1 - 4 of 4) sorted by relevance

/linux-4.4.14/drivers/net/wireless/ath/ath10k/
H A Ddebug.h77 struct ath10k_tpc_stats *tpc_stats);
126 struct ath10k_tpc_stats *tpc_stats) ath10k_debug_tpc_stats_process()
128 kfree(tpc_stats); ath10k_debug_tpc_stats_process()
125 ath10k_debug_tpc_stats_process(struct ath10k *ar, struct ath10k_tpc_stats *tpc_stats) ath10k_debug_tpc_stats_process() argument
H A Ddebug.c1627 struct ath10k_tpc_stats *tpc_stats) ath10k_debug_tpc_stats_process()
1631 kfree(ar->debug.tpc_stats); ath10k_debug_tpc_stats_process()
1632 ar->debug.tpc_stats = tpc_stats; ath10k_debug_tpc_stats_process()
1638 static void ath10k_tpc_stats_print(struct ath10k_tpc_stats *tpc_stats, ath10k_tpc_stats_print() argument
1665 for (i = 0; i < tpc_stats->rate_max; i++) { ath10k_tpc_stats_print()
1668 pream_str[tpc_stats->tpc_table[j].pream_idx[i]], ath10k_tpc_stats_print()
1669 tpc_stats->tpc_table[j].rate_code[i], ath10k_tpc_stats_print()
1670 tpc_stats->tpc_table[j].tpc_value[i]); ath10k_tpc_stats_print()
1678 struct ath10k_tpc_stats *tpc_stats, ath10k_tpc_stats_fill()
1688 if (!tpc_stats) { ath10k_tpc_stats_fill()
1698 tpc_stats->chan_freq, ath10k_tpc_stats_fill()
1699 tpc_stats->phy_mode); ath10k_tpc_stats_fill()
1704 tpc_stats->ctl, ath10k_tpc_stats_fill()
1705 tpc_stats->reg_domain); ath10k_tpc_stats_fill()
1708 tpc_stats->twice_antenna_gain, ath10k_tpc_stats_fill()
1709 tpc_stats->twice_antenna_reduction); ath10k_tpc_stats_fill()
1712 tpc_stats->power_limit, ath10k_tpc_stats_fill()
1713 tpc_stats->twice_max_rd_power / 2); ath10k_tpc_stats_fill()
1716 tpc_stats->num_tx_chain, ath10k_tpc_stats_fill()
1717 tpc_stats->rate_max); ath10k_tpc_stats_fill()
1719 for (j = 0; j < tpc_stats->num_tx_chain ; j++) { ath10k_tpc_stats_fill()
1722 if (tpc_stats->flag[j] == ATH10K_TPC_TABLE_TYPE_FLAG) { ath10k_tpc_stats_fill()
1728 ath10k_tpc_stats_print(tpc_stats, j, buf, &len); ath10k_tpc_stats_fill()
1731 if (tpc_stats->flag[j] == ATH10K_TPC_TABLE_TYPE_FLAG) { ath10k_tpc_stats_fill()
1737 ath10k_tpc_stats_print(tpc_stats, j, buf, &len); ath10k_tpc_stats_fill()
1740 if (tpc_stats->flag[j] == ATH10K_TPC_TABLE_TYPE_FLAG) { ath10k_tpc_stats_fill()
1746 ath10k_tpc_stats_print(tpc_stats, j, buf, &len); ath10k_tpc_stats_fill()
1790 ath10k_tpc_stats_fill(ar, ar->debug.tpc_stats, buf); ath10k_tpc_stats_open()
2102 kfree(ar->debug.tpc_stats); ath10k_debug_destroy()
2188 debugfs_create_file("tpc_stats", S_IRUSR, ath10k_debug_register()
1626 ath10k_debug_tpc_stats_process(struct ath10k *ar, struct ath10k_tpc_stats *tpc_stats) ath10k_debug_tpc_stats_process() argument
1677 ath10k_tpc_stats_fill(struct ath10k *ar, struct ath10k_tpc_stats *tpc_stats, char *buf) ath10k_tpc_stats_fill() argument
H A Dwmi.c4009 struct ath10k_tpc_stats *tpc_stats, ath10k_tpc_config_disp_tables()
4023 tpc_stats->flag[type] = ATH10K_TPC_TABLE_TYPE_FLAG; ath10k_tpc_config_disp_tables()
4030 tpc_stats->flag[type] = ATH10K_TPC_TABLE_TYPE_FLAG; ath10k_tpc_config_disp_tables()
4037 tpc_stats->flag[type] = ATH10K_TPC_TABLE_TYPE_FLAG; ath10k_tpc_config_disp_tables()
4064 tpc_stats->tpc_table[type].pream_idx[i] = pream_idx; ath10k_tpc_config_disp_tables()
4065 tpc_stats->tpc_table[type].rate_code[i] = rate_code[i]; ath10k_tpc_config_disp_tables()
4066 memcpy(tpc_stats->tpc_table[type].tpc_value[i], ath10k_tpc_config_disp_tables()
4077 struct ath10k_tpc_stats *tpc_stats; ath10k_wmi_event_pdev_tpc_config() local
4081 tpc_stats = kzalloc(sizeof(*tpc_stats), GFP_ATOMIC); ath10k_wmi_event_pdev_tpc_config()
4082 if (!tpc_stats) ath10k_wmi_event_pdev_tpc_config()
4177 tpc_stats->chan_freq = __le32_to_cpu(ev->chan_freq); ath10k_wmi_event_pdev_tpc_config()
4178 tpc_stats->phy_mode = __le32_to_cpu(ev->phy_mode); ath10k_wmi_event_pdev_tpc_config()
4179 tpc_stats->ctl = __le32_to_cpu(ev->ctl); ath10k_wmi_event_pdev_tpc_config()
4180 tpc_stats->reg_domain = __le32_to_cpu(ev->reg_domain); ath10k_wmi_event_pdev_tpc_config()
4181 tpc_stats->twice_antenna_gain = a_sle32_to_cpu(ev->twice_antenna_gain); ath10k_wmi_event_pdev_tpc_config()
4182 tpc_stats->twice_antenna_reduction = ath10k_wmi_event_pdev_tpc_config()
4184 tpc_stats->power_limit = __le32_to_cpu(ev->power_limit); ath10k_wmi_event_pdev_tpc_config()
4185 tpc_stats->twice_max_rd_power = __le32_to_cpu(ev->twice_max_rd_power); ath10k_wmi_event_pdev_tpc_config()
4186 tpc_stats->num_tx_chain = __le32_to_cpu(ev->num_tx_chain); ath10k_wmi_event_pdev_tpc_config()
4187 tpc_stats->rate_max = __le32_to_cpu(ev->rate_max); ath10k_wmi_event_pdev_tpc_config()
4189 ath10k_tpc_config_disp_tables(ar, ev, tpc_stats, ath10k_wmi_event_pdev_tpc_config()
4192 ath10k_tpc_config_disp_tables(ar, ev, tpc_stats, ath10k_wmi_event_pdev_tpc_config()
4195 ath10k_tpc_config_disp_tables(ar, ev, tpc_stats, ath10k_wmi_event_pdev_tpc_config()
4199 ath10k_debug_tpc_stats_process(ar, tpc_stats); ath10k_wmi_event_pdev_tpc_config()
4007 ath10k_tpc_config_disp_tables(struct ath10k *ar, struct wmi_pdev_tpc_config_event *ev, struct ath10k_tpc_stats *tpc_stats, u8 *rate_code, u16 *pream_table, u8 type) ath10k_tpc_config_disp_tables() argument
H A Dcore.h418 struct ath10k_tpc_stats *tpc_stats; member in struct:ath10k_debug

Completed in 263 milliseconds