/sound/soc/intel/atom/sst/ |
D | sst_pci.c | 28 struct pci_dev *pci = ctx->pci; in sst_platform_get_resources() local 30 ret = pci_request_regions(pci, SST_DRV_NAME); in sst_platform_get_resources() 37 ctx->ddr_base = pci_resource_start(pci, 0); in sst_platform_get_resources() 51 ctx->ddr_end = pci_resource_end(pci, 0); in sst_platform_get_resources() 53 ctx->ddr = pcim_iomap(pci, 0, in sst_platform_get_resources() 54 pci_resource_len(pci, 0)); in sst_platform_get_resources() 64 ctx->shim_phy_add = pci_resource_start(pci, 1); in sst_platform_get_resources() 65 ctx->shim = pcim_iomap(pci, 1, pci_resource_len(pci, 1)); in sst_platform_get_resources() 73 ctx->mailbox_add = pci_resource_start(pci, 2); in sst_platform_get_resources() 74 ctx->mailbox = pcim_iomap(pci, 2, pci_resource_len(pci, 2)); in sst_platform_get_resources() [all …]
|
/sound/soc/amd/raven/ |
D | pci-acp3x.c | 22 static int snd_acp3x_probe(struct pci_dev *pci, in snd_acp3x_probe() argument 31 if (pci_enable_device(pci)) { in snd_acp3x_probe() 32 dev_err(&pci->dev, "pci_enable_device failed\n"); in snd_acp3x_probe() 36 ret = pci_request_regions(pci, "AMD ACP3x audio"); in snd_acp3x_probe() 38 dev_err(&pci->dev, "pci_request_regions failed\n"); in snd_acp3x_probe() 42 adata = devm_kzalloc(&pci->dev, sizeof(struct acp3x_dev_data), in snd_acp3x_probe() 50 ret = pci_enable_msi(pci); in snd_acp3x_probe() 58 addr = pci_resource_start(pci, 0); in snd_acp3x_probe() 59 adata->acp3x_base = ioremap(addr, pci_resource_len(pci, 0)); in snd_acp3x_probe() 64 pci_set_master(pci); in snd_acp3x_probe() [all …]
|
/sound/soc/intel/skylake/ |
D | skl.c | 44 static void skl_update_pci_byte(struct pci_dev *pci, unsigned int reg, in skl_update_pci_byte() argument 49 pci_read_config_byte(pci, reg, &data); in skl_update_pci_byte() 52 pci_write_config_byte(pci, reg, data); in skl_update_pci_byte() 67 skl_update_pci_byte(skl->pci, AZX_PCIREG_TCSEL, 0x07, 0); in skl_init_pci() 70 static void update_pci_dword(struct pci_dev *pci, in update_pci_dword() argument 75 pci_read_config_dword(pci, reg, &data); in update_pci_dword() 78 pci_write_config_dword(pci, reg, data); in update_pci_dword() 89 struct pci_dev *pci = to_pci_dev(dev); in skl_enable_miscbdcge() local 94 update_pci_dword(pci, AZX_PCIREG_CGCTL, AZX_CGCTL_MISCBDCGE_MASK, val); in skl_enable_miscbdcge() 105 struct pci_dev *pci = to_pci_dev(dev); in skl_clock_power_gating() local [all …]
|
/sound/pci/au88x0/ |
D | au88x0.c | 46 MODULE_DEVICE_TABLE(pci, snd_vortex_ids); 141 snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip) in snd_vortex_create() argument 152 if ((err = pci_enable_device(pci)) < 0) in snd_vortex_create() 154 if (dma_set_mask(&pci->dev, DMA_BIT_MASK(32)) < 0 || in snd_vortex_create() 155 dma_set_coherent_mask(&pci->dev, DMA_BIT_MASK(32)) < 0) { in snd_vortex_create() 157 pci_disable_device(pci); in snd_vortex_create() 163 pci_disable_device(pci); in snd_vortex_create() 170 chip->pci_dev = pci; in snd_vortex_create() 171 chip->io = pci_resource_start(pci, 0); in snd_vortex_create() 172 chip->vendor = pci->vendor; in snd_vortex_create() [all …]
|
/sound/pci/hda/ |
D | hda_intel.c | 366 #define CONTROLLER_IN_GPU(pci) (((pci)->device == 0x0a0c) || \ argument 367 ((pci)->device == 0x0c0c) || \ 368 ((pci)->device == 0x0d0c) || \ 369 ((pci)->device == 0x160c)) 371 #define IS_BXT(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x5a98) argument 372 #define IS_CFL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa348) argument 373 #define IS_CNL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x9dc8) argument 403 static void update_pci_byte(struct pci_dev *pci, unsigned int reg, in update_pci_byte() argument 408 pci_read_config_byte(pci, reg, &data); in update_pci_byte() 411 pci_write_config_byte(pci, reg, data); in update_pci_byte() [all …]
|
/sound/pci/vx222/ |
D | vx222.c | 56 MODULE_DEVICE_TABLE(pci, snd_vx222_ids); 111 pci_release_regions(vx->pci); in snd_vx222_free() 112 pci_disable_device(vx->pci); in snd_vx222_free() 124 static int snd_vx222_create(struct snd_card *card, struct pci_dev *pci, in snd_vx222_create() argument 137 if ((err = pci_enable_device(pci)) < 0) in snd_vx222_create() 139 pci_set_master(pci); in snd_vx222_create() 145 pci_disable_device(pci); in snd_vx222_create() 149 vx->pci = pci; in snd_vx222_create() 151 if ((err = pci_request_regions(pci, CARD_NAME)) < 0) { in snd_vx222_create() 156 vx->port[i] = pci_resource_start(pci, i + 1); in snd_vx222_create() [all …]
|
/sound/pci/aw2/ |
D | aw2-alsa.c | 85 struct pci_dev *pci; member 104 struct pci_dev *pci, struct aw2 **rchip); 105 static int snd_aw2_probe(struct pci_dev *pci, 107 static void snd_aw2_remove(struct pci_dev *pci); 156 MODULE_DEVICE_TABLE(pci, snd_aw2_ids); 220 pci_release_regions(chip->pci); in snd_aw2_dev_free() 222 pci_disable_device(chip->pci); in snd_aw2_dev_free() 231 struct pci_dev *pci, struct aw2 **rchip) in snd_aw2_create() argument 242 err = pci_enable_device(pci); in snd_aw2_create() 245 pci_set_master(pci); in snd_aw2_create() [all …]
|
/sound/pci/ |
D | cs5530.c | 55 struct pci_dev *pci; member 66 MODULE_DEVICE_TABLE(pci, snd_cs5530_ids); 70 pci_release_regions(chip->pci); in snd_cs5530_free() 71 pci_disable_device(chip->pci); in snd_cs5530_free() 82 static void snd_cs5530_remove(struct pci_dev *pci) in snd_cs5530_remove() argument 84 snd_card_free(pci_get_drvdata(pci)); in snd_cs5530_remove() 97 struct pci_dev *pci, in snd_cs5530_create() argument 112 err = pci_enable_device(pci); in snd_cs5530_create() 118 pci_disable_device(pci); in snd_cs5530_create() 123 chip->pci = pci; in snd_cs5530_create() [all …]
|
D | bt87x.c | 179 struct pci_dev *pci; member 220 if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci), in snd_bt87x_create_risc() 276 pci_read_config_word(chip->pci, PCI_STATUS, &pci_status); in snd_bt87x_pci_error() 280 pci_write_config_word(chip->pci, PCI_STATUS, pci_status); in snd_bt87x_pci_error() 680 pci_release_regions(chip->pci); in snd_bt87x_free() 681 pci_disable_device(chip->pci); in snd_bt87x_free() 704 snd_dma_pci_data(chip->pci), in snd_bt87x_pcm() 711 struct pci_dev *pci, in snd_bt87x_create() argument 722 err = pci_enable_device(pci); in snd_bt87x_create() 728 pci_disable_device(pci); in snd_bt87x_create() [all …]
|
D | als4000.c | 98 struct pci_dev *pci; member 110 MODULE_DEVICE_TABLE(pci, snd_als4000_ids); 696 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci), in snd_als4000_pcm() 780 dev_warn(&acard->pci->dev, "cannot reserve joystick ports\n"); in snd_als4000_create_gameport() 786 dev_err(&acard->pci->dev, "cannot allocate memory for gameport\n"); in snd_als4000_create_gameport() 792 gameport_set_phys(gp, "pci%s/gameport0", pci_name(acard->pci)); in snd_als4000_create_gameport() 793 gameport_set_dev_parent(gp, &acard->pci->dev); in snd_als4000_create_gameport() 832 pci_release_regions(acard->pci); in snd_card_als4000_free() 833 pci_disable_device(acard->pci); in snd_card_als4000_free() 836 static int snd_card_als4000_probe(struct pci_dev *pci, in snd_card_als4000_probe() argument [all …]
|
D | via82xx_modem.c | 231 struct pci_dev *pci; member 254 MODULE_DEVICE_TABLE(pci, snd_via82xx_modem_ids); 265 struct pci_dev *pci, in build_via_table() argument 275 if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci), in build_via_table() 303 dev_err(&pci->dev, "too much table size!\n"); in build_via_table() 339 struct pci_dev *pci) in clean_via_table() argument 648 err = build_via_table(viadev, substream, chip->pci, in snd_via82xx_hw_params() 669 clean_via_table(viadev, substream, chip->pci); in snd_via82xx_hw_free() 855 snd_dma_pci_data(chip->pci), in snd_via686_pcm_new() 897 ac97.pci = chip->pci; in snd_via82xx_mixer_new() [all …]
|
D | via82xx.c | 364 struct pci_dev *pci; member 401 MODULE_DEVICE_TABLE(pci, snd_via82xx_ids); 412 struct pci_dev *pci, in build_via_table() argument 422 if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci), in build_via_table() 450 dev_err(&pci->dev, "too much table size!\n"); in build_via_table() 485 struct pci_dev *pci) in clean_via_table() argument 927 err = build_via_table(viadev, substream, chip->pci, in snd_via82xx_hw_params() 945 clean_via_table(viadev, substream, chip->pci); in snd_via82xx_hw_free() 1462 snd_dma_pci_data(chip->pci), in snd_via8233_pcm_new() 1486 snd_dma_pci_data(chip->pci), in snd_via8233_pcm_new() [all …]
|
D | als300.c | 106 struct pci_dev *pci; member 136 MODULE_DEVICE_TABLE(pci, snd_als300_ids); 172 pci_release_regions(chip->pci); in snd_als300_free() 173 pci_disable_device(chip->pci); in snd_als300_free() 252 static void snd_als300_remove(struct pci_dev *pci) in snd_als300_remove() argument 254 snd_card_free(pci_get_drvdata(pci)); in snd_als300_remove() 595 snd_dma_pci_data(chip->pci), 64*1024, 64*1024); in snd_als300_new_pcm() 633 struct pci_dev *pci, int chip_type, in snd_als300_create() argument 645 if ((err = pci_enable_device(pci)) < 0) in snd_als300_create() 648 if (dma_set_mask(&pci->dev, DMA_BIT_MASK(28)) < 0 || in snd_als300_create() [all …]
|
D | ad1889.c | 76 struct pci_dev *pci; member 636 snd_dma_pci_data(chip->pci), in snd_ad1889_pcm_init() 802 ac97.pci = chip->pci; in snd_ad1889_ac97_init() 837 pci_release_regions(chip->pci); in snd_ad1889_free() 838 pci_disable_device(chip->pci); in snd_ad1889_free() 866 struct pci_dev *pci, in snd_ad1889_create() argument 878 if ((err = pci_enable_device(pci)) < 0) in snd_ad1889_create() 882 if (dma_set_mask(&pci->dev, DMA_BIT_MASK(32)) < 0 || in snd_ad1889_create() 883 dma_set_coherent_mask(&pci->dev, DMA_BIT_MASK(32)) < 0) { in snd_ad1889_create() 885 pci_disable_device(pci); in snd_ad1889_create() [all …]
|
D | sis7019.c | 48 MODULE_DEVICE_TABLE(pci, snd_sis7019_ids); 106 struct pci_dev *pci; member 374 sis->silence_dma_addr = dma_map_single(&sis->pci->dev, in __sis_map_silence() 385 dma_unmap_single(&sis->pci->dev, sis->silence_dma_addr, 4096, in __sis_unmap_silence() 908 snd_dma_pci_data(sis->pci), 64*1024, 128*1024); in sis_pcm_create() 974 dev_err(&sis->pci->dev, "ac97 codec %d timeout cmd 0x%08x\n", in sis_ac97_rw() 1056 pci_release_regions(sis->pci); in sis_chip_free() 1057 pci_disable_device(sis->pci); in sis_chip_free() 1130 dev_err(&sis->pci->dev, "could not find any codecs\n"); in sis_chip_init() 1135 dev_warn(&sis->pci->dev, "missing codecs, found %0x, expected %0x\n", in sis_chip_init() [all …]
|
/sound/pci/cs5535audio/ |
D | cs5535audio.c | 61 MODULE_DEVICE_TABLE(pci, snd_cs5535audio_ids); 153 ac97.pci = cs5535au->pci; in snd_cs5535audio_mixer() 241 pci_set_power_state(cs5535au->pci, PCI_D3hot); in snd_cs5535audio_free() 246 pci_release_regions(cs5535au->pci); in snd_cs5535audio_free() 247 pci_disable_device(cs5535au->pci); in snd_cs5535audio_free() 259 struct pci_dev *pci, in snd_cs5535audio_create() argument 270 if ((err = pci_enable_device(pci)) < 0) in snd_cs5535audio_create() 273 if (dma_set_mask(&pci->dev, DMA_BIT_MASK(32)) < 0 || in snd_cs5535audio_create() 274 dma_set_coherent_mask(&pci->dev, DMA_BIT_MASK(32)) < 0) { in snd_cs5535audio_create() 288 cs5535au->pci = pci; in snd_cs5535audio_create() [all …]
|
/sound/pci/ymfpci/ |
D | ymfpci.c | 64 MODULE_DEVICE_TABLE(pci, snd_ymfpci_ids); 77 if (chip->pci->device >= 0x0010) { /* YMF 744/754 */ in snd_ymfpci_create_gameport() 81 if (!(io_port = pci_resource_start(chip->pci, 2))) in snd_ymfpci_create_gameport() 127 gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci)); in snd_ymfpci_create_gameport() 128 gameport_set_dev_parent(gp, &chip->pci->dev); in snd_ymfpci_create_gameport() 132 if (chip->pci->device >= 0x0010) /* YMF 744/754 */ in snd_ymfpci_create_gameport() 133 pci_write_config_word(chip->pci, PCIR_DSXG_JOYBASE, io_port); in snd_ymfpci_create_gameport() 135 pci_write_config_word(chip->pci, PCIR_DSXG_LEGACY, legacy_ctrl | YMFPCI_LEGACY_JPEN); in snd_ymfpci_create_gameport() 136 pci_write_config_word(chip->pci, PCIR_DSXG_ELEGACY, legacy_ctrl2); in snd_ymfpci_create_gameport() 159 static int snd_card_ymfpci_probe(struct pci_dev *pci, in snd_card_ymfpci_probe() argument [all …]
|
/sound/soc/sof/intel/ |
D | hda.c | 35 #define IS_CFL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa348) argument 36 #define IS_CNL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x9dc8) argument 256 struct pci_dev *pci = to_pci_dev(sdev->dev); in hda_init() local 263 sof_hda_bus_init(bus, &pci->dev); in hda_init() 266 if (IS_CFL(pci) || IS_CNL(pci)) in hda_init() 274 hbus->pci = pci; in hda_init() 279 bus->addr = pci_resource_start(pci, 0); in hda_init() 281 bus->remap_addr = pci_ioremap_bar(pci, 0); in hda_init() 498 struct pci_dev *pci = to_pci_dev(sdev->dev); in hda_dsp_probe() local 511 if (pci->class == 0x040300) { in hda_dsp_probe() [all …]
|
/sound/pci/mixart/ |
D | mixart_hwdep.c | 156 dev_err(&mgr->pci->dev, in mixart_enum_connectors() 186 dev_err(&mgr->pci->dev, in mixart_enum_connectors() 200 dev_err(&mgr->pci->dev, in mixart_enum_connectors() 230 dev_err(&mgr->pci->dev, in mixart_enum_connectors() 267 dev_dbg(&mgr->pci->dev, in mixart_enum_physio() 283 dev_err(&mgr->pci->dev, in mixart_enum_physio() 321 dev_err(&mgr->pci->dev, "error MSG_SYSTEM_SEND_SYNCHRO_CMD\n"); in mixart_first_init() 347 dev_err(&mgr->pci->dev, "miXart is resetting !\n"); in mixart_dsp_load() 356 dev_dbg(&mgr->pci->dev, "xilinx is already loaded !\n"); in mixart_dsp_load() 361 dev_err(&mgr->pci->dev, in mixart_dsp_load() [all …]
|
D | mixart.c | 56 MODULE_DEVICE_TABLE(pci, snd_mixart_ids); 77 dev_err(&mgr->pci->dev, in mixart_set_pipe_state() 93 dev_err(&mgr->pci->dev, in mixart_set_pipe_state() 115 dev_err(&mgr->pci->dev, in mixart_set_pipe_state() 128 dev_err(&mgr->pci->dev, in mixart_set_pipe_state() 143 dev_err(&mgr->pci->dev, in mixart_set_pipe_state() 177 dev_err(&mgr->pci->dev, in mixart_set_clock() 191 dev_dbg(&mgr->pci->dev, "mixart_set_clock to %d kHz\n", rate); in mixart_set_clock() 200 dev_err(&mgr->pci->dev, in mixart_set_clock() 350 dev_err(&mgr->pci->dev, in snd_mixart_kill_ref_pipe() [all …]
|
/sound/pci/trident/ |
D | trident.c | 59 MODULE_DEVICE_TABLE(pci, snd_trident_ids); 61 static int snd_trident_probe(struct pci_dev *pci, in snd_trident_probe() argument 77 err = snd_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE, in snd_trident_probe() 82 if ((err = snd_trident_create(card, pci, in snd_trident_probe() 84 ((pci->vendor << 16) | pci->device) == TRIDENT_DEVICE_ID_SI7018 ? 1 : 2, in snd_trident_probe() 150 pci_set_drvdata(pci, card); in snd_trident_probe() 155 static void snd_trident_remove(struct pci_dev *pci) in snd_trident_remove() argument 157 snd_card_free(pci_get_drvdata(pci)); in snd_trident_remove()
|
/sound/pci/pcxhr/ |
D | pcxhr_core.c | 123 dev_dbg(&mgr->pci->dev, in pcxhr_check_reg_bit() 130 dev_err(&mgr->pci->dev, in pcxhr_check_reg_bit() 207 dev_err(&mgr->pci->dev, "pcxhr_send_it_dsp : TIMEOUT CVR\n"); in pcxhr_send_it_dsp() 218 dev_err(&mgr->pci->dev, in pcxhr_send_it_dsp() 285 dev_err(&mgr->pci->dev, "error loading first xilinx\n"); in pcxhr_load_xilinx_binary() 351 dev_err(&mgr->pci->dev, in pcxhr_download_dsp() 387 dev_dbg(&mgr->pci->dev, "no need to load eeprom boot\n"); in pcxhr_load_eeprom_binary() 552 dev_err(&mgr->pci->dev, in pcxhr_read_rmh_status() 582 dev_dbg(&mgr->pci->dev, " stat[%d]=%x\n", i, data); in pcxhr_read_rmh_status() 588 dev_dbg(&mgr->pci->dev, "PCXHR : rmh->stat_len=%x too big\n", in pcxhr_read_rmh_status() [all …]
|
D | pcxhr_hwdep.c | 62 dev_dbg(&mgr->pci->dev, in pcxhr_init_board() 75 dev_dbg(&mgr->pci->dev, in pcxhr_init_board() 171 dev_dbg(&mgr->pci->dev, "snd_add_ref_pipe pin(%d) pcm%c0\n", in pcxhr_dsp_allocate_pipe() 186 dev_err(&mgr->pci->dev, "error pipe allocation " in pcxhr_dsp_allocate_pipe() 214 dev_err(&mgr->pci->dev, "error stopping pipe!\n"); 221 dev_err(&mgr->pci->dev, "error pipe release " 281 dev_dbg(&mgr->pci->dev, in pcxhr_dsp_load() 306 dev_err(&mgr->pci->dev, "wrong file index\n"); in pcxhr_dsp_load() 313 dev_err(&mgr->pci->dev, "pcxhr could not be set up\n"); in pcxhr_dsp_load() 318 dev_err(&mgr->pci->dev, "pcxhr pipes could not be set up\n"); in pcxhr_dsp_load() [all …]
|
/sound/hda/ |
D | hdac_i915.c | 16 #define CONTROLLER_IN_GPU(pci) (((pci)->device == 0x0a0c) || \ argument 17 ((pci)->device == 0x0c0c) || \ 18 ((pci)->device == 0x0d0c) || \ 19 ((pci)->device == 0x160c)) 38 struct pci_dev *pci = to_pci_dev(bus->dev); in snd_hdac_i915_set_bclk() local 44 if (!CONTROLLER_IN_GPU(pci)) in snd_hdac_i915_set_bclk()
|
/sound/pci/oxygen/ |
D | oxygen_lib.c | 290 pci_write_config_word(chip->pci, PCI_SUBSYSTEM_VENDOR_ID, in oxygen_restore_eeprom() 292 pci_write_config_word(chip->pci, PCI_SUBSYSTEM_ID, in oxygen_restore_eeprom() 301 static void configure_pcie_bridge(struct pci_dev *pci) in configure_pcie_bridge() argument 315 if (!pci->bus || !pci->bus->self) in configure_pcie_bridge() 317 bridge = pci->bus->self; in configure_pcie_bridge() 580 pci_release_regions(chip->pci); in oxygen_card_free() 581 pci_disable_device(chip->pci); in oxygen_card_free() 584 int oxygen_pci_probe(struct pci_dev *pci, int index, char *id, in oxygen_pci_probe() argument 597 err = snd_card_new(&pci->dev, index, id, owner, in oxygen_pci_probe() 604 chip->pci = pci; in oxygen_pci_probe() [all …]
|