Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 166) sorted by relevance

1234567

/hal_espressif-3.4.0/components/bt/host/bluedroid/external/sbc/decoder/srce/
Ddecoder-sbc.c44 PRIVATE OI_STATUS FindSyncword(OI_CODEC_SBC_DECODER_CONTEXT *context, in FindSyncword() argument
58 if (context->limitFrameFormat && context->enhancedEnabled) { in FindSyncword()
61 } else if (context->enhancedEnabled == FALSE) { in FindSyncword()
73 context->common.frameInfo.enhanced = (**frameData == OI_SBC_ENHANCED_SYNCWORD); in FindSyncword()
83 && (!(context->sbc_mode == OI_SBC_MODE_STD && **frameData == OI_SBC_SYNCWORD)) in FindSyncword()
84 && (!(context->sbc_mode == OI_SBC_MODE_MSBC && **frameData == OI_mSBC_SYNCWORD))) { in FindSyncword()
92 context->common.frameInfo.enhanced = FALSE; in FindSyncword()
103 static OI_STATUS DecodeBody(OI_CODEC_SBC_DECODER_CONTEXT *context, in DecodeBody() argument
110 …OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * context->common.frameInfo.nrof_subb… in DecodeBody()
116 … if (*pcmBytes < (sizeof(OI_INT16) * frameSamples * context->common.pcmStride) && !allowPartial) { in DecodeBody()
[all …]
Dsynthesis-sbc.c242 typedef void (*SYNTH_FRAME)(OI_CODEC_SBC_DECODER_CONTEXT *context, OI_INT16 *pcm, OI_UINT blkstart,…
260 PRIVATE void OI_SBC_SynthFrame_80(OI_CODEC_SBC_DECODER_CONTEXT *context, OI_INT16 *pcm, OI_UINT blk… in OI_SBC_SynthFrame_80() argument
264 OI_UINT nrof_channels = context->common.frameInfo.nrof_channels; in OI_SBC_SynthFrame_80()
265 OI_UINT pcmStrideShift = context->common.pcmStride == 1 ? 0 : 1; in OI_SBC_SynthFrame_80()
266 OI_UINT offset = context->common.filterBufferOffset; in OI_SBC_SynthFrame_80()
267 OI_INT32 *s = context->common.subdata + 8 * nrof_channels * blkstart; in OI_SBC_SynthFrame_80()
272 …_BACKWARD_32BIT_ALIGNED_72_HALFWORDS(context->common.filterBuffer[0] + context->common.filterBuffe… in OI_SBC_SynthFrame_80()
274 …_BACKWARD_32BIT_ALIGNED_72_HALFWORDS(context->common.filterBuffer[1] + context->common.filterBuffe… in OI_SBC_SynthFrame_80()
276 offset = context->common.filterBufferLen - 80; in OI_SBC_SynthFrame_80()
282 DCT2_8(context->common.filterBuffer[ch] + offset, s); in OI_SBC_SynthFrame_80()
[all …]
Ddecoder-oina.c41 OI_STATUS OI_CODEC_SBC_DecoderConfigureRaw(OI_CODEC_SBC_DECODER_CONTEXT *context, in OI_CODEC_SBC_DecoderConfigureRaw() argument
81 context->common.frameInfo.enhanced = enhanced; in OI_CODEC_SBC_DecoderConfigureRaw()
83 context->common.frameInfo.enhanced = FALSE; in OI_CODEC_SBC_DecoderConfigureRaw()
85 context->common.frameInfo.freqIndex = frequency; in OI_CODEC_SBC_DecoderConfigureRaw()
86 context->common.frameInfo.mode = mode; in OI_CODEC_SBC_DecoderConfigureRaw()
87 context->common.frameInfo.subbands = subbands; in OI_CODEC_SBC_DecoderConfigureRaw()
88 context->common.frameInfo.blocks = blocks; in OI_CODEC_SBC_DecoderConfigureRaw()
89 context->common.frameInfo.alloc = alloc; in OI_CODEC_SBC_DecoderConfigureRaw()
90 context->common.frameInfo.bitpool = maxBitpool; in OI_CODEC_SBC_DecoderConfigureRaw()
92 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in OI_CODEC_SBC_DecoderConfigureRaw()
[all …]
Ddecoder-private.c45 INLINE OI_STATUS internal_DecoderReset(OI_CODEC_SBC_DECODER_CONTEXT *context, in internal_DecoderReset() argument
56 for (i = 0; i < sizeof(*context); i++) { in internal_DecoderReset()
57 ((char *)context)[i] = 0; in internal_DecoderReset()
61 context->enhancedEnabled = enhanced ? TRUE : FALSE; in internal_DecoderReset()
63 context->enhancedEnabled = FALSE; in internal_DecoderReset()
70 context->sbc_mode = OI_SBC_MODE_MSBC; in internal_DecoderReset()
72 context->sbc_mode = OI_SBC_MODE_STD; in internal_DecoderReset()
75 …status = OI_CODEC_SBC_Alloc(&context->common, decoderData, decoderDataBytes, maxChannels, pcmStrid… in internal_DecoderReset()
81 context->common.codecInfo = OI_Codec_Copyright; in internal_DecoderReset()
82 context->common.maxBitneed = 0; in internal_DecoderReset()
[all …]
/hal_espressif-3.4.0/components/driver/
Dsdio_slave.c160 .recv_reg_list = TAILQ_HEAD_INITIALIZER(context.recv_reg_list), \
164 static sdio_context_t context = CONTEXT_INIT_VAL; variable
199 context.config = (sdio_slave_config_t) {}; in deinit_context()
201 if (context.events[i] != NULL) { in deinit_context()
202 vSemaphoreDelete(context.events[i]); in deinit_context()
203 context.events[i] = NULL; in deinit_context()
206 if (context.ret_queue != NULL) { in deinit_context()
207 vQueueDelete(context.ret_queue); in deinit_context()
208 context.ret_queue = NULL; in deinit_context()
210 if (context.remain_cnt != NULL) { in deinit_context()
[all …]
Dmcpwm.c64 …ESP_RETURN_ON_FALSE(context[mcpwm_num].hal.dev, ESP_ERR_INVALID_STATE, TAG, MCPWM_DRIVER_INIT_ERRO…
89 static mcpwm_context_t context[SOC_MCPWM_GROUPS] = { variable
116 portENTER_CRITICAL(&context[mcpwm_num].spinlock); in mcpwm_critical_enter()
121 portEXIT_CRITICAL(&context[mcpwm_num].spinlock); in mcpwm_critical_exit()
125 _lock_acquire(&context[mcpwm_num].mutex_lock); in mcpwm_mutex_lock()
129 _lock_release(&context[mcpwm_num].mutex_lock); in mcpwm_mutex_unlock()
190 …mcpwm_ll_timer_set_execute_command(context[mcpwm_num].hal.dev, timer_num, MCPWM_TIMER_START_NO_STO… in mcpwm_start()
200 …mcpwm_ll_timer_set_execute_command(context[mcpwm_num].hal.dev, timer_num, MCPWM_TIMER_STOP_AT_ZERO… in mcpwm_stop()
206 mcpwm_hal_context_t *hal = &context[mcpwm_num].hal; in mcpwm_group_set_resolution()
209 context[mcpwm_num].group_pre_scale = pre_scale_temp; in mcpwm_group_set_resolution()
[all …]
/hal_espressif-3.4.0/components/freertos/test/
Dtest_freertos_scheduling_time.c22 test_context_t *context = (test_context_t *)arg; in test_task_1() local
25 context->before_sched = portGET_RUN_TIME_COUNTER_VALUE(); in test_task_1()
33 test_context_t *context = (test_context_t *)arg; in test_task_2() local
37 vTaskPrioritySet(context->t1_handle, CONFIG_UNITY_FREERTOS_PRIORITY + 1); in test_task_2()
41 accumulator += (portGET_RUN_TIME_COUNTER_VALUE() - context->before_sched); in test_task_2()
45 context->cycles_to_sched = accumulator / NUMBER_OF_ITERATIONS; in test_task_2()
46 vTaskDelete(context->t1_handle); in test_task_2()
47 xSemaphoreGive(context->end_sema); in test_task_2()
53 test_context_t context; variable
55 context.end_sema = xSemaphoreCreateBinary();
[all …]
/hal_espressif-3.4.0/components/esp_rom/linux/
Desp_rom_md5.c40 void esp_rom_md5_init(md5_context_t *context) in esp_rom_md5_init() argument
42 context->buf[0] = 0x67452301; in esp_rom_md5_init()
43 context->buf[1] = 0xefcdab89; in esp_rom_md5_init()
44 context->buf[2] = 0x98badcfe; in esp_rom_md5_init()
45 context->buf[3] = 0x10325476; in esp_rom_md5_init()
47 context->bits[0] = 0; in esp_rom_md5_init()
48 context->bits[1] = 0; in esp_rom_md5_init()
51 void esp_rom_md5_update(md5_context_t *context, const void *buf, uint32_t len) in esp_rom_md5_update() argument
57 t = context->bits[0]; in esp_rom_md5_update()
58 if ((context->bits[0] = t + ((uint32_t) len << 3)) < t) in esp_rom_md5_update()
[all …]
/hal_espressif-3.4.0/components/wpa_supplicant/src/crypto/
Dsha1-internal.c161 void SHAPrintContext(SHA1_CTX *context, char *msg) in SHAPrintContext() argument
165 context->count[0], context->count[1], in SHAPrintContext()
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()
234 void SHA1Init(SHA1_CTX* context) in SHA1Init() argument
237 context->state[0] = 0x67452301; in SHA1Init()
238 context->state[1] = 0xEFCDAB89; in SHA1Init()
[all …]
/hal_espressif-3.4.0/components/driver/test/
Dtest_spi_param.c24 static void local_test_init(void** context);
25 static void local_test_deinit(void* context);
26 static void local_test_loop(const void *test_param, void* context);
44 spitest_context_t* context = (spitest_context_t*)*arg; in local_test_init() local
45 TEST_ASSERT(context!=NULL); in local_test_init()
46 context->slave_context = (spi_slave_task_context_t){}; in local_test_init()
47 esp_err_t err = init_slave_context( &context->slave_context); in local_test_init()
50 …xTaskCreate(spitest_slave_task, "spi_slave", 4096, &context->slave_context, 0, &context->handle_sl… in local_test_init()
55 spitest_context_t* context = arg; in local_test_deinit() local
56 vTaskDelete(context->handle_slave); in local_test_deinit()
[all …]
Dtest_common_spi.c44 esp_err_t init_slave_context(spi_slave_task_context_t *context) in init_slave_context() argument
46 context->data_to_send = xQueueCreate( 16, sizeof( slave_txdata_t )); in init_slave_context()
47 if ( context->data_to_send == NULL ) { in init_slave_context()
50 context->data_received = xRingbufferCreate( 1024, RINGBUF_TYPE_NOSPLIT ); in init_slave_context()
51 if ( context->data_received == NULL ) { in init_slave_context()
54 context->spi=TEST_SLAVE_HOST; in init_slave_context()
58 void deinit_slave_context(spi_slave_task_context_t *context) in deinit_slave_context() argument
60 TEST_ASSERT( context->data_to_send != NULL ); in deinit_slave_context()
61 vQueueDelete( context->data_to_send ); in deinit_slave_context()
62 context->data_to_send = NULL; in deinit_slave_context()
[all …]
Dtest_spi_slave_hd.c147 testhd_context_t* context = (testhd_context_t*)*arg; in test_hd_init() local
148 TEST_ASSERT(context!=NULL); in test_hd_init()
150 context->ev_rdbuf = xSemaphoreCreateBinary(); in test_hd_init()
151 context->ev_wrbuf = xSemaphoreCreateBinary(); in test_hd_init()
156 testhd_context_t *context = arg; in test_hd_deinit() local
157 vSemaphoreDelete(context->ev_rdbuf); in test_hd_deinit()
158 vSemaphoreDelete(context->ev_wrbuf); in test_hd_deinit()
161 esp_err_t wait_wrbuf_sig(testhd_context_t* context, TickType_t wait) in wait_wrbuf_sig() argument
163 BaseType_t r = xSemaphoreTake(context->ev_wrbuf, wait); in wait_wrbuf_sig()
171 esp_err_t wait_rdbuf_sig(testhd_context_t* context, TickType_t wait) in wait_rdbuf_sig() argument
[all …]
/hal_espressif-3.4.0/components/esp_http_server/src/
Dhttpd_sess.c40 …id httpd_sess_enum(struct httpd_data *hd, httpd_session_enum_function enum_function, void *context) in httpd_sess_enum() argument
50 if (enum_function && (!enum_function(current, context))) { in httpd_sess_enum()
63 static int enum_function(struct sock_db *session, void *context) in enum_function() argument
65 if ((!session) || (!context)) { in enum_function()
68 enum_context_t *ctx = (enum_context_t *) context; in enum_function()
153 enum_context_t context = { in httpd_sess_get_free() local
156 httpd_sess_enum(hd, enum_function, &context); in httpd_sess_get_free()
157 return context.session; in httpd_sess_get_free()
177 enum_context_t context = { in httpd_sess_get() local
181 httpd_sess_enum(hd, enum_function, &context); in httpd_sess_get()
[all …]
/hal_espressif-3.4.0/components/cxx/
Dcxx_exception_stubs.cpp14 extern "C" void abort_expect_void(const void *context) in abort_expect_void() argument
19 extern "C" void *abort_expect_void_and_return(const void *context) in abort_expect_void_and_return() argument
25 extern "C" void *forward_abort_uw_ctx(struct _Unwind_Context *context) in forward_abort_uw_ctx() argument
27 return abort_expect_void_and_return((void*) context); in forward_abort_uw_ctx()
90 extern "C" _Unwind_Word __wrap__Unwind_GetGR (struct _Unwind_Context *context, int index) in __wrap__Unwind_GetGR() argument
95 extern "C" _Unwind_Word __wrap__Unwind_GetCFA (struct _Unwind_Context *context) in __wrap__Unwind_GetCFA() argument
100 extern "C" void __wrap__Unwind_SetIP (struct _Unwind_Context *context, _Unwind_Ptr val) in __wrap__Unwind_SetIP() argument
105 extern "C" void __wrap__Unwind_SetGR (struct _Unwind_Context *context, int index, _Unwind_Word val) in __wrap__Unwind_SetGR() argument
110 extern "C" _Unwind_Ptr __wrap__Unwind_GetIPInfo (struct _Unwind_Context *context, int *ip_before_in… in __wrap__Unwind_GetIPInfo() argument
115 extern "C" _Unwind_Ptr __wrap__Unwind_GetIP (struct _Unwind_Context *context)
[all …]
/hal_espressif-3.4.0/examples/protocols/asio/ssl_client_server/main/
Dasio_ssl_main.cpp41 asio::ssl::context &context, in Client() argument
43 : socket_(io_context, context) in Client()
118 Session(tcp::socket socket, asio::ssl::context &context) in Session() argument
119 : socket_(std::move(socket), context) in Session()
174 context_(asio::ssl::context::tls_server) in Server()
177 asio::ssl::context::default_workarounds in Server()
178 | asio::ssl::context::no_sslv2); in Server()
180 context_.use_private_key(privkey, asio::ssl::context::pem); in Server()
199 asio::ssl::context context_;
229 asio::ssl::context ctx(asio::ssl::context::tls_client); in ssl_client_thread()
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/btm/
Dbtm_dev.c252 BOOLEAN btm_find_sec_dev_in_list (void *p_node_data, void *context) in btm_find_sec_dev_in_list() argument
257 tSecDevContext *p_context = (tSecDevContext *)context; in btm_find_sec_dev_in_list()
262 if (!memcmp(p_context->context.p_bd_addr, p_sec_dev->bd_addr, BD_ADDR_LEN)) { in btm_find_sec_dev_in_list()
267 if (p_context->context.handle == p_sec_dev->hci_handle in btm_find_sec_dev_in_list()
269 || (p_context->context.handle == p_sec_dev->ble_hci_handle) in btm_find_sec_dev_in_list()
277 if (!memcmp(p_context->context.p_bd_addr, p_sec_dev->ble.static_addr, BD_ADDR_LEN)) { in btm_find_sec_dev_in_list()
283 if (!memcmp(p_context->context.p_bd_addr, p_sec_dev->bd_addr, BD_ADDR_LEN)) { in btm_find_sec_dev_in_list()
288 if (!memcmp(p_sec_dev->ble.pseudo_addr, p_context->context.p_bd_addr, BD_ADDR_LEN)) { in btm_find_sec_dev_in_list()
292 if (btm_ble_addr_resolvable(p_context->context.p_bd_addr, p_sec_dev)) { in btm_find_sec_dev_in_list()
516 tSecDevContext context; in btm_find_dev_by_handle() local
[all …]
/hal_espressif-3.4.0/docs/en/api-reference/protocols/
Dopenssl_apis.rst35 SSLV3.0 version SSL context client method point
39 create the target SSL context method
58 TLSV1.0 version SSL context client method point
62 create the target SSL context method
81 TLSV1.1 version SSL context client method point
85 create the target SSL context method
104 TLSV1.2 version SSL context client method point
108 create the target SSL context method
127 TLSV1.2 version SSL context client method point
131 create the default SSL context method, it's always to be TLSV1.2
[all …]
/hal_espressif-3.4.0/components/driver/test/param_test/
Dparam_test.c15 void *context = NULL; in test_serializer() local
16 test_func->pre_test(&context); in test_serializer()
21 test_func->loop(pset, context); in test_serializer()
25 test_func->post_test(context); in test_serializer()
26 free(context); in test_serializer()
27 context = NULL; in test_serializer()
/hal_espressif-3.4.0/components/esp_hw_support/port/esp32s2/
Desp_ds.c73 esp_ds_context_t *context; in esp_ds_sign() local
74 esp_err_t result = esp_ds_start_sign(message, data, key_id, &context); in esp_ds_sign()
80 return esp_ds_finish_sign(signature, context); in esp_ds_sign()
107 esp_ds_context_t *context = malloc(sizeof(esp_ds_context_t)); in esp_ds_start_sign() local
108 if (!context) { in esp_ds_start_sign()
124 free(context); in esp_ds_start_sign()
128 context->data = ds_data; in esp_ds_start_sign()
129 *esp_ds_ctx = context; in esp_ds_start_sign()
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/include/stack/
Dl2cap_client.h31 void (*connected)(l2cap_client_t *client, void *context);
32 void (*disconnected)(l2cap_client_t *client, void *context);
33 void (*read_ready)(l2cap_client_t *client, buffer_t *packet, void *context);
34 void (*write_ready)(l2cap_client_t *client, void *context);
48 l2cap_client_t *l2cap_client_new(const l2cap_client_callbacks_t *callbacks, void *context);
/hal_espressif-3.4.0/components/esp_hw_support/port/esp32c3/
Desp_ds.c81 esp_ds_context_t *context; in esp_ds_sign() local
82 esp_err_t result = esp_ds_start_sign(message, data, key_id, &context); in esp_ds_sign()
90 return esp_ds_finish_sign(signature, context); in esp_ds_sign()
132 esp_ds_context_t *context = malloc(sizeof(esp_ds_context_t)); in esp_ds_start_sign() local
133 if (!context) { in esp_ds_start_sign()
146 context->data = data; in esp_ds_start_sign()
147 *esp_ds_ctx = context; in esp_ds_start_sign()
/hal_espressif-3.4.0/components/esp_hw_support/port/esp32h2/
Desp_ds.c81 esp_ds_context_t *context; in esp_ds_sign() local
82 esp_err_t result = esp_ds_start_sign(message, data, key_id, &context); in esp_ds_sign()
90 return esp_ds_finish_sign(signature, context); in esp_ds_sign()
132 esp_ds_context_t *context = malloc(sizeof(esp_ds_context_t)); in esp_ds_start_sign() local
133 if (!context) { in esp_ds_start_sign()
146 context->data = data; in esp_ds_start_sign()
147 *esp_ds_ctx = context; in esp_ds_start_sign()
/hal_espressif-3.4.0/components/esp_hw_support/port/esp32s3/
Desp_ds.c83 esp_ds_context_t *context; in esp_ds_sign() local
84 esp_err_t result = esp_ds_start_sign(message, data, key_id, &context); in esp_ds_sign()
93 return esp_ds_finish_sign(signature, context); in esp_ds_sign()
136 esp_ds_context_t *context = malloc(sizeof(esp_ds_context_t)); in esp_ds_start_sign() local
137 if (!context) { in esp_ds_start_sign()
150 context->data = data; in esp_ds_start_sign()
151 *esp_ds_ctx = context; in esp_ds_start_sign()
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/l2cap/
Dl2cap_client.c32 void *context; member
83 l2cap_client_t *l2cap_client_new(const l2cap_client_callbacks_t *callbacks, void *context) in l2cap_client_new() argument
106 ret->context = context; in l2cap_client_new()
212 client->callbacks.disconnected(client, client->context); in connect_completed_cb()
220 client->callbacks.disconnected(client, client->context); in connect_completed_cb()
266 client->callbacks.connected(client, client->context); in config_request_cb()
294 client->callbacks.connected(client, client->context); in config_completed_cb()
322 client->callbacks.disconnected(client, client->context); in disconnect_request_cb()
338 client->callbacks.disconnected(client, client->context); in disconnect_completed_cb()
359 client->callbacks.write_ready(client, client->context); in congestion_cb()
[all …]
/hal_espressif-3.4.0/components/bootloader/subproject/components/micro-ecc/micro-ecc/test/
Dtest_ecdsa_deterministic.c.example27 SHA256_HashContext *context = (SHA256_HashContext *)base;
28 SHA256_Init(&context->ctx);
34 SHA256_HashContext *context = (SHA256_HashContext *)base;
35 SHA256_Update(&context->ctx, message, message_size);
39 SHA256_HashContext *context = (SHA256_HashContext *)base;
40 SHA256_Final(hash_result, &context->ctx);

1234567