Lines Matching refs:phy_status

829 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status,  in query_phy_status_page0()  argument
834 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0()
845 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
857 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
859 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
868 bw = GET_PHY_STAT_P1_RF_MODE(phy_status); in query_phy_status_page1()
870 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
871 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1()
880 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status); in query_phy_status_page1()
881 pkt_stat->rx_evm[RF_PATH_B] = GET_PHY_STAT_P1_RXEVM_B(phy_status); in query_phy_status_page1()
883 pkt_stat->rx_snr[RF_PATH_A] = GET_PHY_STAT_P1_RXSNR_A(phy_status); in query_phy_status_page1()
884 pkt_stat->rx_snr[RF_PATH_B] = GET_PHY_STAT_P1_RXSNR_B(phy_status); in query_phy_status_page1()
886 pkt_stat->cfo_tail[RF_PATH_A] = GET_PHY_STAT_P1_CFO_TAIL_A(phy_status); in query_phy_status_page1()
887 pkt_stat->cfo_tail[RF_PATH_B] = GET_PHY_STAT_P1_CFO_TAIL_B(phy_status); in query_phy_status_page1()
907 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status() argument
912 page = *phy_status & 0xf; in query_phy_status()
916 query_phy_status_page0(rtwdev, phy_status, pkt_stat); in query_phy_status()
919 query_phy_status_page1(rtwdev, phy_status, pkt_stat); in query_phy_status()
933 u8 *phy_status = NULL; in rtw8822b_query_rx_desc() local
937 pkt_stat->phy_status = GET_RX_DESC_PHYST(rx_desc); in rtw8822b_query_rx_desc()
960 if (pkt_stat->phy_status) { in rtw8822b_query_rx_desc()
961 phy_status = rx_desc + desc_sz + pkt_stat->shift; in rtw8822b_query_rx_desc()
962 query_phy_status(rtwdev, phy_status, pkt_stat); in rtw8822b_query_rx_desc()
965 rtw_rx_fill_rx_status(rtwdev, pkt_stat, hdr, rx_status, phy_status); in rtw8822b_query_rx_desc()