Lines Matching refs:entry
81 static void snd_emu10k1_proc_read(struct snd_info_entry *entry, in snd_emu10k1_proc_read() argument
187 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_read()
238 static void snd_emu10k1_proc_spdif_read(struct snd_info_entry *entry, in snd_emu10k1_proc_spdif_read() argument
241 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_spdif_read()
277 static void snd_emu10k1_proc_rates_read(struct snd_info_entry *entry, in snd_emu10k1_proc_rates_read() argument
281 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_rates_read()
292 static void snd_emu10k1_proc_acode_read(struct snd_info_entry *entry, in snd_emu10k1_proc_acode_read() argument
296 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_acode_read()
335 static ssize_t snd_emu10k1_fx8010_read(struct snd_info_entry *entry, in snd_emu10k1_fx8010_read() argument
340 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_fx8010_read()
347 if (!strcmp(entry->name, "fx8010_tram_addr")) { in snd_emu10k1_fx8010_read()
350 } else if (!strcmp(entry->name, "fx8010_tram_data")) { in snd_emu10k1_fx8010_read()
352 } else if (!strcmp(entry->name, "fx8010_code")) { in snd_emu10k1_fx8010_read()
378 static void snd_emu10k1_proc_voices_read(struct snd_info_entry *entry, in snd_emu10k1_proc_voices_read() argument
381 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_voices_read()
399 static void snd_emu_proc_emu1010_reg_read(struct snd_info_entry *entry, in snd_emu_proc_emu1010_reg_read() argument
402 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_emu1010_reg_read()
413 static void snd_emu_proc_io_reg_read(struct snd_info_entry *entry, in snd_emu_proc_io_reg_read() argument
416 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_io_reg_read()
429 static void snd_emu_proc_io_reg_write(struct snd_info_entry *entry, in snd_emu_proc_io_reg_write() argument
432 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_io_reg_write()
482 static void snd_emu_proc_ptr_reg_read(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read() argument
485 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_ptr_reg_read()
506 static void snd_emu_proc_ptr_reg_write(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_write() argument
509 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_ptr_reg_write()
520 static void snd_emu_proc_ptr_reg_write00(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_write00() argument
523 snd_emu_proc_ptr_reg_write(entry, buffer, 0); in snd_emu_proc_ptr_reg_write00()
526 static void snd_emu_proc_ptr_reg_write20(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_write20() argument
529 snd_emu_proc_ptr_reg_write(entry, buffer, 0x20); in snd_emu_proc_ptr_reg_write20()
533 static void snd_emu_proc_ptr_reg_read00a(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read00a() argument
536 snd_emu_proc_ptr_reg_read(entry, buffer, 0, 0, 0x40, 64); in snd_emu_proc_ptr_reg_read00a()
539 static void snd_emu_proc_ptr_reg_read00b(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read00b() argument
542 snd_emu_proc_ptr_reg_read(entry, buffer, 0, 0x40, 0x40, 64); in snd_emu_proc_ptr_reg_read00b()
545 static void snd_emu_proc_ptr_reg_read20a(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read20a() argument
548 snd_emu_proc_ptr_reg_read(entry, buffer, 0x20, 0, 0x40, 4); in snd_emu_proc_ptr_reg_read20a()
551 static void snd_emu_proc_ptr_reg_read20b(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read20b() argument
554 snd_emu_proc_ptr_reg_read(entry, buffer, 0x20, 0x40, 0x40, 4); in snd_emu_proc_ptr_reg_read20b()
557 static void snd_emu_proc_ptr_reg_read20c(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read20c() argument
560 snd_emu_proc_ptr_reg_read(entry, buffer, 0x20, 0x80, 0x20, 4); in snd_emu_proc_ptr_reg_read20c()
570 struct snd_info_entry *entry; in snd_emu10k1_proc_init() local
573 if (! snd_card_proc_new(emu->card, "emu1010_regs", &entry)) in snd_emu10k1_proc_init()
574 snd_info_set_text_ops(entry, emu, snd_emu_proc_emu1010_reg_read); in snd_emu10k1_proc_init()
576 if (! snd_card_proc_new(emu->card, "io_regs", &entry)) { in snd_emu10k1_proc_init()
577 snd_info_set_text_ops(entry, emu, snd_emu_proc_io_reg_read); in snd_emu10k1_proc_init()
578 entry->c.text.write = snd_emu_proc_io_reg_write; in snd_emu10k1_proc_init()
579 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init()
581 if (! snd_card_proc_new(emu->card, "ptr_regs00a", &entry)) { in snd_emu10k1_proc_init()
582 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read00a); in snd_emu10k1_proc_init()
583 entry->c.text.write = snd_emu_proc_ptr_reg_write00; in snd_emu10k1_proc_init()
584 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init()
586 if (! snd_card_proc_new(emu->card, "ptr_regs00b", &entry)) { in snd_emu10k1_proc_init()
587 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read00b); in snd_emu10k1_proc_init()
588 entry->c.text.write = snd_emu_proc_ptr_reg_write00; in snd_emu10k1_proc_init()
589 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init()
591 if (! snd_card_proc_new(emu->card, "ptr_regs20a", &entry)) { in snd_emu10k1_proc_init()
592 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20a); in snd_emu10k1_proc_init()
593 entry->c.text.write = snd_emu_proc_ptr_reg_write20; in snd_emu10k1_proc_init()
594 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init()
596 if (! snd_card_proc_new(emu->card, "ptr_regs20b", &entry)) { in snd_emu10k1_proc_init()
597 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20b); in snd_emu10k1_proc_init()
598 entry->c.text.write = snd_emu_proc_ptr_reg_write20; in snd_emu10k1_proc_init()
599 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init()
601 if (! snd_card_proc_new(emu->card, "ptr_regs20c", &entry)) { in snd_emu10k1_proc_init()
602 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20c); in snd_emu10k1_proc_init()
603 entry->c.text.write = snd_emu_proc_ptr_reg_write20; in snd_emu10k1_proc_init()
604 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init()
608 if (! snd_card_proc_new(emu->card, "emu10k1", &entry)) in snd_emu10k1_proc_init()
609 snd_info_set_text_ops(entry, emu, snd_emu10k1_proc_read); in snd_emu10k1_proc_init()
612 if (! snd_card_proc_new(emu->card, "spdif-in", &entry)) in snd_emu10k1_proc_init()
613 snd_info_set_text_ops(entry, emu, snd_emu10k1_proc_spdif_read); in snd_emu10k1_proc_init()
616 if (! snd_card_proc_new(emu->card, "capture-rates", &entry)) in snd_emu10k1_proc_init()
617 snd_info_set_text_ops(entry, emu, snd_emu10k1_proc_rates_read); in snd_emu10k1_proc_init()
620 if (! snd_card_proc_new(emu->card, "voices", &entry)) in snd_emu10k1_proc_init()
621 snd_info_set_text_ops(entry, emu, snd_emu10k1_proc_voices_read); in snd_emu10k1_proc_init()
623 if (! snd_card_proc_new(emu->card, "fx8010_gpr", &entry)) { in snd_emu10k1_proc_init()
624 entry->content = SNDRV_INFO_CONTENT_DATA; in snd_emu10k1_proc_init()
625 entry->private_data = emu; in snd_emu10k1_proc_init()
626 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init()
627 entry->size = emu->audigy ? A_TOTAL_SIZE_GPR : TOTAL_SIZE_GPR; in snd_emu10k1_proc_init()
628 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; in snd_emu10k1_proc_init()
630 if (! snd_card_proc_new(emu->card, "fx8010_tram_data", &entry)) { in snd_emu10k1_proc_init()
631 entry->content = SNDRV_INFO_CONTENT_DATA; in snd_emu10k1_proc_init()
632 entry->private_data = emu; in snd_emu10k1_proc_init()
633 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init()
634 entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_DATA : TOTAL_SIZE_TANKMEM_DATA ; in snd_emu10k1_proc_init()
635 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; in snd_emu10k1_proc_init()
637 if (! snd_card_proc_new(emu->card, "fx8010_tram_addr", &entry)) { in snd_emu10k1_proc_init()
638 entry->content = SNDRV_INFO_CONTENT_DATA; in snd_emu10k1_proc_init()
639 entry->private_data = emu; in snd_emu10k1_proc_init()
640 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init()
641 entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_ADDR : TOTAL_SIZE_TANKMEM_ADDR ; in snd_emu10k1_proc_init()
642 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; in snd_emu10k1_proc_init()
644 if (! snd_card_proc_new(emu->card, "fx8010_code", &entry)) { in snd_emu10k1_proc_init()
645 entry->content = SNDRV_INFO_CONTENT_DATA; in snd_emu10k1_proc_init()
646 entry->private_data = emu; in snd_emu10k1_proc_init()
647 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init()
648 entry->size = emu->audigy ? A_TOTAL_SIZE_CODE : TOTAL_SIZE_CODE; in snd_emu10k1_proc_init()
649 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; in snd_emu10k1_proc_init()
651 if (! snd_card_proc_new(emu->card, "fx8010_acode", &entry)) { in snd_emu10k1_proc_init()
652 entry->content = SNDRV_INFO_CONTENT_TEXT; in snd_emu10k1_proc_init()
653 entry->private_data = emu; in snd_emu10k1_proc_init()
654 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init()
655 entry->c.text.read = snd_emu10k1_proc_acode_read; in snd_emu10k1_proc_init()