Lines Matching refs:node
28 struct device_node *node;
33 node = of_pci_find_child_device(dev->bus->dev.of_node, dev->devfn);
34 if (!node)
37 device_set_node(&dev->dev, of_fwnode_handle(node));
49 struct device_node *node;
52 node = pcibios_get_phb_of_node(bus);
54 node = of_node_get(bus->self->dev.of_node);
55 if (node && of_property_read_bool(node, "external-facing"))
59 device_set_node(&bus->dev, of_fwnode_handle(node));
75 * Look for a node pointer in either the intermediary device we
120 static inline int __of_pci_pci_compare(struct device_node *node,
125 devfn = of_pci_get_devfn(node);
135 struct device_node *node, *node2;
137 for_each_child_of_node(parent, node) {
138 if (__of_pci_pci_compare(node, devfn))
139 return node;
141 * Some OFs create a parent node "multifunc-device" as
145 if (of_node_name_eq(node, "multifunc-device")) {
146 for_each_child_of_node(node, node2) {
148 of_node_put(node);
159 * of_pci_get_devfn() - Get device and function numbers for a device node
160 * @np: device node
182 * @node: device node
187 int of_pci_parse_bus_range(struct device_node *node, struct resource *res)
192 error = of_property_read_u32_array(node, "bus-range", bus_range,
197 res->name = node->name;
208 * of the given device node.
209 * @node: Device tree node with the domain information.
212 * a property called "linux,pci-domain" of the given device node.
223 int of_get_pci_domain_nr(struct device_node *node)
228 error = of_property_read_u32(node, "linux,pci-domain", &domain);
275 * node and setup the resource mapping based on its content. It is expected
420 * device-node exists for a given pci_dev, it will use normal OF tree
422 * PCI tree until an device-node is found, at which point it will finish
434 * Check if we have a device node, if yes, fallback to standard
456 /* Local interrupt-map in the device node? Use it! */
471 /* No node for host bridge ? give up */
477 /* We found a P2P bridge, check if it has a node */
482 * Ok, we have found a parent with a device-node, hand over to
497 * We can only get here if we hit a P2P bridge with no node;
634 * If there is already a device tree node linked to this device,
640 /* Check if there is device tree node for parent device */
694 * of_pci_get_max_link_speed - Find the maximum link speed of the given device node.
695 * @node: Device tree node with the maximum link speed information.
698 * a property called "max-link-speed" of the given device node.
703 * the property of the device tree node.
708 int of_pci_get_max_link_speed(struct device_node *node)
712 if (of_property_read_u32(node, "max-link-speed", &max_link_speed) ||
724 * @node: device tree node with the slot power limit information
736 u32 of_pci_get_slot_power_limit(struct device_node *node,
743 if (of_property_read_u32(node, "slot-power-limit-milliwatt",