Lines Matching defs:file
13 * Device file system interface to the TPM
110 void tpm_common_open(struct file *file, struct tpm_chip *chip,
122 file->private_data = priv;
125 ssize_t tpm_common_read(struct file *file, char __user *buf,
128 struct file_priv *priv = file->private_data;
165 ssize_t tpm_common_write(struct file *file, const char __user *buf,
168 struct file_priv *priv = file->private_data;
207 if (file->f_flags & O_NONBLOCK) {
237 __poll_t tpm_common_poll(struct file *file, poll_table *wait)
239 struct file_priv *priv = file->private_data;
242 poll_wait(file, &priv->async_wait, wait);
260 * Called on file close
262 void tpm_common_release(struct file *file, struct file_priv *priv)
267 file->private_data = NULL;