| /linux-6.15/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() 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() 132 } else if (credit < 0) { in _hbm_out_cg() 135 if (credit < -MARK_THRESH) in _hbm_out_cg() 151 if (-credit >= MARK_THRESH + in _hbm_out_cg() [all …]
|
| H A D | hbm_kern.h | 139 qdp->credit = INIT_CREDIT; in hbm_init_vqueue() 151 qdp->credit = 0; // not used in hbm_init_edt_vqueue() 163 int credit) in hbm_update_stats() argument 195 __sync_add_and_fetch(&(qsp->sum_credit), credit); in hbm_update_stats()
|
| H A D | hbm.h | 15 int credit; /* In bytes */ member
|
| /linux-6.15/drivers/xen/ |
| H A D | balloon.c | 266 long credit; in reserve_additional_memory() local 278 if (credit <= 0) in reserve_additional_memory() 497 credit = 0; in balloon_thread_cond() 510 long credit; in balloon_thread() local 528 credit = current_credit(); in balloon_thread() 538 credit = current_credit(); in balloon_thread() 540 if (credit > 0) { in balloon_thread() 547 if (credit < 0) { in balloon_thread() 772 long credit, last_credit = 0; in balloon_wait_finish() local 787 last_credit = credit; in balloon_wait_finish() [all …]
|
| /linux-6.15/net/netfilter/ |
| H A D | xt_limit.c | 18 u32 credit; member 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 164 .credit = cm->credit, in limit_mt_compat_from_user() 178 .credit = m->credit, in limit_mt_compat_to_user()
|
| H A D | xt_hashlimit.c | 100 u_int64_t credit; member 558 u64 tmp = dh->rateinfo.credit; in rateinfo_recalc() 561 if (tmp >= dh->rateinfo.credit) {/* overflow */ in rateinfo_recalc() 562 dh->rateinfo.credit = cap; in rateinfo_recalc() 568 dh->rateinfo.credit += delta * cpj; in rateinfo_recalc() 571 if (dh->rateinfo.credit > cap) in rateinfo_recalc() 572 dh->rateinfo.credit = cap; in rateinfo_recalc() 597 dh->rateinfo.credit = CREDITS_PER_JIFFY_BYTES * HZ; in rateinfo_init() 604 dh->rateinfo.credit_cap = dh->rateinfo.credit; in rateinfo_init() 780 if (dh->rateinfo.credit >= cost) { in hashlimit_mt_common() [all …]
|
| /linux-6.15/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-6.15/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-6.15/drivers/infiniband/sw/rdmavt/ |
| H A D | rc.c | 124 u32 credit = (aeth >> IB_AETH_CREDIT_SHIFT) & IB_AETH_CREDIT_MASK; in rvt_get_credit() local 132 if (credit == IB_AETH_CREDIT_INVAL) { 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() 144 qp->s_lsn = credit; in rvt_get_credit()
|
| /linux-6.15/Documentation/ABI/testing/ |
| H A D | debugfs-dwc-pcie | 44 23) posted_tlp_hdr - Posted TLP Header credit value control 45 24) non_post_tlp_hdr - Non-Posted TLP Header credit value control 46 25) cmpl_tlp_hdr - Completion TLP Header credit value control 47 26) posted_tlp_data - Posted TLP Data credit value control 48 27) non_post_tlp_data - Non-Posted TLP Data credit value control 49 28) cmpl_tlp_data - Completion TLP Data credit value control 69 - Errors 23 to 28 are credit value error insertions. The write 78 credit value. Allowed range from -4095 to 4095
|
| /linux-6.15/net/sched/ |
| H A D | sch_fq.c | 89 int credit; member 105 int credit; member 586 f->credit = max_t(u32, f->credit, q->quantum); in fq_enqueue() 639 if (pband->credit <= 0) in fq_pband_head_select() 681 pband->credit = min(pband->credit + pband->quantum, in fq_dequeue() 683 if (pband->credit > 0) in fq_dequeue() 695 if (f->credit <= 0) { in fq_dequeue() 733 f->credit -= plen; in fq_dequeue() 734 pband->credit -= plen; in fq_dequeue() 750 f->credit = 0; in fq_dequeue() [all …]
|
| /linux-6.15/drivers/perf/ |
| H A D | fsl_imx8_ddr_perf.c | 258 IMX8_DDR_PMU_EVENT_ATTR(lp-read-credit-cnt, 0x10), 259 IMX8_DDR_PMU_EVENT_ATTR(hp-read-credit-cnt, 0x11), 260 IMX8_DDR_PMU_EVENT_ATTR(write-credit-cnt, 0x12), 266 IMX8_DDR_PMU_EVENT_ATTR(hp-xact-credit, 0x25), 268 IMX8_DDR_PMU_EVENT_ATTR(lp-xact-credit, 0x27), 269 IMX8_DDR_PMU_EVENT_ATTR(wr-xact-credit, 0x29),
|
| /linux-6.15/include/uapi/linux/netfilter_bridge/ |
| H A D | ebt_limit.h | 21 __u32 credit; member
|
| /linux-6.15/include/uapi/linux/netfilter/ |
| H A D | xt_limit.h | 20 __u32 credit; /* moved to xt_limit_priv */ member
|
| /linux-6.15/Documentation/networking/device_drivers/ethernet/meta/ |
| H A D | fbnic.rst | 70 credit exhaustion 72 credit exhaustion
|
| /linux-6.15/net/vmw_vsock/ |
| H A D | virtio_transport_common.c | 490 u32 virtio_transport_get_credit(struct virtio_vsock_sock *vvs, u32 credit) in virtio_transport_get_credit() argument 494 if (!credit) in virtio_transport_get_credit() 499 if (ret > credit) in virtio_transport_get_credit() 500 ret = credit; in virtio_transport_get_credit() 509 void virtio_transport_put_credit(struct virtio_vsock_sock *vvs, u32 credit) in virtio_transport_put_credit() argument 511 if (!credit) in virtio_transport_put_credit() 515 vvs->tx_cnt -= credit; in virtio_transport_put_credit() 516 vvs->bytes_unsent -= credit; in virtio_transport_put_credit()
|
| /linux-6.15/tools/testing/selftests/net/packetdrill/ |
| H A D | tcp_slow_start_slow-start-fq-ack-per-2pkt.pkt | 41 // (FQ commit allows an application/cwnd limited flow to get at most quantum/2 extra credit)
|
| /linux-6.15/drivers/crypto/marvell/octeontx2/ |
| H A D | otx2_cptpf_mbox.c | 176 if (!req->credit || req->credit > OTX2_CPT_INST_QLEN_MSGS) in rx_inline_ipsec_lf_cfg() 179 nix_req->cpt_credit = req->credit - 1; in rx_inline_ipsec_lf_cfg()
|
| H A D | otx2_cpt_common.h | 58 u32 credit; member
|
| /linux-6.15/fs/smb/server/ |
| H A D | Kconfig | 42 compound requests, multi-credit, packet signing, RDMA(smbdirect),
|
| /linux-6.15/drivers/scsi/ibmvscsi_tgt/ |
| H A D | ibmvscsi_tgt.h | 234 int credit; member
|
| /linux-6.15/Documentation/maintainer/ |
| H A D | modifying-patches.rst | 24 want at the same time to credit the author, track changes, merge the fix,
|
| /linux-6.15/net/rds/ |
| H A D | ib_cm.c | 79 __be32 credit = 0; in rds_ib_cm_connect_complete() local 90 credit = dp->ricp_v6.dp_credit; in rds_ib_cm_connect_complete() 102 credit = dp->ricp_v4.dp_credit; in rds_ib_cm_connect_complete() 109 rds_ib_set_flow_control(conn, be32_to_cpu(credit)); in rds_ib_cm_connect_complete()
|
| /linux-6.15/drivers/infiniband/hw/cxgb4/ |
| H A D | cq.c | 545 u8 *cqe_flushed, u64 *cookie, u32 *credit, in poll_cq() argument 552 *credit = 0; in poll_cq() 759 u32 credit = 0; in __c4iw_poll_cq_one() local 764 ret = poll_cq(wq, &(chp->cq), &cqe, &cqe_flushed, &cookie, &credit, in __c4iw_poll_cq_one()
|
| /linux-6.15/include/linux/ |
| H A D | virtio_vsock.h | 261 void virtio_transport_put_credit(struct virtio_vsock_sock *vvs, u32 credit);
|