Lines Matching +full:max +full:- +full:retries

1 // SPDX-License-Identifier: GPL-2.0
18 #include "pcie-mobiveil.h"
21 * mobiveil_pcie_sel_page - routine to access paged register
32 val = readl(pcie->csr_axi_slave_base + PAB_CTRL); in mobiveil_pcie_sel_page()
36 writel(val, pcie->csr_axi_slave_base + PAB_CTRL); in mobiveil_pcie_sel_page()
45 return pcie->csr_axi_slave_base + off; in mobiveil_pcie_comp_addr()
49 return pcie->csr_axi_slave_base + OFFSET_TO_PAGE_ADDR(off); in mobiveil_pcie_comp_addr()
54 if ((uintptr_t)addr & (size - 1)) { in mobiveil_pcie_read()
79 if ((uintptr_t)addr & (size - 1)) in mobiveil_pcie_write()
109 dev_err(&pcie->pdev->dev, "read CSR address failed\n"); in mobiveil_csr_read()
124 dev_err(&pcie->pdev->dev, "write CSR address failed\n"); in mobiveil_csr_write()
129 if (pcie->ops->link_up) in mobiveil_pcie_link_up()
130 return pcie->ops->link_up(pcie); in mobiveil_pcie_link_up()
140 u64 size64 = ~(size - 1); in program_ib_windows()
142 if (win_num >= pcie->ppio_wins) { in program_ib_windows()
143 dev_err(&pcie->pdev->dev, in program_ib_windows()
144 "ERROR: max inbound windows reached !\n"); in program_ib_windows()
167 pcie->ib_wins_configured++; in program_ib_windows()
177 u64 size64 = ~(size - 1); in program_ob_windows()
179 if (win_num >= pcie->apio_wins) { in program_ob_windows()
180 dev_err(&pcie->pdev->dev, in program_ob_windows()
181 "ERROR: max outbound windows reached !\n"); in program_ob_windows()
213 pcie->ob_wins_configured++; in program_ob_windows()
218 int retries; in mobiveil_bringup_link() local
221 for (retries = 0; retries < LINK_WAIT_MAX_RETRIES; retries++) { in mobiveil_bringup_link()
228 dev_err(&pcie->pdev->dev, "link never came up\n"); in mobiveil_bringup_link()
230 return -ETIMEDOUT; in mobiveil_bringup_link()