/linux-4.1.27/include/linux/mfd/syscon/ |
D | atmel-smc.h | 87 u32 clk_period = DIV_ROUND_UP(NSEC_PER_SEC, clk_rate); in at91sam9_smc_setup_ns_to_cycles() 91 cycles = DIV_ROUND_UP(timing_ns, clk_period); in at91sam9_smc_setup_ns_to_cycles() 117 u32 clk_period = DIV_ROUND_UP(NSEC_PER_SEC, clk_rate); in at91sam9_smc_pulse_ns_to_cycles() 121 cycles = DIV_ROUND_UP(timing_ns, clk_period); in at91sam9_smc_pulse_ns_to_cycles() 147 u32 clk_period = DIV_ROUND_UP(NSEC_PER_SEC, clk_rate); in at91sam9_smc_cycle_ns_to_cycles() 151 cycles = DIV_ROUND_UP(timing_ns, clk_period); in at91sam9_smc_cycle_ns_to_cycles()
|
/linux-4.1.27/drivers/media/i2c/ |
D | smiapp-pll.c | 206 DIV_ROUND_UP(limits->max_pll_multiplier, mul)); in __smiapp_pll_calculate() 211 more_mul_min = DIV_ROUND_UP(limits->min_pll_op_freq_hz, in __smiapp_pll_calculate() 218 DIV_ROUND_UP(limits->min_pll_multiplier, mul)); in __smiapp_pll_calculate() 294 min_vt_div = DIV_ROUND_UP(op_pll->pix_clk_div * op_pll->sys_clk_div in __smiapp_pll_calculate() 302 DIV_ROUND_UP(pll->pll_op_clk_freq_hz, in __smiapp_pll_calculate() 314 DIV_ROUND_UP(pll->pll_op_clk_freq_hz, in __smiapp_pll_calculate() 326 DIV_ROUND_UP(min_vt_div, in __smiapp_pll_calculate() 339 DIV_ROUND_UP(max_vt_div, in __smiapp_pll_calculate() 343 DIV_ROUND_UP(pll->pll_op_clk_freq_hz, in __smiapp_pll_calculate() 357 uint16_t pix_div = DIV_ROUND_UP(vt_div, sys_div); in __smiapp_pll_calculate() [all …]
|
D | aptina-pll.c | 69 mf_min = DIV_ROUND_UP(limits->m_min, pll->m); in aptina_pll_calculate() 76 mf_max = min(mf_max, DIV_ROUND_UP(limits->n_max * limits->p1_max, div)); in aptina_pll_calculate() 141 p1_min = max(limits->p1_min, DIV_ROUND_UP(limits->out_clock_min * div, in aptina_pll_calculate() 151 mf_low = roundup(max(mf_min, DIV_ROUND_UP(pll->ext_clock * p1, in aptina_pll_calculate()
|
/linux-4.1.27/tools/include/linux/ |
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/drivers/ssb/ |
D | driver_extif.c | 94 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; in ssb_extif_timing_init() 95 tmp |= DIV_ROUND_UP(40, ns) << SSB_PROG_WCNT_1_SHIFT; in ssb_extif_timing_init() 96 tmp |= DIV_ROUND_UP(120, ns); in ssb_extif_timing_init() 100 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; in ssb_extif_timing_init() 101 tmp |= DIV_ROUND_UP(20, ns) << SSB_PROG_WCNT_2_SHIFT; in ssb_extif_timing_init() 102 tmp |= DIV_ROUND_UP(100, ns) << SSB_PROG_WCNT_1_SHIFT; in ssb_extif_timing_init() 103 tmp |= DIV_ROUND_UP(120, ns); in ssb_extif_timing_init()
|
D | driver_chipcommon.c | 443 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; /* Waitcount-3 = 10ns */ in ssb_chipco_timing_init() 444 tmp |= DIV_ROUND_UP(40, ns) << SSB_PROG_WCNT_1_SHIFT; /* Waitcount-1 = 40ns */ in ssb_chipco_timing_init() 445 tmp |= DIV_ROUND_UP(240, ns); /* Waitcount-0 = 240ns */ in ssb_chipco_timing_init() 449 tmp = DIV_ROUND_UP(10, ns) << SSB_FLASH_WCNT_3_SHIFT; /* Waitcount-3 = 10nS */ in ssb_chipco_timing_init() 450 tmp |= DIV_ROUND_UP(10, ns) << SSB_FLASH_WCNT_1_SHIFT; /* Waitcount-1 = 10nS */ in ssb_chipco_timing_init() 451 tmp |= DIV_ROUND_UP(120, ns); /* Waitcount-0 = 120nS */ in ssb_chipco_timing_init() 462 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; /* Waitcount-3 = 10ns */ in ssb_chipco_timing_init() 463 tmp |= DIV_ROUND_UP(20, ns) << SSB_PROG_WCNT_2_SHIFT; /* Waitcount-2 = 20ns */ in ssb_chipco_timing_init() 464 tmp |= DIV_ROUND_UP(100, ns) << SSB_PROG_WCNT_1_SHIFT; /* Waitcount-1 = 100ns */ in ssb_chipco_timing_init() 465 tmp |= DIV_ROUND_UP(120, ns); /* Waitcount-0 = 120ns */ in ssb_chipco_timing_init()
|
/linux-4.1.27/drivers/ide/ |
D | palm_bk3710.c | 85 t0 = DIV_ROUND_UP(palm_bk3710_udmatimings[mode].cycletime, in palm_bk3710_setudmamode() 87 tenv = DIV_ROUND_UP(20, ideclk_period) - 1; in palm_bk3710_setudmamode() 88 trp = DIV_ROUND_UP(palm_bk3710_udmatimings[mode].rptime, in palm_bk3710_setudmamode() 125 t0 = DIV_ROUND_UP(cycletime, ideclk_period); in palm_bk3710_setdmamode() 126 td = DIV_ROUND_UP(t->active, ideclk_period); in palm_bk3710_setdmamode() 154 t0 = DIV_ROUND_UP(cycletime, ideclk_period); in palm_bk3710_setpiomode() 155 t2 = DIV_ROUND_UP(t->active, ideclk_period); in palm_bk3710_setpiomode() 176 t0 = DIV_ROUND_UP(t->cyc8b, ideclk_period); in palm_bk3710_setpiomode() 177 t2 = DIV_ROUND_UP(t->act8b, ideclk_period); in palm_bk3710_setpiomode()
|
D | tx4938ide.c | 35 wt = DIV_ROUND_UP(t->act8b, cycle) - 2; in tx4938ide_tune_ebusc() 37 wt = max_t(int, wt, DIV_ROUND_UP(35, cycle)); in tx4938ide_tune_ebusc() 43 shwt = DIV_ROUND_UP(t->setup, cycle); in tx4938ide_tune_ebusc()
|
D | cmd640.c | 536 cycle_count = DIV_ROUND_UP(cycle_time, clock_time); in cmd640_set_mode() 538 setup_count = DIV_ROUND_UP(setup_time, clock_time); in cmd640_set_mode() 540 active_count = DIV_ROUND_UP(active_time, clock_time); in cmd640_set_mode() 544 recovery_count = DIV_ROUND_UP(recovery_time, clock_time); in cmd640_set_mode()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | intel_dsi_panel_vbt.c | 444 pclk += DIV_ROUND_UP(mode->vtotal * in vbt_panel_init() 465 burst_mode_ratio = DIV_ROUND_UP( in vbt_panel_init() 469 pclk = DIV_ROUND_UP(pclk * burst_mode_ratio, 100); in vbt_panel_init() 528 intel_dsi->lp_byte_clk = DIV_ROUND_UP(tlpx_ns * ui_den, 8 * ui_num); in vbt_panel_init() 539 prepare_cnt = DIV_ROUND_UP(ths_prepare_ns * ui_den, ui_num * 2); in vbt_panel_init() 542 exit_zero_cnt = DIV_ROUND_UP( in vbt_panel_init() 558 clk_zero_cnt = DIV_ROUND_UP( in vbt_panel_init() 564 trail_cnt = DIV_ROUND_UP(tclk_trail_ns * ui_den, 2 * ui_num); in vbt_panel_init() 598 tlpx_ui = DIV_ROUND_UP(tlpx_ns * ui_den, ui_num); in vbt_panel_init() 603 lp_to_hs_switch = DIV_ROUND_UP(4 * tlpx_ui + prepare_cnt * 2 + in vbt_panel_init() [all …]
|
D | intel_dsi_pll.c | 92 hsync_bytes = DIV_ROUND_UP(hsync * bpp, 8); in dsi_rr_formula() 93 hbp_bytes = DIV_ROUND_UP(hbp * bpp, 8); in dsi_rr_formula() 94 hactive_bytes = DIV_ROUND_UP(hactive * bpp, 8); in dsi_rr_formula() 95 hfp_bytes = DIV_ROUND_UP(hfp * bpp, 8); in dsi_rr_formula()
|
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 },
|
D | intel_pm.c | 593 entries_required = DIV_ROUND_UP(entries_required, wm->cacheline_size); in intel_calculate_wm() 738 entries = DIV_ROUND_UP(entries, display->cacheline_size); in g4x_compute_wm0() 750 entries = DIV_ROUND_UP(entries, cursor->cacheline_size); in g4x_compute_wm0() 828 entries = DIV_ROUND_UP(min(small, large), display->cacheline_size); in g4x_compute_srwm() 833 entries = DIV_ROUND_UP(entries, cursor->cacheline_size); in g4x_compute_srwm() 934 entries = DIV_ROUND_UP(clock, 1000) * pixel_size; in vlv_compute_drain_latency() 967 entries = DIV_ROUND_UP(clock, 1000) * pixel_size; in vlv_compute_wm() 978 return fifo_size - clamp(DIV_ROUND_UP(256 * entries, 64), 0, fifo_size - 8); in vlv_compute_wm() 1210 entries = DIV_ROUND_UP(entries, I915_FIFO_LINE_SIZE); in i965_update_wm() 1220 entries = DIV_ROUND_UP(entries, in i965_update_wm() [all …]
|
/linux-4.1.27/drivers/pwm/ |
D | pwm-img.c | 103 output_clk_hz = DIV_ROUND_UP(NSEC_PER_SEC, period_ns); in img_pwm_config() 105 mul = DIV_ROUND_UP(input_clk_hz, output_clk_hz); in img_pwm_config() 108 timebase = DIV_ROUND_UP(mul, 1); in img_pwm_config() 111 timebase = DIV_ROUND_UP(mul, 8); in img_pwm_config() 114 timebase = DIV_ROUND_UP(mul, 64); in img_pwm_config() 117 timebase = DIV_ROUND_UP(mul, 512); in img_pwm_config() 124 duty = DIV_ROUND_UP(timebase * duty_ns, period_ns); in img_pwm_config()
|
/linux-4.1.27/drivers/irqchip/ |
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++) in gic_dist_save() 467 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) in gic_dist_save() 471 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) in gic_dist_save() 500 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 16); i++) in gic_dist_restore() 504 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) in gic_dist_restore() 508 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) in gic_dist_restore() 512 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) in gic_dist_restore() [all …]
|
D | irq-atmel-aic-common.c | 227 nchips = DIV_ROUND_UP(nirqs, 32); in aic_common_of_init()
|
/linux-4.1.27/arch/unicore32/mm/ |
D | init.c | 401 DIV_ROUND_UP(PAGE_SIZE, SZ_1K), in mem_init() 403 DIV_ROUND_UP((VMALLOC_END - VMALLOC_START), SZ_1M), in mem_init() 405 DIV_ROUND_UP(((unsigned long)high_memory - PAGE_OFFSET), SZ_1M), in mem_init() 407 DIV_ROUND_UP((MODULES_END - MODULES_VADDR), SZ_1M), in mem_init() 410 DIV_ROUND_UP((__init_end - __init_begin), SZ_1K), in mem_init() 412 DIV_ROUND_UP((_etext - _stext), SZ_1K), in mem_init() 414 DIV_ROUND_UP((_edata - _sdata), SZ_1K)); in mem_init()
|
/linux-4.1.27/drivers/media/platform/s5p-mfc/ |
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))
|
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)
|
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/memory/ |
D | emif.c | 439 val = max(min_tck->tWTR, DIV_ROUND_UP(timings->tWTR, t_ck)) - 1; in get_sdram_tim_1_shdw() 443 val = DIV_ROUND_UP(timings->tFAW, t_ck*4); in get_sdram_tim_1_shdw() 445 val = max(min_tck->tRRD, DIV_ROUND_UP(timings->tRRD, t_ck)); in get_sdram_tim_1_shdw() 448 val = DIV_ROUND_UP(timings->tRAS_min + timings->tRPab, t_ck) - 1; in get_sdram_tim_1_shdw() 451 val = max(min_tck->tRASmin, DIV_ROUND_UP(timings->tRAS_min, t_ck)); in get_sdram_tim_1_shdw() 454 val = max(min_tck->tWR, DIV_ROUND_UP(timings->tWR, t_ck)) - 1; in get_sdram_tim_1_shdw() 457 val = max(min_tck->tRCD, DIV_ROUND_UP(timings->tRCD, t_ck)) - 1; in get_sdram_tim_1_shdw() 460 val = max(min_tck->tRPab, DIV_ROUND_UP(timings->tRPab, t_ck)) - 1; in get_sdram_tim_1_shdw() 472 val = max(min_tck->tWTR, DIV_ROUND_UP(timings->tWTR, t_ck)) - 1; in get_sdram_tim_1_shdw_derated() 480 val = DIV_ROUND_UP(timings->tFAW + 7500, 4 * t_ck) - 1; in get_sdram_tim_1_shdw_derated() [all …]
|
/linux-4.1.27/drivers/clk/ |
D | clk-divider.c | 130 return DIV_ROUND_UP(parent_rate, div); in divider_recalc_rate() 208 int div = DIV_ROUND_UP(parent_rate, rate); in _div_round_up() 225 up = DIV_ROUND_UP(parent_rate, rate); in _div_round_closest() 236 up_rate = DIV_ROUND_UP(parent_rate, up); in _div_round_closest() 237 down_rate = DIV_ROUND_UP(parent_rate, down); in _div_round_closest() 316 now = DIV_ROUND_UP(parent_rate, i); in clk_divider_bestdiv() 340 return DIV_ROUND_UP(*prate, div); in divider_round_rate() 355 return DIV_ROUND_UP(*prate, bestdiv); in clk_divider_round_rate() 368 div = DIV_ROUND_UP(parent_rate, rate); in divider_get_val()
|
D | clk-clps711x.c | 68 f_pll = DIV_ROUND_UP(CLPS711X_OSC_FREQ * tmp, 2); in _clps711x_clk_init() 82 f_bus = DIV_ROUND_UP(f_cpu, 2); in _clps711x_clk_init()
|
D | clk-axi-clkgen.c | 158 d_min = max_t(unsigned long, DIV_ROUND_UP(fin, fpfd_max), 1); in axi_clkgen_calc_params() 161 m_min = max_t(unsigned long, DIV_ROUND_UP(fvco_min, fin) * d_min, 1); in axi_clkgen_calc_params() 165 _d_min = max(d_min, DIV_ROUND_UP(fin * m, fvco_max)); in axi_clkgen_calc_params()
|
D | clk-pwm.c | 83 pwm->period != DIV_ROUND_UP(NSEC_PER_SEC, clk_pwm->fixed_rate)) { in clk_pwm_probe()
|
/linux-4.1.27/include/uapi/linux/ |
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/kernel/rcu/ |
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/drivers/gpu/drm/vmwgfx/ |
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, in svga3dsurface_get_size_in_blocks() 758 block_size->height = DIV_ROUND_UP(pixel_size->height, in svga3dsurface_get_size_in_blocks() 760 block_size->depth = DIV_ROUND_UP(pixel_size->depth, in svga3dsurface_get_size_in_blocks() 872 const u32 rowstride = DIV_ROUND_UP(width, bw) * desc->bytes_per_block; in svga3dsurface_get_pixel_offset() 873 const u32 imgstride = DIV_ROUND_UP(height, bh) * rowstride; in svga3dsurface_get_pixel_offset()
|
D | vmwgfx_mob.c | 352 data_size = DIV_ROUND_UP(data_size, PAGE_SIZE); in vmw_mob_calculate_pt_pages() 460 unsigned long num_pt_pages = DIV_ROUND_UP(pt_size, PAGE_SIZE); in vmw_mob_build_pt()
|
/linux-4.1.27/drivers/clk/sunxi/ |
D | clk-sun9i-core.c | 43 n = DIV_ROUND_UP(*freq, 6000000); in sun9i_a80_get_pll4_factors() 122 div = DIV_ROUND_UP(parent_rate, *freq); in sun9i_a80_get_gt_factors() 187 _p = order_base_2(DIV_ROUND_UP(parent_rate, *freq)); in sun9i_a80_get_ahb_factors() 274 div = DIV_ROUND_UP(parent_rate, *freq); in sun9i_a80_get_apb1_factors()
|
D | clk-sunxi.c | 93 div = DIV_ROUND_UP(parent_rate, rate); in sun6i_ahb1_clk_round() 106 calcm = DIV_ROUND_UP(div, 1 << calcp); in sun6i_ahb1_clk_round() 454 *n = DIV_ROUND_UP(div, (*k+1)); in sun4i_get_pll5_factors() 481 *n = DIV_ROUND_UP(div, (*k+1)) - 1; in sun6i_a31_get_pll6_factors() 508 div = order_base_2(DIV_ROUND_UP(parent_rate, *freq)); in sun5i_a13_get_ahb_factors() 537 parent_rate = DIV_ROUND_UP(parent_rate, *freq); in sun4i_get_apb1_factors() 583 div = DIV_ROUND_UP(parent_rate, *freq); in sun7i_a20_get_out_factors() 594 calcm = DIV_ROUND_UP(div, 1 << calcp); in sun7i_a20_get_out_factors()
|
D | clk-sun8i-mbus.c | 41 div = DIV_ROUND_UP(parent_rate, *freq); in sun8i_a23_get_mbus_factors()
|
D | clk-mod0.c | 40 div = DIV_ROUND_UP(parent_rate, *freq); in sun4i_a10_get_mod0_factors() 51 calcm = DIV_ROUND_UP(div, 1 << calcp); in sun4i_a10_get_mod0_factors()
|
D | clk-sun6i-ar100.c | 68 div = DIV_ROUND_UP(parent_rate, rate); in ar100_determine_rate()
|
D | clk-sun9i-mmc.c | 108 count = DIV_ROUND_UP((r->end - r->start + 1), SUN9I_MMC_WIDTH); in sun9i_a80_mmc_config_clk_probe()
|
/linux-4.1.27/arch/arm/mach-omap2/ |
D | omap_twl.c | 59 return DIV_ROUND_UP(uv - 600000, 12500); in twl4030_uv_to_vsel() 130 return DIV_ROUND_UP(uv - 709000, 12660) + 1; in twl6030_uv_to_vsel() 132 return DIV_ROUND_UP(uv - 607700, 12660) + 1; in twl6030_uv_to_vsel()
|
/linux-4.1.27/lib/mpi/ |
D | mpicoder.c | 55 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); in mpi_read_raw_data() 99 nbytes = DIV_ROUND_UP(nbits, 8); in mpi_read_from_buffer() 100 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); in mpi_read_from_buffer() 196 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); in mpi_set_buffer()
|
/linux-4.1.27/drivers/video/fbdev/omap2/dss/ |
D | hdmi_pll.c | 58 n = DIV_ROUND_UP(clkin, hw->fint_max); in hdmi_pll_compute() 63 m2 = DIV_ROUND_UP(min_dco, target_bitclk); in hdmi_pll_compute() 84 sd = DIV_ROUND_UP(fint * m, 250000000); in hdmi_pll_compute()
|
D | pll.c | 143 m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul); in dss_pll_hsdiv_calc() 173 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc() 181 m_start = max(DIV_ROUND_UP(DIV_ROUND_UP(pll_min, fint), 2), in dss_pll_calc()
|
D | dsi.c | 1291 lp_clk_div = DIV_ROUND_UP(dsi_fclk, lp_clk_max * 2); in dsi_lp_clock_calc() 1391 cinfo->mX[HSDIV_DSI] = DIV_ROUND_UP(cinfo->clkdco, max_dsi_fck); in dsi_pll_calc_dsi_fck() 3507 width_bytes = DIV_ROUND_UP(timings->x_res * bpp, 8); in dsi_config_cmd_mode_interleaving() 3508 bllp = hbp + hfp + hsa + DIV_ROUND_UP(width_bytes + 6, ndl); in dsi_config_cmd_mode_interleaving() 3677 ths_eot = DIV_ROUND_UP(4, ndl); in dsi_proto_timings() 3679 ddr_clk_pre = DIV_ROUND_UP(tclk_pre + tlpx + tclk_zero + tclk_prepare, in dsi_proto_timings() 3681 ddr_clk_post = DIV_ROUND_UP(tclk_post + ths_trail, 4) + ths_eot; in dsi_proto_timings() 3695 enter_hs_mode_lat = 1 + DIV_ROUND_UP(tlpx, 4) + in dsi_proto_timings() 3696 DIV_ROUND_UP(ths_prepare, 4) + in dsi_proto_timings() 3697 DIV_ROUND_UP(ths_zero + 3, 4); in dsi_proto_timings() [all …]
|
D | dss.c | 543 fckd_stop = max(DIV_ROUND_UP(prate * m, fck_hw_max), 1ul); in dss_div_calc() 546 fck = DIV_ROUND_UP(prate, fckd) * m; in dss_div_calc() 593 fck_div = DIV_ROUND_UP(prate * dss.feat->dss_fck_multiplier, in dss_setup_default_clock() 595 fck = DIV_ROUND_UP(prate, fck_div) * dss.feat->dss_fck_multiplier; in dss_setup_default_clock()
|
/linux-4.1.27/arch/s390/kernel/ |
D | suspend.c | 55 return DIV_ROUND_UP(pages, PAGE_KEY_DATA_SIZE); in page_key_additional_pages() 81 size = DIV_ROUND_UP(pages, PAGE_KEY_DATA_SIZE); in page_key_alloc()
|
D | perf_cpum_sf.c | 305 CPUM_SF_SDB_DIAG_FACTOR = DIV_ROUND_UP(si.dsdes, si.bsdes); in sfb_set_limits() 426 n_sdb = DIV_ROUND_UP(freq, factor * ((PAGE_SIZE-64) / sample_size)); in allocate_buffers() 455 return min_t(unsigned long, min, DIV_ROUND_UP(percent * base, 100)); in min_percent() 496 ratio = DIV_ROUND_UP(100 * OVERFLOW_REG(hwc) * cpuhw->sfb.num_sdb, in sfb_account_overflows() 1291 OVERFLOW_REG(hwc) = DIV_ROUND_UP(OVERFLOW_REG(hwc) + in hw_perf_event_update()
|
/linux-4.1.27/drivers/spi/ |
D | spi-orion.c | 136 spr = DIV_ROUND_UP(spr, speed); in orion_spi_baudrate_set() 160 rate = DIV_ROUND_UP(tclk_hz, speed); in orion_spi_baudrate_set() 475 DIV_ROUND_UP(tclk_hz, devdata->min_divisor)); in orion_spi_probe() 478 DIV_ROUND_UP(tclk_hz, devdata->min_divisor); in orion_spi_probe() 479 master->min_speed_hz = DIV_ROUND_UP(tclk_hz, devdata->max_divisor); in orion_spi_probe()
|
D | spi-bcm63xx-hsspi.c | 130 reg = DIV_ROUND_UP(2048, DIV_ROUND_UP(bs->speed_hz, hz)); in bcm63xx_hsspi_set_clk()
|
D | spi-txx9.c | 191 int n = DIV_ROUND_UP(c->baseclk, speed_hz) - 1; in txx9spi_work_one() 356 master->min_speed_hz = DIV_ROUND_UP(c->baseclk, SPI_MAX_DIVIDER + 1); in txx9spi_probe()
|
D | spi-efm32.c | 136 clkdiv = 64 * (DIV_ROUND_UP(2 * clkfreq, speed) - 4); in efm32_spi_setup_transfer() 197 t->len * DIV_ROUND_UP(t->bits_per_word, 8); in efm32_spi_txrx_bufs()
|
D | spi-xcomm.c | 82 divider = DIV_ROUND_UP(SPI_XCOMM_CLOCK, t->speed_hz); in spi_xcomm_setup_transfer()
|
/linux-4.1.27/drivers/gpu/host1x/hw/ |
D | intr_hw.c | 50 for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); i++) { in syncpt_thresh_isr() 67 for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); ++i) { in _host1x_intr_disable_all_syncpt_intrs()
|
/linux-4.1.27/drivers/i2c/busses/ |
D | i2c-rk3x.c | 520 DIV_ROUND_UP((scl_rise_ns + spec_setup_start) * 1000, 875)); in rk3x_i2c_calc_divs() 522 DIV_ROUND_UP((scl_rise_ns + spec_setup_start + in rk3x_i2c_calc_divs() 530 clk_rate_khz = DIV_ROUND_UP(clk_rate, 1000); in rk3x_i2c_calc_divs() 537 min_total_div = DIV_ROUND_UP(clk_rate_khz, scl_rate_khz * 8); in rk3x_i2c_calc_divs() 540 min_low_div = DIV_ROUND_UP(clk_rate_khz * min_low_ns, 8 * 1000000); in rk3x_i2c_calc_divs() 541 min_high_div = DIV_ROUND_UP(clk_rate_khz * min_high_ns, 8 * 1000000); in rk3x_i2c_calc_divs() 576 ideal_low_div = DIV_ROUND_UP(clk_rate_khz * min_low_ns, in rk3x_i2c_calc_divs()
|
D | i2c-mxs.c | 703 divider = DIV_ROUND_UP(clk, speed); in mxs_i2c_derive_timing() 745 leadin = DIV_ROUND_UP(600 * (clk / 1000000), 1000); in mxs_i2c_derive_timing() 746 bus_free = DIV_ROUND_UP(1300 * (clk / 1000000), 1000); in mxs_i2c_derive_timing() 751 leadin = DIV_ROUND_UP(4700 * (clk / 1000000), 1000); in mxs_i2c_derive_timing() 752 bus_free = DIV_ROUND_UP(4700 * (clk / 1000000), 1000); in mxs_i2c_derive_timing()
|
D | i2c-nomadik.c | 382 slsu = DIV_ROUND_UP(100, ns); /* Fast */ in setup_i2c_controller() 385 slsu = DIV_ROUND_UP(10, ns); /* High */ in setup_i2c_controller() 389 slsu = DIV_ROUND_UP(250, ns); /* Standard */ in setup_i2c_controller()
|
/linux-4.1.27/fs/jfs/ |
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/drivers/clk/ti/ |
D | divider.c | 116 return DIV_ROUND_UP(parent_rate, div); in ti_clk_divider_recalc_rate() 160 bestdiv = DIV_ROUND_UP(parent_rate, rate); in ti_clk_divider_bestdiv() 186 now = DIV_ROUND_UP(parent_rate, i); in ti_clk_divider_bestdiv() 209 return DIV_ROUND_UP(*prate, div); in ti_clk_divider_round_rate() 225 div = DIV_ROUND_UP(parent_rate, rate); in ti_clk_divider_set_rate()
|
D | fapll.c | 423 synth_post_div_m = DIV_ROUND_UP(frac_rate, rate); in ti_fapll_synth_round_rate() 424 r = DIV_ROUND_UP(frac_rate, synth_post_div_m); in ti_fapll_synth_round_rate() 458 post_div_m = DIV_ROUND_UP(frac_rate, rate); in ti_fapll_synth_set_rate() 460 post_rate = DIV_ROUND_UP(frac_rate, post_div_m); in ti_fapll_synth_set_rate()
|
/linux-4.1.27/drivers/firewire/ |
D | core-card.c | 248 delayed ? DIV_ROUND_UP(HZ, 100) : 0)) in fw_schedule_bus_reset() 343 card->reset_jiffies + DIV_ROUND_UP(HZ, 8)); in bm_work() 410 fw_schedule_bm_work(card, DIV_ROUND_UP(HZ, 8)); in bm_work() 434 fw_schedule_bm_work(card, DIV_ROUND_UP(HZ, 8)); in bm_work() 542 DIV_ROUND_UP(DEFAULT_SPLIT_TIMEOUT * HZ, 8000); in fw_card_initialize()
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
D | scan.c | 180 min_dwell_time_active = DIV_ROUND_UP(min_dwell_time_active, 1000); in wlcore_scan_get_channels() 181 max_dwell_time_active = DIV_ROUND_UP(max_dwell_time_active, 1000); in wlcore_scan_get_channels() 182 dwell_time_passive = DIV_ROUND_UP(dwell_time_passive, 1000); in wlcore_scan_get_channels() 183 dwell_time_dfs = DIV_ROUND_UP(dwell_time_dfs, 1000); in wlcore_scan_get_channels()
|
/linux-4.1.27/include/linux/ |
D | iommu-helper.h | 31 return DIV_ROUND_UP(size, io_page_size); in iommu_num_pages()
|
D | delay.h | 39 udelay(DIV_ROUND_UP(x, 1000)); in ndelay()
|
D | bitops.h | 13 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
|
D | radix-tree.h | 76 #define RADIX_TREE_MAX_PATH (DIV_ROUND_UP(RADIX_TREE_INDEX_BITS, \
|
/linux-4.1.27/arch/arm/mach-s3c24xx/ |
D | cpufreq-utils.c | 47 refresh = DIV_ROUND_UP(refresh, (1000 * 1000)); /* apply scale */ in s3c2410_cpufreq_setrefresh()
|
D | iotiming-s3c2412.c | 70 return cyc_tns ? DIV_ROUND_UP(cyc_tns, clk_tns) : 0; in to_div() 278 refresh = DIV_ROUND_UP(refresh, (1000 * 1000)); /* apply scale */ in s3c2412_cpufreq_setrefresh()
|
/linux-4.1.27/drivers/base/regmap/ |
D | regcache-lzo.c | 112 DIV_ROUND_UP(map->cache_size_raw, in regcache_lzo_get_blkindex() 120 (DIV_ROUND_UP(map->cache_size_raw, in regcache_lzo_get_blkpos() 127 return DIV_ROUND_UP(map->cache_size_raw, in regcache_lzo_get_blksize()
|
/linux-4.1.27/arch/m68k/include/asm/ |
D | delay.h | 117 #define ndelay(n) __delay(DIV_ROUND_UP((n) * ((((HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6), …
|
/linux-4.1.27/drivers/clk/mxs/ |
D | clk-ssp.c | 36 clock_rate = DIV_ROUND_UP(ssp_clk, rate * clock_divide); in mxs_ssp_set_clk_rate()
|
/linux-4.1.27/arch/arm/include/asm/ |
D | kprobes.h | 75 #define MAX_COPIED_INSN DIV_ROUND_UP(RELATIVEJUMP_SIZE, sizeof(kprobe_opcode_t))
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | nv25.c | 32 u32 tiles = DIV_ROUND_UP(size, 0x40); in nv25_fb_tile_comp()
|
D | nv36.c | 32 u32 tiles = DIV_ROUND_UP(size, 0x40); in nv36_fb_tile_comp()
|
D | nv35.c | 32 u32 tiles = DIV_ROUND_UP(size, 0x40); in nv35_fb_tile_comp()
|
D | nv40.c | 32 u32 tiles = DIV_ROUND_UP(size, 0x80); in nv40_fb_tile_comp()
|
D | nv20.c | 45 u32 tiles = DIV_ROUND_UP(size, 0x40); in nv20_fb_tile_comp()
|
D | nv30.c | 53 u32 tiles = DIV_ROUND_UP(size, 0x40); in nv30_fb_tile_comp()
|
/linux-4.1.27/drivers/watchdog/ |
D | s3c2410_wdt.c | 315 freq = DIV_ROUND_UP(freq, 128); in s3c2410wdt_set_heartbeat() 327 divisor = DIV_ROUND_UP(count, 0xffff); in s3c2410wdt_set_heartbeat() 336 __func__, timeout, divisor, count, DIV_ROUND_UP(count, divisor)); in s3c2410wdt_set_heartbeat() 338 count = DIV_ROUND_UP(count, divisor); in s3c2410wdt_set_heartbeat()
|
D | intel-mid_wdt.c | 57 in_size = DIV_ROUND_UP(sizeof(ipc_wd_start), 4); in wdt_start()
|
D | f71808e_wdt.c | 230 watchdog.timer_val = DIV_ROUND_UP(timeout, 60); in watchdog_set_timeout() 705 DIV_ROUND_UP(start_withtimeout, 60)); in watchdog_init()
|
/linux-4.1.27/drivers/gpu/drm/rcar-du/ |
D | rcar_du_drv.h | 69 #define RCAR_DU_MAX_GROUPS DIV_ROUND_UP(RCAR_DU_MAX_CRTCS, 2)
|
D | rcar_du_kms.c | 121 unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); in rcar_du_dumb_create() 676 num_groups = DIV_ROUND_UP(rcdu->num_crtcs, 2); in rcar_du_modeset_init()
|
/linux-4.1.27/drivers/gpu/drm/armada/ |
D | armada_510.c | 68 div = DIV_ROUND_UP(ref, rate); in armada510_crtc_compute_clock()
|
/linux-4.1.27/fs/gfs2/ |
D | bmap.h | 42 tmp = DIV_ROUND_UP(tmp, sdp->sd_inptrs); in gfs2_write_calc_reserv()
|
D | xattr.c | 54 (sizeof(__be64) * DIV_ROUND_UP(dsize, jbsize)), 8); in ea_calc_size() 468 unsigned int nptrs = DIV_ROUND_UP(amount, sdp->sd_jbsize); in gfs2_iter_unstuffed() 683 ea->ea_num_ptrs = DIV_ROUND_UP(er->er_data_len, sdp->sd_jbsize); in ea_write() 810 blks += DIV_ROUND_UP(er.er_data_len, jbsize); in ea_init() 956 blks = 2 + DIV_ROUND_UP(es->es_er->er_data_len, in ea_set_simple() 1069 blks += DIV_ROUND_UP(er.er_data_len, GFS2_SB(&ip->i_inode)->sd_jbsize); in ea_set_i() 1243 unsigned int nptrs = DIV_ROUND_UP(amount, sdp->sd_jbsize); in ea_acl_chmod_unstuffed()
|
D | log.c | 60 blks += DIV_ROUND_UP(nstruct - first, second); in gfs2_struct2blk() 453 reserved += DIV_ROUND_UP(mbuf, buf_limit(sdp)); in calc_reserved() 454 reserved += DIV_ROUND_UP(dbuf, databuf_limit(sdp)); in calc_reserved()
|
/linux-4.1.27/drivers/acpi/ |
D | acpi_cmos_rtc.c | 46 for (i = 0; i < DIV_ROUND_UP(bits, 8); ++i, ++address, ++value) in acpi_cmos_rtc_space_handler()
|
/linux-4.1.27/drivers/infiniband/hw/cxgb4/ |
D | qp.c | 277 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); in create_qp() 496 *len16 = DIV_ROUND_UP(size, 16); in build_rdma_send() 539 *len16 = DIV_ROUND_UP(size, 16); in build_rdma_write() 569 *len16 = DIV_ROUND_UP(sizeof wqe->read, 16); in build_rdma_read() 583 *len16 = DIV_ROUND_UP(sizeof wqe->recv + in build_rdma_recv() 631 *len16 = DIV_ROUND_UP(sizeof(wqe->fr) + sizeof(*sglp), 16); in build_fastreg() 654 *len16 = DIV_ROUND_UP(sizeof(wqe->fr) + sizeof(*imdp) in build_fastreg() 665 *len16 = DIV_ROUND_UP(sizeof wqe->inv, 16); in build_inv_stag() 840 idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); in c4iw_post_send() 912 idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); in c4iw_post_receive() [all …]
|
D | mem.c | 87 req->wr.wr_mid = cpu_to_be32(FW_WR_LEN16_V(DIV_ROUND_UP(wr_len, 16))); in _c4iw_write_mem_dma_aligned() 91 req->len16 = cpu_to_be32(DIV_ROUND_UP(wr_len-sizeof(req->wr), 16)); in _c4iw_write_mem_dma_aligned() 126 num_wqe = DIV_ROUND_UP(len, C4IW_MAX_INLINE_SIZE); in _c4iw_write_mem_inline() 151 FW_WR_LEN16_V(DIV_ROUND_UP(wr_len, 16))); in _c4iw_write_mem_inline() 155 DIV_ROUND_UP(copy_len, T4_ULPTX_MIN_IO))); in _c4iw_write_mem_inline() 156 req->len16 = cpu_to_be32(DIV_ROUND_UP(wr_len-sizeof(req->wr), in _c4iw_write_mem_inline()
|
/linux-4.1.27/lib/ |
D | kfifo.c | 207 ret = DIV_ROUND_UP(ret + len - l, esize); in kfifo_copy_from_user() 211 ret = DIV_ROUND_UP(ret, esize); in kfifo_copy_from_user() 267 ret = DIV_ROUND_UP(ret + len - l, esize); in kfifo_copy_to_user() 271 ret = DIV_ROUND_UP(ret, esize); in kfifo_copy_to_user()
|
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); in build_mod8_tables() 1085 const int ecclen = DIV_ROUND_UP(bch->ecc_bits, 32); in build_mod8_tables() 1175 genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); in compute_generator_polynomial() 1297 words = DIV_ROUND_UP(m*t, 32); in init_bch() 1298 bch->ecc_bytes = DIV_ROUND_UP(m*t, 8); in init_bch()
|
D | iov_iter.c | 591 n = DIV_ROUND_UP(len, PAGE_SIZE); in iov_iter_get_pages() 636 n = DIV_ROUND_UP(len, PAGE_SIZE); in iov_iter_get_pages_alloc() 761 npages += DIV_ROUND_UP(p + v.iov_len, PAGE_SIZE) in iov_iter_npages() 771 npages += DIV_ROUND_UP(p + v.iov_len, PAGE_SIZE) in iov_iter_npages()
|
D | digsig.c | 117 mlen = DIV_ROUND_UP(mblen, 8); in digsig_verify_rsa()
|
/linux-4.1.27/net/9p/ |
D | trans_virtio.c | 343 nr_pages = DIV_ROUND_UP(n + *offs, PAGE_SIZE); in p9_get_mapped_pages() 364 nr_pages = DIV_ROUND_UP((unsigned long)p + len, PAGE_SIZE) - in p9_get_mapped_pages() 416 out_nr_pages = DIV_ROUND_UP(n + offs, PAGE_SIZE); in p9_virtio_zc_request() 427 in_nr_pages = DIV_ROUND_UP(n + offs, PAGE_SIZE); in p9_virtio_zc_request()
|
/linux-4.1.27/drivers/gpu/drm/gma500/ |
D | oaktrail_hdmi.c | 180 np_min = DIV_ROUND_UP(oaktrail_hdmi_limit.vco.min, target * 10); in oaktrail_hdmi_find_dpll() 187 nr_min = DIV_ROUND_UP((refclk * 1000), (target * 10 * np_max)); in oaktrail_hdmi_find_dpll() 188 nr_max = DIV_ROUND_UP((refclk * 1000), (target * 10 * np_min)); in oaktrail_hdmi_find_dpll() 194 np = DIV_ROUND_UP((refclk * 1000), (target * 10 * nr_max)); in oaktrail_hdmi_find_dpll() 195 nr = DIV_ROUND_UP((refclk * 1000), (target * 10 * np)); in oaktrail_hdmi_find_dpll()
|
/linux-4.1.27/sound/firewire/ |
D | packets-buffer.c | 42 pages = DIV_ROUND_UP(count, packets_per_page); in iso_packets_buffer_init()
|
D | iso-resources.c | 59 s400_bytes = DIV_ROUND_UP(bytes, 1 << (speed - SCODE_400)); in packet_bandwidth()
|
/linux-4.1.27/drivers/tty/serial/8250/ |
D | 8250_mtk.c | 77 quot = DIV_ROUND_UP(port->uartclk, 4 * baud); in mtk8250_set_termios() 84 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); in mtk8250_set_termios()
|
/linux-4.1.27/drivers/staging/media/omap4iss/ |
D | iss_csiphy.c | 208 csi2phy.ths_term = DIV_ROUND_UP(25 * csi2_ddrclk_khz, 2000000) - 1; in omap4iss_csiphy_config() 209 csi2phy.ths_settle = DIV_ROUND_UP(90 * csi2_ddrclk_khz, 1000000) + 3; in omap4iss_csiphy_config()
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | rv770_dma.c | 58 num_loops = DIV_ROUND_UP(size_in_dw, 0xFFFF); in rv770_copy_dma()
|
D | evergreen_dma.c | 124 num_loops = DIV_ROUND_UP(size_in_dw, 0xfffff); in evergreen_copy_dma()
|
D | si_dma.c | 247 num_loops = DIV_ROUND_UP(size_in_bytes, 0xfffff); in si_copy_dma()
|
/linux-4.1.27/drivers/video/console/ |
D | bitblit.c | 29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); in update_attr() 148 u32 width = DIV_ROUND_UP(vc->vc_font.width, 8); in bit_putcs() 177 pitch = DIV_ROUND_UP(image.width, 8) + scan_align; in bit_putcs() 242 int w = DIV_ROUND_UP(vc->vc_font.width, 8), c; in bit_cursor()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
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)) | \
|
D | cxgb4_debugfs.c | 1684 int eth_entries = DIV_ROUND_UP(adap->sge.ethqsets, 4); in sge_qinfo_show() 1685 int toe_entries = DIV_ROUND_UP(adap->sge.ofldqsets, 4); in sge_qinfo_show() 1686 int rdma_entries = DIV_ROUND_UP(adap->sge.rdmaqs, 4); in sge_qinfo_show() 1687 int ciq_entries = DIV_ROUND_UP(adap->sge.rdmaciqs, 4); in sge_qinfo_show() 1688 int ctrl_entries = DIV_ROUND_UP(MAX_CTRL_QUEUES, 4); in sge_qinfo_show() 1842 return DIV_ROUND_UP(adap->sge.ethqsets, 4) + in sge_queue_entries() 1843 DIV_ROUND_UP(adap->sge.ofldqsets, 4) + in sge_queue_entries() 1844 DIV_ROUND_UP(adap->sge.rdmaqs, 4) + in sge_queue_entries() 1845 DIV_ROUND_UP(adap->sge.rdmaciqs, 4) + in sge_queue_entries() 1846 DIV_ROUND_UP(MAX_CTRL_QUEUES, 4) + 1; in sge_queue_entries()
|
/linux-4.1.27/drivers/gpio/ |
D | gpio-stmpe.c | 164 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); in stmpe_gpio_irq_sync_unlock() 222 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); in stmpe_dbg_show_one() 300 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); in stmpe_gpio_irq()
|
D | gpio-74xx-mmio.c | 135 DIV_ROUND_UP(MMIO_74XX_BIT_CNT(priv->flags), 8), in mmio_74xx_gpio_probe()
|
/linux-4.1.27/drivers/pinctrl/mvebu/ |
D | pinctrl-armada-xp.c | 402 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); in armada_xp_pinctrl_suspend() 416 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); in armada_xp_pinctrl_resume() 478 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); in armada_xp_pinctrl_probe()
|
/linux-4.1.27/drivers/hwmon/ |
D | pwm-fan.c | 50 duty = DIV_ROUND_UP(pwm * (ctx->pwm->period - 1), MAX_PWM); in __set_pwm() 312 duty = DIV_ROUND_UP(ctx->pwm_value * (ctx->pwm->period - 1), MAX_PWM); in pwm_fan_resume()
|
/linux-4.1.27/drivers/misc/sgi-gru/ |
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/gpu/drm/vgem/ |
D | vgem_drv.c | 101 num_pages = DIV_ROUND_UP(obj->base.size, PAGE_SIZE); in vgem_gem_fault() 177 uint64_t pitch = args->width * DIV_ROUND_UP(args->bpp, 8); in vgem_gem_dumb_create()
|
/linux-4.1.27/arch/blackfin/include/asm/ |
D | gpio.h | 15 #define GPIO_BANK_NUM DIV_ROUND_UP(MAX_BLACKFIN_GPIOS, GPIO_BANKSIZE)
|
/linux-4.1.27/drivers/pinctrl/spear/ |
D | pinctrl-plgpio.c | 368 regs_count = DIV_ROUND_UP(count, MAX_GPIO_PER_REG); in plgpio_irq_handler() 545 DIV_ROUND_UP(plgpio->chip.ngpio, MAX_GPIO_PER_REG), in plgpio_probe() 621 int i, reg_count = DIV_ROUND_UP(plgpio->chip.ngpio, MAX_GPIO_PER_REG); in plgpio_suspend() 660 int i, reg_count = DIV_ROUND_UP(plgpio->chip.ngpio, MAX_GPIO_PER_REG); in plgpio_resume()
|
/linux-4.1.27/drivers/media/pci/pt3/ |
D | pt3.h | 78 #define MAX_DESC_BUFS DIV_ROUND_UP(MAX_NUM_XFERS, DESCS_IN_PAGE)
|
D | pt3_dma.c | 181 DIV_ROUND_UP(adap->num_bufs * DATA_BUF_XFERS, DESCS_IN_PAGE); in pt3_alloc_dmabuf()
|
/linux-4.1.27/drivers/net/ethernet/ti/ |
D | cpsw_ale.h | 85 #define ALE_ENTRY_WORDS DIV_ROUND_UP(ALE_ENTRY_BITS, 32)
|
/linux-4.1.27/drivers/gpu/drm/ |
D | drm_gem_cma_helper.c | 223 unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); in drm_gem_cma_dumb_create_internal() 262 args->pitch = DIV_ROUND_UP(args->width * args->bpp, 8); in drm_gem_cma_dumb_create()
|
/linux-4.1.27/drivers/md/bcache/ |
D | movinggc.c | 88 bio->bi_max_vecs = DIV_ROUND_UP(KEY_SIZE(&io->w->key), in moving_init() 152 * DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS), in read_moving()
|
D | writeback.c | 115 bio->bi_max_vecs = DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS); in dirty_init() 247 * DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS), in read_dirty()
|
/linux-4.1.27/drivers/media/platform/omap3isp/ |
D | ispcsiphy.c | 224 reg |= (DIV_ROUND_UP(25 * csi2_ddrclk_khz, 2000000) - 1) in omap3isp_csiphy_config() 227 reg |= (DIV_ROUND_UP(90 * csi2_ddrclk_khz, 1000000) + 3) in omap3isp_csiphy_config()
|
/linux-4.1.27/drivers/net/wireless/ath/ath5k/ |
D | pcu.c | 147 bitrate = DIV_ROUND_UP(bitrate, 2); in ath5k_hw_get_frame_duration() 153 bitrate = DIV_ROUND_UP(bitrate, 4); in ath5k_hw_get_frame_duration() 163 symbols = DIV_ROUND_UP(bits * 10, symbol_bits); in ath5k_hw_get_frame_duration()
|
/linux-4.1.27/drivers/regulator/ |
D | twl-regulator.c | 500 int vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl4030smps_set_voltage() 738 vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl6030smps_map_voltage() 761 vsel = DIV_ROUND_UP(min_uV - 700000, 12500); in twl6030smps_map_voltage() 784 vsel = DIV_ROUND_UP(min_uV - 1852000, 38600); in twl6030smps_map_voltage() 792 vsel = DIV_ROUND_UP(min_uV - 2161000, 38600); in twl6030smps_map_voltage()
|
D | helpers.c | 262 ret = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step); in regulator_map_voltage_linear() 316 ret = DIV_ROUND_UP(min_uV - range->min_uV, in regulator_map_voltage_linear_range()
|
D | da9052-regulator.c | 200 DIV_ROUND_UP(min_uV - DA9052_CONST_3uV, in da9052_map_voltage() 203 sel = DIV_ROUND_UP(min_uV - info->min_uV, info->step_uV); in da9052_map_voltage()
|
D | rc5t583-regulator.c | 61 return DIV_ROUND_UP(curr_uV, reg->reg_info->enable_uv_per_us); in rc5t583_regulator_enable_time()
|
D | max8649.c | 82 return DIV_ROUND_UP(voltage, rate); in max8649_enable_time()
|
D | da903x.c | 206 sel = DIV_ROUND_UP(thresh - min_uV, info->desc.uV_step); in da9030_map_ldo14_voltage() 209 sel = DIV_ROUND_UP(min_uV - thresh, info->desc.uV_step); in da9030_map_ldo14_voltage()
|
D | ad5398.c | 100 selector = DIV_ROUND_UP((min_uA - chip->min_uA) * chip->current_level, in ad5398_set_current_limit()
|
D | arizona-ldo1.c | 56 sel = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step); in arizona_ldo1_hc_map_voltage()
|
/linux-4.1.27/fs/nfs/ |
D | nfs4session.h | 32 #define SLOT_TABLE_SZ DIV_ROUND_UP(NFS4_MAX_SLOT_TABLE, 8*sizeof(long))
|
/linux-4.1.27/drivers/phy/ |
D | phy-qcom-ufs-i.h | 40 usleep_range(DIV_ROUND_UP(sleep_us, 4), sleep_us); \
|
/linux-4.1.27/tools/perf/util/include/linux/ |
D | kernel.h | 9 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) macro
|
/linux-4.1.27/drivers/mfd/ |
D | pm8921-core.c | 329 chip->num_blocks = DIV_ROUND_UP(chip->num_irqs, 8); in pm8921_probe() 330 chip->num_masters = DIV_ROUND_UP(chip->num_blocks, 8); in pm8921_probe()
|
D | twl4030-irq.c | 97 .bytes_ixr = DIV_ROUND_UP(nbits, 8), \ 99 .bytes_edr = DIV_ROUND_UP((2*(nbits)), 8), \
|
/linux-4.1.27/drivers/clocksource/ |
D | timer-sun5i.c | 248 ce->timer.ticks_per_jiffy = DIV_ROUND_UP(ndata->new_rate, HZ); in sun5i_rate_cb_clkevt() 275 ce->timer.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); in sun5i_setup_clockevent()
|
D | timer-keystone.c | 210 timer.hz_period = DIV_ROUND_UP(rate, HZ); in keystone_timer_init()
|
D | sun4i_timer.c | 185 ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); in sun4i_timer_init()
|
D | timer-digicolor.c | 177 dc_timer_dev.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); in digicolor_timer_init()
|
D | mtk_timer.c | 235 evt->ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); in mtk_timer_init()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | t4vf_hw.c | 381 len16 = DIV_ROUND_UP(offsetof(struct fw_params_cmd, in t4vf_query_params() 419 len16 = DIV_ROUND_UP(offsetof(struct fw_params_cmd, in t4vf_set_params() 1205 size_t len16 = DIV_ROUND_UP(offsetof(struct fw_vi_mac_cmd, in t4vf_alloc_mac_filt() 1286 size_t len16 = DIV_ROUND_UP(offsetof(struct fw_vi_mac_cmd, in t4vf_change_mac() 1333 size_t len16 = DIV_ROUND_UP(offsetof(struct fw_vi_mac_cmd, in t4vf_set_addr_hash() 1375 size_t len16 = DIV_ROUND_UP(len, 16); in t4vf_get_port_stats()
|
/linux-4.1.27/kernel/power/ |
D | snapshot.c | 445 nr_blocks = DIV_ROUND_UP(pages, BM_BITS_PER_BLOCK); in create_zone_bm_rtree() 1045 rtree = nodes = DIV_ROUND_UP(zone->spanned_pages, BM_BITS_PER_BLOCK); in snapshot_additional_pages() 1046 rtree += DIV_ROUND_UP(rtree * sizeof(struct rtree_node), in snapshot_additional_pages() 1049 nodes = DIV_ROUND_UP(nodes, BM_ENTRIES_PER_LEVEL); in snapshot_additional_pages() 1609 - 2 * DIV_ROUND_UP(reserved_size, PAGE_SIZE); in hibernate_preallocate_memory() 1611 size = DIV_ROUND_UP(image_size, PAGE_SIZE); in hibernate_preallocate_memory() 1872 nr_meta_pages = DIV_ROUND_UP(nr_pages * sizeof(long), PAGE_SIZE); in swsusp_save() 2369 nr_pages = DIV_ROUND_UP(nr_pages, PBES_PER_LINKED_PAGE); in prepare_image()
|
/linux-4.1.27/arch/m68k/mm/ |
D | init.c | 127 #define MLK_ROUNDUP(b, t) b, t, DIV_ROUND_UP(((t) - (b)), 1024) in print_memmap()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | gk20a.c | 357 n_lo = DIV_ROUND_UP(m_old * priv->params->min_vco, in _gk20a_pllg_program_mnp() 390 n_lo = DIV_ROUND_UP(priv->m * priv->params->min_vco, in _gk20a_pllg_program_mnp() 448 n_lo = DIV_ROUND_UP(m * priv->params->min_vco, in gk20a_pllg_disable()
|
/linux-4.1.27/arch/metag/mm/ |
D | mmu-meta2.c | 139 unsigned int pages = DIV_ROUND_UP(mem_size, 1 << 22); in mmu_init()
|
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_priv.h | 153 unsigned long doorbell_available_index[DIV_ROUND_UP( 476 …unsigned long allocated_queue_bitmap[DIV_ROUND_UP(KFD_MAX_NUM_OF_QUEUES_PER_PROCESS, BITS_PER_LONG…
|
/linux-4.1.27/sound/usb/ |
D | endpoint.c | 690 max_packs_per_period = DIV_ROUND_UP(period_bytes, minsize); in data_ep_set_params() 693 urbs_per_period = DIV_ROUND_UP(max_packs_per_period, in data_ep_set_params() 696 urb_packs = DIV_ROUND_UP(max_packs_per_period, urbs_per_period); in data_ep_set_params() 699 ep->max_urb_frames = DIV_ROUND_UP(frames_per_period, in data_ep_set_params()
|
/linux-4.1.27/net/dccp/ccids/ |
D | ccid2.c | 88 u32 max_ratio = DIV_ROUND_UP(ccid2_hc_tx_sk(sk)->tx_cwnd, 2); in ccid2_change_l_ack_ratio() 578 maxincr = DIV_ROUND_UP(dp->dccps_l_ack_ratio, 2); in ccid2_hc_tx_packet_recv() 724 max_ratio = DIV_ROUND_UP(hc->tx_cwnd, 2); in ccid2_hc_tx_init()
|
/linux-4.1.27/drivers/scsi/fnic/ |
D | vnic_wq.h | 82 DIV_ROUND_UP(entries, VNIC_WQ_BUF_BLK_ENTRIES)
|
D | vnic_rq.h | 79 DIV_ROUND_UP(entries, VNIC_RQ_BUF_BLK_ENTRIES)
|
/linux-4.1.27/drivers/staging/iio/light/ |
D | isl29028.c | 88 unsigned int period = DIV_ROUND_UP(1000, sampling); in isl29028_set_proxim_sampling() 111 mdelay(DIV_ROUND_UP(1000, chip->prox_sampling)); in isl29028_enable_proximity()
|
/linux-4.1.27/drivers/iio/adc/ |
D | ad_sigma_delta.c | 280 DIV_ROUND_UP(chan->scan_type.realbits + chan->scan_type.shift, 8), in ad_sigma_delta_single_conversion() 373 reg_size = DIV_ROUND_UP(reg_size, 8); in ad_sd_trigger_handler()
|
/linux-4.1.27/drivers/video/fbdev/ |
D | clps711x-fb.c | 83 val = DIV_ROUND_UP(var->xres, 16) - 1; in clps711x_fb_check_var() 87 val = DIV_ROUND_UP(var->yres * var->xres * var->bits_per_pixel, 128); in clps711x_fb_check_var()
|
/linux-4.1.27/drivers/misc/vmw_vmci/ |
D | vmci_queue_pair.c | 263 (DIV_ROUND_UP(_QPE.produce_size, PAGE_SIZE) + \ 264 DIV_ROUND_UP(_QPE.consume_size, PAGE_SIZE) + 2)) 279 for (i = 0; i < DIV_ROUND_UP(size, PAGE_SIZE) + 1; i++) { in qp_free_queue() 301 const u64 num_pages = DIV_ROUND_UP(size, PAGE_SIZE) + 1; in qp_alloc_queue() 627 const u64 num_pages = DIV_ROUND_UP(size, PAGE_SIZE) + 1; in qp_host_alloc_queue() 975 const u64 num_ppns = DIV_ROUND_UP(produce_size, PAGE_SIZE) + in qp_guest_endpoint_create() 976 DIV_ROUND_UP(consume_size, PAGE_SIZE) + 2; in qp_guest_endpoint_create() 1187 DIV_ROUND_UP(produce_size, PAGE_SIZE) + 1; in qp_alloc_guest_work() 1189 DIV_ROUND_UP(consume_size, PAGE_SIZE) + 1; in qp_alloc_guest_work() 1468 (DIV_ROUND_UP(entry->qp.produce_size, PAGE_SIZE) + 1); in qp_broker_create()
|
/linux-4.1.27/fs/minix/ |
D | minix.h | 92 return DIV_ROUND_UP(bits, blocksize * 8); in minix_blocks_needed()
|
/linux-4.1.27/mm/ |
D | swap_cgroup.c | 153 length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); in swap_cgroup_swapon()
|
D | cma_debug.c | 188 u32s = DIV_ROUND_UP(cma_bitmap_maxno(cma), BITS_PER_BYTE * sizeof(u32)); in cma_debugfs_add_one()
|
/linux-4.1.27/fs/btrfs/ |
D | ordered-data.h | 152 int num_sectors = (int)DIV_ROUND_UP(bytes, root->sectorsize); in btrfs_ordered_sum_size()
|
D | compression.c | 94 (DIV_ROUND_UP(disk_size, root->sectorsize)) * csum_size; in compressed_bio_size() 624 nr_pages = DIV_ROUND_UP(compressed_len, PAGE_CACHE_SIZE); in btrfs_submit_compressed_read() 695 sums += DIV_ROUND_UP(comp_bio->bi_iter.bi_size, in btrfs_submit_compressed_read()
|
D | raid56.c | 941 return DIV_ROUND_UP(nr, PAGE_CACHE_SIZE); in rbio_nr_pages() 955 int stripe_npages = DIV_ROUND_UP(stripe_len, PAGE_SIZE); in alloc_rbio() 959 DIV_ROUND_UP(stripe_npages, BITS_PER_LONG / 8), in alloc_rbio() 1502 int nr_pages = DIV_ROUND_UP(rbio->stripe_len, PAGE_CACHE_SIZE); in raid56_rmw_stripe() 1798 int nr_pages = DIV_ROUND_UP(rbio->stripe_len, PAGE_CACHE_SIZE); in __raid_recover_end_io() 2023 int nr_pages = DIV_ROUND_UP(rbio->stripe_len, PAGE_CACHE_SIZE); in __raid56_parity_recover()
|
/linux-4.1.27/arch/x86/kernel/ |
D | espfix_64.c | 70 #define ESPFIX_MAX_PAGES DIV_ROUND_UP(CONFIG_NR_CPUS, ESPFIX_STACKS_PER_PAGE)
|
/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
D | common-beacon.c | 99 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); in ath9k_cmn_beacon_config_sta()
|
/linux-4.1.27/net/netfilter/ |
D | nft_bitwise.c | 37 for (i = 0; i < DIV_ROUND_UP(priv->len, 4); i++) in nft_bitwise_eval()
|
/linux-4.1.27/sound/soc/codecs/ |
D | pcm512x.c | 514 ranges[1].min = DIV_ROUND_UP(16000000, frame_size); in pcm512x_hw_rule_rate() 715 num *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff() 716 den *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff() 772 P = DIV_ROUND_UP(pllin_rate, 20000000); in pcm512x_find_pll_coeff() 1020 ncp_div = DIV_ROUND_UP(dac_rate, 2048000); in pcm512x_set_dividers()
|
/linux-4.1.27/net/mac80211/ |
D | rc80211_minstrel.c | 448 DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1, in calc_rate_durations() 451 DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1, in calc_rate_durations() 520 mr->bitrate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in minstrel_rate_init()
|
D | util.c | 155 dur += 4 * DIV_ROUND_UP((16 + 8 * (len + 4) + 6) * 10, in ieee80211_frame_duration() 171 dur += DIV_ROUND_UP(8 * (len + 4) * 10, rate); in ieee80211_frame_duration() 232 bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift); in ieee80211_rts_duration() 275 bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift); in ieee80211_ctstoself_duration() 1384 (u8) DIV_ROUND_UP(sband->bitrates[i].bitrate, in ieee80211_build_preq_ies_band() 1670 brate = DIV_ROUND_UP(sband->bitrates[j].bitrate, in ieee80211_sta_get_rates() 2463 brate = DIV_ROUND_UP(br->bitrate, (1 << shift) * 5); in ieee80211_parse_bitrates() 2511 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in ieee80211_add_srates_ie() 2560 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in ieee80211_add_ext_srates_ie() 2663 ri.legacy = DIV_ROUND_UP(bitrate, (1 << shift)); in ieee80211_calculate_rx_timestamp() [all …]
|
/linux-4.1.27/drivers/net/ethernet/cisco/enic/ |
D | vnic_wq.h | 77 DIV_ROUND_UP(entries, VNIC_WQ_BUF_BLK_ENTRIES(entries))
|
/linux-4.1.27/drivers/mtd/nand/ |
D | txx9ndfmc.c | 256 DIV_ROUND_UP((ns) * DIV_ROUND_UP(gbusclk, 1000), 1000000)
|
D | sunxi_nand.c | 845 min_clk_period = DIV_ROUND_UP(timings->tRR_min, 3); in sunxi_nand_chip_set_timings() 861 min_clk_period = DIV_ROUND_UP(timings->tRC_min, 2); in sunxi_nand_chip_set_timings() 865 min_clk_period = DIV_ROUND_UP(timings->tWC_min, 2); in sunxi_nand_chip_set_timings() 869 min_clk_period = DIV_ROUND_UP(min_clk_period, 1000); in sunxi_nand_chip_set_timings() 949 ecc->bytes = DIV_ROUND_UP(ecc->strength * fls(8 * 1024), 8); in sunxi_nand_hw_common_ecc_ctrl_init()
|
/linux-4.1.27/drivers/scsi/csiostor/ |
D | csio_scsi.c | 213 DIV_ROUND_UP(size, 16))); in csio_scsi_init_cmd_wr() 373 FW_WR_LEN16_V(DIV_ROUND_UP(size, 16))); in csio_scsi_init_read_wr() 426 FW_WR_LEN16_V(DIV_ROUND_UP(size, 16))); in csio_scsi_init_write_wr() 656 DIV_ROUND_UP(size, 16))); in csio_scsi_init_abrt_cls_wr() 1237 int count = DIV_ROUND_UP(tmo, CSIO_SCSI_ABORT_Q_POLL_MS); in csio_scsi_abort_io_q() 1277 int count = DIV_ROUND_UP(60 * 1000, CSIO_SCSI_ABORT_Q_POLL_MS); in csio_scsim_cleanup_io() 1323 int count = DIV_ROUND_UP(60 * 1000, CSIO_SCSI_ABORT_Q_POLL_MS); in csio_scsim_cleanup_io_lnode() 2138 count = DIV_ROUND_UP((ioreq->tmo + 10) * 1000, CSIO_SCSI_TM_POLL_MS); in csio_eh_lun_reset_handler()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
D | gk20a.c | 98 mv = DIV_ROUND_UP(mv, 1000); in gk20a_volt_calc_voltage()
|
/linux-4.1.27/drivers/clk/tegra/ |
D | clk-divider.c | 104 return DIV_ROUND_UP(output_rate * mul, div + mul); in clk_frac_div_round_rate()
|
/linux-4.1.27/arch/arm/mach-davinci/ |
D | aemif.c | 71 result = DIV_ROUND_UP((wanted * clk), NSEC_PER_MSEC) - 1; in aemif_calc_rate()
|
/linux-4.1.27/net/ipv6/ |
D | udp_offload.c | 53 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); in udp6_ufo_fragment()
|
/linux-4.1.27/drivers/usb/host/ |
D | xhci.c | 1171 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address() 2141 bw_reserved = DIV_ROUND_UP(SS_BW_RESERVED*SS_BW_LIMIT_IN, 100); in xhci_check_ss_bw() 2145 bw_reserved = DIV_ROUND_UP(SS_BW_RESERVED*SS_BW_LIMIT_OUT, 100); in xhci_check_ss_bw() 2214 bw_reserved = DIV_ROUND_UP(HS_BW_RESERVED * max_bandwidth, 100); in xhci_check_bw_table() 2217 bw_reserved = DIV_ROUND_UP(FS_BW_RESERVED * max_bandwidth, 100); in xhci_check_bw_table() 2251 bw_used = DIV_ROUND_UP(bw_table->interval0_esit_payload, block_size) + in xhci_check_bw_table() 2281 largest_mps = DIV_ROUND_UP( in xhci_check_bw_table() 2384 unsigned int mps = DIV_ROUND_UP(ep_bw->max_packet_size, SS_BLOCK); in xhci_get_ss_bw_consumed() 2390 return DIV_ROUND_UP(ep_bw->mult * ep_bw->num_packets * in xhci_get_ss_bw_consumed() 4313 sel = DIV_ROUND_UP(udev->u1_params.sel, 1000); in xhci_get_timeout_no_hub_lpm() [all …]
|
/linux-4.1.27/drivers/gpu/drm/tegra/ |
D | dpaux.c | 77 for (i = 0; i < DIV_ROUND_UP(size, 4); i++) { in tegra_dpaux_write_fifo() 93 for (i = 0; i < DIV_ROUND_UP(size, 4); i++) { in tegra_dpaux_read_fifo()
|
/linux-4.1.27/arch/x86/platform/efi/ |
D | efi_64.c | 91 n_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT), PGDIR_SIZE); in efi_call_phys_prolog() 115 nr_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT) , PGDIR_SIZE); in efi_call_phys_epilog()
|
/linux-4.1.27/drivers/usb/host/whci/ |
D | qset.c | 373 std->num_pointers = DIV_ROUND_UP(ep - sp, WHCI_PAGE_SIZE); in qset_fill_page_list() 510 num_pointers = DIV_ROUND_UP(ep - sp, WHCI_PAGE_SIZE); in qset_add_urb_sg() 667 ntds_remaining = DIV_ROUND_UP(remaining, QTD_MAX_XFER_SIZE); in qset_add_urb()
|
/linux-4.1.27/drivers/md/ |
D | bitmap.c | 761 bytes = DIV_ROUND_UP(chunks, 8); in bitmap_storage_alloc() 765 num_pages = DIV_ROUND_UP(bytes, PAGE_SIZE); in bitmap_storage_alloc() 799 roundup(DIV_ROUND_UP(num_pages*4, 8), sizeof(unsigned long)), in bitmap_storage_alloc() 1070 node_offset = bitmap->cluster_slot * (DIV_ROUND_UP(store->bytes, PAGE_SIZE)); in bitmap_init_from_disk() 1979 bytes = DIV_ROUND_UP(bitmap->counts.chunks, 8); in bitmap_resize() 1982 space = DIV_ROUND_UP(bytes, 512); in bitmap_resize() 1991 bytes = DIV_ROUND_UP(chunks, 8); in bitmap_resize() 2008 pages = DIV_ROUND_UP(chunks, PAGE_COUNTER_RATIO); in bitmap_resize()
|
/linux-4.1.27/drivers/scsi/cxgbi/cxgb4i/ |
D | cxgb4i.c | 158 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro 492 return DIV_ROUND_UP(skb->len, 8); in calc_tx_flits_ofld() 507 flowclen16 = DIV_ROUND_UP(flowclen, 16); in tx_flowc_wr_credits() 631 credits_needed = DIV_ROUND_UP(dlen, 16); in push_tx_frames() 633 credits_needed = DIV_ROUND_UP( in push_tx_frames() 638 credits_needed += DIV_ROUND_UP( in push_tx_frames() 1444 DIV_ROUND_UP(sizeof(struct cpl_abort_req), 16); in init_act_open() 1542 req->len16 = htonl(DIV_ROUND_UP(wr_len - sizeof(req->wr), 16)); in ulp_mem_io_set_hdr()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
D | fweh.h | 119 #define BRCMF_EVENTING_MASK_LEN DIV_ROUND_UP(BRCMF_E_LAST, 8)
|
/linux-4.1.27/drivers/infiniband/hw/mlx5/ |
D | mem.c | 110 *ncont = DIV_ROUND_UP(i, (1 << m)); in mlx5_ib_cont_pages()
|
/linux-4.1.27/drivers/input/misc/ |
D | gpio_tilt_polled.c | 154 tdev->threshold = DIV_ROUND_UP(pdata->debounce_interval, in gpio_tilt_polled_probe()
|
/linux-4.1.27/drivers/clk/at91/ |
D | clk-pll.c | 190 tmpdiv = DIV_ROUND_UP(parent_rate, characteristics->input.max); in clk_pll_get_best_div_mul() 202 maxdiv = DIV_ROUND_UP(parent_rate * PLL_MUL_MAX(layout), rate); in clk_pll_get_best_div_mul()
|
/linux-4.1.27/net/wireless/ |
D | lib80211_crypt_ccmp.c | 241 blocks = DIV_ROUND_UP(data_len, AES_BLOCK_LEN); in lib80211_ccmp_encrypt() 347 blocks = DIV_ROUND_UP(data_len, AES_BLOCK_LEN); in lib80211_ccmp_decrypt()
|
/linux-4.1.27/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_fbdev.c | 64 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in rockchip_drm_fbdev_create()
|
D | rockchip_drm_gem.c | 238 int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); in rockchip_gem_dumb_create()
|
/linux-4.1.27/drivers/gpu/drm/udl/ |
D | udl_gem.c | 81 args->pitch = args->width * DIV_ROUND_UP(args->bpp, 8); in udl_dumb_create()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | ctxgm204.c | 949 const u32 dist_nr = DIV_ROUND_UP(priv->tpc_total, 4); in gm204_grctx_generate_405b60()
|
D | gm204.c | 256 const u32 magicgpc918 = DIV_ROUND_UP(0x00800000, priv->tpc_total); in gm204_gr_init()
|
/linux-4.1.27/drivers/media/usb/em28xx/ |
D | em28xx-audio.c | 797 bytes_per_transfer = DIV_ROUND_UP(48000 * 2 * 2, 125 * interval); in em28xx_audio_urb_init() 803 num_urb = DIV_ROUND_UP(bytes_per_transfer, ep_size); in em28xx_audio_urb_init() 821 npackets = DIV_ROUND_UP(urb_size, ep_size); in em28xx_audio_urb_init()
|
/linux-4.1.27/drivers/input/keyboard/ |
D | pmic8xxx-keypad.c | 157 udelay((2 * DIV_ROUND_UP(USEC_PER_SEC, KEYP_CLOCK_FREQ)) + 1); in pmic8xxx_chk_sync_read() 211 udelay((4 * DIV_ROUND_UP(USEC_PER_SEC, KEYP_CLOCK_FREQ)) + 1); in pmic8xxx_kp_read_matrix()
|
/linux-4.1.27/fs/pstore/ |
D | ram_core.c | 237 ecc_blocks = DIV_ROUND_UP(prz->buffer_size - prz->ecc_info.ecc_size, in persistent_ram_init_ecc() 394 page_count = DIV_ROUND_UP(size + offset_in_page(start), PAGE_SIZE); in persistent_ram_vmap()
|
/linux-4.1.27/drivers/dma/ |
D | sa11x0-dma.c | 552 j += DIV_ROUND_UP(len, DMA_MAX_SIZE & ~DMA_ALIGN) - 1; in sa11x0_dma_prep_slave_sg() 583 unsigned mult = DIV_ROUND_UP(tlen, in sa11x0_dma_prep_slave_sg() 623 sgperiod = DIV_ROUND_UP(period, DMA_MAX_SIZE & ~DMA_ALIGN); in sa11x0_dma_prep_dma_cyclic() 643 unsigned mult = DIV_ROUND_UP(tlen, DMA_MAX_SIZE & ~DMA_ALIGN); in sa11x0_dma_prep_dma_cyclic()
|
/linux-4.1.27/arch/arm64/mm/ |
D | init.c | 298 #define MLK_ROUNDUP(b, t) b, t, DIV_ROUND_UP(((t) - (b)), SZ_1K) in mem_init()
|
/linux-4.1.27/drivers/mtd/chips/ |
D | gen_probe.c | 114 mapsize = sizeof(long) * DIV_ROUND_UP(max_chips, BITS_PER_LONG); in genprobe_ident_chips()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/ |
D | i40e_txrx.h | 128 #define TXD_USE_COUNT(S) DIV_ROUND_UP((S), I40E_MAX_DATA_PER_TXD)
|
/linux-4.1.27/sound/soc/adi/ |
D | axi-i2s.c | 96 bclk_div = DIV_ROUND_UP(clk_get_rate(i2s->clk_ref), bclk_rate) / 2 - 1; in axi_i2s_hw_params()
|
/linux-4.1.27/drivers/mmc/host/ |
D | mvsdio.c | 94 tmout = DIV_ROUND_UP(data->timeout_ns, host->ns_per_clk); in mvsd_setup_data() 618 u32 m = DIV_ROUND_UP(host->base_clock, ios->clock) - 1; in mvsd_set_ios() 737 mmc->f_min = DIV_ROUND_UP(host->base_clock, MVSD_BASE_DIV_MAX); in mvsd_probe()
|
/linux-4.1.27/fs/omfs/ |
D | inode.c | 316 bitmap_size = DIV_ROUND_UP(sbi->s_num_blocks, 8); in omfs_get_imap() 317 array_size = DIV_ROUND_UP(bitmap_size, sb->s_blocksize); in omfs_get_imap()
|
/linux-4.1.27/drivers/clk/qcom/ |
D | clk-rcg2.c | 449 div = DIV_ROUND_UP((2 * parent_rate), rate) - 1; in clk_byte_determine_rate() 463 div = DIV_ROUND_UP((2 * parent_rate), rate) - 1; in clk_byte_set_rate()
|
/linux-4.1.27/arch/arm/mach-pxa/ |
D | am200epd.c | 247 am200_fb_info.modes->yres = DIV_ROUND_UP(totalsize, fw); in am200_presetup_fb()
|
/linux-4.1.27/net/bridge/ |
D | br_stp_bpdu.c | 73 return DIV_ROUND_UP(ticks * HZ, STP_HZ); in br_get_ticks()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.h | 128 #define TXD_USE_COUNT(S) DIV_ROUND_UP((S), I40E_MAX_DATA_PER_TXD)
|
/linux-4.1.27/arch/nios2/kernel/ |
D | time.c | 173 period = DIV_ROUND_UP(timer->freq, HZ); in nios2_timer_set_mode()
|