Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 4554) sorted by relevance

12345678910>>...183

/external/clang/test/Sema/
Daarch64-neon-ranges.c39 void test_ld1st1(int8x8_t small, int8x16_t big, void *addr) { in test_ld1st1() argument
40 vld1_lane_s8(addr, small, 7); in test_ld1st1()
41 vld1_lane_s16(addr, small, 3); in test_ld1st1()
42 vld1_lane_s32(addr, small, 1); in test_ld1st1()
43 vld1_lane_s64(addr, small, 0); in test_ld1st1()
45 vld1q_lane_s8(addr, big, 15); in test_ld1st1()
46 vld1q_lane_s16(addr, big, 7); in test_ld1st1()
47 vld1q_lane_s32(addr, big, 3); in test_ld1st1()
48 vld1q_lane_s64(addr, big, 1); in test_ld1st1()
50 vld1_lane_s8(addr, small, 8); // expected-error {{argument should be a value from 0 to 7}} in test_ld1st1()
[all …]
Dbuiltins-arm-exclusive.c7 int test_ldrex(char *addr) { in test_ldrex() argument
9 sum += __builtin_arm_ldrex(addr); in test_ldrex()
10 sum += __builtin_arm_ldrex((short *)addr); in test_ldrex()
11 sum += __builtin_arm_ldrex((int *)addr); in test_ldrex()
12 sum += __builtin_arm_ldrex((long long *)addr); in test_ldrex()
13 sum += __builtin_arm_ldrex((float *)addr); in test_ldrex()
14 sum += __builtin_arm_ldrex((double *)addr); in test_ldrex()
15 sum += *__builtin_arm_ldrex((int **)addr); in test_ldrex()
16 sum += __builtin_arm_ldrex((struct Simple **)addr)->a; in test_ldrex()
17 sum += __builtin_arm_ldrex((volatile char *)addr); in test_ldrex()
[all …]
Dbuiltins-arm64-exclusive.c7 int test_ldrex(char *addr) { in test_ldrex() argument
9 sum += __builtin_arm_ldrex(addr); in test_ldrex()
10 sum += __builtin_arm_ldrex((short *)addr); in test_ldrex()
11 sum += __builtin_arm_ldrex((int *)addr); in test_ldrex()
12 sum += __builtin_arm_ldrex((long long *)addr); in test_ldrex()
13 sum += __builtin_arm_ldrex((__int128 *)addr); in test_ldrex()
14 sum += __builtin_arm_ldrex((float *)addr); in test_ldrex()
15 sum += __builtin_arm_ldrex((double *)addr); in test_ldrex()
16 sum += *__builtin_arm_ldrex((int **)addr); in test_ldrex()
17 sum += __builtin_arm_ldrex((struct Simple **)addr)->a; in test_ldrex()
[all …]
/external/rust/crates/macaddr/src/parser/
Dtests.rs13 let addr = MacAddr6::from_str("12-34-56-78-9A-BC"); in test_parse_v6_upper_case_canonical_format() localVariable
15 assert!(addr.is_ok()); in test_parse_v6_upper_case_canonical_format()
16 let addr = addr.unwrap(); in test_parse_v6_upper_case_canonical_format() localVariable
18 assert_eq!(&[0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC], addr.as_bytes()); in test_parse_v6_upper_case_canonical_format()
23 let addr = MacAddr6::from_str("ab-cd-ef-ab-cd-ef"); in test_parse_v6_lower_case_canonical_format() localVariable
25 assert!(addr.is_ok()); in test_parse_v6_lower_case_canonical_format()
26 let addr = addr.unwrap(); in test_parse_v6_lower_case_canonical_format() localVariable
28 assert_eq!(&[0xAB, 0xCD, 0xEF, 0xAB, 0xCD, 0xEF], addr.as_bytes()); in test_parse_v6_lower_case_canonical_format()
33 let addr = MacAddr6::from_str("AB-cd-Ef-Ab-cD-EF"); in test_parse_v6_mixed_case_canonical_format() localVariable
35 assert!(addr.is_ok()); in test_parse_v6_mixed_case_canonical_format()
[all …]
/external/webrtc/rtc_base/
Dsocket_address_unittest.cc37 SocketAddress addr; in TEST() local
38 EXPECT_FALSE(addr.IsUnresolvedIP()); in TEST()
39 EXPECT_EQ(IPAddress(), addr.ipaddr()); in TEST()
40 EXPECT_EQ(0, addr.port()); in TEST()
41 EXPECT_EQ("", addr.hostname()); in TEST()
45 SocketAddress addr(IPAddress(0x01020304), 5678); in TEST() local
46 EXPECT_FALSE(addr.IsUnresolvedIP()); in TEST()
47 EXPECT_EQ(IPAddress(0x01020304U), addr.ipaddr()); in TEST()
48 EXPECT_EQ(5678, addr.port()); in TEST()
49 EXPECT_EQ("", addr.hostname()); in TEST()
[all …]
Dip_address_unittest.cc98 bool AreEqual(const IPAddress& addr, const IPAddress& addr2) { in AreEqual() argument
99 if ((IPIsAny(addr) != IPIsAny(addr2)) || in AreEqual()
100 (IPIsLoopback(addr) != IPIsLoopback(addr2)) || in AreEqual()
101 (IPIsPrivate(addr) != IPIsPrivate(addr2)) || in AreEqual()
102 (HashIP(addr) != HashIP(addr2)) || (addr.Size() != addr2.Size()) || in AreEqual()
103 (addr.family() != addr2.family()) || in AreEqual()
104 (addr.ToString() != addr2.ToString())) { in AreEqual()
108 v4addr = addr.ipv4_address(); in AreEqual()
114 v6addr = addr.ipv6_address(); in AreEqual()
123 IPAddress addr(0); // Intentionally make it v4. in BrokenIPStringFails() local
[all …]
/external/libnl/lib/route/
Daddr.c131 struct rtnl_addr *addr = nl_object_priv(obj); in addr_constructor() local
133 addr->a_scope = RT_SCOPE_NOWHERE; in addr_constructor()
138 struct rtnl_addr *addr = nl_object_priv(obj); in addr_free_data() local
140 if (!addr) in addr_free_data()
143 nl_addr_put(addr->a_peer); in addr_free_data()
144 nl_addr_put(addr->a_local); in addr_free_data()
145 nl_addr_put(addr->a_bcast); in addr_free_data()
146 nl_addr_put(addr->a_multicast); in addr_free_data()
147 nl_addr_put(addr->a_anycast); in addr_free_data()
148 rtnl_link_put(addr->a_link); in addr_free_data()
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_interface.cc31 void __tsan_read16(void *addr) { in __tsan_read16() argument
32 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog8); in __tsan_read16()
33 MemoryRead(cur_thread(), CALLERPC, (uptr)addr + 8, kSizeLog8); in __tsan_read16()
36 void __tsan_write16(void *addr) { in __tsan_write16() argument
37 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr, kSizeLog8); in __tsan_write16()
38 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr + 8, kSizeLog8); in __tsan_write16()
41 void __tsan_read16_pc(void *addr, void *pc) { in __tsan_read16_pc() argument
42 MemoryRead(cur_thread(), (uptr)pc, (uptr)addr, kSizeLog8); in __tsan_read16_pc()
43 MemoryRead(cur_thread(), (uptr)pc, (uptr)addr + 8, kSizeLog8); in __tsan_read16_pc()
46 void __tsan_write16_pc(void *addr, void *pc) { in __tsan_write16_pc() argument
[all …]
Dtsan_interface_inl.h21 void __tsan_read1(void *addr) { in __tsan_read1() argument
22 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog1); in __tsan_read1()
25 void __tsan_read2(void *addr) { in __tsan_read2() argument
26 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog2); in __tsan_read2()
29 void __tsan_read4(void *addr) { in __tsan_read4() argument
30 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog4); in __tsan_read4()
33 void __tsan_read8(void *addr) { in __tsan_read8() argument
34 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog8); in __tsan_read8()
37 void __tsan_write1(void *addr) { in __tsan_write1() argument
38 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr, kSizeLog1); in __tsan_write1()
[all …]
/external/libcups/cups/
Dhttp-addr.c36 httpAddrAny(const http_addr_t *addr) /* I - Address to check */ in httpAddrAny() argument
38 if (!addr) in httpAddrAny()
42 if (addr->addr.sa_family == AF_INET6 && in httpAddrAny()
43 IN6_IS_ADDR_UNSPECIFIED(&(addr->ipv6.sin6_addr))) in httpAddrAny()
47 if (addr->addr.sa_family == AF_INET && in httpAddrAny()
48 ntohl(addr->ipv4.sin_addr.s_addr) == 0x00000000) in httpAddrAny()
67 httpAddrClose(http_addr_t *addr, /* I - Listen address or @code NULL@ */ in httpAddrClose() argument
78 if (addr && addr->addr.sa_family == AF_LOCAL) in httpAddrClose()
79 return (unlink(addr->un.sun_path)); in httpAddrClose()
102 if (addr1->addr.sa_family != addr2->addr.sa_family) in httpAddrEqual()
[all …]
/external/ltp/testcases/kernel/syscalls/ptrace/
Dptrace06.c42 long addr; member
46 PTRACE_PEEKDATA,.addr = 0}, {
47 PTRACE_PEEKDATA,.addr = 1}, {
48 PTRACE_PEEKDATA,.addr = 2}, {
49 PTRACE_PEEKDATA,.addr = 3}, {
50 PTRACE_PEEKDATA,.addr = -1}, {
51 PTRACE_PEEKDATA,.addr = -2}, {
52 PTRACE_PEEKDATA,.addr = -3}, {
53 PTRACE_PEEKDATA,.addr = -4}, {
54 PTRACE_PEEKTEXT,.addr = 0}, {
[all …]
/external/clang/test/CodeGen/
Dbuiltins-arm-exclusive.c9 int test_ldrex(char *addr, long long *addr64, float *addrfloat) { in test_ldrex() argument
13 sum += __builtin_arm_ldrex(addr); in test_ldrex()
20 sum += __builtin_arm_ldrex((short *)addr); in test_ldrex()
29 sum += __builtin_arm_ldrex((int *)addr); in test_ldrex()
37 sum += __builtin_arm_ldrex((long long *)addr); in test_ldrex()
61 sum += __builtin_arm_ldrex((double *)addr); in test_ldrex()
78 sum += *__builtin_arm_ldrex((int **)addr); in test_ldrex()
89 sum += __builtin_arm_ldrex((struct Simple **)addr)->a; in test_ldrex()
102 int test_ldaex(char *addr, long long *addr64, float *addrfloat) { in test_ldaex() argument
106 sum += __builtin_arm_ldaex(addr); in test_ldaex()
[all …]
Davx512pf-builtins.c8 void test_mm512_mask_prefetch_i32gather_pd(__m256i index, __mmask8 mask, void const *addr, int hint… in test_mm512_mask_prefetch_i32gather_pd() argument
11 return _mm512_mask_prefetch_i32gather_pd(index, mask, addr, 2, 1); in test_mm512_mask_prefetch_i32gather_pd()
14 void test_mm512_prefetch_i32gather_pd(__m256i index, void const *addr, int hint) { in test_mm512_prefetch_i32gather_pd() argument
17 return _mm512_prefetch_i32gather_pd(index, addr, 2, 1); in test_mm512_prefetch_i32gather_pd()
20 void test_mm512_mask_prefetch_i32gather_ps(__m512i index, __mmask16 mask, void const *addr, int hin… in test_mm512_mask_prefetch_i32gather_ps() argument
23 return _mm512_mask_prefetch_i32gather_ps(index, mask, addr, 2, 1); in test_mm512_mask_prefetch_i32gather_ps()
26 void test_mm512_prefetch_i32gather_ps(__m512i index, void const *addr, int hint) { in test_mm512_prefetch_i32gather_ps() argument
29 return _mm512_prefetch_i32gather_ps(index, addr, 2, 1); in test_mm512_prefetch_i32gather_ps()
32 void test_mm512_mask_prefetch_i64gather_pd(__m512i index, __mmask8 mask, void const *addr, int hint… in test_mm512_mask_prefetch_i64gather_pd() argument
35 return _mm512_mask_prefetch_i64gather_pd(index, mask, addr, 2, 1); in test_mm512_mask_prefetch_i64gather_pd()
[all …]
/external/libnl/lib/
Daddr.c33 static inline uint16_t dn_ntohs(uint16_t addr) in dn_ntohs() argument
39 .word = addr, in dn_ntohs()
45 static inline int do_digit(char *str, uint16_t *addr, uint16_t scale, in do_digit() argument
48 uint16_t tmp = *addr / scale; in do_digit()
57 *addr -= (tmp * scale); in do_digit()
66 uint16_t addr = dn_ntohs(*(uint16_t *)addrbuf); in dnet_ntop() local
67 uint16_t area = addr >> 10; in dnet_ntop()
74 addr &= 0x03ff; in dnet_ntop()
92 if (do_digit(str + pos, &addr, 1000, &pos, len, &started)) in dnet_ntop()
95 if (do_digit(str + pos, &addr, 100, &pos, len, &started)) in dnet_ntop()
[all …]
/external/elfutils/libdw/
Ddwarf_ranges.c57 const unsigned char *addr = *addrp; in __libdw_read_begin_end_pair_inc() local
58 if (addrend - addr < 1) in __libdw_read_begin_end_pair_inc()
61 const char code = *addr++; in __libdw_read_begin_end_pair_inc()
66 *addrp = addr; in __libdw_read_begin_end_pair_inc()
70 if (addrend - addr < 1) in __libdw_read_begin_end_pair_inc()
72 get_uleb128 (addr_idx, addr, addrend); in __libdw_read_begin_end_pair_inc()
76 *addrp = addr; in __libdw_read_begin_end_pair_inc()
80 if (addrend - addr < 1) in __libdw_read_begin_end_pair_inc()
82 get_uleb128 (addr_idx, addr, addrend); in __libdw_read_begin_end_pair_inc()
85 if (addrend - addr < 1) in __libdw_read_begin_end_pair_inc()
[all …]
/external/linux-kselftest/tools/testing/selftests/vm/
Dmap_fixed_noreplace.c30 void *addr; in find_base_addr() local
34 addr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in find_base_addr()
35 if (addr == MAP_FAILED) { in find_base_addr()
40 if (munmap(addr, size) != 0) { in find_base_addr()
44 return (unsigned long)addr; in find_base_addr()
50 unsigned long flags, addr, size, page_size; in main() local
67 addr = base_addr; in main()
69 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
71 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
80 if (munmap((void *)addr, 5 * page_size) != 0) { in main()
[all …]
Dmadv_populate.c58 char *addr; in sense_support() local
61 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support()
63 if (!addr) in sense_support()
66 ret = madvise(addr, pagesize, MADV_POPULATE_READ); in sense_support()
70 ret = madvise(addr, pagesize, MADV_POPULATE_WRITE); in sense_support()
74 munmap(addr, pagesize); in sense_support()
79 char *addr; in test_prot_read() local
84 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read()
85 if (addr == MAP_FAILED) in test_prot_read()
88 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_prot_read()
[all …]
/external/python/cpython3/Python/
Dstructmember.c12 const char* addr = obj_addr + l->offset; in PyMember_GetOne() local
15 v = PyBool_FromLong(*(char*)addr); in PyMember_GetOne()
18 v = PyLong_FromLong(*(char*)addr); in PyMember_GetOne()
21 v = PyLong_FromUnsignedLong(*(unsigned char*)addr); in PyMember_GetOne()
24 v = PyLong_FromLong(*(short*)addr); in PyMember_GetOne()
27 v = PyLong_FromUnsignedLong(*(unsigned short*)addr); in PyMember_GetOne()
30 v = PyLong_FromLong(*(int*)addr); in PyMember_GetOne()
33 v = PyLong_FromUnsignedLong(*(unsigned int*)addr); in PyMember_GetOne()
36 v = PyLong_FromLong(*(long*)addr); in PyMember_GetOne()
39 v = PyLong_FromUnsignedLong(*(unsigned long*)addr); in PyMember_GetOne()
[all …]
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyInstrMemory.td27 def regPlusImm : PatFrag<(ops node:$addr, node:$off),
28 (add node:$addr, node:$off),
45 def regPlusGA : PatFrag<(ops node:$addr, node:$off),
46 (add node:$addr, node:$off),
61 def LOAD_I32 : I<(outs I32:$dst), (ins i32imm:$off, I32:$addr,
63 "i32.load\t$dst, ${off}(${addr})${p2align}">;
64 def LOAD_I64 : I<(outs I64:$dst), (ins i32imm:$off, I32:$addr,
66 "i64.load\t$dst, ${off}(${addr})${p2align}">;
67 def LOAD_F32 : I<(outs F32:$dst), (ins i32imm:$off, I32:$addr,
69 "f32.load\t$dst, ${off}(${addr})${p2align}">;
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/address_utils/
Dsockaddr_utils.cc47 const grpc_sockaddr* addr = in grpc_sockaddr_is_v4mapped() local
48 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_is_v4mapped()
52 : reinterpret_cast<grpc_sockaddr_in*>(resolved_addr4_out->addr); in grpc_sockaddr_is_v4mapped()
53 if (addr->sa_family == GRPC_AF_INET6) { in grpc_sockaddr_is_v4mapped()
55 reinterpret_cast<const grpc_sockaddr_in6*>(addr); in grpc_sockaddr_is_v4mapped()
77 const grpc_sockaddr* addr = in grpc_sockaddr_to_v4mapped() local
78 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_to_v4mapped()
80 reinterpret_cast<grpc_sockaddr_in6*>(resolved_addr6_out->addr); in grpc_sockaddr_to_v4mapped()
81 if (addr->sa_family == GRPC_AF_INET) { in grpc_sockaddr_to_v4mapped()
83 reinterpret_cast<const grpc_sockaddr_in*>(addr); in grpc_sockaddr_to_v4mapped()
[all …]
/external/jemalloc_new/src/
Dpages.c56 static void os_pages_unmap(void *addr, size_t size);
61 os_pages_map(void *addr, size_t size, size_t alignment, bool *commit) { in os_pages_map() argument
62 assert(ALIGNMENT_ADDR2BASE(addr, os_page) == addr); in os_pages_map()
76 ret = VirtualAlloc(addr, size, MEM_RESERVE | (*commit ? MEM_COMMIT : 0), in os_pages_map()
86 ret = mmap(addr, size, prot, mmap_flags, -1, 0); in os_pages_map()
92 } else if (addr != NULL && ret != addr) { in os_pages_map()
107 assert(ret == NULL || (addr == NULL && ret != addr) || (addr != NULL && in os_pages_map()
108 ret == addr)); in os_pages_map()
113 os_pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size, in os_pages_trim() argument
115 void *ret = (void *)((uintptr_t)addr + leadsize); in os_pages_trim()
[all …]
/external/arm-trusted-firmware/include/lib/
Dmmio.h12 static inline void mmio_write_8(uintptr_t addr, uint8_t value) in mmio_write_8() argument
14 *(volatile uint8_t*)addr = value; in mmio_write_8()
17 static inline uint8_t mmio_read_8(uintptr_t addr) in mmio_read_8() argument
19 return *(volatile uint8_t*)addr; in mmio_read_8()
22 static inline void mmio_write_16(uintptr_t addr, uint16_t value) in mmio_write_16() argument
24 *(volatile uint16_t*)addr = value; in mmio_write_16()
27 static inline uint16_t mmio_read_16(uintptr_t addr) in mmio_read_16() argument
29 return *(volatile uint16_t*)addr; in mmio_read_16()
32 static inline void mmio_clrsetbits_16(uintptr_t addr, in mmio_clrsetbits_16() argument
36 mmio_write_16(addr, (mmio_read_16(addr) & ~clear) | set); in mmio_clrsetbits_16()
[all …]
/external/f2fs-tools/scripts/
Ddumpf2fs.sh11 let addr=$BASE
12 echo $addr
13 hexdump -s $addr -n 4096 $DEV;;
16 let addr=$BASE+0x200000
17 hexdump -s $addr -n 4096 $DEV;;
20 let addr=$BASE
21 hexdump -s $addr -n 409 $DEV
22 let addr=$BASE+0x200000
23 hexdump -s $addr -n 4096 $DEV;;
26 let addr=$BASE
[all …]
/external/python/cpython2/Python/
Dstructmember.c32 PyMember_Get(const char *addr, struct memberlist *mlist, const char *name) in PyMember_Get() argument
46 return PyMember_GetOne(addr, &copy); in PyMember_Get()
54 PyMember_GetOne(const char *addr, PyMemberDef *l) in PyMember_GetOne() argument
62 addr += l->offset; in PyMember_GetOne()
65 v = PyBool_FromLong(*(char*)addr); in PyMember_GetOne()
68 v = PyInt_FromLong(*(char*)addr); in PyMember_GetOne()
71 v = PyLong_FromUnsignedLong(*(unsigned char*)addr); in PyMember_GetOne()
74 v = PyInt_FromLong(*(short*)addr); in PyMember_GetOne()
77 v = PyLong_FromUnsignedLong(*(unsigned short*)addr); in PyMember_GetOne()
80 v = PyInt_FromLong(*(int*)addr); in PyMember_GetOne()
[all …]
/external/openthread/tests/scripts/thread-cert/
Dtest_on_mesh_prefix.py94 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs))
95 self.assertTrue(any('2001:2:0:2' in addr[0:10] for addr in addrs))
96 for addr in addrs:
97 if addr[0:3] == '200':
98 self.assertTrue(self.nodes[LEADER].ping(addr))
101 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs))
102 self.assertFalse(any('2001:2:0:2' in addr[0:10] for addr in addrs))
103 for addr in addrs:
104 if addr[0:3] == '200':
105 self.assertTrue(self.nodes[LEADER].ping(addr))
[all …]

12345678910>>...183