Lines Matching refs:pdev

37 	struct platform_device	*pdev;  member
80 dev_err(&msi->pdev->dev, "unexpected MSI\n"); in altera_msi_isr()
108 dev_dbg(&msi->pdev->dev, "msi#%d address_hi %#x address_lo %#x\n", in altera_compose_msi_msg()
165 dev_err(&msi->pdev->dev, "trying to free unused MSI#%lu\n", in altera_irq_domain_free()
184 struct fwnode_handle *fwnode = of_node_to_fwnode(msi->pdev->dev.of_node); in altera_allocate_domains()
189 dev_err(&msi->pdev->dev, "failed to create IRQ domain\n"); in altera_allocate_domains()
196 dev_err(&msi->pdev->dev, "failed to create MSI domain\n"); in altera_allocate_domains()
210 static int altera_msi_remove(struct platform_device *pdev) in altera_msi_remove() argument
212 struct altera_msi *msi = platform_get_drvdata(pdev); in altera_msi_remove()
220 platform_set_drvdata(pdev, NULL); in altera_msi_remove()
224 static int altera_msi_probe(struct platform_device *pdev) in altera_msi_probe() argument
227 struct device_node *np = pdev->dev.of_node; in altera_msi_probe()
231 msi = devm_kzalloc(&pdev->dev, sizeof(struct altera_msi), in altera_msi_probe()
237 msi->pdev = pdev; in altera_msi_probe()
239 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "csr"); in altera_msi_probe()
241 dev_err(&pdev->dev, "no csr memory resource defined\n"); in altera_msi_probe()
245 msi->csr_base = devm_ioremap_resource(&pdev->dev, res); in altera_msi_probe()
247 dev_err(&pdev->dev, "failed to map csr memory\n"); in altera_msi_probe()
251 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, in altera_msi_probe()
254 dev_err(&pdev->dev, "no vector_slave memory resource defined\n"); in altera_msi_probe()
258 msi->vector_base = devm_ioremap_resource(&pdev->dev, res); in altera_msi_probe()
260 dev_err(&pdev->dev, "failed to map vector_slave memory\n"); in altera_msi_probe()
267 dev_err(&pdev->dev, "failed to parse the number of vectors\n"); in altera_msi_probe()
275 msi->irq = platform_get_irq(pdev, 0); in altera_msi_probe()
277 dev_err(&pdev->dev, "failed to map IRQ: %d\n", msi->irq); in altera_msi_probe()
283 platform_set_drvdata(pdev, msi); in altera_msi_probe()
288 altera_msi_remove(pdev); in altera_msi_probe()