Lines Matching defs:dev
23 static struct pci_config_window *gen_pci_init(struct device *dev,
31 err = of_address_to_resource(dev->of_node, 0, &cfgres);
33 dev_err(dev, "missing \"reg\" property\n");
41 cfg = pci_ecam_create(dev, &cfgres, bus->res, ops);
45 err = devm_add_action_or_reset(dev, gen_pci_unmap_cfg, cfg);
54 struct device *dev = &pdev->dev;
59 ops = of_device_get_match_data(&pdev->dev);
63 bridge = devm_pci_alloc_host_bridge(dev, 0);
72 cfg = gen_pci_init(dev, bridge, ops);