Lines Matching defs:file
13 * Device file system interface to the TPM
111 void tpm_common_open(struct file *file, struct tpm_chip *chip,
123 file->private_data = priv;
126 ssize_t tpm_common_read(struct file *file, char __user *buf,
129 struct file_priv *priv = file->private_data;
166 ssize_t tpm_common_write(struct file *file, const char __user *buf,
169 struct file_priv *priv = file->private_data;
208 if (file->f_flags & O_NONBLOCK) {
238 __poll_t tpm_common_poll(struct file *file, poll_table *wait)
240 struct file_priv *priv = file->private_data;
243 poll_wait(file, &priv->async_wait, wait);
261 * Called on file close
263 void tpm_common_release(struct file *file, struct file_priv *priv)
268 file->private_data = NULL;