Searched refs:addr (Results 1 - 25 of 66) sorted by relevance

123

/system/core/include/cutils/
H A Datomic.h68 int32_t android_atomic_inc(volatile int32_t* addr);
69 int32_t android_atomic_dec(volatile int32_t* addr);
70 int32_t android_atomic_add(int32_t value, volatile int32_t* addr);
71 int32_t android_atomic_and(int32_t value, volatile int32_t* addr);
72 int32_t android_atomic_or(int32_t value, volatile int32_t* addr);
80 int32_t android_atomic_acquire_load(volatile const int32_t* addr);
81 int32_t android_atomic_release_load(volatile const int32_t* addr);
89 void android_atomic_acquire_store(int32_t value, volatile int32_t* addr);
90 void android_atomic_release_store(int32_t value, volatile int32_t* addr);
96 * only happen when *addr
[all...]
H A Dabort_socket.h77 int asocket_connect(struct asocket *s, const struct sockaddr *addr,
80 int asocket_accept(struct asocket *s, struct sockaddr *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/toolbox/
H A Dr.c16 unsigned addr, value, endaddr = 0; local
34 addr = strtoul(argv[1], 0, 16);
41 endaddr = addr + width - 1;
43 if (endaddr <= addr) {
59 mmap_start = addr & ~(PAGE_SIZE - 1);
71 while (addr <= endaddr) {
74 unsigned *x = (unsigned*) (((unsigned) page) + (addr & 4095));
76 fprintf(stderr,"%08x: %08x\n", addr, *x);
80 unsigned short *x = (unsigned short*) (((unsigned) page) + (addr & 4095));
82 fprintf(stderr,"%08x: %04x\n", addr, *
[all...]
H A Difconfig.c29 static inline void init_sockaddr_in(struct sockaddr_in *sin, const char *addr) argument
33 sin->sin_addr.s_addr = inet_addr(addr);
42 static void setdstaddr(int s, struct ifreq *ifr, const char *addr) argument
44 init_sockaddr_in((struct sockaddr_in *) &ifr->ifr_dstaddr, addr);
48 static void setnetmask(int s, struct ifreq *ifr, const char *addr) argument
50 init_sockaddr_in((struct sockaddr_in *) &ifr->ifr_netmask, addr);
54 static void setaddr(int s, struct ifreq *ifr, const char *addr) argument
56 init_sockaddr_in((struct sockaddr_in *) &ifr->ifr_addr, addr);
64 unsigned int addr, mask, flags; local
88 addr
[all...]
H A Dsyren.c16 unsigned long addr; member in struct:syren_io_args
22 u_char addr; member in struct:__anon487
57 fprintf(stderr, "usage: syren [r/w] [REGNAME | page:addr] (value)\n");
112 sio.addr = registers[i].addr;
132 sio.addr = strtoul(addr_str, 0, 0);
136 sio.addr = r->addr;
/system/core/libcutils/
H A Dsocket_inaddr_any_server.c38 struct sockaddr_in addr; local
42 memset(&addr, 0, sizeof(addr));
43 addr.sin_family = AF_INET;
44 addr.sin_port = htons(port);
45 addr.sin_addr.s_addr = htonl(INADDR_ANY);
53 if(bind(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
H A Dsocket_loopback_client.c39 struct sockaddr_in addr; local
43 memset(&addr, 0, sizeof(addr));
44 addr.sin_family = AF_INET;
45 addr.sin_port = htons(port);
46 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
51 if(connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
H A Dsocket_loopback_server.c38 struct sockaddr_in addr; local
42 memset(&addr, 0, sizeof(addr));
43 addr.sin_family = AF_INET;
44 addr.sin_port = htons(port);
45 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
53 if(bind(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
H A Dsocket_network_client.c42 struct sockaddr_in addr; local
49 memset(&addr, 0, sizeof(addr));
50 addr.sin_family = hp->h_addrtype;
51 addr.sin_port = htons(port);
52 memcpy(&addr.sin_addr, hp->h_addr, hp->h_length);
57 if(connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
H A Duevent.c51 struct sockaddr_nl addr; local
54 &addr,
55 sizeof(addr),
82 if (addr.nl_groups == 0 || addr.nl_pid != 0) {
98 struct sockaddr_nl addr; local
102 memset(&addr, 0, sizeof(addr));
103 addr.nl_family = AF_NETLINK;
104 addr
[all...]
H A Dsocket_local_server.c55 struct sockaddr_un addr; local
60 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
74 unlink(addr.sun_path);
80 if(bind(s, (struct sockaddr *) &addr, alen) < 0) {
/system/bluetooth/tools/
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_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_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...]
/system/core/include/corkscrew/
H A Dmap_info.h47 const map_info_t* find_map_info(const map_info_t* milist, uintptr_t addr);
49 /* Returns true if the addr is in an readable map. */
50 bool is_readable_map(const map_info_t* milist, uintptr_t addr);
52 /* Returns true if the addr is in an executable map. */
53 bool is_executable_map(const map_info_t* milist, uintptr_t addr);
H A Dsymbol_table.h53 const symbol_t* find_symbol(const symbol_table_t* table, uintptr_t addr);
/system/extras/tests/bionic/libc/other/
H A Dtest_atomics.c4 extern int __atomic_dec(volatile int* addr);
/system/core/include/netutils/
H A Difc.h42 extern int ifc_get_addr(const char *name, in_addr_t *addr);
43 extern int ifc_set_addr(const char *name, in_addr_t addr);
53 extern int ifc_add_host_route(const char *name, in_addr_t addr);
59 extern int ifc_create_default_route(const char *name, in_addr_t addr);
61 extern int ifc_add_route(const char *name, const char *addr, int prefix_length,
65 extern int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength,
/system/netd/
H A DSecondaryTableController.h41 int modifyFromRule(int tableIndex, const char *action, const char *addr);
42 int modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr);
52 const char *getVersion(const char *addr);
H A DFirewallController.cpp85 int FirewallController::setEgressSourceRule(const char* addr, FirewallRule rule) { argument
87 if (strchr(addr, ':')) {
99 res |= execIptables(target, op, LOCAL_INPUT, "-d", addr, "-j", "RETURN", NULL);
100 res |= execIptables(target, op, LOCAL_OUTPUT, "-s", addr, "-j", "RETURN", NULL);
104 int FirewallController::setEgressDestRule(const char* addr, int protocol, int port, argument
107 if (strchr(addr, ':')) {
125 res |= execIptables(target, op, LOCAL_INPUT, "-s", addr, "-p", protocolStr,
127 res |= execIptables(target, op, LOCAL_OUTPUT, "-d", addr, "-p", protocolStr,
H A DResolverController.cpp50 int ResolverController::setInterfaceAddress(const char* iface, struct in_addr* addr) { argument
55 _resolv_set_addr_of_iface(iface, addr);
H A DResolverController.h30 int setInterfaceAddress(const char* iface, struct in_addr* addr);
/system/core/netcfg/
H A Dnetcfg.c37 const char *ipaddr(in_addr_t addr) argument
41 in_addr.s_addr = addr;
53 unsigned addr, flags; local
57 if(ifc_get_info(name, &addr, &prefixLength, &flags)) {
62 printf("%40s", ipaddr(addr));
93 struct ether_addr *addr = ether_aton(asc); local
94 if (!addr) {
98 return ifc_set_hwaddr(name, addr->ether_addr_octet);

Completed in 147 milliseconds

123