Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 216) sorted by relevance

123456789

/hal_espressif-latest/components/bt/porting/include/os/
Dendian.h38 #define os_bswap_64(x) ((uint64_t) \ argument
39 ((((x) & 0xff00000000000000ull) >> 56) | \
40 (((x) & 0x00ff000000000000ull) >> 40) | \
41 (((x) & 0x0000ff0000000000ull) >> 24) | \
42 (((x) & 0x000000ff00000000ull) >> 8) | \
43 (((x) & 0x00000000ff000000ull) << 8) | \
44 (((x) & 0x0000000000ff0000ull) << 24) | \
45 (((x) & 0x000000000000ff00ull) << 40) | \
46 (((x) & 0x00000000000000ffull) << 56)))
50 #define os_bswap_32(x) ((uint32_t) \ argument
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/include/stack/
Dhcidefs.h514 #define HCI_LE_STATES_NON_CONN_ADV_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_NON_CONN_ADV_OFF] & HC… argument
519 #define HCI_LE_STATES_SCAN_ADV_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATESSCAN_ADV_OFF] & HCI_SUPP_LE… argument
524 #define HCI_LE_STATES_CONN_ADV_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_CONN_ADV_OFF] & HCI_SUPP_L… argument
529 #define HCI_LE_STATES_HI_DUTY_DIR_ADV_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_HI_DUTY_DIR_ADV_OFF… argument
534 #define HCI_LE_STATES_PASS_SCAN_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_PASS_SCAN_OFF] & HCI_SUPP… argument
539 #define HCI_LE_STATES_ACTIVE_SCAN_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_ACTIVE_SCAN_OFF] & HCI_… argument
544 #define HCI_LE_STATES_INIT_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_INIT_OFF] & HCI_SUPP_LE_STATES… argument
549 #define HCI_LE_STATES_SLAVE_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_SLAVE_OFF] & HCI_SUPP_LE_STAT… argument
554 #define HCI_LE_STATES_NON_CONN_ADV_PASS_SCAN_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_NON_CONN_ADV… argument
559 #define HCI_LE_STATES_SCAN_ADV_PASS_SCAN_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_SCAN_ADV_PASS_SC… argument
[all …]
Davrc_defs.h407 #define AVRC_PF_SELECT_SUPPORTED(x) ((x)[AVRC_PF_SELECT_OFF] & AVRC_PF_SELECT_MASK) argument
412 #define AVRC_PF_UP_SUPPORTED(x) ((x)[AVRC_PF_UP_OFF] & AVRC_PF_UP_MASK) argument
417 #define AVRC_PF_DOWN_SUPPORTED(x) ((x)[AVRC_PF_DOWN_OFF] & AVRC_PF_DOWN_MASK) argument
422 #define AVRC_PF_LEFT_SUPPORTED(x) ((x)[AVRC_PF_LEFT_OFF] & AVRC_PF_LEFT_MASK) argument
427 #define AVRC_PF_RIGHT_SUPPORTED(x) ((x)[AVRC_PF_RIGHT_OFF] & AVRC_PF_RIGHT_MASK) argument
432 #define AVRC_PF_RIGHTUP_SUPPORTED(x) ((x)[AVRC_PF_RIGHTUP_OFF] & AVRC_PF_RIGHTUP_MASK) argument
437 #define AVRC_PF_RIGHTDOWN_SUPPORTED(x) ((x)[AVRC_PF_RIGHTDOWN_OFF] & AVRC_PF_RIGHTDOWN_MASK) argument
442 #define AVRC_PF_LEFTUP_SUPPORTED(x) ((x)[AVRC_PF_LEFTUP_OFF] & AVRC_PF_LEFTUP_MASK) argument
447 #define AVRC_PF_LEFTDOWN_SUPPORTED(x) ((x)[AVRC_PF_LEFTDOWN_OFF] & AVRC_PF_LEFTDOWN_MASK) argument
452 #define AVRC_PF_ROOT_MENU_SUPPORTED(x) ((x)[AVRC_PF_ROOT_MENU_OFF] & AVRC_PF_ROOT_MENU_MASK) argument
[all …]
/hal_espressif-latest/components/newlib/platform_include/
Dendian.h60 #define bswap16(x) __bswap16(x) argument
61 #define bswap32(x) __bswap32(x) argument
62 #define bswap64(x) __bswap64(x) argument
69 #define htobe16(x) bswap16((x)) argument
70 #define htobe32(x) bswap32((x)) argument
71 #define htobe64(x) bswap64((x)) argument
72 #define htole16(x) ((uint16_t)(x)) argument
73 #define htole32(x) ((uint32_t)(x)) argument
74 #define htole64(x) ((uint64_t)(x)) argument
76 #define be16toh(x) bswap16((x)) argument
[all …]
/hal_espressif-latest/components/wpa_supplicant/port/include/
Dendian.h78 #define bswap16(x) __bswap16(x) argument
79 #define bswap32(x) __bswap32(x) argument
80 #define bswap64(x) __bswap64(x) argument
88 #define htobe16(x) bswap16((x)) argument
89 #define htobe32(x) bswap32((x)) argument
90 #define htobe64(x) bswap64((x)) argument
91 #define htole16(x) ((uint16_t)(x)) argument
92 #define htole32(x) ((uint32_t)(x)) argument
93 #define htole64(x) ((uint64_t)(x)) argument
95 #define be16toh(x) bswap16((x)) argument
[all …]
Dbyteswap.h13 # define __bswap_16(x) \ argument
15 ({ unsigned short int __bsx = (x); \
29 # define __bswap_32(x) \ argument
31 ({ unsigned int __bsx = (x); \
47 # define __bswap_constant_64(x) \ argument
48 ((((x) & 0xff00000000000000ull) >> 56) \
49 | (((x) & 0x00ff000000000000ull) >> 40) \
50 | (((x) & 0x0000ff0000000000ull) >> 24) \
51 | (((x) & 0x000000ff00000000ull) >> 8) \
52 | (((x) & 0x00000000ff000000ull) << 8) \
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dsha256-internal.c68 #define RORc(x, y) \ argument
69 ( ((((unsigned long) (x) & 0xFFFFFFFFUL) >> (unsigned long) ((y) & 31)) | \
70 ((unsigned long) (x) << (unsigned long) (32 - ((y) & 31)))) & 0xFFFFFFFFUL)
71 #define Ch(x,y,z) (z ^ (x & (y ^ z))) argument
72 #define Maj(x,y,z) (((x | y) & z) | (x & y)) argument
73 #define S(x, n) RORc((x), (n)) argument
74 #define R(x, n) (((x)&0xFFFFFFFFUL)>>(n)) argument
75 #define Sigma0(x) (S(x, 2) ^ S(x, 13) ^ S(x, 22)) argument
76 #define Sigma1(x) (S(x, 6) ^ S(x, 11) ^ S(x, 25)) argument
77 #define Gamma0(x) (S(x, 7) ^ S(x, 18) ^ R(x, 3)) argument
[all …]
Dsha512-internal.c92 #define Ch(x,y,z) (z ^ (x & (y ^ z))) argument
93 #define Maj(x,y,z) (((x | y) & z) | (x & y)) argument
94 #define S(x, n) ROR64c(x, n) argument
95 #define R(x, n) (((x) & CONST64(0xFFFFFFFFFFFFFFFF)) >> ((u64) n)) argument
96 #define Sigma0(x) (S(x, 28) ^ S(x, 34) ^ S(x, 39)) argument
97 #define Sigma1(x) (S(x, 14) ^ S(x, 18) ^ S(x, 41)) argument
98 #define Gamma0(x) (S(x, 1) ^ S(x, 8) ^ R(x, 7)) argument
99 #define Gamma1(x) (S(x, 19) ^ S(x, 61) ^ R(x, 6)) argument
101 #define MIN(x, y) (((x) < (y)) ? (x) : (y)) argument
104 #define ROR64c(x, y) \ argument
[all …]
Daes-ccm.c31 u8 *x) in aes_ccm_auth_start() argument
45 aes_encrypt(aes, b, x); /* X_1 = E(K, B_0) */ in aes_ccm_auth_start()
54 xor_aes_block(aad_buf, x); in aes_ccm_auth_start()
55 aes_encrypt(aes, aad_buf, x); /* X_2 = E(K, X_1 XOR B_1) */ in aes_ccm_auth_start()
58 xor_aes_block(&aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
60 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
65 static void aes_ccm_auth(void *aes, const u8 *data, size_t len, u8 *x) in aes_ccm_auth() argument
72 xor_aes_block(x, data); in aes_ccm_auth()
74 aes_encrypt(aes, x, x); in aes_ccm_auth()
79 x[i] ^= *data++; in aes_ccm_auth()
[all …]
/hal_espressif-latest/components/xtensa/include/xtensa/
Dhal.h517 #define XTHAL_AMB_BUFFERABLE x /* 000 B BU --s: BUfferable ?
519 #define XTHAL_AMB_ORDERED x /* 000 O OR fls: ORdered G *
521 #define XTHAL_AMB_FUSEWRITES x /* 000 F FW --s: FuseWrites none
525 #define XTHAL_AMB_TRUSTED x /* 000 T TR ?l?: TRusted none
528 #define XTHAL_AMB_PREFETCH x /* 000 P PR fl?: PRefetch none
530 #define XTHAL_AMB_STREAM x /* 000 S ST ???: STreaming none
1136 #define XTHAL_ENCODE_MEMORY_TYPE(x) \ argument
1137 (((x) & 0xffffe000) ? \
1138 (_XTHAL_MEM_IS_DEVICE((x)) ? _XTHAL_ENCODE_DEVICE((x)) : \
1139 (_XTHAL_IS_SYSTEM_NONCACHEABLE((x)) ? \
[all …]
Dcoreasm.h114 .if 0x\ad - 0x\at // destination different than \at ? (works because regs are a0-a15)
1026 #define _GBL(x) .global x argument
1027 #define _TYP(x) .type x,@function argument
1028 #define _ALN(x) .align x argument
1029 #define _SIZ(x) .size x, . - x argument
1030 #define _MKEND(x) .purgem endfunc ; .macro endfunc ; _SIZ(x) ; .purgem endfunc ; .macro endfunc ; … argument
1031 #define _SYMT(x) _GBL(x); _MKEND(x); _TYP(x); _ALN(4); x: argument
1032 #define _SYM2(x) _GBL(x); _TYP(x); x: argument
1033 #define _SYM(x) _GBL(x); _MKEND(x); _ALN(4); x: argument
1049 # define DECLFUNC(x) _SYMT(x ## _nw) argument
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/include/
Dmesh_byteorder.h19 #define __bswap_16(x) ((uint16_t) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))) argument
23 #define __bswap_24(x) ((uint32_t) ((((x) >> 16) & 0xff) | \ argument
24 (((x)) & 0xff00) | \
25 (((x) & 0xff) << 16)))
29 #define __bswap_32(x) ((uint32_t) ((((x) >> 24) & 0xff) | \ argument
30 (((x) >> 8) & 0xff00) | \
31 (((x) & 0xff00) << 8) | \
32 (((x) & 0xff) << 24)))
36 #define __bswap_48(x) ((uint64_t) ((((x) >> 40) & 0xff) | \ argument
37 (((x) >> 24) & 0xff00) | \
[all …]
Dmesh_util.h30 #define POINTER_TO_UINT(x) ((uint32_t) (x)) argument
33 #define UINT_TO_POINTER(x) ((void *) (x)) argument
36 #define POINTER_TO_INT(x) ((int32_t) (x)) argument
39 #define INT_TO_POINTER(x) ((void *) (x)) argument
79 #define ROUND_UP(x, align) \ argument
80 (((unsigned long)(x) + ((unsigned long)align - 1)) & \
85 #define ROUND_DOWN(x, align) ((unsigned long)(x) & ~((unsigned long)align - 1)) argument
90 #define WB_UP(x) ROUND_UP(x, sizeof(void *)) argument
94 #define WB_DN(x) ROUND_DOWN(x, sizeof(void *)) argument
/hal_espressif-latest/components/esp_common/include/
Desp_err.h105 #define ESP_ERROR_CHECK(x) do { \ argument
106 esp_err_t err_rc_ = (x); \
110 #define ESP_ERROR_CHECK(x) do { \ argument
111 esp_err_t err_rc_ = (x); \
117 #define ESP_ERROR_CHECK(x) do { \ argument
118 esp_err_t err_rc_ = (x); \
121 __ASSERT_FUNC, #x); \
132 #define ESP_ERROR_CHECK_WITHOUT_ABORT(x) ({ \ argument
133 esp_err_t err_rc_ = (x); \
137 #define ESP_ERROR_CHECK_WITHOUT_ABORT(x) ({ \ argument
[all …]
Desp_check.h19 #define ESP_RETURN_ON_ERROR(x, log_tag, format, ...) do { \ argument
21 esp_err_t err_rc_ = (x); \
30 #define ESP_RETURN_ON_ERROR_ISR(x, log_tag, format, ...) do { \ argument
32 esp_err_t err_rc_ = (x); \
42 #define ESP_GOTO_ON_ERROR(x, goto_tag, log_tag, format, ...) do { \ argument
44 esp_err_t err_rc_ = (x); \
54 #define ESP_GOTO_ON_ERROR_ISR(x, goto_tag, log_tag, format, ...) do { \ argument
56 esp_err_t err_rc_ = (x); \
121 #define ESP_RETURN_ON_ERROR(x, log_tag, format, ...) do { …
122 …esp_err_t err_rc_ = (x); …
[all …]
/hal_espressif-latest/components/esp_psram/esp32/
Desp_psram_extram_cache.c27 int x; in esp_psram_extram_writeback_cache() local
52 for (x=0; x<1024*64; x+=32) { in esp_psram_extram_writeback_cache()
53 i+=psram[x]; in esp_psram_extram_writeback_cache()
62 for (x=0; x<1024*64; x+=32) { in esp_psram_extram_writeback_cache()
63 i+=psram[x]; in esp_psram_extram_writeback_cache()
64 i+=psram[x+(1024*1024*2)]; in esp_psram_extram_writeback_cache()
/hal_espressif-latest/components/esp_hw_support/port/esp32s3/
Desp_memprot.c41 for (size_t x = 0; x < s_memp_cfg.target_cpu_count; x++) { in esp_mprot_cpuid_valid() local
42 if (core == s_memp_cfg.target_cpu[x]) { in esp_mprot_cpuid_valid()
302 bool x = flags & MEMPROT_OP_EXEC; in esp_mprot_set_pms_area() local
306 memprot_ll_iram0_set_pms_area_0(r, w, x); in esp_mprot_set_pms_area()
309 memprot_ll_iram0_set_pms_area_1(r, w, x); in esp_mprot_set_pms_area()
312 memprot_ll_iram0_set_pms_area_2(r, w, x); in esp_mprot_set_pms_area()
315 memprot_ll_iram0_set_pms_area_3(r, w, x); in esp_mprot_set_pms_area()
331 …rr, esp_mprot_ll_err_to_esp_err(memprot_ll_rtcfast_set_pms_area(core, r, w, x, MEMP_HAL_WORLD_0, M… in esp_mprot_set_pms_area()
335 …rr, esp_mprot_ll_err_to_esp_err(memprot_ll_rtcfast_set_pms_area(core, r, w, x, MEMP_HAL_WORLD_0, M… in esp_mprot_set_pms_area()
338 memprot_ll_icache_set_pms_area_0(r, w, x); in esp_mprot_set_pms_area()
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/tls/
Dlibtommath.h62 #define MIN(x,y) ((x)<(y)?(x):(y)) argument
66 #define MAX(x,y) ((x)>(y)?(x):(y)) argument
69 #define OPT_CAST(x) (x *) argument
173 static int mp_reduce(mp_int * x, mp_int * m, mp_int * mu);
213 mp_int *x; in s_mp_add() local
222 x = a; in s_mp_add()
226 x = b; in s_mp_add()
274 *tmpc = x->dp[i] + u; in s_mp_add()
774 mp_int x, y, u, v, A, B, C, D; in mp_invmod_slow() local
783 if ((res = mp_init_multi(&x, &y, &u, &v, in mp_invmod_slow()
[all …]
/hal_espressif-latest/components/hal/include/hal/
Dmemprot_types.h54 #define MEMP_HAL_CHECK_IRAM_ADDR_IN_RANGE(x) if (x < SOC_DIRAM_IRAM_LOW || x >= SOC_DIRAM_IRAM_HIGH… argument
55 #define MEMP_HAL_CHECK_DRAM_ADDR_IN_RANGE(x) if (x < SOC_DIRAM_DRAM_LOW || x >= SOC_DIRAM_DRAM_HIGH… argument
56 #define MEMP_HAL_CHECK_SPLIT_ADDR_ALIGNED(x) if (x % I_D_SPLIT_LINE_ALIGN != 0) { return MEMP_HAL_E… argument
/hal_espressif-latest/components/bt/host/bluedroid/stack/gap/
Dgap_utils.c37 UINT8 x; in gap_allocate_cb() local
39 for (x = 0; x < GAP_MAX_BLOCKS; x++, p_cb++) { in gap_allocate_cb()
44 p_cb->index = x; in gap_allocate_cb()
88 UINT8 x; in gap_is_service_busy() local
90 for (x = 0; x < GAP_MAX_BLOCKS; x++, p_cb++) { in gap_is_service_busy()
/hal_espressif-latest/components/mbedtls/port/sha/parallel_engine/
Desp_sha512.c25 #define UL64(x) x##ui64 argument
27 #define UL64(x) x##ULL argument
216 #define SHR(x,n) (x >> n) in mbedtls_sha512_software_process() argument
217 #define ROTR(x,n) (SHR(x,n) | (x << (64 - n))) in mbedtls_sha512_software_process() argument
219 #define S0(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ SHR(x, 7)) in mbedtls_sha512_software_process() argument
220 #define S1(x) (ROTR(x,19) ^ ROTR(x,61) ^ SHR(x, 6)) in mbedtls_sha512_software_process() argument
222 #define S2(x) (ROTR(x,28) ^ ROTR(x,34) ^ ROTR(x,39)) in mbedtls_sha512_software_process() argument
223 #define S3(x) (ROTR(x,14) ^ ROTR(x,18) ^ ROTR(x,41)) in mbedtls_sha512_software_process() argument
225 #define F0(x,y,z) ((x & y) | (z & (x | y))) in mbedtls_sha512_software_process() argument
226 #define F1(x,y,z) (z ^ (x & (y ^ z))) in mbedtls_sha512_software_process() argument
[all …]
Desp_sha256.c157 #define SHR(x,n) ((x & 0xFFFFFFFF) >> n) argument
158 #define ROTR(x,n) (SHR(x,n) | (x << (32 - n))) argument
160 #define S0(x) (ROTR(x, 7) ^ ROTR(x,18) ^ SHR(x, 3)) argument
161 #define S1(x) (ROTR(x,17) ^ ROTR(x,19) ^ SHR(x,10)) argument
163 #define S2(x) (ROTR(x, 2) ^ ROTR(x,13) ^ ROTR(x,22)) argument
164 #define S3(x) (ROTR(x, 6) ^ ROTR(x,11) ^ ROTR(x,25)) argument
166 #define F0(x,y,z) ((x & y) | (z & (x | y))) argument
167 #define F1(x,y,z) (z ^ (x & (y ^ z))) argument
175 #define P(a,b,c,d,e,f,g,h,x,K) \ argument
177 temp1 = h + S3(e) + F1(e,f,g) + K + x; \
/hal_espressif-latest/components/bt/host/bluedroid/stack/smp/
Daes.c80 #define f1(x) (x) argument
81 #define f2(x) ((x << 1) ^ (((x >> 7) & 1) * WPOLY)) argument
82 #define f4(x) ((x << 2) ^ (((x >> 6) & 1) * WPOLY) ^ (((x >> 6) & 2) * WPOLY)) argument
83 #define f8(x) ((x << 3) ^ (((x >> 5) & 1) * WPOLY) ^ (((x >> 5) & 2) * WPOLY) \ argument
84 ^ (((x >> 5) & 4) * WPOLY))
85 #define d2(x) (((x) >> 1) ^ ((x) & 1 ? DPOLY : 0)) argument
87 #define f3(x) (f2(x) ^ x) argument
88 #define f9(x) (f8(x) ^ x) argument
89 #define fb(x) (f8(x) ^ f2(x) ^ x) argument
90 #define fd(x) (f8(x) ^ f4(x) ^ x) argument
[all …]
Dp_256_curvepara.c60 ec->G.x[7] = 0x6b17d1f2; in p_256_init_curve()
61 ec->G.x[6] = 0xe12c4247; in p_256_init_curve()
62 ec->G.x[5] = 0xf8bce6e5; in p_256_init_curve()
63 ec->G.x[4] = 0x63a440f2; in p_256_init_curve()
64 ec->G.x[3] = 0x77037d81; in p_256_init_curve()
65 ec->G.x[2] = 0x2deb33a0; in p_256_init_curve()
66 ec->G.x[1] = 0xf4a13945; in p_256_init_curve()
67 ec->G.x[0] = 0xd898c296; in p_256_init_curve()
/hal_espressif-latest/components/hal/esp32c3/include/hal/
Dmemprot_ll.h162 static inline uint32_t memprot_ll_iram0_set_permissions(bool r, bool w, bool x) in memprot_ll_iram0_set_permissions() argument
171 if (x) { in memprot_ll_iram0_set_permissions()
178 static inline void memprot_ll_iram0_set_pms_area_0(bool r, bool w, bool x) in memprot_ll_iram0_set_pms_area_0() argument
180 …ENSITIVE_CORE_X_IRAM0_PMS_CONSTRAIN_SRAM_WORLD_0_PMS_0, memprot_ll_iram0_set_permissions(r, w, x)); in memprot_ll_iram0_set_pms_area_0()
183 static inline void memprot_ll_iram0_set_pms_area_1(bool r, bool w, bool x) in memprot_ll_iram0_set_pms_area_1() argument
185 …ENSITIVE_CORE_X_IRAM0_PMS_CONSTRAIN_SRAM_WORLD_0_PMS_1, memprot_ll_iram0_set_permissions(r, w, x)); in memprot_ll_iram0_set_pms_area_1()
188 static inline void memprot_ll_iram0_set_pms_area_2(bool r, bool w, bool x) in memprot_ll_iram0_set_pms_area_2() argument
190 …ENSITIVE_CORE_X_IRAM0_PMS_CONSTRAIN_SRAM_WORLD_0_PMS_2, memprot_ll_iram0_set_permissions(r, w, x)); in memprot_ll_iram0_set_pms_area_2()
193 static inline void memprot_ll_iram0_set_pms_area_3(bool r, bool w, bool x) in memprot_ll_iram0_set_pms_area_3() argument
195 …ENSITIVE_CORE_X_IRAM0_PMS_CONSTRAIN_SRAM_WORLD_0_PMS_3, memprot_ll_iram0_set_permissions(r, w, x)); in memprot_ll_iram0_set_pms_area_3()
[all …]

123456789