Lines Matching defs:open_count
85 * adutux_mutex: A Static lock to cover open_count. It would also cover
88 * It covers all of adu_device, except the open_count
100 int open_count; /* number of times this port has been opened */
298 if (dev->open_count) {
303 ++dev->open_count;
304 dbg(2,"%s : open count %d", __func__, dev->open_count);
343 --dev->open_count;
344 dbg(2," %s : open count %d", __func__, dev->open_count);
345 if (dev->open_count <= 0) {
347 dev->open_count = 0;
375 if (dev->open_count <= 0) {
384 if (!dev->open_count) /* ... and we're the last user */
866 dbg(2," %s : open count %d", __func__, dev->open_count);
867 if (!dev->open_count)