Lines Matching defs:pci
14 #include <linux/pci.h>
21 #include "sof-pci-dev.h"
179 * runtime pm for pci device is "forbidden" by default.
187 /* follow recommendation in pci-driver.c to decrement usage counter */
191 int sof_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
193 struct device *dev = &pci->dev;
199 dev_dbg(&pci->dev, "PCI DSP detected");
215 ret = pcim_enable_device(pci);
219 ret = pci_request_regions(pci, "Audio DSP");
223 sof_pdata->name = pci_name(pci);
226 if (pci->subsystem_vendor != 0xFFFF) {
227 sof_pdata->subsystem_vendor = pci->subsystem_vendor;
228 sof_pdata->subsystem_device = pci->subsystem_device;
345 pci_release_regions(pci);
351 void sof_pci_remove(struct pci_dev *pci)
354 snd_sof_device_remove(&pci->dev);
356 /* follow recommendation in pci-driver.c to increment usage counter */
357 if (snd_sof_device_probe_completed(&pci->dev) &&
359 pm_runtime_get_noresume(&pci->dev);
361 /* release pci regions and disable device */
362 pci_release_regions(pci);
366 void sof_pci_shutdown(struct pci_dev *pci)
368 snd_sof_device_shutdown(&pci->dev);