| /Zephyr-latest/include/zephyr/sys/ | 
| D | util.h | 97 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))  argument106 #define IS_ARRAY(array) \
 108 		!__builtin_types_compatible_p(__typeof__(array), \
 109 					      __typeof__(&(array)[0])))
 120 #define ARRAY_SIZE(array) \
 121 	((size_t) (IS_ARRAY(array) + (sizeof(array) / sizeof((array)[0]))))
 162 #define IS_ARRAY_ELEMENT(array, ptr)                                                               \  argument
 163 	((ptr) && POINTER_TO_UINT(array) <= POINTER_TO_UINT(ptr) &&                          \
 164 	 POINTER_TO_UINT(ptr) < POINTER_TO_UINT(&(array)[ARRAY_SIZE(array)]) &&                    \
 165 	 (POINTER_TO_UINT(ptr) - POINTER_TO_UINT(array)) % sizeof((array)[0]) == 0)
 [all …]
 
 | 
| /Zephyr-latest/tests/unit/util/ | 
| D | main.c | 278 	uint8_t array[3] = {0};  in ZTEST()  local279 	uint8_t *buf = array;  in ZTEST()
 283 	zassert_equal(array[0], 1, "Unexpected value %d", array[0]);  in ZTEST()
 284 	zassert_equal(array[1], 2, "Unexpected value %d", array[1]);  in ZTEST()
 285 	zassert_equal(array[2], 3, "Unexpected value %d", array[2]);  in ZTEST()
 302 	uint8_t array[] = {  in ZTEST()  local
 316 	size_t size = ARRAY_SIZE(array);  in ZTEST()
 319 	zassert_equal(array[0], 1, "Unexpected value %d", array[0]);  in ZTEST()
 320 	zassert_equal(array[1], 4, "Unexpected value %d", array[1]);  in ZTEST()
 321 	zassert_equal(array[2], 9, "Unexpected value %d", array[2]);  in ZTEST()
 [all …]
 
 | 
| /Zephyr-latest/tests/lib/cpp/libcxx/src/ | 
| D | main.cpp | 16 std::array<int, 4> array = {1, 2, 3, 4};  variable21 	zassert_equal(array.size(), 4, "unexpected size");  in ZTEST()
 22 	zassert_equal(array[0], 1, "array[0] wrong");  in ZTEST()
 23 	zassert_equal(array[3], 4, "array[3] wrong");  in ZTEST()
 25 	std::array<uint8_t, 2> local = {1, 2};  in ZTEST()
 34 	for (auto v : array) {  in ZTEST()
 37 	zassert_equal(vector.size(), array.size(), "vector store failed");  in ZTEST()
 
 | 
| /Zephyr-latest/scripts/native_simulator/common/src/include/ | 
| D | nsi_utils.h | 24 #define NSI_ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))  argument
 | 
| /Zephyr-latest/drivers/net/ | 
| D | nsos_netdb.c | 32 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))  argument
 | 
| /Zephyr-latest/tests/subsys/logging/log_msg/src/ | 
| D | main.c | 268 	static const uint8_t array[] = {1, 2, 3, 4};  in ZTEST()  local272 	Z_LOG_MSG_CREATE3(1, mode, 0, domain, source, level, array,  in ZTEST()
 273 			   sizeof(array));  in ZTEST()
 276 	Z_LOG_MSG_CREATE3(0, mode, 0, domain, source, level, array,  in ZTEST()
 277 			   sizeof(array));  in ZTEST()
 280 	z_log_msg_runtime_create(domain, (void *)source, level, array,  in ZTEST()
 281 				  sizeof(array), 0, NULL);  in ZTEST()
 285 				   array, sizeof(array), NULL);  in ZTEST()
 297 	static const uint8_t array[] = {1, 2, 3, 4};  in ZTEST()  local
 301 	Z_LOG_MSG_CREATE3(1, mode, 0, domain, source, level, array,  in ZTEST()
 [all …]
 
 | 
| /Zephyr-latest/samples/arch/smp/pi/src/ | 
| D | main.c | 54 	int array[LENGTH + 1] = {};  in test_thread()  local59 		array[i] = ARRAY_INIT;  in test_thread()
 66 			sum = sum * j + NEW_BASE * array[j];  in test_thread()
 67 			array[j] = sum % (j * 2 - 1);  in test_thread()
 
 | 
| /Zephyr-latest/scripts/dts/python-devicetree/tests/ | 
| D | test.dts | 353 		array = <1 2 3>;354 		uint8-array = [ 12 34 ];
 356 		string-array = "foo", "bar", "baz";
 359 		phandle-array-foos = < &{/ctrl-1} 1 &{/ctrl-2} 2 3 >;
 365 		compatible = "phandle-array-controller-1";
 366 		#phandle-array-foo-cells = <1>;
 371 		compatible = "phandle-array-controller-2";
 372 		#phandle-array-foo-cells = <2>;
 377 		phandle-array-foos = < &{/ctrl-0-1} 0 &{/ctrl-0-2} >;
 378 		phandle-array-foo-names = "a", "missing", "b";
 [all …]
 
 | 
| /Zephyr-latest/doc/build/dts/ | 
| D | phandles.rst | 73 You can use phandles to make an array of references to other nodes.89 Zero or more nodes with metadata: phandle-array type
 98 These properties have type ``phandle-array``.
 102 phandle-array properties
 111 Usually, properties with this type are written like ``phandle-array-prop`` in
 117            phandle-array-prop = <&foo 1 2>, <&bar 3>, <&baz 4 5>;
 135 document more rules about how to use phandle-array properties in practice.
 140 Perhaps the most common use case for phandle-array properties is specifying one
 143 cases** that are handled in devicetree with phandle-array properties.
 158 Instead, you would use a phandle-array property, like this:
 [all …]
 
 | 
| D | bindings-syntax.rst | 129        type: array162      type: <string | int | boolean | array | uint8-array | string-array |
 163             phandle | phandles | phandle-array | path | compound>
 172      const: <string | int | array | uint8-array | string-array>
 194            type: string-array
 230        array-with-default:
 231            type: array
 232            default: [1, 2, 3] # Same as 'array-with-default = <1 2 3>'
 238        string-array-with-default:
 239            type: string-array
 [all …]
 
 | 
| /Zephyr-latest/lib/libc/minimal/source/stdlib/ | 
| D | bsearch.c | 22 void *bsearch(const void *key, const void *array, size_t count, size_t size,  in bsearch()  argument33 		pivot = (const char *)array + index * size;  in bsearch()
 
 | 
| /Zephyr-latest/scripts/west_commands/runners/ | 
| D | canopen_program.py | 329         array = canopen.objectdictionary.Array('Program data', 0x1f50)332         array.add_member(member)
 333         objdict.add_object(array)
 335         array = canopen.objectdictionary.Array('Program control', 0x1f51)
 338         array.add_member(member)
 339         objdict.add_object(array)
 341         array = canopen.objectdictionary.Array('Program software ID', 0x1f56)
 344         array.add_member(member)
 345         objdict.add_object(array)
 347         array = canopen.objectdictionary.Array('Flash error ID', 0x1f57)
 [all …]
 
 | 
| /Zephyr-latest/samples/sensor/amg88xx/ | 
| D | README.rst | 2    :name: AMG88XX infrared array sensor10 This sample application periodically reads the 8x8 temperature array from
 39 The sensor array data is output every second.
 
 | 
| /Zephyr-latest/include/zephyr/data/ | 
| D | json.h | 110 		} array;  member227 		.array = { \
 277 		.array = { \
 326 		.array = { \
 385 		.array = { \
 420 		.array = { \
 506 		.array = { \
 563 		.array = { \
 
 | 
| /Zephyr-latest/tests/subsys/dsp/utils/src/ | 
| D | q15.c | 15 #define DEFINE_MULTIPLE_TEST_CASES(constructor, variant, array)                                    \  argument16 	FOR_EACH_IDX_FIXED_ARG(constructor, (), variant, array)
 
 | 
| D | q31.c | 15 #define DEFINE_MULTIPLE_TEST_CASES(constructor, variant, array)                                    \  argument16 	FOR_EACH_IDX_FIXED_ARG(constructor, (), variant, array)
 
 | 
| D | q7.c | 15 #define DEFINE_MULTIPLE_TEST_CASES(constructor, variant, array)                                    \  argument16 	FOR_EACH_IDX_FIXED_ARG(constructor, (), variant, array)
 
 | 
| D | f32.c | 15 #define DEFINE_MULTIPLE_TEST_CASES(constructor, variant, array)                                    \  argument16 	FOR_EACH_IDX_FIXED_ARG(constructor, (), variant, array)
 
 | 
| D | f64.c | 15 #define DEFINE_MULTIPLE_TEST_CASES(constructor, variant, array)                                    \  argument16 	FOR_EACH_IDX_FIXED_ARG(constructor, (), variant, array)
 
 | 
| /Zephyr-latest/samples/kernel/metairq_dispatch/src/ | 
| D | main.c | 87 static void calc_stats(const uint32_t *array, uint32_t n,  in calc_stats()  argument95 		*lo = MIN(*lo, array[i]);  in calc_stats()
 96 		*hi = MAX(*hi, array[i]);  in calc_stats()
 97 		tot += array[i];  in calc_stats()
 103 		int64_t d = (int32_t) (array[i] - *mean);  in calc_stats()
 
 | 
| /Zephyr-latest/tests/lib/devicetree/api/ | 
| D | app.overlay | 47 		test_arrays: array-holder {50 			 * There should only be one vnd,array-holder in the entire DTS.
 52 			compatible = "vnd,array-holder", "vnd,undefined-compat";
 118 			compatible = "vnd,enum-string-array-holder";
 123 			compatible = "vnd,enum-int-array-holder";
 751 		test_str_array_token_0: string-array-token-0 {
 752 			compatible = "vnd,string-array-token";
 758 		test_str_array_token_1: string-array-token-1 {
 759 			compatible = "vnd,string-array-token";
 795 		test_stra_unquoted_f0: string-array-unquoted-f0 {
 [all …]
 
 | 
| /Zephyr-latest/doc/kernel/services/other/ | 
| D | atomic.rst | 24 in an array of atomic variables.69 An array of 32-bit atomic variables can be defined in the conventional manner.
 70 However, you can also define an N-bit array of atomic variables using
 73 A single bit in array of atomic variables can be manipulated using
 77 using an array of atomic variables.
 109 on a set of flag bits in a bit array longer than 32 bits.
 
 | 
| /Zephyr-latest/subsys/bluetooth/host/ | 
| D | settings.h | 26 #define ID_DATA_LEN(array) (bt_dev.id_count * sizeof(array[0]))  argument
 | 
| /Zephyr-latest/tests/modules/thrift/ThriftTest/src/ | 
| D | context.hpp | 27 	std::array<int, CLIENT + 1> fds;
 | 
| /Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/ | 
| D | data_augmentation.py | 53             new_data.append((np.array(data, dtype=np.float32) +72                     (np.array(data, dtype=np.float32) * molecule / denominator).tolist())
 
 |