| /linux-4.4.14/net/netfilter/ |
| D | xt_limit.c | 22 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 …]
|
| D | xt_hashlimit.c | 89 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/ |
| D | ebt_limit.c | 41 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/ |
| D | balloon.c | 305 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/ |
| D | iwch_cq.c | 50 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()
|
| D | cxio_hal.h | 159 enum t3_cq_opcode op, u32 credit); 196 u8 *cqe_flushed, u64 *cookie, u32 *credit);
|
| D | cxio_hal.c | 72 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/ |
| D | sch_fq.c | 69 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/ |
| D | icmp.c | 240 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/ |
| D | ebt_limit.h | 20 __u32 credit; member
|
| /linux-4.4.14/include/uapi/linux/netfilter/ |
| D | xt_limit.h | 19 __u32 credit; /* moved to xt_limit_priv */ member
|
| /linux-4.4.14/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
| D | o2iblnd_cb.c | 147 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 …]
|
| D | o2iblnd.h | 979 int kiblnd_post_rx(kib_rx_t *rx, int credit);
|
| /linux-4.4.14/drivers/staging/rdma/ipath/ |
| D | ipath_qp.c | 1056 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/ |
| D | irttp.h | 155 struct tsap_cb *irttp_open_tsap(__u8 stsap_sel, int credit, notify_t *notify);
|
| /linux-4.4.14/drivers/infiniband/hw/qib/ |
| D | qib_qp.c | 1285 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/ |
| D | cq.c | 469 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/ |
| D | qp.c | 1356 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/ |
| D | i40e_prototype.h | 209 u16 seid, u16 credit, u8 max_credit, 218 u16 seid, u16 credit, u8 max_bw,
|
| D | i40e_adminq_cmd.h | 1366 __le16 credit; member 1434 __le16 credit; member
|
| D | i40e_common.c | 3437 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/ |
| D | sysfs-driver-ib_srp | 166 SRP credit algorithm in the SRP specification. 188 information see also the SRP credit algorithm in the SRP
|
| /linux-4.4.14/fs/ext4/ |
| D | resize.c | 1418 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/ |
| D | cnic_if.h | 160 struct drv_ctl_spq_credit credit; member
|
| D | cnic.c | 298 info.data.credit.credit_count = count; in cnic_spq_completion()
|
| /linux-4.4.14/fs/reiserfs/ |
| D | README | 37 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/ |
| D | bnx2x_sp.h | 648 atomic_t credit; member 1495 int base, int credit);
|
| D | bnx2x_sp.c | 3995 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()
|
| D | bnx2x_main.c | 14635 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/ |
| D | random.c | 904 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/ |
| D | irttp.c | 389 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/ |
| D | cpl5_cmd.h | 416 u32 credit; member
|
| /linux-4.4.14/Documentation/ |
| D | SubmittingPatches | 476 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
|
| D | lzo.txt | 73 They just have to "refill" this credit if they consume extra bytes. This is
|
| D | Changes | 8 and therefore owes credit to the same people as that file (Jared Mauch,
|
| /linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
| D | i40e_adminq_cmd.h | 1363 __le16 credit; member 1431 __le16 credit; member
|
| /linux-4.4.14/drivers/pcmcia/ |
| D | Kconfig | 9 computer. These are credit-card size devices such as network cards,
|
| /linux-4.4.14/Documentation/networking/ |
| D | rds.txt | 217 RDS's IB transport uses a credit-based mechanism to verify that
|
| /linux-4.4.14/drivers/tty/serial/8250/ |
| D | Kconfig | 131 credit-card size devices often used with laptops.)
|
| /linux-4.4.14/Documentation/development-process/ |
| D | 5.Posting | 217 patch; this tag is used to give credit to the (often underappreciated)
|
| /linux-4.4.14/drivers/staging/speakup/ |
| D | spkguide.txt | 1194 to get credit for their work, while not being considered responsible
|
| /linux-4.4.14/ |
| D | MAINTAINERS | 46 PLEASE try to include any credit lines you want added with the
|