Home
last modified time | relevance | path

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

12

/linux-4.19.296/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-4.19.296/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-4.19.296/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-4.19.296/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()
Dgigaset.h391 int use_count; member
/linux-4.19.296/fs/btrfs/
Dtransaction.c47 WARN_ON(refcount_read(&transaction->use_count) == 0); in btrfs_put_transaction()
48 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction()
194 refcount_inc(&cur_trans->use_count); in join_transaction()
245 refcount_set(&cur_trans->use_count, 2); in join_transaction()
420 refcount_inc(&cur_trans->use_count); in wait_current_trans()
479 refcount_inc(&h->use_count); in start_transaction()
480 WARN_ON(refcount_read(&h->use_count) > 2); in start_transaction()
552 refcount_set(&h->use_count, 1); in start_transaction()
738 refcount_inc(&cur_trans->use_count); in btrfs_wait_for_commit()
767 refcount_inc(&cur_trans->use_count); in btrfs_wait_for_commit()
[all …]
Dtransaction.h41 refcount_t use_count; member
120 refcount_t use_count; member
Dordered-data.c500 refcount_inc(&trans->use_count); in btrfs_remove_ordered_extent()
/linux-4.19.296/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-4.19.296/include/linux/mfd/
Dmcp.h21 int use_count; member
/linux-4.19.296/include/media/
Dv4l2-clk.h32 atomic_t use_count; member
Dsoc_camera.h51 int use_count; member
Dmedia-entity.h285 int use_count; member
/linux-4.19.296/include/linux/input/
Dmt.h107 void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count);
/linux-4.19.296/drivers/s390/block/
Ddcssblk.c70 atomic_t use_count; member
354 if (atomic_read(&dev_info->use_count)) { in dcssblk_shared_store()
461 if (atomic_read(&dev_info->use_count) == 0) { in dcssblk_save_store()
776 if (atomic_read(&dev_info->use_count) != 0) { in dcssblk_remove_store()
818 atomic_inc(&dev_info->use_count); in dcssblk_open()
836 if (atomic_dec_and_test(&dev_info->use_count) in dcssblk_release()
/linux-4.19.296/include/linux/iio/
Dtrigger.h71 atomic_t use_count; member
/linux-4.19.296/include/sound/
Drawmidi.h99 int use_count; /* use counter (for output) */ member
/linux-4.19.296/include/linux/
Dbacklight.h113 int use_count; member
Dpxa2xx_ssp.h221 int use_count; member
Dcdrom.h54 int use_count; /* number of times device opened */ member
Dusb.h1554 atomic_t use_count; /* concurrent submissions counter */ member
/linux-4.19.296/drivers/regulator/
Dcore.c591 return sprintf(buf, "%d\n", rdev->use_count); in num_users_show()
1222 rdev->use_count++; in set_machine_constraints()
1685 if (rdev->use_count) { in regulator_resolve_supply()
1797 rdev->use_count = 1; in _regulator_get()
1799 rdev->use_count = 0; in _regulator_get()
2293 if (rdev->use_count == 0) { in _regulator_enable()
2314 rdev->use_count++; in _regulator_enable()
2393 if (WARN(rdev->use_count <= 0, in _regulator_disable()
2398 if (rdev->use_count == 1 && in _regulator_disable()
2421 rdev->use_count = 0; in _regulator_disable()
[all …]
/linux-4.19.296/drivers/cdrom/
Dcdrom.c1164 cdi->use_count++; in cdrom_open()
1188 cdi->name, cdi->use_count); in cdrom_open()
1197 cdi->use_count--; in cdrom_open()
1265 if (cdi->use_count > 0) in cdrom_release()
1266 cdi->use_count--; in cdrom_release()
1268 if (cdi->use_count == 0) { in cdrom_release()
1285 if (CDROM_CAN(CDC_RAM) && !cdi->use_count && cdi->for_data) in cdrom_release()
1289 if (cdi->use_count == 0) { /* last process that closes dev*/ in cdrom_release()
1440 if (cdi->use_count > 1 || cdi->keeplocked) { in cdrom_select_disc()
2334 if (cdi->use_count != 1 || cdi->keeplocked) in cdrom_ioctl_eject()
[all …]
/linux-4.19.296/include/linux/regulator/
Ddriver.h441 u32 use_count; member

12