/Linux-v4.19/arch/arm/plat-pxa/ |
D | ssp.c | 48 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/ |
D | ipu-dmfc.c | 107 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()
|
D | ipu-smfc.c | 34 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()
|
D | ipu-vdi.c | 22 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()
|
D | ipu-dp.c | 74 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()
|
D | ipu-dc.c | 115 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()
|
D | ipu-ic.c | 163 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/ |
D | v4l2-mc.c | 267 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()
|
D | v4l2-clk.c | 69 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/ |
D | migor.c | 26 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/ |
D | xpnet.c | 96 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/ |
D | gpio-spear-spics.c | 52 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/ |
D | rcar_du_group.c | 158 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()
|
D | rcar_du_group.h | 45 unsigned int use_count; member
|
/Linux-v4.19/drivers/staging/vc04_services/interface/vchiq_arm/ |
D | vchiq_debugfs.c | 149 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/ |
D | input-mt.c | 198 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/ |
D | common.c | 193 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/ |
D | transaction.c | 44 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 …]
|
D | transaction.h | 41 refcount_t use_count; member 118 refcount_t use_count; member
|
/Linux-v4.19/drivers/acpi/acpica/ |
D | utmutex.c | 144 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/ |
D | ps3-vuart.c | 877 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/ |
D | industrialio-trigger.c | 169 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/ |
D | mcp-core.c | 142 if (mcp->use_count++ == 0) in mcp_enable() 161 if (--mcp->use_count == 0) in mcp_disable()
|
/Linux-v4.19/sound/usb/ |
D | endpoint.c | 873 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/ |
D | xilinx-dma.h | 44 unsigned int use_count; member
|