Home
last modified time | relevance | path

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

12

/rk3399_rockchip-uboot/include/faraday/
H 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)
H A Dftahbc020s.h32 #define FTAHBC020S_BSR_SIZE(x) (ffs(x) - 1) /* size of Addr Space */
H A Dftsdmc021.h69 #define FTSDMC021_BANK_SIZE(x) (ffs(x) - 1)
H A Dftsdc010.h108 #define FTSDC010_DCR_BLK_BYTES(x) (ffs(x) - 1) /* 1B - 2048B */
/rk3399_rockchip-uboot/arch/arm/mach-omap2/omap5/
H 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()
/rk3399_rockchip-uboot/arch/sh/lib/
H A Dtime.c25 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 Dffs.h12 static inline int ffs(int x) in ffs() function
/rk3399_rockchip-uboot/arch/m68k/include/asm/
H A Dbitops.h42 #define __ffs(x) (ffs(x) - 1)
/rk3399_rockchip-uboot/include/
H A Dbitfield.h69 return mask ? ffs(mask) - 1 : 0; in bitfield_shift()
/rk3399_rockchip-uboot/arch/arm/mach-omap2/
H A Dabb.c56 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 Dclock_sun9i.h155 #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 Dclk_boston.c26 return (val & mask) >> (ffs(mask) - 1); in ext_field()
/rk3399_rockchip-uboot/arch/sh/include/asm/
H A Dbitops.h126 static inline int ffs (int x) in ffs() function
/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Dmxs_nand_spl.c121 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 Dphy.c704 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 Dmusb_core.c76 idx = ffs(fifosize) - 1; in musb_configure_ep()
/rk3399_rockchip-uboot/include/linux/
H A Dbitops.h144 # define ffs generic_ffs macro
/rk3399_rockchip-uboot/drivers/mtd/onenand/
H A Donenand_spl.c74 density_mask = 1 << (18 + density - ffs(size)); in onenand_spl_get_geometry()
/rk3399_rockchip-uboot/drivers/mmc/
H A Dmxsmmc.c218 ((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 Drk801_regulator.c331 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 Dbitops.h360 static __inline__ int ffs(int x) in ffs() function
/rk3399_rockchip-uboot/drivers/mtd/
H A Daltera_qspi.c239 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 Dpinctrl-imx.c27 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 Dbitops.h213 static __inline__ int ffs(int x) in ffs() function
/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dspi_flash.c842 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()

12