DIV64_U64_ROUND_UP
vrate = clamp(DIV64_U64_ROUND_UP(vrate * adj_pct, 100),
inuse = DIV64_U64_ROUND_UP(active * iocg->child_inuse_sum,
parent_inuse = DIV64_U64_ROUND_UP(
inuse = DIV64_U64_ROUND_UP(parent->active * child_inuse_sum,
DIV64_U64_ROUND_UP(vshortage, ioc->vtime_base_rate) *
DIV64_U64_ROUND_UP((u64)nr_missed[rw] * MILLION,
iocg->hweight_active = DIV64_U64_ROUND_UP(
iocg->child_adjusted_sum = DIV64_U64_ROUND_UP(
iocg->hweight_inuse = DIV64_U64_ROUND_UP(
inuse = DIV64_U64_ROUND_UP(
st = DIV64_U64_ROUND_UP(
wpt = DIV64_U64_ROUND_UP(
wptp = DIV64_U64_ROUND_UP(
iocg->child_adjusted_sum = sf + DIV64_U64_ROUND_UP(st * wptp, wpt);
inuse = DIV64_U64_ROUND_UP(
u64 inflight_us = DIV64_U64_ROUND_UP(
usage = clamp(DIV64_U64_ROUND_UP(usage_us * WEIGHT_ONE, usage_dur),
return DIV64_U64_ROUND_UP(abs_cost * WEIGHT_ONE, hw_inuse);
return DIV64_U64_ROUND_UP(cost * hw_inuse, WEIGHT_ONE);
*page = DIV64_U64_ROUND_UP(VTIME_PER_SEC, bps_pages);
v = DIV64_U64_ROUND_UP(VTIME_PER_SEC, seqiops);
v = DIV64_U64_ROUND_UP(VTIME_PER_SEC, randiops);
ioc->vrate_min = DIV64_U64_ROUND_UP((u64)ioc->params.qos[QOS_MIN] *
ioc->vrate_max = DIV64_U64_ROUND_UP((u64)ioc->params.qos[QOS_MAX] *
return DIV64_U64_ROUND_UP(rate, factor);
offdelay = DIV64_U64_ROUND_UP((u64)5 * 3 * 10 *
offdelay = DIV64_U64_ROUND_UP((u64)20 *
return (int) DIV64_U64_ROUND_UP(peak_kbps * 64, (54 * 8 * 1000));
return DIV64_U64_ROUND_UP(ps * dsi->mode.clock * bpp,
int hfp = DIV64_U64_ROUND_UP((m->hsync_start - m->hdisplay) * byte_clk, pix_clk);
int hbp = DIV64_U64_ROUND_UP((m->htotal - m->hsync_end) * byte_clk, pix_clk);
int hsa = DIV64_U64_ROUND_UP((m->hsync_end - m->hsync_start) * byte_clk, pix_clk);
pre_div = DIV64_U64_ROUND_UP(period * pdata->pwm_refclk_freq,
return DIV64_U64_ROUND_UP(mul_u32_u32(clock * bpp, 64 * overhead >> 4),
hblank_delta = DIV64_U64_ROUND_UP(mul_u32_u32(5 * (link_clk + cdclk), pixel_clk),
int_sqrt(DIV64_U64_ROUND_UP(interpolated_product, vco_div_refclk_float) *
adjusted_vco_clk2 = 1460281 * DIV64_U64_ROUND_UP(scaled_interpolated_sqrt *
*ana_cp_prop = DIV64_U64_ROUND_UP(adjusted_vco_clk2, curve_2_scaled2);
dydx = DIV64_U64_ROUND_UP((y2 - y1) * 100000, (x2 - x1));
return (y1 + DIV64_U64_ROUND_UP(dydx * (x - x1), 100000));
DIV64_U64_ROUND_UP(iter->size * data_rate,
div_h = order_base_2(DIV64_U64_ROUND_UP(priv->clk_rate * expect_period, divisor));
cycles = DIV64_U64_ROUND_UP((u64)de_glitch * rate, USEC_PER_SEC);
return DIV64_U64_ROUND_UP((rate * pup_interval), (clk_hz * 8));
s->start = DIV64_U64_ROUND_UP(start_ns, s->period);
diff = DIV64_U64_ROUND_UP(diff, 2);
state->period = DIV64_U64_ROUND_UP((u64)div << 10, AB8500_PWM_CLKRATE);
state->duty_cycle = DIV64_U64_ROUND_UP((u64)div * duty_steps, AB8500_PWM_CLKRATE);
state->duty_cycle = DIV64_U64_ROUND_UP((u64)on_cycles * NSEC_PER_SEC, fpwm->clkrate);
state->period = DIV64_U64_ROUND_UP(((u64)off_cycles + (u64)on_cycles) *
wf->duty_length_ns = DIV64_U64_ROUND_UP(wf->period_length_ns * *wfhw, 100);
state->period = DIV64_U64_ROUND_UP(tmp, rate);
state->duty_cycle = DIV64_U64_ROUND_UP(tmp, rate);
wf->period_length_ns = DIV64_U64_ROUND_UP((u64)wfhw->period_cnt * NSEC_PER_SEC,
wf->duty_length_ns = DIV64_U64_ROUND_UP((u64)wfhw->duty_cycle_cnt * NSEC_PER_SEC,
wf->duty_offset_ns = DIV64_U64_ROUND_UP((u64)wfhw->duty_offset_cnt * NSEC_PER_SEC,
rate = DIV64_U64_ROUND_UP(NSEC_PER_SEC, period);
state->duty_cycle = DIV64_U64_ROUND_UP((u64)duty * NSEC_PER_SEC, ddata->clk_rate);
state->period = DIV64_U64_ROUND_UP((u64)period * NSEC_PER_SEC, ddata->clk_rate);
state->period = DIV64_U64_ROUND_UP(state->period, rate);
state->duty_cycle = DIV64_U64_ROUND_UP(state->duty_cycle, rate);
state->period = DIV64_U64_ROUND_UP(period * (clk_div + 1) * NSEC_PER_SEC, rate);
state->duty_cycle = DIV64_U64_ROUND_UP(high_width * (clk_div + 1) * NSEC_PER_SEC,
return DIV64_U64_ROUND_UP(tmp, rzg2l_gpt->rate_khz);
state->period = DIV64_U64_ROUND_UP((u64)dd_freq * (u64)SP7021_PWM_FREQ_SCALER
state->duty_cycle = DIV64_U64_ROUND_UP((u64)dd_freq * (u64)duty * NSEC_PER_SEC,
int duty_cycle = DIV64_U64_ROUND_UP(duty_ns * TWL_PWM_MAX, period_ns) + 1;
return DIV64_U64_ROUND_UP(cycles * NSEC_PER_SEC,
port->frame_time = (unsigned int)DIV64_U64_ROUND_UP(temp, baud);
DIV64_U64_ROUND_UP(scan * fraction[file],
u64 num_periods = DIV64_U64_ROUND_UP(size, period);