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);
904 the_card.ps3_dev = dev;
945 the_card.start_delay = snd_ps3_start_delay;
955 0, &the_card.card);
959 strcpy(the_card.card->driver, "PS3");
960 strcpy(the_card.card->shortname, "PS3");
961 strcpy(the_card.card->longname, "PS3 sound");
965 ret = snd_ctl_add(the_card.card,
966 snd_ctl_new1(&spdif_ctls[i], &the_card));
973 ret = snd_pcm_new(the_card.card,
978 &(the_card.pcm));
982 the_card.pcm->private_data = &the_card;
983 strcpy(the_card.pcm->name, "SPDIF");
986 snd_pcm_set_ops(the_card.pcm, SNDRV_PCM_STREAM_PLAYBACK,
989 the_card.pcm->info_flags = SNDRV_PCM_INFO_NONINTERLEAVED;
991 snd_pcm_set_managed_buffer_all(the_card.pcm,
1002 the_card.null_buffer_start_vaddr =
1003 dma_alloc_coherent(&the_card.ps3_dev->core,
1005 &the_card.null_buffer_start_dma_addr,
1007 if (!the_card.null_buffer_start_vaddr) {
1013 the_card.null_buffer_start_vaddr,
1014 the_card.null_buffer_start_dma_addr);
1016 snd_ps3_init_avsetting(&the_card);
1019 ret = snd_card_register(the_card.card);
1024 the_card.card->longname, the_card.start_delay);
1028 dma_free_coherent(&the_card.ps3_dev->core,
1030 the_card.null_buffer_start_vaddr,
1031 the_card.null_buffer_start_dma_addr);
1033 snd_card_free(the_card.card);
1063 ret = snd_card_free(the_card.card);
1069 the_card.null_buffer_start_vaddr,
1070 the_card.null_buffer_start_dma_addr);
1105 memset(&the_card, 0, sizeof(the_card));
1106 spin_lock_init(&the_card.dma_lock);