/u-boot/test/ |
A D | command_ut.c | 25 assert(!strcmp("11", env_get("list"))); in do_ut_cmd() 29 assert(!strcmp("111", env_get("list"))); in do_ut_cmd() 34 assert(!strcmp("123", env_get("list"))); in do_ut_cmd() 42 assert(!strcmp("1", env_get("list"))); in do_ut_cmd() 44 assert(run_command("false", 0) == 1); in do_ut_cmd() 45 assert(run_command("echo", 0) == 0); in do_ut_cmd() 52 assert(env_get("black") != NULL); in do_ut_cmd() 54 assert(env_get("adder") != NULL); in do_ut_cmd() 58 assert(run_command("", 0) == 0); in do_ut_cmd() 59 assert(run_command(" ", 0) == 0); in do_ut_cmd() [all …]
|
A D | print_ut.c | 82 assert(!strcmp("testing", str)); in do_ut_print() 88 assert(!strcmp("", str)); in do_ut_print() 92 assert(*str == 'x'); in do_ut_print() 99 assert(s == str); in do_ut_print() 105 assert(s == str + 1); in do_ut_print() 106 assert(!strcmp("`", str)); in do_ut_print() 110 assert(s == str + 1); in do_ut_print() 111 assert(!strcmp("~\n", str)); in do_ut_print() 115 assert(s == str); in do_ut_print() 122 assert(s == big_str); in do_ut_print() [all …]
|
/u-boot/common/ |
A D | hwconfig.c | 253 assert(len == 29); in main() 259 assert(len == 6); in main() 261 assert(!strncmp(ret, "value1", len)); in main() 265 assert(len == 6); in main() 267 assert(!strncmp(ret, "value2", len)); in main() 271 assert(len == 6); in main() 273 assert(!strncmp(ret, "value3", len)); in main() 275 assert(hwconfig("key3")); in main() 281 assert(hwconfig(NULL) == 0); in main() 282 assert(hwconfig("") == 0); in main() [all …]
|
A D | dlmalloc.c | 62 assert (this); in makeGmListElement() 81 assert (rval); in gcleanup() 87 assert (rval); in gcleanup() 801 assert(!inuse(p)); 811 assert(prev_inuse(p)); 832 assert(inuse(p)); 868 assert(room >= 0); 876 assert(prev_inuse(p)); 1037 assert((n_mmaps > 0)); 1046 assert(ret == 0); [all …]
|
/u-boot/arch/arm/mach-tegra/ |
A D | pinmux-common.c | 168 assert(pmux_pingrp_isvalid(pin)); in pinmux_set_func() 169 assert(pmux_func_isvalid(func)); in pinmux_set_func() 182 assert(mux != -1); in pinmux_set_func() 196 assert(pmux_pingrp_isvalid(pin)); in pinmux_set_pullupdown() 243 assert(pmux_pin_io_isvalid(io)); in pinmux_set_io() 292 assert(pmux_pin_od_isvalid(od)); in pinmux_set_od() 417 assert(pmux_hsm_isvalid(hsm)); in pinmux_set_hsm() 527 assert(pmux_slw_isvalid(slwf)); in pinmux_set_drvup_slwf() 548 assert(pmux_slw_isvalid(slwr)); in pinmux_set_drvdn_slwr() 660 assert(pmux_hsm_isvalid(hsm)); in pinmux_set_hsm() [all …]
|
/u-boot/lib/ |
A D | circbuf.c | 16 assert (buf != NULL); in buf_init() 21 assert (buf->data != NULL); in buf_init() 32 assert (buf != NULL); in buf_free() 33 assert (buf->data != NULL); in buf_free() 46 assert (buf != NULL); in buf_pop() 47 assert (dest != NULL); in buf_pop() 76 assert (buf != NULL); in buf_push() 77 assert (src != NULL); in buf_push()
|
A D | physmem.c | 21 assert(((phys_addr_t)(uintptr_t)s) == s); in arch_phys_memset() 22 assert(((phys_addr_t)(uintptr_t)(s + n)) == s + n); in arch_phys_memset()
|
/u-boot/board/spear/x600/ |
A D | fpga.c | 31 static void fpga_reset(int assert) in fpga_reset() argument 36 debug("%s:%d: RESET (%d)\n", __func__, __LINE__, assert); in fpga_reset() 42 static int fpga_pgm_fn(int assert, int flush, int cookie) in fpga_pgm_fn() argument 44 debug("%s:%d: FPGA PROG (%d)\n", __func__, __LINE__, assert); in fpga_pgm_fn() 46 gpio_set_value(CONFIG_SYS_FPGA_PROG, assert); in fpga_pgm_fn() 48 return assert; in fpga_pgm_fn()
|
/u-boot/drivers/rtc/ |
A D | rtc-uclass.c | 17 assert(ops); in dm_rtc_get() 27 assert(ops); in dm_rtc_set() 37 assert(ops); in dm_rtc_reset() 47 assert(ops); in dm_rtc_read() 67 assert(ops); in dm_rtc_write() 85 assert(ops); in rtc_read8() 103 assert(ops); in rtc_write8()
|
/u-boot/lib/acpi/ |
A D | acpi_dp.c | 78 assert(dp); in acpi_dp_free() 105 assert(table); in acpi_dp_write_internal() 232 assert(dp); in acpi_dp_add_integer() 246 assert(dp); in acpi_dp_add_string() 259 assert(dp); in acpi_dp_add_reference() 272 assert(dp); in acpi_dp_add_child() 289 assert(dp); in acpi_dp_add_array() 290 assert(array); in acpi_dp_add_array() 307 assert(dp); in acpi_dp_add_integer_array() 331 assert(dp); in acpi_dp_add_gpio()
|
/u-boot/doc/device-tree-bindings/reset/ |
A D | syscon-reset.txt | 8 To assert a reset on some device, the equivalent of the following operation is 13 regmap[offset][reset_id] = assert-high; 23 - assert-high: Bit to write when asserting a reset. Defaults to 1. 35 assert-high = <0>;
|
/u-boot/drivers/clk/rockchip/ |
A D | clk_rk3036.c | 63 assert(vco_hz >= VCO_MIN_HZ && vco_hz <= VCO_MAX_HZ && in rkclk_set_pll() 105 assert((aclk_div + 1) * CORE_ACLK_HZ == APLL_HZ && aclk_div < 0x7); in rkclk_init() 108 assert((pclk_div + 1) * CORE_PERI_HZ == APLL_HZ && pclk_div < 0xf); in rkclk_init() 125 assert((aclk_div + 1) * BUS_ACLK_HZ == GPLL_HZ && aclk_div <= 0x1f); in rkclk_init() 128 assert((pclk_div + 1) * BUS_PCLK_HZ == GPLL_HZ && pclk_div <= 0x7); in rkclk_init() 131 assert((hclk_div + 1) * BUS_HCLK_HZ == GPLL_HZ && hclk_div <= 0x3); in rkclk_init() 148 assert((aclk_div + 1) * PERI_ACLK_HZ == GPLL_HZ && aclk_div < 0x1f); in rkclk_init() 151 assert((1 << hclk_div) * PERI_HCLK_HZ == in rkclk_init() 155 assert((1 << pclk_div) * PERI_PCLK_HZ == in rkclk_init() 256 assert(src_clk_div - 1 < 128); in rockchip_mmc_set_clk()
|
A D | clk_rk3128.c | 55 assert(vco_hz >= VCO_MIN_HZ && vco_hz <= VCO_MAX_HZ && in rkclk_set_pll() 166 assert((aclk_div + 1) * CORE_ACLK_HZ == APLL_HZ && aclk_div < 0x7); in rkclk_init() 169 assert((pclk_div + 1) * CORE_PERI_HZ == APLL_HZ && pclk_div < 0xf); in rkclk_init() 186 assert((aclk_div + 1) * BUS_ACLK_HZ == GPLL_HZ && aclk_div <= 0x1f); in rkclk_init() 189 assert((pclk_div + 1) * BUS_PCLK_HZ == BUS_ACLK_HZ && pclk_div <= 0x7); in rkclk_init() 209 assert((aclk_div + 1) * PERI_ACLK_HZ == GPLL_HZ && aclk_div < 0x1f); in rkclk_init() 212 assert((1 << hclk_div) * PERI_HCLK_HZ == in rkclk_init() 216 assert((1 << pclk_div) * PERI_PCLK_HZ == in rkclk_init() 376 assert(src_clk_div - 1 < 4); in rk3128_peri_set_pclk() 411 assert(src_clk_div < 128); in rk3128_saradc_set_clk() [all …]
|
A D | clk_rk3188.c | 101 assert(vco_hz >= VCO_MIN_HZ && vco_hz <= VCO_MAX_HZ && in rkclk_set_pll() 300 assert(src_clk_div <= 0x3f); in rockchip_mmc_set_clk() 355 assert(src_clk_div < 128); in rockchip_spi_set_clk() 358 assert(src_clk_div <= SPI0_DIV_MASK); in rockchip_spi_set_clk() 364 assert(src_clk_div <= SPI1_DIV_MASK); in rockchip_spi_set_clk() 405 assert((aclk_div + 1) * CPU_ACLK_HZ == GPLL_HZ && aclk_div <= 0x1f); in rkclk_init() 414 assert((1 << hclk_div) * CPU_HCLK_HZ == CPU_ACLK_HZ && hclk_div < 0x3); in rkclk_init() 418 assert((1 << h2p_div) * CPU_H2P_HZ == CPU_HCLK_HZ && pclk_div < 0x3); in rkclk_init() 433 assert((aclk_div + 1) * PERI_ACLK_HZ == GPLL_HZ && aclk_div < 0x1f); in rkclk_init() 436 assert((1 << hclk_div) * PERI_HCLK_HZ == in rkclk_init() [all …]
|
A D | clk_rk322x.c | 60 assert(vco_hz >= VCO_MIN_HZ && vco_hz <= VCO_MAX_HZ && in rkclk_set_pll() 107 assert((aclk_div + 1) * CORE_ACLK_HZ == APLL_HZ && aclk_div < 0x7); in rkclk_init() 110 assert((pclk_div + 1) * CORE_PERI_HZ == APLL_HZ && pclk_div < 0xf); in rkclk_init() 127 assert((aclk_div + 1) * BUS_ACLK_HZ == GPLL_HZ && aclk_div <= 0x1f); in rkclk_init() 130 assert((pclk_div + 1) * BUS_PCLK_HZ == BUS_ACLK_HZ && pclk_div <= 0x7); in rkclk_init() 133 assert((hclk_div + 1) * BUS_HCLK_HZ == BUS_ACLK_HZ && hclk_div <= 0x3); in rkclk_init() 150 assert((aclk_div + 1) * PERI_ACLK_HZ == GPLL_HZ && aclk_div < 0x1f); in rkclk_init() 153 assert((1 << hclk_div) * PERI_HCLK_HZ == in rkclk_init() 157 assert((1 << pclk_div) * PERI_PCLK_HZ == in rkclk_init() 294 assert(src_clk_div - 1 < 128); in rockchip_mmc_set_clk()
|
A D | clk_rk3288.c | 420 assert(freq == gclk_rate / n * d); in rockchip_i2s_set_clk() 457 assert((hclk_div + 1) * PD_BUS_HCLK_HZ == in rkclk_init() 461 assert((pclk_div + 1) * PD_BUS_PCLK_HZ == in rkclk_init() 480 assert((1 << hclk_div) * PERI_HCLK_HZ == in rkclk_init() 484 assert((1 << pclk_div) * PERI_PCLK_HZ == in rkclk_init() 623 assert(src_clk_div < 0x40); in rockchip_mmc_set_clk() 625 assert((int)EMMC_PLL_SELECT_24MHZ == in rockchip_mmc_set_clk() 629 assert((int)EMMC_PLL_SELECT_GENERAL == in rockchip_mmc_set_clk() 686 assert(mux == SPI0_PLL_SELECT_GENERAL); in rockchip_spi_get_clk() 698 assert(src_clk_div < 128); in rockchip_spi_set_clk() [all …]
|
/u-boot/cmd/ |
A D | tpm_test.c | 202 assert(result == TPM_AREA_LOCKED); in test_global_lock() 204 assert(x == 0); in test_global_lock() 209 assert(x == 2); in test_global_lock() 215 assert(result == TPM_BAD_PRESENCE); in test_global_lock() 217 assert(x == 2); in test_global_lock() 320 assert(!tpm_is_owned(dev)); in test_redefine_unowned() 339 assert(result == TPM_AREA_LOCKED); in test_redefine_unowned() 350 assert(result == TPM_BAD_PRESENCE); in test_redefine_unowned() 352 assert(result == TPM_BAD_PRESENCE); in test_redefine_unowned() 371 assert((perm & PERMPPGL) == PERMPPGL); in test_space_perm() [all …]
|
/u-boot/board/armadeus/apf27/ |
A D | fpga.c | 87 int fpga_pgm_fn(int assert, int flush, int cookie) in fpga_pgm_fn() argument 90 assert ? "high" : "low"); in fpga_pgm_fn() 91 gpio_set_value(ACFG_FPGA_PRG, !assert); in fpga_pgm_fn() 92 return assert; in fpga_pgm_fn()
|
/u-boot/scripts/dtc/ |
A D | treesource.c | 70 assert(str[val.len-1] == '\0'); in write_propval_string() 114 assert(m->offset == (i+1)); in write_propval_string() 132 assert (m->offset == val.len); in write_propval_string() 147 assert(m->offset == ((char *)cp - val.val)); in write_propval_cells() 161 assert (m->offset == val.len); in write_propval_cells() 189 assert (m->offset == val.len); in write_propval_bytes()
|
/u-boot/drivers/clk/ |
A D | clk.c | 62 assert(hw); in clk_hw_get_name() 63 assert(hw->dev); in clk_hw_get_name()
|
/u-boot/tools/ |
A D | getline.c | 48 assert(*n - nchars_avail == read_pos - *lineptr); in getstr() 60 assert(*n - nchars_avail == read_pos - *lineptr); in getstr()
|
/u-boot/drivers/hwspinlock/ |
A D | hwspinlock-uclass.c | 46 assert(hws); in hwspinlock_get_by_index() 86 assert(hws); in hwspinlock_lock_timeout() 112 assert(hws); in hwspinlock_unlock()
|
/u-boot/drivers/core/ |
A D | ofnode.c | 28 assert(ofnode_valid(node)); in ofnode_read_u32_default() 40 assert(ofnode_valid(node)); in ofnode_read_u32_index() 68 assert(ofnode_valid(node)); in ofnode_read_u32_index_default() 76 assert(ofnode_valid(node)); in ofnode_read_s32_default() 87 assert(ofnode_valid(node)); in ofnode_read_u64() 108 assert(ofnode_valid(node)); in ofnode_read_u64_default() 118 assert(ofnode_valid(node)); in ofnode_read_bool() 133 assert(ofnode_valid(node)); in ofnode_read_prop() 192 assert(ofnode_valid(node)); in ofnode_find_subnode() 217 assert(ofnode_valid(node)); in ofnode_read_u32_array() [all …]
|
A D | device-remove.c | 30 assert(dev); in device_chld_unbind() 53 assert(dev); in device_chld_remove() 86 assert(drv); in device_unbind() 222 assert(drv); in device_remove()
|
/u-boot/drivers/reset/ |
A D | reset-meson.c | 38 static int meson_reset_level(struct reset_ctl *reset_ctl, bool assert) in meson_reset_level() argument 47 if (assert) in meson_reset_level()
|