Home
last modified time | relevance | path

Searched refs:current (Results 1 – 25 of 1232) sorted by relevance

12345678910>>...50

/Zephyr-Core-3.7.0/subsys/mgmt/mcumgr/transport/src/
Dsmp_reassembly.c20 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-Core-3.7.0/arch/arm/core/cortex_m/
Dswap.c56 (_kernel.cpus[0].current->arch.mode_exc_return = (uint8_t)exc_ret;)); in z_arm_pendsv_c()
62 struct k_thread *current = _kernel.cpus[0].current = _kernel.ready_q.cache; in z_arm_pendsv_c() local
79 (extern uintptr_t z_arm_tls_ptr; z_arm_tls_ptr = current->tls)); in z_arm_pendsv_c()
82 (exc_ret = (exc_ret & 0xFFFFFF00) | current->arch.mode_exc_return)); in z_arm_pendsv_c()
87 basepri = current->arch.basepri; in z_arm_pendsv_c()
88 current->arch.basepri = 0; in z_arm_pendsv_c()
94 z_arm_configure_dynamic_mpu_regions(current); in z_arm_pendsv_c()
106 __set_CONTROL(ctrl.w | current->arch.mode); in z_arm_pendsv_c()
/Zephyr-Core-3.7.0/scripts/kconfig/
Dhardenconfig.py25 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,
70 opt.name, opt.current, opt.recommended), end='')
/Zephyr-Core-3.7.0/drivers/i2c/
Di2c_ll_stm32_v1.c161 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 …]
Di2c_gd32.c52 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 …]
Di2c_ll_stm32_v2.c460 if (data->current.len) { in stm32_i2c_event()
463 LL_I2C_TransmitData8(i2c, *data->current.buf); in stm32_i2c_event()
468 *data->current.buf = LL_I2C_ReceiveData8(i2c); in stm32_i2c_event()
471 data->current.buf++; in stm32_i2c_event()
472 data->current.len--; in stm32_i2c_event()
478 data->current.is_nack = 1U; in stm32_i2c_event()
498 if (data->current.msg->flags & I2C_MSG_STOP) { in stm32_i2c_event()
526 data->current.is_arlo = 1U; in stm32_i2c_error()
532 data->current.is_err = 1U; in stm32_i2c_error()
587 data->current.len = msg->len; in stm32_i2c_msg_write()
[all …]
/Zephyr-Core-3.7.0/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/
Dno_transition_work_handler.c47 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()
Dtransition.c119 ((float) (ctl->light->current - ctl->light->target) / in set_transition_values()
124 ((float) (ctl->light->current - ctl->light->target) / in set_transition_values()
128 ((float) (ctl->temp->current - ctl->temp->target) / in set_transition_values()
132 ((float) (ctl->duv->current - ctl->duv->target) / in set_transition_values()
137 ((float) (ctl->temp->current - ctl->temp->target) / in set_transition_values()
142 ((float) (ctl->temp->current - ctl->temp->target) / in set_transition_values()
146 ((float) (ctl->duv->current - ctl->duv->target) / in set_transition_values()
172 ctl->light->current -= ctl->light->delta; in onoff_work_handler()
175 ctl->light->current = ctl->light->target; in onoff_work_handler()
187 if (ctl->light->current) { in level_move_lightness_work_handler()
[all …]
Ddevice_composition.h31 int current; member
40 uint16_t current; member
55 uint16_t current; member
70 int16_t current; member
/Zephyr-Core-3.7.0/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/
Dmain.c63 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-Core-3.7.0/tests/drivers/sensor/adltc2990/boards/
Dnative_sim.overlay11 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-Core-3.7.0/kernel/
Dusage.c42 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-Core-3.7.0/lib/smf/
Dsmf.c157 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-Core-3.7.0/subsys/net/l2/ppp/
Dmisc.c44 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-Core-3.7.0/tests/drivers/i2c/i2c_target_api/common/
Di2c_virtual.c153 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-Core-3.7.0/tests/drivers/sensor/ina237/boards/
Dnative_sim.overlay15 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-Core-3.7.0/samples/shields/npm1300_ek/src/
Dmain.c79 struct sensor_value current; in read_sensors() local
86 sensor_channel_get(charger, SENSOR_CHAN_GAUGE_AVG_CURRENT, &current); in read_sensors()
93 printk("I: %s%d.%04d ", ((current.val1 < 0) || (current.val2 < 0)) ? "-" : "", in read_sensors()
94 abs(current.val1), abs(current.val2) / 100); in read_sensors()
/Zephyr-Core-3.7.0/samples/sensor/ina219/src/
Dmain.c15 struct sensor_value v_bus, power, current; in main() local
32 sensor_channel_get(ina, SENSOR_CHAN_CURRENT, &current); in main()
39 sensor_value_to_double(&current)); in main()
/Zephyr-Core-3.7.0/subsys/net/l2/ieee802154/
Dieee802154_6lo_fragment.c406 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 …]
/Zephyr-Core-3.7.0/subsys/shell/
Dshell_history.c50 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-Core-3.7.0/dts/arm64/ti/
Dti_am62x_a53.dtsi66 current-speed = <115200>;
77 current-speed = <115200>;
88 current-speed = <115200>;
99 current-speed = <115200>;
110 current-speed = <115200>;
121 current-speed = <115200>;
132 current-speed = <115200>;
/Zephyr-Core-3.7.0/tests/kernel/ipi_cascade/src/
Dmain.c80 str, _kernel.cpus[0].current, in show_executing_threads()
81 _kernel.cpus[0].current->name, in show_executing_threads()
82 _kernel.cpus[0].current->base.prio); in show_executing_threads()
84 str, _kernel.cpus[1].current, in show_executing_threads()
85 _kernel.cpus[1].current->name, in show_executing_threads()
86 _kernel.cpus[1].current->base.prio); in show_executing_threads()
/Zephyr-Core-3.7.0/boards/nxp/vmu_rt1170/
Dvmu_rt1170.dtsi45 current-speed = <115200>;
52 current-speed = <115200>;
59 current-speed = <115200>;
66 current-speed = <115200>;
73 current-speed = <115200>;
80 current-speed = <115200>;
87 current-speed = <115200>;
94 current-speed = <115200>;
/Zephyr-Core-3.7.0/arch/xtensa/core/
Dthread.c146 struct k_thread *current = _current; in arch_user_mode_enter() local
152 stack_end = Z_STACK_PTR_ALIGN(current->stack_info.start + in arch_user_mode_enter()
153 current->stack_info.size - in arch_user_mode_enter()
154 current->stack_info.delta); in arch_user_mode_enter()
157 stack_end, current->stack_info.start); in arch_user_mode_enter()
/Zephyr-Core-3.7.0/subsys/net/lib/coap/
Dcoap_link_format.c219 size_t current) in append_to_coap_pkt() argument
228 if (*offset < current) { in append_to_coap_pkt()
229 pos = current - *offset; in append_to_coap_pkt()
255 size_t current, bool *more) in format_uri() argument
266 remaining, offset, current); in format_uri()
280 offset, current); in format_uri()
296 current); in format_uri()
308 res = append_to_coap_pkt(response, ">", 1, remaining, offset, current); in format_uri()
326 size_t current, bool *more) in format_attributes() argument
340 remaining, offset, current); in format_attributes()
[all …]

12345678910>>...50