Lines Matching refs:file
26 struct file *file; member
398 static loff_t snd_disconnect_llseek(struct file *file, loff_t offset, int orig) in snd_disconnect_llseek() argument
403 static ssize_t snd_disconnect_read(struct file *file, char __user *buf, in snd_disconnect_read() argument
409 static ssize_t snd_disconnect_write(struct file *file, const char __user *buf, in snd_disconnect_write() argument
415 static int snd_disconnect_release(struct inode *inode, struct file *file) in snd_disconnect_release() argument
421 if (_df->file == file) { in snd_disconnect_release()
430 if ((file->f_flags & FASYNC) && df->disconnected_f_op->fasync) in snd_disconnect_release()
431 df->disconnected_f_op->fasync(-1, file, 0); in snd_disconnect_release()
432 return df->disconnected_f_op->release(inode, file); in snd_disconnect_release()
435 panic("%s(%p, %p) failed!", __func__, inode, file); in snd_disconnect_release()
438 static __poll_t snd_disconnect_poll(struct file * file, poll_table * wait) in snd_disconnect_poll() argument
443 static long snd_disconnect_ioctl(struct file *file, in snd_disconnect_ioctl() argument
449 static int snd_disconnect_mmap(struct file *file, struct vm_area_struct *vma) in snd_disconnect_mmap() argument
454 static int snd_disconnect_fasync(int fd, struct file *file, int on) in snd_disconnect_fasync() argument
504 mfile->disconnected_f_op = mfile->file->f_op; in snd_card_disconnect()
510 mfile->file->f_op = &snd_shutdown_f_ops; in snd_card_disconnect()
511 fops_get(mfile->file->f_op); in snd_card_disconnect()
1062 int snd_card_file_add(struct snd_card *card, struct file *file) in snd_card_file_add() argument
1069 mfile->file = file; in snd_card_file_add()
1098 int snd_card_file_remove(struct snd_card *card, struct file *file) in snd_card_file_remove() argument
1104 if (mfile->file == file) { in snd_card_file_remove()
1119 dev_err(card->dev, "card file remove problem (%p)\n", file); in snd_card_file_remove()