/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/ |
D | smp_reassembly.c | 20 smpt->__reassembly.current = NULL; in smp_reassembly_init() 26 if (smpt->__reassembly.current == NULL) { in smp_reassembly_expected() 35 if (smpt->__reassembly.current == NULL) { in smp_reassembly_collect() 60 smpt->__reassembly.current = smp_packet_alloc(); in smp_reassembly_collect() 61 if (smpt->__reassembly.current != NULL) { in smp_reassembly_collect() 74 net_buf_add_mem(smpt->__reassembly.current, buf, len); in smp_reassembly_collect() 88 if (smpt->__reassembly.current == NULL) { in smp_reassembly_complete() 95 smp_rx_req(smpt, smpt->__reassembly.current); in smp_reassembly_complete() 97 smpt->__reassembly.current = NULL; in smp_reassembly_complete() 105 if (smpt->__reassembly.current == NULL) { in smp_reassembly_drop() [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_ll_stm32_v1.c | 161 data->current.len = msg->len; in msg_init() 162 data->current.buf = msg->buf; in msg_init() 163 data->current.flags = msg->flags; in msg_init() 164 data->current.is_restart = 0U; in msg_init() 165 data->current.is_write = (transfer == I2C_REQUEST_WRITE); in msg_init() 166 data->current.is_arlo = 0U; in msg_init() 167 data->current.is_err = 0U; in msg_init() 168 data->current.is_nack = 0U; in msg_init() 169 data->current.msg = msg; in msg_init() 189 if (data->current.is_nack || data->current.is_err || in msg_end() [all …]
|
D | i2c_gd32.c | 52 struct i2c_msg *current; member 74 data->current->len--; in i2c_gd32_xfer_read() 75 *data->current->buf = I2C_DATA(cfg->reg); in i2c_gd32_xfer_read() 76 data->current->buf++; in i2c_gd32_xfer_read() 79 (data->current->len == 0U)) { in i2c_gd32_xfer_read() 80 data->current++; in i2c_gd32_xfer_read() 87 data->current->len--; in i2c_gd32_xfer_write() 88 I2C_DATA(cfg->reg) = *data->current->buf; in i2c_gd32_xfer_write() 89 data->current->buf++; in i2c_gd32_xfer_write() 92 (data->current->len == 0U)) { in i2c_gd32_xfer_write() [all …]
|
D | i2c_ll_stm32_v2.c | 469 if (data->current.len) { in stm32_i2c_event() 472 LL_I2C_TransmitData8(i2c, *data->current.buf); in stm32_i2c_event() 477 *data->current.buf = LL_I2C_ReceiveData8(i2c); in stm32_i2c_event() 480 data->current.buf++; in stm32_i2c_event() 481 data->current.len--; in stm32_i2c_event() 487 data->current.is_nack = 1U; in stm32_i2c_event() 507 if (data->current.msg->flags & I2C_MSG_STOP) { in stm32_i2c_event() 535 data->current.is_arlo = 1U; in stm32_i2c_error() 541 data->current.is_err = 1U; in stm32_i2c_error() 596 data->current.len = msg->len; in stm32_i2c_msg_write() [all …]
|
/Zephyr-latest/scripts/kconfig/ |
D | hardenconfig.py | 25 def __init__(self, name, recommended, current=None, symbol=None): argument 28 self.current = current 31 if current is None: 33 elif recommended == current: 50 current = symbol.str_value 53 current = None 54 options.append(Option(name=name, current=current, 59 …options.append(Option(name=node.item.name, current=node.item.str_value, recommended='n', symbol=no… 75 opt.name, opt.current, opt.recommended), end='')
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
D | no_transition_work_handler.c | 47 if (ctl->light->target != ctl->light->current) { in no_transition_work_handler() 48 ctl->light->current = ctl->light->target; in no_transition_work_handler() 52 if (ctl->temp->target != ctl->temp->current) { in no_transition_work_handler() 53 ctl->temp->current = ctl->temp->target; in no_transition_work_handler() 57 if (ctl->duv->target != ctl->duv->current) { in no_transition_work_handler() 58 ctl->duv->current = ctl->duv->target; in no_transition_work_handler() 62 if (ctl->light->current) { in no_transition_work_handler() 63 ctl->light->last = ctl->light->current; in no_transition_work_handler()
|
D | transition.c | 117 ((float) (ctl->light->current - ctl->light->target) / in set_transition_values() 122 ((float) (ctl->light->current - ctl->light->target) / in set_transition_values() 126 ((float) (ctl->temp->current - ctl->temp->target) / in set_transition_values() 130 ((float) (ctl->duv->current - ctl->duv->target) / in set_transition_values() 135 ((float) (ctl->temp->current - ctl->temp->target) / in set_transition_values() 140 ((float) (ctl->temp->current - ctl->temp->target) / in set_transition_values() 144 ((float) (ctl->duv->current - ctl->duv->target) / in set_transition_values() 170 ctl->light->current -= ctl->light->delta; in onoff_work_handler() 173 ctl->light->current = ctl->light->target; in onoff_work_handler() 185 if (ctl->light->current) { in level_move_lightness_work_handler() [all …]
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/ |
D | main.c | 63 ctl->temp->current = ctl->temp->def; in light_default_status_init() 64 ctl->duv->current = ctl->duv->def; in light_default_status_init() 68 ctl->light->current = 0U; in light_default_status_init() 72 ctl->light->current = ctl->light->last; in light_default_status_init() 74 ctl->light->current = ctl->light->def; in light_default_status_init() 78 ctl->light->current = ctl->light->target; in light_default_status_init() 79 ctl->temp->current = ctl->temp->target; in light_default_status_init() 80 ctl->duv->current = ctl->duv->target; in light_default_status_init() 84 ctl->light->target = ctl->light->current; in light_default_status_init() 85 ctl->temp->target = ctl->temp->current; in light_default_status_init() [all …]
|
/Zephyr-latest/tests/drivers/sensor/adltc2990/boards/ |
D | native_sim.overlay | 11 pins-v1-v2-current-resistor = <0>; 12 pins-v3-v4-current-resistor = <0>; 25 pins-v1-v2-current-resistor = <1000000>; 26 pins-v3-v4-current-resistor = <0>; 37 pins-v1-v2-current-resistor = <1000000>; 38 pins-v3-v4-current-resistor = <0>; 51 pins-v1-v2-current-resistor = <1000000>; 52 pins-v3-v4-current-resistor = <0>; 65 pins-v1-v2-current-resistor = <10000>; 66 pins-v3-v4-current-resistor = <100000>; [all …]
|
/Zephyr-latest/kernel/ |
D | usage.c | 42 if (cpu->current != cpu->idle_thread) { in sched_cpu_update_usage() 46 cpu->usage->current += cycles; in sched_cpu_update_usage() 48 if (cpu->usage->longest < cpu->usage->current) { in sched_cpu_update_usage() 49 cpu->usage->longest = cpu->usage->current; in sched_cpu_update_usage() 52 cpu->usage->current = 0; in sched_cpu_update_usage() 66 thread->base.usage.current += cycles; in sched_thread_update_usage() 68 if (thread->base.usage.longest < thread->base.usage.current) { in sched_thread_update_usage() 69 thread->base.usage.longest = thread->base.usage.current; in sched_thread_update_usage() 85 thread->base.usage.current = 0; in z_sched_usage_start() 110 if (cpu->current->base.usage.track_usage) { in z_sched_usage_stop() [all …]
|
/Zephyr-latest/lib/smf/ |
D | smf.c | 157 for (const struct smf_state *tmp_state = ctx->current->parent; tmp_state != NULL; in smf_execute_ancestor_run_actions() 195 for (const struct smf_state *to_execute = ctx->current; in smf_execute_all_exit_actions() 230 ctx->current = init_state; in smf_set_initial() 335 ctx->previous = ctx->current; in smf_set_state() 336 ctx->current = new_state; in smf_set_state() 345 if (ctx->current->exit) { in smf_set_state() 347 ctx->current->exit(ctx); in smf_set_state() 355 ctx->previous = ctx->current; in smf_set_state() 356 ctx->current = new_state; in smf_set_state() 358 if (ctx->current->entry) { in smf_set_state() [all …]
|
/Zephyr-latest/subsys/net/l2/ppp/ |
D | misc.c | 44 static void validate_phase_transition(enum ppp_phase current, in validate_phase_transition() argument 61 if (!(valid_transitions[current] & 1 << new)) { in validate_phase_transition() 63 ppp_phase_str(current), current, in validate_phase_transition() 68 static inline void validate_phase_transition(enum ppp_phase current, in validate_phase_transition() argument 71 ARG_UNUSED(current); in validate_phase_transition() 208 static void validate_state_transition(enum ppp_state current, in validate_state_transition() argument 252 if (!(valid_transitions[current] & 1 << new)) { in validate_state_transition() 254 ppp_state_str(current), current, in validate_state_transition() 259 static inline void validate_state_transition(enum ppp_state current, in validate_state_transition() argument 262 ARG_UNUSED(current); in validate_state_transition()
|
/Zephyr-latest/tests/drivers/i2c/i2c_target_api/common/ |
D | i2c_virtual.c | 153 struct i2c_msg *current, *next; in i2c_virtual_transfer() local 163 current = msg; in i2c_virtual_transfer() 164 current->flags |= I2C_MSG_RESTART; in i2c_virtual_transfer() 167 next = current + 1; in i2c_virtual_transfer() 173 if (OPERATION(current) != OPERATION(next)) { in i2c_virtual_transfer() 182 if ((num_msgs == 1U) && !(current->flags & I2C_MSG_STOP)) { in i2c_virtual_transfer() 187 if ((current->flags & I2C_MSG_RW_MASK) == I2C_MSG_WRITE) { in i2c_virtual_transfer() 188 ret = i2c_virtual_msg_write(dev, current, in i2c_virtual_transfer() 192 ret = i2c_virtual_msg_read(dev, current, cfg); in i2c_virtual_transfer() 200 current++; in i2c_virtual_transfer()
|
/Zephyr-latest/soc/sensry/ganymed/sy1xx/common/ |
D | soc.c | 54 uint32_t current = sys_read32(SY1XX_ARCHI_FC_ITC_ADDR + SY1XX_ARCHI_ITC_MASK_SET_OFFSET); in soc_enable_irq() local 56 sys_write32(current | (1 << (idx & 0x1f)), in soc_enable_irq() 62 uint32_t current = sys_read32(SY1XX_ARCHI_FC_ITC_ADDR + SY1XX_ARCHI_ITC_MASK_CLR_OFFSET); in soc_disable_irq() local 64 sys_write32(current & (~(1 << (idx & 0x1f))), in soc_disable_irq()
|
/Zephyr-latest/subsys/profiling/perf/backends/ |
D | perf_x86_64.c | 10 static bool valid_stack(uintptr_t addr, k_tid_t current) in valid_stack() argument 12 return current->stack_info.start <= addr && in valid_stack() 13 addr < current->stack_info.start + current->stack_info.size; in valid_stack()
|
D | perf_x86.c | 10 static bool valid_stack(uintptr_t addr, k_tid_t current) in valid_stack() argument 12 return current->stack_info.start <= addr && in valid_stack() 13 addr < current->stack_info.start + current->stack_info.size; in valid_stack()
|
D | perf_riscv.c | 9 static bool valid_stack(uintptr_t addr, k_tid_t current) in valid_stack() argument 11 return current->stack_info.start <= addr && in valid_stack() 12 addr < current->stack_info.start + current->stack_info.size; in valid_stack()
|
/Zephyr-latest/tests/drivers/sensor/ina237/boards/ |
D | native_sim.overlay | 15 current-lsb-microamps = <123>; 25 current-lsb-microamps = <123>; 29 /* high precision mode, maximum current lsb */ 35 current-lsb-microamps = <0xffff>; 45 current-lsb-microamps = <0x00ff>;
|
/Zephyr-latest/include/zephyr/arch/common/ |
D | arch_inlines.h | 28 struct k_thread *ret = _current_cpu->current; in arch_current_thread() 32 struct k_thread *ret = _kernel.cpus[0].current; in arch_current_thread() 39 _current_cpu->current = thread; in arch_current_thread_set()
|
/Zephyr-latest/samples/sensor/ina219/src/ |
D | main.c | 15 struct sensor_value v_bus, power, current; in main() local 32 sensor_channel_get(ina, SENSOR_CHAN_CURRENT, ¤t); in main() 39 sensor_value_to_double(¤t)); in main()
|
/Zephyr-latest/tests/drivers/fuel_gauge/sbs_gauge/src/ |
D | test_sbs_gauge.c | 212 union fuel_gauge_prop_val current; in ZTEST_USER_F() local 217 zassert_ok(fuel_gauge_get_prop(fixture->dev, FUEL_GAUGE_CURRENT, ¤t)); in ZTEST_USER_F() 220 zassert_equal(current.current, expected_uA, "Got %d instead of %d", current, expected_uA); in ZTEST_USER_F() 229 union fuel_gauge_prop_val current; in ZTEST_USER_F() local 234 zassert_ok(fuel_gauge_get_prop(fixture->dev, FUEL_GAUGE_CURRENT, ¤t)); in ZTEST_USER_F() 237 zassert_equal(current.current, expected_uA, "Got %d instead of %d", current, expected_uA); in ZTEST_USER_F()
|
/Zephyr-latest/samples/shields/npm1300_ek/src/ |
D | main.c | 79 struct sensor_value current; in read_sensors() local 87 sensor_channel_get(charger, SENSOR_CHAN_GAUGE_AVG_CURRENT, ¤t); in read_sensors() 98 printk("I: %s%d.%04d ", ((current.val1 < 0) || (current.val2 < 0)) ? "-" : "", in read_sensors() 99 abs(current.val1), abs(current.val2) / 100); in read_sensors()
|
/Zephyr-latest/boards/toradex/verdin_imx8mm/ |
D | verdin_imx8mm_mimx8mm6_m4.dts | 51 current-speed = <115200>; 58 current-speed = <115200>; 65 current-speed = <115200>; 72 current-speed = <115200>;
|
/Zephyr-latest/subsys/shell/ |
D | shell_history.c | 50 history->current = NULL; in z_shell_history_mode_exit() 65 if (history->current == NULL) { in z_shell_history_get() 73 history->current); in z_shell_history_get() 75 l_item = (history->current == NULL) ? in z_shell_history_get() 77 sys_dlist_peek_next_no_check(&history->list, history->current); in z_shell_history_get() 81 history->current = l_item; in z_shell_history_get() 213 history->current = NULL; in z_shell_history_init()
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_6lo_fragment.c | 406 struct net_buf *prev, *current; in fragment_move_back() local 409 current = pkt->buffer; in fragment_move_back() 411 while (current && current != stop) { in fragment_move_back() 412 if (fragment_offset(frag) < fragment_offset(current)) { in fragment_move_back() 417 frag->frags = current; in fragment_move_back() 421 prev = current; in fragment_move_back() 422 current = current->frags; in fragment_move_back() 447 struct net_buf *prev, *current, *next; in fragment_reconstruct_packet() local 450 current = pkt->buffer; in fragment_reconstruct_packet() 452 while (current) { in fragment_reconstruct_packet() [all …]
|