Lines Matching defs:bw
149 struct node_queue_bw *bw, struct node_queue_opt *qopts)
152 print_queue(a, level, bw, 1, qopts);
178 if (bw != NULL && bw->bw_percent > 0) {
179 if (bw->bw_percent < 100)
180 printf("bandwidth %u%% ", bw->bw_percent);
191 struct node_queue_bw *bw, int print_interface,
207 if (bw != NULL && bw->bw_percent > 0) {
208 if (bw->bw_percent < 100)
209 printf("bandwidth %u%% ", bw->bw_percent);
234 eval_pfaltq(struct pfctl *pf, struct pf_altq *pa, struct node_queue_bw *bw,
239 if (bw->bw_absolute > 0)
240 pa->ifbandwidth = bw->bw_absolute;
251 } else if ((pa->ifbandwidth = eval_bwspec(bw, rate)) == 0)
309 eval_pfqueue(struct pfctl *pf, struct pf_altq *pa, struct node_queue_bw *bw,
346 pa->bandwidth = eval_bwspec(bw,
751 /* check the real-time service curve. reserve 20% of interface bw */
1225 eval_bwspec(struct node_queue_bw *bw, u_int32_t ref_bw)
1227 if (bw->bw_absolute > 0)
1228 return (bw->bw_absolute);
1230 if (bw->bw_percent > 0)
1231 return (ref_bw / 100 * bw->bw_percent);