| /rk3399_rockchip-uboot/test/ |
| H A D | command_ut.c | 22 assert(!strcmp("11", env_get("list"))); in do_ut_cmd() 26 assert(!strcmp("111", env_get("list"))); in do_ut_cmd() 31 assert(!strcmp("123", env_get("list"))); in do_ut_cmd() 39 assert(!strcmp("1", env_get("list"))); in do_ut_cmd() 41 assert(run_command("false", 0) == 1); in do_ut_cmd() 42 assert(run_command("echo", 0) == 0); in do_ut_cmd() 43 assert(run_command_list("false", -1, 0) == 1); in do_ut_cmd() 44 assert(run_command_list("echo", -1, 0) == 0); in do_ut_cmd() 49 assert(env_get("black") != NULL); in do_ut_cmd() 50 assert(!strcmp("1", env_get("black"))); in do_ut_cmd() [all …]
|
| H A D | print_ut.c | 27 assert(!strcmp("testing", str)); in do_ut_print() 30 assert(!strcmp("testing b", str)); in do_ut_print() 33 assert(!strcmp("", str)); in do_ut_print() 37 assert(*str == 'x'); in do_ut_print() 41 assert(s == str); in do_ut_print() 42 assert(!strcmp("\n\nU-Boo\n\n", s)); in do_ut_print() 45 assert(s == str); in do_ut_print() 46 assert(!strcmp("", s)); in do_ut_print() 49 assert(s == str); in do_ut_print() 50 assert(!strcmp("\n", s)); in do_ut_print() [all …]
|
| H A D | compression.c | 159 assert(in_size == strlen(plain)); in compress_using_bzip2() 160 assert(memcmp(plain, in, in_size) == 0); in compress_using_bzip2() 192 assert(in_size == strlen(plain)); in compress_using_lzma() 193 assert(memcmp(plain, in, in_size) == 0); in compress_using_lzma() 224 assert(in_size == strlen(plain)); in compress_using_lzo() 225 assert(memcmp(plain, in, in_size) == 0); in compress_using_lzo() 257 assert(in_size == strlen(plain)); in compress_using_lz4() 258 assert(memcmp(plain, in, in_size) == 0); in compress_using_lz4()
|
| /rk3399_rockchip-uboot/common/ |
| H A D | hwconfig.c | 251 assert(len == 29); in main() 252 assert(hwconfig_arg_cmp("key1", "subkey1=value1,subkey2=value2")); in main() 253 assert(!strncmp(ret, "subkey1=value1,subkey2=value2", len)); in main() 257 assert(len == 6); in main() 258 assert(hwconfig_subarg_cmp("key1", "subkey1", "value1")); in main() 259 assert(!strncmp(ret, "value1", len)); in main() 263 assert(len == 6); in main() 264 assert(hwconfig_subarg_cmp("key1", "subkey2", "value2")); in main() 265 assert(!strncmp(ret, "value2", len)); in main() 269 assert(len == 6); in main() [all …]
|
| H A D | dlmalloc.c | 60 assert (this); in makeGmListElement() 73 assert ( (head == NULL) || (head->base == (void*)gAddressBase)); in gcleanup() 79 assert (rval); in gcleanup() 85 assert (rval); in gcleanup() 164 assert (new_address == (void*)gAddressBase); in wsbrk() 737 assert(!chunk_is_mmapped(p)); 740 assert((char*)p >= sbrk_base); 742 assert((char*)p + sz <= (char*)top); 744 assert((char*)p + sz <= sbrk_base + sbrked_mem); 761 assert(!inuse(p)); [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-tegra/ |
| H 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() 197 assert(pmux_pin_pupd_isvalid(pupd)); in pinmux_set_pullupdown() 211 assert(pmux_pingrp_isvalid(pin)); in pinmux_set_tristate() 212 assert(pmux_pin_tristate_isvalid(tri)); in pinmux_set_tristate() 242 assert(pmux_pingrp_isvalid(pin)); in pinmux_set_io() 243 assert(pmux_pin_io_isvalid(io)); in pinmux_set_io() 264 assert(pmux_pingrp_isvalid(pin)); in pinmux_set_lock() [all …]
|
| /rk3399_rockchip-uboot/lib/ |
| H 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()
|
| H A D | physmem.c | 19 assert(((phys_addr_t)(uintptr_t)s) == s); in arch_phys_memset() 20 assert(((phys_addr_t)(uintptr_t)(s + n)) == s + n); in arch_phys_memset()
|
| /rk3399_rockchip-uboot/board/spear/x600/ |
| H A D | fpga.c | 30 static void fpga_reset(int assert) in fpga_reset() argument 35 debug("%s:%d: RESET (%d)\n", __func__, __LINE__, assert); in fpga_reset() 41 static int fpga_pgm_fn(int assert, int flush, int cookie) in fpga_pgm_fn() argument 43 debug("%s:%d: FPGA PROG (%d)\n", __func__, __LINE__, assert); in fpga_pgm_fn() 45 gpio_set_value(CONFIG_SYS_FPGA_PROG, assert); in fpga_pgm_fn() 47 return assert; in fpga_pgm_fn()
|
| /rk3399_rockchip-uboot/drivers/rtc/ |
| H 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 rtc_read8() 57 assert(ops); in rtc_write8()
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | tpm_test.c | 183 assert(disable == 1 && deactivated == 1); in test_fast_enable() 189 assert(disable == 0 && deactivated == 0); in test_fast_enable() 216 assert(result == TPM_AREA_LOCKED); in test_global_lock() 218 assert(x == 0); in test_global_lock() 223 assert(x == 2); in test_global_lock() 229 assert(result == TPM_BAD_PRESENCE); in test_global_lock() 231 assert(x == 2); in test_global_lock() 328 assert(!tpm_is_owned()); in test_redefine_unowned() 347 assert(result == TPM_AREA_LOCKED); in test_redefine_unowned() 358 assert(result == TPM_BAD_PRESENCE); in test_redefine_unowned() [all …]
|
| /rk3399_rockchip-uboot/drivers/clk/rockchip/ |
| H A D | clk_rk3036.c | 76 assert(vco_hz >= VCO_MIN_HZ && vco_hz <= VCO_MAX_HZ && in rkclk_set_pll() 125 assert((aclk_div + 1) * CORE_ACLK_HZ <= APLL_HZ && aclk_div < 0x7); in rkclk_init() 128 assert((pclk_div + 1) * CORE_PERI_HZ <= APLL_HZ && pclk_div < 0xf); in rkclk_init() 145 assert((aclk_div + 1) * BUS_ACLK_HZ <= GPLL_HZ && aclk_div <= 0x1f); in rkclk_init() 148 assert((pclk_div + 1) * BUS_PCLK_HZ <= BUS_ACLK_HZ && pclk_div <= 0x7); in rkclk_init() 151 assert((hclk_div + 1) * BUS_HCLK_HZ <= BUS_ACLK_HZ && hclk_div <= 0x3); in rkclk_init() 168 assert((aclk_div + 1) * PERI_ACLK_HZ <= GPLL_HZ && aclk_div < 0x1f); in rkclk_init() 171 assert((1 << hclk_div) * PERI_HCLK_HZ <= in rkclk_init() 175 assert((1 << pclk_div) * PERI_PCLK_HZ <= in rkclk_init() 291 assert(src_clk_div - 1 < 128); in rockchip_mmc_set_clk() [all …]
|
| H A D | clk_rk3188.c | 116 assert(vco_hz >= VCO_MIN_HZ && vco_hz <= VCO_MAX_HZ && in rkclk_set_pll() 315 assert(src_clk_div <= 0x3f); in rockchip_mmc_set_clk() 370 assert(src_clk_div < 128); in rockchip_spi_set_clk() 373 assert(src_clk_div <= SPI0_DIV_MASK); in rockchip_spi_set_clk() 379 assert(src_clk_div <= SPI1_DIV_MASK); in rockchip_spi_set_clk() 406 assert(src_clk_div < 128); in rk3188_saradc_set_clk() 444 assert((aclk_div + 1) * CPU_ACLK_HZ <= GPLL_HZ && aclk_div <= 0x1f); in rkclk_init() 453 assert((1 << hclk_div) * CPU_HCLK_HZ <= CPU_ACLK_HZ && hclk_div < 0x3); in rkclk_init() 455 assert((1 << pclk_div) * CPU_PCLK_HZ <= CPU_ACLK_HZ && pclk_div < 0x4); in rkclk_init() 457 assert((1 << h2p_div) * CPU_H2P_HZ <= CPU_HCLK_HZ && pclk_div < 0x3); in rkclk_init() [all …]
|
| H A D | clk_rk3066.c | 118 assert(vco_hz >= VCO_MIN_HZ && vco_hz <= VCO_MAX_HZ && in rkclk_set_pll() 368 assert(src_clk_div <= SPI0_DIV_MASK >> SPI0_DIV_SHIFT); in rockchip_spi_set_clk() 374 assert(src_clk_div <= SPI1_DIV_MASK >> SPI1_DIV_SHIFT); in rockchip_spi_set_clk() 414 assert((aclk_div + 1) * CPU_ACLK_HZ <= GPLL_HZ && aclk_div < 0x1f); in rkclk_init() 423 assert((1 << hclk_div) * CPU_HCLK_HZ <= CPU_ACLK_HZ && hclk_div < 0x3); in rkclk_init() 425 assert((1 << pclk_div) * CPU_PCLK_HZ <= CPU_ACLK_HZ && pclk_div < 0x4); in rkclk_init() 427 assert((1 << h2p_div) * CPU_H2P_HZ <= CPU_HCLK_HZ && pclk_div < 0x3); in rkclk_init() 442 assert((aclk_div + 1) * PERI_ACLK_HZ <= GPLL_HZ && aclk_div < 0x1f); in rkclk_init() 445 assert((1 << hclk_div) * PERI_HCLK_HZ <= in rkclk_init() 449 assert((1 << pclk_div) * PERI_PCLK_HZ <= in rkclk_init()
|
| H A D | clk_rk3506.c | 244 assert(div - 1 <= 31); in rk3506_armclk_set_rate() 313 assert(div - 1 <= 15); in rk3506_pll_div_set_rate() 319 assert(div - 1 <= 15); in rk3506_pll_div_set_rate() 325 assert(div - 1 <= 15); in rk3506_pll_div_set_rate() 331 assert(div - 1 <= 15); in rk3506_pll_div_set_rate() 396 assert(div - 1 <= 31); in rk3506_bus_set_rate() 473 assert(div - 1 <= 31); in rk3506_peri_set_rate() 538 assert(div - 1 <= 63); in rk3506_sdmmc_set_rate() 586 assert(div - 1 <= 15); in rk3506_saradc_set_rate() 625 assert(div - 1 <= 7); in rk3506_tsadc_set_rate() [all …]
|
| H A D | clk_rv1108.c | 78 assert(vco_hz >= VCO_MIN_HZ && vco_hz <= VCO_MAX_HZ && in rkclk_set_pll() 205 assert(src_clk_div < 128); in rv1108_saradc_set_clk() 230 assert(src_clk_div < 32); in rv1108_aclk_vio1_set_clk() 256 assert(src_clk_div < 32); in rv1108_aclk_vio0_set_clk() 291 assert(src_clk_div < 64); in rv1108_dclk_vop_set_clk() 321 assert(src_clk_div < 32); in rv1108_aclk_bus_set_clk() 373 assert(src_clk_div < 32); in rv1108_aclk_peri_set_clk() 389 assert(src_clk_div < 32); in rv1108_hclk_peri_set_clk() 404 assert(src_clk_div < 32); in rv1108_pclk_peri_set_clk() 452 assert(src_clk_div - 1 <= 127); in rv1108_i2c_set_clk() [all …]
|
| H A D | clk_rk3399.c | 376 assert(vco_khz >= VCO_MIN_KHZ && vco_khz <= VCO_MAX_KHZ && in rkclk_set_pll() 537 assert((aclkm_div + 1) * ACLKM_CORE_HZ <= apll_hz && in rk3399_configure_cpu() 541 assert((pclk_dbg_div + 1) * PCLK_DBG_HZ <= apll_hz && in rk3399_configure_cpu() 545 assert((atclk_div + 1) * ATCLK_CORE_HZ <= apll_hz && in rk3399_configure_cpu() 627 assert(src_clk_div - 1 <= 127); in rk3399_i2c_set_clk() 726 assert(src_clk_div < 128); in rk3399_spi_set_clk() 770 assert(div - 1 <= 31); in rk3399_vop_set_clk() 842 assert(src_clk_div - 1 < 128); in rk3399_mmc_set_clk() 857 assert(src_clk_div - 1 < 32); in rk3399_mmc_set_clk() 869 assert(src_clk_div - 1 < 128); in rk3399_mmc_set_clk() [all …]
|
| /rk3399_rockchip-uboot/drivers/core/ |
| H A D | ofnode.c | 21 assert(ofnode_valid(node)); in ofnode_read_u32() 45 assert(ofnode_valid(node)); in ofnode_read_u32_default() 53 assert(ofnode_valid(node)); in ofnode_read_s32_default() 61 assert(ofnode_valid(node)); in ofnode_read_u64() 78 assert(ofnode_valid(node)); in ofnode_read_bool() 93 assert(ofnode_valid(node)); in ofnode_read_string() 125 assert(ofnode_valid(node)); in ofnode_find_subnode() 150 assert(ofnode_valid(node)); in ofnode_read_u32_array() 166 assert(ofnode_valid(node)); in ofnode_write_u32_array() 180 assert(ofnode_valid(node)); in ofnode_first_subnode() [all …]
|
| H A D | device-remove.c | 35 assert(dev); in device_chld_unbind() 57 assert(dev); in device_chld_remove() 83 assert(drv); in device_unbind() 176 assert(drv); in device_remove()
|
| /rk3399_rockchip-uboot/board/armadeus/apf27/ |
| H A D | fpga.c | 86 int fpga_pgm_fn(int assert, int flush, int cookie) in fpga_pgm_fn() argument 89 assert ? "high" : "low"); in fpga_pgm_fn() 90 gpio_set_value(ACFG_FPGA_PRG, !assert); in fpga_pgm_fn() 91 return assert; in fpga_pgm_fn()
|
| /rk3399_rockchip-uboot/scripts/dtc/ |
| H 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()
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | getline.c | 49 assert(*n - nchars_avail == read_pos - *lineptr); in getstr() 61 assert(*n - nchars_avail == read_pos - *lineptr); in getstr()
|
| /rk3399_rockchip-uboot/include/ |
| H A D | efi_loader.h | 27 assert(__efi_entry_check()); \ 39 assert(__efi_exit_check()); \ 48 assert(__efi_exit_check()); \ 50 assert(__efi_entry_check()); \
|
| /rk3399_rockchip-uboot/drivers/reset/ |
| H A D | reset-uniphier.c | 184 static int uniphier_reset_update(struct reset_ctl *reset_ctl, int assert) in uniphier_reset_update() argument 199 assert = !assert; in uniphier_reset_update() 203 if (assert) in uniphier_reset_update()
|
| /rk3399_rockchip-uboot/board/theadorable/ |
| H A D | fpga.c | 47 static int fpga_config_fn(int assert, int flush, int cookie) in fpga_config_fn() argument 54 if (assert) in fpga_config_fn()
|