Lines Matching refs:pkt_stat

764 				   struct rtw_rx_pkt_stat *pkt_stat)  in query_phy_status_page0()  argument
770 pkt_stat->rx_power[RF_PATH_A] = pwdb - 110; in query_phy_status_page0()
771 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page0()
772 pkt_stat->bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page0()
773 pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page0()
778 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page1() argument
783 if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0) in query_phy_status_page1()
797 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
798 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1()
799 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 2); in query_phy_status_page1()
800 pkt_stat->bw = bw; in query_phy_status_page1()
801 pkt_stat->signal_power = max3(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page1()
802 pkt_stat->rx_power[RF_PATH_B], in query_phy_status_page1()
807 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status() argument
815 query_phy_status_page0(rtwdev, phy_status, pkt_stat); in query_phy_status()
818 query_phy_status_page1(rtwdev, phy_status, pkt_stat); in query_phy_status()
827 struct rtw_rx_pkt_stat *pkt_stat, in rtw8822b_query_rx_desc() argument
834 memset(pkt_stat, 0, sizeof(*pkt_stat)); in rtw8822b_query_rx_desc()
836 pkt_stat->phy_status = GET_RX_DESC_PHYST(rx_desc); in rtw8822b_query_rx_desc()
837 pkt_stat->icv_err = GET_RX_DESC_ICV_ERR(rx_desc); in rtw8822b_query_rx_desc()
838 pkt_stat->crc_err = GET_RX_DESC_CRC32(rx_desc); in rtw8822b_query_rx_desc()
839 pkt_stat->decrypted = !GET_RX_DESC_SWDEC(rx_desc); in rtw8822b_query_rx_desc()
840 pkt_stat->is_c2h = GET_RX_DESC_C2H(rx_desc); in rtw8822b_query_rx_desc()
841 pkt_stat->pkt_len = GET_RX_DESC_PKT_LEN(rx_desc); in rtw8822b_query_rx_desc()
842 pkt_stat->drv_info_sz = GET_RX_DESC_DRV_INFO_SIZE(rx_desc); in rtw8822b_query_rx_desc()
843 pkt_stat->shift = GET_RX_DESC_SHIFT(rx_desc); in rtw8822b_query_rx_desc()
844 pkt_stat->rate = GET_RX_DESC_RX_RATE(rx_desc); in rtw8822b_query_rx_desc()
845 pkt_stat->cam_id = GET_RX_DESC_MACID(rx_desc); in rtw8822b_query_rx_desc()
846 pkt_stat->ppdu_cnt = GET_RX_DESC_PPDU_CNT(rx_desc); in rtw8822b_query_rx_desc()
847 pkt_stat->tsf_low = GET_RX_DESC_TSFL(rx_desc); in rtw8822b_query_rx_desc()
850 pkt_stat->drv_info_sz *= 8; in rtw8822b_query_rx_desc()
853 if (pkt_stat->is_c2h) in rtw8822b_query_rx_desc()
856 hdr = (struct ieee80211_hdr *)(rx_desc + desc_sz + pkt_stat->shift + in rtw8822b_query_rx_desc()
857 pkt_stat->drv_info_sz); in rtw8822b_query_rx_desc()
858 if (pkt_stat->phy_status) { in rtw8822b_query_rx_desc()
859 phy_status = rx_desc + desc_sz + pkt_stat->shift; in rtw8822b_query_rx_desc()
860 query_phy_status(rtwdev, phy_status, pkt_stat); in rtw8822b_query_rx_desc()
863 rtw_rx_fill_rx_status(rtwdev, pkt_stat, hdr, rx_status, phy_status); in rtw8822b_query_rx_desc()