Lines Matching refs:prop
202 char *prop, propbuf[OFW_MAX_STACK_BUF_SIZE]; in of_compatible() local
211 prop = kmem_tmpbuf_alloc(proplen, propbuf, sizeof(propbuf), KM_SLEEP); in of_compatible()
213 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) { in of_compatible()
218 if ((match = strlist_match(prop, proplen, cp)) != 0) { in of_compatible()
224 kmem_tmpbuf_free(prop, proplen, propbuf); in of_compatible()
260 char *prop, propbuf[OFW_MAX_STACK_BUF_SIZE]; in of_compatible_match() local
268 prop = kmem_tmpbuf_alloc(proplen, propbuf, sizeof(propbuf), KM_SLEEP); in of_compatible_match()
270 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) { in of_compatible_match()
274 match = device_compatible_match_strlist(prop, proplen, compat_data); in of_compatible_match()
277 kmem_tmpbuf_free(prop, proplen, propbuf); in of_compatible_match()
307 char *prop, propbuf[OFW_MAX_STACK_BUF_SIZE]; in of_compatible_lookup() local
316 prop = kmem_tmpbuf_alloc(proplen, propbuf, sizeof(propbuf), KM_SLEEP); in of_compatible_lookup()
318 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) { in of_compatible_lookup()
322 match = device_compatible_lookup_strlist(prop, proplen, compat_data); in of_compatible_lookup()
325 kmem_tmpbuf_free(prop, proplen, propbuf); in of_compatible_lookup()
472 uint32_t prop; in of_to_uint32_prop() local
474 if (OF_getprop(node, ofname, &prop, sizeof(prop)) != sizeof(prop)) in of_to_uint32_prop()
477 return(prop_dictionary_set_uint32(dict, propname, prop)); in of_to_uint32_prop()
489 uint8_t prop[256]; in of_to_dataprop() local
491 len = OF_getprop(node, ofname, prop, 256); in of_to_dataprop()
495 return prop_dictionary_set_data(dict, propname, prop, len); in of_to_dataprop()
564 of_hasprop(int node, const char *prop) in of_hasprop() argument
566 return OF_getproplen(node, prop) >= 0; in of_hasprop()
574 of_getprop_uint32(int node, const char *prop, uint32_t *val) in of_getprop_uint32() argument
579 len = OF_getprop(node, prop, &v, sizeof(v)); in of_getprop_uint32()
588 of_getprop_uint32_array(int node, const char *prop, uint32_t *array, int n) in of_getprop_uint32_array() argument
593 len = OF_getprop(node, prop, array, n * sizeof(*v)); in of_getprop_uint32_array()
609 of_getprop_uint64(int node, const char *prop, uint64_t *val) in of_getprop_uint64() argument
614 len = OF_getprop(node, prop, &v, sizeof(v)); in of_getprop_uint64()