Home
last modified time | relevance | path

Searched refs:ffs (Results 1 – 25 of 49) sorted by relevance

12

/u-boot/include/faraday/
A Dftpci100.h26 #define FTPCI100_BASE_IO_SIZE(x) (ffs(x) - 1) /* 1M - 2048M */
47 #define FTPCI100_BASE_ADR_SIZE(x) ((ffs(x) - 1) << 16) /* 1M - 2048M */
61 #define FTPCI100_MEM_SIZE(x) (ffs(x) << 24)
A Dftahbc020s.h31 #define FTAHBC020S_BSR_SIZE(x) (ffs(x) - 1) /* size of Addr Space */
A Dftsdmc021.h69 #define FTSDMC021_BANK_SIZE(x) (ffs(x) - 1)
A Dftsdc010.h108 #define FTSDC010_DCR_BLK_BYTES(x) (ffs(x) - 1) /* 1B - 2048B */
/u-boot/arch/arm/mach-imx/imxrt/
A Dsoc.c21 O_I_WB_RD_WR_ALLOC, (ffs(PHYS_SDRAM_SIZE) - 2) }, in arch_cpu_init()
24 STRONG_ORDER, (ffs(DMAMEM_SZ_ALL) - 2) }, in arch_cpu_init()
/u-boot/arch/arm/mach-omap2/omap5/
A Dabb.c49 vset >>= ffs(fuse_vset_mask) - 1; in abb_setup_ldovbb()
50 vset <<= ffs(OMAP5_ABB_LDOVBBMPU_VSET_OUT_MASK) - 1; in abb_setup_ldovbb()
/u-boot/drivers/clk/at91/
A Dclk-generic.c82 (index << (ffs(gck->layout->gckcss_mask) - 1)) | in clk_gck_set_parent()
108 ((div - 1) << (ffs(AT91_PMC_PCR_GCKDIV_MASK) - 1)) | in clk_gck_set_rate()
128 (ffs(AT91_PMC_PCR_GCKDIV_MASK) - 1); in clk_gck_get_rate()
178 (ffs(gck->layout->gckcss_mask) - 1); in at91_clk_register_generic()
A Dclk-peripheral.c159 u32 val, shift = ffs(periph->layout->div_mask) - 1; in clk_sam9x5_peripheral_get_rate()
202 (shift << (ffs(periph->layout->div_mask) - 1)) | in clk_sam9x5_peripheral_set_rate()
/u-boot/arch/nios2/include/asm/bitops/
A Dffs.h12 static inline int ffs(int x) in ffs() function
/u-boot/drivers/clk/
A Dmpc83xx_clk.h347 uint shift = mask ? ffs(mask) - 1 : 0; in spmr_field()
362 uint shift = mask ? ffs(mask) - 1 : 0; in sccr_field()
377 uint shift = mask ? ffs(mask) - 1 : 0; in lcrr_field()
A Dclk_boston.c26 return (val & mask) >> (ffs(mask) - 1); in ext_field()
A Dclk-mux.c55 val = ffs(val) - 1; in clk_mux_val_to_index()
170 width = fls(mask) - ffs(mask) + 1; in clk_hw_register_mux_table()
/u-boot/arch/m68k/include/asm/
A Dbitops.h42 #define __ffs(x) (ffs(x) - 1)
/u-boot/include/
A Dbitfield.h69 return mask ? ffs(mask) - 1 : 0; in bitfield_shift()
/u-boot/arch/arm/mach-omap2/
A Dabb.c56 sr2_cnt << (ffs(OMAP_ABB_SETUP_SR2_WTCNT_VALUE_MASK) - 1)); in abb_setup_timings()
/u-boot/arch/arm/include/asm/arch-sunxi/
A Dclock_sun9i.h158 #define AHBx_CLK_DIV_RATIO(n) (((ffs(n) - 1) & 0x3) << 0)
165 #define APB0_CLK_DIV_RATIO(n) (((ffs(n) - 1) & 0x3) << 0)
/u-boot/arch/sh/include/asm/
A Dbitops.h126 static inline int ffs (int x) in ffs() function
/u-boot/drivers/usb/musb/
A Dmusb_core.c76 idx = fifosize ? ((ffs(fifosize) - 1) & 0xF) : 0; in musb_configure_ep()
/u-boot/drivers/mtd/nand/raw/
A Dmxs_nand_spl.c132 chip->page_shift = ffs(mtd->writesize) - 1; in mxs_flash_onfi_ident()
133 chip->phys_erase_shift = ffs(mtd->erasesize) - 1; in mxs_flash_onfi_ident()
/u-boot/include/linux/
A Dbitops.h165 # define ffs generic_ffs macro
/u-boot/drivers/mtd/onenand/
A Donenand_spl.c74 density_mask = 1 << (18 + density - ffs(size)); in onenand_spl_get_geometry()
/u-boot/drivers/mux/
A Dmmio.c106 field.lsb = ffs(mask) - 1; in mmio_mux_probe()
/u-boot/drivers/power/regulator/
A Dbd71837.c359 sel <<= ffs(plat->volt_mask) - 1; in bd71837_set_value()
382 reg >>= ffs(plat->volt_mask) - 1; in bd71837_get_value()
/u-boot/drivers/net/phy/
A Dphy.c748 int addr = ffs(phy_mask) - 1; in create_phy_by_mask()
778 int addr = ffs(phy_mask) - 1; in search_for_existing_phy()
822 int addr = ffs(phy_mask) - 1; in get_phy_device_by_mask()
862 devad = ffs(phydev->mmds) - 1; in phy_reset()
/u-boot/arch/x86/include/asm/
A Dbitops.h362 static __inline__ int ffs(int x) in ffs() function

Completed in 49 milliseconds

12