/hal_espressif-latest/components/soc/esp32/include/soc/ |
D | dport_access.h | 65 uint32_t esp_dport_access_reg_read(uint32_t reg); 93 uint32_t esp_dport_access_sequence_reg_read(uint32_t reg); 113 #define DPORT_REG_READ(reg) _DPORT_REG_READ(reg) argument 114 #define DPORT_SEQUENCE_REG_READ(reg) _DPORT_REG_READ(reg) argument 116 #define DPORT_REG_READ(reg) esp_dport_access_reg_read(reg) argument 117 #define DPORT_SEQUENCE_REG_READ(reg) esp_dport_access_sequence_reg_read(reg) argument 175 #define DPORT_READ_PERI_REG(reg) DPORT_REG_READ(reg) argument 181 #define DPORT_CLEAR_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)&… argument 184 #define DPORT_SET_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)|… argument 187 #define DPORT_GET_PERI_REG_MASK(reg, mask) (DPORT_READ_PERI_REG(reg) & (mask)) argument [all …]
|
D | soc.h | 118 #define CLEAR_PERI_REG_MASK(reg, mask) do { … argument 119 …ASSERT_IF_DPORT_REG((reg), CLEAR_PERI_REG_MASK); … 120 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask)))); … 124 #define SET_PERI_REG_MASK(reg, mask) do { … argument 125 …ASSERT_IF_DPORT_REG((reg), SET_PERI_REG_MASK); … 126 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask))); … 130 #define GET_PERI_REG_MASK(reg, mask) ({ … argument 131 …ASSERT_IF_DPORT_REG((reg), GET_PERI_REG_MASK); … 132 …(READ_PERI_REG(reg) & (mask)); … 136 #define GET_PERI_REG_BITS(reg, hipos,lowpos) ({ … argument [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/wps/ |
D | wps_registrar.c | 224 static int wps_set_ie(struct wps_registrar *reg); 230 static void wps_registrar_remove_pin(struct wps_registrar *reg, 233 static void wps_registrar_add_authorized_mac(struct wps_registrar *reg, in wps_registrar_add_authorized_mac() argument 240 if (os_memcmp(reg->authorized_macs[i], addr, ETH_ALEN) == 0) { in wps_registrar_add_authorized_mac() 246 os_memcpy(reg->authorized_macs[i], reg->authorized_macs[i - 1], in wps_registrar_add_authorized_mac() 248 os_memcpy(reg->authorized_macs[0], addr, ETH_ALEN); in wps_registrar_add_authorized_mac() 250 (u8 *) reg->authorized_macs, sizeof(reg->authorized_macs)); in wps_registrar_add_authorized_mac() 254 static void wps_registrar_remove_authorized_mac(struct wps_registrar *reg, in wps_registrar_remove_authorized_mac() argument 261 if (os_memcmp(reg->authorized_macs, addr, ETH_ALEN) == 0) in wps_registrar_remove_authorized_mac() 270 os_memcpy(reg->authorized_macs[i], reg->authorized_macs[i + 1], in wps_registrar_remove_authorized_mac() [all …]
|
/hal_espressif-latest/components/hal/esp32h2/include/hal/ |
D | ecc_ll.h | 130 uint32_t reg; in ecc_ll_write_param() local 134 reg = ECC_MULT_PX_MEM; in ecc_ll_write_param() 137 reg = ECC_MULT_PY_MEM; in ecc_ll_write_param() 140 reg = ECC_MULT_K_MEM; in ecc_ll_write_param() 143 reg = ECC_MULT_QX_MEM; in ecc_ll_write_param() 146 reg = ECC_MULT_QY_MEM; in ecc_ll_write_param() 149 reg = ECC_MULT_QZ_MEM; in ecc_ll_write_param() 158 REG_WRITE(reg + i, word); in ecc_ll_write_param() 194 uint32_t reg; in ecc_ll_read_param() local 197 reg = ECC_MULT_PX_MEM; in ecc_ll_read_param() [all …]
|
D | ecdsa_ll.h | 285 uint32_t reg; in ecdsa_ll_write_param() local 289 reg = ECDSA_R_MEM; in ecdsa_ll_write_param() 292 reg = ECDSA_S_MEM; in ecdsa_ll_write_param() 295 reg = ECDSA_Z_MEM; in ecdsa_ll_write_param() 298 reg = ECDSA_QAX_MEM; in ecdsa_ll_write_param() 301 reg = ECDSA_QAY_MEM; in ecdsa_ll_write_param() 310 REG_WRITE(reg + i, word); in ecdsa_ll_write_param() 323 uint32_t reg; in ecdsa_ll_read_param() local 326 reg = ECDSA_R_MEM; in ecdsa_ll_read_param() 329 reg = ECDSA_S_MEM; in ecdsa_ll_read_param() [all …]
|
/hal_espressif-latest/components/soc/esp32/ |
D | dport_access.c | 13 IRAM_ATTR uint32_t esp_dport_access_reg_read(uint32_t reg) in esp_dport_access_reg_read() argument 16 return _DPORT_REG_READ(reg); in esp_dport_access_reg_read() 27 : [APB]"=a"(apb), [REG]"+a"(reg), [LVL]"=a"(intLvl)\ in esp_dport_access_reg_read() 31 return reg; in esp_dport_access_reg_read() 35 IRAM_ATTR uint32_t esp_dport_access_sequence_reg_read(uint32_t reg) in esp_dport_access_sequence_reg_read() argument 38 return _DPORT_REG_READ(reg); in esp_dport_access_sequence_reg_read() 45 : [APB]"=a"(apb), [REG]"+a"(reg)\ in esp_dport_access_sequence_reg_read() 49 return reg; in esp_dport_access_sequence_reg_read()
|
/hal_espressif-latest/components/hal/esp32/include/hal/ |
D | rtc_io_ll.h | 52 SET_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, (rtc_io_desc[rtcio_num].mux)); in rtcio_ll_function_select() 54 …SET_PERI_REG_BITS(rtc_io_desc[rtcio_num].reg, RTC_IO_TOUCH_PAD1_FUN_SEL_V, RTCIO_LL_PIN_FUNC, rtc_… in rtcio_ll_function_select() 56 CLEAR_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, (rtc_io_desc[rtcio_num].mux)); in rtcio_ll_function_select() 102 SET_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].ie); in rtcio_ll_input_enable() 112 CLEAR_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].ie); in rtcio_ll_input_disable() 135 …SET_PERI_REG_BITS(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].drv_v, strength, rtc_io_desc[… in rtcio_ll_set_drive_capability() 147 …return GET_PERI_REG_BITS2(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].drv_v, rtc_io_desc[rt… in rtcio_ll_get_drive_capability() 169 SET_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].pullup); in rtcio_ll_pullup_enable() 181 CLEAR_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].pullup); in rtcio_ll_pullup_disable() 193 SET_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].pulldown); in rtcio_ll_pulldown_enable() [all …]
|
/hal_espressif-latest/components/soc/esp32c6/include/soc/ |
D | dport_access.h | 90 #define DPORT_CLEAR_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)&… argument 93 #define DPORT_SET_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)|… argument 96 #define DPORT_GET_PERI_REG_MASK(reg, mask) (DPORT_READ_PERI_REG(reg) & (mask)) argument 99 #define DPORT_GET_PERI_REG_BITS(reg, hipos,lowpos) ((DPORT_READ_PERI_REG(reg)>>(lowpos))&((1<<(… argument 102 #define DPORT_SET_PERI_REG_BITS(reg,bit_map,value,shift) DPORT_WRITE_PERI_REG((reg), ((DPORT_READ_P… argument 105 #define DPORT_GET_PERI_REG_BITS2(reg, mask,shift) ((DPORT_READ_PERI_REG(reg)>>(shift))&(mask)) argument
|
D | soc.h | 106 #define CLEAR_PERI_REG_MASK(reg, mask) do { … argument 107 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask)))); … 111 #define SET_PERI_REG_MASK(reg, mask) do { … argument 112 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask))); … 116 #define GET_PERI_REG_MASK(reg, mask) ({ … argument 117 …(READ_PERI_REG(reg) & (mask)); … 121 #define GET_PERI_REG_BITS(reg, hipos,lowpos) ({ … argument 122 …((READ_PERI_REG(reg)>>(lowpos))&((1<<((hipos)-(lowpos)+1))-1)); … 126 #define SET_PERI_REG_BITS(reg,bit_map,value,shift) do { … argument 127 …WRITE_PERI_REG((reg),(READ_PERI_REG(reg)&(~((bit_map)<<(shift))))|(((value) & (bit_map))<<(shift))… [all …]
|
/hal_espressif-latest/components/soc/esp32s3/include/soc/ |
D | dport_access.h | 87 #define DPORT_CLEAR_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)&… argument 90 #define DPORT_SET_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)|… argument 93 #define DPORT_GET_PERI_REG_MASK(reg, mask) (DPORT_READ_PERI_REG(reg) & (mask)) argument 96 #define DPORT_GET_PERI_REG_BITS(reg, hipos,lowpos) ((DPORT_READ_PERI_REG(reg)>>(lowpos))&((1<<(… argument 99 #define DPORT_SET_PERI_REG_BITS(reg,bit_map,value,shift) DPORT_WRITE_PERI_REG((reg), ((DPORT_READ_P… argument 102 #define DPORT_GET_PERI_REG_BITS2(reg, mask,shift) ((DPORT_READ_PERI_REG(reg)>>(shift))&(mask)) argument
|
D | soc.h | 119 #define CLEAR_PERI_REG_MASK(reg, mask) do { … argument 120 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask)))); … 124 #define SET_PERI_REG_MASK(reg, mask) do { … argument 125 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask))); … 129 #define GET_PERI_REG_MASK(reg, mask) ({ … argument 130 …(READ_PERI_REG(reg) & (mask)); … 134 #define GET_PERI_REG_BITS(reg, hipos,lowpos) ({ … argument 135 …((READ_PERI_REG(reg)>>(lowpos))&((1<<((hipos)-(lowpos)+1))-1)); … 139 #define SET_PERI_REG_BITS(reg,bit_map,value,shift) do { … argument 140 …WRITE_PERI_REG((reg),(READ_PERI_REG(reg)&(~((bit_map)<<(shift))))|(((value) & (bit_map))<<(shift))… [all …]
|
/hal_espressif-latest/components/soc/esp32h2/include/soc/ |
D | dport_access.h | 89 #define DPORT_CLEAR_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)&… argument 92 #define DPORT_SET_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)|… argument 95 #define DPORT_GET_PERI_REG_MASK(reg, mask) (DPORT_READ_PERI_REG(reg) & (mask)) argument 98 #define DPORT_GET_PERI_REG_BITS(reg, hipos,lowpos) ((DPORT_READ_PERI_REG(reg)>>(lowpos))&((1<<(… argument 101 #define DPORT_SET_PERI_REG_BITS(reg,bit_map,value,shift) DPORT_WRITE_PERI_REG((reg), ((DPORT_READ_P… argument 104 #define DPORT_GET_PERI_REG_BITS2(reg, mask,shift) ((DPORT_READ_PERI_REG(reg)>>(shift))&(mask)) argument
|
D | soc.h | 104 #define CLEAR_PERI_REG_MASK(reg, mask) do { … argument 105 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask)))); … 109 #define SET_PERI_REG_MASK(reg, mask) do { … argument 110 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask))); … 114 #define GET_PERI_REG_MASK(reg, mask) ({ … argument 115 …(READ_PERI_REG(reg) & (mask)); … 119 #define GET_PERI_REG_BITS(reg, hipos,lowpos) ({ … argument 120 …((READ_PERI_REG(reg)>>(lowpos))&((1<<((hipos)-(lowpos)+1))-1)); … 124 #define SET_PERI_REG_BITS(reg,bit_map,value,shift) do { … argument 125 …WRITE_PERI_REG((reg),(READ_PERI_REG(reg)&(~((bit_map)<<(shift))))|(((value) & (bit_map))<<(shift))… [all …]
|
D | lpperi_struct.h | 38 #define LPPERI_REG_SET(reg, val) (LPPERI.rev1_2.date.lpperi_date >= LPPERI_REV1_2_DATE ? \ argument 39 (LPPERI.rev1_2.reg = (val)) : (LPPERI.rev0_0.reg = (val))) 45 #define LPPERI_REG_GET(reg) (LPPERI.rev1_2.date.lpperi_date >= LPPERI_REV1_2_DATE ? \ argument 46 (LPPERI.rev1_2.reg) : (LPPERI.rev0_0.reg))
|
/hal_espressif-latest/components/soc/esp32c3/include/soc/ |
D | dport_access.h | 90 #define DPORT_CLEAR_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)&… argument 93 #define DPORT_SET_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)|… argument 96 #define DPORT_GET_PERI_REG_MASK(reg, mask) (DPORT_READ_PERI_REG(reg) & (mask)) argument 99 #define DPORT_GET_PERI_REG_BITS(reg, hipos,lowpos) ((DPORT_READ_PERI_REG(reg)>>(lowpos))&((1<<(… argument 102 #define DPORT_SET_PERI_REG_BITS(reg,bit_map,value,shift) DPORT_WRITE_PERI_REG((reg), ((DPORT_READ_P… argument 105 #define DPORT_GET_PERI_REG_BITS2(reg, mask,shift) ((DPORT_READ_PERI_REG(reg)>>(shift))&(mask)) argument
|
D | soc.h | 104 #define CLEAR_PERI_REG_MASK(reg, mask) do { … argument 105 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask)))); … 109 #define SET_PERI_REG_MASK(reg, mask) do { … argument 110 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask))); … 114 #define GET_PERI_REG_MASK(reg, mask) ({ … argument 115 …(READ_PERI_REG(reg) & (mask)); … 119 #define GET_PERI_REG_BITS(reg, hipos,lowpos) ({ … argument 120 …((READ_PERI_REG(reg)>>(lowpos))&((1<<((hipos)-(lowpos)+1))-1)); … 124 #define SET_PERI_REG_BITS(reg,bit_map,value,shift) do { … argument 125 …WRITE_PERI_REG((reg),(READ_PERI_REG(reg)&(~((bit_map)<<(shift))))|(((value) & (bit_map))<<(shift))… [all …]
|
/hal_espressif-latest/components/soc/esp32c2/include/soc/ |
D | dport_access.h | 90 #define DPORT_CLEAR_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)&… argument 93 #define DPORT_SET_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)|… argument 96 #define DPORT_GET_PERI_REG_MASK(reg, mask) (DPORT_READ_PERI_REG(reg) & (mask)) argument 99 #define DPORT_GET_PERI_REG_BITS(reg, hipos,lowpos) ((DPORT_READ_PERI_REG(reg)>>(lowpos))&((1<<(… argument 102 #define DPORT_SET_PERI_REG_BITS(reg,bit_map,value,shift) DPORT_WRITE_PERI_REG((reg), ((DPORT_READ_P… argument 105 #define DPORT_GET_PERI_REG_BITS2(reg, mask,shift) ((DPORT_READ_PERI_REG(reg)>>(shift))&(mask)) argument
|
D | soc.h | 112 #define CLEAR_PERI_REG_MASK(reg, mask) do { … argument 113 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask)))); … 117 #define SET_PERI_REG_MASK(reg, mask) do { … argument 118 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask))); … 122 #define GET_PERI_REG_MASK(reg, mask) ({ … argument 123 …(READ_PERI_REG(reg) & (mask)); … 127 #define GET_PERI_REG_BITS(reg, hipos,lowpos) ({ … argument 128 …((READ_PERI_REG(reg)>>(lowpos))&((1<<((hipos)-(lowpos)+1))-1)); … 132 #define SET_PERI_REG_BITS(reg,bit_map,value,shift) do { … argument 133 …WRITE_PERI_REG((reg),(READ_PERI_REG(reg)&(~((bit_map)<<(shift))))|(((value) & (bit_map))<<(shift))… [all …]
|
/hal_espressif-latest/components/soc/esp32s2/include/soc/ |
D | dport_access.h | 88 #define DPORT_CLEAR_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)&… argument 91 #define DPORT_SET_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)|… argument 94 #define DPORT_GET_PERI_REG_MASK(reg, mask) (DPORT_READ_PERI_REG(reg) & (mask)) argument 97 #define DPORT_GET_PERI_REG_BITS(reg, hipos,lowpos) ((DPORT_READ_PERI_REG(reg)>>(lowpos))&((1<<(… argument 100 #define DPORT_SET_PERI_REG_BITS(reg,bit_map,value,shift) DPORT_WRITE_PERI_REG((reg), ((DPORT_READ_P… argument 103 #define DPORT_GET_PERI_REG_BITS2(reg, mask,shift) ((DPORT_READ_PERI_REG(reg)>>(shift))&(mask)) argument
|
D | soc.h | 110 #define CLEAR_PERI_REG_MASK(reg, mask) do { … argument 111 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask)))); … 115 #define SET_PERI_REG_MASK(reg, mask) do { … argument 116 …WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask))); … 120 #define GET_PERI_REG_MASK(reg, mask) ({ … argument 121 …(READ_PERI_REG(reg) & (mask)); … 125 #define GET_PERI_REG_BITS(reg, hipos,lowpos) ({ … argument 126 …((READ_PERI_REG(reg)>>(lowpos))&((1<<((hipos)-(lowpos)+1))-1)); … 130 #define SET_PERI_REG_BITS(reg,bit_map,value,shift) do { … argument 131 …WRITE_PERI_REG((reg),(READ_PERI_REG(reg)&(~((bit_map)<<(shift))))|(((value) & (bit_map))<<(shift))… [all …]
|
/hal_espressif-latest/components/hal/esp32s2/include/hal/ |
D | rtc_io_ll.h | 54 SET_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, (rtc_io_desc[rtcio_num].mux)); in rtcio_ll_function_select() 56 …SET_PERI_REG_BITS(rtc_io_desc[rtcio_num].reg, RTC_IO_TOUCH_PAD1_FUN_SEL_V, RTCIO_LL_PIN_FUNC, rtc_… in rtcio_ll_function_select() 58 CLEAR_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, (rtc_io_desc[rtcio_num].mux)); in rtcio_ll_function_select() 105 SET_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].ie); in rtcio_ll_input_enable() 115 CLEAR_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].ie); in rtcio_ll_input_disable() 138 …SET_PERI_REG_BITS(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].drv_v, strength, rtc_io_desc[… in rtcio_ll_set_drive_capability() 150 …return GET_PERI_REG_BITS2(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].drv_v, rtc_io_desc[rt… in rtcio_ll_get_drive_capability() 172 SET_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].pullup); in rtcio_ll_pullup_enable() 184 CLEAR_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].pullup); in rtcio_ll_pullup_disable() 196 SET_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].pulldown); in rtcio_ll_pulldown_enable() [all …]
|
/hal_espressif-latest/components/hal/esp32c2/include/hal/ |
D | ecc_ll.h | 76 uint32_t reg; in ecc_ll_write_param() local 80 reg = ECC_MULT_PX_1_REG; in ecc_ll_write_param() 83 reg = ECC_MULT_PY_1_REG; in ecc_ll_write_param() 86 reg = ECC_MULT_K_1_REG; in ecc_ll_write_param() 95 REG_WRITE(reg + i, word); in ecc_ll_write_param() 126 uint32_t reg; in ecc_ll_read_param() local 129 reg = ECC_MULT_PX_1_REG; in ecc_ll_read_param() 132 reg = ECC_MULT_PY_1_REG; in ecc_ll_read_param() 135 reg = ECC_MULT_K_1_REG; in ecc_ll_read_param() 142 memcpy(buf, (void *)reg, len); in ecc_ll_read_param()
|
/hal_espressif-latest/components/hal/esp32c6/include/hal/ |
D | ecc_ll.h | 87 uint32_t reg; in ecc_ll_write_param() local 91 reg = ECC_MULT_PX_MEM; in ecc_ll_write_param() 94 reg = ECC_MULT_PY_MEM; in ecc_ll_write_param() 97 reg = ECC_MULT_K_MEM; in ecc_ll_write_param() 106 REG_WRITE(reg + i, word); in ecc_ll_write_param() 137 uint32_t reg; in ecc_ll_read_param() local 140 reg = ECC_MULT_PX_MEM; in ecc_ll_read_param() 143 reg = ECC_MULT_PY_MEM; in ecc_ll_read_param() 146 reg = ECC_MULT_K_MEM; in ecc_ll_read_param() 153 memcpy(buf, (void *)reg, len); in ecc_ll_read_param()
|
/hal_espressif-latest/components/riscv/include/riscv/ |
D | csr.h | 162 #define RV_READ_CONST_CSR(reg) ({ unsigned long __tmp; \ argument 163 asm ("csrr %0, " _CSR_STRINGIFY(reg) : "=r"(__tmp)); __tmp; }) 165 #define RV_READ_CSR(reg) ({ unsigned long __tmp; \ argument 166 asm volatile ("csrr %0, " _CSR_STRINGIFY(reg) : "=r"(__tmp)); __tmp; }) 168 #define RV_WRITE_CSR(reg, val) ({ \ argument 169 asm volatile ("csrw " _CSR_STRINGIFY(reg) ", %0" :: "rK"(val)); }) 171 #define RV_SWAP_CSR(reg, val) ({ unsigned long __tmp; \ argument 172 asm volatile ("csrrw %0, " _CSR_STRINGIFY(reg) ", %1" : "=r"(__tmp) : "rK"(val)); __tmp; }) 175 #define RV_SET_CSR(reg, bit) ({ unsigned long __tmp; \ argument 176 asm volatile ("csrrs %0, " _CSR_STRINGIFY(reg) ", %1" : "=r"(__tmp) : "rK"(bit)); __tmp; }) [all …]
|
/hal_espressif-latest/components/hal/esp32s3/include/hal/ |
D | rtc_io_ll.h | 60 SET_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, (rtc_io_desc[rtcio_num].mux)); in rtcio_ll_function_select() 62 …SET_PERI_REG_BITS(rtc_io_desc[rtcio_num].reg, RTC_IO_TOUCH_PAD1_FUN_SEL_V, RTCIO_LL_PIN_FUNC, rtc_… in rtcio_ll_function_select() 64 CLEAR_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, (rtc_io_desc[rtcio_num].mux)); in rtcio_ll_function_select() 113 SET_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].ie); in rtcio_ll_input_enable() 123 CLEAR_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].ie); in rtcio_ll_input_disable() 151 …SET_PERI_REG_BITS(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].drv_v, drv_cap, rtc_io_desc[r… in rtcio_ll_set_drive_capability() 163 …uint32_t strength = GET_PERI_REG_BITS2(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].drv_v, r… in rtcio_ll_get_drive_capability() 190 SET_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].pullup); in rtcio_ll_pullup_enable() 210 CLEAR_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].pullup); in rtcio_ll_pullup_disable() 222 SET_PERI_REG_MASK(rtc_io_desc[rtcio_num].reg, rtc_io_desc[rtcio_num].pulldown); in rtcio_ll_pulldown_enable() [all …]
|