/Zephyr-latest/cmake/bintools/arcmwdt/ |
D | target_bintools.cmake | 1 # - memusage: Name of command for memusage 3 set_property(TARGET bintools PROPERTY memusage_command "${CMAKE_SIZE}") 4 set_property(TARGET bintools PROPERTY memusage_flag "-gq") 5 set_property(TARGET bintools PROPERTY memusage_infile "") 10 set_property(TARGET bintools PROPERTY elfconvert_formats ihex srec binary) 15 set_property(TARGET bintools PROPERTY elfconvert_command ${CMAKE_COMMAND}) 17 set_property(TARGET bintools PROPERTY elfconvert_flag 18 -DELF2HEX=${CMAKE_ELF2HEX} 19 -DELF2BIN=${CMAKE_ELF2BIN} 20 -DSTRIP=${CMAKE_STRIP} [all …]
|
/Zephyr-latest/cmake/bintools/gnu/ |
D | target_bintools.cmake | 1 # SPDX-License-Identifier: Apache-2.0 3 # - elfconvert : Name of command for elf file conversion. 8 # elfconvert_flag_strip_all : -S 9 # elfconvert_flag_strip_debug : -g 10 # elfconvert_flag_strip_unneeded: --strip-unneeded 11 # elfconvert_flag_compress_debug_sections: --compress-debug-sections 12 # elfconvert_flag_intarget : --input-target= 13 # elfconvert_flag_outtarget : --output-target= 14 # elfconvert_flag_section_remove: --remove-section= 15 # elfconvert_flag_section_only : --only-section= [all …]
|
/Zephyr-latest/cmake/bintools/llvm/ |
D | target_bintools.cmake | 1 # SPDX-License-Identifier: Apache-2.0 3 # - elfconvert : Name of command for elf file conversion. 8 # elfconvert_flag_strip_all : -S 9 # elfconvert_flag_strip_debug : -g 10 # elfconvert_flag_strip_unneeded: --strip-unneeded 11 # elfconvert_flag_compress_debug_sections: --compress-debug-sections 12 # elfconvert_flag_intarget : --input-target= 13 # elfconvert_flag_outtarget : --output-target= 14 # elfconvert_flag_section_remove: --remove-section= 15 # elfconvert_flag_section_only : --only-section= [all …]
|
/Zephyr-latest/cmake/bintools/iar/ |
D | target_bintools.cmake | 3 # SPDX-License-Identifier: Apache-2.0 5 # - elfconvert : Name of command for elf file conversion. 10 # elfconvert_flag_strip_all : -S 11 # elfconvert_flag_strip_debug : -g 12 # elfconvert_flag_intarget : --input-target= 13 # elfconvert_flag_outtarget : --output-target= 14 # elfconvert_flag_section_remove: --remove-section= 15 # elfconvert_flag_section_only : --only-section= 16 # elfconvert_flag_section_rename: --rename-section; 17 # elfconvert_flag_gapfill : --gap-fill; [all …]
|
/Zephyr-latest/cmake/bintools/armclang/ |
D | target_bintools.cmake | 3 set_property(TARGET bintools PROPERTY elfconvert_formats ihex binary) 8 set_property(TARGET bintools PROPERTY elfconvert_command ${CMAKE_COMMAND}) 10 set_property(TARGET bintools PROPERTY elfconvert_flag 11 -DFROMELF=${CMAKE_FROMELF} 14 set_property(TARGET bintools PROPERTY elfconvert_flag_final 15 -P ${CMAKE_CURRENT_LIST_DIR}/elfconvert_command.cmake) 17 set_property(TARGET bintools PROPERTY elfconvert_flag_strip_all "-DSTRIP_ALL=True") 18 set_property(TARGET bintools PROPERTY elfconvert_flag_strip_debug "-DSTRIP_DEBUG=True") 20 set_property(TARGET bintools PROPERTY elfconvert_flag_intarget "-DINTARGET=") 21 set_property(TARGET bintools PROPERTY elfconvert_flag_outtarget "-DOUTTARGET=") [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | atomic_builtin.h | 4 * Copyright (c) 1997-2015, Wind River Systems, Inc. 7 * SPDX-License-Identifier: Apache-2.0 23 static inline bool atomic_cas(atomic_t *target, atomic_val_t old_value, in atomic_cas() argument 26 return __atomic_compare_exchange_n(target, &old_value, new_value, in atomic_cas() 31 static inline bool atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value, in atomic_ptr_cas() argument 34 return __atomic_compare_exchange_n(target, &old_value, new_value, in atomic_ptr_cas() 39 static inline atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add() argument 41 return __atomic_fetch_add(target, value, __ATOMIC_SEQ_CST); in atomic_add() 44 static inline atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub() argument 46 return __atomic_fetch_sub(target, value, __ATOMIC_SEQ_CST); in atomic_sub() [all …]
|
D | atomic.h | 2 * Copyright (c) 1997-2015, Wind River Systems, Inc. 6 * SPDX-License-Identifier: Apache-2.0 24 /* Low-level primitives come in several styles: */ 27 /* Generic-but-slow implementation based on kernel locking and syscalls */ 32 /* Not all Xtensa toolchains support GCC-style atomic intrinsics */ 43 /* Portable higher-level utilities: */ 77 #define ATOMIC_MASK(bit) BIT((unsigned long)(bit) & (ATOMIC_BITS - 1U)) 117 * Atomically get a value and then test whether bit number @a bit of @a target is set or not. 118 * The target may be a single atomic variable or an array of them. 122 * @param target Address of atomic variable or array. [all …]
|
D | atomic_arch.h | 5 * SPDX-License-Identifier: Apache-2.0 18 bool atomic_cas(atomic_t *target, atomic_val_t old_value, 21 bool atomic_ptr_cas(atomic_ptr_t *target, void *old_value, 24 atomic_val_t atomic_add(atomic_t *target, atomic_val_t value); 26 atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value); 28 atomic_val_t atomic_inc(atomic_t *target); 30 atomic_val_t atomic_dec(atomic_t *target); 32 atomic_val_t atomic_get(const atomic_t *target); 34 void *atomic_ptr_get(const atomic_ptr_t *target); 36 atomic_val_t atomic_set(atomic_t *target, atomic_val_t value); [all …]
|
D | atomic_c.h | 2 * Copyright (c) 1997-2015, Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 20 __syscall bool atomic_cas(atomic_t *target, atomic_val_t old_value, 23 __syscall bool atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value, 26 __syscall atomic_val_t atomic_add(atomic_t *target, atomic_val_t value); 28 __syscall atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value); 30 static inline atomic_val_t atomic_inc(atomic_t *target) in atomic_inc() argument 32 return atomic_add(target, 1); in atomic_inc() 36 static inline atomic_val_t atomic_dec(atomic_t *target) in atomic_dec() argument 38 return atomic_sub(target, 1); in atomic_dec() [all …]
|
/Zephyr-latest/kernel/ |
D | atomic_c.c | 3 * Copyright (c) 2011-2014 Wind River Systems, Inc. 5 * SPDX-License-Identifier: Apache-2.0 43 static inline atomic_val_t z_vrfy_##name(atomic_t *target) \ 45 K_OOPS(K_SYSCALL_MEMORY_WRITE(target, sizeof(atomic_t))); \ 46 return z_impl_##name((atomic_t *)target); \ 50 static inline atomic_val_t z_vrfy_##name(atomic_t *target, \ 53 K_OOPS(K_SYSCALL_MEMORY_WRITE(target, sizeof(atomic_t))); \ 54 return z_impl_##name((atomic_t *)target, value); \ 63 * @brief Atomic compare-and-set primitive 65 * This routine provides the compare-and-set operator. If the original value at [all …]
|
/Zephyr-latest/cmake/bintools/ |
D | bintools_template.cmake | 8 # - memusage : Tool for reporting target memory usage 10 # - disassembly : Tool for disassemble the target 11 # - elfconvert : Tool for converting from elf into another format. 12 # - readelf : Tool for elf file processing 13 # - strip : Tool for symbol stripping 14 # - symbols : Tool for listing symbols in a binary 17 # - <tool>_command : Name of executable to call 18 # - <tool>_flag : Flags that must always be used with this command 19 # - <tool>_flag_infile : Flag to use when specifying the file to process 20 # - <tool>_flag_outfile : Flag to use to specify the result of the processing. [all …]
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
D | state_binding.c | 5 * SPDX-License-Identifier: Apache-2.0 44 if (light > 0 && light < ctl->light->range_min) { in constrain_lightness() 45 light = ctl->light->range_min; in constrain_lightness() 46 } else if (light > ctl->light->range_max) { in constrain_lightness() 47 light = ctl->light->range_max; in constrain_lightness() 56 if (ctl->light->target > 0 && in constrain_target_lightness2() 57 ctl->light->target < ctl->light->range_min) { in constrain_target_lightness2() 58 if (ctl->light->delta < 0) { in constrain_target_lightness2() 59 ctl->light->target = 0U; in constrain_target_lightness2() 61 ctl->light->target = ctl->light->range_min; in constrain_target_lightness2() [all …]
|
/Zephyr-latest/tests/kernel/common/src/ |
D | atomic.c | 4 * SPDX-License-Identifier: Apache-2.0 10 /* convenience macro - return either 64-bit or 32-bit value */ 39 * - Test the function of the atomic operation API is correct. 42 * - Dynamic analysis and testing 43 * - Functional and black box testing 44 * - Interface testing 47 * - N/A 50 * - N/A 53 * -# Call the API interface of the following atomic operations in turn, 54 * judge the change of function return value and target operands. [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | emul_sensor.h | 3 * SPDX-License-Identifier: Apache-2.0 30 int (*set_channel)(const struct emul *target, struct sensor_chan_spec ch, 33 int (*get_sample_range)(const struct emul *target, struct sensor_chan_spec ch, q31_t *lower, 36 int (*set_attribute)(const struct emul *target, struct sensor_chan_spec ch, 39 int (*get_attribute_metadata)(const struct emul *target, struct sensor_chan_spec ch, 50 * @param target Pointer to emulator instance to query 52 * @return True if supported, false if unsupported or if \p target is NULL. 54 static inline bool emul_sensor_backend_is_supported(const struct emul *target) in emul_sensor_backend_is_supported() argument 56 return target && target->backend_api; in emul_sensor_backend_is_supported() 62 * @param target Pointer to emulator instance to operate on [all …]
|
/Zephyr-latest/cmake/linker/ |
D | linker_flags_template.cmake | 3 # SPDX-License-Identifier: Apache-2.0 7 set_property(TARGET linker PROPERTY base) 12 set_property(TARGET linker PROPERTY cpp_base) 14 # Base properties when building Zephyr for an embedded target (baremetal). 15 set_property(TARGET linker PROPERTY baremetal) 18 set_property(TARGET linker PROPERTY orphan_warning) 19 set_property(TARGET linker PROPERTY orphan_error) 22 # For example, on ld/gcc this would be: -lgcov 24 set_property(TARGET linker PROPERTY coverage) 28 # such as ls --print-memory-usage flag. [all …]
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | cm.c | 4 * SPDX-License-Identifier: Apache-2.0 89 /* Verify that a provided string consists only of the characters 0-9*/ 106 PR("Valid target specifiers are 'ifi [index]', 'if [name]', or '[index]'.\n"); in cm_target_help() 113 struct cm_target *target) in parse_ifi_target() argument 119 /* At least one remaining argument is required to specify a target index */ in parse_ifi_target() 121 PR_ERROR("Please specify the target iface index.\n"); in parse_ifi_target() 134 target->iface = net_if_get_by_index(iface_index); in parse_ifi_target() 136 if (target->iface == NULL) { in parse_ifi_target() 142 target->type = CM_TARG_IFACE; in parse_ifi_target() 146 target->type = CM_TARG_INVALID; in parse_ifi_target() [all …]
|
/Zephyr-latest/include/zephyr/arch/riscv/ |
D | atomic.h | 3 * SPDX-License-Identifier: Apache-2.0 13 /* The standard RISC-V atomic-instruction extension, "A", specifies 14 * the number of instructions that atomically read-modify-write memory, 15 * which RISC-V harts should support in order to synchronise harts 16 * running in the same memory space. This is the subset of RISC-V 17 * atomic-instructions not present in atomic_builtin.h file. 21 static ALWAYS_INLINE atomic_val_t atomic_swap(const atomic_t *target, atomic_val_t newval) in atomic_swap() argument 27 : "r"(newval), "A"(*target) in atomic_swap() 33 static ALWAYS_INLINE atomic_val_t atomic_max(atomic_t *target, atomic_val_t value) in atomic_max() argument 39 : "r"(value), "A"(*target) in atomic_max() [all …]
|
/Zephyr-latest/scripts/west_commands/zspdx/ |
D | cmakefileapijson.py | 3 # SPDX-License-Identifier: Apache-2.0 26 cm_dict = reply_dict.get("codemodel-v2", {}) 28 log.err(f"no \"codemodel-v2\" field found in \"reply\" object in index file") 33 log.err(f"no \"jsonFile\" field found in \"codemodel-v2\" object in index file") 60 versionMajor = version.get("major", -1) 62 if versionMajor == -1: 103 cfgdir.parentIndex = dir_dict.get("parentIndex", -1) 105 cfgdir.projectIndex = dir_dict.get("projectIndex", -1) 118 prj.parentIndex = prj_dict.get("parentIndex", -1) 124 # parse and add each target [all …]
|
/Zephyr-latest/tests/drivers/sensor/adltc2990/src/ |
D | main.c | 2 * SPDX-FileCopyrightText: Copyright (c) 2023 Carl Zeiss Meditec AG 3 * SPDX-License-Identifier: Apache-2.0 18 zassert_ok(sensor_sample_fetch_chan(fixture->dev, SENSOR_CHAN_VOLTAGE)); \ 19 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_VOLTAGE, sensor_val)); \ 22 (pin_voltage - 0.01f) * ((r1 + r2) / (float)r2), \ 27 (double)((pin_voltage - 0.01f) * ((r1 + r2) / (float)r2)), \ 32 zassert_ok(sensor_sample_fetch_chan(fixture->dev, SENSOR_CHAN_CURRENT)); \ 33 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_CURRENT, sensor_val)); \ 36 (pin_voltage - 0.01f) * ADLTC2990_MICROOHM_CONVERSION_FACTOR / r_microohms, \ 38 "%f Out of Range [%f,%f] input %f, current-resistor: %dµΩ\nCheck if the sensor " \ [all …]
|
/Zephyr-latest/include/zephyr/arch/xtensa/ |
D | atomic_xtensa.h | 3 * SPDX-License-Identifier: Apache-2.0 18 static ALWAYS_INLINE atomic_val_t atomic_get(const atomic_t *target) in atomic_get() argument 22 /* Actual Xtensa hardware seems to have only in-order in atomic_get() 29 : "=r"(ret) : "r"(target) : "memory"); in atomic_get() 34 * @brief Xtensa specific atomic compare-and-set (CAS). 41 * perform compare-and-set atomic operation. This will 62 bool atomic_cas(atomic_t *target, atomic_val_t oldval, atomic_val_t newval) in atomic_cas() argument 64 return oldval == xtensa_cas(target, oldval, newval); in atomic_cas() 69 bool atomic_ptr_cas(atomic_ptr_t *target, void *oldval, void *newval) in atomic_ptr_cas() argument 72 == xtensa_cas((atomic_t *) target, (atomic_val_t) oldval, in atomic_ptr_cas() [all …]
|
/Zephyr-latest/cmake/linker/ld/ |
D | linker_flags.cmake | 3 # SPDX-License-Identifier: Apache-2.0 5 check_set_linker_property(TARGET linker PROPERTY base 6 ${LINKERFLAGPREFIX},--gc-sections 7 ${LINKERFLAGPREFIX},--build-id=none 10 check_set_linker_property(TARGET linker PROPERTY baremetal 11 -nostdlib 12 -static 13 ${LINKERFLAGPREFIX},-X 14 ${LINKERFLAGPREFIX},-N 17 check_set_linker_property(TARGET linker PROPERTY orphan_warning [all …]
|
/Zephyr-latest/include/zephyr/drivers/i3c/ |
D | ccc.h | 5 * SPDX-License-Identifier: Apache-2.0 117 /** Enter HDR Mode (HDR-DDR) (Broadcast) */ 120 /** Enter HDR Mode 0 (HDR-DDR) (Broadcast) */ 123 /** Enter HDR Mode 1 (HDR-TSP) (Broadcast) */ 126 /** Enter HDR Mode 2 (HDR-TSL) (Broadcast) */ 129 /** Enter HDR Mode 3 (HDR-BT) (Broadcast) */ 155 * Target Reset Action 171 /** Multi-Lane Data Transfer Control (Broadcast) */ 233 * @brief Payload structure for Direct CCC to one target. 236 /** Target address */ [all …]
|
/Zephyr-latest/cmake/linker/xt-ld/ |
D | linker_flags.cmake | 3 # SPDX-License-Identifier: Apache-2.0 5 check_set_linker_property(TARGET linker PROPERTY base 6 ${LINKERFLAGPREFIX},--gc-sections 7 ${LINKERFLAGPREFIX},--build-id=none 11 set_property(TARGET linker PROPERTY cpp_base -lstdc++) 14 check_set_linker_property(TARGET linker PROPERTY baremetal 15 -nostdlib 16 -static 17 ${LINKERFLAGPREFIX},-X 18 ${LINKERFLAGPREFIX},-N [all …]
|
/Zephyr-latest/tests/subsys/emul/src/ |
D | emul_tester.h | 4 * SPDX-License-Identifier: Apache-2.0 13 int (*set_action)(const struct emul *target, int action); 14 int (*get_action)(const struct emul *target, int *action); 17 static inline int emul_tester_backend_set_action(const struct emul *target, int action) in emul_tester_backend_set_action() argument 20 (const struct emul_tester_backend_api *)target->backend_api; in emul_tester_backend_set_action() 22 return api->set_action(target, action); in emul_tester_backend_set_action() 25 static inline int emul_tester_backend_get_action(const struct emul *target, int *action) in emul_tester_backend_get_action() argument 28 (const struct emul_tester_backend_api *)target->backend_api; in emul_tester_backend_get_action() 30 return api->get_action(target, action); in emul_tester_backend_get_action()
|
/Zephyr-latest/drivers/i3c/ |
D | i3c_ccc.c | 4 * SPDX-License-Identifier: Apache-2.0 18 int i3c_ccc_do_getbcr(struct i3c_device_desc *target, in i3c_ccc_do_getbcr() argument 24 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getbcr() 25 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getbcr() 28 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getbcr() 30 ccc_tgt_payload.data = &bcr->bcr; in i3c_ccc_do_getbcr() 31 ccc_tgt_payload.data_len = sizeof(bcr->bcr); in i3c_ccc_do_getbcr() 38 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getbcr() 41 int i3c_ccc_do_getdcr(struct i3c_device_desc *target, in i3c_ccc_do_getdcr() argument 47 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getdcr() [all …]
|