/linux-master/drivers/gpu/drm/xe/display/ |
H A D | intel_fbdev_fb.c | 34 DIV_ROUND_UP(sizes->surface_bpp, 8), XE_PAGE_SIZE);
|
/linux-master/drivers/staging/media/omap4iss/ |
H A D | iss_csiphy.c | 204 csi2phy.ths_term = DIV_ROUND_UP(25 * csi2_ddrclk_khz, 2000000) - 1; 205 csi2phy.ths_settle = DIV_ROUND_UP(90 * csi2_ddrclk_khz, 1000000) + 3;
|
/linux-master/drivers/misc/sgi-gru/ |
H A D | gruhandles.h | 61 #define GRU_DS_BYTES_TO_AU(n) DIV_ROUND_UP(n, GRU_DSR_AU_BYTES) 62 #define GRU_CB_COUNT_TO_AU(n) DIV_ROUND_UP(n, GRU_CBR_AU_SIZE)
|
/linux-master/drivers/input/rmi4/ |
H A D | rmi_f3a.c | 13 #define RMI_F3A_MAX_REG_SIZE DIV_ROUND_UP(RMI_F3A_MAX_GPIO_COUNT, 8) 182 f3a->register_count = DIV_ROUND_UP(f3a->gpio_count, 8);
|
/linux-master/drivers/clk/tegra/ |
H A D | clk-tegra20-emc.c | 63 return DIV_ROUND_UP(parent_rate * 2, div + 2); 195 divided_rate = DIV_ROUND_UP(parent_rate * 2, div + 2);
|
/linux-master/drivers/clk/sunxi/ |
H A D | clk-mod0.c | 32 div = DIV_ROUND_UP(req->parent_rate, req->rate); 43 calcm = DIV_ROUND_UP(div, 1 << calcp);
|
/linux-master/drivers/xen/ |
H A D | xlate_mmu.c | 152 unsigned long range = DIV_ROUND_UP(nr, XEN_PFN_PER_PAGE) << PAGE_SHIFT; 225 nr_pages = DIV_ROUND_UP(nr_grant_frames, XEN_PFN_PER_PAGE);
|
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum2_kvdl.c | 97 bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit); 139 bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit);
|
/linux-master/drivers/cpuidle/ |
H A D | cpuidle-powernv.c | 307 exit_latency = DIV_ROUND_UP(state->latency_ns, 1000); 308 target_residency = DIV_ROUND_UP(state->residency_ns, 1000);
|
/linux-master/arch/arm/mach-pxa/ |
H A D | irq.c | 186 for (i = 0; i < DIV_ROUND_UP(pxa_internal_irq_nr, 32); i++) { 205 for (i = 0; i < DIV_ROUND_UP(pxa_internal_irq_nr, 32); i++) {
|
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_police.c | 25 pol->rate = DIV_ROUND_UP(pol->rate * 3, 100); 29 pol->burst = DIV_ROUND_UP(pol->burst, 4096);
|
/linux-master/drivers/clk/zynqmp/ |
H A D | pll.c | 109 div = DIV_ROUND_UP(rate, PS_PLL_VCO_MAX); 113 mult = DIV_ROUND_UP(PS_PLL_VCO_MIN, rate);
|
/linux-master/drivers/watchdog/ |
H A D | lpc18xx_wdt.c | 107 val = DIV_ROUND_UP(lpc18xx_wdt->wdt_dev.timeout * lpc18xx_wdt->clk_rate, 235 lpc18xx_wdt->wdt_dev.min_timeout = DIV_ROUND_UP(LPC18XX_WDT_TC_MIN *
|
H A D | stm32_iwdg.c | 99 presc = DIV_ROUND_UP(tout * wdt->rate, RLR_MAX + 1); 254 wdd->min_timeout = DIV_ROUND_UP((RLR_MIN + 1) * PR_MIN, wdt->rate);
|
/linux-master/drivers/clk/ |
H A D | clk-plldig.c | 123 return DIV_ROUND_UP(data->vco_freq, rfdphi1); 145 req->rate = DIV_ROUND_UP(data->vco_freq, div);
|
/linux-master/drivers/iio/adc/ |
H A D | ep93xx_adc.c | 110 ep93xx_adc_delay(DIV_ROUND_UP(1000000, 925), 111 DIV_ROUND_UP(1000000, 925));
|
/linux-master/drivers/md/bcache/ |
H A D | movinggc.c | 83 DIV_ROUND_UP(KEY_SIZE(&io->w->key), PAGE_SECTORS), 0); 149 DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS)),
|
/linux-master/drivers/iommu/iommufd/ |
H A D | iova_bitmap.c | 177 npages = DIV_ROUND_UP((bitmap->mapped_total_index - 311 DIV_ROUND_UP(bytes, sizeof(*bitmap->bitmap)));
|
/linux-master/drivers/clk/imx/ |
H A D | clk-composite-8m.c | 85 rate = DIV_ROUND_UP(*prate, prediv_value); 87 return DIV_ROUND_UP(rate, div_value);
|
/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | amx_test.c | 258 xstate = vm_vaddr_alloc_pages(vm, DIV_ROUND_UP(XSAVE_SIZE, PAGE_SIZE)); 259 memset(addr_gva2hva(vm, xstate), 0, PAGE_SIZE * DIV_ROUND_UP(XSAVE_SIZE, PAGE_SIZE));
|
/linux-master/drivers/gpu/drm/xen/ |
H A D | xen_drm_front_gem.c | 48 xen_obj->num_pages = DIV_ROUND_UP(buf_size, PAGE_SIZE); 175 xen_obj->num_pages = DIV_ROUND_UP(size, PAGE_SIZE);
|
/linux-master/fs/bcachefs/ |
H A D | ec.h | 29 return DIV_ROUND_UP(le16_to_cpu(s->sectors), 68 return DIV_ROUND_UP(stripe_blockcount_offset(s, s->nr_blocks),
|
/linux-master/drivers/hid/intel-ish-hid/ishtp/ |
H A D | loader.c | 242 fragment_size = PFN_ALIGN(DIV_ROUND_UP(ish_fw->size, FRAGMENT_MAX_NUM)); 244 fragment_count = DIV_ROUND_UP(ish_fw->size, fragment_size);
|
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_hw.c | 77 credits_needed = DIV_ROUND_UP(wrlen, 16); 401 cpu_to_be32(FW_WR_LEN16_V(DIV_ROUND_UP(len, 16) | 412 DIV_ROUND_UP(len - sizeof(kwr->wr), 16)); 431 csk->wr_credits -= DIV_ROUND_UP(len, 16); 432 csk->wr_unacked += DIV_ROUND_UP(len, 16);
|
/linux-master/drivers/i2c/busses/ |
H A D | i2c-mxs.c | 707 divider = DIV_ROUND_UP(clk, speed); 749 leadin = DIV_ROUND_UP(600 * (clk / 1000000), 1000); 750 bus_free = DIV_ROUND_UP(1300 * (clk / 1000000), 1000); 755 leadin = DIV_ROUND_UP(4700 * (clk / 1000000), 1000); 756 bus_free = DIV_ROUND_UP(4700 * (clk / 1000000), 1000);
|