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

1234

/linux-4.1.27/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)
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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->period, NSEC_PER_MSEC); 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.1.27/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.1.27/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()
196 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); mpi_set_buffer()
/linux-4.1.27/drivers/clk/
H A Dclk-divider.c27 * rate - rate is adjustable. clk->rate = DIV_ROUND_UP(parent->rate / divisor)
130 return DIV_ROUND_UP(parent_rate, div); divider_recalc_rate()
208 int div = DIV_ROUND_UP(parent_rate, rate); _div_round_up()
225 up = DIV_ROUND_UP(parent_rate, rate); _div_round_closest()
236 up_rate = DIV_ROUND_UP(parent_rate, up); _div_round_closest()
237 down_rate = DIV_ROUND_UP(parent_rate, down); _div_round_closest()
316 now = DIV_ROUND_UP(parent_rate, i); clk_divider_bestdiv()
340 return DIV_ROUND_UP(*prate, div); divider_round_rate()
355 return DIV_ROUND_UP(*prate, bestdiv); clk_divider_round_rate()
368 div = DIV_ROUND_UP(parent_rate, rate); divider_get_val()
H A Dclk-clps711x.c68 f_pll = DIV_ROUND_UP(CLPS711X_OSC_FREQ * tmp, 2); _clps711x_clk_init()
82 f_bus = DIV_ROUND_UP(f_cpu, 2); _clps711x_clk_init()
H A Dclk-axi-clkgen.c158 d_min = max_t(unsigned long, DIV_ROUND_UP(fin, fpfd_max), 1); axi_clkgen_calc_params()
161 m_min = max_t(unsigned long, DIV_ROUND_UP(fvco_min, fin) * d_min, 1); axi_clkgen_calc_params()
165 _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.1.27/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.1.27/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.c92 hsync_bytes = DIV_ROUND_UP(hsync * bpp, 8); dsi_rr_formula()
93 hbp_bytes = DIV_ROUND_UP(hbp * bpp, 8); dsi_rr_formula()
94 hactive_bytes = DIV_ROUND_UP(hactive * bpp, 8); dsi_rr_formula()
95 hfp_bytes = DIV_ROUND_UP(hfp * bpp, 8); dsi_rr_formula()
H A Dintel_audio.c59 { DIV_ROUND_UP(25200 * 1000, 1001), AUD_CONFIG_PIXEL_CLOCK_HDMI_25175 },
65 { DIV_ROUND_UP(74250 * 1000, 1001), AUD_CONFIG_PIXEL_CLOCK_HDMI_74176 },
67 { DIV_ROUND_UP(148500 * 1000, 1001), AUD_CONFIG_PIXEL_CLOCK_HDMI_148352 },
H A Dintel_pm.c593 entries_required = DIV_ROUND_UP(entries_required, wm->cacheline_size); intel_calculate_wm()
738 entries = DIV_ROUND_UP(entries, display->cacheline_size); g4x_compute_wm0()
750 entries = DIV_ROUND_UP(entries, cursor->cacheline_size); g4x_compute_wm0()
828 entries = DIV_ROUND_UP(min(small, large), display->cacheline_size); g4x_compute_srwm()
833 entries = DIV_ROUND_UP(entries, cursor->cacheline_size); g4x_compute_srwm()
934 entries = DIV_ROUND_UP(clock, 1000) * pixel_size; vlv_compute_drain_latency()
967 entries = DIV_ROUND_UP(clock, 1000) * pixel_size; vlv_compute_wm()
978 return fifo_size - clamp(DIV_ROUND_UP(256 * entries, 64), 0, fifo_size - 8); vlv_compute_wm()
1210 entries = DIV_ROUND_UP(entries, I915_FIFO_LINE_SIZE); i965_update_wm()
1220 entries = DIV_ROUND_UP(entries, i965_update_wm()
1358 entries = DIV_ROUND_UP(entries, wm_info->cacheline_size); i9xx_update_wm()
1472 ret = DIV_ROUND_UP(ret, 64) + 2; ilk_wm_method2()
1479 return DIV_ROUND_UP(pri_val * 64, horiz_pixels * bytes_per_pixel) + 2; ilk_wm_fbc()
1976 wm[level] = max_t(uint16_t, wm[level], DIV_ROUND_UP(min, 5)); ilk_increase_wm_latency()
2743 ret = DIV_ROUND_UP(wm_intermediate_val, 1000); skl_wm_method1()
2764 plane_blocks_per_line = DIV_ROUND_UP(plane_bytes_per_line, 512); skl_wm_method2()
2767 plane_blocks_per_line = DIV_ROUND_UP(plane_bytes_per_line, 512); skl_wm_method2()
2771 ret = DIV_ROUND_UP(wm_intermediate_val, pipe_htotal * 1000) * skl_wm_method2()
2895 plane_blocks_per_line = DIV_ROUND_UP(plane_bytes_per_line, 512); skl_compute_plane_wm()
2923 res_lines = DIV_ROUND_UP(selected_result, plane_blocks_per_line); skl_compute_plane_wm()
2977 return DIV_ROUND_UP(8 * p->pipe_htotal * 1000, p->pixel_rate); skl_compute_linetime_wm()
/linux-4.1.27/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.c543 fckd_stop = max(DIV_ROUND_UP(prate * m, fck_hw_max), 1ul); dss_div_calc()
546 fck = DIV_ROUND_UP(prate, fckd) * m; dss_div_calc()
593 fck_div = DIV_ROUND_UP(prate * dss.feat->dss_fck_multiplier, dss_setup_default_clock()
595 fck = DIV_ROUND_UP(prate, fck_div) * dss.feat->dss_fck_multiplier; dss_setup_default_clock()
H A Ddsi.c1291 lp_clk_div = DIV_ROUND_UP(dsi_fclk, lp_clk_max * 2); dsi_lp_clock_calc()
1391 cinfo->mX[HSDIV_DSI] = DIV_ROUND_UP(cinfo->clkdco, max_dsi_fck); dsi_pll_calc_dsi_fck()
3507 width_bytes = DIV_ROUND_UP(timings->x_res * bpp, 8); dsi_config_cmd_mode_interleaving()
3508 bllp = hbp + hfp + hsa + DIV_ROUND_UP(width_bytes + 6, ndl); dsi_config_cmd_mode_interleaving()
3677 ths_eot = DIV_ROUND_UP(4, ndl); dsi_proto_timings()
3679 ddr_clk_pre = DIV_ROUND_UP(tclk_pre + tlpx + tclk_zero + tclk_prepare, dsi_proto_timings()
3681 ddr_clk_post = DIV_ROUND_UP(tclk_post + ths_trail, 4) + ths_eot; dsi_proto_timings()
3695 enter_hs_mode_lat = 1 + DIV_ROUND_UP(tlpx, 4) + dsi_proto_timings()
3696 DIV_ROUND_UP(ths_prepare, 4) + dsi_proto_timings()
3697 DIV_ROUND_UP(ths_zero + 3, 4); dsi_proto_timings()
3699 exit_hs_mode_lat = DIV_ROUND_UP(ths_trail + ths_exit, 4) + 1 + ths_eot; dsi_proto_timings()
3724 ((hsa == 0 && ndl == 3) ? 1 : DIV_ROUND_UP(4, ndl)) : 0; dsi_proto_timings()
3726 width_bytes = DIV_ROUND_UP(timings->x_res * bpp, 8); dsi_proto_timings()
3729 tl = DIV_ROUND_UP(4, ndl) + (hsync_end ? hsa : 0) + t_he + hfp + dsi_proto_timings()
3730 DIV_ROUND_UP(width_bytes + 6, ndl) + hbp; dsi_proto_timings()
3869 word_count = DIV_ROUND_UP(dsi->timings.x_res * bpp, 8); dsi_enable_video_output()
4342 wc = DIV_ROUND_UP(t->hact * t->bitspp, 8); print_dsi_vm()
4343 pps = DIV_ROUND_UP(wc + 6, t->ndl); /* pixel packet size */ print_dsi_vm()
4408 dsi_hact = DIV_ROUND_UP(DIV_ROUND_UP(t->hact * t->bitspp, 8) + 6, t->ndl); print_dsi_dispc_vm()
4543 dsi_hact = DIV_ROUND_UP(DIV_ROUND_UP(xres * bitspp, 8) + 6, ndl); dsi_vm_calc_blanking()
4567 hss = DIV_ROUND_UP(4, ndl); dsi_vm_calc_blanking()
4573 hse = DIV_ROUND_UP(4, ndl); dsi_vm_calc_blanking()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/irqchip/
H A Dirq-gic.c62 u32 saved_spi_enable[DIV_ROUND_UP(1020, 32)];
63 u32 saved_spi_conf[DIV_ROUND_UP(1020, 16)];
64 u32 saved_spi_target[DIV_ROUND_UP(1020, 4)];
463 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 16); i++) gic_dist_save()
467 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) gic_dist_save()
471 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) gic_dist_save()
500 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 16); i++) gic_dist_restore()
504 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) gic_dist_restore()
508 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) gic_dist_restore()
512 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) gic_dist_restore()
536 for (i = 0; i < DIV_ROUND_UP(32, 32); i++) gic_cpu_save()
540 for (i = 0; i < DIV_ROUND_UP(32, 16); i++) gic_cpu_save()
562 for (i = 0; i < DIV_ROUND_UP(32, 32); i++) gic_cpu_restore()
566 for (i = 0; i < DIV_ROUND_UP(32, 16); i++) gic_cpu_restore()
569 for (i = 0; i < DIV_ROUND_UP(32, 4); i++) gic_cpu_restore()
614 gic->saved_ppi_enable = __alloc_percpu(DIV_ROUND_UP(32, 32) * 4, gic_pm_init()
618 gic->saved_ppi_conf = __alloc_percpu(DIV_ROUND_UP(32, 16) * 4, gic_pm_init()
731 for (i = 8; i < DIV_ROUND_UP(gic_irqs, 4); i++) { gic_migrate_target()
H A Dirq-atmel-aic-common.c227 nchips = DIV_ROUND_UP(nirqs, 32); aic_common_of_init()
/linux-4.1.27/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.1.27/drivers/gpu/drm/armada/
H A Darmada_510.c68 div = DIV_ROUND_UP(ref, rate); armada510_crtc_compute_clock()
/linux-4.1.27/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.c93 div = DIV_ROUND_UP(parent_rate, rate); sun6i_ahb1_clk_round()
106 calcm = DIV_ROUND_UP(div, 1 << calcp); sun6i_ahb1_clk_round()
454 *n = DIV_ROUND_UP(div, (*k+1)); sun4i_get_pll5_factors()
481 *n = DIV_ROUND_UP(div, (*k+1)) - 1; sun6i_a31_get_pll6_factors()
508 div = order_base_2(DIV_ROUND_UP(parent_rate, *freq)); sun5i_a13_get_ahb_factors()
537 parent_rate = DIV_ROUND_UP(parent_rate, *freq); sun4i_get_apb1_factors()
583 div = DIV_ROUND_UP(parent_rate, *freq); sun7i_a20_get_out_factors()
594 calcm = DIV_ROUND_UP(div, 1 << calcp); sun7i_a20_get_out_factors()
H A Dclk-sun6i-ar100.c68 div = DIV_ROUND_UP(parent_rate, rate); ar100_determine_rate()
H A Dclk-sun9i-mmc.c108 count = DIV_ROUND_UP((r->end - r->start + 1), SUN9I_MMC_WIDTH); sun9i_a80_mmc_config_clk_probe()
H A Dclk-mod0.c40 div = DIV_ROUND_UP(parent_rate, *freq); sun4i_a10_get_mod0_factors()
51 calcm = DIV_ROUND_UP(div, 1 << calcp); sun4i_a10_get_mod0_factors()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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()
683 ea->ea_num_ptrs = DIV_ROUND_UP(er->er_data_len, sdp->sd_jbsize); ea_write()
810 blks += DIV_ROUND_UP(er.er_data_len, jbsize); ea_init()
956 blks = 2 + DIV_ROUND_UP(es->es_er->er_data_len, ea_set_simple()
1069 blks += DIV_ROUND_UP(er.er_data_len, GFS2_SB(&ip->i_inode)->sd_jbsize); ea_set_i()
1243 unsigned int nptrs = DIV_ROUND_UP(amount, sdp->sd_jbsize); ea_acl_chmod_unstuffed()
/linux-4.1.27/sound/firewire/
H A Dpackets-buffer.c42 pages = DIV_ROUND_UP(count, packets_per_page); iso_packets_buffer_init()
/linux-4.1.27/include/linux/mfd/
H A Dhtc-egpio.h19 * (number of registers = DIV_ROUND_UP(num_gpios, reg_width))
/linux-4.1.27/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()
225 div = DIV_ROUND_UP(parent_rate, rate); ti_clk_divider_set_rate()
H A Dfapll.c423 synth_post_div_m = DIV_ROUND_UP(frac_rate, rate); ti_fapll_synth_round_rate()
424 r = DIV_ROUND_UP(frac_rate, synth_post_div_m); ti_fapll_synth_round_rate()
458 post_div_m = DIV_ROUND_UP(frac_rate, rate); ti_fapll_synth_set_rate()
460 post_rate = DIV_ROUND_UP(frac_rate, post_div_m); ti_fapll_synth_set_rate()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
H A Dsvga3d_surfacedefs.h39 #define DIV_ROUND_UP(x, y) (((x) + (y) - 1) / (y)) macro
756 block_size->width = DIV_ROUND_UP(pixel_size->width, svga3dsurface_get_size_in_blocks()
758 block_size->height = DIV_ROUND_UP(pixel_size->height, svga3dsurface_get_size_in_blocks()
760 block_size->depth = DIV_ROUND_UP(pixel_size->depth, svga3dsurface_get_size_in_blocks()
872 const u32 rowstride = DIV_ROUND_UP(width, bw) * desc->bytes_per_block; svga3dsurface_get_pixel_offset()
873 const u32 imgstride = DIV_ROUND_UP(height, bh) * rowstride; svga3dsurface_get_pixel_offset()
/linux-4.1.27/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.1.27/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.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dnv25.c32 u32 tiles = DIV_ROUND_UP(size, 0x40); nv25_fb_tile_comp()
H A Dnv35.c32 u32 tiles = DIV_ROUND_UP(size, 0x40); nv35_fb_tile_comp()
H A Dnv36.c32 u32 tiles = DIV_ROUND_UP(size, 0x40); nv36_fb_tile_comp()
H A Dnv40.c32 u32 tiles = DIV_ROUND_UP(size, 0x80); nv40_fb_tile_comp()
H A Dnv20.c45 u32 tiles = DIV_ROUND_UP(size, 0x40); nv20_fb_tile_comp()
H A Dnv30.c53 u32 tiles = DIV_ROUND_UP(size, 0x40); nv30_fb_tile_comp()
/linux-4.1.27/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.1.27/arch/arm/include/asm/
H A Dkprobes.h75 #define MAX_COPIED_INSN DIV_ROUND_UP(RELATIVEJUMP_SIZE, sizeof(kprobe_opcode_t))
/linux-4.1.27/tools/perf/util/include/linux/
H A Dkernel.h9 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) macro
/linux-4.1.27/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.1.27/drivers/spi/
H A Dspi-orion.c136 spr = DIV_ROUND_UP(spr, speed); orion_spi_baudrate_set()
160 rate = DIV_ROUND_UP(tclk_hz, speed); orion_spi_baudrate_set()
475 DIV_ROUND_UP(tclk_hz, devdata->min_divisor)); orion_spi_probe()
478 DIV_ROUND_UP(tclk_hz, devdata->min_divisor); orion_spi_probe()
479 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.c130 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.c260 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.1.27/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.c135 DIV_ROUND_UP(MMIO_74XX_BIT_CNT(priv->flags), 8), mmio_74xx_gpio_probe()
/linux-4.1.27/drivers/net/ethernet/ti/
H A Dcpsw_ale.h85 #define ALE_ENTRY_WORDS DIV_ROUND_UP(ALE_ENTRY_BITS, 32)
/linux-4.1.27/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.1.27/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.1.27/drivers/watchdog/
H A Dintel-mid_wdt.c57 in_size = DIV_ROUND_UP(sizeof(ipc_wd_start), 4); wdt_start()
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.1.27/fs/nfs/
H A Dnfs4session.h32 #define SLOT_TABLE_SZ DIV_ROUND_UP(NFS4_MAX_SLOT_TABLE, 8*sizeof(long))
/linux-4.1.27/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.1.27/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.c117 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.1.27/net/netfilter/
H A Dnft_bitwise.c37 for (i = 0; i < DIV_ROUND_UP(priv->len, 4); i++) nft_bitwise_eval()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
H A Dqp.c277 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); create_qp()
496 *len16 = DIV_ROUND_UP(size, 16); build_rdma_send()
539 *len16 = DIV_ROUND_UP(size, 16); build_rdma_write()
569 *len16 = DIV_ROUND_UP(sizeof wqe->read, 16); build_rdma_read()
583 *len16 = DIV_ROUND_UP(sizeof wqe->recv + build_rdma_recv()
631 *len16 = DIV_ROUND_UP(sizeof(wqe->fr) + sizeof(*sglp), 16); build_fastreg()
654 *len16 = DIV_ROUND_UP(sizeof(wqe->fr) + sizeof(*imdp) build_fastreg()
665 *len16 = DIV_ROUND_UP(sizeof wqe->inv, 16); build_inv_stag()
840 idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); c4iw_post_send()
912 idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); c4iw_post_receive()
1088 FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*wqe), 16))); post_terminate()
1211 FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*wqe), 16))); rdma_fini()
1236 init->u.write.len16 = DIV_ROUND_UP(sizeof init->u.write + build_rtr_msg()
1246 init->u.read.len16 = DIV_ROUND_UP(sizeof init->u.read, 16); build_rtr_msg()
1280 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.1.27/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.1.27/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.1.27/drivers/mfd/
H A Dpm8921-core.c329 chip->num_blocks = DIV_ROUND_UP(chip->num_irqs, 8); pm8921_probe()
330 chip->num_masters = DIV_ROUND_UP(chip->num_blocks, 8); pm8921_probe()
/linux-4.1.27/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.1.27/drivers/clocksource/
H A Dtimer-sun5i.c248 ce->timer.ticks_per_jiffy = DIV_ROUND_UP(ndata->new_rate, HZ); sun5i_rate_cb_clkevt()
275 ce->timer.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); sun5i_setup_clockevent()
H A Dsun4i_timer.c185 ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); sun4i_timer_init()
H A Dtimer-digicolor.c177 dc_timer_dev.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); digicolor_timer_init()
H A Dtimer-keystone.c210 timer.hz_period = DIV_ROUND_UP(rate, HZ); keystone_timer_init()
H A Dmtk_timer.c235 evt->ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); mtk_timer_init()
/linux-4.1.27/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.1.27/drivers/tty/serial/8250/
H A D8250_mtk.c77 quot = DIV_ROUND_UP(port->uartclk, 4 * baud); mtk8250_set_termios()
84 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); mtk8250_set_termios()
/linux-4.1.27/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.1.27/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.1.27/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.c253 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.1.27/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.1.27/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.1.27/drivers/pinctrl/mvebu/
H A Dpinctrl-armada-xp.c402 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); armada_xp_pinctrl_suspend()
416 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); armada_xp_pinctrl_resume()
478 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); armada_xp_pinctrl_probe()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dgk20a.c357 n_lo = DIV_ROUND_UP(m_old * priv->params->min_vco, _gk20a_pllg_program_mnp()
390 n_lo = DIV_ROUND_UP(priv->m * priv->params->min_vco, _gk20a_pllg_program_mnp()
448 n_lo = DIV_ROUND_UP(m * priv->params->min_vco, gk20a_pllg_disable()
/linux-4.1.27/drivers/net/ethernet/cisco/enic/
H A Dvnic_wq.h77 DIV_ROUND_UP(entries, VNIC_WQ_BUF_BLK_ENTRIES(entries))
H A Dvnic_rq.h64 DIV_ROUND_UP(entries, VNIC_RQ_BUF_BLK_ENTRIES(entries))
/linux-4.1.27/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.1.27/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.1.27/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.c56 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()
/linux-4.1.27/drivers/phy/
H A Dphy-qcom-ufs-i.h40 usleep_range(DIV_ROUND_UP(sleep_us, 4), sleep_us); \
/linux-4.1.27/drivers/input/misc/
H A Dgpio_tilt_polled.c154 tdev->threshold = DIV_ROUND_UP(pdata->debounce_interval, gpio_tilt_polled_probe()
/linux-4.1.27/drivers/clk/tegra/
H A Dclk-divider.c104 return DIV_ROUND_UP(output_rate * mul, div + mul); clk_frac_div_round_rate()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
H A Dgk20a.c98 mv = DIV_ROUND_UP(mv, 1000); gk20a_volt_calc_voltage()
/linux-4.1.27/arch/metag/mm/
H A Dmmu-meta2.c139 unsigned int pages = DIV_ROUND_UP(mem_size, 1 << 22); mmu_init()
/linux-4.1.27/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.c238 int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); rockchip_gem_dumb_create()
/linux-4.1.27/drivers/gpu/drm/udl/
H A Dudl_gem.c81 args->pitch = args->width * DIV_ROUND_UP(args->bpp, 8); udl_dumb_create()
/linux-4.1.27/fs/minix/
H A Dminix.h92 return DIV_ROUND_UP(bits, blocksize * 8); minix_blocks_needed()
H A Dbitmap.c29 unsigned blocks = DIV_ROUND_UP(numbits, blocksize * 8); count_free()
/linux-4.1.27/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.1.27/arch/blackfin/include/asm/
H A Dgpio.h15 #define GPIO_BANK_NUM DIV_ROUND_UP(MAX_BLACKFIN_GPIOS, GPIO_BANKSIZE)
/linux-4.1.27/arch/m68k/mm/
H A Dinit.c127 #define MLK_ROUNDUP(b, t) b, t, DIV_ROUND_UP(((t) - (b)), 1024) print_memmap()
/linux-4.1.27/net/bridge/
H A Dbr_stp_bpdu.c73 return DIV_ROUND_UP(ticks * HZ, STP_HZ); br_get_ticks()
/linux-4.1.27/net/ipv6/
H A Dudp_offload.c53 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); udp6_ufo_fragment()
/linux-4.1.27/mm/
H A Dcma_debug.c188 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.1.27/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.1.27/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.1.27/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.1.27/drivers/mtd/nand/
H A Dtxx9ndfmc.c256 DIV_ROUND_UP((ns) * DIV_ROUND_UP(gbusclk, 1000), 1000000)
H A Dsunxi_nand.c845 min_clk_period = DIV_ROUND_UP(timings->tRR_min, 3); sunxi_nand_chip_set_timings()
861 min_clk_period = DIV_ROUND_UP(timings->tRC_min, 2); sunxi_nand_chip_set_timings()
865 min_clk_period = DIV_ROUND_UP(timings->tWC_min, 2); sunxi_nand_chip_set_timings()
869 min_clk_period = DIV_ROUND_UP(min_clk_period, 1000); sunxi_nand_chip_set_timings()
949 ecc->bytes = DIV_ROUND_UP(ecc->strength * fls(8 * 1024), 8); sunxi_nand_hw_common_ecc_ctrl_init()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_uld.h57 (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*w), 16)) | \
70 (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(wrlen, 16)) | \
H A Dcxgb4_debugfs.c1684 int eth_entries = DIV_ROUND_UP(adap->sge.ethqsets, 4); sge_qinfo_show()
1685 int toe_entries = DIV_ROUND_UP(adap->sge.ofldqsets, 4); sge_qinfo_show()
1686 int rdma_entries = DIV_ROUND_UP(adap->sge.rdmaqs, 4); sge_qinfo_show()
1687 int ciq_entries = DIV_ROUND_UP(adap->sge.rdmaciqs, 4); sge_qinfo_show()
1688 int ctrl_entries = DIV_ROUND_UP(MAX_CTRL_QUEUES, 4); sge_qinfo_show()
1842 return DIV_ROUND_UP(adap->sge.ethqsets, 4) + sge_queue_entries()
1843 DIV_ROUND_UP(adap->sge.ofldqsets, 4) + sge_queue_entries()
1844 DIV_ROUND_UP(adap->sge.rdmaqs, 4) + sge_queue_entries()
1845 DIV_ROUND_UP(adap->sge.rdmaciqs, 4) + sge_queue_entries()
1846 DIV_ROUND_UP(MAX_CTRL_QUEUES, 4) + 1; sge_queue_entries()
/linux-4.1.27/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.1.27/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.1.27/drivers/gpu/drm/tegra/
H A Ddpaux.c77 for (i = 0; i < DIV_ROUND_UP(size, 4); i++) { tegra_dpaux_write_fifo()
93 for (i = 0; i < DIV_ROUND_UP(size, 4); i++) { tegra_dpaux_read_fifo()
H A Ddsi.c599 delay = DIV_ROUND_UP(delay * mul, div * lanes); tegra_dsi_configure()
603 bclk = DIV_ROUND_UP(mode->htotal * mul, div * lanes); tegra_dsi_configure()
604 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.1.27/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.1.27/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.1.27/kernel/rcu/
H A Dtree.h54 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1)
61 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2)
62 # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1)
68 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_3)
69 # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2)
70 # define NUM_RCU_LVL_3 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1)
/linux-4.1.27/sound/soc/codecs/
H A Dpcm512x.c514 ranges[1].min = DIV_ROUND_UP(16000000, frame_size); pcm512x_hw_rule_rate()
715 num *= DIV_ROUND_UP(pllin_rate / den, 20000000); pcm512x_find_pll_coeff()
716 den *= DIV_ROUND_UP(pllin_rate / den, 20000000); pcm512x_find_pll_coeff()
772 P = DIV_ROUND_UP(pllin_rate, 20000000); pcm512x_find_pll_coeff()
1020 ncp_div = DIV_ROUND_UP(dac_rate, 2048000); pcm512x_set_dividers()
/linux-4.1.27/drivers/mmc/host/
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.1.27/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.1.27/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.c122 * DIV_ROUND_UP() operations. ieee80211_frame_duration()
155 dur += 4 * DIV_ROUND_UP((16 + 8 * (len + 4) + 6) * 10, ieee80211_frame_duration()
171 dur += DIV_ROUND_UP(8 * (len + 4) * 10, rate); ieee80211_frame_duration()
232 bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift); ieee80211_rts_duration()
275 bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift); ieee80211_ctstoself_duration()
1384 (u8) DIV_ROUND_UP(sband->bitrates[i].bitrate, ieee80211_build_preq_ies_band()
1670 brate = DIV_ROUND_UP(sband->bitrates[j].bitrate, ieee80211_sta_get_rates()
2463 brate = DIV_ROUND_UP(br->bitrate, (1 << shift) * 5); ieee80211_parse_bitrates()
2511 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, ieee80211_add_srates_ie()
2560 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, ieee80211_add_ext_srates_ie()
2663 ri.legacy = DIV_ROUND_UP(bitrate, (1 << shift)); ieee80211_calculate_rx_timestamp()
2995 skip = DIV_ROUND_UP(-end, data->desc[i].interval); ieee80211_extend_noa_desc()
/linux-4.1.27/drivers/scsi/cxgbi/cxgb4i/
H A Dcxgb4i.c158 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
492 return DIV_ROUND_UP(skb->len, 8); calc_tx_flits_ofld()
507 flowclen16 = DIV_ROUND_UP(flowclen, 16); tx_flowc_wr_credits()
631 credits_needed = DIV_ROUND_UP(dlen, 16); push_tx_frames()
633 credits_needed = DIV_ROUND_UP( push_tx_frames()
638 credits_needed += DIV_ROUND_UP( push_tx_frames()
1444 DIV_ROUND_UP(sizeof(struct cpl_abort_req), 16); init_act_open()
1542 req->len16 = htonl(DIV_ROUND_UP(wr_len - sizeof(req->wr), 16)); ulp_mem_io_set_hdr()
/linux-4.1.27/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()
H A Datmel_hlcdc_crtc.c97 div = DIV_ROUND_UP(prate, mode_rate); atmel_hlcdc_crtc_mode_set_nofb()
/linux-4.1.27/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.1.27/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.1.27/drivers/clk/qcom/
H A Dclk-rcg2.c449 div = DIV_ROUND_UP((2 * parent_rate), rate) - 1; clk_byte_determine_rate()
463 div = DIV_ROUND_UP((2 * parent_rate), rate) - 1; clk_byte_set_rate()
/linux-4.1.27/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.1.27/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.1.27/fs/nfs/blocklayout/
H A Dextent_tree.c469 int nr_pages = DIV_ROUND_UP(buffer_size, PAGE_SIZE), i; ext_tree_free_commitdata()
537 kcalloc(DIV_ROUND_UP(buffer_size, PAGE_SIZE), ext_tree_prepare_commit()
/linux-4.1.27/drivers/mtd/chips/
H A Dgen_probe.c114 mapsize = sizeof(long) * DIV_ROUND_UP(max_chips, BITS_PER_LONG); genprobe_ident_chips()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.h128 #define TXD_USE_COUNT(S) DIV_ROUND_UP((S), I40E_MAX_DATA_PER_TXD)
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
H A Di40e_txrx.h128 #define TXD_USE_COUNT(S) DIV_ROUND_UP((S), I40E_MAX_DATA_PER_TXD)
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dcommon-beacon.c99 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); ath9k_cmn_beacon_config_sta()
H A Dwow.c149 mask_len = DIV_ROUND_UP(patterns[i].pattern_len, 8); ath9k_wow_add_pattern()
/linux-4.1.27/drivers/staging/iio/adc/
H A Dspear_adc.c101 count = DIV_ROUND_UP(apb_clk, val); spear_adc_set_clk()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
H A Dfweh.h119 #define BRCMF_EVENTING_MASK_LEN DIV_ROUND_UP(BRCMF_E_LAST, 8)
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_process_queue_manager.c79 kzalloc(DIV_ROUND_UP(KFD_MAX_NUM_OF_QUEUES_PER_PROCESS, pqm_init()
/linux-4.1.27/drivers/gpu/drm/imx/
H A Dipuv3-plane.c54 return DIV_ROUND_UP(mode->clock * 1000, vtotal * htotal); calc_vref()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
H A Dmem.c110 *ncont = DIV_ROUND_UP(i, (1 << m)); mlx5_ib_cont_pages()
/linux-4.1.27/drivers/input/keyboard/
H A Dgpio_keys_polled.c270 bdata->threshold = DIV_ROUND_UP(button->debounce_interval, gpio_keys_polled_probe()
/linux-4.1.27/drivers/dma/
H A Dsa11x0-dma.c552 j += DIV_ROUND_UP(len, DMA_MAX_SIZE & ~DMA_ALIGN) - 1; for_each_sg()
583 unsigned mult = DIV_ROUND_UP(tlen, for_each_sg()
623 sgperiod = DIV_ROUND_UP(period, DMA_MAX_SIZE & ~DMA_ALIGN); sa11x0_dma_prep_dma_cyclic()
643 unsigned mult = DIV_ROUND_UP(tlen, DMA_MAX_SIZE & ~DMA_ALIGN); sa11x0_dma_prep_dma_cyclic()
/linux-4.1.27/arch/x86/kernel/
H A Despfix_64.c70 #define ESPFIX_MAX_PAGES DIV_ROUND_UP(CONFIG_NR_CPUS, ESPFIX_STACKS_PER_PAGE)
/linux-4.1.27/drivers/gpu/drm/msm/dsi/
H A Ddsi_phy.c134 tmin = DIV_ROUND_UP(temp, ui) - 2; dsi_dphy_timing_calc()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dgk104.c201 const u32 magicgpc918 = DIV_ROUND_UP(0x00800000, priv->tpc_total); gk104_gr_init()
/linux-4.1.27/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.1.27/drivers/media/firewire/
H A Dfiredtv-fw.c73 #define N_PAGES DIV_ROUND_UP(N_PACKETS, PACKETS_PER_PAGE)
/linux-4.1.27/arch/nios2/kernel/
H A Dtime.c173 period = DIV_ROUND_UP(timer->freq, HZ); nios2_timer_set_mode()

Completed in 5004 milliseconds

1234