Home
last modified time | relevance | path

Searched refs:credit (Results 1 – 25 of 43) sorted by relevance

12

/linux/samples/bpf/
H A Dhbm_out_kern.c64 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 Dhbm_kern.h139 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 Dhbm.h15 int credit; /* In bytes */ member
/linux/drivers/xen/
H A 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()
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 in balloon_thread()
754 long credit, last_credit = 0; balloon_wait_finish() local
[all...]
/linux/net/netfilter/
H A Dxt_limit.c18 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()
/linux/tools/testing/selftests/bpf/progs/
H A 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()
/linux/net/bridge/netfilter/
H A 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
/linux/drivers/infiniband/sw/rdmavt/
H A Drc.c124 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/include/uapi/linux/netfilter_bridge/
H A Debt_limit.h21 __u32 credit; member
/linux/include/uapi/linux/netfilter/
H A Dxt_limit.h20 __u32 credit; /* moved to xt_limit_priv */ member
/linux/Documentation/networking/device_drivers/ethernet/meta/
H A Dfbnic.rst70 credit exhaustion
72 credit exhaustion
/linux/net/vmw_vsock/
H A Dvirtio_transport_common.c490 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/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptpf_mbox.c176 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 Dotx2_cpt_common.h58 u32 credit; member
/linux/tools/testing/selftests/net/packetdrill/
H A Dtcp_slow_start_slow-start-fq-ack-per-2pkt.pkt41 // (FQ commit allows an application/cwnd limited flow to get at most quantum/2 extra credit)
/linux/fs/smb/server/
H A DKconfig42 compound requests, multi-credit, packet signing, RDMA(smbdirect),
/linux/drivers/scsi/ibmvscsi_tgt/
H A Dibmvscsi_tgt.h234 int credit; member
/linux/net/rds/
H A Dib_cm.c79 __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/drivers/infiniband/hw/cxgb4/
H A Dcq.c545 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/Documentation/maintainer/
H A Dmodifying-patches.rst24 want at the same time to credit the author, track changes, merge the fix,
/linux/Documentation/ABI/stable/
H A Dsysfs-driver-ib_srp169 SRP credit algorithm in the SRP specification.
191 information see also the SRP credit algorithm in the SRP
/linux/include/linux/
H A Dvirtio_vsock.h261 void virtio_transport_put_credit(struct virtio_vsock_sock *vvs, u32 credit);
/linux/fs/ext4/
H A Dresize.c1547 int err = 0, err2 = 0, credit; in ext4_flex_group_add() local
1566 credit = 3; /* sb, resize inode, resize inode dindirect */ in ext4_flex_group_add()
1568 credit += 1 + DIV_ROUND_UP(flex_gd->count, EXT4_DESC_PER_BLOCK(sb)); in ext4_flex_group_add()
1569 credit += reserved_gdb; /* Reserved GDT dindirect blocks */ in ext4_flex_group_add()
1570 handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, credit); in ext4_flex_group_add()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sp.h660 atomic_t credit; member
1507 int base, int credit);
/linux/drivers/net/ethernet/broadcom/
H A Dcnic_if.h160 struct drv_ctl_spq_credit credit; member

12