Lines Matching refs:index
92 static u32 dw_pcie_readl_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg) in dw_pcie_readl_ob_unroll() argument
94 u32 offset = PCIE_GET_ATU_OUTB_UNR_REG_OFFSET(index); in dw_pcie_readl_ob_unroll()
99 static void dw_pcie_writel_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg, in dw_pcie_writel_ob_unroll() argument
102 u32 offset = PCIE_GET_ATU_OUTB_UNR_REG_OFFSET(index); in dw_pcie_writel_ob_unroll()
107 static void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index, in dw_pcie_prog_outbound_atu_unroll() argument
113 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LOWER_BASE, in dw_pcie_prog_outbound_atu_unroll()
115 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_UPPER_BASE, in dw_pcie_prog_outbound_atu_unroll()
117 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LIMIT, in dw_pcie_prog_outbound_atu_unroll()
119 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LOWER_TARGET, in dw_pcie_prog_outbound_atu_unroll()
121 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_UPPER_TARGET, in dw_pcie_prog_outbound_atu_unroll()
123 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_REGION_CTRL1, in dw_pcie_prog_outbound_atu_unroll()
125 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_REGION_CTRL2, in dw_pcie_prog_outbound_atu_unroll()
133 val = dw_pcie_readl_ob_unroll(pci, index, in dw_pcie_prog_outbound_atu_unroll()
143 void dw_pcie_prog_outbound_atu(struct dw_pcie *pci, int index, int type, in dw_pcie_prog_outbound_atu() argument
152 dw_pcie_prog_outbound_atu_unroll(pci, index, type, cpu_addr, in dw_pcie_prog_outbound_atu()
158 PCIE_ATU_REGION_OUTBOUND | index); in dw_pcie_prog_outbound_atu()
186 static u32 dw_pcie_readl_ib_unroll(struct dw_pcie *pci, u32 index, u32 reg) in dw_pcie_readl_ib_unroll() argument
188 u32 offset = PCIE_GET_ATU_INB_UNR_REG_OFFSET(index); in dw_pcie_readl_ib_unroll()
193 static void dw_pcie_writel_ib_unroll(struct dw_pcie *pci, u32 index, u32 reg, in dw_pcie_writel_ib_unroll() argument
196 u32 offset = PCIE_GET_ATU_INB_UNR_REG_OFFSET(index); in dw_pcie_writel_ib_unroll()
201 static int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int index, in dw_pcie_prog_inbound_atu_unroll() argument
208 dw_pcie_writel_ib_unroll(pci, index, PCIE_ATU_UNR_LOWER_TARGET, in dw_pcie_prog_inbound_atu_unroll()
210 dw_pcie_writel_ib_unroll(pci, index, PCIE_ATU_UNR_UPPER_TARGET, in dw_pcie_prog_inbound_atu_unroll()
224 dw_pcie_writel_ib_unroll(pci, index, PCIE_ATU_UNR_REGION_CTRL1, type); in dw_pcie_prog_inbound_atu_unroll()
225 dw_pcie_writel_ib_unroll(pci, index, PCIE_ATU_UNR_REGION_CTRL2, in dw_pcie_prog_inbound_atu_unroll()
234 val = dw_pcie_readl_ib_unroll(pci, index, in dw_pcie_prog_inbound_atu_unroll()
246 int dw_pcie_prog_inbound_atu(struct dw_pcie *pci, int index, int bar, in dw_pcie_prog_inbound_atu() argument
253 return dw_pcie_prog_inbound_atu_unroll(pci, index, bar, in dw_pcie_prog_inbound_atu()
257 index); in dw_pcie_prog_inbound_atu()
292 void dw_pcie_disable_atu(struct dw_pcie *pci, int index, in dw_pcie_disable_atu() argument
308 dw_pcie_writel_dbi(pci, PCIE_ATU_VIEWPORT, region | index); in dw_pcie_disable_atu()