Lines Matching refs:pci

2203 						      snd_dma_pci_data(trident->pci),  in snd_trident_pcm()
2206 SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(trident->pci), in snd_trident_pcm()
2210 snd_dma_pci_data(trident->pci), 64*1024, 128*1024); in snd_trident_pcm()
2260 snd_dma_pci_data(trident->pci), 0, 128*1024); in snd_trident_foldback_pcm()
2263 snd_dma_pci_data(trident->pci), 64*1024, 128*1024); in snd_trident_foldback_pcm()
2297 …snd_pcm_lib_preallocate_pages_for_all(spdif, SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(trident->pci), 6… in snd_trident_spdif_pcm()
3193 gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci)); in snd_trident_create_gameport()
3194 gameport_set_dev_parent(gp, &chip->pci->dev); in snd_trident_create_gameport()
3240 pci_write_config_byte(trident->pci, 0x46, 0x04); /* SOFTWARE RESET */ in snd_trident_sis_reset()
3242 pci_write_config_byte(trident->pci, 0x46, 0x00); in snd_trident_sis_reset()
3357 if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(trident->pci), in snd_trident_tlb_alloc()
3372 if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(trident->pci), in snd_trident_tlb_alloc()
3406 struct pci_dev *pci = trident->pci; in snd_trident_4d_dx_init() local
3410 pci_write_config_dword(pci, 0x40, 0); /* DDMA */ in snd_trident_4d_dx_init()
3411 pci_write_config_byte(pci, 0x44, 0); /* ports */ in snd_trident_4d_dx_init()
3412 pci_write_config_byte(pci, 0x45, 0); /* Legacy DMA */ in snd_trident_4d_dx_init()
3413 pci_write_config_byte(pci, 0x46, 4); /* reset */ in snd_trident_4d_dx_init()
3415 pci_write_config_byte(pci, 0x46, 0); /* release reset */ in snd_trident_4d_dx_init()
3446 struct pci_dev *pci = trident->pci; in snd_trident_4d_nx_init() local
3450 pci_write_config_dword(pci, 0x40, 0); /* DDMA */ in snd_trident_4d_nx_init()
3451 pci_write_config_byte(pci, 0x44, 0); /* ports */ in snd_trident_4d_nx_init()
3452 pci_write_config_byte(pci, 0x45, 0); /* Legacy DMA */ in snd_trident_4d_nx_init()
3454 pci_write_config_byte(pci, 0x46, 1); /* reset */ in snd_trident_4d_nx_init()
3456 pci_write_config_byte(pci, 0x46, 0); /* release reset */ in snd_trident_4d_nx_init()
3534 struct pci_dev *pci, in snd_trident_create() argument
3551 if ((err = pci_enable_device(pci)) < 0) in snd_trident_create()
3554 if (pci_set_dma_mask(pci, DMA_BIT_MASK(30)) < 0 || in snd_trident_create()
3555 pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(30)) < 0) { in snd_trident_create()
3558 pci_disable_device(pci); in snd_trident_create()
3564 pci_disable_device(pci); in snd_trident_create()
3567 trident->device = (pci->vendor << 16) | pci->device; in snd_trident_create()
3569 trident->pci = pci; in snd_trident_create()
3584 pci_set_master(pci); in snd_trident_create()
3586 if ((err = pci_request_regions(pci, "Trident Audio")) < 0) { in snd_trident_create()
3588 pci_disable_device(pci); in snd_trident_create()
3591 trident->port = pci_resource_start(pci, 0); in snd_trident_create()
3593 if (request_irq(pci->irq, snd_trident_interrupt, IRQF_SHARED, in snd_trident_create()
3595 dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); in snd_trident_create()
3599 trident->irq = pci->irq; in snd_trident_create()
3695 pci_release_regions(trident->pci); in snd_trident_free()
3696 pci_disable_device(trident->pci); in snd_trident_free()