Home
last modified time | relevance | path

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

12345678910>>...39

/hardware/interfaces/renderscript/1.0/default/
DDevice.cpp66 void* handle = nullptr; in loadHAL() local
73 handle = android_dlopen_ext(filename, RTLD_LAZY | RTLD_LOCAL, &dlextinfo); in loadHAL()
74 if (handle == nullptr) { in loadHAL()
79 if (handle == nullptr) { in loadHAL()
82 handle = dlopen(filename, RTLD_LAZY | RTLD_LOCAL); in loadHAL()
83 if (handle == nullptr) { in loadHAL()
92 (Allocation1DDataFnPtr)dlsym(handle, "rsAllocation1DData"), in loadHAL()
95 (Allocation1DReadFnPtr)dlsym(handle, "rsAllocation1DRead"), in loadHAL()
97 (Allocation2DDataFnPtr)dlsym(handle, "rsAllocation2DData"), in loadHAL()
99 (Allocation2DReadFnPtr)dlsym(handle, "rsAllocation2DRead"), in loadHAL()
[all …]
/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 …]
Dcirrus_playback.c156 static struct cirrus_playback_session handle; variable
171 memset(&handle, 0, sizeof(handle)); in audio_extn_spkr_prot_init()
177 handle.adev_handle = adev; in audio_extn_spkr_prot_init()
178 handle.state = INIT; in audio_extn_spkr_prot_init()
180 pthread_mutex_init(&handle.fb_prot_mutex, NULL); in audio_extn_spkr_prot_init()
183 (void)pthread_create(&handle.calibration_thread, in audio_extn_spkr_prot_init()
185 audio_extn_cirrus_calibration_thread, &handle); in audio_extn_spkr_prot_init()
187 (void)pthread_create(&handle.calibration_thread, in audio_extn_spkr_prot_init()
189 audio_extn_cirrus_config_thread, &handle); in audio_extn_spkr_prot_init()
197 pthread_join(handle.failure_detect_thread, NULL); in audio_extn_spkr_prot_deinit()
[all …]
/hardware/libhardware/modules/sensors/dynamic_sensor/
DDynamicSensorManager.cpp73 bool DynamicSensorManager::owns(int handle) const { in owns()
74 return handle >= mHandleRange.first && handle < mHandleRange.second; in owns()
77 int DynamicSensorManager::activate(int handle, bool enable) { in activate() argument
78 if (handle == mHandleRange.first) { in activate()
86 mPendingReport.erase(handle); in activate()
89 return operateSensor(handle, in activate()
95 int DynamicSensorManager::batch(int handle, nsecs_t sample_period, nsecs_t batch_period) { in batch() argument
96 if (handle == mHandleRange.first) { in batch()
100 return operateSensor(handle, in batch()
106 int DynamicSensorManager::setDelay(int handle, nsecs_t sample_period) { in setDelay() argument
[all …]
Dsensors.cpp56 int SensorContext::activate(int handle, int enabled) { in activate() argument
57 return mDynamicSensorManager->activate(handle, enabled); in activate()
60 int SensorContext::setDelay(int handle, int64_t delayNs) { in setDelay() argument
61 return mDynamicSensorManager->setDelay(handle, delayNs); in setDelay()
69 int handle, in batch() argument
72 return mDynamicSensorManager->batch(handle, sampling_period_ns, max_report_latency_ns); in batch()
75 int SensorContext::flush(int handle) { in flush() argument
76 return mDynamicSensorManager->flush(handle); in flush()
86 struct sensors_poll_device_t *dev, int handle, int enabled) { in ActivateWrapper() argument
87 return reinterpret_cast<SensorContext *>(dev)->activate(handle, enabled); in ActivateWrapper()
[all …]
/hardware/libhardware/modules/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 …]
/hardware/interfaces/dumpstate/1.0/vts/functional/
DVtsHalDumpstateV1_0TargetTest.cpp65 native_handle_t* handle = native_handle_create(0, 0); in TEST_F() local
66 ASSERT_NE(handle, nullptr) << "Could not create native_handle"; in TEST_F()
68 Return<void> status = dumpstate->dumpstateBoard(handle); in TEST_F()
72 native_handle_close(handle); in TEST_F()
73 native_handle_delete(handle); in TEST_F()
82 native_handle_t* handle = native_handle_create(1, 0); in TEST_F() local
83 ASSERT_NE(handle, nullptr) << "Could not create native_handle"; in TEST_F()
84 handle->data[0] = fds[1]; in TEST_F()
86 Return<void> status = dumpstate->dumpstateBoard(handle); in TEST_F()
93 native_handle_close(handle); in TEST_F()
[all …]
/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/qcom/display/msm8996/libqdutils/
DqdMetaData.cpp38 static int validateAndMap(private_handle_t* handle) { in validateAndMap() argument
39 if (private_handle_t::validate(handle)) { in validateAndMap()
41 __func__, handle, handle->id); in validateAndMap()
44 if (handle->fd_metadata == -1) { in validateAndMap()
46 __func__, handle, handle->id, handle->fd_metadata); in validateAndMap()
50 if (!handle->base_metadata) { in validateAndMap()
53 handle->fd_metadata, 0); in validateAndMap()
56 __func__, handle, handle->id, handle->fd_metadata, strerror(errno)); in validateAndMap()
60 handle->base_metadata = (uintptr_t) base; in validateAndMap()
65 int setMetaData(private_handle_t *handle, DispParamType paramType, in setMetaData() argument
[all …]
/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/display/msm8998/libqdutils/
DqdMetaData.cpp38 static int validateAndMap(private_handle_t* handle) { in validateAndMap() argument
39 if (private_handle_t::validate(handle)) { in validateAndMap()
41 __func__, handle); in validateAndMap()
44 if (handle->fd_metadata == -1) { in validateAndMap()
46 __func__, handle, handle->id, handle->fd_metadata); in validateAndMap()
50 if (!handle->base_metadata) { in validateAndMap()
53 handle->fd_metadata, 0); in validateAndMap()
56 __func__, handle, handle->id, handle->fd_metadata, strerror(errno)); in validateAndMap()
60 handle->base_metadata = (uintptr_t) base; in validateAndMap()
65 int setMetaData(private_handle_t *handle, DispParamType paramType, in setMetaData() argument
[all …]
/hardware/qcom/sdm845/display/libqdutils/
DqdMetaData.cpp42 static int validateAndMap(private_handle_t* handle) { in validateAndMap() argument
43 if (private_handle_t::validate(handle)) { in validateAndMap()
44 ALOGE("%s: Private handle is invalid - handle:%p", __func__, handle); in validateAndMap()
47 if (handle->fd_metadata < 0) { in validateAndMap()
52 if (!handle->base_metadata) { in validateAndMap()
55 handle->fd_metadata, 0); in validateAndMap()
58 __func__, handle, handle->fd_metadata, strerror(errno)); in validateAndMap()
62 handle->base_metadata = (uintptr_t) base; in validateAndMap()
67 static void unmapAndReset(private_handle_t *handle) { in unmapAndReset() argument
68 if (private_handle_t::validate(handle) == 0 && handle->base_metadata) { in unmapAndReset()
[all …]
/hardware/interfaces/audio/effect/all-versions/default/
DEffectsFactory.cpp60 effect_handle_t handle) { in dispatchEffectInstanceCreation() argument
63 return new AcousticEchoCancelerEffect(handle); in dispatchEffectInstanceCreation()
65 return new AutomaticGainControlEffect(handle); in dispatchEffectInstanceCreation()
67 return new BassBoostEffect(handle); in dispatchEffectInstanceCreation()
69 return new DownmixEffect(handle); in dispatchEffectInstanceCreation()
71 return new EnvironmentalReverbEffect(handle); in dispatchEffectInstanceCreation()
73 return new EqualizerEffect(handle); in dispatchEffectInstanceCreation()
75 return new LoudnessEnhancerEffect(handle); in dispatchEffectInstanceCreation()
77 return new NoiseSuppressionEffect(handle); in dispatchEffectInstanceCreation()
79 return new PresetReverbEffect(handle); in dispatchEffectInstanceCreation()
[all …]
/hardware/broadcom/wlan/bcmdhd/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 …]
/hardware/google/av/codec2/vndk/
DC2AllocatorGralloc.cpp95 bool native_handle_is_invalid(const native_handle_t *const handle) { in native_handle_is_invalid() argument
97 if (handle == nullptr) { in native_handle_is_invalid()
101 return ((size_t)handle->version != sizeof(native_handle_t) || in native_handle_is_invalid()
102 handle->numFds < 0 || in native_handle_is_invalid()
103 handle->numInts < 0 || in native_handle_is_invalid()
105 handle->numFds > int((INT_MAX - handle->version) / sizeof(int)) - handle->numInts); in native_handle_is_invalid()
130 const ExtraData* getExtraData(const C2Handle *const handle) { in getExtraData() argument
131 if (handle == nullptr in getExtraData()
132 || native_handle_is_invalid(handle) in getExtraData()
133 || handle->numInts < NUM_INTS) { in getExtraData()
[all …]
/hardware/qcom/display/msm8909w_3100/libqdutils/
DqdMetaData.cpp42 static int validateAndMap(private_handle_t* handle) { in validateAndMap() argument
43 if (private_handle_t::validate(handle)) { in validateAndMap()
44 ALOGE("%s: Private handle is invalid - handle:%p", __func__, handle); in validateAndMap()
47 if (handle->fd_metadata == -1) { in validateAndMap()
49 __func__, handle, handle->fd_metadata); in validateAndMap()
53 if (!handle->base_metadata) { in validateAndMap()
56 handle->fd_metadata, 0); in validateAndMap()
59 __func__, handle, handle->fd_metadata, strerror(errno)); in validateAndMap()
63 handle->base_metadata = (uintptr_t) base; in validateAndMap()
68 int setMetaData(private_handle_t *handle, DispParamType paramType, in setMetaData() argument
[all …]
/hardware/qcom/display/msm8909/libqdutils/
DqdMetaData.cpp42 static int validateAndMap(private_handle_t* handle) { in validateAndMap() argument
43 if (private_handle_t::validate(handle)) { in validateAndMap()
44 ALOGE("%s: Private handle is invalid - handle:%p", __func__, handle); in validateAndMap()
47 if (handle->fd_metadata == -1) { in validateAndMap()
49 __func__, handle, handle->fd_metadata); in validateAndMap()
53 if (!handle->base_metadata) { in validateAndMap()
56 handle->fd_metadata, 0); in validateAndMap()
59 __func__, handle, handle->fd_metadata, strerror(errno)); in validateAndMap()
63 handle->base_metadata = (uintptr_t) base; in validateAndMap()
68 int setMetaData(private_handle_t *handle, DispParamType paramType, in setMetaData() argument
[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 …]
/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/invensense/6515/libsensors_iio/
Dsensors_mpl.cpp59 int handle; member
114 int activate(int handle, int enabled);
115 int setDelay(int handle, int64_t ns);
118 int batch(int handle, int flags, int64_t period_ns, int64_t timeout);
120 int flush(int handle);
199 int sensors_poll_context_t::activate(int handle, int enabled) { in activate() argument
203 err = mSensor->enable(handle, enabled); in activate()
207 int sensors_poll_context_t::setDelay(int handle, int64_t ns) in setDelay() argument
210 return mSensor->setDelay(handle, ns); in setDelay()
237 flushCompleteEvent.meta_data.sensor = handle_element->handle; in pollEvents()
[all …]
/hardware/qcom/display/msm8226/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/libhardware/include/hardware/
Dgralloc.h176 buffer_handle_t handle);
191 buffer_handle_t handle);
229 buffer_handle_t handle, int usage,
240 buffer_handle_t handle);
268 buffer_handle_t handle, int usage,
283 buffer_handle_t handle, int usage,
299 buffer_handle_t handle, int* fenceFd);
313 buffer_handle_t handle, int usage,
330 struct gralloc_module_t const* module, buffer_handle_t handle, uint32_t *outNumFds,
342 struct gralloc_module_t const* device, buffer_handle_t handle,
[all …]

12345678910>>...39