Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/clk/
Dclk-divider.c135 return DIV_ROUND_UP_ULL((u64)parent_rate, div); in divider_recalc_rate()
213 int div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in _div_round_up()
230 up = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in _div_round_closest()
241 up_rate = DIV_ROUND_UP_ULL((u64)parent_rate, up); in _div_round_closest()
242 down_rate = DIV_ROUND_UP_ULL((u64)parent_rate, down); in _div_round_closest()
321 now = DIV_ROUND_UP_ULL((u64)parent_rate, i); in clk_divider_bestdiv()
345 return DIV_ROUND_UP_ULL((u64)*prate, div); in divider_round_rate()
361 return DIV_ROUND_UP_ULL((u64)*prate, bestdiv); in clk_divider_round_rate()
374 div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in divider_get_val()
/linux-4.4.14/drivers/clk/ti/
Dfapll.c353 return DIV_ROUND_UP_ULL(rate, synth_div_m); in ti_fapll_synth_recalc_rate()
376 post_div_m = DIV_ROUND_UP_ULL((u64)parent_rate * SYNTH_PHASE_K, rate); in ti_fapll_synth_set_frac_rate()
384 synth_int_div = DIV_ROUND_UP_ULL((u64)parent_rate * in ti_fapll_synth_set_frac_rate()
433 r = DIV_ROUND_UP_ULL(r, SYNTH_MAX_INT_DIV * SYNTH_MAX_DIV_M); in ti_fapll_synth_round_rate()
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
Dhdmi5_core.c76 v = DIV_ROUND_UP_ULL(ss_scl_high * sfr, 1000000); in hdmi_core_ddc_init()
83 v = DIV_ROUND_UP_ULL(ss_scl_low * sfr, 1000000); in hdmi_core_ddc_init()
90 v = DIV_ROUND_UP_ULL(fs_scl_high * sfr, 1000000); in hdmi_core_ddc_init()
97 v = DIV_ROUND_UP_ULL(fs_scl_low * sfr, 1000000); in hdmi_core_ddc_init()
104 v = DIV_ROUND_UP_ULL(sda_hold * sfr, 1000000); in hdmi_core_ddc_init()
/linux-4.4.14/include/linux/
Dkernel.h68 #define DIV_ROUND_UP_ULL(ll,d) \ macro
72 # define DIV_ROUND_UP_SECTOR_T(ll,d) DIV_ROUND_UP_ULL(ll, d)
/linux-4.4.14/drivers/clk/nxp/
Dclk-lpc18xx-cgu.c386 m = DIV_ROUND_UP_ULL(*prate, rate * 2); in lpc18xx_pll0_round_rate()
407 m = DIV_ROUND_UP_ULL(parent_rate, rate * 2); in lpc18xx_pll0_set_rate()
/linux-4.4.14/drivers/pwm/
Dpwm-pca9685.c178 duty = DIV_ROUND_UP_ULL(duty, period_ns); in pca9685_pwm_config()
/linux-4.4.14/drivers/iio/light/
Dapds9300.c78 lux = 3150 * ch0 - (unsigned long)DIV_ROUND_UP_ULL(ch0 in apds9300_calculate_lux()
/linux-4.4.14/arch/arm/mach-omap2/
Dtimer.c642 arch_timer_freq = DIV_ROUND_UP_ULL(rate * num, den); in realtime_counter_init()
Dvc.c220 return DIV_ROUND_UP_ULL(32768ULL * (u64)usec, 1000000ULL); in omap_usec_to_32k()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_sysfs.c63 ret = DIV_ROUND_UP_ULL(raw_time, div); in calc_residency()
Dintel_pm.c1684 ret = DIV_ROUND_UP_ULL(ret, 64 * 10000) + 2; in ilk_wm_method1()
/linux-4.4.14/drivers/i2c/busses/
Di2c-nomadik.c378 ns = DIV_ROUND_UP_ULL(1000000000ULL, i2c_clk); in setup_i2c_controller()
/linux-4.4.14/kernel/time/
Dtimer.c1369 return DIV_ROUND_UP_ULL(nextevt, TICK_NSEC) * TICK_NSEC; in cmp_next_hrtimer_event()
/linux-4.4.14/drivers/usb/host/
Dxhci.c4365 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100); in xhci_calculate_intel_u1_timeout()
4394 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 1000); in xhci_calculate_u1_timeout()
4445 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 256 * 1000); in xhci_calculate_u2_timeout()
/linux-4.4.14/drivers/clk/bcm/
Dclk-bcm2835.c1116 div = DIV_ROUND_UP_ULL(parent_rate, rate); in bcm2835_pll_divider_set_rate()
/linux-4.4.14/fs/
Dfs-writeback.c773 return DIV_ROUND_UP_ULL((u64)nr_pages * this_bw, tot_bw); in wb_split_bdi_pages()
/linux-4.4.14/drivers/memory/
Demif.c221 t_ck = (u32)DIV_ROUND_UP_ULL(1000000000000ull, freq); in set_ddr_clk_period()
/linux-4.4.14/drivers/md/bcache/
Dsuper.c757 d->nr_stripes = DIV_ROUND_UP_ULL(sectors, d->stripe_size); in bcache_device_init()
/linux-4.4.14/drivers/crypto/
Dhifn_795x.c822 dev->rng_wait_time = DIV_ROUND_UP_ULL(NSEC_PER_SEC, in hifn_register_rng()
/linux-4.4.14/net/bluetooth/
Dl2cap_core.c3139 ertm_to = DIV_ROUND_UP_ULL(ertm_to, 1000); in __l2cap_set_ertm_timeouts()