/external/python/cpython2/Lib/ctypes/test/ |
D | test_arrays.py | 19 alen = len(init) 20 int_array = ARRAY(fmt, alen) 24 self.assertEqual(len(ia), alen) 27 values = [ia[i] for i in range(alen)] 31 with self.assertRaises(IndexError): ia[alen] 32 with self.assertRaises(IndexError): ia[-alen-1] 36 new_values = range(42, 42+alen) 37 [setitem(ia, n, new_values[n]) for n in range(alen)] 38 values = [ia[i] for i in range(alen)] 43 values = [ia[i] for i in range(alen)] [all …]
|
/external/mesa3d/src/glx/ |
D | packsingle.h | 121 #define __GLX_SINGLE_GET_VOID_ARRAY(a,alen) \ argument 123 GLint slop = alen*__GLX_SIZE_INT8 & 3; \ 124 _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT8); \ 128 #define __GLX_SINGLE_GET_CHAR_ARRAY(a,alen) \ argument 130 GLint slop = alen*__GLX_SIZE_INT8 & 3; \ 131 _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT8); \ 136 #define __GLX_SINGLE_GET_SHORT_ARRAY(a,alen) \ argument 138 GLint slop = (alen*__GLX_SIZE_INT16) & 3; \ 139 _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT16); \ 143 #define __GLX_SINGLE_GET_LONG_ARRAY(a,alen) \ argument [all …]
|
D | packrender.h | 187 #define __GLX_PUT_CHAR_ARRAY(offset,a,alen) \ argument 188 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_INT8) 190 #define __GLX_PUT_SHORT_ARRAY(offset,a,alen) \ argument 191 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_INT16) 193 #define __GLX_PUT_LONG_ARRAY(offset,a,alen) \ argument 194 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_INT32) 196 #define __GLX_PUT_FLOAT_ARRAY(offset,a,alen) \ argument 197 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_FLOAT32) 199 #define __GLX_PUT_DOUBLE_ARRAY(offset,a,alen) \ argument 200 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_FLOAT64)
|
/external/strace/tests-m32/ |
D | sendfile.c | 71 const unsigned int alen = file_size - blen; in main() local 89 assert(syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) in main() 90 == (long) alen); in main() 92 sv[1], reg_in, alen, alen); in main() 95 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { in main() 97 sv[1], reg_in, (unsigned long) p_off, alen); in main() 100 assert(syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) in main() 101 == (long) alen); in main() 104 sv[1], reg_in, alen, alen, alen); in main() 109 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
|
D | sendfile64.c | 71 const unsigned int alen = file_size - blen; in main() local 89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) in main() 90 == (long) alen); in main() 92 sv[1], reg_in, alen, alen); in main() 94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) in main() 95 == (long) alen); in main() 97 sv[1], reg_in, alen, alen, alen); in main() 102 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
|
/external/strace/tests/ |
D | sendfile.c | 71 const unsigned int alen = file_size - blen; in main() local 89 assert(syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) in main() 90 == (long) alen); in main() 92 sv[1], reg_in, alen, alen); in main() 95 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { in main() 97 sv[1], reg_in, (unsigned long) p_off, alen); in main() 100 assert(syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) in main() 101 == (long) alen); in main() 104 sv[1], reg_in, alen, alen, alen); in main() 109 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
|
D | sendfile64.c | 71 const unsigned int alen = file_size - blen; in main() local 89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) in main() 90 == (long) alen); in main() 92 sv[1], reg_in, alen, alen); in main() 94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) in main() 95 == (long) alen); in main() 97 sv[1], reg_in, alen, alen, alen); in main() 102 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
|
/external/strace/tests-mx32/ |
D | sendfile.c | 71 const unsigned int alen = file_size - blen; in main() local 89 assert(syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) in main() 90 == (long) alen); in main() 92 sv[1], reg_in, alen, alen); in main() 95 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { in main() 97 sv[1], reg_in, (unsigned long) p_off, alen); in main() 100 assert(syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) in main() 101 == (long) alen); in main() 104 sv[1], reg_in, alen, alen, alen); in main() 109 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
|
D | sendfile64.c | 71 const unsigned int alen = file_size - blen; in main() local 89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) in main() 90 == (long) alen); in main() 92 sv[1], reg_in, alen, alen); in main() 94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) in main() 95 == (long) alen); in main() 97 sv[1], reg_in, alen, alen, alen); in main() 102 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_sim_common.c | 499 size_t alen, plen, i, list_len; in eap_sim_parse_attr() local 526 alen = pos[1] * 4 - 2; in eap_sim_parse_attr() 528 apos, alen); in eap_sim_parse_attr() 534 alen -= 2; in eap_sim_parse_attr() 535 if ((!aka && (alen % GSM_RAND_LEN)) || in eap_sim_parse_attr() 536 (aka && alen != EAP_AKA_RAND_LEN)) { in eap_sim_parse_attr() 539 (unsigned long) alen); in eap_sim_parse_attr() 543 attr->num_chal = alen / GSM_RAND_LEN; in eap_sim_parse_attr() 553 alen -= 2; in eap_sim_parse_attr() 554 if (alen != EAP_AKA_AUTN_LEN) { in eap_sim_parse_attr() [all …]
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_arrays.py | 19 alen = len(init) 20 int_array = ARRAY(fmt, alen) 24 self.assertEqual(len(ia), alen) 27 values = [ia[i] for i in range(alen)] 31 with self.assertRaises(IndexError): ia[alen] 32 with self.assertRaises(IndexError): ia[-alen-1] 36 new_values = list(range(42, 42+alen)) 37 [setitem(ia, n, new_values[n]) for n in range(alen)] 38 values = [ia[i] for i in range(alen)] 43 values = [ia[i] for i in range(alen)] [all …]
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_gpsk.c | 244 u16 alen; in eap_gpsk_process_gpsk_2() local 263 alen = WPA_GET_BE16(pos); in eap_gpsk_process_gpsk_2() 265 if (end - pos < alen) { in eap_gpsk_process_gpsk_2() 272 data->id_peer = os_memdup(pos, alen); in eap_gpsk_process_gpsk_2() 275 "%d-octet ID_Peer", alen); in eap_gpsk_process_gpsk_2() 278 data->id_peer_len = alen; in eap_gpsk_process_gpsk_2() 281 pos += alen; in eap_gpsk_process_gpsk_2() 289 alen = WPA_GET_BE16(pos); in eap_gpsk_process_gpsk_2() 291 if (end - pos < alen) { in eap_gpsk_process_gpsk_2() 297 if (alen != sm->server_id_len || in eap_gpsk_process_gpsk_2() [all …]
|
/external/syslinux/com32/lib/syslinux/ |
D | floadfile.c | 50 size_t alen, clen, rlen, xlen; in floadfile() local 52 clen = alen = 0; in floadfile() 61 clen = alen = prefix_len; in floadfile() 70 alen += INCREMENTAL_CHUNK; in floadfile() 71 dp = realloc(data, alen); in floadfile() 76 rlen = fread((char *)data + clen, 1, alen - clen, f); in floadfile() 78 } while (clen == alen); in floadfile()
|
/external/toybox/toys/pending/ |
D | host.c | 71 i, j, ret, sec, count, rcode, qlen, alen, pllen = 0; in host_main() local 131 alen = recv(s, abuf, sizeof abuf, 0); in host_main() 132 } else alen = res_send(qbuf, qlen, abuf, sizeof abuf); in host_main() 134 if (alen < 12) error_exit("Host not found."); in host_main() 154 p += dn_expand(abuf, abuf+alen, p, rrname, sizeof(rrname)); in host_main() 168 dn_expand(abuf, abuf+alen, p, plname, sizeof plname); in host_main() 174 i = dn_expand(abuf, abuf+alen, p, plname, sizeof plname - 1); in host_main() 176 i += dn_expand(abuf, abuf+alen, p+i, plname+strlen(plname), in host_main() 191 dn_expand(abuf, abuf+alen, p+2, plname+strlen(plname), in host_main() 197 dn_expand(abuf, abuf+alen, p+6, plname+strlen(plname), in host_main()
|
/external/syslinux/com32/libupload/ |
D | upload_srec.c | 12 static int write_srecord(unsigned int len, unsigned int alen, in write_srecord() argument 21 switch (alen) { in write_srecord() 32 csum = (len+alen+1) + addr + (addr >> 8) + (addr >> 16) + (addr >> 24); in write_srecord() 37 p += sprintf(p, "S%c%02X%0*X", type, len+alen+1, alen*2, addr); in write_srecord()
|
/external/valgrind/VEX/priv/ |
D | guest_amd64_toIR.c | 4287 Int alen; in dis_Grp4() local 4328 IRTemp addr = disAMode ( &alen, vbi, pfx, delta, dis_buf, 0 ); in dis_Grp4() 4355 delta += alen; in dis_Grp4() 4789 Int alen; in dis_mul_E_G() local 4801 IRTemp addr = disAMode( &alen, vbi, pfx, delta0, dis_buf, 0 ); in dis_mul_E_G() 4820 return alen+delta0; in dis_mul_E_G() 4834 Int alen; in dis_imul_I_E_G() local 4848 IRTemp addr = disAMode( &alen, vbi, pfx, delta, dis_buf, in dis_imul_I_E_G() 4851 delta += alen; in dis_imul_I_E_G() 7329 Int alen, size; in dis_MMX_shiftG_byE() local [all …]
|
D | guest_x86_toIR.c | 2966 Int alen; in dis_Grp4() local 3004 IRTemp addr = disAMode ( &alen, sorb, delta, dis_buf ); in dis_Grp4() 3031 delta += alen; in dis_Grp4() 3328 Int alen; in dis_mul_E_G() local 3340 IRTemp addr = disAMode( &alen, sorb, delta0, dis_buf ); in dis_mul_E_G() 3358 return alen+delta0; in dis_mul_E_G() 3370 Int d32, alen; in dis_imul_I_E_G() local 3384 IRTemp addr = disAMode( &alen, sorb, delta, dis_buf ); in dis_imul_I_E_G() 3386 delta += alen; in dis_imul_I_E_G() 5709 Int alen, size; in dis_MMX_shiftG_byE() local [all …]
|
/external/libnfnetlink/src/ |
D | iftable.c | 32 u_int32_t alen; member 90 unsigned int alen; in iftable_add() local 91 this->alen = alen = RTA_PAYLOAD(cb[IFLA_ADDRESS]); in iftable_add() 92 if (alen > sizeof(this->addr)) in iftable_add() 93 alen = sizeof(this->addr); in iftable_add() 94 memcpy(this->addr, RTA_DATA(cb[IFLA_ADDRESS]), alen); in iftable_add() 96 this->alen = 0; in iftable_add()
|
/external/iproute2/lib/ |
D | ll_addr.c | 31 const char *ll_addr_n2a(const unsigned char *addr, int alen, int type, char *buf, int blen) in ll_addr_n2a() argument 36 if (alen == 4 && in ll_addr_n2a() 40 if (alen == 16 && type == ARPHRD_TUNNEL6) { in ll_addr_n2a() 44 for (i = 1, l = 2; i < alen && l < blen; i++, l += 3) in ll_addr_n2a()
|
D | mpls_pton.c | 45 int mpls_pton(int af, const char *src, void *addr, size_t alen) in mpls_pton() argument 47 unsigned int maxlabels = alen / sizeof(struct mpls_label); in mpls_pton()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_gpsk.c | 146 u16 alen; in eap_gpsk_process_id_server() local 152 alen = WPA_GET_BE16(pos); in eap_gpsk_process_id_server() 154 if (end - pos < alen) { in eap_gpsk_process_id_server() 159 data->id_server = os_memdup(pos, alen); in eap_gpsk_process_id_server() 164 data->id_server_len = alen; in eap_gpsk_process_id_server() 167 pos += alen; in eap_gpsk_process_id_server() 520 u16 alen; in eap_gpsk_validate_pd_payload_2() local 530 alen = WPA_GET_BE16(pos); in eap_gpsk_validate_pd_payload_2() 532 if (end - pos < alen) { in eap_gpsk_validate_pd_payload_2() 534 "%d-octet PD_Payload_2", alen); in eap_gpsk_validate_pd_payload_2() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | isakmp_cfg.c | 322 size_t alen; local 363 alen = ntohs(attr->lorv); 366 if (tlen < alen) { 375 s_isakmp_cfg_type(type), alen); 439 attr = (struct isakmp_data *)(npp + sizeof(*attr) + alen); 440 tlen -= (sizeof(*attr) + alen); 472 alen = ntohs(attrpl->h.len) - sizeof(*attrpl); 473 if ((buf = vmalloc(alen)) == NULL) { 495 size_t alen; local 548 alen = ntohs(attr->lorv); [all …]
|
D | isakmp_unity.c | 208 int alen = ntohs(attr->lorv); local 217 if (alen) 218 count = alen / sizeof(struct unity_network); 231 if (alen) 232 count = alen / sizeof(struct unity_network);
|
/external/syslinux/utils/ |
D | pxelinux-options | 210 my($mzmagic, $junk, $magic, $len, $flags, $boff, $blen, $aoff, $alen) 227 ($blen, $alen, $bufsize, $junk) = unpack("VVVV", $data); 252 if ($alen == 0) { 256 return undef unless (read($file, $adata, $alen) == $alen);
|
/external/wpa_supplicant_8/src/crypto/ |
D | aes-siv.c | 42 static void xorend(u8 *a, int alen, const u8 *b, int blen) in xorend() argument 46 if (alen < blen) in xorend() 50 a[alen - blen + i] ^= b[i]; in xorend()
|