Searched refs:open_count (Results 1 - 25 of 39) sorted by relevance

12

/haiku/src/add-ons/kernel/drivers/video/usb_vision/
H A Dusb_vision.h28 uint32 open_count; member in struct:__anon14
H A Dusb_vision.c119 if(atomic_add(&usb_vision_devices[i]->open_count, 1) == 0){
124 atomic_add(&usb_vision_devices[i]->open_count, -1);
205 atomic_add(&uvd->open_count, -1);
/haiku/src/add-ons/kernel/drivers/graphics/framebuffer/
H A Dframebuffer_private.h21 int32 open_count; member in struct:framebuffer_info
H A Ddevice.cpp59 if (info->open_count == 0) {
69 info->open_count++;
92 if (info->open_count-- == 1) {
/haiku/src/add-ons/kernel/drivers/audio/cmedia/
H A Dcm_private.h84 int32 open_count; member in struct:__anon5
137 int32 open_count; member in struct:__anon6
144 int32 open_count; member in struct:__anon7
H A Dmux.c95 atomic_add(&cards[ix].mux.open_count, 1);
109 atomic_add(&plex->open_count, -1);
121 if (((mux_dev *)cookie)->open_count != 0) {
122 dprintf("cmedia_pci: mux open_count is bad in mux_free()!\n");
H A Dmixer.c106 atomic_add(&cards[ix].mixer.open_count, 1);
120 atomic_add(&it->open_count, -1);
132 if (((mixer_dev *)cookie)->open_count != 0) {
133 dprintf("cmedia_pci: mixer open_count is bad in mixer_free()!\n");
/haiku/src/add-ons/kernel/generic/mpu401/
H A Dmpu401_priv.h53 static int open_count; variable
/haiku/src/add-ons/kernel/drivers/graphics/radeon_hd/
H A Dradeon_hd_private.h32 int32 open_count; member in struct:radeon_info
H A Ddevice.cpp126 if (info->open_count == 0) {
139 info->open_count++;
165 if (info->open_count-- == 1) {
/haiku/src/add-ons/kernel/drivers/graphics/vesa/
H A Ddevice.cpp59 if (info->open_count == 0) {
69 info->open_count++;
92 if (info->open_count-- == 1) {
H A Dvesa_private.h26 int32 open_count; member in struct:vesa_info
/haiku/src/add-ons/kernel/drivers/graphics/intel_extreme/
H A Dintel_extreme_private.h21 int32 open_count; member in struct:intel_info
H A Ddevice.cpp213 if (info->open_count == 0) {
228 info->open_count++;
254 if (info->open_count-- == 1) {
/haiku/src/add-ons/kernel/drivers/disk/usb/usb_disk/
H A Dusb_disk.h42 uint32 open_count; member in struct:disk_device_s
/haiku/src/tests/kits/storage/virtualdrive/
H A Dvirtualdrive.cpp72 int32 open_count; member in struct:device_info
159 info.open_count = 0;
266 // open_count doesn't have to be changed here (virtualdrive_open() will do that for us)
276 if (info.open_count == 0)
390 gDeviceInfos[devIndex].open_count++;
408 gDeviceInfos[devIndex].open_count--;
409 if (gDeviceInfos[devIndex].open_count == 0 && !gDeviceInfos[devIndex].registered) {
/haiku/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/
H A Dh2generic.h65 int32 open_count; /* number of clients of the device */ member in struct:bt_usb_dev
/haiku/src/tools/fs_shell/
H A Dfd.cpp65 descriptor->open_count = 0;
116 fssh_atomic_add(&descriptor->open_count, 1);
152 && previous - 1 == descriptor->open_count
164 descriptor->open_count = -1;
182 if (fssh_atomic_add(&descriptor->open_count, -1) == 1) {
338 fssh_atomic_add(&context->fds[oldfd]->open_count, 1);
H A Dfd.h50 int32_t open_count; member in struct:FSShell::file_descriptor
/haiku/src/add-ons/kernel/generic/tty/
H A Dmodule.cpp52 kprintf(" open_count: %" B_PRId32 "\n", tty.open_count);
H A Dtty.cpp51 window_size,pgrp_id}}. Moreover when held guarantees that tty::open_count
503 if (fTarget->open_count > 0) {
659 tty_notify_if_available(fTTY, (otherTTY->open_count > 0 ? otherTTY : NULL),
685 if (fCookie->other_tty->open_count == 0
938 if (otherTTY && otherTTY->open_count > 0)
1092 if (target->open_count <= 0)
1197 if (target->open_count <= 0)
1354 tty->open_count = 0;
1429 tty->open_count++;
1458 if (cookie->other_tty->open_count >
[all...]
/haiku/headers/private/kernel/fs/
H A Dfd.h52 int32 open_count; member in struct:file_descriptor
/haiku/src/add-ons/kernel/network/devices/tunnel/
H A Dtunnel.cpp48 int32 open_count; member in struct:tunnel_device
99 if (atomic_or(&device->open_count, 1) != 0)
130 atomic_and(&cookie->device->open_count, 0);
372 if (atomic_get(&device->open_count) != 0)
/haiku/src/system/kernel/fs/
H A Dfd.cpp86 descriptor->open_count = 0;
141 atomic_add(&descriptor->open_count, 1);
178 && previous - 1 == descriptor->open_count
209 if (atomic_add(&descriptor->open_count, -1) == 1) {
293 atomic_add(&descriptor->open_count, 1);
411 atomic_add(&context->fds[oldfd]->open_count, 1);
570 atomic_add(&descriptor->open_count, 1);
613 atomic_add(&descriptor->open_count, -1);
/haiku/src/add-ons/kernel/drivers/pty/
H A Ddriver.cpp274 if (gMasterTTYs[index] == NULL || gMasterTTYs[index]->open_count == 0
283 if (gSlaveTTYs[index]->open_count == 0) {
301 if (gSlaveTTYs[index]->open_count == 0) {

Completed in 321 milliseconds

12