Lines Matching refs:prop
71 /* Return the length in bytes of property 'prop' at node 'node'.
75 prom_getproplen(int node, const char *prop)
77 if((!node) || (!prop)) return -1;
81 node, prop);
84 /* Acquire a property 'prop' at node 'node' and place it in
89 prom_getproperty(int node, const char *prop, char *buffer, int bufsize)
93 plen = prom_getproplen(node, prop);
102 node, prop, buffer, P1275_SIZE(plen));
110 prom_getint(int node, const char *prop)
114 if(prom_getproperty(node, prop, (char *) &intprop, sizeof(int)) != -1)
137 prom_getbool(int node, const char *prop)
141 retval = prom_getproplen(node, prop);
151 prom_getstring(int node, const char *prop, char *user_buf, int ubuf_size)
155 len = prom_getproperty(node, prop, user_buf, ubuf_size);
245 int prom_node_has_property(int node, const char *prop)
252 if(!strcmp(buf, prop))