/Zephyr-Core-3.7.0/tests/drivers/gnss/gnss_parse/src/ |
D | main.c | 14 int32_t value; member 18 {.str = "10", .base = 10, .value = 10}, 19 {.str = "1", .base = 10, .value = 1}, 20 {.str = "002", .base = 10, .value = 2}, 21 {.str = "-10", .base = 10, .value = -10}, 22 {.str = "-1", .base = 10, .value = -1}, 23 {.str = "-002", .base = 10, .value = -2}, 24 {.str = "30000000", .base = 10, .value = 30000000}, 25 {.str = "-30000000", .base = 10, .value = -30000000}, 26 {.str = "00", .base = 16, .value = 0}, [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/riscv/ |
D | atomic.h | 33 static ALWAYS_INLINE atomic_val_t atomic_max(atomic_t *target, atomic_val_t value) in atomic_max() argument 39 : "r"(value), "A"(*target) in atomic_max() 45 static ALWAYS_INLINE atomic_val_t atomic_min(atomic_t *target, atomic_val_t value) in atomic_min() argument 51 : "r"(value), "A"(*target) in atomic_min() 57 static ALWAYS_INLINE atomic_val_t atomic_maxu(unsigned long *target, unsigned long value) in atomic_maxu() argument 63 : "r"(value), "A"(*target) in atomic_maxu() 69 static ALWAYS_INLINE atomic_val_t atomic_minu(unsigned long *target, unsigned long value) in atomic_minu() argument 75 : "r"(value), "A"(*target) in atomic_minu() 95 static ALWAYS_INLINE atomic_val_t atomic_max(atomic_t *target, atomic_val_t value) 101 : "r"(value), "A"(*target) [all …]
|
/Zephyr-Core-3.7.0/scripts/pylib/twister/twisterlib/ |
D | cmakecache.py | 80 name, type_, value = (m.group(g) for g in ('name', 'type', 'value')) 83 value = cls._to_bool(value) 90 if ';' in value: 91 value = value.split(';') 93 return CMakeCacheEntry(name, value) 95 def __init__(self, name, value): argument 97 self.value = value 101 return fmt.format(self.name, self.value) 127 return entry.value 136 value = entry.value [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/sys/ |
D | atomic_builtin.h | 39 static inline atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add() argument 41 return __atomic_fetch_add(target, value, __ATOMIC_SEQ_CST); in atomic_add() 44 static inline atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub() argument 46 return __atomic_fetch_sub(target, value, __ATOMIC_SEQ_CST); in atomic_sub() 69 static inline atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set() argument 75 return __atomic_exchange_n(target, value, __ATOMIC_SEQ_CST); in atomic_set() 78 static inline atomic_ptr_val_t atomic_ptr_set(atomic_ptr_t *target, atomic_ptr_val_t value) in atomic_ptr_set() argument 80 return __atomic_exchange_n(target, value, __ATOMIC_SEQ_CST); in atomic_ptr_set() 93 static inline atomic_val_t atomic_or(atomic_t *target, atomic_val_t value) in atomic_or() argument 95 return __atomic_fetch_or(target, value, __ATOMIC_SEQ_CST); in atomic_or() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/lib/lwm2m/ |
D | lwm2m_rw_plain_text.c | 101 struct lwm2m_obj_path *path, int32_t value) in put_s32() argument 103 return plain_text_put_format(out, "%d", value); in put_s32() 107 int8_t value) in put_s8() argument 109 return plain_text_put_format(out, "%d", value); in put_s8() 113 struct lwm2m_obj_path *path, int16_t value) in put_s16() argument 115 return plain_text_put_format(out, "%d", value); in put_s16() 119 struct lwm2m_obj_path *path, int64_t value) in put_s64() argument 121 return plain_text_put_format(out, "%lld", value); in put_s64() 125 struct lwm2m_obj_path *path, time_t value) in put_time() argument 127 return plain_text_put_format(out, "%lld", (int64_t)value); in put_time() [all …]
|
D | lwm2m_rw_cbor.c | 37 static int put_time(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, time_t value) in put_time() argument 49 if (gmtime_r(&value, &dt) != &dt) { in put_time() 97 struct lwm2m_obj_path *path, int64_t value) in put_s64() argument 104 ret = zcbor_int64_encode(states, &value); in put_s64() 117 static int put_s32(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int32_t value) in put_s32() argument 124 ret = zcbor_int32_encode(states, &value); in put_s32() 137 static int put_s16(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int16_t value) in put_s16() argument 139 return put_s32(out, path, value); in put_s16() 142 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int8_t value) in put_s8() argument 144 return put_s32(out, path, value); in put_s8() [all …]
|
/Zephyr-Core-3.7.0/samples/bluetooth/handsfree/src/ |
D | main.c | 32 static void service(struct bt_conn *conn, uint32_t value) in service() argument 34 printk("Service indicator value: %u\n", value); in service() 37 static void call(struct bt_conn *conn, uint32_t value) in call() argument 39 printk("Call indicator value: %u\n", value); in call() 42 static void call_setup(struct bt_conn *conn, uint32_t value) in call_setup() argument 44 printk("Call Setup indicator value: %u\n", value); in call_setup() 47 static void call_held(struct bt_conn *conn, uint32_t value) in call_held() argument 49 printk("Call Held indicator value: %u\n", value); in call_held() 52 static void signal(struct bt_conn *conn, uint32_t value) in signal() argument 54 printk("Signal indicator value: %u\n", value); in signal() [all …]
|
/Zephyr-Core-3.7.0/tests/posix/common/src/ |
D | timer.c | 36 struct itimerspec value, ovalue; in test_timer() local 48 value.it_value.tv_sec = DURATION_SECS; in test_timer() 49 value.it_value.tv_nsec = DURATION_NSECS; in test_timer() 50 value.it_interval.tv_sec = PERIOD_SECS; in test_timer() 51 value.it_interval.tv_nsec = PERIOD_NSECS; in test_timer() 52 zassert_ok(timer_settime(timerid, 0, &value, &ovalue)); in test_timer() 55 zassert_ok(timer_gettime(timerid, &value)); in test_timer() 57 LOG_DBG("Timer fires every %d secs and %d nsecs", (int)value.it_interval.tv_sec, in test_timer() 58 (int)value.it_interval.tv_nsec); in test_timer() 59 LOG_DBG("Time remaining to fire %d secs and %d nsecs", (int)value.it_value.tv_sec, in test_timer() [all …]
|
/Zephyr-Core-3.7.0/boards/native/nrf_bsim/common/cmsis/ |
D | cmsis_instr.h | 76 static inline uint32_t __STREXB(uint8_t value, volatile uint8_t *ptr) in __STREXB() argument 78 *ptr = value; in __STREXB() 89 static inline uint32_t __STREXH(uint16_t value, volatile uint16_t *ptr) in __STREXH() argument 91 *ptr = value; in __STREXH() 102 static inline uint32_t __STREXW(uint32_t value, volatile uint32_t *ptr) in __STREXW() argument 104 *ptr = value; in __STREXW() 157 static inline unsigned char __CLZ(uint32_t value) in __CLZ() argument 159 if (value == 0) { in __CLZ() 162 return __builtin_clz(value); in __CLZ()
|
/Zephyr-Core-3.7.0/drivers/adc/ |
D | adc_ads114s0x.c | 84 #define ADS114S0X_REGISTER_GET_VALUE(value, pos, length) \ argument 85 FIELD_GET(GENMASK(pos + length - 1, pos), value) 86 #define ADS114S0X_REGISTER_SET_VALUE(target, value, pos, length) \ argument 88 target |= FIELD_PREP(GENMASK(pos + length - 1, pos), value) 92 #define ADS114S0X_REGISTER_ID_DEV_ID_GET(value) \ argument 93 ADS114S0X_REGISTER_GET_VALUE(value, ADS114S0X_REGISTER_ID_DEV_ID_POS, \ 95 #define ADS114S0X_REGISTER_ID_DEV_ID_SET(target, value) \ argument 96 ADS114S0X_REGISTER_SET_VALUE(target, value, ADS114S0X_REGISTER_ID_DEV_ID_POS, \ 100 #define ADS114S0X_REGISTER_STATUS_FL_POR_GET(value) \ argument 101 ADS114S0X_REGISTER_GET_VALUE(value, ADS114S0X_REGISTER_STATUS_FL_POR_POS, \ [all …]
|
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/gatt/ |
D | service_c_2_1.c | 170 const uint8_t *value = attr->user_data; in read_value_v10() local 172 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_value_v10() 192 const char *value = attr->user_data; in read_str_value() local 194 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_str_value() 195 strlen(value)); in read_str_value() 215 char *value = attr->user_data; in write_value_v2() local 222 memcpy(value + offset, buf, len); in write_value_v2() 243 const uint8_t *value = attr->user_data; in read_long_des_v2d1() local 245 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_long_des_v2d1() 267 uint8_t *value = attr->user_data; in write_long_des_v2d1() local [all …]
|
D | service_f_1.c | 105 const char *value = attr->user_data; in read_str_value() local 107 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_str_value() 108 strlen(value)); in read_str_value() 127 const uint8_t *value = attr->user_data; in read_value_v15() local 129 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_value_v15() 150 uint8_t *value = attr->user_data; in write_value_v15() local 157 memcpy(value + offset, buf, len); in write_value_v15() 178 const uint16_t *value = attr->user_data; in read_value_v6() local 179 uint16_t value_v6_conv = sys_cpu_to_le16(*value); in read_value_v6() 202 uint16_t *value = attr->user_data; in write_value_v6() local [all …]
|
/Zephyr-Core-3.7.0/samples/sensor/bq274xx/src/ |
D | main.c | 12 static void bq274xx_show_values(const char *type, struct sensor_value value) in bq274xx_show_values() argument 14 if ((value.val2 < 0) && (value.val1 >= 0)) { in bq274xx_show_values() 15 value.val2 = -(value.val2); in bq274xx_show_values() 16 printk("%s: -%d.%06d\n", type, value.val1, value.val2); in bq274xx_show_values() 17 } else if ((value.val2 > 0) && (value.val1 < 0)) { in bq274xx_show_values() 18 printk("%s: %d.%06d\n", type, value.val1, value.val2); in bq274xx_show_values() 19 } else if ((value.val2 < 0) && (value.val1 < 0)) { in bq274xx_show_values() 20 value.val2 = -(value.val2); in bq274xx_show_values() 21 printk("%s: %d.%06d\n", type, value.val1, value.val2); in bq274xx_show_values() 23 printk("%s: %d.%06d\n", type, value.val1, value.val2); in bq274xx_show_values()
|
/Zephyr-Core-3.7.0/soc/litex/litex_vexriscv/ |
D | soc.h | 71 static inline void litex_write8(unsigned char value, unsigned long addr) in litex_write8() argument 74 sys_write8(value, addr); in litex_write8() 80 static inline void litex_write16(unsigned short value, unsigned long addr) in litex_write16() argument 83 sys_write8(value >> 8, addr); in litex_write16() 84 sys_write8(value, addr + 0x4); in litex_write16() 86 sys_write16(value, addr); in litex_write16() 92 static inline void litex_write32(unsigned int value, unsigned long addr) in litex_write32() argument 95 sys_write8(value >> 24, addr); in litex_write32() 96 sys_write8(value >> 16, addr + 0x4); in litex_write32() 97 sys_write8(value >> 8, addr + 0x8); in litex_write32() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/xtensa/ |
D | atomic_xtensa.h | 91 atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set() argument 93 return Z__GEN_ATOMXCHG(value); in atomic_set() 98 atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add() argument 100 return Z__GEN_ATOMXCHG(cur + value); in atomic_add() 105 atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub() argument 107 return Z__GEN_ATOMXCHG(cur - value); in atomic_sub() 126 atomic_val_t value) in atomic_or() argument 128 return Z__GEN_ATOMXCHG(cur | value); in atomic_or() 133 atomic_val_t value) in atomic_xor() argument 135 return Z__GEN_ATOMXCHG(cur ^ value); in atomic_xor() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/arc/ |
D | sys-io-common.h | 25 uint8_t value; in sys_read8() local 28 value = *(volatile uint8_t *)addr; in sys_read8() 31 return value; in sys_read8() 43 uint16_t value; in sys_read16() local 46 value = *(volatile uint16_t *)addr; in sys_read16() 49 return value; in sys_read16() 61 uint32_t value; in sys_read32() local 64 value = *(volatile uint32_t *)addr; in sys_read32() 67 return value; in sys_read32()
|
/Zephyr-Core-3.7.0/include/zephyr/drivers/ |
D | edac.h | 52 int (*inject_set_param1)(const struct device *dev, uint64_t value); 53 int (*inject_get_param1)(const struct device *dev, uint64_t *value); 54 int (*inject_set_param2)(const struct device *dev, uint64_t value); 55 int (*inject_get_param2)(const struct device *dev, uint64_t *value); 56 int (*inject_set_error_type)(const struct device *dev, uint32_t value); 57 int (*inject_get_error_type)(const struct device *dev, uint32_t *value); 61 int (*ecc_error_log_get)(const struct device *dev, uint64_t *value); 63 int (*parity_error_log_get)(const struct device *dev, uint64_t *value); 98 uint64_t value) in edac_inject_set_param1() argument 107 return api->inject_set_param1(dev, value); in edac_inject_set_param1() [all …]
|
/Zephyr-Core-3.7.0/drivers/sensor/st/stmemsc/ |
D | stmemsc_i2c.c | 16 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_i2c_read() argument 18 return i2c_burst_read_dt(stmemsc, reg_addr, value, len); in stmemsc_i2c_read() 22 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_i2c_write() argument 24 return i2c_burst_write_dt(stmemsc, reg_addr, value, len); in stmemsc_i2c_write() 28 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_i2c_read_incr() argument 31 return stmemsc_i2c_read(stmemsc, reg_addr, value, len); in stmemsc_i2c_read_incr() 35 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_i2c_write_incr() argument 38 return stmemsc_i2c_write(stmemsc, reg_addr, value, len); in stmemsc_i2c_write_incr()
|
/Zephyr-Core-3.7.0/modules/hal_nordic/nrfx/ |
D | nrfx_glue.h | 166 #define NRFX_ATOMIC_FETCH_STORE(p_data, value) atomic_set(p_data, value) argument 176 #define NRFX_ATOMIC_FETCH_OR(p_data, value) atomic_or(p_data, value) argument 187 #define NRFX_ATOMIC_FETCH_AND(p_data, value) atomic_and(p_data, value) argument 198 #define NRFX_ATOMIC_FETCH_XOR(p_data, value) atomic_xor(p_data, value) argument 209 #define NRFX_ATOMIC_FETCH_ADD(p_data, value) atomic_add(p_data, value) argument 220 #define NRFX_ATOMIC_FETCH_SUB(p_data, value) atomic_sub(p_data, value) argument 245 #define NRFX_CLZ(value) __builtin_clz(value) argument 255 #define NRFX_CTZ(value) __builtin_ctz(value) argument
|
/Zephyr-Core-3.7.0/drivers/entropy/ |
D | entropy_b91_trng.c | 30 uint32_t value = 0; in entropy_b91_trng_get_entropy() local 33 value = trng_rand(); in entropy_b91_trng_get_entropy() 35 if (length >= sizeof(value)) { in entropy_b91_trng_get_entropy() 36 memcpy(buffer, &value, sizeof(value)); in entropy_b91_trng_get_entropy() 37 buffer += sizeof(value); in entropy_b91_trng_get_entropy() 38 length -= sizeof(value); in entropy_b91_trng_get_entropy() 40 memcpy(buffer, &value, length); in entropy_b91_trng_get_entropy()
|
/Zephyr-Core-3.7.0/tests/drivers/smbus/smbus_emul/src/ |
D | emul.c | 106 static void peripheral_write(uint8_t reg, uint8_t value) in peripheral_write() argument 113 peripheral->raw_data[reg] = value; in peripheral_write() 114 LOG_DBG("peripheral: [0x%02x] <= 0x%02x", reg, value); in peripheral_write() 120 static void peripheral_read(uint8_t reg, uint8_t *value) in peripheral_read() argument 127 *value = peripheral->raw_data[reg]; in peripheral_read() 128 LOG_DBG("peripheral: [0x%02x] => 0x%02x", reg, *value); in peripheral_read() 307 static void emul_evaluate_write(uint8_t value, io_port_t addr) in emul_evaluate_write() argument 311 if (value & PCH_SMBUS_HCTL_START) { in emul_evaluate_write() 313 io_area[PCH_SMBUS_HCTL] = value & ~PCH_SMBUS_HCTL_START; in emul_evaluate_write() 375 void emul_pci_write(pcie_bdf_t bdf, unsigned int reg, uint32_t value) in emul_pci_write() argument [all …]
|
/Zephyr-Core-3.7.0/samples/sensor/thermometer/src/ |
D | main.c | 36 struct sensor_value value; in temp_alert_handler() local 40 ret = read_temperature(dev, &value); in temp_alert_handler() 45 temp = sensor_value_to_double(&value); in temp_alert_handler() 58 struct sensor_value value; in main() local 76 ret = read_temperature(dev, &value); in main() 81 temp = sensor_value_to_double(&value); in main() 85 ret = sensor_value_from_double(&value, low_temp); in main() 91 SENSOR_ATTR_LOWER_THRESH, &value); in main() 98 ret = sensor_value_from_double(&value, high_temp); in main() 104 SENSOR_ATTR_UPPER_THRESH, &value); in main() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/l2/ieee802154/ |
D | ieee802154_utils.c | 25 struct ieee802154_attr_value value; in ieee802154_radio_verify_channel() local 32 &value)) { in ieee802154_radio_verify_channel() 37 channel_range_index < value.phy_supported_channels->num_ranges; in ieee802154_radio_verify_channel() 40 &value.phy_supported_channels->ranges[channel_range_index]; in ieee802154_radio_verify_channel() 53 struct ieee802154_attr_value value; in ieee802154_radio_number_of_channels() local 57 &value)) { in ieee802154_radio_number_of_channels() 62 channel_range_index < value.phy_supported_channels->num_ranges; in ieee802154_radio_number_of_channels() 65 &value.phy_supported_channels->ranges[channel_range_index]; in ieee802154_radio_number_of_channels()
|
/Zephyr-Core-3.7.0/lib/posix/shell/ |
D | env.c | 22 const char *value; in cmd_env_get() local 37 value = getenv(name); in cmd_env_get() 38 if (value != NULL) { in cmd_env_get() 39 shell_print(sh, "%s", value); in cmd_env_get() 81 char *value; in cmd_env_set() local 87 value = strchr(argv[1], '='); in cmd_env_set() 88 if (value != NULL) { in cmd_env_set() 89 *value = '\0'; in cmd_env_set() 90 ++value; in cmd_env_set() 95 value = argv[2]; in cmd_env_set() [all …]
|
/Zephyr-Core-3.7.0/subsys/shell/modules/ |
D | devmem_service.c | 48 uint32_t value; in memory_dump() local 69 value = sys_read8(addr + data_offset); in memory_dump() 70 hex_data[data_offset] = value; in memory_dump() 73 value = sys_le16_to_cpu(sys_read16(addr + data_offset)); in memory_dump() 74 hex_data[data_offset] = (uint8_t)value; in memory_dump() 75 value >>= 8; in memory_dump() 76 hex_data[data_offset + 1] = (uint8_t)value; in memory_dump() 79 value = sys_le32_to_cpu(sys_read32(addr + data_offset)); in memory_dump() 80 hex_data[data_offset] = (uint8_t)value; in memory_dump() 81 value >>= 8; in memory_dump() [all …]
|