Home
last modified time | relevance | path

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

12345678910>>...19

/linux/drivers/usb/gadget/function/
H A Df_fs.c55 static void ffs_data_get(struct ffs_data *ffs);
56 static void ffs_data_put(struct ffs_data *ffs);
62 static void ffs_data_opened(struct ffs_data *ffs);
63 static void ffs_data_closed(struct ffs_data *ffs);
67 __ffs_data_got_descs(struct ffs_data *ffs, char *data, size_t len);
69 __ffs_data_got_strings(struct ffs_data *ffs, char *data, size_t len);
79 struct ffs_data *ffs; member
97 ffs_setup_state_clear_cancelled(struct ffs_data *ffs) in ffs_setup_state_clear_cancelled() argument
100 cmpxchg(&ffs->setup_state, FFS_SETUP_CANCELLED, FFS_NO_SETUP); in ffs_setup_state_clear_cancelled()
140 struct ffs_data *ffs; member
[all …]
H A Du_fs.h48 int (*ffs_ready_callback)(struct ffs_data *ffs);
49 void (*ffs_closed_callback)(struct ffs_data *ffs);
/linux/tools/usb/
H 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)
H A DBuild2 ffs-test-y += ffs-test.o
H A D.gitignore2 ffs-test
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmmio.c340 wed->wlan.txfree_tbit = ffs(MT_INT_RX_TXFREE_EXT) - 1; in mt7996_mmio_wed_init()
345 wed->wlan.txfree_tbit = ffs(MT_INT_RX_DONE_WA_TRI) - 1; in mt7996_mmio_wed_init()
354 wed->wlan.tx_tbit[0] = ffs(MT_INT_TX_DONE_BAND2) - 1; in mt7996_mmio_wed_init()
382 wed->wlan.rx_tbit[0] = ffs(MT_INT_RX_DONE_BAND0) - 1; in mt7996_mmio_wed_init()
383 wed->wlan.rx_tbit[1] = ffs(MT_INT_RX_DONE_BAND2) - 1; in mt7996_mmio_wed_init()
385 wed->wlan.rro_rx_tbit[0] = ffs(MT_INT_RX_DONE_RRO_BAND0) - 1; in mt7996_mmio_wed_init()
386 wed->wlan.rro_rx_tbit[1] = ffs(MT_INT_RX_DONE_RRO_BAND2) - 1; in mt7996_mmio_wed_init()
388 wed->wlan.rx_pg_tbit[0] = ffs(MT_INT_RX_DONE_MSDU_PG_BAND0) - 1; in mt7996_mmio_wed_init()
389 wed->wlan.rx_pg_tbit[1] = ffs(MT_INT_RX_DONE_MSDU_PG_BAND1) - 1; in mt7996_mmio_wed_init()
390 wed->wlan.rx_pg_tbit[2] = ffs(MT_INT_RX_DONE_MSDU_PG_BAND2) - 1; in mt7996_mmio_wed_init()
[all …]
/linux/arch/sparc/lib/
H A Dffs.S10 ENTRY(ffs)
68 ENDPROC(ffs)
71 EXPORT_SYMBOL(ffs)
74 .word ffs
/linux/fs/xfs/libxfs/
H 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/arch/arc/include/asm/
H 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/regulator/
H A Dhelpers.c112 rval >>= ffs(rdev->desc->vsel_range_mask) - 1; in regulator_range_selector_to_index()
152 val >>= ffs(rdev->desc->vsel_mask) - 1; in regulator_get_voltage_sel_pickable_regmap()
222 sel <<= ffs(rdev->desc->vsel_mask) - 1; in regulator_set_voltage_sel_pickable_regmap()
226 range <<= ffs(rdev->desc->vsel_range_mask) - 1; in regulator_set_voltage_sel_pickable_regmap()
265 val >>= ffs(rdev->desc->vsel_mask) - 1; in regulator_set_voltage_sel_regmap()
285 sel <<= ffs(rdev->desc->vsel_mask) - 1;
853 sel <<= ffs(rdev->desc->csel_mask) - 1; in regulator_get_current_limit_regmap()
879 val >>= ffs(rdev->desc->csel_mask) - 1;
998 sel <<= ffs(rdev->desc->ramp_mask) - 1;
H A Drt4803.c54 modeval <<= ffs(RT4803_MODE_MASK) - 1; in rt4803_set_mode()
69 modeval >>= ffs(RT4803_MODE_MASK) - 1; in rt4803_get_mode()
119 vsel <<= ffs(RT4803_VSEL_MASK) - 1; in rt4803_set_suspend_voltage()
H 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()
H 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()
H 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/Documentation/usb/
H A Dfunctionfs.rst49 $ mkdir /dev/ffs-mtp && mount -t functionfs mtp /dev/ffs-mtp
50 $ ( cd /dev/ffs-mtp && mtp-daemon ) &
51 $ mkdir /dev/ffs-hid && mount -t functionfs hid /dev/ffs-hid
52 $ ( cd /dev/ffs-hid && hid-daemon ) &
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_profile.c114 profile[i].log_num = max(ffs(profile[i].num) - 1, 0); in mthca_make_profile()
215 init_hca->log_mc_entry_sz = ffs(MTHCA_MGM_ENTRY_SIZE) - 1; in mthca_make_profile()
229 init_hca->mtt_seg_sz = ffs(dev->limits.mtt_seg_size) - 7; in mthca_make_profile()
243 init_hca->log_uarc_sz = ffs(request->uarc_size) - 13; in mthca_make_profile()
244 init_hca->log_uar_sz = ffs(request->num_uar) - 1; in mthca_make_profile()
/linux/arch/x86/boot/
H A Da20.c23 int ffs = MAX_8042_FF; in empty_8042() local
31 if (!--ffs) in empty_8042()
/linux/drivers/irqchip/
H A Dirq-bcm2835.c217 return MAKE_HWIRQ(bank, ffs(stat) - 1); in armctrl_translate_bank()
222 return MAKE_HWIRQ(bank, shortcuts[ffs(stat >> SHORTCUT_SHIFT) - 1]); in armctrl_translate_shortcut()
232 return MAKE_HWIRQ(0, ffs(stat & BANK0_HWIRQ_MASK) - 1); in get_next_armctrl_hwirq()
H 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/
H A Dfpu_emulator.h184 (ffs(FPU_CSR_ALL_X) - ffs(FPU_CSR_ALL_E)))); in mask_fcr31_x()
/linux/drivers/gpu/drm/nouveau/dispnv04/
H 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/
H A Dg_ffs.c141 static int functionfs_ready_callback(struct ffs_data *ffs);
142 static void functionfs_closed_callback(struct ffs_data *ffs);
272 static int functionfs_ready_callback(struct ffs_data *ffs) in functionfs_ready_callback() argument
296 static void functionfs_closed_callback(struct ffs_data *ffs) in functionfs_closed_callback() argument
/linux/drivers/clk/mediatek/
H A Dclk-fhctl.c81 r |= (data->df_val << (ffs(data->msk_frddsx_dys) - 1)); in fhctl_set_ssc_regs()
86 r |= (data->dt_val << (ffs(data->msk_frddsx_dts) - 1)); in fhctl_set_ssc_regs()
177 regval |= (ffs(postdiv) - 1) << pll->data->pd_shift; in __set_postdiv()
/linux/include/asm-generic/bitops/
H A Dbuiltin-ffs.h13 #define ffs(x) __builtin_ffs(x) macro
/linux/arch/m68k/include/asm/
H A Dbitops.h499 static inline int ffs(int x) in ffs() function
521 static inline int ffs(int x) in ffs() function
533 return ffs(x) - 1; in __ffs()

12345678910>>...19