/freebsd-11-stable/sys/dev/xen/balloon/ |
H A D | balloon.c | 274 long credit; local 281 credit = current_target() - bs.current_pages; 282 if (credit > 0) 283 need_sleep = (increase_reservation(credit) != 0); 284 if (credit < 0) 285 need_sleep = (decrease_reservation(-credit) != 0); 287 } while ((credit != 0) && !need_sleep);
|
/freebsd-11-stable/sys/netpfil/ipfw/ |
H A D | dn_sched_rr.c | 61 uint32_t credit; /* max bytes we can transmit */ member in struct:rr_queue 85 q->credit = q->quantum; /* initialize credit */ 193 if (len > rrq->credit) { 195 rrq->credit += rrq->quantum; 199 rrq->credit -= len; 270 q->credit = q->quantum;
|
H A D | ip_dn_io.c | 615 si->credit += (now - si->sched_time) * bw; 617 si->credit = 0; 620 while (si->credit >= 0 && (m = s->fp->dequeue(si)) != NULL) { 626 si->credit -= len_scaled; 633 * If credit >= 0 the instance is idle, mark time. 637 if (si->credit >= 0) { 641 KASSERT (bw > 0, ("bw=0 and credit<0 ?")); 642 t = div64(bw - 1 - si->credit, bw); 924 si->credit = dn_cfg.io_fast ? p->bandwidth : 0; 929 si->credit [all...] |
H A D | ip_dn_private.h | 318 int64_t credit; /* bits I can transmit (more or less). */ member in struct:dn_sch_inst
|
H A D | ip_dummynet.c | 599 /* callback to flush credit for the scheduler instance */ 606 si->credit = p->burst + (dn_cfg.io_fast ? p->bandwidth : 0);
|
/freebsd-11-stable/sys/dev/cxgb/ulp/iw_cxgb/ |
H A D | iw_cxgb_cq.c | 94 u32 credit = 0; local 112 &credit); 113 if (t3a_device(chp->rhp) && credit) { 115 credit, chp->cq.cqid); 116 cxio_hal_cq_op(&rhp->rdev, &chp->cq, CQ_CREDIT_UPDATE, credit);
|
H A D | iw_cxgb_hal.h | 139 enum t3_cq_opcode op, u32 credit); 174 u8 *cqe_flushed, u64 *cookie, u32 *credit);
|
H A D | iw_cxgb_hal.c | 110 enum t3_cq_opcode op, u32 credit) 118 credit = 0; 121 ret = t3_sge_cqcntxt_op(sc, cq->cqid, op, credit); 677 * Force a CQE to return the credit to the workq in case 1145 * credit: cq credit to return to sge. 1155 u8 *cqe_flushed, u64 *cookie, u32 *credit) 1161 *credit = 0; 1333 *credit = cq->rptr - cq->wptr; 109 cxio_hal_cq_op(struct cxio_rdev *rdev_p, struct t3_cq *cq, enum t3_cq_opcode op, u32 credit) argument 1154 cxio_poll_cq(struct t3_wq *wq, struct t3_cq *cq, struct t3_cqe *cqe, u8 *cqe_flushed, u64 *cookie, u32 *credit) argument
|
/freebsd-11-stable/sys/mips/nlm/dev/net/ |
H A D | nae.c | 696 uint32_t data, credit, max_credit; local 703 credit = cfg[hwport].stg1_2_credit / max_ctxts; 704 if (credit > max_credit) 705 credit = max_credit; 706 data = credit << 16 | 715 credit = cfg[hwport].stg2_eh_credit / max_ctxts; 716 if (credit > max_credit) 717 credit = max_credit; 718 data = credit << 16 | 727 credit [all...] |
/freebsd-11-stable/sys/mips/nlm/ |
H A D | cms.c | 109 /* We do only i/o device credit setup here. CPU credit setup is now 117 xlp_cms_credit_setup(int credit) argument 146 src, credit); 153 xlp_msgring_cpu_init(int node, int cpu, int credit) argument 161 /* cpu credit setup is done only from thread-0 of each core */ 165 nlm_cms_setup_credits(cmsbase, qid, src, credit);
|
/freebsd-11-stable/sys/mips/nlm/hal/ |
H A D | fmn.c | 139 void nlm_cms_setup_credits(uint64_t base, int destid, int srcid, int credit) argument 143 val = (((uint64_t)credit << 24) | (destid << 12) | (srcid << 0));
|
H A D | fmn.h | 215 extern void nlm_cms_setup_credits (uint64_t base, int destid, int srcid, int credit);
|
/freebsd-11-stable/contrib/ofed/libcxgb4/ |
H A D | cq.c | 336 * credit: cq credit to return to sge. 346 u8 *cqe_flushed, u64 *cookie, u32 *credit) 352 *credit = 0; 565 u32 credit = 0; local 598 ret = poll_cq(wq, &(chp->cq), &cqe, &cqe_flushed, &cookie, &credit); 345 poll_cq(struct t4_wq *wq, struct t4_cq *cq, struct t4_cqe *cqe, u8 *cqe_flushed, u64 *cookie, u32 *credit) argument
|
/freebsd-11-stable/sys/fs/fuse/ |
H A D | fuse_ipc.c | 162 fiov->credit = fuse_iov_credit; 182 --fiov->credit < 0)) { 190 fiov->credit = fuse_iov_credit;
|
H A D | fuse_ipc.h | 68 int credit; member in struct:fuse_iov
|
/freebsd-11-stable/sys/contrib/ngatm/netnatm/saal/ |
H A D | sscoppriv.h | 260 int credit; /* send window not closed */ member in struct:sscop
|
H A D | saal_sscop.c | 1133 sscop->credit = 1; 4283 if(sscop->credit) { 4284 sscop->credit = 0; 4287 } else if(!sscop->credit) { 4292 sscop->credit = 1;
|
/freebsd-11-stable/sys/dev/cxgbe/iw_cxgbe/ |
H A D | cq.c | 480 * credit: cq credit to return to sge. 490 u8 *cqe_flushed, u64 *cookie, u32 *credit) 496 *credit = 0; 718 u32 credit = 0; local 735 ret = poll_cq(wq, &(chp->cq), &cqe, &cqe_flushed, &cookie, &credit); 489 poll_cq(struct t4_wq *wq, struct t4_cq *cq, struct t4_cqe *cqe, u8 *cqe_flushed, u64 *cookie, u32 *credit) argument
|
/freebsd-11-stable/sys/dev/ixl/ |
H A D | i40e_prototype.h | 357 u16 seid, u16 credit, u8 max_credit, 373 u16 seid, u16 credit, u8 max_bw,
|
H A D | i40e_adminq_cmd.h | 1547 __le16 credit; member in struct:i40e_aqc_configure_vsi_bw_limit 1615 __le16 credit; member in struct:i40e_aqc_configure_switching_comp_bw_limit
|
H A D | i40e_common.c | 5148 * @credit: BW limit credits (0 = disabled) 5153 u16 seid, u16 credit, u8 max_credit, 5165 cmd->credit = CPU_TO_LE16(credit); 5177 * @credit: BW limit credits (0 = disabled) 5182 u16 seid, u16 credit, u8 max_bw, 5194 cmd->credit = CPU_TO_LE16(credit); 5152 i40e_aq_config_vsi_bw_limit(struct i40e_hw *hw, u16 seid, u16 credit, u8 max_credit, struct i40e_asq_cmd_details *cmd_details) argument 5181 i40e_aq_config_switch_comp_bw_limit(struct i40e_hw *hw, u16 seid, u16 credit, u8 max_bw, struct i40e_asq_cmd_details *cmd_details) argument
|
/freebsd-11-stable/sys/dev/bxe/ |
H A D | ecore_sp.c | 340 /* credit handling callbacks */ 1509 * requested, consume CAM credit. 1541 /* Consume the credit if not requested not to */ 1558 * requested, returns a CAM credit. 1598 /* Return the credit to the credit pool if not requested not to */ 1602 ECORE_ERR("Failed to return a credit\n"); 1617 * requested, returns a CAM credit. 1666 /* Consume the credit if not requested not to */ 1675 /* return the credit take 4347 ecore_init_credit_pool(struct ecore_credit_pool_obj *p, int base, int credit) argument 4458 int credit = PF_VLAN_CREDIT_E2(sc, func_num); local [all...] |
H A D | ecore_sp.h | 768 /* MACs credit pool */ 771 /* VLANs credit pool */ 823 * Update the relevant credit object(s) (consume/return 1112 /* Current amount of credit in the pool */ 1113 ecore_atomic_t credit; member in struct:ecore_credit_pool_obj 1115 /* Maximum allowed credit. put() will check against it. */ 1146 * Get the requested amount of credit from the pool. 1148 * @param cnt Amount of requested credit 1154 * Returns the credit to the pool. 1156 * @param cnt Amount of credit t [all...] |
/freebsd-11-stable/sys/xen/interface/ |
H A D | domctl.h | 343 } credit; member in union:xen_domctl_scheduler_op::__anon13525
|