| /kernel/linux/linux-5.10/samples/bpf/ |
| 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 …]
|
| /kernel/linux/linux-4.19/net/netfilter/ |
| D | xt_limit.c | 23 uint32_t credit; member 38 amount of credit `credit' and the most credit you can ever have 42 `prev' tracks the last packet hit: you gain one credit per jiffy. 43 If you get credit balance more than this, the extra credit is 75 priv->credit += (now - xchg(&priv->prev, now)) * CREDITS_PER_JIFFY; in limit_mt() 76 if (priv->credit > r->credit_cap) in limit_mt() 77 priv->credit = r->credit_cap; in limit_mt() 79 if (priv->credit >= r->cost) { in limit_mt() 81 priv->credit -= r->cost; in limit_mt() 123 priv->credit = user2credits(r->avg * r->burst); /* Credits full. */ in limit_mt_check() [all …]
|
| D | xt_hashlimit.c | 94 u_int64_t credit; member 454 amount of credit `credit' and the most credit you can ever have 458 `prev' tracks the last packet hit: you gain one credit per jiffy. 459 If you get credit balance more than this, the extra credit is 568 u64 tmp = dh->rateinfo.credit; in rateinfo_recalc() 569 dh->rateinfo.credit += CREDITS_PER_JIFFY_BYTES * delta; in rateinfo_recalc() 571 if (tmp >= dh->rateinfo.credit) {/* overflow */ in rateinfo_recalc() 572 dh->rateinfo.credit = cap; in rateinfo_recalc() 578 dh->rateinfo.credit += delta * cpj; in rateinfo_recalc() 581 if (dh->rateinfo.credit > cap) in rateinfo_recalc() [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ |
| D | xt_limit.c | 20 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 …]
|
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/infiniband/sw/rdmavt/ |
| D | rc.c | 52 * Convert the AETH credit code into the number of credits. 101 * Set the credit field to the invalid value. in rvt_compute_aeth() 128 * Binary search the credit table to find the code to in rvt_compute_aeth() 161 u32 credit = (aeth >> IB_AETH_CREDIT_SHIFT) & IB_AETH_CREDIT_MASK; in rvt_get_credit() local 165 * If the credit is invalid, we can send in rvt_get_credit() 167 * honor the credit field. in rvt_get_credit() 169 if (credit == IB_AETH_CREDIT_INVAL) { in rvt_get_credit() 178 /* Compute new LSN (i.e., MSN + credit) */ in rvt_get_credit() 179 credit = (aeth + credit_table[credit]) & IB_MSN_MASK; in rvt_get_credit() 180 if (rvt_cmp_msn(credit, qp->s_lsn) > 0) { in rvt_get_credit() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
| 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()
|
| /kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/ |
| D | rc.c | 52 * 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-5.10/net/bridge/netfilter/ |
| 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
|
| /kernel/linux/linux-4.19/net/bridge/netfilter/ |
| D | ebt_limit.c | 41 info->credit += (now - xchg(&info->prev, now)) * CREDITS_PER_JIFFY; in ebt_limit_mt() 42 if (info->credit > info->credit_cap) in ebt_limit_mt() 43 info->credit = info->credit_cap; in ebt_limit_mt() 45 if (info->credit >= info->cost) { in ebt_limit_mt() 47 info->credit -= info->cost; in ebt_limit_mt() 82 info->credit = user2credits(info->avg * info->burst); in ebt_limit_mt_check() 97 compat_uint_t credit, credit_cap, cost; member
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/xen/ |
| D | balloon.c | 273 long credit; in reserve_additional_memory() local 278 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated in reserve_additional_memory() 285 if (credit <= 0) in reserve_additional_memory() 288 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory() 495 * needed, or if the credit has changed while state is not BP_DONE. 497 static bool balloon_thread_cond(enum bp_state state, long credit) in balloon_thread_cond() argument 500 credit = 0; in balloon_thread_cond() 502 return current_credit() != credit || kthread_should_stop(); in balloon_thread_cond() 514 long credit; in balloon_thread() local 532 credit = current_credit(); in balloon_thread() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/wireless/ath/ath6kl/ |
| D | htc.h | 60 /* disable credit flow control on a specific service */ 388 /* floor for credit distribution */ 398 * is set by HTC when credit reports arrive. The credit 411 /* size in bytes of each credit */ 430 * credit distribution code that is passed into the distribution function, 450 * number of times the host set the credit-low flag in a send 460 /* running count of total credit reports received for this endpoint */ 463 /* credit reports received from this endpoint's RX packets */ 466 /* credit reports received from RX packets of other endpoints */ 469 /* credit reports received from endpoint 0 RX packets */
|
| /kernel/linux/linux-4.19/drivers/infiniband/hw/hfi1/ |
| D | pio.h | 65 #define PRC_STATUS_ERR 0x01 /* credit return due to status error */ 66 #define PRC_PBC 0x02 /* credit return due to PBC */ 67 #define PRC_THRESHOLD 0x04 /* credit return due to threshold */ 68 #define PRC_FILL_ERR 0x08 /* credit return due fill error */ 69 #define PRC_FORCE 0x10 /* credit return due credit force */ 112 u8 group; /* credit return group */ 131 u32 credit_intr_count; /* count of credit intr users */ 132 u64 credit_ctrl; /* cache for credit control */ 152 /* DMA credit return, index is always (context & 0x7) */ 157 /* NUMA indexed credit return array */
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/ |
| D | htc.h | 60 /* disable credit flow control on a specific service */ 388 /* floor for credit distribution */ 398 * is set by HTC when credit reports arrive. The credit 411 /* size in bytes of each credit */ 430 * credit distribution code that is passed into the distribution function, 450 * number of times the host set the credit-low flag in a send 460 /* running count of total credit reports received for this endpoint */ 463 /* credit reports received from this endpoint's RX packets */ 466 /* credit reports received from RX packets of other endpoints */ 469 /* credit reports received from endpoint 0 RX packets */
|
| /kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
| D | pio.h | 65 #define PRC_STATUS_ERR 0x01 /* credit return due to status error */ 66 #define PRC_PBC 0x02 /* credit return due to PBC */ 67 #define PRC_THRESHOLD 0x04 /* credit return due to threshold */ 68 #define PRC_FILL_ERR 0x08 /* credit return due fill error */ 69 #define PRC_FORCE 0x10 /* credit return due credit force */ 112 u8 group; /* credit return group */ 133 u32 credit_intr_count; /* count of credit intr users */ 134 u64 credit_ctrl; /* cache for credit control */ 154 /* DMA credit return, index is always (context & 0x7) */ 159 /* NUMA indexed credit return array */
|
| /kernel/linux/linux-4.19/drivers/xen/ |
| D | balloon.c | 294 long credit; in reserve_additional_memory() local 299 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated in reserve_additional_memory() 306 if (credit <= 0) in reserve_additional_memory() 309 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory() 519 long credit; in balloon_process() local 525 credit = current_credit(); in balloon_process() 527 if (credit > 0) { in balloon_process() 529 state = increase_reservation(credit); in balloon_process() 534 if (credit < 0) { in balloon_process() 537 n_pages = min(-credit, si_mem_available()); in balloon_process() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/broadcom/bnx2x/ |
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/infiniband/hw/cxgb3/ |
| D | iwch_cq.c | 40 u32 credit = 0; in __iwch_poll_cq_one() local 46 &credit); in __iwch_poll_cq_one() 47 if (t3a_device(chp->rhp) && credit) { in __iwch_poll_cq_one() 49 credit, chp->cq.cqid); in __iwch_poll_cq_one() 50 cxio_hal_cq_op(&rhp->rdev, &chp->cq, CQ_CREDIT_UPDATE, credit); in __iwch_poll_cq_one()
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
| D | vas-fault.c | 192 * NX process user space requests, return credit and update the status 195 * It takes credit on fault window, updates nx_fault_stamp in CRB with 202 * process all valid faults and return credit for each fault on user 204 * credit mechanism. NX can continuously paste CRBs until credits are not 267 * Return credit for the fault window. in vas_fault_thread_fn() 283 * even clean it up (return credit on user space in vas_fault_thread_fn() 298 * Return credit for send window after processing in vas_fault_thread_fn()
|
| /kernel/linux/linux-5.10/arch/m68k/include/asm/ |
| D | amigayle.h | 72 #define GAYLE_CS_CCDET 0x40 /* credit card detect */ 74 #define GAYLE_CS_SC 0x20 /* credit card status change */ 78 #define GAYLE_CS_BSY 0x04 /* credit card busy */
|
| /kernel/linux/linux-4.19/arch/m68k/include/asm/ |
| D | amigayle.h | 72 #define GAYLE_CS_CCDET 0x40 /* credit card detect */ 74 #define GAYLE_CS_SC 0x20 /* credit card status change */ 78 #define GAYLE_CS_BSY 0x04 /* credit card busy */
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
| D | ionic_regs.h | 12 * @credits: interrupt credit count and return. 38 * @IONIC_INTR_CRED_COUNT: bit mask of credit count, no shift needed. 39 * @IONIC_INTR_CRED_COUNT_SIGNED: bit mask of credit count, including sign bit.
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_dcb.h | 79 u16 data_credits_refill; /* Credit refill amount in 64B granularity */ 139 /* DCB definitions for credit calculation */ 144 #define MAX_CREDIT 4095 /* Maximum credit supported: 256KB * 1204 / 64B */
|