Home
last modified time | relevance | path

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

/drivers/xen/
Dballoon.c223 static enum bp_state reserve_additional_memory(long credit) in reserve_additional_memory() argument
227 unsigned long balloon_hotplug = credit; in reserve_additional_memory()
263 balloon_hotplug -= credit; in reserve_additional_memory()
265 balloon_stats.hotplug_pages += credit; in reserve_additional_memory()
320 static enum bp_state reserve_additional_memory(long credit) in reserve_additional_memory() argument
494 long credit; in balloon_process() local
499 credit = current_credit(); in balloon_process()
501 if (credit > 0) { in balloon_process()
503 state = increase_reservation(credit); in balloon_process()
505 state = reserve_additional_memory(credit); 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/ozwpan/
Dozhcd.c81 int credit; member
289 ep->credit = -1; in oz_ep_alloc()
483 if (!in_dir && ep_addr && (ep->credit < 0)) { in oz_enqueue_ep_urb()
485 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 …]
/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);
/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()
/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/infiniband/hw/cxgb4/
Dcq.c464 u8 *cqe_flushed, u64 *cookie, u32 *credit) in poll_cq() argument
470 *credit = 0; in poll_cq()
682 u32 credit = 0; in c4iw_poll_cq_one() local
699 ret = poll_cq(wq, &(chp->cq), &cqe, &cqe_flushed, &cookie, &credit); in c4iw_poll_cq_one()
/drivers/net/ethernet/intel/i40e/
Di40e_prototype.h188 u16 seid, u16 credit, u8 max_credit,
197 u16 seid, u16 credit, u8 max_bw,
Di40e_adminq_cmd.h1341 __le16 credit; member
1401 __le16 credit; member
Di40e_common.c2811 u16 seid, u16 credit, u8 max_credit, in i40e_aq_config_vsi_bw_limit() argument
2823 cmd->credit = cpu_to_le16(credit); in i40e_aq_config_vsi_bw_limit()
/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()
/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.c14182 int count = ctl->data.credit.credit_count; in bnx2x_drv_ctl()
14252 int count = ctl->data.credit.credit_count; in bnx2x_drv_ctl()
/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()
/drivers/net/ethernet/chelsio/cxgb/
Dcpl5_cmd.h416 u32 credit; member
/drivers/net/ethernet/intel/i40evf/
Di40e_adminq_cmd.h1345 __le16 credit; member
1405 __le16 credit; member
/drivers/pcmcia/
DKconfig9 computer. These are credit-card size devices such as network cards,
/drivers/tty/serial/8250/
DKconfig130 credit-card size devices often used with laptops.)
/drivers/staging/speakup/
Dspkguide.txt1194 to get credit for their work, while not being considered responsible