Lines Matching full:atu

132 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "atu");  in dw_pcie_get_resources()
395 dev_err(pci->dev, "Read ATU address failed\n"); in dw_pcie_readl_atu()
415 dev_err(pci->dev, "Write ATU address failed\n"); in dw_pcie_writel_atu()
433 * bit in the Control register-1 of the ATU outbound region acts in dw_pcie_enable_ecrc()
441 * registers, the transactions going through ATU won't have TLP in dw_pcie_enable_ecrc()
471 const struct dw_pcie_ob_atu_cfg *atu) in dw_pcie_prog_outbound_atu() argument
473 u64 cpu_addr = atu->cpu_addr; in dw_pcie_prog_outbound_atu()
480 limit_addr = cpu_addr + atu->size - 1; in dw_pcie_prog_outbound_atu()
484 !IS_ALIGNED(atu->pci_addr, pci->region_align) || !atu->size) { in dw_pcie_prog_outbound_atu()
488 dw_pcie_writel_atu_ob(pci, atu->index, PCIE_ATU_LOWER_BASE, in dw_pcie_prog_outbound_atu()
490 dw_pcie_writel_atu_ob(pci, atu->index, PCIE_ATU_UPPER_BASE, in dw_pcie_prog_outbound_atu()
493 dw_pcie_writel_atu_ob(pci, atu->index, PCIE_ATU_LIMIT, in dw_pcie_prog_outbound_atu()
496 dw_pcie_writel_atu_ob(pci, atu->index, PCIE_ATU_UPPER_LIMIT, in dw_pcie_prog_outbound_atu()
499 dw_pcie_writel_atu_ob(pci, atu->index, PCIE_ATU_LOWER_TARGET, in dw_pcie_prog_outbound_atu()
500 lower_32_bits(atu->pci_addr)); in dw_pcie_prog_outbound_atu()
501 dw_pcie_writel_atu_ob(pci, atu->index, PCIE_ATU_UPPER_TARGET, in dw_pcie_prog_outbound_atu()
502 upper_32_bits(atu->pci_addr)); in dw_pcie_prog_outbound_atu()
504 val = atu->type | atu->routing | PCIE_ATU_FUNC_NUM(atu->func_no); in dw_pcie_prog_outbound_atu()
510 dw_pcie_writel_atu_ob(pci, atu->index, PCIE_ATU_REGION_CTRL1, val); in dw_pcie_prog_outbound_atu()
513 if (atu->type == PCIE_ATU_TYPE_MSG) { in dw_pcie_prog_outbound_atu()
515 val |= PCIE_ATU_INHIBIT_PAYLOAD | atu->code; in dw_pcie_prog_outbound_atu()
517 dw_pcie_writel_atu_ob(pci, atu->index, PCIE_ATU_REGION_CTRL2, val); in dw_pcie_prog_outbound_atu()
520 * Make sure ATU enable takes effect before any subsequent config in dw_pcie_prog_outbound_atu()
524 val = dw_pcie_readl_atu_ob(pci, atu->index, PCIE_ATU_REGION_CTRL2); in dw_pcie_prog_outbound_atu()
583 * Make sure ATU enable takes effect before any subsequent config in dw_pcie_prog_inbound_atu()
619 * Make sure ATU enable takes effect before any subsequent config in dw_pcie_prog_ep_inbound_atu()