Home
last modified time | relevance | path

Searched refs:__fls (Results 1 – 25 of 114) sorted by relevance

12345

/linux/fs/bcachefs/
H A Deytzinger.h76 i <<= __fls(size + 1) - __fls(i); in eytzinger1_next()
92 i <<= __fls(size + 1) - __fls(i); in eytzinger1_prev()
112 unsigned b = __fls(i); in __eytzinger1_to_inorder()
113 unsigned shift = __fls(size) - b; in __eytzinger1_to_inorder()
155 i |= 1U << (__fls(size) - shift); in __inorder_to_eytzinger1()
/linux/arch/arm/mach-mv78xx0/
H A Dirq.c34 unsigned int hwirq = __fls(stat); in mv78xx0_legacy_handle_irq()
41 unsigned int hwirq = 32 + __fls(stat); in mv78xx0_legacy_handle_irq()
48 unsigned int hwirq = 64 + __fls(stat); in mv78xx0_legacy_handle_irq()
/linux/arch/sparc/lib/
H A Dfls64.S14 ENTRY(__fls)
60 ENDPROC(__fls)
61 EXPORT_SYMBOL(__fls)
H A DNG4patch.S61 NG_DO_PATCH(__fls, __NG4fls)
/linux/arch/arm/mach-dove/
H A Dirq.c50 unsigned int hwirq = 1 + __fls(stat); in dove_legacy_handle_irq()
57 unsigned int hwirq = 33 + __fls(stat); in dove_legacy_handle_irq()
/linux/arch/s390/lib/
H A Dfind.c35 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); in find_first_bit_inv()
74 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); in find_next_bit_inv()
/linux/arch/arc/include/asm/
H A Dbitops.h85 static inline __attribute__ ((const)) unsigned long __fls(unsigned long x) in __fls() function
134 static inline __attribute__ ((const)) unsigned long __fls(unsigned long x) in __fls() function
/linux/tools/testing/selftests/powerpc/primitives/
H A Dload_unaligned_zeropad.c24 static inline unsigned long __fls(unsigned long x);
30 static inline unsigned long __fls(unsigned long x) in __fls() function
/linux/arch/openrisc/include/asm/bitops/
H A D__fls.h14 static inline unsigned long __fls(unsigned long x) in __fls() function
/linux/drivers/irqchip/
H A Dirq-orion.c44 u32 hwirq = __fls(stat); in orion_handle_irq()
117 u32 hwirq = __fls(stat); in orion_bridge_irq_handler()
H A Dirq-rda-intc.c55 hwirq = __fls(stat); in rda_handle_irq()
/linux/tools/include/asm-generic/bitops/
H A Dfls64.h31 return __fls(x) + 1; in fls64()
H A D__fls.h45 #define __fls(word) generic___fls(word) macro
/linux/include/asm-generic/bitops/
H A Dfls64.h31 return __fls(x) + 1; in fls64()
/linux/drivers/rapidio/devices/
H A Dtsi721.h167 #define TSI721_IDQ_SIZE_VAL(size) (__fls(size) - 4)
191 #define TSI721_IBWIN_SIZE(size) (__fls(size) - 12)
236 #define TSI721_OBWIN_SIZE(size) (__fls(size) - 15)
314 #define TSI721_DMAC_DSSZ_SIZE(size) (__fls(size) - 4)
/linux/arch/csky/include/asm/
H A Dbitops.h55 static __always_inline unsigned long __fls(unsigned long x) in __fls() function
/linux/arch/arm/mach-orion5x/
H A Dirq.c34 unsigned int hwirq = 1 + __fls(stat); in orion5x_legacy_handle_irq()
/linux/arch/sparc/include/asm/
H A Dbitops_64.h27 int __fls(unsigned long word);
/linux/lib/math/
H A Dint_sqrt.c27 m = 1UL << (__fls(x) & ~1UL); in int_sqrt()
/linux/arch/s390/include/asm/
H A Dword-at-a-time.h23 return __fls(data); in create_zero_mask()
/linux/arch/mips/include/asm/
H A Dbitops.h330 static __always_inline unsigned long __fls(unsigned long word) in __fls() function
398 return __fls(word & -word); in __ffs()
/linux/drivers/staging/media/ipu3/
H A Dipu3-dmamap.c53 for (order_mask &= (2U << __fls(count)) - 1; in imgu_dmamap_alloc_buffer()
55 unsigned int order = __fls(order_mask); in imgu_dmamap_alloc_buffer()
/linux/lib/
H A Dclosure.c22 flags & CLOSURE_GUARD_MASK, (unsigned) __fls(r))) in closure_put_after_sub_checks()
27 flags & ~CLOSURE_DESTRUCTOR, (unsigned) __fls(flags)); in closure_put_after_sub_checks()
/linux/include/asm-generic/
H A Dword-at-a-time.h50 #define zero_bytemask(mask) (~1ul << __fls(mask))
/linux/arch/arm/mm/
H A Dpmsa-v7.c151 phys_addr_t p2size = 1 << __fls(asize); in try_split_region()
213 phys_addr_t p2size = (1 << __fls(diff)) - 1; in allocate_region()

12345