/linux/drivers/phy/amlogic/ |
A D | phy-meson-axg-mipi-dphy.c | 247 DIV_ROUND_UP(priv->config.clk_trail, temp) | in phy_meson_axg_mipi_dphy_power_on() 248 (DIV_ROUND_UP(priv->config.clk_post + in phy_meson_axg_mipi_dphy_power_on() 250 (DIV_ROUND_UP(priv->config.clk_zero, temp) << 16) | in phy_meson_axg_mipi_dphy_power_on() 253 DIV_ROUND_UP(priv->config.clk_pre, temp)); in phy_meson_axg_mipi_dphy_power_on() 256 DIV_ROUND_UP(priv->config.hs_exit, temp) | in phy_meson_axg_mipi_dphy_power_on() 257 (DIV_ROUND_UP(priv->config.hs_trail, temp) << 8) | in phy_meson_axg_mipi_dphy_power_on() 258 (DIV_ROUND_UP(priv->config.hs_zero, temp) << 16) | in phy_meson_axg_mipi_dphy_power_on() 262 DIV_ROUND_UP(priv->config.lpx, temp) | in phy_meson_axg_mipi_dphy_power_on() 263 (DIV_ROUND_UP(priv->config.ta_sure, temp) << 8) | in phy_meson_axg_mipi_dphy_power_on() 264 (DIV_ROUND_UP(priv->config.ta_go, temp) << 16) | in phy_meson_axg_mipi_dphy_power_on() [all …]
|
/linux/drivers/gpu/drm/selftests/ |
A D | test-drm_framebuffer.c | 188 .handles = { 1, 1, 1 }, .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), 189 DIV_ROUND_UP(MAX_WIDTH, 2) }, 195 DIV_ROUND_UP(MAX_WIDTH, 2) }, 201 DIV_ROUND_UP(MAX_WIDTH, 2) + 7 }, 208 .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2) + 1, DIV_ROUND_UP(MAX_WIDTH, 2) + 7 }, 214 .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, 220 .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, 227 .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, 234 .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, 242 .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, [all …]
|
/linux/drivers/media/platform/s5p-mfc/ |
A D | s5p_mfc_opr_v6.h | 20 #define MB_WIDTH(x_size) DIV_ROUND_UP(x_size, 16) 21 #define MB_HEIGHT(y_size) DIV_ROUND_UP(y_size, 16) 26 #define S5P_MFC_LCU_WIDTH(x_size) DIV_ROUND_UP(x_size, 32) 27 #define S5P_MFC_LCU_HEIGHT(y_size) DIV_ROUND_UP(y_size, 32) 30 (DIV_ROUND_UP(x, 64) * DIV_ROUND_UP(y, 64) * 256 + 512)
|
A D | regs-mfc-v10.h | 69 + ((y * 64) + 1280) * DIV_ROUND_UP(x, 8)) 73 + (DIV_ROUND_UP(x * y, 64) * 32)) 77 + (DIV_ROUND_UP(x * y, 128) * 16)) 84 + ((y * 128) + 1280) * DIV_ROUND_UP(x, 4))
|
A D | regs-mfc-v8.h | 111 ((DIV_ROUND_UP((mbw * 16), 64) * DIV_ROUND_UP((mbh * 16), 64) * 256) \ 112 + (DIV_ROUND_UP((mbw) * (mbh), 32) * 16))
|
/linux/include/linux/ |
A D | rcu_node_tree.h | 64 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) 72 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2) 73 # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) 81 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_3) 82 # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2) 83 # define NUM_RCU_LVL_3 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1)
|
/linux/drivers/media/platform/allegro-dvt/ |
A D | nal-h264.c | 39 u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); in nal_h264_write_start_code_prefix() 57 u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); in nal_h264_read_start_code_prefix() 75 u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); in nal_h264_write_filler_data() 79 i = rbsp->size - DIV_ROUND_UP(rbsp->pos, 8) - 1; in nal_h264_write_filler_data() 89 if (DIV_ROUND_UP(rbsp->pos, 8) > rbsp->size) { in nal_h264_read_filler_data() 379 return DIV_ROUND_UP(rbsp.pos, 8); in nal_h264_write_sps() 426 return DIV_ROUND_UP(rbsp.pos, 8); in nal_h264_read_sps() 471 return DIV_ROUND_UP(rbsp.pos, 8); in nal_h264_write_pps() 508 return DIV_ROUND_UP(rbsp.pos, 8); in nal_h264_read_pps() 551 return DIV_ROUND_UP(rbsp.pos, 8); in nal_h264_write_filler() [all …]
|
A D | nal-hevc.c | 40 u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); in nal_hevc_write_start_code_prefix() 58 u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); in nal_hevc_read_start_code_prefix() 90 if (DIV_ROUND_UP(rbsp->pos, 8) > rbsp->size) { in nal_hevc_read_filler_data() 548 return DIV_ROUND_UP(rbsp.pos, 8); in nal_hevc_write_vps() 596 return DIV_ROUND_UP(rbsp.pos, 8); in nal_hevc_read_vps() 643 return DIV_ROUND_UP(rbsp.pos, 8); in nal_hevc_write_sps() 691 return DIV_ROUND_UP(rbsp.pos, 8); in nal_hevc_read_sps() 738 return DIV_ROUND_UP(rbsp.pos, 8); in nal_hevc_write_pps() 782 return DIV_ROUND_UP(rbsp.pos, 8); in nal_hevc_read_pps() 829 return DIV_ROUND_UP(rbsp.pos, 8); in nal_hevc_write_filler() [all …]
|
/linux/drivers/gpu/drm/ |
A D | drm_dsc.c | 294 groups_per_line = DIV_ROUND_UP(vdsc_cfg->slice_width / 2, in drm_dsc_compute_rc_parameters() 298 vdsc_cfg->slice_chunk_size = DIV_ROUND_UP(vdsc_cfg->slice_width / 2 * in drm_dsc_compute_rc_parameters() 303 groups_per_line = DIV_ROUND_UP(vdsc_cfg->slice_width, in drm_dsc_compute_rc_parameters() 307 vdsc_cfg->slice_chunk_size = DIV_ROUND_UP(vdsc_cfg->slice_width * in drm_dsc_compute_rc_parameters() 358 vdsc_cfg->nfl_bpg_offset = DIV_ROUND_UP((vdsc_cfg->first_line_bpg_offset << 11), in drm_dsc_compute_rc_parameters() 367 vdsc_cfg->slice_bpg_offset = DIV_ROUND_UP(((vdsc_cfg->rc_model_size - in drm_dsc_compute_rc_parameters() 398 DIV_ROUND_UP(vdsc_cfg->initial_xmit_delay * in drm_dsc_compute_rc_parameters() 402 hrd_delay = DIV_ROUND_UP((rbs_min * 16), vdsc_cfg->bits_per_pixel); in drm_dsc_compute_rc_parameters()
|
/linux/drivers/ssb/ |
A 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()
|
A 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/include/linux/can/ |
A D | length.h | 30 #define CAN_FRAME_OVERHEAD_SFF DIV_ROUND_UP(47, 8) 55 #define CAN_FRAME_OVERHEAD_EFF DIV_ROUND_UP(67, 8) 82 #define CANFD_FRAME_OVERHEAD_SFF DIV_ROUND_UP(61, 8) 111 #define CANFD_FRAME_OVERHEAD_EFF DIV_ROUND_UP(80, 8)
|
/linux/drivers/ata/ |
A D | pata_bk3710.c | 75 t0 = DIV_ROUND_UP(pata_bk3710_udmatimings[mode].cycletime, in pata_bk3710_setudmamode() 77 tenv = DIV_ROUND_UP(20, ideclk_period) - 1; in pata_bk3710_setudmamode() 78 trp = DIV_ROUND_UP(pata_bk3710_udmatimings[mode].rptime, in pata_bk3710_setudmamode() 115 t0 = DIV_ROUND_UP(cycletime, ideclk_period); in pata_bk3710_setmwdmamode() 116 td = DIV_ROUND_UP(t->active, ideclk_period); in pata_bk3710_setmwdmamode() 160 t0 = DIV_ROUND_UP(cycletime, ideclk_period); in pata_bk3710_setpiomode() 161 t2 = DIV_ROUND_UP(t->active, ideclk_period); in pata_bk3710_setpiomode() 183 t0 = DIV_ROUND_UP(t->cyc8b, ideclk_period); in pata_bk3710_setpiomode() 184 t2 = DIV_ROUND_UP(t->act8b, ideclk_period); in pata_bk3710_setpiomode()
|
/linux/tools/include/linux/ |
A D | bitops.h | 18 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(long)) 19 #define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(u64)) 20 #define BITS_TO_U32(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(u32)) 21 #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(char))
|
/linux/arch/s390/include/asm/ |
A D | ftrace.lds.h | 2 #ifndef DIV_ROUND_UP 3 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro 9 DIV_ROUND_UP(SIZEOF_FTRACE_HOTPATCH_TRAMPOLINE * (n), \
|
/linux/lib/dim/ |
A D | dim.c | 71 curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us); in dim_calc_stats() 72 curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); in dim_calc_stats() 73 curr_stats->epms = DIV_ROUND_UP(DIM_NEVENTS * USEC_PER_MSEC, in dim_calc_stats() 75 curr_stats->cpms = DIV_ROUND_UP(ncomps * USEC_PER_MSEC, delta_us); in dim_calc_stats()
|
/linux/drivers/irqchip/ |
A D | irq-gic.c | 76 u32 saved_spi_enable[DIV_ROUND_UP(1020, 32)]; 77 u32 saved_spi_active[DIV_ROUND_UP(1020, 32)]; 78 u32 saved_spi_conf[DIV_ROUND_UP(1020, 16)]; 79 u32 saved_spi_target[DIV_ROUND_UP(1020, 4)]; 657 for (i = 0; i < DIV_ROUND_UP(32, 32); i++) in gic_cpu_save() 661 for (i = 0; i < DIV_ROUND_UP(32, 32); i++) in gic_cpu_save() 665 for (i = 0; i < DIV_ROUND_UP(32, 16); i++) in gic_cpu_save() 687 for (i = 0; i < DIV_ROUND_UP(32, 32); i++) { in gic_cpu_restore() 694 for (i = 0; i < DIV_ROUND_UP(32, 32); i++) { in gic_cpu_restore() 701 for (i = 0; i < DIV_ROUND_UP(32, 16); i++) in gic_cpu_restore() [all …]
|
/linux/drivers/net/ethernet/mscc/ |
A D | ocelot_police.c | 53 cir = DIV_ROUND_UP(cir, 100); in qos_policer_conf_set() 55 cbs = DIV_ROUND_UP(cbs, 4096); in qos_policer_conf_set() 67 pir = DIV_ROUND_UP(pir, 100); in qos_policer_conf_set() 69 pbs = DIV_ROUND_UP(pbs, 4096); in qos_policer_conf_set() 77 pir = DIV_ROUND_UP(pir, 100); in qos_policer_conf_set()
|
/linux/drivers/media/i2c/ |
A D | aptina-pll.c | 56 mf_min = DIV_ROUND_UP(limits->m_min, pll->m); in aptina_pll_calculate() 63 mf_max = min(mf_max, DIV_ROUND_UP(limits->n_max * limits->p1_max, div)); in aptina_pll_calculate() 128 p1_min = max(limits->p1_min, DIV_ROUND_UP(limits->out_clock_min * div, in aptina_pll_calculate() 138 mf_low = roundup(max(mf_min, DIV_ROUND_UP(pll->ext_clock * p1, in aptina_pll_calculate()
|
A D | ccs-pll.c | 263 DIV_ROUND_UP(min_vt_div, in ccs_pll_find_vt_sys_div() 276 DIV_ROUND_UP(max_vt_div, in ccs_pll_find_vt_sys_div() 280 DIV_ROUND_UP(pll_fr->pll_op_clk_freq_hz, in ccs_pll_find_vt_sys_div() 394 DIV_ROUND_UP(pll->ext_clk_freq_hz, in ccs_pll_calculate_vt_tree() 491 DIV_ROUND_UP(pll->bits_per_pixel in ccs_pll_calculate_vt() 504 DIV_ROUND_UP(pll_fr->pll_op_clk_freq_hz, in ccs_pll_calculate_vt() 515 DIV_ROUND_UP(pll_fr->pll_op_clk_freq_hz, in ccs_pll_calculate_vt() 536 pix_div = DIV_ROUND_UP(vt_div, sys_div); in ccs_pll_calculate_vt() 643 DIV_ROUND_UP(op_lim_fr->min_pll_multiplier, mul)); in ccs_pll_calculate_op() 800 DIV_ROUND_UP(pll->ext_clk_freq_hz, in ccs_pll_calculate() [all …]
|
/linux/arch/arm/mach-omap2/ |
A D | pmic-cpcap.c | 47 return DIV_ROUND_UP(uv - 600000, 12500); in omap_cpcap_uv_to_vsel() 111 return DIV_ROUND_UP(uv - 770000, 10000); in omap_max8952_uv_to_vsel() 179 vsel = DIV_ROUND_UP(uv - 750000, 12500); in omap_fan535503_uv_to_vsel() 198 vsel = DIV_ROUND_UP(uv - 750000, 12500); in omap_fan535508_uv_to_vsel()
|
/linux/drivers/i2c/busses/ |
A D | i2c-rk3x.c | 612 min_high_ns = max(min_high_ns, DIV_ROUND_UP( in rk3x_i2c_v0_calc_timings() 614 min_high_ns = max(min_high_ns, DIV_ROUND_UP( in rk3x_i2c_v0_calc_timings() 623 clk_rate_khz = DIV_ROUND_UP(clk_rate, 1000); in rk3x_i2c_v0_calc_timings() 630 min_total_div = DIV_ROUND_UP(clk_rate_khz, scl_rate_khz * 8); in rk3x_i2c_v0_calc_timings() 669 ideal_low_div = DIV_ROUND_UP(clk_rate_khz * min_low_ns, in rk3x_i2c_v0_calc_timings() 778 clk_rate_khz = DIV_ROUND_UP(clk_rate, 1000); in rk3x_i2c_v1_calc_timings() 818 extra_low_div = DIV_ROUND_UP(min_low_div * extra_div, in rk3x_i2c_v1_calc_timings() 830 max_hold_data_ns = DIV_ROUND_UP((sda_update_cfg in rk3x_i2c_v1_calc_timings() 833 min_setup_data_ns = DIV_ROUND_UP(((8 - sda_update_cfg) in rk3x_i2c_v1_calc_timings() 843 stp_sta_cfg = DIV_ROUND_UP(clk_rate_khz * min_setup_start_ns in rk3x_i2c_v1_calc_timings() [all …]
|
/linux/drivers/pwm/ |
A D | pwm-img.c | 108 output_clk_hz = DIV_ROUND_UP(NSEC_PER_SEC, period_ns); in img_pwm_config() 110 mul = DIV_ROUND_UP(input_clk_hz, output_clk_hz); in img_pwm_config() 113 timebase = DIV_ROUND_UP(mul, 1); in img_pwm_config() 116 timebase = DIV_ROUND_UP(mul, 8); in img_pwm_config() 119 timebase = DIV_ROUND_UP(mul, 64); in img_pwm_config() 122 timebase = DIV_ROUND_UP(mul, 512); in img_pwm_config() 129 duty = DIV_ROUND_UP(timebase * duty_ns, period_ns); in img_pwm_config()
|
/linux/drivers/gpu/drm/msm/dsi/phy/ |
A D | dsi_phy.c | 103 tmin = DIV_ROUND_UP(temp, ui) - 2; in msm_dsi_dphy_timing_calc() 192 tmin = DIV_ROUND_UP(60 * coeff + 3 * ui, ui_x8); in msm_dsi_dphy_timing_calc_v2() 216 tmin = DIV_ROUND_UP(100 * coeff, ui_x8) - 1; in msm_dsi_dphy_timing_calc_v2() 224 tmin = DIV_ROUND_UP(temp, ui_x8) - 1; in msm_dsi_dphy_timing_calc_v2() 324 tmin = DIV_ROUND_UP(100 * coeff, ui_x8) - 1; in msm_dsi_dphy_timing_calc_v3() 332 tmin = DIV_ROUND_UP(temp, ui_x8) - 1; in msm_dsi_dphy_timing_calc_v3() 435 tmin = DIV_ROUND_UP(100 * coeff, ui_x8) - 1; in msm_dsi_dphy_timing_calc_v4() 443 tmin = DIV_ROUND_UP(temp, 16 * ui) - 1; in msm_dsi_dphy_timing_calc_v4() 453 tmin = DIV_ROUND_UP(temp, 16 * ui) - 1; in msm_dsi_dphy_timing_calc_v4() 487 tmin = DIV_ROUND_UP(50 * coeff, ui_x7); in msm_dsi_cphy_timing_calc_v4() [all …]
|
/linux/drivers/i3c/master/ |
A D | dw-i3c-master.c | 528 core_period = DIV_ROUND_UP(1000000000, core_rate); in dw_i3c_clk_cfg() 530 hcnt = DIV_ROUND_UP(I3C_BUS_THIGH_MAX_NS, core_period) - 1; in dw_i3c_clk_cfg() 544 lcnt = DIV_ROUND_UP(I3C_BUS_TLOW_OD_MIN_NS, core_period); in dw_i3c_clk_cfg() 548 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR1_SCL_RATE) - hcnt; in dw_i3c_clk_cfg() 550 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR2_SCL_RATE) - hcnt; in dw_i3c_clk_cfg() 552 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR3_SCL_RATE) - hcnt; in dw_i3c_clk_cfg() 571 core_period = DIV_ROUND_UP(1000000000, core_rate); in dw_i2c_clk_cfg() 841 nrxwords += DIV_ROUND_UP(i3c_xfers[i].len, 4); in dw_i3c_master_priv_xfers() 843 ntxwords += DIV_ROUND_UP(i3c_xfers[i].len, 4); in dw_i3c_master_priv_xfers() 985 nrxwords += DIV_ROUND_UP(i2c_xfers[i].len, 4); in dw_i3c_master_i2c_xfers() [all …]
|