Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 167) sorted by relevance

1234567

/Zephyr-latest/tests/lib/mem_alloc/src/
Dmain.c65 iptr = malloc(BUF_LEN); in _test_no_mem_malloc()
135 ptr[i] = malloc(sizeof *(ptr[i])); in ZTEST()
136 aptr = malloc(sizeof(*aptr)); in ZTEST()
151 ptr[i] = malloc(sizeof *(ptr[i])); in ZTEST()
153 aptr = malloc(sizeof(*aptr)); in ZTEST()
167 ptr[n] = malloc(n); in ZTEST()
168 aptr = malloc(sizeof(*aptr)); in ZTEST()
188 iptr = malloc(BUF_LEN * sizeof(int)); in ZTEST()
223 ptr = malloc(orig_size); in ZTEST()
301 ptr = malloc(orig_size); in ZTEST()
[all …]
/Zephyr-latest/lib/cpp/minimal/
Dcpp_new.cpp24 return malloc(size); in operator new()
29 return malloc(size); in operator new[]()
34 return malloc(size); in operator new()
39 return malloc(size); in operator new[]()
/Zephyr-latest/tests/benchmarks/cmsis_dsp/basicmath/src/
Dq15.c92 output = malloc(PATTERN_LENGTH * sizeof(q15_t)); in ZTEST()
117 output = malloc(PATTERN_LENGTH * sizeof(q15_t)); in ZTEST()
142 output = malloc(PATTERN_LENGTH * sizeof(q15_t)); in ZTEST()
167 output = malloc(PATTERN_LENGTH * sizeof(q15_t)); in ZTEST()
192 output = malloc(PATTERN_LENGTH * sizeof(q15_t)); in ZTEST()
217 output = malloc(PATTERN_LENGTH * sizeof(q15_t)); in ZTEST()
242 output = malloc(PATTERN_LENGTH * sizeof(q15_t)); in ZTEST()
Dq31.c156 output = malloc(PATTERN_LENGTH * sizeof(q31_t)); in ZTEST()
181 output = malloc(PATTERN_LENGTH * sizeof(q31_t)); in ZTEST()
206 output = malloc(PATTERN_LENGTH * sizeof(q31_t)); in ZTEST()
231 output = malloc(PATTERN_LENGTH * sizeof(q31_t)); in ZTEST()
256 output = malloc(PATTERN_LENGTH * sizeof(q31_t)); in ZTEST()
281 output = malloc(PATTERN_LENGTH * sizeof(q31_t)); in ZTEST()
306 output = malloc(PATTERN_LENGTH * sizeof(q31_t)); in ZTEST()
Dq7.c92 output = malloc(PATTERN_LENGTH * sizeof(q7_t)); in ZTEST()
117 output = malloc(PATTERN_LENGTH * sizeof(q7_t)); in ZTEST()
142 output = malloc(PATTERN_LENGTH * sizeof(q7_t)); in ZTEST()
167 output = malloc(PATTERN_LENGTH * sizeof(q7_t)); in ZTEST()
192 output = malloc(PATTERN_LENGTH * sizeof(q7_t)); in ZTEST()
217 output = malloc(PATTERN_LENGTH * sizeof(q7_t)); in ZTEST()
242 output = malloc(PATTERN_LENGTH * sizeof(q7_t)); in ZTEST()
Df32.c156 output = malloc(PATTERN_LENGTH * sizeof(float32_t)); in ZTEST()
183 output = malloc(PATTERN_LENGTH * sizeof(float32_t)); in ZTEST()
210 output = malloc(PATTERN_LENGTH * sizeof(float32_t)); in ZTEST()
237 output = malloc(PATTERN_LENGTH * sizeof(float32_t)); in ZTEST()
262 output = malloc(PATTERN_LENGTH * sizeof(float32_t)); in ZTEST()
287 output = malloc(PATTERN_LENGTH * sizeof(float32_t)); in ZTEST()
312 output = malloc(PATTERN_LENGTH * sizeof(float32_t)); in ZTEST()
/Zephyr-latest/tests/lib/cmsis_dsp/matrix/src/
Dbinary_q15.c42 output = malloc(length * sizeof(q15_t)); in test_op2()
45 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op2()
48 tmp2 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op2()
51 scratch = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op2()
137 output = malloc(2 * length * sizeof(q15_t)); in test_op2c()
140 tmp1 = malloc(2 * MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op2c()
143 tmp2 = malloc(2 * MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op2c()
146 scratch = malloc(2 * MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op2c()
Dunary_q15.c43 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op2()
46 tmp2 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op2()
49 output = malloc(length * sizeof(q15_t)); in test_op2()
126 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op1()
129 output = malloc(length * sizeof(q15_t)); in test_op1()
202 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op2v()
205 vec = malloc(2 * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op2v()
208 output_buf = malloc(length * sizeof(q15_t)); in test_op2v()
273 tmp1 = malloc(2 * MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op1c()
276 output = malloc(2 * length * sizeof(q15_t)); in test_op1c()
Dunary_q31.c43 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q31_t)); in test_op2()
46 tmp2 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q31_t)); in test_op2()
49 output = malloc(length * sizeof(q31_t)); in test_op2()
126 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q31_t)); in test_op1()
129 output = malloc(length * sizeof(q31_t)); in test_op1()
202 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q31_t)); in test_op2v()
205 vec = malloc(2 * MAX_MATRIX_DIM * sizeof(q31_t)); in test_op2v()
208 output_buf = malloc(length * sizeof(q31_t)); in test_op2v()
273 tmp1 = malloc(2 * MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q31_t)); in test_op1c()
276 output = malloc(2 * length * sizeof(q31_t)); in test_op1c()
Dbinary_q7.c38 output = malloc(length * sizeof(q7_t)); in test_op2()
41 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q7_t)); in test_op2()
44 tmp2 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q7_t)); in test_op2()
47 scratch = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(q7_t)); in test_op2()
Dbinary_f32.c40 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(float32_t)); in test_op2()
43 tmp2 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(float32_t)); in test_op2()
46 output = malloc(length * sizeof(float32_t)); in test_op2()
131 tmp1 = malloc(2 * MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(float32_t)); in test_op2c()
134 tmp2 = malloc(2 * MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(float32_t)); in test_op2c()
137 output = malloc(2 * length * sizeof(float32_t)); in test_op2c()
Dbinary_f64.c40 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(float64_t)); in test_op2()
43 tmp2 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(float64_t)); in test_op2()
46 output = malloc(length * sizeof(float64_t)); in test_op2()
136 tmp1 = malloc(2 * MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(float64_t));
139 tmp2 = malloc(2 * MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(float64_t));
142 output = malloc(2 * length * sizeof(float64_t));
/Zephyr-latest/tests/lib/cmsis_dsp/support/src/
Df16.c36 output = malloc(length * sizeof(float16_t)); in test_arm_copy_f16()
62 output = malloc(length * sizeof(float16_t)); in test_arm_fill_f16()
88 output = malloc(length * sizeof(q15_t)); in test_arm_f16_to_q15()
113 output = malloc(length * sizeof(float32_t)); in test_arm_f16_to_float()
139 output = malloc(length * sizeof(float16_t)); in test_arm_q15_to_f16()
165 output = malloc(length * sizeof(float16_t)); in test_arm_float_to_f16()
194 output = malloc(1 * sizeof(float16_t)); in test_arm_weighted_average_f16()
Df32.c27 output = malloc(length * sizeof(float32_t)); in test_arm_copy_f32()
53 output = malloc(length * sizeof(float32_t)); in test_arm_fill_f32()
79 output = malloc(length * sizeof(q31_t)); in test_arm_float_to_q31()
104 output = malloc(length * sizeof(q15_t)); in test_arm_float_to_q15()
129 output = malloc(length * sizeof(q7_t)); in test_arm_float_to_q7()
157 output = malloc(1 * sizeof(float32_t)); in test_arm_weighted_average_f32()
185 output = malloc(length * sizeof(float32_t)); in test_arm_sort_out()
240 output = malloc(length * sizeof(float32_t)); in test_arm_merge_sort_out()
244 scratch = malloc(length * sizeof(float32_t)); in test_arm_merge_sort_out()
274 output = malloc(length * sizeof(float32_t)); in test_arm_sort_in()
[all …]
Dq15.c26 output = malloc(length * sizeof(q15_t)); in test_arm_copy_q15()
52 output = malloc(length * sizeof(q15_t)); in test_arm_fill_q15()
78 output = malloc(length * sizeof(float32_t)); in test_arm_q15_to_float()
104 output = malloc(length * sizeof(q31_t)); in test_arm_q15_to_q31()
130 output = malloc(length * sizeof(q7_t)); in test_arm_q15_to_q7()
Dq31.c26 output = malloc(length * sizeof(q31_t)); in test_arm_copy_q31()
52 output = malloc(length * sizeof(q31_t)); in test_arm_fill_q31()
78 output = malloc(length * sizeof(float32_t)); in test_arm_q31_to_float()
104 output = malloc(length * sizeof(q15_t)); in test_arm_q31_to_q15()
129 output = malloc(length * sizeof(q7_t)); in test_arm_q31_to_q7()
Dq7.c26 output = malloc(length * sizeof(q7_t)); in test_arm_copy_q7()
52 output = malloc(length * sizeof(q7_t)); in test_arm_fill_q7()
78 output = malloc(length * sizeof(float32_t)); in test_arm_q7_to_float()
104 output = malloc(length * sizeof(q31_t)); in test_arm_q7_to_q31()
129 output = malloc(length * sizeof(q15_t)); in test_arm_q7_to_q15()
/Zephyr-latest/scripts/
Dvalgrind.supp5 fun:malloc
39 fun:malloc
46 fun:malloc
/Zephyr-latest/tests/lib/cmsis_dsp/fastmath/src/
Dq15.c28 output = malloc(length * sizeof(q15_t)); in ZTEST()
56 output = malloc(length * sizeof(q15_t)); in ZTEST()
85 output = malloc(length * sizeof(q15_t)); in ZTEST()
126 output = malloc(length * sizeof(q15_t)); in ZTEST()
129 shift = malloc(length * sizeof(uint16_t)); in ZTEST()
Df16.c44 output = malloc(length * sizeof(float16_t));
74 output = malloc(length * sizeof(float16_t));
108 output = malloc(length * sizeof(float16_t)); in ZTEST()
148 output = malloc(length * sizeof(float16_t)); in test_arm_vlog_f16()
180 output = malloc(length * sizeof(float16_t)); in test_arm_vexp_f16()
212 output = malloc(length * sizeof(float16_t)); in ZTEST()
/Zephyr-latest/tests/lib/cmsis_dsp/quaternionmath/src/
Df32.c28 output = malloc(length * sizeof(float32_t)); in ZTEST()
56 output = malloc(length * sizeof(float32_t)); in ZTEST()
84 output = malloc(length * sizeof(float32_t)); in ZTEST()
112 output = malloc(length * sizeof(float32_t)); in ZTEST()
142 output_buf = malloc(length * sizeof(float32_t)); in ZTEST()
179 output = malloc(length * sizeof(float32_t)); in ZTEST()
207 output = malloc(length * sizeof(float32_t)); in ZTEST()
235 output = malloc(length * sizeof(float32_t)); in ZTEST()
/Zephyr-latest/lib/libc/common/
DKconfig51 bool "Common C library malloc implementation"
54 Common implementation of malloc family that uses the kernel heap
58 int "Size of the common C library malloc arena"
67 common C library malloc() implementation.
69 If set to zero, then no malloc() heap will be available.
80 malloc heap. Otherwise, on systems with an MMU the default is
82 ram for the malloc heap.
91 which forwards to malloc and memset.
/Zephyr-latest/tests/lib/cmsis_dsp/filtering/src/
Dbiquad_f64.c31 state = malloc(128 * sizeof(float64_t)); in ZTEST()
34 output_buf = malloc(length * sizeof(float64_t)); in ZTEST()
82 state = malloc(128 * sizeof(float64_t)); in ZTEST()
85 output_buf = malloc(length * sizeof(float64_t)); in ZTEST()
Dbiquad_q31.c34 state = malloc(32 * sizeof(q31_t)); in ZTEST()
37 output_buf = malloc(length * sizeof(q31_t)); in ZTEST()
83 state = malloc(32 * sizeof(q63_t)); in ZTEST()
86 output_buf = malloc(length * sizeof(q31_t)); in ZTEST()
/Zephyr-latest/tests/lib/cmsis_dsp/interpolation/src/
Df32.c34 output = malloc(length * sizeof(float32_t)); in test_arm_linear_interp_f32()
72 output = malloc(length * sizeof(float32_t)); in test_arm_bilinear_interp_f32()
110 output = malloc(length * sizeof(float32_t)); in test_arm_spline()
114 scratch = malloc(((n * 2) - 1) * sizeof(float32_t)); in test_arm_spline()
118 coeff = malloc(((n - 1) * 3) * sizeof(float32_t)); in test_arm_spline()

1234567