Home
last modified time | relevance | path

Searched refs:est (Results 1 – 25 of 65) sorted by relevance

123

/Linux-v5.10/net/core/
Dgen_estimator.c78 struct net_rate_estimator *est = from_timer(est, t, timer); in est_timer() local
82 est_fetch_counters(est, &b); in est_timer()
83 brate = (b.bytes - est->last_bytes) << (10 - est->ewma_log - est->intvl_log); in est_timer()
84 brate -= (est->avbps >> est->ewma_log); in est_timer()
86 rate = (b.packets - est->last_packets) << (10 - est->ewma_log - est->intvl_log); in est_timer()
87 rate -= (est->avpps >> est->ewma_log); in est_timer()
89 write_seqcount_begin(&est->seq); in est_timer()
90 est->avbps += brate; in est_timer()
91 est->avpps += rate; in est_timer()
92 write_seqcount_end(&est->seq); in est_timer()
[all …]
Dgen_stats.c257 struct gnet_stats_rate_est est; in gnet_stats_copy_rate_est() local
262 est.bps = min_t(u64, UINT_MAX, sample.bps); in gnet_stats_copy_rate_est()
264 est.pps = sample.pps; in gnet_stats_copy_rate_est()
267 d->tc_stats.bps = est.bps; in gnet_stats_copy_rate_est()
268 d->tc_stats.pps = est.pps; in gnet_stats_copy_rate_est()
272 res = gnet_stats_copy(d, TCA_STATS_RATE_EST, &est, sizeof(est), in gnet_stats_copy_rate_est()
274 if (res < 0 || est.bps == sample.bps) in gnet_stats_copy_rate_est()
/Linux-v5.10/net/netfilter/
Dxt_RATEEST.c38 struct xt_rateest *est) in xt_rateest_hash_insert() argument
42 h = xt_rateest_hash(est->name); in xt_rateest_hash_insert()
43 hlist_add_head(&est->list, &xn->hash[h]); in xt_rateest_hash_insert()
49 struct xt_rateest *est; in __xt_rateest_lookup() local
53 hlist_for_each_entry(est, &xn->hash[h], list) { in __xt_rateest_lookup()
54 if (strcmp(est->name, name) == 0) { in __xt_rateest_lookup()
55 est->refcnt++; in __xt_rateest_lookup()
56 return est; in __xt_rateest_lookup()
66 struct xt_rateest *est; in xt_rateest_lookup() local
69 est = __xt_rateest_lookup(xn, name); in xt_rateest_lookup()
[all …]
Dnft_set_hash.c402 struct nft_set_estimate *est) in nft_rhash_estimate() argument
404 est->size = ~0; in nft_rhash_estimate()
405 est->lookup = NFT_SET_CLASS_O_1; in nft_rhash_estimate()
406 est->space = NFT_SET_CLASS_O_N; in nft_rhash_estimate()
630 struct nft_set_estimate *est) in nft_hash_estimate() argument
638 est->size = sizeof(struct nft_hash) + in nft_hash_estimate()
641 est->lookup = NFT_SET_CLASS_O_1; in nft_hash_estimate()
642 est->space = NFT_SET_CLASS_O_N; in nft_hash_estimate()
648 struct nft_set_estimate *est) in nft_hash_fast_estimate() argument
656 est->size = sizeof(struct nft_hash) + in nft_hash_fast_estimate()
[all …]
Dnft_set_bitmap.c283 struct nft_set_estimate *est) in nft_bitmap_estimate() argument
291 est->size = nft_bitmap_total_size(desc->klen); in nft_bitmap_estimate()
292 est->lookup = NFT_SET_CLASS_O_1; in nft_bitmap_estimate()
293 est->space = NFT_SET_CLASS_O_1; in nft_bitmap_estimate()
Dnft_set_pipapo_avx2.h11 struct nft_set_estimate *est);
Dnft_set_rbtree.c590 struct nft_set_estimate *est) in nft_rbtree_estimate() argument
596 est->size = sizeof(struct nft_rbtree) + in nft_rbtree_estimate()
599 est->size = ~0; in nft_rbtree_estimate()
601 est->lookup = NFT_SET_CLASS_O_LOG_N; in nft_rbtree_estimate()
602 est->space = NFT_SET_CLASS_O_N; in nft_rbtree_estimate()
/Linux-v5.10/net/netfilter/ipvs/
Dip_vs_est.c105 s = container_of(e, struct ip_vs_stats, est); in estimation_timer()
139 struct ip_vs_estimator *est = &stats->est; in ip_vs_start_estimator() local
141 INIT_LIST_HEAD(&est->list); in ip_vs_start_estimator()
144 list_add(&est->list, &ipvs->est_list); in ip_vs_start_estimator()
150 struct ip_vs_estimator *est = &stats->est; in ip_vs_stop_estimator() local
153 list_del(&est->list); in ip_vs_stop_estimator()
159 struct ip_vs_estimator *est = &stats->est; in ip_vs_zero_estimator() local
163 est->last_inbytes = k->inbytes; in ip_vs_zero_estimator()
164 est->last_outbytes = k->outbytes; in ip_vs_zero_estimator()
165 est->last_conns = k->conns; in ip_vs_zero_estimator()
[all …]
/Linux-v5.10/arch/powerpc/boot/
Dcuboot-acadia.c52 unsigned long est; /* current estimate */ in get_clocks() local
137 est = i * ibdiv; in get_clocks()
138 idiff = (est > div) ? (est-div) : (div-est); in get_clocks()
/Linux-v5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_tc.c659 if (!plat->est) { in tc_setup_taprio()
660 plat->est = devm_kzalloc(priv->device, sizeof(*plat->est), in tc_setup_taprio()
662 if (!plat->est) in tc_setup_taprio()
665 memset(plat->est, 0, sizeof(*plat->est)); in tc_setup_taprio()
670 priv->plat->est->gcl_size = size; in tc_setup_taprio()
671 priv->plat->est->enable = qopt->enable; in tc_setup_taprio()
699 priv->plat->est->gcl[i] = delta_ns | (gates << wid); in tc_setup_taprio()
704 priv->plat->est->btr[0] = (u32)time.tv_nsec; in tc_setup_taprio()
705 priv->plat->est->btr[1] = (u32)time.tv_sec; in tc_setup_taprio()
708 priv->plat->est->ctr[0] = do_div(ctr, NSEC_PER_SEC); in tc_setup_taprio()
[all …]
/Linux-v5.10/include/net/
Dact_api.h102 struct nlattr *est, struct tc_action **act, int ovr,
162 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est,
166 struct nlattr *est, struct tc_action **a,
186 struct nlattr *est, char *name, int ovr, int bind,
190 struct nlattr *nla, struct nlattr *est,
/Linux-v5.10/drivers/media/dvb-frontends/
Ddib7000m.c846 u16 value, est[4]; in dib7000m_set_channel() local
939 est[0] = 0x0148; /* P_adp_regul_cnt 0.04 */ in dib7000m_set_channel()
940 est[1] = 0xfff0; /* P_adp_noise_cnt -0.002 */ in dib7000m_set_channel()
941 est[2] = 0x00a4; /* P_adp_regul_ext 0.02 */ in dib7000m_set_channel()
942 est[3] = 0xfff8; /* P_adp_noise_ext -0.001 */ in dib7000m_set_channel()
945 est[0] = 0x023d; /* P_adp_regul_cnt 0.07 */ in dib7000m_set_channel()
946 est[1] = 0xffdf; /* P_adp_noise_cnt -0.004 */ in dib7000m_set_channel()
947 est[2] = 0x00a4; /* P_adp_regul_ext 0.02 */ in dib7000m_set_channel()
948 est[3] = 0xfff0; /* P_adp_noise_ext -0.002 */ in dib7000m_set_channel()
951 est[0] = 0x099a; /* P_adp_regul_cnt 0.3 */ in dib7000m_set_channel()
[all …]
Ddib7000p.c974 u16 value, est[4]; in dib7000p_set_channel() local
1108 est[0] = 0x0148; /* P_adp_regul_cnt 0.04 */ in dib7000p_set_channel()
1109 est[1] = 0xfff0; /* P_adp_noise_cnt -0.002 */ in dib7000p_set_channel()
1110 est[2] = 0x00a4; /* P_adp_regul_ext 0.02 */ in dib7000p_set_channel()
1111 est[3] = 0xfff8; /* P_adp_noise_ext -0.001 */ in dib7000p_set_channel()
1114 est[0] = 0x023d; /* P_adp_regul_cnt 0.07 */ in dib7000p_set_channel()
1115 est[1] = 0xffdf; /* P_adp_noise_cnt -0.004 */ in dib7000p_set_channel()
1116 est[2] = 0x00a4; /* P_adp_regul_ext 0.02 */ in dib7000p_set_channel()
1117 est[3] = 0xfff0; /* P_adp_noise_ext -0.002 */ in dib7000p_set_channel()
1120 est[0] = 0x099a; /* P_adp_regul_cnt 0.3 */ in dib7000p_set_channel()
[all …]
/Linux-v5.10/net/sched/
Dact_ipt.c96 struct nlattr *est, struct tc_action **a, in __tcf_ipt_init() argument
146 ret = tcf_idr_create(tn, index, est, a, ops, bind, in __tcf_ipt_init()
204 struct nlattr *est, struct tc_action **a, int ovr, in tcf_ipt_init() argument
208 return __tcf_ipt_init(net, ipt_net_id, nla, est, a, &act_ipt_ops, ovr, in tcf_ipt_init()
213 struct nlattr *est, struct tc_action **a, int ovr, in tcf_xt_init() argument
217 return __tcf_ipt_init(net, xt_net_id, nla, est, a, &act_xt_ops, ovr, in tcf_xt_init()
Dact_api.c408 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est, in tcf_idr_create() argument
439 if (est) { in tcf_idr_create()
442 &p->tcfa_lock, NULL, est); in tcf_idr_create()
464 struct nlattr *est, struct tc_action **a, in tcf_idr_create_from_flags() argument
469 return tcf_idr_create(tn, index, est, a, ops, bind, in tcf_idr_create_from_flags()
912 struct nlattr *nla, struct nlattr *est, in tcf_action_init_1() argument
990 err = a_o->init(net, tb[TCA_ACT_OPTIONS], est, &a, ovr, bind, in tcf_action_init_1()
993 err = a_o->init(net, nla, est, &a, ovr, bind, rtnl_held, in tcf_action_init_1()
1027 struct nlattr *est, char *name, int ovr, int bind, in tcf_action_init() argument
1043 act = tcf_action_init_1(net, tp, tb[i], est, name, ovr, bind, in tcf_action_init()
Dact_connmark.c98 struct nlattr *est, struct tc_action **a, in tcf_connmark_init() argument
126 ret = tcf_idr_create(tn, index, est, a, in tcf_connmark_init()
Dact_simple.c87 struct nlattr *est, struct tc_action **a, in tcf_simp_init() argument
130 ret = tcf_idr_create(tn, index, est, a, in tcf_simp_init()
Dact_police.c48 struct nlattr *est, struct tc_action **a, in tcf_police_init() argument
120 if (est) { in tcf_police_init()
125 NULL, est); in tcf_police_init()
Dact_gact.c54 struct nlattr *est, struct tc_action **a, in tcf_gact_init() argument
102 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_gact_init()
Dact_nat.c36 static int tcf_nat_init(struct net *net, struct nlattr *nla, struct nlattr *est, in tcf_nat_init() argument
63 ret = tcf_idr_create(tn, index, est, a, in tcf_nat_init()
/Linux-v5.10/drivers/atm/
Didt77252.c2078 struct rate_estimator *est = from_timer(est, t, timer); in idt77252_est_timer() local
2079 struct vc_map *vc = est->vc; in idt77252_est_timer()
2089 ncells = est->cells; in idt77252_est_timer()
2091 rate = ((u32)(ncells - est->last_cells)) << (7 - est->interval); in idt77252_est_timer()
2092 est->last_cells = ncells; in idt77252_est_timer()
2093 est->avcps += ((long)rate - (long)est->avcps) >> est->ewma_log; in idt77252_est_timer()
2094 est->cps = (est->avcps + 0x1f) >> 5; in idt77252_est_timer()
2096 cps = est->cps; in idt77252_est_timer()
2097 if (cps < (est->maxcps >> 4)) in idt77252_est_timer()
2098 cps = est->maxcps >> 4; in idt77252_est_timer()
[all …]
/Linux-v5.10/drivers/net/ethernet/ibm/emac/
Dcore.c1973 struct emac_error_stats *est = &dev->estats; in emac_stats() local
1985 nst->rx_dropped = (unsigned long)(est->rx_dropped_oom + in emac_stats()
1986 est->rx_dropped_error + in emac_stats()
1987 est->rx_dropped_resize + in emac_stats()
1988 est->rx_dropped_mtu); in emac_stats()
1989 nst->tx_dropped = (unsigned long)est->tx_dropped; in emac_stats()
1991 nst->rx_errors = (unsigned long)est->rx_bd_errors; in emac_stats()
1992 nst->rx_fifo_errors = (unsigned long)(est->rx_bd_overrun + in emac_stats()
1993 est->rx_fifo_overrun + in emac_stats()
1994 est->rx_overrun); in emac_stats()
[all …]
/Linux-v5.10/include/uapi/linux/netfilter/
Dxt_RATEEST.h14 struct xt_rateest *est __attribute__((aligned(8))); member
/Linux-v5.10/include/net/netfilter/
Dxt_rateest.h25 void xt_rateest_put(struct net *net, struct xt_rateest *est);
/Linux-v5.10/tools/power/cpupower/po/
Dfr.po348 "Le régulateur \"%s\" est libre de choisir la vitesse\n"
354 msgstr " la fréquence actuelle de ce CPU est "
497 "argument, ou bien si seulement l'argument -c (--cpu) est donné, afin de\n"
505 msgstr "Les arguments avec un * utiliseront le CPU 0 si -c (--cpu) est omis\n"
512 msgstr "Cette option est incompatible avec --cpu\n"
592 msgstr "Les arguments avec un * utiliseront le CPU 0 si -c (--cpu) est omis\n"
605 "1. Le CPU numéro 0 sera utilisé par défaut si -c (ou --cpu) est omis ;\n"
625 "En ajustant les nouveaux paramètres, une erreur est apparue. Les sources\n"
628 "- le régulateur choisi n'est pas disponible, ou bien n'est pas disponible "
631 "- la tactique n'est pas disponible ;\n"
[all …]

123