Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/device/generic/goldfish/wifi/wifi_hal/
Dwifi_hal.cpp52 wifi_error wifi_initialize(wifi_handle* handle) { in wifi_initialize() argument
53 if (handle == nullptr) { in wifi_initialize()
72 *handle = reinterpret_cast<wifi_handle>(sHalState); in wifi_initialize()
77 void wifi_cleanup(wifi_handle handle, wifi_cleaned_up_handler handler) { in wifi_cleanup() argument
78 if (handle == nullptr) { in wifi_cleanup()
96 if (asHalState(handle)->stop(callback)) { in wifi_cleanup()
107 handler(handle); in wifi_cleanup()
110 void wifi_event_loop(wifi_handle handle) { in wifi_event_loop() argument
111 if (handle == nullptr) { in wifi_event_loop()
115 asHalState(handle)->eventLoop(); in wifi_event_loop()
[all …]
/device/google/contexthub/util/stm32_flash/
Dstm32_bl.c26 uint8_t checksum(__attribute__((unused)) handle_t *handle, uint8_t *bytes, int length) in checksum() argument
43 static uint8_t write_len(handle_t *handle, int len) in write_len() argument
49 return handle->write_data(handle, buffer, sizeof(uint8_t)); in write_len()
52 static uint8_t write_cnt(handle_t *handle, uint16_t cnt) in write_cnt() argument
59 return handle->write_data(handle, buffer, sizeof(uint16_t)); in write_cnt()
62 static uint8_t write_addr(handle_t *handle, uint32_t addr) in write_addr() argument
71 return handle->write_data(handle, buffer, sizeof(uint32_t)); in write_addr()
75 static uint8_t write_len_data(handle_t *handle, int len, uint8_t *data) in write_len_data() argument
85 return handle->write_data(handle, buffer, sizeof(uint8_t)+len); in write_len_data()
89 static uint8_t read_ack_loop(handle_t *handle) in read_ack_loop() argument
[all …]
Di2c.c26 uint8_t i2c_write_data(handle_t *handle, uint8_t *buffer, int length) in i2c_write_data() argument
28 i2c_handle_t *i2c_handle = (i2c_handle_t *)handle; in i2c_write_data()
30 buffer[length] = checksum(handle, buffer, length); in i2c_write_data()
38 uint8_t i2c_write_cmd(handle_t *handle, uint8_t cmd) in i2c_write_cmd() argument
45 return handle->write_data(handle, buffer, sizeof(uint8_t)); in i2c_write_cmd()
48 uint8_t i2c_read_data(handle_t *handle, uint8_t *data, int length) in i2c_read_data() argument
50 i2c_handle_t *i2c_handle = (i2c_handle_t *)handle; in i2c_read_data()
58 uint8_t i2c_read_ack(handle_t *handle) in i2c_read_ack() argument
62 if (handle->read_data(handle, &buffer, sizeof(uint8_t)) == CMD_ACK) in i2c_read_ack()
68 int i2c_init(handle_t *handle) in i2c_init() argument
[all …]
Dspi.c24 uint8_t spi_write_data(handle_t *handle, uint8_t *buffer, int length) in spi_write_data() argument
26 spi_handle_t *spi_handle = (spi_handle_t *)handle; in spi_write_data()
35 buffer[length] = checksum(handle, buffer, length); in spi_write_data()
43 uint8_t spi_write_cmd(handle_t *handle, uint8_t cmd) in spi_write_cmd() argument
45 spi_handle_t *spi_handle = (spi_handle_t *)handle; in spi_write_cmd()
66 uint8_t spi_read_data(handle_t *handle, uint8_t *data, int length) in spi_read_data() argument
68 spi_handle_t *spi_handle = (spi_handle_t *)handle; in spi_read_data()
94 uint8_t spi_read_ack(handle_t *handle) in spi_read_ack() argument
96 spi_handle_t *spi_handle = (spi_handle_t *)handle; in spi_read_ack()
129 uint8_t spi_sync(handle_t *handle) in spi_sync() argument
[all …]
Duart.c29 uint8_t uart_write_data(handle_t *handle, uint8_t *buffer, int length) in uart_write_data() argument
31 uart_handle_t *uart_handle = (uart_handle_t *)handle; in uart_write_data()
33 buffer[length] = checksum(handle, buffer, length); in uart_write_data()
41 uint8_t uart_write_cmd(handle_t *handle, uint8_t cmd) in uart_write_cmd() argument
43 uart_handle_t *uart_handle = (uart_handle_t *)handle; in uart_write_cmd()
56 uint8_t uart_read_data(handle_t *handle, uint8_t *data, int length) in uart_read_data() argument
58 uart_handle_t *uart_handle = (uart_handle_t *)handle; in uart_read_data()
72 uint8_t uart_read_ack(handle_t *handle) in uart_read_ack() argument
76 if (handle->read_data(handle, &buffer, sizeof(uint8_t)) == CMD_ACK) in uart_read_ack()
82 int uart_init(handle_t *handle) in uart_init() argument
[all …]
/device/google/contexthub/sensorhal/
Dsensors.cpp80 int SensorContext::activate(int handle, int enabled) { in activate() argument
84 if (h->owns(handle)) { in activate()
85 return h->activate(handle, enabled); in activate()
91 int SensorContext::setDelay(int handle, int64_t delayNs) { in setDelay() argument
95 if (h->owns(handle)) { in setDelay()
96 return h->setDelay(handle, delayNs); in setDelay()
112 int handle, in batch() argument
118 if (h->owns(handle)) { in batch()
119 return h->batch(handle, sampling_period_ns, max_report_latency_ns); in batch()
125 int SensorContext::flush(int handle) { in flush() argument
[all …]
Dsensors.h61 int activate(int handle, int enabled);
62 int setDelay(int handle, int64_t delayNs);
65 int batch(int handle, int64_t sampling_period_ns,
68 int flush(int handle);
84 struct sensors_poll_device_t *dev, int handle, int enabled);
87 struct sensors_poll_device_t *dev, int handle, int64_t delayNs);
94 int handle,
99 static int FlushWrapper(struct sensors_poll_device_1 *dev, int handle);
109 virtual bool owns(int handle) = 0;
110 virtual int activate(int handle, int enabled) = 0;
[all …]
Dhubconnection.cpp1348 ev.meta_data.sensor = flush.handle; in processBuf()
1352 if (flush.handle == COMMS_SENSOR_ACCEL_WRIST_AWARE) in processBuf()
1354 else if (flush.handle == COMMS_SENSOR_GYRO_WRIST_AWARE) in processBuf()
1552 void HubConnection::initConfigCmd(struct ConfigCmd *cmd, int handle) in initConfigCmd() argument
1557 cmd->sensorType = mSensorState[handle].sensorType; in initConfigCmd()
1559 if (mSensorState[handle].enable) { in initConfigCmd()
1561 cmd->rate = mSensorState[handle].rate; in initConfigCmd()
1562 cmd->latency = mSensorState[handle].latency; in initConfigCmd()
1572 uint8_t alt = mSensorState[handle].alt[i]; in initConfigCmd()
1588 mergeDirectReportRequest(cmd, handle); in initConfigCmd()
[all …]
/device/linaro/hikey/gralloc960/
Dmali_gralloc_private_interface.cpp35 …ic int32_t mali_gralloc_private_get_buff_int_fmt(gralloc1_device_t *device, buffer_handle_t handle, in mali_gralloc_private_get_buff_int_fmt() argument
40 if (private_handle_t::validate(handle) < 0 || internal_format == NULL) in mali_gralloc_private_get_buff_int_fmt()
45 const private_handle_t *hnd = static_cast<const private_handle_t *>(handle); in mali_gralloc_private_get_buff_int_fmt()
51 static int32_t mali_gralloc_private_get_buff_fd(gralloc1_device_t *device, buffer_handle_t handle, … in mali_gralloc_private_get_buff_fd() argument
55 if (private_handle_t::validate(handle) < 0 || fd == NULL) in mali_gralloc_private_get_buff_fd()
60 const private_handle_t *hnd = static_cast<const private_handle_t *>(handle); in mali_gralloc_private_get_buff_fd()
66 …c int32_t mali_gralloc_private_get_buff_int_dims(gralloc1_device_t *device, buffer_handle_t handle, in mali_gralloc_private_get_buff_int_dims() argument
71 if (private_handle_t::validate(handle) < 0 || internalWidth == NULL || internalHeight == NULL) in mali_gralloc_private_get_buff_int_dims()
76 const private_handle_t *hnd = static_cast<const private_handle_t *>(handle); in mali_gralloc_private_get_buff_int_dims()
83 …gralloc_private_get_buff_offset(gralloc1_device_t *device, buffer_handle_t handle, int64_t *offset) in mali_gralloc_private_get_buff_offset() argument
[all …]
Dmali_gralloc_module.cpp78 static int gralloc_register_buffer(gralloc_module_t const *module, buffer_handle_t handle) in gralloc_register_buffer() argument
82 return mali_gralloc_reference_retain(m, handle); in gralloc_register_buffer()
85 static int gralloc_unregister_buffer(gralloc_module_t const *module, buffer_handle_t handle) in gralloc_unregister_buffer() argument
89 return mali_gralloc_reference_release(m, handle, false); in gralloc_unregister_buffer()
92 static int gralloc_lock(gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, i… in gralloc_lock() argument
97 return mali_gralloc_lock(m, handle, usage, l, t, w, h, vaddr); in gralloc_lock()
100 static int gralloc_lock_ycbcr(gralloc_module_t const *module, buffer_handle_t handle, int usage, in… in gralloc_lock_ycbcr() argument
105 return mali_gralloc_lock_ycbcr(m, handle, usage, l, t, w, h, ycbcr); in gralloc_lock_ycbcr()
108 static int gralloc_unlock(gralloc_module_t const *module, buffer_handle_t handle) in gralloc_unlock() argument
112 return mali_gralloc_unlock(m, handle); in gralloc_unlock()
[all …]
/device/amlogic/yukawa/hal/gralloc/
Dmali_gralloc_private_interface.cpp35 …ic int32_t mali_gralloc_private_get_buff_int_fmt(gralloc1_device_t *device, buffer_handle_t handle, in mali_gralloc_private_get_buff_int_fmt() argument
40 if (private_handle_t::validate(handle) < 0 || internal_format == NULL) in mali_gralloc_private_get_buff_int_fmt()
45 const private_handle_t *hnd = static_cast<const private_handle_t *>(handle); in mali_gralloc_private_get_buff_int_fmt()
51 static int32_t mali_gralloc_private_get_buff_fd(gralloc1_device_t *device, buffer_handle_t handle, … in mali_gralloc_private_get_buff_fd() argument
55 if (private_handle_t::validate(handle) < 0 || fd == NULL) in mali_gralloc_private_get_buff_fd()
60 const private_handle_t *hnd = static_cast<const private_handle_t *>(handle); in mali_gralloc_private_get_buff_fd()
66 …c int32_t mali_gralloc_private_get_buff_int_dims(gralloc1_device_t *device, buffer_handle_t handle, in mali_gralloc_private_get_buff_int_dims() argument
71 if (private_handle_t::validate(handle) < 0 || internalWidth == NULL || internalHeight == NULL) in mali_gralloc_private_get_buff_int_dims()
76 const private_handle_t *hnd = static_cast<const private_handle_t *>(handle); in mali_gralloc_private_get_buff_int_dims()
83 …gralloc_private_get_buff_offset(gralloc1_device_t *device, buffer_handle_t handle, int64_t *offset) in mali_gralloc_private_get_buff_offset() argument
[all …]
Dmali_gralloc_module.cpp78 static int gralloc_register_buffer(gralloc_module_t const *module, buffer_handle_t handle) in gralloc_register_buffer() argument
82 return mali_gralloc_reference_retain(m, handle); in gralloc_register_buffer()
85 static int gralloc_unregister_buffer(gralloc_module_t const *module, buffer_handle_t handle) in gralloc_unregister_buffer() argument
89 return mali_gralloc_reference_release(m, handle, false); in gralloc_unregister_buffer()
92 static int gralloc_lock(gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, i… in gralloc_lock() argument
97 return mali_gralloc_lock(m, handle, usage, l, t, w, h, vaddr); in gralloc_lock()
100 static int gralloc_lock_ycbcr(gralloc_module_t const *module, buffer_handle_t handle, int usage, in… in gralloc_lock_ycbcr() argument
105 return mali_gralloc_lock_ycbcr(m, handle, usage, l, t, w, h, ycbcr); in gralloc_lock_ycbcr()
108 static int gralloc_unlock(gralloc_module_t const *module, buffer_handle_t handle) in gralloc_unlock() argument
112 return mali_gralloc_unlock(m, handle); in gralloc_unlock()
[all …]
/device/linaro/poplar/wifi/wifi_hal/
Dwifi_hal.cpp73 static void internal_event_handler(wifi_handle handle, int events);
76 static int wifi_get_multicast_id(wifi_handle handle, const char *name, const char *group);
77 static int wifi_add_membership(wifi_handle handle, const char *group);
78 static wifi_error wifi_init_interfaces(wifi_handle handle);
82 static wifi_error wifi_set_packet_filter(wifi_interface_handle handle,
84 static wifi_error wifi_get_packet_filter_capabilities(wifi_interface_handle handle,
218 wifi_error wifi_initialize(wifi_handle *handle) in wifi_initialize() argument
291 *handle = (wifi_handle) info; in wifi_initialize()
293 if (wifi_init_interfaces(*handle) != WIFI_SUCCESS) { in wifi_initialize()
302 if ((wifi_add_membership(*handle, "scan") < 0) || in wifi_initialize()
[all …]
Dcommon.cpp40 interface_info *getIfaceInfo(wifi_interface_handle handle) in getIfaceInfo() argument
42 return (interface_info *)handle; in getIfaceInfo()
45 wifi_handle getWifiHandle(wifi_interface_handle handle) in getWifiHandle() argument
47 return getIfaceInfo(handle)->handle; in getWifiHandle()
50 hal_info *getHalInfo(wifi_handle handle) in getHalInfo() argument
52 return (hal_info *)handle; in getHalInfo()
55 hal_info *getHalInfo(wifi_interface_handle handle) in getHalInfo() argument
57 return getHalInfo(getWifiHandle(handle)); in getHalInfo()
70 wifi_error wifi_register_handler(wifi_handle handle, int cmd, nl_recvmsg_msg_cb_t func, void *arg) in wifi_register_handler() argument
72 hal_info *info = (hal_info *)handle; in wifi_register_handler()
[all …]
/device/generic/vulkan-cereal/fake-android-guest/androidImpl/
DGrallocDispatch.h33 buffer_handle_t* handle, in alloc()
35 return alloc_dev->alloc(alloc_dev, w, h, format, usage, handle, stride); in alloc()
38 int free(buffer_handle_t handle) { in free()
39 return alloc_dev->free(alloc_dev, handle); in free()
49 int registerBuffer(buffer_handle_t handle) { in registerBuffer()
50 return alloc_module->registerBuffer(alloc_module, handle); in registerBuffer()
53 int unregisterBuffer(buffer_handle_t handle) { in unregisterBuffer()
54 return alloc_module->unregisterBuffer(alloc_module, handle); in unregisterBuffer()
57 int lock(buffer_handle_t handle, int usage, in lock()
60 return alloc_module->lock(alloc_module, handle, usage, l, t, w, h, in lock()
[all …]
DGraphicBuffer.cpp48 handle = NULL; in GraphicBuffer()
80 if (handle) { in ~GraphicBuffer()
87 mBufferMapper.freeBuffer(handle); in free_handle()
90 allocator.free(handle); in free_handle()
92 handle = NULL; in free_handle()
111 if (handle && in reallocate()
118 if (handle) { in reallocate()
120 allocator.free(handle); in reallocate()
121 handle = 0; in reallocate()
142 inUsage, &handle, &outStride, mId, in initWithSize()
[all …]
DGraphicBufferMapper.cpp71 void GraphicBufferMapper::getTransportSize(buffer_handle_t handle, in getTransportSize() argument
74 mMapper->getTransportSize(handle, outTransportNumFds, outTransportNumInts); in getTransportSize()
76 status_t GraphicBufferMapper::freeBuffer(buffer_handle_t handle) in freeBuffer() argument
79 mMapper->freeBuffer(handle); in freeBuffer()
90 status_t GraphicBufferMapper::lock(buffer_handle_t handle, uint32_t usage, in lock() argument
93 return lockAsync(handle, usage, bounds, vaddr, -1); in lock()
95 status_t GraphicBufferMapper::lockYCbCr(buffer_handle_t handle, uint32_t usage, in lockYCbCr() argument
98 return lockAsyncYCbCr(handle, usage, bounds, ycbcr, -1); in lockYCbCr()
100 status_t GraphicBufferMapper::unlock(buffer_handle_t handle) in unlock() argument
103 status_t error = unlockAsync(handle, &fenceFd); in unlock()
[all …]
Dnative_handle.cpp29 native_handle_t* handle = (native_handle_t*) storage; in native_handle_init() local
30 handle->version = sizeof(native_handle_t); in native_handle_init()
31 handle->numFds = numFds; in native_handle_init()
32 handle->numInts = numInts; in native_handle_init()
33 return handle; in native_handle_init()
49 native_handle_t* native_handle_clone(const native_handle_t* handle) { in native_handle_clone() argument
50 native_handle_t* clone = native_handle_create(handle->numFds, handle->numInts); in native_handle_clone()
52 for (int i = 0; i < handle->numFds; i++) { in native_handle_clone()
53 clone->data[i] = dup(handle->data[i]); in native_handle_clone()
61 memcpy(&clone->data[handle->numFds], &handle->data[handle->numFds], in native_handle_clone()
[all …]
/device/generic/vulkan-cereal/stream-servers/tests/
DFrameBuffer_unittest.cpp181 HandleType handle = in TEST_F() local
183 EXPECT_NE(0, handle); in TEST_F()
189 HandleType handle = in TEST_F() local
191 EXPECT_NE(0, handle); in TEST_F()
192 mFb->closeColorBuffer(handle); in TEST_F()
197 HandleType handle = in TEST_F() local
199 EXPECT_NE(0, handle); in TEST_F()
200 EXPECT_EQ(0, mFb->openColorBuffer(handle)); in TEST_F()
201 mFb->closeColorBuffer(handle); in TEST_F()
207 HandleType handle = in TEST_F() local
[all …]
/device/google/cuttlefish/host/commands/secure_env/
Dfragile_tpm_storage.cpp51 TPM2_HANDLE handle = 0; in GenerateRandomHandle() local
53 reinterpret_cast<uint8_t*>(&handle), sizeof(handle)); in GenerateRandomHandle()
54 if (handle == 0) { in GenerateRandomHandle()
56 handle = rand(); in GenerateRandomHandle()
58 handle = handle % (TPM2_NV_INDEX_LAST + 1 - TPM2_NV_INDEX_FIRST); in GenerateRandomHandle()
59 handle += TPM2_NV_INDEX_FIRST; in GenerateRandomHandle()
60 return handle; in GenerateRandomHandle()
70 TPM2_HANDLE handle; in Allocate() local
72 handle = GenerateRandomHandle(); in Allocate()
76 .nvIndex = handle, in Allocate()
[all …]
/device/linaro/hikey/gralloc/
Dgralloc_module.cpp62 static int gralloc_register_buffer(gralloc_module_t const *module, buffer_handle_t handle) in gralloc_register_buffer() argument
66 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
68 AERR("Registering invalid buffer %p, returning error", handle); in gralloc_register_buffer()
73 private_handle_t *hnd = (private_handle_t *)handle; in gralloc_register_buffer()
101 AINF("Register buffer %p although it will be treated as a nop", handle); in gralloc_register_buffer()
239 static int gralloc_unregister_buffer(gralloc_module_t const *module, buffer_handle_t handle) in gralloc_unregister_buffer() argument
243 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
245 AERR("unregistering invalid buffer %p, returning error", handle); in gralloc_unregister_buffer()
249 private_handle_t *hnd = (private_handle_t *)handle; in gralloc_unregister_buffer()
255 AERR("Can't unregister buffer %p as it is a framebuffer", handle); in gralloc_unregister_buffer()
[all …]
/device/generic/vulkan-cereal/stream-servers/vulkan/cereal/proto/
Dgoldfish_vk_baseprotodefs.proto74 // Original field: handle VkInstance pInstance. stringarray? 0 string? 0 hasLenInfo? 0
79 // Original field: handle VkInstance instance. stringarray? 0 string? 0 hasLenInfo? 0
86 // Original field: handle VkInstance instance. stringarray? 0 string? 0 hasLenInfo? 0
90 …// Original field: handle VkPhysicalDevice pPhysicalDevices. stringarray? 0 string? 0 hasLenInfo? 1
208 … // Original field: handle VkPhysicalDevice physicalDevice. stringarray? 0 string? 0 hasLenInfo? 0
224 … // Original field: handle VkPhysicalDevice physicalDevice. stringarray? 0 string? 0 hasLenInfo? 0
255 … // Original field: handle VkPhysicalDevice physicalDevice. stringarray? 0 string? 0 hasLenInfo? 0
521 … // Original field: handle VkPhysicalDevice physicalDevice. stringarray? 0 string? 0 hasLenInfo? 0
539 … // Original field: handle VkPhysicalDevice physicalDevice. stringarray? 0 string? 0 hasLenInfo? 0
573 … // Original field: handle VkPhysicalDevice physicalDevice. stringarray? 0 string? 0 hasLenInfo? 0
[all …]
/device/google/contexthub/firmware/os/core/
Dsensors.c64 struct Sensor* sensorFindByHandle(uint32_t handle) in sensorFindByHandle() argument
69 if (mSensors[i].handle == handle) in sensorFindByHandle()
82 if (req && req->handle == sensorHandle && req->clientTid == clientTid) in sensorClientRequestFind()
92 uint32_t handle, i; in sensorRegisterEx() local
104 handle = newSensorHandle(); in sensorRegisterEx()
105 } while (!handle || sensorFindByHandle(handle)); in sensorRegisterEx()
117 s->handle = handle; in sensorRegisterEx()
130 return handle; in sensorRegisterEx()
144 bool sensorRegisterInitComplete(uint32_t handle) in sensorRegisterInitComplete() argument
146 struct Sensor *s = sensorFindByHandle(handle); in sensorRegisterInitComplete()
[all …]
/device/generic/vulkan-cereal/stream-servers/
DRendererImpl.cpp527 [](uint64_t size, uint32_t handle) { in __anon37b677d40402() argument
528 FrameBuffer::getFB()->createBufferWithHandle(size, handle); in __anon37b677d40402()
531 [](uint32_t width, uint32_t height, uint32_t format, uint32_t fwkFormat, uint32_t handle) { in __anon37b677d40502() argument
533 (FrameworkFormat)fwkFormat, handle); in __anon37b677d40502()
535 .open_color_buffer = [](uint32_t handle) { FrameBuffer::getFB()->openColorBuffer(handle); }, in __anon37b677d40602() argument
536 .close_buffer = [](uint32_t handle) { FrameBuffer::getFB()->closeBuffer(handle); }, in __anon37b677d40702() argument
537 .close_color_buffer = [](uint32_t handle) { FrameBuffer::getFB()->closeColorBuffer(handle); }, in __anon37b677d40802() argument
539 [](uint32_t handle, uint64_t offset, uint64_t size, void* bytes) { in __anon37b677d40902() argument
540 FrameBuffer::getFB()->updateBuffer(handle, offset, size, bytes); in __anon37b677d40902()
543 [](uint32_t handle, int x, int y, int width, int height, uint32_t format, uint32_t type,
[all …]
/device/generic/goldfish-opengl/android-emu/aemu/base/containers/
DEntityManager.h125 EntityHandle handle = 0;
169 mEntries[i].handle = makeHandle(i, 0, type);
176 mEntries[newIndex].handle =
185 EM_DBG("result handle: 0x%llx", (unsigned long long)mEntries[newIndex].handle);
187 return mEntries[newIndex].handle;
224 mEntries[i].handle = makeHandle(i, 0, type);
237 if (entry.liveGeneration == getHandleGeneration(entry.handle)) {
244 mEntries[newIndex].handle = fixedHandle;
350 auto handle = entry.handle;
351 bool live = isLive(handle);
[all …]

12345678910>>...13