credit           1318 drivers/char/random.c 	int			credit = 0;
credit           1363 drivers/char/random.c 		credit = 1;
credit           1370 drivers/char/random.c 	credit_entropy_bits(r, credit + 1);
credit             72 drivers/infiniband/hw/cxgb3/cxio_hal.c 		   enum t3_cq_opcode op, u32 credit)
credit             80 drivers/infiniband/hw/cxgb3/cxio_hal.c 	setup.credits = (op == CQ_CREDIT_UPDATE) ? credit : 0;
credit           1117 drivers/infiniband/hw/cxgb3/cxio_hal.c 		     u8 *cqe_flushed, u64 *cookie, u32 *credit)
credit           1123 drivers/infiniband/hw/cxgb3/cxio_hal.c 	*credit = 0;
credit           1307 drivers/infiniband/hw/cxgb3/cxio_hal.c 			*credit = cq->rptr - cq->wptr;
credit            159 drivers/infiniband/hw/cxgb3/cxio_hal.h 		   enum t3_cq_opcode op, u32 credit);
credit            195 drivers/infiniband/hw/cxgb3/cxio_hal.h 		     u8 *cqe_flushed, u64 *cookie, u32 *credit);
credit             40 drivers/infiniband/hw/cxgb3/iwch_cq.c 	u32 credit = 0;
credit             46 drivers/infiniband/hw/cxgb3/iwch_cq.c 				   &credit);
credit             47 drivers/infiniband/hw/cxgb3/iwch_cq.c 	if (t3a_device(chp->rhp) && credit) {
credit             49 drivers/infiniband/hw/cxgb3/iwch_cq.c 			 credit, chp->cq.cqid);
credit             50 drivers/infiniband/hw/cxgb3/iwch_cq.c 		cxio_hal_cq_op(&rhp->rdev, &chp->cq, CQ_CREDIT_UPDATE, credit);
credit            545 drivers/infiniband/hw/cxgb4/cq.c 		   u8 *cqe_flushed, u64 *cookie, u32 *credit,
credit            552 drivers/infiniband/hw/cxgb4/cq.c 	*credit = 0;
credit            759 drivers/infiniband/hw/cxgb4/cq.c 	u32 credit = 0;
credit            764 drivers/infiniband/hw/cxgb4/cq.c 	ret = poll_cq(wq, &(chp->cq), &cqe, &cqe_flushed, &cookie, &credit,
credit            168 drivers/infiniband/sw/rdmavt/rc.c 	u32 credit = (aeth >> IB_AETH_CREDIT_SHIFT) & IB_AETH_CREDIT_MASK;
credit            176 drivers/infiniband/sw/rdmavt/rc.c 	if (credit == IB_AETH_CREDIT_INVAL) {
credit            186 drivers/infiniband/sw/rdmavt/rc.c 		credit = (aeth + credit_table[credit]) & IB_MSN_MASK;
credit            187 drivers/infiniband/sw/rdmavt/rc.c 		if (rvt_cmp_msn(credit, qp->s_lsn) > 0) {
credit            188 drivers/infiniband/sw/rdmavt/rc.c 			qp->s_lsn = credit;
credit           14793 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		int count = ctl->data.credit.credit_count;
credit           14861 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		int count = ctl->data.credit.credit_count;
credit           4213 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	rc = __atomic_dec_ifmoe(&o->credit, cnt, 0);
credit           4226 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	rc = __atomic_add_ifless(&o->credit, cnt, o->pool_sz + 1);
credit           4238 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	cur_credit = atomic_read(&o->credit);
credit           4323 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			    int base, int credit)
credit           4332 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	atomic_set(&p->credit, credit);
credit           4335 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	p->pool_sz = credit;
credit           4345 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	if (credit >= 0) {
credit           4434 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			int credit = PF_VLAN_CREDIT_E2(bp, func_num);
credit           4436 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			bnx2x_init_credit_pool(p, -1/*unused for E2*/, credit);
credit            660 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h 	atomic_t	credit;
credit           1507 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h 			    int base, int credit);
credit            298 drivers/net/ethernet/broadcom/cnic.c 	info.data.credit.credit_count = count;
credit            160 drivers/net/ethernet/broadcom/cnic_if.h 		struct drv_ctl_spq_credit credit;
credit            416 drivers/net/ethernet/chelsio/cxgb/cpl5_cmd.h 	u32 credit;
credit           3050 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 	u32 credit;
credit           3133 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		credit = dsaf_read_dev(dsaf_dev, DSAF_SBM_ROCEE_CFG_REG_REG);
credit           3134 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		dsaf_set_bit(credit, DSAF_SBM_ROCEE_CFG_CRD_EN_B, 0);
credit           3135 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		dsaf_write_dev(dsaf_dev, DSAF_SBM_ROCEE_CFG_REG_REG, credit);
credit           3137 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		dsaf_set_bit(credit, DSAF_SBM_ROCEE_CFG_CRD_EN_B, 1);
credit           3138 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c 		dsaf_write_dev(dsaf_dev, DSAF_SBM_ROCEE_CFG_REG_REG, credit);
credit           1655 drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h 	__le16	credit;
credit           1723 drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h 	__le16	credit;
credit           4004 drivers/net/ethernet/intel/i40e/i40e_common.c 				u16 seid, u16 credit, u8 max_credit,
credit           4016 drivers/net/ethernet/intel/i40e/i40e_common.c 	cmd->credit = cpu_to_le16(credit);
credit            233 drivers/net/ethernet/intel/i40e/i40e_prototype.h 				u16 seid, u16 credit, u8 max_credit,
credit            238 drivers/net/ethernet/intel/i40e/i40e_prototype.h 				u16 seid, u16 credit, u8 max_bw,
credit            125 drivers/perf/fsl_imx8_ddr_perf.c 	IMX8_DDR_PMU_EVENT_ATTR(lp-read-credit-cnt, 0x10),
credit            126 drivers/perf/fsl_imx8_ddr_perf.c 	IMX8_DDR_PMU_EVENT_ATTR(hp-read-credit-cnt, 0x11),
credit            127 drivers/perf/fsl_imx8_ddr_perf.c 	IMX8_DDR_PMU_EVENT_ATTR(write-credit-cnt, 0x12),
credit            133 drivers/perf/fsl_imx8_ddr_perf.c 	IMX8_DDR_PMU_EVENT_ATTR(hp-xact-credit, 0x25),
credit            135 drivers/perf/fsl_imx8_ddr_perf.c 	IMX8_DDR_PMU_EVENT_ATTR(lp-xact-credit, 0x27),
credit            136 drivers/perf/fsl_imx8_ddr_perf.c 	IMX8_DDR_PMU_EVENT_ATTR(wr-xact-credit, 0x29),
credit            815 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	vscsi->credit = 0;
credit            887 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		vscsi->credit = 0;
credit           1354 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		vscsi->credit = 0;
credit           1932 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 					vscsi->credit += 1;
credit           2121 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	vscsi->credit = 0;
credit           3110 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	rsp->req_lim_delta = cpu_to_be32(1 + vscsi->credit);
credit           3180 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		vscsi->credit = 0;
credit            234 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h 	int credit;
credit           1798 drivers/target/iscsi/cxgbit/cxgbit_cm.c 	u32 credit = 0;
credit           1807 drivers/target/iscsi/cxgbit/cxgbit_cm.c 		credit += (__force u32)skb->csum;
credit           1811 drivers/target/iscsi/cxgbit/cxgbit_cm.c 	if (unlikely((csk->wr_cred + credit) != csk->wr_max_cred)) {
credit           1814 drivers/target/iscsi/cxgbit/cxgbit_cm.c 		       credit, csk->wr_max_cred);
credit            289 drivers/xen/balloon.c 	long credit;
credit            294 drivers/xen/balloon.c 	credit = balloon_stats.target_pages + balloon_stats.target_unpopulated
credit            301 drivers/xen/balloon.c 	if (credit <= 0)
credit            304 drivers/xen/balloon.c 	balloon_hotplug = round_up(credit, PAGES_PER_SECTION);
credit            519 drivers/xen/balloon.c 	long credit;
credit            525 drivers/xen/balloon.c 		credit = current_credit();
credit            527 drivers/xen/balloon.c 		if (credit > 0) {
credit            529 drivers/xen/balloon.c 				state = increase_reservation(credit);
credit            534 drivers/xen/balloon.c 		if (credit < 0) {
credit            537 drivers/xen/balloon.c 			n_pages = min(-credit, si_mem_available());
credit            539 drivers/xen/balloon.c 			if (state == BP_DONE && n_pages != -credit &&
credit            550 drivers/xen/balloon.c 	} while (credit && state == BP_DONE);
credit           1491 fs/ext4/resize.c 	int err = 0, err2 = 0, credit;
credit           1510 fs/ext4/resize.c 	credit = 3;	/* sb, resize inode, resize inode dindirect */
credit           1512 fs/ext4/resize.c 	credit += 1 + DIV_ROUND_UP(flex_gd->count, EXT4_DESC_PER_BLOCK(sb));
credit           1513 fs/ext4/resize.c 	credit += reserved_gdb;	/* Reserved GDT dindirect blocks */
credit           1514 fs/ext4/resize.c 	handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, credit);
credit            157 include/linux/virtio_vsock.h void virtio_transport_put_credit(struct virtio_vsock_sock *vvs, u32 credit);
credit             20 include/uapi/linux/netfilter/xt_limit.h 	__u32 credit; /* moved to xt_limit_priv */
credit             21 include/uapi/linux/netfilter_bridge/ebt_limit.h 	__u32 credit;
credit             42 net/bridge/netfilter/ebt_limit.c 	info->credit += (now - xchg(&info->prev, now)) * CREDITS_PER_JIFFY;
credit             43 net/bridge/netfilter/ebt_limit.c 	if (info->credit > info->credit_cap)
credit             44 net/bridge/netfilter/ebt_limit.c 		info->credit = info->credit_cap;
credit             46 net/bridge/netfilter/ebt_limit.c 	if (info->credit >= info->cost) {
credit             48 net/bridge/netfilter/ebt_limit.c 		info->credit -= info->cost;
credit             83 net/bridge/netfilter/ebt_limit.c 	info->credit = user2credits(info->avg * info->burst);
credit             98 net/bridge/netfilter/ebt_limit.c 	compat_uint_t credit, credit_cap, cost;
credit            233 net/ipv4/icmp.c 	u32		credit;
credit            248 net/ipv4/icmp.c 	u32 credit, delta, incr = 0, now = (u32)jiffies;
credit            255 net/ipv4/icmp.c 	if (!READ_ONCE(icmp_global.credit)) {
credit            268 net/ipv4/icmp.c 	credit = min_t(u32, icmp_global.credit + incr, sysctl_icmp_msgs_burst);
credit            269 net/ipv4/icmp.c 	if (credit) {
credit            270 net/ipv4/icmp.c 		credit--;
credit            273 net/ipv4/icmp.c 	WRITE_ONCE(icmp_global.credit, credit);
credit            996 net/ipv4/tcp_output.c 			u64 credit = tp->tcp_wstamp_ns - prior_wstamp;
credit            999 net/ipv4/tcp_output.c 			len_ns -= min_t(u64, len_ns / 2, credit);
credit            101 net/netfilter/xt_hashlimit.c 				u_int64_t credit;
credit            556 net/netfilter/xt_hashlimit.c 		u64 tmp = dh->rateinfo.credit;
credit            557 net/netfilter/xt_hashlimit.c 		dh->rateinfo.credit += CREDITS_PER_JIFFY_BYTES * delta;
credit            559 net/netfilter/xt_hashlimit.c 		if (tmp >= dh->rateinfo.credit) {/* overflow */
credit            560 net/netfilter/xt_hashlimit.c 			dh->rateinfo.credit = cap;
credit            566 net/netfilter/xt_hashlimit.c 		dh->rateinfo.credit += delta * cpj;
credit            569 net/netfilter/xt_hashlimit.c 	if (dh->rateinfo.credit > cap)
credit            570 net/netfilter/xt_hashlimit.c 		dh->rateinfo.credit = cap;
credit            595 net/netfilter/xt_hashlimit.c 		dh->rateinfo.credit = CREDITS_PER_JIFFY_BYTES * HZ;
credit            599 net/netfilter/xt_hashlimit.c 		dh->rateinfo.credit = user2credits(hinfo->cfg.avg *
credit            602 net/netfilter/xt_hashlimit.c 		dh->rateinfo.credit_cap = dh->rateinfo.credit;
credit            717 net/netfilter/xt_hashlimit.c 	if (dh->rateinfo.credit < tmp && dh->rateinfo.credit_cap) {
credit            719 net/netfilter/xt_hashlimit.c 		dh->rateinfo.credit = CREDITS_PER_JIFFY_BYTES * HZ;
credit            778 net/netfilter/xt_hashlimit.c 	if (dh->rateinfo.credit >= cost) {
credit            780 net/netfilter/xt_hashlimit.c 		dh->rateinfo.credit -= cost;
credit           1105 net/netfilter/xt_hashlimit.c 			   ent->rateinfo.credit, ent->rateinfo.credit_cap,
credit           1116 net/netfilter/xt_hashlimit.c 			   ent->rateinfo.credit, ent->rateinfo.credit_cap,
credit             20 net/netfilter/xt_limit.c 	uint32_t credit;
credit             72 net/netfilter/xt_limit.c 	priv->credit += (now - xchg(&priv->prev, now)) * CREDITS_PER_JIFFY;
credit             73 net/netfilter/xt_limit.c 	if (priv->credit > r->credit_cap)
credit             74 net/netfilter/xt_limit.c 		priv->credit = r->credit_cap;
credit             76 net/netfilter/xt_limit.c 	if (priv->credit >= r->cost) {
credit             78 net/netfilter/xt_limit.c 		priv->credit -= r->cost;
credit            120 net/netfilter/xt_limit.c 	priv->credit = user2credits(r->avg * r->burst); /* Credits full. */
credit            122 net/netfilter/xt_limit.c 		r->credit_cap = priv->credit; /* Credits full. */
credit            143 net/netfilter/xt_limit.c 	u_int32_t credit;
credit            158 net/netfilter/xt_limit.c 		.credit		= cm->credit,
credit            172 net/netfilter/xt_limit.c 		.credit		= m->credit,
credit            104 net/rds/ib_cm.c 	__be32 credit = 0;
credit            115 net/rds/ib_cm.c 			credit = dp->ricp_v6.dp_credit;
credit            127 net/rds/ib_cm.c 		credit = dp->ricp_v4.dp_credit;
credit            134 net/rds/ib_cm.c 		rds_ib_set_flow_control(conn, be32_to_cpu(credit));
credit             78 net/sched/sch_fq.c 	int		credit;
credit            302 net/sched/sch_fq.c 				f->credit = q->initial_quantum;
credit            334 net/sched/sch_fq.c 	f->credit = q->initial_quantum;
credit            440 net/sched/sch_fq.c 			f->credit = max_t(u32, f->credit, q->quantum);
credit            514 net/sched/sch_fq.c 	if (f->credit <= 0) {
credit            515 net/sched/sch_fq.c 		f->credit += q->quantum;
credit            553 net/sched/sch_fq.c 	f->credit -= plen;
credit            569 net/sched/sch_fq.c 			f->credit = 0;
credit            572 net/sched/sch_fq.c 			if (f->credit > 0)
credit            234 net/vmw_vsock/virtio_transport_common.c u32 virtio_transport_get_credit(struct virtio_vsock_sock *vvs, u32 credit)
credit            240 net/vmw_vsock/virtio_transport_common.c 	if (ret > credit)
credit            241 net/vmw_vsock/virtio_transport_common.c 		ret = credit;
credit            249 net/vmw_vsock/virtio_transport_common.c void virtio_transport_put_credit(struct virtio_vsock_sock *vvs, u32 credit)
credit            252 net/vmw_vsock/virtio_transport_common.c 	vvs->tx_cnt -= credit;
credit             15 samples/bpf/hbm.h 	int credit;			/* In bytes */
credit            144 samples/bpf/hbm_kern.h 	qdp->credit = INIT_CREDIT;
credit            156 samples/bpf/hbm_kern.h 	qdp->credit = 0;				// not used
credit            168 samples/bpf/hbm_kern.h 					     int credit)
credit            200 samples/bpf/hbm_kern.h 			__sync_add_and_fetch(&(qsp->sum_credit), credit);
credit             64 samples/bpf/hbm_out_kern.c 	int credit;
credit             95 samples/bpf/hbm_out_kern.c 	credit = qdp->credit;
credit            103 samples/bpf/hbm_out_kern.c 		new_credit = credit + CREDIT_PER_NS(delta, qdp->rate);
credit            105 samples/bpf/hbm_out_kern.c 			credit = MAX_CREDIT;
credit            107 samples/bpf/hbm_out_kern.c 			credit = new_credit;
credit            109 samples/bpf/hbm_out_kern.c 	credit -= len;
credit            110 samples/bpf/hbm_out_kern.c 	qdp->credit = credit;
credit            124 samples/bpf/hbm_out_kern.c 	if (credit < -DROP_THRESH ||
credit            125 samples/bpf/hbm_out_kern.c 	    (len > LARGE_PKT_THRESH && credit < -LARGE_PKT_DROP_THRESH)) {
credit            132 samples/bpf/hbm_out_kern.c 	} else if (credit < 0) {
credit            135 samples/bpf/hbm_out_kern.c 			if (credit < -MARK_THRESH)
credit            151 samples/bpf/hbm_out_kern.c 				if (-credit >= MARK_THRESH +
credit            168 samples/bpf/hbm_out_kern.c 			 cwr_flag, ecn_ce_flag, &pkti, credit);
credit            171 samples/bpf/hbm_out_kern.c 		__sync_add_and_fetch(&(qdp->credit), len);
credit             35 tools/testing/selftests/bpf/progs/test_spin_lock.c 	int credit;
credit             51 tools/testing/selftests/bpf/progs/test_spin_lock.c 	volatile int credit = 0, max_credit = 100, pkt_len = 64;
credit             84 tools/testing/selftests/bpf/progs/test_spin_lock.c 	q->credit += CREDIT_PER_NS(curtime - q->lasttime, q->rate);
credit             86 tools/testing/selftests/bpf/progs/test_spin_lock.c 	if (q->credit > max_credit)
credit             87 tools/testing/selftests/bpf/progs/test_spin_lock.c 		q->credit = max_credit;
credit             88 tools/testing/selftests/bpf/progs/test_spin_lock.c 	q->credit -= pkt_len;
credit             89 tools/testing/selftests/bpf/progs/test_spin_lock.c 	credit = q->credit;