| /u-boot/include/faraday/ |
| A D | ftpci100.h | 26 #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 D | ftahbc020s.h | 31 #define FTAHBC020S_BSR_SIZE(x) (ffs(x) - 1) /* size of Addr Space */
|
| A D | ftsdmc021.h | 69 #define FTSDMC021_BANK_SIZE(x) (ffs(x) - 1)
|
| A D | ftsdc010.h | 108 #define FTSDC010_DCR_BLK_BYTES(x) (ffs(x) - 1) /* 1B - 2048B */
|
| /u-boot/arch/arm/mach-imx/imxrt/ |
| A D | soc.c | 21 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 D | abb.c | 49 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 D | clk-generic.c | 82 (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 D | clk-peripheral.c | 159 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 D | ffs.h | 12 static inline int ffs(int x) in ffs() function
|
| /u-boot/drivers/clk/ |
| A D | mpc83xx_clk.h | 347 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 D | clk_boston.c | 26 return (val & mask) >> (ffs(mask) - 1); in ext_field()
|
| A D | clk-mux.c | 55 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 D | bitops.h | 42 #define __ffs(x) (ffs(x) - 1)
|
| /u-boot/include/ |
| A D | bitfield.h | 69 return mask ? ffs(mask) - 1 : 0; in bitfield_shift()
|
| /u-boot/arch/arm/mach-omap2/ |
| A D | abb.c | 56 sr2_cnt << (ffs(OMAP_ABB_SETUP_SR2_WTCNT_VALUE_MASK) - 1)); in abb_setup_timings()
|
| /u-boot/arch/arm/include/asm/arch-sunxi/ |
| A D | clock_sun9i.h | 158 #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 D | bitops.h | 126 static inline int ffs (int x) in ffs() function
|
| /u-boot/drivers/usb/musb/ |
| A D | musb_core.c | 76 idx = fifosize ? ((ffs(fifosize) - 1) & 0xF) : 0; in musb_configure_ep()
|
| /u-boot/drivers/mtd/nand/raw/ |
| A D | mxs_nand_spl.c | 132 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 D | bitops.h | 165 # define ffs generic_ffs macro
|
| /u-boot/drivers/mtd/onenand/ |
| A D | onenand_spl.c | 74 density_mask = 1 << (18 + density - ffs(size)); in onenand_spl_get_geometry()
|
| /u-boot/drivers/mux/ |
| A D | mmio.c | 106 field.lsb = ffs(mask) - 1; in mmio_mux_probe()
|
| /u-boot/drivers/power/regulator/ |
| A D | bd71837.c | 359 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 D | phy.c | 748 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 D | bitops.h | 362 static __inline__ int ffs(int x) in ffs() function
|