/Zephyr-Core-3.6.0/include/zephyr/sys/ |
D | atomic_builtin.h | 22 static inline bool atomic_cas(atomic_t *target, atomic_val_t old_value, in atomic_cas() argument 25 return __atomic_compare_exchange_n(target, &old_value, new_value, in atomic_cas() 30 static inline bool atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value, in atomic_ptr_cas() argument 33 return __atomic_compare_exchange_n(target, &old_value, new_value, in atomic_ptr_cas() 38 static inline atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add() argument 40 return __atomic_fetch_add(target, value, __ATOMIC_SEQ_CST); in atomic_add() 43 static inline atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub() argument 45 return __atomic_fetch_sub(target, value, __ATOMIC_SEQ_CST); in atomic_sub() 48 static inline atomic_val_t atomic_inc(atomic_t *target) in atomic_inc() argument 50 return atomic_add(target, 1); in atomic_inc() [all …]
|
D | atomic_c.h | 20 __syscall bool atomic_cas(atomic_t *target, atomic_val_t old_value, 23 __syscall bool atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value, 26 __syscall atomic_val_t atomic_add(atomic_t *target, atomic_val_t value); 28 __syscall atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value); 30 static inline atomic_val_t atomic_inc(atomic_t *target) in atomic_inc() argument 32 return atomic_add(target, 1); in atomic_inc() 36 static inline atomic_val_t atomic_dec(atomic_t *target) in atomic_dec() argument 38 return atomic_sub(target, 1); in atomic_dec() 42 atomic_val_t atomic_get(const atomic_t *target); 44 atomic_ptr_val_t atomic_ptr_get(const atomic_ptr_t *target); [all …]
|
D | atomic.h | 127 static inline bool atomic_test_bit(const atomic_t *target, int bit) in atomic_test_bit() argument 129 atomic_val_t val = atomic_get(ATOMIC_ELEM(target, bit)); in atomic_test_bit() 147 static inline bool atomic_test_and_clear_bit(atomic_t *target, int bit) in atomic_test_and_clear_bit() argument 152 old = atomic_and(ATOMIC_ELEM(target, bit), ~mask); in atomic_test_and_clear_bit() 170 static inline bool atomic_test_and_set_bit(atomic_t *target, int bit) in atomic_test_and_set_bit() argument 175 old = atomic_or(ATOMIC_ELEM(target, bit), mask); in atomic_test_and_set_bit() 191 static inline void atomic_clear_bit(atomic_t *target, int bit) in atomic_clear_bit() argument 195 (void)atomic_and(ATOMIC_ELEM(target, bit), ~mask); in atomic_clear_bit() 209 static inline void atomic_set_bit(atomic_t *target, int bit) in atomic_set_bit() argument 213 (void)atomic_or(ATOMIC_ELEM(target, bit), mask); in atomic_set_bit() [all …]
|
D | atomic_arch.h | 18 bool atomic_cas(atomic_t *target, atomic_val_t old_value, 21 bool atomic_ptr_cas(atomic_ptr_t *target, void *old_value, 24 atomic_val_t atomic_add(atomic_t *target, atomic_val_t value); 26 atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value); 28 atomic_val_t atomic_inc(atomic_t *target); 30 atomic_val_t atomic_dec(atomic_t *target); 32 atomic_val_t atomic_get(const atomic_t *target); 34 void *atomic_ptr_get(const atomic_ptr_t *target); 36 atomic_val_t atomic_set(atomic_t *target, atomic_val_t value); 38 void *atomic_ptr_set(atomic_ptr_t *target, void *value); [all …]
|
/Zephyr-Core-3.6.0/kernel/ |
D | atomic_c.c | 43 static inline atomic_val_t z_vrfy_##name(atomic_t *target) \ 45 K_OOPS(K_SYSCALL_MEMORY_WRITE(target, sizeof(atomic_t))); \ 46 return z_impl_##name((atomic_t *)target); \ 50 static inline atomic_val_t z_vrfy_##name(atomic_t *target, \ 53 K_OOPS(K_SYSCALL_MEMORY_WRITE(target, sizeof(atomic_t))); \ 54 return z_impl_##name((atomic_t *)target, value); \ 81 bool z_impl_atomic_cas(atomic_t *target, atomic_val_t old_value, in z_impl_atomic_cas() argument 97 if (*target == old_value) { in z_impl_atomic_cas() 98 *target = new_value; in z_impl_atomic_cas() 108 bool z_vrfy_atomic_cas(atomic_t *target, atomic_val_t old_value, in z_vrfy_atomic_cas() argument [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/common/src/ |
D | atomic.c | 101 atomic_t target, orig; in ZTEST_USER() local 112 target = 4; in ZTEST_USER() 117 zassert_false(atomic_cas(&target, oldvalue, value), "atomic_cas"); in ZTEST_USER() 118 target = 6; in ZTEST_USER() 119 zassert_true(atomic_cas(&target, oldvalue, value), "atomic_cas"); in ZTEST_USER() 120 zassert_true((target == value), "atomic_cas"); in ZTEST_USER() 134 target = 1; in ZTEST_USER() 136 zassert_true((atomic_add(&target, value) == 1), "atomic_add"); in ZTEST_USER() 137 zassert_true((target == 3), "atomic_add"); in ZTEST_USER() 139 target = 2; in ZTEST_USER() [all …]
|
/Zephyr-Core-3.6.0/include/zephyr/drivers/ |
D | emul_sensor.h | 30 int (*set_channel)(const struct emul *target, enum sensor_channel ch, const q31_t *value, 33 int (*get_sample_range)(const struct emul *target, enum sensor_channel ch, q31_t *lower, 36 int (*set_attribute)(const struct emul *target, enum sensor_channel ch, 39 int (*get_attribute_metadata)(const struct emul *target, enum sensor_channel ch, 54 static inline bool emul_sensor_backend_is_supported(const struct emul *target) in emul_sensor_backend_is_supported() argument 56 return target && target->backend_api; in emul_sensor_backend_is_supported() 71 static inline int emul_sensor_backend_set_channel(const struct emul *target, enum sensor_channel ch, in emul_sensor_backend_set_channel() argument 74 if (!target || !target->backend_api) { in emul_sensor_backend_set_channel() 78 struct emul_sensor_backend_api *api = (struct emul_sensor_backend_api *)target->backend_api; in emul_sensor_backend_set_channel() 81 return api->set_channel(target, ch, value, shift); in emul_sensor_backend_set_channel() [all …]
|
D | emul_bbram.h | 28 int (*set_data)(const struct emul *target, size_t offset, size_t count, 31 int (*get_data)(const struct emul *target, size_t offset, size_t count, uint8_t *data); 49 static inline int emul_bbram_backend_set_data(const struct emul *target, size_t offset, in emul_bbram_backend_set_data() argument 52 if (target == NULL || target->backend_api == NULL) { in emul_bbram_backend_set_data() 56 struct emul_bbram_backend_api *api = (struct emul_bbram_backend_api *)target->backend_api; in emul_bbram_backend_set_data() 62 return api->set_data(target, offset, count, data); in emul_bbram_backend_set_data() 76 static inline int emul_bbram_backend_get_data(const struct emul *target, size_t offset, in emul_bbram_backend_get_data() argument 79 if (target == NULL || target->backend_api == NULL) { in emul_bbram_backend_get_data() 83 struct emul_bbram_backend_api *api = (struct emul_bbram_backend_api *)target->backend_api; in emul_bbram_backend_get_data() 89 return api->get_data(target, offset, count, data); in emul_bbram_backend_get_data()
|
D | i3c.h | 643 struct i3c_device_desc *target, 660 struct i3c_device_desc *target, 676 struct i3c_device_desc *target); 691 struct i3c_i2c_device_desc *target); 706 struct i3c_i2c_device_desc *target); 749 struct i3c_device_desc *target, 797 struct i3c_device_desc *target); 812 struct i3c_device_desc *target); 1250 int i3c_determine_default_addr(struct i3c_device_desc *target, uint8_t *addr); 1307 struct i3c_device_desc **target, [all …]
|
D | emul_fuel_gauge.h | 57 __syscall int emul_fuel_gauge_set_battery_charging(const struct emul *target, uint32_t uV, int uA); 58 static inline int z_impl_emul_fuel_gauge_set_battery_charging(const struct emul *target, in z_impl_emul_fuel_gauge_set_battery_charging() argument 62 (const struct fuel_gauge_emul_driver_api *)target->backend_api; in z_impl_emul_fuel_gauge_set_battery_charging() 68 return backend_api->set_battery_charging(target, uV, uA); in z_impl_emul_fuel_gauge_set_battery_charging() 80 __syscall int emul_fuel_gauge_is_battery_cutoff(const struct emul *target, bool *cutoff); 81 static inline int z_impl_emul_fuel_gauge_is_battery_cutoff(const struct emul *target, bool *cutoff) in z_impl_emul_fuel_gauge_is_battery_cutoff() argument 84 (const struct fuel_gauge_emul_driver_api *)target->backend_api; in z_impl_emul_fuel_gauge_is_battery_cutoff() 89 return backend_api->is_battery_cutoff(target, cutoff); in z_impl_emul_fuel_gauge_is_battery_cutoff()
|
/Zephyr-Core-3.6.0/include/zephyr/arch/xtensa/ |
D | atomic_xtensa.h | 18 static ALWAYS_INLINE atomic_val_t atomic_get(const atomic_t *target) in atomic_get() argument 29 : "=r"(ret) : "r"(target) : "memory"); in atomic_get() 62 bool atomic_cas(atomic_t *target, atomic_val_t oldval, atomic_val_t newval) in atomic_cas() argument 64 return oldval == xtensa_cas(target, oldval, newval); in atomic_cas() 69 bool atomic_ptr_cas(atomic_ptr_t *target, void *oldval, void *newval) in atomic_ptr_cas() argument 72 == xtensa_cas((atomic_t *) target, (atomic_val_t) oldval, in atomic_ptr_cas() 84 cur = *target; \ 85 res = xtensa_cas(target, cur, (expr)); \ 91 atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set() argument 98 atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add() argument [all …]
|
/Zephyr-Core-3.6.0/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
D | state_binding.c | 57 if (ctl->light->target > 0 && in constrain_target_lightness2() 58 ctl->light->target < ctl->light->range_min) { in constrain_target_lightness2() 60 ctl->light->target = 0U; in constrain_target_lightness2() 62 ctl->light->target = ctl->light->range_min; in constrain_target_lightness2() 64 } else if (ctl->light->target > ctl->light->range_max) { in constrain_target_lightness2() 65 ctl->light->target = ctl->light->range_max; in constrain_target_lightness2() 119 ctl->light->target = 0U; in set_target() 122 ctl->light->target = ctl->light->last; in set_target() 124 ctl->light->target = ctl->light->def; in set_target() 130 ctl->light->target = *((int16_t *) dptr) - INT16_MIN; in set_target() [all …]
|
/Zephyr-Core-3.6.0/drivers/i3c/ |
D | i3c_ccc.c | 17 int i3c_ccc_do_getbcr(struct i3c_device_desc *target, in i3c_ccc_do_getbcr() argument 23 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getbcr() 24 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getbcr() 27 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getbcr() 37 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getbcr() 40 int i3c_ccc_do_getdcr(struct i3c_device_desc *target, in i3c_ccc_do_getdcr() argument 46 __ASSERT_NO_MSG(target != NULL); in i3c_ccc_do_getdcr() 47 __ASSERT_NO_MSG(target->bus != NULL); in i3c_ccc_do_getdcr() 50 ccc_tgt_payload.addr = target->dynamic_addr; in i3c_ccc_do_getdcr() 60 return i3c_do_ccc(target->bus, &ccc_payload); in i3c_ccc_do_getdcr() [all …]
|
D | i3c_common.c | 19 uint8_t num_msgs, struct i3c_device_desc *target) in i3c_dump_msgs() argument 21 LOG_DBG("I3C msg: %s, addr=%x", name, target->dynamic_addr); in i3c_dump_msgs() 237 int i3c_determine_default_addr(struct i3c_device_desc *target, uint8_t *addr) in i3c_determine_default_addr() argument 239 struct i3c_driver_data *data = (struct i3c_driver_data *)target->bus->data; in i3c_determine_default_addr() 242 if (target->dynamic_addr == 0) { in i3c_determine_default_addr() 244 if (target->init_dynamic_addr != 0U) { in i3c_determine_default_addr() 246 if (target->static_addr == 0) { in i3c_determine_default_addr() 249 target->init_dynamic_addr)) { in i3c_determine_default_addr() 251 *addr = target->init_dynamic_addr; in i3c_determine_default_addr() 263 target->static_addr)) { in i3c_determine_default_addr() [all …]
|
/Zephyr-Core-3.6.0/tests/drivers/sensor/adltc2990/src/ |
D | main.c | 59 const struct emul *target; member 66 .target = EMUL_DT_GET(DT_NODELABEL(adltc2990_0_0)), in adltc2990_0_0_setup() 70 zassert_not_null(fixture.target); in adltc2990_0_0_setup() 78 adltc2990_emul_reset(fixture->target); in adltc2990_0_0_before() 97 const struct emul *target; member 104 .target = EMUL_DT_GET(DT_NODELABEL(adltc2990_4_3)), in adltc2990_4_3_setup() 108 zassert_not_null(fixture.target); in adltc2990_4_3_setup() 116 adltc2990_emul_reset(fixture->target); in adltc2990_4_3_before() 137 const struct emul *target; member 144 .target = EMUL_DT_GET(DT_NODELABEL(adltc2990_1_3)), in adltc2990_1_3_setup() [all …]
|
/Zephyr-Core-3.6.0/tests/subsys/emul/src/ |
D | emul_tester.h | 13 int (*set_action)(const struct emul *target, int action); 14 int (*get_action)(const struct emul *target, int *action); 17 static inline int emul_tester_backend_set_action(const struct emul *target, int action) in emul_tester_backend_set_action() argument 20 (const struct emul_tester_backend_api *)target->backend_api; in emul_tester_backend_set_action() 22 return api->set_action(target, action); in emul_tester_backend_set_action() 25 static inline int emul_tester_backend_get_action(const struct emul *target, int *action) in emul_tester_backend_get_action() argument 28 (const struct emul_tester_backend_api *)target->backend_api; in emul_tester_backend_get_action() 30 return api->get_action(target, action); in emul_tester_backend_get_action()
|
D | emul_tester.c | 25 static int emul_tester_set_action(const struct emul *target, int action) in emul_tester_set_action() argument 27 const struct emul_tester_cfg *cfg = target->cfg; in emul_tester_set_action() 28 struct emul_tester_data *data = target->data; in emul_tester_set_action() 35 static int emul_tester_get_action(const struct emul *target, int *action) in emul_tester_get_action() argument 37 struct emul_tester_data *data = target->data; in emul_tester_get_action() 44 static int emul_tester_transfer(const struct emul *target, struct i2c_msg *msgs, int num_msgs, in emul_tester_transfer() argument 47 ARG_UNUSED(target); in emul_tester_transfer() 64 static int emul_tester_init(const struct emul *target, const struct device *parent) in emul_tester_init() argument 66 ARG_UNUSED(target); in emul_tester_init()
|
/Zephyr-Core-3.6.0/scripts/west_commands/zspdx/ |
D | cmakefileapijson.py | 136 cfgTarget.target = parseTarget(os.path.join(replyDir, cfgTarget.jsonFile)) 138 cfgTarget.target = None 149 target = zspdx.cmakefileapi.Target() 151 target.name = js.get("name", "") 152 target.id = js.get("id", "") 153 target.type = parseTargetType(js.get("type", "UNKNOWN")) 154 target.backtrace = js.get("backtrace", -1) 155 target.folder = js.get("folder", "") 159 target.paths_source = paths_dict.get("source", "") 160 target.paths_build = paths_dict.get("build", "") [all …]
|
/Zephyr-Core-3.6.0/drivers/sensor/bma4xx/ |
D | bma4xx_emul.c | 35 void bma4xx_emul_set_reg(const struct emul *target, uint8_t reg_addr, const uint8_t *val, in bma4xx_emul_set_reg() argument 38 struct bma4xx_emul_data *data = target->data; in bma4xx_emul_set_reg() 44 void bma4xx_emul_get_reg(const struct emul *target, uint8_t reg_addr, uint8_t *val, size_t count) in bma4xx_emul_get_reg() argument 46 struct bma4xx_emul_data *data = target->data; in bma4xx_emul_get_reg() 52 uint8_t bma4xx_emul_get_interrupt_config(const struct emul *target, uint8_t *int1_io_ctrl, in bma4xx_emul_get_interrupt_config() argument 55 struct bma4xx_emul_data *data = target->data; in bma4xx_emul_get_interrupt_config() 62 static int bma4xx_emul_read_byte(const struct emul *target, int reg, uint8_t *val, int bytes) in bma4xx_emul_read_byte() argument 64 bma4xx_emul_get_reg(target, reg, val, bytes); in bma4xx_emul_read_byte() 69 static int bma4xx_emul_write_byte(const struct emul *target, int reg, uint8_t val, int bytes) in bma4xx_emul_write_byte() argument 71 struct bma4xx_emul_data *data = target->data; in bma4xx_emul_write_byte() [all …]
|
/Zephyr-Core-3.6.0/drivers/sensor/akm09918c/ |
D | akm09918c_emul.c | 31 void akm09918c_emul_set_reg(const struct emul *target, uint8_t reg_addr, const uint8_t *val, in akm09918c_emul_set_reg() argument 34 struct akm09918c_emul_data *data = target->data; in akm09918c_emul_set_reg() 40 void akm09918c_emul_get_reg(const struct emul *target, uint8_t reg_addr, uint8_t *val, size_t count) in akm09918c_emul_get_reg() argument 42 struct akm09918c_emul_data *data = target->data; in akm09918c_emul_get_reg() 48 void akm09918c_emul_reset(const struct emul *target) in akm09918c_emul_reset() argument 50 struct akm09918c_emul_data *data = target->data; in akm09918c_emul_reset() 57 static int akm09918c_emul_handle_write(const struct emul *target, uint8_t regn, uint8_t value) in akm09918c_emul_handle_write() argument 59 struct akm09918c_emul_data *data = target->data; in akm09918c_emul_handle_write() 67 akm09918c_emul_reset(target); in akm09918c_emul_handle_write() 74 static int akm09918c_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, in akm09918c_emul_transfer_i2c() argument [all …]
|
/Zephyr-Core-3.6.0/drivers/sensor/adltc2990/ |
D | adltc2990_emul.c | 31 void adltc2990_emul_set_reg(const struct emul *target, uint8_t reg_addr, const uint8_t *val) in adltc2990_emul_set_reg() argument 33 struct adltc2990_emul_data *data = target->data; in adltc2990_emul_set_reg() 39 void adltc2990_emul_get_reg(const struct emul *target, uint8_t reg_addr, uint8_t *val) in adltc2990_emul_get_reg() argument 41 struct adltc2990_emul_data *data = target->data; in adltc2990_emul_get_reg() 47 void adltc2990_emul_reset(const struct emul *target) in adltc2990_emul_reset() argument 49 struct adltc2990_emul_data *data = target->data; in adltc2990_emul_reset() 54 static int adltc2990_emul_handle_write(const struct emul *target, uint8_t regn, uint8_t value) in adltc2990_emul_handle_write() argument 56 struct adltc2990_emul_data *data = target->data; in adltc2990_emul_handle_write() 73 static int adltc2990_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, in adltc2990_emul_transfer_i2c() argument 76 struct adltc2990_emul_data *data = target->data; in adltc2990_emul_transfer_i2c() [all …]
|
/Zephyr-Core-3.6.0/drivers/usb/bc12/ |
D | emul_bc12_pi3usb9201.c | 60 static bool pi3usb9201_emul_interrupt_is_pending(const struct emul *target) in pi3usb9201_emul_interrupt_is_pending() argument 62 struct pi3usb9201_emul_data *data = target->data; in pi3usb9201_emul_interrupt_is_pending() 85 static int pi3usb9201_emul_set_reg(const struct emul *target, int reg, uint8_t val) in pi3usb9201_emul_set_reg() argument 87 struct pi3usb9201_emul_data *data = target->data; in pi3usb9201_emul_set_reg() 88 const struct pi3usb9201_emul_cfg *cfg = target->cfg; in pi3usb9201_emul_set_reg() 109 if (pi3usb9201_emul_interrupt_is_pending(target)) { in pi3usb9201_emul_set_reg() 116 static int pi3usb9201_emul_get_reg(const struct emul *target, int reg, uint8_t *val) in pi3usb9201_emul_get_reg() argument 118 struct pi3usb9201_emul_data *data = target->data; in pi3usb9201_emul_get_reg() 119 const struct pi3usb9201_emul_cfg *cfg = target->cfg; in pi3usb9201_emul_get_reg() 141 static void pi3usb9201_emul_reset(const struct emul *target) in pi3usb9201_emul_reset() argument [all …]
|
/Zephyr-Core-3.6.0/drivers/sensor/amd_sb_tsi/ |
D | sb_tsi_emul.c | 24 static void sb_tsi_emul_set_reg(const struct emul *target, uint8_t reg, uint8_t val) in sb_tsi_emul_set_reg() argument 26 struct sb_tsi_emul_data *data = target->data; in sb_tsi_emul_set_reg() 32 static uint8_t sb_tsi_emul_get_reg(const struct emul *target, uint8_t reg) in sb_tsi_emul_get_reg() argument 34 struct sb_tsi_emul_data *data = target->data; in sb_tsi_emul_get_reg() 40 static void sb_tsi_emul_reset(const struct emul *target) in sb_tsi_emul_reset() argument 42 struct sb_tsi_emul_data *data = target->data; in sb_tsi_emul_reset() 47 static int sb_tsi_emul_transfer_i2c(const struct emul *target, struct i2c_msg *msgs, in sb_tsi_emul_transfer_i2c() argument 56 i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false); in sb_tsi_emul_transfer_i2c() 74 val = sb_tsi_emul_get_reg(target, reg); in sb_tsi_emul_transfer_i2c() 85 sb_tsi_emul_set_reg(target, reg, msgs->buf[0]); in sb_tsi_emul_transfer_i2c() [all …]
|
/Zephyr-Core-3.6.0/include/zephyr/drivers/usb/ |
D | emul_bc12.h | 56 static inline int bc12_emul_set_charging_partner(const struct emul *target, in bc12_emul_set_charging_partner() argument 60 (const struct bc12_emul_driver_api *)target->backend_api; in bc12_emul_set_charging_partner() 62 return backend_api->set_charging_partner(target, partner_type); in bc12_emul_set_charging_partner() 80 static inline int bc12_emul_set_pd_partner(const struct emul *target, bool connected) in bc12_emul_set_pd_partner() argument 83 (const struct bc12_emul_driver_api *)target->backend_api; in bc12_emul_set_pd_partner() 85 return backend_api->set_pd_partner(target, connected); in bc12_emul_set_pd_partner()
|
/Zephyr-Core-3.6.0/drivers/sensor/icm42688/ |
D | icm42688_emul.c | 28 void icm42688_emul_set_reg(const struct emul *target, uint8_t reg_addr, const uint8_t *val, in icm42688_emul_set_reg() argument 31 struct icm42688_emul_data *data = target->data; in icm42688_emul_set_reg() 37 void icm42688_emul_get_reg(const struct emul *target, uint8_t reg_addr, uint8_t *val, size_t count) in icm42688_emul_get_reg() argument 39 struct icm42688_emul_data *data = target->data; in icm42688_emul_get_reg() 45 static void icm42688_emul_handle_write(const struct emul *target, uint8_t regn, uint8_t value) in icm42688_emul_handle_write() argument 47 struct icm42688_emul_data *data = target->data; in icm42688_emul_handle_write() 63 static int icm42688_emul_io_spi(const struct emul *target, const struct spi_config *config, in icm42688_emul_io_spi() argument 67 struct icm42688_emul_data *data = target->data; in icm42688_emul_io_spi() 101 icm42688_emul_handle_write(target, regn, value); in icm42688_emul_io_spi() 107 static int icm42688_emul_init(const struct emul *target, const struct device *parent) in icm42688_emul_init() argument [all …]
|