Lines Matching refs: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)
194 struct device *dev = &pci->dev;
200 dev_dbg(&pci->dev, "PCI DSP detected");
216 ret = pcim_enable_device(pci);
220 ret = pci_request_regions(pci, "Audio DSP");
224 sof_pdata->name = pci_name(pci);
227 if (pci->subsystem_vendor != 0xFFFF) {
228 sof_pdata->subsystem_vendor = pci->subsystem_vendor;
229 sof_pdata->subsystem_device = pci->subsystem_device;
279 pci_release_regions(pci);
285 void sof_pci_remove(struct pci_dev *pci)
288 snd_sof_device_remove(&pci->dev);
290 /* follow recommendation in pci-driver.c to increment usage counter */
291 if (snd_sof_device_probe_completed(&pci->dev) &&
293 pm_runtime_get_noresume(&pci->dev);
295 /* release pci regions and disable device */
296 pci_release_regions(pci);
300 void sof_pci_shutdown(struct pci_dev *pci)
302 snd_sof_device_shutdown(&pci->dev);