Lines Matching refs:vtpm_new_dev
534 struct vtpm_proxy_new_dev *vtpm_new_dev) in vtpm_proxy_create_device() argument
540 if (vtpm_new_dev->flags & ~VTPM_PROXY_FLAGS_ALL) in vtpm_proxy_create_device()
547 proxy_dev->flags = vtpm_new_dev->flags; in vtpm_proxy_create_device()
572 vtpm_new_dev->fd = fd; in vtpm_proxy_create_device()
573 vtpm_new_dev->major = MAJOR(proxy_dev->chip->dev.devt); in vtpm_proxy_create_device()
574 vtpm_new_dev->minor = MINOR(proxy_dev->chip->dev.devt); in vtpm_proxy_create_device()
575 vtpm_new_dev->tpm_num = proxy_dev->chip->dev_num; in vtpm_proxy_create_device()
629 struct vtpm_proxy_new_dev vtpm_new_dev; in vtpmx_ioc_new_dev() local
637 if (copy_from_user(&vtpm_new_dev, vtpm_new_dev_p, in vtpmx_ioc_new_dev()
638 sizeof(vtpm_new_dev))) in vtpmx_ioc_new_dev()
641 vtpm_file = vtpm_proxy_create_device(&vtpm_new_dev); in vtpmx_ioc_new_dev()
645 if (copy_to_user(vtpm_new_dev_p, &vtpm_new_dev, in vtpmx_ioc_new_dev()
646 sizeof(vtpm_new_dev))) { in vtpmx_ioc_new_dev()
647 put_unused_fd(vtpm_new_dev.fd); in vtpmx_ioc_new_dev()
652 fd_install(vtpm_new_dev.fd, vtpm_file); in vtpmx_ioc_new_dev()