Home
last modified time | relevance | path

Searched refs:__ffs (Results 1 – 25 of 408) sorted by relevance

12345678910>>...17

/Linux-v6.1/include/asm-generic/bitops/
Dsched.h17 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-v6.1/drivers/clk/ti/
Ddpll3xxx.c56 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(dd->mult_mask); in omap3_noncore_dpll_program()
[all …]
Dapll.c47 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(ad->autoidle_mask); in omap2_apll_set_autoidle()
Dclkt_dpll.c193 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-v6.1/arch/sparc/lib/
Dffs.S17 ENTRY(__ffs)
69 ENDPROC(__ffs)
70 EXPORT_SYMBOL(__ffs)
81 .word __ffs
/Linux-v6.1/arch/mips/mm/
Dsc-mips.c159 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-v6.1/tools/include/linux/
Dfind.h43 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()
/Linux-v6.1/lib/math/
Dgcd.c30 b >>= __ffs(b); in gcd()
35 a >>= __ffs(a); in gcd()
39 return a << __ffs(r); in gcd()
/Linux-v6.1/arch/arc/include/asm/
Dbitops.h102 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-v6.1/arch/arm/mach-omap2/
Dprm33xx.c195 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()
Dprm2xxx_3xxx.c118 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()
/Linux-v6.1/drivers/hwtracing/intel_th/
Dpti.c155 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-v6.1/arch/mips/kvm/
Dinterrupt.c33 priority = __ffs(*pending_clr); in kvm_mips_deliver_interrupts()
42 priority = __ffs(*pending); in kvm_mips_deliver_interrupts()
/Linux-v6.1/lib/
Dclz_ctz.c20 return __ffs(val); in __ctzsi2()
43 return __ffs((u32)val); in __ctzdi2()
/Linux-v6.1/include/linux/
Dfind.h59 return val ? __ffs(val) : size; in find_next_bit()
89 return val ? __ffs(val) : size; in find_next_and_bit()
120 return val ? __ffs(val) : size; in find_next_andnot_bit()
170 return val ? __ffs(val) : size; in find_first_bit()
276 return val ? __ffs(val) : size; in find_first_and_bit()
482 return val ? __ffs(val) : size; in find_next_bit_le()
/Linux-v6.1/drivers/gpio/
Dgpio-lp87565.c118 __ffs(LP87565_GPIO1_OD)), in lp87565_gpio_set_config()
120 __ffs(LP87565_GPIO1_OD))); in lp87565_gpio_set_config()
125 __ffs(LP87565_GPIO1_OD)), 0); in lp87565_gpio_set_config()
/Linux-v6.1/drivers/net/wireless/realtek/rtw88/
Dhci.h193 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-v6.1/drivers/pinctrl/aspeed/
Dpinmux-aspeed.c20 (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-v6.1/tools/lib/
Dfind_bit.c34 sz = min(idx * BITS_PER_LONG + __ffs(MUNGE(val)), sz); \
65 sz = min(idx * BITS_PER_LONG + __ffs(MUNGE(tmp)), sz); \
/Linux-v6.1/drivers/bus/mhi/host/
Ddebugfs.c64 __ffs(EV_CTX_INTMODC_MASK), in mhi_debugfs_events_show()
66 __ffs(EV_CTX_INTMODT_MASK)); in mhi_debugfs_events_show()
110 CHAN_CTX_CHSTATE_MASK) >> __ffs(CHAN_CTX_CHSTATE_MASK), in mhi_debugfs_channels_show()
112 __ffs(CHAN_CTX_BRSTMODE_MASK), (le32_to_cpu(chan_ctxt->chcfg) & in mhi_debugfs_channels_show()
113 CHAN_CTX_POLLCFG_MASK) >> __ffs(CHAN_CTX_POLLCFG_MASK)); in mhi_debugfs_channels_show()
/Linux-v6.1/sound/pci/ice1712/
Dwm8766.c216 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-v6.1/drivers/gpu/drm/nouveau/nvkm/core/
Devent.c30 int type = __ffs(types); types &= ~(1 << type); in nvkm_event_put()
43 int type = __ffs(types); types &= ~(1 << type); in nvkm_event_get()
/Linux-v6.1/arch/alpha/include/asm/
Dbitops.h331 static inline unsigned long __ffs(unsigned long word) in __ffs() function
358 int result = __ffs(word) + 1; in ffs()
447 return __ffs(tmp) + ofs; in sched_find_first_bit()
/Linux-v6.1/drivers/net/ethernet/microchip/lan966x/
Dlan966x_lag.c104 lag_id = __ffs(bond_mask); in lan966x_lag_set_port_ids()
132 lag_id = __ffs(bond_mask); in lan966x_lag_port_join()
171 lag_id = __ffs(bond_mask); in lan966x_lag_port_leave()
338 if (bond_mask && port->chip_port == __ffs(bond_mask)) in lan966x_lag_first_port()
/Linux-v6.1/arch/parisc/include/asm/
Dbitops.h126 static __inline__ unsigned long __ffs(unsigned long x) in __ffs() function
166 return x ? (__ffs((unsigned long)x) + 1) : 0; in ffs()

12345678910>>...17