Lines Matching refs:axi_addr

853 				      int size_idx, u64 axi_addr, u64 pci_addr)  in iproc_pcie_ob_write()  argument
874 writel(lower_32_bits(axi_addr) | (size_idx << OARR_SIZE_CFG_SHIFT) | in iproc_pcie_ob_write()
876 writel(upper_32_bits(axi_addr), pcie->base + oarr_offset + 4); in iproc_pcie_ob_write()
883 window_idx, oarr_offset, &axi_addr, &pci_addr); in iproc_pcie_ob_write()
905 static int iproc_pcie_setup_ob(struct iproc_pcie *pcie, u64 axi_addr, in iproc_pcie_setup_ob() argument
912 if (axi_addr < ob->axi_offset) { in iproc_pcie_setup_ob()
914 &axi_addr, &ob->axi_offset); in iproc_pcie_setup_ob()
922 axi_addr -= ob->axi_offset; in iproc_pcie_setup_ob()
961 axi_addr = ALIGN_DOWN(axi_addr, window_size); in iproc_pcie_setup_ob()
966 if (!IS_ALIGNED(axi_addr, window_size) || in iproc_pcie_setup_ob()
970 &axi_addr, &pci_addr); in iproc_pcie_setup_ob()
979 axi_addr, pci_addr); in iproc_pcie_setup_ob()
992 axi_addr += window_size; in iproc_pcie_setup_ob()
1002 &axi_addr, &ob->axi_offset, &pci_addr, &size); in iproc_pcie_setup_ob()
1056 int size_idx, int nr_windows, u64 axi_addr, in iproc_pcie_ib_write() argument
1074 region_idx, iarr_offset, &axi_addr, &pci_addr); in iproc_pcie_ib_write()
1095 val |= lower_32_bits(axi_addr) | IMAP_VALID; in iproc_pcie_ib_write()
1097 writel(upper_32_bits(axi_addr), in iproc_pcie_ib_write()
1106 axi_addr += size; in iproc_pcie_ib_write()
1120 u64 axi_addr = entry->res->start; in iproc_pcie_setup_ib() local
1145 if (!IS_ALIGNED(axi_addr, region_size) || in iproc_pcie_setup_ib()
1149 &axi_addr, &pci_addr); in iproc_pcie_setup_ib()
1155 ib_map->nr_windows, axi_addr, in iproc_pcie_setup_ib()
1169 &axi_addr, &pci_addr, &size); in iproc_pcie_setup_ib()