Home
last modified time | relevance | path

Searched refs:SCALE_RED (Results 1 – 4 of 4) sorted by relevance

/dragonfly/sys/net/dummynet3/
HDip_dummynet3.h460 #define SCALE_RED 16 macro
461 #define SCALE(x) ((x) << SCALE_RED)
462 #define SCALE_VAL(x) ((x) >> SCALE_RED)
463 #define SCALE_MUL(x, y) (((x) * (y)) >> SCALE_RED)
/dragonfly/sys/net/dummynet/
HDip_dummynet.h445 #define SCALE_RED 16 macro
446 #define SCALE(x) ((x) << SCALE_RED)
447 #define SCALE_VAL(x) ((x) >> SCALE_RED)
448 #define SCALE_MUL(x, y) (((x) * (y)) >> SCALE_RED)
/dragonfly/sbin/ipfw3/
HDipfw3dummynet.c308 pipe.fs.w_q = (int) (w_q * (1 << SCALE_RED)); in config_dummynet()
324 pipe.fs.max_p = (int)(max_p * (1 << SCALE_RED)); in config_dummynet()
454 w_q = ((double)pipe.fs.w_q) / (1 << SCALE_RED); in config_dummynet()
462 pipe.fs.lookup_weight = (int)(weight * (1 << SCALE_RED)); in config_dummynet()
630 1.0 * fs->w_q / (double)(1 << SCALE_RED), in show_flowset_parms()
633 1.0 * fs->max_p / (double)(1 << SCALE_RED)); in show_flowset_parms()
/dragonfly/sbin/ipfw/
HDipfw2.c1409 1.0 * fs->w_q / (double)(1 << SCALE_RED), in print_flowset_parms()
1412 1.0 * fs->max_p / (double)(1 << SCALE_RED)); in print_flowset_parms()
2304 pipe.fs.w_q = (int) (w_q * (1 << SCALE_RED)); in config_pipe()
2320 pipe.fs.max_p = (int)(max_p * (1 << SCALE_RED)); in config_pipe()
2448 w_q = ((double)pipe.fs.w_q) / (1 << SCALE_RED); in config_pipe()
2456 pipe.fs.lookup_weight = (int)(weight * (1 << SCALE_RED)); in config_pipe()