| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | hbm_out_kern.c | 64 int credit; in _hbm_out_cg() local 95 credit = qdp->credit; in _hbm_out_cg() 103 new_credit = credit + CREDIT_PER_NS(delta, qdp->rate); in _hbm_out_cg() 105 credit = MAX_CREDIT; in _hbm_out_cg() 107 credit = new_credit; in _hbm_out_cg() 109 credit -= len; in _hbm_out_cg() 110 qdp->credit = credit; in _hbm_out_cg() 124 if (credit < -DROP_THRESH || in _hbm_out_cg() 125 (len > LARGE_PKT_THRESH && credit < -LARGE_PKT_DROP_THRESH)) { in _hbm_out_cg() 132 } else if (credit < 0) { in _hbm_out_cg() [all …]
|
| H A D | hbm_kern.h | 141 qdp->credit = INIT_CREDIT; in hbm_init_vqueue() 153 qdp->credit = 0; // not used in hbm_init_edt_vqueue() 165 int credit) in hbm_update_stats() argument 197 __sync_add_and_fetch(&(qsp->sum_credit), credit); in hbm_update_stats()
|
| H A D | hbm.h | 15 int credit; /* In bytes */ member
|
| /OK3568_Linux_fs/kernel/net/netfilter/ |
| H A D | xt_limit.c | 20 uint32_t credit; member 72 priv->credit += (now - xchg(&priv->prev, now)) * CREDITS_PER_JIFFY; in limit_mt() 73 if (priv->credit > r->credit_cap) in limit_mt() 74 priv->credit = r->credit_cap; in limit_mt() 76 if (priv->credit >= r->cost) { in limit_mt() 78 priv->credit -= r->cost; in limit_mt() 120 priv->credit = user2credits(r->avg * r->burst); /* Credits full. */ in limit_mt_check() 122 r->credit_cap = priv->credit; /* Credits full. */ in limit_mt_check() 143 u_int32_t credit; member 158 .credit = cm->credit, in limit_mt_compat_from_user() [all …]
|
| H A D | xt_hashlimit.c | 101 u_int64_t credit; member 556 u64 tmp = dh->rateinfo.credit; in rateinfo_recalc() 557 dh->rateinfo.credit += CREDITS_PER_JIFFY_BYTES * delta; in rateinfo_recalc() 559 if (tmp >= dh->rateinfo.credit) {/* overflow */ in rateinfo_recalc() 560 dh->rateinfo.credit = cap; in rateinfo_recalc() 566 dh->rateinfo.credit += delta * cpj; in rateinfo_recalc() 569 if (dh->rateinfo.credit > cap) in rateinfo_recalc() 570 dh->rateinfo.credit = cap; in rateinfo_recalc() 595 dh->rateinfo.credit = CREDITS_PER_JIFFY_BYTES * HZ; in rateinfo_init() 599 dh->rateinfo.credit = user2credits(hinfo->cfg.avg * in rateinfo_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/xen/ |
| H A D | balloon.c | 278 long credit; in reserve_additional_memory() local 283 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated in reserve_additional_memory() 290 if (credit <= 0) in reserve_additional_memory() 293 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory() 502 static bool balloon_thread_cond(long credit) in balloon_thread_cond() argument 505 credit = 0; in balloon_thread_cond() 507 return current_credit() != credit || kthread_should_stop(); in balloon_thread_cond() 518 long credit; in balloon_thread() local 536 credit = current_credit(); in balloon_thread() 539 balloon_thread_cond(credit), timeout); in balloon_thread() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/ |
| H A D | test_spin_lock.c | 35 int credit; member 51 volatile int credit = 0, max_credit = 100, pkt_len = 64; in bpf_sping_lock_test() local 84 q->credit += CREDIT_PER_NS(curtime - q->lasttime, q->rate); in bpf_sping_lock_test() 86 if (q->credit > max_credit) in bpf_sping_lock_test() 87 q->credit = max_credit; in bpf_sping_lock_test() 88 q->credit -= pkt_len; in bpf_sping_lock_test() 89 credit = q->credit; in bpf_sping_lock_test()
|
| /OK3568_Linux_fs/kernel/net/bridge/netfilter/ |
| H A D | ebt_limit.c | 42 info->credit += (now - xchg(&info->prev, now)) * CREDITS_PER_JIFFY; in ebt_limit_mt() 43 if (info->credit > info->credit_cap) in ebt_limit_mt() 44 info->credit = info->credit_cap; in ebt_limit_mt() 46 if (info->credit >= info->cost) { in ebt_limit_mt() 48 info->credit -= info->cost; in ebt_limit_mt() 83 info->credit = user2credits(info->avg * info->burst); in ebt_limit_mt_check() 98 compat_uint_t credit, credit_cap, cost; member
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/sw/rdmavt/ |
| H A D | rc.c | 166 u32 credit = (aeth >> IB_AETH_CREDIT_SHIFT) & IB_AETH_CREDIT_MASK; in rvt_get_credit() local 174 if (credit == IB_AETH_CREDIT_INVAL) { in rvt_get_credit() 184 credit = (aeth + credit_table[credit]) & IB_MSN_MASK; in rvt_get_credit() 185 if (rvt_cmp_msn(credit, qp->s_lsn) > 0) { in rvt_get_credit() 186 qp->s_lsn = credit; in rvt_get_credit()
|
| /OK3568_Linux_fs/kernel/net/ipv4/ |
| H A D | icmp.c | 233 u32 credit; member 248 u32 credit, delta, incr = 0, now = (u32)jiffies; in icmp_global_allow() local 255 if (!READ_ONCE(icmp_global.credit)) { in icmp_global_allow() 268 credit = min_t(u32, icmp_global.credit + incr, in icmp_global_allow() 270 if (credit) { in icmp_global_allow() 274 credit = max_t(int, credit - prandom_u32_max(3), 0); in icmp_global_allow() 277 WRITE_ONCE(icmp_global.credit, credit); in icmp_global_allow()
|
| /OK3568_Linux_fs/kernel/net/sched/ |
| H A D | sch_fq.c | 82 int credit; member 322 f->credit = q->initial_quantum; in fq_classify() 354 f->credit = q->initial_quantum; in fq_classify() 484 f->credit = max_t(u32, f->credit, q->quantum); in fq_enqueue() 561 if (f->credit <= 0) { in fq_dequeue() 562 f->credit += q->quantum; in fq_dequeue() 597 f->credit -= plen; in fq_dequeue() 613 f->credit = 0; in fq_dequeue() 616 if (f->credit > 0) in fq_dequeue()
|
| /OK3568_Linux_fs/kernel/drivers/perf/ |
| H A D | fsl_imx8_ddr_perf.c | 185 IMX8_DDR_PMU_EVENT_ATTR(lp-read-credit-cnt, 0x10), 186 IMX8_DDR_PMU_EVENT_ATTR(hp-read-credit-cnt, 0x11), 187 IMX8_DDR_PMU_EVENT_ATTR(write-credit-cnt, 0x12), 193 IMX8_DDR_PMU_EVENT_ATTR(hp-xact-credit, 0x25), 195 IMX8_DDR_PMU_EVENT_ATTR(lp-xact-credit, 0x27), 196 IMX8_DDR_PMU_EVENT_ATTR(wr-xact-credit, 0x29),
|
| /OK3568_Linux_fs/yocto/poky/meta/files/common-licenses/ |
| H A D | ANTLR-PD | 14 we do ask that credit is given to us for developing 15 ANTLR. By "credit", we mean that if you use ANTLR or
|
| H A D | ANTLR-PD-fallback | 5 …lop software with ANTLR. However, we do ask that credit is given to us for developing ANTLR. By "c…
|
| H A D | CC-BY-2.5-AU | 54 …credit as required by Section 4(b), as requested. If You create a Derivative Work, upon notice fro… 56 …credit to (i) the Original Author (by name or pseudonym if applicable), if the name or pseudonym i…
|
| H A D | CC-BY-2.5 | 37 …credit as required by clause 4(b), as requested. If You create a Derivative Work, upon notice from… 38 …credit identifying the use of the Work in the Derivative Work (e.g., "French translation of the Wo…
|
| H A D | CC-BY-1.0 | 33 …credit reasonable to the medium or means You are utilizing by conveying the name (or pseudonym if …
|
| H A D | CC-BY-NC-2.5 | 34 …credit as required by clause 4(c), as requested. If You create a Derivative Work, upon notice from… 36 …credit identifying the use of the Work in the Derivative Work (e.g., "French translation of the Wo…
|
| H A D | CC-BY-3.0-US | 49 …credit as required by Section 4(b), as requested. If You create a Derivative Work, upon notice fro… 51 …credit identifying the use of the Work in the Derivative Work (e.g., "French translation of the Wo…
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/netfilter_bridge/ |
| H A D | ebt_limit.h | 21 __u32 credit; member
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/netfilter_bridge/ |
| H A D | ebt_limit.h | 21 __u32 credit; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/netfilter_bridge/ |
| H A D | ebt_limit.h | 21 __u32 credit; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/netfilter/ |
| H A D | xt_limit.h | 20 __u32 credit; /* moved to xt_limit_priv */ member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/netfilter/ |
| H A D | xt_limit.h | 20 __u32 credit; /* moved to xt_limit_priv */ member
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/netfilter/ |
| H A D | xt_limit.h | 20 __u32 credit; /* moved to xt_limit_priv */ member
|