| /rk3399_rockchip-uboot/include/faraday/ |
| H 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)
|
| H A D | ftahbc020s.h | 32 #define FTAHBC020S_BSR_SIZE(x) (ffs(x) - 1) /* size of Addr Space */
|
| H A D | ftsdmc021.h | 69 #define FTSDMC021_BANK_SIZE(x) (ffs(x) - 1)
|
| H A D | ftsdc010.h | 108 #define FTSDC010_DCR_BLK_BYTES(x) (ffs(x) - 1) /* 1B - 2048B */
|
| /rk3399_rockchip-uboot/arch/arm/mach-omap2/omap5/ |
| H 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()
|
| /rk3399_rockchip-uboot/arch/sh/lib/ |
| H A D | time.c | 25 u16 tmu_bit = (ffs(CONFIG_SYS_TMU_CLK_DIV) >> 1) - 1; in get_tbclk() 50 u16 tmu_bit = (ffs(CONFIG_SYS_TMU_CLK_DIV) >> 1) - 1; in timer_init()
|
| /rk3399_rockchip-uboot/arch/nios2/include/asm/bitops/ |
| H A D | ffs.h | 12 static inline int ffs(int x) in ffs() function
|
| /rk3399_rockchip-uboot/arch/m68k/include/asm/ |
| H A D | bitops.h | 42 #define __ffs(x) (ffs(x) - 1)
|
| /rk3399_rockchip-uboot/include/ |
| H A D | bitfield.h | 69 return mask ? ffs(mask) - 1 : 0; in bitfield_shift()
|
| /rk3399_rockchip-uboot/arch/arm/mach-omap2/ |
| H A D | abb.c | 56 sr2_cnt << (ffs(OMAP_ABB_SETUP_SR2_WTCNT_VALUE_MASK) - 1)); in abb_setup_timings()
|
| /rk3399_rockchip-uboot/arch/arm/include/asm/arch-sunxi/ |
| H A D | clock_sun9i.h | 155 #define AHBx_CLK_DIV_RATIO(n) (((ffs(n) - 1) & 0x3) << 0) 162 #define APB0_CLK_DIV_RATIO(n) (((ffs(n) - 1) & 0x3) << 0)
|
| /rk3399_rockchip-uboot/drivers/clk/ |
| H A D | clk_boston.c | 26 return (val & mask) >> (ffs(mask) - 1); in ext_field()
|
| /rk3399_rockchip-uboot/arch/sh/include/asm/ |
| H A D | bitops.h | 126 static inline int ffs (int x) in ffs() function
|
| /rk3399_rockchip-uboot/drivers/mtd/nand/raw/ |
| H A D | mxs_nand_spl.c | 121 chip->page_shift = ffs(mtd->writesize) - 1; in mxs_flash_onfi_ident() 122 chip->phys_erase_shift = ffs(mtd->erasesize) - 1; in mxs_flash_onfi_ident()
|
| /rk3399_rockchip-uboot/drivers/net/phy/ |
| H A D | phy.c | 704 int addr = ffs(phy_mask) - 1; in create_phy_by_mask() 722 int addr = ffs(phy_mask) - 1; in search_for_existing_phy() 754 int addr = ffs(phy_mask) - 1; in get_phy_device_by_mask() 792 devad = ffs(phydev->mmds) - 1; in phy_reset()
|
| /rk3399_rockchip-uboot/drivers/usb/musb/ |
| H A D | musb_core.c | 76 idx = ffs(fifosize) - 1; in musb_configure_ep()
|
| /rk3399_rockchip-uboot/include/linux/ |
| H A D | bitops.h | 144 # define ffs generic_ffs macro
|
| /rk3399_rockchip-uboot/drivers/mtd/onenand/ |
| H A D | onenand_spl.c | 74 density_mask = 1 << (18 + density - ffs(size)); in onenand_spl_get_geometry()
|
| /rk3399_rockchip-uboot/drivers/mmc/ |
| H A D | mxsmmc.c | 218 ((ffs(data->blocksize) - 1) << in mxsmmc_send_cmd() 225 ((ffs(data->blocksize) - 1) << in mxsmmc_send_cmd()
|
| /rk3399_rockchip-uboot/drivers/power/regulator/ |
| H A D | rk801_regulator.c | 331 sel = (val & desc->vsel_mask) >> (ffs(desc->vsel_mask) - 1); in rk801_regulator_get_value() 367 sel <<= ffs(desc->vsel_mask) - 1; in rk801_regulator_set_value() 405 sel <<= ffs(desc->vsel_mask) - 1; in rk801_regulator_set_value()
|
| /rk3399_rockchip-uboot/arch/x86/include/asm/ |
| H A D | bitops.h | 360 static __inline__ int ffs(int x) in ffs() function
|
| /rk3399_rockchip-uboot/drivers/mtd/ |
| H A D | altera_qspi.c | 239 int shift0 = ffs(QUADSPI_SR_BP2_0) - 1; in altera_qspi_get_locked_range() 240 int shift3 = ffs(QUADSPI_SR_BP3) - 1 - 3; in altera_qspi_get_locked_range()
|
| /rk3399_rockchip-uboot/drivers/pinctrl/nxp/ |
| H A D | pinctrl-imx.c | 27 u32 mux_shift = info->mux_mask ? ffs(info->mux_mask) - 1 : 0; in imx_pinctrl_set_state()
|
| /rk3399_rockchip-uboot/arch/powerpc/include/asm/ |
| H A D | bitops.h | 213 static __inline__ int ffs(int x) in ffs() function
|
| /rk3399_rockchip-uboot/drivers/mtd/spi/ |
| H A D | spi_flash.c | 842 int shift = ffs(mask) - 1; in stm_get_locked_range() 916 u8 shift = ffs(mask) - 1, pow, val; in stm_lock() 970 u8 shift = ffs(mask) - 1, pow, val; in stm_unlock()
|