/linux-master/arch/alpha/include/asm/ |
H A D | bitops.h | 349 * __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 D | bitops.h | 19 #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 D | bitops.h | 231 * 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 D | iova.h | 50 return __ffs(iovad->granule);
|
/linux-master/sound/pci/ice1712/ |
H A D | wm8766.c | 216 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 D | debugfs.c | 64 __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 D | xe_gt_mcr.c | 250 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 D | ps3stor_lib.c | 119 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 D | irq-ompic.c | 137 ipi_msg = __ffs(ops);
|
H A D | irq-loongson-htpic.c | 44 int bit = __ffs(pending);
|
H A D | irq-lpc32xx.c | 146 irq = __ffs(hwirq); 161 irq = __ffs(hwirq);
|
/linux-master/arch/sh/drivers/dma/ |
H A D | dmabrg.c | 102 i = __ffs(dcr);
|
/linux-master/arch/hexagon/include/asm/ |
H A D | bitops.h | 255 * __ffs - find first bit in word. 263 static inline unsigned long __ffs(unsigned long word) function
|
/linux-master/drivers/clk/renesas/ |
H A D | rcar-gen3-cpg.c | 60 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 D | k3_j72xx_bandgap.c | 311 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 D | bitops.h | 491 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 D | trace.h | 67 (int)((__entry->token & TD_TOTAL_BYTES) >> __ffs(TD_TOTAL_BYTES)),
|
/linux-master/drivers/bus/mhi/ep/ |
H A D | mmio.c | 29 regval |= (val << __ffs(mask)) & mask; 39 regval >>= __ffs(mask);
|
/linux-master/arch/arm/include/asm/ |
H A D | bitops.h | 221 #include <asm-generic/bitops/__ffs.h> 233 #include <asm-generic/bitops/builtin-__ffs.h>
|
/linux-master/arch/arm/mach-omap2/ |
H A D | cm2xxx.c | 49 v |= c << __ffs(mask); 59 v >>= __ffs(mask);
|
/linux-master/drivers/media/platform/ti/cal/ |
H A D | cal.h | 302 val |= (value << __ffs(mask)) & mask; 311 val |= (field << __ffs(mask)) & mask;
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | gm200.c | 102 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 D | event.c | 33 int type = __ffs(types); types &= ~(1 << type); 50 int type = __ffs(types); types &= ~(1 << type);
|
/linux-master/fs/bcachefs/ |
H A D | eytzinger.h | 96 i >>= __ffs(i) + 1; 150 shift = __ffs(i);
|
/linux-master/arch/mips/sgi-ip27/ |
H A D | ip27-irq.c | 221 ret = generic_handle_domain_irq(domain, __ffs(pend0)); 245 ret = generic_handle_domain_irq(domain, __ffs(pend1) + 64);
|