Home
last modified time | relevance | path

Searched refs:use_count (Results 1 – 25 of 84) sorted by relevance

1234

/linux-6.3-rc2/drivers/soc/pxa/
A Dssp.c45 if (ssp->port_id == port && ssp->use_count == 0) { in pxa_ssp_request()
46 ssp->use_count++; in pxa_ssp_request()
69 if (ssp->of_node == of_node && ssp->use_count == 0) { in pxa_ssp_request_of()
70 ssp->use_count++; in pxa_ssp_request_of()
88 if (ssp->use_count) { in pxa_ssp_free()
89 ssp->use_count--; in pxa_ssp_free()
167 ssp->use_count = 0; in pxa_ssp_probe()
/linux-6.3-rc2/drivers/gpu/ipu-v3/
A Dipu-dmfc.c98 int use_count; member
106 if (!priv->use_count) in ipu_dmfc_enable_channel()
109 priv->use_count++; in ipu_dmfc_enable_channel()
123 priv->use_count--; in ipu_dmfc_disable_channel()
125 if (!priv->use_count) in ipu_dmfc_disable_channel()
128 if (priv->use_count < 0) in ipu_dmfc_disable_channel()
129 priv->use_count = 0; in ipu_dmfc_disable_channel()
A Dipu-smfc.c28 int use_count; member
103 if (!priv->use_count) in ipu_smfc_enable()
106 priv->use_count++; in ipu_smfc_enable()
121 priv->use_count--; in ipu_smfc_disable()
123 if (!priv->use_count) in ipu_smfc_disable()
126 if (priv->use_count < 0) in ipu_smfc_disable()
127 priv->use_count = 0; in ipu_smfc_disable()
A Dipu-vdi.c13 int use_count; member
170 if (!vdi->use_count) in ipu_vdi_enable()
173 vdi->use_count++; in ipu_vdi_enable()
187 if (vdi->use_count) { in ipu_vdi_disable()
188 if (!--vdi->use_count) in ipu_vdi_disable()
A Dipu-dp.c66 int use_count; member
235 if (!priv->use_count) in ipu_dp_enable()
238 priv->use_count++; in ipu_dp_enable()
304 priv->use_count--; in ipu_dp_disable()
306 if (!priv->use_count) in ipu_dp_disable()
309 if (priv->use_count < 0) in ipu_dp_disable()
310 priv->use_count = 0; in ipu_dp_disable()
A Dipu-dc.c106 int use_count; member
237 if (!priv->use_count) in ipu_dc_enable()
240 priv->use_count++; in ipu_dc_enable()
272 priv->use_count--; in ipu_dc_disable()
273 if (!priv->use_count) in ipu_dc_disable()
276 if (priv->use_count < 0) in ipu_dc_disable()
277 priv->use_count = 0; in ipu_dc_disable()
A Dipu-ic.c159 int use_count; member
619 if (!priv->use_count) in ipu_ic_enable()
622 priv->use_count++; in ipu_ic_enable()
640 priv->use_count--; in ipu_ic_disable()
642 if (!priv->use_count) in ipu_ic_disable()
645 if (priv->use_count < 0) in ipu_ic_disable()
646 priv->use_count = 0; in ipu_ic_disable()
/linux-6.3-rc2/sound/soc/sh/
A Dmigor.c26 static unsigned int use_count; variable
74 use_count++; in migor_hw_params()
84 if (use_count) { in migor_hw_free()
85 use_count--; in migor_hw_free()
87 if (!use_count) in migor_hw_free()
/linux-6.3-rc2/include/trace/events/
A Dsof.h23 __field(int, use_count)
27 __entry->use_count = swidget->use_count;
29 TP_printk("name=%s use_count=%d", __get_str(name), __entry->use_count)
/linux-6.3-rc2/drivers/media/v4l2-core/
A Dv4l2-mc.c443 use += entity->use_count; in pipeline_pm_use_count()
468 if (entity->use_count == 0 && change > 0 && subdev != NULL) { in pipeline_pm_power_one()
474 entity->use_count += change; in pipeline_pm_power_one()
475 WARN_ON(entity->use_count < 0); in pipeline_pm_power_one()
477 if (entity->use_count == 0 && change < 0 && subdev != NULL) in pipeline_pm_power_one()
530 entity->use_count += change; in v4l2_pipeline_pm_use()
531 WARN_ON(entity->use_count < 0); in v4l2_pipeline_pm_use()
536 entity->use_count -= change; in v4l2_pipeline_pm_use()
/linux-6.3-rc2/drivers/misc/sgi-xp/
A Dxpnet.c97 atomic_t use_count; member
353 if (atomic_dec_return(&queued_msg->use_count) == 0) { in xpnet_send_completed()
394 atomic_inc(&queued_msg->use_count); in xpnet_send()
399 atomic_dec(&queued_msg->use_count); in xpnet_send()
461 atomic_set(&queued_msg->use_count, 1); in xpnet_dev_hard_start_xmit()
488 if (atomic_dec_return(&queued_msg->use_count) == 0) { in xpnet_dev_hard_start_xmit()
/linux-6.3-rc2/drivers/gpio/
A Dgpio-spear-spics.c49 unsigned long use_count; member
96 if (!spics->use_count++) { in spics_request()
111 if (!--spics->use_count) { in spics_free()
/linux-6.3-rc2/drivers/staging/vc04_services/interface/vchiq_arm/
A Dvchiq_debugfs.c115 int use_count; in debugfs_usecount_show() local
117 use_count = vchiq_instance_get_use_count(instance); in debugfs_usecount_show()
118 seq_printf(f, "%d\n", use_count); in debugfs_usecount_show()
/linux-6.3-rc2/fs/btrfs/
A Dtransaction.c284 refcount_inc(&cur_trans->use_count); in join_transaction()
344 refcount_set(&cur_trans->use_count, 2); in join_transaction()
522 refcount_inc(&cur_trans->use_count); in wait_current_trans()
580 refcount_inc(&h->use_count); in start_transaction()
687 refcount_set(&h->use_count, 1); in start_transaction()
876 refcount_inc(&commit->use_count); in wait_for_commit()
896 refcount_inc(&cur_trans->use_count); in btrfs_wait_for_commit()
925 refcount_inc(&cur_trans->use_count); in btrfs_wait_for_commit()
995 refcount_dec(&trans->use_count); in __btrfs_end_transaction()
1962 refcount_inc(&cur_trans->use_count); in btrfs_commit_transaction_async()
[all …]
A Dtransaction.h42 refcount_t use_count; member
130 refcount_t use_count; member
/linux-6.3-rc2/drivers/iio/
A Dindustrialio-trigger.c190 if (atomic_dec_and_test(&trig->use_count) && trig->ops && in iio_trigger_notify_done_atomic()
199 if (!atomic_read(&trig->use_count)) { in iio_trigger_poll()
200 atomic_set(&trig->use_count, CONFIG_IIO_CONSUMERS_PER_TRIGGER); in iio_trigger_poll()
223 if (!atomic_read(&trig->use_count)) { in iio_trigger_poll_chained()
224 atomic_set(&trig->use_count, CONFIG_IIO_CONSUMERS_PER_TRIGGER); in iio_trigger_poll_chained()
238 if (atomic_dec_and_test(&trig->use_count) && trig->ops && in iio_trigger_notify_done()
/linux-6.3-rc2/drivers/input/
A Dinput-mt.c196 void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count) in input_mt_report_pointer_emulation() argument
224 if (use_count) { in input_mt_report_pointer_emulation()
333 bool use_count = false; in input_mt_sync_frame() local
347 use_count = true; in input_mt_sync_frame()
349 input_mt_report_pointer_emulation(dev, use_count); in input_mt_sync_frame()
/linux-6.3-rc2/drivers/gpu/drm/rcar-du/
A Drcar_du_group.c199 if (rgrp->use_count) in rcar_du_group_get()
205 rgrp->use_count++; in rcar_du_group_get()
216 --rgrp->use_count; in rcar_du_group_put()
A Drcar_du_group.h43 unsigned int use_count; member
/linux-6.3-rc2/drivers/ps3/
A Dps3-vuart.c865 int use_count; member
908 vuart_bus_priv.use_count++; in ps3_vuart_bus_interrupt_get()
910 BUG_ON(vuart_bus_priv.use_count > 2); in ps3_vuart_bus_interrupt_get()
912 if (vuart_bus_priv.use_count != 1) in ps3_vuart_bus_interrupt_get()
953 vuart_bus_priv.use_count--; in ps3_vuart_bus_interrupt_get()
962 vuart_bus_priv.use_count--; in ps3_vuart_bus_interrupt_put()
964 BUG_ON(vuart_bus_priv.use_count < 0); in ps3_vuart_bus_interrupt_put()
966 if (vuart_bus_priv.use_count != 0) in ps3_vuart_bus_interrupt_put()
/linux-6.3-rc2/drivers/scsi/elx/efct/
A Defct_hw.h478 u32 use_count; member
490 u32 use_count; member
508 u32 use_count; member
534 u32 use_count; member
544 u32 use_count; member
/linux-6.3-rc2/drivers/acpi/acpica/
A Dutmutex.c144 acpi_gbl_mutex_info[mutex_id].use_count = 0; in acpi_ut_create_mutex()
249 acpi_gbl_mutex_info[mutex_id].use_count++; in acpi_ut_acquire_mutex()
/linux-6.3-rc2/drivers/mfd/
A Dmcp-core.c138 if (mcp->use_count++ == 0) in mcp_enable()
157 if (--mcp->use_count == 0) in mcp_disable()
/linux-6.3-rc2/arch/powerpc/platforms/pseries/
A Dhotplug-cpu.c622 unsigned int use_count = 0; in pseries_cpuhp_cache_use_count() local
631 use_count++; in pseries_cpuhp_cache_use_count()
638 use_count++; in pseries_cpuhp_cache_use_count()
641 return use_count; in pseries_cpuhp_cache_use_count()
/linux-6.3-rc2/drivers/s390/block/
A Ddcssblk.c72 atomic_t use_count; member
355 if (atomic_read(&dev_info->use_count)) { in dcssblk_shared_store()
460 if (atomic_read(&dev_info->use_count) == 0) { in dcssblk_save_store()
782 if (atomic_read(&dev_info->use_count) != 0) { in dcssblk_remove_store()
822 atomic_inc(&dev_info->use_count); in dcssblk_open()
839 if (atomic_dec_and_test(&dev_info->use_count) in dcssblk_release()

Completed in 69 milliseconds

1234