Home
last modified time | relevance | path

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

12345

/system/extras/tests/mmc_tracepoints/
Dmmc_trace_sample_data12 … 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/include/cutils/
Datomic.h82 int32_t android_atomic_inc(volatile int32_t* addr) in android_atomic_inc() argument
84 volatile atomic_int_least32_t* a = (volatile atomic_int_least32_t*)addr; in android_atomic_inc()
90 int32_t android_atomic_dec(volatile int32_t* addr) in android_atomic_dec() argument
92 volatile atomic_int_least32_t* a = (volatile atomic_int_least32_t*)addr; in android_atomic_dec()
97 int32_t android_atomic_add(int32_t value, volatile int32_t* addr) in android_atomic_add() argument
99 volatile atomic_int_least32_t* a = (volatile atomic_int_least32_t*)addr; in android_atomic_add()
104 int32_t android_atomic_and(int32_t value, volatile int32_t* addr) in android_atomic_and() argument
106 volatile atomic_int_least32_t* a = (volatile atomic_int_least32_t*)addr; in android_atomic_and()
111 int32_t android_atomic_or(int32_t value, volatile int32_t* addr) in android_atomic_or() argument
113 volatile atomic_int_least32_t* a = (volatile atomic_int_least32_t*)addr; in android_atomic_or()
[all …]
/system/core/libcutils/
Duevent.c55 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 …]
Dsocket_loopback_client.c38 struct sockaddr_in addr; in socket_loopback_client() local
41 memset(&addr, 0, sizeof(addr)); in socket_loopback_client()
42 addr.sin_family = AF_INET; in socket_loopback_client()
43 addr.sin_port = htons(port); in socket_loopback_client()
44 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in socket_loopback_client()
49 if(connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in socket_loopback_client()
Dsocket_inaddr_any_server.c37 struct sockaddr_in addr; in socket_inaddr_any_server() local
40 memset(&addr, 0, sizeof(addr)); in socket_inaddr_any_server()
41 addr.sin_family = AF_INET; in socket_inaddr_any_server()
42 addr.sin_port = htons(port); in socket_inaddr_any_server()
43 addr.sin_addr.s_addr = htonl(INADDR_ANY); in socket_inaddr_any_server()
51 if(bind(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in socket_inaddr_any_server()
Dsocket_loopback_server.c37 struct sockaddr_in addr; in socket_loopback_server() local
40 memset(&addr, 0, sizeof(addr)); in socket_loopback_server()
41 addr.sin_family = AF_INET; in socket_loopback_server()
42 addr.sin_port = htons(port); in socket_loopback_server()
43 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in socket_loopback_server()
51 if(bind(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in socket_loopback_server()
Dsocket_network_client.c47 struct sockaddr_in addr; in socket_network_client_timeout() local
60 memset(&addr, 0, sizeof(addr)); in socket_network_client_timeout()
61 addr.sin_family = hp->h_addrtype; in socket_network_client_timeout()
62 addr.sin_port = htons(port); in socket_network_client_timeout()
63 memcpy(&addr.sin_addr, hp->h_addr, hp->h_length); in socket_network_client_timeout()
78 if ((ret = connect(s, (struct sockaddr *) &addr, sizeof(addr))) < 0) { in socket_network_client_timeout()
Dsocket_local_server.c57 struct sockaddr_un addr; local
62 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
76 unlink(addr.sun_path);
82 if(bind(s, (struct sockaddr *) &addr, alen) < 0) {
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/
Dbitops.h19 #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/toolbox/
Dr.c38 uintptr_t addr = strtoptr(argv[1], 0, 16); in main() local
46 endaddr = addr + width - 1; in main()
48 if (endaddr <= addr) { in main()
66 off64_t mmap_start = addr & ~(PAGE_SIZE - 1); in main()
78 while (addr <= endaddr) { in main()
81 uint32_t* x = (uint32_t*) (((uintptr_t) page) + (addr & 4095)); in main()
83 fprintf(stderr,"%08"PRIxPTR": %08x\n", addr, *x); in main()
87 uint16_t* x = (uint16_t*) (((uintptr_t) page) + (addr & 4095)); in main()
89 fprintf(stderr,"%08"PRIxPTR": %04x\n", addr, *x); in main()
93 uint8_t* x = (uint8_t*) (((uintptr_t) page) + (addr & 4095)); in main()
[all …]
/system/core/libbacktrace/
DBacktracePtrace.cpp34 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/extras/tests/net_test/
Dcsocket.py53 def Sockaddr(addr): argument
54 if ":" in addr[0]:
56 if len(addr) == 4:
57 addr, port, flowinfo, scope_id = addr
59 (addr, port), flowinfo, scope_id = addr, 0, 0
60 addr = socket.inet_pton(family, addr)
62 addr, scope_id))
65 addr, port = addr
66 addr = socket.inet_pton(family, addr)
67 return SockaddrIn((family, socket.ntohs(port), addr))
/system/core/debuggerd/
Delf_utils.cpp56 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 …]
Dutility.cpp125 void dump_memory(log_t* log, Backtrace* backtrace, uintptr_t addr, const char* fmt, ...) { argument
133 addr &= ~(sizeof(long) - 1);
134 if (addr >= 4128) {
135 addr -= 32;
139 if (addr < 4096 ||
141 addr > 0x4000000000000000UL - MEMORY_BYTES_TO_DUMP) {
143 addr > 0xffff0000 - MEMORY_BYTES_TO_DUMP) {
153 size_t bytes = backtrace->Read(addr, reinterpret_cast<uint8_t*>(data), sizeof(data));
165 size_t bytes2 = backtrace->Read(addr + bytes, reinterpret_cast<uint8_t*>(data) + bytes,
184 android::base::StringAppendF(&logline, " %" PRIPTR, addr);
[all …]
/system/bt/btcore/src/
Dbdaddr.c26 bool bdaddr_is_empty(const bt_bdaddr_t *addr) { in bdaddr_is_empty() argument
27 assert(addr != NULL); in bdaddr_is_empty()
30 return memcmp(addr, &zero, sizeof(bt_bdaddr_t)) == 0; in bdaddr_is_empty()
47 const char *bdaddr_to_string(const bt_bdaddr_t *addr, char *string, size_t size) { in bdaddr_to_string() argument
48 assert(addr != NULL); in bdaddr_to_string()
54 const uint8_t *ptr = addr->address; in bdaddr_to_string()
80 bool string_to_bdaddr(const char *string, bt_bdaddr_t *addr) { in string_to_bdaddr() argument
82 assert(addr != NULL); in string_to_bdaddr()
90 memcpy(addr, &new_addr, sizeof(bt_bdaddr_t)); in string_to_bdaddr()
/system/core/libpixelflinger/codeflinger/
Dload_store.cpp27 void GGLAssembler::store(const pointer_t& addr, const pixel_t& s, uint32_t flags) in store() argument
29 const int bits = addr.size; in store()
33 if (inc) STR(AL, s.reg, addr.reg, immed12_post(4)); in store()
34 else STR(AL, s.reg, addr.reg); in store()
39 STRB(AL, s.reg, addr.reg, immed12_pre(0)); in store()
41 STRB(AL, s.reg, addr.reg, immed12_pre(1)); in store()
43 STRB(AL, s.reg, addr.reg, immed12_pre(2)); in store()
48 ADD(AL, 0, addr.reg, addr.reg, imm(3)); in store()
51 if (inc) STRH(AL, s.reg, addr.reg, immed8_post(2)); in store()
52 else STRH(AL, s.reg, addr.reg); in store()
[all …]
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/
Dbitops.h33 …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/bt/btif/include/
Dbtif_pan_internal.h95 btpan_conn_t *btpan_new_conn(int handle, const BD_ADDR addr, int local_role, int peer_role);
96 btpan_conn_t *btpan_find_conn_addr(const BD_ADDR addr);
107 static inline int is_empty_eth_addr(const BD_ADDR addr) in is_empty_eth_addr() argument
111 if(addr[i] != 0) in is_empty_eth_addr()
116 static inline int is_valid_bt_eth_addr(const BD_ADDR addr) in is_valid_bt_eth_addr() argument
118 if(is_empty_eth_addr(addr)) in is_valid_bt_eth_addr()
120 return addr[0] & 1 ? 0 : 1; /* Cannot be multicasting address */ in is_valid_bt_eth_addr()
/system/bt/device/src/
Dinterop.c41 bool interop_match(const interop_feature_t feature, const bt_bdaddr_t *addr) { in interop_match() argument
42 assert(addr); in interop_match()
48 memcmp(addr, &interop_database[i].addr, interop_database[i].len) == 0) { in interop_match()
51 bdaddr_to_string(addr, bdstr, sizeof(bdstr)), interop_feature_string(feature)); in interop_match()
/system/core/libnetutils/
Difc_utils.c92 static const char *ipaddr_to_string(in_addr_t addr) in ipaddr_to_string() argument
96 in_addr.s_addr = addr; in ipaddr_to_string()
222 static void init_sockaddr_in(struct sockaddr *sa, in_addr_t addr) in init_sockaddr_in() argument
227 sin->sin_addr.s_addr = addr; in init_sockaddr_in()
230 int ifc_set_addr(const char *name, in_addr_t addr) in ifc_set_addr() argument
236 init_sockaddr_in(&ifr.ifr_addr, addr); in ifc_set_addr()
256 void *addr; in ifc_act_on_address() local
288 addr = &sin->sin_addr; in ifc_act_on_address()
292 addr = &sin6->sin6_addr; in ifc_act_on_address()
317 memcpy(RTA_DATA(rta), addr, addrlen); in ifc_act_on_address()
[all …]
/system/core/init/
Dutil.cpp94 struct sockaddr_un addr; in create_socket() local
110 memset(&addr, 0 , sizeof(addr)); in create_socket()
111 addr.sun_family = AF_UNIX; in create_socket()
112 snprintf(addr.sun_path, sizeof(addr.sun_path), ANDROID_SOCKET_DIR"/%s", in create_socket()
115 ret = unlink(addr.sun_path); in create_socket()
123 ret = selabel_lookup(sehandle, &filecon, addr.sun_path, S_IFSOCK); in create_socket()
128 ret = bind(fd, (struct sockaddr *) &addr, sizeof (addr)); in create_socket()
137 chown(addr.sun_path, uid, gid); in create_socket()
138 chmod(addr.sun_path, perm); in create_socket()
141 addr.sun_path, perm, uid, gid); in create_socket()
[all …]
/system/bt/hci/src/
Dbtsnoop_net.c91 struct sockaddr_in addr; in listen_fn_() local
92 addr.sin_family = AF_INET; in listen_fn_()
93 addr.sin_addr.s_addr = htonl(LOCALHOST_); in listen_fn_()
94 addr.sin_port = htons(LISTEN_PORT_); in listen_fn_()
95 if (bind(listen_socket_, (struct sockaddr *)&addr, sizeof(addr)) == -1) { in listen_fn_()
/system/netd/client/
DNetdClient.cpp52 int netdClientAccept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { in netdClientAccept4() argument
53 int acceptedSocket = libcAccept4(sockfd, addr, addrlen, flags); in netdClientAccept4()
58 if (addr) { in netdClientAccept4()
59 family = addr->sa_family; in netdClientAccept4()
75 int netdClientConnect(int sockfd, const sockaddr* addr, socklen_t addrlen) { in netdClientConnect() argument
76 if (sockfd >= 0 && addr && FwmarkClient::shouldSetFwmark(addr->sa_family)) { in netdClientConnect()
83 return libcConnect(sockfd, addr, addrlen); in netdClientConnect()
/system/core/include/netutils/
Difc.h43 extern int ifc_get_addr(const char *name, in_addr_t *addr);
44 extern int ifc_set_addr(const char *name, in_addr_t addr);
53 extern int ifc_create_default_route(const char *name, in_addr_t addr);
55 extern int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength,
/system/bt/btcore/include/
Dbdaddr.h35 bool bdaddr_is_empty(const bt_bdaddr_t *addr);
49 const char *bdaddr_to_string(const bt_bdaddr_t *addr, char *string, size_t size);
57 bool string_to_bdaddr(const char *string, bt_bdaddr_t *addr);

12345