Lines Matching refs:np

73 	struct device_node *np;  member
234 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name() argument
236 return np ? np->full_name : "<no-node>"; in of_node_full_name()
276 extern struct property *of_find_property(const struct device_node *np,
279 extern int of_property_count_elems_of_size(const struct device_node *np,
281 extern int of_property_read_u32_index(const struct device_node *np,
284 extern int of_property_read_u8_array(const struct device_node *np,
286 extern int of_property_read_u16_array(const struct device_node *np,
288 extern int of_property_read_u32_array(const struct device_node *np,
292 extern int of_property_read_u64(const struct device_node *np,
294 extern int of_property_read_u64_array(const struct device_node *np,
299 extern int of_property_read_string(struct device_node *np,
302 extern int of_property_match_string(struct device_node *np,
305 extern int of_property_read_string_helper(struct device_node *np,
319 extern int of_n_addr_cells(struct device_node *np);
320 extern int of_n_size_cells(struct device_node *np);
325 extern struct device_node *of_parse_phandle(const struct device_node *np,
328 extern int of_parse_phandle_with_args(const struct device_node *np,
331 extern int of_parse_phandle_with_fixed_args(const struct device_node *np,
334 extern int of_count_phandle_with_args(const struct device_node *np,
338 extern int of_alias_get_id(struct device_node *np, const char *stem);
343 extern int of_add_property(struct device_node *np, struct property *prop);
344 extern int of_remove_property(struct device_node *np, struct property *prop);
345 extern int of_update_property(struct device_node *np, struct property *newprop);
396 static inline const char* of_node_full_name(const struct device_node *np) in of_node_full_name() argument
488 static inline struct property *of_find_property(const struct device_node *np, in of_find_property() argument
503 static inline int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size() argument
509 static inline int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index() argument
515 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array() argument
521 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array() argument
527 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array() argument
534 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array() argument
541 static inline int of_property_read_string(struct device_node *np, in of_property_read_string() argument
548 static inline int of_property_read_string_helper(struct device_node *np, in of_property_read_string_helper() argument
568 static inline int of_property_read_u64(const struct device_node *np, in of_property_read_u64() argument
574 static inline int of_property_match_string(struct device_node *np, in of_property_match_string() argument
581 static inline struct device_node *of_parse_phandle(const struct device_node *np, in of_parse_phandle() argument
588 static inline int of_parse_phandle_with_args(struct device_node *np, in of_parse_phandle_with_args() argument
597 static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, in of_parse_phandle_with_fixed_args() argument
604 static inline int of_count_phandle_with_args(struct device_node *np, in of_count_phandle_with_args() argument
611 static inline int of_alias_get_id(struct device_node *np, const char *stem) in of_alias_get_id() argument
680 extern int of_node_to_nid(struct device_node *np);
706 static inline int of_property_count_u8_elems(const struct device_node *np, in of_property_count_u8_elems() argument
709 return of_property_count_elems_of_size(np, propname, sizeof(u8)); in of_property_count_u8_elems()
723 static inline int of_property_count_u16_elems(const struct device_node *np, in of_property_count_u16_elems() argument
726 return of_property_count_elems_of_size(np, propname, sizeof(u16)); in of_property_count_u16_elems()
740 static inline int of_property_count_u32_elems(const struct device_node *np, in of_property_count_u32_elems() argument
743 return of_property_count_elems_of_size(np, propname, sizeof(u32)); in of_property_count_u32_elems()
757 static inline int of_property_count_u64_elems(const struct device_node *np, in of_property_count_u64_elems() argument
760 return of_property_count_elems_of_size(np, propname, sizeof(u64)); in of_property_count_u64_elems()
776 static inline int of_property_read_string_array(struct device_node *np, in of_property_read_string_array() argument
780 return of_property_read_string_helper(np, propname, out_strs, sz, 0); in of_property_read_string_array()
795 static inline int of_property_count_strings(struct device_node *np, in of_property_count_strings() argument
798 return of_property_read_string_helper(np, propname, NULL, 0, 0); in of_property_count_strings()
819 static inline int of_property_read_string_index(struct device_node *np, in of_property_read_string_index() argument
823 int rc = of_property_read_string_helper(np, propname, output, 1, index); in of_property_read_string_index()
835 static inline bool of_property_read_bool(const struct device_node *np, in of_property_read_bool() argument
838 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_bool()
843 static inline int of_property_read_u8(const struct device_node *np, in of_property_read_u8() argument
847 return of_property_read_u8_array(np, propname, out_value, 1); in of_property_read_u8()
850 static inline int of_property_read_u16(const struct device_node *np, in of_property_read_u16() argument
854 return of_property_read_u16_array(np, propname, out_value, 1); in of_property_read_u16()
857 static inline int of_property_read_u32(const struct device_node *np, in of_property_read_u32() argument
861 return of_property_read_u32_array(np, propname, out_value, 1); in of_property_read_u32()
864 static inline int of_property_read_s32(const struct device_node *np, in of_property_read_s32() argument
868 return of_property_read_u32(np, propname, (u32*) out_value); in of_property_read_s32()
871 #define of_property_for_each_u32(np, propname, prop, p, u) \ argument
872 for (prop = of_find_property(np, propname, NULL), \
877 #define of_property_for_each_string(np, propname, prop, s) \ argument
878 for (prop = of_find_property(np, propname, NULL), \
910 static inline int of_get_child_count(const struct device_node *np) in of_get_child_count() argument
915 for_each_child_of_node(np, child) in of_get_child_count()
921 static inline int of_get_available_child_count(const struct device_node *np) in of_get_available_child_count() argument
926 for_each_available_child_of_node(np, child) in of_get_available_child_count()
971 struct device_node *np; member
1008 unsigned long action, struct device_node *np,
1012 struct device_node *np) in of_changeset_attach_node() argument
1014 return of_changeset_action(ocs, OF_RECONFIG_ATTACH_NODE, np, NULL); in of_changeset_attach_node()
1018 struct device_node *np) in of_changeset_detach_node() argument
1020 return of_changeset_action(ocs, OF_RECONFIG_DETACH_NODE, np, NULL); in of_changeset_detach_node()
1024 struct device_node *np, struct property *prop) in of_changeset_add_property() argument
1026 return of_changeset_action(ocs, OF_RECONFIG_ADD_PROPERTY, np, prop); in of_changeset_add_property()
1030 struct device_node *np, struct property *prop) in of_changeset_remove_property() argument
1032 return of_changeset_action(ocs, OF_RECONFIG_REMOVE_PROPERTY, np, prop); in of_changeset_remove_property()
1036 struct device_node *np, struct property *prop) in of_changeset_update_property() argument
1038 return of_changeset_action(ocs, OF_RECONFIG_UPDATE_PROPERTY, np, prop); in of_changeset_update_property()
1070 static inline bool of_device_is_system_power_controller(const struct device_node *np) in of_device_is_system_power_controller() argument
1072 return of_property_read_bool(np, "system-power-controller"); in of_device_is_system_power_controller()