/u-boot/test/dm/ |
A D | tee.c | 114 ut_assert(dev); in test_tee() 119 ut_assert(!rc); in test_tee() 123 ut_assert(!rc); in test_tee() 126 ut_assert(!rc); in test_tee() 131 ut_assert(!rc); in test_tee() 135 ut_assert(!rc); in test_tee() 171 ut_assert(dev); in test_tee_rpc() 177 ut_assert(!rc); in test_tee_rpc() 184 ut_assert(!rc); in test_tee_rpc() 190 ut_assert(!rc); in test_tee_rpc() [all …]
|
A D | fdtdec.c | 48 ut_assert(offset > 0); in dm_test_fdtdec_set_carveout() 88 ut_assert(parent > 0); in dm_test_fdtdec_add_reserved_memory() 90 ut_assert(subnode > 0); in dm_test_fdtdec_add_reserved_memory() 95 ut_assert(addr == resv.start); in dm_test_fdtdec_add_reserved_memory() 96 ut_assert(size == resv.end - resv.start + 1); in dm_test_fdtdec_add_reserved_memory() 100 ut_assert(subnode < 0); in dm_test_fdtdec_add_reserved_memory() 107 ut_assert(subnode > 0); in dm_test_fdtdec_add_reserved_memory() 110 ut_assert(fdt_getprop(blob, subnode, "no-map", NULL) > 0); in dm_test_fdtdec_add_reserved_memory() 113 ut_assert(phandle != phandle1); in dm_test_fdtdec_add_reserved_memory() 124 ut_assert(subnode < 0); in dm_test_fdtdec_add_reserved_memory() [all …]
|
A D | test-fdt.c | 130 ut_assert(!ret); in dm_check_devices() 160 ut_assert(!ret); in dm_test_fdt() 163 ut_assert(!ret); in dm_test_fdt() 171 ut_assert(!ret); in dm_test_fdt() 172 ut_assert(!dev_get_priv(dev)); in dm_test_fdt() 173 ut_assert(dev_get_plat(dev)); in dm_test_fdt() 211 ut_assert(!ret); in dm_test_fdt_pre_reloc() 214 ut_assert(!ret); in dm_test_fdt_pre_reloc() 373 ut_assert(node > 0); in dm_test_fdt_offset() 380 ut_assert(node > 0); in dm_test_fdt_offset() [all …]
|
A D | core.c | 160 ut_assert(uc); in dm_test_autobind_uclass_pdata_alloc() 217 ut_assert(uc); in dm_test_autoprobe() 233 ut_assert(dev); in dm_test_autoprobe() 239 ut_assert(dev); in dm_test_autoprobe() 261 ut_assert(dev); in dm_test_autoprobe() 284 ut_assert(dev); in dm_test_plat() 306 ut_assert(dev); in dm_test_lifecycle() 358 ut_assert(dev); in dm_test_ordering() 381 ut_assert(dev); in dm_test_ordering() 844 ut_assert(dev); in dm_test_remove_active_dma() [all …]
|
A D | devres.c | 29 ut_assert(mem_dev > 0); in dm_test_devres_alloc() 33 ut_assert(ptr != NULL); in dm_test_devres_alloc() 35 ut_assert(mem_kmalloc > 0); in dm_test_devres_alloc() 55 ut_assert(mem_dev > 0); in dm_test_devres_free() 58 ut_assert(ptr != NULL); in dm_test_devres_free() 60 ut_assert(mem_kmalloc > 0); in dm_test_devres_free() 84 ut_assert(ptr != NULL); in dm_test_devres_kzalloc() 105 ut_assert(ptr != NULL); in dm_test_devres_kmalloc_array() 127 ut_assert(mem_dev > 0); in dm_test_devres_kcalloc() 131 ut_assert(ptr != NULL); in dm_test_devres_kcalloc() [all …]
|
A D | test-uclass.c | 37 ut_assert(!device_active(dev)); in test_post_bind() 40 ut_assert(uc_pdata); in test_post_bind() 61 ut_assert(priv); in test_pre_probe() 62 ut_assert(device_active(dev)); in test_pre_probe() 77 ut_assert(priv); in test_post_probe() 78 ut_assert(device_active(dev)); in test_post_probe() 87 ut_assert(pdata); in test_post_probe() 88 ut_assert(prev_uc_priv); in test_post_probe() 105 ut_assert(uclass_get_priv(uc)); in test_init()
|
A D | ofnode.c | 15 ut_assert(ofnode_valid(root_node)); in dm_test_ofnode_compatible() 47 ut_assert(ofnode_valid(node)); in dm_test_ofnode_by_prop_value() 71 ut_assert(ofnode_valid(node)); in dm_test_ofnode_fmap() 87 ut_assert(ofnode_valid(node)); in dm_test_ofnode_read() 116 ut_assert(ofnode_valid(node)); in dm_test_ofnode_phandle() 194 ut_assert(ofnode_valid(node)); in dm_test_ofnode_read_chosen() 198 ut_assert(!ofnode_valid(node)); in dm_test_ofnode_read_chosen() 217 ut_assert(ofnode_valid(node)); in dm_test_ofnode_read_aliases() 221 ut_assert(!ofnode_valid(node)); in dm_test_ofnode_read_aliases() 238 ut_assert(ofnode_valid(node)); in dm_test_ofnode_get_child_count() [all …]
|
A D | scmi.c | 136 ut_assert(!ret_dev || ret_dev == 1088); in dm_test_scmi_clocks() 148 ut_assert(!ret_dev || ret_dev == 333); in dm_test_scmi_clocks() 151 ut_assert(!scmi_ctx->agent[0]->clk[0].enabled); in dm_test_scmi_clocks() 152 ut_assert(!scmi_ctx->agent[0]->clk[1].enabled); in dm_test_scmi_clocks() 153 ut_assert(!scmi_ctx->agent[1]->clk[0].enabled); in dm_test_scmi_clocks() 158 ut_assert(!scmi_ctx->agent[0]->clk[0].enabled); in dm_test_scmi_clocks() 159 ut_assert(scmi_ctx->agent[0]->clk[1].enabled); in dm_test_scmi_clocks() 160 ut_assert(scmi_ctx->agent[1]->clk[0].enabled); in dm_test_scmi_clocks() 165 ut_assert(!scmi_ctx->agent[0]->clk[0].enabled); in dm_test_scmi_clocks() 166 ut_assert(!scmi_ctx->agent[0]->clk[1].enabled); in dm_test_scmi_clocks() [all …]
|
A D | syscon.c | 62 ut_assert(map); in dm_test_syscon_by_phandle() 63 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle() 69 ut_assert(map); in dm_test_syscon_by_phandle() 70 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle() 76 ut_assert(map); in dm_test_syscon_by_phandle() 77 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle() 80 ut_assert(IS_ERR(syscon_regmap_lookup_by_phandle(dev, "not-present"))); in dm_test_syscon_by_phandle()
|
A D | mux-mmio.c | 35 ut_assert(map); in dm_test_mux_mmio_select() 79 ut_assert(mux_control_select(ctl0_b, 0)); in dm_test_mux_mmio_select() 82 ut_assert(mux_control_select(ctl0_a, 0)); in dm_test_mux_mmio_select() 108 ut_assert(ctl0_a); in dm_test_devm_mux_mmio() 111 ut_assert(ctl1); in dm_test_devm_mux_mmio() 119 ut_assert(ctl0_b); in dm_test_devm_mux_mmio() 123 ut_assert(mux_control_select(ctl0_b, 0)); in dm_test_devm_mux_mmio() 126 ut_assert(mux_control_select(ctl0_a, 0)); in dm_test_devm_mux_mmio() 131 ut_assert(mux_control_select(ctl0_b, 0)); in dm_test_devm_mux_mmio()
|
A D | bootcount.c | 23 ut_assert(val == 0); in dm_test_bootcount() 26 ut_assert(val == 0xab); in dm_test_bootcount() 31 ut_assert(val == 0); in dm_test_bootcount() 34 ut_assert(val == 0xab); in dm_test_bootcount()
|
A D | serial.c | 30 ut_assert(value_serial == SERIAL_DEFAULT_CONFIG); in dm_test_serial() 32 ut_assert(info_serial.type == SERIAL_CHIP_UNKNOWN); in dm_test_serial() 33 ut_assert(info_serial.addr == SERIAL_DEFAULT_ADDRESS); in dm_test_serial() 34 ut_assert(info_serial.clock == SERIAL_DEFAULT_CLOCK); in dm_test_serial()
|
A D | eth.c | 283 ut_assert(arp_is_waiting()); in sb_check_arp_reply() 288 ut_assert(eth->et_protlen == htons(PROT_ARP)); in sb_check_arp_reply() 290 ut_assert(arp->ar_hrd == htons(ARP_ETHER)); in sb_check_arp_reply() 291 ut_assert(arp->ar_pro == htons(PROT_IP)); in sb_check_arp_reply() 292 ut_assert(arp->ar_hln == ARP_HLEN); in sb_check_arp_reply() 293 ut_assert(arp->ar_pln == ARP_PLEN); in sb_check_arp_reply() 297 ut_assert(net_read_ip(&arp->ar_tpa).s_addr == in sb_check_arp_reply() 374 ut_assert(arp_is_waiting()); in sb_check_ping_reply() 379 ut_assert(eth->et_protlen == htons(PROT_IP)); in sb_check_ping_reply() 381 ut_assert(net_read_ip(&ip->ip_src).s_addr == net_ip.s_addr); in sb_check_ping_reply() [all …]
|
A D | bus.c | 40 ut_assert(!dm_check_devices(uts, num_devices)); in dm_test_bus_children() 97 ut_assert(node > 0); in dm_test_bus_children_of_offset() 156 ut_assert(NULL != parent_data); in test_bus_parent_data() 167 ut_assert(NULL != parent_data); in test_bus_parent_data() 292 ut_assert(plat != NULL); in test_bus_parent_plat() 316 ut_assert(plat != NULL); in test_bus_parent_plat() 335 ut_assert(plat != NULL); in test_bus_parent_plat() 391 ut_assert(plat != NULL); in dm_test_bus_child_post_bind() 412 ut_assert(plat != NULL); in dm_test_bus_child_post_bind_uclass() 445 ut_assert(priv != NULL); in dm_test_bus_child_pre_probe_uclass() [all …]
|
A D | read.c | 25 ut_assert(ofnode_valid(node)); in dm_test_dma_ranges() 34 ut_assert(ofnode_valid(node)); in dm_test_dma_ranges() 43 ut_assert(ofnode_valid(node)); in dm_test_dma_ranges()
|
A D | sysinfo.c | 25 ut_assert(sysinfo); in dm_test_sysinfo() 28 ut_assert(!called_detect); in dm_test_sysinfo() 33 ut_assert(called_detect); in dm_test_sysinfo()
|
A D | regulator.c | 81 ut_assert(uc_pdata); in dm_test_power_regulator_get() 108 ut_assert(uc_pdata); in dm_test_power_regulator_set_get_voltage() 114 ut_assert(val_get >= 0); in dm_test_power_regulator_set_get_voltage() 135 ut_assert(uc_pdata); in dm_test_power_regulator_set_get_current() 141 ut_assert(val_get >= 0); in dm_test_power_regulator_set_get_current() 150 ut_assert(uc_pdata); in dm_test_power_regulator_set_get_current() 234 ut_assert(uc_pdata); in dm_test_power_regulator_set_get_suspend_voltage() 242 ut_assert(val_get >= 0); in dm_test_power_regulator_set_get_suspend_voltage() 383 ut_assert(dev_list[i]); in dm_test_power_regulator_autoset_list()
|
A D | phys2bus.c | 23 ut_assert(ofnode_valid(node)); in dm_test_phys_to_bus() 30 ut_assert(ofnode_valid(node)); in dm_test_phys_to_bus()
|
A D | test-driver.c | 41 ut_assert(!dev_get_priv(dev)); in test_bind() 52 ut_assert(priv); in test_probe() 62 ut_assert(dev_get_priv(dev)); in test_remove() 71 ut_assert(!dev_get_priv(dev)); in test_unbind()
|
A D | phy.c | 41 ut_assert(phy1_method1.id != phy2.id); in dm_test_phy_base() 47 ut_assert(phy2.dev != phy3.dev); in dm_test_phy_base() 86 ut_assert(generic_phy_power_on(&phy1) != 0); in dm_test_phy_ops() 87 ut_assert(generic_phy_power_off(&phy1) != 0); in dm_test_phy_ops()
|
A D | video.c | 109 ut_assert(!device_active(dev)); in select_vidconsole() 219 ut_assert(!device_active(dev)); in check_vidconsole_output() 294 ut_assert(buf != NULL); in read_file() 296 ut_assert(fd >= 0); in read_file() 299 ut_assert(size >= 0); in read_file() 300 ut_assert(size < buf_size); in read_file() 361 ut_assert(!device_active(dev)); in dm_test_video_truetype_scroll() 382 ut_assert(!device_active(dev)); in dm_test_video_truetype_bs()
|
/u-boot/test/ |
A D | unicode_ut.c | 88 ut_assert(r == copy); in unicode_test_u16_strcpy() 106 ut_assert(!buf[9]); in unicode_test_string16() 112 ut_assert(!buf[17]); in unicode_test_string16() 118 ut_assert(!buf[14]); in unicode_test_string16() 327 ut_assert(!buf[4]); in unicode_test_utf8_utf16_strncpy() 334 ut_assert(buf[4]); in unicode_test_utf8_utf16_strncpy() 341 ut_assert(!buf[2]); in unicode_test_utf8_utf16_strncpy() 348 ut_assert(!buf[4]); in unicode_test_utf8_utf16_strncpy() 355 ut_assert(buf[5]); in unicode_test_utf8_utf16_strncpy() 523 ut_assert(buf[4]); in unicode_test_utf16_utf8_strncpy() [all …]
|
/u-boot/test/log/ |
A D | log_test.c | 111 ut_assert(filt >= 0); in log_test_cat_allow() 135 ut_assert(filt >= 0); in log_test_cat_deny_implicit() 152 ut_assert(filt >= 0); in log_test_file() 173 ut_assert(filt >= 0); in log_test_file_second() 191 ut_assert(filt >= 0); in log_test_file_mid() 208 ut_assert(filt >= 0); in log_test_level() 226 ut_assert(filt1 >= 0); in log_test_double() 228 ut_assert(filt2 >= 0); in log_test_double() 246 ut_assert(filt1 >= 0); in log_test_triple() 248 ut_assert(filt2 >= 0); in log_test_triple() [all …]
|
/u-boot/test/optee/ |
A D | cmd_ut_optee.c | 36 ut_assert(expect_success ? offs >= 0 : offs < 0); in optee_fdt_firmware() 46 ut_assert(strncmp(prop, "hvc", 3) == 0 || strncmp(prop, "smc", 3) == 0); in optee_fdt_firmware() 58 ut_assert(expect_success ? offs >= 0 : offs < 0); in optee_fdt_protected_memory() 66 ut_assert(offs >= 0); in optee_fdt_protected_memory() 69 ut_assert(subnode); in optee_fdt_protected_memory() 76 ut_assert(name); in optee_fdt_protected_memory() 89 ut_assert(found); in optee_fdt_protected_memory()
|
/u-boot/test/overlay/ |
A D | cmd_ut_overlay.c | 113 ut_assert(off >= 0); in fdt_overlay_add_node_by_phandle() 126 ut_assert(off >= 0); in fdt_overlay_add_node_by_path() 139 ut_assert(off >= 0); in fdt_overlay_add_subnode_property() 155 ut_assert(off >= 0); in fdt_overlay_local_phandle() 158 ut_assert(local_phandle); in fdt_overlay_local_phandle() 179 ut_assert(off >= 0); in fdt_overlay_local_phandles() 182 ut_assert(local_phandle); in fdt_overlay_local_phandles() 185 ut_assert(off >= 0); in fdt_overlay_local_phandles() 188 ut_assert(test_phandle); in fdt_overlay_local_phandles()
|