Lines Matching defs:node
53 phandle_t node;
56 if ((node = OF_finddevice("/options")) != -1 &&
57 OF_getprop(node, "local-mac-address?", buf, sizeof(buf)) > 0) {
60 (node = ofw_bus_get_node(dev)) > 0 &&
61 OF_getprop(node, "local-mac-address", addr,
66 node = OF_peer(0);
67 if (node <= 0 || OF_getprop(node, "idprom", &idp, sizeof(idp)) == -1)
75 phandle_t node;
78 for (node = ofw_bus_get_node(dev); node != 0; node = OF_parent(node))
79 if (OF_getprop(node, "scsi-initiator-id", &id,
111 * Return the physical address and the bus space to use for a node
115 * Works by mapping the address of the node's bank given in the address
125 OF_decode_addr(phandle_t node, int bank, int *space, bus_addr_t *addr)
137 * of a node. The first address in the "reg" property of a PCI
138 * node however is the address of its configuration registers in
151 bus = OF_parent(node);
166 nbank = OF_getprop(node, "assigned-addresses", &banks,
171 nbank = OF_getprop(node, "reg", &banks, sizeof(banks));