Home
last modified time | relevance | path

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

/linux/drivers/pwm/
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-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-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-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()
/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.h354 #define DIV64_U64_ROUND_UP(ll, d) \ macro
/linux/drivers/clk/sophgo/
H A Dclk-cv18xx-ip.c845 return DIV64_U64_ROUND_UP(rate, factor); in aclk_recalc_rate()
/linux/drivers/gpu/drm/i915/display/
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/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_mst_types.c906 return (int) DIV64_U64_ROUND_UP(peak_kbps * 64, (54 * 8 * 1000)); in kbps_to_peak_pbn()
H A Damdgpu_dm.c9333 offdelay = DIV64_U64_ROUND_UP((u64)5 * 3 * 10 * in manage_dm_interrupts()
9345 offdelay = DIV64_U64_ROUND_UP((u64)20 * in manage_dm_interrupts()
/linux/drivers/tty/serial/
H A Dserial_core.c451 port->frame_time = (unsigned int)DIV64_U64_ROUND_UP(temp, baud); in uart_update_timeout()
/linux/drivers/ptp/
H A Dptp_ocp.c2076 s->start = DIV64_U64_ROUND_UP(start_ns, s->period); in ptp_ocp_signal_set()
/linux/mm/
H A Dvmscan.c2616 DIV64_U64_ROUND_UP(scan * fraction[file], in get_scan_count()