Lines Matching refs:dev

105 	struct device *dev = pcie->dev;  in cdns_pcie_host_wait_for_link()  local
111 dev_info(dev, "Link up\n"); in cdns_pcie_host_wait_for_link()
316 struct device *dev = pcie->dev; in cdns_pcie_host_bar_config() local
327 dev_err(dev, "PCI addr: %llx must be equal to CPU addr: %llx\n", in cdns_pcie_host_bar_config()
346 dev_err(dev, "IB BAR: %d config failed\n", bar); in cdns_pcie_host_bar_config()
363 dev_err(dev, "No free BAR to map cpu_addr %llx\n", in cdns_pcie_host_bar_config()
372 dev_err(dev, "IB BAR: %d config failed\n", bar); in cdns_pcie_host_bar_config()
397 struct device *dev = pcie->dev; in cdns_pcie_host_map_dma_ranges() local
398 struct device_node *np = dev->of_node; in cdns_pcie_host_map_dma_ranges()
414 dev_err(dev, "IB BAR: %d config failed\n", RP_NO_BAR); in cdns_pcie_host_map_dma_ranges()
423 dev_err(dev, "Fail to configure IB using dma-ranges\n"); in cdns_pcie_host_map_dma_ranges()
488 static int cdns_pcie_host_init(struct device *dev, in cdns_pcie_host_init() argument
502 struct device *dev = rc->pcie.dev; in cdns_pcie_host_setup() local
503 struct platform_device *pdev = to_platform_device(dev); in cdns_pcie_host_setup()
504 struct device_node *np = dev->of_node; in cdns_pcie_host_setup()
526 dev_err(dev, "missing \"reg\"\n"); in cdns_pcie_host_setup()
531 rc->cfg_base = devm_pci_remap_cfg_resource(dev, res); in cdns_pcie_host_setup()
543 dev_err(dev, "Failed to start link\n"); in cdns_pcie_host_setup()
549 dev_dbg(dev, "PCIe link never came up\n"); in cdns_pcie_host_setup()
554 ret = cdns_pcie_host_init(dev, rc); in cdns_pcie_host_setup()
568 pm_runtime_put_sync(dev); in cdns_pcie_host_setup()