Home
last modified time | relevance | path

Searched refs:new_value (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-latest/scripts/kconfig/
Ddiffconfig53 def print_config(op, config, value, new_value): argument
57 if new_value:
58 if new_value=="n":
61 print("CONFIG_%s=%s" % (config, new_value))
66 print("+%s %s" % (config, new_value))
68 print(" %s %s -> %s" % (config, value, new_value))
/Zephyr-latest/lib/os/
Dsem.c16 atomic_t old_value, new_value; in bounded_dec() local
24 new_value = old_value - 1; in bounded_dec()
25 } while (atomic_cas(val, old_value, new_value) == 0); in bounded_dec()
33 atomic_t old_value, new_value; in bounded_inc() local
41 new_value = ((old_value < minimum) ? minimum : old_value) + 1; in bounded_inc()
42 } while (atomic_cas(val, old_value, new_value) == 0U); in bounded_inc()
/Zephyr-latest/subsys/timing/
Dtiming.c49 atomic_t old_value, new_value; in timing_stop() local
58 new_value = old_value - 1; in timing_stop()
59 } while (atomic_cas(&started_ref, old_value, new_value) == 0); in timing_stop()
/Zephyr-latest/kernel/
Datomic_c.c82 atomic_val_t new_value) in z_impl_atomic_cas() argument
98 *target = new_value; in z_impl_atomic_cas()
109 atomic_val_t new_value) in z_vrfy_atomic_cas() argument
113 return z_impl_atomic_cas((atomic_t *)target, old_value, new_value); in z_vrfy_atomic_cas()
119 atomic_ptr_val_t new_value) in z_impl_atomic_ptr_cas() argument
127 *target = new_value; in z_impl_atomic_ptr_cas()
139 atomic_ptr_val_t new_value) in z_vrfy_atomic_ptr_cas() argument
143 return z_impl_atomic_ptr_cas(target, old_value, new_value); in z_vrfy_atomic_ptr_cas()
/Zephyr-latest/tests/cmake/yaml/
DCMakeLists.txt156 set(new_value "A new string") variable
158 KEY cmake test set key-string VALUE ${new_value}
170 test_assert(TEST ${new_value} STREQUAL ${readback}
180 set(new_value "A" "new" "list" "of" "strings") variable
182 KEY cmake test set key-list-string LIST ${new_value}
200 foreach(a e IN ZIP_LISTS readback new_value)
212 set(new_value 42) variable
214 KEY cmake test set key-int VALUE ${new_value}
226 test_assert(TEST ${new_value} STREQUAL ${readback}
236 set(new_value 42 41 40 2 10) variable
[all …]
/Zephyr-latest/include/zephyr/sys/
Datomic_builtin.h24 atomic_val_t new_value) in atomic_cas() argument
26 return __atomic_compare_exchange_n(target, &old_value, new_value, in atomic_cas()
32 atomic_ptr_val_t new_value) in atomic_ptr_cas() argument
34 return __atomic_compare_exchange_n(target, &old_value, new_value, in atomic_ptr_cas()
Datomic_arch.h19 atomic_val_t new_value);
22 void *new_value);
Datomic_c.h21 atomic_val_t new_value);
24 atomic_ptr_val_t new_value);
Datomic.h254 bool atomic_cas(atomic_t *target, atomic_val_t old_value, atomic_val_t new_value);
272 atomic_ptr_val_t new_value);
/Zephyr-latest/drivers/sensor/ti/opt3001/
Dopt3001.c38 uint8_t new_value[2]; in opt3001_reg_write() local
40 new_value[0] = val >> 8; in opt3001_reg_write()
41 new_value[1] = val & 0xff; in opt3001_reg_write()
43 uint8_t tx_buf[3] = { reg, new_value[0], new_value[1] }; in opt3001_reg_write()
/Zephyr-latest/drivers/ieee802154/
Dieee802154_rf2xx_iface.c156 uint8_t new_value) in rf2xx_iface_bit_write() argument
162 new_value <<= pos; in rf2xx_iface_bit_write()
163 new_value &= mask; in rf2xx_iface_bit_write()
164 new_value |= current_reg_value; in rf2xx_iface_bit_write()
165 rf2xx_iface_reg_write(dev, reg_addr, new_value); in rf2xx_iface_bit_write()
Dieee802154_rf2xx_iface.h82 uint8_t new_value);
/Zephyr-latest/modules/hal_nordic/nrfx/
Dnrfx_glue.h234 #define NRFX_ATOMIC_CAS(p_data, old_value, new_value) \ argument
235 atomic_cas(p_data, old_value, new_value)
/Zephyr-latest/subsys/net/ip/
Dtp.c494 bool new_value, old = *((bool *) value); in tp_new_find_and_apply() local
496 new_value = atoi(tp->data[i].value); in tp_new_find_and_apply()
497 *((bool *) value) = new_value; in tp_new_find_and_apply()
498 tp_dbg("%s %d->%d", key, old, new_value); in tp_new_find_and_apply()
502 int new_value, old_value = *((int *) value); in tp_new_find_and_apply() local
504 new_value = atoi(tp->data[i].value); in tp_new_find_and_apply()
505 *((int *) value) = new_value; in tp_new_find_and_apply()
506 tp_dbg("%s %d->%d", key, old_value, new_value); in tp_new_find_and_apply()
/Zephyr-latest/drivers/gpio/
Dgpio_ite_it8801.c63 uint8_t new_value, control; in gpio_it8801_configure() local
89 new_value = mask; in gpio_it8801_configure()
91 new_value = 0; in gpio_it8801_configure()
93 new_value = 0; in gpio_it8801_configure()
95 ret = i2c_reg_update_byte_dt(&config->i2c_dev, config->reg_sovr, mask, new_value); in gpio_it8801_configure()
Dgpio_aw9523b.c156 gpio_port_value_t new_value; in gpio_aw9523b_port_read_write_toggle() local
188 new_value = (old_value & ~mask) | (*value & mask); in gpio_aw9523b_port_read_write_toggle()
190 new_value = (old_value & ~mask) | (~old_value & mask); in gpio_aw9523b_port_read_write_toggle()
193 if (new_value == old_value) { in gpio_aw9523b_port_read_write_toggle()
197 *(uint16_t *)buf = sys_get_le16((uint8_t *)&new_value); in gpio_aw9523b_port_read_write_toggle()
/Zephyr-latest/drivers/sensor/ams/tsl2591/
Dtsl2591.c34 uint8_t old_value, new_value; in tsl2591_reg_update() local
42 new_value = (old_value & ~mask) | (val & mask); in tsl2591_reg_update()
43 if (new_value == old_value) { in tsl2591_reg_update()
47 return tsl2591_reg_write(dev, reg, new_value); in tsl2591_reg_update()
/Zephyr-latest/drivers/sensor/vishay/vcnl36825t/
Dvcnl36825t.c50 uint16_t old_value, new_value; in vcnl36825t_update() local
57 new_value = (old_value & ~mask) | (value & mask); in vcnl36825t_update()
59 if (new_value == old_value) { in vcnl36825t_update()
63 return vcnl36825t_write(spec, reg_addr, new_value); in vcnl36825t_update()
/Zephyr-latest/tests/net/ptp/clock/src/
Dmain.c446 uint64_t orig, new_value; in test_ptp_clock_iface() local
466 new_value = timestamp_to_nsec(&tm); in test_ptp_clock_iface()
469 zassert_equal(orig + rnd_value, new_value, in test_ptp_clock_iface()
471 orig + rnd_value, new_value); in test_ptp_clock_iface()
/Zephyr-latest/drivers/sensor/bosch/bmp388/
Dbmp388.c78 uint8_t old_value, new_value; in bmp388_reg_field_update() local
86 new_value = (old_value & ~mask) | (val & mask); in bmp388_reg_field_update()
87 if (new_value == old_value) { in bmp388_reg_field_update()
91 return cfg->bus_io->write(&cfg->bus, reg, new_value); in bmp388_reg_field_update()
/Zephyr-latest/drivers/audio/
Dwm8904.c624 uint16_t new_value = 0; in wm8904_update_reg() local
633 new_value = (reg_val & ~mask) | (val & mask); in wm8904_update_reg()
635 LOG_DBG("write %#x = %x", reg, new_value); in wm8904_update_reg()
637 wm8904_write_reg(dev, reg, new_value); in wm8904_update_reg()
/Zephyr-latest/include/zephyr/drivers/
Di3c.h2040 uint8_t old_value, new_value; in i3c_reg_update_byte() local
2048 new_value = (old_value & ~mask) | (value & mask); in i3c_reg_update_byte()
2049 if (new_value == old_value) { in i3c_reg_update_byte()
2053 return i3c_reg_write_byte(target, reg_addr, new_value); in i3c_reg_update_byte()
Di2c.h1637 uint8_t old_value, new_value; in i2c_reg_update_byte() local
1645 new_value = (old_value & ~mask) | (value & mask); in i2c_reg_update_byte()
1646 if (new_value == old_value) { in i2c_reg_update_byte()
1650 return i2c_reg_write_byte(dev, dev_addr, reg_addr, new_value); in i2c_reg_update_byte()
/Zephyr-latest/drivers/sensor/bosch/bmm150/
Dbmm150.c65 uint8_t old_value, new_value; in bmm150_reg_update_byte() local
73 new_value = (old_value & ~mask) | (value & mask); in bmm150_reg_update_byte()
75 if (new_value == old_value) { in bmm150_reg_update_byte()
79 return bmm150_reg_write(dev, reg, new_value); in bmm150_reg_update_byte()
/Zephyr-latest/arch/x86/core/
Dx86_mmu.c856 pentry_t new_value) in atomic_pte_cas() argument
859 (void *)new_value); in atomic_pte_cas()
876 pentry_t new_value) in atomic_pte_cas() argument
882 *target = new_value; in atomic_pte_cas()

12