Lines Matching refs:device
43 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
178 if (!device) { in Dump()
179 ALOGE("Gralloc Error : device=%p", (void *)device); in Dump()
188 gralloc1_error_t GrallocImpl::CheckDeviceAndHandle(gralloc1_device_t *device, in CheckDeviceAndHandle() argument
191 if (!device || (private_handle_t::validate(hnd) != 0)) { in CheckDeviceAndHandle()
192 ALOGE("Gralloc Error : device= %p, buffer-handle=%p", (void *)device, (void *)buffer); in CheckDeviceAndHandle()
199 gralloc1_error_t GrallocImpl::CreateBufferDescriptor(gralloc1_device_t *device, in CreateBufferDescriptor() argument
201 if (!device) { in CreateBufferDescriptor()
204 GrallocImpl const *dev = GRALLOC_IMPL(device); in CreateBufferDescriptor()
208 gralloc1_error_t GrallocImpl::DestroyBufferDescriptor(gralloc1_device_t *device, in DestroyBufferDescriptor() argument
210 if (!device) { in DestroyBufferDescriptor()
213 GrallocImpl const *dev = GRALLOC_IMPL(device); in DestroyBufferDescriptor()
217 gralloc1_error_t GrallocImpl::SetConsumerUsage(gralloc1_device_t *device, in SetConsumerUsage() argument
220 if (!device) { in SetConsumerUsage()
223 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetConsumerUsage()
229 gralloc1_error_t GrallocImpl::SetBufferDimensions(gralloc1_device_t *device, in SetBufferDimensions() argument
232 if (!device) { in SetBufferDimensions()
235 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetBufferDimensions()
242 gralloc1_error_t GrallocImpl::SetColorFormat(gralloc1_device_t *device, in SetColorFormat() argument
245 if (!device) { in SetColorFormat()
248 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetColorFormat()
254 gralloc1_error_t GrallocImpl::SetLayerCount(gralloc1_device_t *device, in SetLayerCount() argument
257 if (!device) { in SetLayerCount()
260 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetLayerCount()
267 gralloc1_error_t GrallocImpl::SetProducerUsage(gralloc1_device_t *device, in SetProducerUsage() argument
270 if (!device) { in SetProducerUsage()
273 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetProducerUsage()
279 gralloc1_error_t GrallocImpl::GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, in GetBackingStore() argument
281 if (!device || !buffer) { in GetBackingStore()
291 gralloc1_error_t GrallocImpl::GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetConsumerUsage() argument
293 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetConsumerUsage()
301 gralloc1_error_t GrallocImpl::GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferDimensions() argument
303 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetBufferDimensions()
313 gralloc1_error_t GrallocImpl::GetColorFormat(gralloc1_device_t *device, buffer_handle_t buffer, in GetColorFormat() argument
315 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetColorFormat()
323 gralloc1_error_t GrallocImpl::GetLayerCount(gralloc1_device_t *device, buffer_handle_t buffer, in GetLayerCount() argument
325 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetLayerCount()
333 gralloc1_error_t GrallocImpl::GetProducerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetProducerUsage() argument
335 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetProducerUsage()
344 gralloc1_error_t GrallocImpl::GetBufferStride(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferStride() argument
346 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetBufferStride()
354 gralloc1_error_t GrallocImpl::AllocateBuffers(gralloc1_device_t *device, uint32_t num_descriptors, in AllocateBuffers() argument
361 GrallocImpl const *dev = GRALLOC_IMPL(device); in AllocateBuffers()
368 gralloc1_error_t GrallocImpl::RetainBuffer(gralloc1_device_t *device, buffer_handle_t buffer) { in RetainBuffer() argument
369 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in RetainBuffer()
372 GrallocImpl const *dev = GRALLOC_IMPL(device); in RetainBuffer()
379 gralloc1_error_t GrallocImpl::ReleaseBuffer(gralloc1_device_t *device, buffer_handle_t buffer) { in ReleaseBuffer() argument
380 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in ReleaseBuffer()
383 GrallocImpl const *dev = GRALLOC_IMPL(device); in ReleaseBuffer()
390 gralloc1_error_t GrallocImpl::GetNumFlexPlanes(gralloc1_device_t *device, buffer_handle_t buffer, in GetNumFlexPlanes() argument
392 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetNumFlexPlanes()
394 GrallocImpl const *dev = GRALLOC_IMPL(device); in GetNumFlexPlanes()
407 gralloc1_error_t GrallocImpl::LockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, in LockBuffer() argument
412 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in LockBuffer()
428 GrallocImpl const *dev = GRALLOC_IMPL(device); in LockBuffer()
450 gralloc1_error_t GrallocImpl::LockFlex(gralloc1_device_t *device, buffer_handle_t buffer, in LockFlex() argument
457 gralloc1_error_t status = GrallocImpl::LockBuffer(device, buffer, prod_usage, cons_usage, region, in LockFlex()
463 GrallocImpl const *dev = GRALLOC_IMPL(device); in LockFlex()
469 gralloc1_error_t GrallocImpl::UnlockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, in UnlockBuffer() argument
471 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in UnlockBuffer()
478 GrallocImpl const *dev = GRALLOC_IMPL(device); in UnlockBuffer()
485 gralloc1_error_t GrallocImpl::Gralloc1Perform(gralloc1_device_t *device, int operation, ...) { in Gralloc1Perform() argument
488 GrallocImpl const *dev = GRALLOC_IMPL(device); in Gralloc1Perform()