Lines Matching refs:uts

38 oftree get_other_oftree(struct unit_test_state *uts)  in get_other_oftree()  argument
43 tree = oftree_from_np(uts->of_other); in get_other_oftree()
45 tree = oftree_from_fdt(uts->other_fdt); in get_other_oftree()
64 int get_oftree(struct unit_test_state *uts, void *fdt, oftree *treep) in get_oftree() argument
94 static int dm_test_ofnode_compatible(struct unit_test_state *uts) in dm_test_ofnode_compatible() argument
107 static int dm_test_ofnode_compatible_ot(struct unit_test_state *uts) in dm_test_ofnode_compatible_ot() argument
109 oftree otree = get_other_oftree(uts); in dm_test_ofnode_compatible_ot()
119 static int dm_test_ofnode_get_by_phandle(struct unit_test_state *uts) in dm_test_ofnode_get_by_phandle() argument
137 static int dm_test_ofnode_get_by_phandle_ot(struct unit_test_state *uts) in dm_test_ofnode_get_by_phandle_ot() argument
139 oftree otree = get_other_oftree(uts); in dm_test_ofnode_get_by_phandle_ot()
151 static int check_prop_values(struct unit_test_state *uts, ofnode start, in check_prop_values() argument
181 static int dm_test_ofnode_by_prop_value(struct unit_test_state *uts) in dm_test_ofnode_by_prop_value() argument
183 ut_assertok(check_prop_values(uts, ofnode_null(), "compatible", in dm_test_ofnode_by_prop_value()
190 static int dm_test_ofnode_by_prop_value_ot(struct unit_test_state *uts) in dm_test_ofnode_by_prop_value_ot() argument
192 oftree otree = get_other_oftree(uts); in dm_test_ofnode_by_prop_value_ot()
194 ut_assertok(check_prop_values(uts, oftree_root(otree), "str-prop", in dm_test_ofnode_by_prop_value_ot()
201 static int dm_test_ofnode_fmap(struct unit_test_state *uts) in dm_test_ofnode_fmap() argument
216 static int dm_test_ofnode_read(struct unit_test_state *uts) in dm_test_ofnode_read() argument
242 static int dm_test_ofnode_read_ot(struct unit_test_state *uts) in dm_test_ofnode_read_ot() argument
244 oftree otree = get_other_oftree(uts); in dm_test_ofnode_read_ot()
261 static int dm_test_ofnode_phandle(struct unit_test_state *uts) in dm_test_ofnode_phandle() argument
336 static int dm_test_ofnode_phandle_ot(struct unit_test_state *uts) in dm_test_ofnode_phandle_ot() argument
338 oftree otree = get_other_oftree(uts); in dm_test_ofnode_phandle_ot()
364 static int dm_test_ofnode_read_chosen(struct unit_test_state *uts) in dm_test_ofnode_read_chosen() argument
393 static int dm_test_ofnode_read_aliases(struct unit_test_state *uts) in dm_test_ofnode_read_aliases() argument
415 static int dm_test_ofnode_get_child_count(struct unit_test_state *uts) in dm_test_ofnode_get_child_count() argument
436 static int dm_test_ofnode_get_child_count_ot(struct unit_test_state *uts) in dm_test_ofnode_get_child_count_ot() argument
438 oftree otree = get_other_oftree(uts); in dm_test_ofnode_get_child_count_ot()
457 static int dm_test_ofnode_is_enabled(struct unit_test_state *uts) in dm_test_ofnode_is_enabled() argument
469 static int dm_test_ofnode_is_enabled_ot(struct unit_test_state *uts) in dm_test_ofnode_is_enabled_ot() argument
471 oftree otree = get_other_oftree(uts); in dm_test_ofnode_is_enabled_ot()
482 static int dm_test_ofnode_get_reg(struct unit_test_state *uts) in dm_test_ofnode_get_reg() argument
518 static int dm_test_ofnode_get_reg_ot(struct unit_test_state *uts) in dm_test_ofnode_get_reg_ot() argument
520 oftree otree = get_other_oftree(uts); in dm_test_ofnode_get_reg_ot()
531 static int dm_test_ofnode_get_path(struct unit_test_state *uts) in dm_test_ofnode_get_path() argument
552 static int dm_test_ofnode_get_path_ot(struct unit_test_state *uts) in dm_test_ofnode_get_path_ot() argument
554 oftree otree = get_other_oftree(uts); in dm_test_ofnode_get_path_ot()
571 static int dm_test_ofnode_conf(struct unit_test_state *uts) in dm_test_ofnode_conf() argument
586 static int dm_test_ofnode_for_each_compatible_node(struct unit_test_state *uts) in dm_test_ofnode_for_each_compatible_node() argument
604 static int dm_test_ofnode_string(struct unit_test_state *uts) in dm_test_ofnode_string() argument
651 static int dm_test_ofnode_string_err(struct unit_test_state *uts) in dm_test_ofnode_string_err() argument
700 static int dm_test_ofnode_get_phy(struct unit_test_state *uts) in dm_test_ofnode_get_phy() argument
732 static int make_ofnode_fdt(struct unit_test_state *uts, void *fdt, int size, in make_ofnode_fdt() argument
754 static int dm_test_ofnode_root(struct unit_test_state *uts) in dm_test_ofnode_root() argument
769 static int dm_test_ofnode_root_mult(struct unit_test_state *uts) in dm_test_ofnode_root_mult() argument
779 ut_assertok(make_ofnode_fdt(uts, fdt, sizeof(fdt), 0)); in dm_test_ofnode_root_mult()
780 ut_assertok(get_oftree(uts, fdt, &tree)); in dm_test_ofnode_root_mult()
801 static int dm_test_ofnode_livetree_writing(struct unit_test_state *uts) in dm_test_ofnode_livetree_writing() argument
847 static int check_write_prop(struct unit_test_state *uts, ofnode node) in check_write_prop() argument
879 static int dm_test_ofnode_write_copy(struct unit_test_state *uts) in dm_test_ofnode_write_copy() argument
884 ut_assertok(check_write_prop(uts, node)); in dm_test_ofnode_write_copy()
890 static int dm_test_ofnode_write_copy_ot(struct unit_test_state *uts) in dm_test_ofnode_write_copy_ot() argument
892 oftree otree = get_other_oftree(uts); in dm_test_ofnode_write_copy_ot()
896 ut_assertok(check_write_prop(uts, node)); in dm_test_ofnode_write_copy_ot()
906 static int dm_test_ofnode_u32(struct unit_test_state *uts) in dm_test_ofnode_u32() argument
933 static int dm_test_ofnode_u32_array(struct unit_test_state *uts) in dm_test_ofnode_u32_array() argument
959 static int dm_test_ofnode_u64(struct unit_test_state *uts) in dm_test_ofnode_u64() argument
974 static int dm_test_ofnode_add_subnode(struct unit_test_state *uts) in dm_test_ofnode_add_subnode() argument
1043 static int dm_test_ofnode_for_each_prop(struct unit_test_state *uts) in dm_test_ofnode_for_each_prop() argument
1067 static int dm_test_ofnode_by_compatible(struct unit_test_state *uts) in dm_test_ofnode_by_compatible() argument
1083 static int dm_test_ofnode_by_compatible_ot(struct unit_test_state *uts) in dm_test_ofnode_by_compatible_ot() argument
1086 oftree otree = get_other_oftree(uts); in dm_test_ofnode_by_compatible_ot()
1100 static int dm_test_ofnode_find_subnode(struct unit_test_state *uts) in dm_test_ofnode_find_subnode() argument
1117 static int dm_test_ofnode_find_subnode_ot(struct unit_test_state *uts) in dm_test_ofnode_find_subnode_ot() argument
1119 oftree otree = get_other_oftree(uts); in dm_test_ofnode_find_subnode_ot()
1135 static int dm_test_ofnode_get_name(struct unit_test_state *uts) in dm_test_ofnode_get_name() argument
1149 static int dm_test_ofnode_too_many(struct unit_test_state *uts) in dm_test_ofnode_too_many() argument
1162 ut_assertok(make_ofnode_fdt(uts, fdt[i], fdt_size, i)); in dm_test_ofnode_too_many()
1163 ret = get_oftree(uts, fdt[i], &tree); in dm_test_ofnode_too_many()
1185 static int check_copy_props(struct unit_test_state *uts, ofnode src, in check_copy_props() argument
1209 static int dm_test_ofnode_copy_props(struct unit_test_state *uts) in dm_test_ofnode_copy_props() argument
1222 ut_assertok(check_copy_props(uts, src, dst)); in dm_test_ofnode_copy_props()
1231 static int dm_test_ofnode_copy_props_ot(struct unit_test_state *uts) in dm_test_ofnode_copy_props_ot() argument
1234 oftree otree = get_other_oftree(uts); in dm_test_ofnode_copy_props_ot()
1238 ut_assertok(check_copy_props(uts, src, dst)); in dm_test_ofnode_copy_props_ot()