/linux-master/drivers/net/mdio/ |
H A D | mdio-ipq4019.c | 236 if (priv->mdc_rate == DIV_ROUND_UP(ahb_rate, div)) { 307 priv->mdc_rate = DIV_ROUND_UP(ahb_rate, div + 1); 319 if (DIV_ROUND_UP(ahb_rate, div) > 2500000) 322 priv->mdc_rate = DIV_ROUND_UP(ahb_rate, div);
|
/linux-master/include/crypto/internal/ |
H A D | ecc.h | 37 #define ECC_MAX_DIGITS DIV_ROUND_UP(521, 64) /* NIST P521 */
|
/linux-master/fs/bcachefs/ |
H A D | journal_io.h | 80 unsigned u64s = DIV_ROUND_UP(size, sizeof(u64));
|
/linux-master/drivers/irqchip/ |
H A D | irq-mst-intc.c | 35 u16 saved_polarity_conf[DIV_ROUND_UP(MST_INTC_MAX_IRQS, 16)]; 133 for (i = 0; i < DIV_ROUND_UP(cd->nr_irqs, 16); i++) 142 for (i = 0; i < DIV_ROUND_UP(cd->nr_irqs, 16); i++)
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_pll.c | 56 tmp = DIV_ROUND_UP(nom_min, *nom); 63 tmp = DIV_ROUND_UP(den_min, *den); 236 unsigned tmp = DIV_ROUND_UP(fb_div_min, fb_div);
|
/linux-master/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | hdmi_pll.c | 56 n = DIV_ROUND_UP(clkin, hw->fint_max); 61 m2 = DIV_ROUND_UP(min_dco, target_bitclk); 82 sd = DIV_ROUND_UP(fint * m, 250000000);
|
H A D | pll.c | 132 m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul); 162 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); 170 m_start = max(DIV_ROUND_UP(DIV_ROUND_UP(pll_min, fint), 2),
|
/linux-master/drivers/media/platform/verisilicon/ |
H A D | hantro_vp8.c | 154 mb_width = DIV_ROUND_UP(ctx->dst_fmt.width, 16); 155 mb_height = DIV_ROUND_UP(ctx->dst_fmt.height, 16); 156 segment_map_size = round_up(DIV_ROUND_UP(mb_width * mb_height, 4), 64);
|
H A D | hantro_hw.h | 25 #define MB_WIDTH(w) DIV_ROUND_UP(w, MB_DIM) 26 #define MB_HEIGHT(h) DIV_ROUND_UP(h, MB_DIM) 515 return DIV_ROUND_UP(dimension, 64);
|
/linux-master/kernel/ |
H A D | vmcore_info.c | 42 buf += DIV_ROUND_UP(sizeof(*note), sizeof(Elf_Word)); 44 buf += DIV_ROUND_UP(note->n_namesz, sizeof(Elf_Word)); 46 buf += DIV_ROUND_UP(data_len, sizeof(Elf_Word));
|
/linux-master/drivers/mmc/host/ |
H A D | sdhci-of-at91.c | 210 preset_div = DIV_ROUND_UP(gck_rate, 24000000) - 1; 213 preset_div = DIV_ROUND_UP(gck_rate, 50000000) - 1; 216 preset_div = DIV_ROUND_UP(gck_rate, 100000000) - 1; 219 preset_div = DIV_ROUND_UP(gck_rate, 120000000) - 1; 222 preset_div = DIV_ROUND_UP(gck_rate, 50000000) - 1;
|
/linux-master/drivers/clk/ti/ |
H A D | divider.c | 110 return DIV_ROUND_UP(parent_rate, div); 114 * The reverse of DIV_ROUND_UP: The maximum number which 163 return DIV_ROUND_UP(parent_rate, rate); 209 now = DIV_ROUND_UP(parent_rate, i); 232 return DIV_ROUND_UP(*prate, div); 247 div = DIV_ROUND_UP(parent_rate, rate);
|
/linux-master/drivers/i2c/busses/ |
H A D | i2c-meson.c | 152 div_h = DIV_ROUND_UP(clk_rate, freq); 153 div_l = DIV_ROUND_UP(div_h, 4); 154 div_h = DIV_ROUND_UP(div_h, 2) - FILTER_DELAY; 156 div_h = DIV_ROUND_UP(clk_rate * 2, freq * 5) - FILTER_DELAY; 157 div_l = DIV_ROUND_UP(clk_rate * 3, freq * 5 * 2); 192 div = DIV_ROUND_UP(clk_rate, freq); 194 div = DIV_ROUND_UP(div, 4);
|
/linux-master/net/ethtool/ |
H A D | bitset.c | 183 unsigned int nwords = DIV_ROUND_UP(nbits, 32); 248 unsigned int nwords = DIV_ROUND_UP(nbits, 32); 511 attr_nwords = DIV_ROUND_UP(attr_nbits, 32); 697 #define ETHNL_SMALL_BITMAP_WORDS DIV_ROUND_UP(ETHNL_SMALL_BITMAP_BITS, 32) 710 unsigned int nwords = DIV_ROUND_UP(nbits, 32); 746 unsigned int nwords = DIV_ROUND_UP(nbits, 32); 781 unsigned int dst_words = DIV_ROUND_UP(nbits, 32);
|
/linux-master/drivers/mtd/nand/raw/ |
H A D | tegra_nand.c | 207 int bytes_per_step = DIV_ROUND_UP(BITS_PER_STEP_RS * chip->ecc.strength, 234 int bytes_per_step = DIV_ROUND_UP(BITS_PER_STEP_BCH * chip->ecc.strength, 789 unsigned int period = DIV_ROUND_UP(1000000, rate); 792 val = DIV_ROUND_UP(max3(timings->tAR_min, timings->tRR_min, 796 val = DIV_ROUND_UP(max(max(timings->tCS_min, timings->tCH_min), 801 val = DIV_ROUND_UP(max(timings->tRP_min, timings->tREA_max) + 6000, 805 reg |= TIMING_TWB(OFFSET(DIV_ROUND_UP(timings->tWB_max, period), 1)); 806 reg |= TIMING_TWHR(OFFSET(DIV_ROUND_UP(timings->tWHR_min, period), 1)); 807 reg |= TIMING_TWH(OFFSET(DIV_ROUND_UP(timings->tWH_min, period), 1)); 808 reg |= TIMING_TWP(OFFSET(DIV_ROUND_UP(timing [all...] |
H A D | denali.c | 801 re_2_we = DIV_ROUND_UP(timings->tRHW_min, t_x); 810 re_2_re = DIV_ROUND_UP(timings->tRHZ_max, t_x); 824 we_2_re = DIV_ROUND_UP(max(timings->tCCS_min, timings->tWHR_min), t_x); 839 addr_2_data = DIV_ROUND_UP(timings->tADL_min, t_x); 848 rdwr_en_hi = DIV_ROUND_UP(max(timings->tREH_min, timings->tWH_min), 871 acc_clks = DIV_ROUND_UP(timings->tREA_max + data_setup_on_host, t_x); 874 rdwr_en_lo = DIV_ROUND_UP(max(timings->tRP_min, timings->tWP_min), t_x); 881 rdwr_en_lo_hi = DIV_ROUND_UP(max(timings->tRC_min, timings->tWC_min), 888 DIV_ROUND_UP(timings->tRHOH_min, t_x)) / 2; 902 cs_setup = max3((int)DIV_ROUND_UP(timing [all...] |
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | icl_dsi.c | 353 theo_word_clk = DIV_ROUND_UP(afe_clk_khz, 8 * DSI_MAX_ESC_CLK); 358 esc_clk_div_m = DIV_ROUND_UP(afe_clk_khz, DSI_MAX_ESC_CLK); 870 htotal = DIV_ROUND_UP(adjusted_mode->crtc_htotal * mul, div); 872 htotal = DIV_ROUND_UP((hactive + 160) * mul, div); 874 hsync_start = DIV_ROUND_UP(adjusted_mode->crtc_hsync_start * mul, div); 875 hsync_end = DIV_ROUND_UP(adjusted_mode->crtc_hsync_end * mul, div); 893 vtotal = vactive + DIV_ROUND_UP(400, line_time_us); 1040 hs_tx_timeout = DIV_ROUND_UP(intel_dsi->hs_tx_timeout * mul, 1042 lp_rx_timeout = DIV_ROUND_UP(intel_dsi->lp_rx_timeout * mul, divisor); 1043 ta_timeout = DIV_ROUND_UP(intel_ds [all...] |
H A D | intel_vdsc.c | 115 vdsc_cfg->nsl_bpg_offset = DIV_ROUND_UP(vdsc_cfg->second_line_bpg_offset << 11, 123 vdsc_cfg->initial_offset = 5632 - DIV_ROUND_UP(((bpp - 10) * 3584), 2); 125 vdsc_cfg->initial_offset = 6144 - DIV_ROUND_UP(((bpp - 8) * 512), 2); 130 vdsc_cfg->initial_xmit_delay = DIV_ROUND_UP(DSC_RC_MODEL_SIZE_CONST, 2 * bpp); 168 res = DIV_ROUND_UP(((bpp - 8) * 172 res = DIV_ROUND_UP(((bpp - 10) * 176 res = DIV_ROUND_UP(((bpp - 12) * 220 res = DIV_ROUND_UP(((bpp - 6) * 226 res = DIV_ROUND_UP(((bpp - 12) * 272 vdsc_cfg->slice_width = DIV_ROUND_UP(vdsc_cf [all...] |
H A D | intel_bw.c | 53 sp->dclk = DIV_ROUND_UP((16667 * dclk_ratio * dclk_reference) + 500, 1000); 90 sp->dclk = DIV_ROUND_UP((16667 * dclk) + (DISPLAY_VER(dev_priv) >= 12 ? 500 : 0), 411 qi.deinterleave = DIV_ROUND_UP(num_channels, is_y_tile ? 4 : 2); 436 bw = DIV_ROUND_UP(sp->dclk * clpchgroup * 32 * num_channels, ct); 483 qi.deinterleave = qi.deinterleave ? : DIV_ROUND_UP(num_channels, is_y_tile ? 4 : 2); 486 qi.deinterleave = max(DIV_ROUND_UP(qi.deinterleave, 2), 1); 495 peakbw = num_channels * DIV_ROUND_UP(qi.channel_width, 8) * dclk_max; 503 clperchgroup = 4 * DIV_ROUND_UP(8, num_channels) * qi.deinterleave; 538 bw = DIV_ROUND_UP(sp->dclk * clpchgroup * 32 * num_channels, ct); 788 data_rate = DIV_ROUND_UP(data_rat [all...] |
/linux-master/drivers/i3c/master/ |
H A D | dw-i3c-master.c | 534 core_period = DIV_ROUND_UP(1000000000, core_rate); 536 hcnt = DIV_ROUND_UP(I3C_BUS_THIGH_MAX_NS, core_period) - 1; 540 lcnt = DIV_ROUND_UP(core_rate, master->base.bus.scl_rate.i3c) - hcnt; 555 DIV_ROUND_UP(I3C_BUS_TLOW_OD_MIN_NS, core_period), lcnt); 559 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR1_SCL_RATE) - hcnt; 561 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR2_SCL_RATE) - hcnt; 563 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR3_SCL_RATE) - hcnt; 565 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR4_SCL_RATE) - hcnt; 582 core_period = DIV_ROUND_UP(1000000000, core_rate); 584 lcnt = DIV_ROUND_UP(I3C_BUS_I2C_FMP_TLOW_MIN_N [all...] |
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
H A D | chcr_ipsec.c | 195 ((DIV_ROUND_UP(keylen, 16)) << 4) + 215 memcpy(sa_entry->key + (DIV_ROUND_UP(sa_entry->enckey_len, 16) * 217 sa_entry->kctx_len = ((DIV_ROUND_UP(sa_entry->enckey_len, 16)) << 4) + 359 hdrlen += (DIV_ROUND_UP(sizeof(struct chcr_ipsec_aadiv), 16) 377 aadivlen = sa_entry->esn ? DIV_ROUND_UP(sizeof(struct chcr_ipsec_aadiv), 388 return DIV_ROUND_UP(skb->len + hdrlen, sizeof(__be64)); 438 len = DIV_ROUND_UP(sizeof(struct chcr_ipsec_aadiv), 16) << 4; 454 (DIV_ROUND_UP(sizeof(struct chcr_ipsec_aadiv), 585 ndesc = DIV_ROUND_UP(flits, 2); 683 return DIV_ROUND_UP( [all...] |
/linux-master/drivers/staging/media/sunxi/sun6i-isp/ |
H A D | sun6i_isp_capture.c | 100 DIV_ROUND_UP(width_aligned, info->hdiv) * 101 DIV_ROUND_UP(height, info->vdiv); 133 stride_luma_div4 = DIV_ROUND_UP(stride_luma, 4); 137 stride_chroma_div4 = DIV_ROUND_UP(stride_chroma, 4); 412 DIV_ROUND_UP(width_aligned, hdiv) * 413 DIV_ROUND_UP(height, vdiv);
|
/linux-master/arch/arm/crypto/ |
H A D | chacha-glue.c | 52 state[12] += DIV_ROUND_UP(l, CHACHA_BLOCK_SIZE); 91 state[12] += DIV_ROUND_UP(bytes, CHACHA_BLOCK_SIZE); 130 state[12] += DIV_ROUND_UP(nbytes, CHACHA_BLOCK_SIZE);
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_fbdev_generic.c | 153 len = DIV_ROUND_UP(len + clip->x1 % 8, 8); 157 len = DIV_ROUND_UP(len + clip->x1 % 4, 4); 161 len = DIV_ROUND_UP(len + clip->x1 % 2, 2);
|
/linux-master/drivers/media/pci/pt3/ |
H A D | pt3.h | 69 #define MAX_DESC_BUFS DIV_ROUND_UP(MAX_NUM_XFERS, DESCS_IN_PAGE)
|