Lines Matching defs:the_card
38 static struct snd_ps3_card_info the_card;
59 return in_be32(the_card.mapped_mmio_vaddr + reg);
63 out_be32(the_card.mapped_mmio_vaddr + reg, val);
753 the_card.mapped_mmio_vaddr =
754 ioremap(the_card.ps3_dev->m_region->bus_addr,
755 the_card.ps3_dev->m_region->len);
757 if (!the_card.mapped_mmio_vaddr) {
759 __func__, the_card.ps3_dev->m_region->lpar_addr,
760 the_card.ps3_dev->m_region->len);
769 iounmap(the_card.mapped_mmio_vaddr);
770 the_card.mapped_mmio_vaddr = NULL;
795 the_card.audio_irq_outlet = in_be64(mapped);
804 the_card.audio_irq_outlet,
805 &the_card.irq_no);
811 ret = request_irq(the_card.irq_no, snd_ps3_interrupt, 0,
812 SND_PS3_DRIVER_NAME, &the_card);
821 ps3_irq_plug_destroy(the_card.irq_no);
827 free_irq(the_card.irq_no, &the_card);
828 ps3_irq_plug_destroy(the_card.irq_no);
899 the_card.ps3_dev = dev;
940 the_card.start_delay = snd_ps3_start_delay;
950 0, &the_card.card);
954 strcpy(the_card.card->driver, "PS3");
955 strcpy(the_card.card->shortname, "PS3");
956 strcpy(the_card.card->longname, "PS3 sound");
960 ret = snd_ctl_add(the_card.card,
961 snd_ctl_new1(&spdif_ctls[i], &the_card));
968 ret = snd_pcm_new(the_card.card,
973 &(the_card.pcm));
977 the_card.pcm->private_data = &the_card;
978 strcpy(the_card.pcm->name, "SPDIF");
981 snd_pcm_set_ops(the_card.pcm, SNDRV_PCM_STREAM_PLAYBACK,
984 the_card.pcm->info_flags = SNDRV_PCM_INFO_NONINTERLEAVED;
986 snd_pcm_set_managed_buffer_all(the_card.pcm,
997 the_card.null_buffer_start_vaddr =
998 dma_alloc_coherent(&the_card.ps3_dev->core,
1000 &the_card.null_buffer_start_dma_addr,
1002 if (!the_card.null_buffer_start_vaddr) {
1008 the_card.null_buffer_start_vaddr,
1009 the_card.null_buffer_start_dma_addr);
1011 snd_ps3_init_avsetting(&the_card);
1014 ret = snd_card_register(the_card.card);
1019 the_card.card->longname, the_card.start_delay);
1023 dma_free_coherent(&the_card.ps3_dev->core,
1025 the_card.null_buffer_start_vaddr,
1026 the_card.null_buffer_start_dma_addr);
1028 snd_card_free(the_card.card);
1055 snd_card_free(the_card.card);
1059 the_card.null_buffer_start_vaddr,
1060 the_card.null_buffer_start_dma_addr);
1094 memset(&the_card, 0, sizeof(the_card));
1095 spin_lock_init(&the_card.dma_lock);