Lines Matching refs:pci

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()
82 ctx->iram_end = pci_resource_end(pci, 3); in sst_platform_get_resources()
83 ctx->iram_base = pci_resource_start(pci, 3); in sst_platform_get_resources()
84 ctx->iram = pcim_iomap(pci, 3, pci_resource_len(pci, 3)); in sst_platform_get_resources()
92 ctx->dram_end = pci_resource_end(pci, 4); in sst_platform_get_resources()
93 ctx->dram_base = pci_resource_start(pci, 4); in sst_platform_get_resources()
94 ctx->dram = pcim_iomap(pci, 4, pci_resource_len(pci, 4)); in sst_platform_get_resources()
101 pci_release_regions(pci); in sst_platform_get_resources()
112 static int intel_sst_probe(struct pci_dev *pci, in intel_sst_probe() argument
117 struct sst_platform_info *sst_pdata = pci->dev.platform_data; in intel_sst_probe()
119 dev_dbg(&pci->dev, "Probe for DID %x\n", pci->device); in intel_sst_probe()
120 ret = sst_alloc_drv_context(&sst_drv_ctx, &pci->dev, pci->device); in intel_sst_probe()
125 sst_drv_ctx->irq_num = pci->irq; in intel_sst_probe()
135 ret = pcim_enable_device(pci); in intel_sst_probe()
141 sst_drv_ctx->pci = pci_dev_get(pci); in intel_sst_probe()
146 pci_set_drvdata(pci, sst_drv_ctx); in intel_sst_probe()
165 static void intel_sst_remove(struct pci_dev *pci) in intel_sst_remove() argument
167 struct intel_sst_drv *sst_drv_ctx = pci_get_drvdata(pci); in intel_sst_remove()
170 pci_dev_put(sst_drv_ctx->pci); in intel_sst_remove()
171 pci_release_regions(pci); in intel_sst_remove()
172 pci_set_drvdata(pci, NULL); in intel_sst_remove()