Lines Matching refs:vtpm_new_dev
533 struct vtpm_proxy_new_dev *vtpm_new_dev) in vtpm_proxy_create_device() argument
539 if (vtpm_new_dev->flags & ~VTPM_PROXY_FLAGS_ALL) in vtpm_proxy_create_device()
546 proxy_dev->flags = vtpm_new_dev->flags; in vtpm_proxy_create_device()
571 vtpm_new_dev->fd = fd; in vtpm_proxy_create_device()
572 vtpm_new_dev->major = MAJOR(proxy_dev->chip->dev.devt); in vtpm_proxy_create_device()
573 vtpm_new_dev->minor = MINOR(proxy_dev->chip->dev.devt); in vtpm_proxy_create_device()
574 vtpm_new_dev->tpm_num = proxy_dev->chip->dev_num; in vtpm_proxy_create_device()
628 struct vtpm_proxy_new_dev vtpm_new_dev; in vtpmx_ioc_new_dev() local
636 if (copy_from_user(&vtpm_new_dev, vtpm_new_dev_p, in vtpmx_ioc_new_dev()
637 sizeof(vtpm_new_dev))) in vtpmx_ioc_new_dev()
640 vtpm_file = vtpm_proxy_create_device(&vtpm_new_dev); in vtpmx_ioc_new_dev()
644 if (copy_to_user(vtpm_new_dev_p, &vtpm_new_dev, in vtpmx_ioc_new_dev()
645 sizeof(vtpm_new_dev))) { in vtpmx_ioc_new_dev()
646 put_unused_fd(vtpm_new_dev.fd); in vtpmx_ioc_new_dev()
651 fd_install(vtpm_new_dev.fd, vtpm_file); in vtpmx_ioc_new_dev()