Lines Matching +full:entry +full:- +full:name
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
30 void (*read)(struct snd_info_entry *entry,
32 void (*write)(struct snd_info_entry *entry,
37 int (*open)(struct snd_info_entry *entry,
39 int (*release)(struct snd_info_entry *entry,
41 ssize_t (*read)(struct snd_info_entry *entry, void *file_private_data,
44 ssize_t (*write)(struct snd_info_entry *entry, void *file_private_data,
47 loff_t (*llseek)(struct snd_info_entry *entry,
50 __poll_t (*poll)(struct snd_info_entry *entry,
53 int (*ioctl)(struct snd_info_entry *entry, void *file_private_data,
55 int (*mmap)(struct snd_info_entry *entry, void *file_private_data,
61 const char *name; member
72 void (*private_free)(struct snd_info_entry *entry);
98 * snd_iprintf - printf on the procfs buffer
107 seq_printf((struct seq_file *)(buf)->buffer, fmt, ##args)
115 const char *name,
118 const char *name,
120 void snd_info_free_entry(struct snd_info_entry *entry);
121 int snd_info_store_text(struct snd_info_entry *entry);
122 int snd_info_restore_text(struct snd_info_entry *entry);
129 int snd_info_register(struct snd_info_entry *entry);
132 static inline int snd_card_proc_new(struct snd_card *card, const char *name, in snd_card_proc_new() argument
135 *entryp = snd_info_create_card_entry(card, name, card->proc_root); in snd_card_proc_new()
136 return *entryp ? 0 : -ENOMEM; in snd_card_proc_new()
139 static inline void snd_info_set_text_ops(struct snd_info_entry *entry, in snd_info_set_text_ops() argument
143 entry->private_data = private_data; in snd_info_set_text_ops()
144 entry->c.text.read = read; in snd_info_set_text_ops()
147 int snd_card_rw_proc_new(struct snd_card *card, const char *name,
151 void (*write)(struct snd_info_entry *entry,
167 …fo_entry *snd_info_create_module_entry(struct module *module, const char *name, struct snd_info_en… in snd_info_create_module_entry() argument
168 …info_entry *snd_info_create_card_entry(struct snd_card *card, const char *name, struct snd_info_en… in snd_info_create_card_entry() argument
169 static inline void snd_info_free_entry(struct snd_info_entry *entry) { ; } in snd_info_free_entry() argument
176 static inline int snd_info_register(struct snd_info_entry *entry) { return 0; } in snd_info_register() argument
178 static inline int snd_card_proc_new(struct snd_card *card, const char *name, in snd_card_proc_new() argument
179 struct snd_info_entry **entryp) { return -EINVAL; } in snd_card_proc_new()
180 static inline void snd_info_set_text_ops(struct snd_info_entry *entry __attribute__((unused)), in snd_info_set_text_ops() argument
183 static inline int snd_card_rw_proc_new(struct snd_card *card, const char *name, in snd_card_rw_proc_new() argument
187 void (*write)(struct snd_info_entry *entry, in snd_card_rw_proc_new() argument
197 * snd_card_ro_proc_new - Create a read-only text proc file entry for the card
199 * @name: the file name
203 * This proc file entry will be registered via snd_card_register() call, and
207 snd_card_ro_proc_new(struct snd_card *card, const char *name, in snd_card_ro_proc_new() argument
212 return snd_card_rw_proc_new(card, name, private_data, read, NULL); in snd_card_ro_proc_new()