Searched refs:DIV_ROUND_UP (Results 226 - 250 of 1571) sorted by relevance

1234567891011>>

/linux-master/drivers/regulator/
H A Drc5t583-regulator.c42 return DIV_ROUND_UP(curr_uV, reg_info->enable_uv_per_us);
/linux-master/drivers/gpio/
H A Dgpio-davinci.c226 nirq = DIV_ROUND_UP(ngpio, 16);
259 nbank = DIV_ROUND_UP(ngpio, 32);
674 u32 nbank = DIV_ROUND_UP(pdata->ngpio, 32);
685 u32 nbank = DIV_ROUND_UP(pdata->ngpio, 32);
/linux-master/mm/
H A Dshrinker.c18 return (DIV_ROUND_UP(nr_items, SHRINKER_UNIT_BITS) * sizeof(struct shrinker_info_unit *));
30 nr = DIV_ROUND_UP(info->map_nr_max, SHRINKER_UNIT_BITS);
45 int nr = DIV_ROUND_UP(new->map_nr_max, SHRINKER_UNIT_BITS);
46 int start = old ? DIV_ROUND_UP(old->map_nr_max, SHRINKER_UNIT_BITS) : 0;
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dxdp.h216 u16 ds_cnt = DIV_ROUND_UP(ds_len, MLX5_SEND_WQE_DS);
/linux-master/drivers/mfd/
H A Dfsl-imx25-tsadc.c115 clk_div = DIV_ROUND_UP(clk_get_rate(tsadc->clk), 1750000);
/linux-master/drivers/net/ethernet/amd/pds_core/
H A Dfw.c121 (int)fw->size, buf_sz, DIV_ROUND_UP(fw->size, buf_sz));
/linux-master/drivers/watchdog/
H A Ds3c2410_wdt.c510 freq = DIV_ROUND_UP(freq, 128);
522 divisor = DIV_ROUND_UP(count, 0xffff);
531 timeout, divisor, count, DIV_ROUND_UP(count, divisor));
533 count = DIV_ROUND_UP(count, divisor);
H A Dintel-mid_wdt.c72 in_size = DIV_ROUND_UP(sizeof(ipc_wd_start), 4);
/linux-master/arch/x86/kernel/
H A Despfix_64.c62 #define ESPFIX_MAX_PAGES DIV_ROUND_UP(CONFIG_NR_CPUS, ESPFIX_STACKS_PER_PAGE)
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
H A Dgk20a.c87 mv = DIV_ROUND_UP(mv, v_scale);
/linux-master/drivers/gpu/drm/i915/
H A Di915_perf_types.h505 #define FORMAT_MASK_SIZE DIV_ROUND_UP(I915_OA_FORMAT_MAX - 1, BITS_PER_LONG)
/linux-master/drivers/fpga/
H A Dice40-spi.c24 #define ICE40_SPI_NUM_ACTIVATION_BYTES DIV_ROUND_UP(49, 8)
/linux-master/drivers/pwm/
H A Dpwm-raspberrypi-poe.c91 state->duty_cycle = DIV_ROUND_UP(rpipwm->duty_cycle * RPI_PWM_PERIOD_NS,
H A Dpwm-crc.c145 DIV_ROUND_UP(clk_div * NSEC_PER_USEC * 256, PWM_BASE_CLK_MHZ);
/linux-master/include/linux/gpio/
H A Dgpio-nomadik.h13 #define NMK_MAX_BANKS DIV_ROUND_UP(512, NMK_GPIO_PER_CHIP)
/linux-master/drivers/clk/samsung/
H A Dclk-cpu.c240 alt_div = DIV_ROUND_UP(alt_prate, tmp_rate) - 1;
361 alt_div = DIV_ROUND_UP(alt_prate, tmp_rate) - 1;
462 div = DIV_ROUND_UP(divp_rate, rate);
463 div_rate = DIV_ROUND_UP(divp_rate, div);
/linux-master/drivers/video/fbdev/core/
H A Dbitblit.c29 int width = DIV_ROUND_UP(vc->vc_font.width, 8);
148 u32 width = DIV_ROUND_UP(vc->vc_font.width, 8);
177 pitch = DIV_ROUND_UP(image.width, 8) + scan_align;
242 int w = DIV_ROUND_UP(vc->vc_font.width, 8), c;
/linux-master/arch/riscv/mm/
H A Dtlbflush.c44 unsigned long nr_ptes_in_range = DIV_ROUND_UP(size, stride);
/linux-master/drivers/firmware/efi/
H A Dunaccepted_memory.c93 range.end = DIV_ROUND_UP(end, unit_size);
/linux-master/drivers/mtd/nand/raw/
H A Dmtk_nand.c556 tpoecs = DIV_ROUND_UP(tpoecs * rate, 1000000);
560 tprecs = DIV_ROUND_UP(tprecs * rate, 1000000);
567 tw2r = DIV_ROUND_UP(tw2r * rate, 1000000);
568 tw2r = DIV_ROUND_UP(tw2r - 1, 2);
572 twh = DIV_ROUND_UP(twh * rate, 1000000) - 1;
587 twst = DIV_ROUND_UP(twst * rate, 1000000) - 1;
597 trlt = DIV_ROUND_UP(trlt * rate, 1000000) - 1;
610 tsel = DIV_ROUND_UP(tsel * rate, 1000000);
683 end = DIV_ROUND_UP(offset + len, chip->ecc.size);
955 end = DIV_ROUND_UP(data_off
[all...]
/linux-master/drivers/media/platform/samsung/s5p-mfc/
H A Dregs-mfc-v6.h379 (((((imw + 127) / 64) * 16) * DIV_ROUND_UP(imh, 64) * 256) + \
380 (DIV_ROUND_UP((mbw) * (mbh), 32) * 16))
/linux-master/drivers/usb/gadget/function/
H A Duvc_queue.c64 nreq = DIV_ROUND_UP(DIV_ROUND_UP(sizes[0], 2), req_size);
/linux-master/drivers/crypto/
H A Datmel-i2c.c289 u32 no_of_bits = DIV_ROUND_UP(TWLO_USEC * bus_clk_rate, USEC_PER_SEC);
292 return DIV_ROUND_UP(no_of_bits, 8);
/linux-master/drivers/gpu/drm/
H A Ddrm_gem_dma_helper.c269 unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8);
308 args->pitch = DIV_ROUND_UP(args->width * args->bpp, 8);
/linux-master/drivers/video/backlight/
H A Dmt6370-backlight.c173 ovp_uV = DIV_ROUND_UP(ovp_uV - MT6370_BL_OVP_MIN_UV,
186 ocp_uA = DIV_ROUND_UP(ocp_uA - MT6370_BL_OCP_MIN_UA,

Completed in 286 milliseconds

1234567891011>>