Home
last modified time | relevance | path

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

12345678910>>...28

/hardware/qcom/audio/legacy/alsa_sound/
Dalsa_default.cpp197 static void switchDevice(alsa_handle_t *handle, uint32_t devices, uint32_t mode);
199 static void disableDevice(alsa_handle_t *handle);
216 int deviceName(alsa_handle_t *handle, unsigned flags, char **value) in deviceName() argument
226 strlcat(ident, handle->useCase, sizeof(ident)); in deviceName()
227 ret = snd_use_case_get(handle->ucMgr, ident, (const char **)value); in deviceName()
262 status_t setHardwareParams(alsa_handle_t *handle) in setHardwareParams() argument
267 unsigned int requestedRate = handle->sampleRate; in setHardwareParams()
269 int channels = handle->channels; in setHardwareParams()
278 reqBuffSize = handle->bufferSize; in setHardwareParams()
280 (int) reqBuffSize, handle->channels, handle->sampleRate); in setHardwareParams()
[all …]
/hardware/qcom/audio/hal/audio_extn/
Dspkr_protection.c106 void (*thermal_client_unregister_callback)(int handle);
124 static struct speaker_prot_session handle; variable
131 handle.spkr_in_use = true; in spkr_prot_set_spkrstatus()
133 handle.spkr_in_use = false; in spkr_prot_set_spkrstatus()
134 clock_gettime(CLOCK_BOOTTIME, &handle.spkr_last_time_used); in spkr_prot_set_spkrstatus()
145 if (pthread_equal(handle.speaker_prot_threadid, threadid) || !adev) { in audio_extn_spkr_prot_calib_cancel()
151 pthread_mutex_lock(&handle.mutex_spkr_prot); in audio_extn_spkr_prot_calib_cancel()
152 pthread_mutex_lock(&handle.spkr_calib_cancelack_mutex); in audio_extn_spkr_prot_calib_cancel()
153 handle.cancel_spkr_calib = 1; in audio_extn_spkr_prot_calib_cancel()
154 pthread_cond_signal(&handle.spkr_calib_cancel); in audio_extn_spkr_prot_calib_cancel()
[all …]
/hardware/qcom/audio/msm8909/hal/audio_extn/
Dspkr_protection.c116 void (*thermal_client_unregister_callback)(int handle);
134 static struct speaker_prot_session handle; variable
141 handle.spkr_in_use = true; in spkr_prot_set_spkrstatus()
143 handle.spkr_in_use = false; in spkr_prot_set_spkrstatus()
144 clock_gettime(CLOCK_MONOTONIC, &handle.spkr_last_time_used); in spkr_prot_set_spkrstatus()
155 if (pthread_equal(handle.speaker_prot_threadid, threadid) || !adev) { in audio_extn_spkr_prot_calib_cancel()
161 pthread_mutex_lock(&handle.mutex_spkr_prot); in audio_extn_spkr_prot_calib_cancel()
162 pthread_mutex_lock(&handle.spkr_calib_cancelack_mutex); in audio_extn_spkr_prot_calib_cancel()
163 handle.cancel_spkr_calib = 1; in audio_extn_spkr_prot_calib_cancel()
164 pthread_cond_signal(&handle.spkr_calib_cancel); in audio_extn_spkr_prot_calib_cancel()
[all …]
/hardware/bsp/intel/peripheral/sensors/mraa/
DSensorsHAL.cpp81 sensorDesc->handle = sensorsNum; in addSensorModule()
118 int SensorContext::activate(int handle, int enabled) { in activate() argument
126 if (handle < 0 || handle >= sensorsNum) { in activate()
132 if (sensors[handle] == nullptr) { in activate()
133 sensors[handle] = sensorFactoryFuncs[handle](pollFd); in activate()
134 if (sensors[handle] == nullptr) { in activate()
137 rc = sensors[handle]->activate(handle, enabled); in activate()
145 if (sensors[handle] != nullptr) { in activate()
146 rc = sensors[handle]->activate(handle, enabled); in activate()
147 delete sensors[handle]; in activate()
[all …]
DSensor.cpp27 Sensor::Sensor() : acquisitionThread(nullptr), handle(-1), type(-1), delay(kMaxDelay) {} in Sensor()
36 int Sensor::activate(int handle, int enabled) { return 0; } in activate() argument
44 ALOGE("%s: sensor %d doesn't have an acquisition thread", __func__, handle); in readOneEvent()
66 int Sensor::activateAcquisitionThread(int pollFd, int handle, int enabled) { in activateAcquisitionThread() argument
73 __func__, handle); in activateAcquisitionThread()
79 ALOGE("%s: Sensor %d is already enabled", __func__, handle); in activateAcquisitionThread()
87 ALOGE("%s: Sensor %d is already disabled", __func__, handle); in activateAcquisitionThread()
93 int Sensor::setDelay(int handle, int64_t requestedDelay) { in setDelay() argument
111 int Sensor::batch(int handle, int flags, in batch() argument
114 return setDelay(handle, period_ns); in batch()
[all …]
DSensor.hpp56 virtual int activate(int handle, int enabled);
64 virtual int setDelay(int handle, int64_t ns);
83 virtual int batch(int handle, int flags, int64_t period_ns, int64_t timeout);
90 virtual int flush(int handle);
103 int getHandle() { return handle; } in getHandle()
130 virtual int activateAcquisitionThread(int pollFd, int handle, int enabled);
133 int handle, type; member in Sensor
/hardware/ti/omap4-aah/ion/
Dion.c58 unsigned int flags, struct ion_handle **handle) in ion_alloc() argument
70 *handle = data.handle; in ion_alloc()
75 struct ion_handle **handle, size_t *stride) in ion_alloc_tiler() argument
96 *handle = alloc_data.handle; in ion_alloc_tiler()
100 int ion_free(int fd, struct ion_handle *handle) in ion_free() argument
103 .handle = handle, in ion_free()
108 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot, in ion_map() argument
112 .handle = handle, in ion_map()
130 int ion_share(int fd, struct ion_handle *handle, int *share_fd) in ion_share() argument
134 .handle = handle, in ion_share()
[all …]
Dion_test_2.c48 int _ion_alloc_test(int fd, struct ion_handle **handle) in _ion_alloc_test() argument
54 handle, &stride); in _ion_alloc_test()
56 ret = ion_alloc(fd, len, align, alloc_flags, handle); in _ion_alloc_test()
66 struct ion_handle **handle; in ion_alloc_test() local
74 handle = (struct ion_handle **)malloc(count * sizeof(struct ion_handle *)); in ion_alloc_test()
75 if(handle == NULL) { in ion_alloc_test()
83 ret = _ion_alloc_test(fd, &(handle[i])); in ion_alloc_test()
84 printf("%s(): Alloc handle[%d]=%p\n", __func__, i, handle[i]); in ion_alloc_test()
85 if(ret || ((int)handle[i] == -ENOMEM)) { in ion_alloc_test()
87 __func__, i, handle[i], strerror(ret)); in ion_alloc_test()
[all …]
/hardware/libhardware/modules/gralloc/
Dmapper.cpp39 buffer_handle_t handle, in gralloc_map() argument
42 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
60 buffer_handle_t handle) in gralloc_unmap() argument
62 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
78 buffer_handle_t handle) in gralloc_register_buffer() argument
80 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
118 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
124 return gralloc_map(module, handle, &vaddr); in gralloc_register_buffer()
128 buffer_handle_t handle) in gralloc_unregister_buffer() argument
130 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
[all …]
/hardware/ti/omap4xxx/ion/
Dion.c59 struct ion_handle **handle) in ion_alloc() argument
71 *handle = data.handle; in ion_alloc()
76 struct ion_handle **handle, size_t *stride) in ion_alloc_tiler() argument
95 *handle = alloc_data.handle; in ion_alloc_tiler()
99 int ion_free(int fd, struct ion_handle *handle) in ion_free() argument
102 .handle = handle, in ion_free()
107 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot, in ion_map() argument
111 .handle = handle, in ion_map()
129 int ion_share(int fd, struct ion_handle *handle, int *share_fd) in ion_share() argument
133 .handle = handle, in ion_share()
[all …]
/hardware/ti/omap3/omx/system/src/openmax_il/omx_core/inc/
DOMX_Debug.h60 #define OMX_DENTER(handle) OMX_TPRINT((handle), "+++ENTERING") argument
61 #define OMX_DEXIT(handle,retVal) OMX_TPRINT((handle), "---EXITING(0x%x)", (retVal)) argument
63 #define OMX_DBG_INT(handle, intVar) OMX_DPRINT(OMX_MASK_DEBUG | (handle), #intVar ": %d", (intVar)) argument
64 #define OMX_DBG_PTR(handle, ptrVar) OMX_DPRINT(OMX_MASK_DEBUG | (handle), #ptrVar ": 0x%08x", (ptrV… argument
65 #define OMX_DBG_STR(handle, strVar) OMX_DPRINT(OMX_MASK_DEBUG | (handle), #strVar ": %s", (strVar)) argument
69 #define OMX_INFOPRINT(handle, str,arg...) (OMX_LOG_PRINT(OMX_MASK_INFO | (handle), "(INFO) "str, #… argument
70 #define OMX_WARNPRINT(handle, str,arg...) (OMX_LOG_PRINT(OMX_MASK_WARN | (handle), "(WARN) "str, #… argument
71 #define OMX_ERRPRINT(handle, str,arg...) (OMX_LOG_PRINT(OMX_MASK_ERROR | (handle), "(ERROR) "str,… argument
72 #define OMX_FATALPRINT(handle, str,arg...) (OMX_LOG_PRINT(OMX_MASK_FATAL | (handle), "(FATAL) "st… argument
/hardware/ti/omap4-aah/domx/omx_core/inc/
DOMX_Debug.h85 #define OMX_DENTER(handle) OMX_TPRINT((handle), "+++ENTERING") argument
86 #define OMX_DEXIT(handle,retVal) OMX_TPRINT((handle), "---EXITING(0x%x)", (retVal)) argument
88 #define OMX_DBG_INT(handle, intVar) OMX_DPRINT(OMX_MASK_DEBUG | (handle), #intVar ": %d", (intVar)) argument
89 #define OMX_DBG_PTR(handle, ptrVar) OMX_DPRINT(OMX_MASK_DEBUG | (handle), #ptrVar ": 0x%08x", (ptrV… argument
90 #define OMX_DBG_STR(handle, strVar) OMX_DPRINT(OMX_MASK_DEBUG | (handle), #strVar ": %s", (strVar)) argument
94 #define OMX_INFOPRINT(handle, str,arg...) (OMX_LOG_PRINT(OMX_MASK_INFO | (handle), "(INFO) "str, #… argument
95 #define OMX_WARNPRINT(handle, str,arg...) (OMX_LOG_PRINT(OMX_MASK_WARN | (handle), "(WARN) "str, #… argument
96 #define OMX_ERRPRINT(handle, str,arg...) (OMX_LOG_PRINT(OMX_MASK_ERROR | (handle), "(ERROR) "str,… argument
97 #define OMX_FATALPRINT(handle, str,arg...) (OMX_LOG_PRINT(OMX_MASK_FATAL | (handle), "(FATAL) "st… argument
/hardware/ti/omap4xxx/domx/omx_core/inc/
DOMX_Debug.h85 #define OMX_DENTER(handle) OMX_TPRINT((handle), "+++ENTERING") argument
86 #define OMX_DEXIT(handle,retVal) OMX_TPRINT((handle), "---EXITING(0x%x)", (retVal)) argument
88 #define OMX_DBG_INT(handle, intVar) OMX_DPRINT(OMX_MASK_DEBUG | (handle), #intVar ": %d", (intVar)) argument
89 #define OMX_DBG_PTR(handle, ptrVar) OMX_DPRINT(OMX_MASK_DEBUG | (handle), #ptrVar ": 0x%08x", (ptrV… argument
90 #define OMX_DBG_STR(handle, strVar) OMX_DPRINT(OMX_MASK_DEBUG | (handle), #strVar ": %s", (strVar)) argument
94 #define OMX_INFOPRINT(handle, str,arg...) (OMX_LOG_PRINT(OMX_MASK_INFO | (handle), "(INFO) "str, #… argument
95 #define OMX_WARNPRINT(handle, str,arg...) (OMX_LOG_PRINT(OMX_MASK_WARN | (handle), "(WARN) "str, #… argument
96 #define OMX_ERRPRINT(handle, str,arg...) (OMX_LOG_PRINT(OMX_MASK_ERROR | (handle), "(ERROR) "str,… argument
97 #define OMX_FATALPRINT(handle, str,arg...) (OMX_LOG_PRINT(OMX_MASK_FATAL | (handle), "(FATAL) "st… argument
/hardware/qcom/keymaster/
Dkeymaster_qcom.cpp66 int (*QSEECom_start_app)(struct QSEECom_handle ** handle, char* path,
68 int (*QSEECom_shutdown_app)(struct QSEECom_handle **handle);
69 int (*QSEECom_send_cmd)(struct QSEECom_handle* handle, void *cbuf,
71 int (*QSEECom_send_modified_cmd)(struct QSEECom_handle* handle, void *cbuf,
74 int (*QSEECom_set_bandwidth)(struct QSEECom_handle* handle, bool high);
192 static int32_t qcom_km_ION_memalloc(struct qcom_km_ion_info_t *handle, in qcom_km_ION_memalloc() argument
208 if(handle == NULL){ in qcom_km_ION_memalloc()
217 handle->ion_sbuffer = NULL; in qcom_km_ION_memalloc()
218 handle->ifd_data_fd = 0; in qcom_km_ION_memalloc()
239 if (ion_alloc_data.handle != NULL) { in qcom_km_ION_memalloc()
[all …]
DQSEEComAPI.h110 int QSEECom_shutdown_app(struct QSEECom_handle **handle);
139 int QSEECom_unload_external_elf(struct QSEECom_handle **handle);
155 int QSEECom_register_listener(struct QSEECom_handle **handle,
166 int QSEECom_unregister_listener(struct QSEECom_handle *handle);
193 int QSEECom_send_cmd(struct QSEECom_handle *handle, void *send_buf,
228 int QSEECom_send_modified_cmd(struct QSEECom_handle *handle, void *send_buf,
242 int QSEECom_receive_req(struct QSEECom_handle *handle,
261 int QSEECom_send_resp(struct QSEECom_handle *handle,
282 int QSEECom_set_bandwidth(struct QSEECom_handle *handle, bool high);
293 int QSEECom_app_load_query(struct QSEECom_handle *handle, char *app_name);
/hardware/qcom/msm8960/original-kernel-headers/linux/
Dion.h197 void ion_free(struct ion_client *client, struct ion_handle *handle);
215 int ion_phys(struct ion_client *client, struct ion_handle *handle,
227 struct ion_handle *handle);
239 void *ion_map_kernel(struct ion_client *client, struct ion_handle *handle);
246 void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle);
253 int ion_share_dma_buf(struct ion_client *client, struct ion_handle *handle);
276 int ion_handle_get_flags(struct ion_client *client, struct ion_handle *handle,
300 int ion_map_iommu(struct ion_client *client, struct ion_handle *handle,
321 int ion_handle_get_size(struct ion_client *client, struct ion_handle *handle,
335 void ion_unmap_iommu(struct ion_client *client, struct ion_handle *handle,
[all …]
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dcommon.cpp22 interface_info *getIfaceInfo(wifi_interface_handle handle) in getIfaceInfo() argument
24 return (interface_info *)handle; in getIfaceInfo()
27 wifi_handle getWifiHandle(wifi_interface_handle handle) in getWifiHandle() argument
29 return getIfaceInfo(handle)->handle; in getWifiHandle()
32 hal_info *getHalInfo(wifi_handle handle) in getHalInfo() argument
34 return (hal_info *)handle; in getHalInfo()
37 hal_info *getHalInfo(wifi_interface_handle handle) in getHalInfo() argument
39 return getHalInfo(getWifiHandle(handle)); in getHalInfo()
52 wifi_error wifi_register_handler(wifi_handle handle, int cmd, nl_recvmsg_msg_cb_t func, void *arg) in wifi_register_handler() argument
54 hal_info *info = (hal_info *)handle; in wifi_register_handler()
[all …]
Dwifi_hal.cpp45 static void internal_event_handler(wifi_handle handle, int events);
48 static int wifi_get_multicast_id(wifi_handle handle, const char *name, const char *group);
49 static int wifi_add_membership(wifi_handle handle, const char *group);
50 static wifi_error wifi_init_interfaces(wifi_handle handle);
54 static wifi_error wifi_set_packet_filter(wifi_interface_handle handle,
56 static wifi_error wifi_get_packet_filter_capabilities(wifi_interface_handle handle,
188 wifi_error wifi_initialize(wifi_handle *handle) in wifi_initialize() argument
261 *handle = (wifi_handle) info; in wifi_initialize()
263 wifi_add_membership(*handle, "scan"); in wifi_initialize()
264 wifi_add_membership(*handle, "mlme"); in wifi_initialize()
[all …]
/hardware/intel/img/hwcomposer/merrifield/ips/tangier/
DTngGrallocBuffer.cpp22 TngGrallocBuffer::TngGrallocBuffer(buffer_handle_t handle) in TngGrallocBuffer() argument
23 :GrallocBufferBase(handle) in TngGrallocBuffer()
25 initBuffer(handle); in TngGrallocBuffer()
32 void TngGrallocBuffer::resetBuffer(buffer_handle_t handle) in resetBuffer() argument
34 GrallocBufferBase::resetBuffer(handle); in resetBuffer()
35 initBuffer(handle); in resetBuffer()
38 void TngGrallocBuffer::initBuffer(buffer_handle_t handle) in initBuffer() argument
40 TngIMGGrallocBuffer *grallocHandle = (TngIMGGrallocBuffer *)handle; in initBuffer()
/hardware/akm/AK8975_FS/libsensors/
Dsensors.cpp132 int activate(int handle, int enabled);
133 int setDelay(int handle, int64_t ns);
134 int setDelay_sub(int handle, int64_t ns);
154 int handleToDriver(int handle);
155 int proxy_enable(int handle, int enabled);
156 int proxy_setDelay(int handle, int64_t ns);
198 int sensors_poll_context_t::handleToDriver(int handle) { in handleToDriver() argument
199 switch (handle) { in handleToDriver()
209 int sensors_poll_context_t::activate(int handle, int enabled) { in activate() argument
210 int drv = handleToDriver(handle); in activate()
[all …]
/hardware/ti/omap4-aah/system-core-headers-ti/ion/
Dion.h32 struct ion_handle **handle);
34 struct ion_handle **handle, size_t *stride);
36 int ion_free(int fd, struct ion_handle *handle);
37 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot,
39 int ion_share(int fd, struct ion_handle *handle, int *share_fd);
40 int ion_import(int fd, int share_fd, struct ion_handle **handle);
41 int ion_map_cacheable(int fd, struct ion_handle *handle, size_t length,
43 int ion_flush_cached(int fd, struct ion_handle *handle, size_t length,
45 int ion_inval_cached(int fd, struct ion_handle *handle, size_t length,
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/tangier/
DTngGrallocBuffer.cpp23 TngGrallocBuffer::TngGrallocBuffer(uint32_t handle) in TngGrallocBuffer() argument
24 :GrallocBufferBase(handle) in TngGrallocBuffer()
26 initBuffer(handle); in TngGrallocBuffer()
33 void TngGrallocBuffer::resetBuffer(uint32_t handle) in resetBuffer() argument
35 GrallocBufferBase::resetBuffer(handle); in resetBuffer()
36 initBuffer(handle); in resetBuffer()
39 void TngGrallocBuffer::initBuffer(uint32_t handle) in initBuffer() argument
41 TngIMGGrallocBuffer *grallocHandle = (TngIMGGrallocBuffer *)handle; in initBuffer()
/hardware/qcom/display/msm8994/libgralloc/
Dmapper.cpp58 static int gralloc_map_metadata(buffer_handle_t handle) { in gralloc_map_metadata() argument
59 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_metadata()
80 buffer_handle_t handle) in gralloc_map() argument
86 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
101 handle, hnd->fd, strerror(errno)); in gralloc_map()
116 int metadata_err = gralloc_map_metadata(handle); in gralloc_map()
124 buffer_handle_t handle) in gralloc_unmap() argument
131 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
168 buffer_handle_t handle) in gralloc_register_buffer() argument
171 if (!module || private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
[all …]
/hardware/qcom/display/msm8084/libgralloc/
Dmapper.cpp56 buffer_handle_t handle) in gralloc_map() argument
61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
71 handle, hnd->fd, strerror(errno)); in gralloc_map()
83 handle, hnd->fd_metadata, strerror(errno)); in gralloc_map()
93 buffer_handle_t handle) in gralloc_unmap() argument
98 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
131 buffer_handle_t handle) in gralloc_register_buffer() argument
133 if (!module || private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
145 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
148 int err = gralloc_map(module, handle); in gralloc_register_buffer()
[all …]
/hardware/qcom/display/msm8960/libgralloc/
Dmapper.cpp58 buffer_handle_t handle) in gralloc_map() argument
60 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
70 handle, hnd->fd, strerror(errno)); in gralloc_map()
82 handle, hnd->fd_metadata, strerror(errno)); in gralloc_map()
92 buffer_handle_t handle) in gralloc_unmap() argument
94 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
127 buffer_handle_t handle) in gralloc_register_buffer() argument
129 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
141 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
144 int err = gralloc_map(module, handle); in gralloc_register_buffer()
[all …]

12345678910>>...28