Home
last modified time | relevance | path

Searched refs:ilog2 (Results 1 – 24 of 24) sorted by relevance

/u-boot/include/linux/
A Dlog2.h85 #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 Ddiv64.h69 ___p = 1 << ilog2(___b); \
126 ___p >>= ilog2(___bits); \
127 ___m >>= ilog2(___bits); \
211 (n) >>= ilog2(__base); \
/u-boot/drivers/clk/analogbits/
A Dwrpll-cln28hpc.c159 divq = ilog2(MAX_DIVQ_DIVISOR); in __wrpll_calc_divq()
162 divq = ilog2(s); in __wrpll_calc_divq()
/u-boot/drivers/clk/rockchip/
A Dclk_rk3188.c413 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 Dclk_rk3036.c150 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 Dclk_rk322x.c152 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 Dclk_rk3128.c211 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 Dclk_rk3288.c479 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 Dclk_sunxi.c36 clk->id, gate->off, ilog2(gate->bit)); in sunxi_set_gate()
/u-boot/drivers/net/octeontx2/
A Drvu.h26 #define Q_SIZE(x, n) ((ilog2(x) - (n)) / 2)
A Dnix_af.c681 rss_cfg.s.size = ilog2(nix->rss_sz) / 256; in nix_lf_admin_setup()
/u-boot/drivers/reset/
A Dreset-sunxi.c63 reset_ctl->id, reset->off, ilog2(reset->bit)); in sunxi_set_reset()
/u-boot/drivers/pwm/
A Dpwm-sifive.c79 scale = clamp(ilog2(scale_pow) - PWM_SIFIVE_CMPWIDTH, 0, 0xf); in pwm_sifive_set_config()
/u-boot/drivers/pci_endpoint/
A Dpcie-cadence-ep.c68 aperture = ilog2(sz) - 7; /* 128B -> 0, 256B -> 1, 512B -> 2, ... */ in cdns_set_bar()
/u-boot/drivers/pci/
A Dpcie_brcmstb.c160 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 Dpcie_iproc.c957 size >>= ilog2(nr_windows); in iproc_pcie_ib_write()
/u-boot/drivers/spi/
A Dmt7620_spi.c71 prescale = ilog2(rate / 2); in mt7620_spi_master_setup()
A Dspi-sifive.c404 spi->num_cs = ilog2(cs_bits) + 1; in sifive_spi_init_hw()
/u-boot/drivers/rtc/
A Dm41t62.c177 sqwrateval = 15 - ilog2(rate); in m41t62_sqw_set_rate()
/u-boot/drivers/mmc/
A Dmeson_gx_mmc.c145 cfg |= ilog2(data->blocksize) << CFG_BL_LEN_SHIFT; in meson_mmc_setup_cmd()
/u-boot/drivers/i2c/
A Docores_i2c.c529 bus->reg_shift = ilog2(val); in ocores_i2c_probe()
/u-boot/drivers/mtd/spi/
A Dspi-nor-core.c758 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 Dmtu3_core.c318 fifo_sgsz = ilog2(mep->fifo_seg_size); in mtu3_config_ep()
/u-boot/drivers/mtd/nand/raw/brcmnand/
A Dbrcmnand.c2100 return ALIGN(ilog2(size) - ilog2(writesize), 8) >> 3; in get_blk_adr_bytes()

Completed in 53 milliseconds