Home
last modified time | relevance | path

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

123

/linux-6.1.9/net/core/
Dgen_estimator.c78 struct net_rate_estimator *est = from_timer(est, t, timer); in est_timer() local
83 est_fetch_counters(est, &b); in est_timer()
87 brate = (b_bytes - est->last_bytes) << (10 - est->intvl_log); in est_timer()
88 brate = (brate >> est->ewma_log) - (est->avbps >> est->ewma_log); in est_timer()
90 rate = (b_packets - est->last_packets) << (10 - est->intvl_log); in est_timer()
91 rate = (rate >> est->ewma_log) - (est->avpps >> est->ewma_log); in est_timer()
93 write_seqcount_begin(&est->seq); in est_timer()
94 est->avbps += brate; in est_timer()
95 est->avpps += rate; in est_timer()
96 write_seqcount_end(&est->seq); in est_timer()
[all …]
Dgen_stats.c312 struct gnet_stats_rate_est est; in gnet_stats_copy_rate_est() local
317 est.bps = min_t(u64, UINT_MAX, sample.bps); in gnet_stats_copy_rate_est()
319 est.pps = sample.pps; in gnet_stats_copy_rate_est()
322 d->tc_stats.bps = est.bps; in gnet_stats_copy_rate_est()
323 d->tc_stats.pps = est.pps; in gnet_stats_copy_rate_est()
327 res = gnet_stats_copy(d, TCA_STATS_RATE_EST, &est, sizeof(est), in gnet_stats_copy_rate_est()
329 if (res < 0 || est.bps == sample.bps) in gnet_stats_copy_rate_est()
/linux-6.1.9/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.c432 struct nft_set_estimate *est) in nft_rhash_estimate() argument
434 est->size = ~0; in nft_rhash_estimate()
435 est->lookup = NFT_SET_CLASS_O_1; in nft_rhash_estimate()
436 est->space = NFT_SET_CLASS_O_N; in nft_rhash_estimate()
662 struct nft_set_estimate *est) in nft_hash_estimate() argument
670 est->size = sizeof(struct nft_hash) + in nft_hash_estimate()
673 est->lookup = NFT_SET_CLASS_O_1; in nft_hash_estimate()
674 est->space = NFT_SET_CLASS_O_N; in nft_hash_estimate()
680 struct nft_set_estimate *est) in nft_hash_fast_estimate() argument
688 est->size = sizeof(struct nft_hash) + in nft_hash_fast_estimate()
[all …]
Dnft_set_bitmap.c284 struct nft_set_estimate *est) in nft_bitmap_estimate() argument
292 est->size = nft_bitmap_total_size(desc->klen); in nft_bitmap_estimate()
293 est->lookup = NFT_SET_CLASS_O_1; in nft_bitmap_estimate()
294 est->space = NFT_SET_CLASS_O_1; in nft_bitmap_estimate()
Dnft_set_pipapo_avx2.h9 struct nft_set_estimate *est);
Dnft_set_rbtree.c677 struct nft_set_estimate *est) in nft_rbtree_estimate() argument
683 est->size = sizeof(struct nft_rbtree) + in nft_rbtree_estimate()
686 est->size = ~0; in nft_rbtree_estimate()
688 est->lookup = NFT_SET_CLASS_O_LOG_N; in nft_rbtree_estimate()
689 est->space = NFT_SET_CLASS_O_N; in nft_rbtree_estimate()
/linux-6.1.9/net/netfilter/ipvs/
Dip_vs_est.c108 s = container_of(e, struct ip_vs_stats, est); in estimation_timer()
144 struct ip_vs_estimator *est = &stats->est; in ip_vs_start_estimator() local
146 INIT_LIST_HEAD(&est->list); in ip_vs_start_estimator()
149 list_add(&est->list, &ipvs->est_list); in ip_vs_start_estimator()
155 struct ip_vs_estimator *est = &stats->est; in ip_vs_stop_estimator() local
158 list_del(&est->list); in ip_vs_stop_estimator()
164 struct ip_vs_estimator *est = &stats->est; in ip_vs_zero_estimator() local
168 est->last_inbytes = k->inbytes; in ip_vs_zero_estimator()
169 est->last_outbytes = k->outbytes; in ip_vs_zero_estimator()
170 est->last_conns = k->conns; in ip_vs_zero_estimator()
[all …]
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c80 if (priv->plat->est && priv->plat->est->enable) { in stmmac_adjust_time()
82 mutex_lock(&priv->plat->est->lock); in stmmac_adjust_time()
83 priv->plat->est->enable = false; in stmmac_adjust_time()
84 stmmac_est_configure(priv, priv->ioaddr, priv->plat->est, in stmmac_adjust_time()
86 mutex_unlock(&priv->plat->est->lock); in stmmac_adjust_time()
99 mutex_lock(&priv->plat->est->lock); in stmmac_adjust_time()
102 time.tv_nsec = priv->plat->est->btr_reserve[0]; in stmmac_adjust_time()
103 time.tv_sec = priv->plat->est->btr_reserve[1]; in stmmac_adjust_time()
105 cycle_time = (u64)priv->plat->est->ctr[1] * NSEC_PER_SEC + in stmmac_adjust_time()
106 priv->plat->est->ctr[0]; in stmmac_adjust_time()
[all …]
Dstmmac_tc.c973 if (!plat->est) { in tc_setup_taprio()
974 plat->est = devm_kzalloc(priv->device, sizeof(*plat->est), in tc_setup_taprio()
976 if (!plat->est) in tc_setup_taprio()
979 mutex_init(&priv->plat->est->lock); in tc_setup_taprio()
981 memset(plat->est, 0, sizeof(*plat->est)); in tc_setup_taprio()
986 mutex_lock(&priv->plat->est->lock); in tc_setup_taprio()
987 priv->plat->est->gcl_size = size; in tc_setup_taprio()
988 priv->plat->est->enable = qopt->enable; in tc_setup_taprio()
989 mutex_unlock(&priv->plat->est->lock); in tc_setup_taprio()
1017 priv->plat->est->gcl[i] = delta_ns | (gates << wid); in tc_setup_taprio()
[all …]
/linux-6.1.9/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-6.1.9/net/sched/
Dact_ipt.c93 struct nlattr *est, struct tc_action **a, in __tcf_ipt_init() argument
144 ret = tcf_idr_create(tn, index, est, a, ops, bind, in __tcf_ipt_init()
202 struct nlattr *est, struct tc_action **a, in tcf_ipt_init() argument
206 return __tcf_ipt_init(net, act_ipt_ops.net_id, nla, est, in tcf_ipt_init()
211 struct nlattr *est, struct tc_action **a, in tcf_xt_init() argument
215 return __tcf_ipt_init(net, act_xt_ops.net_id, nla, est, in tcf_xt_init()
Dact_connmark.c97 struct nlattr *est, struct tc_action **a, in tcf_connmark_init() argument
125 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_api.c737 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est, in tcf_idr_create() argument
770 if (est) { in tcf_idr_create()
773 &p->tcfa_lock, false, est); in tcf_idr_create()
796 struct nlattr *est, struct tc_action **a, in tcf_idr_create_from_flags() argument
801 return tcf_idr_create(tn, index, est, a, ops, bind, in tcf_idr_create_from_flags()
1363 struct nlattr *nla, struct nlattr *est, in tcf_action_init_1() argument
1398 err = a_o->init(net, tb[TCA_ACT_OPTIONS], est, &a, tp, in tcf_action_init_1()
1401 err = a_o->init(net, nla, est, &a, tp, userflags.value | flags, in tcf_action_init_1()
1432 struct nlattr *est, struct tc_action *actions[], in tcf_action_init() argument
1463 act = tcf_action_init_1(net, tp, tb[i], est, ops[i - 1], in tcf_action_init()
Dact_skbmod.c101 struct nlattr *est, struct tc_action **a, in tcf_skbmod_init() argument
169 ret = tcf_idr_create(tn, index, est, a, in tcf_skbmod_init()
Dact_gact.c53 struct nlattr *est, struct tc_action **a, in tcf_gact_init() argument
101 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_gact_init()
/linux-6.1.9/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-6.1.9/include/net/
Dact_api.h123 struct nlattr *est, struct tc_action **act,
186 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est,
190 struct nlattr *est, struct tc_action **a,
206 struct nlattr *est,
213 struct nlattr *nla, struct nlattr *est,
/linux-6.1.9/drivers/atm/
Didt77252.c2072 struct rate_estimator *est = from_timer(est, t, timer); in idt77252_est_timer() local
2073 struct vc_map *vc = est->vc; in idt77252_est_timer()
2083 ncells = est->cells; in idt77252_est_timer()
2085 rate = ((u32)(ncells - est->last_cells)) << (7 - est->interval); in idt77252_est_timer()
2086 est->last_cells = ncells; in idt77252_est_timer()
2087 est->avcps += ((long)rate - (long)est->avcps) >> est->ewma_log; in idt77252_est_timer()
2088 est->cps = (est->avcps + 0x1f) >> 5; in idt77252_est_timer()
2090 cps = est->cps; in idt77252_est_timer()
2091 if (cps < (est->maxcps >> 4)) in idt77252_est_timer()
2092 cps = est->maxcps >> 4; in idt77252_est_timer()
[all …]
/linux-6.1.9/drivers/net/ethernet/ibm/emac/
Dcore.c1974 struct emac_error_stats *est = &dev->estats; in emac_stats() local
1986 nst->rx_dropped = (unsigned long)(est->rx_dropped_oom + in emac_stats()
1987 est->rx_dropped_error + in emac_stats()
1988 est->rx_dropped_resize + in emac_stats()
1989 est->rx_dropped_mtu); in emac_stats()
1990 nst->tx_dropped = (unsigned long)est->tx_dropped; in emac_stats()
1992 nst->rx_errors = (unsigned long)est->rx_bd_errors; in emac_stats()
1993 nst->rx_fifo_errors = (unsigned long)(est->rx_bd_overrun + in emac_stats()
1994 est->rx_fifo_overrun + in emac_stats()
1995 est->rx_overrun); in emac_stats()
[all …]
/linux-6.1.9/include/uapi/linux/netfilter/
Dxt_RATEEST.h14 struct xt_rateest *est __attribute__((aligned(8))); member
/linux-6.1.9/include/net/netfilter/
Dxt_rateest.h25 void xt_rateest_put(struct net *net, struct xt_rateest *est);
/linux-6.1.9/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