PATH:
usr
/
src
/
kernels
/
5.14.0-611.49.2.el9_7.x86_64
/
include
/
drm
/* SPDX-License-Identifier: MIT */ #ifndef _DRM_PAGEMAP_H_ #define _DRM_PAGEMAP_H_ #include <linux/dma-direction.h> #include <linux/hmm.h> #include <linux/types.h> struct drm_pagemap; struct device; /** * enum drm_interconnect_protocol - Used to identify an interconnect protocol. * * @DRM_INTERCONNECT_SYSTEM: DMA map is system pages * @DRM_INTERCONNECT_DRIVER: DMA map is driver defined */ enum drm_interconnect_protocol { DRM_INTERCONNECT_SYSTEM, DRM_INTERCONNECT_DRIVER, /* A driver can add private values beyond DRM_INTERCONNECT_DRIVER */ }; /** * struct drm_pagemap_device_addr - Device address representation. * @addr: The dma address or driver-defined address for driver private interconnects. * @proto: The interconnect protocol. * @order: The page order of the device mapping. (Size is PAGE_SIZE << order). * @dir: The DMA direction. * * Note: There is room for improvement here. We should be able to pack into * 64 bits. */ struct drm_pagemap_device_addr { dma_addr_t addr; u64 proto : 54; u64 order : 8; u64 dir : 2; }; /** * drm_pagemap_device_addr_encode() - Encode a dma address with metadata * @addr: The dma address or driver-defined address for driver private interconnects. * @proto: The interconnect protocol. * @order: The page order of the dma mapping. (Size is PAGE_SIZE << order). * @dir: The DMA direction. * * Return: A struct drm_pagemap_device_addr encoding the above information. */ static inline struct drm_pagemap_device_addr drm_pagemap_device_addr_encode(dma_addr_t addr, enum drm_interconnect_protocol proto, unsigned int order, enum dma_data_direction dir) { return (struct drm_pagemap_device_addr) { .addr = addr, .proto = proto, .order = order, .dir = dir, }; } /** * struct drm_pagemap_ops: Ops for a drm-pagemap. */ struct drm_pagemap_ops { /** * @device_map: Map for device access or provide a virtual address suitable for * * @dpagemap: The struct drm_pagemap for the page. * @dev: The device mapper. * @page: The page to map. * @order: The page order of the device mapping. (Size is PAGE_SIZE << order). * @dir: The transfer direction. */ struct drm_pagemap_device_addr (*device_map)(struct drm_pagemap *dpagemap, struct device *dev, struct page *page, unsigned int order, enum dma_data_direction dir); /** * @device_unmap: Unmap a device address previously obtained using @device_map. * * @dpagemap: The struct drm_pagemap for the mapping. * @dev: The device unmapper. * @addr: The device address obtained when mapping. */ void (*device_unmap)(struct drm_pagemap *dpagemap, struct device *dev, struct drm_pagemap_device_addr addr); }; /** * struct drm_pagemap: Additional information for a struct dev_pagemap * used for device p2p handshaking. * @ops: The struct drm_pagemap_ops. * @dev: The struct drevice owning the device-private memory. */ struct drm_pagemap { const struct drm_pagemap_ops *ops; struct device *dev; }; #endif
[-] drm_eld.h
[edit]
[-] drm_bridge.h
[edit]
[-] spsc_queue.h
[edit]
[-] drm_gem_dma_helper.h
[edit]
[-] drm_property.h
[edit]
[-] drm_auth.h
[edit]
[-] drm_mipi_dbi.h
[edit]
[-] drm_mode_object.h
[edit]
[-] drm_pciids.h
[edit]
[+]
ttm
[-] drm_privacy_screen_machine.h
[edit]
[-] drm_fixed.h
[edit]
[-] drm_fb_helper.h
[edit]
[-] drm_gem_ttm_helper.h
[edit]
[-] drm_pagemap.h
[edit]
[-] drm_atomic_uapi.h
[edit]
[-] drm_module.h
[edit]
[+]
display
[-] drm_encoder.h
[edit]
[-] drm_file.h
[edit]
[-] drm_connector.h
[edit]
[-] drm_utils.h
[edit]
[-] drm_suballoc.h
[edit]
[+]
intel
[-] drm_audio_component.h
[edit]
[-] drm_prime.h
[edit]
[-] drm_atomic_helper.h
[edit]
[-] i915_pciids.h
[edit]
[-] drm_mipi_dsi.h
[edit]
[-] drm_writeback.h
[edit]
[-] drm_gem_framebuffer_helper.h
[edit]
[-] drm_lease.h
[edit]
[-] drm_crtc_helper.h
[edit]
[-] drm_client.h
[edit]
[-] Makefile
[edit]
[-] drm_vblank.h
[edit]
[-] drm_format_helper.h
[edit]
[-] drm_fb_dma_helper.h
[edit]
[-] drm_mode_config.h
[edit]
[-] drm_debugfs.h
[edit]
[-] drm_print.h
[edit]
[-] drm_client_event.h
[edit]
[-] drm_panel.h
[edit]
[-] drm_gem_shmem_helper.h
[edit]
[-] drm_debugfs_crc.h
[edit]
[-] drm_cache.h
[edit]
[-] drm_sysfs.h
[edit]
[+]
clients
[-] drm_edid.h
[edit]
[-] drm_modeset_helper.h
[edit]
[-] drm_atomic_state_helper.h
[edit]
[-] drm_ioctl.h
[edit]
[-] drm_blend.h
[edit]
[-] drm_gem_vram_helper.h
[edit]
[-] drm_panic.h
[edit]
[-] drm_plane_helper.h
[edit]
[-] drm_fbdev_dma.h
[edit]
[-] drm_bridge_connector.h
[edit]
[-] drm_probe_helper.h
[edit]
[-] drm_modeset_helper_vtables.h
[edit]
[-] drm_device.h
[edit]
[-] drm_exec.h
[edit]
[-] drm_atomic.h
[edit]
[-] gud.h
[edit]
[-] drm_gem.h
[edit]
[-] drm_gpuvm.h
[edit]
[-] drm_mm.h
[edit]
[-] drm_plane.h
[edit]
[-] drm_gpusvm.h
[edit]
[-] drm_simple_kms_helper.h
[edit]
[-] drm_syncobj.h
[edit]
[-] drm_gem_atomic_helper.h
[edit]
[-] drm_fbdev_shmem.h
[edit]
[-] drm_framebuffer.h
[edit]
[-] drm_accel.h
[edit]
[-] drm_self_refresh_helper.h
[edit]
[-] amd_asic_type.h
[edit]
[-] drm_privacy_screen_consumer.h
[edit]
[-] gpu_scheduler.h
[edit]
[-] drm_fbdev_ttm.h
[edit]
[-] drm_managed.h
[edit]
[-] task_barrier.h
[edit]
[-] drm_fourcc.h
[edit]
[-] drm_vblank_work.h
[edit]
[-] drm_modes.h
[edit]
[-] drm_vma_manager.h
[edit]
[-] drm_buddy.h
[edit]
[-] drm_of.h
[edit]
[+]
..
[+]
bridge
[-] drm_modeset_lock.h
[edit]
[-] drm_rect.h
[edit]
[-] drm_flip_work.h
[edit]
[-] drm_util.h
[edit]
[-] drm_damage_helper.h
[edit]
[-] drm_drv.h
[edit]
[-] drm_kunit_helpers.h
[edit]
[-] drm_color_mgmt.h
[edit]
[-] drm_crtc.h
[edit]
[-] drm_privacy_screen_driver.h
[edit]