Lines Matching refs:pcysta

999 	union rtw89_btc_fbtc_cysta_info *pcysta = NULL;  in _chk_btc_report()  local
1070 pcysta = &pfwinfo->rpt_fbtc_cysta.finfo; in _chk_btc_report()
1073 pcysta->v2 = pfwinfo->rpt_fbtc_cysta.finfo.v2; in _chk_btc_report()
1077 pcysta->v3 = pfwinfo->rpt_fbtc_cysta.finfo.v3; in _chk_btc_report()
1081 pcysta->v4 = pfwinfo->rpt_fbtc_cysta.finfo.v4; in _chk_btc_report()
1085 pcysta->v5 = pfwinfo->rpt_fbtc_cysta.finfo.v5; in _chk_btc_report()
1347 if (le16_to_cpu(pcysta->v2.cycles) < BTC_CYSTA_CHK_PERIOD) in _chk_btc_report()
1350 if (le32_to_cpu(pcysta->v2.slot_cnt[CXST_LK]) != 0 && in _chk_btc_report()
1351 le32_to_cpu(pcysta->v2.leakrx_cnt) != 0 && dm->tdma_now.rxflctrl) { in _chk_btc_report()
1352 if (le32_to_cpu(pcysta->v2.slot_cnt[CXST_LK]) < in _chk_btc_report()
1353 BTC_LEAK_AP_TH * le32_to_cpu(pcysta->v2.leakrx_cnt)) in _chk_btc_report()
1364 if (le16_to_cpu(pcysta->v2.tavg_cycle[CXT_WL]) > wl_slot_set) { in _chk_btc_report()
1365 diff_t = le16_to_cpu(pcysta->v2.tavg_cycle[CXT_WL]) - wl_slot_set; in _chk_btc_report()
1371 le32_to_cpu(pcysta->v2.slot_cnt[CXST_W1])); in _chk_btc_report()
1373 le32_to_cpu(pcysta->v2.slot_cnt[CXST_B1])); in _chk_btc_report()
1375 le16_to_cpu(pcysta->v2.cycles)); in _chk_btc_report()
1377 if (le16_to_cpu(pcysta->v3.cycles) < BTC_CYSTA_CHK_PERIOD) in _chk_btc_report()
1380 cnt_leak_slot = le32_to_cpu(pcysta->v3.slot_cnt[CXST_LK]); in _chk_btc_report()
1381 cnt_rx_imr = le32_to_cpu(pcysta->v3.leak_slot.cnt_rximr); in _chk_btc_report()
1393 wl_slot_real = le16_to_cpu(pcysta->v3.cycle_time.tavg[CXT_WL]); in _chk_btc_report()
1404 bt_slot_real = le16_to_cpu(pcysta->v3.cycle_time.tavg[CXT_BT]); in _chk_btc_report()
1412 le32_to_cpu(pcysta->v3.slot_cnt[CXST_W1])); in _chk_btc_report()
1414 le32_to_cpu(pcysta->v3.slot_cnt[CXST_B1])); in _chk_btc_report()
1416 le16_to_cpu(pcysta->v3.cycles)); in _chk_btc_report()
1418 if (le16_to_cpu(pcysta->v4.cycles) < BTC_CYSTA_CHK_PERIOD) in _chk_btc_report()
1421 cnt_leak_slot = le16_to_cpu(pcysta->v4.slot_cnt[CXST_LK]); in _chk_btc_report()
1422 cnt_rx_imr = le32_to_cpu(pcysta->v4.leak_slot.cnt_rximr); in _chk_btc_report()
1434 wl_slot_real = le16_to_cpu(pcysta->v4.cycle_time.tavg[CXT_WL]); in _chk_btc_report()
1445 bt_slot_real = le16_to_cpu(pcysta->v4.cycle_time.tavg[CXT_BT]); in _chk_btc_report()
1454 le16_to_cpu(pcysta->v4.slot_cnt[CXST_W1])); in _chk_btc_report()
1456 le16_to_cpu(pcysta->v4.slot_cnt[CXST_B1])); in _chk_btc_report()
1458 le16_to_cpu(pcysta->v4.cycles)); in _chk_btc_report()
1462 cnt_leak_slot = le16_to_cpu(pcysta->v5.slot_cnt[CXST_LK]); in _chk_btc_report()
1463 cnt_rx_imr = le32_to_cpu(pcysta->v5.leak_slot.cnt_rximr); in _chk_btc_report()
1468 if (le16_to_cpu(pcysta->v5.cycles) >= BTC_CYSTA_CHK_PERIOD && in _chk_btc_report()
1476 wl_slot_real = le16_to_cpu(pcysta->v5.cycle_time.tavg[CXT_WL]); in _chk_btc_report()
1487 bt_slot_real = le16_to_cpu(pcysta->v5.cycle_time.tavg[CXT_BT]); in _chk_btc_report()
1500 le16_to_cpu(pcysta->v5.slot_cnt[CXST_E2G])); in _chk_btc_report()
1502 le16_to_cpu(pcysta->v5.slot_cnt[CXST_W1])); in _chk_btc_report()
1504 le16_to_cpu(pcysta->v5.slot_cnt[CXST_B1])); in _chk_btc_report()
1506 le16_to_cpu(pcysta->v5.cycles)); in _chk_btc_report()
6826 union rtw89_btc_fbtc_cysta_info *pcysta; in _show_error() local
6829 pcysta = &pfwinfo->rpt_fbtc_cysta.finfo; in _show_error()
6831 pcysta->v2 = pfwinfo->rpt_fbtc_cysta.finfo.v2; in _show_error()
6832 except_cnt = le32_to_cpu(pcysta->v2.except_cnt); in _show_error()
6833 exception_map = le32_to_cpu(pcysta->v2.exception); in _show_error()
6835 pcysta->v3 = pfwinfo->rpt_fbtc_cysta.finfo.v3; in _show_error()
6836 except_cnt = le32_to_cpu(pcysta->v3.except_cnt); in _show_error()
6837 exception_map = le32_to_cpu(pcysta->v3.except_map); in _show_error()
6839 pcysta->v4 = pfwinfo->rpt_fbtc_cysta.finfo.v4; in _show_error()
6840 except_cnt = pcysta->v4.except_cnt; in _show_error()
6841 exception_map = le32_to_cpu(pcysta->v4.except_map); in _show_error()
6843 pcysta->v5 = pfwinfo->rpt_fbtc_cysta.finfo.v5; in _show_error()
6844 except_cnt = pcysta->v5.except_cnt; in _show_error()
6845 exception_map = le32_to_cpu(pcysta->v5.except_map); in _show_error()
7079 struct rtw89_btc_fbtc_cysta_v3 *pcysta; in _show_fbtc_cysta_v3() local
7088 pcysta = &pfwinfo->rpt_fbtc_cysta.finfo.v3; in _show_fbtc_cysta_v3()
7092 le16_to_cpu(pcysta->cycles), in _show_fbtc_cysta_v3()
7093 le32_to_cpu(pcysta->bcn_cnt[CXBCN_ALL]), in _show_fbtc_cysta_v3()
7094 le32_to_cpu(pcysta->bcn_cnt[CXBCN_ALL_OK]), in _show_fbtc_cysta_v3()
7095 le32_to_cpu(pcysta->bcn_cnt[CXBCN_BT_SLOT]), in _show_fbtc_cysta_v3()
7096 le32_to_cpu(pcysta->bcn_cnt[CXBCN_BT_OK])); in _show_fbtc_cysta_v3()
7099 if (!le32_to_cpu(pcysta->slot_cnt[i])) in _show_fbtc_cysta_v3()
7103 le32_to_cpu(pcysta->slot_cnt[i])); in _show_fbtc_cysta_v3()
7107 seq_printf(m, ", leak_rx:%d", le32_to_cpu(pcysta->leak_slot.cnt_rximr)); in _show_fbtc_cysta_v3()
7109 if (le32_to_cpu(pcysta->collision_cnt)) in _show_fbtc_cysta_v3()
7110 seq_printf(m, ", collision:%d", le32_to_cpu(pcysta->collision_cnt)); in _show_fbtc_cysta_v3()
7112 if (le32_to_cpu(pcysta->skip_cnt)) in _show_fbtc_cysta_v3()
7113 seq_printf(m, ", skip:%d", le32_to_cpu(pcysta->skip_cnt)); in _show_fbtc_cysta_v3()
7119 le16_to_cpu(pcysta->cycle_time.tavg[CXT_WL]), in _show_fbtc_cysta_v3()
7120 le16_to_cpu(pcysta->cycle_time.tavg[CXT_BT]), in _show_fbtc_cysta_v3()
7121 le16_to_cpu(pcysta->leak_slot.tavg) / 1000, in _show_fbtc_cysta_v3()
7122 le16_to_cpu(pcysta->leak_slot.tavg) % 1000); in _show_fbtc_cysta_v3()
7125 le16_to_cpu(pcysta->cycle_time.tmax[CXT_WL]), in _show_fbtc_cysta_v3()
7126 le16_to_cpu(pcysta->cycle_time.tmax[CXT_BT]), in _show_fbtc_cysta_v3()
7127 le16_to_cpu(pcysta->leak_slot.tmax) / 1000, in _show_fbtc_cysta_v3()
7128 le16_to_cpu(pcysta->leak_slot.tmax) % 1000); in _show_fbtc_cysta_v3()
7131 le16_to_cpu(pcysta->cycle_time.tmaxdiff[CXT_WL]), in _show_fbtc_cysta_v3()
7132 le16_to_cpu(pcysta->cycle_time.tmaxdiff[CXT_BT])); in _show_fbtc_cysta_v3()
7134 cycle = le16_to_cpu(pcysta->cycles); in _show_fbtc_cysta_v3()
7161 le16_to_cpu(pcysta->slot_step_time[store_index])); in _show_fbtc_cysta_v3()
7163 a2dp_trx = &pcysta->a2dp_trx[store_index]; in _show_fbtc_cysta_v3()
7173 le16_to_cpu(pcysta->slot_step_time[store_index + 1])); in _show_fbtc_cysta_v3()
7175 a2dp_trx = &pcysta->a2dp_trx[store_index + 1]; in _show_fbtc_cysta_v3()
7191 le16_to_cpu(pcysta->a2dp_ept.cnt), in _show_fbtc_cysta_v3()
7192 le16_to_cpu(pcysta->a2dp_ept.cnt_timeout)); in _show_fbtc_cysta_v3()
7195 le16_to_cpu(pcysta->a2dp_ept.tavg), in _show_fbtc_cysta_v3()
7196 le16_to_cpu(pcysta->a2dp_ept.tmax)); in _show_fbtc_cysta_v3()
7209 struct rtw89_btc_fbtc_cysta_v4 *pcysta; in _show_fbtc_cysta_v4() local
7218 pcysta = &pfwinfo->rpt_fbtc_cysta.finfo.v4; in _show_fbtc_cysta_v4()
7222 le16_to_cpu(pcysta->cycles), in _show_fbtc_cysta_v4()
7223 le16_to_cpu(pcysta->bcn_cnt[CXBCN_ALL]), in _show_fbtc_cysta_v4()
7224 le16_to_cpu(pcysta->bcn_cnt[CXBCN_ALL_OK]), in _show_fbtc_cysta_v4()
7225 le16_to_cpu(pcysta->bcn_cnt[CXBCN_BT_SLOT]), in _show_fbtc_cysta_v4()
7226 le16_to_cpu(pcysta->bcn_cnt[CXBCN_BT_OK])); in _show_fbtc_cysta_v4()
7229 if (!le16_to_cpu(pcysta->slot_cnt[i])) in _show_fbtc_cysta_v4()
7233 le16_to_cpu(pcysta->slot_cnt[i])); in _show_fbtc_cysta_v4()
7238 le32_to_cpu(pcysta->leak_slot.cnt_rximr)); in _show_fbtc_cysta_v4()
7240 if (pcysta->collision_cnt) in _show_fbtc_cysta_v4()
7241 seq_printf(m, ", collision:%d", pcysta->collision_cnt); in _show_fbtc_cysta_v4()
7243 if (le16_to_cpu(pcysta->skip_cnt)) in _show_fbtc_cysta_v4()
7245 le16_to_cpu(pcysta->skip_cnt)); in _show_fbtc_cysta_v4()
7251 le16_to_cpu(pcysta->cycle_time.tavg[CXT_WL]), in _show_fbtc_cysta_v4()
7252 le16_to_cpu(pcysta->cycle_time.tavg[CXT_BT]), in _show_fbtc_cysta_v4()
7253 le16_to_cpu(pcysta->leak_slot.tavg) / 1000, in _show_fbtc_cysta_v4()
7254 le16_to_cpu(pcysta->leak_slot.tavg) % 1000); in _show_fbtc_cysta_v4()
7257 le16_to_cpu(pcysta->cycle_time.tmax[CXT_WL]), in _show_fbtc_cysta_v4()
7258 le16_to_cpu(pcysta->cycle_time.tmax[CXT_BT]), in _show_fbtc_cysta_v4()
7259 le16_to_cpu(pcysta->leak_slot.tmax) / 1000, in _show_fbtc_cysta_v4()
7260 le16_to_cpu(pcysta->leak_slot.tmax) % 1000); in _show_fbtc_cysta_v4()
7263 le16_to_cpu(pcysta->cycle_time.tmaxdiff[CXT_WL]), in _show_fbtc_cysta_v4()
7264 le16_to_cpu(pcysta->cycle_time.tmaxdiff[CXT_BT])); in _show_fbtc_cysta_v4()
7266 cycle = le16_to_cpu(pcysta->cycles); in _show_fbtc_cysta_v4()
7293 le16_to_cpu(pcysta->slot_step_time[store_index])); in _show_fbtc_cysta_v4()
7295 a2dp_trx = &pcysta->a2dp_trx[store_index]; in _show_fbtc_cysta_v4()
7305 le16_to_cpu(pcysta->slot_step_time[store_index + 1])); in _show_fbtc_cysta_v4()
7307 a2dp_trx = &pcysta->a2dp_trx[store_index + 1]; in _show_fbtc_cysta_v4()
7323 le16_to_cpu(pcysta->a2dp_ept.cnt), in _show_fbtc_cysta_v4()
7324 le16_to_cpu(pcysta->a2dp_ept.cnt_timeout)); in _show_fbtc_cysta_v4()
7327 le16_to_cpu(pcysta->a2dp_ept.tavg), in _show_fbtc_cysta_v4()
7328 le16_to_cpu(pcysta->a2dp_ept.tmax)); in _show_fbtc_cysta_v4()
7341 struct rtw89_btc_fbtc_cysta_v5 *pcysta; in _show_fbtc_cysta_v5() local
7350 pcysta = &pfwinfo->rpt_fbtc_cysta.finfo.v5; in _show_fbtc_cysta_v5()
7354 le16_to_cpu(pcysta->cycles), in _show_fbtc_cysta_v5()
7355 le16_to_cpu(pcysta->bcn_cnt[CXBCN_ALL]), in _show_fbtc_cysta_v5()
7356 le16_to_cpu(pcysta->bcn_cnt[CXBCN_ALL_OK]), in _show_fbtc_cysta_v5()
7357 le16_to_cpu(pcysta->bcn_cnt[CXBCN_BT_SLOT]), in _show_fbtc_cysta_v5()
7358 le16_to_cpu(pcysta->bcn_cnt[CXBCN_BT_OK])); in _show_fbtc_cysta_v5()
7361 if (!le16_to_cpu(pcysta->slot_cnt[i])) in _show_fbtc_cysta_v5()
7365 le16_to_cpu(pcysta->slot_cnt[i])); in _show_fbtc_cysta_v5()
7370 le32_to_cpu(pcysta->leak_slot.cnt_rximr)); in _show_fbtc_cysta_v5()
7372 if (pcysta->collision_cnt) in _show_fbtc_cysta_v5()
7373 seq_printf(m, ", collision:%d", pcysta->collision_cnt); in _show_fbtc_cysta_v5()
7375 if (le16_to_cpu(pcysta->skip_cnt)) in _show_fbtc_cysta_v5()
7377 le16_to_cpu(pcysta->skip_cnt)); in _show_fbtc_cysta_v5()
7383 le16_to_cpu(pcysta->cycle_time.tavg[CXT_WL]), in _show_fbtc_cysta_v5()
7384 le16_to_cpu(pcysta->cycle_time.tavg[CXT_BT]), in _show_fbtc_cysta_v5()
7385 le16_to_cpu(pcysta->leak_slot.tavg) / 1000, in _show_fbtc_cysta_v5()
7386 le16_to_cpu(pcysta->leak_slot.tavg) % 1000); in _show_fbtc_cysta_v5()
7389 le16_to_cpu(pcysta->cycle_time.tmax[CXT_WL]), in _show_fbtc_cysta_v5()
7390 le16_to_cpu(pcysta->cycle_time.tmax[CXT_BT]), in _show_fbtc_cysta_v5()
7391 le16_to_cpu(pcysta->leak_slot.tmax) / 1000, in _show_fbtc_cysta_v5()
7392 le16_to_cpu(pcysta->leak_slot.tmax) % 1000); in _show_fbtc_cysta_v5()
7394 cycle = le16_to_cpu(pcysta->cycles); in _show_fbtc_cysta_v5()
7424 le16_to_cpu(pcysta->slot_step_time[store_index])); in _show_fbtc_cysta_v5()
7426 a2dp_trx = &pcysta->a2dp_trx[store_index]; in _show_fbtc_cysta_v5()
7436 le16_to_cpu(pcysta->slot_step_time[store_index + 1])); in _show_fbtc_cysta_v5()
7438 a2dp_trx = &pcysta->a2dp_trx[store_index + 1]; in _show_fbtc_cysta_v5()
7454 le16_to_cpu(pcysta->a2dp_ept.cnt), in _show_fbtc_cysta_v5()
7455 le16_to_cpu(pcysta->a2dp_ept.cnt_timeout)); in _show_fbtc_cysta_v5()
7458 le16_to_cpu(pcysta->a2dp_ept.tavg), in _show_fbtc_cysta_v5()
7459 le16_to_cpu(pcysta->a2dp_ept.tmax)); in _show_fbtc_cysta_v5()