Lines Matching refs:device

50 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
191 if (!device) { in Dump()
192 ALOGE("Gralloc Error : device=%p", (void *)device); in Dump()
203 GrallocImpl const *dev = GRALLOC_IMPL(device); in Dump()
213 gralloc1_error_t GrallocImpl::CheckDeviceAndHandle(gralloc1_device_t *device, in CheckDeviceAndHandle() argument
216 if (!device || (private_handle_t::validate(hnd) != 0)) { in CheckDeviceAndHandle()
217 ALOGE("Gralloc Error : device= %p, buffer-handle=%p", (void *)device, (void *)buffer); in CheckDeviceAndHandle()
224 gralloc1_error_t GrallocImpl::CreateBufferDescriptor(gralloc1_device_t *device, in CreateBufferDescriptor() argument
226 if (!device) { in CreateBufferDescriptor()
229 GrallocImpl const *dev = GRALLOC_IMPL(device); in CreateBufferDescriptor()
233 gralloc1_error_t GrallocImpl::DestroyBufferDescriptor(gralloc1_device_t *device, in DestroyBufferDescriptor() argument
235 if (!device) { in DestroyBufferDescriptor()
238 GrallocImpl const *dev = GRALLOC_IMPL(device); in DestroyBufferDescriptor()
242 gralloc1_error_t GrallocImpl::SetConsumerUsage(gralloc1_device_t *device, in SetConsumerUsage() argument
245 if (!device) { in SetConsumerUsage()
248 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetConsumerUsage()
254 gralloc1_error_t GrallocImpl::SetBufferDimensions(gralloc1_device_t *device, in SetBufferDimensions() argument
257 if (!device) { in SetBufferDimensions()
260 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetBufferDimensions()
267 gralloc1_error_t GrallocImpl::SetColorFormat(gralloc1_device_t *device, in SetColorFormat() argument
270 if (!device) { in SetColorFormat()
273 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetColorFormat()
279 gralloc1_error_t GrallocImpl::SetLayerCount(gralloc1_device_t *device, in SetLayerCount() argument
282 if (!device) { in SetLayerCount()
285 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetLayerCount()
292 gralloc1_error_t GrallocImpl::SetProducerUsage(gralloc1_device_t *device, in SetProducerUsage() argument
295 if (!device) { in SetProducerUsage()
298 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetProducerUsage()
304 gralloc1_error_t GrallocImpl::GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, in GetBackingStore() argument
306 if (!device || !buffer) { in GetBackingStore()
316 gralloc1_error_t GrallocImpl::GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetConsumerUsage() argument
318 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetConsumerUsage()
326 gralloc1_error_t GrallocImpl::GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferDimensions() argument
328 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetBufferDimensions()
338 gralloc1_error_t GrallocImpl::GetColorFormat(gralloc1_device_t *device, buffer_handle_t buffer, in GetColorFormat() argument
340 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetColorFormat()
348 gralloc1_error_t GrallocImpl::GetLayerCount(gralloc1_device_t *device, buffer_handle_t buffer, in GetLayerCount() argument
350 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetLayerCount()
358 gralloc1_error_t GrallocImpl::GetProducerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetProducerUsage() argument
360 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetProducerUsage()
369 gralloc1_error_t GrallocImpl::GetBufferStride(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferStride() argument
371 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetBufferStride()
379 gralloc1_error_t GrallocImpl::AllocateBuffers(gralloc1_device_t *device, uint32_t num_descriptors, in AllocateBuffers() argument
386 GrallocImpl const *dev = GRALLOC_IMPL(device); in AllocateBuffers()
393 gralloc1_error_t GrallocImpl::RetainBuffer(gralloc1_device_t *device, buffer_handle_t buffer) { in RetainBuffer() argument
394 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in RetainBuffer()
397 GrallocImpl const *dev = GRALLOC_IMPL(device); in RetainBuffer()
404 gralloc1_error_t GrallocImpl::ReleaseBuffer(gralloc1_device_t *device, buffer_handle_t buffer) { in ReleaseBuffer() argument
405 if (!device || !buffer) { in ReleaseBuffer()
410 GrallocImpl const *dev = GRALLOC_IMPL(device); in ReleaseBuffer()
414 gralloc1_error_t GrallocImpl::GetNumFlexPlanes(gralloc1_device_t *device, buffer_handle_t buffer, in GetNumFlexPlanes() argument
416 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetNumFlexPlanes()
418 GrallocImpl const *dev = GRALLOC_IMPL(device); in GetNumFlexPlanes()
431 gralloc1_error_t GrallocImpl::LockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, in LockBuffer() argument
437 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in LockBuffer()
455 GrallocImpl const *dev = GRALLOC_IMPL(device); in LockBuffer()
477 gralloc1_error_t GrallocImpl::LockFlex(gralloc1_device_t *device, buffer_handle_t buffer, in LockFlex() argument
484 gralloc1_error_t status = GrallocImpl::LockBuffer(device, buffer, prod_usage, cons_usage, region, in LockFlex()
490 GrallocImpl const *dev = GRALLOC_IMPL(device); in LockFlex()
496 gralloc1_error_t GrallocImpl::UnlockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, in UnlockBuffer() argument
498 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in UnlockBuffer()
505 GrallocImpl const *dev = GRALLOC_IMPL(device); in UnlockBuffer()
512 gralloc1_error_t GrallocImpl::Gralloc1Perform(gralloc1_device_t *device, int operation, ...) { in Gralloc1Perform() argument
515 GrallocImpl const *dev = GRALLOC_IMPL(device); in Gralloc1Perform()
522 gralloc1_error_t GrallocImpl::validateBufferSize(gralloc1_device_t *device, in validateBufferSize() argument
526 GrallocImpl const *dev = GRALLOC_IMPL(device); in validateBufferSize()
562 gralloc1_error_t GrallocImpl::importBuffer(gralloc1_device_t *device, const buffer_handle_t raw_han… in importBuffer() argument
577 GrallocImpl const *dev = GRALLOC_IMPL(device); in importBuffer()