/Linux-v4.19/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()
|
/Linux-v4.19/drivers/usb/misc/ |
D | adutux.c | 77 int open_count; /* number of times this port has been opened */ member 252 if (dev->open_count) { in adu_open() 257 ++dev->open_count; in adu_open() 259 dev->open_count); in adu_open() 295 --dev->open_count; in adu_release_internal() 297 dev->open_count); in adu_release_internal() 298 if (dev->open_count <= 0) { in adu_release_internal() 300 dev->open_count = 0; in adu_release_internal() 322 if (dev->open_count <= 0) { in adu_release() 331 if (!dev->open_count) /* ... and we're the last user */ in adu_release() [all …]
|
D | legousbtower.c | 193 int open_count; /* number of times this port has been opened */ member 353 if (dev->open_count) { in tower_open() 358 dev->open_count = 1; in tower_open() 399 dev->open_count = 0; in tower_open() 435 if (dev->open_count != 1) { in tower_release() 455 dev->open_count = 0; in tower_release() 826 dev->open_count = 0; in tower_probe() 957 if (!dev->open_count) { in tower_disconnect()
|
D | ldusb.c | 157 int open_count; /* number of times this port has been opened */ member 331 if (dev->open_count) { in ld_usb_open() 335 dev->open_count = 1; in ld_usb_open() 358 dev->open_count = 0; in ld_usb_open() 391 if (dev->open_count != 1) { in ld_usb_release() 407 dev->open_count = 0; in ld_usb_release() 770 if (!dev->open_count) { in ld_usb_disconnect()
|
/Linux-v4.19/drivers/staging/goldfish/ |
D | goldfish_audio.c | 110 static atomic_t open_count = ATOMIC_INIT(0); variable 220 if (atomic_inc_return(&open_count) == 1) { in goldfish_audio_open() 228 atomic_dec(&open_count); in goldfish_audio_open() 234 atomic_dec(&open_count); in goldfish_audio_release()
|
/Linux-v4.19/drivers/input/serio/ |
D | olpc_apsp.c | 77 int open_count; member 149 if (priv->open_count++ == 0) { in olpc_apsp_open() 163 if (--priv->open_count == 0) { in olpc_apsp_close()
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_file.c | 223 dev->open_count); in drm_file_free() 310 if (!dev->open_count++) in drm_open() 327 dev->open_count--; in drm_open() 474 DRM_DEBUG("open_count = %d\n", dev->open_count); in drm_release() 482 if (!--dev->open_count) { in drm_release()
|
/Linux-v4.19/sound/drivers/ |
D | mts64.c | 68 int open_count; member 688 if (mts->open_count == 0) { in snd_mts64_rawmidi_open() 696 ++(mts->open_count); in snd_mts64_rawmidi_open() 706 --(mts->open_count); in snd_mts64_rawmidi_close() 707 if (mts->open_count == 0) { in snd_mts64_rawmidi_close() 716 } else if (mts->open_count < 0) in snd_mts64_rawmidi_close() 717 mts->open_count = 0; in snd_mts64_rawmidi_close()
|
/Linux-v4.19/arch/s390/include/uapi/asm/ |
D | dasd.h | 37 unsigned int open_count; member 107 unsigned int open_count; member
|
/Linux-v4.19/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()
|
/Linux-v4.19/include/video/ |
D | mmp_disp.h | 168 int open_count; member 239 int open_count; member
|
/Linux-v4.19/drivers/input/touchscreen/ |
D | wacom_w8001.c | 101 int open_count; member 385 if (w8001->open_count++ == 0) { in w8001_open() 388 w8001->open_count--; in w8001_open() 401 if (--w8001->open_count == 0) in w8001_close()
|
/Linux-v4.19/include/drm/ |
D | drm_device.h | 68 int open_count; /**< Outstanding files open, protected by drm_global_mutex. */ member
|
/Linux-v4.19/net/mac80211/ |
D | iface.c | 557 if (local->open_count == 0) { in ieee80211_do_open() 604 } else if (local->monitors == 0 && local->open_count == 0) { in ieee80211_do_open() 725 local->open_count++; in ieee80211_do_open() 765 if (!local->open_count) in ieee80211_do_open() 938 local->open_count--; in ieee80211_do_stop() 1015 if (local->open_count == 0) in ieee80211_do_stop() 1058 if (local->open_count == 0) { in ieee80211_do_stop() 1069 if (local->monitors == local->open_count) in ieee80211_do_stop() 1949 WARN(local->open_count, "%s: open count remains %d\n", in ieee80211_remove_interfaces() 1950 wiphy_name(local->hw.wiphy), local->open_count); in ieee80211_remove_interfaces()
|
D | pm.c | 23 if (!local->open_count) in __ieee80211_suspend()
|
/Linux-v4.19/drivers/md/ |
D | dm-core.h | 54 atomic_t open_count; member
|
D | dm-thin-metadata.c | 217 int open_count; member 771 if (td->open_count) in __write_changed_details() 885 if (td->open_count) in dm_pool_metadata_close() 939 td2->open_count++; in __open_device() 969 (*td)->open_count = 1; in __open_device() 984 --td->open_count; in __close_device() 1145 if (td->open_count > 1) { in __delete_device()
|
/Linux-v4.19/net/mac802154/ |
D | iface.c | 213 if (!local->open_count) { in mac802154_slave_open() 223 local->open_count++; in mac802154_slave_open() 328 local->open_count--; in mac802154_slave_close() 332 if (!local->open_count) in mac802154_slave_close()
|
D | ieee802154_i.h | 40 int open_count; member
|
D | cfg.c | 52 if (!local->open_count) in ieee802154_suspend() 72 if (!local->open_count) in ieee802154_resume()
|
/Linux-v4.19/drivers/s390/block/ |
D | dasd_ioctl.c | 448 dasd_info->open_count = atomic_read(&block->open_count); in dasd_ioctl_information() 450 dasd_info->open_count++; in dasd_ioctl_information()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/ |
D | nouveau_vga.c | 76 return dev->open_count == 0; in nouveau_switcheroo_can_switch()
|
/Linux-v4.19/include/uapi/linux/ |
D | dm-ioctl.h | 126 __s32 open_count; /* out */ member
|
/Linux-v4.19/sound/aoa/codecs/ |
D | onyx.c | 57 int open_count; member 750 onyx->open_count++; in onyx_open() 762 onyx->open_count--; in onyx_close() 763 if (!onyx->open_count) in onyx_close()
|
/Linux-v4.19/drivers/video/fbdev/nvidia/ |
D | nv_type.h | 150 u32 open_count; member
|