Lines Matching refs:phy_status
507 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0() argument
515 vga_idx = GET_PHY_STAT_P0_VGA(phy_status); in query_phy_status_page0()
516 lna_idx = FIELD_PREP(BIT_LNA_H_MASK, GET_PHY_STAT_P0_LNA_H(phy_status)) | in query_phy_status_page0()
517 FIELD_PREP(BIT_LNA_L_MASK, GET_PHY_STAT_P0_LNA_L(phy_status)); in query_phy_status_page0()
527 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1() argument
535 rxsc = GET_PHY_STAT_P1_L_RXSC(phy_status); in query_phy_status_page1()
537 rxsc = GET_PHY_STAT_P1_HT_RXSC(phy_status); in query_phy_status_page1()
546 bw = GET_PHY_STAT_P1_RF_MODE(phy_status); in query_phy_status_page1()
548 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
556 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status() argument
561 page = *phy_status & 0xf; in query_phy_status()
565 query_phy_status_page0(rtwdev, phy_status, pkt_stat); in query_phy_status()
568 query_phy_status_page1(rtwdev, phy_status, pkt_stat); in query_phy_status()
582 u8 *phy_status = NULL; in rtw8821c_query_rx_desc() local
586 pkt_stat->phy_status = GET_RX_DESC_PHYST(rx_desc); in rtw8821c_query_rx_desc()
609 if (pkt_stat->phy_status) { in rtw8821c_query_rx_desc()
610 phy_status = rx_desc + desc_sz + pkt_stat->shift; in rtw8821c_query_rx_desc()
611 query_phy_status(rtwdev, phy_status, pkt_stat); in rtw8821c_query_rx_desc()
614 rtw_rx_fill_rx_status(rtwdev, pkt_stat, hdr, rx_status, phy_status); in rtw8821c_query_rx_desc()