Lines Matching refs:entry
80 static void snd_emu10k1_proc_read(struct snd_info_entry *entry, in snd_emu10k1_proc_read() argument
186 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_read()
237 static void snd_emu10k1_proc_spdif_read(struct snd_info_entry *entry, in snd_emu10k1_proc_spdif_read() argument
240 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_spdif_read()
276 static void snd_emu10k1_proc_rates_read(struct snd_info_entry *entry, in snd_emu10k1_proc_rates_read() argument
280 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_rates_read()
290 static void snd_emu10k1_proc_acode_read(struct snd_info_entry *entry, in snd_emu10k1_proc_acode_read() argument
294 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_acode_read()
333 static ssize_t snd_emu10k1_fx8010_read(struct snd_info_entry *entry, in snd_emu10k1_fx8010_read() argument
338 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_fx8010_read()
345 if (!strcmp(entry->name, "fx8010_tram_addr")) { in snd_emu10k1_fx8010_read()
348 } else if (!strcmp(entry->name, "fx8010_tram_data")) { in snd_emu10k1_fx8010_read()
350 } else if (!strcmp(entry->name, "fx8010_code")) { in snd_emu10k1_fx8010_read()
376 static void snd_emu10k1_proc_voices_read(struct snd_info_entry *entry, in snd_emu10k1_proc_voices_read() argument
379 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_voices_read()
397 static void snd_emu_proc_emu1010_reg_read(struct snd_info_entry *entry, in snd_emu_proc_emu1010_reg_read() argument
400 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_emu1010_reg_read()
411 static void snd_emu_proc_io_reg_read(struct snd_info_entry *entry, in snd_emu_proc_io_reg_read() argument
414 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_io_reg_read()
427 static void snd_emu_proc_io_reg_write(struct snd_info_entry *entry, in snd_emu_proc_io_reg_write() argument
430 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_io_reg_write()
480 static void snd_emu_proc_ptr_reg_read(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read() argument
483 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_ptr_reg_read()
504 static void snd_emu_proc_ptr_reg_write(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_write() argument
507 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_ptr_reg_write()
518 static void snd_emu_proc_ptr_reg_write00(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_write00() argument
521 snd_emu_proc_ptr_reg_write(entry, buffer, 0); in snd_emu_proc_ptr_reg_write00()
524 static void snd_emu_proc_ptr_reg_write20(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_write20() argument
527 snd_emu_proc_ptr_reg_write(entry, buffer, 0x20); in snd_emu_proc_ptr_reg_write20()
531 static void snd_emu_proc_ptr_reg_read00a(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read00a() argument
534 snd_emu_proc_ptr_reg_read(entry, buffer, 0, 0, 0x40, 64); in snd_emu_proc_ptr_reg_read00a()
537 static void snd_emu_proc_ptr_reg_read00b(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read00b() argument
540 snd_emu_proc_ptr_reg_read(entry, buffer, 0, 0x40, 0x40, 64); in snd_emu_proc_ptr_reg_read00b()
543 static void snd_emu_proc_ptr_reg_read20a(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read20a() argument
546 snd_emu_proc_ptr_reg_read(entry, buffer, 0x20, 0, 0x40, 4); in snd_emu_proc_ptr_reg_read20a()
549 static void snd_emu_proc_ptr_reg_read20b(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read20b() argument
552 snd_emu_proc_ptr_reg_read(entry, buffer, 0x20, 0x40, 0x40, 4); in snd_emu_proc_ptr_reg_read20b()
555 static void snd_emu_proc_ptr_reg_read20c(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read20c() argument
558 snd_emu_proc_ptr_reg_read(entry, buffer, 0x20, 0x80, 0x20, 4); in snd_emu_proc_ptr_reg_read20c()
568 struct snd_info_entry *entry; in snd_emu10k1_proc_init() local
571 if (! snd_card_proc_new(emu->card, "emu1010_regs", &entry)) in snd_emu10k1_proc_init()
572 snd_info_set_text_ops(entry, emu, snd_emu_proc_emu1010_reg_read); in snd_emu10k1_proc_init()
574 if (! snd_card_proc_new(emu->card, "io_regs", &entry)) { in snd_emu10k1_proc_init()
575 snd_info_set_text_ops(entry, emu, snd_emu_proc_io_reg_read); in snd_emu10k1_proc_init()
576 entry->c.text.write = snd_emu_proc_io_reg_write; in snd_emu10k1_proc_init()
577 entry->mode |= 0200; in snd_emu10k1_proc_init()
579 if (! snd_card_proc_new(emu->card, "ptr_regs00a", &entry)) { in snd_emu10k1_proc_init()
580 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read00a); in snd_emu10k1_proc_init()
581 entry->c.text.write = snd_emu_proc_ptr_reg_write00; in snd_emu10k1_proc_init()
582 entry->mode |= 0200; in snd_emu10k1_proc_init()
584 if (! snd_card_proc_new(emu->card, "ptr_regs00b", &entry)) { in snd_emu10k1_proc_init()
585 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read00b); in snd_emu10k1_proc_init()
586 entry->c.text.write = snd_emu_proc_ptr_reg_write00; in snd_emu10k1_proc_init()
587 entry->mode |= 0200; in snd_emu10k1_proc_init()
589 if (! snd_card_proc_new(emu->card, "ptr_regs20a", &entry)) { in snd_emu10k1_proc_init()
590 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20a); in snd_emu10k1_proc_init()
591 entry->c.text.write = snd_emu_proc_ptr_reg_write20; in snd_emu10k1_proc_init()
592 entry->mode |= 0200; in snd_emu10k1_proc_init()
594 if (! snd_card_proc_new(emu->card, "ptr_regs20b", &entry)) { in snd_emu10k1_proc_init()
595 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20b); in snd_emu10k1_proc_init()
596 entry->c.text.write = snd_emu_proc_ptr_reg_write20; in snd_emu10k1_proc_init()
597 entry->mode |= 0200; in snd_emu10k1_proc_init()
599 if (! snd_card_proc_new(emu->card, "ptr_regs20c", &entry)) { in snd_emu10k1_proc_init()
600 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20c); in snd_emu10k1_proc_init()
601 entry->c.text.write = snd_emu_proc_ptr_reg_write20; in snd_emu10k1_proc_init()
602 entry->mode |= 0200; in snd_emu10k1_proc_init()
606 if (! snd_card_proc_new(emu->card, "emu10k1", &entry)) in snd_emu10k1_proc_init()
607 snd_info_set_text_ops(entry, emu, snd_emu10k1_proc_read); in snd_emu10k1_proc_init()
610 if (! snd_card_proc_new(emu->card, "spdif-in", &entry)) in snd_emu10k1_proc_init()
611 snd_info_set_text_ops(entry, emu, snd_emu10k1_proc_spdif_read); in snd_emu10k1_proc_init()
614 if (! snd_card_proc_new(emu->card, "capture-rates", &entry)) in snd_emu10k1_proc_init()
615 snd_info_set_text_ops(entry, emu, snd_emu10k1_proc_rates_read); in snd_emu10k1_proc_init()
618 if (! snd_card_proc_new(emu->card, "voices", &entry)) in snd_emu10k1_proc_init()
619 snd_info_set_text_ops(entry, emu, snd_emu10k1_proc_voices_read); in snd_emu10k1_proc_init()
621 if (! snd_card_proc_new(emu->card, "fx8010_gpr", &entry)) { in snd_emu10k1_proc_init()
622 entry->content = SNDRV_INFO_CONTENT_DATA; in snd_emu10k1_proc_init()
623 entry->private_data = emu; in snd_emu10k1_proc_init()
624 entry->mode = S_IFREG | 0444 /*| S_IWUSR*/; in snd_emu10k1_proc_init()
625 entry->size = emu->audigy ? A_TOTAL_SIZE_GPR : TOTAL_SIZE_GPR; in snd_emu10k1_proc_init()
626 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; in snd_emu10k1_proc_init()
628 if (! snd_card_proc_new(emu->card, "fx8010_tram_data", &entry)) { in snd_emu10k1_proc_init()
629 entry->content = SNDRV_INFO_CONTENT_DATA; in snd_emu10k1_proc_init()
630 entry->private_data = emu; in snd_emu10k1_proc_init()
631 entry->mode = S_IFREG | 0444 /*| S_IWUSR*/; in snd_emu10k1_proc_init()
632 entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_DATA : TOTAL_SIZE_TANKMEM_DATA ; in snd_emu10k1_proc_init()
633 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; in snd_emu10k1_proc_init()
635 if (! snd_card_proc_new(emu->card, "fx8010_tram_addr", &entry)) { in snd_emu10k1_proc_init()
636 entry->content = SNDRV_INFO_CONTENT_DATA; in snd_emu10k1_proc_init()
637 entry->private_data = emu; in snd_emu10k1_proc_init()
638 entry->mode = S_IFREG | 0444 /*| S_IWUSR*/; in snd_emu10k1_proc_init()
639 entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_ADDR : TOTAL_SIZE_TANKMEM_ADDR ; in snd_emu10k1_proc_init()
640 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; in snd_emu10k1_proc_init()
642 if (! snd_card_proc_new(emu->card, "fx8010_code", &entry)) { in snd_emu10k1_proc_init()
643 entry->content = SNDRV_INFO_CONTENT_DATA; in snd_emu10k1_proc_init()
644 entry->private_data = emu; in snd_emu10k1_proc_init()
645 entry->mode = S_IFREG | 0444 /*| S_IWUSR*/; in snd_emu10k1_proc_init()
646 entry->size = emu->audigy ? A_TOTAL_SIZE_CODE : TOTAL_SIZE_CODE; in snd_emu10k1_proc_init()
647 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; in snd_emu10k1_proc_init()
649 if (! snd_card_proc_new(emu->card, "fx8010_acode", &entry)) { in snd_emu10k1_proc_init()
650 entry->content = SNDRV_INFO_CONTENT_TEXT; in snd_emu10k1_proc_init()
651 entry->private_data = emu; in snd_emu10k1_proc_init()
652 entry->mode = S_IFREG | 0444 /*| S_IWUSR*/; in snd_emu10k1_proc_init()
653 entry->c.text.read = snd_emu10k1_proc_acode_read; in snd_emu10k1_proc_init()