/external/wpa_supplicant_8/src/l2_packet/ |
D | l2_packet_winpcap.c | 65 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 67 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 72 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 78 if (l2 == NULL) in l2_packet_send() 81 if (l2->l2_hdr) { in l2_packet_send() 82 ret = pcap_sendpacket(l2->pcap, buf, len); in l2_packet_send() 90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send() 105 struct l2_packet_data *l2 = (struct l2_packet_data *) user; in l2_packet_receive_cb() local 112 if (l2->l2_hdr) { in l2_packet_receive_cb() [all …]
|
D | l2_packet_pcap.c | 43 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 45 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 51 static int l2_packet_init_libdnet(struct l2_packet_data *l2) in l2_packet_init_libdnet() argument 55 l2->eth = eth_open(l2->ifname); in l2_packet_init_libdnet() 56 if (!l2->eth) { in l2_packet_init_libdnet() 59 l2->ifname, strerror(errno)); in l2_packet_init_libdnet() 63 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet() 66 l2->ifname, strerror(errno)); in l2_packet_init_libdnet() 67 eth_close(l2->eth); in l2_packet_init_libdnet() 68 l2->eth = NULL; in l2_packet_init_libdnet() [all …]
|
D | l2_packet_linux.c | 108 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 110 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 115 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 122 if (l2 == NULL) in l2_packet_send() 124 if (l2->l2_hdr) { in l2_packet_send() 125 ret = send(l2->fd, buf, len, 0); in l2_packet_send() 133 ll.sll_ifindex = l2->ifindex; in l2_packet_send() 137 ret = sendto(l2->fd, buf, len, 0, (struct sockaddr *) &ll, in l2_packet_send() 150 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local 170 if (l2->fd_br_rx >= 0) { in l2_packet_receive() [all …]
|
D | l2_packet_ndis.c | 56 struct l2_packet_data *l2[2]; member 84 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 86 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 91 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 102 if (l2 == NULL) in l2_packet_send() 112 if (l2->l2_hdr) { in l2_packet_send() 122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 157 static void l2_packet_callback(struct l2_packet_data *l2); 160 static void l2_packet_rx_thread_try_read(struct l2_packet_data *l2) in l2_packet_rx_thread_try_read() argument 165 if (!ReadFile(driver_ndis_get_ndisuio_handle(), l2->rx_buf, in l2_packet_rx_thread_try_read() [all …]
|
D | l2_packet_privsep.c | 29 static int wpa_priv_cmd(struct l2_packet_data *l2, int cmd, in wpa_priv_cmd() argument 43 msg.msg_name = &l2->priv_addr; in wpa_priv_cmd() 44 msg.msg_namelen = sizeof(l2->priv_addr); in wpa_priv_cmd() 46 if (sendmsg(l2->fd, &msg, 0) < 0) { in wpa_priv_cmd() 55 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 57 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 62 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 81 msg.msg_name = &l2->priv_addr; in l2_packet_send() 82 msg.msg_namelen = sizeof(l2->priv_addr); in l2_packet_send() 84 if (sendmsg(l2->fd, &msg, 0) < 0) { in l2_packet_send() [all …]
|
D | l2_packet_freebsd.c | 48 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 50 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 55 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 58 if (!l2->l2_hdr) { in l2_packet_send() 64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); in l2_packet_send() 71 return pcap_inject(l2->pcap, buf, len); in l2_packet_send() 77 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local 87 if (!l2->rx_callback || !packet || hdr.caplen < sizeof(*ethhdr)) in l2_packet_receive() 91 if (l2->l2_hdr) { in l2_packet_receive() [all …]
|
D | l2_packet_none.c | 30 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 32 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 37 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 40 if (l2 == NULL) in l2_packet_send() 54 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local 62 l2->rx_callback(l2->rx_callback_ctx, NULL /* TODO: src addr */, in l2_packet_receive() 73 struct l2_packet_data *l2; in l2_packet_init() local 75 l2 = os_zalloc(sizeof(struct l2_packet_data)); in l2_packet_init() 76 if (l2 == NULL) in l2_packet_init() 78 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname)); in l2_packet_init() [all …]
|
/external/llvm-project/libcxx/test/std/containers/sequences/list/list.ops/ |
D | splice_pos_list.pass.cpp | 25 std::list<int> l2; in main() local 26 l1.splice(l1.end(), l2); in main() 29 assert(l2.size() == 0); in main() 30 assert(distance(l2.begin(), l2.end()) == 0); in main() 34 std::list<int> l2(a2, a2+1); in main() local 35 l1.splice(l1.end(), l2); in main() 38 assert(l2.size() == 0); in main() 39 assert(distance(l2.begin(), l2.end()) == 0); in main() 45 std::list<int> l2(a2, a2+2); in main() local 46 l1.splice(l1.end(), l2); in main() [all …]
|
D | splice_pos_list_iter.pass.cpp | 25 std::list<int> l2(a2, a2+1); in main() local 26 l1.splice(l1.end(), l2, l2.begin()); in main() 29 assert(l2.size() == 0); in main() 30 assert(distance(l2.begin(), l2.end()) == 0); in main() 36 std::list<int> l2(a2, a2+2); in main() local 37 l1.splice(l1.end(), l2, l2.begin()); in main() 40 assert(l2.size() == 1); in main() 41 assert(distance(l2.begin(), l2.end()) == 1); in main() 44 i = l2.begin(); in main() 49 std::list<int> l2(a2, a2+2); in main() local [all …]
|
D | splice_pos_list_iter_iter.pass.cpp | 61 std::list<int> l2(a2, a2+3); in main() local 62 l1.splice(l1.begin(), l2, next(l2.begin()), l2.end()); in main() 75 assert(l2.size() == 1); in main() 76 i = l2.begin(); in main() 81 std::list<int> l2(a2, a2+3); in main() local 82 l1.splice(next(l1.begin()), l2, next(l2.begin()), l2.end()); in main() 95 assert(l2.size() == 1); in main() 96 i = l2.begin(); in main() 101 std::list<int> l2(a2, a2+3); in main() local 102 l1.splice(l1.end(), l2, next(l2.begin()), l2.end()); in main() [all …]
|
/external/libcxx/test/std/containers/sequences/list/list.ops/ |
D | splice_pos_list.pass.cpp | 26 std::list<int> l2; in main() local 27 l1.splice(l1.end(), l2); in main() 30 assert(l2.size() == 0); in main() 31 assert(distance(l2.begin(), l2.end()) == 0); in main() 35 std::list<int> l2(a2, a2+1); in main() local 36 l1.splice(l1.end(), l2); in main() 39 assert(l2.size() == 0); in main() 40 assert(distance(l2.begin(), l2.end()) == 0); in main() 46 std::list<int> l2(a2, a2+2); in main() local 47 l1.splice(l1.end(), l2); in main() [all …]
|
D | splice_pos_list_iter.pass.cpp | 26 std::list<int> l2(a2, a2+1); in main() local 27 l1.splice(l1.end(), l2, l2.begin()); in main() 30 assert(l2.size() == 0); in main() 31 assert(distance(l2.begin(), l2.end()) == 0); in main() 37 std::list<int> l2(a2, a2+2); in main() local 38 l1.splice(l1.end(), l2, l2.begin()); in main() 41 assert(l2.size() == 1); in main() 42 assert(distance(l2.begin(), l2.end()) == 1); in main() 45 i = l2.begin(); in main() 50 std::list<int> l2(a2, a2+2); in main() local [all …]
|
D | splice_pos_list_iter_iter.pass.cpp | 62 std::list<int> l2(a2, a2+3); in main() local 63 l1.splice(l1.begin(), l2, next(l2.begin()), l2.end()); in main() 76 assert(l2.size() == 1); in main() 77 i = l2.begin(); in main() 82 std::list<int> l2(a2, a2+3); in main() local 83 l1.splice(next(l1.begin()), l2, next(l2.begin()), l2.end()); in main() 96 assert(l2.size() == 1); in main() 97 i = l2.begin(); in main() 102 std::list<int> l2(a2, a2+3); in main() local 103 l1.splice(l1.end(), l2, next(l2.begin()), l2.end()); in main() [all …]
|
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/ |
D | try_lock.pass.cpp | 132 L0 l2; in main() local 133 assert(std::try_lock(l0, l1, l2) == -1); in main() 136 assert(l2.locked()); in main() 141 L1 l2; in main() local 142 assert(std::try_lock(l0, l1, l2) == 0); in main() 145 assert(!l2.locked()); in main() 151 L2 l2; in main() local 154 (void)std::try_lock(l0, l1, l2); in main() 161 assert(!l2.locked()); in main() 167 L2 l2; in main() local [all …]
|
D | lock.pass.cpp | 194 L0 l2; in main() local 195 std::lock(l0, l1, l2); in main() 198 assert(l2.locked()); in main() 204 L2 l2; in main() local 207 std::lock(l0, l1, l2); in main() 214 assert(!l2.locked()); in main() 221 L1 l2; in main() local 222 std::lock(l0, l1, l2); in main() 225 assert(l2.locked()); in main() 230 L0 l2; in main() local [all …]
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/ |
D | try_lock.pass.cpp | 133 L0 l2; in main() local 134 assert(std::try_lock(l0, l1, l2) == -1); in main() 137 assert(l2.locked()); in main() 142 L1 l2; in main() local 143 assert(std::try_lock(l0, l1, l2) == 0); in main() 146 assert(!l2.locked()); in main() 152 L2 l2; in main() local 155 (void)std::try_lock(l0, l1, l2); in main() 162 assert(!l2.locked()); in main() 168 L2 l2; in main() local [all …]
|
D | lock.pass.cpp | 195 L0 l2; in main() local 196 std::lock(l0, l1, l2); in main() 199 assert(l2.locked()); in main() 205 L2 l2; in main() local 208 std::lock(l0, l1, l2); in main() 215 assert(!l2.locked()); in main() 222 L1 l2; in main() local 223 std::lock(l0, l1, l2); in main() 226 assert(l2.locked()); in main() 231 L0 l2; in main() local [all …]
|
/external/llvm-project/libclc/generic/lib/geometric/ |
D | normalize.cl | 33 float l2 = dot(p, p); 35 if (l2 < FLT_MIN) { 37 l2 = dot(p, p); 38 } else if (l2 == INFINITY) { 40 l2 = dot(p, p); 41 if (l2 == INFINITY) { 43 l2 = dot(p, p); 46 return p * rsqrt(l2); 53 float l2 = dot(p, p); 55 if (l2 < FLT_MIN) { [all …]
|
/external/tensorflow/tensorflow/python/keras/ |
D | regularizers.py | 236 def __init__(self, l1=0., l2=0.): # pylint: disable=redefined-outer-name argument 241 l2 = 0. if l2 is None else l2 243 _check_penalty_number(l2) 246 self.l2 = backend.cast_to_floatx(l2) 252 if self.l2: 253 regularization += self.l2 * math_ops.reduce_sum(math_ops.square(x)) 257 return {'l1': float(self.l1), 'l2': float(self.l2)} 311 def __init__(self, l2=0.01, **kwargs): # pylint: disable=redefined-outer-name argument 312 l2 = kwargs.pop('l', l2) # Backwards compatibility 316 l2 = 0.01 if l2 is None else l2 [all …]
|
/external/python/cpython3/Lib/lib2to3/tests/ |
D | test_pytree.py | 46 l2 = pytree.Leaf(100, "foo", context=(" ", (10, 1))) 47 self.assertEqual(str(l2), " foo") 58 l2 = pytree.Leaf(100, "foo", context=(" ", (1, 0))) 59 self.assertEqual(l1, l2) 75 l2 = pytree.Leaf(200, "bar") 76 n1 = pytree.Node(1000, [l1, l2]) 78 self.assertEqual(n1.children, [l1, l2]) 82 l2 = pytree.Leaf(100, "bar", context=(" ", (1, 0))) 83 n1 = pytree.Node(1000, [l1, l2]) 85 "Node(1000, [%s, %s])" % (repr(l1), repr(l2))) [all …]
|
/external/python/cpython2/Lib/lib2to3/tests/ |
D | test_pytree.py | 68 l2 = pytree.Leaf(100, "foo", context=(" ", (10, 1))) 69 self.assertEqual(str(l2), " foo") 80 l2 = pytree.Leaf(100, "foo", context=(" ", (1, 0))) 81 self.assertEqual(l1, l2) 97 l2 = pytree.Leaf(200, "bar") 98 n1 = pytree.Node(1000, [l1, l2]) 100 self.assertEqual(n1.children, [l1, l2]) 104 l2 = pytree.Leaf(100, "bar", context=(" ", (1, 0))) 105 n1 = pytree.Node(1000, [l1, l2]) 107 "Node(1000, [%s, %s])" % (repr(l1), repr(l2))) [all …]
|
/external/llvm-project/libcxx/test/std/containers/sequences/vector/vector.cons/ |
D | assign_move.pass.cpp | 35 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() local 36 l2 = std::move(l); in main() 37 assert(l2 == lo); in main() 39 assert(l2.get_allocator() == lo.get_allocator()); in main() 40 assert(is_contiguous_container_asan_correct(l2)); in main() 54 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() local 55 l2 = std::move(l); in main() 56 assert(l2 == lo); in main() 58 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main() 59 assert(is_contiguous_container_asan_correct(l2)); in main() [all …]
|
/external/libcxx/test/std/containers/sequences/vector/vector.cons/ |
D | assign_move.pass.cpp | 35 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() local 36 l2 = std::move(l); in main() 37 assert(l2 == lo); in main() 39 assert(l2.get_allocator() == lo.get_allocator()); in main() 40 assert(is_contiguous_container_asan_correct(l2)); in main() 54 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() local 55 l2 = std::move(l); in main() 56 assert(l2 == lo); in main() 58 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main() 59 assert(is_contiguous_container_asan_correct(l2)); in main() [all …]
|
/external/javaparser/javaparser-core/generated-sources/javacc/com/github/javaparser/ |
D | GeneratedJavaParserTokenManager.java | 2222 long l2 = 1L << (curChar & 077); in jjMoveNfa_0() local 2229 if (!jjCanMove_3(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0() 2236 if (jjCanMove_0(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0() 2241 if (jjCanMove_2(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0() 2249 if (jjCanMove_1(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0() 2253 if (jjCanMove_1(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0() 2257 if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0() 2264 if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0() 2271 if (jjCanMove_1(hiByte, i1, i2, l1, l2) && kind > 6) in jjMoveNfa_0() 2274 default : if (i1 == 0 || l1 == 0 || i2 == 0 || l2 == 0) break; else break; in jjMoveNfa_0() [all …]
|
/external/llvm-project/libcxx/test/std/containers/sequences/list/list.cons/ |
D | copy.pass.cpp | 25 std::list<int> l2 = l; in main() local 26 assert(l2 == l); in main() 30 std::list<int, test_allocator<int> > l2 = l; in main() local 31 assert(l2 == l); in main() 32 assert(l2.get_allocator() == l.get_allocator()); in main() 37 std::list<int, other_allocator<int> > l2 = l; in main() local 38 assert(l2 == l); in main() 39 assert(l2.get_allocator() == other_allocator<int>(-2)); in main() 43 std::list<int, min_allocator<int>> l2 = l; in main() local 44 assert(l2 == l); in main() [all …]
|