Home
last modified time | relevance | path

Searched refs:uts (Results 1 – 25 of 95) sorted by relevance

1234

/openbmc/u-boot/test/
H A Dcompression.c123 typedef int (*mutate_func)(struct unit_test_state *uts, void *, unsigned long,
126 static int compress_using_gzip(struct unit_test_state *uts, in compress_using_gzip() argument
141 static int uncompress_using_gzip(struct unit_test_state *uts, in uncompress_using_gzip() argument
156 static int compress_using_bzip2(struct unit_test_state *uts, in compress_using_bzip2() argument
175 static int uncompress_using_bzip2(struct unit_test_state *uts, in uncompress_using_bzip2() argument
191 static int compress_using_lzma(struct unit_test_state *uts, in compress_using_lzma() argument
210 static int uncompress_using_lzma(struct unit_test_state *uts, in uncompress_using_lzma() argument
225 static int compress_using_lzo(struct unit_test_state *uts, in compress_using_lzo() argument
244 static int uncompress_using_lzo(struct unit_test_state *uts, in uncompress_using_lzo() argument
260 static int compress_using_lz4(struct unit_test_state *uts, in compress_using_lz4() argument
[all …]
H A Dunicode_ut.c53 static int unicode_test_u16_strdup(struct unit_test_state *uts) in unicode_test_u16_strdup() argument
64 static int unicode_test_u16_strcpy(struct unit_test_state *uts) in unicode_test_u16_strcpy() argument
78 static int unicode_test_string16(struct unit_test_state *uts) in unicode_test_string16() argument
119 static int unicode_test_utf8_get(struct unit_test_state *uts) in unicode_test_utf8_get() argument
157 static int unicode_test_utf8_put(struct unit_test_state *uts) in unicode_test_utf8_put() argument
195 static int unicode_test_utf8_utf16_strlen(struct unit_test_state *uts) in unicode_test_utf8_utf16_strlen() argument
211 static int unicode_test_utf8_utf16_strnlen(struct unit_test_state *uts) in unicode_test_utf8_utf16_strnlen() argument
248 static int unicode_test_utf8_utf16_strcpy(struct unit_test_state *uts) in unicode_test_utf8_utf16_strcpy() argument
293 static int unicode_test_utf8_utf16_strncpy(struct unit_test_state *uts) in unicode_test_utf8_utf16_strncpy() argument
337 static int unicode_test_utf16_get(struct unit_test_state *uts) in unicode_test_utf16_get() argument
[all …]
H A Dut.c14 void ut_fail(struct unit_test_state *uts, const char *fname, int line, in ut_fail() argument
19 uts->fail_count++; in ut_fail()
22 void ut_failf(struct unit_test_state *uts, const char *fname, int line, in ut_failf() argument
33 uts->fail_count++; in ut_failf()
H A Dcmd_ut.c17 struct unit_test_state uts = { .fail_count = 0 }; in cmd_ut_category() local
28 uts.start = mallinfo(); in cmd_ut_category()
30 test->func(&uts); in cmd_ut_category()
33 printf("Failures: %d\n", uts.fail_count); in cmd_ut_category()
35 return uts.fail_count ? CMD_RET_FAILURE : 0; in cmd_ut_category()
/openbmc/u-boot/test/dm/
H A Dtest-main.c24 static int dm_test_init(struct unit_test_state *uts, bool of_live) in dm_test_init() argument
26 struct dm_test_state *dms = uts->priv; in dm_test_init()
35 gd->of_root = of_live ? uts->of_root : NULL; in dm_test_init()
44 static int do_autoprobe(struct unit_test_state *uts) in do_autoprobe() argument
58 static int dm_test_destroy(struct unit_test_state *uts) in dm_test_destroy() argument
78 static int dm_do_test(struct unit_test_state *uts, struct unit_test *test, in dm_do_test() argument
86 ut_assertok(dm_test_init(uts, of_live)); in dm_do_test()
88 uts->start = mallinfo(); in dm_do_test()
92 ut_assertok(do_autoprobe(uts)); in dm_do_test()
103 test->func(uts); in dm_do_test()
[all …]
H A Dvideo.c27 static int dm_test_video_base(struct unit_test_state *uts) in dm_test_video_base() argument
87 static int select_vidconsole(struct unit_test_state *uts, const char *drv_name) in select_vidconsole() argument
109 static int dm_test_video_text(struct unit_test_state *uts) in dm_test_video_text() argument
117 ut_assertok(select_vidconsole(uts, "vidconsole0")); in dm_test_video_text()
144 static int dm_test_video_chars(struct unit_test_state *uts) in dm_test_video_chars() argument
149 ut_assertok(select_vidconsole(uts, "vidconsole0")); in dm_test_video_chars()
162 static int dm_test_video_ansi(struct unit_test_state *uts) in dm_test_video_ansi() argument
166 ut_assertok(select_vidconsole(uts, "vidconsole0")); in dm_test_video_ansi()
202 static int check_vidconsole_output(struct unit_test_state *uts, int rot, in check_vidconsole_output() argument
239 static int dm_test_video_context(struct unit_test_state *uts) in dm_test_video_context() argument
[all …]
H A Dcore.c73 void dm_leak_check_start(struct unit_test_state *uts) in dm_leak_check_start() argument
75 uts->start = mallinfo(); in dm_leak_check_start()
76 if (!uts->start.uordblks) in dm_leak_check_start()
80 int dm_leak_check_end(struct unit_test_state *uts) in dm_leak_check_end() argument
96 diff = end.uordblks - uts->start.uordblks; in dm_leak_check_end()
101 ut_asserteq(uts->start.uordblks, end.uordblks); in dm_leak_check_end()
107 static int dm_test_autobind(struct unit_test_state *uts) in dm_test_autobind() argument
109 struct dm_test_state *dms = uts->priv; in dm_test_autobind()
142 static int dm_test_autobind_uclass_pdata_alloc(struct unit_test_state *uts) in dm_test_autobind_uclass_pdata_alloc() argument
171 static int dm_test_autobind_uclass_pdata_valid(struct unit_test_state *uts) in dm_test_autobind_uclass_pdata_valid() argument
[all …]
H A Deth.c22 static int dm_test_eth(struct unit_test_state *uts) in dm_test_eth() argument
42 static int dm_test_eth_alias(struct unit_test_state *uts) in dm_test_eth_alias() argument
66 static int dm_test_eth_prime(struct unit_test_state *uts) in dm_test_eth_prime() argument
100 static int dm_test_eth_act(struct unit_test_state *uts) in dm_test_eth_act() argument
148 static int _dm_test_eth_rotate1(struct unit_test_state *uts) in _dm_test_eth_rotate1() argument
164 static int _dm_test_eth_rotate2(struct unit_test_state *uts) in _dm_test_eth_rotate2() argument
179 static int dm_test_eth_rotate(struct unit_test_state *uts) in dm_test_eth_rotate() argument
194 retval = _dm_test_eth_rotate1(uts); in dm_test_eth_rotate()
207 retval = _dm_test_eth_rotate2(uts); in dm_test_eth_rotate()
220 static int _dm_test_net_retry(struct unit_test_state *uts) in _dm_test_net_retry() argument
[all …]
H A Dpmic.c26 static inline int power_pmic_get(struct unit_test_state *uts, char *name) in power_pmic_get() argument
40 static int dm_test_power_pmic_get(struct unit_test_state *uts) in dm_test_power_pmic_get() argument
42 power_pmic_get(uts, "sandbox_pmic"); in dm_test_power_pmic_get()
49 static int dm_test_power_pmic_mc34708_get(struct unit_test_state *uts) in dm_test_power_pmic_mc34708_get() argument
51 power_pmic_get(uts, "pmic@41"); in dm_test_power_pmic_mc34708_get()
59 static int dm_test_power_pmic_io(struct unit_test_state *uts) in dm_test_power_pmic_io() argument
89 static int dm_test_power_pmic_mc34708_regs_check(struct unit_test_state *uts) in dm_test_power_pmic_mc34708_regs_check() argument
105 static int dm_test_power_pmic_mc34708_rw_val(struct unit_test_state *uts) in dm_test_power_pmic_mc34708_rw_val() argument
H A Dtest-fdt.c156 int dm_check_devices(struct unit_test_state *uts, int num_devices) in dm_check_devices() argument
183 ut_assert(!dm_check_operations(uts, dev, base, in dm_check_devices()
191 static int dm_test_fdt(struct unit_test_state *uts) in dm_test_fdt() argument
216 ut_assertok(dm_check_devices(uts, num_devices)); in dm_test_fdt()
222 static int dm_test_alias_highest_id(struct unit_test_state *uts) in dm_test_alias_highest_id() argument
245 static int dm_test_fdt_pre_reloc(struct unit_test_state *uts) in dm_test_fdt_pre_reloc() argument
268 static int dm_test_fdt_uclass_seq(struct unit_test_state *uts) in dm_test_fdt_uclass_seq() argument
323 static int dm_test_fdt_offset(struct unit_test_state *uts) in dm_test_fdt_offset() argument
356 static int dm_test_first_next_device(struct unit_test_state *uts) in dm_test_first_next_device() argument
406 static int check_devices(struct unit_test_state *uts, in check_devices() argument
[all …]
H A Dbus.c118 static int dm_test_bus_children(struct unit_test_state *uts) in dm_test_bus_children() argument
134 ut_assert(!dm_check_devices(uts, num_devices)); in dm_test_bus_children()
141 static int dm_test_bus_children_funcs(struct unit_test_state *uts) in dm_test_bus_children_funcs() argument
179 static int dm_test_bus_children_of_offset(struct unit_test_state *uts) in dm_test_bus_children_of_offset() argument
204 static int dm_test_bus_children_iterators(struct unit_test_state *uts) in dm_test_bus_children_iterators() argument
235 static int test_bus_parent_data(struct unit_test_state *uts) in test_bus_parent_data() argument
295 static int dm_test_bus_parent_data(struct unit_test_state *uts) in dm_test_bus_parent_data() argument
297 return test_bus_parent_data(uts); in dm_test_bus_parent_data()
302 static int dm_test_bus_parent_data_uclass(struct unit_test_state *uts) in dm_test_bus_parent_data_uclass() argument
320 ret = test_bus_parent_data(uts); in dm_test_bus_parent_data_uclass()
[all …]
H A Dadc.c22 static int dm_test_adc_bind(struct unit_test_state *uts) in dm_test_adc_bind() argument
37 static int dm_test_adc_wrong_channel_selection(struct unit_test_state *uts) in dm_test_adc_wrong_channel_selection() argument
48 static int dm_test_adc_supply(struct unit_test_state *uts) in dm_test_adc_supply() argument
91 static int dm_test_adc_single_channel_conversion(struct unit_test_state *uts) in dm_test_adc_single_channel_conversion() argument
109 static int dm_test_adc_multi_channel_conversion(struct unit_test_state *uts) in dm_test_adc_multi_channel_conversion() argument
132 static int dm_test_adc_single_channel_shot(struct unit_test_state *uts) in dm_test_adc_single_channel_shot() argument
148 static int dm_test_adc_multi_channel_shot(struct unit_test_state *uts) in dm_test_adc_multi_channel_shot() argument
179 static int dm_test_adc_raw_to_uV(struct unit_test_state *uts) in dm_test_adc_raw_to_uV() argument
H A Dgpio.c16 static int dm_test_gpio(struct unit_test_state *uts) in dm_test_gpio() argument
110 static int dm_test_gpio_anon(struct unit_test_state *uts) in dm_test_gpio_anon() argument
132 static int dm_test_gpio_requestf(struct unit_test_state *uts) in dm_test_gpio_requestf() argument
150 static int dm_test_gpio_copy(struct unit_test_state *uts) in dm_test_gpio_copy() argument
172 static int dm_test_gpio_leak(struct unit_test_state *uts) in dm_test_gpio_leak() argument
174 ut_assertok(dm_test_gpio(uts)); in dm_test_gpio_leak()
175 ut_assertok(dm_test_gpio_anon(uts)); in dm_test_gpio_leak()
176 ut_assertok(dm_test_gpio_requestf(uts)); in dm_test_gpio_leak()
177 ut_assertok(dm_leak_check_end(uts)); in dm_test_gpio_leak()
184 static int dm_test_gpio_phandles(struct unit_test_state *uts) in dm_test_gpio_phandles() argument
H A Dregulator.c49 static int dm_test_power_regulator_get(struct unit_test_state *uts) in dm_test_power_regulator_get() argument
94 static int dm_test_power_regulator_set_get_voltage(struct unit_test_state *uts) in dm_test_power_regulator_set_get_voltage() argument
121 static int dm_test_power_regulator_set_get_current(struct unit_test_state *uts) in dm_test_power_regulator_set_get_current() argument
160 static int dm_test_power_regulator_set_get_enable(struct unit_test_state *uts) in dm_test_power_regulator_set_get_enable() argument
180 int dm_test_power_regulator_set_enable_if_allowed(struct unit_test_state *uts) in dm_test_power_regulator_set_enable_if_allowed() argument
200 static int dm_test_power_regulator_set_get_mode(struct unit_test_state *uts) in dm_test_power_regulator_set_get_mode() argument
219 static int dm_test_power_regulator_autoset(struct unit_test_state *uts) in dm_test_power_regulator_autoset() argument
299 static int dm_test_power_regulator_autoset_list(struct unit_test_state *uts) in dm_test_power_regulator_autoset_list() argument
H A Dled.c14 static int dm_test_led_base(struct unit_test_state *uts) in dm_test_led_base() argument
31 static int dm_test_led_default_state(struct unit_test_state *uts) in dm_test_led_default_state() argument
50 static int dm_test_led_gpio(struct unit_test_state *uts) in dm_test_led_gpio() argument
75 static int dm_test_led_toggle(struct unit_test_state *uts) in dm_test_led_toggle() argument
100 static int dm_test_led_label(struct unit_test_state *uts) in dm_test_led_label() argument
122 static int dm_test_led_blink(struct unit_test_state *uts) in dm_test_led_blink() argument
H A Dusb.c19 static int dm_test_usb_base(struct unit_test_state *uts) in dm_test_usb_base() argument
36 static int dm_test_usb_flash(struct unit_test_state *uts) in dm_test_usb_flash() argument
59 static int dm_test_usb_multi(struct unit_test_state *uts) in dm_test_usb_multi() argument
100 static int dm_test_usb_stop(struct unit_test_state *uts) in dm_test_usb_stop() argument
118 static int dm_test_usb_keyb(struct unit_test_state *uts) in dm_test_usb_keyb() argument
H A Di2c.c24 static int dm_test_i2c_find(struct unit_test_state *uts) in dm_test_i2c_find() argument
45 static int dm_test_i2c_read_write(struct unit_test_state *uts) in dm_test_i2c_read_write() argument
62 static int dm_test_i2c_speed(struct unit_test_state *uts) in dm_test_i2c_speed() argument
84 static int dm_test_i2c_offset_len(struct unit_test_state *uts) in dm_test_i2c_offset_len() argument
101 static int dm_test_i2c_probe_empty(struct unit_test_state *uts) in dm_test_i2c_probe_empty() argument
116 static int dm_test_i2c_bytewise(struct unit_test_state *uts) in dm_test_i2c_bytewise() argument
171 static int dm_test_i2c_offset(struct unit_test_state *uts) in dm_test_i2c_offset() argument
/openbmc/u-boot/include/test/
H A Dut.h24 void ut_fail(struct unit_test_state *uts, const char *fname, int line,
37 void ut_failf(struct unit_test_state *uts, const char *fname, int line,
45 ut_fail(uts, __FILE__, __LINE__, __func__, #cond); \
52 ut_failf(uts, __FILE__, __LINE__, __func__, #cond, \
62 ut_failf(uts, __FILE__, __LINE__, __func__, \
74 ut_failf(uts, __FILE__, __LINE__, __func__, \
91 ut_failf(uts, __FILE__, __LINE__, __func__, \
104 ut_failf(uts, __FILE__, __LINE__, __func__, \
116 ut_failf(uts, __FILE__, __LINE__, __func__, \
128 ut_failf(uts, __FILE__, __LINE__, __func__, \
[all …]
/openbmc/u-boot/test/lib/
H A Dlmb.c11 static int check_lmb(struct unit_test_state *uts, struct lmb *lmb, in check_lmb() argument
42 ut_assert(!check_lmb(uts, lmb, ram_base, ram_size, \
50 static int test_multi_alloc(struct unit_test_state *uts, const phys_addr_t ram, in test_multi_alloc() argument
172 static int test_multi_alloc_512mb(struct unit_test_state *uts, in test_multi_alloc_512mb() argument
175 return test_multi_alloc(uts, ram, 0x20000000, 0, 0, ram + 0x10000000); in test_multi_alloc_512mb()
178 static int test_multi_alloc_512mb_x2(struct unit_test_state *uts, in test_multi_alloc_512mb_x2() argument
182 return test_multi_alloc(uts, ram, 0x20000000, ram0, 0x20000000, in test_multi_alloc_512mb_x2()
187 static int lib_test_lmb_simple(struct unit_test_state *uts) in lib_test_lmb_simple() argument
192 ret = test_multi_alloc_512mb(uts, 0x40000000); in lib_test_lmb_simple()
197 return test_multi_alloc_512mb(uts, 0xE0000000); in lib_test_lmb_simple()
[all …]
H A Dstring.c51 static int test_memset(struct unit_test_state *uts, u8 buf[], u8 mask, in test_memset() argument
74 static int lib_memset(struct unit_test_state *uts) in lib_memset() argument
85 if (test_memset(uts, buf, MASK, offset, len)) { in lib_memset()
108 static int test_memmove(struct unit_test_state *uts, u8 buf[], u8 mask, in test_memmove() argument
131 static int lib_memcpy(struct unit_test_state *uts) in lib_memcpy() argument
147 if (test_memmove(uts, buf2, MASK, offset1, in lib_memcpy()
169 static int lib_memmove(struct unit_test_state *uts) in lib_memmove() argument
182 if (test_memmove(uts, buf, 0, offset1, offset2, in lib_memmove()
/openbmc/u-boot/test/env/
H A Dhashtable.c17 static int htab_fill(struct unit_test_state *uts, in htab_fill() argument
37 static int htab_check_fill(struct unit_test_state *uts, in htab_check_fill() argument
60 static int htab_create_delete(struct unit_test_state *uts, in htab_create_delete() argument
89 static int env_test_htab_fill(struct unit_test_state *uts) in env_test_htab_fill() argument
96 ut_assertok(htab_fill(uts, &htab, SIZE)); in env_test_htab_fill()
97 ut_assertok(htab_check_fill(uts, &htab, SIZE)); in env_test_htab_fill()
109 static int env_test_htab_deletes(struct unit_test_state *uts) in env_test_htab_deletes() argument
116 ut_assertok(htab_fill(uts, &htab, SIZE / 2)); in env_test_htab_deletes()
117 ut_assertok(htab_create_delete(uts, &htab, ITERATIONS)); in env_test_htab_deletes()
118 ut_assertok(htab_check_fill(uts, &htab, SIZE / 2)); in env_test_htab_deletes()
/openbmc/u-boot/test/overlay/
H A Dcmd_ut_overlay.c70 static int fdt_overlay_change_int_property(struct unit_test_state *uts) in fdt_overlay_change_int_property() argument
82 static int fdt_overlay_change_str_property(struct unit_test_state *uts) in fdt_overlay_change_str_property() argument
94 static int fdt_overlay_add_str_property(struct unit_test_state *uts) in fdt_overlay_add_str_property() argument
106 static int fdt_overlay_add_node_by_phandle(struct unit_test_state *uts) in fdt_overlay_add_node_by_phandle() argument
119 static int fdt_overlay_add_node_by_path(struct unit_test_state *uts) in fdt_overlay_add_node_by_path() argument
132 static int fdt_overlay_add_subnode_property(struct unit_test_state *uts) in fdt_overlay_add_subnode_property() argument
146 static int fdt_overlay_local_phandle(struct unit_test_state *uts) in fdt_overlay_local_phandle() argument
170 static int fdt_overlay_local_phandles(struct unit_test_state *uts) in fdt_overlay_local_phandles() argument
200 static int fdt_overlay_stacked(struct unit_test_state *uts) in fdt_overlay_stacked() argument
217 struct unit_test_state *uts; in do_ut_overlay() local
[all …]
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/
H A D0007-FF-A-v15-arm_ffa-introduce-sandbox-test-cases-for-UC.patch99 +static int check_fwk_version(struct ffa_priv *uc_priv, struct unit_test_state *uts)
112 +static int check_endpoint_id(struct ffa_priv *uc_priv, struct unit_test_state *uts)
119 +static int check_rxtxbuf(struct ffa_priv *uc_priv, struct unit_test_state *uts)
127 +static int check_features(struct ffa_priv *uc_priv, struct unit_test_state *uts)
138 + struct unit_test_state *uts)
154 +static int check_rxbuf_release_flag(u8 rxbuf_owned, struct unit_test_state *uts)
161 +static int test_ffa_msg_send_direct_req(u16 part_id, struct unit_test_state *uts)
178 + struct unit_test_state *uts)
211 + test_ffa_msg_send_direct_req(descs[i].info.id, uts);
222 +static int dm_test_ffa_ack(struct unit_test_state *uts)
[all …]
/openbmc/u-boot/include/dm/
H A Dtest.h185 int dm_check_operations(struct unit_test_state *uts, struct udevice *dev,
195 int dm_check_devices(struct unit_test_state *uts, int num_devices);
205 void dm_leak_check_start(struct unit_test_state *uts);
215 */int dm_leak_check_end(struct unit_test_state *uts);
/openbmc/linux/tools/power/cpupower/utils/
H A Dcpupower-info.c34 struct utsname uts; in cmd_info() local
44 ret = uname(&uts); in cmd_info()
45 if (!ret && (!strcmp(uts.machine, "ppc64le") || in cmd_info()
46 !strcmp(uts.machine, "ppc64"))) { in cmd_info()

1234