/darwin-on-arm/xnu/osfmk/kern/ |
H A D | sched_grrr.c | 642 * (group->work+1) / (nextgroup->work+1) > (group->weight) / (nextgroup->weight) 647 orderleft = (group->work + 1) * ((uint64_t)nextgroup->weight); 648 orderright = (nextgroup->work + 1) * ((uint64_t)group->weight); 684 runq->groups[index].weight = 0; 690 runq->weight = 0; 728 group->weight = gpriority; 740 group->weight += gpriority; 749 rq->weight += gpriority; 772 group->weight [all...] |
H A D | sched.h | 235 queue_chain_t priority_order; /* next greatest weight group */ 241 uint32_t weight; member in struct:grrr_group 254 uint32_t weight; member in struct:grrr_run_queue
|
/darwin-on-arm/xnu/bsd/net/classq/ |
H A D | classq_red.c | 152 #define W_WEIGHT 512 /* inverse of weight of EWMA (511/512) */ 156 #define W_WEIGHT_1 128 /* inverse of weight of EWMA (127/128) */ 160 #define W_WEIGHT_2 64 /* inverse of weight of EWMA (63/64) */ 215 red_alloc(struct ifnet *ifp, int weight, int inv_pmax, int th_min, argument 232 if (weight == 0) 235 rp->red_weight = weight; 258 if (weight == 0) { 270 /* calculate wshift. weight must be power of 2 */ 277 printf("invalid weight value %d for red! use %d\n", 296 /* allocate weight tabl 539 wtab_alloc(int weight) argument [all...] |
H A D | classq_rio.c | 148 #define W_WEIGHT 512 /* inverse of weight of EWMA (511/512) */ 152 #define W_WEIGHT_1 128 /* inverse of weight of EWMA (127/128) */ 156 #define W_WEIGHT_2 64 /* inverse of weight of EWMA (63/64) */ 206 rio_alloc(struct ifnet *ifp, int weight, struct redparams *params, argument 229 if (weight != 0) 230 rp->rio_weight = weight; 246 /* calculate wshift. weight must be power of 2 */ 253 printf("invalid weight value %d for red! use %d\n", 258 /* allocate weight table */
|
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | ip_dummynet.h | 89 * packet length, and x is either the weight of the flow, or the 91 * If we limit to max 1000 flows and a max weight of 100, then 109 * XXX With this scaling, max 1000 flows, max weight 100, 1Gbit/s, the 215 different flows), a weight (used to give different shares of the 336 int weight ; /* WFQ queue weight */ member in struct:dn_flow_set 355 int w_q ; /* queue weight (scaled) */ 490 int weight ; /* WFQ queue weight */ member in struct:dn_flow_set_32 509 int w_q ; /* queue weight (scale 615 int weight ; /* WFQ queue weight */ member in struct:dn_flow_set_64 [all...] |
H A D | ip_dummynet.c | 287 p->fs.weight = user_pipe_32.fs.weight; 333 p->fs.weight = user_pipe_64.fs.weight; 364 fs_bp->weight = set->weight ; 394 fs_bp->weight = set->weight ; 925 q->F += (len<<MY_M)/(u_int64_t) fs->weight ; 1064 pe->sum -= q->fs->weight ; [all...] |
/darwin-on-arm/xnu/bsd/net/altq/ |
H A D | altq_qfq.c | 125 err = qfq_add_queue(qif, a->qlimit, a->weight, a->pq_u.qfq_opts.lmax,
|
/darwin-on-arm/xnu/bsd/net/pktsched/ |
H A D | pktsched_qfq.h | 103 u_int32_t weight; member in struct:qfq_classstats 135 * QFQ_MAX_WSHIFT is the maximum power of two supported as a weight. 156 * static and adaptive weight sum. 171 * When computing the group index, we do (len<<FP_SHIFT)/weight, 218 * which is log_2(lmax/weight), but we never reference it 222 u_int32_t cl_inv_w; /* QFQ_ONE_FP/weight */ 268 u_int32_t qif_wsum; /* weight sum */
|
H A D | pktsched_qfq.c | 384 qfq_add_queue(struct qfq_if *qif, u_int32_t qlimit, u_int32_t weight, argument 396 if (weight == 0 || weight > QFQ_MAX_WEIGHT) 399 w = (QFQ_ONE_FP / (QFQ_ONE_FP / weight)); 406 cl = qfq_class_create(qif, weight, qlimit, flags, maxsz, qid); 417 qfq_class_create(struct qfq_if *qif, u_int32_t weight, u_int32_t qlimit, argument 424 u_int32_t w; /* approximated weight */ 515 w = weight; 636 log(LOG_DEBUG, "%s: %s created qid=%d grp=%d weight=%d " 638 cl->cl_handle, cl->cl_grp->qfg_index, weight, qlimi [all...] |
/darwin-on-arm/xnu/bsd/net/ |
H A D | pfvar.h | 1665 #define PF_ALTQ_QRF_WEIGHT 0x1 /* weight instead of priority */ 1692 u_int32_t weight; /* weight */ member in union:pf_altq::__anon273
|