/linux/include/asm-generic/bitops/ |
A D | sched.h | 17 return __ffs(b[0]); in sched_find_first_bit() 18 return __ffs(b[1]) + 64; in sched_find_first_bit() 21 return __ffs(b[0]); in sched_find_first_bit() 23 return __ffs(b[1]) + 32; in sched_find_first_bit() 25 return __ffs(b[2]) + 64; in sched_find_first_bit() 26 return __ffs(b[3]) + 96; in sched_find_first_bit()
|
A D | find.h | 33 return val ? __ffs(val) : size; in find_next_bit() 63 return val ? __ffs(val) : size; in find_next_and_bit() 114 return val ? __ffs(val) : size; in find_first_bit()
|
/linux/drivers/clk/ti/ |
A D | dpll3xxx.c | 71 state <<= __ffs(dd->idlest_mask); in _omap3_wait_dpll_status() 148 state <<= __ffs(dd->idlest_mask); in _omap3_noncore_dpll_lock() 424 v |= dco << __ffs(dd->dco_mask); in omap3_noncore_dpll_program() 743 v >>= __ffs(dd->autoidle_mask); in omap3_dpll_autoidle_read() 861 v >>= __ffs(dd->enable_mask); in omap3_clkoutx2_recalc() 890 __ffs(dd->mult_mask); in omap3_core_dpll_save_context() 892 __ffs(dd->div1_mask)) + 1; in omap3_core_dpll_save_context() 951 __ffs(dd->mult_mask); in omap3_noncore_dpll_save_context() 953 __ffs(dd->div1_mask)) + 1; in omap3_noncore_dpll_save_context() 978 __ffs(dd->enable_mask)) && in omap3_noncore_dpll_restore_context() [all …]
|
A D | apll.c | 55 state <<= __ffs(ad->idlest_mask); in dra7_apll_enable() 65 v |= APLL_FORCE_LOCK << __ffs(ad->enable_mask); in dra7_apll_enable() 68 state <<= __ffs(ad->idlest_mask); in dra7_apll_enable() 100 state <<= __ffs(ad->idlest_mask); in dra7_apll_disable() 104 v |= APLL_AUTO_IDLE << __ffs(ad->enable_mask); in dra7_apll_disable() 119 v >>= __ffs(ad->enable_mask); in dra7_apll_is_enabled() 250 v >>= __ffs(ad->enable_mask); in omap2_apll_is_enabled() 275 v |= OMAP2_EN_APLL_LOCKED << __ffs(ad->enable_mask); in omap2_apll_enable() 305 v |= OMAP2_EN_APLL_STOPPED << __ffs(ad->enable_mask); in omap2_apll_disable() 323 v |= val << __ffs(ad->autoidle_mask); in omap2_apll_set_autoidle()
|
A D | clkt_dpll.c | 193 val = __ffs(mask); in _omap2_dpll_is_in_bypass() 215 v >>= __ffs(dd->enable_mask); in omap2_init_dpll_parent() 251 v >>= __ffs(dd->enable_mask); in omap2_get_dpll_rate() 258 dpll_mult >>= __ffs(dd->mult_mask); in omap2_get_dpll_rate() 260 dpll_div >>= __ffs(dd->div1_mask); in omap2_get_dpll_rate()
|
/linux/arch/sparc/lib/ |
A D | ffs.S | 17 ENTRY(__ffs) 69 ENDPROC(__ffs) 70 EXPORT_SYMBOL(__ffs) 81 .word __ffs
|
/linux/arch/mips/mm/ |
A D | sc-mips.c | 159 sets >>= __ffs(CM_GCR_L2_CONFIG_SET_SIZE); in mips_sc_probe_cm3() 164 line_sz >>= __ffs(CM_GCR_L2_CONFIG_LINE_SIZE); in mips_sc_probe_cm3() 169 assoc >>= __ffs(CM_GCR_L2_CONFIG_ASSOC); in mips_sc_probe_cm3() 172 c->scache.waybit = __ffs(c->scache.waysize); in mips_sc_probe_cm3() 248 c->scache.waybit = __ffs(c->scache.waysize); in mips_sc_probe()
|
/linux/lib/math/ |
A D | gcd.c | 30 b >>= __ffs(b); in gcd() 35 a >>= __ffs(a); in gcd() 39 return a << __ffs(r); in gcd()
|
/linux/arch/arm/mach-omap2/ |
A D | prm33xx.c | 203 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_logic_retst() 230 v >>= __ffs(m); in am33xx_pwrdm_read_logic_retst() 244 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_mem_onst() 259 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_mem_retst() 275 v >>= __ffs(m); in am33xx_pwrdm_read_mem_pwrst() 290 v >>= __ffs(m); in am33xx_pwrdm_read_mem_retst()
|
A D | prm2xxx_3xxx.c | 118 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_onst() 131 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_retst() 161 v = pwrst << __ffs(OMAP_LOGICRETSTATE_MASK); in omap2_pwrdm_set_logic_retst()
|
A D | prm44xx.c | 494 v = pwrst << __ffs(OMAP4430_LOGICRETSTATE_MASK); in omap4_pwrdm_set_logic_retst() 509 omap4_prminst_rmw_inst_reg_bits(m, (pwrst << __ffs(m)), in omap4_pwrdm_set_mem_onst() 523 omap4_prminst_rmw_inst_reg_bits(m, (pwrst << __ffs(m)), in omap4_pwrdm_set_mem_retst() 591 v >>= __ffs(m); in omap4_pwrdm_read_mem_pwrst() 605 v >>= __ffs(m); in omap4_pwrdm_read_mem_retst()
|
/linux/drivers/hwtracing/intel_th/ |
A D | pti.c | 155 ctl |= pti->patgen << __ffs(PTI_PATGENMODE); in intel_th_pti_activate() 158 ctl |= pti->mode << __ffs(PTI_MODE); in intel_th_pti_activate() 159 ctl |= pti->clkdiv << __ffs(PTI_CLKDIV); in intel_th_pti_activate() 160 ctl |= pti->lpp_dest << __ffs(LPP_DEST); in intel_th_pti_activate() 182 pti->mode = (ctl & PTI_MODE) >> __ffs(PTI_MODE); in read_hw_config() 183 pti->clkdiv = (ctl & PTI_CLKDIV) >> __ffs(PTI_CLKDIV); in read_hw_config()
|
/linux/arch/arc/include/asm/ |
A D | bitops.h | 102 static inline __attribute__ ((const)) unsigned long __ffs(unsigned long word) in __ffs() function 162 static inline __attribute__ ((const)) unsigned long __ffs(unsigned long x) in __ffs() function 183 #define ffz(x) __ffs(~(x))
|
/linux/tools/include/asm-generic/bitops/ |
A D | find.h | 33 return val ? __ffs(val) : size; in find_next_bit() 63 return val ? __ffs(val) : size; in find_next_and_bit() 114 return val ? __ffs(val) : size; in find_first_bit()
|
/linux/arch/mips/kvm/ |
A D | interrupt.c | 33 priority = __ffs(*pending_clr); in kvm_mips_deliver_interrupts() 42 priority = __ffs(*pending); in kvm_mips_deliver_interrupts()
|
/linux/drivers/gpio/ |
A D | gpio-lp87565.c | 126 __ffs(LP87565_GPIO1_OD)), in lp87565_gpio_set_config() 128 __ffs(LP87565_GPIO1_OD))); in lp87565_gpio_set_config() 133 __ffs(LP87565_GPIO1_OD)), 0); in lp87565_gpio_set_config()
|
/linux/lib/ |
A D | clz_ctz.c | 20 return __ffs(val); in __ctzsi2() 43 return __ffs((u32)val); in __ctzdi2()
|
A D | find_bit.c | 69 return min(start + __ffs(tmp), nbits); in _find_next_bit() 84 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in _find_first_bit()
|
/linux/drivers/net/wireless/realtek/rtw88/ |
A D | hci.h | 193 u32 shift = __ffs(mask); in rtw_read32_mask() 206 u32 shift = __ffs(mask); in rtw_read16_mask() 219 u32 shift = __ffs(mask); in rtw_read8_mask() 232 u32 shift = __ffs(mask); in rtw_write32_mask() 250 shift = __ffs(mask); in rtw_write8_mask()
|
/linux/sound/pci/ice1712/ |
A D | wm8766.c | 216 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8766_ctl_get() 219 val2 >>= __ffs(wm->ctl[n].mask2); in snd_wm8766_ctl_get() 254 val |= regval1 << __ffs(wm->ctl[n].mask1); in snd_wm8766_ctl_put() 259 val |= regval2 << __ffs(wm->ctl[n].mask2); in snd_wm8766_ctl_put() 266 val |= regval2 << __ffs(wm->ctl[n].mask2); in snd_wm8766_ctl_put()
|
/linux/tools/lib/ |
A D | find_bit.c | 78 return min(start + __ffs(tmp), nbits); in _find_next_bit() 92 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in _find_first_bit()
|
/linux/drivers/pinctrl/aspeed/ |
A D | pinmux-aspeed.c | 20 (rv & desc->mask) >> __ffs(desc->mask), rv); in aspeed_sig_desc_print_val() 58 return ((raw & desc->mask) >> __ffs(desc->mask)) == want; in aspeed_sig_desc_eval()
|
/linux/arch/alpha/include/asm/ |
A D | bitops.h | 334 static inline unsigned long __ffs(unsigned long word) in __ffs() function 361 int result = __ffs(word) + 1; in ffs() 452 return __ffs(tmp) + ofs; in sched_find_first_bit()
|
/linux/drivers/gpu/drm/nouveau/nvkm/core/ |
A D | event.c | 30 int type = __ffs(types); types &= ~(1 << type); in nvkm_event_put() 43 int type = __ffs(types); types &= ~(1 << type); in nvkm_event_get()
|
/linux/arch/parisc/include/asm/ |
A D | bitops.h | 126 static __inline__ unsigned long __ffs(unsigned long x) in __ffs() function 166 return x ? (__ffs((unsigned long)x) + 1) : 0; in ffs()
|