• Home
  • Raw
  • Download

Lines Matching refs:node

24 static phandle __prom_getchild(phandle node)  in __prom_getchild()  argument
30 cnode = prom_nodeops->no_child(node); in __prom_getchild()
40 phandle prom_getchild(phandle node) in prom_getchild() argument
44 if ((s32)node == -1) in prom_getchild()
47 cnode = __prom_getchild(node); in prom_getchild()
56 static phandle __prom_getsibling(phandle node) in __prom_getsibling() argument
62 cnode = prom_nodeops->no_nextnode(node); in __prom_getsibling()
72 phandle prom_getsibling(phandle node) in prom_getsibling() argument
76 if ((s32)node == -1) in prom_getsibling()
79 sibnode = __prom_getsibling(node); in prom_getsibling()
90 int prom_getproplen(phandle node, const char *prop) in prom_getproplen() argument
95 if((!node) || (!prop)) in prom_getproplen()
99 ret = prom_nodeops->no_proplen(node, prop); in prom_getproplen()
110 int prom_getproperty(phandle node, const char *prop, char *buffer, int bufsize) in prom_getproperty() argument
115 plen = prom_getproplen(node, prop); in prom_getproperty()
120 ret = prom_nodeops->no_getprop(node, prop, buffer); in prom_getproperty()
130 int prom_getint(phandle node, char *prop) in prom_getint() argument
134 if(prom_getproperty(node, prop, (char *) &intprop, sizeof(int)) != -1) in prom_getint()
144 int prom_getintdefault(phandle node, char *property, int deflt) in prom_getintdefault() argument
148 retval = prom_getint(node, property); in prom_getintdefault()
156 int prom_getbool(phandle node, char *prop) in prom_getbool() argument
160 retval = prom_getproplen(node, prop); in prom_getbool()
170 void prom_getstring(phandle node, char *prop, char *user_buf, int ubuf_size) in prom_getstring() argument
174 len = prom_getproperty(node, prop, user_buf, ubuf_size); in prom_getstring()
204 static char *__prom_nextprop(phandle node, char * oprop) in __prom_nextprop() argument
210 prop = prom_nodeops->no_nextprop(node, oprop); in __prom_nextprop()
221 char *prom_nextprop(phandle node, char *oprop, char *buffer) in prom_nextprop() argument
223 if (node == 0 || (s32)node == -1) in prom_nextprop()
226 return __prom_nextprop(node, oprop); in prom_nextprop()
234 phandle node = prom_root_node, node2; in prom_finddevice() local
239 if (!*s) return node; /* path '.../' is legal */ in prom_finddevice()
240 node = prom_getchild(node); in prom_finddevice()
246 node = prom_searchsiblings(node, nbuf); in prom_finddevice()
247 if (!node) in prom_finddevice()
256 node2 = node; in prom_finddevice()
260 node = node2; in prom_finddevice()
274 return node; in prom_finddevice()
281 int prom_setprop(phandle node, const char *pname, char *value, int size) in prom_setprop() argument
291 ret = prom_nodeops->no_setprop(node, pname, value, size); in prom_setprop()
300 phandle node; in prom_inst2pkg() local
304 node = (*romvec->pv_v2devops.v2_inst2pkg)(inst); in prom_inst2pkg()
307 if ((s32)node == -1) in prom_inst2pkg()
309 return node; in prom_inst2pkg()