Lines Matching refs:shift
76 int prop_descriptor_init(struct prop_descriptor *pd, int shift, gfp_t gfp) in prop_descriptor_init() argument
80 if (shift > PROP_MAX_SHIFT) in prop_descriptor_init()
81 shift = PROP_MAX_SHIFT; in prop_descriptor_init()
84 pd->pg[0].shift = shift; in prop_descriptor_init()
105 void prop_change_shift(struct prop_descriptor *pd, int shift) in prop_change_shift() argument
112 if (shift > PROP_MAX_SHIFT) in prop_change_shift()
113 shift = PROP_MAX_SHIFT; in prop_change_shift()
118 offset = pd->pg[pd->index].shift - shift; in prop_change_shift()
122 pd->pg[index].shift = shift; in prop_change_shift()
194 pl->shift = 0; in prop_local_init_percpu()
214 unsigned long period = 1UL << (pg->shift - 1); in prop_norm_percpu()
230 prop_adjust_shift(&pl->shift, &pl->period, pg->shift); in prop_norm_percpu()
237 period = (global_period - pl->period) >> (pg->shift - 1); in prop_norm_percpu()
278 unsigned long period_2 = 1UL << (pg->shift - 1); in __prop_inc_percpu_max()
308 unsigned long period_2 = 1UL << (pg->shift - 1); in prop_fraction_percpu()
328 pl->shift = 0; in prop_local_init_single()
344 unsigned long period = 1UL << (pg->shift - 1); in prop_norm_single()
360 prop_adjust_shift(&pl->shift, &pl->period, pg->shift); in prop_norm_single()
364 period = (global_period - pl->period) >> (pg->shift - 1); in prop_norm_single()
396 unsigned long period_2 = 1UL << (pg->shift - 1); in prop_fraction_single()