/device/soc/rockchip/common/sdk_linux/drivers/i2c/busses/ |
H A D | i2c-rk3x.c | 666 min_high_ns = max(min_high_ns, DIV_ROUND_UP((t->scl_rise_ns + spec->min_setup_start_ns) * RK_I2C_BUS_FREQ_MIN,
in rk3x_i2c_v0_calc_timings() 669 max(min_high_ns, DIV_ROUND_UP((t->scl_rise_ns + spec->min_setup_start_ns + t->sda_fall_ns + spec->min_high_ns),
in rk3x_i2c_v0_calc_timings() 677 clk_rate_khz = DIV_ROUND_UP(clk_rate, RK_I2C_BUS_FREQ_MIN);
in rk3x_i2c_v0_calc_timings() 684 min_total_div = DIV_ROUND_UP(clk_rate_khz, scl_rate_khz * RK_I2C_SCL_RATE_HZ_MUL);
in rk3x_i2c_v0_calc_timings() 687 min_low_div = DIV_ROUND_UP(clk_rate_khz * min_low_ns, RK_I2C_SCL_RATE_HZ_MUL * RK_I2C_SCL_RATE_HZ_VALUE);
in rk3x_i2c_v0_calc_timings() 688 min_high_div = DIV_ROUND_UP(clk_rate_khz * min_high_ns, RK_I2C_SCL_RATE_HZ_MUL * RK_I2C_SCL_RATE_HZ_VALUE);
in rk3x_i2c_v0_calc_timings() 720 ideal_low_div = DIV_ROUND_UP(clk_rate_khz * min_low_ns, scl_rate_khz * RK_I2C_SCL_RATE_HZ_MUL * min_total_ns);
in rk3x_i2c_v0_calc_timings() 828 clk_rate_khz = DIV_ROUND_UP(clk_rate, RK_I2C_BUS_FREQ_MIN);
in rk3x_i2c_v1_calc_timings() 830 min_total_div = DIV_ROUND_UP(clk_rate_khz, scl_rate_khz * RK_I2C_SCL_RATE_HZ_MUL);
in rk3x_i2c_v1_calc_timings() 833 min_high_div = DIV_ROUND_UP(clk_rate_kh in rk3x_i2c_v1_calc_timings() [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/phy/rockchip/ |
H A D | phy-rockchip-inno-dsidphy.c | 333 min_prediv = DIV_ROUND_UP(fref, FREF_DIV_ROUND_UP_A);
in inno_dsidphy_pll_calc_rate() 453 esc_clk_div = DIV_ROUND_UP(txbyteclkhs, TXBYTECLKHS_DIV_ROUND_UP_A);
in inno_mipi_dphy_timing_init() 461 hs_exit = DIV_ROUND_UP(cfg->hs_exit, t_txbyteclkhs);
in inno_mipi_dphy_timing_init() 466 clk_post = DIV_ROUND_UP(cfg->clk_post, t_txbyteclkhs);
in inno_mipi_dphy_timing_init() 471 clk_pre = DIV_ROUND_UP(cfg->clk_pre, t_txbyteclkhs);
in inno_mipi_dphy_timing_init() 477 ta_go = DIV_ROUND_UP(cfg->ta_go, t_txclkesc);
in inno_mipi_dphy_timing_init() 483 ta_sure = DIV_ROUND_UP(cfg->ta_sure, t_txclkesc);
in inno_mipi_dphy_timing_init() 489 ta_wait = DIV_ROUND_UP(cfg->ta_get, t_txclkesc);
in inno_mipi_dphy_timing_init() 497 lpx = DIV_ROUND_UP(cfg->lpx, t_txbyteclkhs);
in inno_mipi_dphy_timing_init()
|
/device/soc/rockchip/common/hardware/display/src/display_gralloc/ |
H A D | hi_gbm_internal.h | 19 #define DIV_ROUND_UP(n, d) (((n) + (d)-1) / (d)) macro
|
H A D | hi_gbm.c | 115 tmpHeight = DIV_ROUND_UP((height * sum), fmtInfo->planes->radio[0]); in AdjustStrideFromFormat()
|
/device/soc/rockchip/rk3399/hardware/display/src/display_gralloc/ |
H A D | hi_gbm_internal.h | 19 #define DIV_ROUND_UP(n, d) (((n) + (d)-1) / (d)) macro
|
H A D | hi_gbm.c | 105 tmpHeight = DIV_ROUND_UP((height * sum), fmtInfo->planes->radio[0]); in AdjustStrideFromFormat()
|
/device/soc/rockchip/rk3566/hardware/display/src/display_gralloc/ |
H A D | hi_gbm_internal.h | 22 #define DIV_ROUND_UP(n, d) (((n) + (d)-1) / (d)) macro
|
H A D | hi_gbm.cpp | 109 tmpHeight = DIV_ROUND_UP((height * sum), fmtInfo->planes->radio[0]); in AdjustStrideFromFormat()
|
/device/soc/rockchip/rk3568/hardware/display/src/display_gralloc/ |
H A D | hi_gbm_internal.h | 22 #define DIV_ROUND_UP(n, d) (((n) + (d)-1) / (d)) macro
|
H A D | hi_gbm.cpp | 109 tmpHeight = DIV_ROUND_UP((height * sum), fmtInfo->planes->radio[0]); in AdjustStrideFromFormat()
|
/device/soc/rockchip/rk3588/hardware/display/src/display_gralloc/ |
H A D | hi_gbm_internal.h | 22 #define DIV_ROUND_UP(n, d) (((n) + (d)-1) / (d))
macro
|
H A D | hi_gbm.cpp | 109 tmpHeight = DIV_ROUND_UP((height * sum), fmtInfo->planes->radio[0]); in AdjustStrideFromFormat()
|
/device/qemu/riscv32_virt/liteos_m/board/hardware/display/ |
H A D | display_gralloc.c | 32 #define DIV_ROUND_UP(n, d) (((n) + (d)-1) / (d)) macro 96 width = DIV_ROUND_UP((width * sum), fmtInfo->planes->radio[0]); in AdjustStrideFromFormat()
|
/device/soc/rockchip/common/sdk_linux/drivers/clk/rockchip/ |
H A D | clk-half-divider.c | 53 bestdiv = DIV_ROUND_UP(bestdiv - 0x3, 0x2); in clk_half_divider_bestdiv() 105 value = DIV_ROUND_UP(value - 0x3, 0x2); in clk_half_divider_set_rate()
|
/device/qemu/riscv32_virt/liteos_m/board/driver/ |
H A D | virtinput.c | 211 len = DIV_ROUND_UP(HDF_KEY_CNT, BYTE_HAS_BITS); in VirtinFillHidCodeBitmap() 215 len = DIV_ROUND_UP(HDF_REL_CNT, BYTE_HAS_BITS); in VirtinFillHidCodeBitmap() 219 len = DIV_ROUND_UP(HDF_ABS_CNT, BYTE_HAS_BITS); in VirtinFillHidCodeBitmap()
|
/device/qemu/drivers/virtio/ |
H A D | virtinput.c | 222 len = DIV_ROUND_UP(HDF_KEY_CNT, BYTE_HAS_BITS); in VirtinFillHidCodeBitmap() 226 len = DIV_ROUND_UP(HDF_REL_CNT, BYTE_HAS_BITS); in VirtinFillHidCodeBitmap() 230 len = DIV_ROUND_UP(HDF_ABS_CNT, BYTE_HAS_BITS); in VirtinFillHidCodeBitmap()
|
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/ |
H A D | dw-mipi-dsi-rockchip.c | 375 return DIV_ROUND_UP(ns * dsi->lane_mbps / 0x8, 0x3e8); in ns2bc() 383 return DIV_ROUND_UP(ns * dsi->lane_mbps, 0x3e8); in ns2ui() 537 mpclk = DIV_ROUND_UP(mode->clock, MSEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps() 565 dsi->lane_mbps = DIV_ROUND_UP(hs_clk_rate, USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps() 575 min_prediv = DIV_ROUND_UP(fin, 0x28 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps() 616 dsi->lane_mbps = DIV_ROUND_UP(best_freq, USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
|
H A D | rockchip_drm_fbdev.c | 49 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 0x8); in rockchip_drm_fbdev_create()
|
/device/soc/rockchip/common/sdk_linux/kernel/power/ |
H A D | snapshot.c | 527 nr_blocks = DIV_ROUND_UP(pages, BM_BITS_PER_BLOCK); in create_zone_bm_rtree() 1202 rtree = nodes = DIV_ROUND_UP(zone->spanned_pages, BM_BITS_PER_BLOCK); in snapshot_additional_pages() 1203 rtree += DIV_ROUND_UP(rtree * sizeof(struct rtree_node), LINKED_PAGE_DATA_SIZE); in snapshot_additional_pages() 1205 nodes = DIV_ROUND_UP(nodes, BM_ENTRIES_PER_LEVEL); in snapshot_additional_pages() 1732 * + 2 * DIV_ROUND_UP(reserved_size, PAGE_SIZE) 1793 max_size = (count - (size + PAGES_FOR_IO)) / SNAPSHOT_TWO - SNAPSHOT_TWO * DIV_ROUND_UP(reserved_size, PAGE_SIZE); in hibernate_preallocate_memory() 1795 size = DIV_ROUND_UP(image_size, PAGE_SIZE); in hibernate_preallocate_memory() 2064 nr_meta_pages = DIV_ROUND_UP(nr_pages * sizeof(long), PAGE_SIZE); in swsusp_save() 2572 nr_pages = DIV_ROUND_UP(nr_pages, PBES_PER_LINKED_PAGE); in prepare_image()
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/ |
H A D | regs.c | 209 u32 left_y = DIV_ROUND_UP(scl_w * 65536, scale_hy); in set_scale() 210 u32 left_c = DIV_ROUND_UP(scl_w * 65536 / 2, scale_hc); in set_scale()
|
/device/soc/rockchip/common/sdk_linux/drivers/mmc/host/ |
H A D | dw_mmc-rockchip.c | 154 #define TUNING_ITERATION_TO_PHASE(i, num_phases) (DIV_ROUND_UP((i)*RK_THREE_HUNDRED_SIXTY_DEGREE_PHASE, num_phases))
257 i += DIV_ROUND_UP(RK3288_PHASE_MUL * priv->num_phases, RK_THREE_HUNDRED_SIXTY_DEGREE_PHASE);
in dw_mci_rk3288_execute_tuning()
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/ |
H A D | regs.c | 236 u32 left_y = DIV_ROUND_UP(scl_w * 65536, scale_hy); in set_scale() 237 u32 left_c = DIV_ROUND_UP(scl_w * 65536 / 2, scale_hc); in set_scale()
|
/device/soc/rockchip/rk3588/kernel/drivers/phy/rockchip/ |
H A D | phy-rockchip-samsung-dcphy.c | 1455 min_prediv = DIV_ROUND_UP(fin, 30); in samsung_mipi_dcphy_pll_round_rate() 1469 _dsm = DIV_ROUND_UP(_dsm << 15, fin); in samsung_mipi_dcphy_pll_round_rate() 1707 max_mfr = DIV_ROUND_UP(fin, (20 * prediv) << 5); in samsung_mipi_dcphy_pll_ssc_modulation_calc() 1716 mr = DIV_ROUND_UP(_mfr * _mrr * 100, fbdiv << 6); in samsung_mipi_dcphy_pll_ssc_modulation_calc()
|
/device/qemu/hardware/display/ |
H A D | display_gralloc.c | 35 #define DIV_ROUND_UP(n, d) (((n) + (d)-1) / (d)) macro 99 width = DIV_ROUND_UP((width * sum), fmtInfo->planes->radio[0]); in AdjustStrideFromFormat()
|
/device/soc/rockchip/common/vendor/drivers/clk/ |
H A D | clk-pvtm.c | 138 div = DIV_ROUND_UP(0x3e8 * pvtm_cnt, pvtm->rate); in rockchip_clock_pvtm_init_freq()
|