Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 265) sorted by relevance

1234567891011

/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_models/server/
Dsensor_server.c30 struct bt_mesh_sensor_state *state = NULL; in send_sensor_descriptor_status() local
45 state = &srv->states[i]; in send_sensor_descriptor_status()
46 if (state->sensor_property_id != INVALID_SENSOR_PROPERTY_ID) { in send_sensor_descriptor_status()
53 net_buf_simple_add_le16(msg, state->sensor_property_id); in send_sensor_descriptor_status()
54 net_buf_simple_add_le32(msg, (state->descriptor.sample_function << 24) | in send_sensor_descriptor_status()
55 (state->descriptor.negative_tolerance << 12) | in send_sensor_descriptor_status()
56 (state->descriptor.positive_tolerance)); in send_sensor_descriptor_status()
57 net_buf_simple_add_u8(msg, state->descriptor.measure_period); in send_sensor_descriptor_status()
58 net_buf_simple_add_u8(msg, state->descriptor.update_interval); in send_sensor_descriptor_status()
63 state = &srv->states[i]; in send_sensor_descriptor_status()
[all …]
Dstate_transition.c131 ((float) (srv->state.level - srv->state.target_level) / srv->transition.counter); in generic_level_tt_values()
139 … ((float) (srv->state->power_actual - srv->state->target_power_actual) / srv->transition.counter); in generic_power_level_tt_values()
149 …((float) (srv->state->lightness_actual - srv->state->target_lightness_actual) / srv->actual_transi… in light_lightness_actual_tt_values()
157 …((float) (srv->state->lightness_linear - srv->state->target_lightness_linear) / srv->linear_transi… in light_lightness_linear_tt_values()
165 ((float) (srv->state->lightness - srv->state->target_lightness) / srv->transition.counter); in light_ctl_tt_values()
167 … ((float) (srv->state->temperature - srv->state->target_temperature) / srv->transition.counter); in light_ctl_tt_values()
169 ((float) (srv->state->delta_uv - srv->state->target_delta_uv) / srv->transition.counter); in light_ctl_tt_values()
177 … ((float) (srv->state->temperature - srv->state->target_temperature) / srv->transition.counter); in light_ctl_temp_tt_values()
179 ((float) (srv->state->delta_uv - srv->state->target_delta_uv) / srv->transition.counter); in light_ctl_temp_tt_values()
187 ((float) (srv->state->lightness - srv->state->target_lightness) / srv->transition.counter); in light_hsl_tt_values()
[all …]
Dlighting_server.c81 net_buf_simple_add_le16(msg, srv->state->lightness_actual); in send_light_lightness_status()
84 net_buf_simple_add_le16(msg, srv->state->target_lightness_actual); in send_light_lightness_status()
91 net_buf_simple_add_le16(msg, srv->state->lightness_linear); in send_light_lightness_status()
94 net_buf_simple_add_le16(msg, srv->state->target_lightness_linear); in send_light_lightness_status()
101 net_buf_simple_add_le16(msg, srv->state->lightness_last); in send_light_lightness_status()
107 net_buf_simple_add_le16(msg, srv->state->lightness_default); in send_light_lightness_status()
110 net_buf_simple_add_le16(msg, srv->state->lightness_default); in send_light_lightness_status()
116 net_buf_simple_add_u8(msg, srv->state->status_code); in send_light_lightness_status()
117 net_buf_simple_add_le16(msg, srv->state->lightness_range_min); in send_light_lightness_status()
118 net_buf_simple_add_le16(msg, srv->state->lightness_range_max); in send_light_lightness_status()
[all …]
Dtime_scene_server.c79 net_buf_simple_add_mem(msg, srv->state->time.tai_seconds, TAI_SECONDS_LEN); in send_time_status()
80 if (memcmp(srv->state->time.tai_seconds, zero, TAI_SECONDS_LEN)) { in send_time_status()
81 net_buf_simple_add_u8(msg, srv->state->time.subsecond); in send_time_status()
89 net_buf_simple_add_u8(msg, srv->state->time.uncertainty); in send_time_status()
91 … (srv->state->time.tai_utc_delta_curr << 1) | srv->state->time.time_authority); in send_time_status()
92 net_buf_simple_add_u8(msg, srv->state->time.time_zone_offset_curr); in send_time_status()
96 net_buf_simple_add_mem(msg, srv->state->time.tai_seconds, TAI_SECONDS_LEN); in send_time_status()
97 if (memcmp(srv->state->time.tai_seconds, zero, TAI_SECONDS_LEN)) { in send_time_status()
98 net_buf_simple_add_u8(msg, srv->state->time.subsecond); in send_time_status()
99 net_buf_simple_add_u8(msg, srv->state->time.uncertainty); in send_time_status()
[all …]
Dstate_binding.c117 srv->state.onoff = value->gen_onoff.onoff; in bt_mesh_update_binding_state()
129 srv->state.level = value->gen_level.level; in bt_mesh_update_binding_state()
140 if (srv->state == NULL) { in bt_mesh_update_binding_state()
145 srv->state->onpowerup = value->gen_onpowerup.onpowerup; in bt_mesh_update_binding_state()
156 if (srv->state == NULL) { in bt_mesh_update_binding_state()
162 srv->state->power_actual = value->gen_power_actual.power; in bt_mesh_update_binding_state()
169 if (srv->state->power_actual) { in bt_mesh_update_binding_state()
170 srv->state->power_last = srv->state->power_actual; in bt_mesh_update_binding_state()
184 if (srv->state == NULL) { in bt_mesh_update_binding_state()
190 srv->state->lightness_actual = value->light_lightness_actual.lightness; in bt_mesh_update_binding_state()
[all …]
Dgeneric_server.c78 net_buf_simple_add_u8(msg, srv->state.onoff); in send_gen_onoff_status()
81 net_buf_simple_add_u8(msg, srv->state.target_onoff); in send_gen_onoff_status()
180 srv->state.target_onoff = onoff; in gen_onoff_set()
182 if (srv->state.target_onoff != srv->state.onoff) { in gen_onoff_set()
186 .gen_onoff_set.onoff = srv->state.onoff, in gen_onoff_set()
207 srv->state.onoff = srv->state.target_onoff; in gen_onoff_set()
250 net_buf_simple_add_le16(msg, srv->state.level); in send_gen_level_status()
252 if (srv->state.move_start) { in send_gen_level_status()
253 if (srv->state.positive) { in send_gen_level_status()
261 net_buf_simple_add_le16(msg, srv->state.target_level); in send_gen_level_status()
[all …]
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/
Dfastpbkdf2.c241 write32_be(ctx->state[0], out); in sha1_extract()
242 write32_be(ctx->state[1], out + 4); in sha1_extract()
243 write32_be(ctx->state[2], out + 8); in sha1_extract()
244 write32_be(ctx->state[3], out + 12); in sha1_extract()
245 write32_be(ctx->state[4], out + 16); in sha1_extract()
247 *(uint32_t *)(out) = ctx->state[0]; in sha1_extract()
248 *(uint32_t *)(out + 4) = ctx->state[1]; in sha1_extract()
249 *(uint32_t *)(out + 8) = ctx->state[2]; in sha1_extract()
250 *(uint32_t *)(out + 12) = ctx->state[3]; in sha1_extract()
251 *(uint32_t *)(out + 16) = ctx->state[4]; in sha1_extract()
[all …]
/hal_espressif-latest/components/newlib/
Dstdatomic.c44 unsigned state = portDISABLE_INTERRUPTS(); \
45 state; \
48 #define _ATOMIC_EXIT_CRITICAL(state) do { \ argument
49 portRESTORE_INTERRUPTS(state); \
53 unsigned state = portSET_INTERRUPT_MASK_FROM_ISR(); \
54 state; \
57 #define _ATOMIC_EXIT_CRITICAL(state) do { \ argument
58 portCLEAR_INTERRUPT_MASK_FROM_ISR(state); \
74 #define _ATOMIC_EXIT_CRITICAL(state) do { \ argument
75 (void) (state); \
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/utils/
Dstate_machine.h32 #define SM_STATE(machine, state) \ argument
33 static void sm_ ## machine ## _ ## state ## _Enter(STATE_MACHINE_DATA *sm, \
46 #define SM_ENTRY(machine, state) \ argument
47 if (!global || sm->machine ## _state != machine ## _ ## state) { \
50 " entering state " #state); \
52 sm->machine ## _state = machine ## _ ## state;
66 if (!global || sm->data ## _ ## state != machine ## _ ## _state) { \
71 sm->data ## _ ## state = machine ## _ ## _state;
84 if (!global || sm->data ## _ ## state != machine ## _ ## _state) { \
90 sm->data ## _ ## state = machine ## _ ## _state;
[all …]
Djson.c198 if (token->state != JSON_COMPLETED) { in json_check_tree_state()
201 token->state, token->name ? token->name : "N/A", in json_check_tree_state()
242 } else if (curr_token->state == JSON_WAITING_VALUE) { in json_parse()
246 curr_token->parent->state == JSON_STARTED && in json_parse()
247 curr_token->state == JSON_EMPTY) { in json_parse()
261 token->state = JSON_STARTED; in json_parse()
267 curr_token->state = JSON_EMPTY; in json_parse()
272 curr_token->parent->state != JSON_STARTED) { in json_parse()
287 if (curr_token->child->state == JSON_EMPTY && in json_parse()
295 curr_token->state = JSON_COMPLETED; in json_parse()
[all …]
/hal_espressif-latest/components/mbedtls/port/sha/parallel_engine/
Desp_sha512.c118 esp_sha_read_digest_state(SHA2_512, dst->state); in mbedtls_sha512_clone()
134 ctx->state[0] = UL64(0x6A09E667F3BCC908); in mbedtls_sha512_starts()
135 ctx->state[1] = UL64(0xBB67AE8584CAA73B); in mbedtls_sha512_starts()
136 ctx->state[2] = UL64(0x3C6EF372FE94F82B); in mbedtls_sha512_starts()
137 ctx->state[3] = UL64(0xA54FF53A5F1D36F1); in mbedtls_sha512_starts()
138 ctx->state[4] = UL64(0x510E527FADE682D1); in mbedtls_sha512_starts()
139 ctx->state[5] = UL64(0x9B05688C2B3E6C1F); in mbedtls_sha512_starts()
140 ctx->state[6] = UL64(0x1F83D9ABFB41BD6B); in mbedtls_sha512_starts()
141 ctx->state[7] = UL64(0x5BE0CD19137E2179); in mbedtls_sha512_starts()
144 ctx->state[0] = UL64(0xCBBB9D5DC1059ED8); in mbedtls_sha512_starts()
[all …]
Desp_sha256.c95 esp_sha_read_digest_state(SHA2_256, dst->state); in mbedtls_sha256_clone()
110 ctx->state[0] = 0x6A09E667; in mbedtls_sha256_starts()
111 ctx->state[1] = 0xBB67AE85; in mbedtls_sha256_starts()
112 ctx->state[2] = 0x3C6EF372; in mbedtls_sha256_starts()
113 ctx->state[3] = 0xA54FF53A; in mbedtls_sha256_starts()
114 ctx->state[4] = 0x510E527F; in mbedtls_sha256_starts()
115 ctx->state[5] = 0x9B05688C; in mbedtls_sha256_starts()
116 ctx->state[6] = 0x1F83D9AB; in mbedtls_sha256_starts()
117 ctx->state[7] = 0x5BE0CD19; in mbedtls_sha256_starts()
120 ctx->state[0] = 0xC1059ED8; in mbedtls_sha256_starts()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/rfcomm/
Drfc_mx_fsm.c91 RFCOMM_TRACE_DEBUG("%s st:%d, evt:%d\n", __func__, p_mcb->state, event); in rfc_mx_sm_execute()
93 switch (p_mcb->state) { in rfc_mx_sm_execute()
159 p_mcb->state = RFC_MX_STATE_WAIT_CONN_CNF; in rfc_mx_sm_state_idle()
166 RFCOMM_TRACE_ERROR ("Mx error state %d event %d", p_mcb->state, event); in rfc_mx_sm_state_idle()
177 p_mcb->state = RFC_MX_STATE_CONFIGURE; in rfc_mx_sm_state_idle()
195 RFCOMM_TRACE_EVENT ("RFCOMM MX ignored - evt:%d in state:%d", event, p_mcb->state); in rfc_mx_sm_state_idle()
214 RFCOMM_TRACE_ERROR ("Mx error state %d event %d", p_mcb->state, event); in rfc_mx_sm_state_wait_conn_cnf()
225 p_mcb->state = RFC_MX_STATE_IDLE; in rfc_mx_sm_state_wait_conn_cnf()
230 p_mcb->state = RFC_MX_STATE_CONFIGURE; in rfc_mx_sm_state_wait_conn_cnf()
235 p_mcb->state = RFC_MX_STATE_IDLE; in rfc_mx_sm_state_wait_conn_cnf()
[all …]
/hal_espressif-latest/tools/esptool_py/flasher_stub/
Dslip.c42 int16_t SLIP_recv_byte(char byte, slip_state_t *state) in SLIP_recv_byte() argument
45 if (*state == SLIP_NO_FRAME) { in SLIP_recv_byte()
46 *state = SLIP_FRAME; in SLIP_recv_byte()
49 *state = SLIP_NO_FRAME; in SLIP_recv_byte()
54 switch(*state) { in SLIP_recv_byte()
59 *state = SLIP_FRAME_ESCAPING; in SLIP_recv_byte()
65 *state = SLIP_FRAME; in SLIP_recv_byte()
69 *state = SLIP_FRAME; in SLIP_recv_byte()
82 slip_state_t state = SLIP_NO_FRAME; in SLIP_recv() local
87 r = SLIP_recv_byte(stub_rx_one_char(), &state); in SLIP_recv()
/hal_espressif-latest/components/bt/porting/ext/tinycrypt/src/
Daes_decrypt.c131 uint8_t state[Nk*Nb]; in tc_aes_decrypt() local
142 (void)_copy(state, sizeof(state), in, sizeof(state)); in tc_aes_decrypt()
144 add_round_key(state, s->words + Nb*Nr); in tc_aes_decrypt()
147 inv_shift_rows(state); in tc_aes_decrypt()
148 inv_sub_bytes(state); in tc_aes_decrypt()
149 add_round_key(state, s->words + Nb*i); in tc_aes_decrypt()
150 inv_mix_columns(state); in tc_aes_decrypt()
153 inv_shift_rows(state); in tc_aes_decrypt()
154 inv_sub_bytes(state); in tc_aes_decrypt()
155 add_round_key(state, s->words); in tc_aes_decrypt()
[all …]
Daes_encrypt.c160 uint8_t state[Nk*Nb]; in tc_aes_encrypt() local
171 (void)_copy(state, sizeof(state), in, sizeof(state)); in tc_aes_encrypt()
172 add_round_key(state, s->words); in tc_aes_encrypt()
175 sub_bytes(state); in tc_aes_encrypt()
176 shift_rows(state); in tc_aes_encrypt()
177 mix_columns(state); in tc_aes_encrypt()
178 add_round_key(state, s->words + Nb*(i+1)); in tc_aes_encrypt()
181 sub_bytes(state); in tc_aes_encrypt()
182 shift_rows(state); in tc_aes_encrypt()
183 add_round_key(state, s->words + Nb*(i+1)); in tc_aes_encrypt()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/
Daes_decrypt.c131 uint8_t state[Nk * Nb]; in tc_aes_decrypt() local
142 (void)_copy(state, sizeof(state), in, sizeof(state)); in tc_aes_decrypt()
144 add_round_key(state, s->words + Nb * Nr); in tc_aes_decrypt()
147 inv_shift_rows(state); in tc_aes_decrypt()
148 inv_sub_bytes(state); in tc_aes_decrypt()
149 add_round_key(state, s->words + Nb * i); in tc_aes_decrypt()
150 inv_mix_columns(state); in tc_aes_decrypt()
153 inv_shift_rows(state); in tc_aes_decrypt()
154 inv_sub_bytes(state); in tc_aes_decrypt()
155 add_round_key(state, s->words); in tc_aes_decrypt()
[all …]
Daes_encrypt.c160 uint8_t state[Nk * Nb]; in tc_aes_encrypt() local
171 (void)_copy(state, sizeof(state), in, sizeof(state)); in tc_aes_encrypt()
172 add_round_key(state, s->words); in tc_aes_encrypt()
175 sub_bytes(state); in tc_aes_encrypt()
176 shift_rows(state); in tc_aes_encrypt()
177 mix_columns(state); in tc_aes_encrypt()
178 add_round_key(state, s->words + Nb * (i + 1)); in tc_aes_encrypt()
181 sub_bytes(state); in tc_aes_encrypt()
182 shift_rows(state); in tc_aes_encrypt()
183 add_round_key(state, s->words + Nb * (i + 1)); in tc_aes_encrypt()
[all …]
/hal_espressif-latest/components/esp_system/
Deh_frame_parser.c191 #define ESP_EH_FRAME_CFA(state) ((state)->regs_offset[(state)->offset_idx][ESP_ESH_… argument
495 dwarf_regs* state) in esp_eh_frame_execute_opcode_0() argument
508 state->location += *operands; in esp_eh_frame_execute_opcode_0()
513 state->location += *((const uint16_t*) operands); in esp_eh_frame_execute_opcode_0()
518 state->location += *((const uint32_t*) operands); in esp_eh_frame_execute_opcode_0()
521 assert(state->offset_idx == 0); in esp_eh_frame_execute_opcode_0()
522 memcpy(state->regs_offset[1], state->regs_offset[0], in esp_eh_frame_execute_opcode_0()
524 state->offset_idx++; in esp_eh_frame_execute_opcode_0()
527 assert(state->offset_idx == 1); in esp_eh_frame_execute_opcode_0()
529 state->offset_idx--; in esp_eh_frame_execute_opcode_0()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_ag/
Dbta_ag_sco.c48 static char *bta_ag_sco_state_str(UINT8 state);
232 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_conn_cback()
252 … (unsigned int)sco_idx, (unsigned int)bta_ag_cb.sco.p_curr_scb, (unsigned int)bta_ag_cb.sco.state); in bta_ag_sco_disc_cback()
255 …ag_cb.scb[0].in_use, (unsigned int)bta_ag_cb.scb[0].sco_idx, (unsigned int)bta_ag_cb.scb[0].state); in bta_ag_sco_disc_cback()
257 …_cb.scb[1].in_use, (unsigned int) bta_ag_cb.scb[1].sco_idx, (unsigned int) bta_ag_cb.scb[1].state); in bta_ag_sco_disc_cback()
324 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_disc_cback()
424 bta_ag_cb.sco.state = BTA_AG_SCO_OPENING_ST; in bta_ag_esco_connreq_cback()
433 bta_ag_cb.sco.state = BTA_AG_SCO_OPEN_XFER_ST; in bta_ag_esco_connreq_cback()
439 bta_ag_cb.sco.state = BTA_AG_SCO_LISTEN_ST; in bta_ag_esco_connreq_cback()
782 UINT8 in_state = p_sco->state; in bta_ag_sco_event()
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dsha384-internal.c56 md->state[0] = CONST64(0xcbbb9d5dc1059ed8); in sha384_init()
57 md->state[1] = CONST64(0x629a292a367cd507); in sha384_init()
58 md->state[2] = CONST64(0x9159015a3070dd17); in sha384_init()
59 md->state[3] = CONST64(0x152fecd8f70e5939); in sha384_init()
60 md->state[4] = CONST64(0x67332667ffc00b31); in sha384_init()
61 md->state[5] = CONST64(0x8eb44a8768581511); in sha384_init()
62 md->state[6] = CONST64(0xdb0c2e0d64f98fa7); in sha384_init()
63 md->state[7] = CONST64(0x47b5481dbefa4fa4); in sha384_init()
Dsha1-internal.c19 void SHA1Transform(u32 state[5], const unsigned char buffer[64]);
166 context->state[0], in SHAPrintContext()
167 context->state[1], in SHAPrintContext()
168 context->state[2], in SHAPrintContext()
169 context->state[3], in SHAPrintContext()
170 context->state[4]); in SHAPrintContext()
176 void SHA1Transform(u32 state[5], const unsigned char buffer[64]) in SHA1Transform()
192 a = state[0]; in SHA1Transform()
193 b = state[1]; in SHA1Transform()
194 c = state[2]; in SHA1Transform()
[all …]
Dsha256-internal.c92 S[i] = md->state[i]; in sha256_compress()
120 md->state[i] = md->state[i] + S[i]; in sha256_compress()
131 md->state[0] = 0x6A09E667UL; in sha256_init()
132 md->state[1] = 0xBB67AE85UL; in sha256_init()
133 md->state[2] = 0x3C6EF372UL; in sha256_init()
134 md->state[3] = 0xA54FF53AUL; in sha256_init()
135 md->state[4] = 0x510E527FUL; in sha256_init()
136 md->state[5] = 0x9B05688CUL; in sha256_init()
137 md->state[6] = 0x1F83D9ABUL; in sha256_init()
138 md->state[7] = 0x5BE0CD19UL; in sha256_init()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/core/
Dbtc_sm.c29 btc_sm_state_t state; member
72 p_cb->state = initial_state; in btc_sm_init()
119 return p_cb->state; in btc_sm_get_state()
145 if (p_cb->p_handlers[p_cb->state](event, data) == FALSE) { in btc_sm_dispatch()
165 bt_status_t btc_sm_change_state(btc_sm_handle_t handle, btc_sm_state_t state) in btc_sm_change_state() argument
176 if (p_cb->p_handlers[p_cb->state](BTC_SM_EXIT_EVT, NULL) == FALSE) { in btc_sm_change_state()
181 p_cb->state = state; in btc_sm_change_state()
184 if (p_cb->p_handlers[p_cb->state](BTC_SM_ENTER_EVT, NULL) == FALSE) { in btc_sm_change_state()
/hal_espressif-latest/components/bt/host/bluedroid/stack/btm/
Dbtm_sco.c173 p_sco->state = (p_sco->state == SCO_ST_W4_CONN_RSP) ? SCO_ST_LISTENING in btm_esco_conn_rsp()
187 p_sco->state = SCO_ST_CONNECTING; in btm_esco_conn_rsp()
512 p_ccb->state == SCO_ST_CONNECTED) { in BTM_WriteScoData()
549 sco_inx, btm_cb.sco_cb.sco_db[sco_inx].state); in BTM_WriteScoData()
770 if (((p->state == SCO_ST_CONNECTING) || (p->state == SCO_ST_LISTENING) in BTM_CreateSco()
771 || (p->state == SCO_ST_PEND_UNPARK)) in BTM_CreateSco()
779 if ((p->state == SCO_ST_LISTENING) && (!p->rem_bd_known)) { in BTM_CreateSco()
787 if (p->state == SCO_ST_UNUSED) { in BTM_CreateSco()
797 p->state = SCO_ST_PEND_UNPARK; in BTM_CreateSco()
839 if ( p->state != SCO_ST_PEND_UNPARK ) { in BTM_CreateSco()
[all …]

1234567891011