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