Home
last modified time | relevance | path

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

123456789

/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 …]
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 …]
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 …]
Dstm32_bl.h31 typedef struct handle struct
38 uint8_t (*write_data)(struct handle *, uint8_t *buffer, int length); argument
39 uint8_t (*write_cmd)(struct handle *, uint8_t cmd); argument
40 uint8_t (*read_data)(struct handle *, uint8_t *buffer, int length); argument
41 uint8_t (*read_ack)(struct handle *); argument
44 uint8_t checksum(handle_t *handle, uint8_t *bytes, int length);
45 uint8_t erase_sector(handle_t *handle, uint16_t sector);
46 uint8_t read_memory(handle_t *handle, uint32_t addr, uint32_t length, uint8_t *buffer);
47 uint8_t write_memory(handle_t *handle, uint32_t addr, uint32_t length, uint8_t *buffer);
/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/linaro/dragonboard/gralloc/
Dgralloc_gbm.cpp160 struct gralloc_handle_t *handle = gralloc_handle(_handle); in gbm_import() local
167 int format = get_gbm_format(handle->format); in gbm_import()
168 if (handle->prime_fd < 0) in gbm_import()
172 data.width = handle->width; in gbm_import()
173 data.height = handle->height; in gbm_import()
176 if (handle->format == HAL_PIXEL_FORMAT_YV12) { in gbm_import()
178 data.height += handle->height / 2; in gbm_import()
183 data.fds[0] = handle->prime_fd; in gbm_import()
184 data.strides[0] = handle->stride; in gbm_import()
185 data.modifier = handle->modifier; in gbm_import()
[all …]
Dgralloc.cpp97 buffer_handle_t handle) in gbm_mod_register_buffer() argument
107 err = gralloc_gbm_handle_register(handle, dmod->gbm); in gbm_mod_register_buffer()
114 buffer_handle_t handle) in gbm_mod_unregister_buffer() argument
120 err = gralloc_gbm_handle_unregister(handle); in gbm_mod_unregister_buffer()
126 static int gbm_mod_lock(const gralloc_module_t *mod, buffer_handle_t handle, in gbm_mod_lock() argument
134 err = gralloc_gbm_bo_lock(handle, usage, x, y, w, h, ptr); in gbm_mod_lock()
135 ALOGV("buffer %p lock usage = %08x", handle, usage); in gbm_mod_lock()
141 static int gbm_mod_unlock(const gralloc_module_t *mod, buffer_handle_t handle) in gbm_mod_unlock() argument
147 err = gralloc_gbm_bo_unlock(handle); in gbm_mod_unlock()
153 static int gbm_mod_lock_ycbcr(gralloc_module_t const *mod, buffer_handle_t handle, in gbm_mod_lock_ycbcr() argument
[all …]
Dgralloc_gbm_priv.h35 int gralloc_gbm_handle_register(buffer_handle_t handle, struct gbm_device *gbm);
36 int gralloc_gbm_handle_unregister(buffer_handle_t handle);
40 void gbm_free(buffer_handle_t handle);
42 struct gbm_bo *gralloc_gbm_bo_from_handle(buffer_handle_t handle);
44 int gralloc_gbm_get_gem_handle(buffer_handle_t handle);
46 int gralloc_gbm_bo_lock(buffer_handle_t handle, int usage, int x, int y, int w, int h, void **addr);
47 int gralloc_gbm_bo_unlock(buffer_handle_t handle);
48 int gralloc_gbm_bo_lock_ycbcr(buffer_handle_t handle, int usage,
/device/generic/goldfish-opengl/system/gralloc/
Dgralloc_30.cpp190 int lock(cb_handle_t& handle, in lock() argument
194 if (!handle.bufferSize) { RETURN_ERROR_CODE(-EINVAL); } in lock()
195 char* const bufferBits = static_cast<char*>(handle.getBufferPtr()); in lock()
198 if (handle.hostHandle) { in lock()
199 const int res = lock_impl(handle, in lock()
210 int unlock(cb_handle_t& handle) { in unlock() argument
211 if (!handle.bufferSize) { RETURN_ERROR_CODE(-EINVAL); } in unlock()
213 char* const bufferBits = static_cast<char*>(handle.getBufferPtr()); in unlock()
216 if (handle.hostHandle) { in unlock()
217 unlock_impl(handle, bufferBits); in unlock()
[all …]
/device/google/cuttlefish/guest/hals/gralloc/legacy/
Dmapper.cpp43 buffer_handle_t handle) { in gralloc_register_buffer() argument
44 if (private_handle_t::validate(handle) < 0) { in gralloc_register_buffer()
48 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
57 buffer_handle_t handle) { in gralloc_unregister_buffer() argument
58 if (private_handle_t::validate(handle) < 0) { in gralloc_unregister_buffer()
61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
66 gralloc_module_t const* /*module*/, buffer_handle_t handle, int /*usage*/, in gralloc_lock() argument
69 if (private_handle_t::validate(handle) < 0) { in gralloc_lock()
75 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock()
90 gralloc_module_t const* /*module*/, buffer_handle_t handle) { in gralloc_unlock() argument
[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_private_interface.h47 …int32_t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_INT_FMT)(gralloc1_device_t *device, buffer_handle_t handle,
49 …_t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_FD)(gralloc1_device_t *device, buffer_handle_t handle, int *fd);
50 …t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_INTERNAL_DIMS)(gralloc1_device_t *device, buffer_handle_t handle,
52 … int32_t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_OFFSET)(gralloc1_device_t *device, buffer_handle_t handle,
54 …32_t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_BYTESTRIDE)(gralloc1_device_t *device, buffer_handle_t handle,
56 …int32_t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_YUVINFO)(gralloc1_device_t *device, buffer_handle_t handle,
58 …*GRALLOC1_PFN_PRIVATE_GET_BUFF_SIZE)(gralloc1_device_t *device, buffer_handle_t handle, int *size);
59 …RALLOC1_PFN_PRIVATE_GET_BUFF_FLAGS)(gralloc1_device_t *device, buffer_handle_t handle, int *flags);
60 …_t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_MIN_PAGESIZE)(gralloc1_device_t *device, buffer_handle_t handle,
62 …LLOC1_PFN_PRIVATE_GET_ATTR_PARAM)(gralloc1_device_t *device, buffer_handle_t handle, buf_attr attr,
[all …]
Dmali_gralloc_reference.cpp37 int mali_gralloc_reference_retain(mali_gralloc_module const *module, buffer_handle_t handle) in mali_gralloc_reference_retain() argument
41 if (private_handle_t::validate(handle) < 0) in mali_gralloc_reference_retain()
43 AERR("Registering/Retaining invalid buffer %p, returning error", handle); in mali_gralloc_reference_retain()
47 private_handle_t *hnd = (private_handle_t *)handle; in mali_gralloc_reference_retain()
81 int mali_gralloc_reference_release(mali_gralloc_module const *module, buffer_handle_t handle, bool … in mali_gralloc_reference_release() argument
85 if (private_handle_t::validate(handle) < 0) in mali_gralloc_reference_release()
87 AERR("unregistering/releasing invalid buffer %p, returning error", handle); in mali_gralloc_reference_release()
91 private_handle_t *hnd = (private_handle_t *)handle; in mali_gralloc_reference_release()
96 AERR("Buffer %p should have already been released", handle); in mali_gralloc_reference_release()
116 mali_gralloc_buffer_free(handle); in mali_gralloc_reference_release()
[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_private_interface.h47 …int32_t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_INT_FMT)(gralloc1_device_t *device, buffer_handle_t handle,
49 …_t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_FD)(gralloc1_device_t *device, buffer_handle_t handle, int *fd);
50 …t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_INTERNAL_DIMS)(gralloc1_device_t *device, buffer_handle_t handle,
52 … int32_t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_OFFSET)(gralloc1_device_t *device, buffer_handle_t handle,
54 …32_t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_BYTESTRIDE)(gralloc1_device_t *device, buffer_handle_t handle,
56 …int32_t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_YUVINFO)(gralloc1_device_t *device, buffer_handle_t handle,
58 …*GRALLOC1_PFN_PRIVATE_GET_BUFF_SIZE)(gralloc1_device_t *device, buffer_handle_t handle, int *size);
59 …RALLOC1_PFN_PRIVATE_GET_BUFF_FLAGS)(gralloc1_device_t *device, buffer_handle_t handle, int *flags);
60 …_t (*GRALLOC1_PFN_PRIVATE_GET_BUFF_MIN_PAGESIZE)(gralloc1_device_t *device, buffer_handle_t handle,
62 …LLOC1_PFN_PRIVATE_GET_ATTR_PARAM)(gralloc1_device_t *device, buffer_handle_t handle, buf_attr attr,
[all …]
Dmali_gralloc_reference.cpp37 int mali_gralloc_reference_retain(mali_gralloc_module const *module, buffer_handle_t handle) in mali_gralloc_reference_retain() argument
41 if (private_handle_t::validate(handle) < 0) in mali_gralloc_reference_retain()
43 AERR("Registering/Retaining invalid buffer %p, returning error", handle); in mali_gralloc_reference_retain()
47 private_handle_t *hnd = (private_handle_t *)handle; in mali_gralloc_reference_retain()
81 int mali_gralloc_reference_release(mali_gralloc_module const *module, buffer_handle_t handle, bool … in mali_gralloc_reference_release() argument
85 if (private_handle_t::validate(handle) < 0) in mali_gralloc_reference_release()
87 AERR("unregistering/releasing invalid buffer %p, returning error", handle); in mali_gralloc_reference_release()
91 private_handle_t *hnd = (private_handle_t *)handle; in mali_gralloc_reference_release()
96 AERR("Buffer %p should have already been released", handle); in mali_gralloc_reference_release()
116 mali_gralloc_buffer_free(handle); in mali_gralloc_reference_release()
[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/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 …]
/device/linaro/poplar/wifi/wifi_hal/
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 …]
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 …]
/device/linaro/hikey/hifi/xaf/host-apf/proxy/
Dxf-proxy.c78 static inline int xf_proxy_cmd(xf_proxy_t *proxy, xf_handle_t *handle, xf_user_msg_t *m)
83 msg.id = __XF_MSG_ID(__XF_AP_CLIENT(proxy->core, handle->client), m->id);
96 static inline u32 xf_client_alloc(xf_proxy_t *proxy, xf_handle_t *handle) in xf_client_alloc() argument
106 handle->client = client, proxy->cmap[client].handle = handle; in xf_client_alloc()
113 static inline void xf_client_free(xf_proxy_t *proxy, xf_handle_t *handle) in xf_client_free() argument
115 u32 client = handle->client; in xf_client_free()
134 return proxy->cmap[client].handle; in xf_client_lookup()
138 static inline int xf_client_register(xf_proxy_t *proxy, xf_handle_t *handle, xf_id_t id, u32 core) in xf_client_register() argument
140 void *b = xf_handle_aux(handle); in xf_client_register()
150 strncpy(b, id, xf_buffer_length(handle->aux)); in xf_client_register()
[all …]
/device/linaro/hikey/hifi/xaf/host-apf/include/
Dxf-proxy.h159 xf_handle_t *handle; member
264 static inline u32 xf_handle_id(xf_handle_t *handle) in xf_handle_id() argument
266 return handle->id; in xf_handle_id()
270 static inline void * xf_handle_aux(xf_handle_t *handle) in xf_handle_aux() argument
272 return xf_buffer_data(handle->aux); in xf_handle_aux()
276 static inline void xf_lock(xf_handle_t *handle) in xf_lock() argument
278 __xf_lock(&handle->lock); in xf_lock()
282 static inline void xf_unlock(xf_handle_t *handle) in xf_unlock() argument
284 __xf_unlock(&handle->lock); in xf_unlock()
288 static inline int xf_response_put(xf_handle_t *handle, xf_user_msg_t *msg) in xf_response_put() argument
[all …]

123456789