/linux-master/drivers/spi/ |
H A D | spi-orion.c | 161 unsigned divider = DIV_ROUND_UP(tclk_hz, speed); 211 rate = DIV_ROUND_UP(tclk_hz, speed); 718 DIV_ROUND_UP(tclk_hz, devdata->min_divisor)); 721 DIV_ROUND_UP(tclk_hz, devdata->min_divisor); 724 host->min_speed_hz = DIV_ROUND_UP(tclk_hz, devdata->max_divisor);
|
H A D | spi-uniphier.c | 208 ckdiv = DIV_ROUND_UP(clk_get_rate(priv->clk), speed); 322 fifo_threshold = DIV_ROUND_UP(priv->rx_bytes, bpw); 328 DIV_ROUND_UP(priv->rx_bytes - priv->tx_bytes, bpw); 361 return DIV_ROUND_UP(t->len, bpw) > SSI_FIFO_DEPTH; 548 threshold = DIV_ROUND_UP(SSI_POLL_TIMEOUT_US * priv->speed_hz, 697 host->max_speed_hz = DIV_ROUND_UP(clk_rate, SSI_MIN_CLK_DIVIDER); 698 host->min_speed_hz = DIV_ROUND_UP(clk_rate, SSI_MAX_CLK_DIVIDER);
|
/linux-master/drivers/firewire/ |
H A D | core-card.c | 240 delayed ? DIV_ROUND_UP(HZ, 100) : 0)) 337 card->reset_jiffies + DIV_ROUND_UP(HZ, 8)); 404 fw_schedule_bm_work(card, DIV_ROUND_UP(HZ, 8)); 428 fw_schedule_bm_work(card, DIV_ROUND_UP(HZ, 8)); 564 DIV_ROUND_UP(DEFAULT_SPLIT_TIMEOUT * HZ, 8000);
|
/linux-master/drivers/vfio/pci/pds/ |
H A D | dirty.c | 154 max_sge = DIV_ROUND_UP(page_count, PAGE_SIZE * 8); 303 page_count = DIV_ROUND_UP(region_size, region_page_size); 546 pages = DIV_ROUND_UP(length, region->page_size); 562 bmp_bytes = ALIGN(DIV_ROUND_UP(length / region->page_size, 578 bmp_offset = DIV_ROUND_UP((iova - region->start) /
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | vlv_dsi.c | 56 return DIV_ROUND_UP(DIV_ROUND_UP(pixels * bpp * burst_mode_ratio, 64 return DIV_ROUND_UP((clk_hs * lane_count * 8 * 100), 1635 intel_dsi->lp_byte_clk = DIV_ROUND_UP(tlpx_ns * ui_den, 8 * ui_num); 1651 prepare_cnt = DIV_ROUND_UP(ths_prepare_ns * ui_den, ui_num * mul); 1660 exit_zero_cnt = DIV_ROUND_UP( 1681 clk_zero_cnt = DIV_ROUND_UP( 1693 trail_cnt = DIV_ROUND_UP(tclk_trail_ns * ui_den, ui_num * mul); 1715 tlpx_ui = DIV_ROUND_UP(tlpx_ns * ui_den, ui_num); 1720 lp_to_hs_switch = DIV_ROUND_UP( [all...] |
H A D | intel_vblank.c | 94 vbl_start = DIV_ROUND_UP(vbl_start, 2); 326 vbl_start = DIV_ROUND_UP(vbl_start, 2); 591 vblank_start = DIV_ROUND_UP(vblank_start, 2);
|
/linux-master/drivers/net/wireless/ath/ath5k/ |
H A D | pcu.c | 148 bitrate = DIV_ROUND_UP(bitrate, 2); 154 bitrate = DIV_ROUND_UP(bitrate, 4); 164 symbols = DIV_ROUND_UP(bits * 10, symbol_bits);
|
/linux-master/drivers/regulator/ |
H A D | da9052-regulator.c | 192 DIV_ROUND_UP(min_uV - DA9052_CONST_3uV, 195 sel = DIV_ROUND_UP(min_uV - info->min_uV, info->step_uV); 253 ret = DIV_ROUND_UP(abs(new_sel - old_sel) * info->step_uV,
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | txrx.h | 19 #define MLX5E_MAX_TX_IPSEC_DS DIV_ROUND_UP(sizeof(struct mlx5_wqe_inline_seg) + \ 25 #define MLX5E_MAX_TX_INLINE_DS DIV_ROUND_UP(366 - INL_HDR_START_SZ + VLAN_HLEN, \ 29 #define MLX5E_MAX_TX_WQEBBS DIV_ROUND_UP(MLX5E_TX_WQE_EMPTY_DS_COUNT + \
|
/linux-master/drivers/gpu/drm/stm/ |
H A D | dw_mipi_dsi-stm.c | 304 #define DSI_PHY_DELAY(fp, vp, mbps) DIV_ROUND_UP((fp) * (mbps) + 1000 * (vp), 8000) 384 dsi_short_packet_size_px = DIV_ROUND_UP(4 * BITS_PER_BYTE, bpp); 413 delay_to_lp = DIV_ROUND_UP((dphy_timing.data_hs2lp + dphy_timing.data_lp2hs) *
|
/linux-master/drivers/media/platform/qcom/venus/ |
H A D | helpers.c | 971 y_meta_stride = ALIGN(DIV_ROUND_UP(width, 32), 64); 972 y_meta_plane = y_meta_stride * ALIGN(DIV_ROUND_UP(height, 8), 16); 978 uv_meta_stride = ALIGN(DIV_ROUND_UP(width / 2, 16), 64); 979 uv_meta_plane = uv_meta_stride * ALIGN(DIV_ROUND_UP(height / 2, 8), 16); 1019 y_meta_stride = ALIGN(DIV_ROUND_UP(width, 32), 64); 1020 y_meta_scanlines = ALIGN(DIV_ROUND_UP(height, 4), 16); 1022 uv_meta_stride = ALIGN(DIV_ROUND_UP((width + 1) >> 1, 16), 64); 1023 uv_meta_scanlines = ALIGN(DIV_ROUND_UP((height + 1) >> 1, 4), 16); 1048 y_meta_stride = ALIGN(DIV_ROUND_UP(width, 48), 64); 1049 y_meta_scanlines = ALIGN(DIV_ROUND_UP(heigh [all...] |
/linux-master/fs/erofs/ |
H A D | decompressor.c | 13 #define LZ4_MAX_DISTANCE_PAGES (DIV_ROUND_UP(LZ4_DISTANCE_MAX, PAGE_SIZE) + 1) 55 DIV_ROUND_UP(distance, PAGE_SIZE) + 1 : 69 unsigned long bounced[DIV_ROUND_UP(LZ4_MAX_DISTANCE_PAGES,
|
/linux-master/drivers/devfreq/ |
H A D | rk3399_dmc.c | 124 DIV_ROUND_UP(NS_TO_CYCLE(dmcfreq->sr_idle_ns, 128 DIV_ROUND_UP(NS_TO_CYCLE(dmcfreq->sr_mc_gate_idle_ns, 132 DIV_ROUND_UP(NS_TO_CYCLE(dmcfreq->srpd_lite_idle_ns,
|
/linux-master/drivers/i2c/busses/ |
H A D | i2c-bcm2835.c | 93 u32 divider = DIV_ROUND_UP(parent_rate, rate); 145 return DIV_ROUND_UP(*parent_rate, divider); 154 return DIV_ROUND_UP(parent_rate, divider);
|
/linux-master/drivers/net/wireless/ath/ath9k/ |
H A D | common-beacon.c | 85 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval);
|
/linux-master/sound/firewire/ |
H A D | iso-resources.c | 59 s400_bytes = DIV_ROUND_UP(bytes, 1 << (speed - SCODE_400));
|
/linux-master/drivers/clocksource/ |
H A D | timer-keystone.c | 192 timer.hz_period = DIV_ROUND_UP(rate, HZ);
|
H A D | timer-digicolor.c | 178 dc_timer_dev.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ);
|
/linux-master/drivers/clk/tegra/ |
H A D | clk-divider.c | 77 return DIV_ROUND_UP(output_rate * mul, div + mul);
|
H A D | cvb.c | 34 uv = DIV_ROUND_UP(uv, step) * align->step_uv + align->offset_uv;
|
/linux-master/drivers/gpu/drm/radeon/ |
H A D | evergreen_dma.c | 123 num_loops = DIV_ROUND_UP(size_in_dw, 0xfffff);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
H A D | nv30.c | 52 u32 tiles = DIV_ROUND_UP(size, 0x40);
|
/linux-master/lib/ |
H A D | linear_ranges.c | 238 *selector = DIV_ROUND_UP(val - r->min, r->step) + r->min_sel;
|
/linux-master/fs/nfs/ |
H A D | nfs4session.h | 38 #define SLOT_TABLE_SZ DIV_ROUND_UP(NFS4_MAX_SLOT_TABLE, BITS_PER_LONG)
|
/linux-master/drivers/staging/fbtft/ |
H A D | fb_sh1106.c | 120 page_end = DIV_ROUND_UP(offset + len, 8 * 2 * xres);
|