Lines Matching refs:phy_status
250 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
255 u8 pwdb = GET_PHY_STAT_P0_PWDB(phy_status); in query_phy_status_page0()
265 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
274 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
276 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
278 if (GET_PHY_STAT_P1_RF_MODE(phy_status) == 0) in query_phy_status_page1()
285 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
290 pkt_stat->rx_evm[RF_PATH_A] = GET_PHY_STAT_P1_RXEVM_A(phy_status); in query_phy_status_page1()
291 pkt_stat->rx_snr[RF_PATH_A] = GET_PHY_STAT_P1_RXSNR_A(phy_status); in query_phy_status_page1()
292 pkt_stat->cfo_tail[RF_PATH_A] = GET_PHY_STAT_P1_CFO_TAIL_A(phy_status); in query_phy_status_page1()
304 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status() argument
309 page = *phy_status & 0xf; in query_phy_status()
313 query_phy_status_page0(rtwdev, phy_status, pkt_stat); in query_phy_status()
316 query_phy_status_page1(rtwdev, phy_status, pkt_stat); in query_phy_status()
330 u8 *phy_status = NULL; in rtw8723d_query_rx_desc() local
334 pkt_stat->phy_status = GET_RX_DESC_PHYST(rx_desc); in rtw8723d_query_rx_desc()
357 if (pkt_stat->phy_status) { in rtw8723d_query_rx_desc()
358 phy_status = rx_desc + desc_sz + pkt_stat->shift; in rtw8723d_query_rx_desc()
359 query_phy_status(rtwdev, phy_status, pkt_stat); in rtw8723d_query_rx_desc()
362 rtw_rx_fill_rx_status(rtwdev, pkt_stat, hdr, rx_status, phy_status); in rtw8723d_query_rx_desc()