Searched defs:addr (Results 1 - 25 of 56) sorted by path

123

/system/bluetooth/tools/
H A Dasocket_test.c141 struct sockaddr *addr = NULL; local
146 addr = (struct sockaddr *) &local_addr_un;
150 addr = (struct sockaddr *) &local_addr_rc;
154 addr = (struct sockaddr *) &local_addr_sco;
158 addr = (struct sockaddr *) &local_addr_l2;
162 addr = (struct sockaddr *) &local_addr_in;
168 ret = bind(fd, addr, len);
202 struct sockaddr *addr = NULL; local
206 addr = (struct sockaddr *) &remote_addr_un;
210 addr
241 struct sockaddr *addr = NULL; local
[all...]
H A Dsock_shutdown_bug_l2cap.c30 struct sockaddr_l2 addr; local
32 addr.l2_family = AF_BLUETOOTH;
33 str2ba("00:01:02:0A:0B:0C", &addr.l2_bdaddr);
34 addr.l2_psm = htobs(1);
40 connect(fd, (struct sockaddr *)&addr, sizeof(addr));
H A Dsock_shutdown_bug_rfcomm.c31 struct sockaddr_rc addr; local
33 addr.rc_family = AF_BLUETOOTH;
34 addr.rc_channel = 19;
35 str2ba("00:17:E8:2C:A8:00", &addr.rc_bdaddr);
41 ret = connect(fd, (struct sockaddr *)&addr, sizeof(addr));
52 ret = connect(fd, (struct sockaddr *)&addr, sizeof(addr));
H A Dsock_shutdown_bug_tcp.c29 struct sockaddr_in addr; local
31 addr.sin_family = AF_INET;
32 addr.sin_port = 12348;
36 ret = bind(fd, (struct sockaddr *)&addr, sizeof(addr));
54 ret = bind(fd, (struct sockaddr *)&addr, sizeof(addr));
H A Dsock_shutdown_test.c123 struct sockaddr *addr = NULL; local
128 addr = (struct sockaddr *) &local_addr_un;
132 addr = (struct sockaddr *) &local_addr_rc;
136 addr = (struct sockaddr *) &local_addr_sco;
140 addr = (struct sockaddr *) &local_addr_l2;
144 addr = (struct sockaddr *) &local_addr_in;
150 ret = bind(fd, addr, len);
171 struct sockaddr *addr = NULL; local
175 addr = (struct sockaddr *) &remote_addr_un;
179 addr
[all...]
H A Dsocktest.c140 struct sockaddr *addr = NULL; local
145 addr = (struct sockaddr *) &local_addr_un;
149 addr = (struct sockaddr *) &local_addr_rc;
153 addr = (struct sockaddr *) &local_addr_sco;
157 addr = (struct sockaddr *) &local_addr_l2;
161 addr = (struct sockaddr *) &local_addr_in;
167 ret = bind(fd, addr, len);
201 struct sockaddr *addr = NULL; local
205 addr = (struct sockaddr *) &remote_addr_un;
209 addr
254 struct sockaddr *addr = NULL; local
[all...]
/system/core/adb/
H A Dadb.c622 struct sockaddr addr; local
626 alen = sizeof(addr);
627 fd = adb_socket_accept(_fd, &addr, &alen);
648 struct sockaddr addr; local
652 alen = sizeof(addr);
653 fd = adb_socket_accept(_fd, &addr, &alen);
H A Dadb_auth_client.c209 struct sockaddr addr; local
213 alen = sizeof(addr);
215 s = adb_socket_accept(fd, &addr, &alen);
H A Djdwp_service.c452 struct sockaddr_un addr; local
455 int maxpath = sizeof(addr.sun_path);
464 memset(&addr, 0, sizeof(addr));
465 addr.sun_family = AF_UNIX;
466 memcpy(addr.sun_path, sockname, socknamelen);
475 addrlen = (pathlen + sizeof(addr.sun_family));
477 if (bind(s, (struct sockaddr*)&addr, addrlen) < 0) {
515 struct sockaddr addr; local
516 socklen_t addrlen = sizeof(addr);
[all...]
H A Dsysdeps.h214 extern int adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrlen);
400 static __inline__ int adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrlen) argument
404 fd = accept(serverfd, addr, addrlen);
H A Dsysdeps_win32.c582 struct sockaddr_in addr; local
591 memset(&addr, 0, sizeof(addr));
592 addr.sin_family = AF_INET;
593 addr.sin_port = htons(port);
594 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
604 if(connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
619 struct sockaddr_in addr; local
630 memset(&addr,
666 struct sockaddr_in addr; local
707 struct sockaddr_in addr; local
752 adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrlen) argument
[all...]
H A Dtransport_local.c157 struct sockaddr addr; local
174 alen = sizeof(addr);
176 fd = adb_socket_accept(serverfd, &addr, &alen);
/system/core/debuggerd/arm/
H A Dmachine.c45 static void dump_memory(log_t* log, pid_t tid, uintptr_t addr, bool at_fault) { argument
50 p = addr & ~3;
52 if (p > addr) {
63 * addr contents ascii
125 uintptr_t addr = regs.uregs[reg]; variable
131 if (addr < 4096 || addr >= 0xc0000000) {
136 dump_memory(log, tid, addr, at_fault);
/system/core/debuggerd/
H A Ddebuggerd.c456 struct sockaddr addr; local
460 alen = sizeof(addr);
462 fd = accept(s, &addr, &alen);
H A Dtombstone.c157 _LOG(log, false, "signal %d (%s), code %d (%s), fault addr %08x\n",
162 _LOG(log, false, "signal %d (%s), code %d (%s), fault addr --------\n",
342 uintptr_t addr = (uintptr_t) si.si_addr; local
343 addr &= ~0xfff; /* round to 4K page boundary */
344 if (addr == 0) { /* null-pointer deref */
348 _LOG(log, false, "\nmemory map around fault addr %08x:\n", (int)si.si_addr);
358 if (addr >= map->start && addr < map->end) {
361 } else if (addr >= map->end) {
/system/core/debuggerd/mips/
H A Dmachine.c39 static void dump_memory(log_t* log, pid_t tid, uintptr_t addr, bool at_fault) { argument
44 p = addr & ~3;
46 if (p > addr) {
56 * addr contents ascii
122 uintptr_t addr = R(r.regs[reg]); variable
128 if (addr < 4096 || addr >= 0x80000000) {
133 dump_memory(log, tid, addr, at_fault);
/system/core/include/cutils/
H A Datomic-arm.h182 extern inline int32_t android_atomic_inc(volatile int32_t *addr) argument
184 return android_atomic_add(1, addr);
187 extern inline int32_t android_atomic_dec(volatile int32_t *addr) argument
189 return android_atomic_add(-1, addr);
H A Datomic-mips.h145 extern inline int32_t android_atomic_inc(volatile int32_t *addr) argument
147 return android_atomic_add(1, addr);
150 extern inline int32_t android_atomic_dec(volatile int32_t *addr) argument
152 return android_atomic_add(-1, addr);
H A Datomic-x86.h111 extern inline int32_t android_atomic_inc(volatile int32_t *addr) argument
113 return android_atomic_add(1, addr);
116 extern inline int32_t android_atomic_dec(volatile int32_t *addr) argument
118 return android_atomic_add(-1, addr);
/system/core/init/
H A Dproperty_service.c416 struct sockaddr_un addr; local
417 socklen_t addr_size = sizeof(addr);
421 if ((s = accept(property_set_fd, (struct sockaddr *) &addr, &addr_size)) < 0) {
H A Dutil.c90 struct sockaddr_un addr; local
102 memset(&addr, 0 , sizeof(addr));
103 addr.sun_family = AF_UNIX;
104 snprintf(addr.sun_path, sizeof(addr.sun_path), ANDROID_SOCKET_DIR"/%s",
107 ret = unlink(addr.sun_path);
116 ret = selabel_lookup(sehandle, &secon, addr.sun_path, S_IFSOCK);
122 ret = bind(fd, (struct sockaddr *) &addr, sizeof (addr));
[all...]
/system/core/libcorkscrew/arch-mips/
H A Dbacktrace-mips.c82 uintptr_t addr; local
95 for (addr = state->pc; maxcheck-- > 0 && !found_start; addr -= 4) {
97 if (!try_get_word(memory, addr, &op))
100 // ALOGV("@0x%08x: 0x%08x\n", addr, op);
109 ALOGV("@0x%08x: found stack adjustment=%d\n", addr, stack_size);
115 ALOGV("@0x%08x: found ra offset=%d\n", addr, ra_offset);
118 ALOGV("@0x%08x: found function boundary\n", addr);
/system/core/libcorkscrew/
H A Dmap_info.c100 const map_info_t* find_map_info(const map_info_t* milist, uintptr_t addr) { argument
102 while (mi && !(addr >= mi->start && addr < mi->end)) {
108 bool is_readable_map(const map_info_t* milist, uintptr_t addr) { argument
109 const map_info_t* mi = find_map_info(milist, addr);
113 bool is_executable_map(const map_info_t* milist, uintptr_t addr) { argument
114 const map_info_t* mi = find_map_info(milist, addr);
H A Dptrace.c135 uintptr_t addr, const map_info_t** out_map_info, const symbol_t** out_symbol) {
136 const map_info_t* mi = find_map_info(context->map_info_list, addr);
141 symbol = find_symbol(data->symbol_table, addr - mi->start);
134 find_symbol_ptrace(const ptrace_context_t* context, uintptr_t addr, const map_info_t** out_map_info, const symbol_t** out_symbol) argument
H A Dsymbol_table.c49 uintptr_t addr = *(const uintptr_t*)key; local
51 if (addr < symbol->start) return -1;
52 if (addr >= symbol->end) return 1;
215 const symbol_t* find_symbol(const symbol_table_t* table, uintptr_t addr) { argument
217 return (const symbol_t*)bsearch(&addr, table->symbols, table->num_symbols,

Completed in 42 milliseconds

123