Home
last modified time | relevance | path

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

123456789

/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/google/av/codec2/vndk/
DC2AllocatorIon.cpp128 void **addr /* nonnull */) override;
129 virtual c2_status_t unmap(void *addr, size_t size, C2Fence *fenceFd) override;
230 c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { in map() argument
232 *addr = nullptr; in map()
261 flags, mapOffset, (unsigned char**)&map.addr, &mMapFd); in map()
267 map.addr = *addr = nullptr; in map()
270 *addr = (uint8_t *)map.addr + alignmentBytes; in map()
273 map.addr = mmap(nullptr, mapSize, prot, flags, mMapFd, mapOffset); in map()
277 if (map.addr == MAP_FAILED) { in map()
278 map.addr = *addr = nullptr; in map()
[all …]
/hardware/interfaces/bluetooth/1.0/default/test/
Dbluetooth_address_test.cc71 uint8_t addr[BluetoothAddress::kBytes]; in TEST_F() local
74 EXPECT_FALSE(BluetoothAddress::string_to_bytes("", addr)); in TEST_F()
75 EXPECT_FALSE(BluetoothAddress::string_to_bytes("000000000000", addr)); in TEST_F()
76 EXPECT_FALSE(BluetoothAddress::string_to_bytes("00:00:00:00:0000", addr)); in TEST_F()
77 EXPECT_FALSE(BluetoothAddress::string_to_bytes("00:00:00:00:00:0", addr)); in TEST_F()
78 EXPECT_FALSE(BluetoothAddress::string_to_bytes("00:00:00:00:00:0;", addr)); in TEST_F()
79 EXPECT_FALSE(BluetoothAddress::string_to_bytes("aB:cD:eF:Gh:iJ:Kl", addr)); in TEST_F()
80 EXPECT_FALSE(BluetoothAddress::string_to_bytes("00:00:000:00:00:0;", addr)); in TEST_F()
81 EXPECT_FALSE(BluetoothAddress::string_to_bytes("12:34:56:78:90:12;", addr)); in TEST_F()
82 EXPECT_FALSE(BluetoothAddress::string_to_bytes("12:34:56:78:90:123", addr)); in TEST_F()
[all …]
/hardware/intel/img/hwcomposer/merrifield/common/observers/
DUeventObserver.cpp58 struct sockaddr_nl addr; in initialize() local
63 memset(&addr, 0, sizeof(addr)); in initialize()
64 addr.nl_family = AF_NETLINK; in initialize()
65 addr.nl_pid = pthread_self() | getpid(); in initialize()
66 addr.nl_groups = 0xffffffff; in initialize()
78 if (bind(mUeventFd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in initialize()
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/observers/
DUeventObserver.cpp58 struct sockaddr_nl addr; in initialize() local
63 memset(&addr, 0, sizeof(addr)); in initialize()
64 addr.nl_family = AF_NETLINK; in initialize()
65 addr.nl_pid = pthread_self() | getpid(); in initialize()
66 addr.nl_groups = 0xffffffff; in initialize()
78 if (bind(mUeventFd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in initialize()
/hardware/libhardware_legacy/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/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.cpp85 void* addr = mmap(NULL, buffer_size_, PROT_READ, MAP_SHARED, fd_.get(), 0); in Map() local
86 if (addr == MAP_FAILED) { in Map()
90 data_ = static_cast<uint8_t*>(addr); in Map()
138 void* addr; in Map() local
147 addr = yuv_data.y; in Map()
151 device_buffer_length_, 1, &addr); in Map()
156 width_, height_, &addr); in Map()
167 data_ = static_cast<uint8_t*>(addr); in Map()
/hardware/interfaces/bluetooth/1.0/default/
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/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 …]
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/
Dloc_eng_agps.h279 virtual void setIPAddresses(struct sockaddr_storage& addr) = 0;
320 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
321 { addr.ss_family = AF_INET6;/*todo: convert mIPv6Addr into addr */ } in setIPAddresses()
347 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
348 { memset(&addr, 0, sizeof(addr)); in setIPAddresses()
349 addr.ss_family = AF_INET6; } in setIPAddresses()
383 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
384 { addr.ss_family = AF_INET6; } in setIPAddresses()
419 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
420 { addr.ss_family = AF_INET6; } in setIPAddresses()
/hardware/google/av/codec2/tests/vndk/
DC2BufferTest.cpp255 void mapLinear(size_t offset, size_t size, uint8_t **addr) { in mapLinear() argument
270 *addr = (uint8_t *)mAddr; in mapLinear()
301 void mapGraphic(C2Rect rect, C2PlanarLayout *layout, uint8_t **addr) { in mapGraphic() argument
309 addr); in mapGraphic()
311 addr[C2PlanarLayout::PLANE_Y] = nullptr; in mapGraphic()
312 addr[C2PlanarLayout::PLANE_U] = nullptr; in mapGraphic()
313 addr[C2PlanarLayout::PLANE_V] = nullptr; in mapGraphic()
317 memcpy(mAddrGraphic, addr, sizeof(uint8_t*) * C2PlanarLayout::MAX_NUM_PLANES); in mapGraphic()
349 uint8_t *addr = nullptr; in TEST_F() local
350 mapLinear(0u, kCapacity, &addr); in TEST_F()
[all …]
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dtdls.cpp104 mac_addr addr; in handleEvent() local
107 memset(&addr, 0, sizeof(mac_addr)); in handleEvent()
120 memcpy(addr, in handleEvent()
124 ALOGV(MAC_ADDR_STR, MAC_ADDR_ARRAY(addr)); in handleEvent()
169 (*mHandler.on_tdls_state_changed)(addr, status); in handleEvent()
349 mac_addr addr, in wifi_enable_tdls() argument
379 ALOGV("%s: MAC_ADDR: " MAC_ADDR_STR, __FUNCTION__, MAC_ADDR_ARRAY(addr)); in wifi_enable_tdls()
381 (char *)addr, 6); in wifi_enable_tdls()
435 wifi_error wifi_disable_tdls(wifi_interface_handle iface, mac_addr addr) in wifi_disable_tdls() argument
459 ALOGV("%s: MAC_ADDR: " MAC_ADDR_STR, __FUNCTION__, MAC_ADDR_ARRAY(addr)); in wifi_disable_tdls()
[all …]
/hardware/qcom/display/msm8909/hdmi_cec/
Dqhdmi_cec.cpp175 cec_logical_address_t addr) in cec_add_logical_address() argument
177 if (addr < CEC_ADDR_TV || addr > CEC_ADDR_BROADCAST) { in cec_add_logical_address()
178 ALOGE("%s: Received invalid address: %d ", __FUNCTION__, addr); in cec_add_logical_address()
182 ctx->logical_address[addr] = LOGICAL_ADDRESS_SET; in cec_add_logical_address()
186 ssize_t err = write_int_to_node(ctx, "cec/logical_addr", addr); in cec_add_logical_address()
187 ALOGI("%s: Allocated logical address: %d ", __FUNCTION__, addr); in cec_add_logical_address()
202 uint16_t* addr) in cec_get_physical_address() argument
210 *addr = (uint16_t) atoi(pa_data); in cec_get_physical_address()
211 ALOGD_IF(DEBUG, "%s: Physical Address: 0x%x", __FUNCTION__, *addr); in cec_get_physical_address()
680 struct sockaddr_nl addr; in uevent_init() local
[all …]
/hardware/qcom/display/msm8909w_3100/hdmi_cec/
Dqhdmi_cec.cpp175 cec_logical_address_t addr) in cec_add_logical_address() argument
177 if (addr < CEC_ADDR_TV || addr > CEC_ADDR_BROADCAST) { in cec_add_logical_address()
178 ALOGE("%s: Received invalid address: %d ", __FUNCTION__, addr); in cec_add_logical_address()
182 ctx->logical_address[addr] = LOGICAL_ADDRESS_SET; in cec_add_logical_address()
186 ssize_t err = write_int_to_node(ctx, "cec/logical_addr", addr); in cec_add_logical_address()
187 ALOGI("%s: Allocated logical address: %d ", __FUNCTION__, addr); in cec_add_logical_address()
202 uint16_t* addr) in cec_get_physical_address() argument
210 *addr = (uint16_t) atoi(pa_data); in cec_get_physical_address()
211 ALOGD_IF(DEBUG, "%s: Physical Address: 0x%x", __FUNCTION__, *addr); in cec_get_physical_address()
680 struct sockaddr_nl addr; in uevent_init() local
[all …]
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/
Dloc_eng_agps.h279 virtual void setIPAddresses(struct sockaddr_storage& addr) = 0;
320 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
321 { addr.ss_family = AF_INET6;/*todo: convert mIPv6Addr into addr */ } in setIPAddresses()
347 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
348 { addr.ss_family = AF_INET6; } in setIPAddresses()
382 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
383 { addr.ss_family = AF_INET6; } in setIPAddresses()
418 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
419 { addr.ss_family = AF_INET6; } in setIPAddresses()
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/
Dloc_eng_agps.h279 virtual void setIPAddresses(struct sockaddr_storage& addr) = 0;
320 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
321 { addr.ss_family = AF_INET6;/*todo: convert mIPv6Addr into addr */ } in setIPAddresses()
347 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
348 { addr.ss_family = AF_INET6; } in setIPAddresses()
382 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
383 { addr.ss_family = AF_INET6; } in setIPAddresses()
418 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
419 { addr.ss_family = AF_INET6; } in setIPAddresses()
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/
Dloc_eng_agps.h279 virtual void setIPAddresses(struct sockaddr_storage& addr) = 0;
320 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
321 { addr.ss_family = AF_INET6;/*todo: convert mIPv6Addr into addr */ } in setIPAddresses()
347 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
348 { addr.ss_family = AF_INET6; } in setIPAddresses()
382 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
383 { addr.ss_family = AF_INET6; } in setIPAddresses()
418 inline virtual void setIPAddresses(struct sockaddr_storage& addr) in setIPAddresses()
419 { addr.ss_family = AF_INET6; } in setIPAddresses()
/hardware/qcom/gps/msm8909w_3100/gnss/
DXtraSystemStatusObserver.cpp121 struct sockaddr_un addr = { .sun_family = AF_UNIX }; in createSocket() local
122 snprintf(addr.sun_path, sizeof(addr.sun_path), "%s", socketPath); in createSocket()
124 if (::connect(socketFd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { in createSocket()
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_ion_alloc.cpp128 void *addr = 0; in MapBuffer() local
132 addr = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in MapBuffer()
133 *base = addr; in MapBuffer()
134 if (addr == MAP_FAILED) { in MapBuffer()
138 ALOGD_IF(DEBUG, "ion: Mapped buffer base:%p size:%u offset:%u fd:%d", addr, size, offset, fd); in MapBuffer()
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_ion_alloc.cpp128 void *addr = 0; in MapBuffer() local
132 addr = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in MapBuffer()
133 *base = addr; in MapBuffer()
134 if (addr == MAP_FAILED) { in MapBuffer()
138 ALOGD_IF(DEBUG, "ion: Mapped buffer base:%p size:%u offset:%u fd:%d", addr, size, offset, fd); in MapBuffer()
/hardware/qcom/display/msm8909/gralloc/
Dgr_ion_alloc.cpp128 void *addr = 0; in MapBuffer() local
132 addr = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in MapBuffer()
133 *base = addr; in MapBuffer()
134 if (addr == MAP_FAILED) { in MapBuffer()
138 ALOGD_IF(DEBUG, "ion: Mapped buffer base:%p size:%u offset:%u fd:%d", addr, size, offset, fd); in MapBuffer()
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_ion_alloc.cpp142 void *addr = 0; in MapBuffer() local
146 addr = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in MapBuffer()
147 *base = addr; in MapBuffer()
148 if (addr == MAP_FAILED) { in MapBuffer()
152 ALOGD_IF(DEBUG, "ion: Mapped buffer base:%p size:%u offset:%u fd:%d", addr, size, offset, fd); in MapBuffer()
/hardware/intel/img/psb_video/fw/topazhp/
Dtopazhp_bin.c149 unsigned int addr; member
173 sec_t[iter].addr = FW_NUM * 16 + SECURE_VRL_HEADER + SECURE_FIP_HEADER; in create_firmware_A0()
187 …sec_t[iter].addr = sec_t[iter-1].addr + sec_t[iter-1].text_size_bytes + sec_t[iter-1].data_size_by… in create_firmware_A0()
223 unsigned int addr; member
259 sec_t[iter].addr = FW_NUM * 16 + SECURE_VRL_HEADER + SECURE_FIP_HEADER; in create_firmware_B0()
270 sec_t[iter].addr = sec_t[iter-1].addr + in create_firmware_B0()
/hardware/interfaces/gnss/1.0/default/
DAGnss.cpp65 switch (status->addr.ss_family) in statusCb()
72 struct sockaddr_in* in = reinterpret_cast<struct sockaddr_in*>(&(status->addr)); in statusCb()
100 &(status->addr)); in statusCb()
110 ALOGE("Invalid ss_family found: %d", status->addr.ss_family); in statusCb()

123456789