/device/board/isoftstone/zhiyuan/kernel/driver/drivers/drm/ |
D | sunxi_drm_iommu.h | 57 priv->mapping = iommu_get_domain_for_dev(priv->drm_dev->dev); in __sunxi_iommu_create_mapping() 74 if (dev != priv->drm_dev->dev) in __sunxi_iommu_attach() 84 if (dev != priv->drm_dev->dev) in __sunxi_iommu_detach() 91 int sunxi_drm_create_iommu_mapping(struct drm_device *drm_dev); 93 void sunxi_drm_release_iommu_mapping(struct drm_device *drm_dev); 95 int sunxi_drm_iommu_attach_device(struct drm_device *drm_dev, 101 static inline bool is_drm_iommu_supported(struct drm_device *drm_dev) in is_drm_iommu_supported() argument 103 struct sunxi_drm_private *priv = drm_dev->dev_private; in is_drm_iommu_supported() 110 static inline int sunxi_drm_create_iommu_mapping(struct drm_device *drm_dev) in sunxi_drm_create_iommu_mapping() argument 115 static inline void sunxi_drm_release_iommu_mapping(struct drm_device *drm_dev) in sunxi_drm_release_iommu_mapping() argument [all …]
|
D | sunxi_drm_iommu.c | 48 int sunxi_drm_create_iommu_mapping(struct drm_device *drm_dev) in sunxi_drm_create_iommu_mapping() argument 50 struct sunxi_drm_private *priv = drm_dev->dev_private; in sunxi_drm_create_iommu_mapping() 61 void sunxi_drm_release_iommu_mapping(struct drm_device *drm_dev) in sunxi_drm_release_iommu_mapping() argument 63 struct sunxi_drm_private *priv = drm_dev->dev_private; in sunxi_drm_release_iommu_mapping() 77 int sunxi_drm_iommu_attach_device(struct drm_device *drm_dev, in sunxi_drm_iommu_attach_device() argument 80 struct sunxi_drm_private *priv = drm_dev->dev_private; in sunxi_drm_iommu_attach_device() 83 if (get_dma_ops(drm_dev->dev) != get_dma_ops(subdrv_dev)) { in sunxi_drm_iommu_attach_device() 109 void sunxi_drm_iommu_detach_device(struct drm_device *drm_dev, in sunxi_drm_iommu_detach_device() argument 112 struct sunxi_drm_private *priv = drm_dev->dev_private; in sunxi_drm_iommu_detach_device()
|
D | sunxi_drm_sysfs.c | 32 struct drm_device *drm_dev = sunxi_drm_get_drm_device(); 34 n += sunxi_drm_planes_show(buf + n, drm_dev, NULL); 54 struct drm_device *drm_dev = sunxi_drm_get_drm_device(); 56 n += sunxi_drm_crtc_show(buf + n, drm_dev); 243 struct drm_device *drm_dev = sunxi_drm_get_drm_device(); 245 n += sunxi_drm_encoder_show(buf + n, drm_dev); 265 struct drm_device *drm_dev = sunxi_drm_get_drm_device(); 267 n += sunxi_drm_connector_show(buf + n, drm_dev);
|
D | sunxi_drm_drv.c | 72 return sunxi_drv_prv.drm_dev; in sunxi_drm_get_drm_device() 716 static int sunxi_drm_init_iommu(struct drm_device *drm_dev) in sunxi_drm_init_iommu() argument 719 struct sunxi_drm_private *priv = drm_dev->dev_private; in sunxi_drm_init_iommu() 725 ret = sunxi_drm_create_iommu_mapping(drm_dev); in sunxi_drm_init_iommu() 741 sunxi_drv_prv.drm_dev = dev; in sunxi_drm_load() 770 sunxi_drv_prv.drm_dev = NULL; in sunxi_drm_load() 986 if (sunxi_drm_smooth_boot(sunxi_drv_prv.drm_dev) < 0) { in sunxi_drm_platform_probe() 1028 struct drm_device *device = sunxi_drv_prv.drm_dev; in sunxi_drm_suspend() 1047 struct drm_device *device = sunxi_drv_prv.drm_dev; in sunxi_drm_resume()
|
D | sunxi_drm_gem.c | 470 struct drm_device *drm_dev = sunxi_gem_obj->base.dev; in sunxi_drm_gem_mmap_buffer() local 482 ret = dma_mmap_attrs(drm_dev->dev, vma, sunxi_gem_obj->vaddr, in sunxi_drm_gem_mmap_buffer() 572 struct drm_device *drm_dev = obj->dev; in sunxi_drm_gem_prime_get_sg_table() local 576 return drm_prime_pages_to_sg(drm_dev, sunxi_gem_obj->pages, npages); in sunxi_drm_gem_prime_get_sg_table()
|
D | sunxi_drm_drv.h | 48 struct drm_device *drm_dev; member
|
/device/board/isoftstone/yangfan/kernel/src/driv/gpu/rockchip/ |
D | rockchip_drm_logo.c | 40 find_crtc_by_node(struct drm_device *drm_dev, struct device_node *node) in find_crtc_by_node() argument 49 drm_for_each_crtc(crtc, drm_dev) { in find_crtc_by_node() 58 find_sub_dev_by_node(struct drm_device *drm_dev, struct device_node *node) in find_sub_dev_by_node() argument 75 find_sub_dev_by_bridge(struct drm_device *drm_dev, struct device_node *node) in find_sub_dev_by_bridge() argument 87 dev_err(drm_dev->dev, "can't found port point!\n"); in find_sub_dev_by_bridge() 94 dev_err(drm_dev->dev, in find_sub_dev_by_bridge() 107 dev_err(drm_dev->dev, "can't found available connector node!\n"); in find_sub_dev_by_bridge() 214 static int init_loader_memory(struct drm_device *drm_dev) in init_loader_memory() argument 216 struct rockchip_drm_private *private = drm_dev->dev_private; in init_loader_memory() 218 struct device_node *np = drm_dev->dev->of_node; in init_loader_memory() [all …]
|
D | rockchip_drm_vvop.c | 32 struct drm_device *drm_dev; member 72 struct drm_device *dev = vvop->drm_dev; in vvop_plane_init() 246 struct drm_device *drm_dev = data; in vvop_bind() local 259 vvop->drm_dev = drm_dev; in vvop_bind() 271 ret = vvop_crtc_init(drm_dev, crtc, primary, NULL); in vvop_bind() 275 ret = drm_connector_init(drm_dev, connector, &vvop_connector_funcs, in vvop_bind() 290 ret = drm_encoder_init(drm_dev, encoder, &vvop_encoder_funcs, in vvop_bind()
|
D | rockchip_drm_backlight.c | 296 struct drm_device *drm_dev = data; in rockchip_drm_backlight_bind() local 297 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_backlight_bind() 305 mutex_lock(&drm_dev->mode_config.mutex); in rockchip_drm_backlight_bind() 307 drm_for_each_connector(connector, drm_dev) { in rockchip_drm_backlight_bind() 319 mutex_unlock(&drm_dev->mode_config.mutex); in rockchip_drm_backlight_bind() 332 struct drm_device *drm_dev = data; in rockchip_drm_backlight_unbind() local 333 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_backlight_unbind()
|
D | rockchip_drm_tve.c | 452 struct drm_device *drm_dev = data; in rockchip_tve_bind() local 487 tve->drm_dev = drm_dev; in rockchip_tve_bind() 511 encoder->possible_crtcs = rockchip_drm_of_find_possible_crtcs(drm_dev, in rockchip_tve_bind() 515 ret = drm_encoder_init(drm_dev, encoder, &rockchip_tve_encoder_funcs, in rockchip_tve_bind() 526 ret = drm_connector_init(drm_dev, connector, in rockchip_tve_bind()
|
D | rockchip_drm_vconn.c | 31 struct drm_device *drm_dev; member 350 ret = drm_simple_encoder_init(vconn->drm_dev, encoder, vconn_dev->encoder_type); in rockchip_virtual_connector_register() 358 ret = drm_connector_init(vconn->drm_dev, connector, in rockchip_virtual_connector_register() 449 vconn->drm_dev = drm; in rockchip_virtual_connector_bind()
|
D | rockchip_drm_logo.h | 40 void rockchip_drm_show_logo(struct drm_device *drm_dev);
|
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_logo.c | 39 static struct drm_crtc *find_crtc_by_node(struct drm_device *drm_dev, struct device_node *node) in find_crtc_by_node() argument 49 drm_for_each_crtc(crtc, drm_dev) in find_crtc_by_node() 59 static struct rockchip_drm_sub_dev *find_sub_dev_by_node(struct drm_device *drm_dev, struct device_… in find_sub_dev_by_node() argument 77 static struct rockchip_drm_sub_dev *find_sub_dev_by_bridge(struct drm_device *drm_dev, struct devic… in find_sub_dev_by_bridge() argument 90 dev_err(drm_dev->dev, "can't found port point!\n"); in find_sub_dev_by_bridge() 98 dev_err(drm_dev->dev, "can't found connector node, please init!\n"); in find_sub_dev_by_bridge() 110 dev_err(drm_dev->dev, "can't found available connector node!\n"); in find_sub_dev_by_bridge() 193 static int init_loader_memory(struct drm_device *drm_dev) in init_loader_memory() argument 195 struct rockchip_drm_private *private = drm_dev->dev_private; in init_loader_memory() 197 struct device_node *np = drm_dev->dev->of_node; in init_loader_memory() [all …]
|
D | rockchip_drm_drv.c | 881 int rockchip_drm_dma_attach_device(struct drm_device *drm_dev, struct device *dev) in rockchip_drm_dma_attach_device() argument 883 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_attach_device() 899 void rockchip_drm_dma_detach_device(struct drm_device *drm_dev, struct device *dev) in rockchip_drm_dma_detach_device() argument 901 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_dma_detach_device() 940 struct drm_device *drm_dev = arg; in rockchip_drm_fault_handler() local 941 struct rockchip_drm_private *priv = drm_dev->dev_private; in rockchip_drm_fault_handler() 945 drm_for_each_crtc(crtc, drm_dev) in rockchip_drm_fault_handler() 960 static int rockchip_drm_init_iommu(struct drm_device *drm_dev) in rockchip_drm_init_iommu() argument 962 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_drm_init_iommu() 983 iommu_set_fault_handler(private->domain, rockchip_drm_fault_handler, drm_dev); in rockchip_drm_init_iommu() [all …]
|
D | rockchip_rgb.h | 11 …kchip_rgb *rockchip_rgb_init(struct device *dev, struct drm_crtc *crtc, struct drm_device *drm_dev, 16 struct drm_device *drm_dev, u32 port_id) in rockchip_rgb_init() argument
|
D | analogix_dp-rockchip.c | 74 struct drm_device *drm_dev; member 440 struct drm_device *drm_dev = dp->drm_dev; in rockchip_dp_drm_create_encoder() local 444 encoder->possible_crtcs = rockchip_drm_of_find_possible_crtcs(drm_dev, dev->of_node); in rockchip_dp_drm_create_encoder() 447 ret = drm_simple_encoder_init(drm_dev, encoder, DRM_MODE_ENCODER_TMDS); in rockchip_dp_drm_create_encoder() 461 struct drm_device *drm_dev = data; in rockchip_dp_bind() local 464 dp->drm_dev = drm_dev; in rockchip_dp_bind() 492 ret = analogix_dp_bind(dp->adp, drm_dev); in rockchip_dp_bind()
|
D | rockchip_rgb.c | 257 struct drm_device *drm_dev = data; in rockchip_rgb_bind() local 268 encoder->possible_crtcs = rockchip_drm_of_find_possible_crtcs(drm_dev, dev->of_node); in rockchip_rgb_bind() 270 … ret = drm_encoder_init(drm_dev, encoder, &rockchip_rgb_encoder_funcs, DRM_MODE_ENCODER_DPI, NULL); in rockchip_rgb_bind() 279 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_rgb_bind() 283 …ret = drm_connector_init(drm_dev, connector, &rockchip_rgb_connector_funcs, DRM_MODE_CONNECTOR_DPI… in rockchip_rgb_bind()
|
D | rockchip_lvds.c | 358 struct drm_device *drm_dev = data; in rockchip_lvds_bind() local 375 encoder->possible_crtcs = rockchip_drm_of_find_possible_crtcs(drm_dev, dev->of_node); in rockchip_lvds_bind() 377 …ret = drm_encoder_init(drm_dev, encoder, &rockchip_lvds_encoder_funcs, DRM_MODE_ENCODER_LVDS, NULL… in rockchip_lvds_bind() 386 struct rockchip_drm_private *private = drm_dev->dev_private; in rockchip_lvds_bind() 388 …ret = drm_connector_init(drm_dev, connector, &rockchip_lvds_connector_funcs, DRM_MODE_CONNECTOR_LV… in rockchip_lvds_bind() 390 DRM_DEV_ERROR(drm_dev->dev, "failed to initialize connector: %d\n", ret); in rockchip_lvds_bind()
|
D | rockchip_drm_logo.h | 39 void rockchip_drm_show_logo(struct drm_device *drm_dev);
|
D | rockchip_drm_vop.c | 206 struct drm_device *drm_dev; member 1595 rockchip_drm_dma_detach_device(vop->drm_dev, vop->dev); in vop_crtc_atomic_disable() 3706 ret = rockchip_drm_dma_attach_device(vop->drm_dev, vop->dev); in vop_crtc_atomic_flush() 3846 drm_connector_list_iter_begin(vop->drm_dev, &conn_iter); in vop_get_edp_connector() 3906 struct drm_device *drm_dev = crtc->dev; in vop_crtc_atomic_get_property() local 3907 struct rockchip_drm_private *private = drm_dev->dev_private; in vop_crtc_atomic_get_property() 3908 struct drm_mode_config *mode_config = &drm_dev->mode_config; in vop_crtc_atomic_get_property() 3955 struct drm_device *drm_dev = crtc->dev; in vop_crtc_atomic_set_property() local 3956 struct rockchip_drm_private *private = drm_dev->dev_private; in vop_crtc_atomic_set_property() 3957 struct drm_mode_config *mode_config = &drm_dev->mode_config; in vop_crtc_atomic_set_property() [all …]
|
D | cdn-dp-core.c | 947 drm_kms_helper_hotplug_event(dp->drm_dev); in cdn_dp_pd_event_work() 956 struct drm_device *drm_dev = data; in cdn_dp_bind() local 964 dp->drm_dev = drm_dev; in cdn_dp_bind() 974 encoder->possible_crtcs = rockchip_drm_of_find_possible_crtcs(drm_dev, dev->of_node); in cdn_dp_bind() 977 ret = drm_simple_encoder_init(drm_dev, encoder, DRM_MODE_ENCODER_TMDS); in cdn_dp_bind() 989 …ret = drm_connector_init(drm_dev, connector, &cdn_dp_atomic_connector_funcs, DRM_MODE_CONNECTOR_Di… in cdn_dp_bind()
|
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_logo.c | 40 find_crtc_by_node(struct drm_device *drm_dev, struct device_node *node) in find_crtc_by_node() argument 49 drm_for_each_crtc(crtc, drm_dev) { in find_crtc_by_node() 58 find_sub_dev_by_node(struct drm_device *drm_dev, struct device_node *node) in find_sub_dev_by_node() argument 75 find_sub_dev_by_bridge(struct drm_device *drm_dev, struct device_node *node) in find_sub_dev_by_bridge() argument 87 dev_err(drm_dev->dev, "can't found port point!\n"); in find_sub_dev_by_bridge() 94 dev_err(drm_dev->dev, in find_sub_dev_by_bridge() 107 dev_err(drm_dev->dev, "can't found available connector node!\n"); in find_sub_dev_by_bridge() 187 static int init_loader_memory(struct drm_device *drm_dev) in init_loader_memory() argument 189 struct rockchip_drm_private *private = drm_dev->dev_private; in init_loader_memory() 191 struct device_node *np = drm_dev->dev->of_node; in init_loader_memory() [all …]
|
D | rockchip_drm_logo.h | 39 void rockchip_drm_show_logo(struct drm_device *drm_dev);
|
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/nouveau/ |
D | nouveau_drm.c | 687 struct drm_device *drm_dev; in nouveau_drm_probe() local 721 drm_dev = drm_dev_alloc(&driver_pci, &pdev->dev); in nouveau_drm_probe() 722 if (IS_ERR(drm_dev)) { in nouveau_drm_probe() 723 ret = PTR_ERR(drm_dev); in nouveau_drm_probe() 732 drm_dev->pdev = pdev; in nouveau_drm_probe() 733 pci_set_drvdata(pdev, drm_dev); in nouveau_drm_probe() 735 ret = nouveau_drm_device_init(drm_dev); in nouveau_drm_probe() 740 ret = drm_dev_register(drm_dev, pent->driver_data); in nouveau_drm_probe() 749 nouveau_drm_device_fini(drm_dev); in nouveau_drm_probe() 753 drm_dev_put(drm_dev); in nouveau_drm_probe() [all …]
|
/device/soc/rockchip/rk3588/kernel/include/drm/ |
D | rockchip_drm_logo.h | 39 void rockchip_drm_show_logo(struct drm_device *drm_dev);
|