/linux-4.4.14/drivers/clk/ |
D | clk-divider.c | 135 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/ |
D | fapll.c | 353 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/ |
D | hdmi5_core.c | 76 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/ |
D | kernel.h | 68 #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/ |
D | clk-lpc18xx-cgu.c | 386 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/ |
D | pwm-pca9685.c | 178 duty = DIV_ROUND_UP_ULL(duty, period_ns); in pca9685_pwm_config()
|
/linux-4.4.14/drivers/iio/light/ |
D | apds9300.c | 78 lux = 3150 * ch0 - (unsigned long)DIV_ROUND_UP_ULL(ch0 in apds9300_calculate_lux()
|
/linux-4.4.14/arch/arm/mach-omap2/ |
D | timer.c | 642 arch_timer_freq = DIV_ROUND_UP_ULL(rate * num, den); in realtime_counter_init()
|
D | vc.c | 220 return DIV_ROUND_UP_ULL(32768ULL * (u64)usec, 1000000ULL); in omap_usec_to_32k()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | i915_sysfs.c | 63 ret = DIV_ROUND_UP_ULL(raw_time, div); in calc_residency()
|
D | intel_pm.c | 1684 ret = DIV_ROUND_UP_ULL(ret, 64 * 10000) + 2; in ilk_wm_method1()
|
/linux-4.4.14/drivers/i2c/busses/ |
D | i2c-nomadik.c | 378 ns = DIV_ROUND_UP_ULL(1000000000ULL, i2c_clk); in setup_i2c_controller()
|
/linux-4.4.14/kernel/time/ |
D | timer.c | 1369 return DIV_ROUND_UP_ULL(nextevt, TICK_NSEC) * TICK_NSEC; in cmp_next_hrtimer_event()
|
/linux-4.4.14/drivers/usb/host/ |
D | xhci.c | 4365 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/ |
D | clk-bcm2835.c | 1116 div = DIV_ROUND_UP_ULL(parent_rate, rate); in bcm2835_pll_divider_set_rate()
|
/linux-4.4.14/fs/ |
D | fs-writeback.c | 773 return DIV_ROUND_UP_ULL((u64)nr_pages * this_bw, tot_bw); in wb_split_bdi_pages()
|
/linux-4.4.14/drivers/memory/ |
D | emif.c | 221 t_ck = (u32)DIV_ROUND_UP_ULL(1000000000000ull, freq); in set_ddr_clk_period()
|
/linux-4.4.14/drivers/md/bcache/ |
D | super.c | 757 d->nr_stripes = DIV_ROUND_UP_ULL(sectors, d->stripe_size); in bcache_device_init()
|
/linux-4.4.14/drivers/crypto/ |
D | hifn_795x.c | 822 dev->rng_wait_time = DIV_ROUND_UP_ULL(NSEC_PER_SEC, in hifn_register_rng()
|
/linux-4.4.14/net/bluetooth/ |
D | l2cap_core.c | 3139 ertm_to = DIV_ROUND_UP_ULL(ertm_to, 1000); in __l2cap_set_ertm_timeouts()
|