/linux/samples/bpf/ |
H A D | hbm_out_kern.c | 19 * 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 …]
|
/linux/net/netfilter/ |
H A D | xt_limit.c | 18 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 …]
|
H A D | xt_hashlimit.c | 101 u_int64_t credit; member 442 amount of credit `credit' and the most credit you can ever have 446 `prev' tracks the last packet hit: you gain one credit per jiffy. 447 If you get credit balance more than this, the extra credit is 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() [all …]
|
/linux/drivers/infiniband/sw/rdmavt/ |
H A D | rc.c | 10 * 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 …]
|
/linux/tools/perf/pmu-events/arch/x86/ivytown/ |
H A D | uncore-interconnect.json | 291 "BriefDescription": "No AD Egress Credit Stalls", 300 "BriefDescription": "No BL Egress Credit Stalls", 730 "BriefDescription": "VN0 Credit Consumed; DRS", 735 …credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha… 740 "BriefDescription": "VN0 Credit Consumed; HOM", 745 …credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha… 750 "BriefDescription": "VN0 Credit Consumed; NCB", 755 …credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha… 760 "BriefDescription": "VN0 Credit Consumed; NCS", 765 …credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha… [all …]
|
/linux/tools/perf/pmu-events/arch/x86/jaketown/ |
H A D | uncore-interconnect.json | 281 "BriefDescription": "No AD Egress Credit Stalls", 290 "BriefDescription": "No BL Egress Credit Stalls", 449 "BriefDescription": "VN0 Credit Consumed; DRS", 454 …tion": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 cr… 459 "BriefDescription": "VN0 Credit Consumed; HOM", 464 …tion": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 cr… 469 "BriefDescription": "VN0 Credit Consumed; NCB", 474 …tion": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 cr… 479 "BriefDescription": "VN0 Credit Consumed; NCS", 484 …tion": "Counts the number of times that an RxQ VN0 credit was consumed (i.e. message uses a VN0 cr… [all …]
|
H A D | uncore-io.json | 12 "BriefDescription": "R2PCIe IIO Credit Acquired; DRS", 17 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 22 "BriefDescription": "R2PCIe IIO Credit Acquired; NCB", 27 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 32 "BriefDescription": "R2PCIe IIO Credit Acquired; NCS", 37 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 42 "BriefDescription": "R2PCIe IIO Failed to Acquire a Credit; DRS", 47 …quest pending in the BL Ingress attempted to acquire either a NCB or NCS credit to transmit into t… 52 "BriefDescription": "R2PCIe IIO Failed to Acquire a Credit; NCB", 57 …quest pending in the BL Ingress attempted to acquire either a NCB or NCS credit to transmit into t… [all …]
|
/linux/tools/perf/pmu-events/arch/x86/haswellx/ |
H A D | uncore-interconnect.json | 511 "BriefDescription": "No AD Egress Credit Stalls", 520 "BriefDescription": "No BL Egress Credit Stalls", 710 "BriefDescription": "VN0 Credit Consumed; DRS", 715 …credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha… 720 "BriefDescription": "VN0 Credit Consumed; HOM", 725 …credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha… 730 "BriefDescription": "VN0 Credit Consumed; NCB", 735 …credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha… 740 "BriefDescription": "VN0 Credit Consumed; NCS", 745 …credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha… [all …]
|
H A D | uncore-io.json | 48 "BriefDescription": "R2PCIe IIO Credit Acquired; DRS", 53 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 58 "BriefDescription": "R2PCIe IIO Credit Acquired; NCB", 63 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 68 "BriefDescription": "R2PCIe IIO Credit Acquired; NCS", 73 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 83 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 93 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 103 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 433 …"PublicDescription": "Number of cycles Egress is stalled waiting for an Sbo credit to become avail… [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_spin_lock.c | 36 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()
|
/linux/tools/perf/pmu-events/arch/x86/broadwellx/ |
H A D | uncore-interconnect.json | 511 "BriefDescription": "No AD Egress Credit Stalls", 520 "BriefDescription": "No BL Egress Credit Stalls", 709 "BriefDescription": "VN0 Credit Consumed; DRS", 714 …credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha… 719 "BriefDescription": "VN0 Credit Consumed; HOM", 724 …credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha… 729 "BriefDescription": "VN0 Credit Consumed; NCB", 734 …credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha… 739 "BriefDescription": "VN0 Credit Consumed; NCS", 744 …credit was consumed (i.e. message uses a VN0 credit for the Rx Buffer). This includes packets tha… [all …]
|
H A D | uncore-io.json | 48 "BriefDescription": "R2PCIe IIO Credit Acquired; DRS", 53 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 58 "BriefDescription": "R2PCIe IIO Credit Acquired; NCB", 63 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 68 "BriefDescription": "R2PCIe IIO Credit Acquired; NCS", 73 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 83 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 93 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 103 …nsactions from the BL ring going into the IIO Agent must first acquire a credit. These credits ar… 463 …"PublicDescription": "Number of cycles Egress is stalled waiting for an Sbo credit to become avail… [all …]
|
/linux/drivers/xen/ |
H A D | balloon.c | 262 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() 488 * needed, or if the credit has changed while state is not BP_DONE. 490 static bool balloon_thread_cond(long credit) in balloon_thread_cond() argument 493 credit = 0; in balloon_thread_cond() 495 return current_credit() != credit || kthread_should_stop(); in balloon_thread_cond() 506 long credit; in balloon_thread() local 524 credit = current_credit(); in balloon_thread() [all …]
|
/linux/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
|
/linux/tools/perf/pmu-events/arch/x86/sapphirerapids/ |
H A D | uncore-io.json | 2838 "BriefDescription": "M2PCIe IIO Credit Acquired : DRS", 2844 …Credit Acquired : DRS : Counts the number of credits that are acquired in the M2PCIe agent for sen… 2849 "BriefDescription": "M2PCIe IIO Credit Acquired : DRS", 2855 …Credit Acquired : DRS : Counts the number of credits that are acquired in the M2PCIe agent for sen… 2860 "BriefDescription": "M2PCIe IIO Credit Acquired : NCB", 2866 …Credit Acquired : NCB : Counts the number of credits that are acquired in the M2PCIe agent for sen… 2871 "BriefDescription": "M2PCIe IIO Credit Acquired : NCB", 2877 …Credit Acquired : NCB : Counts the number of credits that are acquired in the M2PCIe agent for sen… 2882 "BriefDescription": "M2PCIe IIO Credit Acquired : NCS", 2888 …Credit Acquired : NCS : Counts the number of credits that are acquired in the M2PCIe agent for sen… [all …]
|
H A D | uncore-interconnect.json | 494 "BriefDescription": "No BL Egress Credit Stalls", 500 …"PublicDescription": "No BL Egress Credit Stalls : Counts the number times when it is not possible… 2530 …ption": "M2 BL Credits Empty : IIO0 and IIO1 share the same ring destination. (1 VN0 credit only)", 2536 …BL Credits Empty : IIO0 and IIO1 share the same ring destination. (1 VN0 credit only) : No vn0 and… 3278 "BriefDescription": "Miscellaneous Credit Events : Any In BGF FIFO", 3284 …"PublicDescription": "Miscellaneous Credit Events : Any In BGF FIFO : Indication that at least one… 3289 "BriefDescription": "Miscellaneous Credit Events : Any in BGF Path", 3295 …"PublicDescription": "Miscellaneous Credit Events : Any in BGF Path : Indication that at least one… 3300 "BriefDescription": "Miscellaneous Credit Events", 3306 "PublicDescription": "Miscellaneous Credit Events : d2k credit count is less than 1", [all …]
|
/linux/tools/perf/pmu-events/arch/x86/emeraldrapids/ |
H A D | uncore-io.json | 2838 "BriefDescription": "M2PCIe IIO Credit Acquired : DRS", 2844 …Credit Acquired : DRS : Counts the number of credits that are acquired in the M2PCIe agent for sen… 2849 "BriefDescription": "M2PCIe IIO Credit Acquired : DRS", 2855 …Credit Acquired : DRS : Counts the number of credits that are acquired in the M2PCIe agent for sen… 2860 "BriefDescription": "M2PCIe IIO Credit Acquired : NCB", 2866 …Credit Acquired : NCB : Counts the number of credits that are acquired in the M2PCIe agent for sen… 2871 "BriefDescription": "M2PCIe IIO Credit Acquired : NCB", 2877 …Credit Acquired : NCB : Counts the number of credits that are acquired in the M2PCIe agent for sen… 2882 "BriefDescription": "M2PCIe IIO Credit Acquired : NCS", 2888 …Credit Acquired : NCS : Counts the number of credits that are acquired in the M2PCIe agent for sen… [all …]
|
H A D | uncore-interconnect.json | 494 "BriefDescription": "No BL Egress Credit Stalls", 500 …"PublicDescription": "No BL Egress Credit Stalls : Counts the number times when it is not possible… 2530 …ption": "M2 BL Credits Empty : IIO0 and IIO1 share the same ring destination. (1 VN0 credit only)", 2536 …BL Credits Empty : IIO0 and IIO1 share the same ring destination. (1 VN0 credit only) : No vn0 and… 3278 "BriefDescription": "Miscellaneous Credit Events : Any In BGF FIFO", 3284 …"PublicDescription": "Miscellaneous Credit Events : Any In BGF FIFO : Indication that at least one… 3289 "BriefDescription": "Miscellaneous Credit Events : Any in BGF Path", 3295 …"PublicDescription": "Miscellaneous Credit Events : Any in BGF Path : Indication that at least one… 3300 "BriefDescription": "Miscellaneous Credit Events", 3306 "PublicDescription": "Miscellaneous Credit Events : d2k credit count is less than 1", [all …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_self_test.c | 877 "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 …]
|
H A D | bnx2x_reg.h | 56 * BRB1_IND_FREE_LIST_PRS_CRDT+2 initialize parser initial credit. Warning - 227 /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes 228 the initial credit value; read returns the current value of the credit 243 /* [RW 6] QM output initial credit. Max credit available - 32. Write writes 244 the initial credit value; read returns the current value of the credit 271 /* [RW 8] FIC0 output initial credit. Max credit available - 255. Write 272 writes the initial credit value; read returns the current value of the 273 credit counter. Must be initialized to 64 at start-up. */ 275 /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write 276 writes the initial credit value; read returns the current value of the [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | pio.h | 23 #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 */
|
/linux/tools/perf/pmu-events/arch/x86/cascadelakex/ |
H A D | uncore-interconnect.json | 723 "BriefDescription": "No AD Egress Credit Stalls", 733 "BriefDescription": "No BL Egress Credit Stalls", 2503 "BriefDescription": "Transgress Injection Starvation; AD - Credit", 2525 "BriefDescription": "Transgress Injection Starvation; BL - Credit", 2547 "BriefDescription": "Transgress Ingress Bypass; AD - Credit", 2580 "BriefDescription": "Transgress Ingress Bypass; BL - Credit", 2608 …d of time. In this case, the Ingress is unable to forward to the Egress due to a lack of credit.", 2613 "BriefDescription": "Transgress Injection Starvation; AD - Credit", 2619 …d of time. In this case, the Ingress is unable to forward to the Egress due to a lack of credit.", 2630 …d of time. In this case, the Ingress is unable to forward to the Egress due to a lack of credit.", [all …]
|
/linux/tools/perf/pmu-events/arch/x86/skylakex/ |
H A D | uncore-interconnect.json | 723 "BriefDescription": "No AD Egress Credit Stalls", 733 "BriefDescription": "No BL Egress Credit Stalls", 2423 "BriefDescription": "Transgress Injection Starvation; AD - Credit", 2445 "BriefDescription": "Transgress Injection Starvation; BL - Credit", 2467 "BriefDescription": "Transgress Ingress Bypass; AD - Credit", 2500 "BriefDescription": "Transgress Ingress Bypass; BL - Credit", 2528 …d of time. In this case, the Ingress is unable to forward to the Egress due to a lack of credit.", 2533 "BriefDescription": "Transgress Injection Starvation; AD - Credit", 2539 …d of time. In this case, the Ingress is unable to forward to the Egress due to a lack of credit.", 2550 …d of time. In this case, the Ingress is unable to forward to the Egress due to a lack of credit.", [all …]
|
/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | htc.h | 60 /* 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 */
|
/linux/arch/powerpc/platforms/powernv/ |
H A D | vas-fault.c | 48 * NX process user space requests, return credit and update the status 51 * It takes credit on fault window, updates nx_fault_stamp in CRB with 58 * process all valid faults and return credit for each fault on user 60 * credit mechanism. NX can continuously paste CRBs until credits are not 123 * Return credit for the fault window. in vas_fault_thread_fn() 139 * even clean it up (return credit on user space in vas_fault_thread_fn() 161 * Return credit for send window after processing in vas_fault_thread_fn()
|