Home
last modified time | relevance | path

Searched refs:kdev (Results 1 – 25 of 30) sorted by relevance

12

/dragonfly/sys/dev/drm/i915/
H A Di915_sysfs.c145 struct device *kdev = kobj_to_dev(kobj);
180 struct device *kdev = kobj_to_dev(kobj);
501 struct device *kdev = kobj_to_dev(kobj);
565 struct device *kdev = dev_priv->drm.primary->kdev; in i915_setup_sysfs() local
571 ret = sysfs_merge_group(&kdev->kobj, in i915_setup_sysfs()
577 ret = sysfs_merge_group(&kdev->kobj, in i915_setup_sysfs()
583 ret = sysfs_merge_group(&kdev->kobj, in i915_setup_sysfs()
595 ret = device_create_bin_file(kdev, in i915_setup_sysfs()
611 i915_setup_error_capture(kdev); in i915_setup_sysfs()
616 struct device *kdev = dev_priv->drm.primary->kdev; in i915_teardown_sysfs() local
[all …]
H A Dintel_audio.c692 static void i915_audio_component_get_power(struct device *kdev)
694 intel_display_power_get(kdev_to_i915(kdev), POWER_DOMAIN_AUDIO);
697 static void i915_audio_component_put_power(struct device *kdev)
705 struct drm_i915_private *dev_priv = kdev_to_i915(kdev);
711 i915_audio_component_get_power(kdev);
729 i915_audio_component_put_power(kdev);
735 struct drm_i915_private *dev_priv = kdev_to_i915(kdev);
796 struct drm_i915_private *dev_priv = kdev_to_i915(kdev);
806 i915_audio_component_get_power(kdev);
830 i915_audio_component_put_power(kdev);
[all …]
H A Di915_drv.c86 struct device *kdev = dev_priv->drm.dev; in __i915_printk() local
104 dev_notice(kdev, "%s", FDO_BUG_MSG); in __i915_printk()
2096 struct pci_dev *pdev = to_pci_dev(kdev);
2171 ret = i915_gem_freeze(kdev_to_i915(kdev));
2199 return i915_pm_resume_early(kdev);
2202 static int i915_pm_thaw(struct device *kdev)
2204 return i915_pm_resume(kdev);
2210 return i915_pm_resume_early(kdev);
2215 return i915_pm_resume(kdev);
2580 struct pci_dev *pdev = to_pci_dev(kdev);
[all …]
H A Di915_pci.c750 i915_pci_probe_dfly(device_t kdev) in i915_pci_probe_dfly() argument
757 if (pci_get_class(kdev) != PCIC_DISPLAY) in i915_pci_probe_dfly()
760 if (pci_get_vendor(kdev) != PCI_VENDOR_ID_INTEL) in i915_pci_probe_dfly()
763 device = pci_get_device(kdev); in i915_pci_probe_dfly()
774 if (!strcmp(device_get_name(kdev), "drmsub")) in i915_pci_probe_dfly()
775 bsddev = device_get_parent(kdev); in i915_pci_probe_dfly()
777 bsddev = kdev; in i915_pci_probe_dfly()
787 static int i915_driver_attach(device_t kdev) in i915_driver_attach() argument
H A Dintel_runtime_pm.c2562 pm_runtime_put(kdev); in intel_power_domains_fini()
3141 struct device *kdev = &pdev->dev; in intel_runtime_pm_get() local
3144 ret = pm_runtime_get_sync(kdev); in intel_runtime_pm_get()
3165 struct device *kdev = &pdev->dev; in intel_runtime_pm_get_if_in_use() local
3210 struct device *kdev = &pdev->dev; in intel_runtime_pm_get_noresume()
3215 pm_runtime_get_noresume(kdev); in intel_runtime_pm_get_noresume()
3232 struct device *kdev = &pdev->dev; in intel_runtime_pm_put() local
3237 pm_runtime_mark_last_busy(kdev); in intel_runtime_pm_put()
3238 pm_runtime_put_autosuspend(kdev); in intel_runtime_pm_put()
3255 struct device *kdev = &pdev->dev; in intel_runtime_pm_enable()
[all …]
H A Di915_oa_hsw.c109 show_render_basic_id(struct device *kdev, struct device_attribute *attr, char *buf)
H A Dintel_sdvo.c2182 return sysfs_create_link(&connector->kdev->kobj, in intel_sdvo_connector_register()
2192 sysfs_remove_link(&connector->kdev->kobj, in intel_sdvo_connector_unregister()
H A Di915_drv.h2769 static inline struct drm_i915_private *kdev_to_i915(struct device *kdev) in kdev_to_i915() argument
2771 return to_i915(dev_get_drvdata(kdev)); in kdev_to_i915()
H A Di915_irq.c1313 kobject_uevent_env(&dev_priv->drm.primary->kdev->kobj, in ivybridge_parity_work()
2759 struct kobject *kobj = &dev_priv->drm.primary->kdev->kobj; in i915_reset_device()
H A Di915_perf.c2733 &dev_priv->drm.primary->kdev->kobj); in i915_perf_register()
/dragonfly/sys/dev/drm/
H A Ddrm_sysfs.c35 if (connector->kdev) in drm_sysfs_connector_add()
39 connector->kdev = kzalloc(sizeof(struct device), M_WAITOK); in drm_sysfs_connector_add()
52 if (connector->kdev) in drm_sysfs_connector_remove()
53 kfree(connector->kdev); in drm_sysfs_connector_remove()
82 struct device *kdev; in drm_sysfs_minor_alloc() local
93 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in drm_sysfs_minor_alloc()
94 if (!kdev) in drm_sysfs_minor_alloc()
100 kdev->parent = minor->dev->dev; in drm_sysfs_minor_alloc()
101 dev_set_drvdata(kdev, minor); in drm_sysfs_minor_alloc()
103 r = dev_set_name(kdev, dev_str); in drm_sysfs_minor_alloc()
[all …]
H A Ddrm_drv.c243 minor->kdev = drm_sysfs_minor_alloc(minor); in drm_minor_alloc()
244 if (IS_ERR(minor->kdev)) { in drm_minor_alloc()
245 r = PTR_ERR(minor->kdev); in drm_minor_alloc()
272 put_device(minor->kdev); in drm_minor_free()
302 ret = device_add(minor->kdev); in drm_minor_register()
341 device_del(minor->kdev); in drm_minor_unregister()
848 &minor->kdev->kobj, in create_compat_control_link()
1194 drm_create_cdevs(device_t kdev)
1203 unit = device_get_unit(kdev);
1286 struct cdev *kdev = ap->a_head.a_dev; in drm_mmap_single() local
[all …]
H A Ddrm_file.c107 static int drm_open_helper(struct cdev *kdev, int flags,
150 struct cdev *kdev = ap->a_head.a_dev; in drm_open() local
172 retcode = drm_open_helper(kdev, flags, filp, minor); in drm_open()
174 retcode = drm_open_helper(kdev, flags, ap->a_fp, minor); in drm_open()
307 static int drm_open_helper(struct cdev *kdev, int flags, in drm_open_helper() argument
363 kdev->si_drv1 = dev; in drm_open_helper()
H A Ddrm_vm.c49 struct cdev *kdev = ap->a_head.a_dev; in drm_mmap() local
51 struct drm_device *dev = drm_get_device_from_kdev(kdev); in drm_mmap()
H A Ddrm_dragonfly.c231 int drm_device_detach(device_t kdev) in drm_device_detach() argument
233 struct drm_softc *softc = device_get_softc(kdev); in drm_device_detach()
/dragonfly/sys/dev/drm/radeon/
H A Dradeon_drv.c711 radeon_pci_probe_dfly(device_t kdev) in radeon_pci_probe_dfly() argument
718 if (pci_get_class(kdev) != PCIC_DISPLAY) in radeon_pci_probe_dfly()
721 if (pci_get_vendor(kdev) != PCI_VENDOR_ID_ATI) in radeon_pci_probe_dfly()
724 device = pci_get_device(kdev); in radeon_pci_probe_dfly()
735 if (!strcmp(device_get_name(kdev), "drmsub")) in radeon_pci_probe_dfly()
736 bsddev = device_get_parent(kdev); in radeon_pci_probe_dfly()
738 bsddev = kdev; in radeon_pci_probe_dfly()
748 static int radeon_driver_attach(device_t kdev) in radeon_driver_attach() argument
754 radeon_suspend(device_t kdev) in radeon_suspend() argument
756 struct drm_softc *softc = device_get_softc(kdev); in radeon_suspend()
[all …]
H A Datombios_dp.c234 radeon_connector->ddc_bus->aux.dev = radeon_connector->base.kdev; in radeon_dp_aux_init()
H A Dradeon_legacy_encoders.c397 bd = backlight_device_register(bl_name, drm_connector->kdev, in radeon_legacy_backlight_init()
/dragonfly/sys/dev/misc/atkbdc_layer/
H A Datkbdc_isa.c209 atkbdc_device_t *kdev; in atkbdc_add_device() local
216 kdev = kmalloc(sizeof(struct atkbdc_device), M_ATKBDDEV, in atkbdc_add_device()
220 kdev->irq = t; in atkbdc_add_device()
222 kdev->irq = -1; in atkbdc_add_device()
225 kdev->flags = t; in atkbdc_add_device()
227 kdev->flags = 0; in atkbdc_add_device()
230 device_set_ivars(child, kdev); in atkbdc_add_device()
/dragonfly/sys/dev/agp/
H A Dagp.c777 cdev_t kdev = ap->a_head.a_dev; in agp_open() local
778 device_t dev = kdev->si_drv1; in agp_open()
792 cdev_t kdev = ap->a_head.a_dev; in agp_close() local
793 device_t dev = kdev->si_drv1; in agp_close()
818 cdev_t kdev = ap->a_head.a_dev; in agp_ioctl() local
819 device_t dev = kdev->si_drv1; in agp_ioctl()
856 cdev_t kdev = ap->a_head.a_dev; in agp_mmap() local
857 device_t dev = kdev->si_drv1; in agp_mmap()
/dragonfly/sys/dev/drm/amd/amdgpu/
H A Damdgpu_drv.c931 amdgpu_pci_probe_dfly(device_t kdev) in amdgpu_pci_probe_dfly() argument
935 if (pci_get_class(kdev) != PCIC_DISPLAY) in amdgpu_pci_probe_dfly()
938 if (pci_get_vendor(kdev) != PCI_VENDOR_ID_ATI) in amdgpu_pci_probe_dfly()
941 device = pci_get_device(kdev); in amdgpu_pci_probe_dfly()
956 amdgpu_attach_dfly(device_t kdev) in amdgpu_attach_dfly() argument
961 if (!strcmp(device_get_name(kdev), "drmsub")) in amdgpu_attach_dfly()
962 bsddev = device_get_parent(kdev); in amdgpu_attach_dfly()
964 bsddev = kdev; in amdgpu_attach_dfly()
H A Datombios_dp.c192 amdgpu_connector->ddc_bus->aux.dev = amdgpu_connector->base.kdev; in amdgpu_atombios_dp_aux_init()
/dragonfly/sys/dev/drm/include/drm/
H A DdrmP.h431 int drm_create_cdevs(device_t kdev);
437 int drm_device_detach(device_t kdev);
H A Ddrm_file.h70 struct device *kdev; /* Linux device */ member
H A Ddrm_connector.h735 struct device *kdev; member

12