Lines Matching defs:entry
343 static void snd_ac97_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer)
345 struct snd_ac97 *ac97 = entry->private_data;
378 static void snd_ac97_proc_regs_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer)
380 struct snd_ac97 *ac97 = entry->private_data;
405 static void snd_ac97_proc_regs_read(struct snd_info_entry *entry,
408 struct snd_ac97 *ac97 = entry->private_data;
431 struct snd_info_entry *entry;
439 if ((entry = snd_info_create_card_entry(ac97->bus->card, name, ac97->bus->proc)) != NULL) {
440 snd_info_set_text_ops(entry, ac97, snd_ac97_proc_read);
441 if (snd_info_register(entry) < 0) {
442 snd_info_free_entry(entry);
443 entry = NULL;
446 ac97->proc = entry;
448 if ((entry = snd_info_create_card_entry(ac97->bus->card, name, ac97->bus->proc)) != NULL) {
449 snd_info_set_text_ops(entry, ac97, snd_ac97_proc_regs_read);
451 entry->mode |= S_IWUSR;
452 entry->c.text.write = snd_ac97_proc_regs_write;
454 if (snd_info_register(entry) < 0) {
455 snd_info_free_entry(entry);
456 entry = NULL;
459 ac97->proc_regs = entry;
472 struct snd_info_entry *entry;
476 if ((entry = snd_info_create_card_entry(bus->card, name, bus->card->proc_root)) != NULL) {
477 entry->mode = S_IFDIR | S_IRUGO | S_IXUGO;
478 if (snd_info_register(entry) < 0) {
479 snd_info_free_entry(entry);
480 entry = NULL;
483 bus->proc = entry;