Lines Matching refs:pcie

94 	struct iproc_pcie *pcie;  member
132 struct iproc_pcie *pcie = msi->pcie; in iproc_msi_read_reg() local
134 return readl_relaxed(pcie->base + msi->reg_offsets[eq][reg]); in iproc_msi_read_reg()
141 struct iproc_pcie *pcie = msi->pcie; in iproc_msi_write_reg() local
143 writel_relaxed(val, pcie->base + msi->reg_offsets[eq][reg]); in iproc_msi_write_reg()
489 struct iproc_pcie *pcie = msi->pcie; in iproc_msi_irq_setup() local
501 dev_err(pcie->dev, in iproc_msi_irq_setup()
506 dev_err(pcie->dev, "failed to alloc CPU mask\n"); in iproc_msi_irq_setup()
520 int iproc_msi_init(struct iproc_pcie *pcie, struct device_node *node) in iproc_msi_init() argument
532 if (pcie->msi) in iproc_msi_init()
535 msi = devm_kzalloc(pcie->dev, sizeof(*msi), GFP_KERNEL); in iproc_msi_init()
539 msi->pcie = pcie; in iproc_msi_init()
540 pcie->msi = msi; in iproc_msi_init()
541 msi->msi_addr = pcie->base_addr; in iproc_msi_init()
550 dev_err(pcie->dev, "found no MSI GIC interrupt\n"); in iproc_msi_init()
555 dev_warn(pcie->dev, "too many MSI GIC interrupts defined %d\n", in iproc_msi_init()
561 dev_err(pcie->dev, in iproc_msi_init()
568 dev_warn(pcie->dev, "Reducing number of interrupts to %d\n", in iproc_msi_init()
572 switch (pcie->type) { in iproc_msi_init()
585 dev_err(pcie->dev, "incompatible iProc PCIe interface\n"); in iproc_msi_init()
593 msi->bitmap = devm_kcalloc(pcie->dev, BITS_TO_LONGS(msi->nr_msi_vecs), in iproc_msi_init()
598 msi->grps = devm_kcalloc(pcie->dev, msi->nr_irqs, sizeof(*msi->grps), in iproc_msi_init()
607 dev_err(pcie->dev, "unable to parse/map interrupt\n"); in iproc_msi_init()
617 msi->eq_cpu = dma_zalloc_coherent(pcie->dev, in iproc_msi_init()
627 dev_err(pcie->dev, "failed to create MSI domains\n"); in iproc_msi_init()
647 dma_free_coherent(pcie->dev, msi->nr_eq_region * EQ_MEM_REGION_SIZE, in iproc_msi_init()
655 pcie->msi = NULL; in iproc_msi_init()
660 void iproc_msi_exit(struct iproc_pcie *pcie) in iproc_msi_exit() argument
662 struct iproc_msi *msi = pcie->msi; in iproc_msi_exit()
675 dma_free_coherent(pcie->dev, msi->nr_eq_region * EQ_MEM_REGION_SIZE, in iproc_msi_exit()