Home
last modified time | relevance | path

Searched refs:ri (Results 1 – 5 of 5) sorted by relevance

/net/mac80211/
Dairtime.c511 struct rate_info *ri) in ieee80211_fill_rate_info() argument
516 if (!ri || !sband) in ieee80211_fill_rate_info()
519 stat->bw = ri->bw; in ieee80211_fill_rate_info()
520 stat->nss = ri->nss; in ieee80211_fill_rate_info()
521 stat->rate_idx = ri->mcs; in ieee80211_fill_rate_info()
523 if (ri->flags & RATE_INFO_FLAGS_HE_MCS) in ieee80211_fill_rate_info()
525 else if (ri->flags & RATE_INFO_FLAGS_VHT_MCS) in ieee80211_fill_rate_info()
527 else if (ri->flags & RATE_INFO_FLAGS_MCS) in ieee80211_fill_rate_info()
532 if (ri->flags & RATE_INFO_FLAGS_SHORT_GI) in ieee80211_fill_rate_info()
535 stat->he_gi = ri->he_gi; in ieee80211_fill_rate_info()
[all …]
Dibss.c47 int rates_n = 0, i, ri; in ieee80211_ibss_build_presp() local
113 for (ri = 0; ri < sband->n_bitrates; ri++) { in ieee80211_ibss_build_presp()
114 int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate, in ieee80211_ibss_build_presp()
117 if (!(rates & BIT(ri))) in ieee80211_ibss_build_presp()
120 if (basic_rates & BIT(ri)) in ieee80211_ibss_build_presp()
124 ri++; /* continue at next rate for EXT_SUPP_RATES */ in ieee80211_ibss_build_presp()
157 for (; ri < sband->n_bitrates; ri++) { in ieee80211_ibss_build_presp()
158 int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate, in ieee80211_ibss_build_presp()
161 if (!(rates & BIT(ri))) in ieee80211_ibss_build_presp()
164 if (basic_rates & BIT(ri)) in ieee80211_ibss_build_presp()
Dutil.c3714 struct rate_info ri; in ieee80211_calculate_rx_timestamp() local
3721 memset(&ri, 0, sizeof(ri)); in ieee80211_calculate_rx_timestamp()
3723 ri.bw = status->bw; in ieee80211_calculate_rx_timestamp()
3728 ri.flags |= RATE_INFO_FLAGS_HE_MCS; in ieee80211_calculate_rx_timestamp()
3729 ri.mcs = status->rate_idx; in ieee80211_calculate_rx_timestamp()
3730 ri.nss = status->nss; in ieee80211_calculate_rx_timestamp()
3731 ri.he_ru_alloc = status->he_ru; in ieee80211_calculate_rx_timestamp()
3733 ri.flags |= RATE_INFO_FLAGS_SHORT_GI; in ieee80211_calculate_rx_timestamp()
3754 ri.mcs = status->rate_idx; in ieee80211_calculate_rx_timestamp()
3755 ri.flags |= RATE_INFO_FLAGS_MCS; in ieee80211_calculate_rx_timestamp()
[all …]
/net/core/
Dfilter.c2456 struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); in skb_do_redirect() local
2459 u32 flags = ri->flags; in skb_do_redirect()
2461 dev = dev_get_by_index_rcu(net, ri->tgt_index); in skb_do_redirect()
2462 ri->tgt_index = 0; in skb_do_redirect()
2463 ri->flags = 0; in skb_do_redirect()
2482 &ri->nh : NULL) : in skb_do_redirect()
2491 struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); in BPF_CALL_2() local
2496 ri->flags = flags; in BPF_CALL_2()
2497 ri->tgt_index = ifindex; in BPF_CALL_2()
2512 struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); in BPF_CALL_2() local
[all …]
/net/ipv6/
Dndisc.c1454 struct route_info *ri = (struct route_info *)p; in ndisc_router_discovery() local
1457 ri->prefix_len == 0) in ndisc_router_discovery()
1460 if (ri->prefix_len == 0 && in ndisc_router_discovery()
1463 if (ri->lifetime != 0 && in ndisc_router_discovery()
1464 ntohl(ri->lifetime) < ACCEPT_RA_MIN_LFT(in6_dev->cnf)) in ndisc_router_discovery()
1466 if (ri->prefix_len < in6_dev->cnf.accept_ra_rt_info_min_plen) in ndisc_router_discovery()
1468 if (ri->prefix_len > in6_dev->cnf.accept_ra_rt_info_max_plen) in ndisc_router_discovery()