Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/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.1.27/drivers/xen/
Dballoon.c222 static enum bp_state reserve_additional_memory(long credit) in reserve_additional_memory() argument
226 unsigned long balloon_hotplug = credit; in reserve_additional_memory()
262 balloon_hotplug -= credit; in reserve_additional_memory()
264 balloon_stats.hotplug_pages += credit; in reserve_additional_memory()
319 static enum bp_state reserve_additional_memory(long credit) in reserve_additional_memory() argument
483 long credit; in balloon_process() local
488 credit = current_credit(); in balloon_process()
490 if (credit > 0) { in balloon_process()
492 state = increase_reservation(credit); in balloon_process()
494 state = reserve_additional_memory(credit); in balloon_process()
[all …]
/linux-4.1.27/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.1.27/net/sched/
Dsch_fq.c69 int credit; member
263 f->credit = q->initial_quantum; in fq_classify()
284 f->credit = q->initial_quantum; in fq_classify()
389 f->credit = max_t(u32, f->credit, q->quantum); in fq_enqueue()
452 if (f->credit <= 0) { in fq_dequeue()
453 f->credit += q->quantum; in fq_dequeue()
480 f->credit -= qdisc_pkt_len(skb); in fq_dequeue()
482 if (f->credit > 0 || !q->rate_enable) in fq_dequeue()
/linux-4.1.27/drivers/staging/ozwpan/
Dozhcd.c81 int credit; member
291 ep->credit = -1; in oz_ep_alloc()
484 if (!in_dir && ep_addr && (ep->credit < 0)) { in oz_enqueue_ep_urb()
486 ep->credit = 0; in oz_enqueue_ep_urb()
1052 if (ep->credit < 0) in oz_hcd_heartbeat()
1055 ep->credit += div_u64(timespec_to_ns(&delta), NSEC_PER_MSEC); in oz_hcd_heartbeat()
1056 if (ep->credit > ep->credit_ceiling) in oz_hcd_heartbeat()
1057 ep->credit = ep->credit_ceiling; in oz_hcd_heartbeat()
1059 while (ep->credit && !list_empty(&ep->urb_list)) { in oz_hcd_heartbeat()
1063 if ((ep->credit + 1) < urb->number_of_packets) in oz_hcd_heartbeat()
[all …]
/linux-4.1.27/net/ipv4/
Dicmp.c239 u32 credit; member
254 u32 credit, delta, incr = 0, now = (u32)jiffies; in icmp_global_allow() local
260 if (!icmp_global.credit) { in icmp_global_allow()
273 credit = min_t(u32, icmp_global.credit + incr, sysctl_icmp_msgs_burst); in icmp_global_allow()
274 if (credit) { in icmp_global_allow()
275 credit--; in icmp_global_allow()
278 icmp_global.credit = credit; in icmp_global_allow()
/linux-4.1.27/include/uapi/linux/netfilter_bridge/
Debt_limit.h20 __u32 credit; member
/linux-4.1.27/include/uapi/linux/netfilter/
Dxt_limit.h19 __u32 credit; /* moved to xt_limit_priv */ member
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd_cb.c146 kiblnd_post_rx(kib_rx_t *rx, int credit) in kiblnd_post_rx() argument
156 LASSERT(credit == IBLND_POSTRX_NO_CREDIT || in kiblnd_post_rx()
157 credit == IBLND_POSTRX_PEER_CREDIT || in kiblnd_post_rx()
158 credit == IBLND_POSTRX_RSRVD_CREDIT); in kiblnd_post_rx()
198 if (credit == IBLND_POSTRX_NO_CREDIT) in kiblnd_post_rx()
202 if (credit == IBLND_POSTRX_PEER_CREDIT) in kiblnd_post_rx()
792 kiblnd_post_tx_locked(kib_conn_t *conn, kib_tx_t *tx, int credit) in kiblnd_post_tx_locked() argument
808 LASSERT(credit == 0 || credit == 1); in kiblnd_post_tx_locked()
821 if (credit != 0 && conn->ibc_credits == 0) { /* no credits */ in kiblnd_post_tx_locked()
827 if (credit != 0 && !IBLND_OOB_CAPABLE(ver) && in kiblnd_post_tx_locked()
[all …]
Do2iblnd.h1025 int kiblnd_post_rx (kib_rx_t *rx, int credit);
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_qp.c1057 u32 credit = (aeth >> IPATH_AETH_CREDIT_SHIFT) & IPATH_AETH_CREDIT_MASK; in ipath_get_credit() local
1064 if (credit == IPATH_AETH_CREDIT_INVAL) in ipath_get_credit()
1068 credit = (aeth + credit_table[credit]) & IPATH_MSN_MASK; in ipath_get_credit()
1069 if (ipath_cmp24(credit, qp->s_lsn) > 0) in ipath_get_credit()
1070 qp->s_lsn = credit; in ipath_get_credit()
/linux-4.1.27/include/net/irda/
Dirttp.h155 struct tsap_cb *irttp_open_tsap(__u8 stsap_sel, int credit, notify_t *notify);
/linux-4.1.27/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.1.27/drivers/net/ethernet/intel/i40e/
Di40e_prototype.h196 u16 seid, u16 credit, u8 max_credit,
205 u16 seid, u16 credit, u8 max_bw,
Di40e_adminq_cmd.h1362 __le16 credit; member
1430 __le16 credit; member
Di40e_common.c3027 u16 seid, u16 credit, u8 max_credit, in i40e_aq_config_vsi_bw_limit() argument
3039 cmd->credit = cpu_to_le16(credit); in i40e_aq_config_vsi_bw_limit()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Dcq.c471 u8 *cqe_flushed, u64 *cookie, u32 *credit) in poll_cq() argument
477 *credit = 0; in poll_cq()
689 u32 credit = 0; in c4iw_poll_cq_one() local
706 ret = poll_cq(wq, &(chp->cq), &cqe, &cqe_flushed, &cookie, &credit); in c4iw_poll_cq_one()
/linux-4.1.27/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.1.27/drivers/net/ethernet/broadcom/
Dcnic_if.h155 struct drv_ctl_spq_credit credit; member
Dcnic.c290 info.data.credit.credit_count = count; in cnic_spq_completion()
/linux-4.1.27/fs/ext4/
Dresize.c1421 int err = 0, err2 = 0, credit; in ext4_flex_group_add() local
1440 credit = 3; /* sb, resize inode, resize inode dindirect */ in ext4_flex_group_add()
1442 credit += 1 + DIV_ROUND_UP(flex_gd->count, EXT4_DESC_PER_BLOCK(sb)); in ext4_flex_group_add()
1443 credit += reserved_gdb; /* Reserved GDT dindirect blocks */ in ext4_flex_group_add()
1444 handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, credit); in ext4_flex_group_add()
/linux-4.1.27/drivers/char/
Drandom.c884 int credit = 0; in add_interrupt_randomness() local
919 credit = 1; in add_interrupt_randomness()
926 credit_entropy_bits(r, credit + 1); in add_interrupt_randomness()
/linux-4.1.27/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.1.27/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.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sp.c3748 rc = __atomic_dec_ifmoe(&o->credit, cnt, 0); in bnx2x_credit_pool_get()
3761 rc = __atomic_add_ifless(&o->credit, cnt, o->pool_sz + 1); in bnx2x_credit_pool_put()
3773 cur_credit = atomic_read(&o->credit); in bnx2x_credit_pool_check()
3858 int base, int credit) in bnx2x_init_credit_pool() argument
3867 atomic_set(&p->credit, credit); in bnx2x_init_credit_pool()
3870 p->pool_sz = credit; in bnx2x_init_credit_pool()
3880 if (credit >= 0) { in bnx2x_init_credit_pool()
3969 int credit = MAX_VLAN_CREDIT_E2 / func_num; in bnx2x_init_vlan_credit_pool() local
3970 bnx2x_init_credit_pool(p, func_id * credit, credit); in bnx2x_init_vlan_credit_pool()
Dbnx2x_sp.h646 atomic_t credit; member
Dbnx2x_main.c14212 int count = ctl->data.credit.credit_count; in bnx2x_drv_ctl()
14282 int count = ctl->data.credit.credit_count; in bnx2x_drv_ctl()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/
Dcpl5_cmd.h416 u32 credit; member
/linux-4.1.27/Documentation/
DSubmittingPatches474 want at the same time to credit the author, track changes, merge the fix,
540 The Reported-by tag gives credit to people who find bugs and report them and it
548 future patches, and ensures credit for the testers.
578 offer a Reviewed-by tag for a patch. This tag serves to give credit to
585 named and ensures credit to the person for the idea. Please note that this
587 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.1.27/drivers/net/ethernet/intel/i40evf/
Di40e_adminq_cmd.h1360 __le16 credit; member
1428 __le16 credit; member
/linux-4.1.27/drivers/pcmcia/
DKconfig9 computer. These are credit-card size devices such as network cards,
/linux-4.1.27/Documentation/networking/
Drds.txt217 RDS's IB transport uses a credit-based mechanism to verify that
/linux-4.1.27/drivers/tty/serial/8250/
DKconfig131 credit-card size devices often used with laptops.)
/linux-4.1.27/Documentation/development-process/
D5.Posting217 patch; this tag is used to give credit to the (often underappreciated)
/linux-4.1.27/drivers/staging/speakup/
Dspkguide.txt1194 to get credit for their work, while not being considered responsible
/linux-4.1.27/
DMAINTAINERS46 PLEASE try to include any credit lines you want added with the