Home
last modified time | relevance | path

Searched refs:pkt_stat (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/drivers/net/wireless/realtek/rtw88/
Drx.c38 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 …]
Drtw8822b.c821 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page0() argument
828 pkt_stat->rx_power[RF_PATH_A] = pwdb - 110; in query_phy_status_page0()
829 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page0()
830 pkt_stat->bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page0()
831 pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page0()
833 dm_info->rssi[RF_PATH_A] = pkt_stat->rssi; in query_phy_status_page0()
837 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page1() argument
847 if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0) in query_phy_status_page1()
861 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
862 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1()
[all …]
Drtw8821c.c515 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page0() argument
527 pkt_stat->rx_power[RF_PATH_A] = rx_power; in query_phy_status_page0()
528 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page0()
529 dm_info->rssi[RF_PATH_A] = pkt_stat->rssi; in query_phy_status_page0()
530 pkt_stat->bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page0()
531 pkt_stat->signal_power = rx_power; in query_phy_status_page0()
535 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page1() argument
541 if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0) in query_phy_status_page1()
555 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
556 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page1()
[all …]
Drtw8723d.c251 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page0() argument
257 pkt_stat->rx_power[RF_PATH_A] = pwdb - 97; in query_phy_status_page0()
258 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page0()
259 pkt_stat->bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page0()
260 pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page0()
262 dm_info->rssi[RF_PATH_A] = pkt_stat->rssi; in query_phy_status_page0()
266 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page1() argument
273 if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0) in query_phy_status_page1()
285 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
286 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page1()
[all …]
Drtw8822c.c2530 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page0() argument
2562 rtw_set_rx_freq_band(pkt_stat, channel); in query_phy_status_page0()
2564 pkt_stat->rx_power[RF_PATH_A] = rx_power[RF_PATH_A]; in query_phy_status_page0()
2565 pkt_stat->rx_power[RF_PATH_B] = rx_power[RF_PATH_B]; in query_phy_status_page0()
2568 rssi = rtw_phy_rf_power_2_rssi(&pkt_stat->rx_power[path], 1); in query_phy_status_page0()
2572 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page0()
2573 pkt_stat->bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page0()
2574 pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page0()
2579 struct rtw_rx_pkt_stat *pkt_stat) in query_phy_status_page1() argument
2591 if (pkt_stat->rate > DESC_RATE11M && pkt_stat->rate < DESC_RATEMCS0) in query_phy_status_page1()
[all …]
Drx.h47 struct rtw_rx_pkt_stat *pkt_stat,
Dphy.c615 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()
Dpci.c1079 struct rtw_rx_pkt_stat pkt_stat; in rtw_pci_rx_napi() local
1101 chip->ops->query_rx_desc(rtwdev, rx_desc, &pkt_stat, &rx_status); in rtw_pci_rx_napi()
1104 pkt_offset = pkt_desc_sz + pkt_stat.drv_info_sz + in rtw_pci_rx_napi()
1105 pkt_stat.shift; in rtw_pci_rx_napi()
1110 new_len = pkt_stat.pkt_len + pkt_offset; in rtw_pci_rx_napi()
1118 if (pkt_stat.is_c2h) { in rtw_pci_rx_napi()
1124 rtw_rx_stats(rtwdev, pkt_stat.vif, new); in rtw_pci_rx_napi()
Dphy.h65 struct rtw_rx_pkt_stat *pkt_stat);
Dmain.c659 void rtw_set_rx_freq_band(struct rtw_rx_pkt_stat *pkt_stat, u8 channel) in rtw_set_rx_freq_band() argument
662 pkt_stat->band = NL80211_BAND_2GHZ; in rtw_set_rx_freq_band()
664 pkt_stat->band = NL80211_BAND_5GHZ; in rtw_set_rx_freq_band()
668 pkt_stat->freq = ieee80211_channel_to_frequency(channel, pkt_stat->band); in rtw_set_rx_freq_band()
Dmain.h838 struct rtw_rx_pkt_stat *pkt_stat,
2149 void rtw_set_rx_freq_band(struct rtw_rx_pkt_stat *pkt_stat, u8 channel);
/linux-6.1.9/drivers/net/ethernet/8390/
Dlib8390.c671 int pkt_len, pkt_stat; in ei_receive() local
703 pkt_stat = rx_frame.status; in ei_receive()
727 } else if ((pkt_stat & 0x0F) == ENRSR_RXOK) { in ei_receive()
746 if (pkt_stat & ENRSR_PHY) in ei_receive()
756 if (pkt_stat & ENRSR_FO) in ei_receive()
Daxnet_cs.c1352 int pkt_len, pkt_stat; in ei_receive() local
1381 pkt_stat = rx_frame.status; in ei_receive()
1394 else if ((pkt_stat & 0x0F) == ENRSR_RXOK) in ei_receive()
1416 if (pkt_stat & ENRSR_PHY) in ei_receive()
1428 if (pkt_stat & ENRSR_FO) in ei_receive()
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Ddebug.c2397 rtw89_debug_append_rx_rate(struct seq_file *m, struct rtw89_pkt_stat *pkt_stat, in rtw89_debug_append_rx_rate() argument
2404 pkt_stat->rx_rate_cnt[first_rate + i]); in rtw89_debug_append_rx_rate()
2428 struct rtw89_pkt_stat *pkt_stat = &rtwdev->phystat.last_pkt_stat; in rtw89_debug_priv_phy_info_get() local
2435 seq_printf(m, "Beacon: %u, TF: %u\n", pkt_stat->beacon_nr, in rtw89_debug_priv_phy_info_get()
2444 rtw89_debug_append_rx_rate(m, pkt_stat, in rtw89_debug_priv_phy_info_get()
2448 rtw89_debug_append_rx_rate(m, pkt_stat, in rtw89_debug_priv_phy_info_get()
Dcore.c1395 struct rtw89_pkt_stat *pkt_stat = &rtwdev->phystat.cur_pkt_stat; in rtw89_vif_rx_stats_iter() local
1410 pkt_stat->beacon_nr++; in rtw89_vif_rx_stats_iter()
1416 pkt_stat->rx_rate_cnt[desc_info->data_rate]++; in rtw89_vif_rx_stats_iter()