Lines Matching refs:pci
73 struct pci_dev *pci; member
299 videobuf_dma_unmap(&chip->pci->dev, chip->dma_risc); in dsp_buffer_free()
301 btcx_riscmem_free(chip->pci,&chip->buf->risc); in dsp_buffer_free()
420 ret = videobuf_dma_map(&chip->pci->dev, dma); in snd_cx88_hw_params()
424 ret = cx88_risc_databuffer(chip->pci, &buf->risc, dma->sglist, in snd_cx88_hw_params()
760 MODULE_DEVICE_TABLE(pci, cx88_audio_pci_tbl);
772 cx88_core_put(chip->core,chip->pci); in snd_cx88_free()
774 pci_disable_device(chip->pci); in snd_cx88_free()
794 static int snd_cx88_create(struct snd_card *card, struct pci_dev *pci, in snd_cx88_create() argument
805 err = pci_enable_device(pci); in snd_cx88_create()
809 pci_set_master(pci); in snd_cx88_create()
813 core = cx88_core_get(pci); in snd_cx88_create()
819 if (!pci_dma_supported(pci,DMA_BIT_MASK(32))) { in snd_cx88_create()
822 cx88_core_put(core, pci); in snd_cx88_create()
829 chip->pci = pci; in snd_cx88_create()
836 err = request_irq(chip->pci->irq, cx8801_irq, in snd_cx88_create()
840 chip->core->name, chip->pci->irq); in snd_cx88_create()
845 pci_read_config_byte(pci, PCI_LATENCY_TIMER, &pci_lat); in snd_cx88_create()
849 pci_name(pci), pci->revision, pci->irq, in snd_cx88_create()
850 pci_lat, (unsigned long long)pci_resource_start(pci,0)); in snd_cx88_create()
852 chip->irq = pci->irq; in snd_cx88_create()
861 static int cx88_audio_initdev(struct pci_dev *pci, in cx88_audio_initdev() argument
877 err = snd_card_new(&pci->dev, index[devno], id[devno], THIS_MODULE, in cx88_audio_initdev()
884 err = snd_cx88_create(card, pci, &chip, &core); in cx88_audio_initdev()
907 sprintf(card->shortname, "Conexant CX%x", pci->device); in cx88_audio_initdev()
909 card->shortname,(unsigned long long)pci_resource_start(pci, 0)); in cx88_audio_initdev()
918 pci_set_drvdata(pci,card); in cx88_audio_initdev()
930 static void cx88_audio_finidev(struct pci_dev *pci) in cx88_audio_finidev() argument
932 struct snd_card *card = pci_get_drvdata(pci); in cx88_audio_finidev()