Lines Matching refs:index

213 static u32 dw_pcie_readl_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg)
215 u32 offset = PCIE_GET_ATU_OUTB_UNR_REG_OFFSET(index);
220 static void dw_pcie_writel_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg,
223 u32 offset = PCIE_GET_ATU_OUTB_UNR_REG_OFFSET(index);
229 int index, int type,
236 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LOWER_BASE,
238 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_UPPER_BASE,
240 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LOWER_LIMIT,
242 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_UPPER_LIMIT,
244 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LOWER_TARGET,
246 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_UPPER_TARGET,
248 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_REGION_CTRL1,
250 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_REGION_CTRL2,
258 val = dw_pcie_readl_ob_unroll(pci, index,
269 int index, int type, u64 cpu_addr,
278 dw_pcie_prog_outbound_atu_unroll(pci, func_no, index, type,
284 PCIE_ATU_REGION_OUTBOUND | index);
313 void dw_pcie_prog_outbound_atu(struct dw_pcie *pci, int index, int type,
316 __dw_pcie_prog_outbound_atu(pci, 0, index, type,
320 void dw_pcie_prog_ep_outbound_atu(struct dw_pcie *pci, u8 func_no, int index,
324 __dw_pcie_prog_outbound_atu(pci, func_no, index, type,
328 static u32 dw_pcie_readl_ib_unroll(struct dw_pcie *pci, u32 index, u32 reg)
330 u32 offset = PCIE_GET_ATU_INB_UNR_REG_OFFSET(index);
335 static void dw_pcie_writel_ib_unroll(struct dw_pcie *pci, u32 index, u32 reg,
338 u32 offset = PCIE_GET_ATU_INB_UNR_REG_OFFSET(index);
344 int index, int bar, u64 cpu_addr,
350 dw_pcie_writel_ib_unroll(pci, index, PCIE_ATU_UNR_LOWER_TARGET,
352 dw_pcie_writel_ib_unroll(pci, index, PCIE_ATU_UNR_UPPER_TARGET,
366 dw_pcie_writel_ib_unroll(pci, index, PCIE_ATU_UNR_REGION_CTRL1, type |
368 dw_pcie_writel_ib_unroll(pci, index, PCIE_ATU_UNR_REGION_CTRL2,
378 val = dw_pcie_readl_ib_unroll(pci, index,
390 int dw_pcie_prog_inbound_atu(struct dw_pcie *pci, u8 func_no, int index,
398 return dw_pcie_prog_inbound_atu_unroll(pci, func_no, index, bar,
402 index);
439 void dw_pcie_disable_atu(struct dw_pcie *pci, int index,
457 dw_pcie_writel_ib_unroll(pci, index, PCIE_ATU_UNR_REGION_CTRL2,
460 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_REGION_CTRL2,
464 dw_pcie_writel_dbi(pci, PCIE_ATU_VIEWPORT, region | index);