/linux-4.1.27/tools/include/linux/ |
H A D | bitops.h | 17 #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 D | atmel-smc.h | 87 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 D | s5p_mfc_opr_v6.h | 23 #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 D | regs-mfc-v8.h | 112 ((DIV_ROUND_UP((mbw * 16), 64) * DIV_ROUND_UP((mbh * 16), 64) * 256) \ 113 + (DIV_ROUND_UP((mbw) * (mbh), 32) * 16))
|
H A D | regs-mfc-v6.h | 382 (((((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 D | driver_extif.c | 94 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 D | driver_chipcommon.c | 443 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 D | iommu-helper.h | 31 return DIV_ROUND_UP(size, io_page_size); iommu_num_pages()
|
H A D | delay.h | 39 udelay(DIV_ROUND_UP(x, 1000)); ndelay()
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | smiapp-pll.c | 206 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 D | aptina-pll.c | 69 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 D | pwm-img.c | 103 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 D | pwm-imx.c | 132 period_ms = DIV_ROUND_UP(pwm->period, NSEC_PER_MSEC); imx_pwm_config_v2()
|
H A D | pwm-twl-led.c | 72 int duty_cycle = DIV_ROUND_UP(duty_ns * TWL4030_LED_MAX, period_ns) + 1; twl4030_pwmled_config()
|
H A D | pwm-twl.c | 74 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 D | palm_bk3710.c | 85 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 D | tx4938ide.c | 35 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 D | cmd640.c | 536 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 D | mpicoder.c | 55 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 D | clk-divider.c | 27 * 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 D | clk-clps711x.c | 68 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 D | clk-axi-clkgen.c | 158 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 D | clk-pwm.c | 83 pwm->period != DIV_ROUND_UP(NSEC_PER_SEC, clk_pwm->fixed_rate)) { clk_pwm_probe()
|
/linux-4.1.27/arch/unicore32/mm/ |
H A D | init.c | 401 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 D | intel_dsi_panel_vbt.c | 444 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 D | intel_dsi_pll.c | 92 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 D | intel_audio.c | 59 { 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 D | intel_pm.c | 593 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 D | hdmi_pll.c | 58 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 D | pll.c | 143 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 D | dss.c | 543 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 D | dsi.c | 1291 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 D | mroute6.h | 50 #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 D | omap_twl.c | 59 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 D | intr_hw.c | 50 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 D | irq-gic.c | 62 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 D | irq-atmel-aic-common.c | 227 nchips = DIV_ROUND_UP(nirqs, 32); aic_common_of_init()
|
/linux-4.1.27/drivers/memory/ |
H A D | emif.c | 439 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 D | armada_510.c | 68 div = DIV_ROUND_UP(ref, rate); armada510_crtc_compute_clock()
|
/linux-4.1.27/drivers/clk/sunxi/ |
H A D | clk-sun8i-mbus.c | 41 div = DIV_ROUND_UP(parent_rate, *freq); sun8i_a23_get_mbus_factors()
|
H A D | clk-sun9i-core.c | 43 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 D | clk-sunxi.c | 93 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 D | clk-sun6i-ar100.c | 68 div = DIV_ROUND_UP(parent_rate, rate); ar100_determine_rate()
|
H A D | clk-sun9i-mmc.c | 108 count = DIV_ROUND_UP((r->end - r->start + 1), SUN9I_MMC_WIDTH); sun9i_a80_mmc_config_clk_probe()
|
H A D | clk-mod0.c | 40 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 D | clk-ssp.c | 36 clock_rate = DIV_ROUND_UP(ssp_clk, rate * clock_divide); mxs_ssp_set_clk_rate()
|
/linux-4.1.27/drivers/acpi/ |
H A D | acpi_cmos_rtc.c | 46 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 D | cpufreq-utils.c | 47 refresh = DIV_ROUND_UP(refresh, (1000 * 1000)); /* apply scale */ s3c2410_cpufreq_setrefresh()
|
H A D | iotiming-s3c2412.c | 70 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 D | bmap.h | 42 tmp = DIV_ROUND_UP(tmp, sdp->sd_inptrs); gfs2_write_calc_reserv()
|
H A D | xattr.c | 54 (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 D | packets-buffer.c | 42 pages = DIV_ROUND_UP(count, packets_per_page); iso_packets_buffer_init()
|
/linux-4.1.27/include/linux/mfd/ |
H A D | htc-egpio.h | 19 * (number of registers = DIV_ROUND_UP(num_gpios, reg_width))
|
/linux-4.1.27/drivers/clk/ti/ |
H A D | divider.c | 116 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 D | fapll.c | 423 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 D | svga3d_surfacedefs.h | 39 #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 D | movinggc.c | 88 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 D | writeback.c | 115 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 D | scan.c | 180 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 D | nv25.c | 32 u32 tiles = DIV_ROUND_UP(size, 0x40); nv25_fb_tile_comp()
|
H A D | nv35.c | 32 u32 tiles = DIV_ROUND_UP(size, 0x40); nv35_fb_tile_comp()
|
H A D | nv36.c | 32 u32 tiles = DIV_ROUND_UP(size, 0x40); nv36_fb_tile_comp()
|
H A D | nv40.c | 32 u32 tiles = DIV_ROUND_UP(size, 0x80); nv40_fb_tile_comp()
|
H A D | nv20.c | 45 u32 tiles = DIV_ROUND_UP(size, 0x40); nv20_fb_tile_comp()
|
H A D | nv30.c | 53 u32 tiles = DIV_ROUND_UP(size, 0x40); nv30_fb_tile_comp()
|
/linux-4.1.27/drivers/video/console/ |
H A D | bitblit.c | 29 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 D | kprobes.h | 75 #define MAX_COPIED_INSN DIV_ROUND_UP(RELATIVEJUMP_SIZE, sizeof(kprobe_opcode_t))
|
/linux-4.1.27/tools/perf/util/include/linux/ |
H A D | kernel.h | 9 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) macro
|
/linux-4.1.27/drivers/base/regmap/ |
H A D | regcache-lzo.c | 112 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 D | spi-orion.c | 136 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 D | spi-xcomm.c | 82 divider = DIV_ROUND_UP(SPI_XCOMM_CLOCK, t->speed_hz); spi_xcomm_setup_transfer()
|
H A D | spi-bcm63xx-hsspi.c | 130 reg = DIV_ROUND_UP(2048, DIV_ROUND_UP(bs->speed_hz, hz)); bcm63xx_hsspi_set_clk()
|
H A D | spi-efm32.c | 136 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 D | spi-txx9.c | 191 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 D | spi-altera.c | 126 hw->bytes_per_word = DIV_ROUND_UP(t->bits_per_word, 8); altera_spi_txrx()
|
H A D | spi-ath79.c | 260 rate = DIV_ROUND_UP(clk_get_rate(sp->clk), MHZ); ath79_spi_probe()
|
H A D | spi-oc-tiny.c | 69 return min(DIV_ROUND_UP(hw->freq, hz * 2), (1U << hw->baudwidth)) - 1; tiny_spi_baud()
|
H A D | spi-pxa2xx-dma.c | 44 nents = DIV_ROUND_UP(len, SZ_2K); pxa2xx_spi_map_dma_buffer()
|
/linux-4.1.27/drivers/gpio/ |
H A D | gpio-stmpe.c | 164 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 D | gpio-74xx-mmio.c | 135 DIV_ROUND_UP(MMIO_74XX_BIT_CNT(priv->flags), 8), mmio_74xx_gpio_probe()
|
/linux-4.1.27/drivers/net/ethernet/ti/ |
H A D | cpsw_ale.h | 85 #define ALE_ENTRY_WORDS DIV_ROUND_UP(ALE_ENTRY_BITS, 32)
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | rv770_dma.c | 58 num_loops = DIV_ROUND_UP(size_in_dw, 0xFFFF); rv770_copy_dma()
|
H A D | evergreen_dma.c | 124 num_loops = DIV_ROUND_UP(size_in_dw, 0xfffff); evergreen_copy_dma()
|
H A D | si_dma.c | 247 num_loops = DIV_ROUND_UP(size_in_bytes, 0xfffff); si_copy_dma()
|
/linux-4.1.27/drivers/gpu/drm/rcar-du/ |
H A D | rcar_du_drv.h | 69 #define RCAR_DU_MAX_GROUPS DIV_ROUND_UP(RCAR_DU_MAX_CRTCS, 2)
|
/linux-4.1.27/drivers/watchdog/ |
H A D | intel-mid_wdt.c | 57 in_size = DIV_ROUND_UP(sizeof(ipc_wd_start), 4); wdt_start()
|
H A D | s3c2410_wdt.c | 315 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 D | nfs4session.h | 32 #define SLOT_TABLE_SZ DIV_ROUND_UP(NFS4_MAX_SLOT_TABLE, 8*sizeof(long))
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | delay.h | 117 #define ndelay(n) __delay(DIV_ROUND_UP((n) * ((((HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6), 1000));
|
/linux-4.1.27/lib/ |
H A D | kfifo.c | 207 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 D | bch.c | 87 #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 D | digsig.c | 117 mlen = DIV_ROUND_UP(mblen, 8); digsig_verify_rsa()
|
H A D | iov_iter.c | 591 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 D | nft_bitwise.c | 37 for (i = 0; i < DIV_ROUND_UP(priv->len, 4); i++) nft_bitwise_eval()
|
/linux-4.1.27/drivers/infiniband/hw/cxgb4/ |
H A D | qp.c | 277 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 D | mem.c | 87 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 D | pwm-fan.c | 50 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 D | max16065.c | 167 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 D | ads1015.c | 91 conversion_time_ms = DIV_ROUND_UP(1000, rate_table[data_rate]); ads1015_read_adc()
|
/linux-4.1.27/drivers/media/platform/omap3isp/ |
H A D | ispcsiphy.c | 224 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 D | pm8921-core.c | 329 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 D | iss_csiphy.c | 208 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 D | timer-sun5i.c | 248 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 D | sun4i_timer.c | 185 ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); sun4i_timer_init()
|
H A D | timer-digicolor.c | 177 dc_timer_dev.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); digicolor_timer_init()
|
H A D | timer-keystone.c | 210 timer.hz_period = DIV_ROUND_UP(rate, HZ); keystone_timer_init()
|
H A D | mtk_timer.c | 235 evt->ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); mtk_timer_init()
|
/linux-4.1.27/drivers/gpu/drm/vgem/ |
H A D | vgem_drv.c | 101 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 D | 8250_mtk.c | 77 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 D | jfs_dtree.h | 77 #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 D | suspend.c | 55 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 D | i2c-mxs.c | 703 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 D | i2c-rk3x.c | 520 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 D | i2c-bcm2835.c | 253 divider = DIV_ROUND_UP(clk_get_rate(i2c_dev->clk), bus_clk_rate); bcm2835_i2c_probe()
|
H A D | i2c-digicolor.c | 272 clocktime = DIV_ROUND_UP(clk_rate, 64 * i2c->frequency); dc_i2c_init_hw()
|
/linux-4.1.27/drivers/gpu/drm/gma500/ |
H A D | oaktrail_hdmi.c | 180 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 D | core-card.c | 248 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 D | pinctrl-armada-xp.c | 402 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 D | gk20a.c | 357 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 D | vnic_wq.h | 77 DIV_ROUND_UP(entries, VNIC_WQ_BUF_BLK_ENTRIES(entries))
|
H A D | vnic_rq.h | 64 DIV_ROUND_UP(entries, VNIC_RQ_BUF_BLK_ENTRIES(entries))
|
/linux-4.1.27/drivers/media/pci/pt3/ |
H A D | pt3.h | 78 #define MAX_DESC_BUFS DIV_ROUND_UP(MAX_NUM_XFERS, DESCS_IN_PAGE)
|
H A D | pt3_dma.c | 181 DIV_ROUND_UP(adap->num_bufs * DATA_BUF_XFERS, DESCS_IN_PAGE); pt3_alloc_dmabuf()
|
/linux-4.1.27/drivers/scsi/fnic/ |
H A D | vnic_wq.h | 82 DIV_ROUND_UP(entries, VNIC_WQ_BUF_BLK_ENTRIES)
|
H A D | vnic_rq.h | 79 DIV_ROUND_UP(entries, VNIC_RQ_BUF_BLK_ENTRIES)
|
/linux-4.1.27/drivers/regulator/ |
H A D | max8649.c | 82 return DIV_ROUND_UP(voltage, rate); max8649_enable_time()
|
H A D | rc5t583-regulator.c | 61 return DIV_ROUND_UP(curr_uV, reg->reg_info->enable_uv_per_us); rc5t583_regulator_enable_time()
|
H A D | da9052-regulator.c | 200 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 D | helpers.c | 262 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 D | twl-regulator.c | 500 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 D | da903x.c | 206 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 D | ad5398.c | 100 selector = DIV_ROUND_UP((min_uA - chip->min_uA) * chip->current_level, ad5398_set_current_limit()
|
H A D | arizona-ldo1.c | 56 sel = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step); arizona_ldo1_hc_map_voltage()
|
H A D | max8925-regulator.c | 113 data = DIV_ROUND_UP(uV - SD1_DVM_VMIN, SD1_DVM_STEP); max8925_set_dvm_voltage()
|
H A D | s2mpa01.c | 95 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 D | phy-qcom-ufs-i.h | 40 usleep_range(DIV_ROUND_UP(sleep_us, 4), sleep_us); \
|
/linux-4.1.27/drivers/input/misc/ |
H A D | gpio_tilt_polled.c | 154 tdev->threshold = DIV_ROUND_UP(pdata->debounce_interval, gpio_tilt_polled_probe()
|
/linux-4.1.27/drivers/clk/tegra/ |
H A D | clk-divider.c | 104 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 D | gk20a.c | 98 mv = DIV_ROUND_UP(mv, 1000); gk20a_volt_calc_voltage()
|
/linux-4.1.27/arch/metag/mm/ |
H A D | mmu-meta2.c | 139 unsigned int pages = DIV_ROUND_UP(mem_size, 1 << 22); mmu_init()
|
/linux-4.1.27/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_fbdev.c | 64 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); rockchip_drm_fbdev_create()
|
H A D | rockchip_drm_gem.c | 238 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 D | udl_gem.c | 81 args->pitch = args->width * DIV_ROUND_UP(args->bpp, 8); udl_dumb_create()
|
/linux-4.1.27/fs/minix/ |
H A D | minix.h | 92 return DIV_ROUND_UP(bits, blocksize * 8); minix_blocks_needed()
|
H A D | bitmap.c | 29 unsigned blocks = DIV_ROUND_UP(numbits, blocksize * 8); count_free()
|
/linux-4.1.27/drivers/pinctrl/spear/ |
H A D | pinctrl-plgpio.c | 368 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 D | gpio.h | 15 #define GPIO_BANK_NUM DIV_ROUND_UP(MAX_BLACKFIN_GPIOS, GPIO_BANKSIZE)
|
/linux-4.1.27/arch/m68k/mm/ |
H A D | init.c | 127 #define MLK_ROUNDUP(b, t) b, t, DIV_ROUND_UP(((t) - (b)), 1024) print_memmap()
|
/linux-4.1.27/net/bridge/ |
H A D | br_stp_bpdu.c | 73 return DIV_ROUND_UP(ticks * HZ, STP_HZ); br_get_ticks()
|
/linux-4.1.27/net/ipv6/ |
H A D | udp_offload.c | 53 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); udp6_ufo_fragment()
|
/linux-4.1.27/mm/ |
H A D | cma_debug.c | 188 u32s = DIV_ROUND_UP(cma_bitmap_maxno(cma), BITS_PER_BYTE * sizeof(u32)); cma_debugfs_add_one()
|
H A D | swap_cgroup.c | 153 length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); swap_cgroup_swapon()
|
/linux-4.1.27/net/9p/ |
H A D | trans_virtio.c | 343 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 D | axi-i2s.c | 96 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 D | ad_sigma_delta.c | 280 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 D | txx9ndfmc.c | 256 DIV_ROUND_UP((ns) * DIV_ROUND_UP(gbusclk, 1000), 1000000)
|
H A D | sunxi_nand.c | 845 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 D | cxgb4_uld.h | 57 (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 D | cxgb4_debugfs.c | 1684 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 D | gruhandles.h | 74 #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 D | isl29028.c | 88 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 D | dpaux.c | 77 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 D | dsi.c | 599 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 D | fb.c | 212 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); tegra_fbdev_probe()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | clps711x-fb.c | 83 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 D | lib80211_crypt_ccmp.c | 241 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 D | tree.h | 54 # 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 D | pcm512x.c | 514 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 D | mvsdio.c | 94 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 D | omap.c | 180 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 D | qset.c | 373 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 D | rc80211_minstrel.c | 448 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 D | util.c | 122 * 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 D | cxgb4i.c | 158 #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 D | atmel_hlcdc_layer.c | 401 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 D | atmel_hlcdc_crtc.c | 97 div = DIV_ROUND_UP(prate, mode_rate); atmel_hlcdc_crtc_mode_set_nofb()
|
/linux-4.1.27/arch/x86/platform/efi/ |
H A D | efi_64.c | 91 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 D | clk-pll.c | 190 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 D | clk-rcg2.c | 449 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 D | inode.c | 316 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 D | ram_core.c | 237 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 D | extent_tree.c | 469 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 D | gen_probe.c | 114 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 D | i40e_txrx.h | 128 #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 D | i40e_txrx.h | 128 #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 D | common-beacon.c | 99 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); ath9k_cmn_beacon_config_sta()
|
H A D | wow.c | 149 mask_len = DIV_ROUND_UP(patterns[i].pattern_len, 8); ath9k_wow_add_pattern()
|
/linux-4.1.27/drivers/staging/iio/adc/ |
H A D | spear_adc.c | 101 count = DIV_ROUND_UP(apb_clk, val); spear_adc_set_clk()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | fweh.h | 119 #define BRCMF_EVENTING_MASK_LEN DIV_ROUND_UP(BRCMF_E_LAST, 8)
|
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_process_queue_manager.c | 79 kzalloc(DIV_ROUND_UP(KFD_MAX_NUM_OF_QUEUES_PER_PROCESS, pqm_init()
|
/linux-4.1.27/drivers/gpu/drm/imx/ |
H A D | ipuv3-plane.c | 54 return DIV_ROUND_UP(mode->clock * 1000, vtotal * htotal); calc_vref()
|
/linux-4.1.27/drivers/infiniband/hw/mlx5/ |
H A D | mem.c | 110 *ncont = DIV_ROUND_UP(i, (1 << m)); mlx5_ib_cont_pages()
|
/linux-4.1.27/drivers/input/keyboard/ |
H A D | gpio_keys_polled.c | 270 bdata->threshold = DIV_ROUND_UP(button->debounce_interval, gpio_keys_polled_probe()
|
/linux-4.1.27/drivers/dma/ |
H A D | sa11x0-dma.c | 552 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 D | espfix_64.c | 70 #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 D | dsi_phy.c | 134 tmin = DIV_ROUND_UP(temp, ui) - 2; dsi_dphy_timing_calc()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | gk104.c | 201 const u32 magicgpc918 = DIV_ROUND_UP(0x00800000, priv->tpc_total); gk104_gr_init()
|
/linux-4.1.27/drivers/gpu/host1x/ |
H A D | intr.c | 311 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 D | firedtv-fw.c | 73 #define N_PAGES DIV_ROUND_UP(N_PACKETS, PACKETS_PER_PAGE)
|
/linux-4.1.27/arch/nios2/kernel/ |
H A D | time.c | 173 period = DIV_ROUND_UP(timer->freq, HZ); nios2_timer_set_mode()
|