Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 200) sorted by relevance

12345678

/bionic/libc/bionic/
Dpthread_key.cpp86 if (SeqOfKeyInUse(seq) && seq == key_data[i].seq && key_data[i].data != nullptr) { in pthread_key_clean_all()
108 void* data = key_data[i].data; in pthread_key_clean_all() local
109 key_data[i].data = nullptr; in pthread_key_clean_all()
111 (*key_destructor)(data); in pthread_key_clean_all()
165 pthread_key_data_t* data = &get_thread_key_data()[key]; in pthread_getspecific() local
168 if (__predict_true(SeqOfKeyInUse(seq) && data->seq == seq)) { in pthread_getspecific()
169 return data->data; in pthread_getspecific()
173 data->data = nullptr; in pthread_getspecific()
185 pthread_key_data_t* data = &get_thread_key_data()[key]; in pthread_setspecific() local
186 data->seq = seq; in pthread_setspecific()
[all …]
Dptrace.cpp32 extern "C" long __ptrace(int req, pid_t pid, void* addr, void* data);
42 void* data; in ptrace() local
44 data = &peek_result; in ptrace()
46 data = va_arg(args, void*); in ptrace()
50 long result = __ptrace(req, pid, addr, data); in ptrace()
Ddl_iterate_phdr_static.cpp38 int dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data), void* data) { in dl_iterate_phdr() argument
57 int rc = cb(&exe_info, sizeof(exe_info), data); in dl_iterate_phdr()
80 return cb(&vdso_info, sizeof(vdso_info), data); in dl_iterate_phdr()
Difaddrs.cpp70 void SetAddress(int family, const void* data, size_t byteCount) { in SetAddress()
76 ifa.ifa_addr = CopyAddress(family, data, byteCount, &addr); in SetAddress()
79 ifa.ifa_dstaddr = CopyAddress(family, data, byteCount, &ifa_ifu); in SetAddress()
83 void SetBroadcastAddress(int family, const void* data, size_t byteCount) { in SetBroadcastAddress()
90 ifa.ifa_broadaddr = CopyAddress(family, data, byteCount, &ifa_ifu); in SetBroadcastAddress()
93 void SetLocalAddress(int family, const void* data, size_t byteCount) { in SetLocalAddress()
103 ifa.ifa_addr = CopyAddress(family, data, byteCount, &addr); in SetLocalAddress()
127 sockaddr* CopyAddress(int family, const void* data, size_t byteCount, sockaddr_storage* ss) { in CopyAddress()
133 memcpy(SockaddrBytes(family, ss), data, byteCount); in CopyAddress()
136 if (family == AF_INET6 && (IN6_IS_ADDR_LINKLOCAL(data) || IN6_IS_ADDR_MC_LINKLOCAL(data))) { in CopyAddress()
Dnet_if.cpp78 struct if_nameindex data; member
90 if (names_too) free(it->data.if_name); in Free()
103 new_link->data.if_index = ifi->ifi_index; in __if_nameindex_callback()
110 new_link->data.if_name = strndup(reinterpret_cast<char*>(RTA_DATA(rta)), RTA_PAYLOAD(rta)); in __if_nameindex_callback()
139 out->if_index = it->data.if_index; in if_nameindex()
140 out->if_name = it->data.if_name; in if_nameindex()
/bionic/tests/
Dmath_data_test.h168 void DoMathDataTest(data_1_1_t<RT, T> (&data)[N], RT f(T)) {
173 data[i].expected, f(data[i].input)) << "Failed on element " << i;
181 void DoMathDataTest(data_int_1_t<T> (&data)[N], int f(T)) {
184 EXPECT_EQ(data[i].expected, f(data[i].input)) << "Failed on element " << i;
192 void DoMathDataTest(data_long_1_t<T> (&data)[N], long f(T)) {
195 EXPECT_EQ(data[i].expected, f(data[i].input)) << "Failed on element " << i;
203 void DoMathDataTest(data_llong_1_t<T> (&data)[N], long long f(T)) {
206 EXPECT_EQ(data[i].expected, f(data[i].input)) << "Failed on element " << i;
214 void DoMathDataTest(data_1_2_t<RT, T1, T2> (&data)[N], RT f(T1, T2)) {
219data[i].expected, f(data[i].input1, data[i].input2)) << "Failed on element " << i;
[all …]
Dsearch_test.cpp215 ASSERT_STREQ(expected_data, reinterpret_cast<char*>(e->data)); in AssertEntry()
223 e = hsearch(ENTRY{.key = const_cast<char*>("a"), .data = const_cast<char*>("A")}, ENTER); in TEST()
225 e = hsearch(ENTRY{.key = const_cast<char*>("aa"), .data = const_cast<char*>("B")}, ENTER); in TEST()
227 e = hsearch(ENTRY{.key = const_cast<char*>("aaa"), .data = const_cast<char*>("C")}, ENTER); in TEST()
231 e = hsearch(ENTRY{.key = const_cast<char*>("aaaa"), .data = nullptr}, FIND); in TEST()
235 e = hsearch(ENTRY{.key = const_cast<char*>("aa"), .data = nullptr}, FIND); in TEST()
239 e = hsearch(ENTRY{.key = const_cast<char*>("aa"), .data = const_cast<char*>("X")}, ENTER); in TEST()
241 e->data = const_cast<char*>("X"); in TEST()
244 e = hsearch(ENTRY{.key = const_cast<char*>("aa"), .data = nullptr}, FIND); in TEST()
247 e = hsearch(ENTRY{.key = const_cast<char*>("a"), .data = nullptr}, FIND); in TEST()
[all …]
Dthread_local_test.cpp33 int *data = reinterpret_cast<int*>(p); in inc_shared_var() local
35 *data = shared_var; in inc_shared_var()
40 int *data = reinterpret_cast<int*>(p); in inc_local_var() local
42 *data = local_var; in inc_local_var()
48 int data; in run_one_thread() local
49 int error = pthread_create(&t, nullptr, foo, &data); in run_one_thread()
52 return error ? error : data; in run_one_thread()
113 int *data = reinterpret_cast<int*>(p); in move_shared_triangle() local
115 *data = shared_triangle[1].y; in move_shared_triangle()
120 int *data = reinterpret_cast<int*>(p); in move_local_triangle() local
[all …]
Dsys_ptrace_test.cpp130 unsigned data = ptrace(PTRACE_PEEKUSER, child, offsetof(user, u_debugreg[7]), nullptr); in set_watchpoint() local
139 data &= mask; in set_watchpoint()
140 data |= value; in set_watchpoint()
141 …ASSERT_EQ(0, ptrace(PTRACE_POKEUSER, child, offsetof(user, u_debugreg[7]), data)) << strerror(errn… in set_watchpoint()
151 alignas(16) T data{}; in run_watchpoint_test() local
167 child_func(data); in run_watchpoint_test()
180 set_watchpoint(child, uintptr_t(untag_address(&data)) + offset, size); in run_watchpoint_test()
191 ASSERT_LE(&data, siginfo.si_addr); in run_watchpoint_test()
192 ASSERT_GT((&data) + 1, siginfo.si_addr); in run_watchpoint_test()
197 static void watchpoint_stress_child(unsigned cpu, T& data) { in watchpoint_stress_child() argument
[all …]
Dresolv_test.cpp35 const char* data = in TEST() local
43 ASSERT_EQ(128, b64_pton(data, buf, sizeof(buf))); in TEST()
/bionic/libc/malloc_debug/
DGuardData.cpp46 memset(cmp_mem_.data(), init_value, cmp_mem_.size()); in GuardData()
49 void GuardData::LogFailure(const Header* header, const void* pointer, const void* data) { in LogFailure() argument
55 const uint8_t* expected = cmp_mem_.data(); in LogFailure()
56 int pointer_idx = reinterpret_cast<uintptr_t>(data) - reinterpret_cast<uintptr_t>(pointer); in LogFailure()
57 const uint8_t* real = reinterpret_cast<const uint8_t*>(data); in LogFailure()
76 memset(cmp_mem_.data(), config.front_guard_value(), cmp_mem_.size()); in FrontGuardData()
DGuardData.h50 bool Valid(void* data) { return memcmp(data, cmp_mem_.data(), cmp_mem_.size()) == 0; } in Valid() argument
52 void LogFailure(const Header* header, const void* pointer, const void* data);
/bionic/tests/libs/
Dsegment_gap_outer.lds2 # This starts off fairly normal: rodata, text, data, relro, bss with
9 .data : {}
11 .data.rel.ro : {}
Dbionic_tests_zipalign.cpp95 const std::vector<uint8_t>* data; in CreateAlignedZip() local
96 while ((data = stream->Read()) != nullptr) { in CreateAlignedZip()
97 error = writer.WriteBytes(data->data(), data->size()); in CreateAlignedZip()
/bionic/libc/kernel/uapi/linux/
Dfirewire-cdev.h53 __u32 data[0]; member
62 __u32 data[0]; member
75 __u32 data[0]; member
101 __u32 data[0]; member
152 __u64 data; member
158 __u64 data; member
179 __u64 data; member
214 __u64 data; member
257 __u64 data; member
263 __u32 data[2]; member
Duhid.h69 __u8 data[UHID_DATA_MAX]; member
72 __u8 data[UHID_DATA_MAX]; member
85 __u8 data[UHID_DATA_MAX]; member
92 __u8 data[UHID_DATA_MAX]; member
118 __u8 data[UHID_DATA_MAX]; member
135 __u8 data[UHID_DATA_MAX]; member
Dwmi.h26 __u8 data[]; member
37 __u8 data[]; member
Dbaycom.h30 } data; member
Duserio.h29 __u8 data; member
Dcan.h43 __u8 data[CAN_MAX_DLEN] __attribute__((aligned(8))); member
53 __u8 data[CANFD_MAX_DLEN] __attribute__((aligned(8))); member
Dipmi.h27 char data[IPMI_MAX_ADDR_SIZE]; member
60 unsigned char __user * data; member
66 unsigned char * data; member
/bionic/libc/kernel/uapi/linux/usb/
Dg_uvc.h34 __u8 data[60]; member
40 struct uvc_request_data data; member
/bionic/libc/kernel/uapi/rdma/
Dib_user_cm.h91 __aligned_u64 data; member
102 __aligned_u64 data; member
120 __aligned_u64 data; member
138 __aligned_u64 data; member
144 __aligned_u64 data; member
152 __aligned_u64 data; member
161 __aligned_u64 data; member
174 __aligned_u64 data; member
181 __aligned_u64 data; member
/bionic/libdl/
Dlibdl.cpp57 int __loader_dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data),
58 void* data);
126 int dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data), void* data) { in dl_iterate_phdr() argument
127 return __loader_dl_iterate_phdr(cb, data); in dl_iterate_phdr()
/bionic/libc/include/bits/
Depoll_event.h50 epoll_data_t data; member

12345678