Lines Matching refs:open_count
76 /* open_count = 0 means device online but not in use */
77 atomic_set(&device->open_count, -1);
1835 atomic_inc(&device->open_count);
1865 atomic_dec(&device->open_count);
1875 atomic_dec(&device->open_count);
2085 int max_count, open_count;
2097 * The open_count is increased for every opener, that includes
2102 open_count = (int) atomic_read(&device->open_count);
2103 if (open_count > max_count) {
2104 if (open_count > 0)
2107 open_count);