Lines Matching defs:entry
26 static int snd_opl4_mem_proc_open(struct snd_info_entry *entry,
29 struct snd_opl4 *opl4 = entry->private_data;
41 static int snd_opl4_mem_proc_release(struct snd_info_entry *entry,
44 struct snd_opl4 *opl4 = entry->private_data;
52 static ssize_t snd_opl4_mem_proc_read(struct snd_info_entry *entry,
57 struct snd_opl4 *opl4 = entry->private_data;
72 static ssize_t snd_opl4_mem_proc_write(struct snd_info_entry *entry,
78 struct snd_opl4 *opl4 = entry->private_data;
102 struct snd_info_entry *entry;
104 entry = snd_info_create_card_entry(opl4->card, "opl4-mem", opl4->card->proc_root);
105 if (entry) {
108 entry->mode |= S_IWUSR;
109 entry->size = 4 * 1024 * 1024;
112 entry->size = 1 * 1024 * 1024;
114 entry->content = SNDRV_INFO_CONTENT_DATA;
115 entry->c.ops = &snd_opl4_mem_proc_ops;
116 entry->module = THIS_MODULE;
117 entry->private_data = opl4;
118 if (snd_info_register(entry) < 0) {
119 snd_info_free_entry(entry);
120 entry = NULL;
123 opl4->proc_entry = entry;