Home
last modified time | relevance | path

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

123456

/device/generic/goldfish/network/wifi_forwarder/
Dmacaddress.h31 memset(addr, 0, sizeof(addr)); in MacAddress()
35 addr[0] = b1; addr[1] = b2; addr[2] = b3; in MacAddress()
36 addr[3] = b4; addr[4] = b5; addr[5] = b6; in MacAddress()
38 uint8_t addr[ETH_ALEN]; member
40 return memcmp(addr, "\xFF\xFF\xFF\xFF\xFF\xFF", ETH_ALEN) == 0; in isBroadcast()
43 return addr[0] & 0x01; in isMulticast()
46 return memcmp(addr, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) == 0; in empty()
49 return addr[index];
55 size_t operator()(const MacAddress& addr) const {
58 hash_combine(seed, *reinterpret_cast<const uint32_t*>(addr.addr));
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/util/gdbstub/
Dgdbstub.c365 unsigned long addr = (unsigned long)mem; in mem2hex() local
368 : "r"(addr & ~3) in mem2hex()
370 ch = v >> (addr & 3) * 8; in mem2hex()
402 unsigned long addr = (unsigned long)mem; in hex2mem() local
410 : "r"(addr & ~3), "r"(0xffffffff ^ (0xff << (addr & 3) * 8)), "r"(ch << (addr & 3) * 8) in hex2mem()
533 int addr; in handle_exception() local
581 if (hexToInt(&ptr, &addr)) in handle_exception()
582 sregs[DEBUG_PC] = addr; in handle_exception()
588 if (hexToInt(&ptr, &addr) && *ptr++ == ',' && in handle_exception()
590 if (mem2hex((void *)addr, remcomOutBuffer, length)) in handle_exception()
[all …]
/device/generic/goldfish/radio/ril/
Dif_monitor.cpp62 static const void* getSockAddrData(const struct sockaddr* addr) { in getSockAddrData() argument
63 switch (addr->sa_family) { in getSockAddrData()
65 return &reinterpret_cast<const struct sockaddr_in*>(addr)->sin_addr; in getSockAddrData()
68 &reinterpret_cast<const struct sockaddr_in6*>(addr)->sin6_addr; in getSockAddrData()
81 memcmp(&left.addr, &right.addr, addrLength(left.family)) == 0; in operator ==()
126 struct sockaddr_nl addr; in init() local
127 memset(&addr, 0, sizeof(addr)); in init()
128 addr.nl_family = AF_NETLINK; in init()
129 addr.nl_groups = (1 << (RTNLGRP_IPV4_IFADDR - 1)) | in init()
132 struct sockaddr* sa = reinterpret_cast<struct sockaddr*>(&addr); in init()
[all …]
/device/generic/goldfish/tnc/
Dmain.cpp42 for (struct addrinfo* addr = addrs; addr != nullptr; addr = addr->ai_next) { in runClient() local
43 fd = ::socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol); in runClient()
47 if (::connect(fd, addr->ai_addr, addr->ai_addrlen) == 0) { in runClient()
68 for (struct addrinfo* addr = addrs; addr != nullptr; addr = addr->ai_next) { in runServer() local
69 fd = ::socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol); in runServer()
73 if (::bind(fd, addr->ai_addr, addr->ai_addrlen) == 0) { in runServer()
85 struct sockaddr_storage addr; in runServer() local
86 socklen_t addrSize = sizeof(addr); in runServer()
88 reinterpret_cast<struct sockaddr*>(&addr), in runServer()
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/cmsis/
Dcore_cmInstr.h566 __attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr) in __LDREXB() argument
571 __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXB()
576 __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); in __LDREXB()
589 __attribute__( ( always_inline ) ) __STATIC_INLINE uint16_t __LDREXH(volatile uint16_t *addr) in __LDREXH() argument
594 __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXH()
599 __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); in __LDREXH()
612 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __LDREXW(volatile uint32_t *addr) in __LDREXW() argument
616 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXW()
630 …ute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) in __STREXB() argument
634 __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) ); in __STREXB()
[all …]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DTcpStream.cpp33 struct sockaddr_in addr; in _socket_loopback_server() local
35 memset(&addr, 0, sizeof(addr)); in _socket_loopback_server()
36 addr.sin_family = AF_INET; in _socket_loopback_server()
37 addr.sin_port = htons(port); in _socket_loopback_server()
38 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in _socket_loopback_server()
48 if (bind(s, reinterpret_cast<sockaddr*>(&addr), sizeof(addr)) < 0) { in _socket_loopback_server()
95 struct sockaddr_in addr; in accept() local
96 socklen_t len = sizeof(addr); in accept()
97 clientSock = ::accept(m_sock, (sockaddr *)&addr, &len); in accept()
/device/google/cuttlefish/host/frontend/gcastv2/https/
DServerSocket.cpp51 sockaddr_in addr; in ServerSocket() local
69 memset(addr.sin_zero, 0, sizeof(addr.sin_zero)); in ServerSocket()
70 addr.sin_family = AF_INET; in ServerSocket()
71 addr.sin_port = htons(port); in ServerSocket()
72 addr.sin_addr.s_addr = inet_addr(iface); in ServerSocket()
74 res = bind(mSocket, reinterpret_cast<sockaddr *>(&addr), sizeof(addr)); in ServerSocket()
130 sockaddr_in addr; in acceptIncomingConnection() local
131 socklen_t addrLen = sizeof(addr); in acceptIncomingConnection()
133 int s = accept(mSocket, reinterpret_cast<sockaddr *>(&addr), &addrLen); in acceptIncomingConnection()
136 uint32_t ip = ntohl(addr.sin_addr.s_addr); in acceptIncomingConnection()
[all …]
DHTTPClientConnection.cpp85 sockaddr_in addr; in connect() local
86 memset(addr.sin_zero, 0, sizeof(addr.sin_zero)); in connect()
87 addr.sin_family = AF_INET; in connect()
88 addr.sin_port = htons(port); in connect()
89 addr.sin_addr.s_addr = inet_addr(host); in connect()
91 mRemoteAddr = addr; in connect()
94 mImpl->fd(), reinterpret_cast<sockaddr *>(&addr), sizeof(addr)); in connect()
/device/google/cuttlefish/common/libs/fs/
Dshared_fd.cpp204 SharedFD SharedFD::Accept(const FileInstance& listener, struct sockaddr* addr, in Accept() argument
207 std::shared_ptr<FileInstance>(listener.Accept(addr, addrlen))); in Accept()
282 struct sockaddr_un addr; in SocketLocalClient() local
284 MakeAddress(name.c_str(), abstract, &addr, &addrlen); in SocketLocalClient()
289 if (rval->Connect(reinterpret_cast<sockaddr*>(&addr), addrlen) == -1) { in SocketLocalClient()
296 sockaddr_in addr{}; in SocketLocalClient() local
297 addr.sin_family = AF_INET; in SocketLocalClient()
298 addr.sin_port = htons(port); in SocketLocalClient()
299 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in SocketLocalClient()
304 if (rval->Connect(reinterpret_cast<const sockaddr*>(&addr), in SocketLocalClient()
[all …]
/device/generic/goldfish/network/netmgr/
Dmacaddress.h29 uint8_t addr[ETH_ALEN]; member
31 return memcmp(addr, "\xFF\xFF\xFF\xFF\xFF\xFF", ETH_ALEN) == 0; in isBroadcast()
43 size_t operator()(const MacAddress& addr) const {
46 hash_combine(seed, *reinterpret_cast<const uint32_t*>(addr.addr));
48 hash_combine(seed, *reinterpret_cast<const uint16_t*>(addr.addr + 4));
Dmonitor.cpp133 struct sockaddr_nl addr; in openSocket() local
134 memset(&addr, 0, sizeof(addr)); in openSocket()
135 addr.nl_family = AF_NETLINK; in openSocket()
136 addr.nl_groups = RTNLGRP_LINK | RTNLGRP_IPV4_IFADDR | RTNLGRP_IPV6_IFADDR; in openSocket()
138 struct sockaddr* sa = reinterpret_cast<struct sockaddr*>(&addr); in openSocket()
139 if (::bind(mSocketFd, sa, sizeof(addr)) != 0) { in openSocket()
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/
Dxf-mem.c49 static inline xf_mm_block_t * xf_mm_block_init(void *addr, u32 size) in xf_mm_block_init() argument
51 xf_mm_block_t *b = (xf_mm_block_t *)addr; in xf_mm_block_init()
135 static void xf_mm_find_by_addr(xf_mm_pool_t *pool, void *addr, xf_mm_block_t **n) in xf_mm_find_by_addr() argument
144 if ((u32)p_idx < (u32)addr) in xf_mm_find_by_addr()
274 void xf_mm_free(xf_mm_pool_t *pool, void *addr, u32 size) in xf_mm_free() argument
276 xf_mm_block_t *b = xf_mm_block_init(addr, size); in xf_mm_free()
280 xf_mm_find_by_addr(pool, addr, n); in xf_mm_free()
285 if ((void *)n[0] + xf_mm_block_length(n[0]) == addr) in xf_mm_free()
291 addr = (void *)(b = n[0]), size = xf_mm_block_length_add(b, size); in xf_mm_free()
303 if ((void *)n[1] == addr + size) in xf_mm_free()
[all …]
/device/generic/goldfish/fvpbase/tools/
Dbind_to_localhost.cpp20 static int (*real_bind)(int sockfd, const sockaddr* addr, socklen_t addrlen) =
23 extern "C" int bind(int sockfd, const sockaddr* addr, socklen_t addrlen) { in bind() argument
24 if (addr->sa_family != AF_INET) return real_bind(sockfd, addr, addrlen); in bind()
25 const sockaddr_in* sin = (const sockaddr_in*)addr; in bind()
26 if (sin->sin_addr.s_addr != 0) return real_bind(sockfd, addr, addrlen); in bind()
/device/google/cuttlefish/guest/hals/gralloc/legacy/
Dregion_registry.cpp156 static void* recycle_mmap(void *addr, size_t length, int prot, int flags, in recycle_mmap() argument
158 if (!addr) { in recycle_mmap()
163 addr = it->second.front(); in recycle_mmap()
169 return mmap(addr, length, prot, flags, fd, offset); in recycle_mmap()
173 static int recycle_munmap(void *addr, size_t length) { in recycle_munmap() argument
175 if (addr != mmap(addr, length, PROT_READ|PROT_WRITE, in recycle_munmap()
181 g_recycled_addrs[length].push_back(addr); in recycle_munmap()
199 uintptr_t addr = base + hnd->total_size - PAGE_SIZE; in reference_region() local
200 if (mprotect((void*)addr, PAGE_SIZE, PROT_NONE) == -1) { in reference_region()
201 ALOGE("mprotect base=%p, pg=%p failed (%s)", (void*)base, (void*)addr, in reference_region()
/device/google/contexthub/firmware/os/core/
Dbl.c32 static uint32_t blVerifyOsImage(const uint8_t *addr, struct OsUpdateHdr **start, uint32_t *size);
325 static uint32_t blVerifyOsImage(const uint8_t *addr, struct OsUpdateHdr **start, uint32_t *size) in blVerifyOsImage() argument
328 struct OsUpdateHdr *hdr = (struct OsUpdateHdr*)addr; in blVerifyOsImage()
339 if (addr < __shared_start || addr > (__shared_end - overhead) || ((uintptr_t)addr & 3)) in blVerifyOsImage()
343 if (hdr->size > (__shared_end - addr - overhead)) in blVerifyOsImage()
491 uint32_t sync, cmd, addr = 0, len, checksum = 0, i; in blLoader() local
524 addr = (addr << 8) + byte; in blLoader()
528 …if (blLoaderRxByte() != checksum || addr < BL_SHARED_AREA_FAKE_ADDR || addr - BL_SHARED_AREA_FAKE_… in blLoader()
538 …if (blLoaderRxByte() != (uint8_t)~len || addr + len - BL_SHARED_AREA_FAKE_ADDR > __shared_end - __… in blLoader()
544 if (addr + len - BL_SHARED_AREA_FAKE_ADDR > __shared_end - __shared_start) in blLoader()
[all …]
/device/google/contexthub/firmware/os/inc/
Di2c.h32 int i2cMasterTxRx(uint32_t busId, uint32_t addr, const void *txBuf, size_t txSize,
34 static inline int i2cMasterTx(uint32_t busId, uint32_t addr, in i2cMasterTx() argument
37 return i2cMasterTxRx(busId, addr, txBuf, txSize, NULL, 0, callback, cookie);} in i2cMasterTx()
38 static inline int i2cMasterRx(uint32_t busId, uint32_t addr, in i2cMasterRx() argument
41 return i2cMasterTxRx(busId, addr, NULL, 0, rxBuf, rxSize, callback, cookie); in i2cMasterRx()
44 int i2cSlaveRequest(uint32_t busId, uint32_t addr);
/device/google/cuttlefish/host/frontend/webrtc/
Dadb_handler.cpp124 sockaddr_in addr; in setupSocket() local
125 memset(addr.sin_zero, 0, sizeof(addr.sin_zero)); in setupSocket()
126 addr.sin_family = AF_INET; in setupSocket()
127 addr.sin_addr.s_addr = inet_addr(host.c_str()); in setupSocket()
128 addr.sin_port = htons(port); in setupSocket()
130 if (connect(sock, reinterpret_cast<const sockaddr *>(&addr), sizeof(addr)) < in setupSocket()
/device/google/contexthub/util/stm32_flash/
Dstm32_bl.c62 static uint8_t write_addr(handle_t *handle, uint32_t addr) in write_addr() argument
66 buffer[0] = (addr >> 24) & 0xFF; in write_addr()
67 buffer[1] = (addr >> 16) & 0xFF; in write_addr()
68 buffer[2] = (addr >> 8) & 0xFF; in write_addr()
69 buffer[3] = (addr ) & 0xFF; in write_addr()
134 uint8_t read_memory(handle_t *handle, uint32_t addr, uint32_t length, uint8_t *buffer) in read_memory() argument
143 write_addr(handle, addr+offset); in read_memory()
169 uint8_t write_memory(handle_t *handle, uint32_t addr, uint32_t length, uint8_t *buffer) in write_memory() argument
178 write_addr(handle, addr+offset); in write_memory()
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/board-hikey/
Ddsp_comm.h30 #define DSP_FLUSH_PIECE_CACHE(addr, size) xthal_dcache_region_writeback(addr, size) argument
32 #define DSP_INVALIDATE_PIECE_CACHE(addr, size) xthal_dcache_region_invalidate(addr, size) argument
/device/google/contexthub/firmware/os/platform/stm32/
DeeData.c131 void *addr = eeDataGetEx(name, &offset, true, buf, szP); in eeDataGetAllVersions() local
133 return addr; in eeDataGetAllVersions()
171 uint32_t *addr = (uint32_t*)vaddr; in eeDataEraseOldVersion() local
175 if (!eeIsValidName(name) || addr < __eedata_start || addr >= (__eedata_end - 1)) in eeDataEraseOldVersion()
178 v = *addr; in eeDataEraseOldVersion()
188 return eeWrite(addr, &v, sizeof(v)); in eeDataEraseOldVersion()
/device/linaro/dragonboard/qcom/qrtr/src/
Daddr.c15 void qrtr_set_address(uint32_t addr) in qrtr_set_address() argument
43 if (sl == sizeof(sq) && sq.sq_node == addr) in qrtr_set_address()
58 rta->rta_len = RTA_LENGTH(sizeof(addr)); in qrtr_set_address()
59 memcpy(RTA_DATA(rta), &addr, sizeof(addr)); in qrtr_set_address()
Dcfg.c28 uint32_t addr; in main() local
40 addr = addrul; in main()
41 qrtr_set_address(addr); in main()
/device/linaro/hikey/hifi/xaf/hifi-dpf/ipc/xt-shmem/hikey/
Ddsp_debug.c338 unsigned int addr = 0; in dsp_om_read_mem() local
345 addr = strtoul(str, 0, 16); in dsp_om_read_mem()
346 DSP_LOGD("str:%s addr:0x%x\n", str, addr); in dsp_om_read_mem()
348 val = *(unsigned int*)addr; in dsp_om_read_mem()
352 DSP_LOGI("read addr:0x%x value:0x%x\n", addr, val); in dsp_om_read_mem()
360 unsigned int addr = 0; in dsp_om_write_mem() local
373 addr = strtoul(str_addr, 0, 16); in dsp_om_write_mem()
375 …DSP_LOGI("str_addr:%s addr:%x str_val:%s val:%x\n", str_addr ? str_addr : "null", addr, str_val ? … in dsp_om_write_mem()
377 *(unsigned int *)addr = val; in dsp_om_write_mem()
387 unsigned int addr = 0; in dsp_om_pcm_gain() local
[all …]
/device/linaro/dragonboard/gralloc/
Dgralloc_gbm.cpp261 int enable_write, void **addr) in gbm_map() argument
283 *addr = gbm_bo_map(bo, 0, 0, x + w, y + h, flags, &stride, &bo_data->map_data); in gbm_map()
284 ALOGV("mapped bo %p (%d, %d)-(%d, %d) at %p", bo, x, y, w, h, *addr); in gbm_map()
285 if (*addr == NULL) in gbm_map()
396 void **addr) in gralloc_gbm_bo_lock() argument
444 int err = gbm_map(handle, x, y, w, h, write, addr); in gralloc_gbm_bo_lock()
494 void *addr; in gralloc_gbm_bo_lock_ycbcr() local
499 err = gralloc_gbm_bo_lock(handle, usage, x, y, w, h, &addr); in gralloc_gbm_bo_lock_ycbcr()
508 ycbcr->y = addr; in gralloc_gbm_bo_lock_ycbcr()
509 ycbcr->cr = (unsigned char *)addr + ystride * hnd->height; in gralloc_gbm_bo_lock_ycbcr()
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/
Dxf-mm.h86 void *addr; member
124 void *addr; member
136 extern int xf_mm_init(xf_mm_pool_t *pool, void *addr, u32 size);
142 extern void xf_mm_free(xf_mm_pool_t *pool, void *addr, u32 size);

123456