Lines Matching refs:phy_status
818 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
823 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0()
834 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
846 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
848 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
857 bw = GET_PHY_STAT_P1_RF_MODE(phy_status); in query_phy_status_page1()
859 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
860 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1()
869 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status); in query_phy_status_page1()
870 pkt_stat->rx_evm[RF_PATH_B] = GET_PHY_STAT_P1_RXEVM_B(phy_status); in query_phy_status_page1()
872 pkt_stat->rx_snr[RF_PATH_A] = GET_PHY_STAT_P1_RXSNR_A(phy_status); in query_phy_status_page1()
873 pkt_stat->rx_snr[RF_PATH_B] = GET_PHY_STAT_P1_RXSNR_B(phy_status); in query_phy_status_page1()
875 pkt_stat->cfo_tail[RF_PATH_A] = GET_PHY_STAT_P1_CFO_TAIL_A(phy_status); in query_phy_status_page1()
876 pkt_stat->cfo_tail[RF_PATH_B] = GET_PHY_STAT_P1_CFO_TAIL_B(phy_status); in query_phy_status_page1()
896 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status() argument
901 page = *phy_status & 0xf; in query_phy_status()
905 query_phy_status_page0(rtwdev, phy_status, pkt_stat); in query_phy_status()
908 query_phy_status_page1(rtwdev, phy_status, pkt_stat); in query_phy_status()
922 u8 *phy_status = NULL; in rtw8822b_query_rx_desc() local
926 pkt_stat->phy_status = GET_RX_DESC_PHYST(rx_desc); in rtw8822b_query_rx_desc()
949 if (pkt_stat->phy_status) { in rtw8822b_query_rx_desc()
950 phy_status = rx_desc + desc_sz + pkt_stat->shift; in rtw8822b_query_rx_desc()
951 query_phy_status(rtwdev, phy_status, pkt_stat); in rtw8822b_query_rx_desc()
954 rtw_rx_fill_rx_status(rtwdev, pkt_stat, hdr, rx_status, phy_status); in rtw8822b_query_rx_desc()