Lines Matching refs:zcdndev

167 	struct zcdn_device *zcdndev = to_zcdn_dev(dev);  in ioctlmask_show()  local
174 for (i = 0; i < sizeof(zcdndev->perms.ioctlm) / sizeof(long); i++) in ioctlmask_show()
177 "%016lx", zcdndev->perms.ioctlm[i]); in ioctlmask_show()
192 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in ioctlmask_store() local
194 rc = ap_parse_mask_str(buf, zcdndev->perms.ioctlm, in ioctlmask_store()
209 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in apmask_show() local
216 for (i = 0; i < sizeof(zcdndev->perms.apm) / sizeof(long); i++) in apmask_show()
219 "%016lx", zcdndev->perms.apm[i]); in apmask_show()
234 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in apmask_store() local
236 rc = ap_parse_mask_str(buf, zcdndev->perms.apm, in apmask_store()
251 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in aqmask_show() local
258 for (i = 0; i < sizeof(zcdndev->perms.aqm) / sizeof(long); i++) in aqmask_show()
261 "%016lx", zcdndev->perms.aqm[i]); in aqmask_show()
276 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in aqmask_store() local
278 rc = ap_parse_mask_str(buf, zcdndev->perms.aqm, in aqmask_store()
293 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in admask_show() local
300 for (i = 0; i < sizeof(zcdndev->perms.adm) / sizeof(long); i++) in admask_show()
303 "%016lx", zcdndev->perms.adm[i]); in admask_show()
318 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in admask_store() local
320 rc = ap_parse_mask_str(buf, zcdndev->perms.adm, in admask_store()
385 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in zcdn_device_release() local
390 kfree(zcdndev); in zcdn_device_release()
398 struct zcdn_device *zcdndev; in zcdn_create() local
405 zcdndev = find_zcdndev_by_name(name); in zcdn_create()
406 if (zcdndev) { in zcdn_create()
407 put_device(&zcdndev->device); in zcdn_create()
416 zcdndev = find_zcdndev_by_devt(devt); in zcdn_create()
417 if (zcdndev) in zcdn_create()
418 put_device(&zcdndev->device); in zcdn_create()
428 zcdndev = kzalloc(sizeof(*zcdndev), GFP_KERNEL); in zcdn_create()
429 if (!zcdndev) { in zcdn_create()
433 zcdndev->device.release = zcdn_device_release; in zcdn_create()
434 zcdndev->device.class = zcrypt_class; in zcdn_create()
435 zcdndev->device.devt = devt; in zcdn_create()
436 zcdndev->device.groups = zcdn_dev_attr_groups; in zcdn_create()
443 if (dev_set_name(&zcdndev->device, nodename)) { in zcdn_create()
447 rc = device_register(&zcdndev->device); in zcdn_create()
449 put_device(&zcdndev->device); in zcdn_create()
464 struct zcdn_device *zcdndev; in zcdn_destroy() local
470 zcdndev = find_zcdndev_by_name(name); in zcdn_destroy()
471 if (!zcdndev) { in zcdn_destroy()
480 put_device(&zcdndev->device); in zcdn_destroy()
481 device_unregister(&zcdndev->device); in zcdn_destroy()
492 struct zcdn_device *zcdndev; in zcdn_destroy_all() local
497 zcdndev = find_zcdndev_by_devt(devt); in zcdn_destroy_all()
498 if (zcdndev) { in zcdn_destroy_all()
499 put_device(&zcdndev->device); in zcdn_destroy_all()
500 device_unregister(&zcdndev->device); in zcdn_destroy_all()
541 struct zcdn_device *zcdndev; in zcrypt_open() local
545 zcdndev = find_zcdndev_by_devt(filp->f_inode->i_rdev); in zcrypt_open()
548 if (zcdndev) in zcrypt_open()
549 perms = &zcdndev->perms; in zcrypt_open()
567 struct zcdn_device *zcdndev; in zcrypt_release() local
570 zcdndev = find_zcdndev_by_devt(filp->f_inode->i_rdev); in zcrypt_release()
572 if (zcdndev) { in zcrypt_release()
574 put_device(&zcdndev->device); in zcrypt_release()
575 put_device(&zcdndev->device); in zcrypt_release()