Lines Matching refs:device
44 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
185 if (!device) { in Dump()
186 ALOGE("Gralloc Error : device=%p", (void *)device); in Dump()
195 gralloc1_error_t GrallocImpl::CheckDeviceAndHandle(gralloc1_device_t *device, in CheckDeviceAndHandle() argument
198 if (!device || (private_handle_t::validate(hnd) != 0)) { in CheckDeviceAndHandle()
199 ALOGE("Gralloc Error : device= %p, buffer-handle=%p", (void *)device, (void *)buffer); in CheckDeviceAndHandle()
206 gralloc1_error_t GrallocImpl::CreateBufferDescriptor(gralloc1_device_t *device, in CreateBufferDescriptor() argument
208 if (!device) { in CreateBufferDescriptor()
211 GrallocImpl const *dev = GRALLOC_IMPL(device); in CreateBufferDescriptor()
215 gralloc1_error_t GrallocImpl::DestroyBufferDescriptor(gralloc1_device_t *device, in DestroyBufferDescriptor() argument
217 if (!device) { in DestroyBufferDescriptor()
220 GrallocImpl const *dev = GRALLOC_IMPL(device); in DestroyBufferDescriptor()
224 gralloc1_error_t GrallocImpl::SetConsumerUsage(gralloc1_device_t *device, in SetConsumerUsage() argument
227 if (!device) { in SetConsumerUsage()
230 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetConsumerUsage()
236 gralloc1_error_t GrallocImpl::SetBufferDimensions(gralloc1_device_t *device, in SetBufferDimensions() argument
239 if (!device) { in SetBufferDimensions()
242 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetBufferDimensions()
249 gralloc1_error_t GrallocImpl::SetColorFormat(gralloc1_device_t *device, in SetColorFormat() argument
252 if (!device) { in SetColorFormat()
255 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetColorFormat()
261 gralloc1_error_t GrallocImpl::SetLayerCount(gralloc1_device_t *device, in SetLayerCount() argument
264 if (!device) { in SetLayerCount()
267 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetLayerCount()
274 gralloc1_error_t GrallocImpl::SetProducerUsage(gralloc1_device_t *device, in SetProducerUsage() argument
277 if (!device) { in SetProducerUsage()
280 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetProducerUsage()
286 gralloc1_error_t GrallocImpl::GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, in GetBackingStore() argument
288 if (!device || !buffer) { in GetBackingStore()
298 gralloc1_error_t GrallocImpl::GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetConsumerUsage() argument
300 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetConsumerUsage()
308 gralloc1_error_t GrallocImpl::GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferDimensions() argument
310 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetBufferDimensions()
320 gralloc1_error_t GrallocImpl::GetColorFormat(gralloc1_device_t *device, buffer_handle_t buffer, in GetColorFormat() argument
322 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetColorFormat()
330 gralloc1_error_t GrallocImpl::GetLayerCount(gralloc1_device_t *device, buffer_handle_t buffer, in GetLayerCount() argument
332 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetLayerCount()
340 gralloc1_error_t GrallocImpl::GetProducerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetProducerUsage() argument
342 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetProducerUsage()
351 gralloc1_error_t GrallocImpl::GetBufferStride(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferStride() argument
353 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetBufferStride()
361 gralloc1_error_t GrallocImpl::AllocateBuffers(gralloc1_device_t *device, uint32_t num_descriptors, in AllocateBuffers() argument
368 GrallocImpl const *dev = GRALLOC_IMPL(device); in AllocateBuffers()
375 gralloc1_error_t GrallocImpl::RetainBuffer(gralloc1_device_t *device, buffer_handle_t buffer) { in RetainBuffer() argument
376 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in RetainBuffer()
379 GrallocImpl const *dev = GRALLOC_IMPL(device); in RetainBuffer()
386 gralloc1_error_t GrallocImpl::ReleaseBuffer(gralloc1_device_t *device, buffer_handle_t buffer) { in ReleaseBuffer() argument
387 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in ReleaseBuffer()
390 GrallocImpl const *dev = GRALLOC_IMPL(device); in ReleaseBuffer()
397 gralloc1_error_t GrallocImpl::GetNumFlexPlanes(gralloc1_device_t *device, buffer_handle_t buffer, in GetNumFlexPlanes() argument
399 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetNumFlexPlanes()
401 GrallocImpl const *dev = GRALLOC_IMPL(device); in GetNumFlexPlanes()
414 gralloc1_error_t GrallocImpl::LockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, in LockBuffer() argument
419 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in LockBuffer()
435 GrallocImpl const *dev = GRALLOC_IMPL(device); in LockBuffer()
457 gralloc1_error_t GrallocImpl::LockFlex(gralloc1_device_t *device, buffer_handle_t buffer, in LockFlex() argument
464 gralloc1_error_t status = GrallocImpl::LockBuffer(device, buffer, prod_usage, cons_usage, region, in LockFlex()
470 GrallocImpl const *dev = GRALLOC_IMPL(device); in LockFlex()
476 gralloc1_error_t GrallocImpl::UnlockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, in UnlockBuffer() argument
478 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in UnlockBuffer()
485 GrallocImpl const *dev = GRALLOC_IMPL(device); in UnlockBuffer()
492 gralloc1_error_t GrallocImpl::Gralloc1Perform(gralloc1_device_t *device, int operation, ...) { in Gralloc1Perform() argument
495 GrallocImpl const *dev = GRALLOC_IMPL(device); in Gralloc1Perform()
502 gralloc1_error_t GrallocImpl::validateBufferSize(gralloc1_device_t *device, in validateBufferSize() argument
506 GrallocImpl const *dev = GRALLOC_IMPL(device); in validateBufferSize()
543 gralloc1_error_t GrallocImpl::importBuffer(gralloc1_device_t *device, const buffer_handle_t raw_han… in importBuffer() argument
558 GrallocImpl const *dev = GRALLOC_IMPL(device); in importBuffer()