Home
last modified time | relevance | path

Searched refs:frame (Results 1 – 25 of 41) sorted by relevance

12

/hal_espressif-3.7.0/components/esp_hw_support/
Dsleep_cpu.c302 …void *frame = heap_caps_malloc(sizeof(cpu_domain_dev_sleep_frame_t) + region_sz + regs_frame_sz, M… in cpu_domain_dev_sleep_frame_alloc_and_init() local
303 if (frame) { in cpu_domain_dev_sleep_frame_alloc_and_init()
304 …cpu_domain_dev_regs_region_t *region = (cpu_domain_dev_regs_region_t *)(frame + sizeof(cpu_domain_… in cpu_domain_dev_sleep_frame_alloc_and_init()
306 void *regs_frame = frame + sizeof(cpu_domain_dev_sleep_frame_t) + region_sz; in cpu_domain_dev_sleep_frame_alloc_and_init()
308 *(cpu_domain_dev_sleep_frame_t *)frame = (cpu_domain_dev_sleep_frame_t) { in cpu_domain_dev_sleep_frame_alloc_and_init()
314 return frame; in cpu_domain_dev_sleep_frame_alloc_and_init()
363 void *frame = heap_caps_calloc(1, RV_SLEEP_CTX_FRMSZ, MALLOC_CAP_32BIT|MALLOC_CAP_INTERNAL); in esp_sleep_cpu_retention_init_impl() local
364 if (frame == NULL) { in esp_sleep_cpu_retention_init_impl()
367 s_cpu_retention.retent.critical_frame = (RvCoreCriticalSleepFrame *)frame; in esp_sleep_cpu_retention_init_impl()
368 rv_core_critical_regs_frame = (RvCoreCriticalSleepFrame *)frame; in esp_sleep_cpu_retention_init_impl()
[all …]
/hal_espressif-3.7.0/components/bt/host/bluedroid/external/sbc/decoder/srce/
Ddecoder-private.c97 OI_CODEC_SBC_FRAME_INFO *frame = &common->frameInfo; in OI_SBC_ReadHeader() local
108 frame->freqIndex = 0; in OI_SBC_ReadHeader()
109 frame->frequency = 16000; in OI_SBC_ReadHeader()
111 frame->blocks = 4; in OI_SBC_ReadHeader()
112 frame->nrof_blocks = 15; in OI_SBC_ReadHeader()
114 frame->mode = 0; in OI_SBC_ReadHeader()
115 frame->nrof_channels = 1; in OI_SBC_ReadHeader()
117 frame->alloc = SBC_LOUDNESS; in OI_SBC_ReadHeader()
119 frame->subbands = 1; in OI_SBC_ReadHeader()
120 frame->nrof_subbands = 8; in OI_SBC_ReadHeader()
[all …]
Dframing.c170 PRIVATE OI_UINT8 OI_SBC_CalculateChecksum(OI_CODEC_SBC_FRAME_INFO *frame, OI_BYTE const *data) in OI_SBC_CalculateChecksum() argument
179 OI_UINT count = (frame->nrof_subbands * frame->nrof_channels / 2u) + 4; in OI_SBC_CalculateChecksum()
181 if (frame->mode == SBC_JOINT_STEREO && frame->nrof_subbands == 8) { in OI_SBC_CalculateChecksum()
191 if (frame->mode == SBC_JOINT_STEREO && frame->nrof_subbands == 4) { in OI_SBC_CalculateChecksum()
198 void OI_SBC_ExpandFrameFields(OI_CODEC_SBC_FRAME_INFO *frame) in OI_SBC_ExpandFrameFields() argument
200 frame->nrof_blocks = block_values[frame->blocks]; in OI_SBC_ExpandFrameFields()
201 frame->nrof_subbands = band_values[frame->subbands]; in OI_SBC_ExpandFrameFields()
203 frame->frequency = freq_values[frame->freqIndex]; in OI_SBC_ExpandFrameFields()
204 frame->nrof_channels = channel_values[frame->mode]; in OI_SBC_ExpandFrameFields()
Dbitalloc.c45 OI_UINT32 OI_SBC_MaxBitpool(OI_CODEC_SBC_FRAME_INFO *frame) in OI_SBC_MaxBitpool() argument
47 switch (frame->mode) { in OI_SBC_MaxBitpool()
50 return 16 * frame->nrof_subbands; in OI_SBC_MaxBitpool()
53 return 32 * frame->nrof_subbands; in OI_SBC_MaxBitpool()
56 ERROR(("Invalid frame mode %d", frame->mode)); in OI_SBC_MaxBitpool()
62 PRIVATE OI_UINT16 internal_CalculateFramelen(OI_CODEC_SBC_FRAME_INFO *frame) in internal_CalculateFramelen() argument
64 OI_UINT16 nbits = frame->nrof_blocks * frame->bitpool; in internal_CalculateFramelen()
65 OI_UINT16 nrof_subbands = frame->nrof_subbands; in internal_CalculateFramelen()
68 if (frame->mode == SBC_JOINT_STEREO) { in internal_CalculateFramelen()
71 if (frame->mode == SBC_DUAL_CHANNEL) { in internal_CalculateFramelen()
[all …]
Dbitalloc-sbc.c113 OI_UINT32 OI_CODEC_SBC_CalculateBitrate(OI_CODEC_SBC_FRAME_INFO *frame) in OI_CODEC_SBC_CalculateBitrate() argument
115 return internal_CalculateBitrate(frame); in OI_CODEC_SBC_CalculateBitrate()
132 OI_UINT16 OI_CODEC_SBC_CalculateBitpool(OI_CODEC_SBC_FRAME_INFO *frame, in OI_CODEC_SBC_CalculateBitpool() argument
135 OI_UINT16 nrof_subbands = frame->nrof_subbands; in OI_CODEC_SBC_CalculateBitpool()
136 OI_UINT16 nrof_blocks = frame->nrof_blocks; in OI_CODEC_SBC_CalculateBitpool()
140 if (frame->mode == SBC_JOINT_STEREO) { in OI_CODEC_SBC_CalculateBitpool()
143 if (frame->mode == SBC_MONO) { in OI_CODEC_SBC_CalculateBitpool()
148 if (frame->mode == SBC_DUAL_CHANNEL) { in OI_CODEC_SBC_CalculateBitpool()
162 OI_UINT16 OI_CODEC_SBC_CalculateFramelen(OI_CODEC_SBC_FRAME_INFO *frame) in OI_CODEC_SBC_CalculateFramelen() argument
164 return internal_CalculateFramelen(frame); in OI_CODEC_SBC_CalculateFramelen()
/hal_espressif-3.7.0/components/esp_system/port/
Dpanic_handler.c101 static void frame_to_panic_info(void *frame, panic_info_t *info, bool pseudo_excause) argument
110 panic_soc_fill_info(frame, info);
112 panic_arch_fill_info(frame, info);
116 info->frame = frame;
119 static void panic_handler(void *frame, bool pseudo_excause) argument
130 g_exc_frames[core_id] = frame;
138 BUSY_WAIT_IF_TRUE(panic_get_cause(frame) == PANIC_RSN_INTWDT_CPU0 && core_id == 1);
139 BUSY_WAIT_IF_TRUE(panic_get_cause(frame) == PANIC_RSN_INTWDT_CPU1 && core_id == 0);
142 if (panic_get_cause(frame) == PANIC_RSN_CACHEERR && core_id != esp_cache_err_get_cpuid()) {
167 …!(esp_ptr_executable(esp_cpu_pc_to_addr(panic_get_address(frame))) && (panic_get_address(frame) & …
[all …]
/hal_espressif-3.7.0/components/esp_system/include/esp_private/
Dpanic_internal.h29 typedef void (*panic_info_dump_fn_t)(const void* frame);
51 const void* frame; // reference to the frame member
55 #define PANIC_INFO_DUMP(info, dump_fn) {if ((info)->dump_fn) (*(info)->dump_fn)((info->frame))…
73 void panic_arch_fill_info(void *frame, panic_info_t *info);
75 void panic_soc_fill_info(void *frame, panic_info_t *info);
77 void panic_print_registers(const void *frame, int core);
79 void panic_print_backtrace(const void *frame, int core);
81 uint32_t panic_get_address(const void* frame);
83 void panic_set_address(void *frame, uint32_t addr);
85 uint32_t panic_get_cause(const void* frame);
/hal_espressif-3.7.0/components/esp_system/port/arch/xtensa/
Ddebug_helpers.c24 bool IRAM_ATTR esp_backtrace_get_next_frame(esp_backtrace_frame_t *frame) in esp_backtrace_get_next_frame() argument
27 void *base_save = (void *)frame->sp; //Base save area consists of 4 words under SP in esp_backtrace_get_next_frame()
28 frame->pc = frame->next_pc; in esp_backtrace_get_next_frame()
29frame->next_pc = *((uint32_t *)(base_save - 16)); //If next_pc = 0, indicates frame(i-1) is th… in esp_backtrace_get_next_frame()
30 frame->sp = *((uint32_t *)(base_save - 12)); in esp_backtrace_get_next_frame()
33 …return (esp_stack_ptr_is_sane(frame->sp) && esp_ptr_executable((void*)esp_cpu_process_stack_pc(fra… in esp_backtrace_get_next_frame()
57 esp_err_t IRAM_ATTR esp_backtrace_print_from_frame(int depth, const esp_backtrace_frame_t* frame, b… in esp_backtrace_print_from_frame() argument
66 memcpy(&stk_frame, frame, sizeof(esp_backtrace_frame_t)); in esp_backtrace_print_from_frame()
Dpanic_arch.c36 XtExcFrame *frame = (XtExcFrame *) f; in panic_print_registers() local
37 int *regs = (int *)frame; in panic_print_registers()
68 && ((core == 0 && frame->exccause == PANIC_RSN_INTWDT_CPU0) || in panic_print_registers()
69 (core == 1 && frame->exccause == PANIC_RSN_INTWDT_CPU1)) in panic_print_registers()
100 XtExcFrame *frame = (XtExcFrame *) f; in print_illegal_instruction_details() local
102 uint32_t epc = frame->pc; in print_illegal_instruction_details()
366 XtExcFrame *frame = (XtExcFrame *) f; in panic_arch_fill_info() local
380 if (frame->exccause < (sizeof(reason) / sizeof(char *))) { in panic_arch_fill_info()
381 info->reason = (reason[frame->exccause]); in panic_arch_fill_info()
388 if (frame->exccause == EXCCAUSE_ILLEGAL) { in panic_arch_fill_info()
[all …]
/hal_espressif-3.7.0/components/esp_system/port/include/riscv/
Deh_frame_parser_impl.h43 #define EXECUTION_FRAME_PC(frame) ((frame).mepc) argument
48 #define EXECUTION_FRAME_SP(frame) ((frame).sp) argument
58 #define EXECUTION_FRAME_REG(frame, i) (((uint32_t*) (frame))[(i)]) argument
/hal_espressif-3.7.0/components/wpa_supplicant/test/
Dtest_dpp.c37 const u8 *frame; variable
121 frame = auth;
122 frame += 26;
125 dpp_bootstrap_get_id(dpp, id), 2412, frame, frame+6, len-6);
139 frame = wpabuf_head_u8(auth_instance->resp_msg);
142 TEST_ASSERT(memcmp(frame + 28, tmp + 26, len - 26) == 0);
156 frame = auth;
157 frame = auth + 26;
159 dpp_auth_conf_rx(auth_instance, frame, frame+6, len-6);
/hal_espressif-3.7.0/components/esp_system/port/arch/riscv/
Dpanic_arch.c74 static inline void print_cache_err_details(const void *frame) in print_cache_err_details() argument
168 static inline void print_memprot_err_details(const void *frame __attribute__((unused))) in print_memprot_err_details() argument
258 RvExcFrame *frame = (RvExcFrame *) f; in panic_soc_fill_info() local
274 info->addr = (void *) frame->mepc; in panic_soc_fill_info()
279 if (frame->mcause == ETS_CACHEERR_INUM) { in panic_soc_fill_info()
289 } else if (frame->mcause == ETS_INT_WDT_INUM) { in panic_soc_fill_info()
304 else if (frame->mcause == ETS_MEMPROT_ERR_INUM) { in panic_soc_fill_info()
312 void panic_arch_fill_info(void *frame, panic_info_t *info) in panic_arch_fill_info() argument
314 RvExcFrame *regs = (RvExcFrame *) frame; in panic_arch_fill_info()
349 static void panic_print_basic_backtrace(const void *frame, int core) in panic_print_basic_backtrace() argument
[all …]
/hal_espressif-3.7.0/components/esp_system/
Deh_frame_parser.c590 const ExecutionFrame* frame, dwarf_regs* state) in esp_eh_frame_execute() argument
636 if (state->location >= EXECUTION_FRAME_PC(*frame)) in esp_eh_frame_execute()
653 static uint32_t esp_eh_frame_initialize_state(const uint8_t* cie, ExecutionFrame* frame, dwarf_regs… in esp_eh_frame_initialize_state() argument
711 esp_eh_frame_execute(cie_data, instructions_length, frame, state); in esp_eh_frame_initialize_state()
727 ExecutionFrame* frame, in esp_eh_frame_restore_caller_state() argument
749 assert(initial_location <= EXECUTION_FRAME_PC(*frame) && in esp_eh_frame_restore_caller_state()
750 EXECUTION_FRAME_PC(*frame) < initial_location + range_length); in esp_eh_frame_restore_caller_state()
756 const uint32_t ra_reg = esp_eh_frame_initialize_state(cie, frame, state); in esp_eh_frame_restore_caller_state()
763 bool success = esp_eh_frame_execute(instructions, instructions_length, frame, state); in esp_eh_frame_restore_caller_state()
767 return EXECUTION_FRAME_PC(*frame); in esp_eh_frame_restore_caller_state()
[all …]
/hal_espressif-3.7.0/components/wpa_supplicant/esp_supplicant/src/
Desp_scan.c116 int esp_handle_beacon_probe(u8 type, u8 *frame, size_t len, u8 *sender, in esp_handle_beacon_probe() argument
138 res->tsf = WPA_GET_LE64(frame); in esp_handle_beacon_probe()
139 frame += 8; in esp_handle_beacon_probe()
148 res->beacon_int = WPA_GET_LE16(frame); in esp_handle_beacon_probe()
150 frame += 2; in esp_handle_beacon_probe()
152 res->caps = WPA_GET_LE16(frame); in esp_handle_beacon_probe()
153 frame += 2; in esp_handle_beacon_probe()
166 os_memcpy(ptr, frame, len); in esp_handle_beacon_probe()
Desp_common.c48 static int handle_action_frm(u8 *frame, size_t len, in handle_action_frm() argument
63 os_memcpy(frm->payload, frame, len); in handle_action_frm()
91 static int mgmt_rx_action(u8 *frame, size_t len, u8 *sender, u32 rssi, u8 channel) in mgmt_rx_action() argument
103 category = *frame++; in mgmt_rx_action()
106 ieee802_11_rx_wnm_action(wpa_s, sender, frame, len); in mgmt_rx_action()
108 handle_rrm_frame(wpa_s, sender, frame, len, rssi); in mgmt_rx_action()
216 static int handle_auth_frame(u8 *frame, size_t len, in handle_auth_frame() argument
221 if (wpa_ft_process_response(&gWpaSm, frame + 6, in handle_auth_frame()
231 static int handle_assoc_frame(u8 *frame, size_t len, in handle_assoc_frame() argument
236 if (wpa_ft_validate_reassoc_resp(&gWpaSm, frame + 6, len - 6, sender)) { in handle_assoc_frame()
[all …]
Desp_scan_i.h21 int esp_handle_beacon_probe(u8 type, u8 *frame, size_t len, u8 *sender,
/hal_espressif-3.7.0/components/bt/host/bluedroid/external/sbc/decoder/include/
Doi_codec_sbc_private.h153 PRIVATE OI_UINT32 internal_CalculateBitrate(OI_CODEC_SBC_FRAME_INFO *frame);
155 PRIVATE OI_UINT16 internal_CalculateFramelen(OI_CODEC_SBC_FRAME_INFO *frame);
176 OI_UINT16 OI_SBC_CalculateFrameAndHeaderlen(OI_CODEC_SBC_FRAME_INFO *frame, OI_UINT *headerLen_);
178 PRIVATE OI_UINT32 OI_SBC_MaxBitpool(OI_CODEC_SBC_FRAME_INFO *frame);
180 PRIVATE void OI_SBC_ComputeBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *frame);
181 PRIVATE OI_UINT8 OI_SBC_CalculateChecksum(OI_CODEC_SBC_FRAME_INFO *frame, OI_BYTE const *data);
219 PRIVATE void OI_SBC_ExpandFrameFields(OI_CODEC_SBC_FRAME_INFO *frame);
Doi_codec_sbc.h410 OI_UINT16 OI_CODEC_SBC_CalculateFramelen(OI_CODEC_SBC_FRAME_INFO *frame);
421 OI_UINT16 OI_CODEC_SBC_CalculateBitpool(OI_CODEC_SBC_FRAME_INFO *frame,
432 OI_UINT32 OI_CODEC_SBC_CalculateBitrate(OI_CODEC_SBC_FRAME_INFO *frame);
/hal_espressif-3.7.0/components/wpa_supplicant/src/crypto/
Dccmp.h15 u8 * ccmp_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen,
18 const u8 *frame, size_t len,
24 u8 * ccmp_256_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen,
Dccmp.c191 u8 * ccmp_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen, in ccmp_encrypt() argument
207 os_memcpy(crypt, frame, hdrlen); in ccmp_encrypt()
225 if (aes_ccm_ae(tk, 16, nonce, 8, frame + hdrlen, plen, aad, aad_len, in ccmp_encrypt()
241 const u8 *frame, size_t len, in ccmp_encrypt_pv1() argument
258 os_memcpy(crypt, frame, hdrlen); in ccmp_encrypt_pv1()
268 if (aes_ccm_ae(tk, 16, nonce, 8, frame + hdrlen, plen, aad, aad_len, in ccmp_encrypt_pv1()
317 u8 * ccmp_256_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen, in ccmp_256_encrypt() argument
333 os_memcpy(crypt, frame, hdrlen); in ccmp_256_encrypt()
351 if (aes_ccm_ae(tk, 32, nonce, 16, frame + hdrlen, plen, aad, aad_len, in ccmp_256_encrypt()
/hal_espressif-3.7.0/components/hal/include/hal/
Dtwai_hal.h238 static inline void twai_hal_format_frame(const twai_message_t *message, twai_hal_frame_t *frame) in twai_hal_format_frame() argument
242 message->flags, frame); in twai_hal_format_frame()
254 static inline void twai_hal_parse_frame(twai_hal_frame_t *frame, twai_message_t *message) in twai_hal_parse_frame() argument
257 twai_ll_parse_frame_buffer(frame, &message->identifier, &message->data_length_code, in twai_hal_parse_frame()
/hal_espressif-3.7.0/components/esp_system/test_eh_frame_parser/
Deh_frame_parser_impl.h81 #define EXECUTION_FRAME_REG(frame, i) ((frame)->registers[(i)]) argument
/hal_espressif-3.7.0/components/esp_system/include/
Desp_debug_helpers.h81 bool esp_backtrace_get_next_frame(esp_backtrace_frame_t *frame);
99 esp_err_t esp_backtrace_print_from_frame(int depth, const esp_backtrace_frame_t* frame, bool panic);
/hal_espressif-3.7.0/components/wpa_supplicant/src/common/
Drrm.h21 const u8 *frame, size_t len);
24 const u8 *frame, size_t len,
/hal_espressif-3.7.0/components/esp_system/task_wdt/
Dtask_wdt.c34 extern void panic_print_registers(const void *frame, int core);
39 extern void xt_unhandled_exception(void *frame);
361 void *frame = (void *) snapshot.pxTopOfStack; in task_wdt_timeout_handling() local
365 xt_unhandled_exception(frame); in task_wdt_timeout_handling()
379 void *frame = (void *) snapshot.pxTopOfStack; in task_wdt_timeout_handling() local
382 esp_eh_frame_print_backtrace(frame); in task_wdt_timeout_handling()
385 panic_print_registers(frame, current_core); in task_wdt_timeout_handling()
422 void *frame = (void *) snapshot.pxTopOfStack; in task_wdt_timeout_abort_xtensa() local
428 xt_unhandled_exception(frame); in task_wdt_timeout_abort_xtensa()

12