Home
last modified time | relevance | path

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

1234

/Linux-v6.6/drivers/soc/pxa/
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-v6.6/drivers/gpu/ipu-v3/
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()
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()
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()
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()
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()
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-v6.6/sound/soc/sh/
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-v6.6/include/trace/events/
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-v6.6/drivers/media/v4l2-core/
Dv4l2-mc.c451 use += entity->use_count; in pipeline_pm_use_count()
476 if (entity->use_count == 0 && change > 0 && subdev != NULL) { in pipeline_pm_power_one()
482 entity->use_count += change; in pipeline_pm_power_one()
483 WARN_ON(entity->use_count < 0); in pipeline_pm_power_one()
485 if (entity->use_count == 0 && change < 0 && subdev != NULL) in pipeline_pm_power_one()
538 entity->use_count += change; in v4l2_pipeline_pm_use()
539 WARN_ON(entity->use_count < 0); in v4l2_pipeline_pm_use()
544 entity->use_count -= change; in v4l2_pipeline_pm_use()
/Linux-v6.6/drivers/misc/sgi-xp/
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-v6.6/drivers/gpio/
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-v6.6/drivers/staging/vc04_services/interface/vchiq_arm/
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-v6.6/fs/btrfs/
Dtransaction.c145 WARN_ON(refcount_read(&transaction->use_count) == 0); in btrfs_put_transaction()
146 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction()
290 refcount_inc(&cur_trans->use_count); in join_transaction()
351 refcount_set(&cur_trans->use_count, 2); in join_transaction()
527 refcount_inc(&cur_trans->use_count); in wait_current_trans()
585 refcount_inc(&h->use_count); in start_transaction()
586 WARN_ON(refcount_read(&h->use_count) > 2); in start_transaction()
698 refcount_set(&h->use_count, 1); in start_transaction()
903 refcount_inc(&commit->use_count); in wait_for_commit()
923 refcount_inc(&cur_trans->use_count); in btrfs_wait_for_commit()
[all …]
Dtransaction.h43 refcount_t use_count; member
128 refcount_t use_count; member
/Linux-v6.6/drivers/iio/
Dindustrialio-trigger.c190 if (atomic_dec_and_test(&trig->use_count) && trig->ops && in iio_trigger_notify_done_atomic()
205 if (!atomic_read(&trig->use_count)) { in iio_trigger_poll()
206 atomic_set(&trig->use_count, CONFIG_IIO_CONSUMERS_PER_TRIGGER); in iio_trigger_poll()
236 if (!atomic_read(&trig->use_count)) { in iio_trigger_poll_nested()
237 atomic_set(&trig->use_count, CONFIG_IIO_CONSUMERS_PER_TRIGGER); in iio_trigger_poll_nested()
251 if (atomic_dec_and_test(&trig->use_count) && trig->ops && in iio_trigger_notify_done()
/Linux-v6.6/drivers/input/
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-v6.6/drivers/gpu/drm/renesas/rcar-du/
Drcar_du_group.c207 if (rgrp->use_count) in rcar_du_group_get()
213 rgrp->use_count++; in rcar_du_group_get()
224 --rgrp->use_count; in rcar_du_group_put()
Drcar_du_group.h43 unsigned int use_count; member
/Linux-v6.6/drivers/ps3/
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-v6.6/drivers/scsi/elx/efct/
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-v6.6/drivers/acpi/acpica/
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-v6.6/drivers/mfd/
Dmcp-core.c138 if (mcp->use_count++ == 0) in mcp_enable()
157 if (--mcp->use_count == 0) in mcp_disable()
/Linux-v6.6/arch/powerpc/platforms/pseries/
Dhotplug-cpu.c630 unsigned int use_count = 0; in pseries_cpuhp_cache_use_count() local
639 use_count++; in pseries_cpuhp_cache_use_count()
646 use_count++; in pseries_cpuhp_cache_use_count()
649 return use_count; in pseries_cpuhp_cache_use_count()
/Linux-v6.6/drivers/s390/block/
Ddcssblk.c73 atomic_t use_count; member
356 if (atomic_read(&dev_info->use_count)) { in dcssblk_shared_store()
462 if (atomic_read(&dev_info->use_count) == 0) { in dcssblk_save_store()
784 if (atomic_read(&dev_info->use_count) != 0) { in dcssblk_remove_store()
823 atomic_inc(&dev_info->use_count); in dcssblk_open()
840 if (atomic_dec_and_test(&dev_info->use_count) in dcssblk_release()

1234