Searched refs:__ffs (Results 51 - 75 of 431) sorted by relevance

1234567891011>>

/linux-master/arch/alpha/include/asm/
H A Dbitops.h349 * __ffs = Find First set bit in word. Undefined if no set bit exists.
351 static inline unsigned long __ffs(unsigned long word) function
373 * differs in spirit from the above __ffs.
378 int result = __ffs(word) + 1;
467 return __ffs(tmp) + ofs;
/linux-master/arch/riscv/include/asm/
H A Dbitops.h19 #include <asm-generic/bitops/__ffs.h>
30 #include <asm-generic/bitops/__ffs.h>
67 * __ffs - find first set bit in a long word
72 #define __ffs(word) \ macro
/linux-master/include/linux/
H A Dbitops.h231 * On 64 bit arches this is a synonym for __ffs
239 return __ffs((u32)(word >> 32)) + 32;
243 return __ffs((unsigned long)word);
256 return word ? __ffs(word) : BITS_PER_LONG;
H A Diova.h50 return __ffs(iovad->granule);
/linux-master/sound/pci/ice1712/
H A Dwm8766.c216 val1 >>= __ffs(wm->ctl[n].mask1);
219 val2 >>= __ffs(wm->ctl[n].mask2);
254 val |= regval1 << __ffs(wm->ctl[n].mask1);
259 val |= regval2 << __ffs(wm->ctl[n].mask2);
266 val |= regval2 << __ffs(wm->ctl[n].mask2);
/linux-master/drivers/bus/mhi/host/
H A Ddebugfs.c64 __ffs(EV_CTX_INTMODC_MASK),
66 __ffs(EV_CTX_INTMODT_MASK));
110 CHAN_CTX_CHSTATE_MASK) >> __ffs(CHAN_CTX_CHSTATE_MASK),
112 __ffs(CHAN_CTX_BRSTMODE_MASK), (le32_to_cpu(chan_ctxt->chcfg) &
113 CHAN_CTX_POLLCFG_MASK) >> __ffs(CHAN_CTX_POLLCFG_MASK));
/linux-master/drivers/gpu/drm/xe/
H A Dxe_gt_mcr.c250 gt->steering[L3BANK].group_target = __ffs(mslice_mask);
256 u32 bank = __ffs(mslice_mask) * 8;
270 gt->steering[L3BANK].instance_target = __ffs(fuse);
286 gt->steering[MSLICE].group_target = __ffs(mask);
294 gt->steering[LNCF].group_target = __ffs(mask) << 1;
352 u32 select = __ffs(mask);
/linux-master/drivers/ps3/
H A Dps3stor_lib.c119 dev->region_idx = __ffs(dev->accessible_regions);
166 alignment = min(__ffs(dev->bounce_size),
167 __ffs((unsigned long)dev->bounce_buf));
/linux-master/drivers/irqchip/
H A Dirq-ompic.c137 ipi_msg = __ffs(ops);
H A Dirq-loongson-htpic.c44 int bit = __ffs(pending);
H A Dirq-lpc32xx.c146 irq = __ffs(hwirq);
161 irq = __ffs(hwirq);
/linux-master/arch/sh/drivers/dma/
H A Ddmabrg.c102 i = __ffs(dcr);
/linux-master/arch/hexagon/include/asm/
H A Dbitops.h255 * __ffs - find first bit in word.
263 static inline unsigned long __ffs(unsigned long word) function
/linux-master/drivers/clk/renesas/
H A Drcar-gen3-cpg.c60 mult = (val >> __ffs(CPG_PLLnCR_STC_MASK)) + 1;
97 val |= (mult - 1) << __ffs(CPG_PLLnCR_STC_MASK);
183 mult = 32 - (val >> __ffs(zclk->mask));
234 cpg_reg_modify(zclk->reg, zclk->mask, (32 - mult) << __ffs(zclk->mask));
/linux-master/drivers/thermal/
H A Dk3_j72xx_bandgap.c311 tmp = tmp >> __ffs(ct_bm[id][i]);
314 pow = ct_bm[id][i] >> __ffs(ct_bm[id][i]);
322 tmp = two_cmp(tmp, ct_bm[id][i] >> __ffs(ct_bm[id][i]));
426 cnt >>= __ffs(K3_VTM_DEVINFO_PWR0_TEMPSENS_CT_MASK);
/linux-master/arch/m68k/include/asm/
H A Dbitops.h491 static inline unsigned long __ffs(unsigned long x) function
503 return __ffs(x) + 1;
508 #include <asm-generic/bitops/__ffs.h>
531 static inline unsigned long __ffs(unsigned long x) function
/linux-master/drivers/usb/chipidea/
H A Dtrace.h67 (int)((__entry->token & TD_TOTAL_BYTES) >> __ffs(TD_TOTAL_BYTES)),
/linux-master/drivers/bus/mhi/ep/
H A Dmmio.c29 regval |= (val << __ffs(mask)) & mask;
39 regval >>= __ffs(mask);
/linux-master/arch/arm/include/asm/
H A Dbitops.h221 #include <asm-generic/bitops/__ffs.h>
233 #include <asm-generic/bitops/builtin-__ffs.h>
/linux-master/arch/arm/mach-omap2/
H A Dcm2xxx.c49 v |= c << __ffs(mask);
59 v >>= __ffs(mask);
/linux-master/drivers/media/platform/ti/cal/
H A Dcal.h302 val |= (value << __ffs(mask)) & mask;
311 val |= (field << __ffs(mask)) & mask;
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dgm200.c102 const u32 moff = __ffs(outp->info.or) * 0x100;
122 for (*link = 0, m = __ffs(outp->info.or) * 2, s = 0; s < 2; m++, s++) {
/linux-master/drivers/gpu/drm/nouveau/nvkm/core/
H A Devent.c33 int type = __ffs(types); types &= ~(1 << type);
50 int type = __ffs(types); types &= ~(1 << type);
/linux-master/fs/bcachefs/
H A Deytzinger.h96 i >>= __ffs(i) + 1;
150 shift = __ffs(i);
/linux-master/arch/mips/sgi-ip27/
H A Dip27-irq.c221 ret = generic_handle_domain_irq(domain, __ffs(pend0));
245 ret = generic_handle_domain_irq(domain, __ffs(pend1) + 64);

Completed in 373 milliseconds

1234567891011>>