Lines Matching refs:mixdev
454 static int mixdev_open_devices(struct mousedev *mixdev) in mixdev_open_devices() argument
458 error = mutex_lock_interruptible(&mixdev->mutex); in mixdev_open_devices()
462 if (!mixdev->open++) { in mixdev_open_devices()
475 mutex_unlock(&mixdev->mutex); in mixdev_open_devices()
484 static void mixdev_close_devices(struct mousedev *mixdev) in mixdev_close_devices() argument
486 mutex_lock(&mixdev->mutex); in mixdev_close_devices()
488 if (!--mixdev->open) { in mixdev_close_devices()
499 mutex_unlock(&mixdev->mutex); in mixdev_close_devices()
824 static int mousedev_reserve_minor(bool mixdev) in mousedev_reserve_minor() argument
828 if (mixdev) { in mousedev_reserve_minor()
844 bool mixdev) in mousedev_create() argument
850 minor = mousedev_reserve_minor(mixdev); in mousedev_create()
867 mixdev ? SINGLE_DEPTH_NESTING : 0); in mousedev_create()
870 if (mixdev) { in mousedev_create()
899 if (!mixdev) { in mousedev_create()
915 if (!mixdev) in mousedev_create()