Lines Matching refs:vtpm_new_dev
542 struct vtpm_proxy_new_dev *vtpm_new_dev) in vtpm_proxy_create_device() argument
548 if (vtpm_new_dev->flags & ~VTPM_PROXY_FLAGS_ALL) in vtpm_proxy_create_device()
555 proxy_dev->flags = vtpm_new_dev->flags; in vtpm_proxy_create_device()
580 vtpm_new_dev->fd = fd; in vtpm_proxy_create_device()
581 vtpm_new_dev->major = MAJOR(proxy_dev->chip->dev.devt); in vtpm_proxy_create_device()
582 vtpm_new_dev->minor = MINOR(proxy_dev->chip->dev.devt); in vtpm_proxy_create_device()
583 vtpm_new_dev->tpm_num = proxy_dev->chip->dev_num; in vtpm_proxy_create_device()
637 struct vtpm_proxy_new_dev vtpm_new_dev; in vtpmx_ioc_new_dev() local
645 if (copy_from_user(&vtpm_new_dev, vtpm_new_dev_p, in vtpmx_ioc_new_dev()
646 sizeof(vtpm_new_dev))) in vtpmx_ioc_new_dev()
649 vtpm_file = vtpm_proxy_create_device(&vtpm_new_dev); in vtpmx_ioc_new_dev()
653 if (copy_to_user(vtpm_new_dev_p, &vtpm_new_dev, in vtpmx_ioc_new_dev()
654 sizeof(vtpm_new_dev))) { in vtpmx_ioc_new_dev()
655 put_unused_fd(vtpm_new_dev.fd); in vtpmx_ioc_new_dev()
660 fd_install(vtpm_new_dev.fd, vtpm_file); in vtpmx_ioc_new_dev()