Searched refs:DIV_ROUND_UP (Results 151 - 175 of 1585) sorted by relevance

1234567891011>>

/linux-master/drivers/gpu/drm/xe/display/
H A Dintel_fbdev_fb.c34 DIV_ROUND_UP(sizes->surface_bpp, 8), XE_PAGE_SIZE);
/linux-master/drivers/staging/media/omap4iss/
H A Diss_csiphy.c204 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 Dgruhandles.h61 #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 Drmi_f3a.c13 #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 Dclk-tegra20-emc.c63 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 Dclk-mod0.c32 div = DIV_ROUND_UP(req->parent_rate, req->rate);
43 calcm = DIV_ROUND_UP(div, 1 << calcp);
/linux-master/drivers/xen/
H A Dxlate_mmu.c152 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 Dspectrum2_kvdl.c97 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 Dcpuidle-powernv.c307 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 Dirq.c186 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 Dlan966x_police.c25 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 Dpll.c109 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 Dlpc18xx_wdt.c107 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 Dstm32_iwdg.c99 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 Dclk-plldig.c123 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 Dep93xx_adc.c110 ep93xx_adc_delay(DIV_ROUND_UP(1000000, 925),
111 DIV_ROUND_UP(1000000, 925));
/linux-master/drivers/md/bcache/
H A Dmovinggc.c83 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 Diova_bitmap.c177 npages = DIV_ROUND_UP((bitmap->mapped_total_index -
311 DIV_ROUND_UP(bytes, sizeof(*bitmap->bitmap)));
/linux-master/drivers/clk/imx/
H A Dclk-composite-8m.c85 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 Damx_test.c258 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 Dxen_drm_front_gem.c48 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 Dec.h29 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 Dloader.c242 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 Dchtls_hw.c77 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 Di2c-mxs.c707 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);

Completed in 405 milliseconds

1234567891011>>