Home
last modified time | relevance | path

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

12345678910>>...17

/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/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dns_parse.c123 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { in ns_initparse() argument
127 memset(handle, 0x5e, sizeof *handle); in ns_initparse()
128 handle->_msg = msg; in ns_initparse()
129 handle->_eom = eom; in ns_initparse()
132 NS_GET16(handle->_id, msg); in ns_initparse()
135 NS_GET16(handle->_flags, msg); in ns_initparse()
139 NS_GET16(handle->_counts[i], msg); in ns_initparse()
142 if (handle->_counts[i] == 0) in ns_initparse()
143 handle->_sections[i] = NULL; in ns_initparse()
146 handle->_counts[i]); in ns_initparse()
[all …]
/device/generic/goldfish/wifi/wifi_hal/
Dwifi_hal.cpp55 wifi_error wifi_initialize(wifi_handle* handle) { in wifi_initialize() argument
56 if (handle == nullptr) { in wifi_initialize()
75 *handle = reinterpret_cast<wifi_handle>(sHalState); in wifi_initialize()
80 void wifi_cleanup(wifi_handle handle, wifi_cleaned_up_handler handler) { in wifi_cleanup() argument
81 if (handle == nullptr) { in wifi_cleanup()
99 if (asHalState(handle)->stop(callback)) { in wifi_cleanup()
110 handler(handle); in wifi_cleanup()
113 void wifi_event_loop(wifi_handle handle) { in wifi_event_loop() argument
114 if (handle == nullptr) { in wifi_event_loop()
118 asHalState(handle)->eventLoop(); in wifi_event_loop()
[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 …]
/device/linaro/bootloader/arm-trusted-firmware/plat/xilinx/zynqmp/pm_service/
Dpm_svc_main.c87 uint64_t x4, void *cookie, void *handle, uint64_t flags) in pm_smc_handler() argument
95 SMC_RET1(handle, SMC_UNK); in pm_smc_handler()
107 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
112 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
117 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
121 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
125 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
129 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
133 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
137 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
[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/generic/goldfish/gralloc/
Dmapper.cpp38 buffer_handle_t handle, in gralloc_map() argument
41 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
59 buffer_handle_t handle) in gralloc_unmap() argument
61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
77 buffer_handle_t handle) in gralloc_register_buffer() argument
79 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
117 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
123 return gralloc_map(module, handle, &vaddr); in gralloc_register_buffer()
127 buffer_handle_t handle) in gralloc_unregister_buffer() argument
129 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
[all …]
/device/google/cuttlefish_common/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/bootloader/arm-trusted-firmware/plat/nvidia/tegra/common/
Dtegra_sip_calls.c43 void *handle, in plat_sip_handler() argument
58 void *handle, in tegra_sip_handler() argument
65 err = plat_sip_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags); in tegra_sip_handler()
67 SMC_RET1(handle, (uint64_t)err); in tegra_sip_handler()
82 SMC_RET1(handle, err); in tegra_sip_handler()
89 SMC_RET1(handle, -ENOTSUP); in tegra_sip_handler()
101 SMC_RET1(handle, -ENOTSUP); in tegra_sip_handler()
107 SMC_RET1(handle, 0); in tegra_sip_handler()
119 SMC_RET1(handle, SMC_UNK); in tegra_sip_handler()
128 SMC_RET1(handle, 0); in tegra_sip_handler()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/services/spd/tlkd/
Dtlkd_main.c142 void *handle, in tlkd_smc_handler() argument
151 assert(handle); in tlkd_smc_handler()
155 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler()
169 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler()
171 assert(handle == cm_get_context(SECURE)); in tlkd_smc_handler()
209 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler()
217 assert(handle == cm_get_context(NON_SECURE)); in tlkd_smc_handler()
226 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler()
229 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler()
279 SMC_RET1(handle, SMC_UNK); in tlkd_smc_handler()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/io/
Dio_storage.c53 static int is_valid_entity(const uintptr_t handle) in is_valid_entity() argument
55 const io_entity_t *entity = (io_entity_t *)handle; in is_valid_entity()
86 static void set_handle(uintptr_t *handle, io_entity_t *entity) in set_handle() argument
88 assert(handle != NULL); in set_handle()
89 *handle = (uintptr_t)entity; in set_handle()
163 uintptr_t *handle) in io_dev_open() argument
166 assert(handle != NULL); in io_dev_open()
168 result = dev_open(dev_con, dev_spec, (io_dev_info_t **)handle); in io_dev_open()
216 int io_open(uintptr_t dev_handle, const uintptr_t spec, uintptr_t *handle) in io_open() argument
219 assert((spec != (uintptr_t)NULL) && (handle != NULL)); in io_open()
[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 …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Include/
DEfiPerf.h142 #define PERF_ENABLE(handle, table, ticker) InitializePerformanceInfrastructure (handle, table,… argument
143 #define PERF_START(handle, token, host, ticker) StartMeasure (handle, token, host, ticker) argument
144 #define PERF_END(handle, token, host, ticker) EndMeasure (handle, token, host, ticker) argument
145 #define PERF_UPDATE(handle, token, host, handlenew, tokennew, hostnew) \ argument
146 UpdateMeasure (handle, \
155 #define PERF_ENABLE(handle, table, ticker) argument
156 #define PERF_START(handle, token, host, ticker) argument
157 #define PERF_END(handle, token, host, ticker) argument
158 #define PERF_UPDATE(handle, token, host, handlenew, tokennew, hostnew) argument
/device/linaro/bootloader/arm-trusted-firmware/services/spd/trusty/
Dtrusty.c132 void *handle, in trusty_fiq_handler() argument
142 SMC_RET0(handle); in trusty_fiq_handler()
147 SMC_RET0(handle); in trusty_fiq_handler()
151 memcpy(&ctx->fiq_gpregs, get_gpregs_ctx(handle), sizeof(ctx->fiq_gpregs)); in trusty_fiq_handler()
152 ctx->fiq_pc = SMC_GET_EL3(handle, CTX_ELR_EL3); in trusty_fiq_handler()
153 ctx->fiq_cpsr = SMC_GET_EL3(handle, CTX_SPSR_EL3); in trusty_fiq_handler()
154 ctx->fiq_sp_el1 = read_ctx_reg(get_sysregs_ctx(handle), CTX_SP_EL1); in trusty_fiq_handler()
156 write_ctx_reg(get_sysregs_ctx(handle), CTX_SP_EL1, ctx->fiq_handler_sp); in trusty_fiq_handler()
159 SMC_RET0(handle); in trusty_fiq_handler()
162 static uint64_t trusty_set_fiq_handler(void *handle, uint64_t cpu, in trusty_set_fiq_handler() argument
[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/bootloader/arm-trusted-firmware/plat/mediatek/common/
Dmtk_sip_svc.c28 void *handle, in mediatek_plat_sip_handler() argument
32 SMC_RET1(handle, SMC_UNK); in mediatek_plat_sip_handler()
43 void *handle, in mediatek_sip_handler() argument
66 SMC_RET1(handle, ret); in mediatek_sip_handler()
72 SMC_RET0(handle); in mediatek_sip_handler()
78 cookie, handle, flags); in mediatek_sip_handler()
91 void *handle, in sip_smc_handler() argument
97 SMC_RET1(handle, in sip_smc_handler()
102 SMC_UUID_RET(handle, mtk_sip_svc_uid); in sip_smc_handler()
106 SMC_RET2(handle, MTK_SIP_SVC_VERSION_MAJOR, in sip_smc_handler()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/services/spd/tspd/
Dtspd_main.c57 uint64_t tspd_handle_sp_preemption(void *handle) in tspd_handle_sp_preemption() argument
61 assert(handle == cm_get_context(SECURE)); in tspd_handle_sp_preemption()
95 void *handle, in tspd_sel1_interrupt_handler() argument
105 assert(handle == cm_get_context(NON_SECURE)); in tspd_sel1_interrupt_handler()
160 void *handle, in tspd_ns_interrupt_handler() argument
172 return tspd_handle_sp_preemption(handle); in tspd_ns_interrupt_handler()
281 void *handle, in tspd_smc_handler() argument
304 SMC_RET1(handle, SMC_UNK); in tspd_smc_handler()
306 return tspd_handle_sp_preemption(handle); in tspd_smc_handler()
316 SMC_RET1(handle, SMC_UNK); in tspd_smc_handler()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/common/
Darm_sip_svc.c37 void *handle, in arm_sip_handler() argument
48 handle, flags); in arm_sip_handler()
57 SMC_RET1(handle, STATE_SW_E_DENIED); in arm_sip_handler()
62 SMC_RET1(handle, STATE_SW_E_PARAM); in arm_sip_handler()
69 handle); in arm_sip_handler()
79 SMC_RET1(handle, call_count); in arm_sip_handler()
83 SMC_UUID_RET(handle, arm_sip_svc_uid); in arm_sip_handler()
87 SMC_RET2(handle, ARM_SIP_SVC_VERSION_MAJOR, ARM_SIP_SVC_VERSION_MINOR); in arm_sip_handler()
91 SMC_RET1(handle, SMC_UNK); in arm_sip_handler()

12345678910>>...17