/device/linaro/bootloader/arm-trusted-firmware/include/lib/ |
D | mmio.h | 12 static inline void mmio_write_8(uintptr_t addr, uint8_t value) in mmio_write_8() argument 14 *(volatile uint8_t*)addr = value; in mmio_write_8() 17 static inline uint8_t mmio_read_8(uintptr_t addr) in mmio_read_8() argument 19 return *(volatile uint8_t*)addr; in mmio_read_8() 22 static inline void mmio_write_16(uintptr_t addr, uint16_t value) in mmio_write_16() argument 24 *(volatile uint16_t*)addr = value; in mmio_write_16() 27 static inline uint16_t mmio_read_16(uintptr_t addr) in mmio_read_16() argument 29 return *(volatile uint16_t*)addr; in mmio_read_16() 32 static inline void mmio_write_32(uintptr_t addr, uint32_t value) in mmio_write_32() argument 34 *(volatile uint32_t*)addr = value; in mmio_write_32() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
D | structmember.c | 32 PyMember_Get(const char *addr, struct memberlist *mlist, const char *name) in PyMember_Get() argument 46 return PyMember_GetOne(addr, ©); in PyMember_Get() 54 PyMember_GetOne(const char *addr, PyMemberDef *l) in PyMember_GetOne() argument 62 addr += l->offset; in PyMember_GetOne() 65 v = PyBool_FromLong(*(char*)addr); in PyMember_GetOne() 68 v = PyInt_FromLong(*(char*)addr); in PyMember_GetOne() 71 v = PyLong_FromUnsignedLong(*(unsigned char*)addr); in PyMember_GetOne() 74 v = PyInt_FromLong(*(short*)addr); in PyMember_GetOne() 77 v = PyLong_FromUnsignedLong(*(unsigned short*)addr); in PyMember_GetOne() 80 v = PyInt_FromLong(*(int*)addr); in PyMember_GetOne() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
D | structmember.c | 32 PyMember_Get(const char *addr, struct memberlist *mlist, const char *name) in PyMember_Get() argument 46 return PyMember_GetOne(addr, ©); in PyMember_Get() 54 PyMember_GetOne(const char *addr, PyMemberDef *l) in PyMember_GetOne() argument 62 addr += l->offset; in PyMember_GetOne() 65 v = PyBool_FromLong(*(char*)addr); in PyMember_GetOne() 68 v = PyInt_FromLong(*(char*)addr); in PyMember_GetOne() 71 v = PyLong_FromUnsignedLong(*(unsigned char*)addr); in PyMember_GetOne() 74 v = PyInt_FromLong(*(short*)addr); in PyMember_GetOne() 77 v = PyLong_FromUnsignedLong(*(unsigned short*)addr); in PyMember_GetOne() 80 v = PyInt_FromLong(*(int*)addr); in PyMember_GetOne() [all …]
|
D | thread_sgi.h | 33 long addr, size; in PyThread__init_thread() local 42 addr = (long) dl_getrange(size + HDR_SIZE); in PyThread__init_thread() 43 dprintf(("trying to use addr %p-%p for shared arena\n", addr, addr+size)); in PyThread__init_thread() 45 if ((addr = usconfig(CONF_ATTACHADDR, addr)) < 0 && errno != 0) in PyThread__init_thread() 63 if (usconfig(CONF_ATTACHADDR, addr) < 0) /* reset address */ in PyThread__init_thread() 115 long addr, size; in PyThread_start_new_thread() local 137 addr = (long) dl_getrange(size + HDR_SIZE); in PyThread_start_new_thread() 139 addr, addr+size)); in PyThread_start_new_thread() 141 if ((addr = usconfig(CONF_ATTACHADDR, addr)) < 0 && in PyThread_start_new_thread() 151 if (usconfig(CONF_ATTACHADDR, addr) < 0) in PyThread_start_new_thread()
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/ |
D | platform.c | 49 uint32_t addr) in Rd32() argument 58 SimMmio32Read( 1, addr, &data); in Rd32() 60 data = *PTR32(addr); in Rd32() 69 pciwrite32(0, 0, 0, SB_HADR_REG, addr & 0xFFF00); in Rd32() 70 addr &= 0x00FF; in Rd32() 73 SB_COMMAND(SB_REG_READ_OPCODE, unit, addr)); in Rd32() 79 pciwrite32(0, 0, 0, SB_HADR_REG, addr & 0xFFF00); in Rd32() 80 addr &= 0x00FF; in Rd32() 83 SB_COMMAND(SB_DDRIO_REG_READ_OPCODE, unit, addr)); in Rd32() 93 DPF(D_REGRD, "RD32 %03X %08X %08X\n", unit, addr, data); in Rd32() [all …]
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/util/gdbstub/ |
D | gdbstub.c | 365 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/linaro/bootloader/arm-trusted-firmware/plat/rockchip/rk3399/drivers/m0/include/ |
D | rk3399_mcu.h | 18 #define mmio_clrbits_32(addr, clear) \ argument 19 mmio_write_32(addr, (mmio_read_32(addr) & ~(clear))) 20 #define mmio_setbits_32(addr, set) \ argument 21 mmio_write_32(addr, (mmio_read_32(addr)) | (set)) 22 #define mmio_clrsetbits_32(addr, clear, set) \ argument 23 mmio_write_32(addr, (mmio_read_32(addr) & ~(clear)) | (set))
|
/device/generic/goldfish/libqemu/ |
D | test_host_1.c | 60 struct sockaddr_in addr; in socket_loopback_server() local 67 memset(&addr, 0, sizeof(addr)); in socket_loopback_server() 68 addr.sin_family = AF_INET; in socket_loopback_server() 69 addr.sin_port = htons(port); in socket_loopback_server() 70 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in socket_loopback_server() 75 if (TFR(bind(sock, (struct sockaddr*)&addr, sizeof(addr))) < 0) { in socket_loopback_server() 93 struct sockaddr_un addr; in socket_unix_server() local 100 memset(&addr, 0, sizeof(addr)); in socket_unix_server() 101 addr.sun_family = AF_UNIX; in socket_unix_server() 102 snprintf(addr.sun_path, sizeof(addr.sun_path), "%s", path); in socket_unix_server() [all …]
|
D | test_host_2.c | 58 struct sockaddr_in addr; in socket_loopback_server() local 65 memset(&addr, 0, sizeof(addr)); in socket_loopback_server() 66 addr.sin_family = AF_INET; in socket_loopback_server() 67 addr.sin_port = htons(port); in socket_loopback_server() 68 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in socket_loopback_server() 73 if (TFR(bind(sock, (struct sockaddr*)&addr, sizeof(addr))) < 0) { in socket_loopback_server()
|
D | test_util.c | 48 struct sockaddr_in addr; in pipe_openSocket() local 58 memset(&addr, 0, sizeof(addr)); in pipe_openSocket() 59 addr.sin_family = AF_INET; in pipe_openSocket() 60 addr.sin_port = htons(port); in pipe_openSocket() 61 addr.sin_addr.s_addr = htonl(0x0a000202); in pipe_openSocket() 63 if ( connect(fd, (struct sockaddr*)&addr, sizeof(addr)) < 0 ) { in pipe_openSocket()
|
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
D | TcpStream.cpp | 33 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/contexthub/firmware/os/cpu/cortexm4/inc/cpu/cmsis/ |
D | core_cmInstr.h | 566 __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/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
D | combinerefs.py | 102 addr, addr2rc[addr], addr2guts[addr] = m.groups() 112 addr, rc, guts = m.groups() # guts is type name here 113 if addr not in addr2rc: 116 print addr, 117 if rc == addr2rc[addr]: 120 print '[%s->%s]' % (addr2rc[addr], rc), 121 print guts, addr2guts[addr]
|
/device/google/cuttlefish_common/common/libs/fs/ |
D | shared_fd.cpp | 220 SharedFD SharedFD::Accept(const FileInstance& listener, struct sockaddr* addr, in Accept() argument 223 std::shared_ptr<FileInstance>(listener.Accept(addr, addrlen))); in Accept() 296 struct sockaddr_un addr; in SocketLocalClient() local 298 MakeAddress(name, abstract, &addr, &addrlen); in SocketLocalClient() 303 if (rval->Connect(reinterpret_cast<sockaddr*>(&addr), addrlen) == -1) { in SocketLocalClient() 310 sockaddr_in addr{}; in SocketLocalClient() local 311 addr.sin_family = AF_INET; in SocketLocalClient() 312 addr.sin_port = htons(port); in SocketLocalClient() 313 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in SocketLocalClient() 318 if (rval->Connect(reinterpret_cast<const sockaddr*>(&addr), in SocketLocalClient() [all …]
|
/device/generic/goldfish/network/netmgr/ |
D | macaddress.h | 29 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));
|
/device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/ |
D | db_machdep.h | 76 #define ADDR_SLOT0(addr) ( (addr) & ~(0xFUL) ) argument 77 #define SLOT_ADDR(addr) ( (addr) & (0xFUL) ) argument 83 #define BKPT_ADDR(addr) ( (SLOT_ADDR(addr) < SLOT_COUNT) ? \ argument 84 (ADDR_SLOT0(addr) | (SLOT_ADDR(addr) << 2)) \ 85 : ADDR_SLOT0(addr) ) 89 #define BKPT_SET(inst, addr) db_bkpt_set(inst, addr) argument 90 db_expr_t db_bkpt_set(db_expr_t inst, db_addr_t addr);
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/ |
D | ATokPtr.h | 47 ANTLRTokenPtr(ANTLRAbstractToken *addr=NULL){ptr_ = addr; ref();} 62 void operator = (ANTLRAbstractToken *addr); 67 int operator == (const ANTLRAbstractToken *addr) const // MR11 68 { return this->ptr_ == addr; } 69 int operator != (const ANTLRAbstractToken *addr) const // MR11 70 { return this->ptr_ != addr; }
|
/device/linaro/bootloader/edk2/StdLib/LibC/NetUtil/ |
D | inet_makeaddr.c | 61 in_addr_t addr; in __weak_alias() local 65 addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST); in __weak_alias() 67 addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST); in __weak_alias() 69 addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST); in __weak_alias() 71 addr = net | host; in __weak_alias() 72 ret.s_addr = htonl(addr); in __weak_alias()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/ |
D | ATokPtr.h | 47 ANTLRTokenPtr(ANTLRAbstractToken *addr=NULL){ptr_ = addr; ref();} 62 ANTLRTokenPtr& operator = (ANTLRAbstractToken *addr); 67 int operator == (const ANTLRAbstractToken *addr) const // MR11 68 { return this->ptr_ == addr; } 69 int operator != (const ANTLRAbstractToken *addr) const // MR11 70 { return this->ptr_ != addr; }
|
/device/generic/goldfish/ril/ |
D | if_monitor.cpp | 66 memcmp(&left.addr, &right.addr, addrLength(left.family)) == 0; in operator ==() 111 struct sockaddr_nl addr; in init() local 112 memset(&addr, 0, sizeof(addr)); in init() 113 addr.nl_family = AF_NETLINK; in init() 114 addr.nl_groups = (1 << (RTNLGRP_IPV4_IFADDR - 1)) | in init() 117 struct sockaddr* sa = reinterpret_cast<struct sockaddr*>(&addr); in init() 118 if (::bind(mSocketFd, sa, sizeof(addr)) != 0) { in init() 276 ifAddress addr; in handleAddressChange() local 277 memset(&addr, 0, sizeof(addr)); in handleAddressChange() 281 addr.family = msg->ifa_family; in handleAddressChange() [all …]
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/ |
D | xf-mem.c | 49 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/google/cuttlefish_common/guest/hals/gralloc/legacy/ |
D | region_registry.cpp | 154 static void* recycle_mmap(void *addr, size_t length, int prot, int flags, in recycle_mmap() argument 156 if (!addr) { in recycle_mmap() 161 addr = it->second.front(); in recycle_mmap() 167 return mmap(addr, length, prot, flags, fd, offset); in recycle_mmap() 171 static int recycle_munmap(void *addr, size_t length) { in recycle_munmap() argument 173 if (addr != mmap(addr, length, PROT_READ|PROT_WRITE, in recycle_munmap() 179 g_recycled_addrs[length].push_back(addr); in recycle_munmap() 197 uintptr_t addr = base + hnd->total_size - PAGE_SIZE; in reference_region() local 198 if (mprotect((void*)addr, PAGE_SIZE, PROT_NONE) == -1) { in reference_region() 199 ALOGE("mprotect base=%p, pg=%p failed (%s)", (void*)base, (void*)addr, in reference_region()
|
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/gic/ |
D | gic_v3.c | 15 uintptr_t addr; in gicv3_get_rdist() local 29 addr = gicr_base; in gicv3_get_rdist() 31 gicr_typer = gicr_read_typer(addr); in gicv3_get_rdist() 42 return addr; in gicv3_get_rdist() 49 addr += (1 << GICR_PCPUBASE_SHIFT); in gicv3_get_rdist()
|
/device/google/contexthub/firmware/os/core/ |
D | bl.c | 32 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/ |
D | i2c.h | 32 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);
|