Home
last modified time | relevance | path

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

12345678910>>...15

/drivers/usb/gadget/function/
A Df_fs.c1163 io_data->ffs = epfile->ffs; in ffs_epfile_io()
1337 struct ffs_data *ffs = epfile->ffs; in ffs_epfile_release() local
1510 priv->ffs = epfile->ffs; in ffs_dmabuf_attach()
2290 ffs->ep0req->context = ffs; in functionfs_bind()
2334 epfile->ffs = ffs; in ffs_epfiles_create()
2406 ffs = func->ffs; in ffs_func_eps_enable()
2966 helper.ffs = ffs; in __ffs_data_got_descs()
3528 struct ffs_data *ffs = func->ffs; in _ffs_func_bind() local
3726 struct ffs_data *ffs = func->ffs; in ffs_func_set_alt() local
3761 struct ffs_data *ffs = func->ffs; in ffs_func_disable() local
[all …]
A Du_fs.h48 int (*ffs_ready_callback)(struct ffs_data *ffs);
49 void (*ffs_closed_callback)(struct ffs_data *ffs);
/drivers/net/wireless/mediatek/mt76/mt7996/
A Dmmio.c497 wed->wlan.txfree_tbit = ffs(MT_INT_RX_TXFREE_EXT) - 1; in mt7996_mmio_wed_init()
502 wed->wlan.txfree_tbit = ffs(MT_INT_RX_DONE_WA_TRI) - 1; in mt7996_mmio_wed_init()
511 wed->wlan.tx_tbit[0] = ffs(MT_INT_TX_DONE_BAND2) - 1; in mt7996_mmio_wed_init()
539 wed->wlan.rx_tbit[0] = ffs(MT_INT_RX_DONE_BAND0) - 1; in mt7996_mmio_wed_init()
540 wed->wlan.rx_tbit[1] = ffs(MT_INT_RX_DONE_BAND2) - 1; in mt7996_mmio_wed_init()
542 wed->wlan.rro_rx_tbit[0] = ffs(MT_INT_RX_DONE_RRO_BAND0) - 1; in mt7996_mmio_wed_init()
543 wed->wlan.rro_rx_tbit[1] = ffs(MT_INT_RX_DONE_RRO_BAND2) - 1; in mt7996_mmio_wed_init()
549 wed->wlan.tx_tbit[0] = ffs(MT_INT_TX_DONE_BAND0) - 1; in mt7996_mmio_wed_init()
550 wed->wlan.tx_tbit[1] = ffs(MT_INT_TX_DONE_BAND1) - 1; in mt7996_mmio_wed_init()
554 wed->wlan.txfree_tbit = ffs(MT_INT_RX_TXFREE_MAIN) - 1; in mt7996_mmio_wed_init()
[all …]
/drivers/regulator/
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_get_voltage_sel_regmap()
285 sel <<= ffs(rdev->desc->vsel_mask) - 1; in regulator_set_voltage_sel_regmap()
853 sel <<= ffs(rdev->desc->csel_mask) - 1; in regulator_set_current_limit_regmap()
879 val >>= ffs(rdev->desc->csel_mask) - 1; in regulator_get_current_limit_regmap()
998 sel <<= ffs(rdev->desc->ramp_mask) - 1; in regulator_set_ramp_delay_regmap()
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()
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()
A Drtmv20-regulator.c124 sel <<= ffs(rdev->desc->csel_mask) - 1; in rtmv20_lsw_set_current_limit()
140 val >>= ffs(rdev->desc->csel_mask) - 1; in rtmv20_lsw_get_current_limit()
242 int shift = ffs(props[i].mask) - 1; in rtmv20_properties_init()
/drivers/infiniband/hw/mthca/
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()
/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ip.c58 log_inst = ffs(mask) - 1; in amdgpu_logical_to_dev_mask()
74 i = ffs(inst_mask) - 1; in amdgpu_populate_ip_map()
/drivers/irqchip/
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()
A Dirq-digicolor.c44 hwirq = ffs(status) - 1; in digicolor_handle_irq()
48 hwirq = ffs(status) - 1 + 32; in digicolor_handle_irq()
A Dirq-versatile-fpga.c97 unsigned int irq = ffs(status) - 1; in fpga_irq_handle()
119 irq = ffs(status) - 1; in handle_one_fpga()
A Dirq-dw-apb-ictl.c43 u32 hwirq = ffs(stat) - 1; in dw_apb_ictl_handle_irq()
64 u32 hwirq = ffs(stat) - 1; in dw_apb_ictl_handle_irq_cascaded()
A Dirq-bcm2836.c147 u32 hwirq = ffs(stat) - 1; in bcm2836_arm_irqchip_handle_irq()
166 int hwirq = ffs(mbox_val) - 1; in bcm2836_arm_irqchip_handle_ipi()
/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()
A Dtvnv04.c176 nv_crtc->index, '@' + ffs(nv_encoder->dcb->or)); in nv04_tv_commit()
235 nv_encoder->or = ffs(entry->or) - 1; in nv04_tv_create()
/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);
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
/drivers/clk/mediatek/
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()
/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()
/drivers/mtd/devices/
A Dpmc551.c660 msize = (1 << (ffs(msize) - 1)) << 20; in init_pmc551()
669 asize = (1 << (ffs(asize) - 1)) << 20; in init_pmc551()
753 ffs(priv->asize >> 20) - 1); in init_pmc551()
758 | (ffs(priv->asize >> 20) - 1) << 4); in init_pmc551()
/drivers/gpu/drm/amd/amdkfd/
A Dkfd_mqd_manager_v12.c191 ffs(q->queue_size / sizeof(unsigned int)) - 1 - 1; in update_mqd()
218 ffs(q->eop_ring_buffer_size / sizeof(unsigned int)) - 1 - 1); in update_mqd()
329 m->sdmax_rlcx_rb_cntl = (ffs(q->queue_size / sizeof(unsigned int)) - 1) in update_mqd_sdma()
/drivers/media/platform/samsung/exynos4-is/
A Dfimc-m2m.c285 mod_x = ffs(variant->min_inp_pixsize) - 1; in fimc_try_fmt_mplane()
288 mod_x = ffs(variant->min_out_pixsize) - 1; in fimc_try_fmt_mplane()
298 mod_y = ffs(variant->min_vsize_align) - 1; in fimc_try_fmt_mplane()
458 halign = ffs(fimc->variant->min_vsize_align) - 1; in fimc_m2m_try_selection()
464 ffs(min_size) - 1, in fimc_m2m_try_selection()
/drivers/gpu/drm/xe/
A Dxe_force_wake.c152 for (tmp__ = (mask__); tmp__; tmp__ &= ~BIT(ffs(tmp__) - 1)) \
154 (ffs(tmp__) - 1))) && \

Completed in 44 milliseconds

12345678910>>...15