/hal_espressif-latest/components/xtensa/include/xtensa/ |
D | xtensa-libdb-macros.h | 63 #define XTENSA_DBREGN_A(n) (0x0000+(n)) /* address registers a0..a15 */ argument 64 #define XTENSA_DBREGN_B(n) (0x0010+(n)) /* boolean bits b0..b15 */ argument 67 #define XTENSA_DBREGN_BO(n) (0x0022+(n)) /* boolean octuple-bits bo0..bo1 */ argument 68 #define XTENSA_DBREGN_BQ(n) (0x0024+(n)) /* boolean quadruple-bits bq0..bq3 */ argument 69 #define XTENSA_DBREGN_BD(n) (0x0028+(n)) /* boolean double-bits bd0..bd7 */ argument 70 #define XTENSA_DBREGN_F(n) (0x0030+(n)) /* floating point registers f0..f15 */ argument 71 #define XTENSA_DBREGN_VEC(n) (0x0040+(n)) /* Vectra vec regs v0..v15 */ argument 72 #define XTENSA_DBREGN_VSEL(n) (0x0050+(n)) /* Vectra sel s0..s3 (V1) ..s7 (V2) */ argument 73 #define XTENSA_DBREGN_VALIGN(n) (0x0058+(n)) /* Vectra valign regs u0..u3 */ argument 74 #define XTENSA_DBREGN_VCOEFF(n) (0x005C+(n)) /* Vectra I vcoeff regs c0..c1 */ argument [all …]
|
D | corebits.h | 78 #define EXCCAUSE_CP_DISABLED(n) (32+(n)) /* Access to Coprocessor 'n' when disabled */ argument 95 #define PS_CALLINC(n) (((n)&3)<<PS_CALLINC_SHIFT) /* n = 0..3 */ argument 98 #define PS_OWB(n) (((n)&15)<<PS_OWB_SHIFT) /* n = 0..15 (or 0..7) */ argument 101 #define PS_RING(n) (((n)&3)<<PS_RING_SHIFT) /* n = 0..3 */ argument 110 #define PS_INTLEVEL(n) ((n)&PS_INTLEVEL_MASK) /* n = 0..15 */ argument
|
D | xtruntime-frames.h | 38 #define STRUCT_AFIELD(ctype,size,pre,name,n) .set pre##name, XT_STRUCT_OFFSET;\ argument 39 .set XT_STRUCT_OFFSET, pre##name + (size)*(n); 40 #define STRUCT_AFIELD_A(ctype,size,align,pre,name,n) .set pre##name, XT_STRUCT_OFFSET\ argument 42 .set XT_STRUCT_OFFSET, pre##name + (size)*(n); 47 #define STRUCT_AFIELD(ctype,size,pre,name,n) pre##name: .if n ; .space (size)*(n) ; .endif argument 48 …define STRUCT_AFIELD_A(ctype,size,align,pre,name,n) .balign align ; pre##name: .if n ; .space (siz… argument 55 #define STRUCT_AFIELD(ctype,size,pre,name,n) ctype name[n]; argument 56 #define STRUCT_AFIELD_A(ctype,size,align,pre,name,n) ctype name[n] __attribute__((aligned(align))); argument
|
/hal_espressif-latest/components/esp_system/ |
D | freertos_hooks.c | 33 int n; in esp_vApplicationTickHook() local 35 for (n=0; n<MAX_HOOKS; n++) { in esp_vApplicationTickHook() 36 if (tick_cb[core][n]!=NULL) { in esp_vApplicationTickHook() 37 tick_cb[core][n](); in esp_vApplicationTickHook() 46 for (int n = 0; n < MAX_HOOKS; n++) { in esp_vApplicationIdleHook() local 47 if (idle_cb[core][n] != NULL && !idle_cb[core][n]()) { in esp_vApplicationIdleHook() 71 for(int n = 0; n < MAX_HOOKS; n++){ in esp_register_freertos_idle_hook_for_cpu() local 72 if (idle_cb[cpuid][n]==NULL) { in esp_register_freertos_idle_hook_for_cpu() 73 idle_cb[cpuid][n]=new_idle_cb; in esp_register_freertos_idle_hook_for_cpu() 93 for(int n = 0; n < MAX_HOOKS; n++){ in esp_register_freertos_tick_hook_for_cpu() local [all …]
|
/hal_espressif-latest/components/xtensa/ |
D | xtensa_intr.c | 76 xt_exc_handler xt_set_exception_handler(int n, xt_exc_handler f) in xt_set_exception_handler() argument 80 if( n < 0 || n >= XCHAL_EXCCAUSE_NUM ) in xt_set_exception_handler() 84 n = n * portNUM_PROCESSORS + xPortGetCoreID(); in xt_set_exception_handler() 85 old = _xt_exception_table[n]; in xt_set_exception_handler() 88 _xt_exception_table[n] = f; in xt_set_exception_handler() 91 _xt_exception_table[n] = &xt_unhandled_exception; in xt_set_exception_handler() 131 xt_handler xt_set_interrupt_handler(int n, xt_handler f, void * arg) in xt_set_interrupt_handler() argument 136 if( n < 0 || n >= XCHAL_NUM_INTERRUPTS ) in xt_set_interrupt_handler() 138 if( Xthal_intlevel[n] > XCHAL_EXCM_LEVEL ) in xt_set_interrupt_handler() 142 n = n * portNUM_PROCESSORS + xPortGetCoreID(); in xt_set_interrupt_handler() [all …]
|
/hal_espressif-latest/components/newlib/platform_include/sys/ |
D | select.h | 34 #define __FD_SAFE_SET(n, code) do { if ((unsigned)(n) < FD_SETSIZE) { code; } } while(0) argument 35 #define __FD_SAFE_GET(n, code) (((unsigned)(n) < FD_SETSIZE) ? (code) : 0) argument 37 #define FD_SET(n, p) __FD_SAFE_SET(n, ((p)->fds_bits[(n) / NFDBITS] |= (1L << ((n) % NFDBITS)))) argument 38 #define FD_CLR(n, p) __FD_SAFE_SET(n, ((p)->fds_bits[(n) / NFDBITS] &= ~(1L << ((n) % NFDBITS)))) argument 39 #define FD_ISSET(n, p) __FD_SAFE_GET(n, ((p)->fds_bits[(n) / NFDBITS] & (1L << ((n) % NFDBITS)))) argument
|
/hal_espressif-latest/components/wpa_supplicant/src/utils/ |
D | common.h | 56 #define le_to_host16(n) (n) argument 57 #define host_to_le16(n) (n) argument 58 #define be_to_host16(n) wpa_swap_16(n) argument 59 #define host_to_be16(n) wpa_swap_16(n) argument 60 #define le_to_host32(n) (n) argument 61 #define host_to_le32(n) (n) argument 62 #define be_to_host32(n) wpa_swap_32(n) argument 63 #define host_to_be32(n) wpa_swap_32(n) argument 85 #define le_to_host16(n) ((__force u16) (le16) (n)) argument 86 #define host_to_le16(n) ((__force le16) (u16) (n)) argument [all …]
|
/hal_espressif-latest/components/soc/ |
D | lldesc.c | 5 int n = 0; in lldesc_setup_link_constrained() local 14 dmadesc[n].size = (dmachunklen + 3) & (~3); in lldesc_setup_link_constrained() 15 dmadesc[n].length = (dmachunklen + 3) & (~3); in lldesc_setup_link_constrained() 17 dmadesc[n].size = dmachunklen; in lldesc_setup_link_constrained() 18 dmadesc[n].length = dmachunklen; in lldesc_setup_link_constrained() 20 dmadesc[n].buf = buf; in lldesc_setup_link_constrained() 21 dmadesc[n].eof = 0; in lldesc_setup_link_constrained() 22 dmadesc[n].sosf = 0; in lldesc_setup_link_constrained() 23 dmadesc[n].owner = 1; in lldesc_setup_link_constrained() 24 dmadesc[n].qe.stqe_next = &dmadesc[n + 1]; in lldesc_setup_link_constrained() [all …]
|
/hal_espressif-latest/components/newlib/ |
D | stdatomic.c | 99 #define ATOMIC_LOAD(n, type) type __atomic_load_ ## n (const volatile void* mem, int memorder) \ argument 107 #define ATOMIC_STORE(n, type) void __atomic_store_ ## n (volatile void * mem, type val, int memorde… argument 114 #define ATOMIC_EXCHANGE(n, type) type __atomic_exchange_ ## n (volatile void* mem, type val, int me… argument 123 #define CMP_EXCHANGE(n, type) bool __atomic_compare_exchange_ ## n (volatile void* mem, void* expec… argument 137 #define FETCH_ADD(n, type) type __atomic_fetch_add_ ## n (volatile void* ptr, type value, int memor… argument 146 #define ADD_FETCH(n, type) type __atomic_add_fetch_ ## n (volatile void* ptr, type value, int memor… argument 155 #define FETCH_SUB(n, type) type __atomic_fetch_sub_ ## n (volatile void* ptr, type value, int memor… argument 164 #define SUB_FETCH(n, type) type __atomic_sub_fetch_ ## n (volatile void* ptr, type value, int memor… argument 173 #define FETCH_AND(n, type) type __atomic_fetch_and_ ## n (volatile void* ptr, type value, int memor… argument 182 #define AND_FETCH(n, type) type __atomic_and_fetch_ ## n (volatile void* ptr, type value, int memor… argument [all …]
|
D | heap.c | 27 void* calloc(size_t n, size_t size) in calloc() argument 29 return _calloc_r(_REENT, n, size); in calloc() 72 void* memalign(size_t alignment, size_t n) in memalign() argument 74 return heap_caps_aligned_alloc(alignment, n, MALLOC_CAP_DEFAULT); in memalign() 77 void* aligned_alloc(size_t alignment, size_t n) in aligned_alloc() argument 79 return heap_caps_aligned_alloc(alignment, n, MALLOC_CAP_DEFAULT); in aligned_alloc() 137 void* valloc(size_t n) __attribute__((alias("malloc"))); 138 void* pvalloc(size_t n) __attribute__((alias("malloc")));
|
/hal_espressif-latest/components/wpa_supplicant/src/tls/ |
D | bignum.c | 32 struct bignum *n = os_zalloc(sizeof(mp_int)); in bignum_init() local 33 if (n == NULL) in bignum_init() 35 if (mp_init((mp_int *) n) != MP_OKAY) { in bignum_init() 36 os_free(n); in bignum_init() 37 n = NULL; in bignum_init() 39 return n; in bignum_init() 47 void bignum_deinit(struct bignum *n) in bignum_deinit() argument 49 if (n) { in bignum_deinit() 50 mp_clear((mp_int *) n); in bignum_deinit() 51 os_free(n); in bignum_deinit() [all …]
|
/hal_espressif-latest/components/mbedtls/port/ |
D | esp_mem.c | 14 IRAM_ATTR void *esp_mbedtls_mem_calloc(size_t n, size_t size) argument 17 return heap_caps_calloc(n, size, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT); 19 return heap_caps_calloc(n, size, MALLOC_CAP_SPIRAM|MALLOC_CAP_8BIT); 22 …if ((n*size) >= CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN || (n*size) >= CONFIG_MBEDTLS_SSL_OUT_CONTENT_LE… 24 if ((n*size) >= CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN) { 26 …return heap_caps_calloc_prefer(n, size, 2, MALLOC_CAP_INTERNAL|MALLOC_CAP_IRAM_8BIT, MALLOC_CAP_IN… 28 return heap_caps_calloc(n, size, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT); 32 return calloc(n, size);
|
/hal_espressif-latest/components/mbedtls/port/aes/block/ |
D | esp_aes.c | 349 size_t n = *iv_off; in esp_aes_crypt_cfb128() local 356 if ( n == 0 ) { in esp_aes_crypt_cfb128() 364 *output++ = (unsigned char)( c ^ iv[n] ); in esp_aes_crypt_cfb128() 365 iv[n] = (unsigned char) c; in esp_aes_crypt_cfb128() 367 n = ( n + 1 ) & 0x0F; in esp_aes_crypt_cfb128() 371 if ( n == 0 ) { in esp_aes_crypt_cfb128() 378 iv[n] = *output++ = (unsigned char)( iv[n] ^ *input++ ); in esp_aes_crypt_cfb128() 380 n = ( n + 1 ) & 0x0F; in esp_aes_crypt_cfb128() 384 *iv_off = n; in esp_aes_crypt_cfb128() 482 size_t n = *nc_off; in esp_aes_crypt_ctr() local [all …]
|
/hal_espressif-latest/tools/esptool_py/flasher_stub/ |
D | stub_commands.c | 112 uint32_t n = len - num_sent; in handle_flash_read() local 113 if (n > block_size) n = block_size; in handle_flash_read() 116 res = SPIRead4B(1, addr, buf, n); in handle_flash_read() 118 res = SPIRead(addr, (uint32_t *)buf, n); in handle_flash_read() 121 res = SPIRead(addr, (uint32_t *)buf, n); in handle_flash_read() 126 SLIP_send(buf, n); in handle_flash_read() 127 MD5Update(&ctx, buf, n); in handle_flash_read() 128 addr += n; in handle_flash_read() 129 num_sent += n; in handle_flash_read() 150 uint32_t n = len; in handle_flash_get_md5sum() local [all …]
|
/hal_espressif-latest/components/bt/porting/ext/tinycrypt/src/ |
D | cbc_mode.c | 43 unsigned int n, m; in tc_cbc_mode_encrypt() local 63 for (n = m = 0; n < inlen; ++n) { in tc_cbc_mode_encrypt() 84 unsigned int n, m; in tc_cbc_mode_decrypt() local 104 for (n = m = 0; n < inlen; ++n) { in tc_cbc_mode_decrypt() 105 if ((n % TC_AES_BLOCK_SIZE) == 0) { in tc_cbc_mode_decrypt()
|
D | ecc_dsa.c | 94 if (uECC_vli_cmp_unsafe(curve->n, native, num_n_words) != 1) { in bits2int() 95 uECC_vli_sub(native, native, curve->n, num_n_words); in bits2int() 115 uECC_vli_cmp(curve->n, k, num_n_words) != 1) { in uECC_sign_with_k() 131 else if (!uECC_generate_random_int(tmp, curve->n, num_n_words)) { in uECC_sign_with_k() 137 uECC_vli_modMult(k, k, tmp, curve->n, num_n_words); /* k' = rand * k */ in uECC_sign_with_k() 138 uECC_vli_modInv(k, k, curve->n, num_n_words); /* k = 1 / k' */ in uECC_sign_with_k() 139 uECC_vli_modMult(k, k, tmp, curve->n, num_n_words); /* k = 1 / k */ in uECC_sign_with_k() 148 uECC_vli_modMult(s, tmp, s, curve->n, num_n_words); /* s = r*d */ in uECC_sign_with_k() 151 uECC_vli_modAdd(s, tmp, s, curve->n, num_n_words); /* s = e + r*d */ in uECC_sign_with_k() 152 uECC_vli_modMult(s, s, k, curve->n, num_n_words); /* s = (e + r*d) / k */ in uECC_sign_with_k() [all …]
|
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/ |
D | cbc_mode.c | 43 unsigned int n, m; in tc_cbc_mode_encrypt() local 63 for (n = m = 0; n < inlen; ++n) { in tc_cbc_mode_encrypt() 84 unsigned int n, m; in tc_cbc_mode_decrypt() local 104 for (n = m = 0; n < outlen; ++n) { in tc_cbc_mode_decrypt() 105 if ((n % TC_AES_BLOCK_SIZE) == 0) { in tc_cbc_mode_decrypt()
|
D | ecc_dsa.c | 94 if (uECC_vli_cmp_unsafe(curve->n, native, num_n_words) != 1) { in bits2int() 95 uECC_vli_sub(native, native, curve->n, num_n_words); in bits2int() 115 uECC_vli_cmp(curve->n, k, num_n_words) != 1) { in uECC_sign_with_k() 130 } else if (!uECC_generate_random_int(tmp, curve->n, num_n_words)) { in uECC_sign_with_k() 136 uECC_vli_modMult(k, k, tmp, curve->n, num_n_words); /* k' = rand * k */ in uECC_sign_with_k() 137 uECC_vli_modInv(k, k, curve->n, num_n_words); /* k = 1 / k' */ in uECC_sign_with_k() 138 uECC_vli_modMult(k, k, tmp, curve->n, num_n_words); /* k = 1 / k */ in uECC_sign_with_k() 147 uECC_vli_modMult(s, tmp, s, curve->n, num_n_words); /* s = r*d */ in uECC_sign_with_k() 150 uECC_vli_modAdd(s, tmp, s, curve->n, num_n_words); /* s = e + r*d */ in uECC_sign_with_k() 151 uECC_vli_modMult(s, s, k, curve->n, num_n_words); /* s = (e + r*d) / k */ in uECC_sign_with_k() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/port/include/ |
D | os.h | 240 #define os_bzero(s, n) memset(s, 0, n) argument 254 #define os_memcpy(d, s, n) memcpy((d), (s), (n)) argument 257 #define os_memmove(d, s, n) memmove((d), (s), (n)) argument 260 #define os_memset(s, c, n) memset(s, c, n) argument 263 #define os_memcmp(s1, s2, n) memcmp((s1), (s2), (n)) argument 266 #define os_memcmp_const(s1, s2, n) memcmp((s1), (s2), (n)) argument 281 #define os_strncasecmp(s1, s2, n) _strnicmp((s1), (s2), (n)) argument 283 #define os_strncasecmp(s1, s2, n) z_strncasecmp((s1), (s2), (n)) argument 293 #define os_strncmp(s1, s2, n) strncmp((s1), (s2), (n)) argument 299 #define os_strstr(h, n) strstr((h), (n)) argument [all …]
|
/hal_espressif-latest/components/bt/porting/mem/ |
D | bt_osi_mem.c | 37 IRAM_ATTR void *bt_osi_mem_calloc(size_t n, size_t size) in bt_osi_mem_calloc() argument 40 return heap_caps_calloc(n, size, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT); in bt_osi_mem_calloc() 42 return heap_caps_calloc(n, size, MALLOC_CAP_SPIRAM|MALLOC_CAP_8BIT); in bt_osi_mem_calloc() 44 …return heap_caps_calloc_prefer(n, size, 2, MALLOC_CAP_INTERNAL|MALLOC_CAP_IRAM_8BIT, MALLOC_CAP_IN… in bt_osi_mem_calloc() 46 return calloc(n, size); in bt_osi_mem_calloc() 55 IRAM_ATTR void *bt_osi_mem_calloc_internal(size_t n, size_t size) in bt_osi_mem_calloc_internal() argument 57 return heap_caps_calloc(n, size, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT|MALLOC_CAP_DMA); in bt_osi_mem_calloc_internal()
|
/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/include/ |
D | oi_time.h | 69 #define OI_SECONDS(n) ((OI_INTERVAL) ((n) * OI_INTERVALS_PER_SECOND)) argument 75 #define OI_MSECONDS(n) ((OI_INTERVAL) ((n + MSECS_PER_OI_INTERVAL - 1) / MSECS_PER_OI_INTERVAL)) argument 81 #define OI_MINUTES(n) ((OI_INTERVAL) ((n) * OI_SECONDS(60))) argument
|
/hal_espressif-latest/components/xtensa/esp32/include/xtensa/config/ |
D | core.h | 107 #define _XCHAL_INTLEVEL_MASK(n) XCHAL_INTLEVEL ## n ## _MASK argument 108 #define XCHAL_INTLEVEL_MASK(n) _XCHAL_INTLEVEL_MASK(n) /* n = 0 .. 15 */ argument 109 #define _XCHAL_INTLEVEL_ANDBELOWMASK(n) XCHAL_INTLEVEL ## n ## _ANDBELOW_MASK argument 110 #define XCHAL_INTLEVEL_ANDBELOW_MASK(n) _XCHAL_INTLEVEL_ANDBELOWMASK(n) /* n = 0 .. 15 */ argument 111 #define _XCHAL_INTLEVEL_NUM(n) XCHAL_INTLEVEL ## n ## _NUM argument 112 #define XCHAL_INTLEVEL_NUM(n) _XCHAL_INTLEVEL_NUM(n) /* n = 0 .. 15 */ argument 113 #define _XCHAL_INT_LEVEL(n) XCHAL_INT ## n ## _LEVEL argument 114 #define XCHAL_INT_LEVEL(n) _XCHAL_INT_LEVEL(n) /* n = 0 .. 31 */ argument 115 #define _XCHAL_INT_TYPE(n) XCHAL_INT ## n ## _TYPE argument 116 #define XCHAL_INT_TYPE(n) _XCHAL_INT_TYPE(n) /* n = 0 .. 31 */ argument [all …]
|
/hal_espressif-latest/components/xtensa/esp32s2/include/xtensa/config/ |
D | core.h | 159 #define _XCHAL_INTLEVEL_MASK(n) XCHAL_INTLEVEL ## n ## _MASK argument 160 #define XCHAL_INTLEVEL_MASK(n) _XCHAL_INTLEVEL_MASK(n) /* n = 0 .. 15 */ argument 161 #define _XCHAL_INTLEVEL_ANDBELOWMASK(n) XCHAL_INTLEVEL ## n ## _ANDBELOW_MASK argument 162 #define XCHAL_INTLEVEL_ANDBELOW_MASK(n) _XCHAL_INTLEVEL_ANDBELOWMASK(n) /* n = 0 .. 15 */ argument 163 #define _XCHAL_INTLEVEL_NUM(n) XCHAL_INTLEVEL ## n ## _NUM argument 164 #define XCHAL_INTLEVEL_NUM(n) _XCHAL_INTLEVEL_NUM(n) /* n = 0 .. 15 */ argument 165 #define _XCHAL_INT_LEVEL(n) XCHAL_INT ## n ## _LEVEL argument 166 #define XCHAL_INT_LEVEL(n) _XCHAL_INT_LEVEL(n) /* n = 0 .. 31 */ argument 167 #define _XCHAL_INT_TYPE(n) XCHAL_INT ## n ## _TYPE argument 168 #define XCHAL_INT_TYPE(n) _XCHAL_INT_TYPE(n) /* n = 0 .. 31 */ argument [all …]
|
/hal_espressif-latest/components/xtensa/esp32s3/include/xtensa/config/ |
D | core.h | 165 #define _XCHAL_INTLEVEL_MASK(n) XCHAL_INTLEVEL ## n ## _MASK argument 166 #define XCHAL_INTLEVEL_MASK(n) _XCHAL_INTLEVEL_MASK(n) /* n = 0 .. 15 */ argument 167 #define _XCHAL_INTLEVEL_ANDBELOWMASK(n) XCHAL_INTLEVEL ## n ## _ANDBELOW_MASK argument 168 #define XCHAL_INTLEVEL_ANDBELOW_MASK(n) _XCHAL_INTLEVEL_ANDBELOWMASK(n) /* n = 0 .. 15 */ argument 169 #define _XCHAL_INTLEVEL_NUM(n) XCHAL_INTLEVEL ## n ## _NUM argument 170 #define XCHAL_INTLEVEL_NUM(n) _XCHAL_INTLEVEL_NUM(n) /* n = 0 .. 15 */ argument 171 #define _XCHAL_INT_LEVEL(n) XCHAL_INT ## n ## _LEVEL argument 172 #define XCHAL_INT_LEVEL(n) _XCHAL_INT_LEVEL(n) /* n = 0 .. 31 */ argument 173 #define _XCHAL_INT_TYPE(n) XCHAL_INT ## n ## _TYPE argument 174 #define XCHAL_INT_TYPE(n) _XCHAL_INT_TYPE(n) /* n = 0 .. 31 */ argument [all …]
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/ |
D | csv_table_parser.py | 63 duplicates = set(n for n in names if names.count(n) > 1) 88 duplicates = set(n for n in names if names.count(n) > 1) 123 def check(p, n): argument 124 left = n.bit_start 125 right = n.bit_start + n.bit_count - 1 138 def print_error(p, n, state): argument 153 for n in self: 154 if p is not n and p.efuse_block == n.efuse_block: 155 state = check(p, n) 174 elif "." in n.field_name: [all …]
|