Lines Matching refs:pp
44 struct pcie_port pp; member
49 #define to_ls_pcie(x) container_of(x, struct ls_pcie, pp)
51 static int ls_pcie_link_up(struct pcie_port *pp) in ls_pcie_link_up() argument
54 struct ls_pcie *pcie = to_ls_pcie(pp); in ls_pcie_link_up()
65 static void ls_pcie_host_init(struct pcie_port *pp) in ls_pcie_host_init() argument
67 struct ls_pcie *pcie = to_ls_pcie(pp); in ls_pcie_host_init()
71 dw_pcie_setup_rc(pp); in ls_pcie_host_init()
73 while (!ls_pcie_link_up(pp)) { in ls_pcie_host_init()
77 dev_err(pp->dev, "phy link never came up\n"); in ls_pcie_host_init()
98 struct pcie_port *pp; in ls_add_pcie_port() local
101 pp = &pcie->pp; in ls_add_pcie_port()
102 pp->dev = pcie->dev; in ls_add_pcie_port()
103 pp->dbi_base = pcie->dbi; in ls_add_pcie_port()
104 pp->root_bus_nr = -1; in ls_add_pcie_port()
105 pp->ops = &ls_pcie_host_ops; in ls_add_pcie_port()
107 ret = dw_pcie_host_init(pp); in ls_add_pcie_port()
109 dev_err(pp->dev, "failed to initialize host\n"); in ls_add_pcie_port()