Lines Matching +full:rx +full:- +full:input +full:- +full:m

1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2018-2019 Realtek Corporation
21 int (*cb_read)(struct seq_file *m, void *v);
51 static int rtw_debugfs_single_show(struct seq_file *m, void *v)
53 struct rtw_debugfs_priv *debugfs_priv = m->private;
55 return debugfs_priv->cb_read(m, v);
62 struct rtw_debugfs_priv *debugfs_priv = filp->private_data;
64 return debugfs_priv->cb_write(filp, buffer, count, loff);
71 struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
72 struct rtw_debugfs_priv *debugfs_priv = seqpriv->private;
74 return debugfs_priv->cb_write(filp, buffer, count, loff);
79 return single_open(filp, rtw_debugfs_single_show, inode->i_private);
111 static int rtw_debugfs_get_read_reg(struct seq_file *m, void *v)
113 struct rtw_debugfs_priv *debugfs_priv = m->private;
114 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
117 len = debugfs_priv->read_reg.len;
118 addr = debugfs_priv->read_reg.addr;
122 seq_printf(m, "reg 0x%03x: 0x%02x\n", addr, val);
126 seq_printf(m, "reg 0x%03x: 0x%04x\n", addr, val);
130 seq_printf(m, "reg 0x%03x: 0x%08x\n", addr, val);
136 static int rtw_debugfs_get_rf_read(struct seq_file *m, void *v)
138 struct rtw_debugfs_priv *debugfs_priv = m->private;
139 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
143 path = debugfs_priv->rf_path;
144 addr = debugfs_priv->rf_addr;
145 mask = debugfs_priv->rf_mask;
147 mutex_lock(&rtwdev->mutex);
149 mutex_unlock(&rtwdev->mutex);
151 seq_printf(m, "rf_read path:%d addr:0x%08x mask:0x%08x val=0x%08x\n",
157 static int rtw_debugfs_get_fix_rate(struct seq_file *m, void *v)
159 struct rtw_debugfs_priv *debugfs_priv = m->private;
160 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
161 struct rtw_dm_info *dm_info = &rtwdev->dm_info;
162 u8 fix_rate = dm_info->fix_rate;
165 seq_printf(m, "Fix rate disabled, fix_rate = %u\n", fix_rate);
169 seq_printf(m, "Data frames fixed at desc rate %u\n", fix_rate);
182 return -EFAULT;
184 tmp_len = (count > size - 1 ? size - 1 : count);
187 return -EFAULT;
198 struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
199 struct rtw_debugfs_priv *debugfs_priv = seqpriv->private;
200 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
213 return -EINVAL;
217 return -EINVAL;
219 debugfs_priv->read_reg.addr = addr;
220 debugfs_priv->read_reg.len = len;
225 static int rtw_debugfs_get_dump_cam(struct seq_file *m, void *v)
227 struct rtw_debugfs_priv *debugfs_priv = m->private;
228 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
230 u32 hw_key_idx = debugfs_priv->cb_data << RTW_SEC_CAM_ENTRY_SHIFT;
234 seq_printf(m, "cam entry%d\n", debugfs_priv->cb_data);
235 seq_puts(m, "0x0 0x1 0x2 0x3 ");
236 seq_puts(m, "0x4 0x5\n");
237 mutex_lock(&rtwdev->mutex);
242 seq_printf(m, "%8.8x", val);
244 seq_puts(m, " ");
246 seq_puts(m, "\n");
247 mutex_unlock(&rtwdev->mutex);
251 static int rtw_debugfs_get_rsvd_page(struct seq_file *m, void *v)
253 struct rtw_debugfs_priv *debugfs_priv = m->private;
254 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
255 u8 page_size = rtwdev->chip->page_size;
256 u32 buf_size = debugfs_priv->rsvd_page.page_num * page_size;
257 u32 offset = debugfs_priv->rsvd_page.page_offset * page_size;
264 return -ENOMEM;
276 seq_printf(m, "PAGE %d\n", (i + offset) / page_size);
277 seq_printf(m, "%8ph\n", buf + i);
288 struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
289 struct rtw_debugfs_priv *debugfs_priv = seqpriv->private;
290 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
304 return -EINVAL;
307 debugfs_priv->rsvd_page.page_offset = offset;
308 debugfs_priv->rsvd_page.page_num = page_num;
317 struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
318 struct rtw_debugfs_priv *debugfs_priv = seqpriv->private;
319 u32 input;
322 ret = kstrtou32_from_user(buffer, count, 0, &input);
326 debugfs_priv->cb_data = input;
335 struct rtw_debugfs_priv *debugfs_priv = filp->private_data;
336 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
350 return -EINVAL;
381 struct rtw_debugfs_priv *debugfs_priv = filp->private_data;
382 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
397 return -EINVAL;
400 mutex_lock(&rtwdev->mutex);
402 mutex_unlock(&rtwdev->mutex);
411 struct rtw_debugfs_priv *debugfs_priv = filp->private_data;
412 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
426 return -EINVAL;
429 mutex_lock(&rtwdev->mutex);
431 mutex_unlock(&rtwdev->mutex);
443 struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
444 struct rtw_debugfs_priv *debugfs_priv = seqpriv->private;
445 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
459 return -EINVAL;
462 debugfs_priv->rf_path = path;
463 debugfs_priv->rf_addr = addr;
464 debugfs_priv->rf_mask = mask;
473 struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
474 struct rtw_debugfs_priv *debugfs_priv = seqpriv->private;
475 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
476 struct rtw_dm_info *dm_info = &rtwdev->dm_info;
484 dm_info->fix_rate = fix_rate;
489 static int rtw_debug_get_mac_page(struct seq_file *m, void *v)
491 struct rtw_debugfs_priv *debugfs_priv = m->private;
492 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
493 u32 page = debugfs_priv->cb_data;
497 rtw_read32(rtwdev, debugfs_priv->cb_data);
499 seq_printf(m, "\n%8.8x ", n + page);
501 seq_printf(m, "%8.8x ",
504 seq_puts(m, "\n");
508 static int rtw_debug_get_bb_page(struct seq_file *m, void *v)
510 struct rtw_debugfs_priv *debugfs_priv = m->private;
511 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
512 u32 page = debugfs_priv->cb_data;
516 rtw_read32(rtwdev, debugfs_priv->cb_data);
518 seq_printf(m, "\n%8.8x ", n + page);
520 seq_printf(m, "%8.8x ",
523 seq_puts(m, "\n");
527 static int rtw_debug_get_rf_dump(struct seq_file *m, void *v)
529 struct rtw_debugfs_priv *debugfs_priv = m->private;
530 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
534 mutex_lock(&rtwdev->mutex);
536 for (path = 0; path < rtwdev->hal.rf_path_num; path++) {
537 seq_printf(m, "RF path:%d\n", path);
539 seq_printf(m, "%8.8x ", addr);
543 seq_printf(m, "%8.8x ", data);
545 seq_puts(m, "\n");
547 seq_puts(m, "\n");
550 mutex_unlock(&rtwdev->mutex);
555 static void rtw_print_cck_rate_txt(struct seq_file *m, u8 rate)
558 cck_rate[] = {"1M", "2M", "5.5M", "11M"};
559 u8 idx = rate - DESC_RATE1M;
561 seq_printf(m, " CCK_%-5s", cck_rate[idx]);
564 static void rtw_print_ofdm_rate_txt(struct seq_file *m, u8 rate)
567 ofdm_rate[] = {"6M", "9M", "12M", "18M", "24M", "36M", "48M", "54M"};
568 u8 idx = rate - DESC_RATE6M;
570 seq_printf(m, " OFDM_%-4s", ofdm_rate[idx]);
573 static void rtw_print_ht_rate_txt(struct seq_file *m, u8 rate)
575 u8 mcs_n = rate - DESC_RATEMCS0;
577 seq_printf(m, " MCS%-6u", mcs_n);
580 static void rtw_print_vht_rate_txt(struct seq_file *m, u8 rate)
582 u8 idx = rate - DESC_RATEVHT1SS_MCS0;
589 seq_printf(m, " VHT%uSMCS%u", n_ss, mcs_n);
592 static void rtw_print_rate(struct seq_file *m, u8 rate)
596 rtw_print_cck_rate_txt(m, rate);
599 rtw_print_ofdm_rate_txt(m, rate);
602 rtw_print_ht_rate_txt(m, rate);
605 rtw_print_vht_rate_txt(m, rate);
608 seq_printf(m, " Unknown rate=0x%x\n", rate);
635 static int rtw_debugfs_get_tx_pwr_tbl(struct seq_file *m, void *v)
637 struct rtw_debugfs_priv *debugfs_priv = m->private;
638 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
639 struct rtw_hal *hal = &rtwdev->hal;
643 mutex_lock(&rtwdev->mutex);
644 bw = hal->current_band_width;
645 ch = hal->current_channel;
648 seq_printf(m, "channel: %u\n", ch);
649 seq_printf(m, "bandwidth: %u\n", bw);
650 seq_printf(m, "regulatory: %s\n", rtw_get_regd_string(regd));
651 seq_printf(m, "%-4s %-10s %-9s %-9s (%-4s %-4s %-4s) %-4s\n",
654 mutex_lock(&hal->tx_power_mutex);
657 if (hal->current_band_type == RTW_BAND_5G)
672 seq_printf(m, "%4c ", path + 'A');
673 rtw_print_rate(m, rate);
674 seq_printf(m, " %3u(0x%02x) %4u %4d (%4d %4d %4d) %4d\n",
675 hal->tx_pwr_tbl[path][rate],
676 hal->tx_pwr_tbl[path][rate],
687 mutex_unlock(&hal->tx_power_mutex);
688 mutex_unlock(&rtwdev->mutex);
693 void rtw_debugfs_get_simple_phy_info(struct seq_file *m)
695 struct rtw_debugfs_priv *debugfs_priv = m->private;
696 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
697 struct rtw_hal *hal = &rtwdev->hal;
698 struct rtw_dm_info *dm_info = &rtwdev->dm_info;
699 struct rtw_traffic_stats *stats = &rtwdev->stats;
701 seq_printf(m, "%-40s = %ddBm/ %d\n", "RSSI/ STA Channel",
702 dm_info->rssi[RF_PATH_A] - 100, hal->current_channel);
704 seq_printf(m, "TP {Tx, Rx} = {%u, %u}Mbps\n",
705 stats->tx_throughput, stats->rx_throughput);
707 seq_puts(m, "[Tx Rate] = ");
708 rtw_print_rate(m, dm_info->tx_rate);
709 seq_printf(m, "(0x%x)\n", dm_info->tx_rate);
711 seq_puts(m, "[Rx Rate] = ");
712 rtw_print_rate(m, dm_info->curr_rx_rate);
713 seq_printf(m, "(0x%x)\n", dm_info->curr_rx_rate);
716 static int rtw_debugfs_get_phy_info(struct seq_file *m, void *v)
718 struct rtw_debugfs_priv *debugfs_priv = m->private;
719 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
720 struct rtw_dm_info *dm_info = &rtwdev->dm_info;
721 struct rtw_traffic_stats *stats = &rtwdev->stats;
722 struct rtw_pkt_count *last_cnt = &dm_info->last_pkt_count;
723 struct rtw_efuse *efuse = &rtwdev->efuse;
724 struct ewma_evm *ewma_evm = dm_info->ewma_evm;
725 struct ewma_snr *ewma_snr = dm_info->ewma_snr;
728 seq_puts(m, "==========[Common Info]========\n");
729 seq_printf(m, "Is link = %c\n", rtw_is_assoc(rtwdev) ? 'Y' : 'N');
730 seq_printf(m, "Current CH(fc) = %u\n", rtwdev->hal.current_channel);
731 seq_printf(m, "Current BW = %u\n", rtwdev->hal.current_band_width);
732 seq_printf(m, "Current IGI = 0x%x\n", dm_info->igi_history[0]);
733 seq_printf(m, "TP {Tx, Rx} = {%u, %u}Mbps\n",
734 stats->tx_throughput, stats->rx_throughput);
735 seq_printf(m, "1SS for TX and RX = %c\n\n", rtwdev->hal.txrx_1ss ?
738 seq_puts(m, "==========[Tx Phy Info]========\n");
739 seq_puts(m, "[Tx Rate] = ");
740 rtw_print_rate(m, dm_info->tx_rate);
741 seq_printf(m, "(0x%x)\n\n", dm_info->tx_rate);
743 seq_puts(m, "==========[Rx Phy Info]========\n");
744 seq_printf(m, "[Rx Beacon Count] = %u\n", last_cnt->num_bcn_pkt);
745 seq_puts(m, "[Rx Rate] = ");
746 rtw_print_rate(m, dm_info->curr_rx_rate);
747 seq_printf(m, "(0x%x)\n", dm_info->curr_rx_rate);
749 seq_puts(m, "[Rx Rate Count]:\n");
750 seq_printf(m, " * CCK = {%u, %u, %u, %u}\n",
751 last_cnt->num_qry_pkt[DESC_RATE1M],
752 last_cnt->num_qry_pkt[DESC_RATE2M],
753 last_cnt->num_qry_pkt[DESC_RATE5_5M],
754 last_cnt->num_qry_pkt[DESC_RATE11M]);
756 seq_printf(m, " * OFDM = {%u, %u, %u, %u, %u, %u, %u, %u}\n",
757 last_cnt->num_qry_pkt[DESC_RATE6M],
758 last_cnt->num_qry_pkt[DESC_RATE9M],
759 last_cnt->num_qry_pkt[DESC_RATE12M],
760 last_cnt->num_qry_pkt[DESC_RATE18M],
761 last_cnt->num_qry_pkt[DESC_RATE24M],
762 last_cnt->num_qry_pkt[DESC_RATE36M],
763 last_cnt->num_qry_pkt[DESC_RATE48M],
764 last_cnt->num_qry_pkt[DESC_RATE54M]);
766 for (ss = 0; ss < efuse->hw_cap.nss; ss++) {
768 seq_printf(m, " * HT_MCS[%u:%u] = {%u, %u, %u, %u, %u, %u, %u, %u}\n",
770 last_cnt->num_qry_pkt[rate_id],
771 last_cnt->num_qry_pkt[rate_id + 1],
772 last_cnt->num_qry_pkt[rate_id + 2],
773 last_cnt->num_qry_pkt[rate_id + 3],
774 last_cnt->num_qry_pkt[rate_id + 4],
775 last_cnt->num_qry_pkt[rate_id + 5],
776 last_cnt->num_qry_pkt[rate_id + 6],
777 last_cnt->num_qry_pkt[rate_id + 7]);
780 for (ss = 0; ss < efuse->hw_cap.nss; ss++) {
782 seq_printf(m, " * VHT_MCS-%uss MCS[0:9] = {%u, %u, %u, %u, %u, %u, %u, %u, %u, %u}\n",
784 last_cnt->num_qry_pkt[rate_id],
785 last_cnt->num_qry_pkt[rate_id + 1],
786 last_cnt->num_qry_pkt[rate_id + 2],
787 last_cnt->num_qry_pkt[rate_id + 3],
788 last_cnt->num_qry_pkt[rate_id + 4],
789 last_cnt->num_qry_pkt[rate_id + 5],
790 last_cnt->num_qry_pkt[rate_id + 6],
791 last_cnt->num_qry_pkt[rate_id + 7],
792 last_cnt->num_qry_pkt[rate_id + 8],
793 last_cnt->num_qry_pkt[rate_id + 9]);
796 seq_printf(m, "[RSSI(dBm)] = {%d, %d}\n",
797 dm_info->rssi[RF_PATH_A] - 100,
798 dm_info->rssi[RF_PATH_B] - 100);
799 seq_printf(m, "[Rx EVM(dB)] = {-%d, -%d}\n",
800 dm_info->rx_evm_dbm[RF_PATH_A],
801 dm_info->rx_evm_dbm[RF_PATH_B]);
802 seq_printf(m, "[Rx SNR] = {%d, %d}\n",
803 dm_info->rx_snr[RF_PATH_A],
804 dm_info->rx_snr[RF_PATH_B]);
805 seq_printf(m, "[CFO_tail(KHz)] = {%d, %d}\n",
806 dm_info->cfo_tail[RF_PATH_A],
807 dm_info->cfo_tail[RF_PATH_B]);
809 if (dm_info->curr_rx_rate >= DESC_RATE11M) {
810 seq_puts(m, "[Rx Average Status]:\n");
811 seq_printf(m, " * OFDM, EVM: {-%d}, SNR: {%d}\n",
814 seq_printf(m, " * 1SS, EVM: {-%d}, SNR: {%d}\n",
817 seq_printf(m, " * 2SS, EVM: {-%d, -%d}, SNR: {%d, %d}\n",
824 seq_puts(m, "[Rx Counter]:\n");
825 seq_printf(m, " * CCA (CCK, OFDM, Total) = (%u, %u, %u)\n",
826 dm_info->cck_cca_cnt,
827 dm_info->ofdm_cca_cnt,
828 dm_info->total_cca_cnt);
829 seq_printf(m, " * False Alarm (CCK, OFDM, Total) = (%u, %u, %u)\n",
830 dm_info->cck_fa_cnt,
831 dm_info->ofdm_fa_cnt,
832 dm_info->total_fa_cnt);
833 seq_printf(m, " * CCK cnt (ok, err) = (%u, %u)\n",
834 dm_info->cck_ok_cnt, dm_info->cck_err_cnt);
835 seq_printf(m, " * OFDM cnt (ok, err) = (%u, %u)\n",
836 dm_info->ofdm_ok_cnt, dm_info->ofdm_err_cnt);
837 seq_printf(m, " * HT cnt (ok, err) = (%u, %u)\n",
838 dm_info->ht_ok_cnt, dm_info->ht_err_cnt);
839 seq_printf(m, " * VHT cnt (ok, err) = (%u, %u)\n",
840 dm_info->vht_ok_cnt, dm_info->vht_err_cnt);
845 static int rtw_debugfs_get_coex_info(struct seq_file *m, void *v)
847 struct rtw_debugfs_priv *debugfs_priv = m->private;
848 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
850 mutex_lock(&rtwdev->mutex);
851 rtw_coex_display_coex_info(rtwdev, m);
852 mutex_unlock(&rtwdev->mutex);
861 struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
862 struct rtw_debugfs_priv *debugfs_priv = seqpriv->private;
863 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
864 struct rtw_coex *coex = &rtwdev->coex;
872 mutex_lock(&rtwdev->mutex);
873 coex->manual_control = !enable;
874 mutex_unlock(&rtwdev->mutex);
879 static int rtw_debugfs_get_coex_enable(struct seq_file *m, void *v)
881 struct rtw_debugfs_priv *debugfs_priv = m->private;
882 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
883 struct rtw_coex *coex = &rtwdev->coex;
885 seq_printf(m, "coex mechanism %s\n",
886 coex->manual_control ? "disabled" : "enabled");
895 struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
896 struct rtw_debugfs_priv *debugfs_priv = seqpriv->private;
897 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
898 bool input;
901 err = kstrtobool_from_user(buffer, count, &input);
905 rtw_edcca_enabled = input;
911 static int rtw_debugfs_get_edcca_enable(struct seq_file *m, void *v)
913 struct rtw_debugfs_priv *debugfs_priv = m->private;
914 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
915 struct rtw_dm_info *dm_info = &rtwdev->dm_info;
917 seq_printf(m, "EDCCA %s: EDCCA mode %d\n",
919 dm_info->edcca_mode);
927 struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
928 struct rtw_debugfs_priv *debugfs_priv = seqpriv->private;
929 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
930 bool input;
933 ret = kstrtobool_from_user(buffer, count, &input);
937 if (!input)
938 return -EINVAL;
940 if (test_bit(RTW_FLAG_RESTARTING, rtwdev->flags))
941 return -EINPROGRESS;
943 mutex_lock(&rtwdev->mutex);
945 set_bit(RTW_FLAG_RESTART_TRIGGERING, rtwdev->flags);
947 mutex_unlock(&rtwdev->mutex);
952 static int rtw_debugfs_get_fw_crash(struct seq_file *m, void *v)
954 struct rtw_debugfs_priv *debugfs_priv = m->private;
955 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
957 seq_printf(m, "%d\n",
958 test_bit(RTW_FLAG_RESTART_TRIGGERING, rtwdev->flags) ||
959 test_bit(RTW_FLAG_RESTARTING, rtwdev->flags));
967 struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
968 struct rtw_debugfs_priv *debugfs_priv = seqpriv->private;
969 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
970 bool input;
973 err = kstrtobool_from_user(buffer, count, &input);
977 if (input)
978 set_bit(RTW_FLAG_FORCE_LOWEST_RATE, rtwdev->flags);
980 clear_bit(RTW_FLAG_FORCE_LOWEST_RATE, rtwdev->flags);
985 static int rtw_debugfs_get_force_lowest_basic_rate(struct seq_file *m, void *v)
987 struct rtw_debugfs_priv *debugfs_priv = m->private;
988 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
990 seq_printf(m, "force lowest basic rate: %d\n",
991 test_bit(RTW_FLAG_FORCE_LOWEST_RATE, rtwdev->flags));
1000 struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
1001 struct rtw_debugfs_priv *debugfs_priv = seqpriv->private;
1002 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
1003 struct rtw_dm_info *dm_info = &rtwdev->dm_info;
1016 return -EINVAL;
1020 dm_info->dm_flags &= ~BIT(bit);
1022 dm_info->dm_flags |= BIT(bit);
1024 debugfs_priv->dm_cap.bit = bit;
1029 static void dump_gapk_status(struct rtw_dev *rtwdev, struct seq_file *m)
1031 struct rtw_dm_info *dm_info = &rtwdev->dm_info;
1032 struct rtw_gapk_info *txgapk = &rtwdev->dm_info.gapk;
1036 seq_printf(m, "\n(%2d) %c%s\n\n", RTW_DM_CAP_TXGAPK,
1037 dm_info->dm_flags & BIT(RTW_DM_CAP_TXGAPK) ? '-' : '+',
1040 mutex_lock(&rtwdev->mutex);
1042 for (path = 0; path < rtwdev->hal.rf_path_num; path++) {
1044 seq_printf(m, "path %d:\n0x%x = 0x%x\n", path, RF_GAINTX, val);
1047 seq_printf(m, "[TXGAPK] offset %d %d\n",
1048 txgapk->rf3f_fs[path][i], i);
1049 seq_puts(m, "\n");
1051 mutex_unlock(&rtwdev->mutex);
1054 static int rtw_debugfs_get_dm_cap(struct seq_file *m, void *v)
1056 struct rtw_debugfs_priv *debugfs_priv = m->private;
1057 struct rtw_dev *rtwdev = debugfs_priv->rtwdev;
1058 struct rtw_dm_info *dm_info = &rtwdev->dm_info;
1061 switch (debugfs_priv->dm_cap.bit) {
1063 dump_gapk_status(rtwdev, m);
1067 seq_printf(m, "(%2d) %c%s\n", i,
1068 dm_info->dm_flags & BIT(i) ? '-' : '+',
1073 debugfs_priv->dm_cap.bit = RTW_DM_CAP_NA;
1227 rtwdev->hw->wiphy->debugfsdir);
1271 if (rtwdev->chip->id == RTW_CHIP_TYPE_8822C) {
1302 dev_printk(KERN_DEBUG, rtwdev->dev, "%pV", &vaf);