| /OK3568_Linux_fs/u-boot/drivers/ddr/microchip/ |
| H A D | ddr2.c | 106 hc_delay = max_t(u32, DIV_ROUND_UP(delay, T_CK), 2) - 2; in host_load_cmd() 139 writel(REFCNT_CLK(DIV_ROUND_UP(T_RFI, T_CK_CTRL) - 2) | in ddr2_ctrl_init() 140 REFDLY_CLK(DIV_ROUND_UP(T_RFC_MIN, T_CK_CTRL) - 2) | in ddr2_ctrl_init() 151 wr2rd = max_t(u32, DIV_ROUND_UP(T_WTR, T_CK_CTRL), in ddr2_ctrl_init() 152 DIV_ROUND_UP(T_WTR_TCK, 2)) + WL + BL; in ddr2_ctrl_init() 154 wr2prech = DIV_ROUND_UP(T_WR, T_CK_CTRL) + WL + BL; in ddr2_ctrl_init() 155 rd2prech = max_t(u32, DIV_ROUND_UP(T_RTP, T_CK_CTRL), in ddr2_ctrl_init() 156 DIV_ROUND_UP(T_RTP_TCK, 2)) + BL - 2; in ddr2_ctrl_init() 157 ras2ras = max_t(u32, DIV_ROUND_UP(T_RRD, T_CK_CTRL), in ddr2_ctrl_init() 158 DIV_ROUND_UP(T_RRD_TCK, 2)) - 1; in ddr2_ctrl_init() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-rockchip/ |
| H A D | rkpm_gicv2.h | 10 u32 saved_spi_target[DIV_ROUND_UP(1020, 4)]; 11 u32 saved_spi_prio[DIV_ROUND_UP(1020, 4)]; 12 u32 saved_spi_conf[DIV_ROUND_UP(1020, 16)]; 13 u32 saved_spi_grp[DIV_ROUND_UP(1020, 32)]; 14 u32 saved_spi_active[DIV_ROUND_UP(1020, 32)]; 15 u32 saved_spi_enable[DIV_ROUND_UP(1020, 32)]; 22 u32 saved_ppi_conf[DIV_ROUND_UP(32, 16)]; 23 u32 saved_ppi_prio[DIV_ROUND_UP(32, 4)];
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/selftests/ |
| H A D | test-drm_framebuffer.c | 187 .handles = { 1, 1, 1 }, .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), 188 DIV_ROUND_UP(MAX_WIDTH, 2) }, 193 .handles = { 1, 1, 1 }, .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2) - 1, 194 DIV_ROUND_UP(MAX_WIDTH, 2) }, 199 .handles = { 1, 1, 1 }, .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2) + 1, 200 DIV_ROUND_UP(MAX_WIDTH, 2) + 7 }, 207 .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2) + 1, DIV_ROUND_UP(MAX_WIDTH, 2) + 7 }, 213 .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, 219 .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, 226 .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-imx/mx6/ |
| H A D | ddr.c | 1001 trfc = DIV_ROUND_UP(130000, clkper) - 1; in mx6_lpddr2_cfg() 1002 txsr = DIV_ROUND_UP(140000, clkper) - 1; in mx6_lpddr2_cfg() 1005 trfc = DIV_ROUND_UP(210000, clkper) - 1; in mx6_lpddr2_cfg() 1006 txsr = DIV_ROUND_UP(220000, clkper) - 1; in mx6_lpddr2_cfg() 1018 txp = DIV_ROUND_UP(7500, clkper) - 1; in mx6_lpddr2_cfg() 1021 tfaw = DIV_ROUND_UP(60000, clkper) - 1; in mx6_lpddr2_cfg() 1023 tfaw = DIV_ROUND_UP(50000, clkper) - 1; in mx6_lpddr2_cfg() 1024 trrd = DIV_ROUND_UP(10000, clkper) - 1; in mx6_lpddr2_cfg() 1027 tcksre = DIV_ROUND_UP(15000, clkper); in mx6_lpddr2_cfg() 1029 twr = DIV_ROUND_UP(15000, clkper) - 1; in mx6_lpddr2_cfg() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/s5p-mfc/ |
| H 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)
|
| H 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))
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | rcu_node_tree.h | 62 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) 70 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2) 71 # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) 79 # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_3) 80 # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2) 81 # define NUM_RCU_LVL_3 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1)
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | smiapp-pll.c | 198 DIV_ROUND_UP(limits->max_pll_multiplier, mul)); in __smiapp_pll_calculate() 203 more_mul_min = DIV_ROUND_UP(limits->min_pll_op_freq_hz, in __smiapp_pll_calculate() 210 DIV_ROUND_UP(limits->min_pll_multiplier, mul)); in __smiapp_pll_calculate() 286 min_vt_div = DIV_ROUND_UP(op_pll->pix_clk_div * op_pll->sys_clk_div in __smiapp_pll_calculate() 294 DIV_ROUND_UP(pll->pll_op_clk_freq_hz, in __smiapp_pll_calculate() 306 DIV_ROUND_UP(pll->pll_op_clk_freq_hz, in __smiapp_pll_calculate() 318 DIV_ROUND_UP(min_vt_div, in __smiapp_pll_calculate() 331 DIV_ROUND_UP(max_vt_div, in __smiapp_pll_calculate() 335 DIV_ROUND_UP(pll->pll_op_clk_freq_hz, in __smiapp_pll_calculate() 349 uint16_t pix_div = DIV_ROUND_UP(vt_div, sys_div); in __smiapp_pll_calculate() [all …]
|
| H 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()
|
| /OK3568_Linux_fs/u-boot/drivers/video/drm/ |
| H A D | drm_dsc.c | 261 groups_per_line = DIV_ROUND_UP(vdsc_cfg->slice_width / 2, in drm_dsc_compute_rc_parameters() 265 vdsc_cfg->slice_chunk_size = DIV_ROUND_UP(vdsc_cfg->slice_width / 2 * in drm_dsc_compute_rc_parameters() 270 groups_per_line = DIV_ROUND_UP(vdsc_cfg->slice_width, in drm_dsc_compute_rc_parameters() 274 vdsc_cfg->slice_chunk_size = DIV_ROUND_UP(vdsc_cfg->slice_width * in drm_dsc_compute_rc_parameters() 325 vdsc_cfg->nfl_bpg_offset = DIV_ROUND_UP((vdsc_cfg->first_line_bpg_offset << 11), in drm_dsc_compute_rc_parameters() 334 vdsc_cfg->slice_bpg_offset = DIV_ROUND_UP(((vdsc_cfg->rc_model_size - in drm_dsc_compute_rc_parameters() 365 DIV_ROUND_UP(vdsc_cfg->initial_xmit_delay * in drm_dsc_compute_rc_parameters() 369 hrd_delay = DIV_ROUND_UP((rbs_min * 16), vdsc_cfg->bits_per_pixel); in drm_dsc_compute_rc_parameters()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/ |
| H A D | drm_dsc.c | 268 groups_per_line = DIV_ROUND_UP(vdsc_cfg->slice_width / 2, in drm_dsc_compute_rc_parameters() 272 vdsc_cfg->slice_chunk_size = DIV_ROUND_UP(vdsc_cfg->slice_width / 2 * in drm_dsc_compute_rc_parameters() 277 groups_per_line = DIV_ROUND_UP(vdsc_cfg->slice_width, in drm_dsc_compute_rc_parameters() 281 vdsc_cfg->slice_chunk_size = DIV_ROUND_UP(vdsc_cfg->slice_width * in drm_dsc_compute_rc_parameters() 332 vdsc_cfg->nfl_bpg_offset = DIV_ROUND_UP((vdsc_cfg->first_line_bpg_offset << 11), in drm_dsc_compute_rc_parameters() 341 vdsc_cfg->slice_bpg_offset = DIV_ROUND_UP(((vdsc_cfg->rc_model_size - in drm_dsc_compute_rc_parameters() 372 DIV_ROUND_UP(vdsc_cfg->initial_xmit_delay * in drm_dsc_compute_rc_parameters() 376 hrd_delay = DIV_ROUND_UP((rbs_min * 16), vdsc_cfg->bits_per_pixel); in drm_dsc_compute_rc_parameters()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/ |
| H A D | rk_meta.c | 79 if (info->read(info, sector, DIV_ROUND_UP(MAX_META_SEGMENT_SIZE, info->bl_len), data) in spl_load_meta() 80 != DIV_ROUND_UP(MAX_META_SEGMENT_SIZE, info->bl_len)) { in spl_load_meta() 98 DIV_ROUND_UP(meta_iq_item_size, info->bl_len), data) in spl_load_meta() 99 != DIV_ROUND_UP(meta_iq_item_size, info->bl_len)) { in spl_load_meta() 116 DIV_ROUND_UP(meta_iq_item_size, info->bl_len), in spl_load_meta() 118 != DIV_ROUND_UP(meta_iq_item_size, info->bl_len)) { in spl_load_meta()
|
| /OK3568_Linux_fs/kernel/drivers/ssb/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/drivers/ide/ |
| H A D | palm_bk3710.c | 72 t0 = DIV_ROUND_UP(palm_bk3710_udmatimings[mode].cycletime, in palm_bk3710_setudmamode() 74 tenv = DIV_ROUND_UP(20, ideclk_period) - 1; in palm_bk3710_setudmamode() 75 trp = DIV_ROUND_UP(palm_bk3710_udmatimings[mode].rptime, in palm_bk3710_setudmamode() 112 t0 = DIV_ROUND_UP(cycletime, ideclk_period); in palm_bk3710_setdmamode() 113 td = DIV_ROUND_UP(t->active, ideclk_period); in palm_bk3710_setdmamode() 141 t0 = DIV_ROUND_UP(cycletime, ideclk_period); in palm_bk3710_setpiomode() 142 t2 = DIV_ROUND_UP(t->active, ideclk_period); in palm_bk3710_setpiomode() 163 t0 = DIV_ROUND_UP(t->cyc8b, ideclk_period); in palm_bk3710_setpiomode() 164 t2 = DIV_ROUND_UP(t->act8b, ideclk_period); in palm_bk3710_setpiomode()
|
| /OK3568_Linux_fs/kernel/drivers/ata/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/drivers/memory/ |
| H A D | emif.c | 395 val = max(min_tck->tWTR, DIV_ROUND_UP(timings->tWTR, t_ck)) - 1; in get_sdram_tim_1_shdw() 399 val = DIV_ROUND_UP(timings->tFAW, t_ck*4); in get_sdram_tim_1_shdw() 401 val = max(min_tck->tRRD, DIV_ROUND_UP(timings->tRRD, t_ck)); in get_sdram_tim_1_shdw() 404 val = DIV_ROUND_UP(timings->tRAS_min + timings->tRPab, t_ck) - 1; in get_sdram_tim_1_shdw() 407 val = max(min_tck->tRASmin, DIV_ROUND_UP(timings->tRAS_min, t_ck)); in get_sdram_tim_1_shdw() 410 val = max(min_tck->tWR, DIV_ROUND_UP(timings->tWR, t_ck)) - 1; in get_sdram_tim_1_shdw() 413 val = max(min_tck->tRCD, DIV_ROUND_UP(timings->tRCD, t_ck)) - 1; in get_sdram_tim_1_shdw() 416 val = max(min_tck->tRPab, DIV_ROUND_UP(timings->tRPab, t_ck)) - 1; in get_sdram_tim_1_shdw() 428 val = max(min_tck->tWTR, DIV_ROUND_UP(timings->tWTR, t_ck)) - 1; in get_sdram_tim_1_shdw_derated() 436 val = DIV_ROUND_UP(timings->tFAW + 7500, 4 * t_ck) - 1; in get_sdram_tim_1_shdw_derated() [all …]
|
| /OK3568_Linux_fs/kernel/tools/include/linux/ |
| H 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))
|
| /OK3568_Linux_fs/u-boot/drivers/clk/rockchip/ |
| H A D | clk_rk3562.c | 242 div = DIV_ROUND_UP(priv->cpll_hz, rate); in rk3562_bus_set_rate() 245 div = DIV_ROUND_UP(priv->gpll_hz, rate); in rk3562_bus_set_rate() 316 div = DIV_ROUND_UP(priv->cpll_hz, rate); in rk3562_peri_set_rate() 319 div = DIV_ROUND_UP(priv->gpll_hz, rate); in rk3562_peri_set_rate() 410 div = DIV_ROUND_UP(200 * MHz, rate); in rk3562_i2c_set_rate() 530 div = DIV_ROUND_UP(priv->cpll_hz, rate); in rk3562_uart_set_rate() 588 div = DIV_ROUND_UP(priv->gpll_hz, rate); in rk3562_uart_set_rate() 592 div = DIV_ROUND_UP(priv->cpll_hz, rate); in rk3562_uart_set_rate() 687 div = DIV_ROUND_UP(200 * MHz, rate); in rk3562_pwm_set_rate() 787 div = DIV_ROUND_UP(200 * MHz, rate); in rk3562_spi_set_rate() [all …]
|
| H A D | clk_rv1108.c | 158 div = DIV_ROUND_UP(pll_rate, rate) - 1; in rv1108_mac_set_clk() 179 div = DIV_ROUND_UP(pll_rate, rate) - 1; in rv1108_sfc_set_clk() 204 src_clk_div = DIV_ROUND_UP(OSC_HZ, hz) - 1; in rv1108_saradc_set_clk() 229 src_clk_div = DIV_ROUND_UP(GPLL_HZ, hz) - 1; in rv1108_aclk_vio1_set_clk() 255 src_clk_div = DIV_ROUND_UP(GPLL_HZ, hz) - 1; in rv1108_aclk_vio0_set_clk() 290 src_clk_div = DIV_ROUND_UP(GPLL_HZ, hz) - 1; in rv1108_dclk_vop_set_clk() 320 src_clk_div = DIV_ROUND_UP(parent_rate, hz) - 1; in rv1108_aclk_bus_set_clk() 372 src_clk_div = DIV_ROUND_UP(parent_rate, hz) - 1; in rv1108_aclk_peri_set_clk() 388 src_clk_div = DIV_ROUND_UP(parent_rate, hz) - 1; in rv1108_hclk_peri_set_clk() 403 src_clk_div = DIV_ROUND_UP(parent_rate, hz) - 1; in rv1108_pclk_peri_set_clk() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/irqchip/ |
| H 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)]; 591 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 16); i++) in gic_dist_save() 595 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) in gic_dist_save() 599 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) in gic_dist_save() 603 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) in gic_dist_save() 632 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 16); i++) in gic_dist_restore() 636 for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) in gic_dist_restore() [all …]
|
| /OK3568_Linux_fs/kernel/lib/dim/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/allegro-dvt/ |
| H A D | nal-h264.c | 435 u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); in nal_h264_write_start_code_prefix() 438 if (DIV_ROUND_UP(rbsp->pos, 8) + i > rbsp->size) { in nal_h264_write_start_code_prefix() 453 u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); in nal_h264_read_start_code_prefix() 456 if (DIV_ROUND_UP(rbsp->pos, 8) + i > rbsp->size) { in nal_h264_read_start_code_prefix() 471 u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); in nal_h264_write_filler_data() 475 i = rbsp->size - DIV_ROUND_UP(rbsp->pos, 8) - 1; in nal_h264_write_filler_data() 482 u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); in nal_h264_read_filler_data() 485 if (DIV_ROUND_UP(rbsp->pos, 8) > rbsp->size) { in nal_h264_read_filler_data() 775 return DIV_ROUND_UP(rbsp.pos, 8); in nal_h264_write_sps() 822 return DIV_ROUND_UP(rbsp.pos, 8); in nal_h264_read_sps() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/i2c/ |
| H A D | rk_i2c.c | 111 *divh = DIV_ROUND_UP(div, 2); in rk_i2c_get_div() 127 div = DIV_ROUND_UP(i2c_rate, scl_rate * 8) - 2; in rk_i2c_set_clk() 166 i2c_rate = DIV_ROUND_UP(i2c_rate, 1000); in rk_i2c_adapter_clk() 167 speed = DIV_ROUND_UP(scl_rate, 1000); in rk_i2c_adapter_clk() 169 min_total_div = DIV_ROUND_UP(i2c_rate, speed * 8); in rk_i2c_adapter_clk() 172 min_high_div = DIV_ROUND_UP(i2c_rate * min_high_ns, 8 * 1000000); in rk_i2c_adapter_clk() 175 min_low_div = DIV_ROUND_UP(i2c_rate * min_low_ns, 8 * 1000000); in rk_i2c_adapter_clk() 187 extra_low_div = DIV_ROUND_UP(min_low_div * extra_div, in rk_i2c_adapter_clk() 322 words_xferred = DIV_ROUND_UP(bytes_xferred, 4); in rk_i2c_read() 402 words_xferred = DIV_ROUND_UP(bytes_xferred, 4); in rk_i2c_write()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mscc/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-omap2/ |
| H 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()
|