Lines Matching refs:ab
92 void ath11k_debugfs_fw_stats_process(struct ath11k_base *ab, struct sk_buff *skb) in ath11k_debugfs_fw_stats_process() argument
106 ret = ath11k_wmi_pull_fw_stats(ab, skb, &stats); in ath11k_debugfs_fw_stats_process()
108 ath11k_warn(ab, "failed to pull fw stats: %d\n", ret); in ath11k_debugfs_fw_stats_process()
113 ar = ath11k_mac_get_ar_by_pdev_id(ab, stats.pdev_id); in ath11k_debugfs_fw_stats_process()
116 ath11k_warn(ab, "failed to get ar for pdev_id %d: %d\n", in ath11k_debugfs_fw_stats_process()
131 ath11k_warn(ab, "empty vdev stats"); in ath11k_debugfs_fw_stats_process()
137 for (i = 0; i < ab->num_radios; i++) { in ath11k_debugfs_fw_stats_process()
138 pdev = rcu_dereference(ab->pdevs_active[i]); in ath11k_debugfs_fw_stats_process()
157 ath11k_warn(ab, "empty bcn stats"); in ath11k_debugfs_fw_stats_process()
187 struct ath11k_base *ab = ar->ab; in ath11k_debugfs_fw_stats_request() local
207 ath11k_warn(ab, "could not request fw stats (%d)\n", in ath11k_debugfs_fw_stats_request()
235 struct ath11k_base *ab = ar->ab; in ath11k_open_pdev_stats() local
259 ath11k_warn(ab, "failed to request fw pdev stats: %d\n", ret); in ath11k_open_pdev_stats()
331 ath11k_warn(ar->ab, "failed to request fw vdev stats: %d\n", ret); in ath11k_open_vdev_stats()
408 ath11k_warn(ar->ab, "failed to request fw bcn stats: %d\n", ret); in ath11k_open_bcn_stats()
484 struct ath11k_base *ab = file->private_data; in ath11k_write_simulate_fw_crash() local
486 struct ath11k *ar = ab->pdevs[0].ar; in ath11k_write_simulate_fw_crash()
491 for (i = 0; i < ab->num_radios; i++) { in ath11k_write_simulate_fw_crash()
492 pdev = &ab->pdevs[i]; in ath11k_write_simulate_fw_crash()
517 ath11k_info(ab, "simulating firmware assert crash\n"); in ath11k_write_simulate_fw_crash()
527 ath11k_warn(ab, "failed to simulate firmware crash: %d\n", ret); in ath11k_write_simulate_fw_crash()
604 struct ath11k_base *ab = ar->ab; in ath11k_write_extd_rx_stats() local
650 for (i = 0; i < ab->hw_params.num_rxmda_per_pdev; i++) { in ath11k_write_extd_rx_stats()
652 ret = ath11k_dp_tx_htt_rx_filter_setup(ar->ab, ring_id, ar->dp.mac_id, in ath11k_write_extd_rx_stats()
657 ath11k_warn(ar->ab, "failed to set rx filter for monitor status ring\n"); in ath11k_write_extd_rx_stats()
691 static int ath11k_fill_bp_stats(struct ath11k_base *ab, in ath11k_fill_bp_stats() argument
695 lockdep_assert_held(&ab->base_lock); in ath11k_fill_bp_stats()
708 static ssize_t ath11k_debugfs_dump_soc_ring_bp_stats(struct ath11k_base *ab, in ath11k_debugfs_dump_soc_ring_bp_stats() argument
719 spin_lock_bh(&ab->base_lock); in ath11k_debugfs_dump_soc_ring_bp_stats()
721 bp_stats = &ab->soc_stats.bp_stats.umac_ring_bp_stats[i]; in ath11k_debugfs_dump_soc_ring_bp_stats()
728 len = ath11k_fill_bp_stats(ab, bp_stats, buf, len, size); in ath11k_debugfs_dump_soc_ring_bp_stats()
735 &ab->soc_stats.bp_stats.lmac_ring_bp_stats[i][pdev_idx]; in ath11k_debugfs_dump_soc_ring_bp_stats()
744 len = ath11k_fill_bp_stats(ab, bp_stats, buf, len, size); in ath11k_debugfs_dump_soc_ring_bp_stats()
748 spin_unlock_bh(&ab->base_lock); in ath11k_debugfs_dump_soc_ring_bp_stats()
761 struct ath11k_base *ab = file->private_data; in ath11k_debugfs_dump_soc_dp_stats() local
762 struct ath11k_soc_dp_stats *soc_stats = &ab->soc_stats; in ath11k_debugfs_dump_soc_dp_stats()
817 len += ath11k_debugfs_dump_soc_ring_bp_stats(ab, buf + len, size - len); in ath11k_debugfs_dump_soc_dp_stats()
834 int ath11k_debugfs_pdev_create(struct ath11k_base *ab) in ath11k_debugfs_pdev_create() argument
836 if (test_bit(ATH11K_FLAG_REGISTERED, &ab->dev_flags)) in ath11k_debugfs_pdev_create()
839 debugfs_create_file("simulate_fw_crash", 0600, ab->debugfs_soc, ab, in ath11k_debugfs_pdev_create()
842 debugfs_create_file("soc_dp_stats", 0600, ab->debugfs_soc, ab, in ath11k_debugfs_pdev_create()
848 void ath11k_debugfs_pdev_destroy(struct ath11k_base *ab) in ath11k_debugfs_pdev_destroy() argument
850 debugfs_remove_recursive(ab->debugfs_soc); in ath11k_debugfs_pdev_destroy()
851 ab->debugfs_soc = NULL; in ath11k_debugfs_pdev_destroy()
854 int ath11k_debugfs_soc_create(struct ath11k_base *ab) in ath11k_debugfs_soc_create() argument
873 scnprintf(name, sizeof(name), "%s-%s", ath11k_bus_str(ab->hif.bus), in ath11k_debugfs_soc_create()
874 dev_name(ab->dev)); in ath11k_debugfs_soc_create()
876 ab->debugfs_soc = debugfs_create_dir(name, root); in ath11k_debugfs_soc_create()
877 if (IS_ERR_OR_NULL(ab->debugfs_soc)) { in ath11k_debugfs_soc_create()
878 ret = PTR_ERR(ab->debugfs_soc); in ath11k_debugfs_soc_create()
891 void ath11k_debugfs_soc_destroy(struct ath11k_base *ab) in ath11k_debugfs_soc_destroy() argument
893 debugfs_remove_recursive(ab->debugfs_soc); in ath11k_debugfs_soc_destroy()
894 ab->debugfs_soc = NULL; in ath11k_debugfs_soc_destroy()
932 struct ath11k_base *ab = ar->ab; in ath11k_write_pktlog_filter() local
961 ath11k_warn(ar->ab, in ath11k_write_pktlog_filter()
969 ath11k_warn(ar->ab, "failed to disable pktlog: %d\n", ret); in ath11k_write_pktlog_filter()
993 ath11k_err(ar->ab, "failed to enable pktlog lite: %d\n", ret); in ath11k_write_pktlog_filter()
1002 ath11k_err(ar->ab, "failed to send htt ppdu stats req: %d\n", in ath11k_write_pktlog_filter()
1017 for (i = 0; i < ab->hw_params.num_rxmda_per_pdev; i++) { in ath11k_write_pktlog_filter()
1019 ret = ath11k_dp_tx_htt_rx_filter_setup(ab, ring_id, in ath11k_write_pktlog_filter()
1025 ath11k_warn(ab, "failed to set rx filter for monitor status ring\n"); in ath11k_write_pktlog_filter()
1030 ath11k_dbg(ab, ATH11K_DBG_WMI, "pktlog filter %d mode %s\n", in ath11k_write_pktlog_filter()
1087 struct ath11k_base *ab = ar->ab; in ath11k_debugfs_register() local
1093 ar->debug.debugfs_pdev = debugfs_create_dir(pdev_name, ab->debugfs_soc); in ath11k_debugfs_register()