/Linux-v4.19/include/asm-generic/bitops/ |
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()
|
/Linux-v4.19/arch/mips/kernel/ |
D | mips-cm.c | 187 __ffs(CM_GCR_REV_MAJOR); in mips_cm_probe_l2sync() 270 val = core << __ffs(CM3_GCR_Cx_OTHER_CORE); in mips_cm_lock_other() 271 val |= vp << __ffs(CM3_GCR_Cx_OTHER_VP); in mips_cm_lock_other() 275 val |= cluster << __ffs(CM_GCR_Cx_OTHER_CLUSTER); in mips_cm_lock_other() 276 val |= block << __ffs(CM_GCR_Cx_OTHER_BLOCK); in mips_cm_lock_other() 306 val = core << __ffs(CM_GCR_Cx_OTHER_CORENUM); in mips_cm_lock_other() 350 cause = cm_error >> __ffs(CM_GCR_ERROR_CAUSE_ERRTYPE); in mips_cm_error_report() 351 ocause = cm_other >> __ffs(CM_GCR_ERROR_MULT_ERR2ND); in mips_cm_error_report() 394 ocause = cm_other >> __ffs(CM_GCR_ERROR_MULT_ERR2ND); in mips_cm_error_report()
|
/Linux-v4.19/arch/c6x/include/asm/ |
D | bitops.h | 32 static inline unsigned long __ffs(unsigned long x) in __ffs() function 48 #define ffz(x) __ffs(~(x)) 81 return __ffs(x) + 1; in ffs()
|
/Linux-v4.19/drivers/clk/ti/ |
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() 249 v >>= __ffs(ad->enable_mask); in omap2_apll_is_enabled() 274 v |= OMAP2_EN_APLL_LOCKED << __ffs(ad->enable_mask); in omap2_apll_enable() 304 v |= OMAP2_EN_APLL_STOPPED << __ffs(ad->enable_mask); in omap2_apll_disable() 322 v |= val << __ffs(ad->autoidle_mask); in omap2_apll_set_autoidle()
|
D | dpll3xxx.c | 59 v |= clken_bits << __ffs(dd->enable_mask); in _omap3_dpll_write_clken() 74 state <<= __ffs(dd->idlest_mask); in _omap3_wait_dpll_status() 151 state <<= __ffs(dd->idlest_mask); in _omap3_noncore_dpll_lock() 322 v |= freqsel << __ffs(dd->freqsel_mask); in omap3_noncore_dpll_program() 338 v |= dd->last_rounded_m << __ffs(dd->mult_mask); in omap3_noncore_dpll_program() 339 v |= (dd->last_rounded_n - 1) << __ffs(dd->div1_mask); in omap3_noncore_dpll_program() 345 v |= dco << __ffs(dd->dco_mask); in omap3_noncore_dpll_program() 351 v |= sd_div << __ffs(dd->sddiv_mask); in omap3_noncore_dpll_program() 660 v >>= __ffs(dd->autoidle_mask); in omap3_dpll_autoidle_read() 694 v |= DPLL_AUTOIDLE_LOW_POWER_STOP << __ffs(dd->autoidle_mask); in omap3_dpll_allow_idle() [all …]
|
D | clkt_dpll.c | 196 val = __ffs(mask); in _omap2_dpll_is_in_bypass() 218 v >>= __ffs(dd->enable_mask); in omap2_init_dpll_parent() 254 v >>= __ffs(dd->enable_mask); in omap2_get_dpll_rate() 261 dpll_mult >>= __ffs(dd->mult_mask); in omap2_get_dpll_rate() 263 dpll_div >>= __ffs(dd->div1_mask); in omap2_get_dpll_rate()
|
/Linux-v4.19/arch/sparc/lib/ |
D | ffs.S | 17 ENTRY(__ffs) 69 ENDPROC(__ffs) 70 EXPORT_SYMBOL(__ffs) 81 .word __ffs
|
/Linux-v4.19/arch/mips/mm/ |
D | sc-mips.c | 160 sets >>= __ffs(CM_GCR_L2_CONFIG_SET_SIZE); in mips_sc_probe_cm3() 165 line_sz >>= __ffs(CM_GCR_L2_CONFIG_LINE_SIZE); in mips_sc_probe_cm3() 170 assoc >>= __ffs(CM_GCR_L2_CONFIG_ASSOC); in mips_sc_probe_cm3() 173 c->scache.waybit = __ffs(c->scache.waysize); in mips_sc_probe_cm3() 233 c->scache.waybit = __ffs(c->scache.waysize); in mips_sc_probe()
|
/Linux-v4.19/lib/ |
D | gcd.c | 29 b >>= __ffs(b); in gcd() 34 a >>= __ffs(a); in gcd() 38 return a << __ffs(r); in gcd()
|
D | clz_ctz.c | 22 return __ffs(val); in __ctzsi2() 45 return __ffs((u32)val); in __ctzdi2()
|
D | find_bit.c | 63 return min(start + __ffs(tmp), nbits); in _find_next_bit() 108 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit() 198 return min(start + __ffs(ext2_swab(tmp)), nbits); in _find_next_bit_le()
|
/Linux-v4.19/arch/arm/mach-omap2/ |
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()
|
D | prm2xxx_3xxx.c | 121 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_onst() 134 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_retst() 164 v = pwrst << __ffs(OMAP_LOGICRETSTATE_MASK); in omap2_pwrdm_set_logic_retst()
|
D | clkt2xxx_dpllcore.c | 157 tmpset.cm_clksel1_pll |= (div << __ffs(dd->mult_mask)); in omap2_reprogram_dpllcore() 158 tmpset.cm_clksel1_pll |= (mult << __ffs(dd->div1_mask)); in omap2_reprogram_dpllcore()
|
/Linux-v4.19/drivers/hwtracing/intel_th/ |
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-v4.19/drivers/net/wireless/mediatek/mt76/ |
D | mt76x2_mcu.h | 48 #define MT_LED_STATUS_OFF(_v) (((_v) << __ffs(MT_LED_STATUS_OFF_MASK)) & \ 51 #define MT_LED_STATUS_ON(_v) (((_v) << __ffs(MT_LED_STATUS_ON_MASK)) & \ 54 #define MT_LED_STATUS_DURATION(_v) (((_v) << __ffs(MT_LED_STATUS_DURATION_MASK)) & \
|
/Linux-v4.19/drivers/gpio/ |
D | gpio-lp87565.c | 123 __ffs(LP87565_GOIO1_OD)), in lp87565_gpio_set_config() 125 __ffs(LP87565_GOIO1_OD))); in lp87565_gpio_set_config() 130 __ffs(LP87565_GOIO1_OD)), 0); in lp87565_gpio_set_config()
|
/Linux-v4.19/tools/lib/ |
D | find_bit.c | 64 return min(start + __ffs(tmp), nbits); in _find_next_bit() 89 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit()
|
/Linux-v4.19/drivers/regulator/ |
D | lp873x-regulator.c | 100 reg << __ffs(LP873X_BUCK0_CTRL_2_BUCK0_SLEW_RATE)); in lp873x_buck_set_ramp_delay() 124 i << __ffs(LP873X_BUCK0_CTRL_2_BUCK0_ILIM)); in lp873x_buck_set_current_limit() 142 __ffs(LP873X_BUCK0_CTRL_2_BUCK0_ILIM); in lp873x_buck_get_current_limit()
|
D | lp87565-regulator.c | 90 reg << __ffs(LP87565_BUCK_CTRL_2_SLEW_RATE)); in lp87565_buck_set_ramp_delay() 118 i << __ffs(LP87565_BUCK_CTRL_2_ILIM)); in lp87565_buck_set_current_limit() 136 __ffs(LP87565_BUCK_CTRL_2_ILIM); in lp87565_buck_get_current_limit()
|
/Linux-v4.19/arch/arc/include/asm/ |
D | bitops.h | 343 static inline __attribute__ ((const)) int __ffs(unsigned long word) in __ffs() function 403 static inline __attribute__ ((const)) int __ffs(unsigned long x) in __ffs() function 424 #define ffz(x) __ffs(~(x))
|
/Linux-v4.19/sound/pci/ice1712/ |
D | wm8766.c | 230 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8766_ctl_get() 233 val2 >>= __ffs(wm->ctl[n].mask2); in snd_wm8766_ctl_get() 268 val |= regval1 << __ffs(wm->ctl[n].mask1); in snd_wm8766_ctl_put() 273 val |= regval2 << __ffs(wm->ctl[n].mask2); in snd_wm8766_ctl_put() 280 val |= regval2 << __ffs(wm->ctl[n].mask2); in snd_wm8766_ctl_put()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/core/ |
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-v4.19/arch/alpha/include/asm/ |
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-v4.19/arch/arm/include/asm/ |
D | ptrace.h | 42 ((((regs)->ARM_cpsr & PSR_J_BIT) >> (__ffs(PSR_J_BIT) - 1)) | \ 43 (((regs)->ARM_cpsr & PSR_T_BIT) >> (__ffs(PSR_T_BIT))))
|