Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 1738) sorted by relevance

12345678910>>...70

/hardware/qcom/camera/msm8998/QCamera2/HAL/wrapper/
DQualcommCamera.cpp94 QCamera2HardwareInterface *util_get_Hal_obj( struct camera_device * device) in util_get_Hal_obj() argument
97 if(device && device->priv){ in util_get_Hal_obj()
98 camera_hardware_t *camHal = (camera_hardware_t *)device->priv; in util_get_Hal_obj()
131 camera_device *device = NULL; in camera_device_open() local
149 device = &camHal->hw_dev; in camera_device_open()
150 device->common.close = close_camera_device; in camera_device_open()
151 device->ops = &QCamera2HardwareInterface::mCameraOps; in camera_device_open()
152 device->priv = (void *)camHal; in camera_device_open()
160 device = NULL; in camera_device_open()
166 *hw_device = (hw_device_t*)&device->common; in camera_device_open()
[all …]
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/rmv/
Dvk_rmv_common.c29 vk_memory_trace_init(struct vk_device *device, const struct vk_rmv_device_info *device_info) in vk_memory_trace_init() argument
31 device->memory_trace_data.device_info = *device_info; in vk_memory_trace_init()
32 device->memory_trace_data.is_enabled = true; in vk_memory_trace_init()
33 util_dynarray_init(&device->memory_trace_data.tokens, NULL); in vk_memory_trace_init()
34 simple_mtx_init(&device->memory_trace_data.token_mtx, mtx_plain); in vk_memory_trace_init()
36 device->memory_trace_data.next_resource_id = 1; in vk_memory_trace_init()
37 device->memory_trace_data.handle_table = _mesa_hash_table_u64_create(NULL); in vk_memory_trace_init()
41 vk_memory_trace_finish(struct vk_device *device) in vk_memory_trace_finish() argument
43 if (!device->memory_trace_data.is_enabled) in vk_memory_trace_finish()
45 util_dynarray_foreach (&device->memory_trace_data.tokens, struct vk_rmv_token, token) { in vk_memory_trace_finish()
[all …]
/hardware/google/pixel/vibrator/cs40l25/
Dandroid.hardware.vibrator-service.cs40l25.rc2 wait /sys/class/leds/vibrator/device
15 chown system system /sys/class/leds/vibrator/device/asp_enable
16 chown system system /sys/class/leds/vibrator/device/available_pwle_segments
17 chown system system /sys/class/leds/vibrator/device/clab_enable
18 chown system system /sys/class/leds/vibrator/device/comp_enable
19 chown system system /sys/class/leds/vibrator/device/cp_dig_scale
20 chown system system /sys/class/leds/vibrator/device/cp_trigger_duration
21 chown system system /sys/class/leds/vibrator/device/cp_trigger_index
22 chown system system /sys/class/leds/vibrator/device/cp_trigger_q_sub
23 chown system system /sys/class/leds/vibrator/device/cp_trigger_queue
[all …]
Dandroid.hardware.vibrator-service.cs40l25-dual.rc2 wait /sys/class/leds/vibrator_1/device
15 chown system system /sys/class/leds/vibrator_1/device/asp_enable
16 chown system system /sys/class/leds/vibrator_1/device/available_pwle_segments
17 chown system system /sys/class/leds/vibrator_1/device/clab_enable
18 chown system system /sys/class/leds/vibrator_1/device/comp_enable
19 chown system system /sys/class/leds/vibrator_1/device/cp_dig_scale
20 chown system system /sys/class/leds/vibrator_1/device/cp_trigger_duration
21 chown system system /sys/class/leds/vibrator_1/device/cp_trigger_index
22 chown system system /sys/class/leds/vibrator_1/device/cp_trigger_q_sub
23 chown system system /sys/class/leds/vibrator_1/device/cp_trigger_queue
[all …]
/hardware/google/graphics/common/libhwc2.1/
DExynosHWC.h57 hwc2_function_pointer_t exynos_getFunction(struct hwc2_device* device, int32_t descriptor);
58 void exynos_getCapabilities(struct hwc2_device* device, uint32_t* outcount, int32_t* outcapabilitie…
59 void exynos_dump(hwc2_device_t* device, uint32_t* outSize, char* outBuffer);
60 int32_t exynos_acceptDisplayChanges(hwc2_device_t* device, hwc2_display_t display);
61 int32_t exynos_createLayer(hwc2_device_t* device, hwc2_display_t display, hwc2_layer_t* outLayer);
62 int32_t exynos_createVirtualDisplay(hwc2_device_t* device, uint32_t width, uint32_t height,
64 int32_t exynos_destroyLayer(hwc2_device_t* device, hwc2_display_t display, hwc2_layer_t layer);
65 int32_t exynos_destroyVirtualDisplay(hwc2_device_t* device, hwc2_display_t display);
66 int32_t exynos_getActiveConfig(hwc2_device_t *device, hwc2_display_t display, hwc2_config_t* outCon…
67 int32_t exynos_getChangedCompositionTypes(hwc2_device_t *device, hwc2_display_t display,
[all …]
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_object.c34 vk_object_base_init(struct vk_device *device, in vk_object_base_init() argument
40 base->device = device; in vk_object_base_init()
52 vk_free(&base->device->alloc, base->object_name); in vk_object_base_finish()
58 struct vk_device *device = base->device; in vk_object_base_recycle() local
61 vk_object_base_init(device, base, obj_type); in vk_object_base_recycle()
65 vk_object_alloc(struct vk_device *device, in vk_object_alloc() argument
70 void *ptr = vk_alloc2(&device->alloc, alloc, size, 8, in vk_object_alloc()
75 vk_object_base_init(device, (struct vk_object_base *)ptr, obj_type); in vk_object_alloc()
81 vk_object_zalloc(struct vk_device *device, in vk_object_zalloc() argument
86 void *ptr = vk_zalloc2(&device->alloc, alloc, size, 8, in vk_object_zalloc()
[all …]
Dvk_drm_syncobj.c45 vk_drm_syncobj_init(struct vk_device *device, in vk_drm_syncobj_init() argument
55 assert(device->drm_fd >= 0); in vk_drm_syncobj_init()
56 int err = drmSyncobjCreate(device->drm_fd, flags, &sobj->syncobj); in vk_drm_syncobj_init()
58 return vk_errorf(device, VK_ERROR_OUT_OF_HOST_MEMORY, in vk_drm_syncobj_init()
63 err = drmSyncobjTimelineSignal(device->drm_fd, &sobj->syncobj, in vk_drm_syncobj_init()
66 vk_drm_syncobj_finish(device, sync); in vk_drm_syncobj_init()
67 return vk_errorf(device, VK_ERROR_OUT_OF_HOST_MEMORY, in vk_drm_syncobj_init()
76 vk_drm_syncobj_finish(struct vk_device *device, in vk_drm_syncobj_finish() argument
81 assert(device->drm_fd >= 0); in vk_drm_syncobj_finish()
82 ASSERTED int err = drmSyncobjDestroy(device->drm_fd, sobj->syncobj); in vk_drm_syncobj_finish()
[all …]
Dvk_device.h166 VkResult (*check_status)(struct vk_device *device);
186 VkResult (*create_sync_for_memory)(struct vk_device *device,
288 vk_device_init(struct vk_device *device,
295 vk_device_set_drm_fd(struct vk_device *device, int drm_fd) in vk_device_set_drm_fd() argument
297 device->drm_fd = drm_fd; in vk_device_set_drm_fd()
305 vk_device_finish(struct vk_device *device);
316 void vk_device_enable_threaded_submit(struct vk_device *device);
319 vk_device_supports_threaded_submit(const struct vk_device *device) in vk_device_supports_threaded_submit() argument
321 return device->submit_mode == VK_QUEUE_SUBMIT_MODE_THREADED || in vk_device_supports_threaded_submit()
322 device->submit_mode == VK_QUEUE_SUBMIT_MODE_THREADED_ON_DEMAND; in vk_device_supports_threaded_submit()
[all …]
Dvk_sync.h168 VkResult (*init)(struct vk_device *device,
176 void (*finish)(struct vk_device *device,
183 VkResult (*signal)(struct vk_device *device,
188 VkResult (*get_value)(struct vk_device *device,
193 VkResult (*reset)(struct vk_device *device,
204 VkResult (*move)(struct vk_device *device,
220 VkResult (*wait)(struct vk_device *device,
233 VkResult (*wait_many)(struct vk_device *device,
245 VkResult (*import_opaque_fd)(struct vk_device *device,
250 VkResult (*export_opaque_fd)(struct vk_device *device,
[all …]
/hardware/interfaces/camera/provider/2.4/default/
DAndroid.bp18 "android.hardware.camera.device@1.0",
19 "android.hardware.camera.device@3.2",
20 "android.hardware.camera.device@3.3",
21 "android.hardware.camera.device@3.4",
22 "android.hardware.camera.device@3.5",
29 "camera.device@1.0-impl",
30 "camera.device@3.2-impl",
31 "camera.device@3.3-impl",
32 "camera.device@3.4-impl",
33 "camera.device@3.5-impl",
[all …]
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_device_impl.cpp43 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device);
45 int gralloc_device_close(struct hw_device_t *device);
63 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device) { in gralloc_device_open() argument
67 *device = reinterpret_cast<hw_device_t *>(dev); in gralloc_device_open()
98 int GrallocImpl::CloseDevice(hw_device_t *device __unused) { in CloseDevice()
103 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, in GetCapabilities() argument
105 if (device != nullptr) { in GetCapabilities()
116 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_t function) { in GetFunction() argument
117 if (!device) { in GetFunction()
176 gralloc1_error_t GrallocImpl::Dump(gralloc1_device_t *device, uint32_t *out_size, in Dump() argument
[all …]
Dgr_device_impl.h47 static int CloseDevice(hw_device_t *device);
48 static void GetCapabilities(struct gralloc1_device *device, uint32_t *out_count,
51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor);
63 static inline gralloc1_error_t Dump(gralloc1_device_t *device, uint32_t *out_size,
65 static inline gralloc1_error_t CheckDeviceAndHandle(gralloc1_device_t *device,
67 static gralloc1_error_t CreateBufferDescriptor(gralloc1_device_t *device,
69 static gralloc1_error_t DestroyBufferDescriptor(gralloc1_device_t *device,
71 static gralloc1_error_t SetConsumerUsage(gralloc1_device_t *device,
74 static gralloc1_error_t SetBufferDimensions(gralloc1_device_t *device,
77 static gralloc1_error_t SetColorFormat(gralloc1_device_t *device,
[all …]
/hardware/qcom/display/msm8909/gralloc/
Dgr_device_impl.cpp43 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device);
45 int gralloc_device_close(struct hw_device_t *device);
63 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device) { in gralloc_device_open() argument
67 *device = reinterpret_cast<hw_device_t *>(dev); in gralloc_device_open()
98 int GrallocImpl::CloseDevice(hw_device_t *device __unused) { in CloseDevice()
103 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, in GetCapabilities() argument
105 if (device != nullptr) { in GetCapabilities()
116 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_t function) { in GetFunction() argument
117 if (!device) { in GetFunction()
176 gralloc1_error_t GrallocImpl::Dump(gralloc1_device_t *device, uint32_t *out_size, in Dump() argument
[all …]
Dgr_device_impl.h47 static int CloseDevice(hw_device_t *device);
48 static void GetCapabilities(struct gralloc1_device *device, uint32_t *out_count,
51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor);
63 static inline gralloc1_error_t Dump(gralloc1_device_t *device, uint32_t *out_size,
65 static inline gralloc1_error_t CheckDeviceAndHandle(gralloc1_device_t *device,
67 static gralloc1_error_t CreateBufferDescriptor(gralloc1_device_t *device,
69 static gralloc1_error_t DestroyBufferDescriptor(gralloc1_device_t *device,
71 static gralloc1_error_t SetConsumerUsage(gralloc1_device_t *device,
74 static gralloc1_error_t SetBufferDimensions(gralloc1_device_t *device,
77 static gralloc1_error_t SetColorFormat(gralloc1_device_t *device,
[all …]
/hardware/google/camera/common/hal/tests/
Dcamera_device_tests.cc30 auto device = CameraDevice::Create(nullptr); in TEST() local
31 EXPECT_EQ(device, nullptr); in TEST()
36 device = CameraDevice::Create(std::move(mock_device_hwl)); in TEST()
37 EXPECT_NE(device, nullptr); in TEST()
47 auto device = CameraDevice::Create(std::move(mock_device_hwl)); in TEST() local
48 ASSERT_NE(device, nullptr); in TEST()
50 EXPECT_EQ(device->GetPublicCameraId(), camera_id); in TEST()
59 auto device = CameraDevice::Create(std::move(mock_device_hwl)); in TestResourceCost() local
60 ASSERT_NE(device, nullptr); in TestResourceCost()
62 EXPECT_EQ(device->GetResourceCost(nullptr), BAD_VALUE); in TestResourceCost()
[all …]
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_device_impl.h47 static int CloseDevice(hw_device_t *device);
48 static void GetCapabilities(struct gralloc1_device *device, uint32_t *out_count,
51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor);
63 static inline gralloc1_error_t Dump(gralloc1_device_t *device, uint32_t *out_size,
65 static inline gralloc1_error_t CheckDeviceAndHandle(gralloc1_device_t *device,
67 static gralloc1_error_t CreateBufferDescriptor(gralloc1_device_t *device,
69 static gralloc1_error_t DestroyBufferDescriptor(gralloc1_device_t *device,
71 static gralloc1_error_t SetConsumerUsage(gralloc1_device_t *device,
74 static gralloc1_error_t SetBufferDimensions(gralloc1_device_t *device,
77 static gralloc1_error_t SetColorFormat(gralloc1_device_t *device,
[all …]
Dgr_device_impl.cpp44 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device);
46 int gralloc_device_close(struct hw_device_t *device);
64 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device) { in gralloc_device_open() argument
68 *device = reinterpret_cast<hw_device_t *>(dev); in gralloc_device_open()
99 int GrallocImpl::CloseDevice(hw_device_t *device __unused) { in CloseDevice()
104 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, in GetCapabilities() argument
106 if (device != nullptr) { in GetCapabilities()
117 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_t function) { in GetFunction() argument
118 if (!device) { in GetFunction()
183 gralloc1_error_t GrallocImpl::Dump(gralloc1_device_t *device, uint32_t *out_size, in Dump() argument
[all …]
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_device_impl.h47 static int CloseDevice(hw_device_t *device);
48 static void GetCapabilities(struct gralloc1_device *device, uint32_t *out_count,
51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor);
63 static inline gralloc1_error_t Dump(gralloc1_device_t *device, uint32_t *out_size,
65 static inline gralloc1_error_t CheckDeviceAndHandle(gralloc1_device_t *device,
67 static gralloc1_error_t CreateBufferDescriptor(gralloc1_device_t *device,
69 static gralloc1_error_t DestroyBufferDescriptor(gralloc1_device_t *device,
71 static gralloc1_error_t SetConsumerUsage(gralloc1_device_t *device,
74 static gralloc1_error_t SetBufferDimensions(gralloc1_device_t *device,
77 static gralloc1_error_t SetColorFormat(gralloc1_device_t *device,
[all …]
Dgr_device_impl.cpp50 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device);
52 int gralloc_device_close(struct hw_device_t *device);
70 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device) { in gralloc_device_open() argument
74 *device = reinterpret_cast<hw_device_t *>(dev); in gralloc_device_open()
105 int GrallocImpl::CloseDevice(hw_device_t *device __unused) { in CloseDevice()
110 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, in GetCapabilities() argument
112 if (device != nullptr) { in GetCapabilities()
123 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_t function) { in GetFunction() argument
124 if (!device) { in GetFunction()
189 gralloc1_error_t GrallocImpl::Dump(gralloc1_device_t *device, uint32_t *out_size, in Dump() argument
[all …]
/hardware/libhardware/include/hardware/
Dnvram.h65 nvram_result_t (*get_total_size_in_bytes)(const struct nvram_device* device,
77 const struct nvram_device* device, uint64_t* available_size);
88 const struct nvram_device* device, uint64_t* max_space_size);
99 nvram_result_t (*get_max_spaces)(const struct nvram_device* device,
116 nvram_result_t (*get_space_list)(const struct nvram_device* device,
128 nvram_result_t (*get_space_size)(const struct nvram_device* device,
144 nvram_result_t (*get_space_controls)(const struct nvram_device* device,
161 nvram_result_t (*is_space_locked)(const struct nvram_device* device,
187 nvram_result_t (*create_space)(const struct nvram_device* device,
207 nvram_result_t (*delete_space)(const struct nvram_device* device,
[all …]
Dgralloc1.h290 void (*getCapabilities)(struct gralloc1_device* device, uint32_t* outCount,
303 gralloc1_function_pointer_t (*getFunction)(struct gralloc1_device* device,
308 gralloc1_device_t** device) { in gralloc1_open() argument
310 TO_HW_DEVICE_T_OPEN(device)); in gralloc1_open()
313 static inline int gralloc1_close(gralloc1_device_t* device) { in gralloc1_close() argument
314 return device->common.close(&device->common); in gralloc1_close()
347 typedef void (*GRALLOC1_PFN_DUMP)(gralloc1_device_t* device, uint32_t* outSize,
370 gralloc1_device_t* device, gralloc1_buffer_descriptor_t* outDescriptor);
386 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor);
413 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor,
[all …]
/hardware/libhardware/include_all/hardware/
Dnvram.h65 nvram_result_t (*get_total_size_in_bytes)(const struct nvram_device* device,
77 const struct nvram_device* device, uint64_t* available_size);
88 const struct nvram_device* device, uint64_t* max_space_size);
99 nvram_result_t (*get_max_spaces)(const struct nvram_device* device,
116 nvram_result_t (*get_space_list)(const struct nvram_device* device,
128 nvram_result_t (*get_space_size)(const struct nvram_device* device,
144 nvram_result_t (*get_space_controls)(const struct nvram_device* device,
161 nvram_result_t (*is_space_locked)(const struct nvram_device* device,
187 nvram_result_t (*create_space)(const struct nvram_device* device,
207 nvram_result_t (*delete_space)(const struct nvram_device* device,
[all …]
Dgralloc1.h290 void (*getCapabilities)(struct gralloc1_device* device, uint32_t* outCount,
303 gralloc1_function_pointer_t (*getFunction)(struct gralloc1_device* device,
308 gralloc1_device_t** device) { in gralloc1_open() argument
310 TO_HW_DEVICE_T_OPEN(device)); in gralloc1_open()
313 static inline int gralloc1_close(gralloc1_device_t* device) { in gralloc1_close() argument
314 return device->common.close(&device->common); in gralloc1_close()
347 typedef void (*GRALLOC1_PFN_DUMP)(gralloc1_device_t* device, uint32_t* outSize,
370 gralloc1_device_t* device, gralloc1_buffer_descriptor_t* outDescriptor);
386 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor);
413 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor,
[all …]
/hardware/interfaces/camera/provider/2.5/default/
DAndroid.bp17 "android.hardware.camera.device@1.0",
18 "android.hardware.camera.device@3.2",
19 "android.hardware.camera.device@3.3",
20 "android.hardware.camera.device@3.4",
21 "android.hardware.camera.device@3.5",
28 "camera.device@1.0-impl",
29 "camera.device@3.2-impl",
30 "camera.device@3.3-impl",
31 "camera.device@3.4-impl",
32 "camera.device@3.5-impl",
[all …]
/hardware/google/gfxstream/guest/mesa/include/android_stub/hardware/
Dgralloc1.h290 void (*getCapabilities)(struct gralloc1_device* device, uint32_t* outCount,
303 gralloc1_function_pointer_t (*getFunction)(struct gralloc1_device* device,
308 gralloc1_device_t** device) { in gralloc1_open() argument
310 TO_HW_DEVICE_T_OPEN(device)); in gralloc1_open()
313 static inline int gralloc1_close(gralloc1_device_t* device) { in gralloc1_close() argument
314 return device->common.close(&device->common); in gralloc1_close()
347 typedef void (*GRALLOC1_PFN_DUMP)(gralloc1_device_t* device, uint32_t* outSize,
370 gralloc1_device_t* device, gralloc1_buffer_descriptor_t* outDescriptor);
386 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor);
413 gralloc1_device_t* device, gralloc1_buffer_descriptor_t descriptor,
[all …]

12345678910>>...70