Lines Matching refs:np

73 	struct device_node *np;  member
233 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name() argument
235 return np ? np->full_name : "<no-node>"; in of_node_full_name()
275 extern struct property *of_find_property(const struct device_node *np,
278 extern int of_property_count_elems_of_size(const struct device_node *np,
280 extern int of_property_read_u32_index(const struct device_node *np,
283 extern int of_property_read_u8_array(const struct device_node *np,
285 extern int of_property_read_u16_array(const struct device_node *np,
287 extern int of_property_read_u32_array(const struct device_node *np,
291 extern int of_property_read_u64(const struct device_node *np,
293 extern int of_property_read_u64_array(const struct device_node *np,
298 extern int of_property_read_string(struct device_node *np,
301 extern int of_property_match_string(struct device_node *np,
304 extern int of_property_read_string_helper(struct device_node *np,
318 extern int of_n_addr_cells(struct device_node *np);
319 extern int of_n_size_cells(struct device_node *np);
324 extern struct device_node *of_parse_phandle(const struct device_node *np,
327 extern int of_parse_phandle_with_args(const struct device_node *np,
330 extern int of_parse_phandle_with_fixed_args(const struct device_node *np,
333 extern int of_count_phandle_with_args(const struct device_node *np,
337 extern int of_alias_get_id(struct device_node *np, const char *stem);
342 extern int of_add_property(struct device_node *np, struct property *prop);
343 extern int of_remove_property(struct device_node *np, struct property *prop);
344 extern int of_update_property(struct device_node *np, struct property *newprop);
395 static inline const char* of_node_full_name(const struct device_node *np) in of_node_full_name() argument
482 static inline struct property *of_find_property(const struct device_node *np, in of_find_property() argument
497 static inline int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size() argument
503 static inline int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index() argument
509 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array() argument
515 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array() argument
521 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array() argument
528 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array() argument
535 static inline int of_property_read_string(struct device_node *np, in of_property_read_string() argument
542 static inline int of_property_read_string_helper(struct device_node *np, in of_property_read_string_helper() argument
562 static inline int of_property_read_u64(const struct device_node *np, in of_property_read_u64() argument
568 static inline int of_property_match_string(struct device_node *np, in of_property_match_string() argument
575 static inline struct device_node *of_parse_phandle(const struct device_node *np, in of_parse_phandle() argument
582 static inline int of_parse_phandle_with_args(struct device_node *np, in of_parse_phandle_with_args() argument
591 static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, in of_parse_phandle_with_fixed_args() argument
598 static inline int of_count_phandle_with_args(struct device_node *np, in of_count_phandle_with_args() argument
605 static inline int of_alias_get_id(struct device_node *np, const char *stem) in of_alias_get_id() argument
674 extern int of_node_to_nid(struct device_node *np);
700 static inline int of_property_count_u8_elems(const struct device_node *np, in of_property_count_u8_elems() argument
703 return of_property_count_elems_of_size(np, propname, sizeof(u8)); in of_property_count_u8_elems()
717 static inline int of_property_count_u16_elems(const struct device_node *np, in of_property_count_u16_elems() argument
720 return of_property_count_elems_of_size(np, propname, sizeof(u16)); in of_property_count_u16_elems()
734 static inline int of_property_count_u32_elems(const struct device_node *np, in of_property_count_u32_elems() argument
737 return of_property_count_elems_of_size(np, propname, sizeof(u32)); in of_property_count_u32_elems()
751 static inline int of_property_count_u64_elems(const struct device_node *np, in of_property_count_u64_elems() argument
754 return of_property_count_elems_of_size(np, propname, sizeof(u64)); in of_property_count_u64_elems()
770 static inline int of_property_read_string_array(struct device_node *np, in of_property_read_string_array() argument
774 return of_property_read_string_helper(np, propname, out_strs, sz, 0); in of_property_read_string_array()
789 static inline int of_property_count_strings(struct device_node *np, in of_property_count_strings() argument
792 return of_property_read_string_helper(np, propname, NULL, 0, 0); in of_property_count_strings()
813 static inline int of_property_read_string_index(struct device_node *np, in of_property_read_string_index() argument
817 int rc = of_property_read_string_helper(np, propname, output, 1, index); in of_property_read_string_index()
829 static inline bool of_property_read_bool(const struct device_node *np, in of_property_read_bool() argument
832 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_bool()
837 static inline int of_property_read_u8(const struct device_node *np, in of_property_read_u8() argument
841 return of_property_read_u8_array(np, propname, out_value, 1); in of_property_read_u8()
844 static inline int of_property_read_u16(const struct device_node *np, in of_property_read_u16() argument
848 return of_property_read_u16_array(np, propname, out_value, 1); in of_property_read_u16()
851 static inline int of_property_read_u32(const struct device_node *np, in of_property_read_u32() argument
855 return of_property_read_u32_array(np, propname, out_value, 1); in of_property_read_u32()
858 static inline int of_property_read_s32(const struct device_node *np, in of_property_read_s32() argument
862 return of_property_read_u32(np, propname, (u32*) out_value); in of_property_read_s32()
865 #define of_property_for_each_u32(np, propname, prop, p, u) \ argument
866 for (prop = of_find_property(np, propname, NULL), \
871 #define of_property_for_each_string(np, propname, prop, s) \ argument
872 for (prop = of_find_property(np, propname, NULL), \
904 static inline int of_get_child_count(const struct device_node *np) in of_get_child_count() argument
909 for_each_child_of_node(np, child) in of_get_child_count()
915 static inline int of_get_available_child_count(const struct device_node *np) in of_get_available_child_count() argument
920 for_each_available_child_of_node(np, child) in of_get_available_child_count()
965 struct device_node *np; member
1002 unsigned long action, struct device_node *np,
1006 struct device_node *np) in of_changeset_attach_node() argument
1008 return of_changeset_action(ocs, OF_RECONFIG_ATTACH_NODE, np, NULL); in of_changeset_attach_node()
1012 struct device_node *np) in of_changeset_detach_node() argument
1014 return of_changeset_action(ocs, OF_RECONFIG_DETACH_NODE, np, NULL); in of_changeset_detach_node()
1018 struct device_node *np, struct property *prop) in of_changeset_add_property() argument
1020 return of_changeset_action(ocs, OF_RECONFIG_ADD_PROPERTY, np, prop); in of_changeset_add_property()
1024 struct device_node *np, struct property *prop) in of_changeset_remove_property() argument
1026 return of_changeset_action(ocs, OF_RECONFIG_REMOVE_PROPERTY, np, prop); in of_changeset_remove_property()
1030 struct device_node *np, struct property *prop) in of_changeset_update_property() argument
1032 return of_changeset_action(ocs, OF_RECONFIG_UPDATE_PROPERTY, np, prop); in of_changeset_update_property()
1064 static inline bool of_device_is_system_power_controller(const struct device_node *np) in of_device_is_system_power_controller() argument
1066 return of_property_read_bool(np, "system-power-controller"); in of_device_is_system_power_controller()