/u-boot/include/asm-generic/bitops/ |
H A D | builtin-ffs.h | 6 * ffs - find first bit set 10 * the libc and compiler builtin ffs routines, therefore 11 * differs in spirit from ffz (man ffs). 13 #define ffs(x) __builtin_ffs(x) macro
|
/u-boot/arch/arm/mach-omap2/omap5/ |
H A D | abb.c | 49 vset >>= ffs(fuse_vset_mask) - 1; 50 vset <<= ffs(OMAP5_ABB_LDOVBBMPU_VSET_OUT_MASK) - 1;
|
/u-boot/arch/nios2/include/asm/bitops/ |
H A D | ffs.h | 5 * ffs - find first bit set 9 * the libc and compiler builtin ffs routines, therefore 10 * differs in spirit from the above ffz (man ffs). 12 static inline int ffs(int x) function
|
/u-boot/arch/nios2/include/asm/ |
H A D | bitops.h | 13 #include <asm/bitops/ffs.h>
|
/u-boot/arch/arm/lib/ |
H A D | bitops.S | 37 .pushsection .text.ffs 38 ENTRY(ffs) 44 ENDPROC(ffs)
|
/u-boot/arch/arm/mach-imx/imxrt/ |
H A D | soc.c | 22 O_I_WB_RD_WR_ALLOC, (ffs(PHYS_SDRAM_SIZE) - 2) }, 25 STRONG_ORDER, (ffs(DMAMEM_SZ_ALL) - 2) },
|
/u-boot/arch/m68k/include/asm/ |
H A D | bitops.h | 42 #define __ffs(x) (ffs(x) - 1)
|
/u-boot/drivers/clk/at91/ |
H A D | clk-sam9x60-usb.c | 50 val |= index << (ffs(usb->layout->usbs_mask - 1)); 67 (ffs(usb->layout->usbdiv_mask) - 1); 86 val |= (usbdiv - 1) << (ffs(usb->layout->usbdiv_mask) - 1); 132 (ffs(usb->layout->usbs_mask) - 1);
|
H A D | clk-generic.c | 82 (index << (ffs(gck->layout->gckcss_mask) - 1)) | 108 ((div - 1) << (ffs(AT91_PMC_PCR_GCKDIV_MASK) - 1)) | 128 (ffs(AT91_PMC_PCR_GCKDIV_MASK) - 1); 178 (ffs(gck->layout->gckcss_mask) - 1);
|
H A D | clk-peripheral.c | 159 u32 val, shift = ffs(periph->layout->div_mask) - 1; 202 (shift << (ffs(periph->layout->div_mask) - 1)) |
|
/u-boot/include/ |
H A D | bitfield.h | 69 return mask ? ffs(mask) - 1 : 0;
|
/u-boot/arch/arm/mach-omap2/ |
H A D | abb.c | 56 sr2_cnt << (ffs(OMAP_ABB_SETUP_SR2_WTCNT_VALUE_MASK) - 1));
|
/u-boot/drivers/clk/nuvoton/ |
H A D | clk_npcm.c | 101 clksel = (val & selector->mask) >> (ffs(selector->mask) - 1); 126 div = (val & divider->mask) >> (ffs(divider->mask) - 1); 159 if (clkdiv > (divider->mask >> (ffs(divider->mask) - 1))) { 167 val |= (clkdiv << (ffs(divider->mask) - 1)) & divider->mask; 287 val |= clksel << (ffs(selector->mask) - 1);
|
/u-boot/arch/arm/include/asm/ |
H A D | bitops.h | 34 int ffs(int x); 41 #include <asm-generic/bitops/builtin-ffs.h>
|
/u-boot/drivers/clk/renesas/ |
H A D | rcar-cpg-lib.c | 34 #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1)) 35 #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
|
/u-boot/drivers/clk/ |
H A D | clk_boston.c | 27 return (val & mask) >> (ffs(mask) - 1);
|
H A D | mpc83xx_clk.h | 347 uint shift = mask ? ffs(mask) - 1 : 0; 362 uint shift = mask ? ffs(mask) - 1 : 0; 377 uint shift = mask ? ffs(mask) - 1 : 0;
|
H A D | clk-mux.c | 61 val = ffs(val) - 1; 176 width = fls(mask) - ffs(mask) + 1;
|
/u-boot/arch/sh/include/asm/ |
H A D | bitops.h | 121 * ffs - find first bit in word. 126 static inline int ffs (int x) function
|
/u-boot/drivers/usb/musb/ |
H A D | musb_core.c | 76 idx = fifosize ? ((ffs(fifosize) - 1) & 0xF) : 0;
|
/u-boot/drivers/mtd/nand/raw/ |
H A D | mt7621_nand_spl.c | 232 mtd->erasesize_shift = ffs(mtd->erasesize) - 1; 233 mtd->writesize_shift = ffs(mtd->writesize) - 1;
|
/u-boot/arch/arm/include/asm/arch-sunxi/ |
H 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/drivers/net/ |
H A D | dwc_eth_qos_stm32.c | 217 value <<= ffs(regmap_mask) - ffs(SYSCFG_PMCSETR_ETH1_MASK);
|
/u-boot/arch/x86/include/asm/ |
H A D | bitops.h | 355 * ffs - find first bit set 359 * the libc and compiler builtin ffs routines, therefore 360 * differs in spirit from the above ffz (man ffs). 362 static __inline__ int ffs(int x) function
|
/u-boot/include/faraday/ |
H A D | ftsdc010.h | 108 #define FTSDC010_DCR_BLK_BYTES(x) (ffs(x) - 1) /* 1B - 2048B */
|