• Home
  • Raw
  • Download

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()
190 GrallocImpl const *dev = GRALLOC_IMPL(device); in Dump()
200 gralloc1_error_t GrallocImpl::CheckDeviceAndHandle(gralloc1_device_t *device, in CheckDeviceAndHandle() argument
203 if (!device || (private_handle_t::validate(hnd) != 0)) { in CheckDeviceAndHandle()
204 ALOGE("Gralloc Error : device= %p, buffer-handle=%p", (void *)device, (void *)buffer); in CheckDeviceAndHandle()
211 gralloc1_error_t GrallocImpl::CreateBufferDescriptor(gralloc1_device_t *device, in CreateBufferDescriptor() argument
213 if (!device) { in CreateBufferDescriptor()
216 GrallocImpl const *dev = GRALLOC_IMPL(device); in CreateBufferDescriptor()
220 gralloc1_error_t GrallocImpl::DestroyBufferDescriptor(gralloc1_device_t *device, in DestroyBufferDescriptor() argument
222 if (!device) { in DestroyBufferDescriptor()
225 GrallocImpl const *dev = GRALLOC_IMPL(device); in DestroyBufferDescriptor()
229 gralloc1_error_t GrallocImpl::SetConsumerUsage(gralloc1_device_t *device, in SetConsumerUsage() argument
232 if (!device) { in SetConsumerUsage()
235 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetConsumerUsage()
241 gralloc1_error_t GrallocImpl::SetBufferDimensions(gralloc1_device_t *device, in SetBufferDimensions() argument
244 if (!device) { in SetBufferDimensions()
247 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetBufferDimensions()
254 gralloc1_error_t GrallocImpl::SetColorFormat(gralloc1_device_t *device, in SetColorFormat() argument
257 if (!device) { in SetColorFormat()
260 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetColorFormat()
266 gralloc1_error_t GrallocImpl::SetLayerCount(gralloc1_device_t *device, in SetLayerCount() argument
269 if (!device) { in SetLayerCount()
272 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetLayerCount()
279 gralloc1_error_t GrallocImpl::SetProducerUsage(gralloc1_device_t *device, in SetProducerUsage() argument
282 if (!device) { in SetProducerUsage()
285 GrallocImpl const *dev = GRALLOC_IMPL(device); in SetProducerUsage()
291 gralloc1_error_t GrallocImpl::GetBackingStore(gralloc1_device_t *device, buffer_handle_t buffer, in GetBackingStore() argument
293 if (!device || !buffer) { in GetBackingStore()
303 gralloc1_error_t GrallocImpl::GetConsumerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetConsumerUsage() argument
305 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetConsumerUsage()
313 gralloc1_error_t GrallocImpl::GetBufferDimensions(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferDimensions() argument
315 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetBufferDimensions()
325 gralloc1_error_t GrallocImpl::GetColorFormat(gralloc1_device_t *device, buffer_handle_t buffer, in GetColorFormat() argument
327 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetColorFormat()
335 gralloc1_error_t GrallocImpl::GetLayerCount(gralloc1_device_t *device, buffer_handle_t buffer, in GetLayerCount() argument
337 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetLayerCount()
345 gralloc1_error_t GrallocImpl::GetProducerUsage(gralloc1_device_t *device, buffer_handle_t buffer, in GetProducerUsage() argument
351 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetProducerUsage()
360 gralloc1_error_t GrallocImpl::GetBufferStride(gralloc1_device_t *device, buffer_handle_t buffer, in GetBufferStride() argument
366 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetBufferStride()
374 gralloc1_error_t GrallocImpl::AllocateBuffers(gralloc1_device_t *device, uint32_t num_descriptors, in AllocateBuffers() argument
381 if (!device) { in AllocateBuffers()
385 GrallocImpl const *dev = GRALLOC_IMPL(device); in AllocateBuffers()
392 gralloc1_error_t GrallocImpl::RetainBuffer(gralloc1_device_t *device, buffer_handle_t buffer) { in RetainBuffer() argument
393 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in RetainBuffer()
396 GrallocImpl const *dev = GRALLOC_IMPL(device); in RetainBuffer()
403 gralloc1_error_t GrallocImpl::ReleaseBuffer(gralloc1_device_t *device, buffer_handle_t buffer) { in ReleaseBuffer() argument
404 if (!device || !buffer) { in ReleaseBuffer()
409 GrallocImpl const *dev = GRALLOC_IMPL(device); in ReleaseBuffer()
413 gralloc1_error_t GrallocImpl::GetNumFlexPlanes(gralloc1_device_t *device, buffer_handle_t buffer, in GetNumFlexPlanes() argument
419 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in GetNumFlexPlanes()
421 GrallocImpl const *dev = GRALLOC_IMPL(device); in GetNumFlexPlanes()
434 gralloc1_error_t GrallocImpl::LockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, in LockBuffer() argument
439 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in LockBuffer()
456 GrallocImpl const *dev = GRALLOC_IMPL(device); in LockBuffer()
473 gralloc1_error_t GrallocImpl::LockFlex(gralloc1_device_t *device, buffer_handle_t buffer, in LockFlex() argument
485 gralloc1_error_t status = GrallocImpl::LockBuffer(device, buffer, prod_usage, cons_usage, region, in LockFlex()
491 GrallocImpl const *dev = GRALLOC_IMPL(device); in LockFlex()
497 gralloc1_error_t GrallocImpl::UnlockBuffer(gralloc1_device_t *device, buffer_handle_t buffer, in UnlockBuffer() argument
499 gralloc1_error_t status = CheckDeviceAndHandle(device, buffer); in UnlockBuffer()
509 GrallocImpl const *dev = GRALLOC_IMPL(device); in UnlockBuffer()
516 gralloc1_error_t GrallocImpl::Gralloc1Perform(gralloc1_device_t *device, int operation, ...) { in Gralloc1Perform() argument
517 if (!device) { in Gralloc1Perform()
523 GrallocImpl const *dev = GRALLOC_IMPL(device); in Gralloc1Perform()