Lines Matching refs:device
46 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device);
48 int gralloc_device_close(struct hw_device_t *device);
66 int gralloc_device_open(const struct hw_module_t *module, const char *name, hw_device_t **device) { in gralloc_device_open() argument
70 *device = reinterpret_cast<hw_device_t *>(dev); in gralloc_device_open()
101 int GrallocImpl::CloseDevice(hw_device_t *device __unused) { in CloseDevice()
106 void GrallocImpl::GetCapabilities(struct gralloc1_device *device, uint32_t *out_count, in GetCapabilities() argument
108 if (device != nullptr) { in GetCapabilities()
119 gralloc1_function_pointer_t GrallocImpl::GetFunction(gralloc1_device_t *device, int32_t function) { in GetFunction() argument
120 if (!device) { in GetFunction()
179 gralloc1_error_t GrallocImpl::Dump(gralloc1_device_t *device, uint32_t *out_size, in Dump() argument
181 if (!device) { in Dump()
182 ALOGE("Gralloc Error : device=%p", (void *)device); in Dump()
193 GrallocImpl const *dev = GRALLOC_IMPL(device); in Dump()
203 gralloc1_error_t GrallocImpl::CheckDeviceAndHandle(gralloc1_device_t *device, in CheckDeviceAndHandle() argument
206 if (!device || (private_handle_t::validate(hnd) != 0)) { in CheckDeviceAndHandle()
207 ALOGE("Gralloc Error : device= %p, buffer-handle=%p", (void *)device, (void *)buffer); in CheckDeviceAndHandle()
214 gralloc1_error_t GrallocImpl::CreateBufferDescriptor(gralloc1_device_t *device, in CreateBufferDescriptor() argument
216 if (!device) { in CreateBufferDescriptor()
219 GrallocImpl const *dev = GRALLOC_IMPL(device); in CreateBufferDescriptor()
223 gralloc1_error_t GrallocImpl::DestroyBufferDescriptor(gralloc1_device_t *device, in DestroyBufferDescriptor() argument
225 if (!device) { in DestroyBufferDescriptor()
228 GrallocImpl const *dev = GRALLOC_IMPL(device); in DestroyBufferDescriptor()
232 gralloc1_error_t GrallocImpl::SetConsumerUsage(gralloc1_device_t *device, in SetConsumerUsage() argument
235 if (!device) { in SetConsumerUsage()
238 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetConsumerUsage()
244 gralloc1_error_t GrallocImpl::SetBufferDimensions(gralloc1_device_t *device, in SetBufferDimensions() argument
247 if (!device) { in SetBufferDimensions()
250 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetBufferDimensions()
257 gralloc1_error_t GrallocImpl::SetColorFormat(gralloc1_device_t *device, in SetColorFormat() argument
260 if (!device) { in SetColorFormat()
263 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetColorFormat()
269 gralloc1_error_t GrallocImpl::SetLayerCount(gralloc1_device_t *device, in SetLayerCount() argument
272 if (!device) { in SetLayerCount()
275 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetLayerCount()
282 gralloc1_error_t GrallocImpl::SetProducerUsage(gralloc1_device_t *device, in SetProducerUsage() argument
285 if (!device) { in SetProducerUsage()
288 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetProducerUsage()
294 gralloc1_error_t GrallocImpl::GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, in GetBackingStore() argument
296 if (!device || !buffer) { in GetBackingStore()
306 gralloc1_error_t GrallocImpl::GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetConsumerUsage() argument
308 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetConsumerUsage()
316 gralloc1_error_t GrallocImpl::GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferDimensions() argument
318 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetBufferDimensions()
328 gralloc1_error_t GrallocImpl::GetColorFormat(gralloc1_device_t *device, buffer_handle_t buffer, in GetColorFormat() argument
330 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetColorFormat()
338 gralloc1_error_t GrallocImpl::GetLayerCount(gralloc1_device_t *device, buffer_handle_t buffer, in GetLayerCount() argument
340 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetLayerCount()
348 gralloc1_error_t GrallocImpl::GetProducerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetProducerUsage() argument
350 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetProducerUsage()
359 gralloc1_error_t GrallocImpl::GetBufferStride(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferStride() argument
361 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetBufferStride()
369 gralloc1_error_t GrallocImpl::AllocateBuffers(gralloc1_device_t *device, uint32_t num_descriptors, in AllocateBuffers() argument
376 GrallocImpl const *dev = GRALLOC_IMPL(device); in AllocateBuffers()
383 gralloc1_error_t GrallocImpl::RetainBuffer(gralloc1_device_t *device, buffer_handle_t buffer) { in RetainBuffer() argument
384 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in RetainBuffer()
387 GrallocImpl const *dev = GRALLOC_IMPL(device); in RetainBuffer()
394 gralloc1_error_t GrallocImpl::ReleaseBuffer(gralloc1_device_t *device, buffer_handle_t buffer) { in ReleaseBuffer() argument
395 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in ReleaseBuffer()
398 GrallocImpl const *dev = GRALLOC_IMPL(device); in ReleaseBuffer()
405 gralloc1_error_t GrallocImpl::GetNumFlexPlanes(gralloc1_device_t *device, buffer_handle_t buffer, in GetNumFlexPlanes() argument
407 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetNumFlexPlanes()
409 GrallocImpl const *dev = GRALLOC_IMPL(device); in GetNumFlexPlanes()
422 gralloc1_error_t GrallocImpl::LockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, in LockBuffer() argument
428 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in LockBuffer()
446 GrallocImpl const *dev = GRALLOC_IMPL(device); in LockBuffer()
468 gralloc1_error_t GrallocImpl::LockFlex(gralloc1_device_t *device, buffer_handle_t buffer, in LockFlex() argument
475 gralloc1_error_t status = GrallocImpl::LockBuffer(device, buffer, prod_usage, cons_usage, region, in LockFlex()
481 GrallocImpl const *dev = GRALLOC_IMPL(device); in LockFlex()
487 gralloc1_error_t GrallocImpl::UnlockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, in UnlockBuffer() argument
489 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in UnlockBuffer()
496 GrallocImpl const *dev = GRALLOC_IMPL(device); in UnlockBuffer()
503 gralloc1_error_t GrallocImpl::Gralloc1Perform(gralloc1_device_t *device, int operation, ...) { in Gralloc1Perform() argument
506 GrallocImpl const *dev = GRALLOC_IMPL(device); in Gralloc1Perform()