Home
last modified time | relevance | path

Searched refs:assert (Results 1 – 25 of 240) sorted by relevance

12345678910

/u-boot/test/
A Dcommand_ut.c49 assert(run_command("echo", 0) == 0); in do_ut_cmd()
56 assert(env_get("black") != NULL); in do_ut_cmd()
58 assert(env_get("adder") != NULL); in do_ut_cmd()
62 assert(run_command("", 0) == 0); in do_ut_cmd()
63 assert(run_command(" ", 0) == 0); in do_ut_cmd()
65 assert(run_command("'", 0) == 1); in do_ut_cmd()
70 assert(run_commandf("") == 0); in do_ut_cmd()
72 assert(run_commandf(" ") == 0); in do_ut_cmd()
73 assert(run_commandf("'") == 1); in do_ut_cmd()
88 assert(env_get("black")); in do_ut_cmd()
[all …]
/u-boot/common/
A Dhwconfig.c255 assert(len == 29); in main()
261 assert(len == 6); in main()
263 assert(!strncmp(ret, "value1", len)); in main()
267 assert(len == 6); in main()
269 assert(!strncmp(ret, "value2", len)); in main()
273 assert(len == 6); in main()
275 assert(!strncmp(ret, "value3", len)); in main()
277 assert(hwconfig("key3")); in main()
283 assert(hwconfig(NULL) == 0); in main()
284 assert(hwconfig("") == 0); in main()
[all …]
A Ddlmalloc.c73 assert (this); in makeGmListElement()
92 assert (rval); in gcleanup()
98 assert (rval); in gcleanup()
815 assert(!inuse(p));
825 assert(prev_inuse(p));
846 assert(inuse(p));
882 assert(room >= 0);
890 assert(prev_inuse(p));
1051 assert((n_mmaps > 0));
1060 assert(ret == 0);
[all …]
/u-boot/arch/arm/mach-tegra/
A Dpinmux-common.c168 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 Dcircbuf.c16 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 Dphysmem.c21 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()
A Dlz4.c112 #ifndef assert
113 #define assert(condition) ((void)0) macro
170 assert(lowPrefix <= op); in LZ4_decompress_generic()
171 assert(src != NULL); in LZ4_decompress_generic()
194 assert(!endOnInput || ip <= iend); in LZ4_decompress_generic()
231 assert(match <= op); /* check overflow */ in LZ4_decompress_generic()
367 assert(oend > op); in LZ4_decompress_generic()
368 assert(oend - op >= 4); in LZ4_decompress_generic()
444 assert(op <= oend); in LZ4_decompress_generic()
/u-boot/lib/zstd/common/
A Dbitstream.h132 assert(val != 0); in BIT_highbit32()
188 assert(nbBits < BIT_MASK_SIZE); in BIT_addBits()
200 assert((value>>nbBits) == 0); in BIT_addBitsFast()
212 assert(bitC->bitPos < sizeof(bitC->bitContainer) * 8); in BIT_flushBitsFast()
213 assert(bitC->ptr <= bitC->endPtr); in BIT_flushBitsFast()
228 assert(bitC->bitPos < sizeof(bitC->bitContainer) * 8); in BIT_flushBits()
229 assert(bitC->ptr <= bitC->endPtr); in BIT_flushBits()
315 assert(nbBits < BIT_MASK_SIZE); in BIT_getMiddleBits()
330 assert(nbBits < BIT_MASK_SIZE); in BIT_getLowerBits()
359 assert(nbBits >= 1); in BIT_lookBitsFast()
[all …]
/u-boot/drivers/reset/
A Dreset-jh7110.c18 u32 assert; member
63 unsigned long id, bool assert) in jh7110_reset_trigger() argument
72 if (!assert) in jh7110_reset_trigger()
75 addr = (ulong)priv->reg + priv->assert + group * sizeof(u32); in jh7110_reset_trigger()
78 if (assert) in jh7110_reset_trigger()
137 priv->assert = cfg->assert_offset; in jh7110_reset_probe()
/u-boot/drivers/rtc/
A Drtc-uclass.c19 assert(ops); in dm_rtc_get()
29 assert(ops); in dm_rtc_set()
39 assert(ops); in dm_rtc_reset()
49 assert(ops); in dm_rtc_read()
69 assert(ops); in dm_rtc_write()
87 assert(ops); in rtc_read8()
105 assert(ops); in rtc_write8()
/u-boot/lib/zstd/decompress/
A Dzstd_decompress_block.c433 assert(nbAddBits < 255); in ZSTD_buildSeqTable_rle()
482 assert(tableSize <= 512); in ZSTD_buildFSETable_body()
648 assert(0); in ZSTD_buildSeqTable()
760 assert(*ip <= *op); in ZSTD_overlapCopy8()
778 assert(*op - *ip >= 8); in ZSTD_overlapCopy8()
806 assert(length >= 8); in ZSTD_safecopy()
810 assert(op <= oend); in ZSTD_safecopy()
1016 assert(op <= oMatchEnd); in ZSTD_execSequence()
1107 assert(op <= oMatchEnd); in ZSTD_execSequenceSplitLitBuffer()
1299 assert(op <= oend);
[all …]
A Dzstd_ddict.c45 assert(ddict != NULL); in ZSTD_DDict_dictContent()
51 assert(ddict != NULL); in ZSTD_DDict_dictSize()
58 assert(dctx != NULL); in ZSTD_copyDDictParameters()
59 assert(ddict != NULL); in ZSTD_copyDDictParameters()
193 assert(sBuffer != NULL); in ZSTD_initStaticDDict()
194 assert(dict != NULL); in ZSTD_initStaticDDict()
/u-boot/lib/acpi/
A Dacpi_dp.c78 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 Dsyscon-reset.txt8 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/net/phy/
A Dethernet_id.c21 u32 id, assert, deassert; in phy_connect_phy_id() local
44 assert = ofnode_read_u32_default(node, in phy_connect_phy_id()
56 udelay(assert); in phy_connect_phy_id()
/u-boot/drivers/clk/rockchip/
A Dclk_rk3036.c63 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 Dclk_rk3128.c55 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 Dclk_rk3188.c101 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 Dclk_rk3066.c96 assert(vco_hz >= VCO_MIN_HZ && vco_hz <= VCO_MAX_HZ && in rk3066_clk_set_pll()
291 assert(src_clk_div <= 0x3f); in rk3066_clk_mmc_set_clk()
346 assert(src_clk_div < 128); in rk3066_clk_spi_set_clk()
349 assert(src_clk_div <= SPI0_DIV_MASK >> SPI0_DIV_SHIFT); in rk3066_clk_spi_set_clk()
355 assert(src_clk_div <= SPI1_DIV_MASK >> SPI1_DIV_SHIFT); in rk3066_clk_spi_set_clk()
392 assert(src_clk_div < 128); in rk3066_clk_saradc_set_clk()
439 assert((aclk_div + 1) * CPU_ACLK_HZ == GPLL_HZ && aclk_div <= 0x1f); in rk3066_clk_init()
452 assert((1 << h2p_div) * CPU_H2P_HZ == CPU_HCLK_HZ && pclk_div < 0x3); in rk3066_clk_init()
467 assert((aclk_div + 1) * PERI_ACLK_HZ == GPLL_HZ && aclk_div < 0x1f); in rk3066_clk_init()
470 assert((1 << hclk_div) * PERI_HCLK_HZ == in rk3066_clk_init()
[all …]
A Dclk_rk322x.c60 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()
/u-boot/cmd/
A Dtpm_test.c204 assert(result == TPM_AREA_LOCKED); in test_global_lock()
206 assert(x == 0); in test_global_lock()
211 assert(x == 2); in test_global_lock()
217 assert(result == TPM_BAD_PRESENCE); in test_global_lock()
219 assert(x == 2); in test_global_lock()
322 assert(!tpm_is_owned(dev)); in test_redefine_unowned()
343 assert(result == TPM_AREA_LOCKED); in test_redefine_unowned()
355 assert(result == TPM_BAD_PRESENCE); in test_redefine_unowned()
357 assert(result == TPM_BAD_PRESENCE); in test_redefine_unowned()
376 assert((perm & PERMPPGL) == PERMPPGL); in test_space_perm()
[all …]
/u-boot/drivers/core/
A Dofnode.c208 assert(ofnode_valid(node)); in ofnode_name_eq()
221 assert(ofnode_valid(node)); in ofnode_read_u8()
241 assert(ofnode_valid(node)); in ofnode_read_u8_default()
252 assert(ofnode_valid(node)); in ofnode_read_u16()
272 assert(ofnode_valid(node)); in ofnode_read_u16_default()
285 assert(ofnode_valid(node)); in ofnode_read_u32_default()
297 assert(ofnode_valid(node)); in ofnode_read_u32_index()
325 assert(ofnode_valid(node)); in ofnode_read_u32_index_default()
333 assert(ofnode_valid(node)); in ofnode_read_s32_default()
344 assert(ofnode_valid(node)); in ofnode_read_u64()
[all …]
/u-boot/scripts/dtc/
A Dtreesource.c70 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/hwspinlock/
A Dhwspinlock-uclass.c48 assert(hws); in hwspinlock_get_by_index()
88 assert(hws); in hwspinlock_lock_timeout()
114 assert(hws); in hwspinlock_unlock()
/u-boot/tools/
A Dgetline.c48 assert(*n - nchars_avail == read_pos - *lineptr); in getstr()
60 assert(*n - nchars_avail == read_pos - *lineptr); in getstr()

Completed in 77 milliseconds

12345678910