__ffs             361 arch/alpha/include/asm/bitops.h 	int result = __ffs(word) + 1;
__ffs             452 arch/alpha/include/asm/bitops.h 	return __ffs(tmp) + ofs;
__ffs             543 arch/alpha/kernel/smp.c 		which = __ffs(which);
__ffs             421 arch/arc/include/asm/bitops.h #define ffz(x)	__ffs(~(x))
__ffs             147 arch/arc/kernel/mcip.c 		c = __ffs(cpu);			/* 0,1,2,3 */
__ffs             420 arch/arc/kernel/perf_event.c 		idx = __ffs(active_ints);
__ffs             383 arch/arc/kernel/smp.c 		unsigned long msg = __ffs(pending);
__ffs             123 arch/arm/common/it8152.c 		       i = __ffs(bits_pd);
__ffs             130 arch/arm/common/it8152.c 		       i = __ffs(bits_lp);
__ffs             137 arch/arm/common/it8152.c 		       i = __ffs(bits_ld);
__ffs              39 arch/arm/include/asm/ptrace.h 	((((regs)->ARM_cpsr & PSR_J_BIT) >> (__ffs(PSR_J_BIT) - 1)) | \
__ffs              40 arch/arm/include/asm/ptrace.h 	 (((regs)->ARM_cpsr & PSR_T_BIT) >> (__ffs(PSR_T_BIT))))
__ffs             154 arch/arm/mach-omap2/clkt2xxx_dpllcore.c 		tmpset.cm_clksel1_pll |= (div << __ffs(dd->mult_mask));
__ffs             155 arch/arm/mach-omap2/clkt2xxx_dpllcore.c 		tmpset.cm_clksel1_pll |= (mult << __ffs(dd->div1_mask));
__ffs              49 arch/arm/mach-omap2/cm2xxx.c 	v |= c << __ffs(mask);
__ffs              59 arch/arm/mach-omap2/cm2xxx.c 	v >>= __ffs(mask);
__ffs             108 arch/arm/mach-omap2/cm2xxx.c 	v |= m << __ffs(mask);
__ffs              81 arch/arm/mach-omap2/cm2xxx_3xxx.h 	v >>= __ffs(mask);
__ffs              81 arch/arm/mach-omap2/cm33xx.c 	v >>= __ffs(mask);
__ffs              38 arch/arm/mach-omap2/cm3xxx.c 	v |= c << __ffs(mask);
__ffs              48 arch/arm/mach-omap2/cm3xxx.c 	v >>= __ffs(mask);
__ffs             161 arch/arm/mach-omap2/cminst44xx.c 	v >>= __ffs(mask);
__ffs             351 arch/arm/mach-omap2/omap_hwmod.c 	*v |= __ffs(standbymode) << mstandby_shift;
__ffs             384 arch/arm/mach-omap2/omap_hwmod.c 	*v |= __ffs(idlemode) << sidle_shift;
__ffs             118 arch/arm/mach-omap2/prm2xxx_3xxx.c 	omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs,
__ffs             131 arch/arm/mach-omap2/prm2xxx_3xxx.c 	omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs,
__ffs             161 arch/arm/mach-omap2/prm2xxx_3xxx.c 	v = pwrst << __ffs(OMAP_LOGICRETSTATE_MASK);
__ffs              84 arch/arm/mach-omap2/prm2xxx_3xxx.h 	v >>= __ffs(mask);
__ffs             203 arch/arm/mach-omap2/prm33xx.c 	am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)),
__ffs             230 arch/arm/mach-omap2/prm33xx.c 	v >>= __ffs(m);
__ffs             244 arch/arm/mach-omap2/prm33xx.c 	am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)),
__ffs             259 arch/arm/mach-omap2/prm33xx.c 	am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)),
__ffs             275 arch/arm/mach-omap2/prm33xx.c 	v >>= __ffs(m);
__ffs             290 arch/arm/mach-omap2/prm33xx.c 	v >>= __ffs(m);
__ffs             494 arch/arm/mach-omap2/prm44xx.c 	v = pwrst << __ffs(OMAP4430_LOGICRETSTATE_MASK);
__ffs             509 arch/arm/mach-omap2/prm44xx.c 	omap4_prminst_rmw_inst_reg_bits(m, (pwrst << __ffs(m)),
__ffs             523 arch/arm/mach-omap2/prm44xx.c 	omap4_prminst_rmw_inst_reg_bits(m, (pwrst << __ffs(m)),
__ffs             591 arch/arm/mach-omap2/prm44xx.c 	v >>= __ffs(m);
__ffs             605 arch/arm/mach-omap2/prm44xx.c 	v >>= __ffs(m);
__ffs             337 arch/arm/mach-omap2/vc.c 	val <<= __ffs(voltdm->vfsm->voltsetup_mask);
__ffs             720 arch/arm/mach-omap2/vc.c 			    mcode << __ffs(vc->common->i2c_mcode_mask),
__ffs             798 arch/arm/mach-omap2/vc.c 		    vc->i2c_slave_addr << __ffs(vc->smps_sa_mask),
__ffs             806 arch/arm/mach-omap2/vc.c 		    vc->volt_reg_addr << __ffs(vc->smps_volra_mask),
__ffs             812 arch/arm/mach-omap2/vc.c 			    vc->cmd_reg_addr << __ffs(vc->smps_cmdra_mask),
__ffs              25 arch/arm/mach-omap2/vp.c 	vpconfig |= vsel << __ffs(vp->common->vpconfig_initvoltage_mask);
__ffs              77 arch/arm/mach-omap2/vp.c 	       __ffs(voltdm->vp->common->vpconfig_erroroffset_mask)) |
__ffs             114 arch/arm/mach-omap2/vp.c 		    __ffs(voltdm->vp->common->vpconfig_errorgain_mask),
__ffs             507 arch/arm/mach-pxa/balloon3.c 			irq = BALLOON3_IRQ(0) + __ffs(pending);
__ffs             602 arch/arm/mach-pxa/em-x270.c 		int vdd_uV = (2000 + (vdd - __ffs(MMC_VDD_20_21)) * 100) * 1000;
__ffs             131 arch/arm/mach-pxa/lpd270.c 			irq = LPD270_IRQ(0) + __ffs(pending);
__ffs             300 arch/arm/mach-pxa/pcm990-baseboard.c 			irq = PCM027_IRQ(0) + __ffs(pending);
__ffs             290 arch/arm/mach-pxa/viper.c 			irq = viper_bit_to_irq(__ffs(pending));
__ffs             120 arch/arm/mach-pxa/zeus.c 			irq = zeus_bit_to_irq(__ffs(pending));
__ffs             362 arch/arm/mm/pmsa-v7.c 	return __ffs(max(drbar_result, irbar_result));
__ffs              44 arch/arm/probes/kprobes/actions-common.c 		int reg = __ffs(reg_bit_vector);
__ffs             374 arch/arm64/kernel/hw_breakpoint.c 	*offset = __ffs(ctrl.len);
__ffs             720 arch/arm64/kernel/hw_breakpoint.c 	lens = __ffs(ctrl->len);
__ffs              45 arch/c6x/include/asm/bitops.h #define ffz(x) __ffs(~(x))
__ffs              78 arch/c6x/include/asm/bitops.h 	return __ffs(x) + 1;
__ffs             269 arch/c6x/kernel/traps.c 		iexcept_num = __ffs(iexcept_report);
__ffs             107 arch/c6x/platforms/megamod-pic.c 		n = __ffs(events);
__ffs             316 arch/c6x/platforms/megamod-pic.c 			bit = __ffs(mask);
__ffs             153 arch/h8300/include/asm/bitops.h static inline unsigned long __ffs(unsigned long word)
__ffs             583 arch/ia64/hp/common/sba_iommu.c 			if (bits && res_ptr[i] && (__ffs(res_ptr[i]) < bits))
__ffs             187 arch/ia64/mm/hugetlbpage.c 	hpage_shift = __ffs(size);
__ffs             469 arch/m68k/include/asm/bitops.h 	return __ffs(x) + 1;
__ffs             872 arch/mips/alchemy/common/dbdma.c 	chan_index = __ffs(intstat);
__ffs             858 arch/mips/alchemy/common/irq.c 		generic_handle_irq(base + __ffs(r));			      \
__ffs             995 arch/mips/alchemy/common/irq.c 	do_IRQ(MIPS_CPU_IRQ_BASE + __ffs(r & 0xff));
__ffs              97 arch/mips/alchemy/devboards/bcsr.c 	generic_handle_irq(bcsr_csc_base + __ffs(bisr));
__ffs              81 arch/mips/ath25/ar2315.c 		nr = __ffs(pending);
__ffs              85 arch/mips/ath25/ar5312.c 		nr = __ffs(pending);
__ffs             156 arch/mips/include/asm/mips-cm.h 		(((major) << __ffs(CM_GCR_REV_MAJOR)) | \
__ffs             157 arch/mips/include/asm/mips-cm.h 		 ((minor) << __ffs(CM_GCR_REV_MINOR)))
__ffs             377 arch/mips/include/asm/mips-cm.h 		return (cfg >> __ffs(CM_GCR_Cx_CONFIG_PVPE)) + 1;
__ffs             121 arch/mips/include/asm/mips-cps.h 	num_clusters >>= __ffs(CM_GCR_CONFIG_NUM_CLUSTERS);
__ffs             190 arch/mips/include/asm/mips-cps.h 	num_iocu >>= __ffs(CM_GCR_CONFIG_NUMIOCU);
__ffs             183 arch/mips/kernel/mips-cm.c 		__ffs(CM_GCR_REV_MAJOR);
__ffs             266 arch/mips/kernel/mips-cm.c 		val = core << __ffs(CM3_GCR_Cx_OTHER_CORE);
__ffs             267 arch/mips/kernel/mips-cm.c 		val |= vp << __ffs(CM3_GCR_Cx_OTHER_VP);
__ffs             271 arch/mips/kernel/mips-cm.c 			val |= cluster << __ffs(CM_GCR_Cx_OTHER_CLUSTER);
__ffs             272 arch/mips/kernel/mips-cm.c 			val |= block << __ffs(CM_GCR_Cx_OTHER_BLOCK);
__ffs             302 arch/mips/kernel/mips-cm.c 		val = core << __ffs(CM_GCR_Cx_OTHER_CORENUM);
__ffs             346 arch/mips/kernel/mips-cm.c 		cause = cm_error >> __ffs(CM_GCR_ERROR_CAUSE_ERRTYPE);
__ffs             347 arch/mips/kernel/mips-cm.c 		ocause = cm_other >> __ffs(CM_GCR_ERROR_MULT_ERR2ND);
__ffs             390 arch/mips/kernel/mips-cm.c 		ocause = cm_other >> __ffs(CM_GCR_ERROR_MULT_ERR2ND);
__ffs             100 arch/mips/kernel/mips-cpc.c 	write_cpc_cl_other(core << __ffs(CPC_Cx_OTHER_CORENUM));
__ffs             256 arch/mips/kernel/smp-cps.c 			seq_state >>= __ffs(CPC_Cx_STAT_CONF_SEQSTATE);
__ffs             558 arch/mips/kernel/smp-cps.c 			stat >>= __ffs(CPC_Cx_STAT_CONF_SEQSTATE);
__ffs             213 arch/mips/kvm/interrupt.c 	priority = __ffs(*pending_clr);
__ffs             225 arch/mips/kvm/interrupt.c 	priority = __ffs(*pending);
__ffs             446 arch/mips/kvm/mmu.c 	gfn_t start = base_gfn +  __ffs(mask);
__ffs             124 arch/mips/loongson32/common/irq.c 		irq = LS1X_IRQ(n, __ffs(int_status));
__ffs              29 arch/mips/loongson64/common/irq.c 		i = __ffs(int_status);
__ffs            1091 arch/mips/mm/c-r4k.c 		c->icache.waybit = __ffs(icache_size/2);
__ffs            1096 arch/mips/mm/c-r4k.c 		c->dcache.waybit= __ffs(dcache_size/2);
__ffs            1183 arch/mips/mm/c-r4k.c 		c->icache.waybit = __ffs(icache_size/2);
__ffs            1188 arch/mips/mm/c-r4k.c 		c->dcache.waybit = __ffs(dcache_size/2);
__ffs            1216 arch/mips/mm/c-r4k.c 		c->icache.waybit = __ffs(icache_size / c->icache.ways);
__ffs            1221 arch/mips/mm/c-r4k.c 		c->dcache.waybit = __ffs(dcache_size / c->dcache.ways);
__ffs            1313 arch/mips/mm/c-r4k.c 		c->icache.waybit = __ffs(icache_size/c->icache.ways);
__ffs            1337 arch/mips/mm/c-r4k.c 		c->dcache.waybit = __ffs(dcache_size/c->dcache.ways);
__ffs             160 arch/mips/mm/sc-mips.c 	sets >>= __ffs(CM_GCR_L2_CONFIG_SET_SIZE);
__ffs             165 arch/mips/mm/sc-mips.c 	line_sz >>= __ffs(CM_GCR_L2_CONFIG_LINE_SIZE);
__ffs             170 arch/mips/mm/sc-mips.c 	assoc >>= __ffs(CM_GCR_L2_CONFIG_ASSOC);
__ffs             173 arch/mips/mm/sc-mips.c 	c->scache.waybit = __ffs(c->scache.waysize);
__ffs             246 arch/mips/mm/sc-mips.c 	c->scache.waybit = __ffs(c->scache.waysize);
__ffs             239 arch/mips/mm/sc-rm7k.c 	c->scache.waybit= __ffs(scache_size / c->scache.ways);
__ffs             340 arch/mips/paravirt/paravirt-irq.c 			do_IRQ(__ffs(en) + MIPS_IRQ_MBOX0);	/* MBOX type */
__ffs             342 arch/mips/paravirt/paravirt-irq.c 		do_IRQ(__ffs(en));
__ffs             531 arch/mips/pci/msi-xlp.c 		i = __ffs(status);
__ffs             565 arch/mips/pci/msi-xlp.c 		i = __ffs(status);
__ffs             342 arch/mips/pci/pci-ar2315.c 		pci_irq = irq_find_mapping(apc->domain, __ffs(pending));
__ffs             144 arch/mips/pci/pci-rt3883.c 		unsigned irq, bit = __ffs(pending);
__ffs             103 arch/mips/ralink/irq.c 		generic_handle_irq(irq_find_mapping(domain, __ffs(pending)));
__ffs             219 arch/mips/sgi-ip27/ip27-irq.c 		irq = irq_linear_revmap(domain, __ffs(pend0));
__ffs             245 arch/mips/sgi-ip27/ip27-irq.c 	irq = irq_linear_revmap(domain, __ffs(pend1) + 64);
__ffs             382 arch/mips/sgi-ip32/ip32-irq.c 	irq = MACE_VID_IN1_IRQ + __ffs(crime_int);
__ffs             386 arch/mips/sgi-ip32/ip32-irq.c 		irq = __ffs(mace_int & maceisa_mask) + MACEISA_AUDIO_SW_IRQ;
__ffs             183 arch/parisc/include/asm/bitops.h 	return x ? (__ffs((unsigned long)x) + 1) : 0;
__ffs             406 arch/powerpc/kvm/book3s.c 	priority = __ffs(*pending);
__ffs             667 arch/powerpc/kvm/booke.c 	priority = __ffs(*pending);
__ffs              80 arch/powerpc/mm/book3s64/iommu_api.c 		mem->pageshift = __ffs(dev_hpa | (entries << PAGE_SHIFT));
__ffs              91 arch/powerpc/mm/book3s64/iommu_api.c 	mem->pageshift = __ffs(ua | (entries << PAGE_SHIFT));
__ffs             125 arch/powerpc/mm/hugetlbpage.c 	unsigned pshift = __ffs(sz);
__ffs             563 arch/powerpc/mm/hugetlbpage.c 	int shift = __ffs(size);
__ffs             147 arch/powerpc/mm/nohash/fsl_booke.c 	unsigned int align = __ffs(virt | phys);
__ffs             173 arch/powerpc/platforms/embedded6xx/flipper-pic.c 	irq = __ffs(irq_status);
__ffs             119 arch/powerpc/platforms/embedded6xx/hlwd-pic.c 	irq = __ffs(irq_status);
__ffs             161 arch/powerpc/sysdev/fsl_pci.c 					__ffs(pci_addr | phys_addr));
__ffs             542 arch/riscv/net/bpf_jit_comp.c 	shift = __ffs(upper);
__ffs             102 arch/sh/drivers/dma/dmabrg.c 		i = __ffs(dcr);
__ffs              36 arch/sparc/include/asm/bitops_64.h unsigned long __ffs(unsigned long);
__ffs            1073 arch/sparc/mm/init_64.c 	m_end = m_match + (1ul << __ffs(m_mask)) - mblock->offset;
__ffs            1026 arch/x86/events/intel/lbr.c 		i = __ffs(type);
__ffs              75 arch/x86/events/intel/pt.c 	unsigned int shift = __ffs(cd->mask);
__ffs             261 arch/x86/kernel/cpu/mtrr/cleanup.c 			max_align = __ffs(range_startk);
__ffs            5530 arch/x86/kvm/emulate.c 		fop += __ffs(ctxt->dst.bytes) * FASTOP_SIZE;
__ffs            1758 arch/x86/kvm/mmu.c 		rmap_head = __gfn_to_rmap(slot->base_gfn + gfn_offset + __ffs(mask),
__ffs            1784 arch/x86/kvm/mmu.c 		rmap_head = __gfn_to_rmap(slot->base_gfn + gfn_offset + __ffs(mask),
__ffs             293 arch/xtensa/kernel/traps.c 		do_IRQ(__ffs(int_at_level), regs);
__ffs             987 crypto/algapi.c 		relalign = d ? 1 << __ffs(d) : size;
__ffs             122 drivers/bus/omap_l3_noc.c 		    l3->mst_addr_mask) >> __ffs(l3->mst_addr_mask);
__ffs             195 drivers/bus/omap_l3_noc.c 			err_src = __ffs(err_reg);
__ffs             184 drivers/bus/omap_l3_smx.c 	err_source = __ffs(status);
__ffs             170 drivers/char/agp/alpha-agp.c 	aper_size->page_order = __ffs(aper_size->num_entries / 1024);
__ffs             121 drivers/clk/clk-divider.c 		return __ffs(div);
__ffs              90 drivers/clk/mmp/clk-mix.c 		return __ffs(div);
__ffs            1483 drivers/clk/nxp/clk-lpc32xx.c 		val |= BIT(__ffs(div_mask));
__ffs             111 drivers/clk/renesas/rcar-gen3-cpg.c 	mult = 32 - (val >> __ffs(zclk->mask));
__ffs             146 drivers/clk/renesas/rcar-gen3-cpg.c 		       ((32 - mult) << __ffs(zclk->mask)) & zclk->mask);
__ffs             135 drivers/clk/sprd/pll.c 					 ((mask >> __ffs(mask)) + 1)) *
__ffs              55 drivers/clk/ti/apll.c 	state <<= __ffs(ad->idlest_mask);
__ffs              65 drivers/clk/ti/apll.c 	v |= APLL_FORCE_LOCK << __ffs(ad->enable_mask);
__ffs              68 drivers/clk/ti/apll.c 	state <<= __ffs(ad->idlest_mask);
__ffs             100 drivers/clk/ti/apll.c 	state <<= __ffs(ad->idlest_mask);
__ffs             104 drivers/clk/ti/apll.c 	v |= APLL_AUTO_IDLE << __ffs(ad->enable_mask);
__ffs             119 drivers/clk/ti/apll.c 	v >>= __ffs(ad->enable_mask);
__ffs             250 drivers/clk/ti/apll.c 	v >>= __ffs(ad->enable_mask);
__ffs             275 drivers/clk/ti/apll.c 	v |= OMAP2_EN_APLL_LOCKED << __ffs(ad->enable_mask);
__ffs             305 drivers/clk/ti/apll.c 	v |= OMAP2_EN_APLL_STOPPED << __ffs(ad->enable_mask);
__ffs             323 drivers/clk/ti/apll.c 	v |= val << __ffs(ad->autoidle_mask);
__ffs             193 drivers/clk/ti/clkt_dpll.c 		val = __ffs(mask);
__ffs             215 drivers/clk/ti/clkt_dpll.c 	v >>= __ffs(dd->enable_mask);
__ffs             251 drivers/clk/ti/clkt_dpll.c 	v >>= __ffs(dd->enable_mask);
__ffs             258 drivers/clk/ti/clkt_dpll.c 	dpll_mult >>= __ffs(dd->mult_mask);
__ffs             260 drivers/clk/ti/clkt_dpll.c 	dpll_div >>= __ffs(dd->div1_mask);
__ffs              91 drivers/clk/ti/divider.c 		return __ffs(div);
__ffs              56 drivers/clk/ti/dpll3xxx.c 	v |= clken_bits << __ffs(dd->enable_mask);
__ffs              71 drivers/clk/ti/dpll3xxx.c 	state <<= __ffs(dd->idlest_mask);
__ffs             148 drivers/clk/ti/dpll3xxx.c 	state <<= __ffs(dd->idlest_mask);
__ffs             319 drivers/clk/ti/dpll3xxx.c 		v |= freqsel << __ffs(dd->freqsel_mask);
__ffs             335 drivers/clk/ti/dpll3xxx.c 	v |= dd->last_rounded_m << __ffs(dd->mult_mask);
__ffs             336 drivers/clk/ti/dpll3xxx.c 	v |= (dd->last_rounded_n - 1) << __ffs(dd->div1_mask);
__ffs             342 drivers/clk/ti/dpll3xxx.c 		v |= dco << __ffs(dd->dco_mask);
__ffs             348 drivers/clk/ti/dpll3xxx.c 		v |= sd_div << __ffs(dd->sddiv_mask);
__ffs             657 drivers/clk/ti/dpll3xxx.c 	v >>= __ffs(dd->autoidle_mask);
__ffs             691 drivers/clk/ti/dpll3xxx.c 	v |= DPLL_AUTOIDLE_LOW_POWER_STOP << __ffs(dd->autoidle_mask);
__ffs             716 drivers/clk/ti/dpll3xxx.c 	v |= DPLL_AUTOIDLE_DISABLE << __ffs(dd->autoidle_mask);
__ffs             774 drivers/clk/ti/dpll3xxx.c 	v >>= __ffs(dd->enable_mask);
__ffs             798 drivers/clk/ti/dpll3xxx.c 	clk->context = (v & dd->enable_mask) >> __ffs(dd->enable_mask);
__ffs             803 drivers/clk/ti/dpll3xxx.c 						__ffs(dd->mult_mask);
__ffs             805 drivers/clk/ti/dpll3xxx.c 						__ffs(dd->div1_mask)) + 1;
__ffs             832 drivers/clk/ti/dpll3xxx.c 		v |= dd->last_rounded_m << __ffs(dd->mult_mask);
__ffs             833 drivers/clk/ti/dpll3xxx.c 		v |= (dd->last_rounded_n - 1) << __ffs(dd->div1_mask);
__ffs             859 drivers/clk/ti/dpll3xxx.c 	clk->context = (v & dd->enable_mask) >> __ffs(dd->enable_mask);
__ffs             864 drivers/clk/ti/dpll3xxx.c 						__ffs(dd->mult_mask);
__ffs             866 drivers/clk/ti/dpll3xxx.c 						__ffs(dd->div1_mask)) + 1;
__ffs             891 drivers/clk/ti/dpll3xxx.c 			     __ffs(dd->enable_mask)) &&
__ffs             893 drivers/clk/ti/dpll3xxx.c 				   __ffs(dd->mult_mask)) &&
__ffs             895 drivers/clk/ti/dpll3xxx.c 				   __ffs(dd->div1_mask)) + 1) {
__ffs             171 drivers/clocksource/mips-gic-timer.c 	count_width >>= __ffs(GIC_CONFIG_COUNTBITS);
__ffs             190 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c 	return __ffs(src | dst | len | BIT(max_width));
__ffs             573 drivers/dma/dw/core.c 	src_width = dst_width = __ffs(data_width | src | dest | len);
__ffs             653 drivers/dma/dw/core.c 		reg_width = __ffs(sconfig->dst_addr_width);
__ffs             671 drivers/dma/dw/core.c 			mem_width = __ffs(data_width | mem | len);
__ffs             703 drivers/dma/dw/core.c 		reg_width = __ffs(sconfig->src_addr_width);
__ffs             731 drivers/dma/dw/core.c 			mem_width = __ffs(data_width | mem | dlen);
__ffs             244 drivers/dma/idma64.c 		src_width = __ffs(sar | hw->len | 4);
__ffs             245 drivers/dma/idma64.c 		dst_width = __ffs(config->dst_addr_width);
__ffs             251 drivers/dma/idma64.c 		src_width = __ffs(config->src_addr_width);
__ffs             252 drivers/dma/idma64.c 		dst_width = __ffs(dar | hw->len | 4);
__ffs             223 drivers/dma/k3dma.c 		i = __ffs(stat);
__ffs             690 drivers/dma/k3dma.c 		val =  __ffs(width);
__ffs             222 drivers/dma/mmp_pdma.c 		i = __ffs(dint);
__ffs             356 drivers/dma/nbpfaxi.c 	return nbpf->chan + __ffs(error);
__ffs             453 drivers/dma/nbpfaxi.c 	return min_t(int, __ffs(size), ilog2(max_burst));
__ffs            2245 drivers/dma/pl330.c 			pch->burst_sz = __ffs(slave_config->dst_addr_width);
__ffs            2252 drivers/dma/pl330.c 			pch->burst_sz = __ffs(slave_config->src_addr_width);
__ffs             675 drivers/dma/pxa_dma.c 		i = __ffs(dint);
__ffs             573 drivers/dma/sprd-dma.c 		i = __ffs(irq_status);
__ffs             421 drivers/dma/stm32-mdma.c 	best_burst = min((u32)1 << __ffs(tlen | buf_len),
__ffs            1352 drivers/dma/stm32-mdma.c 		id = __ffs(status);
__ffs            1359 drivers/dma/stm32-mdma.c 		id = __ffs(status);
__ffs            1388 drivers/dma/stm32-mdma.c 	flag = __ffs(status & ien);
__ffs            1163 drivers/dma/ti/edma.c 	switch (__ffs((src | dest | len))) {
__ffs            1490 drivers/dma/ti/edma.c 		slot = __ffs(sh_ipr);
__ffs            1180 drivers/dma/ti/omap-dma.c 	data_type = __ffs((src | dest | len));
__ffs            1235 drivers/dma/ti/omap-dma.c 	data_type = __ffs((xt->src_start | xt->dst_start | xt->sgl[0].size));
__ffs            1014 drivers/dma/txx9dmac.c 			TXX9_DMA_CCR_XFSZ(__ffs(ds->reg_width));
__ffs             283 drivers/dma/zx_dma.c 		i = __ffs(tc);
__ffs             353 drivers/edac/pnd2_edac.c 	if (mask != GENMASK_ULL(PND_MAX_PHYS_BIT, __ffs(mask))) {
__ffs             372 drivers/gpio/gpio-davinci.c 			bit = __ffs(status);
__ffs             174 drivers/gpio/gpio-em.c 		offset = __ffs(pending);
__ffs             284 drivers/gpio/gpio-intel-mid.c 			gpio = __ffs(pending);
__ffs             127 drivers/gpio/gpio-kempld.c 	return evt ? __ffs(evt) : 16;
__ffs             123 drivers/gpio/gpio-lp87565.c 					      __ffs(LP87565_GOIO1_OD)),
__ffs             125 drivers/gpio/gpio-lp87565.c 					      __ffs(LP87565_GOIO1_OD)));
__ffs             130 drivers/gpio/gpio-lp87565.c 					      __ffs(LP87565_GOIO1_OD)), 0);
__ffs             384 drivers/gpio/gpio-max732x.c 		level = __ffs(new_irqs);
__ffs             485 drivers/gpio/gpio-max732x.c 		level = __ffs(pending);
__ffs             189 drivers/gpio/gpio-msic.c 		offset = __ffs(mg->trig_change_mask);
__ffs             594 drivers/gpio/gpio-omap.c 			bit = __ffs(isr);
__ffs             629 drivers/gpio/gpio-pca953x.c 			level = __ffs(new_irqs);
__ffs             754 drivers/gpio/gpio-pca953x.c 			level = __ffs(pending[i]);
__ffs             207 drivers/gpio/gpio-rcar.c 		offset = __ffs(pending);
__ffs             291 drivers/gpio/gpio-sta2x11.c 			nr = __ffs(is);
__ffs             406 drivers/gpio/gpio-stmpe.c 			int bit = __ffs(stat);
__ffs             269 drivers/gpio/gpio-tc3589x.c 			int bit = __ffs(stat);
__ffs             461 drivers/gpu/drm/arm/malidp_planes.c 		*pgsize_bitmap = 1 << __ffs(pgsizes);
__ffs             156 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	GEM_BUG_ON(!IS_ALIGNED(size, BIT(__ffs(page_mask))));
__ffs            1130 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			if (!IS_ALIGNED(size, BIT(__ffs(page_sizes))))
__ffs              22 drivers/gpu/drm/i915/i915_scheduler.h 	     (plist)->used ? (idx = __ffs((plist)->used)), 1 : 0; \
__ffs              30 drivers/gpu/drm/nouveau/nvkm/core/event.c 		int type = __ffs(types); types &= ~(1 << type);
__ffs              43 drivers/gpu/drm/nouveau/nvkm/core/event.c 		int type = __ffs(types); types &= ~(1 << type);
__ffs             132 drivers/gpu/drm/nouveau/nvkm/engine/disp/gf119.c 			int chid = __ffs(stat); stat &= ~(1 << chid);
__ffs             655 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		u32 chid = __ffs(intr0 & 0x001f0000) - 16;
__ffs             661 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		u32 chid = __ffs(intr0 & 0x0000001f);
__ffs             152 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c 		    (ior->func->route.set || ior->id == __ffs(outp->info.or)))
__ffs             161 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c 		    (ior->func->route.set || ior->id == __ffs(outp->info.or)))
__ffs              80 drivers/gpu/drm/nouveau/nvkm/engine/disp/piornv50.c 			nvkm_head_find(ior->disp, __ffs(state->head));
__ffs              52 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c 	const u32 moff = __ffs(outp->info.or) * 0x100;
__ffs              72 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c 	for (*link = 0, m = __ffs(outp->info.or) * 2, s = 0; s < 2; m++, s++) {
__ffs             492 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 		u32 unit = __ffs(mask);
__ffs             537 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 			u32 unit = __ffs(mask);
__ffs             548 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 			u32 unit = __ffs(mask);
__ffs             293 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	for (todo = engm; engn = __ffs(todo), todo; todo &= ~BIT(engn)) {
__ffs             300 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	for (todo = runm; runl = __ffs(todo), todo; todo &= ~BIT(runl))
__ffs             759 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 		int runl = __ffs(mask);
__ffs             826 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 			u32 unit = __ffs(mask);
__ffs             837 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 			u32 unit = __ffs(mask);
__ffs             118 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c 		u32 s, c = __ffs(mask);
__ffs              97 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c 		u32 s, c = __ffs(mask);
__ffs              34 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gp100.c 		u32 s, c = __ffs(mask);
__ffs             101 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c 	slot = __ffs(ptp->free);
__ffs             156 drivers/gpu/drm/tegra/drm.c 		order = __ffs(tegra->domain->pgsize_bitmap);
__ffs              92 drivers/gpu/drm/udl/udl_fb.c 	log_bpp = __ffs(fb->base.format->cpp[0]);
__ffs             310 drivers/gpu/host1x/dev.c 		order = __ffs(host->domain->pgsize_bitmap);
__ffs             533 drivers/hwmon/hwmon.c 			attr = __ffs(attr_mask);
__ffs            2178 drivers/hwmon/it87.c 		if (i == __ffs(data->has_fan))
__ffs            3784 drivers/hwmon/nct6775.c 		index = __ffs(*available);
__ffs             256 drivers/hwtracing/intel_th/gth.c 	unsigned int shift = __ffs(mask);
__ffs             268 drivers/hwtracing/intel_th/gth.c 	unsigned int shift = __ffs(mask);
__ffs             788 drivers/hwtracing/intel_th/msu.c 	reg |= msc->mode << __ffs(MSC_MODE);
__ffs             789 drivers/hwtracing/intel_th/msu.c 	reg |= msc->burst_len << __ffs(MSC_LEN);
__ffs            1675 drivers/hwtracing/intel_th/msu.c 		__ffs(MSC_LEN);
__ffs             155 drivers/hwtracing/intel_th/pti.c 		ctl |= pti->patgen << __ffs(PTI_PATGENMODE);
__ffs             158 drivers/hwtracing/intel_th/pti.c 	ctl |= pti->mode << __ffs(PTI_MODE);
__ffs             159 drivers/hwtracing/intel_th/pti.c 	ctl |= pti->clkdiv << __ffs(PTI_CLKDIV);
__ffs             160 drivers/hwtracing/intel_th/pti.c 	ctl |= pti->lpp_dest << __ffs(LPP_DEST);
__ffs             182 drivers/hwtracing/intel_th/pti.c 	pti->mode	= (ctl & PTI_MODE) >> __ffs(PTI_MODE);
__ffs             183 drivers/hwtracing/intel_th/pti.c 	pti->clkdiv	= (ctl & PTI_CLKDIV) >> __ffs(PTI_CLKDIV);
__ffs              15 drivers/i2c/busses/i2c-efm32.c #define MASK_VAL(mask, val)		((val << __ffs(mask)) & mask)
__ffs             302 drivers/i2c/busses/i2c-efm32.c 		__ffs(REG_ROUTE_LOCATION__MASK);
__ffs             738 drivers/i2c/busses/i2c-nomadik.c 	src = __ffs(misr);
__ffs             692 drivers/iio/adc/meson_saradc.c 	priv->clk_gate.bit_idx = __ffs(MESON_SAR_ADC_REG3_CLK_EN);
__ffs             201 drivers/iio/adc/qcom-spmi-adc5.c 	return __ffs(value);
__ffs             554 drivers/iio/adc/stm32-dfsdm-adc.c 		bit = __ffs(adc->smask);
__ffs             165 drivers/iio/buffer/industrialio-buffer-dmaengine.c 		src_width = __ffs(caps.src_addr_widths);
__ffs             169 drivers/iio/buffer/industrialio-buffer-dmaengine.c 		dest_width = __ffs(caps.dst_addr_widths);
__ffs              35 drivers/iio/common/st_sensors/st_sensors_core.c 				  reg_addr, mask, data << __ffs(mask));
__ffs             190 drivers/iio/humidity/hts221_core.c 	data = ((i << __ffs(avg->mask)) & avg->mask);
__ffs              55 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h #define ST_LSM6DSX_SHIFT_VAL(val, mask)	(((val) << __ffs(mask)) & (mask))
__ffs             313 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c 	data = ((data & ~mask) | (val << __ffs(mask) & mask));
__ffs            3558 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	page_shift = __ffs(ib_umem_find_best_pgsz(umem,
__ffs            1449 drivers/infiniband/hw/efa/efa_verbs.c 	params.page_shift = __ffs(pg_sz);
__ffs             150 drivers/input/keyboard/nomadik-ske-keypad.c 		pos = __ffs(status);
__ffs             218 drivers/input/keyboard/stmpe-keypad.c 		int num = __ffs(col_gpios);
__ffs             229 drivers/input/keyboard/stmpe-keypad.c 		int num = __ffs(row_gpios);
__ffs             195 drivers/input/misc/palmas-pwrbutton.c 	val = config.long_press_time_val << __ffs(PALMAS_LPK_TIME_MASK);
__ffs             196 drivers/input/misc/palmas-pwrbutton.c 	val |= config.pwron_debounce_val << __ffs(PALMAS_PWRON_DEBOUNCE_MASK);
__ffs             290 drivers/iommu/amd_iommu_types.h 		((__ffs(pagesize) - 12) / 9)
__ffs             296 drivers/iommu/amd_iommu_types.h 		(1ULL << ((__ffs(pagesize) - 12) % 9))
__ffs            2349 drivers/iommu/arm-smmu-v3.c 	stu = __ffs(smmu->pgsize_bitmap);
__ffs             315 drivers/iommu/dma-iommu.c 	order = __ffs(domain->pgsize_bitmap);
__ffs            1090 drivers/iommu/dma-iommu.c 	return (1UL << __ffs(domain->pgsize_bitmap)) - 1;
__ffs             432 drivers/iommu/exynos-iommu.c 	itype = __ffs(readl(data->sfrbase + reg_status));
__ffs             162 drivers/iommu/fsl_pamu.c 	return __ffs(subwindow_cnt) - 1;
__ffs             945 drivers/iommu/io-pgtable-arm-v7s.c 	size = 1UL << __ffs(cfg.pgsize_bitmap);
__ffs             717 drivers/iommu/io-pgtable-arm.c 		granule = 1UL << __ffs(cfg->pgsize_bitmap & PAGE_MASK);
__ffs             769 drivers/iommu/io-pgtable-arm.c 	data->pg_shift = __ffs(cfg->pgsize_bitmap);
__ffs            1206 drivers/iommu/io-pgtable-arm.c 		size = 1UL << __ffs(cfg->pgsize_bitmap);
__ffs             637 drivers/iommu/iommu.c 	pg_size = 1UL << __ffs(domain->pgsize_bitmap);
__ffs            1838 drivers/iommu/iommu.c 		unsigned int align_pgsize_idx = __ffs(addr_merge);
__ffs            1876 drivers/iommu/iommu.c 	min_pagesz = 1 << __ffs(domain->pgsize_bitmap);
__ffs            1936 drivers/iommu/iommu.c 	min_pagesz = 1 << __ffs(domain->pgsize_bitmap);
__ffs              82 drivers/irqchip/exynos-combiner.c 	combiner_irq = chip_data->hwirq_offset + __ffs(status);
__ffs              51 drivers/irqchip/irq-ath79-misc.c 		int bit = __ffs(pending);
__ffs             870 drivers/irqchip/irq-gic.c 	return __ffs(cpu_bit);
__ffs             897 drivers/irqchip/irq-gic.c 	cur_cpu_id = __ffs(gic_cpu_map[cpu]);
__ffs             127 drivers/irqchip/irq-lpc32xx.c 		irq = __ffs(hwirq);
__ffs             142 drivers/irqchip/irq-lpc32xx.c 		irq = __ffs(hwirq);
__ffs              51 drivers/irqchip/irq-ls1x.c 		int bit = __ffs(pending);
__ffs             682 drivers/irqchip/irq-mips-gic.c 	reserved = (C_SW0 | C_SW1) >> __ffs(C_SW0);
__ffs             723 drivers/irqchip/irq-mips-gic.c 	gic_shared_intrs >>= __ffs(GIC_CONFIG_NUMINTERRUPTS);
__ffs             137 drivers/irqchip/irq-ompic.c 			ipi_msg = __ffs(ops);
__ffs             316 drivers/irqchip/irq-s3c24xx.c 		n = __ffs(src);
__ffs             353 drivers/irqchip/irq-s3c24xx.c 		offset =  __ffs(pnd);
__ffs              62 drivers/irqchip/irq-tango.c 		hwirq = __ffs(status);
__ffs              81 drivers/irqchip/irq-ts4800.c 		unsigned int bit = __ffs(status);
__ffs              70 drivers/irqchip/qcom-irq-combiner.c 			bit = __ffs(status);
__ffs             194 drivers/irqchip/spear-shirq.c 		int irq = __ffs(pend);
__ffs             164 drivers/mailbox/hi6220-mailbox.c 		intr_bit = __ffs(state);
__ffs             163 drivers/mailbox/ti-msgmgr.c 	val >>= __ffs(status_cnt_mask);
__ffs            1631 drivers/md/dm-bufio.c 		c->sectors_per_block_bits = __ffs(block_size) - SECTOR_SHIFT;
__ffs            1660 drivers/md/dm-bufio.c 		unsigned align = min(1U << __ffs(block_size), (unsigned)PAGE_SIZE);
__ffs             589 drivers/md/dm-cache-policy-smq.c 	ht->hash_bits = __ffs(nr_buckets);
__ffs            2521 drivers/md/dm-cache-target.c 		cache->sectors_per_block_shift = __ffs(ca->block_size);
__ffs            1833 drivers/md/dm-clone-target.c 	clone->region_shift = __ffs(clone->region_size);
__ffs            2544 drivers/md/dm-crypt.c 			cc->sector_shift = __ffs(cc->sector_size) - SECTOR_SHIFT;
__ffs             337 drivers/md/dm-dust.c 	dd->sect_per_block_shift = __ffs(sect_per_block);
__ffs            1479 drivers/md/dm-era-target.c 		era->sectors_per_block_shift = __ffs(era->sectors_per_block);
__ffs             186 drivers/md/dm-exception-store.c 	store->chunk_shift = __ffs(chunk_size);
__ffs            3039 drivers/md/dm-integrity.c 			ic->log2_metadata_run = __ffs(ic->metadata_run);
__ffs            3070 drivers/md/dm-integrity.c 	ic->sb->log2_sectors_per_block = __ffs(ic->sectors_per_block);
__ffs            3766 drivers/md/dm-integrity.c 		ic->log2_tag_size = __ffs(ic->tag_size);
__ffs            3880 drivers/md/dm-integrity.c 	if (ic->sb->log2_sectors_per_block != __ffs(ic->sectors_per_block)) {
__ffs            3952 drivers/md/dm-integrity.c 		ic->log2_buffer_sectors = min(ic->log2_buffer_sectors, (__u8)__ffs(ic->metadata_run));
__ffs             198 drivers/md/dm-region-hash.c 	rh->region_shift = __ffs(region_size);
__ffs             327 drivers/md/dm-snap-persistent.c 		ps->store->chunk_shift = __ffs(ps->store->chunk_size);
__ffs             162 drivers/md/dm-stripe.c 		sc->stripes_shift = __ffs(stripes);
__ffs             180 drivers/md/dm-stripe.c 		sc->chunk_size_shift = __ffs(chunk_size);
__ffs              83 drivers/md/dm-switch.c 		sctx->region_size_bits = __ffs(sctx->region_size);
__ffs              94 drivers/md/dm-switch.c 		sctx->region_entries_per_slot_bits = __ffs(sctx->region_entries_per_slot);
__ffs            2977 drivers/md/dm-thin.c 		pool->sectors_per_block_shift = __ffs(block_size);
__ffs            1011 drivers/md/dm-verity-target.c 	v->data_dev_block_bits = __ffs(num);
__ffs            1021 drivers/md/dm-verity-target.c 	v->hash_dev_block_bits = __ffs(num);
__ffs            1779 drivers/md/dm-writecache.c 		*n_metadata_blocks_p = offset >> __ffs(block_size);
__ffs            2021 drivers/md/dm-writecache.c 	wc->block_size_bits = __ffs(wc->block_size);
__ffs             633 drivers/media/i2c/smiapp/smiapp-core.c 		__ffs(*valid_link_freqs), sensor->hwcfg->op_sys_clock);
__ffs            1790 drivers/media/i2c/smiapp/smiapp-core.c 		__ffs(*valid_link_freqs));
__ffs             212 drivers/media/platform/rcar-vin/rcar-core.c 	ret = rvin_set_channel_routing(group->vin[master_id], __ffs(mask_new));
__ffs             348 drivers/media/platform/ti-vpe/cal.c 	return (value & mask) >> __ffs(mask);
__ffs             356 drivers/media/platform/ti-vpe/cal.c 	val |= (field << __ffs(mask)) & mask;
__ffs             133 drivers/media/v4l2-core/v4l2-common.c 	walign = __ffs(*w);
__ffs             134 drivers/media/v4l2-core/v4l2-common.c 	halign = __ffs(*h);
__ffs             147 drivers/media/v4l2-core/v4l2-common.c 				walign = __ffs(*w);
__ffs             150 drivers/media/v4l2-core/v4l2-common.c 				halign = __ffs(*h);
__ffs             479 drivers/mfd/ab8500-core.c 		int_bit = __ffs(latch_val);
__ffs             509 drivers/mfd/ab8500-core.c 		latch_bit = __ffs(hier_val);
__ffs             177 drivers/mfd/mc13xxx-core.c #define maskval(reg, mask)	(((reg) & (mask)) >> __ffs(mask))
__ffs             293 drivers/mfd/stmpe.c 		int pin = __ffs(pins);
__ffs            1120 drivers/mfd/stmpe.c 			int bit = __ffs(status);
__ffs             189 drivers/mfd/tc3589x.c 		int bit = __ffs(status);
__ffs             326 drivers/mfd/tps6586x.c 		int i = __ffs(acks);
__ffs             292 drivers/mfd/twl4030-irq.c 		unsigned long	pending = __ffs(pih_isr);
__ffs              66 drivers/misc/habanalabs/memory.c 	page_shift = __ffs(page_size);
__ffs            1672 drivers/misc/habanalabs/memory.c 	vm->dram_pg_pool = gen_pool_create(__ffs(prop->dram_page_size), -1);
__ffs             406 drivers/misc/habanalabs/mmu.c 			gen_pool_create(__ffs(prop->mmu_hop_table_size), -1);
__ffs             452 drivers/mmc/host/meson-gx-mmc.c 	mux->shift = __ffs(CLK_SRC_MASK);
__ffs             474 drivers/mmc/host/meson-gx-mmc.c 	div->shift = __ffs(CLK_DIV_MASK);
__ffs             749 drivers/mtd/chips/cfi_cmdset_0001.c 		partshift = cfi->chipshift - __ffs(numparts);
__ffs             179 drivers/mtd/lpddr/qinfo_probe.c 				__ffs(retlpddr->qinfo->HWPartsNum);
__ffs             447 drivers/net/dsa/rtl8366rb.c 		int line = __ffs(stat);
__ffs            3394 drivers/net/ethernet/chelsio/cxgb4/sge.c 			unsigned int id = __ffs(m) + i * BITS_PER_LONG;
__ffs            3430 drivers/net/ethernet/chelsio/cxgb4/sge.c 			unsigned long id = __ffs(m) + i * BITS_PER_LONG;
__ffs            2084 drivers/net/ethernet/chelsio/cxgb4vf/sge.c 			unsigned int id = __ffs(m) + i * BITS_PER_LONG;
__ffs            1614 drivers/net/ethernet/mscc/ocelot.c 	lp = __ffs(bond_mask);
__ffs            1624 drivers/net/ethernet/mscc/ocelot.c 			lp = __ffs(bond_mask);
__ffs            1654 drivers/net/ethernet/mscc/ocelot.c 		int n = __ffs(ocelot->lags[p]);
__ffs            1909 drivers/net/ethernet/sfc/falcon/falcon.c 			efx->loopback_mode = __ffs(efx->loopback_modes);
__ffs             392 drivers/net/ethernet/sfc/falcon/farch.c 			      __ffs(tx_queue->txd.entries),
__ffs             555 drivers/net/ethernet/sfc/falcon/farch.c 			      __ffs(rx_queue->rxd.entries),
__ffs            1357 drivers/net/ethernet/sfc/falcon/farch.c 			     FRF_AZ_EVQ_SIZE, __ffs(channel->eventq.entries),
__ffs             122 drivers/net/ethernet/sfc/falcon/mdio_10g.c 	    __ffs(mmd_mask);
__ffs             313 drivers/net/ethernet/sfc/falcon/mdio_10g.c 	int devad = __ffs(efx->mdio.mmds);
__ffs             399 drivers/net/ethernet/sfc/farch.c 			      __ffs(tx_queue->txd.entries),
__ffs             537 drivers/net/ethernet/sfc/farch.c 			      __ffs(rx_queue->rxd.entries),
__ffs            1368 drivers/net/ethernet/sfc/farch.c 			     FRF_AZ_EVQ_SIZE, __ffs(channel->eventq.entries),
__ffs             556 drivers/net/ethernet/sfc/siena_sriov.c 			     FRF_AZ_EVQ_SIZE, __ffs(buf_count),
__ffs             599 drivers/net/ethernet/sfc/siena_sriov.c 			     FRF_AZ_RX_DESCQ_SIZE, __ffs(buf_count),
__ffs             648 drivers/net/ethernet/sfc/siena_sriov.c 			     FRF_AZ_TX_DESCQ_SIZE, __ffs(buf_count),
__ffs             998 drivers/net/ethernet/sfc/siena_sriov.c 			     FRF_AZ_EVQ_SIZE, __ffs(vf->evq0_count),
__ffs             568 drivers/net/mdio.c 			devad = __ffs(mdio->mmds);
__ffs             259 drivers/net/phy/mdio-mux-meson-g12a.c 	mux->shift = __ffs(PLL_CTL0_SEL);
__ffs             237 drivers/net/phy/phy-c45.c 		devad = __ffs(mmd_mask);
__ffs            1491 drivers/net/phy/phylink.c 			devad = __ffs(phydev->c45_ids.devices_in_package);
__ffs            1531 drivers/net/phy/phylink.c 			devad = __ffs(phydev->c45_ids.devices_in_package);
__ffs             742 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			bucket = __ffs(cfg->int_escan_map);
__ffs             585 drivers/net/wireless/mediatek/mt76/mt7603/regs.h 					  __ffs(MT_LED_STATUS_OFF_MASK)) & \
__ffs             589 drivers/net/wireless/mediatek/mt76/mt7603/regs.h 					  __ffs(MT_LED_STATUS_ON_MASK)) & \
__ffs             593 drivers/net/wireless/mediatek/mt76/mt7603/regs.h 					  __ffs(MT_LED_STATUS_DURATION_MASK)) &\
__ffs             239 drivers/net/wireless/mediatek/mt76/mt76x02_regs.h #define MT_LED_STATUS_OFF(_v)		(((_v) << __ffs(MT_LED_STATUS_OFF_MASK)) & \
__ffs             242 drivers/net/wireless/mediatek/mt76/mt76x02_regs.h #define MT_LED_STATUS_ON(_v)		(((_v) << __ffs(MT_LED_STATUS_ON_MASK)) & \
__ffs             245 drivers/net/wireless/mediatek/mt76/mt76x02_regs.h #define MT_LED_STATUS_DURATION(_v)	(((_v) << __ffs(MT_LED_STATUS_DURATION_MASK)) & \
__ffs             739 drivers/net/wireless/realtek/rtw88/coex.c 	u32 shift = __ffs(mask);
__ffs             168 drivers/net/wireless/realtek/rtw88/hci.h 	u32 shift = __ffs(mask);
__ffs             181 drivers/net/wireless/realtek/rtw88/hci.h 	u32 shift = __ffs(mask);
__ffs             199 drivers/net/wireless/realtek/rtw88/hci.h 	shift = __ffs(mask);
__ffs             716 drivers/net/wireless/realtek/rtw88/phy.c 		shift = __ffs(mask);
__ffs            1771 drivers/net/wireless/st/cw1200/sta.c 			arg.internalTxRate = (__ffs(
__ffs            1776 drivers/net/wireless/st/cw1200/sta.c 			arg.internalTxRate = (__ffs(le32_to_cpu(priv->association_mode.basic_rate_set)));
__ffs            1778 drivers/net/wireless/st/cw1200/sta.c 		arg.nonErpInternalTxRate = (__ffs(le32_to_cpu(priv->association_mode.basic_rate_set)));
__ffs            1781 drivers/net/wireless/st/cw1200/sta.c 		arg.internalTxRate = (__ffs(priv->bss_params.operational_rate_set & ~0xF));
__ffs            1782 drivers/net/wireless/st/cw1200/sta.c 		arg.nonErpInternalTxRate = (__ffs(priv->bss_params.operational_rate_set & ~0xF));
__ffs            1193 drivers/net/wireless/ti/wlcore/tx.c 	return BIT(__ffs(rate_set));
__ffs             575 drivers/ntb/hw/intel/ntb_hw_gen3.c 		bit = __ffs(db_bits);
__ffs            2443 drivers/ntb/ntb_transport.c 		qp_num = __ffs(db_bits);
__ffs             143 drivers/opp/ti-opp-supply.c 		tmp >>= __ffs(of_data->efuse_voltage_mask);
__ffs             385 drivers/parisc/dino.c 		int local_irq = __ffs(mask);
__ffs              83 drivers/parisc/gsc.c 		int local_irq = __ffs(irr);
__ffs            1025 drivers/pci/setup-bus.c 			order = __ffs(align) - 20;
__ffs             188 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	i = __ffs(denominator);
__ffs            2554 drivers/pinctrl/aspeed/pinctrl-aspeed-g4.c 		u32 val = (pattern << __ffs(desc->mask));
__ffs            2722 drivers/pinctrl/aspeed/pinctrl-aspeed-g5.c 		u32 val = (pattern << __ffs(desc->mask));
__ffs            2256 drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c 		u32 val = (pattern << __ffs(desc->mask));
__ffs              20 drivers/pinctrl/aspeed/pinmux-aspeed.c 			(rv & desc->mask) >> __ffs(desc->mask), rv);
__ffs              57 drivers/pinctrl/aspeed/pinmux-aspeed.c 	return ((raw & desc->mask) >> __ffs(desc->mask)) == want;
__ffs             321 drivers/pinctrl/mediatek/mtk-eint.c 			offset = __ffs(status);
__ffs             813 drivers/pinctrl/nomadik/pinctrl-nomadik.c 		int bit = __ffs(status);
__ffs            2850 drivers/pinctrl/pinctrl-rockchip.c 		irq = __ffs(pend);
__ffs            1143 drivers/pinctrl/pinctrl-single.c 			bit_pos = __ffs(mask);
__ffs            1787 drivers/pinctrl/pinctrl-single.c 		pcs->fshift = __ffs(pcs->fmask);
__ffs             374 drivers/pinctrl/samsung/pinctrl-s3c24xx.c 		irq = __ffs(pend);
__ffs             167 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	return (val & mask) >> __ffs(mask);
__ffs             236 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	reg_val = reg->signature_value << __ffs(reg->signature_mask);
__ffs             239 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	tmp_val = c_elements << __ffs(reg->binary_data_coarse_mask);
__ffs             248 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	tmp_val = f_elements << __ffs(reg->binary_data_fine_mask);
__ffs             263 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	reg_val |= reg->unlock_val << __ffs(reg->lock_mask);
__ffs             119 drivers/ps3/ps3stor_lib.c 	dev->region_idx = __ffs(dev->accessible_regions);
__ffs             166 drivers/ps3/ps3stor_lib.c 	alignment = min(__ffs(dev->bounce_size),
__ffs             167 drivers/ps3/ps3stor_lib.c 			__ffs((unsigned long)dev->bounce_buf));
__ffs             104 drivers/regulator/lp873x-regulator.c 				 reg << __ffs(LP873X_BUCK0_CTRL_2_BUCK0_SLEW_RATE));
__ffs              90 drivers/regulator/lp87565-regulator.c 				 reg << __ffs(LP87565_BUCK_CTRL_2_SLEW_RATE));
__ffs             135 drivers/regulator/ti-abb-regulator.c 	val |= (value << __ffs(mask)) & mask;
__ffs             232 drivers/regulator/ti-abb-regulator.c 		val |= info->vset << __ffs(abb->ldovbb_vset_mask);
__ffs             599 drivers/regulator/ti-abb-regulator.c 		info->vset = (efuse_val & vset_mask) >> __ffs(vset_mask);
__ffs             255 drivers/soc/ti/wkup_m3_ipc.c 	i >>= __ffs(M3_STATUS_RESP_MASK);
__ffs              20 drivers/spi/spi-efm32.c #define MASK_VAL(mask, val)		((val << __ffs(mask)) & mask)
__ffs             284 drivers/spi/spi-efm32.c 	return (reg & REG_ROUTE_LOCATION__MASK) >> __ffs(REG_ROUTE_LOCATION__MASK);
__ffs             840 drivers/spi/spi-pxa2xx.c 	scale = __ffs(q1);
__ffs             253 drivers/staging/media/ipu3/ipu3-dmamap.c 	order = __ffs(IPU3_PAGE_SIZE);
__ffs              91 drivers/staging/media/tegra-vde/iommu.c 	order = __ffs(vde->domain->pgsize_bitmap);
__ffs              76 drivers/thermal/ti-soc-thermal/ti-bandgap.c 	r |= (val) << __ffs(t->mask);				\
__ffs             336 drivers/thermal/ti-soc-thermal/ti-bandgap.c 					__ffs(tsr->counter_mask);
__ffs             357 drivers/thermal/ti-soc-thermal/ti-bandgap.c 				__ffs(tsr->mask_counter_delay_mask);
__ffs             417 drivers/usb/chipidea/ci.h 	return (val & mask) >> __ffs(mask);
__ffs             144 drivers/usb/chipidea/core.c 	int ver = hw_read_id_reg(ci, ID_ID, VERSION) >> __ffs(VERSION);
__ffs             149 drivers/usb/chipidea/core.c 			>> __ffs(REVISION);
__ffs             195 drivers/usb/chipidea/core.c 	hw_write(ci, OP_PORTSC, PORTSC_PTC, mode << __ffs(PORTSC_PTC));
__ffs             208 drivers/usb/chipidea/core.c 	return hw_read(ci, OP_PORTSC, PORTSC_PTC) >> __ffs(PORTSC_PTC);
__ffs             249 drivers/usb/chipidea/core.c 		__ffs(HCCPARAMS_LEN);
__ffs             258 drivers/usb/chipidea/core.c 		__ffs(DCCPARAMS_DEN);
__ffs             464 drivers/usb/chipidea/core.c 			ci->platdata->tx_burst_size << __ffs(TX_BURST_MASK));
__ffs             141 drivers/usb/chipidea/udc.c 		data  = type << __ffs(mask);
__ffs             150 drivers/usb/chipidea/udc.c 		data  = type << __ffs(mask);
__ffs             302 drivers/usb/chipidea/udc.c 		 value << __ffs(DEVICEADDR_USBADR));
__ffs             357 drivers/usb/chipidea/udc.c 	node->ptr->token = cpu_to_le32(length << __ffs(TD_TOTAL_BYTES));
__ffs             366 drivers/usb/chipidea/udc.c 		node->ptr->token |= cpu_to_le32(mul << __ffs(TD_MULTO));
__ffs             506 drivers/usb/chipidea/udc.c 		hwep->qh.ptr->cap |= cpu_to_le32(mul << __ffs(QH_MULT));
__ffs             572 drivers/usb/chipidea/udc.c 		remaining_length >>= __ffs(TD_TOTAL_BYTES);
__ffs            1260 drivers/usb/chipidea/udc.c 	cap |= (hwep->ep.maxpacket << __ffs(QH_MAX_PKT)) & QH_MAX_PKT;
__ffs            1266 drivers/usb/chipidea/udc.c 		cap |= 3 << __ffs(QH_MULT);
__ffs             337 drivers/usb/host/isp1362-hcd.c 		ptd->faddr |= PTD_PR(ep->interval ? __ffs(ep->interval) : 0);
__ffs             118 drivers/usb/host/uhci-hcd.c 	skelnum = 8 - (int) __ffs(frame | UHCI_NUMFRAMES);
__ffs            1091 drivers/usb/isp1760/isp1760-hcd.c 			slot = __ffs(priv->int_done_map);
__ffs            1106 drivers/usb/isp1760/isp1760-hcd.c 			slot = __ffs(priv->atl_done_map);
__ffs             879 drivers/vfio/vfio_iommu_type1.c 	mask = ((uint64_t)1 << __ffs(vfio_pgsize_bitmap(iommu))) - 1;
__ffs            1085 drivers/vfio/vfio_iommu_type1.c 	mask = ((uint64_t)1 << __ffs(vfio_pgsize_bitmap(iommu))) - 1;
__ffs             377 fs/afs/addr_list.c 	index = __ffs(set);
__ffs              57 fs/afs/dir_edit.c 		n = __ffs(bitmap);
__ffs              11 include/asm-generic/bitops/ffz.h #define ffz(x)  __ffs(~(x))
__ffs              17 include/asm-generic/bitops/sched.h 		return __ffs(b[0]);
__ffs              18 include/asm-generic/bitops/sched.h 	return __ffs(b[1]) + 64;
__ffs              21 include/asm-generic/bitops/sched.h 		return __ffs(b[0]);
__ffs              23 include/asm-generic/bitops/sched.h 		return __ffs(b[1]) + 32;
__ffs              25 include/asm-generic/bitops/sched.h 		return __ffs(b[2]) + 64;
__ffs              26 include/asm-generic/bitops/sched.h 	return __ffs(b[3]) + 96;
__ffs             212 include/linux/bitops.h 		return __ffs((u32)(word >> 32)) + 32;
__ffs             216 include/linux/bitops.h 	return __ffs((unsigned long)word);
__ffs              50 include/linux/count_zeros.h 		return (x != 0) ? __ffs(x) : COUNT_TRAILING_ZEROS_0;
__ffs             107 include/linux/iova.h 	return __ffs(iovad->granule);
__ffs             398 include/linux/radix-tree.h 			unsigned offset = __ffs(iter->tags);
__ffs            1592 include/linux/xarray.h 				return __ffs(data);
__ffs            3298 include/rdma/ib_verbs.h 		return __ffs(pgsz_bitmap);
__ffs              55 include/sound/pcm_params.h 			return __ffs(mask->bits[i]) + (i << 5);
__ffs             573 kernel/irq/generic-chip.c 	virq = irq_find_mapping(gc->domain, gc->irq_base + __ffs(gc->installed));
__ffs             494 kernel/time/hrtimer.c 	idx = __ffs(*active);
__ffs             819 lib/assoc_array.c 	diff = __ffs(dissimilarity);
__ffs              20 lib/clz_ctz.c  	return __ffs(val);
__ffs              43 lib/clz_ctz.c  	return __ffs((u32)val);
__ffs              59 lib/find_bit.c 	return min(start + __ffs(tmp), nbits);
__ffs             104 lib/find_bit.c 			return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size);
__ffs             182 lib/find_bit.c 	return min(start + __ffs(swab(tmp)), nbits);
__ffs             176 lib/lz4/lz4defs.h 	return __ffs(val) >> 3;
__ffs              30 lib/math/gcd.c 	b >>= __ffs(b);
__ffs              35 lib/math/gcd.c 		a >>= __ffs(a);
__ffs              39 lib/math/gcd.c 			return a << __ffs(r);
__ffs             200 lib/radix-tree.c 			return __ffs(tmp) + offset;
__ffs             205 lib/radix-tree.c 				return __ffs(tmp) + offset;
__ffs            1575 lib/xarray.c   				order = __ffs(last + 1);
__ffs            1897 mm/memblock.c  		order = min(MAX_ORDER - 1UL, __ffs(start));
__ffs            7037 mm/page_alloc.c 		mask = ~((1 << __ffs(start)) - 1);
__ffs             637 mm/percpu.c    		     __ffs(start) > __ffs(block->contig_hint_start))) {
__ffs            1156 mm/percpu.c    		     (!area_off || __ffs(area_off) > __ffs(*largest_off)))) {
__ffs             618 net/rxrpc/conn_client.c 		rxrpc_activate_one_channel(conn, __ffs(avail));
__ffs             190 net/sched/act_ctinfo.c 		dscpmaskshift = dscpmask ? __ffs(dscpmask) : 0;
__ffs            2638 net/sched/sch_cake.c 		q->fwmark_shft = q->fwmark_mask ? __ffs(q->fwmark_mask) : 0;
__ffs             732 net/sched/sch_qfq.c 	int index = __ffs(bitmap);
__ffs             931 net/sched/sch_qfq.c 	i = __ffs(grp->full_slots);  /* zero based */
__ffs             380 security/keys/keyring.c 	i = level * 8 + __ffs(seg_a ^ seg_b);
__ffs             216 sound/pci/ice1712/wm8766.c 		val1 >>= __ffs(wm->ctl[n].mask1);
__ffs             219 sound/pci/ice1712/wm8766.c 			val2 >>= __ffs(wm->ctl[n].mask2);
__ffs             254 sound/pci/ice1712/wm8766.c 		val |= regval1 << __ffs(wm->ctl[n].mask1);
__ffs             259 sound/pci/ice1712/wm8766.c 			val |= regval2 << __ffs(wm->ctl[n].mask2);
__ffs             266 sound/pci/ice1712/wm8766.c 			val |= regval2 << __ffs(wm->ctl[n].mask2);
__ffs             490 sound/pci/ice1712/wm8776.c 		val1 >>= __ffs(wm->ctl[n].mask1);
__ffs             493 sound/pci/ice1712/wm8776.c 			val2 >>= __ffs(wm->ctl[n].mask2);
__ffs             528 sound/pci/ice1712/wm8776.c 		val |= regval1 << __ffs(wm->ctl[n].mask1);
__ffs             533 sound/pci/ice1712/wm8776.c 			val |= regval2 << __ffs(wm->ctl[n].mask2);
__ffs             540 sound/pci/ice1712/wm8776.c 			val |= regval2 << __ffs(wm->ctl[n].mask2);
__ffs             289 sound/pci/sis7019.c 		bit = __ffs(status);
__ffs             519 sound/soc/codecs/adau1977.c 		slot[i] = __ffs(rx_mask);
__ffs             796 sound/soc/codecs/cs53l30.c 		slot_next = __ffs(rx_mask);
__ffs             444 sound/soc/codecs/pcm186x.c 	first_slot = __ffs(tx_mask);
__ffs             546 sound/soc/codecs/ssm2518.c 		left_slot = __ffs(tx_mask);
__ffs             551 sound/soc/codecs/ssm2518.c 			right_slot = __ffs(tx_mask);
__ffs             247 sound/soc/codecs/ssm4567.c 	slot = __ffs(tx_mask);
__ffs             453 sound/soc/codecs/tas2552.c 	lsb = __ffs(tx_mask);
__ffs             161 sound/soc/codecs/tas5720.c 	first_slot = __ffs(tx_mask);
__ffs             229 sound/soc/codecs/tas6424.c 	first_slot = __ffs(tx_mask);
__ffs            1336 sound/soc/codecs/tlv320aic3x.c 	lsb = __ffs(tx_mask);
__ffs              89 sound/soc/meson/g12a-tohdmitx.c 	return (val & mask) >> __ffs(mask);
__ffs              10 tools/include/asm-generic/bitops/__ffz.h #define ffz(x)  __ffs(~(x))
__ffs              60 tools/lib/find_bit.c 	return min(start + __ffs(tmp), nbits);
__ffs              85 tools/lib/find_bit.c 			return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size);
__ffs             874 virt/kvm/arm/arm.c 		bit_index = __ffs(HCR_VI);
__ffs             876 virt/kvm/arm/arm.c 		bit_index = __ffs(HCR_VF);
__ffs             538 virt/kvm/arm/hyp/vgic-v3-sr.c 		return (hap + __ffs(val)) << __vgic_v3_bpr_min();
__ffs             622 virt/kvm/arm/hyp/vgic-v3-sr.c 		c0 = ap0 ? __ffs(ap0) : 32;
__ffs             623 virt/kvm/arm/hyp/vgic-v3-sr.c 		c1 = ap1 ? __ffs(ap1) : 32;
__ffs            1569 virt/kvm/arm/mmu.c 	phys_addr_t start = (base_gfn +  __ffs(mask)) << PAGE_SHIFT;
__ffs             189 virt/kvm/arm/vgic/vgic-mmio-v2.c 		target = irq->targets ? __ffs(irq->targets) : 0;