Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/samples/boards/pine64_pinetime/src/
Dmain.c69 uint8_t new_val = 0u; in main() local
71 new_val = gpio_pin_get(dev_gpio, DT_GPIO_PIN(DT_ALIAS(sw0), gpios)); in main()
72 if (new_val != val) { in main()
73 printk("New Button state %d.\n", new_val); in main()
75 val = new_val; in main()
/Zephyr-Core-2.7.6/tests/subsys/settings/fcb_init/src/
Dsettings_test_fcb_init.c93 uint8_t new_val[FLASH_WRITE_BLOCK_SIZE]; in test_prepare_storage() local
108 (void)memset(new_val, (~ERASED_VAL) & 0xFF, in test_prepare_storage()
110 err = flash_write(dev, (off_t)&prepared_mark, &new_val, in test_prepare_storage()
111 sizeof(new_val)); in test_prepare_storage()
/Zephyr-Core-2.7.6/drivers/sensor/tmp007/
Dtmp007.c49 uint16_t new_val; in tmp007_reg_update() local
55 new_val = old_val & ~mask; in tmp007_reg_update()
56 new_val |= val & mask; in tmp007_reg_update()
58 return tmp007_reg_write(drv_data, reg, new_val); in tmp007_reg_update()
/Zephyr-Core-2.7.6/drivers/sensor/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(drv_data, reg, new_val); in opt3001_reg_update()
/Zephyr-Core-2.7.6/drivers/sensor/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(drv_data, reg, new_val); in max44009_reg_update()
/Zephyr-Core-2.7.6/samples/bluetooth/peripheral_esp/src/
Dmain.c223 static bool check_condition(uint8_t condition, int16_t old_val, int16_t new_val, in check_condition() argument
234 return new_val != old_val; in check_condition()
236 return new_val < ref_val; in check_condition()
238 return new_val <= ref_val; in check_condition()
240 return new_val > ref_val; in check_condition()
242 return new_val >= ref_val; in check_condition()
244 return new_val == ref_val; in check_condition()
246 return new_val != ref_val; in check_condition()
/Zephyr-Core-2.7.6/drivers/sensor/tmp112/
Dtmp112.c66 uint16_t new_val; in tmp112_reg_update() local
72 new_val = old_val & ~mask; in tmp112_reg_update()
73 new_val |= val & mask; in tmp112_reg_update()
75 return tmp112_reg_write(cfg, reg, new_val); in tmp112_reg_update()
/Zephyr-Core-2.7.6/arch/x86/core/
Dx86_mmu.c748 pentry_t new_val; in reset_pte() local
751 new_val = old_val & (~K_MEM_PARTITION_PERM_MASK); in reset_pte()
755 new_val |= MMU_RW; in reset_pte()
758 new_val |= MMU_US; in reset_pte()
762 new_val |= MMU_XD; in reset_pte()
765 return new_val; in reset_pte()
887 pentry_t old_val, new_val; in pte_atomic_update() local
892 new_val = old_val; in pte_atomic_update()
894 if (is_flipped_pte(new_val)) { in pte_atomic_update()
896 new_val = ~new_val; in pte_atomic_update()
[all …]
/Zephyr-Core-2.7.6/boards/xtensa/intel_adsp_cavs15/tools/lib/
Ddevice.py239 new_val = (old_val & ~mask) | (value & mask)
241 if old_val == new_val:
244 reg.value = new_val
/Zephyr-Core-2.7.6/scripts/kconfig/
Dkconfiglib.py1377 def _assigned_twice(self, sym, new_val, filename, linenr): argument
1387 sym.name_and_loc, user_val, new_val)
1389 if user_val == new_val:
/Zephyr-Core-2.7.6/subsys/bluetooth/mesh/
Dcfg_cli.c1010 uint8_t new_val, uint8_t *val) in set_state_u8() argument
1027 net_buf_simple_add_u8(&msg, new_val); in set_state_u8()