Home
last modified time | relevance | path

Searched refs:ffs (Results 1 – 25 of 2703) sorted by relevance

12345678910>>...109

/linux/drivers/usb/gadget/function/
A Df_fs.c851 struct ffs_data *ffs = io_data->ffs; in ffs_epfile_async_io_complete() local
1114 io_data->ffs = epfile->ffs; in ffs_epfile_io()
1842 ffs->ep0req->context = ffs; in functionfs_bind()
1886 epfile->ffs = ffs; in ffs_epfiles_create()
1948 struct ffs_data *ffs = func->ffs; in ffs_func_eps_enable() local
2515 helper.ffs = ffs; in __ffs_data_got_descs()
2764 ffs->ev.count = out - ffs->ev.types; in __ffs_event_add()
3082 struct ffs_data *ffs = func->ffs; in _ffs_func_bind() local
3273 struct ffs_data *ffs = func->ffs; in ffs_func_set_alt() local
3317 struct ffs_data *ffs = func->ffs; in ffs_func_setup() local
[all …]
A Du_fs.h50 int (*ffs_ready_callback)(struct ffs_data *ffs);
51 void (*ffs_closed_callback)(struct ffs_data *ffs);
/linux/tools/usb/
A DMakefile19 ALL_TARGETS := testusb ffs-test
33 FFS_TEST_IN := $(OUTPUT)ffs-test-in.o
35 $(Q)$(MAKE) $(build)=ffs-test
36 $(OUTPUT)ffs-test: $(FFS_TEST_IN)
A DBuild2 ffs-test-y += ffs-test.o
/linux/arch/sparc/lib/
A Dffs.S10 ENTRY(ffs)
68 ENDPROC(ffs)
71 EXPORT_SYMBOL(ffs)
74 .word ffs
/linux/fs/xfs/libxfs/
A Dxfs_bit.h44 return ffs(v) - 1; in xfs_lowbit32()
54 n = ffs(w); in xfs_lowbit64()
58 n = ffs(w); in xfs_lowbit64()
/linux/Documentation/usb/
A Dfunctionfs.rst46 $ mkdir /dev/ffs-mtp && mount -t functionfs mtp /dev/ffs-mtp
47 $ ( cd /dev/ffs-mtp && mtp-daemon ) &
48 $ mkdir /dev/ffs-hid && mount -t functionfs hid /dev/ffs-hid
49 $ ( cd /dev/ffs-hid && hid-daemon ) &
/linux/arch/arc/include/asm/
A Dbitops.h97 #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); }) macro
107 return ffs(word) - 1; in __ffs()
144 static inline __attribute__ ((const)) int ffs(unsigned int x) in ffs() function
/linux/drivers/infiniband/hw/mthca/
A Dmthca_profile.c116 profile[i].log_num = max(ffs(profile[i].num) - 1, 0); in mthca_make_profile()
217 init_hca->log_mc_entry_sz = ffs(MTHCA_MGM_ENTRY_SIZE) - 1; in mthca_make_profile()
231 init_hca->mtt_seg_sz = ffs(dev->limits.mtt_seg_size) - 7; in mthca_make_profile()
245 init_hca->log_uarc_sz = ffs(request->uarc_size) - 13; in mthca_make_profile()
246 init_hca->log_uar_sz = ffs(request->num_uar) - 1; in mthca_make_profile()
/linux/drivers/regulator/
A Dhelpers.c150 val >>= ffs(rdev->desc->vsel_mask) - 1; in regulator_get_voltage_sel_pickable_regmap()
194 sel <<= ffs(rdev->desc->vsel_mask) - 1; in regulator_set_voltage_sel_pickable_regmap()
245 val >>= ffs(rdev->desc->vsel_mask) - 1; in regulator_get_voltage_sel_regmap()
265 sel <<= ffs(rdev->desc->vsel_mask) - 1; in regulator_set_voltage_sel_regmap()
833 sel <<= ffs(rdev->desc->csel_mask) - 1; in regulator_set_current_limit_regmap()
859 val >>= ffs(rdev->desc->csel_mask) - 1; in regulator_get_current_limit_regmap()
963 sel <<= ffs(rdev->desc->ramp_mask) - 1; in regulator_set_ramp_delay_regmap()
A Dmt6358-regulator.c256 idx <<= ffs(info->desc.vsel_mask) - 1; in mt6358_set_voltage_sel()
279 (ffs(info->desc.vsel_mask) - 1); in mt6358_get_voltage_sel()
302 ret = (regval & info->da_vsel_mask) >> (ffs(info->da_vsel_mask) - 1); in mt6358_get_buck_voltage_sel()
342 val <<= ffs(info->modeset_mask) - 1; in mt6358_regulator_set_mode()
360 switch ((regval & info->modeset_mask) >> (ffs(info->modeset_mask) - 1)) { in mt6358_regulator_get_mode()
A Dmt6359-regulator.c281 regval >>= ffs(info->modeset_mask) - 1; in mt6359_regulator_get_mode()
310 val <<= ffs(info->modeset_mask) - 1; in mt6359_regulator_set_mode()
319 val <<= ffs(info->modeset_mask) - 1; in mt6359_regulator_set_mode()
326 val <<= ffs(info->lp_mode_mask) - 1; in mt6359_regulator_set_mode()
336 val <<= ffs(info->lp_mode_mask) - 1; in mt6359_regulator_set_mode()
361 sel <<= ffs(info->desc.vsel_mask) - 1; in mt6359p_vemc_set_voltage_sel()
421 val >>= ffs(info->desc.vsel_mask) - 1; in mt6359p_vemc_get_voltage_sel()
A Dmp886x.c103 sel <<= ffs(rdev->desc->vsel_mask) - 1; in mp8869_set_voltage_sel()
134 val >>= ffs(rdev->desc->vsel_mask) - 1; in mp8869_get_voltage_sel()
207 val >>= ffs(rdev->desc->vsel_mask) - 1; in mp8867_get_voltage_sel()
A Drtq2134-regulator.c90 val <<= ffs(desc->mode_mask) - 1; in rtq2134_buck_set_mode()
121 sel <<= ffs(desc->suspend_vsel_mask) - 1; in rtq2134_buck_set_suspend_voltage()
160 val <<= ffs(desc->suspend_mode_mask) - 1; in rtq2134_buck_set_suspend_mode()
/linux/arch/x86/boot/
A Da20.c23 int ffs = MAX_8042_FF; in empty_8042() local
31 if (!--ffs) in empty_8042()
/linux/arch/powerpc/mm/kasan/
A Dbook3s_32.c15 int k_size_base = 1 << (ffs(k_size) - 1); in kasan_init_region()
22 int k_size_more = 1 << (ffs(k_size - k_size_base) - 1); in kasan_init_region()
/linux/drivers/gpu/drm/nouveau/
A Dnouveau_backlight.c116 int or = ffs(nv_encoder->dcb->or) - 1; in nv50_get_intensity()
131 int or = ffs(nv_encoder->dcb->or) - 1; in nv50_set_intensity()
244 int or = ffs(nv_encoder->dcb->or) - 1; in nva3_get_intensity()
262 int or = ffs(nv_encoder->dcb->or) - 1; in nva3_set_intensity()
297 if (!nvif_rd32(device, NV50_PDISP_SOR_PWM_CTL(ffs(nv_encoder->dcb->or) - 1))) in nv50_backlight_init()
/linux/drivers/irqchip/
A Dirq-bcm2835.c215 return MAKE_HWIRQ(bank, ffs(stat) - 1); in armctrl_translate_bank()
220 return MAKE_HWIRQ(bank, shortcuts[ffs(stat >> SHORTCUT_SHIFT) - 1]); in armctrl_translate_shortcut()
230 return MAKE_HWIRQ(0, ffs(stat & BANK0_HWIRQ_MASK) - 1); in get_next_armctrl_hwirq()
A Dirq-digicolor.c44 hwirq = ffs(status) - 1; in digicolor_handle_irq()
48 hwirq = ffs(status) - 1 + 32; in digicolor_handle_irq()
/linux/arch/mips/include/asm/
A Dfpu_emulator.h184 (ffs(FPU_CSR_ALL_X) - ffs(FPU_CSR_ALL_E)))); in mask_fcr31_x()
/linux/drivers/gpu/drm/nouveau/dispnv04/
A Ddac.c347 '@' + ffs(dcb->or)); in nv17_dac_detect()
423 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_dac_commit()
432 uint32_t *dac_users = &nv04_display(dev)->dac_users[ffs(dcb->or) - 1]; in nv04_dac_update_dacclk()
457 (nv04_display(dev)->dac_users[ffs(dcb->or) - 1] & ~(1 << dcb->index)); in nv04_dac_in_use()
542 nv_encoder->or = ffs(entry->or) - 1; in nv04_dac_create()
/linux/drivers/usb/gadget/legacy/
A Dg_ffs.c141 static int functionfs_ready_callback(struct ffs_data *ffs);
142 static void functionfs_closed_callback(struct ffs_data *ffs);
276 static int functionfs_ready_callback(struct ffs_data *ffs) in functionfs_ready_callback() argument
300 static void functionfs_closed_callback(struct ffs_data *ffs) in functionfs_closed_callback() argument
/linux/drivers/mmc/host/
A Ddw_mmc-k3.c337 i = ffs(sample_flag) - 1; in dw_mci_get_best_clksmpl()
346 len = ffs(~v) - 1; in dw_mci_get_best_clksmpl()
353 interval = ffs(v >> len) - 1; in dw_mci_get_best_clksmpl()
/linux/arch/m68k/include/asm/
A Dbitops.h463 static inline int ffs(int x) in ffs() function
485 static inline int ffs(int x) in ffs() function
497 return ffs(x) - 1; in __ffs()
/linux/include/asm-generic/bitops/
A Dbuiltin-ffs.h13 #define ffs(x) __builtin_ffs(x) macro

Completed in 54 milliseconds

12345678910>>...109