Home
last modified time | relevance | path

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

12345

/hal_espressif-2.7.6/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 …]
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 …]
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-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-2.7.6/components/driver/
Dsdio_slave.c169 .recv_reg_list = TAILQ_HEAD_INITIALIZER(context.recv_reg_list), \
173 static sdio_context_t context = CONTEXT_INIT_VAL; variable
208 context.config = (sdio_slave_config_t){}; in deinit_context()
210 if (context.events[i] != NULL) { in deinit_context()
211 vSemaphoreDelete(context.events[i]); in deinit_context()
212 context.events[i] = NULL; in deinit_context()
215 if (context.ret_queue != NULL) { in deinit_context()
216 vQueueDelete(context.ret_queue); in deinit_context()
217 context.ret_queue = NULL; in deinit_context()
219 if (context.remain_cnt != NULL) vSemaphoreDelete(context.remain_cnt); in deinit_context()
[all …]
Dmcpwm.c77 … MCPWM_CHECK(context[mcpwm_num].hal.dev != NULL, MCPWM_DRIVER_INIT_ERROR, ESP_ERR_INVALID_STATE); \
86 static mcpwm_context_t context[SOC_MCPWM_PERIPH_NUM] = { variable
94 portENTER_CRITICAL(&context[mcpwm_num].spinlock); in mcpwm_critical_enter()
99 portEXIT_CRITICAL(&context[mcpwm_num].spinlock); in mcpwm_critical_exit()
166 mcpwm_hal_timer_start(&context[mcpwm_num].hal, timer_num); in mcpwm_start()
176 mcpwm_hal_timer_stop(&context[mcpwm_num].hal, timer_num); in mcpwm_stop()
186 mcpwm_hal_context_t *hal = &context[mcpwm_num].hal; in mcpwm_set_frequency()
204 mcpwm_hal_context_t *hal = &context[mcpwm_num].hal; in mcpwm_set_duty()
220 mcpwm_hal_context_t *hal = &context[mcpwm_num].hal; in mcpwm_set_duty_in_us()
236 mcpwm_hal_context_t *hal = &context[mcpwm_num].hal; in mcpwm_set_duty_type()
[all …]
/hal_espressif-2.7.6/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-2.7.6/components/wpa_supplicant/src/crypto/
Dsha1-internal.c211 void SHAPrintContext(SHA1_CTX *context, char *msg) in SHAPrintContext() argument
215 context->count[0], context->count[1], in SHAPrintContext()
216 context->state[0], in SHAPrintContext()
217 context->state[1], in SHAPrintContext()
218 context->state[2], in SHAPrintContext()
219 context->state[3], in SHAPrintContext()
220 context->state[4]); in SHAPrintContext()
286 SHA1Init(SHA1_CTX* context) in SHA1Init() argument
289 context->state[0] = 0x67452301; in SHA1Init()
290 context->state[1] = 0xEFCDAB89; in SHA1Init()
[all …]
Dmd5_i.h24 void MD5Init(struct MD5Context *context);
25 void MD5Update(struct MD5Context *context, unsigned char const *buf,
27 void MD5Final(unsigned char digest[16], struct MD5Context *context);
Dsha1_i.h24 void SHA1Init(struct SHA1Context *context);
25 void SHA1Update(struct SHA1Context *context, const void *data, u32 len);
26 void SHA1Final(unsigned char digest[20], struct SHA1Context *context);
/hal_espressif-2.7.6/components/driver/test/
Dtest_common_spi.c39 esp_err_t init_slave_context(spi_slave_task_context_t *context) in init_slave_context() argument
41 context->data_to_send = xQueueCreate( 16, sizeof( slave_txdata_t )); in init_slave_context()
42 if ( context->data_to_send == NULL ) { in init_slave_context()
45 context->data_received = xRingbufferCreate( 1024, RINGBUF_TYPE_NOSPLIT ); in init_slave_context()
46 if ( context->data_received == NULL ) { in init_slave_context()
49 context->spi=TEST_SLAVE_HOST; in init_slave_context()
53 void deinit_slave_context(spi_slave_task_context_t *context) in deinit_slave_context() argument
55 TEST_ASSERT( context->data_to_send != NULL ); in deinit_slave_context()
56 vQueueDelete( context->data_to_send ); in deinit_slave_context()
57 context->data_to_send = NULL; in deinit_slave_context()
[all …]
Dtest_spi_param.c19 static void local_test_init(void** context);
20 static void local_test_deinit(void* context);
21 static void local_test_loop(const void *test_param, void* context);
39 spitest_context_t* context = (spitest_context_t*)*arg; in local_test_init() local
40 TEST_ASSERT(context!=NULL); in local_test_init()
41 context->slave_context = (spi_slave_task_context_t){}; in local_test_init()
42 esp_err_t err = init_slave_context( &context->slave_context); in local_test_init()
45 …xTaskCreate(spitest_slave_task, "spi_slave", 4096, &context->slave_context, 0, &context->handle_sl… in local_test_init()
50 spitest_context_t* context = arg; in local_test_deinit() local
51 vTaskDelete(context->handle_slave); in local_test_deinit()
[all …]
Dtest_spi_slave_hd.c142 testhd_context_t* context = (testhd_context_t*)*arg; in test_hd_init() local
143 TEST_ASSERT(context!=NULL); in test_hd_init()
145 context->ev_rdbuf = xSemaphoreCreateBinary(); in test_hd_init()
146 context->ev_wrbuf = xSemaphoreCreateBinary(); in test_hd_init()
151 testhd_context_t *context = arg; in test_hd_deinit() local
152 vSemaphoreDelete(context->ev_rdbuf); in test_hd_deinit()
153 vSemaphoreDelete(context->ev_wrbuf); in test_hd_deinit()
156 esp_err_t wait_wrbuf_sig(testhd_context_t* context, TickType_t wait) in wait_wrbuf_sig() argument
158 BaseType_t r = xSemaphoreTake(context->ev_wrbuf, wait); in wait_wrbuf_sig()
166 esp_err_t wait_rdbuf_sig(testhd_context_t* context, TickType_t wait) in wait_rdbuf_sig() argument
[all …]
/hal_espressif-2.7.6/components/driver/test/param_test/
Dparam_test.c10 void *context = NULL; in test_serializer() local
11 test_func->pre_test(&context); in test_serializer()
16 test_func->loop(pset, context); in test_serializer()
20 test_func->post_test(context); in test_serializer()
21 free(context); in test_serializer()
22 context = NULL; in test_serializer()
/hal_espressif-2.7.6/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-2.7.6/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()
481 tSecDevContext context; in btm_find_dev_by_handle() local
[all …]
/hal_espressif-2.7.6/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-2.7.6/components/openssl/
DOpenSSL-APIs.rst31 SSLV3.0 version SSL context client method point
35 create the target SSL context method
54 TLSV1.0 version SSL context client method point
58 create the target SSL context method
77 TLSV1.1 version SSL context client method point
81 create the target SSL context method
100 TLSV1.2 version SSL context client method point
104 create the target SSL context method
123 TLSV1.2 version SSL context client method point
127 create the default SSL context method, it's always to be TLSV1.2
[all …]
/hal_espressif-2.7.6/components/esp32s2/
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()
88 return esp_ds_finish_sign(signature, context); in esp_ds_sign()
115 esp_ds_context_t *context = malloc(sizeof(esp_ds_context_t)); in esp_ds_start_sign() local
116 if (!context) { in esp_ds_start_sign()
135 context->data = ds_data; in esp_ds_start_sign()
136 *esp_ds_ctx = context; in esp_ds_start_sign()
/hal_espressif-2.7.6/components/esp32c3/
Desp_ds.c88 esp_ds_context_t *context; in esp_ds_sign() local
89 esp_err_t result = esp_ds_start_sign(message, data, key_id, &context); in esp_ds_sign()
97 return esp_ds_finish_sign(signature, context); in esp_ds_sign()
137 esp_ds_context_t *context = malloc(sizeof(esp_ds_context_t)); in esp_ds_start_sign() local
138 if (!context) { in esp_ds_start_sign()
151 context->data = data; in esp_ds_start_sign()
152 *esp_ds_ctx = context; in esp_ds_start_sign()
/hal_espressif-2.7.6/components/esp_rom/include/esp32s3/rom/
Dmd5_hash.h29 void MD5Init(struct MD5Context *context);
30 void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len);
31 void MD5Final(unsigned char digest[16], struct MD5Context *context);
/hal_espressif-2.7.6/components/esp_rom/include/esp32/rom/
Dmd5_hash.h30 void MD5Init(struct MD5Context *context);
31 void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len);
32 void MD5Final(unsigned char digest[16], struct MD5Context *context);
/hal_espressif-2.7.6/components/esp_rom/include/esp32c3/rom/
Dmd5_hash.h30 void MD5Init(struct MD5Context *context);
31 void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len);
32 void MD5Final(unsigned char digest[16], struct MD5Context *context);
/hal_espressif-2.7.6/components/esp_rom/include/esp32s2/rom/
Dmd5_hash.h30 void MD5Init(struct MD5Context *context);
31 void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len);
32 void MD5Final(unsigned char digest[16], struct MD5Context *context);
/hal_espressif-2.7.6/components/esp_rom/include/
Desp_rom_md5.h42 void esp_rom_md5_init(md5_context_t *context);
51 void esp_rom_md5_update(md5_context_t *context, const uint8_t *buf, uint32_t len);
59 void esp_rom_md5_final(uint8_t digest[16], md5_context_t *context);

12345