Lines Matching refs:zcdndev

166 	struct zcdn_device *zcdndev = to_zcdn_dev(dev);  in ioctlmask_show()  local
173 for (i = 0; i < sizeof(zcdndev->perms.ioctlm) / sizeof(long); i++) in ioctlmask_show()
176 "%016lx", zcdndev->perms.ioctlm[i]); in ioctlmask_show()
191 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in ioctlmask_store() local
193 rc = ap_parse_mask_str(buf, zcdndev->perms.ioctlm, in ioctlmask_store()
208 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in apmask_show() local
215 for (i = 0; i < sizeof(zcdndev->perms.apm) / sizeof(long); i++) in apmask_show()
218 "%016lx", zcdndev->perms.apm[i]); in apmask_show()
233 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in apmask_store() local
235 rc = ap_parse_mask_str(buf, zcdndev->perms.apm, in apmask_store()
250 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in aqmask_show() local
257 for (i = 0; i < sizeof(zcdndev->perms.aqm) / sizeof(long); i++) in aqmask_show()
260 "%016lx", zcdndev->perms.aqm[i]); in aqmask_show()
275 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in aqmask_store() local
277 rc = ap_parse_mask_str(buf, zcdndev->perms.aqm, in aqmask_store()
341 struct zcdn_device *zcdndev = to_zcdn_dev(dev); in zcdn_device_release() local
346 kfree(zcdndev); in zcdn_device_release()
354 struct zcdn_device *zcdndev; in zcdn_create() local
361 zcdndev = find_zcdndev_by_name(name); in zcdn_create()
362 if (zcdndev) { in zcdn_create()
363 put_device(&zcdndev->device); in zcdn_create()
372 zcdndev = find_zcdndev_by_devt(devt); in zcdn_create()
373 if (zcdndev) in zcdn_create()
374 put_device(&zcdndev->device); in zcdn_create()
384 zcdndev = kzalloc(sizeof(*zcdndev), GFP_KERNEL); in zcdn_create()
385 if (!zcdndev) { in zcdn_create()
389 zcdndev->device.release = zcdn_device_release; in zcdn_create()
390 zcdndev->device.class = zcrypt_class; in zcdn_create()
391 zcdndev->device.devt = devt; in zcdn_create()
392 zcdndev->device.groups = zcdn_dev_attr_groups; in zcdn_create()
399 if (dev_set_name(&zcdndev->device, nodename)) { in zcdn_create()
403 rc = device_register(&zcdndev->device); in zcdn_create()
405 put_device(&zcdndev->device); in zcdn_create()
420 struct zcdn_device *zcdndev; in zcdn_destroy() local
426 zcdndev = find_zcdndev_by_name(name); in zcdn_destroy()
427 if (!zcdndev) { in zcdn_destroy()
436 put_device(&zcdndev->device); in zcdn_destroy()
437 device_unregister(&zcdndev->device); in zcdn_destroy()
448 struct zcdn_device *zcdndev; in zcdn_destroy_all() local
453 zcdndev = find_zcdndev_by_devt(devt); in zcdn_destroy_all()
454 if (zcdndev) { in zcdn_destroy_all()
455 put_device(&zcdndev->device); in zcdn_destroy_all()
456 device_unregister(&zcdndev->device); in zcdn_destroy_all()
497 struct zcdn_device *zcdndev; in zcrypt_open() local
501 zcdndev = find_zcdndev_by_devt(filp->f_inode->i_rdev); in zcrypt_open()
504 if (zcdndev) in zcrypt_open()
505 perms = &zcdndev->perms; in zcrypt_open()
523 struct zcdn_device *zcdndev; in zcrypt_release() local
526 zcdndev = find_zcdndev_by_devt(filp->f_inode->i_rdev); in zcrypt_release()
528 if (zcdndev) { in zcrypt_release()
530 put_device(&zcdndev->device); in zcrypt_release()
531 put_device(&zcdndev->device); in zcrypt_release()