/external/python/cpython2/Lib/test/ |
D | test_codeop.py | 126 ai = self.assertIncomplete 128 ai("(a **") 129 ai("(a,b,") 130 ai("(a,b,(") 131 ai("(a,b,(") 132 ai("a = (") 133 ai("a = {") 134 ai("b + {") 136 ai("if 9==3:\n pass\nelse:") 137 ai("if 9==3:\n pass\nelse:\n") [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_codeop.py | 126 ai = self.assertIncomplete 128 ai("(a **") 129 ai("(a,b,") 130 ai("(a,b,(") 131 ai("(a,b,(") 132 ai("a = (") 133 ai("a = {") 134 ai("b + {") 136 ai("if 9==3:\n pass\nelse:") 137 ai("if 9==3:\n pass\nelse:\n") [all …]
|
/external/u-boot/drivers/mtd/ubi/ |
D | attach.c | 87 static int self_check_ai(struct ubi_device *ubi, struct ubi_attach_info *ai); 114 static int add_to_list(struct ubi_attach_info *ai, int pnum, int vol_id, in add_to_list() argument 119 if (list == &ai->free) { in add_to_list() 121 } else if (list == &ai->erase) { in add_to_list() 123 } else if (list == &ai->alien) { in add_to_list() 125 ai->alien_peb_count += 1; in add_to_list() 129 aeb = kmem_cache_alloc(ai->aeb_slab_cache, GFP_KERNEL); in add_to_list() 155 static int add_corrupted(struct ubi_attach_info *ai, int pnum, int ec) in add_corrupted() argument 161 aeb = kmem_cache_alloc(ai->aeb_slab_cache, GFP_KERNEL); in add_corrupted() 165 ai->corr_peb_count += 1; in add_corrupted() [all …]
|
D | vtbl.c | 295 static int create_vtbl(struct ubi_device *ubi, struct ubi_attach_info *ai, argument 309 new_aeb = ubi_early_get_peb(ubi, ai); 321 vid_hdr->sqnum = cpu_to_be64(++ai->max_sqnum); 337 err = ubi_add_to_av(ubi, ai, new_aeb->pnum, new_aeb->ec, vid_hdr, 0); 338 kmem_cache_free(ai->aeb_slab_cache, new_aeb); 348 list_add(&new_aeb->u.list, &ai->erase); 351 kmem_cache_free(ai->aeb_slab_cache, new_aeb); 369 struct ubi_attach_info *ai, argument 445 err = create_vtbl(ubi, ai, 1, leb[0]); 468 err = create_vtbl(ubi, ai, 0, leb[1]); [all …]
|
D | fastmap.c | 142 static int add_aeb(struct ubi_attach_info *ai, struct list_head *list, in add_aeb() argument 147 aeb = kmem_cache_alloc(ai->aeb_slab_cache, GFP_KERNEL); in add_aeb() 157 ai->ec_sum += aeb->ec; in add_aeb() 158 ai->ec_count++; in add_aeb() 160 if (ai->max_ec < aeb->ec) in add_aeb() 161 ai->max_ec = aeb->ec; in add_aeb() 163 if (ai->min_ec > aeb->ec) in add_aeb() 164 ai->min_ec = aeb->ec; in add_aeb() 183 static struct ubi_ainf_volume *add_vol(struct ubi_attach_info *ai, int vol_id, in add_vol() argument 188 struct rb_node **p = &ai->volumes.rb_node, *parent = NULL; in add_vol() [all …]
|
/external/curl/lib/ |
D | curl_addrinfo.c | 121 const struct addrinfo *ai; in Curl_getaddrinfo_ex() local 137 for(ai = aihead; ai != NULL; ai = ai->ai_next) { in Curl_getaddrinfo_ex() 141 if(ai->ai_family == AF_INET) in Curl_getaddrinfo_ex() 144 else if(ai->ai_family == AF_INET6) in Curl_getaddrinfo_ex() 151 if((ai->ai_addr == NULL) || !(ai->ai_addrlen > 0)) in Curl_getaddrinfo_ex() 155 if((size_t)ai->ai_addrlen < ss_size) in Curl_getaddrinfo_ex() 167 ca->ai_flags = ai->ai_flags; in Curl_getaddrinfo_ex() 168 ca->ai_family = ai->ai_family; in Curl_getaddrinfo_ex() 169 ca->ai_socktype = ai->ai_socktype; in Curl_getaddrinfo_ex() 170 ca->ai_protocol = ai->ai_protocol; in Curl_getaddrinfo_ex() [all …]
|
D | hostip6.c | 100 static void dump_addrinfo(struct connectdata *conn, const Curl_addrinfo *ai) in dump_addrinfo() argument 103 for(; ai; ai = ai->ai_next) { in dump_addrinfo() 107 ai->ai_family, ai->ai_canonname ? ai->ai_canonname : "<none>"); in dump_addrinfo() 108 if(Curl_printable_address(ai, buf, sizeof(buf))) in dump_addrinfo()
|
D | hostip4.c | 97 Curl_addrinfo *ai = NULL; in Curl_getaddrinfo() local 105 ai = Curl_ipv4_resolve_r(hostname, port); in Curl_getaddrinfo() 106 if(!ai) in Curl_getaddrinfo() 109 return ai; in Curl_getaddrinfo() 129 Curl_addrinfo *ai = NULL; local 152 (void)Curl_getaddrinfo_ex(hostname, sbufptr, &hints, &ai); 300 ai = Curl_he2ai(h, port); 306 return ai;
|
/external/libevent/test/ |
D | regress_util.c | 787 ai_find_by_family(struct evutil_addrinfo *ai, int family) in ai_find_by_family() argument 789 while (ai) { in ai_find_by_family() 790 if (ai->ai_family == family) in ai_find_by_family() 791 return ai; in ai_find_by_family() 792 ai = ai->ai_next; in ai_find_by_family() 798 ai_find_by_protocol(struct evutil_addrinfo *ai, int protocol) in ai_find_by_protocol() argument 800 while (ai) { in ai_find_by_protocol() 801 if (ai->ai_protocol == protocol) in ai_find_by_protocol() 802 return ai; in ai_find_by_protocol() 803 ai = ai->ai_next; in ai_find_by_protocol() [all …]
|
D | regress_dns.c | 1264 struct evutil_addrinfo hints, *ai = NULL; in test_bufferevent_connect_hostname() local 1270 "nonesuch.nowhere.example.com", "80", &hints, &ai); in test_bufferevent_connect_hostname() 1322 struct evutil_addrinfo *ai; member 1333 go->ai = res; in gai_cb() 1387 tt_ptr_op(local_outcome.ai,!=,NULL); in test_getaddrinfo_async() 1388 test_ai_eq(local_outcome.ai, "1.2.3.4:80", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async() 1389 evutil_freeaddrinfo(local_outcome.ai); in test_getaddrinfo_async() 1390 local_outcome.ai = NULL; in test_getaddrinfo_async() 1404 tt_ptr_op(local_outcome.ai,==,NULL); in test_getaddrinfo_async() 1415 tt_assert(local_outcome.ai); in test_getaddrinfo_async() [all …]
|
/external/openssh/openbsd-compat/ |
D | fake-rfc2553.c | 110 freeaddrinfo(struct addrinfo *ai) in freeaddrinfo() argument 114 for(; ai != NULL;) { in freeaddrinfo() 115 next = ai->ai_next; in freeaddrinfo() 116 free(ai); in freeaddrinfo() 117 ai = next; in freeaddrinfo() 126 struct addrinfo *ai; in malloc_ai() local 128 ai = malloc(sizeof(*ai) + sizeof(struct sockaddr_in)); in malloc_ai() 129 if (ai == NULL) in malloc_ai() 132 memset(ai, '\0', sizeof(*ai) + sizeof(struct sockaddr_in)); in malloc_ai() 134 ai->ai_addr = (struct sockaddr *)(ai + 1); in malloc_ai() [all …]
|
/external/toybox/lib/ |
D | net.c | 22 struct addrinfo info, *ai; in xgetaddrinfo() local 32 rc = getaddrinfo(host, port, &info, &ai); in xgetaddrinfo() 33 if (rc || !ai) in xgetaddrinfo() 37 return ai; in xgetaddrinfo() 42 struct addrinfo *ai; in xconnbind() local 46 for (ai = ai_arg; ai; ai = ai->ai_next) { in xconnbind() 47 fd = (ai->ai_next ? socket : xsocket)(ai->ai_family, ai->ai_socktype, in xconnbind() 48 ai->ai_protocol); in xconnbind() 50 if (!(dobind ? bind : connect)(fd, ai->ai_addr, ai->ai_addrlen)) break; in xconnbind() 51 else if (!ai->ai_next) perror_exit_raw(dobind ? "bind" : "connect"); in xconnbind() [all …]
|
/external/curl/tests/unit/ |
D | unit1305.c | 78 static Curl_addrinfo *ai; in fake_ai() local 80 ai = calloc(1, sizeof(Curl_addrinfo)); in fake_ai() 81 if(!ai) in fake_ai() 84 ai->ai_canonname = strdup("dummy"); in fake_ai() 85 if(!ai->ai_canonname) { in fake_ai() 86 free(ai); in fake_ai() 90 ai->ai_addr = calloc(1, sizeof(struct sockaddr_in)); in fake_ai() 91 if(!ai->ai_addr) { in fake_ai() 92 free(ai->ai_canonname); in fake_ai() 93 free(ai); in fake_ai() [all …]
|
/external/python/cpython2/Modules/ |
D | getaddrinfo.c | 157 #define GET_CANONNAME(ai, str) \ argument 159 if (((ai)->ai_canonname = (char *)malloc(strlen(str) + 1)) != NULL) {\ 160 strcpy((ai)->ai_canonname, (str));\ 168 #define GET_AI(ai, gai_afd, addr, port) {\ argument 170 if (((ai) = (struct addrinfo *)malloc(sizeof(struct addrinfo) +\ 173 memcpy(ai, pai, sizeof(struct addrinfo));\ 174 (ai)->ai_addr = (struct sockaddr *)((ai) + 1);\ 175 memset((ai)->ai_addr, 0, (gai_afd)->a_socklen);\ 176 (ai)->ai_addr->sa_len = (ai)->ai_addrlen = (gai_afd)->a_socklen;\ 177 (ai)->ai_addr->sa_family = (ai)->ai_family = (gai_afd)->a_af;\ [all …]
|
/external/python/cpython3/Modules/ |
D | getaddrinfo.c | 157 #define GET_CANONNAME(ai, str) \ argument 159 if (((ai)->ai_canonname = (char *)malloc(strlen(str) + 1)) != NULL) {\ 160 strcpy((ai)->ai_canonname, (str));\ 168 #define GET_AI(ai, gai_afd, addr, port) {\ argument 170 if (((ai) = (struct addrinfo *)malloc(sizeof(struct addrinfo) +\ 173 memcpy(ai, pai, sizeof(struct addrinfo));\ 174 (ai)->ai_addr = (struct sockaddr *)((ai) + 1);\ 175 memset((ai)->ai_addr, 0, (gai_afd)->a_socklen);\ 176 (ai)->ai_addr->sa_len = (ai)->ai_addrlen = (gai_afd)->a_socklen;\ 177 (ai)->ai_addr->sa_family = (ai)->ai_family = (gai_afd)->a_af;\ [all …]
|
/external/iperf3/src/ |
D | iperf_sctp.c | 511 struct addrinfo *ai, *ai0; in iperf_sctp_bindx() local 551 if (getaddrinfo(xbe0->name, servname, &hints, &xbe0->ai) != 0) { in iperf_sctp_bindx() 557 ai = xbe0->ai; in iperf_sctp_bindx() 558 if (domain != AF_UNSPEC && domain != ai->ai_family) { in iperf_sctp_bindx() 563 if (bind(s, (struct sockaddr *)ai->ai_addr, ai->ai_addrlen) < 0) { in iperf_sctp_bindx() 573 sa = (struct sockaddr *)ai->ai_addr; in iperf_sctp_bindx() 575 sin = (struct sockaddr_in *)ai->ai_addr; in iperf_sctp_bindx() 578 sin6 = (struct sockaddr_in6 *)ai->ai_addr; in iperf_sctp_bindx() 593 if (xbe->ai != NULL) in iperf_sctp_bindx() 594 freeaddrinfo(xbe->ai); in iperf_sctp_bindx() [all …]
|
/external/boringssl/src/crypto/fipsmodule/bn/asm/ |
D | co-586.pl | 29 local($a,$ai,$b,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_; 34 &comment("mul a[$ai]*b[$bi]"); 57 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_; 62 &comment("sqr a[$ai]*a[$bi]"); 68 if ($ai == $bi) 86 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_; 91 &comment("sqr a[$ai]*a[$bi]"); 97 if ($ai == $bi) 120 local($i,$as,$ae,$bs,$be,$ai,$bi); 151 $ai=$as; [all …]
|
/external/lzma/CPP/7zip/UI/Common/ |
D | UpdatePair.cpp | 140 const CArcItem *ai = NULL; in GetUpdatePairInfoList() local 154 ai = &arcItems[arcIndex2]; in GetUpdatePairInfoList() 158 compareResult = CompareFileNames(dirNames[dirIndex2], ai->Name); in GetUpdatePairInfoList() 161 if (di->IsDir() != ai->IsDir) in GetUpdatePairInfoList() 162 compareResult = (ai->IsDir ? 1 : -1); in GetUpdatePairInfoList() 176 name = &ai->Name; in GetUpdatePairInfoList() 177 pair.State = ai->Censored ? in GetUpdatePairInfoList() 187 ThrowError(k_Duplicate_inArc_Message, ai->Name, arcItems[arcIndices[arcIndex + dupl]].Name); in GetUpdatePairInfoList() 190 if (!ai->Censored) in GetUpdatePairInfoList() 191 ThrowError(k_NotCensoredCollision_Message, *name, ai->Name); in GetUpdatePairInfoList() [all …]
|
/external/toybox/toys/net/ |
D | ping.c | 89 struct addrinfo *ai, *ai2; in ping_main() local 124 for (ai = ai2; ai; ai = ai->ai_next) { in ping_main() 127 if (family && family!=ai->ai_family) continue; in ping_main() 128 if (ai->ai_family!=AF_INET && ai->ai_family!=AF_INET6) continue; in ping_main() 133 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family!=ai->ai_family in ping_main() 142 if (!ai) in ping_main() 144 TT.sa = ai->ai_addr; in ping_main() 147 sa->sa_family = ai->ai_family; in ping_main() 148 TT.sock = socket(ai->ai_family, SOCK_DGRAM, in ping_main() 149 len = (ai->ai_family == AF_INET) ? IPPROTO_ICMP : IPPROTO_ICMPV6); in ping_main() [all …]
|
/external/libpcap/ |
D | nametoaddr.c | 290 struct addrinfo hints, *res, *ai; in pcap_nametoport() local 322 for (ai = res; ai != NULL; ai = ai->ai_next) { in pcap_nametoport() 326 if (ai->ai_addr != NULL) { in pcap_nametoport() 330 if (ai->ai_addr->sa_family == AF_INET) { in pcap_nametoport() 331 in4 = (struct sockaddr_in *)ai->ai_addr; in pcap_nametoport() 336 if (ai->ai_addr->sa_family == AF_INET6) { in pcap_nametoport() 337 in6 = (struct sockaddr_in6 *)ai->ai_addr; in pcap_nametoport() 366 for (ai = res; ai != NULL; ai = ai->ai_next) { in pcap_nametoport() 370 if (ai->ai_addr != NULL) { in pcap_nametoport() 374 if (ai->ai_addr->sa_family == AF_INET) { in pcap_nametoport() [all …]
|
/external/swiftshader/src/Reactor/ |
D | Thread.hpp | 301 AtomicInt() : ai() {} in AtomicInt() 302 AtomicInt(int i) : ai(i) {} in AtomicInt() 304 inline operator int() const { return ai.load(std::memory_order_acquire); } in operator int() 305 …inline void operator=(const AtomicInt& i) { ai.store(i.ai.load(std::memory_order_acquire), std::me… in operator =() 306 inline void operator=(int i) { ai.store(i, std::memory_order_release); } in operator =() 307 inline void operator--() { ai.fetch_sub(1, std::memory_order_acq_rel); } in operator --() 308 inline void operator++() { ai.fetch_add(1, std::memory_order_acq_rel); } in operator ++() 309 inline int operator--(int) { return ai.fetch_sub(1, std::memory_order_acq_rel) - 1; } in operator --() 310 inline int operator++(int) { return ai.fetch_add(1, std::memory_order_acq_rel) + 1; } in operator ++() 311 inline void operator-=(int i) { ai.fetch_sub(i, std::memory_order_acq_rel); } in operator -=() [all …]
|
/external/eigen/test/ |
D | sparse.h | 74 Index ai(i), aj(j); 76 std::swap(ai,aj); 86 if ((flags & MakeLowerTriangular) && aj>ai) 88 else if ((flags & MakeUpperTriangular) && aj<ai) 99 nonzeroCoords->push_back(Matrix<StorageIndex,2,1> (ai,aj)); 103 zeroCoords->push_back(Matrix<StorageIndex,2,1> (ai,aj)); 105 refMat(ai,aj) = v; 127 int ai(i), aj(j); 129 std::swap(ai,aj); 136 if ((flags & MakeLowerTriangular) && aj>ai) [all …]
|
/external/swiftshader/src/Common/ |
D | Thread.hpp | 301 AtomicInt() : ai() {} in AtomicInt() 302 AtomicInt(int i) : ai(i) {} in AtomicInt() 304 inline operator int() const { return ai.load(std::memory_order_acquire); } in operator int() 305 …inline void operator=(const AtomicInt& i) { ai.store(i.ai.load(std::memory_order_acquire), std::me… in operator =() 306 inline void operator=(int i) { ai.store(i, std::memory_order_release); } in operator =() 307 inline void operator--() { ai.fetch_sub(1, std::memory_order_acq_rel); } in operator --() 308 inline void operator++() { ai.fetch_add(1, std::memory_order_acq_rel); } in operator ++() 309 inline int operator--(int) { return ai.fetch_sub(1, std::memory_order_acq_rel) - 1; } in operator --() 310 inline int operator++(int) { return ai.fetch_add(1, std::memory_order_acq_rel) + 1; } in operator ++() 311 inline void operator-=(int i) { ai.fetch_sub(i, std::memory_order_acq_rel); } in operator -=() [all …]
|
/external/swiftshader/src/System/ |
D | Thread.hpp | 301 AtomicInt() : ai() {} in AtomicInt() 302 AtomicInt(int i) : ai(i) {} in AtomicInt() 304 inline operator int() const { return ai.load(std::memory_order_acquire); } in operator int() 305 …inline void operator=(const AtomicInt& i) { ai.store(i.ai.load(std::memory_order_acquire), std::me… in operator =() 306 inline void operator=(int i) { ai.store(i, std::memory_order_release); } in operator =() 307 inline void operator--() { ai.fetch_sub(1, std::memory_order_acq_rel); } in operator --() 308 inline void operator++() { ai.fetch_add(1, std::memory_order_acq_rel); } in operator ++() 309 inline int operator--(int) { return ai.fetch_sub(1, std::memory_order_acq_rel) - 1; } in operator --() 310 inline int operator++(int) { return ai.fetch_add(1, std::memory_order_acq_rel) + 1; } in operator ++() 311 inline void operator-=(int i) { ai.fetch_sub(i, std::memory_order_acq_rel); } in operator -=() [all …]
|
/external/toybox/toys/pending/ |
D | host.c | 75 struct addrinfo *ai, iplit_hints = { .ai_flags = AI_NUMERICHOST }; in host_main() local 81 if (!getaddrinfo(name, 0, &iplit_hints, &ai)) { in host_main() 85 if (ai->ai_family == AF_INET) { in host_main() 86 a = (void *)&((struct sockaddr_in *)ai->ai_addr)->sin_addr; in host_main() 89 } else if (ai->ai_family == AF_INET6) { in host_main() 90 a = (void *)&((struct sockaddr_in6 *)ai->ai_addr)->sin6_addr; in host_main() 122 if ((ret = getaddrinfo(nsname, "53", &ns_hints, &ai)) < 0) in host_main() 124 int s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in host_main() 125 if (s < 0 || connect(s, ai->ai_addr, ai->ai_addrlen) < 0) in host_main()
|