| /lib/efi_selftest/ |
| A D | efi_selftest_esrt.c | 26 for (int idx = 0; idx < TEST_ESRT_NUM_ENTRIES; idx++) { in efi_test_esrt_init_info() local 27 static_img_info[idx].image_index = idx; in efi_test_esrt_init_info() 32 static_img_info[idx].image_type_id.b[0] = idx; in efi_test_esrt_init_info() 34 static_img_info[idx].image_id = 0; in efi_test_esrt_init_info() 36 static_img_info[idx].version = 0; in efi_test_esrt_init_info() 38 static_img_info[idx].size = 0; in efi_test_esrt_init_info() 79 for (int idx = 0; idx < TEST_ESRT_NUM_ENTRIES; idx++) in efi_test_fmp_get_image_info() local 80 image_info[idx] = static_img_info[idx]; in efi_test_fmp_get_image_info() 96 for (int idx = 0; idx < local_systable->nr_tables; idx++) in lib_test_get_esrt() local 122 for (u32 idx = 0; idx < filled_entries; idx++) { in lib_test_check_uuid_entry() local [all …]
|
| /lib/mbedtls/external/mbedtls/library/ |
| A D | debug.c | 150 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, "%04x: ", in mbedtls_debug_print_buf() 155 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, " %02x", in mbedtls_debug_print_buf() 162 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, " "); in mbedtls_debug_print_buf() 165 mbedtls_snprintf(str + idx, sizeof(str) - idx, " %s\n", txt); in mbedtls_debug_print_buf() 212 mbedtls_snprintf(str + idx, sizeof(str) - idx, "\n"); in mbedtls_debug_print_ec_coord() 219 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, " %02x", in mbedtls_debug_print_ec_coord() 225 idx += mbedtls_snprintf(str + idx, sizeof(str) - idx, " "); in mbedtls_debug_print_ec_coord() 228 mbedtls_snprintf(str + idx, sizeof(str) - idx, "\n"); in mbedtls_debug_print_ec_coord() 271 size_t idx = 0; in mbedtls_debug_print_mpi() local 289 idx = 3; in mbedtls_debug_print_mpi() [all …]
|
| A D | lms.c | 531 unsigned int idx; in mbedtls_lms_private_free() local 535 for (idx = 0; idx < MERKLE_TREE_LEAF_NODE_AM(ctx->params.type); idx++) { in mbedtls_lms_private_free() 536 mbedtls_lmots_private_free(&ctx->ots_private_keys[idx]); in mbedtls_lms_private_free() 541 for (idx = 0; idx < MERKLE_TREE_LEAF_NODE_AM(ctx->params.type); idx++) { in mbedtls_lms_private_free() 542 mbedtls_lmots_public_free(&ctx->ots_public_keys[idx]); in mbedtls_lms_private_free() 561 unsigned int idx = 0; in mbedtls_lms_generate_private_key() local 605 for (idx = 0; idx < MERKLE_TREE_LEAF_NODE_AM(ctx->params.type); idx++) { in mbedtls_lms_generate_private_key() 606 mbedtls_lmots_private_init(&ctx->ots_private_keys[idx]); in mbedtls_lms_generate_private_key() 607 mbedtls_lmots_public_init(&ctx->ots_public_keys[idx]); in mbedtls_lms_generate_private_key() 611 for (idx = 0; idx < MERKLE_TREE_LEAF_NODE_AM(ctx->params.type); idx++) { in mbedtls_lms_generate_private_key() [all …]
|
| A D | camellia.c | 295 int idx; in mbedtls_camellia_setkey_enc() local 309 case 128: ctx->nr = 3; idx = 0; break; in mbedtls_camellia_setkey_enc() 374 SHIFT_AND_PLACE(idx, 0); in mbedtls_camellia_setkey_enc() 378 SHIFT_AND_PLACE(idx, 1); in mbedtls_camellia_setkey_enc() 382 SHIFT_AND_PLACE(idx, 2); in mbedtls_camellia_setkey_enc() 386 SHIFT_AND_PLACE(idx, 3); in mbedtls_camellia_setkey_enc() 391 if (transposes[idx][i] != -1) { in mbedtls_camellia_setkey_enc() 392 RK[32 + 12 * idx + i] = RK[transposes[idx][i]]; in mbedtls_camellia_setkey_enc() 407 int idx, ret; in mbedtls_camellia_setkey_dec() local 421 idx = (ctx->nr == 4); in mbedtls_camellia_setkey_dec() [all …]
|
| A D | version_features.c | 816 const char * const *idx = features; in mbedtls_version_check_feature() local 818 if (*idx == NULL) { in mbedtls_version_check_feature() 832 while (*idx != NULL) { in mbedtls_version_check_feature() 833 if (!strcmp(*idx, feature)) { in mbedtls_version_check_feature() 836 idx++; in mbedtls_version_check_feature()
|
| /lib/ |
| A D | hashtable.c | 203 unsigned int idx; in hmatch_r() local 206 for (idx = last_idx + 1; idx < htab->size; ++idx) { in hmatch_r() 211 return idx; in hmatch_r() 296 return idx; in _compare_and_overwrite_entry() 329 idx = hval; in hsearch_r() 358 idx = htab->size + idx - hval2; in hsearch_r() 360 idx -= hval2; in hsearch_r() 423 _hdelete(item.key, htab, &htab->table[idx].entry, idx); in hsearch_r() 434 _hdelete(item.key, htab, &htab->table[idx].entry, idx); in hsearch_r() 476 int idx; in hdelete_r() local [all …]
|
| A D | aes.c | 503 int idx; in add_round_key() local 505 for (idx = 0; idx < 4; idx++) in add_round_key() 506 state[idx] ^= key[idx]; in add_round_key() 548 for (idx = aes_keycols; idx < AES_STATECOLS * (aes_rounds + 1); idx++) { in aes_expand_key() 549 tmp0 = expkey[4*idx - 4]; in aes_expand_key() 550 tmp1 = expkey[4*idx - 3]; in aes_expand_key() 551 tmp2 = expkey[4*idx - 2]; in aes_expand_key() 566 expkey[4*idx+0] = expkey[4*idx - 4*aes_keycols + 0] ^ tmp0; in aes_expand_key() 567 expkey[4*idx+1] = expkey[4*idx - 4*aes_keycols + 1] ^ tmp1; in aes_expand_key() 568 expkey[4*idx+2] = expkey[4*idx - 4*aes_keycols + 2] ^ tmp2; in aes_expand_key() [all …]
|
| A D | addr_map.c | 59 phys_size_t size, int idx) in addrmap_set_entry() argument 61 if (idx >= CONFIG_SYS_NUM_ADDR_MAP) in addrmap_set_entry() 64 address_map[idx].vaddr = vaddr; in addrmap_set_entry() 65 address_map[idx].paddr = paddr; in addrmap_set_entry() 66 address_map[idx].size = size; in addrmap_set_entry()
|
| /lib/lwip/lwip/test/unit/etharp/ |
| A D | test_etharp.c | 143 ssize_t idx; in START_TEST() local 183 fail_unless(idx == i); in START_TEST() 193 fail_unless(idx == 0); in START_TEST() 222 fail_unless(idx == 1); in START_TEST() 232 fail_unless(idx == 0); in START_TEST() 234 fail_unless(idx == 2); in START_TEST() 239 fail_unless(idx == 0); in START_TEST() 241 fail_unless(idx == -1); in START_TEST() 247 fail_unless(idx == 0); in START_TEST() 254 fail_unless(idx == -1); in START_TEST() [all …]
|
| /lib/lwip/lwip/src/apps/snmp/ |
| A D | snmp_mib2_udp.c | 123 u8_t idx = 0; in udp_endpointTable_get_cell_value() local 128 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len - idx, &local_ip, &local_port); in udp_endpointTable_get_cell_value() 129 if (idx == 0) { in udp_endpointTable_get_cell_value() 134 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len - idx, &remote_ip, &remote_port); in udp_endpointTable_get_cell_value() 135 if (idx == 0) { in udp_endpointTable_get_cell_value() 140 if (row_oid_len < (idx + 1)) { in udp_endpointTable_get_cell_value() 143 if (row_oid[idx] != 0) { in udp_endpointTable_get_cell_value() 184 u8_t idx = 0; in udp_endpointTable_get_next_cell_instance_and_value() local 187 idx += snmp_ip_port_to_oid(&pcb->local_ip, pcb->local_port, &test_oid[idx]); in udp_endpointTable_get_next_cell_instance_and_value() 190 idx += snmp_ip_port_to_oid(&pcb->remote_ip, pcb->remote_port, &test_oid[idx]); in udp_endpointTable_get_next_cell_instance_and_value() [all …]
|
| A D | snmp_mib2_tcp.c | 335 u8_t idx = 0; in tcp_ConnectionTable_get_cell_value() local 342 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len - idx, &local_ip, &local_port); in tcp_ConnectionTable_get_cell_value() 343 if (idx == 0) { in tcp_ConnectionTable_get_cell_value() 348 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len - idx, &remote_ip, &remote_port); in tcp_ConnectionTable_get_cell_value() 349 if (idx == 0) { in tcp_ConnectionTable_get_cell_value() 394 u8_t idx = 0; in tcp_ConnectionTable_get_next_cell_instance_and_value() local 444 u8_t idx = 0; in tcp_ListenerTable_get_cell_value() local 449 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len - idx, &local_ip, &local_port); in tcp_ListenerTable_get_cell_value() 450 if (idx == 0) { in tcp_ListenerTable_get_cell_value() 485 u8_t idx = 0; in tcp_ListenerTable_get_next_cell_instance_and_value() local [all …]
|
| A D | snmp_core.c | 392 u8_t idx; in snmp_ip_port_to_oid() local 395 oid[idx] = port; in snmp_ip_port_to_oid() 396 idx++; in snmp_ip_port_to_oid() 398 return idx; in snmp_ip_port_to_oid() 521 u8_t idx; in snmp_oid_to_ip_port() local 525 if (idx == 0) { in snmp_oid_to_ip_port() 530 if (oid_len < (idx + 1)) { in snmp_oid_to_ip_port() 533 if (oid[idx] > 0xffff) { in snmp_oid_to_ip_port() 536 *port = (u16_t)oid[idx]; in snmp_oid_to_ip_port() 537 idx++; in snmp_oid_to_ip_port() [all …]
|
| /lib/lwip/lwip/src/include/lwip/apps/ |
| A D | sntp.h | 58 void sntp_setserver(u8_t idx, const ip_addr_t *addr); 59 const ip_addr_t* sntp_getserver(u8_t idx); 60 u8_t sntp_getkodreceived(u8_t idx); 63 u8_t sntp_getreachability(u8_t idx); 67 void sntp_setservername(u8_t idx, const char *server); 68 const char *sntp_getservername(u8_t idx);
|
| /lib/efi_loader/ |
| A D | efi_esrt.c | 182 for (u32 idx = 0; idx < filled_entries; idx++) { in esrt_find_entry() local 183 if (!guidcmp(&entry[idx].fw_class, img_fw_class)) { in esrt_find_entry() 185 img_fw_class, idx); in esrt_find_entry() 186 return &entry[idx]; in esrt_find_entry() 353 for (u32 idx = 0; idx < no_handles; idx++, it_handle++) { in efi_esrt_populate() local 368 idx); in efi_esrt_populate() 439 for (u32 idx = 0; idx < no_handles; idx++, it_handle++) { in efi_esrt_populate() local 446 idx); in efi_esrt_populate()
|
| A D | efi_net.c | 1445 int idx; in efi_net_get_addr() local 1449 idx = dev_seq(dev); in efi_net_get_addr() 1451 if (idx < 0 || idx > 99) { in efi_net_get_addr() 1456 if (idx) { in efi_net_get_addr() 1457 sprintf(ipstr, "ipaddr%d", idx); in efi_net_get_addr() 1458 sprintf(maskstr, "netmask%d", idx); in efi_net_get_addr() 1509 int idx; in efi_net_set_addr() local 1513 idx = dev_seq(dev); in efi_net_set_addr() 1515 if (idx < 0 || idx > 99) { in efi_net_set_addr() 1520 if (idx) { in efi_net_set_addr() [all …]
|
| /lib/lwip/lwip/src/apps/sntp/ |
| A D | sntp.c | 769 sntp_getreachability(u8_t idx) in sntp_getreachability() argument 771 if (idx < SNTP_MAX_SERVERS) { in sntp_getreachability() 805 if (idx < SNTP_MAX_SERVERS) { in sntp_setserver() 883 sntp_getserver(u8_t idx) in sntp_getserver() argument 885 if (idx < SNTP_MAX_SERVERS) { in sntp_getserver() 900 sntp_getkodreceived(u8_t idx) in sntp_getkodreceived() argument 903 if (idx < SNTP_MAX_SERVERS) { in sntp_getkodreceived() 907 LWIP_UNUSED_ARG(idx); in sntp_getkodreceived() 923 if (idx < SNTP_MAX_SERVERS) { in sntp_setservername() 939 sntp_getservername(u8_t idx) in sntp_getservername() argument [all …]
|
| /lib/lwip/lwip/src/core/ipv6/ |
| A D | dhcp6.c | 118 #define dhcp6_option_given(dhcp6, idx) (dhcp6_rx_options[idx].option_given != 0) argument 119 #define dhcp6_got_option(dhcp6, idx) (dhcp6_rx_options[idx].option_given = 1) argument 120 #define dhcp6_clear_option(dhcp6, idx) (dhcp6_rx_options[idx].option_given = 0) argument 122 #define dhcp6_get_option_start(dhcp6, idx) (dhcp6_rx_options[idx].val_start) argument 123 #define dhcp6_get_option_length(dhcp6, idx) (dhcp6_rx_options[idx].val_length) argument 124 #define dhcp6_set_option(dhcp6, idx, start, len) do { dhcp6_rx_options[idx].val_start = (start); dh… argument 536 u16_t idx; in dhcp6_handle_config_reply() local 541 for (n = 0, idx = op_start; (idx < op_start + op_len) && (n < LWIP_DHCP6_PROVIDE_DNS_SERVERS); in dhcp6_handle_config_reply() 542 n++, idx += sizeof(struct ip6_addr_packed)) { in dhcp6_handle_config_reply() 561 u16_t idx; in dhcp6_handle_config_reply() local [all …]
|
| /lib/lwip/lwip/src/core/ |
| A D | dns.c | 767 dns_send(u8_t idx) in dns_send() argument 789 dns_call_found(idx, NULL); in dns_send() 922 u8_t idx; in dns_alloc_pcb() local 939 for (i = 0, idx = (u8_t)(dns_last_pcb_idx + 1); i < DNS_MAX_SOURCE_PORTS; i++, idx++) { in dns_alloc_pcb() 941 idx = 0; in dns_alloc_pcb() 943 if (dns_pcbs[idx] != NULL) { in dns_alloc_pcb() 944 dns_last_pcb_idx = idx; in dns_alloc_pcb() 945 return idx; in dns_alloc_pcb() 989 if (dns_requests[idx].found) { in dns_call_found() 990 (*dns_requests[idx].found)(dns_table[idx].name, addr, dns_requests[idx].arg); in dns_call_found() [all …]
|
| /lib/mbedtls/external/mbedtls/scripts/data_files/ |
| A D | version_features.fmt | 25 const char * const *idx = features; 27 if (*idx == NULL) { 41 while (*idx != NULL) { 42 if (!strcmp(*idx, feature)) { 45 idx++;
|
| /lib/lwip/lwip/contrib/addons/ipv6_static_routing/ |
| A D | ip6_route_table.c | 76 …try(const struct ip6_prefix *ip6_prefix, struct netif *netif, const ip6_addr_t *gateway, s8_t *idx) in ip6_add_route_entry() argument 116 if (idx != NULL) { in ip6_add_route_entry() 117 *idx = i; in ip6_add_route_entry() 172 s8_t i, idx = -1; in ip6_find_route_entry() local 178 idx = i; in ip6_find_route_entry() 183 return idx; in ip6_find_route_entry()
|
| /lib/lwip/lwip/src/apps/netbiosns/ |
| A D | netbiosns.c | 248 int idx = 0; in netbiosns_name_decode() local 282 if (idx < NETBIOS_NAME_LEN) { in netbiosns_name_decode() 284 name_dec[idx++] = (cnbname != ' ' ? cnbname : '\0'); in netbiosns_name_decode() 300 int idx = 0; 321 if (idx >= name_dec_len) { 327 name_dec[idx++] = ('A' + ((ucname >> 4) & 0x0F)); 328 name_dec[idx++] = ('A' + ( ucname & 0x0F)); 333 for (; idx < name_dec_len - 1;) { 334 name_dec[idx++] = 'C'; 335 name_dec[idx++] = 'A'; [all …]
|
| /lib/lwip/lwip/src/api/ |
| A D | if_api.c | 90 u8_t idx; in lwip_if_nametoindex() local 92 err = netifapi_netif_name_to_index(ifname, &idx); in lwip_if_nametoindex() 94 return idx; in lwip_if_nametoindex()
|
| A D | netdb.c | 134 u8_t idx; in lwip_gethostbyname() local 135 for (idx = 0; s_hostent.h_addr_list[idx]; idx++) { in lwip_gethostbyname() 136 …P_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i]-> == %s\n", idx, ipaddr_ntoa(s_phostent_addr[idx]))); in lwip_gethostbyname()
|
| /lib/mbedtls/external/mbedtls/programs/ssl/ |
| A D | ssl_mail_client.c | 227 size_t i, idx = 0; in write_ssl_and_get_response() local 259 if (idx < 4) { in write_ssl_and_get_response() 260 code[idx++] = data[i]; in write_ssl_and_get_response() 265 if (idx == 4 && code[0] >= '0' && code[0] <= '9' && code[3] == ' ') { in write_ssl_and_get_response() 270 idx = 0; in write_ssl_and_get_response() 280 size_t i, idx = 0; in write_and_get_response() local 303 if (idx < 4) { in write_and_get_response() 304 code[idx++] = data[i]; in write_and_get_response() 309 if (idx == 4 && code[0] >= '0' && code[0] <= '9' && code[3] == ' ') { in write_and_get_response() 314 idx = 0; in write_and_get_response()
|
| /lib/mbedtls/external/mbedtls/tests/scripts/ |
| A D | check_test_cases.py | 30 def idx(self): member in ScriptOutputError 116 for idx, line in enumerate(listed.splitlines()): 123 raise ScriptOutputError(script_name, idx, line.decode("utf-8")) 127 idx, 232 results.error(e.script_name, e.idx,
|