Lines Matching refs:phy_status
2527 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
2538 rx_power[RF_PATH_A] = GET_PHY_STAT_P0_PWDB_A(phy_status); in query_phy_status_page0()
2539 rx_power[RF_PATH_B] = GET_PHY_STAT_P0_PWDB_B(phy_status); in query_phy_status_page0()
2542 gain_a = GET_PHY_STAT_P0_GAIN_A(phy_status); in query_phy_status_page0()
2543 gain_b = GET_PHY_STAT_P0_GAIN_B(phy_status); in query_phy_status_page0()
2570 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
2583 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
2585 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
2594 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
2595 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1()
2604 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status); in query_phy_status_page1()
2605 pkt_stat->rx_evm[RF_PATH_B] = GET_PHY_STAT_P1_RXEVM_B(phy_status); in query_phy_status_page1()
2607 pkt_stat->rx_snr[RF_PATH_A] = GET_PHY_STAT_P1_RXSNR_A(phy_status); in query_phy_status_page1()
2608 pkt_stat->rx_snr[RF_PATH_B] = GET_PHY_STAT_P1_RXSNR_B(phy_status); in query_phy_status_page1()
2610 pkt_stat->cfo_tail[RF_PATH_A] = GET_PHY_STAT_P1_CFO_TAIL_A(phy_status); in query_phy_status_page1()
2611 pkt_stat->cfo_tail[RF_PATH_B] = GET_PHY_STAT_P1_CFO_TAIL_B(phy_status); in query_phy_status_page1()
2639 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status() argument
2644 page = *phy_status & 0xf; in query_phy_status()
2648 query_phy_status_page0(rtwdev, phy_status, pkt_stat); in query_phy_status()
2651 query_phy_status_page1(rtwdev, phy_status, pkt_stat); in query_phy_status()
2665 u8 *phy_status = NULL; in rtw8822c_query_rx_desc() local
2669 pkt_stat->phy_status = GET_RX_DESC_PHYST(rx_desc); in rtw8822c_query_rx_desc()
2693 if (pkt_stat->phy_status) { in rtw8822c_query_rx_desc()
2694 phy_status = rx_desc + desc_sz + pkt_stat->shift; in rtw8822c_query_rx_desc()
2695 query_phy_status(rtwdev, phy_status, pkt_stat); in rtw8822c_query_rx_desc()
2698 rtw_rx_fill_rx_status(rtwdev, pkt_stat, hdr, rx_status, phy_status); in rtw8822c_query_rx_desc()