/external/u-boot/test/ |
D | compression.c | 123 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 …]
|
D | ut.c | 14 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()
|
D | cmd_ut.c | 17 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()
|
/external/u-boot/test/overlay/ |
D | cmd_ut_overlay.c | 67 static int fdt_overlay_change_int_property(struct unit_test_state *uts) in fdt_overlay_change_int_property() argument 69 void *fdt = uts->priv; in fdt_overlay_change_int_property() 80 static int fdt_overlay_change_str_property(struct unit_test_state *uts) in fdt_overlay_change_str_property() argument 82 void *fdt = uts->priv; in fdt_overlay_change_str_property() 93 static int fdt_overlay_add_str_property(struct unit_test_state *uts) in fdt_overlay_add_str_property() argument 95 void *fdt = uts->priv; in fdt_overlay_add_str_property() 106 static int fdt_overlay_add_node_by_phandle(struct unit_test_state *uts) in fdt_overlay_add_node_by_phandle() argument 108 void *fdt = uts->priv; in fdt_overlay_add_node_by_phandle() 120 static int fdt_overlay_add_node_by_path(struct unit_test_state *uts) in fdt_overlay_add_node_by_path() argument 122 void *fdt = uts->priv; in fdt_overlay_add_node_by_path() [all …]
|
/external/u-boot/test/dm/ |
D | test-main.c | 24 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 …]
|
D | video.c | 27 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 …]
|
D | core.c | 73 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 …]
|
D | eth.c | 22 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 …]
|
D | pmic.c | 26 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
|
D | bus.c | 105 static int dm_test_bus_children(struct unit_test_state *uts) in dm_test_bus_children() argument 121 ut_assert(!dm_check_devices(uts, num_devices)); in dm_test_bus_children() 128 static int dm_test_bus_children_funcs(struct unit_test_state *uts) in dm_test_bus_children_funcs() argument 166 static int dm_test_bus_children_of_offset(struct unit_test_state *uts) in dm_test_bus_children_of_offset() argument 191 static int dm_test_bus_children_iterators(struct unit_test_state *uts) in dm_test_bus_children_iterators() argument 222 static int test_bus_parent_data(struct unit_test_state *uts) in test_bus_parent_data() argument 282 static int dm_test_bus_parent_data(struct unit_test_state *uts) in dm_test_bus_parent_data() argument 284 return test_bus_parent_data(uts); in dm_test_bus_parent_data() 289 static int dm_test_bus_parent_data_uclass(struct unit_test_state *uts) in dm_test_bus_parent_data_uclass() argument 302 ret = test_bus_parent_data(uts); in dm_test_bus_parent_data_uclass() [all …]
|
D | test-fdt.c | 132 int dm_check_devices(struct unit_test_state *uts, int num_devices) in dm_check_devices() argument 159 ut_assert(!dm_check_operations(uts, dev, base, in dm_check_devices() 167 static int dm_test_fdt(struct unit_test_state *uts) in dm_test_fdt() argument 192 ut_assertok(dm_check_devices(uts, num_devices)); in dm_test_fdt() 198 static int dm_test_fdt_pre_reloc(struct unit_test_state *uts) in dm_test_fdt_pre_reloc() argument 217 static int dm_test_fdt_uclass_seq(struct unit_test_state *uts) in dm_test_fdt_uclass_seq() argument 272 static int dm_test_fdt_offset(struct unit_test_state *uts) in dm_test_fdt_offset() argument 305 static int dm_test_first_next_device(struct unit_test_state *uts) in dm_test_first_next_device() argument 355 static int check_devices(struct unit_test_state *uts, in check_devices() argument 378 static int dm_test_first_next_ok_device(struct unit_test_state *uts) in dm_test_first_next_ok_device() argument [all …]
|
D | adc.c | 22 static int dm_test_adc_bind(struct unit_test_state *uts) in dm_test_adc_bind() argument 33 static int dm_test_adc_wrong_channel_selection(struct unit_test_state *uts) in dm_test_adc_wrong_channel_selection() argument 44 static int dm_test_adc_supply(struct unit_test_state *uts) in dm_test_adc_supply() argument 87 static int dm_test_adc_single_channel_conversion(struct unit_test_state *uts) in dm_test_adc_single_channel_conversion() argument 105 static int dm_test_adc_multi_channel_conversion(struct unit_test_state *uts) in dm_test_adc_multi_channel_conversion() argument 128 static int dm_test_adc_single_channel_shot(struct unit_test_state *uts) in dm_test_adc_single_channel_shot() argument 144 static int dm_test_adc_multi_channel_shot(struct unit_test_state *uts) in dm_test_adc_multi_channel_shot() argument
|
D | gpio.c | 16 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
|
D | led.c | 14 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 47 static int dm_test_led_gpio(struct unit_test_state *uts) in dm_test_led_gpio() argument 72 static int dm_test_led_toggle(struct unit_test_state *uts) in dm_test_led_toggle() argument 97 static int dm_test_led_label(struct unit_test_state *uts) in dm_test_led_label() argument 119 static int dm_test_led_blink(struct unit_test_state *uts) in dm_test_led_blink() argument
|
D | regulator.c | 49 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 179 static int dm_test_power_regulator_set_get_mode(struct unit_test_state *uts) in dm_test_power_regulator_set_get_mode() argument 198 static int dm_test_power_regulator_autoset(struct unit_test_state *uts) in dm_test_power_regulator_autoset() argument 278 static int dm_test_power_regulator_autoset_list(struct unit_test_state *uts) in dm_test_power_regulator_autoset_list() argument
|
D | usb.c | 19 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
|
D | i2c.c | 24 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
|
D | blk.c | 16 static int dm_test_blk_base(struct unit_test_state *uts) in dm_test_blk_base() argument 69 static int dm_test_blk_usb(struct unit_test_state *uts) in dm_test_blk_usb() argument 98 static int dm_test_blk_find(struct unit_test_state *uts) in dm_test_blk_find() argument 119 static int dm_test_blk_devnum(struct unit_test_state *uts) in dm_test_blk_devnum() argument 154 static int dm_test_blk_get_from_parent(struct unit_test_state *uts) in dm_test_blk_get_from_parent() argument
|
/external/u-boot/include/test/ |
D | ut.h | 24 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__, \ 86 ut_failf(uts, __FILE__, __LINE__, __func__, \ 98 ut_failf(uts, __FILE__, __LINE__, __func__, \ 110 ut_failf(uts, __FILE__, __LINE__, __func__, \
|
/external/scapy/test/configs/ |
D | travis.utsc | 3 "*.uts", 4 "../scapy/contrib/*.uts" 8 "../scapy/contrib/*.uts": "load_contrib(\"%name%\")", 9 "cert.uts": "load_layer(\"tls\")", 10 "sslv2.uts": "load_layer(\"tls\")", 11 "tls*.uts": "load_layer(\"tls\")"
|
D | windows2.utsc | 3 "*.uts", 4 "..\\scapy\\contrib\\*.uts" 8 "..\\scapy\\contrib\\*.uts": "load_contrib(\"%name%\")", 9 "cert.uts": "load_layer(\"tls\")", 10 "sslv2.uts": "load_layer(\"tls\")", 11 "tls*.uts": "load_layer(\"tls\")"
|
D | windows.utsc | 3 "test\\*.uts", 4 "scapy\\contrib\\*.uts" 8 "scapy\\contrib\\*.uts": "load_contrib(\"%name%\")", 9 "test\\cert.uts": "load_layer(\"tls\")", 10 "test\\sslv2.uts": "load_layer(\"tls\")", 11 "test\\tls*.uts": "load_layer(\"tls\")"
|
/external/ltp/testcases/kernel/syscalls/setns/ |
D | setns02.c | 66 struct utsname uts, uts_parent; in do_child_newuts() local 76 if (uname(&uts) == -1) in do_child_newuts() 79 tst_resm(TINFO, CP"hostname changed to: %s", uts.nodename); in do_child_newuts() 80 if (strcmp(uts_parent.nodename, uts.nodename) == 0) { in do_child_newuts() 92 if (uname(&uts) == -1) in do_child_newuts() 95 tst_resm(TINFO, CP"hostname: %s", uts.nodename); in do_child_newuts() 96 if (strcmp(uts_parent.nodename, uts.nodename) != 0) { in do_child_newuts()
|
/external/u-boot/include/dm/ |
D | test.h | 184 int dm_check_operations(struct unit_test_state *uts, struct udevice *dev, 194 int dm_check_devices(struct unit_test_state *uts, int num_devices); 204 void dm_leak_check_start(struct unit_test_state *uts); 214 */int dm_leak_check_end(struct unit_test_state *uts);
|
/external/iperf3/src/ |
D | iperf_util.c | 230 struct utsname uts; in get_system_info() local 233 uname(&uts); in get_system_info() 235 snprintf(buf, sizeof(buf), "%s %s %s %s %s", uts.sysname, uts.nodename, in get_system_info() 236 uts.release, uts.version, uts.machine); in get_system_info()
|