Lines Matching refs:mfile
499 struct snd_monitor_file *mfile; in snd_card_disconnect() local
512 list_for_each_entry(mfile, &card->files_list, list) { in snd_card_disconnect()
515 mfile->disconnected_f_op = mfile->file->f_op; in snd_card_disconnect()
518 list_add(&mfile->shutdown_list, &shutdown_files); in snd_card_disconnect()
521 mfile->file->f_op = &snd_shutdown_f_ops; in snd_card_disconnect()
522 fops_get(mfile->file->f_op); in snd_card_disconnect()
1081 struct snd_monitor_file *mfile; in snd_card_file_add() local
1083 mfile = kmalloc(sizeof(*mfile), GFP_KERNEL); in snd_card_file_add()
1084 if (mfile == NULL) in snd_card_file_add()
1086 mfile->file = file; in snd_card_file_add()
1087 mfile->disconnected_f_op = NULL; in snd_card_file_add()
1088 INIT_LIST_HEAD(&mfile->shutdown_list); in snd_card_file_add()
1092 kfree(mfile); in snd_card_file_add()
1095 list_add(&mfile->list, &card->files_list); in snd_card_file_add()
1117 struct snd_monitor_file *mfile, *found = NULL; in snd_card_file_remove() local
1120 list_for_each_entry(mfile, &card->files_list, list) { in snd_card_file_remove()
1121 if (mfile->file == file) { in snd_card_file_remove()
1122 list_del(&mfile->list); in snd_card_file_remove()
1124 list_del(&mfile->shutdown_list); in snd_card_file_remove()
1126 if (mfile->disconnected_f_op) in snd_card_file_remove()
1127 fops_put(mfile->disconnected_f_op); in snd_card_file_remove()
1128 found = mfile; in snd_card_file_remove()