Lines Matching full:value
51 atomic_val_t value) \
54 return z_impl_##name((atomic_t *)target, value); \
65 * This routine provides the compare-and-set operator. If the original value at
69 * If the original value at <target> does not equal <oldValue>, then the store
72 * The reading of the original value at <target>, the comparison,
73 * and the write of the new value (if it occurs) all happen atomically with
77 * @param old_value value to compare against
78 * @param new_value value to compare against
152 * This routine provides the atomic addition operator. The <value> is
153 * atomically added to the value at <target>, placing the result at <target>,
154 * and the old value from <target> is returned.
157 * @param value the value to add
159 * @return The previous value from <target>
161 atomic_val_t z_impl_atomic_add(atomic_t *target, atomic_val_t value) in z_impl_atomic_add() argument
169 *target += value; in z_impl_atomic_add()
182 * This routine provides the atomic subtraction operator. The <value> is
183 * atomically subtracted from the value at <target>, placing the result at
184 * <target>, and the old value from <target> is returned.
187 * @param value the value to subtract
189 * @return The previous value from <target>
191 atomic_val_t z_impl_atomic_sub(atomic_t *target, atomic_val_t value) in z_impl_atomic_sub() argument
199 *target -= value; in z_impl_atomic_sub()
215 * a value from <target>. It simply does an ordinary load. Note that <target>
218 * @return The value read from <target>
234 * This routine provides the atomic set operator. The <value> is atomically
235 * written at <target> and the previous value at <target> is returned.
238 * @param value the value to write
240 * @return The previous value from <target>
242 atomic_val_t z_impl_atomic_set(atomic_t *target, atomic_val_t value) in z_impl_atomic_set() argument
250 *target = value; in z_impl_atomic_set()
260 atomic_ptr_val_t value) in z_impl_atomic_ptr_set() argument
268 *target = value; in z_impl_atomic_ptr_set()
277 atomic_ptr_val_t value) in z_vrfy_atomic_ptr_set() argument
281 return z_impl_atomic_ptr_set(target, value); in z_vrfy_atomic_ptr_set()
290 * This routine provides the atomic bitwise inclusive OR operator. The <value>
291 * is atomically bitwise OR'ed with the value at <target>, placing the result
292 * at <target>, and the previous value at <target> is returned.
295 * @param value the value to OR
297 * @return The previous value from <target>
299 atomic_val_t z_impl_atomic_or(atomic_t *target, atomic_val_t value) in z_impl_atomic_or() argument
307 *target |= value; in z_impl_atomic_or()
320 * This routine provides the atomic bitwise exclusive OR operator. The <value>
321 * is atomically bitwise XOR'ed with the value at <target>, placing the result
322 * at <target>, and the previous value at <target> is returned.
325 * @param value the value to XOR
327 * @return The previous value from <target>
329 atomic_val_t z_impl_atomic_xor(atomic_t *target, atomic_val_t value) in z_impl_atomic_xor() argument
337 *target ^= value; in z_impl_atomic_xor()
350 * This routine provides the atomic bitwise AND operator. The <value> is
351 * atomically bitwise AND'ed with the value at <target>, placing the result
352 * at <target>, and the previous value at <target> is returned.
355 * @param value the value to AND
357 * @return The previous value from <target>
359 atomic_val_t z_impl_atomic_and(atomic_t *target, atomic_val_t value) in z_impl_atomic_and() argument
367 *target &= value; in z_impl_atomic_and()
380 * This routine provides the atomic bitwise NAND operator. The <value> is
381 * atomically bitwise NAND'ed with the value at <target>, placing the result
382 * at <target>, and the previous value at <target> is returned.
385 * @param value the value to NAND
387 * @return The previous value from <target>
389 atomic_val_t z_impl_atomic_nand(atomic_t *target, atomic_val_t value) in z_impl_atomic_nand() argument
397 *target = ~(*target & value); in z_impl_atomic_nand()