Searched refs:SCALE_RED (Results 1 – 4 of 4) sorted by relevance
460 #define SCALE_RED 16 macro461 #define SCALE(x) ((x) << SCALE_RED)462 #define SCALE_VAL(x) ((x) >> SCALE_RED)463 #define SCALE_MUL(x, y) (((x) * (y)) >> SCALE_RED)
445 #define SCALE_RED 16 macro446 #define SCALE(x) ((x) << SCALE_RED)447 #define SCALE_VAL(x) ((x) >> SCALE_RED)448 #define SCALE_MUL(x, y) (((x) * (y)) >> SCALE_RED)
308 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()
1409 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()