/openbmc/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | rx.c | 38 struct rtw_rx_pkt_stat *pkt_stat; member 43 struct rtw_rx_pkt_stat *pkt_stat, in rtw_rx_phy_stat() argument 51 dm_info->curr_rx_rate = pkt_stat->rate; in rtw_rx_phy_stat() 56 switch (pkt_stat->rate) { in rtw_rx_phy_stat() 77 rtw_warn(rtwdev, "unknown pkt rate = %d\n", pkt_stat->rate); in rtw_rx_phy_stat() 93 cur_pkt_cnt->num_qry_pkt[pkt_stat->rate]++; in rtw_rx_phy_stat() 104 struct rtw_rx_pkt_stat *pkt_stat = iter_data->pkt_stat; in rtw_rx_addr_match_iter() local 114 rtw_rx_phy_stat(rtwdev, pkt_stat, hdr); in rtw_rx_addr_match_iter() 121 ewma_rssi_add(&si->avg_rssi, pkt_stat->rssi); in rtw_rx_addr_match_iter() 125 struct rtw_rx_pkt_stat *pkt_stat, in rtw_rx_addr_match() argument [all …]
|
H A D | rtw8822b.c | 839 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page0() argument 846 pkt_stat->rx_power[RF_PATH_A] = pwdb - 110; in query_phy_status_page0() 847 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page0() 848 pkt_stat->bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page0() 849 pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page0() 851 dm_info->rssi[RF_PATH_A] = pkt_stat->rssi; in query_phy_status_page0() 855 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page1() argument 865 if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0) in query_phy_status_page1() 879 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1() 880 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1() [all …]
|
H A D | rtw8821c.c | 547 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page0() argument 559 pkt_stat->rx_power[RF_PATH_A] = rx_power; in query_phy_status_page0() 560 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page0() 561 dm_info->rssi[RF_PATH_A] = pkt_stat->rssi; in query_phy_status_page0() 562 pkt_stat->bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page0() 563 pkt_stat->signal_power = rx_power; in query_phy_status_page0() 567 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page1() argument 573 if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0) in query_phy_status_page1() 587 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1() 588 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page1() [all …]
|
H A D | rtw8723d.c | 269 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page0() argument 275 pkt_stat->rx_power[RF_PATH_A] = pwdb - 97; in query_phy_status_page0() 276 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page0() 277 pkt_stat->bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page0() 278 pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page0() 280 dm_info->rssi[RF_PATH_A] = pkt_stat->rssi; in query_phy_status_page0() 284 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page1() argument 291 if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0) in query_phy_status_page1() 303 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1() 304 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page1() [all …]
|
H A D | rtw8822c.c | 2548 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page0() argument 2580 rtw_set_rx_freq_band(pkt_stat, channel); in query_phy_status_page0() 2582 pkt_stat->rx_power[RF_PATH_A] = rx_power[RF_PATH_A]; in query_phy_status_page0() 2583 pkt_stat->rx_power[RF_PATH_B] = rx_power[RF_PATH_B]; in query_phy_status_page0() 2586 rssi = rtw_phy_rf_power_2_rssi(&pkt_stat->rx_power[path], 1); in query_phy_status_page0() 2590 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page0() 2591 pkt_stat->bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page0() 2592 pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page0() 2597 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page1() argument 2609 if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0) in query_phy_status_page1() [all …]
|
H A D | sdio.c | 937 u32 pkt_offset, struct rtw_rx_pkt_stat *pkt_stat, in rtw_sdio_rx_skb() argument 942 if (pkt_stat->is_c2h) { in rtw_sdio_rx_skb() 943 skb_put(skb, pkt_stat->pkt_len + pkt_offset); in rtw_sdio_rx_skb() 948 skb_put(skb, pkt_stat->pkt_len); in rtw_sdio_rx_skb() 951 rtw_rx_stats(rtwdev, pkt_stat->vif, skb); in rtw_sdio_rx_skb() 962 struct rtw_rx_pkt_stat pkt_stat; in rtw_sdio_rxfifo_recv() local 983 chip->ops->query_rx_desc(rtwdev, rx_desc, &pkt_stat, in rtw_sdio_rxfifo_recv() 985 pkt_offset = pkt_desc_sz + pkt_stat.drv_info_sz + in rtw_sdio_rxfifo_recv() 986 pkt_stat.shift; in rtw_sdio_rxfifo_recv() 988 curr_pkt_len = ALIGN(pkt_offset + pkt_stat.pkt_len, in rtw_sdio_rxfifo_recv() [all …]
|
H A D | usb.c | 545 struct rtw_rx_pkt_stat pkt_stat; in rtw_usb_rx_handler() local 559 chip->ops->query_rx_desc(rtwdev, rx_desc, &pkt_stat, in rtw_usb_rx_handler() 561 pkt_offset = pkt_desc_sz + pkt_stat.drv_info_sz + in rtw_usb_rx_handler() 562 pkt_stat.shift; in rtw_usb_rx_handler() 564 if (pkt_stat.is_c2h) { in rtw_usb_rx_handler() 565 skb_put(skb, pkt_stat.pkt_len + pkt_offset); in rtw_usb_rx_handler() 576 skb_put(skb, pkt_stat.pkt_len); in rtw_usb_rx_handler()
|
H A D | rx.h | 47 struct rtw_rx_pkt_stat *pkt_stat,
|
H A D | phy.c | 615 struct rtw_rx_pkt_stat *pkt_stat; member 624 struct rtw_rx_pkt_stat *pkt_stat = iter_data->pkt_stat; in rtw_phy_parsing_cfo_iter() local 634 cfo->cfo_tail[i] += pkt_stat->cfo_tail[i]; in rtw_phy_parsing_cfo_iter() 642 struct rtw_rx_pkt_stat *pkt_stat) in rtw_phy_parsing_cfo() argument 644 struct ieee80211_hdr *hdr = pkt_stat->hdr; in rtw_phy_parsing_cfo() 647 if (pkt_stat->crc_err || pkt_stat->icv_err || !pkt_stat->phy_status || in rtw_phy_parsing_cfo() 653 data.pkt_stat = pkt_stat; in rtw_phy_parsing_cfo()
|
H A D | pci.c | 1045 struct rtw_rx_pkt_stat pkt_stat; in rtw_pci_rx_napi() local 1067 chip->ops->query_rx_desc(rtwdev, rx_desc, &pkt_stat, &rx_status); in rtw_pci_rx_napi() 1070 pkt_offset = pkt_desc_sz + pkt_stat.drv_info_sz + in rtw_pci_rx_napi() 1071 pkt_stat.shift; in rtw_pci_rx_napi() 1076 new_len = pkt_stat.pkt_len + pkt_offset; in rtw_pci_rx_napi() 1084 if (pkt_stat.is_c2h) { in rtw_pci_rx_napi() 1090 rtw_rx_stats(rtwdev, pkt_stat.vif, new); in rtw_pci_rx_napi()
|
H A D | phy.h | 65 struct rtw_rx_pkt_stat *pkt_stat);
|
H A D | main.c | 700 void rtw_set_rx_freq_band(struct rtw_rx_pkt_stat *pkt_stat, u8 channel) in rtw_set_rx_freq_band() argument 703 pkt_stat->band = NL80211_BAND_2GHZ; in rtw_set_rx_freq_band() 705 pkt_stat->band = NL80211_BAND_5GHZ; in rtw_set_rx_freq_band() 709 pkt_stat->freq = ieee80211_channel_to_frequency(channel, pkt_stat->band); in rtw_set_rx_freq_band()
|
H A D | main.h | 842 struct rtw_rx_pkt_stat *pkt_stat, 2156 void rtw_set_rx_freq_band(struct rtw_rx_pkt_stat *pkt_stat, u8 channel);
|
/openbmc/linux/drivers/net/ethernet/8390/ |
H A D | lib8390.c | 670 int pkt_len, pkt_stat; in ei_receive() local 702 pkt_stat = rx_frame.status; in ei_receive() 726 } else if ((pkt_stat & 0x0F) == ENRSR_RXOK) { in ei_receive() 745 if (pkt_stat & ENRSR_PHY) in ei_receive() 755 if (pkt_stat & ENRSR_FO) in ei_receive()
|
H A D | axnet_cs.c | 1349 int pkt_len, pkt_stat; in ei_receive() local 1378 pkt_stat = rx_frame.status; in ei_receive() 1391 else if ((pkt_stat & 0x0F) == ENRSR_RXOK) in ei_receive() 1413 if (pkt_stat & ENRSR_PHY) in ei_receive() 1425 if (pkt_stat & ENRSR_FO) in ei_receive()
|
/openbmc/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | debug.c | 3328 rtw89_debug_append_rx_rate(struct seq_file *m, struct rtw89_pkt_stat *pkt_stat, in rtw89_debug_append_rx_rate() argument 3335 pkt_stat->rx_rate_cnt[first_rate + i]); in rtw89_debug_append_rx_rate() 3365 struct rtw89_pkt_stat *pkt_stat = &rtwdev->phystat.last_pkt_stat; in rtw89_debug_priv_phy_info_get() local 3374 seq_printf(m, "Beacon: %u, TF: %u\n", pkt_stat->beacon_nr, in rtw89_debug_priv_phy_info_get() 3388 rtw89_debug_append_rx_rate(m, pkt_stat, in rtw89_debug_priv_phy_info_get() 3392 rtw89_debug_append_rx_rate(m, pkt_stat, in rtw89_debug_priv_phy_info_get()
|
H A D | core.c | 1628 struct rtw89_pkt_stat *pkt_stat = &rtwdev->phystat.cur_pkt_stat; in rtw89_vif_rx_stats_iter() local 1654 pkt_stat->beacon_nr++; in rtw89_vif_rx_stats_iter() 1661 pkt_stat->rx_rate_cnt[desc_info->data_rate]++; in rtw89_vif_rx_stats_iter()
|