Home
last modified time | relevance | path

Searched refs:__ilog2 (Results 1 – 25 of 45) sorted by relevance

12

/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dpci.c87 POWAR_MEM_WRITE | (__ilog2(CONFIG_SYS_PCI1_MEM_SIZE) - 1)); in pci_mpc85xx_init()
94 POWAR_IO_WRITE | (__ilog2(CONFIG_SYS_PCI1_IO_SIZE) - 1)); in pci_mpc85xx_init()
172 POWAR_MEM_WRITE | (__ilog2(CONFIG_SYS_PCI2_MEM_SIZE) - 1)); in pci_mpc85xx_init()
179 POWAR_IO_WRITE | (__ilog2(CONFIG_SYS_PCI2_IO_SIZE) - 1)); in pci_mpc85xx_init()
H A Dtlb.c266 max_cam = __ilog2(mfspr(SPRN_TLB1PS)) + 10; in tlb_map_range()
273 u32 align = __ilog2(v_addr) & tsize_mask; in tlb_map_range()
/openbmc/u-boot/arch/powerpc/include/asm/
H A Dbitops.h149 static __inline__ int __ilog2(unsigned int x) in __ilog2() function
161 return __ilog2(x & -x); in ffz()
172 return __ilog2(x) + 1; in fls()
200 return __ilog2(x) + 1; in fls64()
215 return __ilog2(x & -x) + 1; in ffs()
/openbmc/u-boot/drivers/ddr/fsl/
H A Dddr2_dimm_params.c293 pdimm->caslat_x = __ilog2(spd->cas_lat); in ddr_compute_dimm_parameters()
294 pdimm->caslat_x_minus_1 = __ilog2(spd->cas_lat in ddr_compute_dimm_parameters()
296 pdimm->caslat_x_minus_2 = __ilog2(spd->cas_lat in ddr_compute_dimm_parameters()
H A Dddr1_dimm_params.c294 pdimm->caslat_x = __ilog2(spd->cas_lat); in ddr_compute_dimm_parameters()
295 pdimm->caslat_x_minus_1 = __ilog2(spd->cas_lat in ddr_compute_dimm_parameters()
297 pdimm->caslat_x_minus_2 = __ilog2(spd->cas_lat in ddr_compute_dimm_parameters()
/openbmc/linux/include/linux/
H A Dfsl_ifc.h69 (__ilog2(n) - IFC_AMASK_SHIFT))
110 #define CSOR_NAND_PB(n) ((__ilog2(n) - 5) << CSOR_NAND_PB_SHIFT)
163 #define CSOR_GPCM_GPTO(n) ((__ilog2(n) - 8) << CSOR_GPCM_GPTO_SHIFT)
618 #define IFC_NORCR_STOCNT(n) ((__ilog2(n) - 8) << IFC_NORCR_STOCNT_SHIFT)
/openbmc/linux/arch/powerpc/mm/nohash/
H A De500.c102 tsize = __ilog2(size) - 10; in settlbcam()
141 unsigned int camsize = __ilog2(ram); in calc_cam_sz()
152 max_cam = __ilog2(mfspr(SPRN_TLB1PS)) + 10; in calc_cam_sz()
H A De500_hugetlbpage.c134 shift = __ilog2(psize); in book3e_hugetlb_preload()
/openbmc/u-boot/board/freescale/mpc8308rdb/
H A Dsdram.c33 u32 msize_log2 = __ilog2(msize); in fixed_sdram()
/openbmc/u-boot/board/mpc8308_p1m/
H A Dsdram.c29 u32 msize_log2 = __ilog2(msize); in fixed_sdram()
/openbmc/u-boot/board/gdsys/mpc8308/
H A Dsdram.c34 u32 msize_log2 = __ilog2(msize); in fixed_sdram()
/openbmc/u-boot/board/freescale/mpc8315erdb/
H A Dsdram.c45 u32 msize_log2 = __ilog2(msize); in fixed_sdram()
/openbmc/u-boot/board/freescale/mpc8313erdb/
H A Dsdram.c48 u32 msize_log2 = __ilog2(msize); in fixed_sdram()
/openbmc/linux/arch/powerpc/platforms/ps3/
H A Dhtab.c193 ppc64_pft_size = __ilog2(htab_size); in ps3_hpte_init()
/openbmc/u-boot/board/sbc8349/
H A Dsbc8349.c80 u32 ddr_size_log2 = __ilog2(msize); in fixed_sdram()
/openbmc/u-boot/arch/arm/include/asm/
H A Dbitops.h108 static inline int __ilog2(unsigned int x) in __ilog2() function
/openbmc/u-boot/board/freescale/mpc837xerdb/
H A Dmpc837xerdb.c96 u32 msize_log2 = __ilog2(msize); in fixed_sdram()
/openbmc/u-boot/arch/powerpc/cpu/mpc83xx/
H A Dpci.c69 PIWAR_WTT_SNOOP | (__ilog2(gd->ram_size - 1)); in pci_init_bus()
/openbmc/u-boot/board/ve8313/
H A Dve8313.c38 u32 msize_log2 = __ilog2(msize); in fixed_sdram()
/openbmc/u-boot/arch/x86/include/asm/
H A Dbitops.h375 static inline int __ilog2(unsigned int x) in __ilog2() function
/openbmc/u-boot/board/ids/ids8313/
H A Dids8313.c57 u32 msize_log2 = __ilog2(msize); in fixed_sdram()
/openbmc/linux/arch/powerpc/platforms/powermac/
H A Dpic.c217 irq += __ilog2(bits); in gatwick_action()
247 irq += __ilog2(bits); in pmac_pic_get_irq()
/openbmc/u-boot/board/freescale/mpc8349emds/
H A Dmpc8349emds.c92 u32 ddr_size_log2 = __ilog2(ddr_size); in fixed_sdram()
/openbmc/u-boot/board/freescale/mpc8349itx/
H A Dmpc8349itx.c33 u32 ddr_size_log2 = __ilog2(ddr_size); in fixed_sdram()
/openbmc/u-boot/drivers/spi/
H A Dspi-sunxi.c442 div = __ilog2(SUN4I_SPI_MAX_RATE) - __ilog2(speed); in sun4i_spi_set_speed()

12