pkt_stat 1343 drivers/net/ethernet/8390/axnet_cs.c int pkt_len, pkt_stat; pkt_stat 1372 drivers/net/ethernet/8390/axnet_cs.c pkt_stat = rx_frame.status; pkt_stat 1385 drivers/net/ethernet/8390/axnet_cs.c else if ((pkt_stat & 0x0F) == ENRSR_RXOK) pkt_stat 1407 drivers/net/ethernet/8390/axnet_cs.c if (pkt_stat & ENRSR_PHY) pkt_stat 1419 drivers/net/ethernet/8390/axnet_cs.c if (pkt_stat & ENRSR_FO) pkt_stat 664 drivers/net/ethernet/8390/lib8390.c int pkt_len, pkt_stat; pkt_stat 696 drivers/net/ethernet/8390/lib8390.c pkt_stat = rx_frame.status; pkt_stat 720 drivers/net/ethernet/8390/lib8390.c } else if ((pkt_stat & 0x0F) == ENRSR_RXOK) { pkt_stat 739 drivers/net/ethernet/8390/lib8390.c if (pkt_stat & ENRSR_PHY) pkt_stat 749 drivers/net/ethernet/8390/lib8390.c if (pkt_stat & ENRSR_FO) pkt_stat 630 drivers/net/wireless/realtek/rtw88/main.h struct rtw_rx_pkt_stat *pkt_stat, pkt_stat 815 drivers/net/wireless/realtek/rtw88/pci.c struct rtw_rx_pkt_stat pkt_stat; pkt_stat 845 drivers/net/wireless/realtek/rtw88/pci.c chip->ops->query_rx_desc(rtwdev, rx_desc, &pkt_stat, &rx_status); pkt_stat 848 drivers/net/wireless/realtek/rtw88/pci.c pkt_offset = pkt_desc_sz + pkt_stat.drv_info_sz + pkt_stat 849 drivers/net/wireless/realtek/rtw88/pci.c pkt_stat.shift; pkt_stat 854 drivers/net/wireless/realtek/rtw88/pci.c new_len = pkt_stat.pkt_len + pkt_offset; pkt_stat 862 drivers/net/wireless/realtek/rtw88/pci.c if (pkt_stat.is_c2h) { pkt_stat 868 drivers/net/wireless/realtek/rtw88/pci.c rtw_rx_stats(rtwdev, pkt_stat.vif, new); pkt_stat 764 drivers/net/wireless/realtek/rtw88/rtw8822b.c struct rtw_rx_pkt_stat *pkt_stat) pkt_stat 770 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->rx_power[RF_PATH_A] = pwdb - 110; pkt_stat 771 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); pkt_stat 772 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->bw = RTW_CHANNEL_WIDTH_20; pkt_stat 773 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], pkt_stat 778 drivers/net/wireless/realtek/rtw88/rtw8822b.c struct rtw_rx_pkt_stat *pkt_stat) pkt_stat 783 drivers/net/wireless/realtek/rtw88/rtw8822b.c if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0) pkt_stat 797 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; pkt_stat 798 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; pkt_stat 799 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 2); pkt_stat 800 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->bw = bw; pkt_stat 801 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->signal_power = max3(pkt_stat->rx_power[RF_PATH_A], pkt_stat 802 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->rx_power[RF_PATH_B], pkt_stat 807 drivers/net/wireless/realtek/rtw88/rtw8822b.c struct rtw_rx_pkt_stat *pkt_stat) pkt_stat 815 drivers/net/wireless/realtek/rtw88/rtw8822b.c query_phy_status_page0(rtwdev, phy_status, pkt_stat); pkt_stat 818 drivers/net/wireless/realtek/rtw88/rtw8822b.c query_phy_status_page1(rtwdev, phy_status, pkt_stat); pkt_stat 827 drivers/net/wireless/realtek/rtw88/rtw8822b.c struct rtw_rx_pkt_stat *pkt_stat, pkt_stat 834 drivers/net/wireless/realtek/rtw88/rtw8822b.c memset(pkt_stat, 0, sizeof(*pkt_stat)); pkt_stat 836 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->phy_status = GET_RX_DESC_PHYST(rx_desc); pkt_stat 837 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->icv_err = GET_RX_DESC_ICV_ERR(rx_desc); pkt_stat 838 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->crc_err = GET_RX_DESC_CRC32(rx_desc); pkt_stat 839 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->decrypted = !GET_RX_DESC_SWDEC(rx_desc); pkt_stat 840 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->is_c2h = GET_RX_DESC_C2H(rx_desc); pkt_stat 841 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->pkt_len = GET_RX_DESC_PKT_LEN(rx_desc); pkt_stat 842 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->drv_info_sz = GET_RX_DESC_DRV_INFO_SIZE(rx_desc); pkt_stat 843 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->shift = GET_RX_DESC_SHIFT(rx_desc); pkt_stat 844 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->rate = GET_RX_DESC_RX_RATE(rx_desc); pkt_stat 845 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->cam_id = GET_RX_DESC_MACID(rx_desc); pkt_stat 846 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->ppdu_cnt = GET_RX_DESC_PPDU_CNT(rx_desc); pkt_stat 847 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->tsf_low = GET_RX_DESC_TSFL(rx_desc); pkt_stat 850 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->drv_info_sz *= 8; pkt_stat 853 drivers/net/wireless/realtek/rtw88/rtw8822b.c if (pkt_stat->is_c2h) pkt_stat 856 drivers/net/wireless/realtek/rtw88/rtw8822b.c hdr = (struct ieee80211_hdr *)(rx_desc + desc_sz + pkt_stat->shift + pkt_stat 857 drivers/net/wireless/realtek/rtw88/rtw8822b.c pkt_stat->drv_info_sz); pkt_stat 858 drivers/net/wireless/realtek/rtw88/rtw8822b.c if (pkt_stat->phy_status) { pkt_stat 859 drivers/net/wireless/realtek/rtw88/rtw8822b.c phy_status = rx_desc + desc_sz + pkt_stat->shift; pkt_stat 860 drivers/net/wireless/realtek/rtw88/rtw8822b.c query_phy_status(rtwdev, phy_status, pkt_stat); pkt_stat 863 drivers/net/wireless/realtek/rtw88/rtw8822b.c rtw_rx_fill_rx_status(rtwdev, pkt_stat, hdr, rx_status, phy_status); pkt_stat 1612 drivers/net/wireless/realtek/rtw88/rtw8822c.c struct rtw_rx_pkt_stat *pkt_stat) pkt_stat 1638 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->rx_power[RF_PATH_A] = rx_power[RF_PATH_A]; pkt_stat 1639 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->rx_power[RF_PATH_B] = rx_power[RF_PATH_B]; pkt_stat 1641 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); pkt_stat 1642 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->bw = RTW_CHANNEL_WIDTH_20; pkt_stat 1643 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], pkt_stat 1648 drivers/net/wireless/realtek/rtw88/rtw8822c.c struct rtw_rx_pkt_stat *pkt_stat) pkt_stat 1653 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0) pkt_stat 1665 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; pkt_stat 1666 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; pkt_stat 1667 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 2); pkt_stat 1668 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->bw = bw; pkt_stat 1669 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->signal_power = max3(pkt_stat->rx_power[RF_PATH_A], pkt_stat 1670 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->rx_power[RF_PATH_B], pkt_stat 1675 drivers/net/wireless/realtek/rtw88/rtw8822c.c struct rtw_rx_pkt_stat *pkt_stat) pkt_stat 1683 drivers/net/wireless/realtek/rtw88/rtw8822c.c query_phy_status_page0(rtwdev, phy_status, pkt_stat); pkt_stat 1686 drivers/net/wireless/realtek/rtw88/rtw8822c.c query_phy_status_page1(rtwdev, phy_status, pkt_stat); pkt_stat 1695 drivers/net/wireless/realtek/rtw88/rtw8822c.c struct rtw_rx_pkt_stat *pkt_stat, pkt_stat 1702 drivers/net/wireless/realtek/rtw88/rtw8822c.c memset(pkt_stat, 0, sizeof(*pkt_stat)); pkt_stat 1704 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->phy_status = GET_RX_DESC_PHYST(rx_desc); pkt_stat 1705 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->icv_err = GET_RX_DESC_ICV_ERR(rx_desc); pkt_stat 1706 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->crc_err = GET_RX_DESC_CRC32(rx_desc); pkt_stat 1707 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->decrypted = !GET_RX_DESC_SWDEC(rx_desc); pkt_stat 1708 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->is_c2h = GET_RX_DESC_C2H(rx_desc); pkt_stat 1709 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->pkt_len = GET_RX_DESC_PKT_LEN(rx_desc); pkt_stat 1710 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->drv_info_sz = GET_RX_DESC_DRV_INFO_SIZE(rx_desc); pkt_stat 1711 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->shift = GET_RX_DESC_SHIFT(rx_desc); pkt_stat 1712 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->rate = GET_RX_DESC_RX_RATE(rx_desc); pkt_stat 1713 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->cam_id = GET_RX_DESC_MACID(rx_desc); pkt_stat 1714 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->ppdu_cnt = GET_RX_DESC_PPDU_CNT(rx_desc); pkt_stat 1715 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->tsf_low = GET_RX_DESC_TSFL(rx_desc); pkt_stat 1718 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->drv_info_sz *= 8; pkt_stat 1721 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (pkt_stat->is_c2h) pkt_stat 1724 drivers/net/wireless/realtek/rtw88/rtw8822c.c hdr = (struct ieee80211_hdr *)(rx_desc + desc_sz + pkt_stat->shift + pkt_stat 1725 drivers/net/wireless/realtek/rtw88/rtw8822c.c pkt_stat->drv_info_sz); pkt_stat 1726 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (pkt_stat->phy_status) { pkt_stat 1727 drivers/net/wireless/realtek/rtw88/rtw8822c.c phy_status = rx_desc + desc_sz + pkt_stat->shift; pkt_stat 1728 drivers/net/wireless/realtek/rtw88/rtw8822c.c query_phy_status(rtwdev, phy_status, pkt_stat); pkt_stat 1731 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_rx_fill_rx_status(rtwdev, pkt_stat, hdr, rx_status, phy_status); pkt_stat 38 drivers/net/wireless/realtek/rtw88/rx.c struct rtw_rx_pkt_stat *pkt_stat; pkt_stat 50 drivers/net/wireless/realtek/rtw88/rx.c struct rtw_rx_pkt_stat *pkt_stat = iter_data->pkt_stat; pkt_stat 65 drivers/net/wireless/realtek/rtw88/rx.c ewma_rssi_add(&si->avg_rssi, pkt_stat->rssi); pkt_stat 69 drivers/net/wireless/realtek/rtw88/rx.c struct rtw_rx_pkt_stat *pkt_stat, pkt_stat 74 drivers/net/wireless/realtek/rtw88/rx.c if (pkt_stat->crc_err || pkt_stat->icv_err || !pkt_stat->phy_status || pkt_stat 80 drivers/net/wireless/realtek/rtw88/rx.c data.pkt_stat = pkt_stat; pkt_stat 87 drivers/net/wireless/realtek/rtw88/rx.c struct rtw_rx_pkt_stat *pkt_stat, pkt_stat 98 drivers/net/wireless/realtek/rtw88/rx.c if (pkt_stat->crc_err) pkt_stat 100 drivers/net/wireless/realtek/rtw88/rx.c if (pkt_stat->decrypted) pkt_stat 103 drivers/net/wireless/realtek/rtw88/rx.c if (pkt_stat->rate >= DESC_RATEVHT1SS_MCS0) pkt_stat 105 drivers/net/wireless/realtek/rtw88/rx.c else if (pkt_stat->rate >= DESC_RATEMCS0) pkt_stat 108 drivers/net/wireless/realtek/rtw88/rx.c if (pkt_stat->rate >= DESC_RATEVHT1SS_MCS0 && pkt_stat 109 drivers/net/wireless/realtek/rtw88/rx.c pkt_stat->rate <= DESC_RATEVHT1SS_MCS9) { pkt_stat 111 drivers/net/wireless/realtek/rtw88/rx.c rx_status->rate_idx = pkt_stat->rate - DESC_RATEVHT1SS_MCS0; pkt_stat 112 drivers/net/wireless/realtek/rtw88/rx.c } else if (pkt_stat->rate >= DESC_RATEVHT2SS_MCS0 && pkt_stat 113 drivers/net/wireless/realtek/rtw88/rx.c pkt_stat->rate <= DESC_RATEVHT2SS_MCS9) { pkt_stat 115 drivers/net/wireless/realtek/rtw88/rx.c rx_status->rate_idx = pkt_stat->rate - DESC_RATEVHT2SS_MCS0; pkt_stat 116 drivers/net/wireless/realtek/rtw88/rx.c } else if (pkt_stat->rate >= DESC_RATEVHT3SS_MCS0 && pkt_stat 117 drivers/net/wireless/realtek/rtw88/rx.c pkt_stat->rate <= DESC_RATEVHT3SS_MCS9) { pkt_stat 119 drivers/net/wireless/realtek/rtw88/rx.c rx_status->rate_idx = pkt_stat->rate - DESC_RATEVHT3SS_MCS0; pkt_stat 120 drivers/net/wireless/realtek/rtw88/rx.c } else if (pkt_stat->rate >= DESC_RATEVHT4SS_MCS0 && pkt_stat 121 drivers/net/wireless/realtek/rtw88/rx.c pkt_stat->rate <= DESC_RATEVHT4SS_MCS9) { pkt_stat 123 drivers/net/wireless/realtek/rtw88/rx.c rx_status->rate_idx = pkt_stat->rate - DESC_RATEVHT4SS_MCS0; pkt_stat 124 drivers/net/wireless/realtek/rtw88/rx.c } else if (pkt_stat->rate >= DESC_RATEMCS0 && pkt_stat 125 drivers/net/wireless/realtek/rtw88/rx.c pkt_stat->rate <= DESC_RATEMCS15) { pkt_stat 126 drivers/net/wireless/realtek/rtw88/rx.c rx_status->rate_idx = pkt_stat->rate - DESC_RATEMCS0; pkt_stat 128 drivers/net/wireless/realtek/rtw88/rx.c pkt_stat->rate >= DESC_RATE6M && pkt_stat 129 drivers/net/wireless/realtek/rtw88/rx.c pkt_stat->rate <= DESC_RATE54M) { pkt_stat 130 drivers/net/wireless/realtek/rtw88/rx.c rx_status->rate_idx = pkt_stat->rate - DESC_RATE6M; pkt_stat 132 drivers/net/wireless/realtek/rtw88/rx.c pkt_stat->rate >= DESC_RATE1M && pkt_stat 133 drivers/net/wireless/realtek/rtw88/rx.c pkt_stat->rate <= DESC_RATE54M) { pkt_stat 134 drivers/net/wireless/realtek/rtw88/rx.c rx_status->rate_idx = pkt_stat->rate - DESC_RATE1M; pkt_stat 140 drivers/net/wireless/realtek/rtw88/rx.c rx_status->mactime = pkt_stat->tsf_low; pkt_stat 142 drivers/net/wireless/realtek/rtw88/rx.c if (pkt_stat->bw == RTW_CHANNEL_WIDTH_80) pkt_stat 144 drivers/net/wireless/realtek/rtw88/rx.c else if (pkt_stat->bw == RTW_CHANNEL_WIDTH_40) pkt_stat 149 drivers/net/wireless/realtek/rtw88/rx.c rx_status->signal = pkt_stat->signal_power; pkt_stat 152 drivers/net/wireless/realtek/rtw88/rx.c rx_status->chain_signal[path] = pkt_stat->rx_power[path]; pkt_stat 155 drivers/net/wireless/realtek/rtw88/rx.c rtw_rx_addr_match(rtwdev, pkt_stat, hdr); pkt_stat 36 drivers/net/wireless/realtek/rtw88/rx.h struct rtw_rx_pkt_stat *pkt_stat,