/kernel/linux/linux-5.10/include/asm-generic/bitops/ |
H 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()
|
/kernel/linux/linux-6.6/include/asm-generic/bitops/ |
H 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()
|
/kernel/linux/linux-5.10/drivers/clk/ti/ |
H A D | dpll3xxx.c | 56 v |= clken_bits << __ffs(dd->enable_mask); in _omap3_dpll_write_clken() 71 state <<= __ffs(dd->idlest_mask); in _omap3_wait_dpll_status() 148 state <<= __ffs(dd->idlest_mask); in _omap3_noncore_dpll_lock() 319 v |= freqsel << __ffs(dd->freqsel_mask); in omap3_noncore_dpll_program() 335 v |= dd->last_rounded_m << __ffs(dd->mult_mask); in omap3_noncore_dpll_program() 336 v |= (dd->last_rounded_n - 1) << __ffs(dd->div1_mask); in omap3_noncore_dpll_program() 342 v |= dco << __ffs(dd->dco_mask); in omap3_noncore_dpll_program() 348 v |= sd_div << __ffs(dd->sddiv_mask); in omap3_noncore_dpll_program() 657 v >>= __ffs(dd->autoidle_mask); in omap3_dpll_autoidle_read() 691 v |= DPLL_AUTOIDLE_LOW_POWER_STOP << __ffs(d in omap3_dpll_allow_idle() [all...] |
H 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() 252 v >>= __ffs(ad->enable_mask); in omap2_apll_is_enabled() 277 v |= OMAP2_EN_APLL_LOCKED << __ffs(ad->enable_mask); in omap2_apll_enable() 307 v |= OMAP2_EN_APLL_STOPPED << __ffs(ad->enable_mask); in omap2_apll_disable() 325 v |= val << __ffs(a in omap2_apll_set_autoidle() [all...] |
H 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()
|
/kernel/linux/linux-6.6/drivers/clk/ti/ |
H A D | dpll3xxx.c | 56 v |= clken_bits << __ffs(dd->enable_mask); in _omap3_dpll_write_clken() 71 state <<= __ffs(dd->idlest_mask); in _omap3_wait_dpll_status() 148 state <<= __ffs(dd->idlest_mask); in _omap3_noncore_dpll_lock() 336 v |= mantissa << __ffs(dd->ssc_modfreq_mant_mask); in omap3_noncore_dpll_ssc_program() 337 v |= exponent << __ffs(dd->ssc_modfreq_exp_mask); in omap3_noncore_dpll_ssc_program() 345 deltam_step <<= __ffs(dd->ssc_deltam_int_mask); in omap3_noncore_dpll_ssc_program() 352 __ffs(dd->ssc_deltam_int_mask); in omap3_noncore_dpll_ssc_program() 366 v |= deltam_step << __ffs(dd->ssc_deltam_int_mask | in omap3_noncore_dpll_ssc_program() 401 v |= freqsel << __ffs(dd->freqsel_mask); in omap3_noncore_dpll_program() 417 v |= dd->last_rounded_m << __ffs(d in omap3_noncore_dpll_program() [all...] |
H A D | apll.c | 47 state <<= __ffs(ad->idlest_mask); in dra7_apll_enable() 57 v |= APLL_FORCE_LOCK << __ffs(ad->enable_mask); in dra7_apll_enable() 60 state <<= __ffs(ad->idlest_mask); in dra7_apll_enable() 92 state <<= __ffs(ad->idlest_mask); in dra7_apll_disable() 96 v |= APLL_AUTO_IDLE << __ffs(ad->enable_mask); in dra7_apll_disable() 111 v >>= __ffs(ad->enable_mask); in dra7_apll_is_enabled() 244 v >>= __ffs(ad->enable_mask); in omap2_apll_is_enabled() 269 v |= OMAP2_EN_APLL_LOCKED << __ffs(ad->enable_mask); in omap2_apll_enable() 299 v |= OMAP2_EN_APLL_STOPPED << __ffs(ad->enable_mask); in omap2_apll_disable() 317 v |= val << __ffs(a in omap2_apll_set_autoidle() [all...] |
H 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()
|
/kernel/linux/linux-5.10/arch/c6x/include/asm/ |
H A D | bitops.h | 22 * __ffs - find first bit in word. 26 * Note __ffs(0) = undef, __ffs(1) = 0, __ffs(0x80000000) = 31. 29 static inline unsigned long __ffs(unsigned long x) in __ffs() function 45 #define ffz(x) __ffs(~(x)) 78 return __ffs(x) + 1; in ffs()
|
/kernel/linux/linux-5.10/arch/mips/mm/ |
H 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()
|
/kernel/linux/linux-6.6/arch/mips/mm/ |
H 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()
|
/kernel/linux/linux-5.10/lib/math/ |
H A D | gcd.c | 16 /* If __ffs is available, the even/odd algorithm benchmarks slower. */ 30 b >>= __ffs(b); in gcd() 35 a >>= __ffs(a); in gcd() 39 return a << __ffs(r); in gcd()
|
/kernel/linux/linux-6.6/lib/math/ |
H A D | gcd.c | 16 /* If __ffs is available, the even/odd algorithm benchmarks slower. */ 30 b >>= __ffs(b); in gcd() 35 a >>= __ffs(a); in gcd() 39 return a << __ffs(r); in gcd()
|
/kernel/linux/linux-6.6/tools/include/linux/ |
H A D | find.h | 43 return val ? __ffs(val) : size; in find_next_bit() 73 return val ? __ffs(val) : size; in find_next_and_bit() 123 return val ? __ffs(val) : size; in find_first_bit() 148 return val ? __ffs(val) : size; in find_first_and_bit()
|
/kernel/linux/linux-5.10/arch/openrisc/include/asm/bitops/ |
H A D | __ffs.h | 14 static inline unsigned long __ffs(unsigned long x) in __ffs() function 26 #include <asm-generic/bitops/__ffs.h>
|
/kernel/linux/linux-6.6/arch/openrisc/include/asm/bitops/ |
H A D | __ffs.h | 14 static inline unsigned long __ffs(unsigned long x) in __ffs() function 26 #include <asm-generic/bitops/__ffs.h>
|
/kernel/linux/linux-6.6/arch/arc/include/asm/ |
H A D | bitops.h | 100 * __ffs: Similar to ffs, but zero based (0-31) 102 static inline __attribute__ ((const)) unsigned long __ffs(unsigned long word) in __ffs() function 160 * __ffs: Similar to ffs, but zero based (0-31) 162 static inline __attribute__ ((const)) unsigned long __ffs(unsigned long x) in __ffs() function 183 #define ffz(x) __ffs(~(x))
|
/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
H 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()
|
/kernel/linux/linux-6.6/arch/arm/mach-omap2/ |
H A D | prm33xx.c | 195 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_logic_retst() 222 v >>= __ffs(m); in am33xx_pwrdm_read_logic_retst() 236 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_mem_onst() 251 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_mem_retst() 267 v >>= __ffs(m); in am33xx_pwrdm_read_mem_pwrst() 282 v >>= __ffs(m); in am33xx_pwrdm_read_mem_retst()
|
/kernel/linux/linux-5.10/drivers/hwtracing/intel_th/ |
H 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()
|
/kernel/linux/linux-6.6/drivers/hwtracing/intel_th/ |
H 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()
|
/kernel/linux/linux-6.6/arch/mips/kvm/ |
H A D | interrupt.c | 33 priority = __ffs(*pending_clr); in kvm_mips_deliver_interrupts() 42 priority = __ffs(*pending); in kvm_mips_deliver_interrupts()
|
/kernel/linux/linux-6.6/drivers/net/ipa/ |
H A D | reg.h | 96 return fmask ? fmask >> __ffs(fmask) : 0; in reg_field_max() 107 val <<= __ffs(fmask); in reg_encode() 119 return fmask ? (val & fmask) >> __ffs(fmask) : 0; in reg_decode()
|
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/ |
H A D | hci.h | 192 u32 shift = __ffs(mask); in rtw_read32_mask() 205 u32 shift = __ffs(mask); in rtw_read16_mask() 218 u32 shift = __ffs(mask); in rtw_read8_mask() 231 u32 shift = __ffs(mask); in rtw_write32_mask() 249 shift = __ffs(mask); in rtw_write8_mask()
|
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw88/ |
H A D | hci.h | 190 u32 shift = __ffs(mask); in rtw_read32_mask() 203 u32 shift = __ffs(mask); in rtw_read16_mask() 216 u32 shift = __ffs(mask); in rtw_read8_mask() 229 u32 shift = __ffs(mask); in rtw_write32_mask() 247 shift = __ffs(mask); in rtw_write8_mask()
|