Lines Matching refs:prop
46 struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size() local
48 if (!prop) in of_property_count_elems_of_size()
50 if (!prop->value) in of_property_count_elems_of_size()
53 if (prop->length % elem_size != 0) { in of_property_count_elems_of_size()
59 return prop->length / elem_size; in of_property_count_elems_of_size()
81 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size() local
83 if (!prop) in of_find_property_value_of_size()
85 if (!prop->value) in of_find_property_value_of_size()
87 if (prop->length < min) in of_find_property_value_of_size()
89 if (max && prop->length > max) in of_find_property_value_of_size()
93 *len = prop->length; in of_find_property_value_of_size()
95 return prop->value; in of_find_property_value_of_size()
396 const struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string() local
397 if (!prop) in of_property_read_string()
399 if (!prop->value) in of_property_read_string()
401 if (strnlen(prop->value, prop->length) >= prop->length) in of_property_read_string()
403 *out_string = prop->value; in of_property_read_string()
420 const struct property *prop = of_find_property(np, propname, NULL); in of_property_match_string() local
425 if (!prop) in of_property_match_string()
427 if (!prop->value) in of_property_match_string()
430 p = prop->value; in of_property_match_string()
431 end = p + prop->length; in of_property_match_string()
460 const struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string_helper() local
464 if (!prop) in of_property_read_string_helper()
466 if (!prop->value) in of_property_read_string_helper()
468 p = prop->value; in of_property_read_string_helper()
469 end = p + prop->length; in of_property_read_string_helper()
483 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur, in of_prop_next_u32() argument
488 if (!prop) in of_prop_next_u32()
492 curv = prop->value; in of_prop_next_u32()
497 if (curv >= prop->value + prop->length) in of_prop_next_u32()
506 const char *of_prop_next_string(struct property *prop, const char *cur) in of_prop_next_string() argument
510 if (!prop) in of_prop_next_string()
514 return prop->value; in of_prop_next_string()
517 if (curv >= prop->value + prop->length) in of_prop_next_string()
905 const char *prop, const char *nargs_prop, in of_fwnode_get_reference_args() argument
914 ret = of_parse_phandle_with_args(to_of_node(fwnode), prop, in of_fwnode_get_reference_args()
917 ret = of_parse_phandle_with_fixed_args(to_of_node(fwnode), prop, in of_fwnode_get_reference_args()