Home
last modified time | relevance | path

Searched full:credit (Results 1 – 25 of 608) sorted by relevance

12345678910>>...25

/kernel/linux/linux-6.6/samples/bpf/
Dhbm_out_kern.c19 * CREDIT
36 * If the credit is below the drop threshold, the packet is dropped. If it
64 int credit; in _hbm_out_cg() local
95 credit = qdp->credit; in _hbm_out_cg()
99 * the new credit, so we should not add it ourselves 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()
[all …]
/kernel/linux/linux-5.10/samples/bpf/
Dhbm_out_kern.c19 * CREDIT
36 * If the credit is below the drop threshold, the packet is dropped. If it
64 int credit; in _hbm_out_cg() local
95 credit = qdp->credit; in _hbm_out_cg()
99 * the new credit, so we should not add it ourselves 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()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dxt_limit.c20 uint32_t credit; member
35 amount of credit `credit' and the most credit you can ever have
39 `prev' tracks the last packet hit: you gain one credit per jiffy.
40 If you get credit balance more than this, the extra credit is
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()
[all …]
/kernel/linux/linux-6.6/net/netfilter/
Dxt_limit.c18 u32 credit; member
33 amount of credit `credit' and the most credit you can ever have
37 `prev' tracks the last packet hit: you gain one credit per jiffy.
38 If you get credit balance more than this, the extra credit is
72 if ((READ_ONCE(priv->credit) < r->cost) && (READ_ONCE(priv->prev) == jiffies)) in limit_mt()
78 old_credit = READ_ONCE(priv->credit); in limit_mt()
89 } while (cmpxchg(&priv->credit, old_credit, new_credit) != old_credit); in limit_mt()
127 priv->credit = user2credits(r->avg * r->burst); /* Credits full. */ in limit_mt_check()
129 r->credit_cap = priv->credit; /* Credits full. */ in limit_mt_check()
149 u_int32_t credit; member
[all …]
/kernel/linux/linux-6.6/drivers/infiniband/sw/rdmavt/
Drc.c10 * Convert the AETH credit code into the number of credits.
59 * Set the credit field to the invalid value. in rvt_compute_aeth()
91 * Binary search the credit table to find the code to in rvt_compute_aeth()
124 u32 credit = (aeth >> IB_AETH_CREDIT_SHIFT) & IB_AETH_CREDIT_MASK; in rvt_get_credit() local
128 * If the credit is invalid, we can send in rvt_get_credit()
130 * honor the credit field. in rvt_get_credit()
132 if (credit == IB_AETH_CREDIT_INVAL) { in rvt_get_credit()
141 /* Compute new LSN (i.e., MSN + credit) */ in rvt_get_credit()
142 credit = (aeth + credit_table[credit]) & IB_MSN_MASK; in rvt_get_credit()
143 if (rvt_cmp_msn(credit, qp->s_lsn) > 0) { in rvt_get_credit()
[all …]
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/ivytown/
Duncore-interconnect.json260 "BriefDescription": "No AD Egress Credit Stalls",
268 "BriefDescription": "No BL Egress Credit Stalls",
644 "BriefDescription": "VN0 Credit Consumed; DRS",
648credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha…
653 "BriefDescription": "VN0 Credit Consumed; HOM",
657credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha…
662 "BriefDescription": "VN0 Credit Consumed; NCB",
666credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha…
671 "BriefDescription": "VN0 Credit Consumed; NCS",
675credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha…
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
Dtest_spin_lock.c36 int credit; member
52 volatile int credit = 0, max_credit = 100, pkt_len = 64; in bpf_spin_lock_test() local
85 q->credit += CREDIT_PER_NS(curtime - q->lasttime, q->rate); in bpf_spin_lock_test()
87 if (q->credit > max_credit) in bpf_spin_lock_test()
88 q->credit = max_credit; in bpf_spin_lock_test()
89 q->credit -= pkt_len; in bpf_spin_lock_test()
90 credit = q->credit; in bpf_spin_lock_test()
93 __sink(credit); in bpf_spin_lock_test()
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/jaketown/
Duncore-interconnect.json251 "BriefDescription": "No AD Egress Credit Stalls",
259 "BriefDescription": "No BL Egress Credit Stalls",
401 "BriefDescription": "VN0 Credit Consumed; DRS",
405 …tion": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 cr…
410 "BriefDescription": "VN0 Credit Consumed; HOM",
414 …tion": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 cr…
419 "BriefDescription": "VN0 Credit Consumed; NCB",
423 …tion": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 cr…
428 "BriefDescription": "VN0 Credit Consumed; NCS",
432 …tion": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 cr…
[all …]
Duncore-io.json11 "BriefDescription": "R2PCIe IIO Credit Acquired; DRS",
15 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar…
20 "BriefDescription": "R2PCIe IIO Credit Acquired; NCB",
24 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar…
29 "BriefDescription": "R2PCIe IIO Credit Acquired; NCS",
33 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar…
38 "BriefDescription": "R2PCIe IIO Failed to Acquire a Credit; DRS",
42 …quest pending in the BL Ingress attempted to acquire either a NCB or NCS credit to transmit into t…
47 "BriefDescription": "R2PCIe IIO Failed to Acquire a Credit; NCB",
51 …quest pending in the BL Ingress attempted to acquire either a NCB or NCS credit to transmit into t…
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_spin_lock.c35 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()
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/haswellx/
Duncore-interconnect.json459 "BriefDescription": "No AD Egress Credit Stalls",
467 "BriefDescription": "No BL Egress Credit Stalls",
637 "BriefDescription": "VN0 Credit Consumed; DRS",
641credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha…
646 "BriefDescription": "VN0 Credit Consumed; HOM",
650credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha…
655 "BriefDescription": "VN0 Credit Consumed; NCB",
659credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha…
664 "BriefDescription": "VN0 Credit Consumed; NCS",
668credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha…
[all …]
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/broadwellx/
Duncore-interconnect.json459 "BriefDescription": "No AD Egress Credit Stalls",
467 "BriefDescription": "No BL Egress Credit Stalls",
636 "BriefDescription": "VN0 Credit Consumed; DRS",
640credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha…
645 "BriefDescription": "VN0 Credit Consumed; HOM",
649credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha…
654 "BriefDescription": "VN0 Credit Consumed; NCB",
658credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha…
663 "BriefDescription": "VN0 Credit Consumed; NCS",
667credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha…
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/
Drc.c52 * Convert the AETH credit code into the number of credits.
101 * Set the credit field to the invalid value. in rvt_compute_aeth()
133 * Binary search the credit table to find the code to in rvt_compute_aeth()
166 u32 credit = (aeth >> IB_AETH_CREDIT_SHIFT) & IB_AETH_CREDIT_MASK; in rvt_get_credit() local
170 * If the credit is invalid, we can send in rvt_get_credit()
172 * honor the credit field. in rvt_get_credit()
174 if (credit == IB_AETH_CREDIT_INVAL) { in rvt_get_credit()
183 /* Compute new LSN (i.e., MSN + credit) */ 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()
[all …]
/kernel/linux/linux-6.6/drivers/xen/
Dballoon.c262 long credit; in reserve_additional_memory() local
267 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated in reserve_additional_memory()
274 if (credit <= 0) in reserve_additional_memory()
277 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory()
484 * needed, or if the credit has changed while state is not BP_DONE.
486 static bool balloon_thread_cond(long credit) in balloon_thread_cond() argument
489 credit = 0; in balloon_thread_cond()
491 return current_credit() != credit || kthread_should_stop(); in balloon_thread_cond()
502 long credit; in balloon_thread() local
520 credit = current_credit(); in balloon_thread()
[all …]
/kernel/linux/linux-5.10/drivers/xen/
Dballoon.c278 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()
500 * needed, or if the credit has changed while state is not BP_DONE.
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()
[all …]
/kernel/linux/linux-5.10/net/bridge/netfilter/
Debt_limit.c42 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
/kernel/linux/linux-6.6/net/bridge/netfilter/
Debt_limit.c42 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
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/sapphirerapids/
Duncore-io.json2425 "BriefDescription": "M2PCIe IIO Credit Acquired : DRS",
2429Credit Acquired : DRS : Counts the number of credits that are acquired in the M2PCIe agent for sen…
2434 "BriefDescription": "M2PCIe IIO Credit Acquired : DRS",
2438Credit Acquired : DRS : Counts the number of credits that are acquired in the M2PCIe agent for sen…
2443 "BriefDescription": "M2PCIe IIO Credit Acquired : NCB",
2447Credit Acquired : NCB : Counts the number of credits that are acquired in the M2PCIe agent for sen…
2452 "BriefDescription": "M2PCIe IIO Credit Acquired : NCB",
2456Credit Acquired : NCB : Counts the number of credits that are acquired in the M2PCIe agent for sen…
2461 "BriefDescription": "M2PCIe IIO Credit Acquired : NCS",
2465Credit Acquired : NCS : Counts the number of credits that are acquired in the M2PCIe agent for sen…
[all …]
Duncore-interconnect.json403 "BriefDescription": "No BL Egress Credit Stalls",
407 …"PublicDescription": "No BL Egress Credit Stalls : Counts the number times when it is not possible…
2051 …ption": "M2 BL Credits Empty : IIO0 and IIO1 share the same ring destination. (1 VN0 credit only)",
2055 …BL Credits Empty : IIO0 and IIO1 share the same ring destination. (1 VN0 credit only) : No vn0 and…
2663 "BriefDescription": "Miscellaneous Credit Events : Any In BGF FIFO",
2667 …"PublicDescription": "Miscellaneous Credit Events : Any In BGF FIFO : Indication that at least one…
2672 "BriefDescription": "Miscellaneous Credit Events : Any in BGF Path",
2676 …"PublicDescription": "Miscellaneous Credit Events : Any in BGF Path : Indication that at least one…
2681 "BriefDescription": "Miscellaneous Credit Events",
2685 "PublicDescription": "Miscellaneous Credit Events : d2k credit count is less than 1",
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_self_test.c877 "QM: VOQ_0, VOQ credit is not equal to initial credit",
883 "QM: VOQ_1, VOQ credit is not equal to initial credit",
889 "QM: VOQ_4, VOQ credit is not equal to initial credit",
895 "QM: P0 Byte credit is not equal to initial credit",
901 "QM: P1 Byte credit is not equal to initial credit",
1189 "DORQ: Credit to XCM is not full",
1195 "DORQ: Credit to UCM is not full",
1201 "QM: Credit error register is not 0 (byte or credit overflow/underflow)",
1285 "PBF: P0 credit is not equal to init_crd",
1291 "PBF: P1 credit is not equal to init_crd",
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_self_test.c877 "QM: VOQ_0, VOQ credit is not equal to initial credit",
883 "QM: VOQ_1, VOQ credit is not equal to initial credit",
889 "QM: VOQ_4, VOQ credit is not equal to initial credit",
895 "QM: P0 Byte credit is not equal to initial credit",
901 "QM: P1 Byte credit is not equal to initial credit",
1189 "DORQ: Credit to XCM is not full",
1195 "DORQ: Credit to UCM is not full",
1201 "QM: Credit error register is not 0 (byte or credit overflow/underflow)",
1285 "PBF: P0 credit is not equal to init_crd",
1291 "PBF: P1 credit is not equal to init_crd",
[all …]
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/cascadelakex/
Duncore-interconnect.json587 "BriefDescription": "No AD Egress Credit Stalls",
595 "BriefDescription": "No BL Egress Credit Stalls",
2053 "BriefDescription": "Transgress Injection Starvation; AD - Credit",
2071 "BriefDescription": "Transgress Injection Starvation; BL - Credit",
2089 "BriefDescription": "Transgress Ingress Bypass; AD - Credit",
2116 "BriefDescription": "Transgress Ingress Bypass; BL - Credit",
2138 …d of time. In this case, the Ingress is unable to forward to the Egress due to a lack of credit.",
2143 "BriefDescription": "Transgress Injection Starvation; AD - Credit",
2147 …d of time. In this case, the Ingress is unable to forward to the Egress due to a lack of credit.",
2156 …d of time. In this case, the Ingress is unable to forward to the Egress due to a lack of credit.",
[all …]
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/skylakex/
Duncore-interconnect.json587 "BriefDescription": "No AD Egress Credit Stalls",
595 "BriefDescription": "No BL Egress Credit Stalls",
1987 "BriefDescription": "Transgress Injection Starvation; AD - Credit",
2005 "BriefDescription": "Transgress Injection Starvation; BL - Credit",
2023 "BriefDescription": "Transgress Ingress Bypass; AD - Credit",
2050 "BriefDescription": "Transgress Ingress Bypass; BL - Credit",
2072 …d of time. In this case, the Ingress is unable to forward to the Egress due to a lack of credit.",
2077 "BriefDescription": "Transgress Injection Starvation; AD - Credit",
2081 …d of time. In this case, the Ingress is unable to forward to the Egress due to a lack of credit.",
2090 …d of time. In this case, the Ingress is unable to forward to the Egress due to a lack of credit.",
[all …]
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/
Dpio.h23 #define PRC_STATUS_ERR 0x01 /* credit return due to status error */
24 #define PRC_PBC 0x02 /* credit return due to PBC */
25 #define PRC_THRESHOLD 0x04 /* credit return due to threshold */
26 #define PRC_FILL_ERR 0x08 /* credit return due fill error */
27 #define PRC_FORCE 0x10 /* credit return due credit force */
70 u8 group; /* credit return group */
91 u32 credit_intr_count; /* count of credit intr users */
92 u64 credit_ctrl; /* cache for credit control */
112 /* DMA credit return, index is always (context & 0x7) */
117 /* NUMA indexed credit return array */
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath6kl/
Dhtc.h60 /* disable credit flow control on a specific service */
395 /* floor for credit distribution */
405 * is set by HTC when credit reports arrive. The credit
418 /* size in bytes of each credit */
437 * credit distribution code that is passed into the distribution function,
457 * number of times the host set the credit-low flag in a send
467 /* running count of total credit reports received for this endpoint */
470 /* credit reports received from this endpoint's RX packets */
473 /* credit reports received from RX packets of other endpoints */
476 /* credit reports received from endpoint 0 RX packets */

12345678910>>...25