Searched refs:assert (Results 26 - 50 of 506) sorted by relevance

1234567891011>>

/linux-master/drivers/staging/media/atomisp/pci/css_2401_system/host/
H A Disys_dma.c29 assert(dma_id < N_ISYS2401_DMA_ID);
30 assert((max_burst_size > 0x00) && (max_burst_size <= 0xFF));
/linux-master/tools/testing/selftests/bpf/
H A Dtest_lru_map.c10 #include <assert.h>
85 assert(!bpf_map_lookup_elem(mfd, &zero, value));
100 assert(!bpf_map_lookup_elem(map1, &next_key, value1));
157 assert(sched_next_online(0, &next_cpu) != -1);
163 assert(lru_map_fd != -1);
166 assert(expected_map_fd != -1);
173 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST));
174 assert(!bpf_map_update_elem(expected_map_fd, &key, value,
178 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -EEXIST);
181 assert(bpf_map_update_ele
[all...]
H A Dtest_lpm_map.c13 #include <assert.h>
59 assert(node);
133 assert(0);
143 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 8));
146 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8));
147 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16));
148 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0x00 }, 16));
149 assert(!tlpm_match(list, (uint8_t[]){ 0x7f }, 8));
150 assert(!tlpm_match(list, (uint8_t[]){ 0xfe }, 8));
151 assert(!tlpm_matc
[all...]
/linux-master/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
H A Ddma.c30 assert(ID < N_DMA_ID);
31 assert(max_burst_size > 0);
H A Dsp_private.h30 assert(ID < N_SP_ID);
31 assert(SP_CTRL_BASE[ID] != (hrt_address)-1);
40 assert(ID < N_SP_ID);
41 assert(SP_CTRL_BASE[ID] != (hrt_address)-1);
83 assert(ID < N_SP_ID);
84 assert(SP_DMEM_BASE[ID] != (hrt_address)-1);
95 assert(ID < N_SP_ID);
96 assert(SP_DMEM_BASE[ID] != (hrt_address)-1);
106 assert(ID < N_SP_ID);
107 assert(SP_DMEM_BAS
[all...]
H A Disp_private.h35 assert(ID < N_ISP_ID);
36 assert(ISP_CTRL_BASE[ID] != (hrt_address) - 1);
49 assert(ID < N_ISP_ID);
50 assert(ISP_CTRL_BASE[ID] != (hrt_address) - 1);
96 assert(ID < N_ISP_ID);
97 assert(ISP_DMEM_BASE[ID] != (hrt_address) - 1);
112 assert(ID < N_ISP_ID);
113 assert(ISP_DMEM_BASE[ID] != (hrt_address) - 1);
127 assert(ID < N_ISP_ID);
128 assert(ISP_DMEM_BAS
[all...]
H A Disp.c47 assert(ID < N_ISP_ID);
54 assert(ID < N_ISP_ID);
61 assert(ID < N_ISP_ID);
67 assert(ID < N_ISP_ID);
/linux-master/tools/testing/selftests/proc/
H A Dthread-self.c18 #include <assert.h>
38 assert(rv == strlen(buf1));
40 assert(streq(buf1, buf2));
57 assert(stack != MAP_FAILED);
60 assert(pid > 0);
H A Dproc-empty-vm.c30 #include <assert.h>
228 assert(rv == 0);
231 assert(rv == len);
232 assert(memcmp(buf, g_proc_pid_maps_vsyscall, len) == 0);
256 assert(rv == 0);
280 assert(0 <= rv);
281 assert(rv <= sizeof(buf));
284 assert(rv == 0);
287 assert(rv > len);
288 assert(memcm
[all...]
H A Dproc.h3 #include <assert.h>
37 assert(errno == 0);
40 assert(0);
49 assert(de || errno == 0);
H A Dread.c23 #include <assert.h>
51 assert((0 <= rv && rv <= sizeof(buf)) || rv == -1);
64 assert((0 <= rv && rv <= len) || rv == -1);
74 assert((0 <= rv && rv <= sizeof(buf)) || rv == -1);
82 assert(de->d_type == DT_DIR);
83 assert(streq(de->d_name, "."));
86 assert(de->d_type == DT_DIR);
87 assert(streq(de->d_name, ".."));
90 assert(!streq(de->d_name, "."));
91 assert(!stre
[all...]
H A Dfd-001-lookup.c19 #include <assert.h>
40 assert(rv == 0);
41 assert(S_ISLNK(st.st_mode));
50 assert(rv == -1 && errno == ENOENT);
116 assert(de->d_type == DT_DIR);
117 assert(streq(de->d_name, "."));
120 assert(de->d_type == DT_DIR);
121 assert(streq(de->d_name, ".."));
129 assert(de->d_type == DT_LNK);
132 assert(*en
[all...]
/linux-master/drivers/staging/media/atomisp/pci/runtime/event/src/
H A Devent.c50 assert(in);
51 assert(out);
76 assert(payload[1] == 0);
77 assert(payload[2] == 0);
78 assert(payload[3] == 0);
/linux-master/tools/testing/radix-tree/
H A Dtag_check.c3 #include <assert.h>
20 assert(item_tag_get(tree, index, tag) == 0);
23 assert(item_tag_get(tree, index, tag) == 0);
26 assert(ret != 0);
28 assert(ret == 1);
30 assert(ret != 0);
32 assert(ret != 0);
35 assert(ret == 0);
37 assert(ret != 0);
39 assert(re
[all...]
/linux-master/drivers/staging/media/atomisp/pci/isp/kernels/dpc2/
H A Dia_css_dpc2.host.c27 assert((from->metric1 >= 0) && (from->metric1 <= METRIC1_ONE_FP));
28 assert((from->metric3 >= 0) && (from->metric3 <= METRIC3_ONE_FP));
29 assert((from->metric2 >= METRIC2_ONE_FP) &&
31 assert((from->wb_gain_gr > 0) && (from->wb_gain_gr < 16 * WBGAIN_ONE_FP));
32 assert((from->wb_gain_r > 0) && (from->wb_gain_r < 16 * WBGAIN_ONE_FP));
33 assert((from->wb_gain_b > 0) && (from->wb_gain_b < 16 * WBGAIN_ONE_FP));
34 assert((from->wb_gain_gb > 0) && (from->wb_gain_gb < 16 * WBGAIN_ONE_FP));
/linux-master/arch/mips/math-emu/
H A Dieee754sp.c30 assert(ieee754sp_isnan(x));
42 assert(ieee754sp_issnan(r));
89 assert(xm); /* we don't gen exact zeros (probably should) */
91 assert((xm >> (SP_FBITS + 1 + 3)) == 0); /* no excess */
92 assert(xm & (SP_HIDDEN_BIT << 3));
134 assert((xm & (SP_HIDDEN_BIT << 3)) == 0);
135 assert(xe == SP_EMIN);
158 assert((xm >> (SP_FBITS + 1)) == 0); /* no excess */
159 assert(xe >= SP_EMIN);
186 assert(x
[all...]
H A Dieee754dp.c30 assert(ieee754dp_isnan(x));
42 assert(ieee754dp_issnan(r));
89 assert(xm); /* we don't gen exact zeros (probably should) */
91 assert((xm >> (DP_FBITS + 1 + 3)) == 0); /* no excess */
92 assert(xm & (DP_HIDDEN_BIT << 3));
135 assert((xm & (DP_HIDDEN_BIT << 3)) == 0);
136 assert(xe == DP_EMIN);
159 assert((xm >> (DP_FBITS + 1)) == 0); /* no excess */
160 assert(xe >= DP_EMIN);
187 assert(x
[all...]
/linux-master/tools/testing/selftests/powerpc/signal/
H A Dsigreturn_vdso.c20 // Ensure assert() is not compiled out
22 #include <assert.h>
82 assert(sigaction(SIGUSR1, &act, NULL) == 0);
85 assert(search_proc_maps("[vdso]", &low, &high) == 0);
90 assert(took_signal == 1);
95 assert(p != MAP_FAILED);
96 assert(mremap((void *)low, size, size, MREMAP_MAYMOVE|MREMAP_FIXED, p) != MAP_FAILED);
97 assert(search_proc_maps("[vdso]", &low, &high) == 0);
102 assert(took_signal == 2);
105 assert(munma
[all...]
/linux-master/tools/virtio/ringtest/
H A Dmain.c11 #include <assert.h>
41 assert(r == sizeof v);
52 assert(r == sizeof v);
88 assert(!*endptr);
90 assert(cpu >= 0 && cpu < CPU_SETSIZE);
97 assert(!ret);
148 assert(completed <= bufs);
149 assert(started <= bufs);
193 assert(completed <= bufs);
303 assert(kickf
[all...]
/linux-master/drivers/staging/media/atomisp/pci/
H A Dsh_css_properties.c24 assert(properties);
/linux-master/drivers/reset/starfive/
H A Dreset-starfive-jh71x0.h10 void __iomem *assert, void __iomem *status,
/linux-master/samples/bpf/
H A Dtest_probe_write_user_user.c3 #include <assert.h>
59 assert((serverfd = socket(AF_INET, SOCK_STREAM, 0)) > 0);
60 assert((clientfd = socket(AF_INET, SOCK_STREAM, 0)) > 0);
68 assert(bind(serverfd, &serv_addr, sizeof(serv_addr)) == 0);
71 assert(getsockname(serverfd, &serv_addr, &sockaddr_len) == 0);
80 assert(!bpf_map_update_elem(map_fd, &mapped_addr, &serv_addr, BPF_ANY));
82 assert(listen(serverfd, 5) == 0);
87 assert(connect(clientfd, &mapped_addr, sizeof(mapped_addr)) == 0);
91 assert((serverconnfd = accept(serverfd, &tmp_addr, &sockaddr_len)) > 0);
96 assert(getpeernam
[all...]
/linux-master/lib/zstd/common/
H A Ddebug.h18 * They regroup assert(), DEBUGLOG() and RAWLOG() for run-time,
23 * Level 1 enables assert() only.
37 /* static assert is triggered at compile time, leaving no runtime artefact.
38 * static assert only works with compile-time constants.
53 * 1 : enables assert() only, no display
70 # ifndef assert /* assert may be already defined, due to prior #include <assert.h> */
71 # define assert(condition) ((void)0) /* disable assert (defaul macro
[all...]
/linux-master/tools/crypto/ccp/
H A Ddbc.c10 #include <assert.h>
27 assert(nonce_out);
43 assert(uid);
44 assert(signature);
62 assert(signature);
63 assert(data);
/linux-master/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/
H A Dia_css_sdis2.host.c51 assert(padding >= 0);
52 assert(total_bytes <= size);
53 assert(size % (IA_CSS_DVS2_NUM_COEF_TYPES * ISP_VEC_NELEMS * sizeof(
76 assert(padding >= 0);
77 assert(total_bytes <= size);
78 assert(size % (IA_CSS_DVS2_NUM_COEF_TYPES * ISP_VEC_NELEMS * sizeof(
123 assert(stream);
124 assert(hor_coefs_odd_real);
125 assert(hor_coefs_odd_imag);
126 assert(hor_coefs_even_rea
[all...]

Completed in 345 milliseconds

1234567891011>>