Searched refs:DIV64_U64_ROUND_UP (Results 1 – 20 of 20) sorted by relevance
| /linux/drivers/pwm/ |
| H A D | pwm-apple.c | 91 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 D | pwm-axi-pwmgen.c | 127 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 D | pwm-ab8500.c | 174 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 D | pwm-sunplus.c | 145 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 D | pwm-argon-fan-hat.c | 44 wf->duty_length_ns = DIV64_U64_ROUND_UP(wf->period_length_ns * *wfhw, 100); in argon_fan_hat_round_waveform_fromhw()
|
| H A D | pwm-mtk-disp.c | 215 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 D | pwm-microchip-core.c | 402 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 D | pwm-clk.c | 69 rate = DIV64_U64_ROUND_UP(NSEC_PER_SEC, period); in pwm_clk_apply()
|
| H A D | pwm-atmel.c | 363 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 D | pwm-xilinx.c | 55 return DIV64_U64_ROUND_UP(cycles * NSEC_PER_SEC, in xilinx_timer_get_period()
|
| H A D | pwm-twl.c | 62 int duty_cycle = DIV64_U64_ROUND_UP(duty_ns * TWL_PWM_MAX, period_ns) + 1; in twl_pwm_config()
|
| /linux/net/ceph/ |
| H A D | striper.c | 266 u64 num_periods = DIV64_U64_ROUND_UP(size, period); in ceph_get_num_objects()
|
| /linux/include/linux/ |
| H A D | math64.h | 354 #define DIV64_U64_ROUND_UP(ll, d) \ macro
|
| /linux/drivers/clk/sophgo/ |
| H A D | clk-cv18xx-ip.c | 845 return DIV64_U64_ROUND_UP(rate, factor); in aclk_recalc_rate()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_audio.c | 485 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 D | amdgpu_dm_mst_types.c | 906 return (int) DIV64_U64_ROUND_UP(peak_kbps * 64, (54 * 8 * 1000)); in kbps_to_peak_pbn()
|
| H A D | amdgpu_dm.c | 9333 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 D | serial_core.c | 451 port->frame_time = (unsigned int)DIV64_U64_ROUND_UP(temp, baud); in uart_update_timeout()
|
| /linux/drivers/ptp/ |
| H A D | ptp_ocp.c | 2076 s->start = DIV64_U64_ROUND_UP(start_ns, s->period); in ptp_ocp_signal_set()
|
| /linux/mm/ |
| H A D | vmscan.c | 2616 DIV64_U64_ROUND_UP(scan * fraction[file], in get_scan_count()
|