/kernel/linux/linux-5.10/net/ieee802154/6lowpan/ |
D | core.c | 55 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/ |
D | adutux.c | 77 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 …]
|
D | ldusb.c | 158 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()
|
D | legousbtower.c | 192 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/ |
D | dfl.h | 281 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/ |
D | goldfish_audio.c | 101 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/ |
D | olpc_apsp.c | 68 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/ |
D | drm_file.c | 260 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/ |
D | mts64.c | 54 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/ |
D | bt-bmc.c | 70 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/ |
D | dasd.h | 37 unsigned int open_count; member 107 unsigned int open_count; member
|
/kernel/linux/linux-5.10/include/video/ |
D | mmp_disp.h | 155 int open_count; member 226 int open_count; member
|
/kernel/linux/linux-5.10/drivers/staging/kpc2000/kpc_dma/ |
D | fileops.c | 253 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/ |
D | i915_switcheroo.c | 46 return i915 && atomic_read(&i915->drm.open_count) == 0; in i915_switcheroo_can_switch()
|
D | i915_vma_types.h | 200 atomic_t open_count; member
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
D | wacom_w8001.c | 103 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/ |
D | iface.c | 205 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/ |
D | drm_device.h | 168 atomic_t open_count; member
|
/kernel/linux/linux-5.10/net/mac80211/ |
D | iface.c | 507 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/ |
D | dm-core.h | 57 atomic_t open_count; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_vga.c | 75 return atomic_read(&dev->open_count) == 0; in nouveau_switcheroo_can_switch()
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | dm-ioctl.h | 32 __s32 open_count; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | dm-ioctl.h | 126 __s32 open_count; /* out */ member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | dm-ioctl.h | 20 __s32 open_count; member
|
/kernel/linux/linux-5.10/drivers/s390/block/ |
D | dasd_ioctl.c | 491 dasd_info->open_count = atomic_read(&block->open_count); in __dasd_ioctl_information() 493 dasd_info->open_count++; in __dasd_ioctl_information()
|