Home
last modified time | relevance | path

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

1234

/Linux-v4.19/arch/arm/plat-pxa/
Dssp.c48 if (ssp->port_id == port && ssp->use_count == 0) { in pxa_ssp_request()
49 ssp->use_count++; in pxa_ssp_request()
72 if (ssp->of_node == of_node && ssp->use_count == 0) { in pxa_ssp_request_of()
73 ssp->use_count++; in pxa_ssp_request_of()
91 if (ssp->use_count) { in pxa_ssp_free()
92 ssp->use_count--; in pxa_ssp_free()
172 ssp->use_count = 0; in pxa_ssp_probe()
/Linux-v4.19/drivers/gpu/ipu-v3/
Dipu-dmfc.c107 int use_count; member
115 if (!priv->use_count) in ipu_dmfc_enable_channel()
118 priv->use_count++; in ipu_dmfc_enable_channel()
132 priv->use_count--; in ipu_dmfc_disable_channel()
134 if (!priv->use_count) in ipu_dmfc_disable_channel()
137 if (priv->use_count < 0) in ipu_dmfc_disable_channel()
138 priv->use_count = 0; in ipu_dmfc_disable_channel()
Dipu-smfc.c34 int use_count; member
109 if (!priv->use_count) in ipu_smfc_enable()
112 priv->use_count++; in ipu_smfc_enable()
127 priv->use_count--; in ipu_smfc_disable()
129 if (!priv->use_count) in ipu_smfc_disable()
132 if (priv->use_count < 0) in ipu_smfc_disable()
133 priv->use_count = 0; in ipu_smfc_disable()
Dipu-vdi.c22 int use_count; member
179 if (!vdi->use_count) in ipu_vdi_enable()
182 vdi->use_count++; in ipu_vdi_enable()
196 if (vdi->use_count) { in ipu_vdi_disable()
197 if (!--vdi->use_count) in ipu_vdi_disable()
Dipu-dp.c74 int use_count; member
224 if (!priv->use_count) in ipu_dp_enable()
227 priv->use_count++; in ipu_dp_enable()
290 priv->use_count--; in ipu_dp_disable()
292 if (!priv->use_count) in ipu_dp_disable()
295 if (priv->use_count < 0) in ipu_dp_disable()
296 priv->use_count = 0; in ipu_dp_disable()
Dipu-dc.c115 int use_count; member
241 if (!priv->use_count) in ipu_dc_enable()
244 priv->use_count++; in ipu_dc_enable()
276 priv->use_count--; in ipu_dc_disable()
277 if (!priv->use_count) in ipu_dc_disable()
280 if (priv->use_count < 0) in ipu_dc_disable()
281 priv->use_count = 0; in ipu_dc_disable()
Dipu-ic.c163 int use_count; member
659 if (!priv->use_count) in ipu_ic_enable()
662 priv->use_count++; in ipu_ic_enable()
680 priv->use_count--; in ipu_ic_disable()
682 if (!priv->use_count) in ipu_ic_disable()
685 if (priv->use_count < 0) in ipu_ic_disable()
686 priv->use_count = 0; in ipu_ic_disable()
/Linux-v4.19/drivers/media/v4l2-core/
Dv4l2-mc.c267 use += entity->use_count; in pipeline_pm_use_count()
292 if (entity->use_count == 0 && change > 0 && subdev != NULL) { in pipeline_pm_power_one()
298 entity->use_count += change; in pipeline_pm_power_one()
299 WARN_ON(entity->use_count < 0); in pipeline_pm_power_one()
301 if (entity->use_count == 0 && change < 0 && subdev != NULL) in pipeline_pm_power_one()
354 entity->use_count += change; in v4l2_pipeline_pm_use()
355 WARN_ON(entity->use_count < 0); in v4l2_pipeline_pm_use()
360 entity->use_count -= change; in v4l2_pipeline_pm_use()
Dv4l2-clk.c69 atomic_inc(&clk->use_count); in v4l2_clk_get()
93 atomic_dec(&clk->use_count); in v4l2_clk_put()
249 atomic_set(&clk->use_count, 0); in v4l2_clk_register()
273 if (WARN(atomic_read(&clk->use_count), in v4l2_clk_unregister()
/Linux-v4.19/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-v4.19/drivers/misc/sgi-xp/
Dxpnet.c96 atomic_t use_count; member
352 if (atomic_dec_return(&queued_msg->use_count) == 0) { in xpnet_send_completed()
393 atomic_inc(&queued_msg->use_count); in xpnet_send()
398 atomic_dec(&queued_msg->use_count); in xpnet_send()
460 atomic_set(&queued_msg->use_count, 1); in xpnet_dev_hard_start_xmit()
487 if (atomic_dec_return(&queued_msg->use_count) == 0) { in xpnet_dev_hard_start_xmit()
/Linux-v4.19/drivers/gpio/
Dgpio-spear-spics.c52 unsigned long use_count; member
99 if (!spics->use_count++) { in spics_request()
114 if (!--spics->use_count) { in spics_free()
/Linux-v4.19/drivers/gpu/drm/rcar-du/
Drcar_du_group.c158 if (rgrp->use_count) in rcar_du_group_get()
164 rgrp->use_count++; in rcar_du_group_get()
175 --rgrp->use_count; in rcar_du_group_put()
Drcar_du_group.h45 unsigned int use_count; member
/Linux-v4.19/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_debugfs.c149 int use_count; in debugfs_usecount_show() local
151 use_count = vchiq_instance_get_use_count(instance); in debugfs_usecount_show()
152 seq_printf(f, "%d\n", use_count); in debugfs_usecount_show()
/Linux-v4.19/drivers/input/
Dinput-mt.c198 void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count) in input_mt_report_pointer_emulation() argument
226 if (use_count) { in input_mt_report_pointer_emulation()
301 bool use_count = false; in input_mt_sync_frame() local
310 use_count = true; in input_mt_sync_frame()
312 input_mt_report_pointer_emulation(dev, use_count); in input_mt_sync_frame()
/Linux-v4.19/drivers/isdn/gigaset/
Dcommon.c193 if (bcs->use_count || !try_module_get(bcs->cs->driver->owner)) { in gigaset_get_channel()
199 ++bcs->use_count; in gigaset_get_channel()
219 if (!cs->bcs[i].use_count) { in gigaset_get_free_channel()
220 ++cs->bcs[i].use_count; in gigaset_get_free_channel()
243 --bcs->use_count; in gigaset_free_channel()
257 if (cs->bcs[i].use_count) { in gigaset_get_channels()
264 ++cs->bcs[i].use_count; in gigaset_get_channels()
280 --cs->bcs[i].use_count; in gigaset_free_channels()
292 ++cs->bcs[i].use_count; in gigaset_block_channels()
636 bcs->use_count = 1; in gigaset_initbcs()
/Linux-v4.19/fs/btrfs/
Dtransaction.c44 WARN_ON(refcount_read(&transaction->use_count) == 0); in btrfs_put_transaction()
45 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction()
191 refcount_inc(&cur_trans->use_count); in join_transaction()
241 refcount_set(&cur_trans->use_count, 2); in join_transaction()
416 refcount_inc(&cur_trans->use_count); in wait_current_trans()
475 refcount_inc(&h->use_count); in start_transaction()
476 WARN_ON(refcount_read(&h->use_count) > 2); in start_transaction()
547 refcount_set(&h->use_count, 1); in start_transaction()
709 refcount_inc(&cur_trans->use_count); in btrfs_wait_for_commit()
738 refcount_inc(&cur_trans->use_count); in btrfs_wait_for_commit()
[all …]
Dtransaction.h41 refcount_t use_count; member
118 refcount_t use_count; member
/Linux-v4.19/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-v4.19/drivers/ps3/
Dps3-vuart.c877 int use_count; member
920 vuart_bus_priv.use_count++; in ps3_vuart_bus_interrupt_get()
922 BUG_ON(vuart_bus_priv.use_count > 2); in ps3_vuart_bus_interrupt_get()
924 if (vuart_bus_priv.use_count != 1) in ps3_vuart_bus_interrupt_get()
966 vuart_bus_priv.use_count--; in ps3_vuart_bus_interrupt_get()
975 vuart_bus_priv.use_count--; in ps3_vuart_bus_interrupt_put()
977 BUG_ON(vuart_bus_priv.use_count < 0); in ps3_vuart_bus_interrupt_put()
979 if (vuart_bus_priv.use_count != 0) in ps3_vuart_bus_interrupt_put()
/Linux-v4.19/drivers/iio/
Dindustrialio-trigger.c169 if (!atomic_read(&trig->use_count)) { in iio_trigger_poll()
170 atomic_set(&trig->use_count, CONFIG_IIO_CONSUMERS_PER_TRIGGER); in iio_trigger_poll()
193 if (!atomic_read(&trig->use_count)) { in iio_trigger_poll_chained()
194 atomic_set(&trig->use_count, CONFIG_IIO_CONSUMERS_PER_TRIGGER); in iio_trigger_poll_chained()
208 if (atomic_dec_and_test(&trig->use_count) && trig->ops && in iio_trigger_notify_done()
/Linux-v4.19/drivers/mfd/
Dmcp-core.c142 if (mcp->use_count++ == 0) in mcp_enable()
161 if (--mcp->use_count == 0) in mcp_disable()
/Linux-v4.19/sound/usb/
Dendpoint.c873 if (ep->use_count != 0) { in snd_usb_endpoint_set_params()
940 if (++ep->use_count != 1) in snd_usb_endpoint_start()
996 ep->use_count--; in snd_usb_endpoint_start()
1020 if (snd_BUG_ON(ep->use_count == 0)) in snd_usb_endpoint_stop()
1023 if (--ep->use_count == 0) { in snd_usb_endpoint_stop()
1044 if (ep->use_count != 0) in snd_usb_endpoint_deactivate()
1103 ep->use_count != 0) { in snd_usb_handle_sync_urb()
/Linux-v4.19/drivers/media/platform/xilinx/
Dxilinx-dma.h44 unsigned int use_count; member

1234