Lines Matching refs:use_count
1164 cdi->use_count++; in cdrom_open()
1188 cdi->name, cdi->use_count); in cdrom_open()
1197 cdi->use_count--; in cdrom_open()
1265 if (cdi->use_count > 0) in cdrom_release()
1266 cdi->use_count--; in cdrom_release()
1268 if (cdi->use_count == 0) { in cdrom_release()
1285 if (CDROM_CAN(CDC_RAM) && !cdi->use_count && cdi->for_data) in cdrom_release()
1289 if (cdi->use_count == 0) { /* last process that closes dev*/ in cdrom_release()
1440 if (cdi->use_count > 1 || cdi->keeplocked) { in cdrom_select_disc()
2334 if (cdi->use_count != 1 || cdi->keeplocked) in cdrom_ioctl_eject()
2498 if (cdi->use_count != 1 && !arg && !capable(CAP_SYS_ADMIN)) in cdrom_ioctl_lock_door()