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

/freebsd-10.2-release/sys/cam/scsi/
H A Dscsi_pass.c79 int open_count; member in struct:pass_softc
152 KASSERT(softc->open_count >= 0, ("Negative open count %d",
153 softc->open_count));
160 for (i = 0; i < softc->open_count; i++)
163 softc->open_count = 0;
486 softc->open_count++;
507 softc->open_count--;
H A Dscsi_sg.c101 int open_count; member in struct:sg_softc
183 KASSERT(softc->open_count >= 0, ("Negative open count %d",
184 softc->open_count));
191 for (i = 0; i < softc->open_count; i++)
194 softc->open_count = 0;
448 softc->open_count++;
469 softc->open_count--;
H A Dscsi_enc_internal.h151 int open_count; member in struct:enc_softc
H A Dscsi_enc.c130 for (i = 0; i < enc->open_count; i++)
133 enc->open_count = 0;
290 softc->open_count++;
311 enc->open_count--;
H A Dscsi_ch.c153 int open_count; member in struct:ch_softc
260 KASSERT(softc->open_count >= 0, ("Negative open count %d",
261 softc->open_count));
268 for (i = 0; i < softc->open_count; i++)
271 softc->open_count = 0;
494 softc->open_count++;
515 softc->open_count--;
H A Dscsi_sa.c330 int open_count; member in struct:sa_softc
668 softc->open_count++;
700 softc->open_count++;
716 softc->open_count++;
747 softc->open_count--;
756 softc->open_count--;
861 softc->open_count--;
2164 for (i = 0; i < softc->open_count; i++)
2167 softc->open_count = 0;
/freebsd-10.2-release/lib/libc/gen/
H A Dsem_new.c67 int open_count; member in struct:sem_nameinfo
188 ni->open_count++;
234 ni->open_count = 1;
273 if (--ni->open_count > 0) {
/freebsd-10.2-release/sys/dev/drm2/
H A Ddrm_fops.c142 if (!dev->open_count++)
163 dev->open_count--;
344 DRM_DEBUG("open_count = %d\n", dev->open_count);
353 DRM_DEBUG("pid = %d, device = 0x%lx, open_count = %d\n",
356 dev->open_count);
459 if (!--dev->open_count) {
H A DdrmP.h944 struct mtx count_lock; /**< For inuse, drm_device::open_count, drm_device::buf_use */
950 int open_count; /**< Outstanding files open */ member in struct:drm_device
/freebsd-10.2-release/sys/dev/drm/
H A Ddrm_drv.c619 DRM_DEBUG("open_count = %d\n", dev->open_count);
627 if (!dev->open_count++)
641 DRM_DEBUG("open_count = %d\n", dev->open_count);
652 DRM_DEBUG("pid = %d, device = 0x%lx, open_count = %d\n",
653 DRM_CURRENTPID, (long)dev->device, dev->open_count);
714 if (--dev->open_count == 0) {
H A DdrmP.h645 int open_count; /* Outstanding files open */ member in struct:drm_device
/freebsd-10.2-release/sys/cam/ctl/
H A Dctl_private.h461 int open_count; member in struct:ctl_softc
H A Dctl.c1109 softc->open_count = 0;
/freebsd-10.2-release/sys/dev/drm2/radeon/
H A Dradeon_device.c977 can_switch = (dev->open_count == 0);

Completed in 113 milliseconds