Lines Matching defs:device
148 v3dv_gralloc_info_other(struct v3dv_device *device,
174 v3dv_gralloc_info_cros(struct v3dv_device *device,
179 const gralloc_module_t *gralloc = device->gralloc;
195 v3dv_gralloc_info(struct v3dv_device *device,
202 if (device->gralloc_type == V3DV_GRALLOC_UNKNOWN) {
205 (const hw_module_t **) &device->gralloc);
207 device->gralloc_type = V3DV_GRALLOC_OTHER;
210 const gralloc_module_t *gralloc = device->gralloc;
215 device->gralloc_type = V3DV_GRALLOC_CROS;
223 if (device->gralloc_type == V3DV_GRALLOC_CROS) {
224 return v3dv_gralloc_info_cros(device, native_buffer, out_stride,
227 return v3dv_gralloc_info_other(device, native_buffer, out_stride,
295 V3DV_FROM_HANDLE(v3dv_device, device, device_h);
296 struct v3dv_physical_device *phys_dev = &device->instance->physicalDevice;
316 return vk_errorf(device, result,
326 setup_gralloc0_usage(struct v3dv_device *device,
345 return vk_errorf(device, VK_ERROR_FORMAT_NOT_SUPPORTED,
369 V3DV_FROM_HANDLE(v3dv_device, device, device_h);
377 return setup_gralloc0_usage(device, format, imageUsage, grallocUsage);
390 V3DV_FROM_HANDLE(v3dv_device, device, device_h);
402 result = setup_gralloc0_usage(device, format, imageUsage, &grallocUsage);