Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 590) sorted by relevance

12345678910>>...24

/Zephyr-Core-2.7.6/tests/kernel/common/src/
Datomic.c97 atomic_t target, orig; in test_atomic() local
105 target = 4; in test_atomic()
110 zassert_false(atomic_cas(&target, oldvalue, value), "atomic_cas"); in test_atomic()
111 target = 6; in test_atomic()
112 zassert_true(atomic_cas(&target, oldvalue, value), "atomic_cas"); in test_atomic()
113 zassert_true((target == value), "atomic_cas"); in test_atomic()
127 target = 1; in test_atomic()
129 zassert_true((atomic_add(&target, value) == 1), "atomic_add"); in test_atomic()
130 zassert_true((target == 3), "atomic_add"); in test_atomic()
132 target = 2; in test_atomic()
[all …]
/Zephyr-Core-2.7.6/include/sys/
Datomic_builtin.h37 static inline bool atomic_cas(atomic_t *target, atomic_val_t old_value, in atomic_cas() argument
40 return __atomic_compare_exchange_n(target, &old_value, new_value, in atomic_cas()
58 static inline bool atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value, in atomic_ptr_cas() argument
61 return __atomic_compare_exchange_n(target, &old_value, new_value, in atomic_ptr_cas()
77 static inline atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add() argument
79 return __atomic_fetch_add(target, value, __ATOMIC_SEQ_CST); in atomic_add()
93 static inline atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub() argument
95 return __atomic_fetch_sub(target, value, __ATOMIC_SEQ_CST); in atomic_sub()
108 static inline atomic_val_t atomic_inc(atomic_t *target) in atomic_inc() argument
110 return atomic_add(target, 1); in atomic_inc()
[all …]
Datomic_c.h20 __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()
42 extern atomic_val_t atomic_get(const atomic_t *target);
44 extern atomic_ptr_val_t atomic_ptr_get(const atomic_ptr_t *target);
[all …]
Datomic_arch.h14 extern bool atomic_cas(atomic_t *target, atomic_val_t old_value,
17 extern bool atomic_ptr_cas(atomic_ptr_t *target, void *old_value,
20 extern atomic_val_t atomic_add(atomic_t *target, atomic_val_t value);
22 extern atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value);
24 extern atomic_val_t atomic_inc(atomic_t *target);
26 extern atomic_val_t atomic_dec(atomic_t *target);
28 extern atomic_val_t atomic_get(const atomic_t *target);
30 extern void *atomic_ptr_get(const atomic_ptr_t *target);
32 extern atomic_val_t atomic_set(atomic_t *target, atomic_val_t value);
34 extern void *atomic_ptr_set(atomic_ptr_t *target, void *value);
[all …]
Datomic.h127 static inline bool atomic_test_bit(const atomic_t *target, int bit) in atomic_test_bit() argument
129 atomic_val_t val = atomic_get(ATOMIC_ELEM(target, bit)); in atomic_test_bit()
145 static inline bool atomic_test_and_clear_bit(atomic_t *target, int bit) in atomic_test_and_clear_bit() argument
150 old = atomic_and(ATOMIC_ELEM(target, bit), ~mask); in atomic_test_and_clear_bit()
166 static inline bool atomic_test_and_set_bit(atomic_t *target, int bit) in atomic_test_and_set_bit() argument
171 old = atomic_or(ATOMIC_ELEM(target, bit), mask); in atomic_test_and_set_bit()
187 static inline void atomic_clear_bit(atomic_t *target, int bit) in atomic_clear_bit() argument
191 (void)atomic_and(ATOMIC_ELEM(target, bit), ~mask); in atomic_clear_bit()
205 static inline void atomic_set_bit(atomic_t *target, int bit) in atomic_set_bit() argument
209 (void)atomic_or(ATOMIC_ELEM(target, bit), mask); in atomic_set_bit()
[all …]
/Zephyr-Core-2.7.6/kernel/
Datomic_c.c43 static inline atomic_val_t z_vrfy_##name(atomic_t *target) \
45 Z_OOPS(Z_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 Z_OOPS(Z_SYSCALL_MEMORY_WRITE(target, sizeof(atomic_t))); \
54 return z_impl_##name((atomic_t *)target, value); \
81 bool z_impl_atomic_cas(atomic_t *target, atomic_val_t old_value, in z_impl_atomic_cas() argument
89 if (*target == old_value) { in z_impl_atomic_cas()
90 *target = new_value; in z_impl_atomic_cas()
100 bool z_vrfy_atomic_cas(atomic_t *target, atomic_val_t old_value, in z_vrfy_atomic_cas() argument
[all …]
/Zephyr-Core-2.7.6/include/arch/xtensa/
Datomic_xtensa.h16 static ALWAYS_INLINE atomic_val_t atomic_get(const atomic_t *target) in atomic_get() argument
27 : "=r"(ret) : "r"(target) : "memory"); in atomic_get()
42 bool atomic_cas(atomic_t *target, atomic_val_t oldval, atomic_val_t newval) in atomic_cas() argument
44 return oldval == xtensa_cas(target, oldval, newval); in atomic_cas()
48 bool atomic_ptr_cas(atomic_ptr_t *target, void *oldval, void *newval) in atomic_ptr_cas() argument
51 == xtensa_cas((atomic_t *) target, (atomic_val_t) oldval, in atomic_ptr_cas()
64 cur = *target; \
65 res = xtensa_cas(target, cur, (expr)); \
70 atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set() argument
76 atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add() argument
[all …]
/Zephyr-Core-2.7.6/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/
Dstate_binding.c78 if (ctl->light->target > 0 && in constrain_target_lightness2()
79 ctl->light->target < ctl->light->range_min) { in constrain_target_lightness2()
81 ctl->light->target = 0U; in constrain_target_lightness2()
83 ctl->light->target = ctl->light->range_min; in constrain_target_lightness2()
85 } else if (ctl->light->target > ctl->light->range_max) { in constrain_target_lightness2()
86 ctl->light->target = ctl->light->range_max; in constrain_target_lightness2()
140 ctl->light->target = 0U; in set_target()
143 ctl->light->target = ctl->light->last; in set_target()
145 ctl->light->target = ctl->light->def; in set_target()
151 ctl->light->target = *((int16_t *) dptr) - INT16_MIN; in set_target()
[all …]
Dno_transition_work_handler.c47 if (ctl->light->target != ctl->light->current) { in no_transition_work_handler()
48 ctl->light->current = ctl->light->target; in no_transition_work_handler()
52 if (ctl->temp->target != ctl->temp->current) { in no_transition_work_handler()
53 ctl->temp->current = ctl->temp->target; in no_transition_work_handler()
57 if (ctl->duv->target != ctl->duv->current) { in no_transition_work_handler()
58 ctl->duv->current = ctl->duv->target; in no_transition_work_handler()
Ddevice_composition.c80 if (ctl->light->current == ctl->light->target) { in gen_onoff_get()
173 if (ctl->light->target != ctl->light->current) { in gen_onoff_set_unack()
181 ctl->light->current = ctl->light->target; in gen_onoff_set_unack()
243 if (ctl->light->target != ctl->light->current) { in gen_onoff_set()
252 ctl->light->current = ctl->light->target; in gen_onoff_set()
289 if (ctl->light->current == ctl->light->target) { in gen_level_get()
379 if (ctl->light->target != ctl->light->current) { in gen_level_set_unack()
387 ctl->light->current = ctl->light->target; in gen_level_set_unack()
446 if (ctl->light->target != ctl->light->current) { in gen_level_set()
455 ctl->light->current = ctl->light->target; in gen_level_set()
[all …]
Dtransition.c119 ((float) (ctl->light->current - ctl->light->target) / in set_transition_values()
124 ((float) (ctl->light->current - ctl->light->target) / in set_transition_values()
128 ((float) (ctl->temp->current - ctl->temp->target) / in set_transition_values()
132 ((float) (ctl->duv->current - ctl->duv->target) / in set_transition_values()
137 ((float) (ctl->temp->current - ctl->temp->target) / in set_transition_values()
142 ((float) (ctl->temp->current - ctl->temp->target) / in set_transition_values()
146 ((float) (ctl->duv->current - ctl->duv->target) / in set_transition_values()
175 ctl->light->current = ctl->light->target; in onoff_work_handler()
206 if (ctl->light->target == light) { in level_move_lightness_work_handler()
237 ctl->light->current = ctl->light->target; in level_lightness_work_handler()
[all …]
/Zephyr-Core-2.7.6/scripts/west_commands/zspdx/
Dcmakefileapijson.py136 cfgTarget.target = parseTarget(os.path.join(replyDir, cfgTarget.jsonFile))
138 cfgTarget.target = None
149 target = zspdx.cmakefileapi.Target()
151 target.name = js.get("name", "")
152 target.id = js.get("id", "")
153 target.type = parseTargetType(js.get("type", "UNKNOWN"))
154 target.backtrace = js.get("backtrace", -1)
155 target.folder = js.get("folder", "")
159 target.paths_source = paths_dict.get("source", "")
160 target.paths_build = paths_dict.get("build", "")
[all …]
/Zephyr-Core-2.7.6/tests/kernel/sched/preempt/src/
Dmain.c68 int target; variable
138 for (target = 0; target < NUM_THREADS; target++) { in manager()
140 if (src == target) { in manager()
168 k_sem_give(&worker_sems[target]); in irq_waker()
173 void validate_wakeup(int src, int target, k_tid_t last_thread) in validate_wakeup() argument
175 int preempted = &worker_threads[target] == last_thread; in validate_wakeup()
176 int src_wins = PRI(src) < PRI(target); in validate_wakeup()
177 int target_wins = PRI(target) < PRI(src); in validate_wakeup()
178 int tie = PRI(src) == PRI(target); in validate_wakeup()
189 PRI(src), PRI(target)); in validate_wakeup()
[all …]
/Zephyr-Core-2.7.6/scripts/dts/python-devicetree/src/devicetree/
Dgrutils.py29 def add_edge(self, source, target): argument
35 self.__edge_map[source].add(target)
36 if source != target:
37 self.__reverse_map[target].add(source)
39 self.__nodes.add(target)
105 for target in sorted(self.__edge_map[source], key=node_key):
106 if self.__tarjan_index[target] is None:
107 self._tarjan_root(target)
108 … self.__tarjan_low_link[v] = min(self.__tarjan_low_link[v], self.__tarjan_low_link[target])
109 elif target in self.__stack:
[all …]
/Zephyr-Core-2.7.6/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/
Dmain.c35 ctl->light->target = ctl->light->def; in light_default_var_init()
40 ctl->temp->target = ctl->temp->def; in light_default_var_init()
43 ctl->duv->target = ctl->duv->def; in light_default_var_init()
63 ctl->light->target = constrain_lightness(ctl->light->target); in light_default_status_init()
66 ctl->temp->target = constrain_temperature(ctl->temp->target); in light_default_status_init()
83 ctl->light->current = ctl->light->target; in light_default_status_init()
84 ctl->temp->current = ctl->temp->target; in light_default_status_init()
85 ctl->duv->current = ctl->duv->target; in light_default_status_init()
89 ctl->light->target = ctl->light->current; in light_default_status_init()
90 ctl->temp->target = ctl->temp->current; in light_default_status_init()
[all …]
Dstorage.c50 settings_save_one("ps/llt", &ctl->light->target, in save_last_target_states()
51 sizeof(ctl->light->target)); in save_last_target_states()
53 settings_save_one("ps/tlt", &ctl->temp->target, in save_last_target_states()
54 sizeof(ctl->temp->target)); in save_last_target_states()
56 settings_save_one("ps/dlt", &ctl->duv->target, in save_last_target_states()
57 sizeof(ctl->duv->target)); in save_last_target_states()
160 len = read_cb(cb_arg, &ctl->light->target, in ps_set()
161 sizeof(ctl->light->target)); in ps_set()
165 len = read_cb(cb_arg, &ctl->temp->target, in ps_set()
166 sizeof(ctl->temp->target)); in ps_set()
[all …]
/Zephyr-Core-2.7.6/boards/riscv/hifive_unleashed/support/
Dopenocd_hifive_unleashed.cfg14 target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -rtos hwthread
15 target create $_TARGETNAME.1 riscv -chain-position $_TARGETNAME -coreid 1
16 target create $_TARGETNAME.2 riscv -chain-position $_TARGETNAME -coreid 2
17 target create $_TARGETNAME.3 riscv -chain-position $_TARGETNAME -coreid 3
18 target create $_TARGETNAME.4 riscv -chain-position $_TARGETNAME -coreid 4
19 target smp $_TARGETNAME.0 $_TARGETNAME.1 $_TARGETNAME.2 $_TARGETNAME.3 $_TARGETNAME.4
/Zephyr-Core-2.7.6/boards/riscv/hifive_unmatched/support/
Dopenocd_hifive_unleashed.cfg14 target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME -rtos hwthread
15 target create $_TARGETNAME.1 riscv -chain-position $_TARGETNAME -coreid 1
16 target create $_TARGETNAME.2 riscv -chain-position $_TARGETNAME -coreid 2
17 target create $_TARGETNAME.3 riscv -chain-position $_TARGETNAME -coreid 3
18 target create $_TARGETNAME.4 riscv -chain-position $_TARGETNAME -coreid 4
19 target smp $_TARGETNAME.0 $_TARGETNAME.1 $_TARGETNAME.2 $_TARGETNAME.3 $_TARGETNAME.4
/Zephyr-Core-2.7.6/cmake/
Dtarget_toolchain.cmake6 # CMAKE_SYSTEM_NAME : this one is mandatory, it is the name of the target
8 # on the target system. Typical examples are "Linux" and "Windows". This
10 # like Linux.cmake or Windows-gcc.cmake. If your target is an embedded
19 # target system. This variable is not used very much except for one
23 # the target
29 # explicitly to specify the target system version.
42 include(${TOOLCHAIN_ROOT}/cmake/toolchain/${ZEPHYR_TOOLCHAIN_VARIANT}/target.cmake)
45 # The 'generic' compiler and the 'target' compiler might be different,
46 # so we unset the 'generic' one and thereby force the 'target' to
57 include(${TOOLCHAIN_ROOT}/cmake/compiler/${COMPILER}/target.cmake OPTIONAL)
[all …]
Dcfb.cmake29 target # The cmake target that depends on the generated file
34 gen_target # The generated file target we depend on
40 # Ensure 'output_file' is generated before 'target' by creating a
43 add_dependencies(${target} ${gen_target})
47 target # The cmake target that depends on the generated file
55 # Ensure 'output_file' is generated before 'target' by creating a
59 # But first create a unique name for the custom target
63 generate_cfb_font_for_gen_target(${target} ${input_file} ${output_file}
/Zephyr-Core-2.7.6/cmake/flash/
DCMakeLists.txt4 # Append ${content}\n to a target property which is later evaluated as a
6 # We define this function here to have access to the `flash` target.
31 # Append the common configuration values to the relevant property target.
137 foreach(target flash debug debugserver attach)
138 if(target STREQUAL flash)
140 elseif(target STREQUAL debug)
142 elseif(target STREQUAL debugserver)
145 # cmake/qemu/CMakeLists.txt will add a debugserver target for
149 elseif(target STREQUAL attach)
152 string(TOUPPER ${target} TARGET_UPPER)
[all …]
Dcheck_runner_dependencies.cmake6 # If the target contains dependencies, an error will be printed.
10 # TARGET: The target being checked.
11 # DEPENDENCIES: List containing dependencies on target.
/Zephyr-Core-2.7.6/samples/bluetooth/mesh_demo/src/
Dmain.c220 static uint16_t target = GROUP_ADDR; variable
227 .addr = target, in board_button_1_pressed()
243 switch (target) { in board_set_target()
245 target = 1U; in board_set_target()
248 target = GROUP_ADDR; in board_set_target()
251 target++; in board_set_target()
255 return target; in board_set_target()
/Zephyr-Core-2.7.6/dts/
DKconfig6 This option specifies that the target platform supports device tree
13 This option specifies that the target platform supports device tree
20 This option specifies that the target platform supports device tree
/Zephyr-Core-2.7.6/cmake/toolchain/oneApi/
Dgeneric.cmake37 # compiling target variables of cmake, so used other
41 list(APPEND CMAKE_REQUIRED_FLAGS --target=${triple})
42 add_compile_options(--target=${triple})
43 add_link_options(--target=${triple})

12345678910>>...24