Lines Matching refs:the_card
49 static struct snd_ps3_card_info the_card;
70 return in_be32(the_card.mapped_mmio_vaddr + reg);
74 out_be32(the_card.mapped_mmio_vaddr + reg, val);
789 the_card.mapped_mmio_vaddr =
790 ioremap(the_card.ps3_dev->m_region->bus_addr,
791 the_card.ps3_dev->m_region->len);
793 if (!the_card.mapped_mmio_vaddr) {
795 __func__, the_card.ps3_dev->m_region->lpar_addr,
796 the_card.ps3_dev->m_region->len);
805 iounmap(the_card.mapped_mmio_vaddr);
806 the_card.mapped_mmio_vaddr = NULL;
830 the_card.audio_irq_outlet = in_be64(mapped);
839 the_card.audio_irq_outlet,
840 &the_card.irq_no);
846 ret = request_irq(the_card.irq_no, snd_ps3_interrupt, IRQF_DISABLED,
847 SND_PS3_DRIVER_NAME, &the_card);
856 ps3_irq_plug_destroy(the_card.irq_no);
862 free_irq(the_card.irq_no, &the_card);
863 ps3_irq_plug_destroy(the_card.irq_no);
936 the_card.ps3_dev = dev;
973 the_card.start_delay = snd_ps3_start_delay;
982 ret = snd_card_create(index, id, THIS_MODULE, 0, &the_card.card);
986 strcpy(the_card.card->driver, "PS3");
987 strcpy(the_card.card->shortname, "PS3");
988 strcpy(the_card.card->longname, "PS3 sound");
992 ret = snd_ctl_add(the_card.card,
993 snd_ctl_new1(&spdif_ctls[i], &the_card));
1000 ret = snd_pcm_new(the_card.card,
1005 &(the_card.pcm));
1009 the_card.pcm->private_data = &the_card;
1010 strcpy(the_card.pcm->name, "SPDIF");
1013 snd_pcm_set_ops(the_card.pcm, SNDRV_PCM_STREAM_PLAYBACK,
1016 the_card.pcm->info_flags = SNDRV_PCM_INFO_NONINTERLEAVED;
1018 ret = snd_pcm_lib_preallocate_pages_for_all(the_card.pcm,
1033 the_card.null_buffer_start_vaddr =
1034 dma_alloc_coherent(&the_card.ps3_dev->core,
1036 &the_card.null_buffer_start_dma_addr,
1038 if (!the_card.null_buffer_start_vaddr) {
1043 the_card.null_buffer_start_vaddr,
1044 the_card.null_buffer_start_dma_addr);
1046 snd_ps3_init_avsetting(&the_card);
1049 snd_card_set_dev(the_card.card, &dev->core);
1050 ret = snd_card_register(the_card.card);
1055 the_card.card->longname, the_card.start_delay);
1059 dma_free_coherent(&the_card.ps3_dev->core,
1061 the_card.null_buffer_start_vaddr,
1062 the_card.null_buffer_start_dma_addr);
1064 snd_pcm_lib_preallocate_free_for_all(the_card.pcm);
1066 snd_card_free(the_card.card);
1096 ret = snd_card_free(the_card.card);
1102 the_card.null_buffer_start_vaddr,
1103 the_card.null_buffer_start_dma_addr);
1138 memset(&the_card, 0, sizeof(the_card));
1139 spin_lock_init(&the_card.dma_lock);