Home
last modified time | relevance | path

Searched refs:new_val (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/drivers/sensor/ti/tmp007/
Dtmp007.c46 uint16_t new_val; in tmp007_reg_update() local
52 new_val = old_val & ~mask; in tmp007_reg_update()
53 new_val |= val & mask; in tmp007_reg_update()
55 return tmp007_reg_write(i2c, reg, new_val); in tmp007_reg_update()
/Zephyr-latest/tests/subsys/settings/fcb_init/src/
Dsettings_test_fcb_init.c106 uint8_t new_val[FLASH_WRITE_BLOCK_SIZE]; in test_prepare_storage() local
121 (void)memset(new_val, (~ERASED_VAL) & 0xFF, in test_prepare_storage()
123 err = flash_write(dev, (off_t)&prepared_mark, &new_val, in test_prepare_storage()
124 sizeof(new_val)); in test_prepare_storage()
/Zephyr-latest/drivers/sensor/ti/opt3001/
Dopt3001.c52 uint16_t new_val; in opt3001_reg_update() local
58 new_val = old_val & ~mask; in opt3001_reg_update()
59 new_val |= val & mask; in opt3001_reg_update()
61 return opt3001_reg_write(dev, reg, new_val); in opt3001_reg_update()
/Zephyr-latest/drivers/charger/
Dsbs_charger.c53 uint16_t old_val, new_val; in sbs_cmd_reg_update() local
61 new_val = (old_val & ~mask) | (val & mask); in sbs_cmd_reg_update()
62 if (new_val == old_val) { in sbs_cmd_reg_update()
66 return sbs_cmd_reg_write(dev, reg_addr, new_val); in sbs_cmd_reg_update()
/Zephyr-latest/drivers/sensor/maxim/max44009/
Dmax44009.c60 uint8_t new_val = 0U; in max44009_reg_update() local
66 new_val = old_val & ~mask; in max44009_reg_update()
67 new_val |= val & mask; in max44009_reg_update()
69 return max44009_reg_write(dev, reg, new_val); in max44009_reg_update()
/Zephyr-latest/drivers/gpio/
Dgpio_rt1718s.h156 uint8_t new_val) in rt1718s_reg_update() argument
158 if (reg_val == new_val) { in rt1718s_reg_update()
162 return rt1718s_reg_write_byte(dev, reg_addr, new_val); in rt1718s_reg_update()
Dgpio_ite_it8801.c259 uint8_t val, new_val; in gpio_it8801_port_toggle_bits() local
266 new_val = val ^ pins; in gpio_it8801_port_toggle_bits()
267 if (new_val != val) { in gpio_it8801_port_toggle_bits()
268 ret = i2c_reg_write_byte_dt(&config->i2c_dev, config->reg_sovr, new_val); in gpio_it8801_port_toggle_bits()
/Zephyr-latest/samples/bluetooth/peripheral_esp/src/
Dmain.c269 static bool check_condition(uint8_t condition, int16_t old_val, int16_t new_val, in check_condition() argument
280 return new_val != old_val; in check_condition()
282 return new_val < ref_val; in check_condition()
284 return new_val <= ref_val; in check_condition()
286 return new_val > ref_val; in check_condition()
288 return new_val >= ref_val; in check_condition()
290 return new_val == ref_val; in check_condition()
292 return new_val != ref_val; in check_condition()
/Zephyr-latest/drivers/sensor/ti/tmp112/
Dtmp112.c55 const uint16_t new_val = set_config_flags(data, mask, val); in tmp112_update_config() local
57 rc = tmp112_reg_write(dev->config, TMP112_REG_CONFIG, new_val); in tmp112_update_config()
59 data->config_reg = new_val; in tmp112_update_config()
/Zephyr-latest/arch/x86/core/
Dx86_mmu.c795 pentry_t new_val; in reset_pte() local
798 new_val = old_val & (~K_MEM_PARTITION_PERM_MASK); in reset_pte()
802 new_val |= MMU_RW; in reset_pte()
805 new_val |= MMU_US; in reset_pte()
809 new_val |= MMU_XD; in reset_pte()
812 return new_val; in reset_pte()
937 pentry_t old_val, new_val; in pte_atomic_update() local
942 new_val = old_val; in pte_atomic_update()
944 if (is_flipped_pte(new_val)) { in pte_atomic_update()
946 new_val = ~new_val; in pte_atomic_update()
[all …]
/Zephyr-latest/drivers/sensor/maxim/max31875/
Dmax31875.c108 const uint16_t new_val = set_config_flags(data, mask, val); in max31875_update_config() local
110 rc = max31875_reg_write(cfg, MAX31875_REG_CONFIG, new_val); in max31875_update_config()
114 data->config_reg = new_val; in max31875_update_config()
/Zephyr-latest/drivers/sensor/vishay/veml7700/
Dveml7700.c283 static int veml7700_set_shutdown_flag(const struct device *dev, uint8_t new_val) in veml7700_set_shutdown_flag() argument
290 data->shut_down = new_val; in veml7700_set_shutdown_flag()
/Zephyr-latest/drivers/display/
Ddisplay_nrf_led_matrix.c184 int16_t new_val = old_val + delta; in api_set_brightness() local
187 (uint8_t)CLAMP(new_val, 1, BRIGHTNESS_MAX); in api_set_brightness()
/Zephyr-latest/scripts/kconfig/
Dkconfiglib.py1379 def _assigned_twice(self, sym, new_val, filename, linenr): argument
1389 sym.name_and_loc, user_val, new_val)
1391 if user_val == new_val:
/Zephyr-latest/subsys/bluetooth/mesh/
Dcfg_cli.c1159 static int set_state_u8(uint16_t net_idx, uint16_t addr, uint32_t op, uint32_t rsp, uint8_t new_val, in set_state_u8() argument
1172 net_buf_simple_add_u8(&msg, new_val); in set_state_u8()