Home
last modified time | relevance | path

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

123

/linux/drivers/gpu/ipu-v3/
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-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-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()
/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/platform/raspberrypi/vchiq-interface/
H A Dvchiq_debugfs.c23 int use_count; in debugfs_usecount_show() local
25 use_count = vchiq_instance_get_use_count(instance); in debugfs_usecount_show()
26 seq_printf(f, "%d\n", use_count); in debugfs_usecount_show()
H A Dvchiq_arm.c1160 int use_count = 0, i; in vchiq_instance_get_use_count() local
1166 use_count += service->service_use_count; in vchiq_instance_get_use_count()
1168 return use_count; in vchiq_instance_get_use_count()
1229 int use_count; member
1280 service_data[found].use_count = service_ptr->service_use_count; in vchiq_dump_service_use_state()
1298 service_data[i].clientid, service_data[i].use_count, in vchiq_dump_service_use_state()
1299 service_data[i].use_count ? nz : ""); in vchiq_dump_service_use_state()
/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.c49 unsigned long use_count; member
87 if (!spics->use_count++) { in spics_request()
102 if (!--spics->use_count) { in spics_free()
/linux/drivers/iio/
H A Dindustrialio-trigger.c184 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()
230 if (!atomic_read(&trig->use_count)) { in iio_trigger_poll_nested()
231 atomic_set(&trig->use_count, CONFIG_IIO_CONSUMERS_PER_TRIGGER); in iio_trigger_poll_nested()
245 if (atomic_dec_and_test(&trig->use_count) && trig->ops && in iio_trigger_notify_done()
/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.h43 unsigned int use_count; member
/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()
H A Dutinit.c110 acpi_gbl_mutex_info[i].use_count = 0; in acpi_ut_init_globals()
/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/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()
/linux/drivers/gpib/common/
H A Dgpib_os.c547 if (board->use_count == 0) { in ibopen()
559 board->use_count++; in ibopen()
599 if (priv->got_module && board->use_count) { in ibclose()
601 --board->use_count; in ibclose()
630 board->use_count, in ibioctl()
655 board->use_count++; in ibioctl()
845 if (board->use_count) { in board_type_ioctl()
846 for (i = 0; i < board->use_count; ++i) in board_type_ioctl()
853 for (i = 0; i < board->use_count; ++i) { in board_type_ioctl()
855 board->use_count = i; in board_type_ioctl()
[all …]
/linux/drivers/media/platform/xilinx/
H A Dxilinx-dma.h41 unsigned int use_count; member
/linux/include/linux/mfd/
H A Dmcp.h18 int use_count; member
/linux/drivers/video/fbdev/
H A Dsh_mobile_lcdcfb.h66 int use_count; member
/linux/drivers/iommu/
H A Dtegra-smmu.c60 unsigned int use_count; member
337 WARN_ON_ONCE(as->use_count); in tegra_smmu_domain_free()
428 if (as->use_count > 0) { in tegra_smmu_as_prepare()
429 as->use_count++; in tegra_smmu_as_prepare()
459 as->use_count++; in tegra_smmu_as_prepare()
478 if (--as->use_count > 0) { in tegra_smmu_as_unprepare()
/linux/mm/
H A Dkmemleak.c143 atomic_t use_count; member
469 return atomic_inc_not_zero(&object->use_count); in get_object()
554 if (!atomic_dec_and_test(&object->use_count)) in put_object()
676 atomic_set(&object->use_count, 1); in __alloc_object()
819 WARN_ON(atomic_read(&object->use_count) < 1); in __delete_object()
1714 if (atomic_read(&object->use_count) > 1) { in kmemleak_scan()
1716 atomic_read(&object->use_count)); in kmemleak_scan()
/linux/include/linux/iio/
H A Dtrigger.h69 atomic_t use_count; member
/linux/drivers/regulator/
H A Dcore.c806 return sprintf(buf, "%d\n", rdev->use_count); in num_users_show()
1667 rdev->use_count++; in set_machine_constraints()
2285 if (rdev->use_count) { in regulator_resolve_supply()
2428 rdev->use_count = 1; in _regulator_get_common()
2442 rdev->use_count = 0; in _regulator_get_common()
3044 if (rdev->use_count == 0 && rdev->supply) { in _regulator_enable()
3061 if (rdev->use_count == 0) { in _regulator_enable()
3088 rdev->use_count++; in _regulator_enable()
3096 if (rdev->use_count == 0 && rdev->supply) in _regulator_enable()
3172 if (rdev->use_count == 1 && in _regulator_disable()
[all …]

123