Searched refs:ilog2 (Results 1 – 24 of 24) sorted by relevance
/u-boot/include/linux/ |
A D | log2.h | 85 #define ilog2(n) \ macro 169 (1UL << (ilog2((n) - 1) + 1)) \ 185 (1UL << ilog2(n))) : \ 192 return n > 1 ? ilog2(n - 1) + 1 : 0; in __order_base_2() 212 ilog2((n) - 1) + 1) : \
|
/u-boot/include/ |
A D | div64.h | 69 ___p = 1 << ilog2(___b); \ 126 ___p >>= ilog2(___bits); \ 127 ___m >>= ilog2(___bits); \ 211 (n) >>= ilog2(__base); \
|
/u-boot/drivers/clk/analogbits/ |
A D | wrpll-cln28hpc.c | 159 divq = ilog2(MAX_DIVQ_DIVISOR); in __wrpll_calc_divq() 162 divq = ilog2(s); in __wrpll_calc_divq()
|
/u-boot/drivers/clk/rockchip/ |
A D | clk_rk3188.c | 413 hclk_div = ilog2(CPU_ACLK_HZ / CPU_HCLK_HZ); in rkclk_init() 415 pclk_div = ilog2(CPU_ACLK_HZ / CPU_PCLK_HZ); in rkclk_init() 417 h2p_div = ilog2(CPU_HCLK_HZ / CPU_H2P_HZ); in rkclk_init() 435 hclk_div = ilog2(PERI_ACLK_HZ / PERI_HCLK_HZ); in rkclk_init() 439 pclk_div = ilog2(PERI_ACLK_HZ / PERI_PCLK_HZ); in rkclk_init()
|
A D | clk_rk3036.c | 150 hclk_div = ilog2(PERI_ACLK_HZ / PERI_HCLK_HZ); in rkclk_init() 154 pclk_div = ilog2(PERI_ACLK_HZ / PERI_PCLK_HZ); in rkclk_init()
|
A D | clk_rk322x.c | 152 hclk_div = ilog2(PERI_ACLK_HZ / PERI_HCLK_HZ); in rkclk_init() 156 pclk_div = ilog2(PERI_ACLK_HZ / PERI_PCLK_HZ); in rkclk_init()
|
A D | clk_rk3128.c | 211 hclk_div = ilog2(PERI_ACLK_HZ / PERI_HCLK_HZ); in rkclk_init() 215 pclk_div = ilog2(PERI_ACLK_HZ / PERI_PCLK_HZ); in rkclk_init()
|
A D | clk_rk3288.c | 479 hclk_div = ilog2(PERI_ACLK_HZ / PERI_HCLK_HZ); in rkclk_init() 483 pclk_div = ilog2(PERI_ACLK_HZ / PERI_PCLK_HZ); in rkclk_init()
|
/u-boot/drivers/clk/sunxi/ |
A D | clk_sunxi.c | 36 clk->id, gate->off, ilog2(gate->bit)); in sunxi_set_gate()
|
/u-boot/drivers/net/octeontx2/ |
A D | rvu.h | 26 #define Q_SIZE(x, n) ((ilog2(x) - (n)) / 2)
|
A D | nix_af.c | 681 rss_cfg.s.size = ilog2(nix->rss_sz) / 256; in nix_lf_admin_setup()
|
/u-boot/drivers/reset/ |
A D | reset-sunxi.c | 63 reset_ctl->id, reset->off, ilog2(reset->bit)); in sunxi_set_reset()
|
/u-boot/drivers/pwm/ |
A D | pwm-sifive.c | 79 scale = clamp(ilog2(scale_pow) - PWM_SIFIVE_CMPWIDTH, 0, 0xf); in pwm_sifive_set_config()
|
/u-boot/drivers/pci_endpoint/ |
A D | pcie-cadence-ep.c | 68 aperture = ilog2(sz) - 7; /* 128B -> 0, 256B -> 1, 512B -> 2, ... */ in cdns_set_bar()
|
/u-boot/drivers/pci/ |
A D | pcie_brcmstb.c | 160 int log2_in = ilog2(size); in brcm_pcie_encode_ibar_size() 485 ilog2(rc_bar2_size) - 15 : 0xf; /* 0xf is 1GB */ in brcm_pcie_probe()
|
A D | pcie_iproc.c | 957 size >>= ilog2(nr_windows); in iproc_pcie_ib_write()
|
/u-boot/drivers/spi/ |
A D | mt7620_spi.c | 71 prescale = ilog2(rate / 2); in mt7620_spi_master_setup()
|
A D | spi-sifive.c | 404 spi->num_cs = ilog2(cs_bits) + 1; in sifive_spi_init_hw()
|
/u-boot/drivers/rtc/ |
A D | m41t62.c | 177 sqwrateval = 15 - ilog2(rate); in m41t62_sqw_set_rate()
|
/u-boot/drivers/mmc/ |
A D | meson_gx_mmc.c | 145 cfg |= ilog2(data->blocksize) << CFG_BL_LEN_SHIFT; in meson_mmc_setup_cmd()
|
/u-boot/drivers/i2c/ |
A D | ocores_i2c.c | 529 bus->reg_shift = ilog2(val); in ocores_i2c_probe()
|
/u-boot/drivers/mtd/spi/ |
A D | spi-nor-core.c | 758 pow = ilog2(mtd->size) - ilog2(lock_len); in stm_lock() 838 pow = ilog2(mtd->size) - order_base_2(lock_len); in stm_unlock()
|
/u-boot/drivers/usb/mtu3/ |
A D | mtu3_core.c | 318 fifo_sgsz = ilog2(mep->fifo_seg_size); in mtu3_config_ep()
|
/u-boot/drivers/mtd/nand/raw/brcmnand/ |
A D | brcmnand.c | 2100 return ALIGN(ilog2(size) - ilog2(writesize), 8) >> 3; in get_blk_adr_bytes()
|
Completed in 53 milliseconds