/openbmc/u-boot/test/dm/ |
H A D | core.c | 149 ut_assert(uc); in dm_test_autobind_uclass_pdata_alloc() 160 ut_assert(dev); in dm_test_autobind_uclass_pdata_alloc() 183 ut_assert(dev); in dm_test_autobind_uclass_pdata_valid() 206 ut_assert(uc); in dm_test_autoprobe() 222 ut_assert(dev); in dm_test_autoprobe() 228 ut_assert(dev); in dm_test_autoprobe() 250 ut_assert(dev); in dm_test_autoprobe() 273 ut_assert(dev); in dm_test_platdata() 295 ut_assert(dev); in dm_test_lifecycle() 347 ut_assert(dev); in dm_test_ordering() [all …]
|
H A D | tee.c | 67 ut_assert(dev); in test_tee() 69 ut_assert(!state->session); in test_tee() 72 ut_assert(!rc); in test_tee() 76 ut_assert(!rc); in test_tee() 79 ut_assert(!rc); in test_tee() 80 ut_assert(!state->session); in test_tee() 82 ut_assert(!state->num_shms); in test_tee() 84 ut_assert(!rc); in test_tee() 85 ut_assert(state->num_shms == 1); in test_tee() 88 ut_assert(!rc); in test_tee() [all …]
|
H A D | test-uclass.c | 35 ut_assert(!device_active(dev)); in test_post_bind() 38 ut_assert(uc_pdata); in test_post_bind() 59 ut_assert(priv); in test_pre_probe() 60 ut_assert(device_active(dev)); in test_pre_probe() 75 ut_assert(priv); in test_post_probe() 76 ut_assert(device_active(dev)); in test_post_probe() 85 ut_assert(pdata); in test_post_probe() 86 ut_assert(prev_uc_priv); in test_post_probe() 103 ut_assert(uc->priv); in test_init()
|
H A D | eth.c | 280 ut_assert(arp_is_waiting()); in sb_check_arp_reply() 283 ut_assert(memcmp(eth->et_src, net_ethaddr, ARP_HLEN) == 0); in sb_check_arp_reply() 285 ut_assert(eth->et_protlen == htons(PROT_ARP)); in sb_check_arp_reply() 287 ut_assert(arp->ar_hrd == htons(ARP_ETHER)); in sb_check_arp_reply() 288 ut_assert(arp->ar_pro == htons(PROT_IP)); in sb_check_arp_reply() 289 ut_assert(arp->ar_hln == ARP_HLEN); in sb_check_arp_reply() 290 ut_assert(arp->ar_pln == ARP_PLEN); in sb_check_arp_reply() 294 ut_assert(net_read_ip(&arp->ar_tpa).s_addr == in sb_check_arp_reply() 371 ut_assert(arp_is_waiting()); in sb_check_ping_reply() 376 ut_assert(eth->et_protlen == htons(PROT_IP)); in sb_check_ping_reply() [all …]
|
H A D | ofnode.c | 13 ut_assert(ofnode_valid(root_node)); in dm_test_ofnode_compatible() 14 ut_assert(ofnode_device_is_compatible(root_node, "sandbox")); in dm_test_ofnode_compatible() 29 ut_assert(ofnode_valid(node)); in dm_test_ofnode_by_prop_value() 31 ut_assert(str && !strcmp(str, propval)); in dm_test_ofnode_by_prop_value() 40 ut_assert(str && !strcmp(str, propval)); in dm_test_ofnode_by_prop_value() 53 ut_assert(ofnode_valid(node)); in dm_test_ofnode_fmap()
|
H A D | test-fdt.c | 170 ut_assert(!ret); in dm_check_devices() 200 ut_assert(!ret); in dm_test_fdt() 203 ut_assert(!ret); in dm_test_fdt() 211 ut_assert(!ret); in dm_test_fdt() 212 ut_assert(!dev_get_priv(dev)); in dm_test_fdt() 213 ut_assert(dev->platdata); in dm_test_fdt() 251 ut_assert(!ret); in dm_test_fdt_pre_reloc() 254 ut_assert(!ret); in dm_test_fdt_pre_reloc() 330 ut_assert(node > 0); in dm_test_fdt_offset() 337 ut_assert(node > 0); in dm_test_fdt_offset() [all …]
|
H A D | syscon.c | 59 ut_assert(map); in dm_test_syscon_by_phandle() 60 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle() 66 ut_assert(map); in dm_test_syscon_by_phandle() 67 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle() 70 ut_assert(IS_ERR(syscon_regmap_lookup_by_phandle(dev, "not-present"))); in dm_test_syscon_by_phandle()
|
H A D | bus.c | 153 ut_assert(dev->flags & DM_FLAG_ACTIVATED); in dm_test_bus_children_funcs() 190 ut_assert(node > 0); in dm_test_bus_children_of_offset() 249 ut_assert(NULL != parent_data); in test_bus_parent_data() 260 ut_assert(NULL != parent_data); in test_bus_parent_data() 388 ut_assert(plat != NULL); in test_bus_parent_platdata() 413 ut_assert(plat != NULL); in test_bus_parent_platdata() 433 ut_assert(plat != NULL); in test_bus_parent_platdata() 491 ut_assert(plat != NULL); in dm_test_bus_child_post_bind() 514 ut_assert(plat != NULL); in dm_test_bus_child_post_bind_uclass() 549 ut_assert(priv != NULL); in dm_test_bus_child_pre_probe_uclass() [all …]
|
H A D | regulator.c | 79 ut_assert(uc_pdata); in dm_test_power_regulator_get() 106 ut_assert(uc_pdata); in dm_test_power_regulator_set_get_voltage() 112 ut_assert(val_get >= 0); in dm_test_power_regulator_set_get_voltage() 133 ut_assert(uc_pdata); in dm_test_power_regulator_set_get_current() 139 ut_assert(val_get >= 0); in dm_test_power_regulator_set_get_current() 148 ut_assert(uc_pdata); in dm_test_power_regulator_set_get_current() 324 ut_assert(dev_list[i]); in dm_test_power_regulator_autoset_list()
|
H A D | phy.c | 39 ut_assert(phy1_method1.id != phy2.id); in dm_test_phy_base() 45 ut_assert(phy2.dev != phy3.dev); in dm_test_phy_base() 84 ut_assert(generic_phy_power_on(&phy1) != 0); in dm_test_phy_ops() 85 ut_assert(generic_phy_power_off(&phy1) != 0); in dm_test_phy_ops()
|
H A D | serial.c | 28 ut_assert(value_serial == SERIAL_DEFAULT_CONFIG); in dm_test_serial() 30 ut_assert(info_serial.type == SERIAL_CHIP_UNKNOWN); in dm_test_serial() 31 ut_assert(info_serial.addr == SERIAL_DEFAULT_ADDRESS); in dm_test_serial()
|
H A D | board.c | 23 ut_assert(board); in dm_test_board() 26 ut_assert(!called_detect); in dm_test_board() 31 ut_assert(called_detect); in dm_test_board()
|
H A D | video.c | 93 ut_assert(!device_active(dev)); in select_vidconsole() 210 ut_assert(!device_active(dev)); in check_vidconsole_output() 285 ut_assert(buf != NULL); in read_file() 287 ut_assert(fd >= 0); in read_file() 290 ut_assert(size >= 0); in read_file() 291 ut_assert(size < buf_size); in read_file() 352 ut_assert(!device_active(dev)); in dm_test_video_truetype_scroll() 373 ut_assert(!device_active(dev)); in dm_test_video_truetype_bs()
|
H A D | test-driver.c | 38 ut_assert(!dev_get_priv(dev)); in test_bind() 49 ut_assert(priv); in test_probe() 59 ut_assert(dev_get_priv(dev)); in test_remove() 68 ut_assert(!dev->priv); in test_unbind()
|
H A D | bootcount.c | 21 ut_assert(val == 0); in dm_test_bootcount() 24 ut_assert(val == 0xab); in dm_test_bootcount()
|
H A D | rtc.c | 65 ut_assert(emul != NULL); in dm_test_rtc_set_get() 130 ut_assert(emul != NULL); in dm_test_rtc_reset() 159 ut_assert(emul1 != NULL); in dm_test_rtc_dual() 161 ut_assert(emul2 != NULL); in dm_test_rtc_dual()
|
H A D | clk.c | 46 ut_assert(IS_ERR_VALUE(rate)); in dm_test_clk() 70 ut_assert(IS_ERR_VALUE(rate)); in dm_test_clk() 72 ut_assert(IS_ERR_VALUE(rate)); in dm_test_clk()
|
H A D | regmap.c | 51 ut_assert(ofnode_valid(node)); in dm_test_regmap_base() 168 ut_assert(get_timer(start) > (5 * CONFIG_SYS_HZ)); in dm_test_regmap_poll()
|
H A D | cpu.c | 26 ut_assert(dev->flags & DM_FLAG_ACTIVATED); in dm_test_cpu()
|
H A D | axi.c | 49 ut_assert(device_active(store)); in dm_test_axi_store()
|
/openbmc/u-boot/test/ |
H A D | unicode_ut.c | 70 ut_assert(r == copy); in unicode_test_u16_strcpy() 87 ut_assert(!buf[9]); in unicode_test_string16() 93 ut_assert(!buf[17]); in unicode_test_string16() 99 ut_assert(!buf[14]); in unicode_test_string16() 302 ut_assert(!buf[4]); in unicode_test_utf8_utf16_strncpy() 309 ut_assert(buf[4]); in unicode_test_utf8_utf16_strncpy() 316 ut_assert(!buf[2]); in unicode_test_utf8_utf16_strncpy() 323 ut_assert(!buf[4]); in unicode_test_utf8_utf16_strncpy() 330 ut_assert(buf[5]); in unicode_test_utf8_utf16_strncpy() 498 ut_assert(buf[4]); in unicode_test_utf16_utf8_strncpy() [all …]
|
/openbmc/u-boot/test/overlay/ |
H A D | cmd_ut_overlay.c | 111 ut_assert(off >= 0); in fdt_overlay_add_node_by_phandle() 124 ut_assert(off >= 0); in fdt_overlay_add_node_by_path() 137 ut_assert(off >= 0); in fdt_overlay_add_subnode_property() 153 ut_assert(off >= 0); in fdt_overlay_local_phandle() 156 ut_assert(local_phandle); in fdt_overlay_local_phandle() 177 ut_assert(off >= 0); in fdt_overlay_local_phandles() 180 ut_assert(local_phandle); in fdt_overlay_local_phandles() 183 ut_assert(off >= 0); in fdt_overlay_local_phandles() 186 ut_assert(test_phandle); in fdt_overlay_local_phandles()
|
/openbmc/u-boot/test/lib/ |
H A D | lmb.c | 63 ut_assert(ram_end == 0 || ram_end > ram); in test_multi_alloc() 64 ut_assert(alloc_64k_end > alloc_64k_addr); in test_multi_alloc() 66 ut_assert(alloc_64k_addr >= ram + 8); in test_multi_alloc() 67 ut_assert(alloc_64k_end <= ram_end - 8); in test_multi_alloc() 230 ut_assert(ram_end == 0 || ram_end > ram); in test_bigblock() 298 ut_assert(ram_end == 0 || ram_end > ram); in test_noreserved() 308 ut_assert(a != 0); in test_noreserved() 313 ut_assert(b != 0); in test_noreserved() 334 ut_assert(a == b); in test_noreserved() 447 ut_assert(ret >= 0); in lib_test_lmb_overlapping_reserve() [all …]
|
/openbmc/u-boot/test/env/ |
H A D | hashtable.c | 52 ut_assert(ritem); in htab_check_fill() 78 ut_assert(ritem); in htab_create_delete()
|
/openbmc/u-boot/include/test/ |
H A D | ut.h | 43 #define ut_assert(cond) \ macro
|