Home
last modified time | relevance | path

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

1234

/linux/drivers/soc/pxa/
H 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/drivers/gpu/ipu-v3/
H 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()
H 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()
H A Dipu-vdi.c13 int use_count; member
159 if (!vdi->use_count) in ipu_vdi_enable()
162 vdi->use_count++; in ipu_vdi_enable()
176 if (vdi->use_count) { in ipu_vdi_disable()
177 if (!--vdi->use_count) in ipu_vdi_disable()
H 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()
H 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()
H A Dipu-ic.c159 int use_count; member
546 if (!priv->use_count) in ipu_ic_enable()
549 priv->use_count++; in ipu_ic_enable()
567 priv->use_count--; in ipu_ic_disable()
569 if (!priv->use_count) in ipu_ic_disable()
572 if (priv->use_count < 0) in ipu_ic_disable()
573 priv->use_count = 0; in ipu_ic_disable()
/linux/sound/soc/renesas/
H 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/include/trace/events/
H 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/drivers/media/v4l2-core/
H A Dv4l2-mc.c436 * To achieve this use the entity use_count field to track the number of users.
437 * For entities corresponding to video device nodes the use_count field stores
439 * use_count field stores the total number of users of all video device nodes
466 use += entity->use_count; in pipeline_pm_use_count()
491 if (entity->use_count == 0 && change > 0 && subdev != NULL) { in pipeline_pm_power_one()
497 entity->use_count += change; in pipeline_pm_power_one()
498 WARN_ON(entity->use_count < 0); in pipeline_pm_power_one()
500 if (entity->use_count == 0 && change < 0 && subdev != NULL) in pipeline_pm_power_one()
553 entity->use_count += change; in v4l2_pipeline_pm_use()
554 WARN_ON(entity->use_count < in v4l2_pipeline_pm_use()
[all...]
/linux/drivers/misc/sgi-xp/
H 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/drivers/gpio/
H A Dgpio-spear-spics.c38 * @use_count: use count of a spi controller cs lines
49 unsigned long use_count; member
87 if (!spics->use_count++) { in spics_request()
102 if (!--spics->use_count) { in spics_free()
/linux/fs/btrfs/
H A Dtransaction.c141 WARN_ON(refcount_read(&transaction->use_count) == 0); in btrfs_put_transaction()
142 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction()
292 refcount_inc(&cur_trans->use_count); in join_transaction()
353 refcount_set(&cur_trans->use_count, 2); in join_transaction()
528 refcount_inc(&cur_trans->use_count); in wait_current_trans()
617 refcount_inc(&h->use_count); in start_transaction()
618 WARN_ON(refcount_read(&h->use_count) > 2); in start_transaction()
721 refcount_set(&h->use_count, 1); in start_transaction()
937 refcount_inc(&commit->use_count); in wait_for_commit()
957 refcount_inc(&cur_trans->use_count); in btrfs_wait_for_commit()
[all...]
H A Dtransaction.h67 refcount_t use_count; member
154 refcount_t use_count; member
/linux/drivers/gpu/drm/panfrost/
H A Dpanfrost_gpu.c98 if (drm_WARN_ON(pfdev->ddev, atomic_read(&pfdev->cycle_counter.use_count) != 0)) in panfrost_gpu_soft_reset()
99 atomic_set(&pfdev->cycle_counter.use_count, 0); in panfrost_gpu_soft_reset()
354 if (atomic_inc_not_zero(&pfdev->cycle_counter.use_count)) in panfrost_cycle_counter_get()
358 if (atomic_inc_return(&pfdev->cycle_counter.use_count) == 1) in panfrost_cycle_counter_get()
365 if (atomic_add_unless(&pfdev->cycle_counter.use_count, -1, 1)) in panfrost_cycle_counter_put()
369 if (atomic_dec_return(&pfdev->cycle_counter.use_count) == 0) in panfrost_cycle_counter_put()
/linux/drivers/input/
H A Dinput-mt.c188 * @use_count: report number of active contacts as finger count
191 * ABS_PRESSURE. Touchpad finger count is emulated if use_count is true.
196 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()
329 bool use_count = false; in input_mt_sync_frame() local
340 use_count = true; in input_mt_sync_frame()
342 input_mt_report_pointer_emulation(dev, use_count); in input_mt_sync_frame()
/linux/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_du_group.c219 if (rgrp->use_count) in rcar_du_group_get()
225 rgrp->use_count++; in rcar_du_group_get()
236 --rgrp->use_count; in rcar_du_group_put()
H A Drcar_du_group.h27 * @use_count: number of users of the group (rcar_du_group_(get|put))
43 unsigned int use_count; member
/linux/drivers/ps3/
H 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/drivers/scsi/elx/efct/
H 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/drivers/acpi/acpica/
H 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/drivers/mfd/
H A Dmcp-core.c138 if (mcp->use_count++ == 0) in mcp_enable()
157 if (--mcp->use_count == 0) in mcp_disable()
/linux/sound/soc/sof/
H A Dsof-audio.c57 /* only free when use_count is 0 */ in sof_widget_free_unlocked()
58 if (--swidget->use_count) in sof_widget_free_unlocked()
150 if (++swidget->use_count > 1) in sof_widget_setup_unlocked()
156 * are set up. The use_count for the scheduler widget is incremented for every in sof_widget_setup_unlocked()
218 /* widget use_count will be decremented by sof_widget_free() */ in sof_widget_setup_unlocked()
236 swidget->use_count--; in sof_widget_setup_unlocked()
371 * with a route that might need to be set up. Check the use_count of the widget in sof_setup_pipeline_connections()
381 if (!swidget->use_count) { in sof_setup_pipeline_connections()
418 if (!swidget || !swidget->prepared || swidget->use_count > 0) in sof_unprepare_widgets_in_path()
488 swidget && swidget->prepared && swidget->use_count in sof_prepare_widgets_in_path()
[all...]
/linux/drivers/video/backlight/
H A Dbacklight.c90 if (fb_on && (!prev_fb_on || !bd->use_count)) { in backlight_notify_blank()
91 if (!bd->use_count++) { in backlight_notify_blank()
95 } else if (!fb_on && prev_fb_on && bd->use_count) { in backlight_notify_blank()
96 if (!(--bd->use_count)) { in backlight_notify_blank()
/linux/arch/powerpc/platforms/pseries/
H A Dhotplug-cpu.c633 unsigned int use_count = 0; in pseries_cpuhp_cache_use_count() local
642 use_count++; in pseries_cpuhp_cache_use_count()
649 use_count++; in pseries_cpuhp_cache_use_count()
652 return use_count; in pseries_cpuhp_cache_use_count()

1234