Home
last modified time | relevance | path

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

/linux-4.4.14/net/netfilter/
Dxt_limit.c22 uint32_t credit; member
76 priv->credit += (now - xchg(&priv->prev, now)) * CREDITS_PER_JIFFY; in limit_mt()
77 if (priv->credit > r->credit_cap) in limit_mt()
78 priv->credit = r->credit_cap; in limit_mt()
80 if (priv->credit >= r->cost) { in limit_mt()
82 priv->credit -= r->cost; in limit_mt()
124 priv->credit = user2credits(r->avg * r->burst); /* Credits full. */ in limit_mt_check()
126 r->credit_cap = priv->credit; /* Credits full. */ in limit_mt_check()
145 u_int32_t credit; member
160 .credit = cm->credit, in limit_mt_compat_from_user()
[all …]
Dxt_hashlimit.c89 u_int32_t credit; member
456 u32 tmp = dh->rateinfo.credit; in rateinfo_recalc()
457 dh->rateinfo.credit += CREDITS_PER_JIFFY_BYTES * delta; in rateinfo_recalc()
459 if (tmp >= dh->rateinfo.credit) {/* overflow */ in rateinfo_recalc()
460 dh->rateinfo.credit = cap; in rateinfo_recalc()
464 dh->rateinfo.credit += delta * CREDITS_PER_JIFFY; in rateinfo_recalc()
467 if (dh->rateinfo.credit > cap) in rateinfo_recalc()
468 dh->rateinfo.credit = cap; in rateinfo_recalc()
476 dh->rateinfo.credit = CREDITS_PER_JIFFY_BYTES * HZ; in rateinfo_init()
480 dh->rateinfo.credit = user2credits(hinfo->cfg.avg * in rateinfo_init()
[all …]
/linux-4.4.14/net/bridge/netfilter/
Debt_limit.c41 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
/linux-4.4.14/drivers/xen/
Dballoon.c305 long credit; in reserve_additional_memory() local
310 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated in reserve_additional_memory()
317 if (credit <= 0) in reserve_additional_memory()
320 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory()
573 long credit; in balloon_process() local
579 credit = current_credit(); in balloon_process()
581 if (credit > 0) { in balloon_process()
583 state = increase_reservation(credit); in balloon_process()
588 if (credit < 0) in balloon_process()
589 state = decrease_reservation(-credit, GFP_BALLOON); in balloon_process()
[all …]
/linux-4.4.14/drivers/infiniband/hw/cxgb3/
Diwch_cq.c50 u32 credit = 0; in iwch_poll_cq_one() local
68 &credit); in iwch_poll_cq_one()
69 if (t3a_device(chp->rhp) && credit) { in iwch_poll_cq_one()
71 credit, chp->cq.cqid); in iwch_poll_cq_one()
72 cxio_hal_cq_op(&rhp->rdev, &chp->cq, CQ_CREDIT_UPDATE, credit); in iwch_poll_cq_one()
Dcxio_hal.h159 enum t3_cq_opcode op, u32 credit);
196 u8 *cqe_flushed, u64 *cookie, u32 *credit);
Dcxio_hal.c72 enum t3_cq_opcode op, u32 credit) in cxio_hal_cq_op() argument
80 setup.credits = (op == CQ_CREDIT_UPDATE) ? credit : 0; in cxio_hal_cq_op()
1148 u8 *cqe_flushed, u64 *cookie, u32 *credit) in cxio_poll_cq() argument
1154 *credit = 0; in cxio_poll_cq()
1338 *credit = cq->rptr - cq->wptr; in cxio_poll_cq()
/linux-4.4.14/net/sched/
Dsch_fq.c69 int credit; member
266 f->credit = q->initial_quantum; in fq_classify()
287 f->credit = q->initial_quantum; in fq_classify()
392 f->credit = max_t(u32, f->credit, q->quantum); in fq_enqueue()
455 if (f->credit <= 0) { in fq_dequeue()
456 f->credit += q->quantum; in fq_dequeue()
483 f->credit -= qdisc_pkt_len(skb); in fq_dequeue()
485 if (f->credit > 0 || !q->rate_enable) in fq_dequeue()
/linux-4.4.14/net/ipv4/
Dicmp.c240 u32 credit; member
255 u32 credit, delta, incr = 0, now = (u32)jiffies; in icmp_global_allow() local
261 if (!icmp_global.credit) { in icmp_global_allow()
274 credit = min_t(u32, icmp_global.credit + incr, sysctl_icmp_msgs_burst); in icmp_global_allow()
275 if (credit) { in icmp_global_allow()
276 credit--; in icmp_global_allow()
279 icmp_global.credit = credit; in icmp_global_allow()
/linux-4.4.14/include/uapi/linux/netfilter_bridge/
Debt_limit.h20 __u32 credit; member
/linux-4.4.14/include/uapi/linux/netfilter/
Dxt_limit.h19 __u32 credit; /* moved to xt_limit_priv */ member
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd_cb.c147 kiblnd_post_rx(kib_rx_t *rx, int credit) in kiblnd_post_rx() argument
157 LASSERT(credit == IBLND_POSTRX_NO_CREDIT || in kiblnd_post_rx()
158 credit == IBLND_POSTRX_PEER_CREDIT || in kiblnd_post_rx()
159 credit == IBLND_POSTRX_RSRVD_CREDIT); in kiblnd_post_rx()
203 if (credit == IBLND_POSTRX_NO_CREDIT) in kiblnd_post_rx()
207 if (credit == IBLND_POSTRX_PEER_CREDIT) in kiblnd_post_rx()
752 kiblnd_post_tx_locked(kib_conn_t *conn, kib_tx_t *tx, int credit) in kiblnd_post_tx_locked() argument
768 LASSERT(credit == 0 || credit == 1); in kiblnd_post_tx_locked()
781 if (credit != 0 && conn->ibc_credits == 0) { /* no credits */ in kiblnd_post_tx_locked()
787 if (credit != 0 && !IBLND_OOB_CAPABLE(ver) && in kiblnd_post_tx_locked()
[all …]
Do2iblnd.h979 int kiblnd_post_rx(kib_rx_t *rx, int credit);
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_qp.c1056 u32 credit = (aeth >> IPATH_AETH_CREDIT_SHIFT) & IPATH_AETH_CREDIT_MASK; in ipath_get_credit() local
1063 if (credit == IPATH_AETH_CREDIT_INVAL) in ipath_get_credit()
1067 credit = (aeth + credit_table[credit]) & IPATH_MSN_MASK; in ipath_get_credit()
1068 if (ipath_cmp24(credit, qp->s_lsn) > 0) in ipath_get_credit()
1069 qp->s_lsn = credit; in ipath_get_credit()
/linux-4.4.14/include/net/irda/
Dirttp.h155 struct tsap_cb *irttp_open_tsap(__u8 stsap_sel, int credit, notify_t *notify);
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_qp.c1285 u32 credit = (aeth >> QIB_AETH_CREDIT_SHIFT) & QIB_AETH_CREDIT_MASK; in qib_get_credit() local
1292 if (credit == QIB_AETH_CREDIT_INVAL) { in qib_get_credit()
1302 credit = (aeth + credit_table[credit]) & QIB_MSN_MASK; in qib_get_credit()
1303 if (qib_cmp24(credit, qp->s_lsn) > 0) { in qib_get_credit()
1304 qp->s_lsn = credit; in qib_get_credit()
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
Dcq.c469 u8 *cqe_flushed, u64 *cookie, u32 *credit) in poll_cq() argument
475 *credit = 0; in poll_cq()
687 u32 credit = 0; in c4iw_poll_cq_one() local
704 ret = poll_cq(wq, &(chp->cq), &cqe, &cqe_flushed, &cookie, &credit); in c4iw_poll_cq_one()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dqp.c1356 u32 credit = (aeth >> HFI1_AETH_CREDIT_SHIFT) & HFI1_AETH_CREDIT_MASK; in hfi1_get_credit() local
1363 if (credit == HFI1_AETH_CREDIT_INVAL) { in hfi1_get_credit()
1373 credit = (aeth + credit_table[credit]) & HFI1_MSN_MASK; in hfi1_get_credit()
1374 if (cmp_msn(credit, qp->s_lsn) > 0) { in hfi1_get_credit()
1375 qp->s_lsn = credit; in hfi1_get_credit()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_prototype.h209 u16 seid, u16 credit, u8 max_credit,
218 u16 seid, u16 credit, u8 max_bw,
Di40e_adminq_cmd.h1366 __le16 credit; member
1434 __le16 credit; member
Di40e_common.c3437 u16 seid, u16 credit, u8 max_credit, in i40e_aq_config_vsi_bw_limit() argument
3449 cmd->credit = cpu_to_le16(credit); in i40e_aq_config_vsi_bw_limit()
/linux-4.4.14/Documentation/ABI/stable/
Dsysfs-driver-ib_srp166 SRP credit algorithm in the SRP specification.
188 information see also the SRP credit algorithm in the SRP
/linux-4.4.14/fs/ext4/
Dresize.c1418 int err = 0, err2 = 0, credit; in ext4_flex_group_add() local
1437 credit = 3; /* sb, resize inode, resize inode dindirect */ in ext4_flex_group_add()
1439 credit += 1 + DIV_ROUND_UP(flex_gd->count, EXT4_DESC_PER_BLOCK(sb)); in ext4_flex_group_add()
1440 credit += reserved_gdb; /* Reserved GDT dindirect blocks */ in ext4_flex_group_add()
1441 handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, credit); in ext4_flex_group_add()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dcnic_if.h160 struct drv_ctl_spq_credit credit; member
Dcnic.c298 info.data.credit.credit_count = count; in cnic_spq_completion()
/linux-4.4.14/fs/reiserfs/
DREADME37 fail to fairly credit me, or to remove my credits, without my
125 Jeremy Fitzhardinge wrote the teahash.c code, and he gives credit to a
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sp.h648 atomic_t credit; member
1495 int base, int credit);
Dbnx2x_sp.c3995 rc = __atomic_dec_ifmoe(&o->credit, cnt, 0); in bnx2x_credit_pool_get()
4008 rc = __atomic_add_ifless(&o->credit, cnt, o->pool_sz + 1); in bnx2x_credit_pool_put()
4020 cur_credit = atomic_read(&o->credit); in bnx2x_credit_pool_check()
4105 int base, int credit) in bnx2x_init_credit_pool() argument
4114 atomic_set(&p->credit, credit); in bnx2x_init_credit_pool()
4117 p->pool_sz = credit; in bnx2x_init_credit_pool()
4127 if (credit >= 0) { in bnx2x_init_credit_pool()
4216 int credit = PF_VLAN_CREDIT_E2(bp, func_num); in bnx2x_init_vlan_credit_pool() local
4218 bnx2x_init_credit_pool(p, -1/*unused for E2*/, credit); in bnx2x_init_vlan_credit_pool()
Dbnx2x_main.c14635 int count = ctl->data.credit.credit_count; in bnx2x_drv_ctl()
14705 int count = ctl->data.credit.credit_count; in bnx2x_drv_ctl()
/linux-4.4.14/drivers/char/
Drandom.c904 int credit = 0; in add_interrupt_randomness() local
939 credit = 1; in add_interrupt_randomness()
946 credit_entropy_bits(r, credit + 1); in add_interrupt_randomness()
/linux-4.4.14/net/irda/
Dirttp.c389 struct tsap_cb *irttp_open_tsap(__u8 stsap_sel, int credit, notify_t *notify) in irttp_open_tsap() argument
456 if (credit > TTP_RX_MAX_CREDIT) in irttp_open_tsap()
459 self->initial_credit = credit; in irttp_open_tsap()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
Dcpl5_cmd.h416 u32 credit; member
/linux-4.4.14/Documentation/
DSubmittingPatches476 want at the same time to credit the author, track changes, merge the fix,
542 The Reported-by tag gives credit to people who find bugs and report them and it
550 future patches, and ensures credit for the testers.
580 offer a Reviewed-by tag for a patch. This tag serves to give credit to
587 named and ensures credit to the person for the idea. Please note that this
589 idea was not posted in a public forum. That said, if we diligently credit our
Dlzo.txt73 They just have to "refill" this credit if they consume extra bytes. This is
DChanges8 and therefore owes credit to the same people as that file (Jared Mauch,
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
Di40e_adminq_cmd.h1363 __le16 credit; member
1431 __le16 credit; member
/linux-4.4.14/drivers/pcmcia/
DKconfig9 computer. These are credit-card size devices such as network cards,
/linux-4.4.14/Documentation/networking/
Drds.txt217 RDS's IB transport uses a credit-based mechanism to verify that
/linux-4.4.14/drivers/tty/serial/8250/
DKconfig131 credit-card size devices often used with laptops.)
/linux-4.4.14/Documentation/development-process/
D5.Posting217 patch; this tag is used to give credit to the (often underappreciated)
/linux-4.4.14/drivers/staging/speakup/
Dspkguide.txt1194 to get credit for their work, while not being considered responsible
/linux-4.4.14/
DMAINTAINERS46 PLEASE try to include any credit lines you want added with the