Home
last modified time | relevance | path

Searched refs:DIV64_U64_ROUND_UP (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/gpu/drm/i915/display/
H A Dintel_snps_hdmi_pll.c44 dydx = DIV64_U64_ROUND_UP((y2 - y1) * 100000, (x2 - x1)); in interp()
46 return (y1 + DIV64_U64_ROUND_UP(dydx * (x - x1), 100000)); in interp()
118 int_sqrt(DIV64_U64_ROUND_UP(interpolated_product, vco_div_refclk_float) * in get_ana_cp_int_prop()
123 adjusted_vco_clk2 = 1460281 * DIV64_U64_ROUND_UP(scaled_interpolated_sqrt * in get_ana_cp_int_prop()
127 *ana_cp_prop = DIV64_U64_ROUND_UP(adjusted_vco_clk2, curve_2_scaled2); in get_ana_cp_int_prop()
H A Dintel_audio.c485 hblank_delta = DIV64_U64_ROUND_UP(mul_u32_u32(5 * (link_clk + cdclk), pixel_clk), in calc_hblank_early_prog()
/linux/block/
H A Dblk-iocost.c706 return DIV64_U64_ROUND_UP(abs_cost * WEIGHT_ONE, hw_inuse); in abs_cost_to_cost()
714 return DIV64_U64_ROUND_UP(cost * hw_inuse, WEIGHT_ONE); in cost_to_abs_cost()
879 *page = DIV64_U64_ROUND_UP(VTIME_PER_SEC, bps_pages); in calc_lcoefs()
885 v = DIV64_U64_ROUND_UP(VTIME_PER_SEC, seqiops); in calc_lcoefs()
891 v = DIV64_U64_ROUND_UP(VTIME_PER_SEC, randiops); in calc_lcoefs()
943 ioc->vrate_min = DIV64_U64_ROUND_UP((u64)ioc->params.qos[QOS_MIN] * in ioc_refresh_params_disk()
945 ioc->vrate_max = DIV64_U64_ROUND_UP((u64)ioc->params.qos[QOS_MAX] * in ioc_refresh_params_disk()
1030 vrate = clamp(DIV64_U64_ROUND_UP(vrate * adj_pct, 100), in ioc_adjust_base_vrate()
1098 inuse = DIV64_U64_ROUND_UP(active * iocg->child_inuse_sum, in __propagate_weights()
1137 parent_inuse = DIV64_U64_ROUND_UP( in __propagate_weights()
[all …]
/linux/drivers/pwm/
H A Dpwm-axi-pwmgen.c127 wf->period_length_ns = DIV64_U64_ROUND_UP((u64)wfhw->period_cnt * NSEC_PER_SEC, in axi_pwmgen_round_waveform_fromhw()
130 wf->duty_length_ns = DIV64_U64_ROUND_UP((u64)wfhw->duty_cycle_cnt * NSEC_PER_SEC, in axi_pwmgen_round_waveform_fromhw()
133 wf->duty_offset_ns = DIV64_U64_ROUND_UP((u64)wfhw->duty_offset_cnt * NSEC_PER_SEC, in axi_pwmgen_round_waveform_fromhw()
H A Dpwm-apple.c91 state->duty_cycle = DIV64_U64_ROUND_UP((u64)on_cycles * NSEC_PER_SEC, fpwm->clkrate); in apple_pwm_get_state()
92 state->period = DIV64_U64_ROUND_UP(((u64)off_cycles + (u64)on_cycles) * in apple_pwm_get_state()
H A Dpwm-ab8500.c174 state->period = DIV64_U64_ROUND_UP((u64)div << 10, AB8500_PWM_CLKRATE); in ab8500_pwm_get_state()
175 state->duty_cycle = DIV64_U64_ROUND_UP((u64)div * duty_steps, AB8500_PWM_CLKRATE); in ab8500_pwm_get_state()
H A Dpwm-sunplus.c145 state->period = DIV64_U64_ROUND_UP((u64)dd_freq * (u64)SP7021_PWM_FREQ_SCALER in sunplus_pwm_get_state()
150 state->duty_cycle = DIV64_U64_ROUND_UP((u64)dd_freq * (u64)duty * NSEC_PER_SEC, in sunplus_pwm_get_state()
H A Dpwm-loongson.c177 state->duty_cycle = DIV64_U64_ROUND_UP((u64)duty * NSEC_PER_SEC, ddata->clk_rate); in pwm_loongson_get_state()
178 state->period = DIV64_U64_ROUND_UP((u64)period * NSEC_PER_SEC, ddata->clk_rate); in pwm_loongson_get_state()
H A Dpwm-argon-fan-hat.c44 wf->duty_length_ns = DIV64_U64_ROUND_UP(wf->period_length_ns * *wfhw, 100); in argon_fan_hat_round_waveform_fromhw()
H A Dpwm-mtk-disp.c215 state->period = DIV64_U64_ROUND_UP(period * (clk_div + 1) * NSEC_PER_SEC, rate); in mtk_disp_pwm_get_state()
217 state->duty_cycle = DIV64_U64_ROUND_UP(high_width * (clk_div + 1) * NSEC_PER_SEC, in mtk_disp_pwm_get_state()
H A Dpwm-microchip-core.c402 state->period = DIV64_U64_ROUND_UP(state->period, rate); in mchp_core_pwm_get_state()
413 state->duty_cycle = DIV64_U64_ROUND_UP(state->duty_cycle, rate); in mchp_core_pwm_get_state()
H A Dpwm-clk.c69 rate = DIV64_U64_ROUND_UP(NSEC_PER_SEC, period); in pwm_clk_apply()
H A Dpwm-atmel.c363 state->period = DIV64_U64_ROUND_UP(tmp, rate); in atmel_pwm_get_state()
372 state->duty_cycle = DIV64_U64_ROUND_UP(tmp, rate); in atmel_pwm_get_state()
H A Dpwm-xilinx.c55 return DIV64_U64_ROUND_UP(cycles * NSEC_PER_SEC, in xilinx_timer_get_period()
H A Dpwm-twl.c62 int duty_cycle = DIV64_U64_ROUND_UP(duty_ns * TWL_PWM_MAX, period_ns) + 1; in twl_pwm_config()
H A Dpwm-rzg2l-gpt.c215 return DIV64_U64_ROUND_UP(tmp, rzg2l_gpt->rate_khz); in rzg2l_gpt_calculate_period_or_duty()
/linux/net/ceph/
H A Dstriper.c266 u64 num_periods = DIV64_U64_ROUND_UP(size, period); in ceph_get_num_objects()
/linux/include/linux/
H A Dmath64.h297 #define DIV64_U64_ROUND_UP(ll, d) \ macro
/linux/drivers/hwmon/
H A Daspeed-g6-pwm-tach.c205 div_h = order_base_2(DIV64_U64_ROUND_UP(priv->clk_rate * expect_period, divisor)); in aspeed_pwm_apply()
/linux/drivers/gpu/drm/bridge/
H A Dsamsung-dsim.c992 int hfp = DIV64_U64_ROUND_UP((m->hsync_start - m->hdisplay) * byte_clk, pix_clk); in samsung_dsim_set_display_mode()
993 int hbp = DIV64_U64_ROUND_UP((m->htotal - m->hsync_end) * byte_clk, pix_clk); in samsung_dsim_set_display_mode()
994 int hsa = DIV64_U64_ROUND_UP((m->hsync_end - m->hsync_start) * byte_clk, pix_clk); in samsung_dsim_set_display_mode()
H A Dti-sn65dsi86.c1510 pre_div = DIV64_U64_ROUND_UP(period * pdata->pwm_refclk_freq, in ti_sn_pwm_apply()
/linux/drivers/ptp/
H A Dptp_qoriq.c224 diff = DIV64_U64_ROUND_UP(diff, 2); in ptp_qoriq_adjfine()
H A Dptp_ocp.c2073 s->start = DIV64_U64_ROUND_UP(start_ns, s->period); in ptp_ocp_signal_set()
/linux/drivers/clk/sophgo/
H A Dclk-cv18xx-ip.c843 return DIV64_U64_ROUND_UP(rate, factor); in aclk_recalc_rate()
/linux/drivers/tty/serial/
H A Dserial_core.c454 port->frame_time = (unsigned int)DIV64_U64_ROUND_UP(temp, baud); in uart_update_timeout()

12