Lines Matching refs:phy_status
839 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status,
844 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status);
855 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status,
867 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status);
869 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status);
878 bw = GET_PHY_STAT_P1_RF_MODE(phy_status);
880 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110;
881 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110;
890 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status);
891 pkt_stat->rx_evm[RF_PATH_B] = GET_PHY_STAT_P1_RXEVM_B(phy_status);
893 pkt_stat->rx_snr[RF_PATH_A] = GET_PHY_STAT_P1_RXSNR_A(phy_status);
894 pkt_stat->rx_snr[RF_PATH_B] = GET_PHY_STAT_P1_RXSNR_B(phy_status);
896 pkt_stat->cfo_tail[RF_PATH_A] = GET_PHY_STAT_P1_CFO_TAIL_A(phy_status);
897 pkt_stat->cfo_tail[RF_PATH_B] = GET_PHY_STAT_P1_CFO_TAIL_B(phy_status);
917 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status,
922 page = *phy_status & 0xf;
926 query_phy_status_page0(rtwdev, phy_status, pkt_stat);
929 query_phy_status_page1(rtwdev, phy_status, pkt_stat);