Home
last modified time | relevance | path

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

123

/Linux-v4.19/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()
/Linux-v4.19/drivers/usb/misc/
Dadutux.c77 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 …]
Dlegousbtower.c193 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()
Dldusb.c157 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/
Dgoldfish_audio.c110 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/
Dolpc_apsp.c77 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/
Ddrm_file.c223 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/
Dmts64.c68 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/
Ddasd.h37 unsigned int open_count; member
107 unsigned int open_count; member
/Linux-v4.19/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()
/Linux-v4.19/include/video/
Dmmp_disp.h168 int open_count; member
239 int open_count; member
/Linux-v4.19/drivers/input/touchscreen/
Dwacom_w8001.c101 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/
Ddrm_device.h68 int open_count; /**< Outstanding files open, protected by drm_global_mutex. */ member
/Linux-v4.19/net/mac80211/
Diface.c557 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()
Dpm.c23 if (!local->open_count) in __ieee80211_suspend()
/Linux-v4.19/drivers/md/
Ddm-core.h54 atomic_t open_count; member
Ddm-thin-metadata.c217 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/
Diface.c213 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()
Dieee802154_i.h40 int open_count; member
Dcfg.c52 if (!local->open_count) in ieee802154_suspend()
72 if (!local->open_count) in ieee802154_resume()
/Linux-v4.19/drivers/s390/block/
Ddasd_ioctl.c448 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/
Dnouveau_vga.c76 return dev->open_count == 0; in nouveau_switcheroo_can_switch()
/Linux-v4.19/include/uapi/linux/
Ddm-ioctl.h126 __s32 open_count; /* out */ member
/Linux-v4.19/sound/aoa/codecs/
Donyx.c57 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/
Dnv_type.h150 u32 open_count; member

123