Home
last modified time | relevance | path

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

/drivers/xen/
Dballoon.c303 long credit; in reserve_additional_memory() local
308 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated in reserve_additional_memory()
315 if (credit <= 0) in reserve_additional_memory()
318 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory()
572 long credit; in balloon_process() local
578 credit = current_credit(); in balloon_process()
580 if (credit > 0) { in balloon_process()
582 state = increase_reservation(credit); in balloon_process()
587 if (credit < 0) { in balloon_process()
590 n_pages = min(-credit, si_mem_available()); in balloon_process()
[all …]
/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()
/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);
/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()
/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()
/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()
/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()
/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.c3439 u16 seid, u16 credit, u8 max_credit, in i40e_aq_config_vsi_bw_limit() argument
3451 cmd->credit = cpu_to_le16(credit); in i40e_aq_config_vsi_bw_limit()
/drivers/char/
Drandom.c910 int credit = 0; in add_interrupt_randomness() local
945 credit = 1; in add_interrupt_randomness()
952 credit_entropy_bits(r, credit + 1); in add_interrupt_randomness()
/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()
/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.c14707 int count = ctl->data.credit.credit_count; in bnx2x_drv_ctl()
14777 int count = ctl->data.credit.credit_count; in bnx2x_drv_ctl()
/drivers/net/ethernet/chelsio/cxgb/
Dcpl5_cmd.h416 u32 credit; member
/drivers/net/ethernet/intel/i40evf/
Di40e_adminq_cmd.h1363 __le16 credit; member
1431 __le16 credit; member
/drivers/pcmcia/
DKconfig9 computer. These are credit-card size devices such as network cards,
/drivers/tty/serial/8250/
DKconfig131 credit-card size devices often used with laptops.)
/drivers/staging/speakup/
Dspkguide.txt1194 to get credit for their work, while not being considered responsible