Home
last modified time | relevance | path

Searched refs:drm_device (Results 1 – 23 of 23) sorted by relevance

/third_party/weston/tests/
Dsetbacklight.c46 get_drm_connector_type(struct udev_device *drm_device, uint32_t connector_id) in get_drm_connector_type() argument
53 filename = udev_device_get_devnode(drm_device); in get_drm_connector_type()
108 set_backlight(struct udev_device *drm_device, int connector_id, int blight) in set_backlight() argument
115 connector_type = get_drm_connector_type(drm_device, connector_id); in set_backlight()
119 backlight = backlight_init(drm_device, connector_type); in set_backlight()
154 struct udev_device *drm_device; in main() local
175 drm_device = NULL; in main()
178 drm_device = udev_device_new_from_syspath(udev, path); in main()
182 if (drm_device == NULL) { in main()
187 set_backlight(drm_device, connector_id, blight); in main()
[all …]
Dweston-test-fixture-compositor.c276 const char *ctmp, *drm_device; in execute_compositor() local
345 drm_device = getenv("WESTON_TEST_SUITE_DRM_DEVICE"); in execute_compositor()
346 if (!drm_device) { in execute_compositor()
353 asprintf(&tmp, "--drm-device=%s", drm_device); in execute_compositor()
/third_party/mesa3d/src/tool/pps/
Dpps_driver.cc69 Driver *Driver::get_driver(DrmDevice &&drm_device) in get_driver() argument
72 auto it = supported_drivers.find(drm_device.name); in get_driver()
74 PERFETTO_FATAL("Failed to find a driver for DRM device %s", drm_device.name.c_str()); in get_driver()
78 driver->drm_device = std::move(drm_device); in get_driver()
Dpps_datasource.cc39 for (auto &drm_device : drm_devices) { in OnSetup() local
40 if (drm_device.name != driver_name) in OnSetup()
43 if (auto driver = Driver::get_driver(std::move(drm_device))) { in OnSetup()
46 PPS_LOG_ERROR("Failed to initialize %s driver", driver->drm_device.name.c_str()); in OnSetup()
182 add_group(desc, group, driver.drm_device.name, driver.drm_device.gpu_num); in add_descriptors()
252 event->set_gpu_id(driver->drm_device.gpu_num); in trace()
286 event->set_gpu_id(driver->drm_device.gpu_num); in trace()
Dpps_driver.h33 static Driver *get_driver(DrmDevice &&drm_device);
78 DrmDevice drm_device; variable
Dpps_device.cc81 if (auto drm_device = create_drm_device(fd, gpu_num)) { in create_all() local
82 ret.emplace_back(std::move(drm_device.value())); in create_all()
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_simulator_validate.h80 struct drm_device { struct
86 struct drm_device *dev; argument
107 drm_gem_cma_create(struct drm_device *dev, size_t size);
110 vc4_cl_validate(struct drm_device *dev, struct vc4_exec_info *exec);
Dvc4_simulator.c89 struct drm_device dev;
230 drm_gem_cma_create(struct drm_device *dev, size_t size) in drm_gem_cma_create()
372 struct drm_device *dev = &file->dev; in vc4_simulator_submit_cl_ioctl()
/third_party/mesa3d/src/gallium/drivers/vc4/kernel/
Dvc4_drv.h159 vc4_validate_bin_cl(struct drm_device *dev,
165 vc4_validate_shader_recs(struct drm_device *dev, struct vc4_exec_info *exec);
173 int vc4_get_rcl(struct drm_device *dev, struct vc4_exec_info *exec);
Dvc4_gem.c33 vc4_get_bcl(struct drm_device *dev, struct vc4_exec_info *exec) in vc4_get_bcl()
140 vc4_cl_validate(struct drm_device *dev, struct vc4_exec_info *exec) in vc4_cl_validate()
Dvc4_validate.c338 struct drm_device *dev = exec->exec_bo->base.dev; in validate_tile_binning_config()
472 vc4_validate_bin_cl(struct drm_device *dev, in vc4_validate_bin_cl()
732 validate_gl_shader_rec(struct drm_device *dev, in validate_gl_shader_rec()
910 vc4_validate_shader_recs(struct drm_device *dev, in vc4_validate_shader_recs()
Dvc4_render_cl.c247 static int vc4_create_rcl_bo(struct drm_device *dev, struct vc4_exec_info *exec, in vc4_create_rcl_bo()
581 int vc4_get_rcl(struct drm_device *dev, struct vc4_exec_info *exec) in vc4_get_rcl()
/third_party/mesa3d/src/vulkan/device-select-layer/
Ddevice_select_layer.c245 struct device_pci_info *drm_device, in fill_drm_device_info() argument
260 drm_device->cpu_device = properties.properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_CPU; in fill_drm_device_info()
261 drm_device->dev_info.vendor_id = properties.properties.vendorID; in fill_drm_device_info()
262 drm_device->dev_info.device_id = properties.properties.deviceID; in fill_drm_device_info()
264 drm_device->has_bus_info = true; in fill_drm_device_info()
265 drm_device->bus_info.domain = ext_pci_properties.pciDomain; in fill_drm_device_info()
266 drm_device->bus_info.bus = ext_pci_properties.pciBus; in fill_drm_device_info()
267 drm_device->bus_info.dev = ext_pci_properties.pciDevice; in fill_drm_device_info()
268 drm_device->bus_info.func = ext_pci_properties.pciFunction; in fill_drm_device_info()
270 return drm_device->cpu_device; in fill_drm_device_info()
/third_party/weston/libweston/backend-drm/
Dlibbacklight.c153 struct backlight *backlight_init(struct udev_device *drm_device, in backlight_init() argument
167 if (!drm_device) in backlight_init()
170 syspath = udev_device_get_syspath(drm_device); in backlight_init()
Ddrm.c2119 struct udev_device *drm_device) in drm_head_create() argument
2143 head->backlight = backlight_init(drm_device, connector->connector_type); in drm_head_create()
2236 drm_backend_create_heads(struct drm_backend *b, struct udev_device *drm_device) in drm_backend_create_heads() argument
2256 head = drm_head_create(b, connector_id, drm_device); in drm_backend_create_heads()
2271 drm_backend_update_heads(struct drm_backend *b, struct udev_device *drm_device) in drm_backend_update_heads() argument
2292 head = drm_head_create(b, connector_id, drm_device); in drm_backend_update_heads()
2635 struct udev_device *device, *drm_device, *pci; in find_primary_gpu() local
2642 drm_device = NULL; in find_primary_gpu()
2669 if (!is_boot_vga && drm_device) { in find_primary_gpu()
2685 if (drm_device) in find_primary_gpu()
[all …]
Dlibbacklight.h57 struct backlight *backlight_init(struct udev_device *drm_device,
/third_party/mesa3d/src/intel/ds/
Dintel_pps_driver.cc100 if (perf_ioctl(drm_device.fd, DRM_IOCTL_I915_REG_READ, &reg_read) < 0) { in query_correlation_timestamps()
141 perf = std::make_unique<IntelPerf>(drm_device.fd); in init_perfcnt()
/third_party/mesa3d/src/panfrost/ds/
Dpan_pps_driver.cc95 dev = std::make_unique<PanfrostDevice>(drm_device.fd); in init_perfcnt()
/third_party/mesa3d/src/freedreno/ds/
Dfd_pps_driver.cc135 dev = fd_device_new(drm_device.fd); in init_perfcnt()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_device.c238 drmDevicePtr drm_device) in panvk_physical_device_init() argument
240 const char *path = drm_device->nodes[DRM_NODE_RENDER]; in panvk_physical_device_init()
303 master_fd = open(drm_device->nodes[DRM_NODE_PRIMARY], O_RDWR | O_CLOEXEC); in panvk_physical_device_init()
/third_party/mesa3d/src/amd/vulkan/
Dradv_device.c564 radv_physical_device_try_create(struct radv_instance *instance, drmDevicePtr drm_device, in radv_physical_device_try_create() argument
572 assert(drm_device == NULL); in radv_physical_device_try_create()
574 if (drm_device) { in radv_physical_device_try_create()
575 const char *path = drm_device->nodes[DRM_NODE_RENDER]; in radv_physical_device_try_create()
636 if (drm_device) { in radv_physical_device_try_create()
649 if (drm_device && instance->vk.enabled_extensions.KHR_display) { in radv_physical_device_try_create()
650 master_fd = open(drm_device->nodes[DRM_NODE_PRIMARY], O_RDWR | O_CLOEXEC); in radv_physical_device_try_create()
746 if (drm_device) { in radv_physical_device_try_create()
749 device->available_nodes = drm_device->available_nodes; in radv_physical_device_try_create()
750 device->bus_info = *drm_device->businfo.pci; in radv_physical_device_try_create()
[all …]
/third_party/mesa3d/src/intel/vulkan/
Danv_device.c744 drmDevicePtr drm_device, in anv_physical_device_try_create() argument
747 const char *primary_path = drm_device->nodes[DRM_NODE_PRIMARY]; in anv_physical_device_try_create()
748 const char *path = drm_device->nodes[DRM_NODE_RENDER]; in anv_physical_device_try_create()
816 device->pci_info.domain = drm_device->businfo.pci->domain; in anv_physical_device_try_create()
817 device->pci_info.bus = drm_device->businfo.pci->bus; in anv_physical_device_try_create()
818 device->pci_info.device = drm_device->businfo.pci->dev; in anv_physical_device_try_create()
819 device->pci_info.function = drm_device->businfo.pci->func; in anv_physical_device_try_create()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_drm.c398 drmDevicePtr drm_device) in tu_drm_device_init() argument
400 const char *path = drm_device->nodes[DRM_NODE_RENDER]; in tu_drm_device_init()
457 open(drm_device->nodes[DRM_NODE_PRIMARY], O_RDWR | O_CLOEXEC); in tu_drm_device_init()