Lines Matching refs:node

24 int __prom_getchild(int node)  in __prom_getchild()  argument
30 cnode = prom_nodeops->no_child(node); in __prom_getchild()
40 int prom_getchild(int node) in prom_getchild() argument
44 if (node == -1) in prom_getchild()
47 cnode = __prom_getchild(node); in prom_getchild()
55 int __prom_getsibling(int node) in __prom_getsibling() argument
61 cnode = prom_nodeops->no_nextnode(node); in __prom_getsibling()
71 int prom_getsibling(int node) in prom_getsibling() argument
75 if (node == -1) in prom_getsibling()
78 sibnode = __prom_getsibling(node); in prom_getsibling()
88 int prom_getproplen(int node, char *prop) in prom_getproplen() argument
93 if((!node) || (!prop)) in prom_getproplen()
97 ret = prom_nodeops->no_proplen(node, prop); in prom_getproplen()
107 int prom_getproperty(int node, char *prop, char *buffer, int bufsize) in prom_getproperty() argument
112 plen = prom_getproplen(node, prop); in prom_getproperty()
117 ret = prom_nodeops->no_getprop(node, prop, buffer); in prom_getproperty()
126 int prom_getint(int node, char *prop) in prom_getint() argument
130 if(prom_getproperty(node, prop, (char *) &intprop, sizeof(int)) != -1) in prom_getint()
139 int prom_getintdefault(int node, char *property, int deflt) in prom_getintdefault() argument
143 retval = prom_getint(node, property); in prom_getintdefault()
150 int prom_getbool(int node, char *prop) in prom_getbool() argument
154 retval = prom_getproplen(node, prop); in prom_getbool()
163 void prom_getstring(int node, char *prop, char *user_buf, int ubuf_size) in prom_getstring() argument
167 len = prom_getproperty(node, prop, user_buf, ubuf_size); in prom_getstring()
177 int prom_nodematch(int node, char *name) in prom_nodematch() argument
180 prom_getproperty(node, "name", namebuf, sizeof(namebuf)); in prom_nodematch()
206 int prom_getname (int node, char *buffer, int len) in prom_getname() argument
211 i = prom_getproperty (node, "name", buffer, len); in prom_getname()
215 i = prom_getproperty (node, "reg", (char *)reg, sizeof (reg)); in prom_getname()
224 char * __prom_nextprop(int node, char * oprop) in __prom_nextprop() argument
230 prop = prom_nodeops->no_nextprop(node, oprop); in __prom_nextprop()
239 char * prom_firstprop(int node, char *bufer) in prom_firstprop() argument
241 if (node == 0 || node == -1) in prom_firstprop()
244 return __prom_nextprop(node, ""); in prom_firstprop()
251 char * prom_nextprop(int node, char *oprop, char *buffer) in prom_nextprop() argument
253 if (node == 0 || node == -1) in prom_nextprop()
256 return __prom_nextprop(node, oprop); in prom_nextprop()
263 int node = prom_root_node, node2; in prom_finddevice() local
268 if (!*s) return node; /* path '.../' is legal */ in prom_finddevice()
269 node = prom_getchild(node); in prom_finddevice()
275 node = prom_searchsiblings(node, nbuf); in prom_finddevice()
276 if (!node) in prom_finddevice()
285 node2 = node; in prom_finddevice()
289 node = node2; in prom_finddevice()
303 return node; in prom_finddevice()
306 int prom_node_has_property(int node, char *prop) in prom_node_has_property() argument
311 current_property = prom_nextprop(node, current_property, NULL); in prom_node_has_property()
321 int prom_setprop(int node, char *pname, char *value, int size) in prom_setprop() argument
329 ret = prom_nodeops->no_setprop(node, pname, value, size); in prom_setprop()
337 int node; in prom_inst2pkg() local
341 node = (*romvec->pv_v2devops.v2_inst2pkg)(inst); in prom_inst2pkg()
344 if (node == -1) return 0; in prom_inst2pkg()
345 return node; in prom_inst2pkg()
353 int node, inst; in prom_pathtoinode() local
357 node = prom_inst2pkg (inst); in prom_pathtoinode()
359 if (node == -1) return 0; in prom_pathtoinode()
360 return node; in prom_pathtoinode()