Lines Matching refs:pkt_stat

1612 				   struct rtw_rx_pkt_stat *pkt_stat)  in query_phy_status_page0()  argument
1638 pkt_stat->rx_power[RF_PATH_A] = rx_power[RF_PATH_A]; in query_phy_status_page0()
1639 pkt_stat->rx_power[RF_PATH_B] = rx_power[RF_PATH_B]; in query_phy_status_page0()
1641 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page0()
1642 pkt_stat->bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page0()
1643 pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page0()
1648 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page1() argument
1653 if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0) in query_phy_status_page1()
1665 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
1666 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1()
1667 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 2); in query_phy_status_page1()
1668 pkt_stat->bw = bw; in query_phy_status_page1()
1669 pkt_stat->signal_power = max3(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page1()
1670 pkt_stat->rx_power[RF_PATH_B], in query_phy_status_page1()
1675 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status() argument
1683 query_phy_status_page0(rtwdev, phy_status, pkt_stat); in query_phy_status()
1686 query_phy_status_page1(rtwdev, phy_status, pkt_stat); in query_phy_status()
1695 struct rtw_rx_pkt_stat *pkt_stat, in rtw8822c_query_rx_desc() argument
1702 memset(pkt_stat, 0, sizeof(*pkt_stat)); in rtw8822c_query_rx_desc()
1704 pkt_stat->phy_status = GET_RX_DESC_PHYST(rx_desc); in rtw8822c_query_rx_desc()
1705 pkt_stat->icv_err = GET_RX_DESC_ICV_ERR(rx_desc); in rtw8822c_query_rx_desc()
1706 pkt_stat->crc_err = GET_RX_DESC_CRC32(rx_desc); in rtw8822c_query_rx_desc()
1707 pkt_stat->decrypted = !GET_RX_DESC_SWDEC(rx_desc); in rtw8822c_query_rx_desc()
1708 pkt_stat->is_c2h = GET_RX_DESC_C2H(rx_desc); in rtw8822c_query_rx_desc()
1709 pkt_stat->pkt_len = GET_RX_DESC_PKT_LEN(rx_desc); in rtw8822c_query_rx_desc()
1710 pkt_stat->drv_info_sz = GET_RX_DESC_DRV_INFO_SIZE(rx_desc); in rtw8822c_query_rx_desc()
1711 pkt_stat->shift = GET_RX_DESC_SHIFT(rx_desc); in rtw8822c_query_rx_desc()
1712 pkt_stat->rate = GET_RX_DESC_RX_RATE(rx_desc); in rtw8822c_query_rx_desc()
1713 pkt_stat->cam_id = GET_RX_DESC_MACID(rx_desc); in rtw8822c_query_rx_desc()
1714 pkt_stat->ppdu_cnt = GET_RX_DESC_PPDU_CNT(rx_desc); in rtw8822c_query_rx_desc()
1715 pkt_stat->tsf_low = GET_RX_DESC_TSFL(rx_desc); in rtw8822c_query_rx_desc()
1718 pkt_stat->drv_info_sz *= 8; in rtw8822c_query_rx_desc()
1721 if (pkt_stat->is_c2h) in rtw8822c_query_rx_desc()
1724 hdr = (struct ieee80211_hdr *)(rx_desc + desc_sz + pkt_stat->shift + in rtw8822c_query_rx_desc()
1725 pkt_stat->drv_info_sz); in rtw8822c_query_rx_desc()
1726 if (pkt_stat->phy_status) { in rtw8822c_query_rx_desc()
1727 phy_status = rx_desc + desc_sz + pkt_stat->shift; in rtw8822c_query_rx_desc()
1728 query_phy_status(rtwdev, phy_status, pkt_stat); in rtw8822c_query_rx_desc()
1731 rtw_rx_fill_rx_status(rtwdev, pkt_stat, hdr, rx_status, phy_status); in rtw8822c_query_rx_desc()