Home
last modified time | relevance | path

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

12345678910>>...14

/hardware/google/graphics/common/libhwjpeg/
Dlibhwjpeg-exynos.cpp49 size_t GetLength(unsigned char *addr);
50 bool ParseFrame(unsigned char *addr);
52 ptrdiff_t GetOffset(unsigned char *addr) { in GetOffset() argument
54 unsigned long cur = reinterpret_cast<unsigned long>(addr); in GetOffset()
81 size_t CJpegStreamParser::GetLength(unsigned char *addr) { in GetLength() argument
82 size_t len = static_cast<size_t>(*addr++) * 0x100; in GetLength()
83 return len + *addr; in GetLength()
92 unsigned char *addr = m_pStreamBase; in Parse() local
96 if ((filelen < 2) || (addr[0] != 0xFF) || (addr[1] != 0xD8)) { in Parse()
97 ALOGE("Not a valid JPEG stream (len %zu, marker %02x%02x", filelen, addr[0], addr[1]); in Parse()
[all …]
/hardware/interfaces/bluetooth/1.0/default/
Dbluetooth_address.cc31 void BluetoothAddress::bytes_to_string(const uint8_t* addr, char* addr_str) { in bytes_to_string() argument
32 sprintf(addr_str, "%02x:%02x:%02x:%02x:%02x:%02x", addr[0], addr[1], addr[2], in bytes_to_string()
33 addr[3], addr[4], addr[5]); in bytes_to_string()
36 bool BluetoothAddress::string_to_bytes(const char* addr_str, uint8_t* addr) { in string_to_bytes() argument
42 &addr[0], &addr[1], &addr[2], &addr[3], &addr[4], &addr[5], in string_to_bytes()
Dbluetooth_address.h50 static void bytes_to_string(const uint8_t* addr, char* addr_str);
52 static bool string_to_bytes(const char* addr_str, uint8_t* addr);
54 static bool get_local_address(uint8_t* addr);
/hardware/google/gfxstream/guest/mesa/src/util/
Dfutex.c46 int futex_wake(uint32_t *addr, int count) in futex_wake() argument
48 return sys_futex(addr, FUTEX_WAKE, count, NULL, NULL, 0); in futex_wake()
51 int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout) in futex_wait() argument
55 return sys_futex(addr, FUTEX_WAIT_BITSET, value, timeout, NULL, in futex_wait()
67 int futex_wake(uint32_t *addr, int count) in futex_wake() argument
70 return _umtx_op(addr, UMTX_OP_WAKE, (uint32_t)count, NULL, NULL) == -1 ? errno : 0; in futex_wake()
73 int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout) in futex_wait() argument
89 return _umtx_op(addr, UMTX_OP_WAIT_UINT, (uint32_t)value, uaddr, uaddr2) == -1 ? errno : 0; in futex_wait()
97 int futex_wake(uint32_t *addr, int count) in futex_wake() argument
99 return futex(addr, FUTEX_WAKE, count, NULL, NULL); in futex_wake()
[all …]
Dos_mman.h56 # define os_mmap(addr, length, prot, flags, fd, offset) \ argument
57 mmap64(addr, length, prot, flags, fd, offset)
59 # define os_munmap(addr, length) \ argument
60 munmap(addr, length)
64 # define os_mmap(addr, length, prot, flags, fd, offset) \
65 mmap(addr, length, prot, flags, fd, offset)
67 static inline int os_munmap(void *addr, size_t length)
76 return munmap(addr, length);
Du_debug_symbol.c155 debug_symbol_name_dbghelp(const void *addr, char* buf, unsigned size) in debug_symbol_name_dbghelp() argument
158 DWORD64 dwAddr = (DWORD64)(uintptr_t)addr; in debug_symbol_name_dbghelp()
200 (LPCTSTR)addr, in debug_symbol_name_dbghelp()
209 addr, buffer, in debug_symbol_name_dbghelp()
210 (unsigned long)((uintptr_t)addr - (uintptr_t)hModule)); in debug_symbol_name_dbghelp()
239 debug_symbol_name(const void *addr, char* buf, unsigned size) in debug_symbol_name() argument
242 if (debug_symbol_name_dbghelp(addr, buf, size)) { in debug_symbol_name()
247 snprintf(buf, size, "%p", addr); in debug_symbol_name()
252 debug_symbol_print(const void *addr) in debug_symbol_print() argument
255 debug_symbol_name(addr, buf, sizeof(buf)); in debug_symbol_print()
[all …]
Dos_socket.c27 struct sockaddr_un addr; in os_socket_listen_abstract() local
28 memset(&addr, 0, sizeof(addr)); in os_socket_listen_abstract()
29 addr.sun_family = AF_UNIX; in os_socket_listen_abstract()
30 strncpy(addr.sun_path + 1, path, sizeof(addr.sun_path) - 2); in os_socket_listen_abstract()
33 int ret = bind(s, (struct sockaddr*)&addr, in os_socket_listen_abstract()
Du_debug_symbol.h46 debug_symbol_name(const void *addr, char* buf, unsigned size);
49 debug_symbol_name_cached(const void *addr);
52 debug_symbol_print(const void *addr);
/hardware/interfaces/bluetooth/1.0/default/test/
Dbluetooth_address_test.cc64 uint8_t addr[BluetoothAddress::kBytes]; in TEST_F() local
67 EXPECT_FALSE(BluetoothAddress::string_to_bytes("", addr)); in TEST_F()
68 EXPECT_FALSE(BluetoothAddress::string_to_bytes("000000000000", addr)); in TEST_F()
69 EXPECT_FALSE(BluetoothAddress::string_to_bytes("00:00:00:00:0000", addr)); in TEST_F()
70 EXPECT_FALSE(BluetoothAddress::string_to_bytes("00:00:00:00:00:0", addr)); in TEST_F()
71 EXPECT_FALSE(BluetoothAddress::string_to_bytes("00:00:00:00:00:0;", addr)); in TEST_F()
72 EXPECT_FALSE(BluetoothAddress::string_to_bytes("aB:cD:eF:Gh:iJ:Kl", addr)); in TEST_F()
73 EXPECT_FALSE(BluetoothAddress::string_to_bytes("00:00:000:00:00:0;", addr)); in TEST_F()
74 EXPECT_FALSE(BluetoothAddress::string_to_bytes("12:34:56:78:90:12;", addr)); in TEST_F()
75 EXPECT_FALSE(BluetoothAddress::string_to_bytes("12:34:56:78:90:123", addr)); in TEST_F()
[all …]
/hardware/interfaces/radio/aidl/compat/libradiocompat/messaging/
Dstructs.cpp36 static aidl::CdmaSmsAddress toAidl(const V1_0::CdmaSmsAddress& addr) { in toAidl() argument
38 .digitMode = static_cast<int32_t>(addr.digitMode), in toAidl()
39 .isNumberModeDataNetwork = addr.numberMode == V1_0::CdmaSmsNumberMode::DATA_NETWORK, in toAidl()
40 .numberType = static_cast<int32_t>(addr.numberType), in toAidl()
41 .numberPlan = static_cast<int32_t>(addr.numberPlan), in toAidl()
42 .digits = addr.digits, in toAidl()
46 static V1_0::CdmaSmsAddress toHidl(const aidl::CdmaSmsAddress& addr) { in toHidl() argument
48 .digitMode = static_cast<V1_0::CdmaSmsDigitMode>(addr.digitMode), in toHidl()
49 .numberMode = addr.isNumberModeDataNetwork ? V1_0::CdmaSmsNumberMode::DATA_NETWORK in toHidl()
51 .numberType = static_cast<V1_0::CdmaSmsNumberType>(addr.numberType), in toHidl()
[all …]
/hardware/nxp/nfc/snxxx/halimpl/hal/
DphNxpNciHal_ext.cc1012 char addr[2] = {0}; in request_EEPROM() local
1026 addr[0] = 0xA0; in request_EEPROM()
1027 addr[1] = 0x14; in request_EEPROM()
1035 addr[0] = 0xA0; in request_EEPROM()
1036 addr[1] = 0x0F; in request_EEPROM()
1045 addr[0] = 0xA0; in request_EEPROM()
1046 addr[1] = 0xFC; in request_EEPROM()
1052 addr[0] = 0xA0; in request_EEPROM()
1053 addr[1] = 0xF2; in request_EEPROM()
1058 addr[0] = 0xA0; in request_EEPROM()
[all …]
/hardware/libhardware_legacy/
Duevent.c45 struct sockaddr_nl addr; in uevent_init() local
49 memset(&addr, 0, sizeof(addr)); in uevent_init()
50 addr.nl_family = AF_NETLINK; in uevent_init()
51 addr.nl_pid = getpid(); in uevent_init()
52 addr.nl_groups = 0xffffffff; in uevent_init()
60 if(bind(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in uevent_init()
/hardware/interfaces/automotive/can/1.0/default/libnetdevice/
Dcan.cpp37 sockaddr_can addr = {}; in socket() local
38 addr.can_family = AF_CAN; in socket()
39 addr.can_ifindex = nametoindex(ifname); in socket()
40 if (addr.can_ifindex == 0) { in socket()
61 if (0 != bind(sock.get(), reinterpret_cast<sockaddr*>(&addr), sizeof(addr))) { in socket()
/hardware/google/aemu/host-common/include/host-common/
DDmaMap.h47 void addBuffer(void* hwpipe, uint64_t addr, uint64_t bufferSize);
48 void removeBuffer(uint64_t addr);
49 void* getHostAddr(uint64_t addr);
52 void* getPipeInstance(uint64_t addr);
71 virtual void* doMap(uint64_t addr, uint64_t bufferSize) = 0;
/hardware/google/interfaces/bluetooth/ccc/aidl/vts/
DVtsHalBluetoothCccTargetTest.cpp84 ScopedAStatus BluetoothCccTest::registerForLmpEvents(std::array<uint8_t, 6> addr) { in registerForLmpEvents() argument
87 return bluetooth_ccc->registerForLmpEvents(ccc_callback, std::array<uint8_t, 6>(addr), events); in registerForLmpEvents()
90 ScopedAStatus BluetoothCccTest::unregisterLmpEvents(std::array<uint8_t, 6> addr) { in unregisterLmpEvents() argument
91 return bluetooth_ccc->unregisterLmpEvents(std::array<uint8_t, 6>(addr)); in unregisterLmpEvents()
102 std::array<uint8_t, 6> addr = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66}; in TEST_P() local
103 ScopedAStatus status = registerForLmpEvents(addr); in TEST_P()
105 status = unregisterLmpEvents(addr); in TEST_P()
/hardware/qcom/sm7250/gps/utils/
DLocSharedLock.h41 inline int32_t android_atomic_inc(volatile int32_t *addr) in android_atomic_inc() argument
43 volatile std::atomic_int_least32_t* a = (volatile std::atomic_int_least32_t*)addr; in android_atomic_inc()
47 inline int32_t android_atomic_dec(volatile int32_t *addr) in android_atomic_dec() argument
49 volatile std::atomic_int_least32_t* a = (volatile std::atomic_int_least32_t*)addr; in android_atomic_dec()
/hardware/qcom/sm7150/gps/utils/
DLocSharedLock.h41 inline int32_t android_atomic_inc(volatile int32_t *addr) in android_atomic_inc() argument
43 volatile std::atomic_int_least32_t* a = (volatile std::atomic_int_least32_t*)addr; in android_atomic_inc()
47 inline int32_t android_atomic_dec(volatile int32_t *addr) in android_atomic_dec() argument
49 volatile std::atomic_int_least32_t* a = (volatile std::atomic_int_least32_t*)addr; in android_atomic_dec()
/hardware/qcom/sm8150p/gps/utils/
DLocSharedLock.h41 inline int32_t android_atomic_inc(volatile int32_t *addr) in android_atomic_inc() argument
43 volatile std::atomic_int_least32_t* a = (volatile std::atomic_int_least32_t*)addr; in android_atomic_inc()
47 inline int32_t android_atomic_dec(volatile int32_t *addr) in android_atomic_dec() argument
49 volatile std::atomic_int_least32_t* a = (volatile std::atomic_int_least32_t*)addr; in android_atomic_dec()
/hardware/qcom/sm8150/gps/utils/
DLocSharedLock.h41 inline int32_t android_atomic_inc(volatile int32_t *addr) in android_atomic_inc() argument
43 volatile std::atomic_int_least32_t* a = (volatile std::atomic_int_least32_t*)addr; in android_atomic_inc()
47 inline int32_t android_atomic_dec(volatile int32_t *addr) in android_atomic_dec() argument
49 volatile std::atomic_int_least32_t* a = (volatile std::atomic_int_least32_t*)addr; in android_atomic_dec()
/hardware/interfaces/wifi/legacy_headers/include/hardware_legacy/
Dtdls.h52 void (*on_tdls_state_changed)(mac_addr addr, wifi_tdls_status status);
65 wifi_error wifi_enable_tdls(wifi_interface_handle iface, mac_addr addr,
76 wifi_error wifi_disable_tdls(wifi_interface_handle iface, mac_addr addr);
79 wifi_error wifi_get_tdls_status(wifi_interface_handle iface, mac_addr addr,
/hardware/google/graphics/common/libscaler/
Dlibscaler.cpp224 void *addr[SC_NUM_OF_PLANES]; in exynos_sc_copy_pixels() local
226 addr[i] = NULL; in exynos_sc_copy_pixels()
228 addr[0] = pxinfo->src.addr; in exynos_sc_copy_pixels()
229 if (!sc.SetSrcAddr(addr, V4L2_MEMORY_USERPTR)) in exynos_sc_copy_pixels()
232 addr[0] = pxinfo->dst.addr; in exynos_sc_copy_pixels()
233 if (!sc.SetDstAddr(addr, V4L2_MEMORY_USERPTR)) in exynos_sc_copy_pixels()
398 void *addr[SC_NUM_OF_PLANES], in exynos_sc_set_src_addr()
407 return sc->SetSrcAddr(addr, mem_type) ? 0 : -1; in exynos_sc_set_src_addr()
412 void *addr[SC_NUM_OF_PLANES], in exynos_sc_set_dst_addr()
421 return sc->SetDstAddr(addr, mem_type) ? 0 : -1; in exynos_sc_set_dst_addr()
[all …]
/hardware/qcom/gps/msm8998/android/
DAGnssRil.cpp68 struct sockaddr_un addr = { .sun_family = AF_UNIX }; in createSocket() local
69 snprintf(addr.sun_path, sizeof(addr.sun_path), "%s", socketPath); in createSocket()
71 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
/hardware/libhardware/modules/camera/3_4/arc/
Dframe_buffer.cpp84 void* addr = mmap(NULL, buffer_size_, PROT_READ, MAP_SHARED, fd_.get(), 0); in Map() local
85 if (addr == MAP_FAILED) { in Map()
89 data_ = static_cast<uint8_t*>(addr); in Map()
137 void* addr; in Map() local
146 addr = yuv_data.y; in Map()
150 device_buffer_length_, 1, &addr); in Map()
155 width_, height_, &addr); in Map()
166 data_ = static_cast<uint8_t*>(addr); in Map()
/hardware/qcom/sm8150/data/ipacfg-mgr/hal/src/
DPrefixParser.cpp147 string addr; in add() local
149 if (!splitIntoAddrAndMask(in, addr, subnet)) { in add()
163 if (!parseV4Addr(addr, pre)) { in add()
164 mLastErr = "Failed to parse V4 Address(" + addr + ")"; in add()
167 } else if (!parseV6Addr(addr, pre)) { in add()
168 mLastErr = "Failed to parse V6 Address(" + addr + ")"; in add()
174 + ", " + addr + ")"; in add()
178 + ", " + addr + ")"; in add()
213 bool PrefixParser::splitIntoAddrAndMask(string in, string &addr, string &mask) { in splitIntoAddrAndMask() argument
218 addr = in.substr(0, pos); in splitIntoAddrAndMask()
[all …]
/hardware/qcom/data/ipacfg-mgr/msm8998/hal/src/
DPrefixParser.cpp141 string addr; in add() local
143 if (!splitIntoAddrAndMask(in, addr, subnet)) { in add()
157 if (!parseV4Addr(addr, pre)) { in add()
158 mLastErr = "Failed to parse V4 Address(" + addr + ")"; in add()
161 } else if (!parseV6Addr(addr, pre)) { in add()
162 mLastErr = "Failed to parse V6 Address(" + addr + ")"; in add()
168 + ", " + addr + ")"; in add()
172 + ", " + addr + ")"; in add()
207 bool PrefixParser::splitIntoAddrAndMask(string in, string &addr, string &mask) { in splitIntoAddrAndMask() argument
212 addr = in.substr(0, pos); in splitIntoAddrAndMask()
[all …]

12345678910>>...14