/system/extras/tests/mmc_tracepoints/ |
D | mmc_trace_sample_data | 12 … mmcqd/0-82 [000] ...1 49.828932: mmc_blk_rw_start: cmd=25,addr=0x002c6518,size=0x00000010 13 … <...>-1484 [000] ..s4 49.829171: mmc_blk_rw_end: cmd=25,addr=0x002c6518,size=0x00000010 14 … mmcqd/0-82 [000] ...1 49.830095: mmc_blk_rw_start: cmd=25,addr=0x002c6528,size=0x00000008 15 … kworker/0:2-48 [000] ..s4 49.830218: mmc_blk_rw_end: cmd=25,addr=0x002c6528,size=0x00000008 16 … mmcqd/0-82 [000] ...1 52.465957: mmc_blk_rw_start: cmd=18,addr=0x001ad578,size=0x00000020 17 … <idle>-0 [000] ..s3 52.466404: mmc_blk_rw_end: cmd=18,addr=0x001ad578,size=0x00000020 18 … mmcqd/0-82 [000] ...1 52.492868: mmc_blk_rw_start: cmd=18,addr=0x001aecb8,size=0x00000020 19 … <idle>-0 [000] ..s3 52.493157: mmc_blk_rw_end: cmd=18,addr=0x001aecb8,size=0x00000020 20 … mmcqd/0-82 [000] ...1 54.834287: mmc_blk_rw_start: cmd=25,addr=0x005420a8,size=0x00000008 21 … <idle>-0 [000] ..s3 54.834383: mmc_blk_rw_end: cmd=25,addr=0x005420a8,size=0x00000008 [all …]
|
/system/core/libcutils/include_vndk/cutils/ |
D | atomic.h | 75 volatile atomic_int_least32_t* to_atomic_int_least32_t(volatile const int32_t* addr) { in to_atomic_int_least32_t() argument 77 return reinterpret_cast<volatile atomic_int_least32_t*>(const_cast<volatile int32_t*>(addr)); in to_atomic_int_least32_t() 79 return (volatile atomic_int_least32_t*)addr; in to_atomic_int_least32_t() 91 int32_t android_atomic_inc(volatile int32_t* addr) in android_atomic_inc() argument 93 volatile atomic_int_least32_t* a = to_atomic_int_least32_t(addr); in android_atomic_inc() 99 int32_t android_atomic_dec(volatile int32_t* addr) in android_atomic_dec() argument 101 volatile atomic_int_least32_t* a = to_atomic_int_least32_t(addr); in android_atomic_dec() 106 int32_t android_atomic_add(int32_t value, volatile int32_t* addr) in android_atomic_add() argument 108 volatile atomic_int_least32_t* a = to_atomic_int_least32_t(addr); in android_atomic_add() 113 int32_t android_atomic_and(int32_t value, volatile int32_t* addr) in android_atomic_and() argument [all …]
|
/system/core/libcutils/include/cutils/ |
D | atomic.h | 75 volatile atomic_int_least32_t* to_atomic_int_least32_t(volatile const int32_t* addr) { in to_atomic_int_least32_t() argument 77 return reinterpret_cast<volatile atomic_int_least32_t*>(const_cast<volatile int32_t*>(addr)); in to_atomic_int_least32_t() 79 return (volatile atomic_int_least32_t*)addr; in to_atomic_int_least32_t() 91 int32_t android_atomic_inc(volatile int32_t* addr) in android_atomic_inc() argument 93 volatile atomic_int_least32_t* a = to_atomic_int_least32_t(addr); in android_atomic_inc() 99 int32_t android_atomic_dec(volatile int32_t* addr) in android_atomic_dec() argument 101 volatile atomic_int_least32_t* a = to_atomic_int_least32_t(addr); in android_atomic_dec() 106 int32_t android_atomic_add(int32_t value, volatile int32_t* addr) in android_atomic_add() argument 108 volatile atomic_int_least32_t* a = to_atomic_int_least32_t(addr); in android_atomic_add() 113 int32_t android_atomic_and(int32_t value, volatile int32_t* addr) in android_atomic_and() argument [all …]
|
/system/core/libunwindstack/ |
D | Memory.cpp | 37 bool Memory::ReadString(uint64_t addr, std::string* string, uint64_t max_read) { in ReadString() argument 42 if (!Read(addr, &value, sizeof(value))) { in ReadString() 49 addr++; in ReadString() 55 bool MemoryBuffer::Read(uint64_t addr, void* dst, size_t size) { in Read() argument 57 if (__builtin_add_overflow(size, addr, &last_read_byte)) { in Read() 63 memcpy(dst, &raw_[addr], size); in Read() 125 bool MemoryFileAtOffset::Read(uint64_t addr, void* dst, size_t size) { in Read() argument 127 if (__builtin_add_overflow(addr, size, &max_size) || max_size > size_) { in Read() 130 memcpy(dst, &data_[addr], size); in Read() 134 bool MemoryRemote::PtraceRead(uint64_t addr, long* value) { in PtraceRead() argument [all …]
|
D | Symbols.cpp | 38 const Symbols::Info* Symbols::GetInfoFromCache(uint64_t addr) { in GetInfoFromCache() argument 45 if (addr < info->start_offset) { in GetInfoFromCache() 47 } else if (addr < info->end_offset) { in GetInfoFromCache() 57 bool Symbols::GetName(uint64_t addr, uint64_t load_bias, Memory* elf_memory, std::string* name, in GetName() argument 59 addr += load_bias; in GetName() 62 const Info* info = GetInfoFromCache(addr); in GetName() 64 CHECK(addr >= info->start_offset && addr <= info->end_offset); in GetName() 65 *func_offset = addr - info->start_offset; in GetName() 93 if (addr >= start_offset && addr < end_offset) { in GetName() 94 *func_offset = addr - start_offset; in GetName()
|
/system/core/libunwindstack/tests/ |
D | MemoryFake.h | 35 bool Read(uint64_t addr, void* buffer, size_t size) override; 37 void SetMemory(uint64_t addr, const void* memory, size_t length); 39 void SetData8(uint64_t addr, uint8_t value) { in SetData8() argument 40 SetMemory(addr, &value, sizeof(value)); in SetData8() 43 void SetData16(uint64_t addr, uint16_t value) { in SetData16() argument 44 SetMemory(addr, &value, sizeof(value)); in SetData16() 47 void SetData32(uint64_t addr, uint32_t value) { in SetData32() argument 48 SetMemory(addr, &value, sizeof(value)); in SetData32() 51 void SetData64(uint64_t addr, uint64_t value) { in SetData64() argument 52 SetMemory(addr, &value, sizeof(value)); in SetData64() [all …]
|
D | RegsStepIfSignalHandlerTest.cpp | 46 uint64_t addr = 0x1000; in ArmStepIfSignalHandlerNonRt() local 49 regs[ARM_REG_SP] = addr; in ArmStepIfSignalHandlerNonRt() 55 process_memory_.SetData32(addr + index * 4, index * 0x10); in ArmStepIfSignalHandlerNonRt() 77 uint64_t addr = 0x1000; in ArmStepIfSignalHandlerRt() local 80 regs[ARM_REG_SP] = addr; in ArmStepIfSignalHandlerRt() 86 process_memory_.SetData32(addr + index * 4, index * 0x10); in ArmStepIfSignalHandlerRt() 108 uint64_t addr = 0x1000; in TEST_F() local 111 regs[ARM64_REG_SP] = addr; in TEST_F() 117 process_memory_.SetData64(addr + index * 8, index * 0x10); in TEST_F() 128 uint64_t addr = 0xa00; in TEST_F() local [all …]
|
D | MemoryFake.cpp | 26 void MemoryFake::SetMemory(uint64_t addr, const void* memory, size_t length) { in SetMemory() argument 28 for (size_t i = 0; i < length; i++, addr++) { in SetMemory() 29 auto value = data_.find(addr); in SetMemory() 33 data_.insert({ addr, src[i] }); in SetMemory() 38 bool MemoryFake::Read(uint64_t addr, void* memory, size_t size) { in Read() argument 40 for (size_t i = 0; i < size; i++, addr++) { in Read() 41 auto value = data_.find(addr); in Read()
|
/system/bt/device/src/ |
D | interop.cc | 41 const RawAddress* addr); 43 const RawAddress* addr); 48 const RawAddress* addr) { in interop_match_addr() argument 49 CHECK(addr); in interop_match_addr() 51 if (interop_match_fixed_(feature, addr) || in interop_match_addr() 52 interop_match_dynamic_(feature, addr)) { in interop_match_addr() 54 __func__, addr->ToString().c_str(), in interop_match_addr() 79 void interop_database_add(const uint16_t feature, const RawAddress* addr, in interop_database_add() argument 81 CHECK(addr); in interop_database_add() 87 memcpy(&entry->addr, addr, length); in interop_database_add() [all …]
|
/system/core/libcutils/ |
D | uevent.c | 55 struct sockaddr_nl addr; in uevent_kernel_recv() local 58 &addr, in uevent_kernel_recv() 59 sizeof(addr), in uevent_kernel_recv() 86 if (addr.nl_pid != 0) { in uevent_kernel_recv() 90 if (require_group && addr.nl_groups == 0) { in uevent_kernel_recv() 106 struct sockaddr_nl addr; in uevent_open_socket() local 110 memset(&addr, 0, sizeof(addr)); in uevent_open_socket() 111 addr.nl_family = AF_NETLINK; in uevent_open_socket() 112 addr.nl_pid = getpid(); in uevent_open_socket() 113 addr.nl_groups = 0xffffffff; in uevent_open_socket() [all …]
|
D | socket_inaddr_any_server_unix.c | 35 struct sockaddr_in6 addr; in socket_inaddr_any_server() local 38 memset(&addr, 0, sizeof(addr)); in socket_inaddr_any_server() 39 addr.sin6_family = AF_INET6; in socket_inaddr_any_server() 40 addr.sin6_port = htons(port); in socket_inaddr_any_server() 41 addr.sin6_addr = in6addr_any; in socket_inaddr_any_server() 49 if (bind(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in socket_inaddr_any_server()
|
D | socket_inaddr_any_server_windows.c | 62 struct sockaddr_in6 addr; in socket_inaddr_any_server() local 63 memset(&addr, 0, sizeof(addr)); in socket_inaddr_any_server() 64 addr.sin6_family = AF_INET6; in socket_inaddr_any_server() 65 addr.sin6_port = htons(port); in socket_inaddr_any_server() 66 addr.sin6_addr = in6addr_any; in socket_inaddr_any_server() 67 if (bind(sock, (struct sockaddr*)&addr, sizeof(addr)) == SOCKET_ERROR) { in socket_inaddr_any_server()
|
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/ |
D | bitops.h | 19 #define for_each_set_bit(bit, addr, size) \ argument 20 for ((bit) = find_first_bit((addr), (size)); \ 22 (bit) = find_next_bit((addr), (size), (bit) + 1)) 25 #define for_each_set_bit_from(bit, addr, size) \ argument 26 for ((bit) = find_next_bit((addr), (size), (bit)); \ 28 (bit) = find_next_bit((addr), (size), (bit) + 1)) 30 static inline void set_bit(int nr, unsigned long *addr) in set_bit() argument 32 addr[nr / BITS_PER_LONG] |= 1UL << (nr % BITS_PER_LONG); in set_bit() 35 static inline void clear_bit(int nr, unsigned long *addr) in clear_bit() argument 37 addr[nr / BITS_PER_LONG] &= ~(1UL << (nr % BITS_PER_LONG)); in clear_bit() [all …]
|
/system/core/libcutils/tests/ |
D | android_get_control_socket_test.cpp | 51 struct sockaddr_un addr; in TEST() local 52 memset(&addr, 0, sizeof(addr)); in TEST() 53 addr.sun_family = AF_UNIX; in TEST() 54 snprintf(addr.sun_path, sizeof(addr.sun_path), ANDROID_SOCKET_DIR"/%s", name); in TEST() 55 unlink(addr.sun_path); in TEST() 57 EXPECT_EQ(bind(fd, (struct sockaddr*)&addr, sizeof(addr)), 0); in TEST() 67 EXPECT_EQ(unlink(addr.sun_path), 0); in TEST()
|
/system/core/libunwindstack/include/unwindstack/ |
D | Memory.h | 34 virtual bool ReadString(uint64_t addr, std::string* string, uint64_t max_read = UINT64_MAX); 36 virtual bool Read(uint64_t addr, void* dst, size_t size) = 0; 38 inline bool ReadField(uint64_t addr, void* start, void* field, size_t size) { in ReadField() argument 43 if (__builtin_add_overflow(addr, offset, &offset)) { in ReadField() 50 inline bool Read32(uint64_t addr, uint32_t* dst) { return Read(addr, dst, sizeof(uint32_t)); } in Read32() argument 52 inline bool Read64(uint64_t addr, uint64_t* dst) { return Read(addr, dst, sizeof(uint64_t)); } in Read64() argument 60 bool Read(uint64_t addr, void* dst, size_t size) override; 79 bool Read(uint64_t addr, void* dst, size_t size) override; 96 bool Read(uint64_t addr, void* dst, size_t size) override; 107 bool Read(uint64_t addr, void* dst, size_t size) override; [all …]
|
/system/core/libbacktrace/ |
D | BacktracePtrace.cpp | 34 static bool PtraceRead(pid_t tid, uintptr_t addr, word_t* out_value) { in PtraceRead() argument 38 *out_value = ptrace(PTRACE_PEEKTEXT, tid, reinterpret_cast<void*>(addr), nullptr); in PtraceRead() 65 size_t BacktracePtrace::Read(uintptr_t addr, uint8_t* buffer, size_t bytes) { in Read() argument 71 FillInMap(addr, &map); in Read() 76 bytes = MIN(map.end - addr, bytes); in Read() 79 size_t align_bytes = addr & (sizeof(word_t) - 1); in Read() 81 if (!PtraceRead(Tid(), addr & ~(sizeof(word_t) - 1), &data_word)) { in Read() 86 addr += copy_bytes; in Read() 94 if (!PtraceRead(Tid(), addr, &data_word)) { in Read() 99 addr += sizeof(word_t); in Read() [all …]
|
/system/core/adb/sysdeps/posix/ |
D | network.cpp | 33 static sockaddr* loopback_addr4(sockaddr_storage* addr, socklen_t* addrlen, int port) { in loopback_addr4() argument 34 struct sockaddr_in* addr4 = reinterpret_cast<sockaddr_in*>(addr); in loopback_addr4() 40 return reinterpret_cast<sockaddr*>(addr); in loopback_addr4() 43 static sockaddr* loopback_addr6(sockaddr_storage* addr, socklen_t* addrlen, int port) { in loopback_addr6() argument 44 struct sockaddr_in6* addr6 = reinterpret_cast<sockaddr_in6*>(addr); in loopback_addr6() 50 return reinterpret_cast<sockaddr*>(addr); in loopback_addr6() 62 sockaddr* addr = (ipv6 ? loopback_addr6 : loopback_addr4)(&addr_storage, &addrlen, 0); in _network_loopback_client() local 64 if (bind(s.get(), addr, addrlen) != 0) { in _network_loopback_client() 69 addr = (ipv6 ? loopback_addr6 : loopback_addr4)(&addr_storage, &addrlen, port); in _network_loopback_client() 71 if (connect(s.get(), addr, addrlen) != 0) { in _network_loopback_client() [all …]
|
/system/core/debuggerd/libdebuggerd/ |
D | elf_utils.cpp | 56 uintptr_t addr = base_addr + phdr.p_offset; in get_build_id() local 59 … if (backtrace->Read(addr, reinterpret_cast<uint8_t*>(&nhdr), sizeof(nhdr)) != sizeof(nhdr)) { in get_build_id() 62 addr += sizeof(nhdr); in get_build_id() 65 addr += NOTE_ALIGN(nhdr.n_namesz); in get_build_id() 72 if (backtrace->Read(addr, build_id_data, nhdr.n_descsz) != nhdr.n_descsz) { in get_build_id() 86 addr += skip_bytes; in get_build_id() 98 bool elf_get_build_id(Backtrace* backtrace, uintptr_t addr, std::string* build_id) { in elf_get_build_id() argument 101 if (backtrace->Read(addr, e_ident, SELFMAG) != SELFMAG) { in elf_get_build_id() 110 …if (backtrace->Read(addr + SELFMAG, e_ident + SELFMAG, EI_NIDENT - SELFMAG) != EI_NIDENT - SELFMAG… in elf_get_build_id() 115 return get_build_id<Elf32_Ehdr, Elf32_Phdr, Elf32_Nhdr>(backtrace, addr, e_ident, build_id); in elf_get_build_id() [all …]
|
D | utility.cpp | 103 void dump_memory(log_t* log, Backtrace* backtrace, uintptr_t addr, const char* fmt, ...) { argument 111 addr &= ~(sizeof(long) - 1); 112 if (addr >= 4128) { 113 addr -= 32; 117 if (addr < 4096 || 119 addr > 0x4000000000000000UL - MEMORY_BYTES_TO_DUMP) { 121 addr > 0xffff0000 - MEMORY_BYTES_TO_DUMP) { 131 size_t bytes = backtrace->Read(addr, reinterpret_cast<uint8_t*>(data), sizeof(data)); 145 start = ((addr + (page_size - 1)) & ~(page_size - 1)) - addr; 158 size_t bytes2 = backtrace->Read(addr + start + bytes, reinterpret_cast<uint8_t*>(data) + bytes, [all …]
|
/system/netd/libnetdutils/include/netdutils/ |
D | Socket.h | 29 inline sockaddr* asSockaddrPtr(void* addr) { in asSockaddrPtr() argument 30 return reinterpret_cast<sockaddr*>(addr); in asSockaddrPtr() 33 inline const sockaddr* asSockaddrPtr(const void* addr) { in asSockaddrPtr() argument 34 return reinterpret_cast<const sockaddr*>(addr); in asSockaddrPtr() 39 StatusOr<std::string> toString(const in6_addr& addr);
|
D | Syscalls.h | 47 virtual Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const = 0; 52 virtual Status bind(Fd sock, const sockaddr* addr, socklen_t addrlen) const = 0; 54 virtual Status connect(Fd sock, const sockaddr* addr, socklen_t addrlen) const = 0; 108 SockaddrT addr = {}; in getsockname() local 109 socklen_t addrlen = sizeof(addr); in getsockname() 110 RETURN_IF_NOT_OK(getsockname(sock, asSockaddrPtr(&addr), &addrlen)); in getsockname() 111 return addr; in getsockname() 120 Status bind(Fd sock, const SockaddrT& addr) const { in bind() argument 121 return bind(sock, asSockaddrPtr(&addr), sizeof(addr)); in bind() 125 Status connect(Fd sock, const SockaddrT& addr) const { in connect() argument [all …]
|
/system/bt/hci/src/ |
D | hci_layer_linux.cc | 201 struct sockaddr_hci addr; in hci_initialize() local 202 memset(&addr, 0, sizeof(addr)); in hci_initialize() 203 addr.hci_family = AF_BLUETOOTH; in hci_initialize() 204 addr.hci_dev = hci_interface; in hci_initialize() 205 addr.hci_channel = HCI_CHANNEL_USER; in hci_initialize() 206 if (bind(fd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in hci_initialize() 269 uint8_t* addr = packet->data + packet->offset - 1; in hci_transmit() local 270 uint8_t store = *addr; in hci_transmit() 271 *addr = type; in hci_transmit() 272 size_t ret = write(bt_vendor_fd, addr, packet->len + 1); in hci_transmit() [all …]
|
/system/bt/btif/include/ |
D | btif_pan_internal.h | 91 btpan_conn_t* btpan_new_conn(int handle, const RawAddress& addr, int local_role, 93 btpan_conn_t* btpan_find_conn_addr(const RawAddress& addr); 105 static inline int is_empty_eth_addr(const RawAddress& addr) { in is_empty_eth_addr() argument 106 return addr == RawAddress::kEmpty; in is_empty_eth_addr() 109 static inline int is_valid_bt_eth_addr(const RawAddress& addr) { in is_valid_bt_eth_addr() argument 110 if (is_empty_eth_addr(addr)) return 0; in is_valid_bt_eth_addr() 111 return addr.address[0] & 1 ? 0 : 1; /* Cannot be multicasting address */ in is_valid_bt_eth_addr()
|
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/ |
D | bitops.h | 33 …efine for_each_set_bit(bit,addr,size) for((bit) = find_first_bit((addr), (size)); (bit) < (size); … argument 34 …r_each_set_bit_from(bit,addr,size) for((bit) = find_next_bit((addr), (size), (bit)); (bit) < (size… argument
|
/system/core/libpixelflinger/codeflinger/ |
D | load_store.cpp | 31 void GGLAssembler::store(const pointer_t& addr, const pixel_t& s, uint32_t flags) in store() argument 33 const int bits = addr.size; in store() 37 if (inc) STR(AL, s.reg, addr.reg, immed12_post(4)); in store() 38 else STR(AL, s.reg, addr.reg); in store() 43 STRB(AL, s.reg, addr.reg, immed12_pre(0)); in store() 45 STRB(AL, s.reg, addr.reg, immed12_pre(1)); in store() 47 STRB(AL, s.reg, addr.reg, immed12_pre(2)); in store() 52 ADD(AL, 0, addr.reg, addr.reg, imm(3)); in store() 55 if (inc) STRH(AL, s.reg, addr.reg, immed8_post(2)); in store() 56 else STRH(AL, s.reg, addr.reg); in store() [all …]
|