Home
last modified time | relevance | path

Searched refs:open_count (Results 1 – 25 of 64) sorted by relevance

123

/kernel/linux/linux-5.10/net/ieee802154/6lowpan/
Dcore.c55 static int open_count; variable
70 if (!open_count) in lowpan_open()
72 open_count++; in lowpan_open()
78 open_count--; in lowpan_stop()
79 if (!open_count) in lowpan_stop()
/kernel/linux/linux-5.10/drivers/usb/misc/
Dadutux.c77 int open_count; /* number of times this port has been opened */ member
255 if (dev->open_count) { in adu_open()
260 ++dev->open_count; in adu_open()
262 dev->open_count); in adu_open()
298 --dev->open_count; in adu_release_internal()
300 dev->open_count); in adu_release_internal()
301 if (dev->open_count <= 0) { in adu_release_internal()
303 dev->open_count = 0; in adu_release_internal()
325 if (dev->open_count <= 0) { in adu_release()
334 if (!dev->open_count) /* ... and we're the last user */ in adu_release()
[all …]
Dldusb.c158 int open_count; /* number of times this port has been opened */ member
328 if (dev->open_count) { in ld_usb_open()
332 dev->open_count = 1; in ld_usb_open()
355 dev->open_count = 0; in ld_usb_open()
385 if (dev->open_count != 1) { in ld_usb_release()
401 dev->open_count = 0; in ld_usb_release()
772 if (!dev->open_count) { in ld_usb_disconnect()
Dlegousbtower.c192 int open_count; /* number of times this port has been opened */ member
338 if (dev->open_count) { in tower_open()
382 dev->open_count = 1; in tower_open()
426 dev->open_count = 0; in tower_release()
860 if (!dev->open_count) { in tower_disconnect()
/kernel/linux/linux-5.10/drivers/fpga/
Ddfl.h281 int open_count; member
295 if (pdata->open_count) in dfl_feature_dev_use_begin()
300 pdata->open_count++; in dfl_feature_dev_use_begin()
310 if (WARN_ON(pdata->open_count <= 0)) in dfl_feature_dev_use_end()
313 pdata->open_count--; in dfl_feature_dev_use_end()
319 return pdata->open_count; in dfl_feature_dev_use_count()
/kernel/linux/linux-5.10/drivers/staging/goldfish/
Dgoldfish_audio.c101 static atomic_t open_count = ATOMIC_INIT(0); variable
211 if (atomic_inc_return(&open_count) == 1) { in goldfish_audio_open()
219 atomic_dec(&open_count); in goldfish_audio_open()
225 atomic_dec(&open_count); in goldfish_audio_release()
/kernel/linux/linux-5.10/drivers/input/serio/
Dolpc_apsp.c68 int open_count; member
141 if (priv->open_count++ == 0) { in olpc_apsp_open()
161 if (--priv->open_count == 0) { in olpc_apsp_close()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_file.c260 atomic_read(&dev->open_count)); in drm_file_free()
425 if (!atomic_fetch_inc(&dev->open_count)) in drm_open()
448 atomic_dec(&dev->open_count); in drm_open()
493 DRM_DEBUG("open_count = %d\n", atomic_read(&dev->open_count)); in drm_release()
497 if (atomic_dec_and_test(&dev->open_count)) in drm_release()
532 if (atomic_dec_and_mutex_lock(&dev->open_count, &drm_global_mutex)) { in drm_release_noglobal()
/kernel/linux/linux-5.10/sound/drivers/
Dmts64.c54 int open_count; member
674 if (mts->open_count == 0) { in snd_mts64_rawmidi_open()
682 ++(mts->open_count); in snd_mts64_rawmidi_open()
692 --(mts->open_count); in snd_mts64_rawmidi_close()
693 if (mts->open_count == 0) { in snd_mts64_rawmidi_close()
702 } else if (mts->open_count < 0) in snd_mts64_rawmidi_close()
703 mts->open_count = 0; in snd_mts64_rawmidi_close()
/kernel/linux/linux-5.10/drivers/char/ipmi/
Dbt-bmc.c70 static atomic_t open_count = ATOMIC_INIT(0); variable
171 if (atomic_inc_return(&open_count) == 1) { in bt_bmc_open()
176 atomic_dec(&open_count); in bt_bmc_open()
332 atomic_dec(&open_count); in bt_bmc_release()
/kernel/linux/linux-5.10/arch/s390/include/uapi/asm/
Ddasd.h37 unsigned int open_count; member
107 unsigned int open_count; member
/kernel/linux/linux-5.10/include/video/
Dmmp_disp.h155 int open_count; member
226 int open_count; member
/kernel/linux/linux-5.10/drivers/staging/kpc2000/kpc_dma/
Dfileops.c253 if (!atomic_dec_and_test(&ldev->open_count)) { in kpc_dma_open()
254 atomic_inc(&ldev->open_count); in kpc_dma_open()
297 atomic_inc(&priv->ldev->open_count); /* release the device */ in kpc_dma_close()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_switcheroo.c46 return i915 && atomic_read(&i915->drm.open_count) == 0; in i915_switcheroo_can_switch()
Di915_vma_types.h200 atomic_t open_count; member
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dwacom_w8001.c103 int open_count; member
387 if (w8001->open_count++ == 0) { in w8001_open()
390 w8001->open_count--; in w8001_open()
403 if (--w8001->open_count == 0) in w8001_close()
/kernel/linux/linux-5.10/net/mac802154/
Diface.c205 if (!local->open_count) { in mac802154_slave_open()
215 local->open_count++; in mac802154_slave_open()
320 local->open_count--; in mac802154_slave_close()
324 if (!local->open_count) in mac802154_slave_close()
/kernel/linux/linux-5.10/include/drm/
Ddrm_device.h168 atomic_t open_count; member
/kernel/linux/linux-5.10/net/mac80211/
Diface.c507 local->open_count--; in ieee80211_do_stop()
584 if (local->open_count == 0) in ieee80211_do_stop()
629 if (local->open_count == 0) { in ieee80211_do_stop()
640 if (local->monitors == local->open_count) in ieee80211_do_stop()
1084 if (local->open_count == 0) { in ieee80211_do_open()
1132 } else if (local->monitors == 0 && local->open_count == 0) { in ieee80211_do_open()
1262 local->open_count++; in ieee80211_do_open()
1302 if (!local->open_count) in ieee80211_do_open()
2081 WARN(local->open_count, "%s: open count remains %d\n", in ieee80211_remove_interfaces()
2082 wiphy_name(local->hw.wiphy), local->open_count); in ieee80211_remove_interfaces()
/kernel/linux/linux-5.10/drivers/md/
Ddm-core.h57 atomic_t open_count; member
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_vga.c75 return atomic_read(&dev->open_count) == 0; in nouveau_switcheroo_can_switch()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Ddm-ioctl.h32 __s32 open_count; member
/kernel/linux/linux-5.10/include/uapi/linux/
Ddm-ioctl.h126 __s32 open_count; /* out */ member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Ddm-ioctl.h20 __s32 open_count; member
/kernel/linux/linux-5.10/drivers/s390/block/
Ddasd_ioctl.c491 dasd_info->open_count = atomic_read(&block->open_count); in __dasd_ioctl_information()
493 dasd_info->open_count++; in __dasd_ioctl_information()

123