Lines Matching refs:node

20 static phandle prom_node_to_node(const char *type, phandle node)  in prom_node_to_node()  argument
27 args[3] = (unsigned int) node; in prom_node_to_node()
38 inline phandle __prom_getchild(phandle node) in __prom_getchild() argument
40 return prom_node_to_node("child", node); in __prom_getchild()
43 phandle prom_getchild(phandle node) in prom_getchild() argument
47 if ((s32)node == -1) in prom_getchild()
49 cnode = __prom_getchild(node); in prom_getchild()
56 inline phandle prom_getparent(phandle node) in prom_getparent() argument
60 if ((s32)node == -1) in prom_getparent()
62 cnode = prom_node_to_node("parent", node); in prom_getparent()
71 inline phandle __prom_getsibling(phandle node) in __prom_getsibling() argument
73 return prom_node_to_node(prom_peer_name, node); in __prom_getsibling()
76 phandle prom_getsibling(phandle node) in prom_getsibling() argument
80 if ((s32)node == -1) in prom_getsibling()
82 sibnode = __prom_getsibling(node); in prom_getsibling()
93 int prom_getproplen(phandle node, const char *prop) in prom_getproplen() argument
97 if (!node || !prop) in prom_getproplen()
103 args[3] = (unsigned int) node; in prom_getproplen()
117 int prom_getproperty(phandle node, const char *prop, in prom_getproperty() argument
123 plen = prom_getproplen(node, prop); in prom_getproperty()
130 args[3] = (unsigned int) node; in prom_getproperty()
145 int prom_getint(phandle node, const char *prop) in prom_getint() argument
149 if (prom_getproperty(node, prop, (char *) &intprop, sizeof(int)) != -1) in prom_getint()
160 int prom_getintdefault(phandle node, const char *property, int deflt) in prom_getintdefault() argument
164 retval = prom_getint(node, property); in prom_getintdefault()
173 int prom_getbool(phandle node, const char *prop) in prom_getbool() argument
177 retval = prom_getproplen(node, prop); in prom_getbool()
188 void prom_getstring(phandle node, const char *prop, char *user_buf, in prom_getstring() argument
193 len = prom_getproperty(node, prop, user_buf, ubuf_size); in prom_getstring()
203 int prom_nodematch(phandle node, const char *name) in prom_nodematch() argument
206 prom_getproperty(node, "name", namebuf, sizeof(namebuf)); in prom_nodematch()
239 char *prom_firstprop(phandle node, char *buffer) in prom_firstprop() argument
244 if ((s32)node == -1) in prom_firstprop()
250 args[3] = (unsigned int) node; in prom_firstprop()
265 char *prom_nextprop(phandle node, const char *oprop, char *buffer) in prom_nextprop() argument
270 if ((s32)node == -1) { in prom_nextprop()
282 args[3] = (unsigned int) node; in prom_nextprop()
311 int prom_node_has_property(phandle node, const char *prop) in prom_node_has_property() argument
317 prom_nextprop(node, buf, buf); in prom_node_has_property()
329 prom_setprop(phandle node, const char *pname, char *value, int size) in prom_setprop() argument
347 args[3] = (unsigned int) node; in prom_setprop()
362 phandle node; in prom_inst2pkg() local
372 node = (int) args[4]; in prom_inst2pkg()
373 if ((s32)node == -1) in prom_inst2pkg()
375 return node; in prom_inst2pkg()