Lines Matching refs:entry
364 static void snd_pcm_stream_proc_info_read(struct snd_info_entry *entry, in snd_pcm_stream_proc_info_read() argument
367 snd_pcm_proc_info_read(((struct snd_pcm_str *)entry->private_data)->substream, in snd_pcm_stream_proc_info_read()
371 static void snd_pcm_substream_proc_info_read(struct snd_info_entry *entry, in snd_pcm_substream_proc_info_read() argument
374 snd_pcm_proc_info_read(entry->private_data, buffer); in snd_pcm_substream_proc_info_read()
377 static void snd_pcm_substream_proc_hw_params_read(struct snd_info_entry *entry, in snd_pcm_substream_proc_hw_params_read() argument
380 struct snd_pcm_substream *substream = entry->private_data; in snd_pcm_substream_proc_hw_params_read()
414 static void snd_pcm_substream_proc_sw_params_read(struct snd_info_entry *entry, in snd_pcm_substream_proc_sw_params_read() argument
417 struct snd_pcm_substream *substream = entry->private_data; in snd_pcm_substream_proc_sw_params_read()
442 static void snd_pcm_substream_proc_status_read(struct snd_info_entry *entry, in snd_pcm_substream_proc_status_read() argument
445 struct snd_pcm_substream *substream = entry->private_data; in snd_pcm_substream_proc_status_read()
479 static void snd_pcm_xrun_injection_write(struct snd_info_entry *entry, in snd_pcm_xrun_injection_write() argument
482 struct snd_pcm_substream *substream = entry->private_data; in snd_pcm_xrun_injection_write()
487 static void snd_pcm_xrun_debug_read(struct snd_info_entry *entry, in snd_pcm_xrun_debug_read() argument
490 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_read()
494 static void snd_pcm_xrun_debug_write(struct snd_info_entry *entry, in snd_pcm_xrun_debug_write() argument
497 struct snd_pcm_str *pstr = entry->private_data; in snd_pcm_xrun_debug_write()
507 struct snd_info_entry *entry; in snd_pcm_stream_proc_init() local
512 entry = snd_info_create_card_entry(pcm->card, name, in snd_pcm_stream_proc_init()
514 if (!entry) in snd_pcm_stream_proc_init()
516 entry->mode = S_IFDIR | 0555; in snd_pcm_stream_proc_init()
517 pstr->proc_root = entry; in snd_pcm_stream_proc_init()
518 entry = snd_info_create_card_entry(pcm->card, "info", pstr->proc_root); in snd_pcm_stream_proc_init()
519 if (entry) in snd_pcm_stream_proc_init()
520 snd_info_set_text_ops(entry, pstr, snd_pcm_stream_proc_info_read); in snd_pcm_stream_proc_init()
522 entry = snd_info_create_card_entry(pcm->card, "xrun_debug", in snd_pcm_stream_proc_init()
524 if (entry) { in snd_pcm_stream_proc_init()
525 snd_info_set_text_ops(entry, pstr, snd_pcm_xrun_debug_read); in snd_pcm_stream_proc_init()
526 entry->c.text.write = snd_pcm_xrun_debug_write; in snd_pcm_stream_proc_init()
527 entry->mode |= 0200; in snd_pcm_stream_proc_init()
546 struct snd_info_entry *entry; in create_substream_info_entry() local
548 entry = snd_info_create_card_entry(substream->pcm->card, name, in create_substream_info_entry()
550 if (entry) in create_substream_info_entry()
551 snd_info_set_text_ops(entry, substream, read); in create_substream_info_entry()
552 return entry; in create_substream_info_entry()
557 struct snd_info_entry *entry; in snd_pcm_substream_proc_init() local
564 entry = snd_info_create_card_entry(card, name, in snd_pcm_substream_proc_init()
566 if (!entry) in snd_pcm_substream_proc_init()
568 entry->mode = S_IFDIR | 0555; in snd_pcm_substream_proc_init()
569 substream->proc_root = entry; in snd_pcm_substream_proc_init()
581 entry = create_substream_info_entry(substream, "xrun_injection", NULL); in snd_pcm_substream_proc_init()
582 if (entry) { in snd_pcm_substream_proc_init()
583 entry->c.text.write = snd_pcm_xrun_injection_write; in snd_pcm_substream_proc_init()
584 entry->mode = S_IFREG | 0200; in snd_pcm_substream_proc_init()
1173 static void snd_pcm_proc_read(struct snd_info_entry *entry, in snd_pcm_proc_read() argument
1197 struct snd_info_entry *entry; in snd_pcm_proc_init() local
1199 entry = snd_info_create_module_entry(THIS_MODULE, "pcm", NULL); in snd_pcm_proc_init()
1200 if (entry) { in snd_pcm_proc_init()
1201 snd_info_set_text_ops(entry, NULL, snd_pcm_proc_read); in snd_pcm_proc_init()
1202 if (snd_info_register(entry) < 0) { in snd_pcm_proc_init()
1203 snd_info_free_entry(entry); in snd_pcm_proc_init()
1204 entry = NULL; in snd_pcm_proc_init()
1207 snd_pcm_proc_entry = entry; in snd_pcm_proc_init()