Lines Matching full:plda

27 #include "pcie-plda.h"
54 struct plda_pcie_rp plda; member
69 * 'Bridge Configuration space' in PLDA IP datasheet, which contains the bridge
173 struct device *dev = pcie->plda.dev; in starfive_pcie_clk_rst_init()
195 static bool starfive_pcie_link_up(struct plda_pcie_rp *plda) in starfive_pcie_link_up() argument
198 container_of(plda, struct starfive_jh7110_pcie, plda); in starfive_pcie_link_up()
206 dev_err(pcie->plda.dev, "failed to read link status\n"); in starfive_pcie_link_up()
219 if (starfive_pcie_link_up(&pcie->plda)) { in starfive_pcie_host_wait_for_link()
220 dev_info(pcie->plda.dev, "port link up\n"); in starfive_pcie_host_wait_for_link()
267 static void starfive_pcie_host_deinit(struct plda_pcie_rp *plda) in starfive_pcie_host_deinit() argument
270 container_of(plda, struct starfive_jh7110_pcie, plda); in starfive_pcie_host_deinit()
278 static int starfive_pcie_host_init(struct plda_pcie_rp *plda) in starfive_pcie_host_init() argument
281 container_of(plda, struct starfive_jh7110_pcie, plda); in starfive_pcie_host_init()
282 struct device *dev = plda->dev; in starfive_pcie_host_init()
325 plda_pcie_disable_func(plda); in starfive_pcie_host_init()
335 plda_pcie_enable_root_port(plda); in starfive_pcie_host_init()
336 plda_pcie_write_rc_bar(plda, 0); in starfive_pcie_host_init()
339 plda_pcie_set_standard_class(plda); in starfive_pcie_host_init()
349 plda_pcie_disable_ltr(plda); in starfive_pcie_host_init()
356 plda_pcie_set_pref_win_64bit(plda); in starfive_pcie_host_init()
393 struct plda_pcie_rp *plda; in starfive_pcie_probe() local
400 plda = &pcie->plda; in starfive_pcie_probe()
401 plda->dev = dev; in starfive_pcie_probe()
410 plda->host_ops = &sf_host_ops; in starfive_pcie_probe()
411 plda->num_events = PLDA_MAX_EVENT_NUM; in starfive_pcie_probe()
413 plda->events_bitmap = GENMASK(PLDA_INT_EVENT_NUM - 1, 0) in starfive_pcie_probe()
416 plda->events_bitmap <<= PLDA_NUM_DMA_EVENTS; in starfive_pcie_probe()
417 ret = plda_pcie_host_init(&pcie->plda, &starfive_pcie_ops, in starfive_pcie_probe()
436 plda_pcie_host_deinit(&pcie->plda); in starfive_pcie_remove()