/hal_espressif-3.5.0/components/efuse/test/ |
D | test_efuse_coding_scheme.c | 136 for (int j = 0; j < count_useful_reg; ++j) { variable 137 REG_WRITE(EFUSE_BLK2_WDATA0_REG + j * 4, *((uint32_t*)buf + j)); 143 for (int j = 0; j < 8; ++j) { variable 144 w_data_after_coding[j] = REG_READ(EFUSE_BLK2_WDATA0_REG + j * 4); 152 for (int j = 0; j < count_useful_reg; ++j) { variable 153 encoded[j] = *((uint32_t*)buf + j); 154 encoded[j + 4] = encoded[j]; 163 for (int j = 0; j < 8; ++j) { variable 164 printf("0x%08x ", encoded[j]); 167 for (int j = 0; j < 8; ++j) { variable [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/dm/ |
D | bta_dm_pm.c | 88 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_init_pm() local 89 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX; in bta_dm_init_pm() 117 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_disable_pm() local 118 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_disable_pm() 119 bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION; in bta_dm_disable_pm() 140 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_pm_stop_timer() local 141 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer() 230 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_pm_stop_timer_by_srvc_id() local 231 if (bta_dm_cb.pm_timer[i].srvc_id[j] == srvc_id) { in bta_dm_pm_stop_timer_by_srvc_id() 232 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer_by_srvc_id() [all …]
|
/hal_espressif-3.5.0/tools/ci/ |
D | idf_ci_utils.py | 107 j = i 108 if j < n and pat[j] == '!': 109 j = j + 1 110 if j < n and pat[j] == ']': 111 j = j + 1 112 while j < n and pat[j] != ']': 113 j = j + 1 114 if j >= n: 117 stuff = pat[i:j] 124 k = pat.find('-', k, j) [all …]
|
/hal_espressif-3.5.0/components/wpa_supplicant/src/crypto/ |
D | crypto_internal-cipher.c | 106 size_t i, j, blocks; in crypto_cipher_encrypt() local 121 for (j = 0; j < AES_BLOCK_SIZE; j++) in crypto_cipher_encrypt() 122 ctx->u.aes.cbc[j] ^= plain[j]; in crypto_cipher_encrypt() 135 for (j = 0; j < 8; j++) in crypto_cipher_encrypt() 136 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt() 149 for (j = 0; j < 8; j++) in crypto_cipher_encrypt() 150 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt() 169 size_t i, j, blocks; in crypto_cipher_decrypt() local 187 for (j = 0; j < AES_BLOCK_SIZE; j++) in crypto_cipher_decrypt() 188 plain[j] ^= ctx->u.aes.cbc[j]; in crypto_cipher_decrypt() [all …]
|
D | rc4.c | 19 u32 i, j, k; in rc4_skip() local 26 j = 0; in rc4_skip() 29 j = (j + S[i] + key[kpos]) & 0xff; in rc4_skip() 33 S_SWAP(i, j); in rc4_skip() 37 i = j = 0; in rc4_skip() 40 j = (j + S[i]) & 0xff; in rc4_skip() 41 S_SWAP(i, j); in rc4_skip() 48 j = (j + S[i]) & 0xff; in rc4_skip() 49 S_SWAP(i, j); in rc4_skip() 50 *pos++ ^= S[(S[i] + S[j]) & 0xff]; in rc4_skip()
|
D | aes-internal-dec.c | 30 int Nr, i, j; in rijndaelKeySetupDec() local 38 for (i = 0, j = 4*Nr; i < j; i += 4, j -= 4) { in rijndaelKeySetupDec() 39 temp = rk[i ]; rk[i ] = rk[j ]; rk[j ] = temp; in rijndaelKeySetupDec() 40 temp = rk[i + 1]; rk[i + 1] = rk[j + 1]; rk[j + 1] = temp; in rijndaelKeySetupDec() 41 temp = rk[i + 2]; rk[i + 2] = rk[j + 2]; rk[j + 2] = temp; in rijndaelKeySetupDec() 42 temp = rk[i + 3]; rk[i + 3] = rk[j + 3]; rk[j + 3] = temp; in rijndaelKeySetupDec() 48 for (j = 0; j < 4; j++) { in rijndaelKeySetupDec() 49 rk[j] = TD0_(TE4((rk[j] >> 24) )) ^ in rijndaelKeySetupDec() 50 TD1_(TE4((rk[j] >> 16) & 0xff)) ^ in rijndaelKeySetupDec() 51 TD2_(TE4((rk[j] >> 8) & 0xff)) ^ in rijndaelKeySetupDec() [all …]
|
D | aes-cbc.c | 29 int i, j, blocks; in aes_128_cbc_encrypt() local 41 for (j = 0; j < AES_BLOCK_SIZE; j++) in aes_128_cbc_encrypt() 42 cbc[j] ^= pos[j]; in aes_128_cbc_encrypt() 65 int i, j, blocks; in aes_128_cbc_decrypt() local 79 for (j = 0; j < AES_BLOCK_SIZE; j++) in aes_128_cbc_decrypt() 80 pos[j] ^= cbc[j]; in aes_128_cbc_decrypt()
|
D | des-internal.c | 275 u32 i, j, l, m, n, kn[32]; in deskey() local 278 for (j = 0; j < 56; j++) { in deskey() 279 l = (u32) pc1[j]; in deskey() 281 pc1m[j] = (u8) in deskey() 292 for (j = 0; j < 28; j++) { in deskey() 293 l = j + (u32) totrot[i]; in deskey() 295 pcr[j] = pc1m[l]; in deskey() 297 pcr[j] = pc1m[l - 28]; in deskey() 299 for (/* j = 28 */; j < 56; j++) { in deskey() 300 l = j + (u32) totrot[i]; in deskey() [all …]
|
/hal_espressif-3.5.0/components/driver/test/ |
D | test_pwm.c | 153 for (int j = 0; j < SOC_MCPWM_TIMERS_PER_GROUP; j++) { variable 154 mcpwm_timer_duty_test(i, j, MCPWM_TEST_GROUP_CLK_HZ, MCPWM_TEST_TIMER_CLK_HZ); 155 mcpwm_timer_duty_test(i, j, MCPWM_TEST_GROUP_CLK_HZ / 2, MCPWM_TEST_TIMER_CLK_HZ * 2); 189 for (int j = 0; j < SOC_MCPWM_TIMERS_PER_GROUP; j++) { variable 190 mcpwm_start_stop_test(i, j); 219 for (int j = 0; j < SOC_MCPWM_TIMERS_PER_GROUP; j++) { variable 220 mcpwm_deadtime_test(i, j); 255 for (int j = 0; j < SOC_MCPWM_TIMERS_PER_GROUP; j++) { variable 257 mcpwm_carrier_test(i, j, MCPWM_CARRIER_OUT_IVT_DIS, 4, 4, 3); 258 mcpwm_carrier_test(i, j, MCPWM_CARRIER_OUT_IVT_EN, 4, 4, 3); [all …]
|
D | test_spi_bus_lock.c | 59 for( int j = 0; j < 50; j ++ ) { in spi_task1() local 64 for( int j = 0; j < 50; j ++ ) { in spi_task1() local 92 for( int j = 0; j < 50; j ++ ) { in spi_task2() local 95 for( int j = 0; j < 50; j ++ ) { in spi_task2() local 130 for (int j = 0; j < 50; j++) { in spi_task3() local 133 for (int j = 0; j < 50; j++) { in spi_task3() local
|
/hal_espressif-3.5.0/components/heap/test/ |
D | test_malloc.c | 23 int i, j; in tryAllocMem() local 32 for (j=0; j<1024/4; j++) allocatedMem[i][j]=(0xdeadbeef); in tryAllocMem() 40 int i, j; in tryAllocMemFree() local 42 for (j=0; j<1024/4; j++) { in tryAllocMemFree() 43 TEST_ASSERT(allocatedMem[i][j]==(0xdeadbeef)); in tryAllocMemFree() 75 for (int j=0; j<i; j++) free(dmaMem[j]); variable
|
/hal_espressif-3.5.0/components/esp_hw_support/test/ |
D | test_intr_alloc.c | 68 for (int j = 0; j < SOC_TIMER_GROUP_TIMERS_PER_GROUP; j++) { in timer_test() local 69 my_timer_init(i, j, 100000 + 10000 * (i * SOC_TIMER_GROUP_TIMERS_PER_GROUP + j + 1)); in timer_test() 75 for (int j = 1; j < SOC_TIMER_GROUP_TIMERS_PER_GROUP; j++) { in timer_test() local 76 timer_isr_register(0, j, timer_isr, (void *)1, flags, &inth[j]); in timer_test() 77 printf("Interrupts allocated: %d\r\n", esp_intr_get_intno(inth[j])); in timer_test() 80 for (int j = 0; j < SOC_TIMER_GROUP_TIMERS_PER_GROUP; j++) { in timer_test() local 81 …_isr_register(i, j, timer_isr, (void *)(i * SOC_TIMER_GROUP_TIMERS_PER_GROUP + j), flags, &inth[i … in timer_test() 82 …Interrupts allocated: %d\r\n", esp_intr_get_intno(inth[i * SOC_TIMER_GROUP_TIMERS_PER_GROUP + j])); in timer_test() 86 for (int j = 0; j < SOC_TIMER_GROUP_TIMERS_PER_GROUP; j++) { in timer_test() local 87 timer_start(i, j); in timer_test()
|
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ |
D | ble_mesh_adapter.c | 214 uint32_t i, j; in ble_mesh_test_performance_client_model_get_received_percent() local 231 for (j = 0; j < time_level_num; j++) { in ble_mesh_test_performance_client_model_get_received_percent() 232 statistics_time_percent[j].time_level = min_time + 50 * j; in ble_mesh_test_performance_client_model_get_received_percent() 233 statistics_time_percent[j].time_num = 0; in ble_mesh_test_performance_client_model_get_received_percent() 237 for (j = 0; j < time_level_num; j++) { in ble_mesh_test_performance_client_model_get_received_percent() 239 j -= 1; in ble_mesh_test_performance_client_model_get_received_percent() 242 if (test_perf_statistics.time[i] >= min_time + 50 * j in ble_mesh_test_performance_client_model_get_received_percent() 243 && test_perf_statistics.time[i] < min_time + 50 * (j + 1)) { in ble_mesh_test_performance_client_model_get_received_percent() 244 statistics_time_percent[j].time_num += 1; in ble_mesh_test_performance_client_model_get_received_percent() 252 for (j = 0; j < time_level_num; j++) { in ble_mesh_test_performance_client_model_get_received_percent() [all …]
|
/hal_espressif-3.5.0/components/bootloader/subproject/components/micro-ecc/micro-ecc/scripts/ |
D | mult_avr_extra.py | 83 for j in xrange(i + 1): 84 emit("mul r%s, r%s", lhi(j), rlo(i-j)) 88 emit("mul r%s, r%s", rhi(j), llo(i-j)) 103 for j in xrange(4): 104 emit("mul r%s, r%s", lhi(j), rlo(3-j)) 108 emit("mul r%s, r%s", rhi(j), llo(3-j)) 128 for j in xrange(7 - i): 129 emit("mul r%s, r%s", left(i+j), right(6-j))
|
/hal_espressif-3.5.0/components/bt/common/osi/ |
D | hash_functions.c | 51 size_t j; in hash_function_blob() local 54 j = sizeof(hash_key_t)-1; in hash_function_blob() 56 while (j) { in hash_function_blob() 57 h[j] = ((h[j] << 7) | (h[j-1] >> 1)) + h[j]; in hash_function_blob() 58 --j; in hash_function_blob()
|
/hal_espressif-3.5.0/components/freertos/test/ |
D | test_freertos_task_delete.c | 56 for(int j = 0; j < NO_OF_TSKS; j++){ variable 68 for(int j = 0 ; j < NO_OF_TSKS; j++){ variable 69 …sk_extern_del, "tsk_extern", 4096, NULL, configMAX_PRIORITIES - 1, &handles[j], xPortGetCoreID())); 73 for(int j = 0; j < NO_OF_TSKS; j++){ variable 74 vTaskDelete(handles[j]);
|
/hal_espressif-3.5.0/examples/common_components/qrcode/ |
D | qrcodegen.c | 237 for (int j = 0; j < seg->bitLength; j++) { in qrcodegen_encodeSegmentsAdvanced() local 238 int bit = (seg->data[j >> 3] >> (7 - (j & 7))) & 1; in qrcodegen_encodeSegmentsAdvanced() 313 for (int j = 0, k = i; j < datLen; j++, k += numBlocks) { // Copy data in addEccAndInterleave() local 314 if (j == shortBlockDataLen) in addEccAndInterleave() 316 result[k] = dat[j]; in addEccAndInterleave() 318 for (int j = 0, k = dataLen + i; j < blockEccLen; j++, k += numBlocks) // Copy ECC in addEccAndInterleave() local 319 result[k] = ecc[j]; in addEccAndInterleave() 371 for (int j = 0; j < degree; j++) { in reedSolomonComputeDivisor() local 372 result[j] = reedSolomonMultiply(result[j], root); in reedSolomonComputeDivisor() 373 if (j + 1 < degree) in reedSolomonComputeDivisor() [all …]
|
/hal_espressif-3.5.0/examples/common_components/pcap/src/ |
D | pcap.c | 183 for (int j = 0; j < 5; j++) { in pcap_print_summary() local 184 fprintf(print_file, "%2x ", packet_payload[4 + j]); in pcap_print_summary() 188 for (int j = 0; j < 5; j++) { in pcap_print_summary() local 189 fprintf(print_file, "%2x ", packet_payload[10 + j]); in pcap_print_summary() 195 for (int j = 0; j < 5; j++) { in pcap_print_summary() local 196 fprintf(print_file, "%2x ", packet_payload[j]); in pcap_print_summary() 200 for (int j = 0; j < 5; j++) { in pcap_print_summary() local 201 fprintf(print_file, "%2x ", packet_payload[6 + j]); in pcap_print_summary()
|
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/common_components/fast_provisioning/ |
D | ble_mesh_fast_prov_client_model.c | 86 int i, j, err; in example_send_self_prov_node_addr() local 118 for (j = 0; j < ARRAY_SIZE(addr_already_sent); j++) { in example_send_self_prov_node_addr() 119 if (addr == addr_already_sent[j]) { in example_send_self_prov_node_addr() 124 if (j != ARRAY_SIZE(addr_already_sent)) { in example_send_self_prov_node_addr() 337 int i, j; in example_fast_prov_client_recv_status() local 344 for (j = 0; j < ARRAY_SIZE(addr_already_sent); j++) { in example_fast_prov_client_recv_status() 345 if (addr_already_sent[j] == addr) { in example_fast_prov_client_recv_status() 349 if (j != ARRAY_SIZE(addr_already_sent)) { in example_fast_prov_client_recv_status() 352 for (j = 0; j < ARRAY_SIZE(addr_already_sent); j++) { in example_fast_prov_client_recv_status() 353 if (addr_already_sent[j] == ESP_BLE_MESH_ADDR_UNASSIGNED) { in example_fast_prov_client_recv_status() [all …]
|
D | ble_mesh_fast_prov_operation.c | 185 int i, j, k; in example_handle_config_app_key_add_evt() local 195 for (j = 0; j < element->sig_model_count; j++) { in example_handle_config_app_key_add_evt() 196 model = &element->sig_models[j]; in example_handle_config_app_key_add_evt() 221 for (j = 0; j < element->vnd_model_count; j++) { in example_handle_config_app_key_add_evt() 222 model = &element->vnd_models[j]; in example_handle_config_app_key_add_evt() 252 int i, j; in example_add_fast_prov_group_address() local 269 for (j = 0; j < ARRAY_SIZE(model->groups); j++) { in example_add_fast_prov_group_address() 270 if (model->groups[j] == group_addr) { in example_add_fast_prov_group_address() 274 if (j != ARRAY_SIZE(model->groups)) { in example_add_fast_prov_group_address() 278 for (j = 0; j < ARRAY_SIZE(model->groups); j++) { in example_add_fast_prov_group_address() [all …]
|
/hal_espressif-3.5.0/components/bt/esp_ble_mesh/mesh_core/ |
D | crypto.c | 203 size_t i = 0U, j = 0U; in bt_mesh_ccm_decrypt() local 243 j = 0; in bt_mesh_ccm_decrypt() 247 pmsg[i] = Xn[i] ^ aad[j]; in bt_mesh_ccm_decrypt() 248 i++, j++; in bt_mesh_ccm_decrypt() 260 for (; i < aad_len; i++, j++) { in bt_mesh_ccm_decrypt() 261 pmsg[i] = Xn[i] ^ aad[j]; in bt_mesh_ccm_decrypt() 280 for (j = 0; j < blk_cnt; j++) { in bt_mesh_ccm_decrypt() 281 if (j + 1 == blk_cnt) { in bt_mesh_ccm_decrypt() 285 sys_put_be16(j + 1, pmsg + 14); in bt_mesh_ccm_decrypt() 294 msg[i] = enc_msg[(j * 16) + i] ^ cmsg[i]; in bt_mesh_ccm_decrypt() [all …]
|
/hal_espressif-3.5.0/examples/peripherals/i2s/i2s_adc_dac/main/ |
D | app_main.c | 144 uint32_t j = 0; in example_i2s_dac_data_scale() local 147 d_buff[j++] = 0; in example_i2s_dac_data_scale() 148 d_buff[j++] = s_buff[i]; in example_i2s_dac_data_scale() 153 d_buff[j++] = 0; in example_i2s_dac_data_scale() 154 d_buff[j++] = 0; in example_i2s_dac_data_scale() 155 d_buff[j++] = 0; in example_i2s_dac_data_scale() 156 d_buff[j++] = s_buff[i]; in example_i2s_dac_data_scale() 170 uint32_t j = 0; in example_i2s_adc_data_scale() local 175 d_buff[j++] = 0; in example_i2s_adc_data_scale() 176 d_buff[j++] = dac_value * 256 / 4096; in example_i2s_adc_data_scale() [all …]
|
/hal_espressif-3.5.0/components/heap/ |
D | heap_trace_standalone.c | 140 for (int j = 0; j < STACK_DEPTH && rec->alloced_by[j] != 0; j++) { in heap_trace_dump() local 141 printf("%p%s", rec->alloced_by[j], in heap_trace_dump() 142 (j < STACK_DEPTH - 1) ? ":" : ""); in heap_trace_dump() 151 for (int j = 0; j < STACK_DEPTH; j++) { in heap_trace_dump() local 152 printf("%p%s", rec->freed_by[j], in heap_trace_dump() 153 (j < STACK_DEPTH - 1) ? ":" : "\n"); in heap_trace_dump()
|
/hal_espressif-3.5.0/tools/test_apps/system/flash_psram/main/ |
D | test_flash_psram.c | 50 for (int j = 0; j < sizeof(psram_wr_buf); j++) { in spi0_psram_test() local 51 psram_wr_buf[j] = rand(); in spi0_psram_test() 93 for (int j = i + 10; j < SPI1_FLASH_TEST_LEN; j++) { in spi1_flash_test() local 94 wr_buf[j] = j; in spi1_flash_test()
|
/hal_espressif-3.5.0/examples/bluetooth/hci/ble_adv_scan_combined/main/ |
D | app_bt.c | 280 for (int j = 0; j < 6; j += 1) { in hci_evt_process() local 281 addr[(6 * i) + j] = queue_data[data_ptr++]; in hci_evt_process() 304 for (uint8_t j = 0; j < data_len[i]; j += 1) { in hci_evt_process() local 334 for (int j = 5; j >= 0; j -= 1) { in hci_evt_process() local 335 printf("%02x", addr[(6 * i) + j]); in hci_evt_process() 336 if (j > 0) { in hci_evt_process() 364 for (uint8_t j = 0; j < rcv_data->q_data_len; j += 1) { in hci_evt_process() local 365 printf(" %02x", queue_data[j]); in hci_evt_process()
|