Searched defs:addr (Results 1 - 25 of 63) sorted by relevance

123

/system/bluetooth/bluez-clean-headers/bluetooth/
H A Dhci_lib.h19 static inline int hci_test_bit(int nr, void *addr) argument
21 return *((uint32_t *) addr + (nr >> 5)) & (1 << (nr & 31));
/system/bluetooth/tools/
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));
/system/core/libcutils/
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_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_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 Dsocket_local_client.c127 struct sockaddr_un addr; local
132 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
138 if(connect(fd, (struct sockaddr *) &addr, alen) < 0) {
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) {
H A Dabort_socket.c59 int asocket_connect(struct asocket *s, const struct sockaddr *addr, argument
65 ret = connect(s->fd, addr, addrlen);
119 int asocket_accept(struct asocket *s, struct sockaddr *addr, argument
154 ret = accept(s->fd, addr, addrlen);
H A Datomic-android-sh.c48 #define SWAP_LOCK(addr) \
49 &_swap_locks[((unsigned)(void*)(addr) >> 3U) % SWAP_LOCK_COUNT]
52 int32_t android_atomic_acquire_load(volatile const int32_t* addr) argument
54 return *addr;
57 int32_t android_atomic_release_load(volatile const int32_t* addr) argument
59 return *addr;
62 void android_atomic_acquire_store(int32_t value, volatile int32_t* addr) { argument
65 oldValue = *addr;
66 } while (android_atomic_release_cas(oldValue, value, addr));
69 void android_atomic_release_store(int32_t value, volatile int32_t* addr) { argument
76 android_atomic_inc(volatile int32_t* addr) argument
84 android_atomic_dec(volatile int32_t* addr) argument
92 android_atomic_add(int32_t value, volatile int32_t* addr) argument
100 android_atomic_and(int32_t value, volatile int32_t* addr) argument
108 android_atomic_or(int32_t value, volatile int32_t* addr) argument
116 android_atomic_acquire_swap(int32_t value, volatile int32_t* addr) argument
120 android_atomic_release_swap(int32_t value, volatile int32_t* addr) argument
128 android_atomic_acquire_cmpxchg(int32_t oldvalue, int32_t newvalue, volatile int32_t* addr) argument
133 android_atomic_release_cmpxchg(int32_t oldvalue, int32_t newvalue, volatile int32_t* addr) argument
[all...]
/system/core/nexus/
H A DDhcpClient.cpp38 int ifc_add_host_route(const char *ifname, uint32_t addr);
93 sockaddr_in addr; local
99 memset(&addr, 0, sizeof(addr));
100 addr.sin_family = AF_INET;
101 addr.sin_addr.s_addr = inet_addr("127.0.0.1");
102 addr.sin_port = htons(DhcpClient::STATUS_MONITOR_PORT);
104 if (bind(mListenerSocket, (struct sockaddr *) &addr, sizeof(addr))) {
H A DTiwlanWifiController.cpp99 struct sockaddr_in addr; local
112 memset(&addr, 0, sizeof(addr));
113 addr.sin_family = AF_INET;
114 addr.sin_addr.s_addr = htonl(INADDR_ANY);
115 addr.sin_port = htons(TI_DRIVER_MSG_PORT);
118 (struct sockaddr *) &addr,
119 sizeof(addr)) < 0) {
H A DInterfaceConfig.cpp42 void InterfaceConfig::setIp(struct in_addr *addr) { argument
43 memcpy(&mIp, addr, sizeof(struct in_addr));
46 void InterfaceConfig::setNetmask(struct in_addr *addr) { argument
47 memcpy(&mNetmask, addr, sizeof(struct in_addr));
50 void InterfaceConfig::setGateway(struct in_addr *addr) { argument
51 memcpy(&mGateway, addr, sizeof(struct in_addr));
54 void InterfaceConfig::setBroadcast(struct in_addr *addr) { argument
55 memcpy(&mBroadcast, addr, sizeof(struct in_addr));
58 void InterfaceConfig::setDns(int idx, struct in_addr *addr) { argument
59 memcpy(&mDns[idx], addr, sizeo
[all...]
/system/core/toolbox/
H A Dr.c16 unsigned addr, value; local
32 addr = strtoul(argv[1], 0, 16);
46 MAP_SHARED, fd, addr & (~4095));
55 unsigned *x = (unsigned*) (((unsigned) page) + (addr & 4095));
57 fprintf(stderr,"%08x: %08x\n", addr, *x);
61 unsigned short *x = (unsigned short*) (((unsigned) page) + (addr & 4095));
63 fprintf(stderr,"%08x: %04x\n", addr, *x);
67 unsigned char *x = (unsigned char*) (((unsigned) page) + (addr & 4095));
69 fprintf(stderr,"%08x: %02x\n", addr, *x);
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:__anon160
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/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/
H A Dioctl_utils.c119 void print_memory_dump(char *addr, int size ) argument
133 sprintf(&buf[strlen(buf)], "%s%p: ", (i) ? "\n" : "", addr+i );
134 sprintf(&buf[strlen(buf)], "%02x ", (unsigned char)addr[i] );
/system/wlan/ti/wilink_6_1/TWD/FW_Transfer/Export_Inc/
H A DfwDebug_api.h60 TI_UINT32 addr; member in struct:__anon1138
/system/core/include/cutils/
H A Datomic-arm.h199 extern inline int32_t android_atomic_inc(volatile int32_t *addr) argument
201 return android_atomic_add(1, addr);
204 extern inline int32_t android_atomic_dec(volatile int32_t *addr) argument
206 return android_atomic_add(-1, addr);
H A Datomic-x86.h114 extern inline int32_t android_atomic_inc(volatile int32_t *addr) argument
116 return android_atomic_add(1, addr);
119 extern inline int32_t android_atomic_dec(volatile int32_t *addr) argument
121 return android_atomic_add(-1, addr);
/system/core/libsysutils/src/
H A DSocketListener.cpp173 struct sockaddr addr; local
174 socklen_t alen = sizeof(addr);
177 if ((c = accept(mSock, &addr, &alen)) < 0) {
/system/core/netcfg/
H A Dnetcfg.c31 int ifc_get_info(const char *name, unsigned *addr, unsigned *mask, unsigned *flags);
40 const char *ipaddr(unsigned addr) argument
45 addr & 255,
46 ((addr >> 8) & 255),
47 ((addr >> 16) & 255),
48 (addr >> 24));
60 unsigned addr, mask, flags; local
62 if(ifc_get_info(name, &addr, &mask, &flags)) {
67 printf("%-16s", ipaddr(addr));
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/IPC/Linux/
H A Dipc_user.c312 void print_memory_dump(char *addr, int size ) argument
327 sprintf(&buf[strlen(buf)], "%sTI_CU:%p: ", (i) ? "\n" : "", addr+i );
328 sprintf(&buf[strlen(buf)], "%02x ", (unsigned char) addr[i] );

Completed in 171 milliseconds

123