/openbmc/linux/net/ieee802154/6lowpan/ |
H A D | core.c | 56 static int open_count; variable 71 if (!open_count) in lowpan_open() 73 open_count++; in lowpan_open() 79 open_count--; in lowpan_stop() 80 if (!open_count) in lowpan_stop()
|
/openbmc/linux/drivers/usb/misc/ |
H A 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 …]
|
H A D | ldusb.c | 157 int open_count; /* number of times this port has been opened */ member 327 if (dev->open_count) { in ld_usb_open() 331 dev->open_count = 1; in ld_usb_open() 354 dev->open_count = 0; in ld_usb_open() 384 if (dev->open_count != 1) { in ld_usb_release() 400 dev->open_count = 0; in ld_usb_release() 773 if (!dev->open_count) { in ld_usb_disconnect()
|
H A 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()
|
/openbmc/linux/drivers/fpga/ |
H A D | dfl.h | 327 int open_count; member 341 if (pdata->open_count) in dfl_feature_dev_use_begin() 346 pdata->open_count++; in dfl_feature_dev_use_begin() 356 if (WARN_ON(pdata->open_count <= 0)) in dfl_feature_dev_use_end() 359 pdata->open_count--; in dfl_feature_dev_use_end() 365 return pdata->open_count; in dfl_feature_dev_use_count()
|
/openbmc/linux/drivers/input/serio/ |
H A 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()
|
/openbmc/linux/drivers/vfio/ |
H A D | vfio_main.c | 134 unsigned int open_count = 0; in vfio_device_set_open_count() local 139 open_count += cur->open_count; in vfio_device_set_open_count() 140 return open_count; in vfio_device_set_open_count() 441 return !WARN_ON_ONCE(!READ_ONCE(device->open_count)); in vfio_assert_device_open() 521 if (device->open_count != 0 && !df->group) in vfio_df_open() 524 device->open_count++; in vfio_df_open() 525 if (device->open_count == 1) { in vfio_df_open() 528 device->open_count--; in vfio_df_open() 541 if (device->open_count == 1) in vfio_df_close() 543 device->open_count--; in vfio_df_close()
|
H A D | group.c | 186 if (device->open_count == 0) in vfio_df_group_open() 190 if (df->iommufd && vfio_device_is_noiommu(device) && device->open_count == 0) { in vfio_df_group_open() 208 if (df->iommufd && device->open_count == 1) { in vfio_df_group_open() 228 if (device->open_count == 0) in vfio_df_group_open() 246 if (device->open_count == 0) in vfio_df_group_close()
|
/openbmc/linux/sound/drivers/ |
H A D | mts64.c | 53 int open_count; member 673 if (mts->open_count == 0) { in snd_mts64_rawmidi_open() 681 ++(mts->open_count); in snd_mts64_rawmidi_open() 691 --(mts->open_count); in snd_mts64_rawmidi_close() 692 if (mts->open_count == 0) { in snd_mts64_rawmidi_close() 701 } else if (mts->open_count < 0) in snd_mts64_rawmidi_close() 702 mts->open_count = 0; in snd_mts64_rawmidi_close()
|
/openbmc/linux/drivers/char/ipmi/ |
H A D | bt-bmc.c | 67 static atomic_t open_count = ATOMIC_INIT(0); variable 153 if (atomic_inc_return(&open_count) == 1) { in bt_bmc_open() 158 atomic_dec(&open_count); in bt_bmc_open() 314 atomic_dec(&open_count); in bt_bmc_release()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_file.c | 255 atomic_read(&dev->open_count)); in drm_file_free() 424 if (!atomic_fetch_inc(&dev->open_count)) in drm_open() 447 atomic_dec(&dev->open_count); in drm_open() 492 drm_dbg_core(dev, "open_count = %d\n", atomic_read(&dev->open_count)); in drm_release() 496 if (atomic_dec_and_test(&dev->open_count)) in drm_release() 563 if (atomic_dec_and_mutex_lock(&dev->open_count, &drm_global_mutex)) { in drm_release_noglobal()
|
/openbmc/linux/arch/s390/include/uapi/asm/ |
H A D | dasd.h | 37 unsigned int open_count; member 109 unsigned int open_count; member
|
/openbmc/linux/drivers/accel/ |
H A D | drm_accel.c | 145 atomic_fetch_inc(&dev->open_count); in accel_open() 157 atomic_dec(&dev->open_count); in accel_open()
|
/openbmc/linux/include/video/ |
H A D | mmp_disp.h | 155 int open_count; member 226 int open_count; member
|
/openbmc/qemu/hw/9pfs/ |
H A D | 9p-synth.h | 37 int open_count; member
|
H A D | 9p-synth.c | 186 node->open_count++; in synth_opendir() 196 node->open_count--; in synth_closedir() 281 node->open_count++; in synth_open() 299 node->open_count--; in synth_close()
|
/openbmc/linux/drivers/input/touchscreen/ |
H A 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()
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_switcheroo.c | 51 return i915 && HAS_DISPLAY(i915) && atomic_read(&i915->drm.open_count) == 0; in i915_switcheroo_can_switch()
|
H A D | i915_vma_types.h | 213 atomic_t open_count; member
|
/openbmc/linux/net/mac802154/ |
H A D | iface.c | 191 if (!local->open_count) { in mac802154_slave_open() 202 local->open_count++; in mac802154_slave_open() 312 local->open_count--; in mac802154_slave_close() 316 if (!local->open_count) in mac802154_slave_close()
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | fb_defio.c | 307 fbdefio->open_count++; in fb_deferred_io_open() 329 if (!--fbdefio->open_count) in fb_deferred_io_release()
|
/openbmc/linux/include/drm/ |
H A D | drm_device.h | 174 atomic_t open_count; member
|
/openbmc/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_vga.c | 73 return atomic_read(&dev->open_count) == 0; in nouveau_switcheroo_can_switch()
|
/openbmc/linux/net/mac80211/ |
H A D | iface.c | 596 local->open_count--; in ieee80211_do_stop() 687 if (local->open_count == 0) in ieee80211_do_stop() 732 if (local->open_count == 0) { in ieee80211_do_stop() 743 if (local->monitors == local->open_count) in ieee80211_do_stop() 1326 if (local->open_count == 0) { in ieee80211_do_open() 1375 } else if (local->monitors == 0 && local->open_count == 0) { in ieee80211_do_open() 1481 local->open_count++; in ieee80211_do_open() 1494 if (!local->open_count) in ieee80211_do_open() 2320 WARN(local->open_count, "%s: open count remains %d\n", in ieee80211_remove_interfaces() 2321 wiphy_name(local->hw.wiphy), local->open_count); in ieee80211_remove_interfaces()
|
/openbmc/linux/include/uapi/linux/ |
H A D | dm-ioctl.h | 126 __s32 open_count; /* out */ member
|