| /linux-6.15/block/ |
| H A D | blk-iocost.c | 885 v = DIV64_U64_ROUND_UP(VTIME_PER_SEC, seqiops); in calc_lcoefs() 1137 parent_inuse = DIV64_U64_ROUND_UP( in __propagate_weights() 1950 iocg->hweight_active = DIV64_U64_ROUND_UP( in transfer_surpluses() 2009 iocg->hweight_inuse = DIV64_U64_ROUND_UP( in transfer_surpluses() 2014 inuse = DIV64_U64_ROUND_UP( in transfer_surpluses() 2019 st = DIV64_U64_ROUND_UP( in transfer_surpluses() 2023 wpt = DIV64_U64_ROUND_UP( in transfer_surpluses() 2026 wptp = DIV64_U64_ROUND_UP( in transfer_surpluses() 2054 inuse = DIV64_U64_ROUND_UP( in transfer_surpluses() 2324 u64 inflight_us = DIV64_U64_ROUND_UP( in ioc_timer_fn() [all …]
|
| /linux-6.15/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-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 | 413 state->period = DIV64_U64_ROUND_UP(state->period, rate); in mchp_core_pwm_get_state() 426 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 | 374 state->period = DIV64_U64_ROUND_UP(tmp, rate); in atmel_pwm_get_state() 383 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-6.15/net/ceph/ |
| H A D | striper.c | 266 u64 num_periods = DIV64_U64_ROUND_UP(size, period); in ceph_get_num_objects()
|
| /linux-6.15/include/linux/ |
| H A D | math64.h | 297 #define DIV64_U64_ROUND_UP(ll, d) \ macro
|
| /linux-6.15/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_sdlb.c | 57 return DIV64_U64_ROUND_UP((rate * pup_interval), (clk_hz * 8)); in sparx5_sdlb_pup_token_get()
|
| /linux-6.15/drivers/hwmon/ |
| H A D | aspeed-g6-pwm-tach.c | 205 div_h = order_base_2(DIV64_U64_ROUND_UP(priv->clk_rate * expect_period, divisor)); in aspeed_pwm_apply()
|
| /linux-6.15/drivers/gpu/drm/bridge/ |
| H A D | samsung-dsim.c | 995 int hfp = DIV64_U64_ROUND_UP((m->hsync_start - m->hdisplay) * byte_clk, pix_clk); in samsung_dsim_set_display_mode() 996 int hbp = DIV64_U64_ROUND_UP((m->htotal - m->hsync_end) * byte_clk, pix_clk); in samsung_dsim_set_display_mode() 997 int hsa = DIV64_U64_ROUND_UP((m->hsync_end - m->hsync_start) * byte_clk, pix_clk); in samsung_dsim_set_display_mode()
|
| H A D | nwl-dsi.c | 192 return DIV64_U64_ROUND_UP(ps * dsi->mode.clock * bpp, in ps2bc()
|
| H A D | ti-sn65dsi86.c | 1489 pre_div = DIV64_U64_ROUND_UP(period * pdata->pwm_refclk_freq, in ti_sn_pwm_apply()
|
| /linux-6.15/drivers/ptp/ |
| H A D | ptp_qoriq.c | 224 diff = DIV64_U64_ROUND_UP(diff, 2); in ptp_qoriq_adjfine()
|
| H A D | ptp_ocp.c | 2073 s->start = DIV64_U64_ROUND_UP(start_ns, s->period); in ptp_ocp_signal_set()
|
| /linux-6.15/drivers/clk/sophgo/ |
| H A D | clk-cv18xx-ip.c | 843 return DIV64_U64_ROUND_UP(rate, factor); in aclk_recalc_rate()
|
| /linux-6.15/drivers/gpu/drm/i915/display/ |
| H A D | intel_audio.c | 470 hblank_delta = DIV64_U64_ROUND_UP(mul_u32_u32(5 * (link_clk + cdclk), pixel_clk), in calc_hblank_early_prog()
|
| H A D | skl_watermark.c | 1525 DIV64_U64_ROUND_UP(iter->size * data_rate, in skl_allocate_plane_ddb()
|
| /linux-6.15/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_mst_types.c | 866 return (int) DIV64_U64_ROUND_UP(peak_kbps * 64, (54 * 8 * 1000)); in kbps_to_peak_pbn()
|
| /linux-6.15/drivers/tty/serial/ |
| H A D | serial_core.c | 453 port->frame_time = (unsigned int)DIV64_U64_ROUND_UP(temp, baud); in uart_update_timeout()
|