Home
last modified time | relevance | path

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

123

/linux-4.19.296/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()
Dffz.h11 #define ffz(x) __ffs(~(x))
Dbuiltin-__ffs.h11 static __always_inline unsigned long __ffs(unsigned long word) in __ffs() function
D__ffs.h13 static __always_inline unsigned long __ffs(unsigned long word) in __ffs() function
/linux-4.19.296/drivers/clk/ti/
Dapll.c55 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()
Ddpll3xxx.c59 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 …]
Dclkt_dpll.c196 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-4.19.296/lib/
Dgcd.c29 b >>= __ffs(b); in gcd()
34 a >>= __ffs(a); in gcd()
38 return a << __ffs(r); in gcd()
Dfind_bit.c63 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()
186 return min(start + __ffs(swab(tmp)), nbits); in _find_next_bit_le()
Dclz_ctz.c22 return __ffs(val); in __ctzsi2()
/linux-4.19.296/drivers/gpio/
Dgpio-lp87565.c123 __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-4.19.296/drivers/regulator/
Dlp873x-regulator.c100 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()
Dlp87565-regulator.c90 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()
Dti-abb-regulator.c135 val |= (value << __ffs(mask)) & mask; in ti_abb_rmw()
232 val |= info->vset << __ffs(abb->ldovbb_vset_mask); in ti_abb_program_ldovbb()
609 info->vset = (efuse_val & vset_mask) >> __ffs(vset_mask); in ti_abb_init_table()
/linux-4.19.296/drivers/media/v4l2-core/
Dv4l2-common.c336 walign = __ffs(*w); in v4l_bound_align_image()
337 halign = __ffs(*h); in v4l_bound_align_image()
350 walign = __ffs(*w); in v4l_bound_align_image()
353 halign = __ffs(*h); in v4l_bound_align_image()
/linux-4.19.296/include/linux/
Dcount_zeros.h54 return (x != 0) ? __ffs(x) : COUNT_TRAILING_ZEROS_0; in count_trailing_zeros()
Dbitops.h206 return __ffs((u32)(word >> 32)) + 32; in __ffs64()
210 return __ffs((unsigned long)word); in __ffs64()
/linux-4.19.296/drivers/iio/buffer/
Dindustrialio-buffer-dmaengine.c166 src_width = __ffs(caps.src_addr_widths); in iio_dmaengine_buffer_alloc()
170 dest_width = __ffs(caps.dst_addr_widths); in iio_dmaengine_buffer_alloc()
/linux-4.19.296/drivers/irqchip/
Dirq-lpc32xx.c133 irq = __ffs(hwirq); in lpc32xx_handle_irq()
148 irq = __ffs(hwirq); in lpc32xx_sic_handler()
Dirq-ompic.c137 ipi_msg = __ffs(ops); in ompic_ipi_handler()
Dirq-ts4800.c81 unsigned int bit = __ffs(status); in ts4800_ic_chained_handle_irq()
Dirq-ath79-misc.c45 int bit = __ffs(pending); in ath79_misc_irq_handler()
/linux-4.19.296/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx.h37 #define ST_LSM6DSX_SHIFT_VAL(val, mask) (((val) << __ffs(mask)) & (mask))
/linux-4.19.296/drivers/bus/
Domap_l3_noc.c122 l3->mst_addr_mask) >> __ffs(l3->mst_addr_mask); in l3_handle_target()
195 err_src = __ffs(err_reg); in l3_interrupt_handler()
/linux-4.19.296/lib/lz4/
Dlz4defs.h171 return __ffs(val) >> 3; in LZ4_NbCommonBytes()

123