/third_party/uboot/u-boot-2020.01/test/dm/ |
D | clk.c | 28 ut_asserteq(clk_is_match(&clk_method1, &clk_method2), true); in dm_test_clk_base() 29 ut_asserteq(clk_method1.id, clk_method2.id); in dm_test_clk_base() 49 ut_asserteq(0, sandbox_clk_query_enable(dev_clk, SANDBOX_CLK_ID_SPI)); in dm_test_clk() 50 ut_asserteq(0, sandbox_clk_query_enable(dev_clk, SANDBOX_CLK_ID_I2C)); in dm_test_clk() 51 ut_asserteq(0, sandbox_clk_query_rate(dev_clk, SANDBOX_CLK_ID_SPI)); in dm_test_clk() 52 ut_asserteq(0, sandbox_clk_query_rate(dev_clk, SANDBOX_CLK_ID_I2C)); in dm_test_clk() 60 ut_asserteq(0, sandbox_clk_test_get_rate(dev_test, in dm_test_clk() 62 ut_asserteq(0, sandbox_clk_test_set_rate(dev_test, in dm_test_clk() 65 ut_asserteq(0, sandbox_clk_test_enable(dev_test, in dm_test_clk() 67 ut_asserteq(0, sandbox_clk_test_disable(dev_test, in dm_test_clk() [all …]
|
D | gpio.c | 33 ut_asserteq(4, offset); in dm_test_gpio() 34 ut_asserteq(CONFIG_SANDBOX_GPIO_COUNT + 20 + 4, gpio); in dm_test_gpio() 38 ut_asserteq(10, offset_count); in dm_test_gpio() 45 ut_asserteq(-EBUSY, gpio_get_value(gpio + 1)); in dm_test_gpio() 67 ut_asserteq(1, ops->get_value(dev, offset)); in dm_test_gpio() 69 ut_asserteq(0, ops->get_value(dev, offset)); in dm_test_gpio() 73 ut_asserteq(1, ops->get_value(dev, offset)); in dm_test_gpio() 76 ut_asserteq(0, sandbox_gpio_get_open_drain(dev, offset)); in dm_test_gpio() 78 ut_asserteq(1, sandbox_gpio_get_open_drain(dev, offset)); in dm_test_gpio() 80 ut_asserteq(0, sandbox_gpio_get_open_drain(dev, offset)); in dm_test_gpio() [all …]
|
D | regmap.c | 26 ut_asserteq(1, map->range_count); in dm_test_regmap_base() 27 ut_asserteq(0x10, map->ranges[0].start); in dm_test_regmap_base() 28 ut_asserteq(16, map->ranges[0].size); in dm_test_regmap_base() 29 ut_asserteq(0x10, map_to_sysmem(regmap_get_range(map, 0))); in dm_test_regmap_base() 34 ut_asserteq(4, map->range_count); in dm_test_regmap_base() 35 ut_asserteq(0x20, map->ranges[0].start); in dm_test_regmap_base() 39 ut_asserteq(addr, map->ranges[i].start); in dm_test_regmap_base() 40 ut_asserteq(5 + i, map->ranges[i].size); in dm_test_regmap_base() 41 ut_asserteq(addr, map_to_sysmem(regmap_get_range(map, i))); in dm_test_regmap_base() 55 ut_asserteq(4, map->range_count); in dm_test_regmap_base() [all …]
|
D | sysreset.c | 22 ut_asserteq(-ENODEV, sysreset_request(dev, SYSRESET_WARM)); in dm_test_sysreset_base() 23 ut_asserteq(-ENODEV, sysreset_request(dev, SYSRESET_COLD)); in dm_test_sysreset_base() 24 ut_asserteq(-ENODEV, sysreset_request(dev, SYSRESET_POWER)); in dm_test_sysreset_base() 28 ut_asserteq(-EACCES, sysreset_request(dev, SYSRESET_WARM)); in dm_test_sysreset_base() 29 ut_asserteq(-ENOSYS, sysreset_request(dev, SYSRESET_COLD)); in dm_test_sysreset_base() 30 ut_asserteq(-ENOSYS, sysreset_request(dev, SYSRESET_POWER)); in dm_test_sysreset_base() 33 ut_asserteq(-EINPROGRESS, sysreset_request(dev, SYSRESET_WARM)); in dm_test_sysreset_base() 38 ut_asserteq(-ENOSYS, sysreset_request(dev, SYSRESET_WARM)); in dm_test_sysreset_base() 39 ut_asserteq(-EACCES, sysreset_request(dev, SYSRESET_COLD)); in dm_test_sysreset_base() 41 ut_asserteq(-EACCES, sysreset_request(dev, SYSRESET_POWER)); in dm_test_sysreset_base() [all …]
|
D | panel.c | 35 ut_asserteq(false, enable); in dm_test_panel() 36 ut_asserteq(false, regulator_get_enable(reg)); in dm_test_panel() 41 ut_asserteq(1000, period_ns); in dm_test_panel() 42 ut_asserteq(170 * 1000 / 256, duty_ns); in dm_test_panel() 43 ut_asserteq(true, enable); in dm_test_panel() 44 ut_asserteq(false, polarity); in dm_test_panel() 45 ut_asserteq(1, sandbox_gpio_get_value(gpio, 1)); in dm_test_panel() 46 ut_asserteq(true, regulator_get_enable(reg)); in dm_test_panel() 51 ut_asserteq(64 * 1000 / 256, duty_ns); in dm_test_panel() 56 ut_asserteq(255 * 1000 / 256, duty_ns); in dm_test_panel() [all …]
|
D | led.c | 24 ut_asserteq(-ENODEV, uclass_get_device(UCLASS_LED, 5, &dev)); in dm_test_led_base() 40 ut_asserteq(LEDST_ON, led_get_state(dev)); in dm_test_led_default_state() 43 ut_asserteq(LEDST_OFF, led_get_state(dev)); in dm_test_led_default_state() 61 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_gpio() 63 ut_asserteq(1, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_gpio() 64 ut_asserteq(LEDST_ON, led_get_state(dev)); in dm_test_led_gpio() 67 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_gpio() 68 ut_asserteq(LEDST_OFF, led_get_state(dev)); in dm_test_led_gpio() 86 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_toggle() 88 ut_asserteq(1, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_toggle() [all …]
|
D | pci.c | 37 ut_asserteq(SANDBOX_PCI_VENDOR_ID, vendor); in dm_test_pci_busdev() 41 ut_asserteq(SANDBOX_PCI_SWAP_CASE_EMUL_ID, device); in dm_test_pci_busdev() 49 ut_asserteq(SANDBOX_PCI_VENDOR_ID, vendor); in dm_test_pci_busdev() 53 ut_asserteq(SANDBOX_PCI_SWAP_CASE_EMUL_ID, device); in dm_test_pci_busdev() 72 ut_asserteq(2, inb(io_addr)); in dm_test_pci_swapcase() 93 ut_asserteq(2, inb(io_addr)); in dm_test_pci_swapcase() 121 ut_asserteq(SWAP_CASE_DRV_DATA, swap->driver_data); in dm_test_pci_drvdata() 124 ut_asserteq(SWAP_CASE_DRV_DATA, swap->driver_data); in dm_test_pci_drvdata() 127 ut_asserteq(SWAP_CASE_DRV_DATA, swap->driver_data); in dm_test_pci_drvdata() 149 ut_asserteq(SANDBOX_PCI_VENDOR_ID, vendor); in dm_test_pci_mixed() [all …]
|
D | spmi.c | 30 ut_asserteq(device_has_children(bus), true); in dm_test_spmi_probe() 39 ut_asserteq(device_get_uclass_id(dev), UCLASS_PMIC); in dm_test_spmi_probe() 61 ut_asserteq(spmi_reg_read(bus, 0, 0xC0, 0x4), 0x10); in dm_test_spmi_access() 62 ut_asserteq(spmi_reg_read(bus, 0, 0xC0, 0x5), 0x5); in dm_test_spmi_access() 65 ut_asserteq(pmic_reg_read(pmic, 0xC004), 0x10); in dm_test_spmi_access() 66 ut_asserteq(pmic_reg_read(pmic, 0xC005), 0x5); in dm_test_spmi_access() 85 ut_asserteq(device_get_uclass_id(dev->parent), UCLASS_PMIC); in dm_test_spmi_access_peripheral() 88 ut_asserteq(1, offset); in dm_test_spmi_access_peripheral() 95 ut_asserteq(4, offset_count); in dm_test_spmi_access_peripheral() 101 ut_asserteq(gpio_get_value(gpio), 0); in dm_test_spmi_access_peripheral() [all …]
|
D | test-fdt.c | 206 ut_asserteq(num_devices, list_count_items(&uc->dev_head)); in dm_test_fdt() 227 ut_asserteq(5, ret); in dm_test_alias_highest_id() 230 ut_asserteq(2, ret); in dm_test_alias_highest_id() 233 ut_asserteq(2, ret); in dm_test_alias_highest_id() 236 ut_asserteq(0, ret); in dm_test_alias_highest_id() 239 ut_asserteq(-1, ret); in dm_test_alias_highest_id() 261 ut_asserteq(2, list_count_items(&uc->dev_head)); in dm_test_fdt_pre_reloc() 279 ut_asserteq(-ENODEV, uclass_find_device_by_seq(UCLASS_TEST_FDT, 5, in dm_test_fdt_uclass_seq() 287 ut_asserteq(-ENODEV, uclass_find_device_by_seq(UCLASS_TEST_FDT, 7, in dm_test_fdt_uclass_seq() 309 ut_asserteq(-ENODEV, uclass_get_device_by_seq(UCLASS_TEST_FDT, 1, in dm_test_fdt_uclass_seq() [all …]
|
D | reset.c | 34 ut_asserteq(reset_method1.id, reset_method2.id); in dm_test_reset_base() 48 ut_asserteq(0, sandbox_reset_query(dev_reset, TEST_RESET_ID)); in dm_test_reset() 55 ut_asserteq(1, sandbox_reset_query(dev_reset, TEST_RESET_ID)); in dm_test_reset() 58 ut_asserteq(0, sandbox_reset_query(dev_reset, TEST_RESET_ID)); in dm_test_reset() 73 ut_asserteq(0, sandbox_reset_query(dev_reset, TEST_RESET_ID)); in dm_test_reset_bulk() 74 ut_asserteq(0, sandbox_reset_query(dev_reset, OTHER_RESET_ID)); in dm_test_reset_bulk() 81 ut_asserteq(1, sandbox_reset_query(dev_reset, TEST_RESET_ID)); in dm_test_reset_bulk() 82 ut_asserteq(1, sandbox_reset_query(dev_reset, OTHER_RESET_ID)); in dm_test_reset_bulk() 85 ut_asserteq(0, sandbox_reset_query(dev_reset, TEST_RESET_ID)); in dm_test_reset_bulk() 86 ut_asserteq(0, sandbox_reset_query(dev_reset, OTHER_RESET_ID)); in dm_test_reset_bulk() [all …]
|
D | sound.c | 25 ut_asserteq(0, sandbox_get_setup_called(dev)); in dm_test_sound() 28 ut_asserteq(4560, sandbox_get_sound_sum(dev)); in dm_test_sound() 30 ut_asserteq(9120, sandbox_get_sound_sum(dev)); in dm_test_sound() 43 ut_asserteq(-ENOSYS, sound_start_beep(dev, 100)); in dm_test_sound_beep() 44 ut_asserteq(0, sandbox_get_beep_frequency(dev)); in dm_test_sound_beep() 47 ut_asserteq(0, sound_start_beep(dev, 100)); in dm_test_sound_beep() 48 ut_asserteq(100, sandbox_get_beep_frequency(dev)); in dm_test_sound_beep() 50 ut_asserteq(0, sound_stop_beep(dev)); in dm_test_sound_beep() 51 ut_asserteq(0, sandbox_get_beep_frequency(dev)); in dm_test_sound_beep()
|
D | video.c | 33 ut_asserteq(1366, video_get_xsize(dev)); in dm_test_video_base() 34 ut_asserteq(768, video_get_ysize(dev)); in dm_test_video_base() 36 ut_asserteq(priv->fb_size, 1366 * 768 * 2); in dm_test_video_base() 111 ut_asserteq(46, compress_frame_buffer(dev)); in dm_test_video_text() 115 ut_asserteq(79, compress_frame_buffer(dev)); in dm_test_video_text() 118 ut_asserteq(46, compress_frame_buffer(dev)); in dm_test_video_text() 122 ut_asserteq(273, compress_frame_buffer(dev)); in dm_test_video_text() 125 ut_asserteq(46, compress_frame_buffer(dev)); in dm_test_video_text() 129 ut_asserteq(273, compress_frame_buffer(dev)); in dm_test_video_text() 145 ut_asserteq(466, compress_frame_buffer(dev)); in dm_test_video_chars() [all …]
|
D | pch.c | 22 ut_asserteq(0x10, sbase); in dm_test_pch_base() 24 ut_asserteq(0, sandbox_get_pch_spi_protect(dev)); in dm_test_pch_base() 26 ut_asserteq(1, sandbox_get_pch_spi_protect(dev)); in dm_test_pch_base() 29 ut_asserteq(0x20, gbase); in dm_test_pch_base() 32 ut_asserteq(0x30, iobase); in dm_test_pch_base() 46 ut_asserteq(-ENOSYS, pch_ioctl(dev, PCH_REQ_TEST1, NULL, 0)); in dm_test_pch_ioctl() 48 ut_asserteq('a', pch_ioctl(dev, PCH_REQ_TEST2, "a", 1)); in dm_test_pch_ioctl() 50 ut_asserteq(1, pch_ioctl(dev, PCH_REQ_TEST3, &data, 1)); in dm_test_pch_ioctl() 51 ut_asserteq('x', data); in dm_test_pch_ioctl()
|
D | core.c | 101 ut_asserteq(uts->start.uordblks, end.uordblks); in dm_leak_check_end() 117 ut_asserteq(1, list_count_items(&gd->uclass_root)); in dm_test_autobind() 118 ut_asserteq(0, list_count_items(&gd->dm_root->child_head)); in dm_test_autobind() 119 ut_asserteq(0, dm_testdrv_op_count[DM_TEST_OP_POST_BIND]); in dm_test_autobind() 128 ut_asserteq(3, dm_testdrv_op_count[DM_TEST_OP_POST_BIND]); in dm_test_autobind() 208 ut_asserteq(1, dm_testdrv_op_count[DM_TEST_OP_INIT]); in dm_test_autoprobe() 209 ut_asserteq(0, dm_testdrv_op_count[DM_TEST_OP_PRE_PROBE]); in dm_test_autoprobe() 210 ut_asserteq(0, dm_testdrv_op_count[DM_TEST_OP_POST_PROBE]); in dm_test_autoprobe() 240 ut_asserteq(3, dm_testdrv_op_count[DM_TEST_OP_POST_PROBE]); in dm_test_autoprobe() 241 ut_asserteq(3, dm_testdrv_op_count[DM_TEST_OP_PRE_PROBE]); in dm_test_autoprobe() [all …]
|
D | bus.c | 126 ut_asserteq(num_devices, list_count_items(&uc->dev_head)); in dm_test_bus_children() 133 ut_asserteq(num_devices, list_count_items(&uc->dev_head)); in dm_test_bus_children() 152 ut_asserteq(-ENODEV, device_get_child(bus, 4, &dev)); in dm_test_bus_children_funcs() 158 ut_asserteq(-ENODEV, device_find_child_by_seq(bus, -1, true, &dev)); in dm_test_bus_children_funcs() 161 ut_asserteq(-ENODEV, device_find_child_by_seq(bus, 0, false, &dev)); in dm_test_bus_children_funcs() 166 ut_asserteq(-ENODEV, device_find_child_by_seq(bus, 2, false, &dev)); in dm_test_bus_children_funcs() 167 ut_asserteq(-ENODEV, device_find_child_by_seq(bus, 2, true, &dev)); in dm_test_bus_children_funcs() 168 ut_asserteq(-ENODEV, device_get_child_by_seq(bus, 2, &dev)); in dm_test_bus_children_funcs() 172 ut_asserteq(-ENODEV, device_find_child_by_of_offset(bus, node, &dev)); in dm_test_bus_children_funcs() 174 ut_asserteq(-ENODEV, device_find_child_by_of_offset(bus, node, &dev)); in dm_test_bus_children_funcs() [all …]
|
D | syscon.c | 20 ut_asserteq(SYSCON0, dev->driver_data); in dm_test_syscon_base() 23 ut_asserteq(SYSCON1, dev->driver_data); in dm_test_syscon_base() 25 ut_asserteq(-ENODEV, uclass_get_device(UCLASS_SYSCON, 2, &dev)); in dm_test_syscon_base() 37 ut_asserteq(SYSCON0, dev->driver_data); in dm_test_syscon_by_driver_data() 40 ut_asserteq(SYSCON1, dev->driver_data); in dm_test_syscon_by_driver_data() 42 ut_asserteq(-ENODEV, syscon_get_by_driver_data(2, &dev)); in dm_test_syscon_by_driver_data() 61 ut_asserteq(1, map->range_count); in dm_test_syscon_by_phandle() 68 ut_asserteq(4, map->range_count); in dm_test_syscon_by_phandle() 75 ut_asserteq(4, map->range_count); in dm_test_syscon_by_phandle()
|
D | power-domain.c | 23 ut_asserteq(0, sandbox_power_domain_query(dev_power_domain, 0)); in dm_test_power_domain() 24 ut_asserteq(0, sandbox_power_domain_query(dev_power_domain, in dm_test_power_domain() 29 ut_asserteq(1, sandbox_power_domain_query(dev_power_domain, in dm_test_power_domain() 34 ut_asserteq(0, sandbox_power_domain_query(dev_power_domain, 0)); in dm_test_power_domain() 35 ut_asserteq(1, sandbox_power_domain_query(dev_power_domain, in dm_test_power_domain() 39 ut_asserteq(0, sandbox_power_domain_query(dev_power_domain, 0)); in dm_test_power_domain() 40 ut_asserteq(0, sandbox_power_domain_query(dev_power_domain, in dm_test_power_domain()
|
D | adc.c | 31 ut_asserteq((1 << SANDBOX_ADC_CHANNELS) - 1, channel_mask); in dm_test_adc_bind() 42 ut_asserteq(-EINVAL, adc_start_channel(dev, SANDBOX_ADC_CHANNELS)); in dm_test_adc_wrong_channel_selection() 58 ut_asserteq(SANDBOX_ADC_VSS_VALUE, uV); in dm_test_adc_supply() 62 ut_asserteq(SANDBOX_BUCK2_INITIAL_EXPECTED_UV, uV); in dm_test_adc_supply() 67 ut_asserteq(SANDBOX_BUCK2_SET_UV, regulator_get_value(supply)); in dm_test_adc_supply() 71 ut_asserteq(SANDBOX_BUCK2_SET_UV, uV); in dm_test_adc_supply() 75 ut_asserteq(false, regulator_get_enable(supply)); in dm_test_adc_supply() 78 ut_asserteq(true, regulator_get_enable(supply)); in dm_test_adc_supply() 102 ut_asserteq(tdata->data, data); in dm_test_adc_single_channel_conversion() 126 ut_asserteq(tdata->data, channels[i].data); in dm_test_adc_multi_channel_conversion() [all …]
|
D | wdt.c | 23 ut_asserteq(0, state->wdt.counter); in dm_test_wdt_base() 24 ut_asserteq(false, state->wdt.running); in dm_test_wdt_base() 27 ut_asserteq(timeout, state->wdt.counter); in dm_test_wdt_base() 28 ut_asserteq(true, state->wdt.running); in dm_test_wdt_base() 32 ut_asserteq(reset_count + 1, state->wdt.reset_count); in dm_test_wdt_base() 33 ut_asserteq(true, state->wdt.running); in dm_test_wdt_base() 36 ut_asserteq(false, state->wdt.running); in dm_test_wdt_base()
|
D | phy.c | 31 ut_asserteq(phy1_method1.id, phy1_method2.id); in dm_test_phy_base() 48 ut_asserteq(-ENODEV, uclass_get_device(UCLASS_PHY, 3, &dev)); in dm_test_phy_base() 49 ut_asserteq(-ENODATA, generic_phy_get_by_name(parent, in dm_test_phy_base() 68 ut_asserteq(0, phy1.id); in dm_test_phy_ops() 70 ut_asserteq(1, phy2.id); in dm_test_phy_ops() 72 ut_asserteq(0, phy3.id); in dm_test_phy_ops() 103 ut_asserteq(-EIO, generic_phy_power_off(&phy2)); in dm_test_phy_ops() 107 ut_asserteq(-EIO, generic_phy_power_off(&phy3)); in dm_test_phy_ops() 108 ut_asserteq(-EIO, generic_phy_power_off(&phy3)); in dm_test_phy_ops()
|
D | regulator.c | 114 ut_asserteq(val_set, val_get); in dm_test_power_regulator_set_get_voltage() 141 ut_asserteq(val_set, val_get); in dm_test_power_regulator_set_get_current() 149 ut_asserteq(-ENODATA, uc_pdata->min_uA); in dm_test_power_regulator_set_get_current() 150 ut_asserteq(-ENODATA, uc_pdata->max_uA); in dm_test_power_regulator_set_get_current() 153 ut_asserteq(-ENOSYS, regulator_set_current(dev, 0)); in dm_test_power_regulator_set_get_current() 172 ut_asserteq(regulator_get_enable(dev), val_set); in dm_test_power_regulator_set_get_enable() 193 ut_asserteq(regulator_get_enable(dev), !val_set); in dm_test_power_regulator_set_enable_if_allowed() 212 ut_asserteq(regulator_get_mode(dev), val_set); in dm_test_power_regulator_set_get_mode() 242 ut_asserteq(val_set, val_get); in dm_test_power_regulator_set_get_suspend_voltage() 269 ut_asserteq(regulator_get_suspend_enable(dev), val_set); in dm_test_power_regulator_set_get_suspend_enable() [all …]
|
/third_party/uboot/u-boot-2020.01/test/ |
D | unicode_ut.c | 55 ut_asserteq(6, u16_strlen(c1)); in unicode_test_u16_strlen() 56 ut_asserteq(8, u16_strlen(c2)); in unicode_test_u16_strlen() 57 ut_asserteq(3, u16_strlen(c3)); in unicode_test_u16_strlen() 58 ut_asserteq(6, u16_strlen(c4)); in unicode_test_u16_strlen() 95 ut_asserteq(' ', buf[1]); in unicode_test_string16() 101 ut_asserteq(' ', buf[4]); in unicode_test_string16() 107 ut_asserteq(' ', buf[8]); in unicode_test_string16() 140 ut_asserteq(c2[i], code); in unicode_test_utf8_get() 151 ut_asserteq(c3[i], code); in unicode_test_utf8_get() 160 ut_asserteq(0x0001048d, code); in unicode_test_utf8_get() [all …]
|
D | bloblist.c | 48 ut_asserteq(-ENOENT, bloblist_check(TEST_ADDR, TEST_BLOBLIST_SIZE)); in bloblist_test_init() 51 ut_asserteq(-EPROTONOSUPPORT, bloblist_check(TEST_ADDR, in bloblist_test_init() 54 ut_asserteq(-ENOSPC, bloblist_new(TEST_ADDR, 0x10, 0)); in bloblist_test_init() 55 ut_asserteq(-EFAULT, bloblist_new(1, TEST_BLOBLIST_SIZE, 0)); in bloblist_test_init() 58 ut_asserteq(-EIO, bloblist_check(TEST_ADDR, TEST_BLOBLIST_SIZE)); in bloblist_test_init() 62 ut_asserteq(-EIO, bloblist_check(TEST_ADDR, TEST_BLOBLIST_SIZE)); in bloblist_test_init() 132 ut_asserteq(-EIO, bloblist_check(TEST_ADDR, TEST_BLOBLIST_SIZE)); in bloblist_test_checksum() 136 ut_asserteq(-EFBIG, bloblist_check(TEST_ADDR, TEST_BLOBLIST_SIZE)); in bloblist_test_checksum() 140 ut_asserteq(-EIO, bloblist_check(TEST_ADDR, TEST_BLOBLIST_SIZE)); in bloblist_test_checksum() 144 ut_asserteq(-EIO, bloblist_check(TEST_ADDR, TEST_BLOBLIST_SIZE)); in bloblist_test_checksum() [all …]
|
/third_party/uboot/u-boot-2020.01/test/lib/ |
D | lmb.c | 19 ut_asserteq(lmb->memory.cnt, 1); in check_lmb() 20 ut_asserteq(lmb->memory.region[0].base, ram_base); in check_lmb() 21 ut_asserteq(lmb->memory.region[0].size, ram_size); in check_lmb() 24 ut_asserteq(lmb->reserved.cnt, num_reserved); in check_lmb() 26 ut_asserteq(lmb->reserved.region[0].base, base1); in check_lmb() 27 ut_asserteq(lmb->reserved.region[0].size, size1); in check_lmb() 30 ut_asserteq(lmb->reserved.region[1].base, base2); in check_lmb() 31 ut_asserteq(lmb->reserved.region[1].size, size2); in check_lmb() 34 ut_asserteq(lmb->reserved.region[2].base, base3); in check_lmb() 35 ut_asserteq(lmb->reserved.region[2].size, size3); in check_lmb() [all …]
|
D | hexdump.c | 15 ut_asserteq(0x0, hex_to_bin('0')); in lib_test_hex_to_bin() 16 ut_asserteq(0x1, hex_to_bin('1')); in lib_test_hex_to_bin() 17 ut_asserteq(0x2, hex_to_bin('2')); in lib_test_hex_to_bin() 18 ut_asserteq(0x3, hex_to_bin('3')); in lib_test_hex_to_bin() 19 ut_asserteq(0x4, hex_to_bin('4')); in lib_test_hex_to_bin() 20 ut_asserteq(0x5, hex_to_bin('5')); in lib_test_hex_to_bin() 21 ut_asserteq(0x6, hex_to_bin('6')); in lib_test_hex_to_bin() 22 ut_asserteq(0x7, hex_to_bin('7')); in lib_test_hex_to_bin() 23 ut_asserteq(0x8, hex_to_bin('8')); in lib_test_hex_to_bin() 24 ut_asserteq(0x9, hex_to_bin('9')); in lib_test_hex_to_bin() [all …]
|