Searched refs:DIV_ROUND_UP (Results 1 - 200 of 716) sorted by relevance

1234

/linux-4.4.14/tools/include/linux/
H A Dbitops.h17 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
18 #define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u64))
19 #define BITS_TO_U32(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u32))
20 #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE)
H A Dkernel.h9 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) macro
/linux-4.4.14/include/linux/mfd/syscon/
H A Datmel-smc.h87 u32 clk_period = DIV_ROUND_UP(NSEC_PER_SEC, clk_rate); at91sam9_smc_setup_ns_to_cycles()
91 cycles = DIV_ROUND_UP(timing_ns, clk_period); at91sam9_smc_setup_ns_to_cycles()
117 u32 clk_period = DIV_ROUND_UP(NSEC_PER_SEC, clk_rate); at91sam9_smc_pulse_ns_to_cycles()
121 cycles = DIV_ROUND_UP(timing_ns, clk_period); at91sam9_smc_pulse_ns_to_cycles()
147 u32 clk_period = DIV_ROUND_UP(NSEC_PER_SEC, clk_rate); at91sam9_smc_cycle_ns_to_cycles()
151 cycles = DIV_ROUND_UP(timing_ns, clk_period); at91sam9_smc_cycle_ns_to_cycles()
/linux-4.4.14/drivers/media/platform/s5p-mfc/
H A Ds5p_mfc_opr_v6.h23 #define MB_WIDTH(x_size) DIV_ROUND_UP(x_size, 16)
24 #define MB_HEIGHT(y_size) DIV_ROUND_UP(y_size, 16)
H A Dregs-mfc-v8.h112 ((DIV_ROUND_UP((mbw * 16), 64) * DIV_ROUND_UP((mbh * 16), 64) * 256) \
113 + (DIV_ROUND_UP((mbw) * (mbh), 32) * 16))
H A Dregs-mfc-v6.h382 (((((imw + 127) / 64) * 16) * DIV_ROUND_UP(imh, 64) * 256) + \
383 (DIV_ROUND_UP((mbw) * (mbh), 32) * 16))
/linux-4.4.14/drivers/ssb/
H A Ddriver_extif.c94 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; ssb_extif_timing_init()
95 tmp |= DIV_ROUND_UP(40, ns) << SSB_PROG_WCNT_1_SHIFT; ssb_extif_timing_init()
96 tmp |= DIV_ROUND_UP(120, ns); ssb_extif_timing_init()
100 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; ssb_extif_timing_init()
101 tmp |= DIV_ROUND_UP(20, ns) << SSB_PROG_WCNT_2_SHIFT; ssb_extif_timing_init()
102 tmp |= DIV_ROUND_UP(100, ns) << SSB_PROG_WCNT_1_SHIFT; ssb_extif_timing_init()
103 tmp |= DIV_ROUND_UP(120, ns); ssb_extif_timing_init()
H A Ddriver_chipcommon.c443 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; /* Waitcount-3 = 10ns */ ssb_chipco_timing_init()
444 tmp |= DIV_ROUND_UP(40, ns) << SSB_PROG_WCNT_1_SHIFT; /* Waitcount-1 = 40ns */ ssb_chipco_timing_init()
445 tmp |= DIV_ROUND_UP(240, ns); /* Waitcount-0 = 240ns */ ssb_chipco_timing_init()
449 tmp = DIV_ROUND_UP(10, ns) << SSB_FLASH_WCNT_3_SHIFT; /* Waitcount-3 = 10nS */ ssb_chipco_timing_init()
450 tmp |= DIV_ROUND_UP(10, ns) << SSB_FLASH_WCNT_1_SHIFT; /* Waitcount-1 = 10nS */ ssb_chipco_timing_init()
451 tmp |= DIV_ROUND_UP(120, ns); /* Waitcount-0 = 120nS */ ssb_chipco_timing_init()
462 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; /* Waitcount-3 = 10ns */ ssb_chipco_timing_init()
463 tmp |= DIV_ROUND_UP(20, ns) << SSB_PROG_WCNT_2_SHIFT; /* Waitcount-2 = 20ns */ ssb_chipco_timing_init()
464 tmp |= DIV_ROUND_UP(100, ns) << SSB_PROG_WCNT_1_SHIFT; /* Waitcount-1 = 100ns */ ssb_chipco_timing_init()
465 tmp |= DIV_ROUND_UP(120, ns); /* Waitcount-0 = 120ns */ ssb_chipco_timing_init()
/linux-4.4.14/include/linux/
H A Diommu-helper.h31 return DIV_ROUND_UP(size, io_page_size); iommu_num_pages()
H A Ddelay.h39 udelay(DIV_ROUND_UP(x, 1000)); ndelay()
/linux-4.4.14/drivers/media/i2c/
H A Dsmiapp-pll.c206 DIV_ROUND_UP(limits->max_pll_multiplier, mul)); __smiapp_pll_calculate()
211 more_mul_min = DIV_ROUND_UP(limits->min_pll_op_freq_hz, __smiapp_pll_calculate()
218 DIV_ROUND_UP(limits->min_pll_multiplier, mul)); __smiapp_pll_calculate()
294 min_vt_div = DIV_ROUND_UP(op_pll->pix_clk_div * op_pll->sys_clk_div __smiapp_pll_calculate()
302 DIV_ROUND_UP(pll->pll_op_clk_freq_hz, __smiapp_pll_calculate()
314 DIV_ROUND_UP(pll->pll_op_clk_freq_hz, __smiapp_pll_calculate()
326 DIV_ROUND_UP(min_vt_div, __smiapp_pll_calculate()
339 DIV_ROUND_UP(max_vt_div, __smiapp_pll_calculate()
343 DIV_ROUND_UP(pll->pll_op_clk_freq_hz, __smiapp_pll_calculate()
357 uint16_t pix_div = DIV_ROUND_UP(vt_div, sys_div); __smiapp_pll_calculate()
378 pll->vt.sys_clk_div = DIV_ROUND_UP(min_vt_div, best_pix_div); __smiapp_pll_calculate()
434 / DIV_ROUND_UP(pll->bits_per_pixel, smiapp_pll_calculate()
451 DIV_ROUND_UP(pll->ext_clk_freq_hz, smiapp_pll_calculate()
464 DIV_ROUND_UP(mul * pll->ext_clk_freq_hz, smiapp_pll_calculate()
H A Daptina-pll.c69 mf_min = DIV_ROUND_UP(limits->m_min, pll->m); aptina_pll_calculate()
76 mf_max = min(mf_max, DIV_ROUND_UP(limits->n_max * limits->p1_max, div)); aptina_pll_calculate()
141 p1_min = max(limits->p1_min, DIV_ROUND_UP(limits->out_clock_min * div, aptina_pll_calculate()
151 mf_low = roundup(max(mf_min, DIV_ROUND_UP(pll->ext_clock * p1, aptina_pll_calculate()
/linux-4.4.14/drivers/pwm/
H A Dpwm-img.c103 output_clk_hz = DIV_ROUND_UP(NSEC_PER_SEC, period_ns); img_pwm_config()
105 mul = DIV_ROUND_UP(input_clk_hz, output_clk_hz); img_pwm_config()
108 timebase = DIV_ROUND_UP(mul, 1); img_pwm_config()
111 timebase = DIV_ROUND_UP(mul, 8); img_pwm_config()
114 timebase = DIV_ROUND_UP(mul, 64); img_pwm_config()
117 timebase = DIV_ROUND_UP(mul, 512); img_pwm_config()
124 duty = DIV_ROUND_UP(timebase * duty_ns, period_ns); img_pwm_config()
H A Dpwm-imx.c132 period_ms = DIV_ROUND_UP(pwm_get_period(pwm), imx_pwm_config_v2()
H A Dpwm-twl-led.c72 int duty_cycle = DIV_ROUND_UP(duty_ns * TWL4030_LED_MAX, period_ns) + 1; twl4030_pwmled_config()
H A Dpwm-twl.c74 int duty_cycle = DIV_ROUND_UP(duty_ns * TWL_PWM_MAX, period_ns) + 1; twl_pwm_config()
/linux-4.4.14/drivers/ide/
H A Dpalm_bk3710.c85 t0 = DIV_ROUND_UP(palm_bk3710_udmatimings[mode].cycletime, palm_bk3710_setudmamode()
87 tenv = DIV_ROUND_UP(20, ideclk_period) - 1; palm_bk3710_setudmamode()
88 trp = DIV_ROUND_UP(palm_bk3710_udmatimings[mode].rptime, palm_bk3710_setudmamode()
125 t0 = DIV_ROUND_UP(cycletime, ideclk_period); palm_bk3710_setdmamode()
126 td = DIV_ROUND_UP(t->active, ideclk_period); palm_bk3710_setdmamode()
154 t0 = DIV_ROUND_UP(cycletime, ideclk_period); palm_bk3710_setpiomode()
155 t2 = DIV_ROUND_UP(t->active, ideclk_period); palm_bk3710_setpiomode()
176 t0 = DIV_ROUND_UP(t->cyc8b, ideclk_period); palm_bk3710_setpiomode()
177 t2 = DIV_ROUND_UP(t->act8b, ideclk_period); palm_bk3710_setpiomode()
H A Dtx4938ide.c35 wt = DIV_ROUND_UP(t->act8b, cycle) - 2; tx4938ide_tune_ebusc()
37 wt = max_t(int, wt, DIV_ROUND_UP(35, cycle)); tx4938ide_tune_ebusc()
43 shwt = DIV_ROUND_UP(t->setup, cycle); tx4938ide_tune_ebusc()
H A Dcmd640.c536 cycle_count = DIV_ROUND_UP(cycle_time, clock_time); cmd640_set_mode()
538 setup_count = DIV_ROUND_UP(setup_time, clock_time); cmd640_set_mode()
540 active_count = DIV_ROUND_UP(active_time, clock_time); cmd640_set_mode()
544 recovery_count = DIV_ROUND_UP(recovery_time, clock_time); cmd640_set_mode()
/linux-4.4.14/drivers/irqchip/
H A Dirq-gic.c75 u32 saved_spi_enable[DIV_ROUND_UP(1020, 32)];
76 u32 saved_spi_active[DIV_ROUND_UP(1020, 32)];
77 u32 saved_spi_conf[DIV_ROUND_UP(1020, 16)];
78 u32 saved_spi_target[DIV_ROUND_UP(1020, 4)];
568 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 16); i++) gic_dist_save()
572 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) gic_dist_save()
576 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) gic_dist_save()
580 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) gic_dist_save()
609 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 16); i++) gic_dist_restore()
613 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) gic_dist_restore()
617 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) gic_dist_restore()
621 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) { gic_dist_restore()
628 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) { gic_dist_restore()
655 for (i = 0; i < DIV_ROUND_UP(32, 32); i++) gic_cpu_save()
659 for (i = 0; i < DIV_ROUND_UP(32, 32); i++) gic_cpu_save()
663 for (i = 0; i < DIV_ROUND_UP(32, 16); i++) gic_cpu_save()
685 for (i = 0; i < DIV_ROUND_UP(32, 32); i++) { gic_cpu_restore()
692 for (i = 0; i < DIV_ROUND_UP(32, 32); i++) { gic_cpu_restore()
699 for (i = 0; i < DIV_ROUND_UP(32, 16); i++) gic_cpu_restore()
702 for (i = 0; i < DIV_ROUND_UP(32, 4); i++) gic_cpu_restore()
747 gic->saved_ppi_enable = __alloc_percpu(DIV_ROUND_UP(32, 32) * 4, gic_pm_init()
751 gic->saved_ppi_active = __alloc_percpu(DIV_ROUND_UP(32, 32) * 4, gic_pm_init()
755 gic->saved_ppi_conf = __alloc_percpu(DIV_ROUND_UP(32, 16) * 4, gic_pm_init()
868 for (i = 8; i < DIV_ROUND_UP(gic_irqs, 4); i++) { gic_migrate_target()
H A Dirq-dw-apb-ictl.c139 for (i = 0; i < DIV_ROUND_UP(nrirqs, 32); i++) { dw_apb_ictl_init()
H A Dirq-atmel-aic-common.c227 nchips = DIV_ROUND_UP(nirqs, 32); aic_common_of_init()
/linux-4.4.14/arch/unicore32/mm/
H A Dinit.c401 DIV_ROUND_UP(PAGE_SIZE, SZ_1K), mem_init()
403 DIV_ROUND_UP((VMALLOC_END - VMALLOC_START), SZ_1M), mem_init()
405 DIV_ROUND_UP(((unsigned long)high_memory - PAGE_OFFSET), SZ_1M), mem_init()
407 DIV_ROUND_UP((MODULES_END - MODULES_VADDR), SZ_1M), mem_init()
410 DIV_ROUND_UP((__init_end - __init_begin), SZ_1K), mem_init()
412 DIV_ROUND_UP((_etext - _stext), SZ_1K), mem_init()
414 DIV_ROUND_UP((_edata - _sdata), SZ_1K)); mem_init()
/linux-4.4.14/drivers/gpu/drm/i915/
H A Dintel_dsi_panel_vbt.c444 pclk += DIV_ROUND_UP(mode->vtotal * vbt_panel_init()
465 burst_mode_ratio = DIV_ROUND_UP( vbt_panel_init()
469 pclk = DIV_ROUND_UP(pclk * burst_mode_ratio, 100); vbt_panel_init()
528 intel_dsi->lp_byte_clk = DIV_ROUND_UP(tlpx_ns * ui_den, 8 * ui_num); vbt_panel_init()
539 prepare_cnt = DIV_ROUND_UP(ths_prepare_ns * ui_den, ui_num * 2); vbt_panel_init()
542 exit_zero_cnt = DIV_ROUND_UP( vbt_panel_init()
558 clk_zero_cnt = DIV_ROUND_UP( vbt_panel_init()
564 trail_cnt = DIV_ROUND_UP(tclk_trail_ns * ui_den, 2 * ui_num); vbt_panel_init()
598 tlpx_ui = DIV_ROUND_UP(tlpx_ns * ui_den, ui_num); vbt_panel_init()
603 lp_to_hs_switch = DIV_ROUND_UP(4 * tlpx_ui + prepare_cnt * 2 + vbt_panel_init()
606 hs_to_lp_switch = DIV_ROUND_UP(mipi_config->ths_trail + 2 * tlpx_ui, 8); vbt_panel_init()
621 DIV_ROUND_UP( vbt_panel_init()
636 DIV_ROUND_UP(2 * tlpx_ui + trail_cnt * 2 + 8, vbt_panel_init()
H A Dintel_dsi_pll.c101 hsync_bytes = DIV_ROUND_UP(hsync * bpp, 8); dsi_rr_formula()
102 hbp_bytes = DIV_ROUND_UP(hbp * bpp, 8); dsi_rr_formula()
103 hactive_bytes = DIV_ROUND_UP(hactive * bpp, 8); dsi_rr_formula()
104 hfp_bytes = DIV_ROUND_UP(hfp * bpp, 8); dsi_rr_formula()
487 dsi_ratio = DIV_ROUND_UP(dsi_clk * 2, BXT_REF_CLOCK_KHZ); bxt_configure_dsi_pll()
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
H A Dhdmi_pll.c58 n = DIV_ROUND_UP(clkin, hw->fint_max); hdmi_pll_compute()
63 m2 = DIV_ROUND_UP(min_dco, target_bitclk); hdmi_pll_compute()
84 sd = DIV_ROUND_UP(fint * m, 250000000); hdmi_pll_compute()
H A Dpll.c143 m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul); dss_pll_hsdiv_calc()
173 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); dss_pll_calc()
181 m_start = max(DIV_ROUND_UP(DIV_ROUND_UP(pll_min, fint), 2), dss_pll_calc()
H A Ddss.c552 fckd_stop = max(DIV_ROUND_UP(prate * m, fck_hw_max), 1ul); dss_div_calc()
555 fck = DIV_ROUND_UP(prate, fckd) * m; dss_div_calc()
602 fck_div = DIV_ROUND_UP(prate * dss.feat->dss_fck_multiplier, dss_setup_default_clock()
604 fck = DIV_ROUND_UP(prate, fck_div) * dss.feat->dss_fck_multiplier; dss_setup_default_clock()
H A Ddsi.c1292 lp_clk_div = DIV_ROUND_UP(dsi_fclk, lp_clk_max * 2); dsi_lp_clock_calc()
1392 cinfo->mX[HSDIV_DSI] = DIV_ROUND_UP(cinfo->clkdco, max_dsi_fck); dsi_pll_calc_dsi_fck()
3508 width_bytes = DIV_ROUND_UP(timings->x_res * bpp, 8); dsi_config_cmd_mode_interleaving()
3509 bllp = hbp + hfp + hsa + DIV_ROUND_UP(width_bytes + 6, ndl); dsi_config_cmd_mode_interleaving()
3678 ths_eot = DIV_ROUND_UP(4, ndl); dsi_proto_timings()
3680 ddr_clk_pre = DIV_ROUND_UP(tclk_pre + tlpx + tclk_zero + tclk_prepare, dsi_proto_timings()
3682 ddr_clk_post = DIV_ROUND_UP(tclk_post + ths_trail, 4) + ths_eot; dsi_proto_timings()
3696 enter_hs_mode_lat = 1 + DIV_ROUND_UP(tlpx, 4) + dsi_proto_timings()
3697 DIV_ROUND_UP(ths_prepare, 4) + dsi_proto_timings()
3698 DIV_ROUND_UP(ths_zero + 3, 4); dsi_proto_timings()
3700 exit_hs_mode_lat = DIV_ROUND_UP(ths_trail + ths_exit, 4) + 1 + ths_eot; dsi_proto_timings()
3725 ((hsa == 0 && ndl == 3) ? 1 : DIV_ROUND_UP(4, ndl)) : 0; dsi_proto_timings()
3727 width_bytes = DIV_ROUND_UP(timings->x_res * bpp, 8); dsi_proto_timings()
3730 tl = DIV_ROUND_UP(4, ndl) + (hsync_end ? hsa : 0) + t_he + hfp + dsi_proto_timings()
3731 DIV_ROUND_UP(width_bytes + 6, ndl) + hbp; dsi_proto_timings()
3870 word_count = DIV_ROUND_UP(dsi->timings.x_res * bpp, 8); dsi_enable_video_output()
4343 wc = DIV_ROUND_UP(t->hact * t->bitspp, 8); print_dsi_vm()
4344 pps = DIV_ROUND_UP(wc + 6, t->ndl); /* pixel packet size */ print_dsi_vm()
4409 dsi_hact = DIV_ROUND_UP(DIV_ROUND_UP(t->hact * t->bitspp, 8) + 6, t->ndl); print_dsi_dispc_vm()
4544 dsi_hact = DIV_ROUND_UP(DIV_ROUND_UP(xres * bitspp, 8) + 6, ndl); dsi_vm_calc_blanking()
4568 hss = DIV_ROUND_UP(4, ndl); dsi_vm_calc_blanking()
4574 hse = DIV_ROUND_UP(4, ndl); dsi_vm_calc_blanking()
/linux-4.4.14/include/uapi/linux/
H A Dmroute6.h50 #if !defined(DIV_ROUND_UP)
51 #define DIV_ROUND_UP(x,y) (((x) + ((y) - 1)) / (y)) macro
56 if_mask ifs_bits[DIV_ROUND_UP(IF_SETSIZE, NIFBITS)];
/linux-4.4.14/arch/arm/mach-omap2/
H A Domap_twl.c59 return DIV_ROUND_UP(uv - 600000, 12500); twl4030_uv_to_vsel()
130 return DIV_ROUND_UP(uv - 709000, 12660) + 1; twl6030_uv_to_vsel()
132 return DIV_ROUND_UP(uv - 607700, 12660) + 1; twl6030_uv_to_vsel()
/linux-4.4.14/drivers/gpu/host1x/hw/
H A Dintr_hw.c50 for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); i++) { syncpt_thresh_isr()
67 for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); ++i) { _host1x_intr_disable_all_syncpt_intrs()
/linux-4.4.14/drivers/memory/
H A Demif.c439 val = max(min_tck->tWTR, DIV_ROUND_UP(timings->tWTR, t_ck)) - 1; get_sdram_tim_1_shdw()
443 val = DIV_ROUND_UP(timings->tFAW, t_ck*4); get_sdram_tim_1_shdw()
445 val = max(min_tck->tRRD, DIV_ROUND_UP(timings->tRRD, t_ck)); get_sdram_tim_1_shdw()
448 val = DIV_ROUND_UP(timings->tRAS_min + timings->tRPab, t_ck) - 1; get_sdram_tim_1_shdw()
451 val = max(min_tck->tRASmin, DIV_ROUND_UP(timings->tRAS_min, t_ck)); get_sdram_tim_1_shdw()
454 val = max(min_tck->tWR, DIV_ROUND_UP(timings->tWR, t_ck)) - 1; get_sdram_tim_1_shdw()
457 val = max(min_tck->tRCD, DIV_ROUND_UP(timings->tRCD, t_ck)) - 1; get_sdram_tim_1_shdw()
460 val = max(min_tck->tRPab, DIV_ROUND_UP(timings->tRPab, t_ck)) - 1; get_sdram_tim_1_shdw()
472 val = max(min_tck->tWTR, DIV_ROUND_UP(timings->tWTR, t_ck)) - 1; get_sdram_tim_1_shdw_derated()
480 val = DIV_ROUND_UP(timings->tFAW + 7500, 4 * t_ck) - 1; get_sdram_tim_1_shdw_derated()
482 val = DIV_ROUND_UP(timings->tRRD + 1875, t_ck); get_sdram_tim_1_shdw_derated()
487 val = DIV_ROUND_UP(timings->tRAS_min + timings->tRPab + 1875, t_ck); get_sdram_tim_1_shdw_derated()
490 val = DIV_ROUND_UP(timings->tRAS_min + 1875, t_ck); get_sdram_tim_1_shdw_derated()
494 val = max(min_tck->tWR, DIV_ROUND_UP(timings->tWR, t_ck)) - 1; get_sdram_tim_1_shdw_derated()
497 val = max(min_tck->tRCD, DIV_ROUND_UP(timings->tRCD + 1875, t_ck)); get_sdram_tim_1_shdw_derated()
500 val = max(min_tck->tRPab, DIV_ROUND_UP(timings->tRPab + 1875, t_ck)); get_sdram_tim_1_shdw_derated()
516 val = max(min_tck->tRTP, DIV_ROUND_UP(timings->tRTP, t_ck)) - 1; get_sdram_tim_2_shdw()
520 val = DIV_ROUND_UP(addressing->tRFCab_ps + 10000, t_ck) - 1; get_sdram_tim_2_shdw()
526 val = max(min_tck->tXP, DIV_ROUND_UP(timings->tXP, t_ck)) - 1; get_sdram_tim_2_shdw()
543 val = DIV_ROUND_UP(addressing->tRFCab_ps, t_ck) - 1; get_sdram_tim_3_shdw()
549 val = DIV_ROUND_UP(t_dqsck + 1000, t_ck) - 1; get_sdram_tim_3_shdw()
551 val = DIV_ROUND_UP(t_dqsck, t_ck) - 1; get_sdram_tim_3_shdw()
555 val = DIV_ROUND_UP(timings->tZQCS, t_ck) - 1; get_sdram_tim_3_shdw()
558 val = DIV_ROUND_UP(timings->tCKESR, t_ck); get_sdram_tim_3_shdw()
565 val = DIV_ROUND_UP(EMIF_T_PDLL_UL, 128) - 1; get_sdram_tim_3_shdw()
580 val = DIV_ROUND_UP(T_ZQCL_DEFAULT_NS, T_ZQCS_DEFAULT_NS) - 1; get_zq_config_reg()
583 val = DIV_ROUND_UP(T_ZQINIT_DEFAULT_NS, T_ZQCL_DEFAULT_NS) - 1; get_zq_config_reg()
679 val = RL + DIV_ROUND_UP(timings->tDQSCK_max, t_ck) - 1; get_ddr_phy_ctrl_1_attilaphy_4d()
708 phy |= ((cl + DIV_ROUND_UP(EMIF_PHY_TOTAL_READ_LATENCY_INTELLIPHY_PS, get_phy_ctrl_1_intelliphy_4d5()
/linux-4.4.14/drivers/gpu/drm/vc4/
H A Dvc4_bo.c34 int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); vc4_dumb_create()
/linux-4.4.14/drivers/gpu/drm/armada/
H A Darmada_510.c68 div = DIV_ROUND_UP(ref, rate); armada510_crtc_compute_clock()
/linux-4.4.14/drivers/acpi/
H A Dacpi_cmos_rtc.c46 for (i = 0; i < DIV_ROUND_UP(bits, 8); ++i, ++address, ++value) acpi_cmos_rtc_space_handler()
/linux-4.4.14/drivers/clk/mxs/
H A Dclk-ssp.c36 clock_rate = DIV_ROUND_UP(ssp_clk, rate * clock_divide); mxs_ssp_set_clk_rate()
/linux-4.4.14/drivers/clk/sunxi/
H A Dclk-sun8i-mbus.c41 div = DIV_ROUND_UP(parent_rate, *freq); sun8i_a23_get_mbus_factors()
H A Dclk-sun9i-core.c43 n = DIV_ROUND_UP(*freq, 6000000); sun9i_a80_get_pll4_factors()
122 div = DIV_ROUND_UP(parent_rate, *freq); sun9i_a80_get_gt_factors()
187 _p = order_base_2(DIV_ROUND_UP(parent_rate, *freq)); sun9i_a80_get_ahb_factors()
274 div = DIV_ROUND_UP(parent_rate, *freq); sun9i_a80_get_apb1_factors()
H A Dclk-sunxi.c95 div = DIV_ROUND_UP(parent_rate, rate); sun6i_ahb1_clk_round()
108 calcm = DIV_ROUND_UP(div, 1 << calcp); sun6i_ahb1_clk_round()
455 *n = DIV_ROUND_UP(div, (*k+1)); sun4i_get_pll5_factors()
482 *n = DIV_ROUND_UP(div, (*k+1)) - 1; sun6i_a31_get_pll6_factors()
509 div = order_base_2(DIV_ROUND_UP(parent_rate, *freq)); sun5i_a13_get_ahb_factors()
538 parent_rate = DIV_ROUND_UP(parent_rate, *freq); sun4i_get_apb1_factors()
584 div = DIV_ROUND_UP(parent_rate, *freq); sun7i_a20_get_out_factors()
595 calcm = DIV_ROUND_UP(div, 1 << calcp); sun7i_a20_get_out_factors()
H A Dclk-sun6i-ar100.c65 div = DIV_ROUND_UP(parent_rate, req->rate); ar100_determine_rate()
H A Dclk-sun9i-mmc.c109 count = DIV_ROUND_UP((r->end - r->start + 1), SUN9I_MMC_WIDTH); sun9i_a80_mmc_config_clk_probe()
H A Dclk-mod0.c41 div = DIV_ROUND_UP(parent_rate, *freq); sun4i_a10_get_mod0_factors()
52 calcm = DIV_ROUND_UP(div, 1 << calcp); sun4i_a10_get_mod0_factors()
/linux-4.4.14/fs/gfs2/
H A Dbmap.h42 tmp = DIV_ROUND_UP(tmp, sdp->sd_inptrs); gfs2_write_calc_reserv()
H A Dxattr.c54 (sizeof(__be64) * DIV_ROUND_UP(dsize, jbsize)), 8); ea_calc_size()
468 unsigned int nptrs = DIV_ROUND_UP(amount, sdp->sd_jbsize); gfs2_iter_unstuffed()
685 ea->ea_num_ptrs = DIV_ROUND_UP(er->er_data_len, sdp->sd_jbsize); ea_write()
812 blks += DIV_ROUND_UP(er.er_data_len, jbsize); ea_init()
958 blks = 2 + DIV_ROUND_UP(es->es_er->er_data_len, ea_set_simple()
1071 blks += DIV_ROUND_UP(er.er_data_len, GFS2_SB(&ip->i_inode)->sd_jbsize); ea_set_i()
1246 unsigned int nptrs = DIV_ROUND_UP(amount, sdp->sd_jbsize); ea_acl_chmod_unstuffed()
/linux-4.4.14/arch/arm64/include/asm/
H A Dpgtable-hwdef.h24 * levels = DIV_ROUND_UP((va_bits - PAGE_SHIFT), (PAGE_SHIFT - 3))
26 * where DIV_ROUND_UP(n, d) => (((n) + (d) - 1) / (d))
28 * We cannot include linux/kernel.h which defines DIV_ROUND_UP here
29 * due to build issues. So we open code DIV_ROUND_UP here:
/linux-4.4.14/arch/arm/mach-s3c24xx/
H A Dcpufreq-utils.c47 refresh = DIV_ROUND_UP(refresh, (1000 * 1000)); /* apply scale */ s3c2410_cpufreq_setrefresh()
H A Diotiming-s3c2412.c70 return cyc_tns ? DIV_ROUND_UP(cyc_tns, clk_tns) : 0; to_div()
278 refresh = DIV_ROUND_UP(refresh, (1000 * 1000)); /* apply scale */ s3c2412_cpufreq_setrefresh()
/linux-4.4.14/sound/firewire/
H A Dpackets-buffer.c42 pages = DIV_ROUND_UP(count, packets_per_page); iso_packets_buffer_init()
/linux-4.4.14/include/linux/mfd/
H A Dhtc-egpio.h19 * (number of registers = DIV_ROUND_UP(num_gpios, reg_width))
/linux-4.4.14/lib/mpi/
H A Dmpicoder.c55 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); mpi_read_raw_data()
99 nbytes = DIV_ROUND_UP(nbits, 8); mpi_read_from_buffer()
100 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); mpi_read_from_buffer()
267 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); mpi_set_buffer()
483 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB);
/linux-4.4.14/drivers/gpu/drm/vmwgfx/device_include/
H A Dsvga3d_surfacedefs.h39 #define DIV_ROUND_UP(x, y) (((x) + (y) - 1) / (y)) macro
990 block_size->width = DIV_ROUND_UP(pixel_size->width, svga3dsurface_get_size_in_blocks()
992 block_size->height = DIV_ROUND_UP(pixel_size->height, svga3dsurface_get_size_in_blocks()
994 block_size->depth = DIV_ROUND_UP(pixel_size->depth, svga3dsurface_get_size_in_blocks()
1103 const u32 rowstride = DIV_ROUND_UP(width, bw) * desc->bytes_per_block; svga3dsurface_get_pixel_offset()
1104 const u32 imgstride = DIV_ROUND_UP(height, bh) * rowstride; svga3dsurface_get_pixel_offset()
/linux-4.4.14/drivers/clk/ti/
H A Ddivider.c116 return DIV_ROUND_UP(parent_rate, div); ti_clk_divider_recalc_rate()
120 * The reverse of DIV_ROUND_UP: The maximum number which
160 bestdiv = DIV_ROUND_UP(parent_rate, rate); ti_clk_divider_bestdiv()
186 now = DIV_ROUND_UP(parent_rate, i); ti_clk_divider_bestdiv()
209 return DIV_ROUND_UP(*prate, div); ti_clk_divider_round_rate()
224 div = DIV_ROUND_UP(parent_rate, rate); ti_clk_divider_set_rate()
H A Dfapll.c424 synth_post_div_m = DIV_ROUND_UP(frac_rate, rate); ti_fapll_synth_round_rate()
425 r = DIV_ROUND_UP(frac_rate, synth_post_div_m); ti_fapll_synth_round_rate()
459 post_div_m = DIV_ROUND_UP(frac_rate, rate); ti_fapll_synth_set_rate()
461 post_rate = DIV_ROUND_UP(frac_rate, post_div_m); ti_fapll_synth_set_rate()
/linux-4.4.14/drivers/scsi/snic/
H A Dvnic_wq.h69 DIV_ROUND_UP(entries, VNIC_WQ_BUF_DFLT_BLK_ENTRIES)
71 DIV_ROUND_UP(entries, VNIC_WQ_BUF_DFLT_BLK_ENTRIES)
/linux-4.4.14/drivers/md/bcache/
H A Dmovinggc.c88 bio->bi_max_vecs = DIV_ROUND_UP(KEY_SIZE(&io->w->key), moving_init()
152 * DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS), read_moving()
H A Dwriteback.c115 bio->bi_max_vecs = DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS); dirty_init()
247 * DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS), read_dirty()
/linux-4.4.14/drivers/clk/
H A Dclk-clps711x.c67 f_pll = DIV_ROUND_UP(CLPS711X_OSC_FREQ * tmp, 2); _clps711x_clk_init()
81 f_bus = DIV_ROUND_UP(f_cpu, 2); _clps711x_clk_init()
H A Dclk-axi-clkgen.c157 d_min = max_t(unsigned long, DIV_ROUND_UP(fin, fpfd_max), 1); axi_clkgen_calc_params()
160 m_min = max_t(unsigned long, DIV_ROUND_UP(fvco_min, fin) * d_min, 1); axi_clkgen_calc_params()
164 _d_min = max(d_min, DIV_ROUND_UP(fin * m, fvco_max)); axi_clkgen_calc_params()
H A Dclk-pwm.c83 pwm->period != DIV_ROUND_UP(NSEC_PER_SEC, clk_pwm->fixed_rate)) { clk_pwm_probe()
/linux-4.4.14/drivers/video/console/
H A Dbitblit.c29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); update_attr()
148 u32 width = DIV_ROUND_UP(vc->vc_font.width, 8); bit_putcs()
177 pitch = DIV_ROUND_UP(image.width, 8) + scan_align; bit_putcs()
242 int w = DIV_ROUND_UP(vc->vc_font.width, 8), c; bit_cursor()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dnv25.c33 u32 tiles = DIV_ROUND_UP(size, 0x40); nv25_fb_tile_comp()
H A Dnv35.c33 u32 tiles = DIV_ROUND_UP(size, 0x40); nv35_fb_tile_comp()
H A Dnv36.c33 u32 tiles = DIV_ROUND_UP(size, 0x40); nv36_fb_tile_comp()
H A Dnv40.c33 u32 tiles = DIV_ROUND_UP(size, 0x80); nv40_fb_tile_comp()
H A Dnv20.c46 u32 tiles = DIV_ROUND_UP(size, 0x40); nv20_fb_tile_comp()
H A Dnv30.c52 u32 tiles = DIV_ROUND_UP(size, 0x40); nv30_fb_tile_comp()
/linux-4.4.14/drivers/media/dvb-frontends/
H A Dhorus3a.c268 fc_lpf = (u8)DIV_ROUND_UP(symbol_rate * 47, 40000); horus3a_set_params()
270 fc_lpf = (u8)DIV_ROUND_UP(symbol_rate * 27, 40000) + 5; horus3a_set_params()
305 fc_lpf = (u8)DIV_ROUND_UP( horus3a_set_params()
308 fc_lpf = (u8)DIV_ROUND_UP( horus3a_set_params()
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
H A Dscan.c180 min_dwell_time_active = DIV_ROUND_UP(min_dwell_time_active, 1000); wlcore_scan_get_channels()
181 max_dwell_time_active = DIV_ROUND_UP(max_dwell_time_active, 1000); wlcore_scan_get_channels()
182 dwell_time_passive = DIV_ROUND_UP(dwell_time_passive, 1000); wlcore_scan_get_channels()
183 dwell_time_dfs = DIV_ROUND_UP(dwell_time_dfs, 1000); wlcore_scan_get_channels()
/linux-4.4.14/arch/arm/include/asm/
H A Dkprobes.h75 #define MAX_COPIED_INSN DIV_ROUND_UP(RELATIVEJUMP_SIZE, sizeof(kprobe_opcode_t))
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_mdio.c164 msleep(DIV_ROUND_UP(data->delays[0], 1000)); stmmac_mdio_reset()
168 msleep(DIV_ROUND_UP(data->delays[1], 1000)); stmmac_mdio_reset()
172 msleep(DIV_ROUND_UP(data->delays[2], 1000)); stmmac_mdio_reset()
/linux-4.4.14/drivers/base/regmap/
H A Dregcache-lzo.c112 DIV_ROUND_UP(map->cache_size_raw, regcache_lzo_get_blkindex()
120 (DIV_ROUND_UP(map->cache_size_raw, regcache_lzo_get_blkpos()
127 return DIV_ROUND_UP(map->cache_size_raw, regcache_lzo_get_blksize()
/linux-4.4.14/drivers/spi/
H A Dspi-orion.c142 spr = DIV_ROUND_UP(spr, speed); orion_spi_baudrate_set()
166 rate = DIV_ROUND_UP(tclk_hz, speed); orion_spi_baudrate_set()
564 DIV_ROUND_UP(tclk_hz, devdata->min_divisor)); orion_spi_probe()
567 DIV_ROUND_UP(tclk_hz, devdata->min_divisor); orion_spi_probe()
570 master->min_speed_hz = DIV_ROUND_UP(tclk_hz, devdata->max_divisor); orion_spi_probe()
H A Dspi-xcomm.c82 divider = DIV_ROUND_UP(SPI_XCOMM_CLOCK, t->speed_hz); spi_xcomm_setup_transfer()
H A Dspi-bcm63xx-hsspi.c131 reg = DIV_ROUND_UP(2048, DIV_ROUND_UP(bs->speed_hz, hz)); bcm63xx_hsspi_set_clk()
H A Dspi-efm32.c136 clkdiv = 64 * (DIV_ROUND_UP(2 * clkfreq, speed) - 4); efm32_spi_setup_transfer()
197 t->len * DIV_ROUND_UP(t->bits_per_word, 8); efm32_spi_txrx_bufs()
H A Dspi-txx9.c191 int n = DIV_ROUND_UP(c->baseclk, speed_hz) - 1; txx9spi_work_one()
356 master->min_speed_hz = DIV_ROUND_UP(c->baseclk, SPI_MAX_DIVIDER + 1); txx9spi_probe()
H A Dspi-altera.c126 hw->bytes_per_word = DIV_ROUND_UP(t->bits_per_word, 8); altera_spi_txrx()
H A Dspi-ath79.c259 rate = DIV_ROUND_UP(clk_get_rate(sp->clk), MHZ); ath79_spi_probe()
H A Dspi-oc-tiny.c69 return min(DIV_ROUND_UP(hw->freq, hz * 2), (1U << hw->baudwidth)) - 1; tiny_spi_baud()
H A Dspi-pxa2xx-dma.c44 nents = DIV_ROUND_UP(len, SZ_2K); pxa2xx_spi_map_dma_buffer()
/linux-4.4.14/drivers/mtd/nand/
H A Dpxa3xx_nand.c420 u32 tCH_min = DIV_ROUND_UP(t->tCH_min, 1000); pxa3xx_nand_set_sdr_timing()
421 u32 tCS_min = DIV_ROUND_UP(t->tCS_min, 1000); pxa3xx_nand_set_sdr_timing()
422 u32 tWH_min = DIV_ROUND_UP(t->tWH_min, 1000); pxa3xx_nand_set_sdr_timing()
423 u32 tWP_min = DIV_ROUND_UP(t->tWC_min - t->tWH_min, 1000); pxa3xx_nand_set_sdr_timing()
424 u32 tREH_min = DIV_ROUND_UP(t->tREH_min, 1000); pxa3xx_nand_set_sdr_timing()
425 u32 tRP_min = DIV_ROUND_UP(t->tRC_min - t->tREH_min, 1000); pxa3xx_nand_set_sdr_timing()
427 u32 tWHR_min = DIV_ROUND_UP(t->tWHR_min, 1000); pxa3xx_nand_set_sdr_timing()
428 u32 tAR_min = DIV_ROUND_UP(t->tAR_min, 1000); pxa3xx_nand_set_sdr_timing()
674 DIV_ROUND_UP(do_bytes, 4)); handle_data_pio()
679 DIV_ROUND_UP(info->oob_size, 4)); handle_data_pio()
684 DIV_ROUND_UP(do_bytes, 4)); handle_data_pio()
689 DIV_ROUND_UP(info->oob_size, 4)); handle_data_pio()
H A Dsunxi_nand.c852 u32 clk_cycles = DIV_ROUND_UP(duration, clk_period); _sunxi_nand_lookup_timing()
912 min_clk_period = DIV_ROUND_UP(timings->tRR_min, 3); sunxi_nand_chip_set_timings()
928 min_clk_period = DIV_ROUND_UP(timings->tRC_min, 2); sunxi_nand_chip_set_timings()
932 min_clk_period = DIV_ROUND_UP(timings->tWC_min, 2); sunxi_nand_chip_set_timings()
942 tADL = DIV_ROUND_UP(timings->tADL_min, min_clk_period) >> 3; sunxi_nand_chip_set_timings()
948 tWHR = DIV_ROUND_UP(timings->tWHR_min, min_clk_period) >> 3; sunxi_nand_chip_set_timings()
978 min_clk_period = DIV_ROUND_UP(min_clk_period, 1000); sunxi_nand_chip_set_timings()
1062 ecc->bytes = DIV_ROUND_UP(ecc->strength * fls(8 * 1024), 8); sunxi_nand_hw_common_ecc_ctrl_init()
H A Dtxx9ndfmc.c256 DIV_ROUND_UP((ns) * DIV_ROUND_UP(gbusclk, 1000), 1000000)
/linux-4.4.14/drivers/gpio/
H A Dgpio-stmpe.c164 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); stmpe_gpio_irq_sync_unlock()
222 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); stmpe_dbg_show_one()
300 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); stmpe_gpio_irq()
H A Dgpio-74xx-mmio.c138 DIV_ROUND_UP(MMIO_74XX_BIT_CNT(priv->flags), 8), mmio_74xx_gpio_probe()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_pll.c55 tmp = DIV_ROUND_UP(nom_min, *nom); amdgpu_pll_reduce_ratio()
62 tmp = DIV_ROUND_UP(den_min, *den); amdgpu_pll_reduce_ratio()
226 unsigned tmp = DIV_ROUND_UP(fb_div_min, fb_div); amdgpu_pll_compute()
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Drv770_dma.c58 num_loops = DIV_ROUND_UP(size_in_dw, 0xFFFF); rv770_copy_dma()
H A Devergreen_dma.c124 num_loops = DIV_ROUND_UP(size_in_dw, 0xfffff); evergreen_copy_dma()
H A Dsi_dma.c247 num_loops = DIV_ROUND_UP(size_in_bytes, 0xfffff); si_copy_dma()
/linux-4.4.14/drivers/gpu/drm/rcar-du/
H A Drcar_du_drv.h69 #define RCAR_DU_MAX_GROUPS DIV_ROUND_UP(RCAR_DU_MAX_CRTCS, 2)
/linux-4.4.14/drivers/net/ethernet/ti/
H A Dcpsw_ale.h85 #define ALE_ENTRY_WORDS DIV_ROUND_UP(ALE_ENTRY_BITS, 32)
/linux-4.4.14/drivers/clk/qcom/
H A Dclk-rcg2.c525 div = DIV_ROUND_UP((2 * parent_rate), req->rate) - 1; clk_byte_determine_rate()
541 div = DIV_ROUND_UP((2 * parent_rate), rate) - 1; clk_byte_set_rate()
582 div = DIV_ROUND_UP((2 * parent_rate), rate) - 1; clk_byte2_determine_rate()
600 div = DIV_ROUND_UP((2 * parent_rate), rate) - 1; clk_byte2_set_rate()
/linux-4.4.14/fs/nfs/
H A Dnfs4session.h32 #define SLOT_TABLE_SZ DIV_ROUND_UP(NFS4_MAX_SLOT_TABLE, 8*sizeof(long))
/linux-4.4.14/lib/
H A Dkfifo.c207 ret = DIV_ROUND_UP(ret + len - l, esize); kfifo_copy_from_user()
211 ret = DIV_ROUND_UP(ret, esize); kfifo_copy_from_user()
267 ret = DIV_ROUND_UP(ret + len - l, esize); kfifo_copy_to_user()
271 ret = DIV_ROUND_UP(ret, esize); kfifo_copy_to_user()
H A Dbch.c87 #define BCH_ECC_WORDS(_p) DIV_ROUND_UP(GF_M(_p)*GF_T(_p), 32)
88 #define BCH_ECC_BYTES(_p) DIV_ROUND_UP(GF_M(_p)*GF_T(_p), 8)
1084 const int plen = DIV_ROUND_UP(bch->ecc_bits+1, 32); build_mod8_tables()
1085 const int ecclen = DIV_ROUND_UP(bch->ecc_bits, 32); build_mod8_tables()
1175 genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); compute_generator_polynomial()
1297 words = DIV_ROUND_UP(m*t, 32); init_bch()
1298 bch->ecc_bytes = DIV_ROUND_UP(m*t, 8); init_bch()
H A Ddigsig.c118 mlen = DIV_ROUND_UP(mblen, 8); digsig_verify_rsa()
H A Diov_iter.c591 n = DIV_ROUND_UP(len, PAGE_SIZE); iov_iter_get_pages()
636 n = DIV_ROUND_UP(len, PAGE_SIZE); iov_iter_get_pages_alloc()
761 npages += DIV_ROUND_UP(p + v.iov_len, PAGE_SIZE) iov_iter_npages()
771 npages += DIV_ROUND_UP(p + v.iov_len, PAGE_SIZE) iov_iter_npages()
/linux-4.4.14/arch/m68k/include/asm/
H A Ddelay.h117 #define ndelay(n) __delay(DIV_ROUND_UP((n) * ((((HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6), 1000));
/linux-4.4.14/net/netfilter/
H A Dnft_bitwise.c37 for (i = 0; i < DIV_ROUND_UP(priv->len, 4); i++) nft_bitwise_eval()
/linux-4.4.14/drivers/watchdog/
H A Dintel-mid_wdt.c57 in_size = DIV_ROUND_UP(sizeof(ipc_wd_start), 4); wdt_start()
H A Dlpc18xx_wdt.c110 val = DIV_ROUND_UP(lpc18xx_wdt->wdt_dev.timeout * lpc18xx_wdt->clk_rate, __lpc18xx_wdt_set_timeout()
254 lpc18xx_wdt->wdt_dev.min_timeout = DIV_ROUND_UP(LPC18XX_WDT_TC_MIN * lpc18xx_wdt_probe()
H A Ds3c2410_wdt.c315 freq = DIV_ROUND_UP(freq, 128); s3c2410wdt_set_heartbeat()
327 divisor = DIV_ROUND_UP(count, 0xffff); s3c2410wdt_set_heartbeat()
336 __func__, timeout, divisor, count, DIV_ROUND_UP(count, divisor)); s3c2410wdt_set_heartbeat()
338 count = DIV_ROUND_UP(count, divisor); s3c2410wdt_set_heartbeat()
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
H A Dqp.c302 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); create_qp()
520 *len16 = DIV_ROUND_UP(size, 16); build_rdma_send()
563 *len16 = DIV_ROUND_UP(size, 16); build_rdma_write()
593 *len16 = DIV_ROUND_UP(sizeof wqe->read, 16); build_rdma_read()
607 *len16 = DIV_ROUND_UP(sizeof wqe->recv + build_rdma_recv()
649 *len16 = DIV_ROUND_UP(sizeof(wqe->fr) + sizeof(*sglp), 16); build_memreg()
671 *len16 = DIV_ROUND_UP(sizeof(wqe->fr) + sizeof(*imdp) build_memreg()
682 *len16 = DIV_ROUND_UP(sizeof wqe->inv, 16); build_inv_stag()
855 idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); c4iw_post_send()
926 idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); c4iw_post_receive()
1101 FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*wqe), 16))); post_terminate()
1224 FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*wqe), 16))); rdma_fini()
1249 init->u.write.len16 = DIV_ROUND_UP(sizeof init->u.write + build_rtr_msg()
1259 init->u.read.len16 = DIV_ROUND_UP(sizeof init->u.read, 16); build_rtr_msg()
1293 FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*wqe), 16))); rdma_init()
H A Dmem.c87 req->wr.wr_mid = cpu_to_be32(FW_WR_LEN16_V(DIV_ROUND_UP(wr_len, 16))); _c4iw_write_mem_dma_aligned()
91 req->len16 = cpu_to_be32(DIV_ROUND_UP(wr_len-sizeof(req->wr), 16)); _c4iw_write_mem_dma_aligned()
126 num_wqe = DIV_ROUND_UP(len, C4IW_MAX_INLINE_SIZE); _c4iw_write_mem_inline()
151 FW_WR_LEN16_V(DIV_ROUND_UP(wr_len, 16))); _c4iw_write_mem_inline()
155 DIV_ROUND_UP(copy_len, T4_ULPTX_MIN_IO))); _c4iw_write_mem_inline()
156 req->len16 = cpu_to_be32(DIV_ROUND_UP(wr_len-sizeof(req->wr), _c4iw_write_mem_inline()
/linux-4.4.14/drivers/tty/serial/8250/
H A D8250_mtk.c78 quot = DIV_ROUND_UP(port->uartclk, 4 * baud); mtk8250_set_termios()
85 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); mtk8250_set_termios()
H A D8250_lpc18xx.c69 rs485_dly_reg = DIV_ROUND_UP(rs485->delay_rts_after_send lpc18xx_rs485_config()
/linux-4.4.14/drivers/staging/media/omap4iss/
H A Diss_csiphy.c208 csi2phy.ths_term = DIV_ROUND_UP(25 * csi2_ddrclk_khz, 2000000) - 1; omap4iss_csiphy_config()
209 csi2phy.ths_settle = DIV_ROUND_UP(90 * csi2_ddrclk_khz, 1000000) + 3; omap4iss_csiphy_config()
/linux-4.4.14/drivers/mmc/host/
H A Ddw_mmc-rockchip.c84 #define TUNING_ITERATION_TO_PHASE(i) (DIV_ROUND_UP((i) * 360, NUM_PHASES))
138 i += DIV_ROUND_UP(20 * NUM_PHASES, 360); dw_mci_rk3288_execute_tuning()
H A Dmvsdio.c94 tmout = DIV_ROUND_UP(data->timeout_ns, host->ns_per_clk); mvsd_setup_data()
618 u32 m = DIV_ROUND_UP(host->base_clock, ios->clock) - 1; mvsd_set_ios()
737 mmc->f_min = DIV_ROUND_UP(host->base_clock, MVSD_BASE_DIV_MAX); mvsd_probe()
H A Domap.c180 tick_ns = DIV_ROUND_UP(NSEC_PER_SEC, slot->fclk_freq); mmc_omap_fclk_offdelay()
438 tick_ns = DIV_ROUND_UP(NSEC_PER_SEC, slot->fclk_freq); mmc_omap_send_stop_work()
480 timeout = DIV_ROUND_UP(120 * USEC_PER_SEC, slot->fclk_freq); mmc_omap_send_abort()
681 nwords = DIV_ROUND_UP(n, 2); mmc_omap_xfer_data()
/linux-4.4.14/drivers/hwmon/
H A Dpwm-fan.c50 duty = DIV_ROUND_UP(pwm * (ctx->pwm->period - 1), MAX_PWM); __set_pwm()
312 duty = DIV_ROUND_UP(ctx->pwm_value * (ctx->pwm->period - 1), MAX_PWM); pwm_fan_resume()
H A Dmax16065.c167 for (i = 0; i < DIV_ROUND_UP(data->num_adc, 8); i++) max16065_update_device()
595 for (i = 0; i < DIV_ROUND_UP(data->num_adc, 4); i++) { max16065_probe()
H A Dads1015.c91 conversion_time_ms = DIV_ROUND_UP(1000, rate_table[data_rate]); ads1015_read_adc()
/linux-4.4.14/drivers/gpu/drm/vgem/
H A Dvgem_drv.c101 num_pages = DIV_ROUND_UP(obj->base.size, PAGE_SIZE); vgem_gem_fault()
177 uint64_t pitch = args->width * DIV_ROUND_UP(args->bpp, 8); vgem_gem_dumb_create()
/linux-4.4.14/drivers/media/platform/omap3isp/
H A Dispcsiphy.c224 reg |= (DIV_ROUND_UP(25 * csi2_ddrclk_khz, 2000000) - 1) omap3isp_csiphy_config()
227 reg |= (DIV_ROUND_UP(90 * csi2_ddrclk_khz, 1000000) + 3) omap3isp_csiphy_config()
/linux-4.4.14/drivers/clocksource/
H A Dtimer-sun5i.c252 ce->timer.ticks_per_jiffy = DIV_ROUND_UP(ndata->new_rate, HZ); sun5i_rate_cb_clkevt()
279 ce->timer.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); sun5i_setup_clockevent()
H A Dsun4i_timer.c188 ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); sun4i_timer_init()
H A Dtimer-digicolor.c180 dc_timer_dev.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); digicolor_timer_init()
H A Dtimer-keystone.c196 timer.hz_period = DIV_ROUND_UP(rate, HZ); keystone_timer_init()
/linux-4.4.14/drivers/clk/bcm/
H A Dclk-iproc-asiu.c122 div = DIV_ROUND_UP(*parent_rate, rate); iproc_asiu_clk_round_rate()
148 div = DIV_ROUND_UP(parent_rate, rate); iproc_asiu_clk_set_rate()
/linux-4.4.14/fs/jfs/
H A Djfs_dtree.h77 #define NDTINTERNAL(klen) (DIV_ROUND_UP((4 + (klen)), 15))
136 #define NDTLEAF_LEGACY(klen) (DIV_ROUND_UP((2 + (klen)), 15))
/linux-4.4.14/arch/s390/kernel/
H A Dsuspend.c55 return DIV_ROUND_UP(pages, PAGE_KEY_DATA_SIZE); page_key_additional_pages()
81 size = DIV_ROUND_UP(pages, PAGE_KEY_DATA_SIZE); page_key_alloc()
/linux-4.4.14/drivers/i2c/busses/
H A Di2c-mxs.c703 divider = DIV_ROUND_UP(clk, speed); mxs_i2c_derive_timing()
745 leadin = DIV_ROUND_UP(600 * (clk / 1000000), 1000); mxs_i2c_derive_timing()
746 bus_free = DIV_ROUND_UP(1300 * (clk / 1000000), 1000); mxs_i2c_derive_timing()
751 leadin = DIV_ROUND_UP(4700 * (clk / 1000000), 1000); mxs_i2c_derive_timing()
752 bus_free = DIV_ROUND_UP(4700 * (clk / 1000000), 1000); mxs_i2c_derive_timing()
H A Di2c-rk3x.c520 DIV_ROUND_UP((scl_rise_ns + spec_setup_start) * 1000, 875)); rk3x_i2c_calc_divs()
522 DIV_ROUND_UP((scl_rise_ns + spec_setup_start + rk3x_i2c_calc_divs()
530 clk_rate_khz = DIV_ROUND_UP(clk_rate, 1000); rk3x_i2c_calc_divs()
537 min_total_div = DIV_ROUND_UP(clk_rate_khz, scl_rate_khz * 8); rk3x_i2c_calc_divs()
540 min_low_div = DIV_ROUND_UP(clk_rate_khz * min_low_ns, 8 * 1000000); rk3x_i2c_calc_divs()
541 min_high_div = DIV_ROUND_UP(clk_rate_khz * min_high_ns, 8 * 1000000); rk3x_i2c_calc_divs()
576 ideal_low_div = DIV_ROUND_UP(clk_rate_khz * min_low_ns, rk3x_i2c_calc_divs()
H A Di2c-bcm2835.c259 divider = DIV_ROUND_UP(clk_get_rate(i2c_dev->clk), bus_clk_rate); bcm2835_i2c_probe()
H A Di2c-digicolor.c272 clocktime = DIV_ROUND_UP(clk_rate, 64 * i2c->frequency); dc_i2c_init_hw()
/linux-4.4.14/drivers/firewire/
H A Dcore-card.c248 delayed ? DIV_ROUND_UP(HZ, 100) : 0)) fw_schedule_bus_reset()
343 card->reset_jiffies + DIV_ROUND_UP(HZ, 8)); bm_work()
410 fw_schedule_bm_work(card, DIV_ROUND_UP(HZ, 8)); bm_work()
434 fw_schedule_bm_work(card, DIV_ROUND_UP(HZ, 8)); bm_work()
542 DIV_ROUND_UP(DEFAULT_SPLIT_TIMEOUT * HZ, 8000); fw_card_initialize()
/linux-4.4.14/drivers/gpu/drm/gma500/
H A Doaktrail_hdmi.c180 np_min = DIV_ROUND_UP(oaktrail_hdmi_limit.vco.min, target * 10); oaktrail_hdmi_find_dpll()
187 nr_min = DIV_ROUND_UP((refclk * 1000), (target * 10 * np_max)); oaktrail_hdmi_find_dpll()
188 nr_max = DIV_ROUND_UP((refclk * 1000), (target * 10 * np_min)); oaktrail_hdmi_find_dpll()
194 np = DIV_ROUND_UP((refclk * 1000), (target * 10 * nr_max)); oaktrail_hdmi_find_dpll()
195 nr = DIV_ROUND_UP((refclk * 1000), (target * 10 * np)); oaktrail_hdmi_find_dpll()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dgk20a.c363 n_lo = DIV_ROUND_UP(m_old * clk->params->min_vco, _gk20a_pllg_program_mnp()
396 n_lo = DIV_ROUND_UP(clk->m * clk->params->min_vco, _gk20a_pllg_program_mnp()
455 n_lo = DIV_ROUND_UP(m * clk->params->min_vco, gk20a_pllg_disable()
/linux-4.4.14/drivers/regulator/
H A Dmax8649.c82 return DIV_ROUND_UP(voltage, rate); max8649_enable_time()
H A Drc5t583-regulator.c61 return DIV_ROUND_UP(curr_uV, reg->reg_info->enable_uv_per_us); rc5t583_regulator_enable_time()
H A Dda9052-regulator.c200 DIV_ROUND_UP(min_uV - DA9052_CONST_3uV, da9052_map_voltage()
203 sel = DIV_ROUND_UP(min_uV - info->min_uV, info->step_uV); da9052_map_voltage()
H A Dhelpers.c262 ret = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step); regulator_map_voltage_linear()
316 ret = DIV_ROUND_UP(min_uV - range->min_uV, regulator_map_voltage_linear_range()
H A Dtwl-regulator.c500 int vsel = DIV_ROUND_UP(min_uV - 600000, 12500); twl4030smps_set_voltage()
738 vsel = DIV_ROUND_UP(min_uV - 600000, 12500); twl6030smps_map_voltage()
761 vsel = DIV_ROUND_UP(min_uV - 700000, 12500); twl6030smps_map_voltage()
784 vsel = DIV_ROUND_UP(min_uV - 1852000, 38600); twl6030smps_map_voltage()
792 vsel = DIV_ROUND_UP(min_uV - 2161000, 38600); twl6030smps_map_voltage()
H A Dda903x.c206 sel = DIV_ROUND_UP(thresh - min_uV, info->desc.uV_step); da9030_map_ldo14_voltage()
209 sel = DIV_ROUND_UP(min_uV - thresh, info->desc.uV_step); da9030_map_ldo14_voltage()
H A Dad5398.c100 selector = DIV_ROUND_UP((min_uA - chip->min_uA) * chip->current_level, ad5398_set_current_limit()
H A Darizona-ldo1.c57 sel = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step); arizona_ldo1_hc_map_voltage()
H A Dmax8925-regulator.c113 data = DIV_ROUND_UP(uV - SD1_DVM_VMIN, SD1_DVM_STEP); max8925_set_dvm_voltage()
H A Ds2mpa01.c95 return DIV_ROUND_UP(abs(new_volt - old_volt), ramp_delay); s2mpa01_regulator_set_voltage_time_sel()
H A Dtps51632-regulator.c81 (DIV_ROUND_UP(uV - TPS51632_MIN_VOLTAGE, \
/linux-4.4.14/drivers/scsi/fnic/
H A Dvnic_wq.h82 DIV_ROUND_UP(entries, VNIC_WQ_BUF_BLK_ENTRIES)
H A Dvnic_rq.h79 DIV_ROUND_UP(entries, VNIC_RQ_BUF_BLK_ENTRIES)
/linux-4.4.14/drivers/gpu/drm/rockchip/
H A Drockchip_drm_fbdev.c64 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); rockchip_drm_fbdev_create()
H A Drockchip_drm_gem.c232 int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); rockchip_gem_dumb_create()
/linux-4.4.14/drivers/gpu/drm/udl/
H A Dudl_gem.c81 args->pitch = args->width * DIV_ROUND_UP(args->bpp, 8); udl_dumb_create()
/linux-4.4.14/drivers/media/pci/pt3/
H A Dpt3.h78 #define MAX_DESC_BUFS DIV_ROUND_UP(MAX_NUM_XFERS, DESCS_IN_PAGE)
H A Dpt3_dma.c181 DIV_ROUND_UP(adap->num_bufs * DATA_BUF_XFERS, DESCS_IN_PAGE); pt3_alloc_dmabuf()
/linux-4.4.14/drivers/input/misc/
H A Dgpio_tilt_polled.c154 tdev->threshold = DIV_ROUND_UP(pdata->debounce_interval, gpio_tilt_polled_probe()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
H A Dgk20a.c98 mv = DIV_ROUND_UP(mv, 1000); gk20a_volt_calc_voltage()
/linux-4.4.14/drivers/phy/
H A Dphy-qcom-ufs-i.h40 usleep_range(DIV_ROUND_UP(sleep_us, 4), sleep_us); \
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
H A Dqed_cxt.c197 *p_line += DIV_ROUND_UP(p_blk->total_size, qed_ilt_cli_adv_line()
322 lines = DIV_ROUND_UP(sz_left, p_blk->real_size_in_page); qed_ilt_blk_alloc()
420 size = DIV_ROUND_UP(cid_cnt, qed_cid_map_alloc()
526 DIV_ROUND_UP(cid_cnt, qed_cxt_mngr_setup()
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
H A Dvnic_wq.h77 DIV_ROUND_UP(entries, VNIC_WQ_BUF_BLK_ENTRIES(entries))
/linux-4.4.14/drivers/pinctrl/spear/
H A Dpinctrl-plgpio.c368 regs_count = DIV_ROUND_UP(count, MAX_GPIO_PER_REG); plgpio_irq_handler()
545 DIV_ROUND_UP(plgpio->chip.ngpio, MAX_GPIO_PER_REG), plgpio_probe()
621 int i, reg_count = DIV_ROUND_UP(plgpio->chip.ngpio, MAX_GPIO_PER_REG); plgpio_suspend()
660 int i, reg_count = DIV_ROUND_UP(plgpio->chip.ngpio, MAX_GPIO_PER_REG); plgpio_resume()
/linux-4.4.14/drivers/clk/tegra/
H A Dcvb.c43 uv = DIV_ROUND_UP(uv, step) * align->step_uv + align->offset_uv; round_cvb_voltage()
H A Dclk-divider.c103 return DIV_ROUND_UP(output_rate * mul, div + mul); clk_frac_div_round_rate()
/linux-4.4.14/drivers/clk/meson/
H A Dclk-cpu.c80 div = DIV_ROUND_UP(parent_rate, rate); meson_clk_cpu_set_rate()
/linux-4.4.14/fs/minix/
H A Dminix.h92 return DIV_ROUND_UP(bits, blocksize * 8); minix_blocks_needed()
/linux-4.4.14/mm/
H A Dcma_debug.c189 u32s = DIV_ROUND_UP(cma_bitmap_maxno(cma), BITS_PER_BYTE * sizeof(u32)); cma_debugfs_add_one()
H A Dswap_cgroup.c153 length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); swap_cgroup_swapon()
/linux-4.4.14/net/9p/
H A Dtrans_virtio.c343 nr_pages = DIV_ROUND_UP(n + *offs, PAGE_SIZE); p9_get_mapped_pages()
364 nr_pages = DIV_ROUND_UP((unsigned long)p + len, PAGE_SIZE) - p9_get_mapped_pages()
416 out_nr_pages = DIV_ROUND_UP(n + offs, PAGE_SIZE); p9_virtio_zc_request()
427 in_nr_pages = DIV_ROUND_UP(n + offs, PAGE_SIZE); p9_virtio_zc_request()
/linux-4.4.14/net/bridge/
H A Dbr_stp_bpdu.c79 return DIV_ROUND_UP(ticks * HZ, STP_HZ); br_get_ticks()
/linux-4.4.14/arch/m68k/mm/
H A Dinit.c127 #define MLK_ROUNDUP(b, t) b, t, DIV_ROUND_UP(((t) - (b)), 1024) print_memmap()
/linux-4.4.14/arch/metag/mm/
H A Dmmu-meta2.c139 unsigned int pages = DIV_ROUND_UP(mem_size, 1 << 22); mmu_init()
/linux-4.4.14/arch/blackfin/include/asm/
H A Dgpio.h15 #define GPIO_BANK_NUM DIV_ROUND_UP(MAX_BLACKFIN_GPIOS, GPIO_BANKSIZE)
/linux-4.4.14/net/ipv6/
H A Dudp_offload.c53 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); udp6_ufo_fragment()
/linux-4.4.14/sound/soc/adi/
H A Daxi-i2s.c96 bclk_div = DIV_ROUND_UP(clk_get_rate(i2s->clk_ref), bclk_rate) / 2 - 1; axi_i2s_hw_params()
/linux-4.4.14/drivers/staging/iio/light/
H A Disl29028.c88 unsigned int period = DIV_ROUND_UP(1000, sampling); isl29028_set_proxim_sampling()
111 mdelay(DIV_ROUND_UP(1000, chip->prox_sampling)); isl29028_enable_proximity()
/linux-4.4.14/drivers/video/fbdev/
H A Dclps711x-fb.c83 val = DIV_ROUND_UP(var->xres, 16) - 1; clps711x_fb_check_var()
87 val = DIV_ROUND_UP(var->yres * var->xres * var->bits_per_pixel, 128); clps711x_fb_check_var()
/linux-4.4.14/drivers/misc/sgi-gru/
H A Dgruhandles.h74 #define GRU_DS_BYTES_TO_AU(n) DIV_ROUND_UP(n, GRU_DSR_AU_BYTES)
75 #define GRU_CB_COUNT_TO_AU(n) DIV_ROUND_UP(n, GRU_CBR_AU_SIZE)
/linux-4.4.14/drivers/iio/adc/
H A Dad_sigma_delta.c280 DIV_ROUND_UP(chan->scan_type.realbits + chan->scan_type.shift, 8), ad_sigma_delta_single_conversion()
373 reg_size = DIV_ROUND_UP(reg_size, 8); ad_sd_trigger_handler()
/linux-4.4.14/drivers/mfd/
H A Dpm8921-core.c364 chip->num_blocks = DIV_ROUND_UP(chip->num_irqs, 8); pm8921_probe()
365 chip->num_masters = DIV_ROUND_UP(chip->num_blocks, 8); pm8921_probe()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tx.c219 ds_cnt += DIV_ROUND_UP(ihs - sizeof(eseg->inline_hdr_start), mlx5e_sq_xmit()
268 MLX5E_TX_SKB_CB(skb)->num_wqebbs = DIV_ROUND_UP(ds_cnt, mlx5e_sq_xmit()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_uld.h58 (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*w), 16)) | \
71 (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(wrlen, 16)) | \
/linux-4.4.14/net/wireless/
H A Dlib80211_crypt_ccmp.c241 blocks = DIV_ROUND_UP(data_len, AES_BLOCK_LEN); lib80211_ccmp_encrypt()
347 blocks = DIV_ROUND_UP(data_len, AES_BLOCK_LEN); lib80211_ccmp_decrypt()
/linux-4.4.14/kernel/rcu/
H A Dtree.h76 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1)
85 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2)
86 # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1)
95 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_3)
96 # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2)
97 # define NUM_RCU_LVL_3 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1)
/linux-4.4.14/sound/soc/codecs/
H A Dpcm512x.c514 ranges[1].min = DIV_ROUND_UP(16000000, frame_size); pcm512x_hw_rule_rate()
713 num *= DIV_ROUND_UP(pllin_rate / den, 20000000); pcm512x_find_pll_coeff()
714 den *= DIV_ROUND_UP(pllin_rate / den, 20000000); pcm512x_find_pll_coeff()
770 P = DIV_ROUND_UP(pllin_rate, 20000000); pcm512x_find_pll_coeff()
1018 ncp_div = DIV_ROUND_UP(dac_rate, 2048000); pcm512x_set_dividers()
/linux-4.4.14/drivers/usb/host/whci/
H A Dqset.c373 std->num_pointers = DIV_ROUND_UP(ep - sp, WHCI_PAGE_SIZE); qset_fill_page_list()
510 num_pointers = DIV_ROUND_UP(ep - sp, WHCI_PAGE_SIZE); qset_add_urb_sg()
667 ntds_remaining = DIV_ROUND_UP(remaining, QTD_MAX_XFER_SIZE); qset_add_urb()
/linux-4.4.14/drivers/pinctrl/mvebu/
H A Dpinctrl-armada-xp.c417 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); armada_xp_pinctrl_suspend()
431 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); armada_xp_pinctrl_resume()
493 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); armada_xp_pinctrl_probe()
/linux-4.4.14/net/mac80211/
H A Drc80211_minstrel.c448 DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1, calc_rate_durations()
451 DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1, calc_rate_durations()
520 mr->bitrate = DIV_ROUND_UP(sband->bitrates[i].bitrate, minstrel_rate_init()
H A Dutil.c74 * DIV_ROUND_UP() operations. ieee80211_frame_duration()
107 dur += 4 * DIV_ROUND_UP((16 + 8 * (len + 4) + 6) * 10, ieee80211_frame_duration()
123 dur += DIV_ROUND_UP(8 * (len + 4) * 10, rate); ieee80211_frame_duration()
184 bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift); ieee80211_rts_duration()
227 bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift); ieee80211_ctstoself_duration()
1334 (u8) DIV_ROUND_UP(sband->bitrates[i].bitrate, ieee80211_build_preq_ies_band()
1620 brate = DIV_ROUND_UP(sband->bitrates[j].bitrate, ieee80211_sta_get_rates()
2461 brate = DIV_ROUND_UP(br->bitrate, (1 << shift) * 5); ieee80211_parse_bitrates()
2509 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, ieee80211_add_srates_ie()
2558 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, ieee80211_add_ext_srates_ie()
2661 ri.legacy = DIV_ROUND_UP(bitrate, (1 << shift)); ieee80211_calculate_rx_timestamp()
2993 skip = DIV_ROUND_UP(-end, data->desc[i].interval); ieee80211_extend_noa_desc()
/linux-4.4.14/drivers/scsi/cxgbi/cxgb4i/
H A Dcxgb4i.c161 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
499 return DIV_ROUND_UP(skb->len, 8); calc_tx_flits_ofld()
514 flowclen16 = DIV_ROUND_UP(flowclen, 16); tx_flowc_wr_credits()
638 credits_needed = DIV_ROUND_UP(dlen, 16); push_tx_frames()
640 credits_needed = DIV_ROUND_UP( push_tx_frames()
645 credits_needed += DIV_ROUND_UP( push_tx_frames()
1468 DIV_ROUND_UP(sizeof(struct cpl_abort_req), 16); init_act_open()
1566 req->len16 = htonl(DIV_ROUND_UP(wr_len - sizeof(req->wr), 16)); ulp_mem_io_set_hdr()
/linux-4.4.14/drivers/gpu/drm/tegra/
H A Ddpaux.c76 for (i = 0; i < DIV_ROUND_UP(size, 4); i++) { tegra_dpaux_write_fifo()
92 for (i = 0; i < DIV_ROUND_UP(size, 4); i++) { tegra_dpaux_read_fifo()
H A Ddsi.c616 delay = DIV_ROUND_UP(delay * mul, div * lanes); tegra_dsi_configure()
620 bclk = DIV_ROUND_UP(mode->htotal * mul, div * lanes); tegra_dsi_configure()
621 bclk_ganged = DIV_ROUND_UP(bclk * lanes / 2, lanes); tegra_dsi_configure()
916 plld = DIV_ROUND_UP(state->bclk * 8, USEC_PER_SEC) * USEC_PER_SEC; tegra_dsi_encoder_atomic_check()
H A Dfb.c212 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); tegra_fbdev_probe()
/linux-4.4.14/drivers/net/ethernet/ezchip/
H A Dnps_enet.c30 u32 i, len = DIV_ROUND_UP(frame_len, sizeof(u32)); nps_enet_clean_rx_fifo()
363 u32 i, len = DIV_ROUND_UP(length, sizeof(u32)); nps_enet_send_frame()
/linux-4.4.14/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_layer.c401 DIV_ROUND_UP(layer->desc->nconfigs, atmel_hlcdc_layer_update_start()
576 updated_size = DIV_ROUND_UP(desc->nconfigs, atmel_hlcdc_layer_update_init()
/linux-4.4.14/arch/x86/platform/efi/
H A Defi_64.c91 n_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT), PGDIR_SIZE); efi_call_phys_prolog()
115 nr_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT) , PGDIR_SIZE); efi_call_phys_epilog()
/linux-4.4.14/drivers/clk/at91/
H A Dclk-pll.c190 tmpdiv = DIV_ROUND_UP(parent_rate, characteristics->input.max); clk_pll_get_best_div_mul()
202 maxdiv = DIV_ROUND_UP(parent_rate * PLL_MUL_MAX(layout), rate); clk_pll_get_best_div_mul()
/linux-4.4.14/fs/nfs/blocklayout/
H A Dextent_tree.c475 int nr_pages = DIV_ROUND_UP(buffer_size, PAGE_SIZE), i; ext_tree_free_commitdata()
543 kcalloc(DIV_ROUND_UP(buffer_size, PAGE_SIZE), ext_tree_prepare_commit()
/linux-4.4.14/fs/omfs/
H A Dinode.c316 bitmap_size = DIV_ROUND_UP(sbi->s_num_blocks, 8); omfs_get_imap()
317 array_size = DIV_ROUND_UP(bitmap_size, sb->s_blocksize); omfs_get_imap()
/linux-4.4.14/fs/pstore/
H A Dram_core.c237 ecc_blocks = DIV_ROUND_UP(prz->buffer_size - prz->ecc_info.ecc_size, persistent_ram_init_ecc()
394 page_count = DIV_ROUND_UP(size + offset_in_page(start), PAGE_SIZE); persistent_ram_vmap()
/linux-4.4.14/drivers/reset/
H A Dreset-lpc18xx.c191 rc->delay_us = DIV_ROUND_UP(fcclk, firc * firc); lpc18xx_rgu_probe()
/linux-4.4.14/drivers/staging/iio/adc/
H A Dspear_adc.c101 count = DIV_ROUND_UP(apb_clk, val); spear_adc_set_clk()
/linux-4.4.14/drivers/mtd/chips/
H A Dgen_probe.c114 mapsize = sizeof(long) * DIV_ROUND_UP(max_chips, BITS_PER_LONG); genprobe_ident_chips()
/linux-4.4.14/drivers/infiniband/hw/mlx5/
H A Dmem.c110 *ncont = DIV_ROUND_UP(i, (1 << m)); mlx5_ib_cont_pages()
/linux-4.4.14/drivers/gpu/host1x/
H A Dintr.c311 err = host1x_hw_intr_init_host_sync(host, DIV_ROUND_UP(hz, 1000000), host1x_intr_start()
/linux-4.4.14/drivers/input/keyboard/
H A Dgpio_keys_polled.c338 bdata->threshold = DIV_ROUND_UP(button->debounce_interval, gpio_keys_polled_probe()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dgk104.c184 const u32 magicgpc918 = DIV_ROUND_UP(0x00800000, gr->tpc_total); gk104_gr_init()
H A Dgk20a.c186 const u32 magicgpc918 = DIV_ROUND_UP(0x00800000, gr->tpc_total); gk20a_gr_init()

Completed in 7878 milliseconds

1234