Home
last modified time | relevance | path

Searched refs:old_val (Results 1 – 14 of 14) sorted by relevance

/Zephyr-latest/drivers/charger/
Dsbs_charger.c53 uint16_t old_val, new_val; in sbs_cmd_reg_update() local
56 ret = sbs_cmd_reg_read(dev, SBS_CHARGER_REG_STATUS, &old_val); in sbs_cmd_reg_update()
61 new_val = (old_val & ~mask) | (val & mask); in sbs_cmd_reg_update()
62 if (new_val == old_val) { in sbs_cmd_reg_update()
/Zephyr-latest/drivers/sensor/ti/tmp007/
Dtmp007.c45 uint16_t old_val = 0U; in tmp007_reg_update() local
48 if (tmp007_reg_read(i2c, reg, &old_val) < 0) { in tmp007_reg_update()
52 new_val = old_val & ~mask; in tmp007_reg_update()
/Zephyr-latest/drivers/sensor/ti/opt3001/
Dopt3001.c51 uint16_t old_val; in opt3001_reg_update() local
54 if (opt3001_reg_read(dev, reg, &old_val) != 0) { in opt3001_reg_update()
58 new_val = old_val & ~mask; in opt3001_reg_update()
/Zephyr-latest/drivers/sensor/maxim/max44009/
Dmax44009.c59 uint8_t old_val = 0U; in max44009_reg_update() local
62 if (max44009_reg_read(dev, reg, &old_val, true) != 0) { in max44009_reg_update()
66 new_val = old_val & ~mask; in max44009_reg_update()
/Zephyr-latest/arch/x86/core/
Dx86_mmu.c793 static inline pentry_t reset_pte(pentry_t old_val) in reset_pte() argument
798 new_val = old_val & (~K_MEM_PARTITION_PERM_MASK); in reset_pte()
801 if ((old_val & MMU_RW_ORIG) != 0) { in reset_pte()
804 if ((old_val & MMU_US_ORIG) != 0) { in reset_pte()
808 if ((old_val & MMU_XD_ORIG) != 0) { in reset_pte()
937 pentry_t old_val, new_val; in pte_atomic_update() local
940 old_val = atomic_pte_get(pte); in pte_atomic_update()
942 new_val = old_val; in pte_atomic_update()
960 } while (atomic_pte_cas(pte, old_val, new_val) == false); in pte_atomic_update()
963 if (is_flipped_pte(old_val)) { in pte_atomic_update()
[all …]
/Zephyr-latest/drivers/sensor/nxp/fxas21002/
Dfxas21002.c83 uint8_t old_val; in fxas21002_reg_field_update_spi() local
86 rc = fxas21002_byte_read_spi(dev, reg, &old_val); in fxas21002_reg_field_update_spi()
91 return fxas21002_byte_write_spi(dev, reg, (old_val & ~mask) | (val & mask)); in fxas21002_reg_field_update_spi()
/Zephyr-latest/drivers/sensor/bosch/bmi08x/
Dbmi08x_gyro.c126 uint8_t old_val; in bmi08x_gyro_reg_field_update() local
129 ret = bmi08x_gyro_byte_read(dev, reg_addr, &old_val); in bmi08x_gyro_reg_field_update()
134 return bmi08x_gyro_byte_write(dev, reg_addr, (old_val & ~mask) | ((val << pos) & mask)); in bmi08x_gyro_reg_field_update()
Dbmi08x_accel.c258 uint8_t old_val; in bmi08x_accel_reg_field_update() local
261 ret = bmi08x_accel_byte_read(dev, reg_addr, &old_val); in bmi08x_accel_reg_field_update()
266 return bmi08x_accel_byte_write(dev, reg_addr, (old_val & ~mask) | ((val << pos) & mask)); in bmi08x_accel_reg_field_update()
/Zephyr-latest/drivers/sensor/ti/bq274xx/
Dbq274xx.c208 uint16_t old_val; in bq274xx_update_block() local
210 old_val = sys_get_be16(&block[offset]); in bq274xx_update_block()
212 LOG_DBG("update block: off=%d old=%d new=%d\n", offset, old_val, val); in bq274xx_update_block()
214 if (val == old_val) { in bq274xx_update_block()
/Zephyr-latest/drivers/sensor/nxp/fxls8974/
Dfxls8974.c81 uint8_t old_val; in fxls8974_reg_field_update_spi() local
83 if (fxls8974_byte_read_spi(dev, reg, &old_val) < 0) { in fxls8974_reg_field_update_spi()
87 return fxls8974_byte_write_spi(dev, reg, (old_val & ~mask) | (val & mask)); in fxls8974_reg_field_update_spi()
/Zephyr-latest/drivers/display/
Ddisplay_nrf_led_matrix.c181 uint8_t old_val = dev_data->framebuf[i]; in api_set_brightness() local
183 if (old_val) { in api_set_brightness()
184 int16_t new_val = old_val + delta; in api_set_brightness()
/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()
/Zephyr-latest/drivers/sensor/nxp/fxos8700/
Dfxos8700.c84 uint8_t old_val; in fxos8700_reg_field_update_spi() local
86 if (fxos8700_byte_read_spi(dev, reg, &old_val) < 0) { in fxos8700_reg_field_update_spi()
90 return fxos8700_byte_write_spi(dev, reg, (old_val & ~mask) | (val & mask)); in fxos8700_reg_field_update_spi()
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Dbmi160.c178 uint8_t old_val; in bmi160_reg_field_update() local
180 if (bmi160_byte_read(dev, reg_addr, &old_val) < 0) { in bmi160_reg_field_update()
185 (old_val & ~mask) | ((val << pos) & mask)); in bmi160_reg_field_update()