sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget/translations/zh_CN/gpu/drm-mmmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/zh_TW/gpu/drm-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/it_IT/gpu/drm-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/ja_JP/gpu/drm-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/ko_KR/gpu/drm-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/pt_BR/gpu/drm-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/sp_SP/gpu/drm-mmmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hDRM Memory Managementh]hDRM Memory Management}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhh8/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm.rsthKubh paragraph)}(hX<Modern Linux systems require large amount of graphics memory to store frame buffers, textures, vertices and other graphics-related data. Given the very dynamic nature of many of that data, managing graphics memory efficiently is thus crucial for the graphics stack and plays a central role in the DRM infrastructure.h]hX<Modern Linux systems require large amount of graphics memory to store frame buffers, textures, vertices and other graphics-related data. Given the very dynamic nature of many of that data, managing graphics memory efficiently is thus crucial for the graphics stack and plays a central role in the DRM infrastructure.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXThe DRM core includes two memory managers, namely Translation Table Manager (TTM) and Graphics Execution Manager (GEM). TTM was the first DRM memory manager to be developed and tried to be a one-size-fits-them all solution. It provides a single userspace API to accommodate the need of all hardware, supporting both Unified Memory Architecture (UMA) devices and devices with dedicated video RAM (i.e. most discrete video cards). This resulted in a large, complex piece of code that turned out to be hard to use for driver development.h]hXThe DRM core includes two memory managers, namely Translation Table Manager (TTM) and Graphics Execution Manager (GEM). TTM was the first DRM memory manager to be developed and tried to be a one-size-fits-them all solution. It provides a single userspace API to accommodate the need of all hardware, supporting both Unified Memory Architecture (UMA) devices and devices with dedicated video RAM (i.e. most discrete video cards). This resulted in a large, complex piece of code that turned out to be hard to use for driver development.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hXGEM started as an Intel-sponsored project in reaction to TTM's complexity. Its design philosophy is completely different: instead of providing a solution to every graphics memory-related problems, GEM identified common code between drivers and created a support library to share it. GEM has simpler initialization and execution requirements than TTM, but has no video RAM management capabilities and is thus limited to UMA devices.h]hXGEM started as an Intel-sponsored project in reaction to TTM’s complexity. Its design philosophy is completely different: instead of providing a solution to every graphics memory-related problems, GEM identified common code between drivers and created a support library to share it. GEM has simpler initialization and execution requirements than TTM, but has no video RAM management capabilities and is thus limited to UMA devices.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(h#The Translation Table Manager (TTM)h]h#The Translation Table Manager (TTM)}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hFTTM is a memory manager for accelerator devices with dedicated memory.h]hFTTM is a memory manager for accelerator devices with dedicated memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:31: ./drivers/gpu/drm/ttm/ttm_module.chK+hhhhubh)}(hThe basic idea is that resources are grouped together in buffer objects of certain size and TTM handles lifetime, movement and CPU mappings of those objects.h]hThe basic idea is that resources are grouped together in buffer objects of certain size and TTM handles lifetime, movement and CPU mappings of those objects.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:31: ./drivers/gpu/drm/ttm/ttm_module.chK-hhhhubh)}(h6TODO: Add more design background and information here.h]h6TODO: Add more design background and information here.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:31: ./drivers/gpu/drm/ttm/ttm_module.chK1hhhhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlettm_caching (C enum) c.ttm_cachinghNtauh1j5hhhhhNhNubhdesc)}(hhh](hdesc_signature)}(h ttm_cachingh]hdesc_signature_line)}(henum ttm_cachingh](hdesc_sig_keyword)}(henumh]henum}(hjYhhhNhNubah}(h]h ]kah"]h$]h&]uh1jWhjShhhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:34: ./include/drm/ttm/ttm_caching.hhKubhdesc_sig_space)}(h h]h }(hjkhhhNhNubah}(h]h ]wah"]h$]h&]uh1jihjShhhjhhKubh desc_name)}(h ttm_cachingh]h desc_sig_name)}(hjOh]h ttm_caching}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhj|ubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jzhjShhhjhhKubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1jQsphinx_line_type declaratorhjMhhhjhhKubah}(h]jDah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jKhjhhKhjHhhubh desc_content)}(hhh]h)}(h&CPU caching and BUS snooping behavior.h]h&CPU caching and BUS snooping behavior.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:34: ./include/drm/ttm/ttm_caching.hhK!hjhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjhhKubeh}(h]h ](cenumeh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1jFhhhhhNhNubh container)}(hXD**Constants** ``ttm_uncached`` Most defensive option for device mappings, don't even allow write combining. ``ttm_write_combined`` Don't cache read accesses, but allow at least writes to be combined. ``ttm_cached`` Fully cached like normal system memory, requires that devices snoop the CPU cache on accesses.h](h)}(h **Constants**h]hstrong)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:34: ./include/drm/ttm/ttm_caching.hhK%hjubhdefinition_list)}(hhh](hdefinition_list_item)}(h^``ttm_uncached`` Most defensive option for device mappings, don't even allow write combining. h](hterm)}(h``ttm_uncached``h]hliteral)}(hjh]h ttm_uncached}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:34: ./include/drm/ttm/ttm_caching.hhK)hjubh definition)}(hhh]h)}(hLMost defensive option for device mappings, don't even allow write combining.h]hNMost defensive option for device mappings, don’t even allow write combining.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:34: ./include/drm/ttm/ttm_caching.hhK(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK)hjubj)}(h\``ttm_write_combined`` Don't cache read accesses, but allow at least writes to be combined. h](j)}(h``ttm_write_combined``h]j)}(hjCh]httm_write_combined}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:34: ./include/drm/ttm/ttm_caching.hhK-hj=ubj)}(hhh]h)}(hDDon't cache read accesses, but allow at least writes to be combined.h]hFDon’t cache read accesses, but allow at least writes to be combined.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:34: ./include/drm/ttm/ttm_caching.hhK,hjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhK-hjubj)}(hm``ttm_cached`` Fully cached like normal system memory, requires that devices snoop the CPU cache on accesses.h](j)}(h``ttm_cached``h]j)}(hj}h]h ttm_cached}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:34: ./include/drm/ttm/ttm_caching.hhK0hjwubj)}(hhh]h)}(h^Fully cached like normal system memory, requires that devices snoop the CPU cache on accesses.h]h^Fully cached like normal system memory, requires that devices snoop the CPU cache on accesses.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK0hjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhK0hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh](h)}(hTTM device object referenceh]hTTM device object reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK&ubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_global (C struct) c.ttm_globalhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h ttm_globalh]jR)}(hstruct ttm_globalh](jX)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(h ttm_globalh]j)}(hjh]h ttm_global}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h)}(h!Buffer object driver global data.h]h!Buffer object driver global data.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK(hj'hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjBjjBjjjuh1jFhhhjhNhNubj)}(hX**Definition**:: struct ttm_global { struct page *dummy_read_page; struct list_head device_list; atomic_t bo_count; }; **Members** ``dummy_read_page`` Pointer to a dummy page used for mapping requests of unpopulated pages. Constant after init. ``device_list`` List of buffer object devices. Protected by ttm_global_mutex. ``bo_count`` Number of buffer objects allocated by devices.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh:}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK,hjFubh literal_block)}(hqstruct ttm_global { struct page *dummy_read_page; struct list_head device_list; atomic_t bo_count; };h]hqstruct ttm_global { struct page *dummy_read_page; struct list_head device_list; atomic_t bo_count; };}hjisbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK.hjFubh)}(h **Members**h]j)}(hjzh]hMembers}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK4hjFubj)}(hhh](j)}(hq``dummy_read_page`` Pointer to a dummy page used for mapping requests of unpopulated pages. Constant after init. h](j)}(h``dummy_read_page``h]j)}(hjh]hdummy_read_page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK/hjubj)}(hhh]h)}(h\Pointer to a dummy page used for mapping requests of unpopulated pages. Constant after init.h]h\Pointer to a dummy page used for mapping requests of unpopulated pages. Constant after init.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK/hjubj)}(hN``device_list`` List of buffer object devices. Protected by ttm_global_mutex. h](j)}(h``device_list``h]j)}(hjh]h device_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK5hjubj)}(hhh]h)}(h=List of buffer object devices. Protected by ttm_global_mutex.h]h=List of buffer object devices. Protected by ttm_global_mutex.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjubj)}(h;``bo_count`` Number of buffer objects allocated by devices.h](j)}(h ``bo_count``h]j)}(hj h]hbo_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK9hjubj)}(hhh]h)}(h.Number of buffer objects allocated by devices.h]h.Number of buffer objects allocated by devices.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK:hj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hK9hjubeh}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_device (C struct) c.ttm_devicehNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h ttm_deviceh]jR)}(hstruct ttm_deviceh](jX)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjchhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK@ubjj)}(h h]h }(hjuhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjchhhjthK@ubj{)}(h ttm_deviceh]j)}(hjah]h ttm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjchhhjthK@ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj_hhhjthK@ubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1jKhjthK@hj\hhubj)}(hhh]h)}(h*Buffer object driver device-specific data.h]h*Buffer object driver device-specific data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjthK@ubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX,**Definition**:: struct ttm_device { struct list_head device_list; unsigned int alloc_flags; const struct ttm_device_funcs *funcs; struct ttm_resource_manager sysman; struct ttm_resource_manager *man_drv[TTM_NUM_MEM_TYPES]; struct drm_vma_offset_manager *vma_manager; struct ttm_pool pool; spinlock_t lru_lock; struct list_head unevictable; struct address_space *dev_mapping; struct workqueue_struct *wq; }; **Members** ``device_list`` Our entry in the global device list. Constant after bo device init ``alloc_flags`` TTM_ALLOCATION_* flags. ``funcs`` Function table for the device. Constant after bo device init ``sysman`` Resource manager for the system domain. Access via ttm_manager_type. ``man_drv`` An array of resource_managers, one per resource type. ``vma_manager`` Address space manager for finding BOs to mmap. ``pool`` page pool for the device. ``lru_lock`` Protection for the per manager LRU and ddestroy lists. ``unevictable`` Buffer objects which are pinned or swapped and as such not on an LRU list. ``dev_mapping`` A pointer to the struct address_space for invalidating CPU mappings on buffer move. Protected by load/unload sync. ``wq`` Work queue structure for the delayed delete workqueue.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhKhjubjh)}(hXstruct ttm_device { struct list_head device_list; unsigned int alloc_flags; const struct ttm_device_funcs *funcs; struct ttm_resource_manager sysman; struct ttm_resource_manager *man_drv[TTM_NUM_MEM_TYPES]; struct drm_vma_offset_manager *vma_manager; struct ttm_pool pool; spinlock_t lru_lock; struct list_head unevictable; struct address_space *dev_mapping; struct workqueue_struct *wq; };h]hXstruct ttm_device { struct list_head device_list; unsigned int alloc_flags; const struct ttm_device_funcs *funcs; struct ttm_resource_manager sysman; struct ttm_resource_manager *man_drv[TTM_NUM_MEM_TYPES]; struct drm_vma_offset_manager *vma_manager; struct ttm_pool pool; spinlock_t lru_lock; struct list_head unevictable; struct address_space *dev_mapping; struct workqueue_struct *wq; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhKhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhKhjubj)}(hhh](j)}(hS``device_list`` Our entry in the global device list. Constant after bo device init h](j)}(h``device_list``h]j)}(hjh]h device_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhKhjubj)}(hhh]h)}(hBOur entry in the global device list. Constant after bo device inith]hBOur entry in the global device list. Constant after bo device init}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhKhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hKhj ubj)}(h(``alloc_flags`` TTM_ALLOCATION_* flags. h](j)}(h``alloc_flags``h]j)}(hjPh]h alloc_flags}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhKhjJubj)}(hhh]h)}(hTTM_ALLOCATION_* flags.h]hTTM_ALLOCATION_* flags.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehKhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehKhj ubj)}(hG``funcs`` Function table for the device. Constant after bo device init h](j)}(h ``funcs``h]j)}(hjh]hfuncs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhKhjubj)}(hhh]h)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhK\hjhhubeh}(h] ttm-resource-placement-referenceah ]h"] ttm resource placement referenceah$]h&]uh1hhhhhhhhK/ubh)}(hhh](h)}(hTTM resource object referenceh]hTTM resource object reference}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhhhhhK5ubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBTTM_NUM_MOVE_FENCES (C macro)c.TTM_NUM_MOVE_FENCEShNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(hTTM_NUM_MOVE_FENCESh]jR)}(hTTM_NUM_MOVE_FENCESh]j{)}(hTTM_NUM_MOVE_FENCESh]j)}(hjyh]hTTM_NUM_MOVE_FENCES}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj{hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhK7ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjwhhhjhK7ubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1jKhjhK7hjthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjhK7ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhjUhNhNubh)}(h``TTM_NUM_MOVE_FENCES``h]j)}(hjh]hTTM_NUM_MOVE_FENCES}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhK9hjUhhubh block_quote)}(h How many entities can be used for evictions **Description** Pipelined evictions can be spread on multiple entities. This is the max number of entities that can be used by the driver for that purpose. h](j)}(h,How many entities can be used for evictions h]h)}(h+How many entities can be used for evictionsh]h+How many entities can be used for evictions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhK7hjubah}(h]h ]h"]h$]h&]uh1jhjhK7hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhK9hjubh)}(hPipelined evictions can be spread on multiple entities. This is the max number of entities that can be used by the driver for that purpose.h]hPipelined evictions can be spread on multiple entities. This is the max number of entities that can be used by the driver for that purpose.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhK8hjubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjUhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_lru_item_type (C enum)c.ttm_lru_item_typehNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(httm_lru_item_typeh]jR)}(henum ttm_lru_item_typeh](jX)}(hj[h]henum}(hj0hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj,hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhK?ubjj)}(h h]h }(hj>hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,hhhj=hK?ubj{)}(httm_lru_item_typeh]j)}(hj*h]httm_lru_item_type}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj=hK?ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj(hhhj=hK?ubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jKhj=hK?hj%hhubj)}(hhh]h)}(h!enumerate ttm_lru_item subclassesh]h!enumerate ttm_lru_item subclasses}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhK@hjohhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj=hK?ubeh}(h]h ](jenumeh"]h$]h&]jjjjjjjjjuh1jFhhhjUhNhNubj)}(hl**Constants** ``TTM_LRU_RESOURCE`` The resource subclass ``TTM_LRU_HITCH`` The iterator hitch subclassh](h)}(h **Constants**h]j)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKDhjubj)}(hhh](j)}(h+``TTM_LRU_RESOURCE`` The resource subclass h](j)}(h``TTM_LRU_RESOURCE``h]j)}(hjh]hTTM_LRU_RESOURCE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKGhjubj)}(hhh]h)}(hThe resource subclassh]hThe resource subclass}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKGhjubj)}(h-``TTM_LRU_HITCH`` The iterator hitch subclassh](j)}(h``TTM_LRU_HITCH``h]j)}(hjh]h TTM_LRU_HITCH}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKIhjubj)}(hhh]h)}(hThe iterator hitch subclassh]hThe iterator hitch subclass}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKIhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_lru_item (C struct)c.ttm_lru_itemhNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(h ttm_lru_itemh]jR)}(hstruct ttm_lru_itemh](jX)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKOubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBhhhjShKOubj{)}(h ttm_lru_itemh]j)}(hj@h]h ttm_lru_item}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjShKOubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj>hhhjShKOubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jKhjShKOhj;hhubj)}(hhh]h)}(h The TTM lru list node base classh]h The TTM lru list node base class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKJhjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjShKOubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjUhNhNubj)}(h**Definition**:: struct ttm_lru_item { struct list_head link; enum ttm_lru_item_type type; }; **Members** ``link`` The list link ``type`` The subclass typeh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKNhjubjh)}(hTstruct ttm_lru_item { struct list_head link; enum ttm_lru_item_type type; };h]hTstruct ttm_lru_item { struct list_head link; enum ttm_lru_item_type type; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jghY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKPhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKUhjubj)}(hhh](j)}(h``link`` The list link h](j)}(h``link``h]j)}(hjh]hlink}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKLhjubj)}(hhh]h)}(h The list linkh]h The list link}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKLhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKLhjubj)}(h``type`` The subclass typeh](j)}(h``type``h]j)}(hj.h]htype}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKLhj(ubj)}(hhh]h)}(hThe subclass typeh]hThe subclass type}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKLhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_lru_item_init (C function)c.ttm_lru_item_inithNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(hOvoid ttm_lru_item_init (struct ttm_lru_item *item, enum ttm_lru_item_type type)h]jR)}(hNvoid ttm_lru_item_init(struct ttm_lru_item *item, enum ttm_lru_item_type type)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKTubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKTubj{)}(httm_lru_item_inith]j)}(httm_lru_item_inith]httm_lru_item_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKTubj)}(h8(struct ttm_lru_item *item, enum ttm_lru_item_type type)h](j)}(hstruct ttm_lru_item *itemh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h ttm_lru_itemh]h ttm_lru_item}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.ttm_lru_item_initasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hitemh]hitem}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum ttm_lru_item_type typeh](jX)}(hj[h]henum}(hj7hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj3ubjj)}(h h]h }(hjDhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3ubh)}(hhh]j)}(httm_lru_item_typeh]httm_lru_item_type}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjWmodnameN classnameNj+j.)}j1]jc.ttm_lru_item_initasbuh1hhj3ubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3ubj)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKTubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKTubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1jKhjhKThj}hhubj)}(hhh]h)}(h initialize a struct ttm_lru_itemh]h initialize a struct ttm_lru_item}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKThjhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhjhKTubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjUhNhNubj)}(h{**Parameters** ``struct ttm_lru_item *item`` The item to initialize ``enum ttm_lru_item_type type`` The subclass typeh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKXhjubj)}(hhh](j)}(h5``struct ttm_lru_item *item`` The item to initialize h](j)}(h``struct ttm_lru_item *item``h]j)}(hjh]hstruct ttm_lru_item *item}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKUhjubj)}(hhh]h)}(hThe item to initializeh]hThe item to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKUhjubj)}(h1``enum ttm_lru_item_type type`` The subclass typeh](j)}(h``enum ttm_lru_item_type type``h]j)}(hj%h]henum ttm_lru_item_type type}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKWhjubj)}(hhh]h)}(hThe subclass typeh]hThe subclass type}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKVhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hKWhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_resource_manager (C struct)c.ttm_resource_managerhNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(httm_resource_managerh]jR)}(hstruct ttm_resource_managerh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj{hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhK[ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj{hhhjhK[ubj{)}(httm_resource_managerh]j)}(hjyh]httm_resource_manager}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj{hhhjhK[ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjwhhhjhK[ubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1jKhjhK[hjthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjhK[ubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjUhNhNubj)}(hX**Definition**:: struct ttm_resource_manager { bool use_type; bool use_tt; struct ttm_device *bdev; uint64_t size; const struct ttm_resource_manager_func *func; spinlock_t eviction_lock; struct dma_fence *eviction_fences[TTM_NUM_MOVE_FENCES]; struct list_head lru[TTM_MAX_BO_PRIORITY]; uint64_t usage; struct dmem_cgroup_region *cg; }; **Members** ``use_type`` The memory type is enabled. ``use_tt`` If a TT object should be used for the backing store. ``bdev`` ttm device this manager belongs to ``size`` Size of the managed region. ``func`` structure pointer implementing the range manager. See above ``eviction_lock`` lock for eviction fences ``eviction_fences`` The fences of the last pipelined move operation. ``lru`` The lru list for this memory type. ``usage`` How much of the resources are used, protected by the bdev->lru_lock. ``cg`` :c:type:`dmem_cgroup_region` used for memory accounting, if not NULL.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubjh)}(hXfstruct ttm_resource_manager { bool use_type; bool use_tt; struct ttm_device *bdev; uint64_t size; const struct ttm_resource_manager_func *func; spinlock_t eviction_lock; struct dma_fence *eviction_fences[TTM_NUM_MOVE_FENCES]; struct list_head lru[TTM_MAX_BO_PRIORITY]; uint64_t usage; struct dmem_cgroup_region *cg; };h]hXfstruct ttm_resource_manager { bool use_type; bool use_tt; struct ttm_device *bdev; uint64_t size; const struct ttm_resource_manager_func *func; spinlock_t eviction_lock; struct dma_fence *eviction_fences[TTM_NUM_MOVE_FENCES]; struct list_head lru[TTM_MAX_BO_PRIORITY]; uint64_t usage; struct dmem_cgroup_region *cg; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jghY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubj)}(hhh](j)}(h)``use_type`` The memory type is enabled. h](j)}(h ``use_type``h]j)}(hjh]huse_type}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubj)}(hhh]h)}(hThe memory type is enabled.h]hThe memory type is enabled.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hKhjubj)}(h@``use_tt`` If a TT object should be used for the backing store. h](j)}(h ``use_tt``h]j)}(hjXh]huse_tt}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjRubj)}(hhh]h)}(h4If a TT object should be used for the backing store.h]h4If a TT object should be used for the backing store.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhKhjubj)}(h,``bdev`` ttm device this manager belongs to h](j)}(h``bdev``h]j)}(hjh]hbdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubj)}(hhh]h)}(h"ttm device this manager belongs toh]h"ttm device this manager belongs to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h%``size`` Size of the managed region. h](j)}(h``size``h]j)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubj)}(hhh]h)}(hSize of the managed region.h]hSize of the managed region.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hE``func`` structure pointer implementing the range manager. See above h](j)}(h``func``h]j)}(hjh]hfunc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubj)}(hhh]h)}(h;structure pointer implementing the range manager. See aboveh]h;structure pointer implementing the range manager. See above}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h+``eviction_lock`` lock for eviction fences h](j)}(h``eviction_lock``h]j)}(hj<h]h eviction_lock}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhj6ubj)}(hhh]h)}(hlock for eviction fencesh]hlock for eviction fences}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKhjubj)}(hE``eviction_fences`` The fences of the last pipelined move operation. h](j)}(h``eviction_fences``h]j)}(hjuh]heviction_fences}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjoubj)}(hhh]h)}(h0The fences of the last pipelined move operation.h]h0The fences of the last pipelined move operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h+``lru`` The lru list for this memory type. h](j)}(h``lru``h]j)}(hjh]hlru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubj)}(hhh]h)}(h"The lru list for this memory type.h]h"The lru list for this memory type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hO``usage`` How much of the resources are used, protected by the bdev->lru_lock. h](j)}(h ``usage``h]j)}(hjh]husage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubj)}(hhh]h)}(hDHow much of the resources are used, protected by the bdev->lru_lock.h]hDHow much of the resources are used, protected by the bdev->lru_lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hL``cg`` :c:type:`dmem_cgroup_region` used for memory accounting, if not NULL.h](j)}(h``cg``h]j)}(hj!h]hcg}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubj)}(hhh]h)}(hE:c:type:`dmem_cgroup_region` used for memory accounting, if not NULL.h](h)}(h:c:type:`dmem_cgroup_region`h]j)}(hj@h]hdmem_cgroup_region}(hjBhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdoc gpu/drm-mm refdomainjreftypetype refexplicitrefwarnj+j.)}j1]sb reftargetdmem_cgroup_regionuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhj:ubh) used for memory accounting, if not NULL.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchKhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjUhhubh)}(hHThis structure is used to identify and manage memory types for a device.h]hHThis structure is used to identify and manage memory types for a device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjUhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_bus_placement (C struct)c.ttm_bus_placementhNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(httm_bus_placementh]jR)}(hstruct ttm_bus_placementh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(httm_bus_placementh]j)}(hjh]httm_bus_placement}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjUhNhNubj)}(hX/**Definition**:: struct ttm_bus_placement { void *addr; phys_addr_t offset; bool is_iomem; enum ttm_caching caching; }; **Members** ``addr`` mapped virtual address ``offset`` physical addr ``is_iomem`` is this io memory ? ``caching`` See enum ttm_cachingh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubjh)}(h}struct ttm_bus_placement { void *addr; phys_addr_t offset; bool is_iomem; enum ttm_caching caching; };h]h}struct ttm_bus_placement { void *addr; phys_addr_t offset; bool is_iomem; enum ttm_caching caching; };}hj7sbah}(h]h ]h"]h$]h&]jjuh1jghY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubh)}(h **Members**h]j)}(hjHh]hMembers}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubj)}(hhh](j)}(h ``addr`` mapped virtual address h](j)}(h``addr``h]j)}(hjgh]haddr}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjaubj)}(hhh]h)}(hmapped virtual addressh]hmapped virtual address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKhj^ubj)}(h``offset`` physical addr h](j)}(h ``offset``h]j)}(hjh]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubj)}(hhh]h)}(h physical addrh]h physical addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj^ubj)}(h!``is_iomem`` is this io memory ? h](j)}(h ``is_iomem``h]j)}(hjh]his_iomem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubj)}(hhh]h)}(his this io memory ?h]his this io memory ?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj^ubj)}(h ``caching`` See enum ttm_cachingh](j)}(h ``caching``h]j)}(hjh]hcaching}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhj ubj)}(hhh]h)}(hSee enum ttm_cachingh]hSee enum ttm_caching}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hKhj^ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(h**Description**h]j)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjUhhubh)}(h4Structure indicating the bus placement of an object.h]h4Structure indicating the bus placement of an object.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjUhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_resource (C struct)c.ttm_resourcehNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(h ttm_resourceh]jR)}(hstruct ttm_resourceh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(h ttm_resourceh]j)}(hjh]h ttm_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjUhNhNubj)}(hX**Definition**:: struct ttm_resource { unsigned long start; size_t size; uint32_t mem_type; uint32_t placement; struct ttm_bus_placement bus; struct ttm_buffer_object *bo; struct dmem_cgroup_pool_state *css; struct ttm_lru_item lru; }; **Members** ``start`` Start of the allocation. ``size`` Actual size of resource in bytes. ``mem_type`` Resource type of the allocation. ``placement`` Placement flags. ``bus`` Placement on io bus accessible to the CPU ``bo`` weak reference to the BO, protected by ttm_device::lru_lock ``css`` cgroup state this resource is charged to ``lru`` Least recently used list, see :c:type:`ttm_resource_manager.lru `h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubjh)}(hstruct ttm_resource { unsigned long start; size_t size; uint32_t mem_type; uint32_t placement; struct ttm_bus_placement bus; struct ttm_buffer_object *bo; struct dmem_cgroup_pool_state *css; struct ttm_lru_item lru; };h]hstruct ttm_resource { unsigned long start; size_t size; uint32_t mem_type; uint32_t placement; struct ttm_bus_placement bus; struct ttm_buffer_object *bo; struct dmem_cgroup_pool_state *css; struct ttm_lru_item lru; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jghY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM hjubj)}(hhh](j)}(h#``start`` Start of the allocation. h](j)}(h ``start``h]j)}(hj3h]hstart}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhj-ubj)}(hhh]h)}(hStart of the allocation.h]hStart of the allocation.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhKhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhKhj*ubj)}(h+``size`` Actual size of resource in bytes. h](j)}(h``size``h]j)}(hjlh]hsize}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjfubj)}(hhh]h)}(h!Actual size of resource in bytes.h]h!Actual size of resource in bytes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhKhj*ubj)}(h.``mem_type`` Resource type of the allocation. h](j)}(h ``mem_type``h]j)}(hjh]hmem_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubj)}(hhh]h)}(h Resource type of the allocation.h]h Resource type of the allocation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj*ubj)}(h``placement`` Placement flags. h](j)}(h ``placement``h]j)}(hjh]h placement}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjubj)}(hhh]h)}(hPlacement flags.h]hPlacement flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj*ubj)}(h2``bus`` Placement on io bus accessible to the CPU h](j)}(h``bus``h]j)}(hjh]hbus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjubj)}(hhh]h)}(h)Placement on io bus accessible to the CPUh]h)Placement on io bus accessible to the CPU}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj*ubj)}(hC``bo`` weak reference to the BO, protected by ttm_device::lru_lock h](j)}(h``bo``h]j)}(hjPh]hbo}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjJubj)}(hhh]h)}(h;weak reference to the BO, protected by ttm_device::lru_lockh]h;weak reference to the BO, protected by ttm_device::lru_lock}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhj*ubj)}(h1``css`` cgroup state this resource is charged to h](j)}(h``css``h]j)}(hjh]hcss}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjubj)}(hhh]h)}(h(cgroup state this resource is charged toh]h(cgroup state this resource is charged to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj*ubj)}(h_``lru`` Least recently used list, see :c:type:`ttm_resource_manager.lru `h](j)}(h``lru``h]j)}(hjh]hlru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjubj)}(hhh]h)}(hWLeast recently used list, see :c:type:`ttm_resource_manager.lru `h](hLeast recently used list, see }(hjhhhNhNubh)}(h9:c:type:`ttm_resource_manager.lru `h]j)}(hjh]httm_resource_manager.lru}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jattm_resource_manageruh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj*ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(h**Description**h]j)}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjUhhubh)}(hOStructure indicating the placement and space resources used by a buffer object.h]hOStructure indicating the placement and space resources used by a buffer object.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjUhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB ttm_lru_item_to_res (C function)c.ttm_lru_item_to_reshNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(hEstruct ttm_resource * ttm_lru_item_to_res (struct ttm_lru_item *item)h]jR)}(hCstruct ttm_resource *ttm_lru_item_to_res(struct ttm_lru_item *item)h](jX)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj^hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj^hhhjohMubh)}(hhh]j)}(h ttm_resourceh]h ttm_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'ttm_lru_item_to_ressbc.ttm_lru_item_to_resasbuh1hhj^hhhjohMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj^hhhjohMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj^hhhjohMubj{)}(httm_lru_item_to_resh]j)}(hjh]httm_lru_item_to_res}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj^hhhjohMubj)}(h(struct ttm_lru_item *item)h]j)}(hstruct ttm_lru_item *itemh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h ttm_lru_itemh]h ttm_lru_item}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.ttm_lru_item_to_resasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj&hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hitemh]hitem}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj^hhhjohMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjZhhhjohMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1jKhjohMhjWhhubj)}(hhh]h)}(h7Downcast a struct ttm_lru_item to a struct ttm_resourceh]h7Downcast a struct ttm_lru_item to a struct ttm_resource}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjohMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jFhhhjUhNhNubj)}(h**Parameters** ``struct ttm_lru_item *item`` The struct ttm_lru_item to downcast **Return** Pointer to the embedding struct ttm_resourceh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjyubj)}(hhh]j)}(hB``struct ttm_lru_item *item`` The struct ttm_lru_item to downcast h](j)}(h``struct ttm_lru_item *item``h]j)}(hjh]hstruct ttm_lru_item *item}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjubj)}(hhh]h)}(h#The struct ttm_lru_item to downcasth]h#The struct ttm_lru_item to downcast}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjyubh)}(h,Pointer to the embedding struct ttm_resourceh]h,Pointer to the embedding struct ttm_resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB ttm_lru_bulk_move_pos (C struct)c.ttm_lru_bulk_move_poshNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(httm_lru_bulk_move_posh]jR)}(hstruct ttm_lru_bulk_move_posh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM ubjj)}(h h]h }(hj, hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhj+ hM ubj{)}(httm_lru_bulk_move_posh]j)}(hj h]httm_lru_bulk_move_pos}(hj> hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj: ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj+ hM ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj+ hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj+ hM hj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj+ hM ubeh}(h]h ](jstructeh"]h$]h&]jjjji jji jjjuh1jFhhhjUhNhNubj)}(h**Definition**:: struct ttm_lru_bulk_move_pos { struct ttm_resource *first; struct ttm_resource *last; }; **Members** ``first`` first res in the bulk move range ``last`` last res in the bulk move rangeh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq ubh:}(hjq hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM(hjm ubjh)}(h`struct ttm_lru_bulk_move_pos { struct ttm_resource *first; struct ttm_resource *last; };h]h`struct ttm_lru_bulk_move_pos { struct ttm_resource *first; struct ttm_resource *last; };}hj sbah}(h]h ]h"]h$]h&]jjuh1jghY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM*hjm ubh)}(h **Members**h]j)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM/hjm ubj)}(hhh](j)}(h+``first`` first res in the bulk move range h](j)}(h ``first``h]j)}(hj h]hfirst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM'hj ubj)}(hhh]h)}(h first res in the bulk move rangeh]h first res in the bulk move range}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM'hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM'hj ubj)}(h(``last`` last res in the bulk move rangeh](j)}(h``last``h]j)}(hj h]hlast}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM'hj ubj)}(hhh]h)}(hlast res in the bulk move rangeh]hlast res in the bulk move range}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM(hj !ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj !hM'hj ubeh}(h]h ]h"]h$]h&]uh1jhjm ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(h**Description**h]j)}(hj:!h]h Description}(hjfirst/last lru entry for resources in the each domain/priorityh]h>first/last lru entry for resources in the each domain/priority}(hj1"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-"hM3hj."ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj-"hM3hj"ubj)}(h``cursor_list`` The list of cursors currently traversing any of the sublists of **pos**. Protected by the ttm device's lru_lock.h](j)}(h``cursor_list``h]j)}(hjQ"h]h cursor_list}(hjS"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO"ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM4hjK"ubj)}(hhh]h)}(hpThe list of cursors currently traversing any of the sublists of **pos**. Protected by the ttm device's lru_lock.h](h@The list of cursors currently traversing any of the sublists of }(hjj"hhhNhNubj)}(h**pos**h]hpos}(hjr"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj"ubh+. Protected by the ttm device’s lru_lock.}(hjj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjf"hM4hjg"ubah}(h]h ]h"]h$]h&]uh1jhjK"ubeh}(h]h ]h"]h$]h&]uh1jhjf"hM4hj"ubeh}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(h**Description**h]j)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM8hjUhhubh)}(hX$Container for the current bulk move state. Should be used with ttm_lru_bulk_move_init() and ttm_bo_set_bulk_move(). All BOs in a bulk_move structure need to share the same reservation object to ensure that the bulk as a whole is locked for eviction even if only one BO of the bulk is evicted.h]hX$Container for the current bulk move state. Should be used with ttm_lru_bulk_move_init() and ttm_bo_set_bulk_move(). All BOs in a bulk_move structure need to share the same reservation object to ensure that the bulk as a whole is locked for eviction even if only one BO of the bulk is evicted.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM5hjUhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_resource_cursor (C struct)c.ttm_resource_cursorhNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(httm_resource_cursorh]jR)}(hstruct ttm_resource_cursorh](jX)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj"hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM>ubjj)}(h h]h }(hj"hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj"hhhj"hM>ubj{)}(httm_resource_cursorh]j)}(hj"h]httm_resource_cursor}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"hhhj"hM>ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj"hhhj"hM>ubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1jKhj"hM>hj"hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj"hhhj"hM>ubeh}(h]h ](jstructeh"]h$]h&]jjjj.#jj.#jjjuh1jFhhhjUhNhNubj)}(hX**Definition**:: struct ttm_resource_cursor { struct ttm_resource_manager *man; struct ttm_lru_item hitch; struct list_head bulk_link; struct ttm_lru_bulk_move *bulk; unsigned int mem_type; unsigned int priority; }; **Members** ``man`` The resource manager currently being iterated over ``hitch`` A hitch list node inserted before the next resource to iterate over. ``bulk_link`` A list link for the list of cursors traversing the bulk sublist of **bulk**. Protected by the ttm device's lru_lock. ``bulk`` Pointer to struct ttm_lru_bulk_move whose subrange **hitch** is inserted to. NULL if none. Never dereference this pointer since the struct ttm_lru_bulk_move object pointed to might have been freed. The pointer is only for comparison. ``mem_type`` The memory type of the LRU list being traversed. This field is valid iff **bulk** != NULL. ``priority`` the current priorityh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj:#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6#ubh:}(hj6#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMFhj2#ubjh)}(hstruct ttm_resource_cursor { struct ttm_resource_manager *man; struct ttm_lru_item hitch; struct list_head bulk_link; struct ttm_lru_bulk_move *bulk; unsigned int mem_type; unsigned int priority; };h]hstruct ttm_resource_cursor { struct ttm_resource_manager *man; struct ttm_lru_item hitch; struct list_head bulk_link; struct ttm_lru_bulk_move *bulk; unsigned int mem_type; unsigned int priority; };}hjS#sbah}(h]h ]h"]h$]h&]jjuh1jghY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMHhj2#ubh)}(h **Members**h]j)}(hjd#h]hMembers}(hjf#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb#ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMQhj2#ubj)}(hhh](j)}(h;``man`` The resource manager currently being iterated over h](j)}(h``man``h]j)}(hj#h]hman}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMDhj}#ubj)}(hhh]h)}(h2The resource manager currently being iterated overh]h2The resource manager currently being iterated over}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMDhj#ubah}(h]h ]h"]h$]h&]uh1jhj}#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMDhjz#ubj)}(hO``hitch`` A hitch list node inserted before the next resource to iterate over. h](j)}(h ``hitch``h]j)}(hj#h]hhitch}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMFhj#ubj)}(hhh]h)}(hDA hitch list node inserted before the next resource to iterate over.h]hDA hitch list node inserted before the next resource to iterate over.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMEhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMFhjz#ubj)}(h``bulk_link`` A list link for the list of cursors traversing the bulk sublist of **bulk**. Protected by the ttm device's lru_lock. h](j)}(h ``bulk_link``h]j)}(hj#h]h bulk_link}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMHhj#ubj)}(hhh]h)}(htA list link for the list of cursors traversing the bulk sublist of **bulk**. Protected by the ttm device's lru_lock.h](hCA list link for the list of cursors traversing the bulk sublist of }(hj$hhhNhNubj)}(h**bulk**h]hbulk}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh+. Protected by the ttm device’s lru_lock.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMGhj $ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj $hMHhjz#ubj)}(h``bulk`` Pointer to struct ttm_lru_bulk_move whose subrange **hitch** is inserted to. NULL if none. Never dereference this pointer since the struct ttm_lru_bulk_move object pointed to might have been freed. The pointer is only for comparison. h](j)}(h``bulk``h]j)}(hjB$h]hbulk}(hjD$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@$ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMLhj<$ubj)}(hhh]h)}(hPointer to struct ttm_lru_bulk_move whose subrange **hitch** is inserted to. NULL if none. Never dereference this pointer since the struct ttm_lru_bulk_move object pointed to might have been freed. The pointer is only for comparison.h](h3Pointer to struct ttm_lru_bulk_move whose subrange }(hj[$hhhNhNubj)}(h **hitch**h]hhitch}(hjc$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[$ubh is inserted to. NULL if none. Never dereference this pointer since the struct ttm_lru_bulk_move object pointed to might have been freed. The pointer is only for comparison.}(hj[$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMIhjX$ubah}(h]h ]h"]h$]h&]uh1jhj<$ubeh}(h]h ]h"]h$]h&]uh1jhjW$hMLhjz#ubj)}(hh``mem_type`` The memory type of the LRU list being traversed. This field is valid iff **bulk** != NULL. h](j)}(h ``mem_type``h]j)}(hj$h]hmem_type}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMNhj$ubj)}(hhh]h)}(hZThe memory type of the LRU list being traversed. This field is valid iff **bulk** != NULL.h](hIThe memory type of the LRU list being traversed. This field is valid iff }(hj$hhhNhNubj)}(h**bulk**h]hbulk}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh != NULL.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMMhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMNhjz#ubj)}(h!``priority`` the current priorityh](j)}(h ``priority``h]j)}(hj$h]hpriority}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMNhj$ubj)}(hhh]h)}(hthe current priorityh]hthe current priority}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMOhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMNhjz#ubeh}(h]h ]h"]h$]h&]uh1jhj2#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMRhjUhhubh)}(h2Cursor to iterate over the resources in a manager.h]h2Cursor to iterate over the resources in a manager.}(hj3%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMOhjUhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_kmap_iter_iomap (C struct)c.ttm_kmap_iter_iomaphNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(httm_kmap_iter_iomaph]jR)}(hstruct ttm_kmap_iter_iomaph](jX)}(hjh]hstruct}(hj[%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjW%hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMTubjj)}(h h]h }(hji%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjW%hhhjh%hMTubj{)}(httm_kmap_iter_iomaph]j)}(hjU%h]httm_kmap_iter_iomap}(hj{%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw%ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjW%hhhjh%hMTubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjS%hhhjh%hMTubah}(h]jN%ah ](jjeh"]h$]h&]jj)jhuh1jKhjh%hMThjP%hhubj)}(hhh]h)}(hTSpecialization for a struct io_mapping + struct sg_table backed struct ttm_resource.h]hTSpecialization for a struct io_mapping + struct sg_table backed struct ttm_resource.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMahj%hhubah}(h]h ]h"]h$]h&]uh1jhjP%hhhjh%hMTubeh}(h]h ](jstructeh"]h$]h&]jjjj%jj%jjjuh1jFhhhjUhNhNubj)}(hX**Definition**:: struct ttm_kmap_iter_iomap { struct ttm_kmap_iter base; struct io_mapping *iomap; struct sg_table *st; resource_size_t start; struct { struct scatterlist *sg; pgoff_t i; pgoff_t end; pgoff_t offs; } cache; }; **Members** ``base`` Embedded struct ttm_kmap_iter providing the usage interface. ``iomap`` struct io_mapping representing the underlying linear io_memory. ``st`` sg_table into **iomap**, representing the memory of the struct ttm_resource. ``start`` Offset that needs to be subtracted from **st** to make sg_dma_address(st->sgl) - **start** == 0 for **iomap** start. ``cache`` Scatterlist traversal cache for fast lookups. ``cache.sg`` Pointer to the currently cached scatterlist segment. ``cache.i`` First index of **sg**. PAGE_SIZE granularity. ``cache.end`` Last index + 1 of **sg**. PAGE_SIZE granularity. ``cache.offs`` First offset into **iomap** of **sg**. PAGE_SIZE granularity.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh:}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMehj%ubjh)}(hXstruct ttm_kmap_iter_iomap { struct ttm_kmap_iter base; struct io_mapping *iomap; struct sg_table *st; resource_size_t start; struct { struct scatterlist *sg; pgoff_t i; pgoff_t end; pgoff_t offs; } cache; };h]hXstruct ttm_kmap_iter_iomap { struct ttm_kmap_iter base; struct io_mapping *iomap; struct sg_table *st; resource_size_t start; struct { struct scatterlist *sg; pgoff_t i; pgoff_t end; pgoff_t offs; } cache; };}hj%sbah}(h]h ]h"]h$]h&]jjuh1jghY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMghj%ubh)}(h **Members**h]j)}(hj%h]hMembers}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMthj%ubj)}(hhh](j)}(hF``base`` Embedded struct ttm_kmap_iter providing the usage interface. h](j)}(h``base``h]j)}(hj &h]hbase}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMdhj&ubj)}(hhh]h)}(hsgl) - **start** == 0 for **iomap** start. h](j)}(h ``start``h]j)}(hj&h]hstart}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhhj&ubj)}(hhh]h)}(htOffset that needs to be subtracted from **st** to make sg_dma_address(st->sgl) - **start** == 0 for **iomap** start.h](h(Offset that needs to be subtracted from }(hj&hhhNhNubj)}(h**st**h]hst}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh# to make sg_dma_address(st->sgl) - }(hj&hhhNhNubj)}(h **start**h]hstart}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh == 0 for }(hj&hhhNhNubj)}(h **iomap**h]hiomap}(hj 'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh start.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMghj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhhj&ubj)}(h8``cache`` Scatterlist traversal cache for fast lookups. h](j)}(h ``cache``h]j)}(hj7'h]hcache}(hj9'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5'ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMihj1'ubj)}(hhh]h)}(h-Scatterlist traversal cache for fast lookups.h]h-Scatterlist traversal cache for fast lookups.}(hjP'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL'hMihjM'ubah}(h]h ]h"]h$]h&]uh1jhj1'ubeh}(h]h ]h"]h$]h&]uh1jhjL'hMihj&ubj)}(hB``cache.sg`` Pointer to the currently cached scatterlist segment. h](j)}(h ``cache.sg``h]j)}(hjp'h]hcache.sg}(hjr'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn'ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMjhjj'ubj)}(hhh]h)}(h4Pointer to the currently cached scatterlist segment.h]h4Pointer to the currently cached scatterlist segment.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMjhj'ubah}(h]h ]h"]h$]h&]uh1jhjj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMjhj&ubj)}(h:``cache.i`` First index of **sg**. PAGE_SIZE granularity. h](j)}(h ``cache.i``h]j)}(hj'h]hcache.i}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMkhj'ubj)}(hhh]h)}(h-First index of **sg**. PAGE_SIZE granularity.h](hFirst index of }(hj'hhhNhNubj)}(h**sg**h]hsg}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh. PAGE_SIZE granularity.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj'hMkhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMkhj&ubj)}(h?``cache.end`` Last index + 1 of **sg**. PAGE_SIZE granularity. h](j)}(h ``cache.end``h]j)}(hj'h]h cache.end}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMlhj'ubj)}(hhh]h)}(h0Last index + 1 of **sg**. PAGE_SIZE granularity.h](hLast index + 1 of }(hj (hhhNhNubj)}(h**sg**h]hsg}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj (ubh. PAGE_SIZE granularity.}(hj (hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj (hMlhj (ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj (hMlhj&ubj)}(hL``cache.offs`` First offset into **iomap** of **sg**. PAGE_SIZE granularity.h](j)}(h``cache.offs``h]j)}(hj?(h]h cache.offs}(hjA(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=(ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMlhj9(ubj)}(hhh]h)}(h=First offset into **iomap** of **sg**. PAGE_SIZE granularity.h](hFirst offset into }(hjX(hhhNhNubj)}(h **iomap**h]hiomap}(hj`(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX(ubh of }(hjX(hhhNhNubj)}(h**sg**h]hsg}(hjr(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX(ubh. PAGE_SIZE granularity.}(hjX(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMmhjU(ubah}(h]h ]h"]h$]h&]uh1jhj9(ubeh}(h]h ]h"]h$]h&]uh1jhjT(hMlhj&ubeh}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"ttm_kmap_iter_linear_io (C struct)c.ttm_kmap_iter_linear_iohNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(httm_kmap_iter_linear_ioh]jR)}(hstruct ttm_kmap_iter_linear_ioh](jX)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj(hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMsubjj)}(h h]h }(hj(hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj(hhhj(hMsubj{)}(httm_kmap_iter_linear_ioh]j)}(hj(h]httm_kmap_iter_linear_io}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhhj(hMsubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj(hhhj(hMsubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jKhj(hMshj(hhubj)}(hhh]h)}(h%Iterator specialization for linear ioh]h%Iterator specialization for linear io}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM|hj(hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hMsubeh}(h]h ](jstructeh"]h$]h&]jjjj)jj)jjjuh1jFhhhjUhNhNubj)}(hX'**Definition**:: struct ttm_kmap_iter_linear_io { struct ttm_kmap_iter base; struct iosys_map dmap; bool needs_unmap; }; **Members** ``base`` The base iterator ``dmap`` Points to the starting address of the region ``needs_unmap`` Whether we need to unmap on finih](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj#)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh:}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj)ubjh)}(hsstruct ttm_kmap_iter_linear_io { struct ttm_kmap_iter base; struct iosys_map dmap; bool needs_unmap; };h]hsstruct ttm_kmap_iter_linear_io { struct ttm_kmap_iter base; struct iosys_map dmap; bool needs_unmap; };}hj<)sbah}(h]h ]h"]h$]h&]jjuh1jghY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj)ubh)}(h **Members**h]j)}(hjM)h]hMembers}(hjO)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK)ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj)ubj)}(hhh](j)}(h``base`` The base iterator h](j)}(h``base``h]j)}(hjl)h]hbase}(hjn)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj)ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM~hjf)ubj)}(hhh]h)}(hThe base iteratorh]hThe base iterator}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM~hj)ubah}(h]h ]h"]h$]h&]uh1jhjf)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM~hjc)ubj)}(h6``dmap`` Points to the starting address of the region h](j)}(h``dmap``h]j)}(hj)h]hdmap}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj)ubj)}(hhh]h)}(h,Points to the starting address of the regionh]h,Points to the starting address of the region}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjc)ubj)}(h0``needs_unmap`` Whether we need to unmap on finih](j)}(h``needs_unmap``h]j)}(hj)h]h needs_unmap}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj)ubj)}(hhh]h)}(h Whether we need to unmap on finih]h Whether we need to unmap on fini}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjc)ubeh}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*ttm_resource_manager_set_used (C function)c.ttm_resource_manager_set_usedhNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(hPvoid ttm_resource_manager_set_used (struct ttm_resource_manager *man, bool used)h]jR)}(hOvoid ttm_resource_manager_set_used(struct ttm_resource_manager *man, bool used)h](j)}(hvoidh]hvoid}(hj8*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4*hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMubjj)}(h h]h }(hjG*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4*hhhjF*hMubj{)}(httm_resource_manager_set_usedh]j)}(httm_resource_manager_set_usedh]httm_resource_manager_set_used}(hjY*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj4*hhhjF*hMubj)}(h-(struct ttm_resource_manager *man, bool used)h](j)}(h struct ttm_resource_manager *manh](jX)}(hjh]hstruct}(hju*hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjq*ubjj)}(h h]h }(hj*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjq*ubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj*modnameN classnameNj+j.)}j1]j4)}j'j[*sbc.ttm_resource_manager_set_usedasbuh1hhjq*ubjj)}(h h]h }(hj*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjq*ubjH)}(hjKh]h*}(hj*hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjq*ubj)}(hmanh]hman}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjm*ubj)}(h bool usedh](j)}(hboolh]hbool}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjj)}(h h]h }(hj*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*ubj)}(husedh]hused}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjm*ubeh}(h]h ]h"]h$]h&]jjuh1jhj4*hhhjF*hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj0*hhhjF*hMubah}(h]j+*ah ](jjeh"]h$]h&]jj)jhuh1jKhjF*hMhj-*hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj-*hhhjF*hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6+jj6+jjjuh1jFhhhjUhNhNubj)}(h**Parameters** ``struct ttm_resource_manager *man`` A memory manager object. ``bool used`` usage state to set. **Description** Set the manager in use flag. If disabled the manager is no longer used for object placement.h](h)}(h**Parameters**h]j)}(hj@+h]h Parameters}(hjB+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>+ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj:+ubj)}(hhh](j)}(h>``struct ttm_resource_manager *man`` A memory manager object. h](j)}(h$``struct ttm_resource_manager *man``h]j)}(hj_+h]h struct ttm_resource_manager *man}(hja+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]+ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjY+ubj)}(hhh]h)}(hA memory manager object.h]hA memory manager object.}(hjx+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt+hMhju+ubah}(h]h ]h"]h$]h&]uh1jhjY+ubeh}(h]h ]h"]h$]h&]uh1jhjt+hMhjV+ubj)}(h"``bool used`` usage state to set. h](j)}(h ``bool used``h]j)}(hj+h]h bool used}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj+ubj)}(hhh]h)}(husage state to set.h]husage state to set.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMhjV+ubeh}(h]h ]h"]h$]h&]uh1jhj:+ubh)}(h**Description**h]j)}(hj+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj:+ubh)}(h\Set the manager in use flag. If disabled the manager is no longer used for object placement.h]h\Set the manager in use flag. If disabled the manager is no longer used for object placement.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj:+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&ttm_resource_manager_used (C function)c.ttm_resource_manager_usedhNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(hAbool ttm_resource_manager_used (struct ttm_resource_manager *man)h]jR)}(h@bool ttm_resource_manager_used(struct ttm_resource_manager *man)h](j)}(hj*h]hbool}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMubjj)}(h h]h }(hj&,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,hhhj%,hMubj{)}(httm_resource_manager_usedh]j)}(httm_resource_manager_usedh]httm_resource_manager_used}(hj8,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj%,hMubj)}(h"(struct ttm_resource_manager *man)h]j)}(h struct ttm_resource_manager *manh](jX)}(hjh]hstruct}(hjT,hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjP,ubjj)}(h h]h }(hja,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjP,ubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hjr,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo,ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjt,modnameN classnameNj+j.)}j1]j4)}j'j:,sbc.ttm_resource_manager_usedasbuh1hhjP,ubjj)}(h h]h }(hj,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjP,ubjH)}(hjKh]h*}(hj,hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjP,ubj)}(hmanh]hman}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjL,ubah}(h]h ]h"]h$]h&]jjuh1jhj,hhhj%,hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj,hhhj%,hMubah}(h]j ,ah ](jjeh"]h$]h&]jj)jhuh1jKhj%,hMhj ,hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj ,hhhj%,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1jFhhhjUhNhNubj)}(h**Parameters** ``struct ttm_resource_manager *man`` Manager to get used state for **Description** Get the in use flag for a manager. **Return** true is used, false if not.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj,ubj)}(hhh]j)}(hC``struct ttm_resource_manager *man`` Manager to get used state for h](j)}(h$``struct ttm_resource_manager *man``h]j)}(hj -h]h struct ttm_resource_manager *man}(hj -hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj-ubj)}(hhh]h)}(hManager to get used state forh]hManager to get used state for}(hj"-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMhj-ubah}(h]h ]h"]h$]h&]uh1jhj,ubh)}(h**Description**h]j)}(hjD-h]h Description}(hjF-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB-ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj,ubh)}(h"Get the in use flag for a manager.h]h"Get the in use flag for a manager.}(hjZ-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj,ubh)}(h **Return**h]j)}(hjk-h]hReturn}(hjm-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji-ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj,ubh)}(htrue is used, false if not.h]htrue is used, false if not.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)ttm_resource_manager_cleanup (C function)c.ttm_resource_manager_cleanuphNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(hDvoid ttm_resource_manager_cleanup (struct ttm_resource_manager *man)h]jR)}(hCvoid ttm_resource_manager_cleanup(struct ttm_resource_manager *man)h](j)}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-hhhj-hMubj{)}(httm_resource_manager_cleanuph]j)}(httm_resource_manager_cleanuph]httm_resource_manager_cleanup}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhhj-hMubj)}(h"(struct ttm_resource_manager *man)h]j)}(h struct ttm_resource_manager *manh](jX)}(hjh]hstruct}(hj-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj-ubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-ubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hj .hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj .modnameN classnameNj+j.)}j1]j4)}j'j-sbc.ttm_resource_manager_cleanupasbuh1hhj-ubjj)}(h h]h }(hj+.hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-ubjH)}(hjKh]h*}(hj9.hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj-ubj)}(hmanh]hman}(hjF.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubah}(h]h ]h"]h$]h&]jjuh1jhj-hhhj-hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj-hhhj-hMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jKhj-hMhj-hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj-hhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjy.jjy.jjjuh1jFhhhjUhNhNubj)}(h**Parameters** ``struct ttm_resource_manager *man`` A memory manager object. **Description** Cleanup the move fences from the memory manager object.h](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj}.ubj)}(hhh]j)}(h>``struct ttm_resource_manager *man`` A memory manager object. h](j)}(h$``struct ttm_resource_manager *man``h]j)}(hj.h]h struct ttm_resource_manager *man}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj.ubj)}(hhh]h)}(hA memory manager object.h]hA memory manager object.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhj}.ubh)}(h**Description**h]j)}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj}.ubh)}(h7Cleanup the move fences from the memory manager object.h]h7Cleanup the move fences from the memory manager object.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj}.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB+ttm_resource_manager_for_each_res (C macro)#c.ttm_resource_manager_for_each_reshNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(h!ttm_resource_manager_for_each_resh]jR)}(h!ttm_resource_manager_for_each_resh]j{)}(h!ttm_resource_manager_for_each_resh]j)}(hj/h]h!ttm_resource_manager_for_each_res}(hj&/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"/ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhj/hhhj9/hMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jKhj9/hMhj/hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj/hhhj9/hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjR/jjR/jjjuh1jFhhhjUhNhNubh)}(h3``ttm_resource_manager_for_each_res (cursor, res)``h]j)}(hjX/h]h/ttm_resource_manager_for_each_res (cursor, res)}(hjZ/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV/ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjUhhubj)}(hiterate over all resources h]h)}(hiterate over all resourcesh]hiterate over all resources}(hjr/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjn/ubah}(h]h ]h"]h$]h&]uh1jhj/hMhjUhhubj)}(h**Parameters** ``cursor`` struct ttm_resource_cursor for the current position ``res`` the current resource **Description** Iterate over all the evictable resources in a resource manager.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj/ubj)}(hhh](j)}(h?``cursor`` struct ttm_resource_cursor for the current position h](j)}(h ``cursor``h]j)}(hj/h]hcursor}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj/ubj)}(hhh]h)}(h3struct ttm_resource_cursor for the current positionh]h3struct ttm_resource_cursor for the current position}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubj)}(h``res`` the current resource h](j)}(h``res``h]j)}(hj/h]hres}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj/ubj)}(hhh]h)}(hthe current resourceh]hthe current resource}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/ubh)}(h**Description**h]j)}(hj 0h]h Description}(hj"0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj/ubh)}(h?Iterate over all the evictable resources in a resource manager.h]h?Iterate over all the evictable resources in a resource manager.}(hj60hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#ttm_lru_bulk_move_init (C function)c.ttm_lru_bulk_move_inithNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(h2ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjC2modnameN classnameNj+j.)}j1]j4)}j'j 2sbc.ttm_lru_bulk_move_finiasbuh1hhj2ubjj)}(h h]h }(hja2hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj2ubjH)}(hjKh]h*}(hjo2hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj2ubj)}(hbdevh]hbdev}(hj|2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hstruct ttm_lru_bulk_move *bulkh](jX)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj2ubjj)}(h h]h }(hj2hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj2ubh)}(hhh]j)}(httm_lru_bulk_moveh]httm_lru_bulk_move}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj2modnameN classnameNj+j.)}j1]j]2c.ttm_lru_bulk_move_finiasbuh1hhj2ubjj)}(h h]h }(hj2hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj2ubjH)}(hjKh]h*}(hj2hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj2ubj)}(hbulkh]hbulk}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhj1hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj1hhhj1hKubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jKhj1hKhj1hhubj)}(hhh]h)}(hfinalize a bulk move structureh]hfinalize a bulk move structure}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj3hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.3jj.3jjjuh1jFhhhjUhNhNubj)}(h**Parameters** ``struct ttm_device *bdev`` The struct ttm_device ``struct ttm_lru_bulk_move *bulk`` the structure to finalize **Description** Sanity checks that bulk moves don't have any resources left and hence no cursors attached.h](h)}(h**Parameters**h]j)}(hj83h]h Parameters}(hj:3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj63ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj23ubj)}(hhh](j)}(h2``struct ttm_device *bdev`` The struct ttm_device h](j)}(h``struct ttm_device *bdev``h]j)}(hjW3h]hstruct ttm_device *bdev}(hjY3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU3ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhjQ3ubj)}(hhh]h)}(hThe struct ttm_deviceh]hThe struct ttm_device}(hjp3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjl3hKhjm3ubah}(h]h ]h"]h$]h&]uh1jhjQ3ubeh}(h]h ]h"]h$]h&]uh1jhjl3hKhjN3ubj)}(h=``struct ttm_lru_bulk_move *bulk`` the structure to finalize h](j)}(h"``struct ttm_lru_bulk_move *bulk``h]j)}(hj3h]hstruct ttm_lru_bulk_move *bulk}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj3ubj)}(hhh]h)}(hthe structure to finalizeh]hthe structure to finalize}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hKhjN3ubeh}(h]h ]h"]h$]h&]uh1jhj23ubh)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj23ubh)}(hZSanity checks that bulk moves don't have any resources left and hence no cursors attached.h]h\Sanity checks that bulk moves don’t have any resources left and hence no cursors attached.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj23ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#ttm_lru_bulk_move_tail (C function)c.ttm_lru_bulk_move_tailhNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(h` held.h](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj4ubj)}(hhh]j)}(h7``struct ttm_lru_bulk_move *bulk`` bulk move structure h](j)}(h"``struct ttm_lru_bulk_move *bulk``h]j)}(hj5h]hstruct ttm_lru_bulk_move *bulk}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj 5ubj)}(hhh]h)}(hbulk move structureh]hbulk move structure}(hj*5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&5hKhj'5ubah}(h]h ]h"]h$]h&]uh1jhj 5ubeh}(h]h ]h"]h$]h&]uh1jhj&5hKhj5ubah}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]j)}(hjL5h]h Description}(hjN5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ5ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj4ubh)}(hBulk move BOs to the LRU tail, only valid to use when driver makes sure that resource order never changes. Should be called with :c:type:`ttm_device.lru_lock ` held.h](hBulk move BOs to the LRU tail, only valid to use when driver makes sure that resource order never changes. Should be called with }(hjb5hhhNhNubh)}(h*:c:type:`ttm_device.lru_lock `h]j)}(hjl5h]httm_device.lru_lock}(hjn5hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjj5ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja ttm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhjb5ubh held.}(hjb5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5hKhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_resource_init (C function)c.ttm_resource_inithNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(hnvoid ttm_resource_init (struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource *res)h]jR)}(hmvoid ttm_resource_init(struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource *res)h](j)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chM@ubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5hhhj5hM@ubj{)}(httm_resource_inith]j)}(httm_resource_inith]httm_resource_init}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhhj5hM@ubj)}(hW(struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource *res)h](j)}(hstruct ttm_buffer_object *boh](jX)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj5ubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubh)}(hhh]j)}(httm_buffer_objecth]httm_buffer_object}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 6ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj6modnameN classnameNj+j.)}j1]j4)}j'j5sbc.ttm_resource_initasbuh1hhj5ubjj)}(h h]h }(hj/6hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubjH)}(hjKh]h*}(hj=6hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj5ubj)}(hboh]hbo}(hjJ6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hconst struct ttm_place *placeh](jX)}(hj h]hconst}(hjc6hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_6ubjj)}(h h]h }(hjp6hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_6ubjX)}(hjh]hstruct}(hj~6hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_6ubjj)}(h h]h }(hj6hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_6ubh)}(hhh]j)}(h ttm_placeh]h ttm_place}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj6modnameN classnameNj+j.)}j1]j+6c.ttm_resource_initasbuh1hhj_6ubjj)}(h h]h }(hj6hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_6ubjH)}(hjKh]h*}(hj6hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj_6ubj)}(hplaceh]hplace}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hstruct ttm_resource *resh](jX)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj6ubjj)}(h h]h }(hj6hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj6ubh)}(hhh]j)}(h ttm_resourceh]h ttm_resource}(hj 7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 7ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj7modnameN classnameNj+j.)}j1]j+6c.ttm_resource_initasbuh1hhj6ubjj)}(h h]h }(hj*7hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj6ubjH)}(hjKh]h*}(hj87hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj6ubj)}(hresh]hres}(hjE7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hM@ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj5hhhj5hM@ubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1jKhj5hM@hj5hhubj)}(hhh]h)}(hresource object constructorh]hresource object constructor}(hjo7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chM@hjl7hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1jFhhhjUhNhNubj)}(hX8**Parameters** ``struct ttm_buffer_object *bo`` buffer object this resource is allocated for ``const struct ttm_place *place`` placement of the resource ``struct ttm_resource *res`` the resource object to initialize **Description** Initialize a new resource object. Counterpart of ttm_resource_fini().h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMDhj7ubj)}(hhh](j)}(hN``struct ttm_buffer_object *bo`` buffer object this resource is allocated for h](j)}(h ``struct ttm_buffer_object *bo``h]j)}(hj7h]hstruct ttm_buffer_object *bo}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMAhj7ubj)}(hhh]h)}(h,buffer object this resource is allocated forh]h,buffer object this resource is allocated for}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMAhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMAhj7ubj)}(h<``const struct ttm_place *place`` placement of the resource h](j)}(h!``const struct ttm_place *place``h]j)}(hj7h]hconst struct ttm_place *place}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMBhj7ubj)}(hhh]h)}(hplacement of the resourceh]hplacement of the resource}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMBhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMBhj7ubj)}(h?``struct ttm_resource *res`` the resource object to initialize h](j)}(h``struct ttm_resource *res``h]j)}(hj"8h]hstruct ttm_resource *res}(hj$8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 8ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMChj8ubj)}(hhh]h)}(h!the resource object to initializeh]h!the resource object to initialize}(hj;8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj78hMChj88ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj78hMChj7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubh)}(h**Description**h]j)}(hj]8h]h Description}(hj_8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[8ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMEhj7ubh)}(hEInitialize a new resource object. Counterpart of ttm_resource_fini().h]hEInitialize a new resource object. Counterpart of ttm_resource_fini().}(hjs8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMDhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_resource_fini (C function)c.ttm_resource_finihNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(hSvoid ttm_resource_fini (struct ttm_resource_manager *man, struct ttm_resource *res)h]jR)}(hRvoid ttm_resource_fini(struct ttm_resource_manager *man, struct ttm_resource *res)h](j)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMcubjj)}(h h]h }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8hhhj8hMcubj{)}(httm_resource_finih]j)}(httm_resource_finih]httm_resource_fini}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhhj8hMcubj)}(h<(struct ttm_resource_manager *man, struct ttm_resource *res)h](j)}(h struct ttm_resource_manager *manh](jX)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj8ubjj)}(h h]h }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8ubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj8modnameN classnameNj+j.)}j1]j4)}j'j8sbc.ttm_resource_finiasbuh1hhj8ubjj)}(h h]h }(hj9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8ubjH)}(hjKh]h*}(hj+9hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj8ubj)}(hmanh]hman}(hj89hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hstruct ttm_resource *resh](jX)}(hjh]hstruct}(hjQ9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjM9ubjj)}(h h]h }(hj^9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjM9ubh)}(hhh]j)}(h ttm_resourceh]h ttm_resource}(hjo9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl9ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjq9modnameN classnameNj+j.)}j1]j9c.ttm_resource_finiasbuh1hhjM9ubjj)}(h h]h }(hj9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjM9ubjH)}(hjKh]h*}(hj9hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjM9ubj)}(hresh]hres}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hMcubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj8hhhj8hMcubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jKhj8hMchj8hhubj)}(hhh]h)}(hresource destructorh]hresource destructor}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMchj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jFhhhjUhNhNubj)}(hX**Parameters** ``struct ttm_resource_manager *man`` the resource manager this resource belongs to ``struct ttm_resource *res`` the resource to clean up **Description** Should be used by resource manager backends to clean up the TTM resource objects before freeing the underlying structure. Makes sure the resource is removed from the LRU before destruction. Counterpart of ttm_resource_init().h](h)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMghj9ubj)}(hhh](j)}(hS``struct ttm_resource_manager *man`` the resource manager this resource belongs to h](j)}(h$``struct ttm_resource_manager *man``h]j)}(hj:h]h struct ttm_resource_manager *man}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMdhj :ubj)}(hhh]h)}(h-the resource manager this resource belongs toh]h-the resource manager this resource belongs to}(hj,:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(:hMdhj):ubah}(h]h ]h"]h$]h&]uh1jhj :ubeh}(h]h ]h"]h$]h&]uh1jhj(:hMdhj :ubj)}(h6``struct ttm_resource *res`` the resource to clean up h](j)}(h``struct ttm_resource *res``h]j)}(hjL:h]hstruct ttm_resource *res}(hjN:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ:ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMehjF:ubj)}(hhh]h)}(hthe resource to clean uph]hthe resource to clean up}(hje:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja:hMehjb:ubah}(h]h ]h"]h$]h&]uh1jhjF:ubeh}(h]h ]h"]h$]h&]uh1jhja:hMehj :ubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hj:h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMghj9ubh)}(hShould be used by resource manager backends to clean up the TTM resource objects before freeing the underlying structure. Makes sure the resource is removed from the LRU before destruction. Counterpart of ttm_resource_init().h]hShould be used by resource manager backends to clean up the TTM resource objects before freeing the underlying structure. Makes sure the resource is removed from the LRU before destruction. Counterpart of ttm_resource_init().}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMfhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&ttm_resource_manager_init (C function)c.ttm_resource_manager_inithNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(hivoid ttm_resource_manager_init (struct ttm_resource_manager *man, struct ttm_device *bdev, uint64_t size)h]jR)}(hhvoid ttm_resource_manager_init(struct ttm_resource_manager *man, struct ttm_device *bdev, uint64_t size)h](j)}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMubjj)}(h h]h }(hj:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:hhhj:hMubj{)}(httm_resource_manager_inith]j)}(httm_resource_manager_inith]httm_resource_manager_init}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhhj:hMubj)}(hJ(struct ttm_resource_manager *man, struct ttm_device *bdev, uint64_t size)h](j)}(h struct ttm_resource_manager *manh](jX)}(hjh]hstruct}(hj ;hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj;ubjj)}(h h]h }(hj;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;ubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hj';hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$;ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj);modnameN classnameNj+j.)}j1]j4)}j'j:sbc.ttm_resource_manager_initasbuh1hhj;ubjj)}(h h]h }(hjG;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;ubjH)}(hjKh]h*}(hjU;hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj;ubj)}(hmanh]hman}(hjb;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(hstruct ttm_device *bdevh](jX)}(hjh]hstruct}(hj{;hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjw;ubjj)}(h h]h }(hj;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjw;ubh)}(hhh]j)}(h ttm_deviceh]h ttm_device}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj;modnameN classnameNj+j.)}j1]jC;c.ttm_resource_manager_initasbuh1hhjw;ubjj)}(h h]h }(hj;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjw;ubjH)}(hjKh]h*}(hj;hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjw;ubj)}(hbdevh]hbdev}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(h uint64_t sizeh](h)}(hhh]j)}(huint64_th]huint64_t}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj;modnameN classnameNj+j.)}j1]jC;c.ttm_resource_manager_initasbuh1hhj;ubjj)}(h h]h }(hj <hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;ubj)}(hsizeh]hsize}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhj:hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj:hhhj:hMubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1jKhj:hMhj:hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj:hhhj:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjM<jjM<jjjuh1jFhhhjUhNhNubj)}(hX**Parameters** ``struct ttm_resource_manager *man`` memory manager object to init ``struct ttm_device *bdev`` ttm device this manager belongs to ``uint64_t size`` size of managed resources in arbitrary units **Description** Initialize core parts of a manager object.h](h)}(h**Parameters**h]j)}(hjW<h]h Parameters}(hjY<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU<ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjQ<ubj)}(hhh](j)}(hC``struct ttm_resource_manager *man`` memory manager object to init h](j)}(h$``struct ttm_resource_manager *man``h]j)}(hjv<h]h struct ttm_resource_manager *man}(hjx<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt<ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjp<ubj)}(hhh]h)}(hmemory manager object to inith]hmemory manager object to init}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhjp<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjm<ubj)}(h?``struct ttm_device *bdev`` ttm device this manager belongs to h](j)}(h``struct ttm_device *bdev``h]j)}(hj<h]hstruct ttm_device *bdev}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhj<ubj)}(hhh]h)}(h"ttm device this manager belongs toh]h"ttm device this manager belongs to}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjm<ubj)}(h?``uint64_t size`` size of managed resources in arbitrary units h](j)}(h``uint64_t size``h]j)}(hj<h]h uint64_t size}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhj<ubj)}(hhh]h)}(h,size of managed resources in arbitrary unitsh]h,size of managed resources in arbitrary units}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjm<ubeh}(h]h ]h"]h$]h&]uh1jhjQ<ubh)}(h**Description**h]j)}(hj#=h]h Description}(hj%=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!=ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjQ<ubh)}(h*Initialize core parts of a manager object.h]h*Initialize core parts of a manager object.}(hj9=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjQ<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'ttm_resource_manager_usage (C function)c.ttm_resource_manager_usagehNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(hFuint64_t ttm_resource_manager_usage (struct ttm_resource_manager *man)h]jR)}(hEuint64_t ttm_resource_manager_usage(struct ttm_resource_manager *man)h](h)}(hhh]j)}(huint64_th]huint64_t}(hjk=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh=ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjm=modnameN classnameNj+j.)}j1]j4)}j'ttm_resource_manager_usagesbc.ttm_resource_manager_usageasbuh1hhjd=hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMFubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjd=hhhj=hMFubj{)}(httm_resource_manager_usageh]j)}(hj=h]httm_resource_manager_usage}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjd=hhhj=hMFubj)}(h"(struct ttm_resource_manager *man)h]j)}(h struct ttm_resource_manager *manh](jX)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj=ubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj=ubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj=modnameN classnameNj+j.)}j1]j=c.ttm_resource_manager_usageasbuh1hhj=ubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj=ubjH)}(hjKh]h*}(hj>hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj=ubj)}(hmanh]hman}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubah}(h]h ]h"]h$]h&]jjuh1jhjd=hhhj=hMFubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj`=hhhj=hMFubah}(h]j[=ah ](jjeh"]h$]h&]jj)jhuh1jKhj=hMFhj]=hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj]=hhhj=hMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjjD>jjD>jjjuh1jFhhhjUhNhNubj)}(h**Parameters** ``struct ttm_resource_manager *man`` A memory manager object. **Description** Return how many resources are currently used.h](h)}(h**Parameters**h]j)}(hjN>h]h Parameters}(hjP>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL>ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMJhjH>ubj)}(hhh]j)}(h>``struct ttm_resource_manager *man`` A memory manager object. h](j)}(h$``struct ttm_resource_manager *man``h]j)}(hjm>h]h struct ttm_resource_manager *man}(hjo>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk>ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMHhjg>ubj)}(hhh]h)}(hA memory manager object.h]hA memory manager object.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMHhj>ubah}(h]h ]h"]h$]h&]uh1jhjg>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMHhjd>ubah}(h]h ]h"]h$]h&]uh1jhjH>ubh)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMJhjH>ubh)}(h-Return how many resources are currently used.h]h-Return how many resources are currently used.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMGhjH>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'ttm_resource_manager_debug (C function)c.ttm_resource_manager_debughNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(hYvoid ttm_resource_manager_debug (struct ttm_resource_manager *man, struct drm_printer *p)h]jR)}(hXvoid ttm_resource_manager_debug(struct ttm_resource_manager *man, struct drm_printer *p)h](j)}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chM[ubjj)}(h h]h }(hj>hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>hhhj>hM[ubj{)}(httm_resource_manager_debugh]j)}(httm_resource_manager_debugh]httm_resource_manager_debug}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhj>hM[ubj)}(h9(struct ttm_resource_manager *man, struct drm_printer *p)h](j)}(h struct ttm_resource_manager *manh](jX)}(hjh]hstruct}(hj*?hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj&?ubjj)}(h h]h }(hj7?hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&?ubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hjH?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE?ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjJ?modnameN classnameNj+j.)}j1]j4)}j'j?sbc.ttm_resource_manager_debugasbuh1hhj&?ubjj)}(h h]h }(hjh?hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&?ubjH)}(hjKh]h*}(hjv?hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj&?ubj)}(hmanh]hman}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"?ubj)}(hstruct drm_printer *ph](jX)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj?ubjj)}(h h]h }(hj?hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj?modnameN classnameNj+j.)}j1]jd?c.ttm_resource_manager_debugasbuh1hhj?ubjj)}(h h]h }(hj?hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?ubjH)}(hjKh]h*}(hj?hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj?ubj)}(hjTh]hp}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"?ubeh}(h]h ]h"]h$]h&]jjuh1jhj>hhhj>hM[ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj>hhhj>hM[ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jKhj>hM[hj>hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj>hhhj>hM[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%@jj%@jjjuh1jFhhhjUhNhNubj)}(h**Parameters** ``struct ttm_resource_manager *man`` manager type to dump. ``struct drm_printer *p`` printer to use for debug.h](h)}(h**Parameters**h]j)}(hj/@h]h Parameters}(hj1@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-@ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chM_hj)@ubj)}(hhh](j)}(h;``struct ttm_resource_manager *man`` manager type to dump. h](j)}(h$``struct ttm_resource_manager *man``h]j)}(hjN@h]h struct ttm_resource_manager *man}(hjP@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL@ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chM]hjH@ubj)}(hhh]h)}(hmanager type to dump.h]hmanager type to dump.}(hjg@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc@hM]hjd@ubah}(h]h ]h"]h$]h&]uh1jhjH@ubeh}(h]h ]h"]h$]h&]uh1jhjc@hM]hjE@ubj)}(h3``struct drm_printer *p`` printer to use for debug.h](j)}(h``struct drm_printer *p``h]j)}(hj@h]hstruct drm_printer *p}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chM_hj@ubj)}(hhh]h)}(hprinter to use for debug.h]hprinter to use for debug.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chM^hj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hM_hjE@ubeh}(h]h ]h"]h$]h&]uh1jhj)@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%ttm_kmap_iter_iomap_init (C function)c.ttm_kmap_iter_iomap_inithNtauh1j5hjUhhhNhNubjG)}(hhh](jL)}(hstruct ttm_kmap_iter * ttm_kmap_iter_iomap_init (struct ttm_kmap_iter_iomap *iter_io, struct io_mapping *iomap, struct sg_table *st, resource_size_t start)h]jR)}(hstruct ttm_kmap_iter *ttm_kmap_iter_iomap_init(struct ttm_kmap_iter_iomap *iter_io, struct io_mapping *iomap, struct sg_table *st, resource_size_t start)h](jX)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj@hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMubjj)}(h h]h }(hj@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@hhhj@hMubh)}(hhh]j)}(h ttm_kmap_iterh]h ttm_kmap_iter}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjAmodnameN classnameNj+j.)}j1]j4)}j'ttm_kmap_iter_iomap_initsbc.ttm_kmap_iter_iomap_initasbuh1hhj@hhhj@hMubjj)}(h h]h }(hj!AhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@hhhj@hMubjH)}(hjKh]h*}(hj/AhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj@hhhj@hMubj{)}(httm_kmap_iter_iomap_inith]j)}(hjAh]httm_kmap_iter_iomap_init}(hj@AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsgl) - **start** == 0 for **iomap** start. **Return** Pointer to the embedded struct ttm_kmap_iter.h](h)}(h**Parameters**h]j)}(hj&Ch]h Parameters}(hj(ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Cubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhj Cubj)}(hhh](j)}(hV``struct ttm_kmap_iter_iomap *iter_io`` The struct ttm_kmap_iter_iomap to initialize. h](j)}(h'``struct ttm_kmap_iter_iomap *iter_io``h]j)}(hjECh]h#struct ttm_kmap_iter_iomap *iter_io}(hjGChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCCubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhj?Cubj)}(hhh]h)}(h-The struct ttm_kmap_iter_iomap to initialize.h]h-The struct ttm_kmap_iter_iomap to initialize.}(hj^ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZChMhj[Cubah}(h]h ]h"]h$]h&]uh1jhj?Cubeh}(h]h ]h"]h$]h&]uh1jhjZChMhjsgl) - **start** == 0 for **iomap** start. h](j)}(h``resource_size_t start``h]j)}(hjDh]hresource_size_t start}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjCubj)}(hhh]h)}(htOffset that needs to be subtracted from **st** to make sg_dma_address(st->sgl) - **start** == 0 for **iomap** start.h](h(Offset that needs to be subtracted from }(hjDhhhNhNubj)}(h**st**h]hst}(hj$DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh# to make sg_dma_address(st->sgl) - }(hjDhhhNhNubj)}(h **start**h]hstart}(hj6DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh == 0 for }(hjDhhhNhNubj)}(h **iomap**h]hiomap}(hjHDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh start.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjDubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_tt (C struct)c.ttm_tthNtauh1j5hjiGhhhNhNubjG)}(hhh](jL)}(httm_tth]jR)}(h struct ttm_tth](jX)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjGhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjj)}(h h]h }(hjGhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjGhhhjGhKubj{)}(httm_tth]j)}(hjGh]httm_tt}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhjGhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjGhhhjGhKubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1jKhjGhKhjGhhubj)}(hhh]h)}(hThis is a structure holding the pages, caching- and aperture binding status for a buffer object that isn't backed by fixed (VRAM / AGP) memory.h]hThis is a structure holding the pages, caching- and aperture binding status for a buffer object that isn’t backed by fixed (VRAM / AGP) memory.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK,hjGhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhKubeh}(h]h ](jstructeh"]h$]h&]jjjjGjjGjjjuh1jFhhhjiGhNhNubj)}(hX **Definition**:: struct ttm_tt { struct page **pages; #define TTM_TT_FLAG_SWAPPED BIT(0); #define TTM_TT_FLAG_ZERO_ALLOC BIT(1); #define TTM_TT_FLAG_EXTERNAL BIT(2); #define TTM_TT_FLAG_EXTERNAL_MAPPABLE BIT(3); #define TTM_TT_FLAG_DECRYPTED BIT(4); #define TTM_TT_FLAG_BACKED_UP BIT(5); #define TTM_TT_FLAG_PRIV_POPULATED BIT(6); uint32_t page_flags; uint32_t num_pages; struct sg_table *sg; dma_addr_t *dma_address; struct file *swap_storage; struct file *backup; enum ttm_caching caching; struct ttm_pool_tt_restore *restore; }; **Members** ``pages`` Array of pages backing the data. ``page_flags`` The page flags. Supported values: TTM_TT_FLAG_SWAPPED: Set by TTM when the pages have been unpopulated and swapped out by TTM. Calling ttm_tt_populate() will then swap the pages back in, and unset the flag. Drivers should in general never need to touch this. TTM_TT_FLAG_ZERO_ALLOC: Set if the pages will be zeroed on allocation. TTM_TT_FLAG_EXTERNAL: Set if the underlying pages were allocated externally, like with dma-buf or userptr. This effectively disables TTM swapping out such pages. Also important is to prevent TTM from ever directly mapping these pages. Note that enum ttm_bo_type.ttm_bo_type_sg objects will always enable this flag. TTM_TT_FLAG_EXTERNAL_MAPPABLE: Same behaviour as TTM_TT_FLAG_EXTERNAL, but with the reduced restriction that it is still valid to use TTM to map the pages directly. This is useful when implementing a ttm_tt backend which still allocates driver owned pages underneath(say with shmem). Note that since this also implies TTM_TT_FLAG_EXTERNAL, the usage here should always be: page_flags = TTM_TT_FLAG_EXTERNAL | TTM_TT_FLAG_EXTERNAL_MAPPABLE; TTM_TT_FLAG_DECRYPTED: The mapped ttm pages should be marked as not encrypted. The framework will try to match what the dma layer is doing, but note that it is a little fragile because ttm page fault handling abuses the DMA api a bit and dma_map_attrs can't be used to assure pgprot always matches. TTM_TT_FLAG_BACKED_UP: TTM internal only. This is set if the struct ttm_tt has been (possibly partially) backed up. TTM_TT_FLAG_PRIV_POPULATED: TTM internal only. DO NOT USE. This is set by TTM after ttm_tt_populate() has successfully returned, and is then unset when TTM calls ttm_tt_unpopulate(). ``num_pages`` Number of pages in the page array. ``sg`` for SG objects via dma-buf. ``dma_address`` The DMA (bus) addresses of the pages. ``swap_storage`` Pointer to shmem struct file for swap storage. ``backup`` Pointer to backup struct for backed up tts. Could be unified with **swap_storage**. Meanwhile, the driver's ttm_tt_create() callback is responsible for assigning this field. ``caching`` The current caching state of the pages, see enum ttm_caching. ``restore`` Partial restoration from backup state. TTM privateh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh:}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK0hjGubjh)}(hXastruct ttm_tt { struct page **pages; #define TTM_TT_FLAG_SWAPPED BIT(0); #define TTM_TT_FLAG_ZERO_ALLOC BIT(1); #define TTM_TT_FLAG_EXTERNAL BIT(2); #define TTM_TT_FLAG_EXTERNAL_MAPPABLE BIT(3); #define TTM_TT_FLAG_DECRYPTED BIT(4); #define TTM_TT_FLAG_BACKED_UP BIT(5); #define TTM_TT_FLAG_PRIV_POPULATED BIT(6); uint32_t page_flags; uint32_t num_pages; struct sg_table *sg; dma_addr_t *dma_address; struct file *swap_storage; struct file *backup; enum ttm_caching caching; struct ttm_pool_tt_restore *restore; };h]hXastruct ttm_tt { struct page **pages; #define TTM_TT_FLAG_SWAPPED BIT(0); #define TTM_TT_FLAG_ZERO_ALLOC BIT(1); #define TTM_TT_FLAG_EXTERNAL BIT(2); #define TTM_TT_FLAG_EXTERNAL_MAPPABLE BIT(3); #define TTM_TT_FLAG_DECRYPTED BIT(4); #define TTM_TT_FLAG_BACKED_UP BIT(5); #define TTM_TT_FLAG_PRIV_POPULATED BIT(6); uint32_t page_flags; uint32_t num_pages; struct sg_table *sg; dma_addr_t *dma_address; struct file *swap_storage; struct file *backup; enum ttm_caching caching; struct ttm_pool_tt_restore *restore; };}hjHsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK2hjGubh)}(h **Members**h]j)}(hj#Hh]hMembers}(hj%HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Hubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKEhjGubj)}(hhh](j)}(h+``pages`` Array of pages backing the data. h](j)}(h ``pages``h]j)}(hjBHh]hpages}(hjDHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Hubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK2hjhjHubh)}(hTTM_TT_FLAG_EXTERNAL: Set if the underlying pages were allocated externally, like with dma-buf or userptr. This effectively disables TTM swapping out such pages. Also important is to prevent TTM from ever directly mapping these pages.h]hTTM_TT_FLAG_EXTERNAL: Set if the underlying pages were allocated externally, like with dma-buf or userptr. This effectively disables TTM swapping out such pages. Also important is to prevent TTM from ever directly mapping these pages.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKAhjHubh)}(hONote that enum ttm_bo_type.ttm_bo_type_sg objects will always enable this flag.h]hONote that enum ttm_bo_type.ttm_bo_type_sg objects will always enable this flag.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKFhjHubh)}(hXTTM_TT_FLAG_EXTERNAL_MAPPABLE: Same behaviour as TTM_TT_FLAG_EXTERNAL, but with the reduced restriction that it is still valid to use TTM to map the pages directly. This is useful when implementing a ttm_tt backend which still allocates driver owned pages underneath(say with shmem).h]hXTTM_TT_FLAG_EXTERNAL_MAPPABLE: Same behaviour as TTM_TT_FLAG_EXTERNAL, but with the reduced restriction that it is still valid to use TTM to map the pages directly. This is useful when implementing a ttm_tt backend which still allocates driver owned pages underneath(say with shmem).}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKIhjHubh)}(hXNote that since this also implies TTM_TT_FLAG_EXTERNAL, the usage here should always be:h]hXNote that since this also implies TTM_TT_FLAG_EXTERNAL, the usage here should always be:}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKOhjHubj)}(hPpage_flags = TTM_TT_FLAG_EXTERNAL | TTM_TT_FLAG_EXTERNAL_MAPPABLE; h]j)}(hhh]j)}(hCpage_flags = TTM_TT_FLAG_EXTERNAL | TTM_TT_FLAG_EXTERNAL_MAPPABLE; h](j)}(h#page_flags = TTM_TT_FLAG_EXTERNAL |h]h#page_flags = TTM_TT_FLAG_EXTERNAL |}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKShjIubj)}(hhh]h)}(hTTM_TT_FLAG_EXTERNAL_MAPPABLE;h]hTTM_TT_FLAG_EXTERNAL_MAPPABLE;}(hj)IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%IhKShj&Iubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhj%IhKShjIubah}(h]h ]h"]h$]h&]uh1jhj Iubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKRhjHubh)}(hX*TTM_TT_FLAG_DECRYPTED: The mapped ttm pages should be marked as not encrypted. The framework will try to match what the dma layer is doing, but note that it is a little fragile because ttm page fault handling abuses the DMA api a bit and dma_map_attrs can't be used to assure pgprot always matches.h]hX,TTM_TT_FLAG_DECRYPTED: The mapped ttm pages should be marked as not encrypted. The framework will try to match what the dma layer is doing, but note that it is a little fragile because ttm page fault handling abuses the DMA api a bit and dma_map_attrs can’t be used to assure pgprot always matches.}(hjPIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKUhjHubh)}(hsTTM_TT_FLAG_BACKED_UP: TTM internal only. This is set if the struct ttm_tt has been (possibly partially) backed up.h]hsTTM_TT_FLAG_BACKED_UP: TTM internal only. This is set if the struct ttm_tt has been (possibly partially) backed up.}(hj_IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK[hjHubh)}(hTTM_TT_FLAG_PRIV_POPULATED: TTM internal only. DO NOT USE. This is set by TTM after ttm_tt_populate() has successfully returned, and is then unset when TTM calls ttm_tt_unpopulate().h]hTTM_TT_FLAG_PRIV_POPULATED: TTM internal only. DO NOT USE. This is set by TTM after ttm_tt_populate() has successfully returned, and is then unset when TTM calls ttm_tt_unpopulate().}(hjnIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK^hjHubeh}(h]h ]h"]h$]h&]uh1jhjuHubeh}(h]h ]h"]h$]h&]uh1jhjHhK`hj9Hubj)}(h1``num_pages`` Number of pages in the page array. h](j)}(h ``num_pages``h]j)}(hjIh]h num_pages}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKlhjIubj)}(hhh]h)}(h"Number of pages in the page array.h]h"Number of pages in the page array.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhKlhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhKlhj9Hubj)}(h#``sg`` for SG objects via dma-buf. h](j)}(h``sg``h]j)}(hjIh]hsg}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKnhjIubj)}(hhh]h)}(hfor SG objects via dma-buf.h]hfor SG objects via dma-buf.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhKnhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhKnhj9Hubj)}(h6``dma_address`` The DMA (bus) addresses of the pages. h](j)}(h``dma_address``h]j)}(hjJh]h dma_address}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKphjIubj)}(hhh]h)}(h%The DMA (bus) addresses of the pages.h]h%The DMA (bus) addresses of the pages.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKphjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjJhKphj9Hubj)}(h@``swap_storage`` Pointer to shmem struct file for swap storage. h](j)}(h``swap_storage``h]j)}(hj:Jh]h swap_storage}(hj``restore`` Partial restoration from backup state. TTM privateh](j)}(h ``restore``h]j)}(hjJh]hrestore}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjJubj)}(hhh]h)}(h2Partial restoration from backup state. TTM privateh]h2Partial restoration from backup state. TTM private}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjKubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjKhKhj9Hubeh}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjiGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_kmap_iter_tt (C struct)c.ttm_kmap_iter_tthNtauh1j5hjiGhhhNhNubjG)}(hhh](jL)}(httm_kmap_iter_tth]jR)}(hstruct ttm_kmap_iter_tth](jX)}(hjh]hstruct}(hjSKhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjOKhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjj)}(h h]h }(hjaKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOKhhhj`KhKubj{)}(httm_kmap_iter_tth]j)}(hjMKh]httm_kmap_iter_tt}(hjsKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOKhhhj`KhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjKKhhhj`KhKubah}(h]jFKah ](jjeh"]h$]h&]jj)jhuh1jKhj`KhKhjHKhhubj)}(hhh]h)}(h-Specialization of a mappig iterator for a tt.h]h-Specialization of a mappig iterator for a tt.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjKhhubah}(h]h ]h"]h$]h&]uh1jhjHKhhhj`KhKubeh}(h]h ](jstructeh"]h$]h&]jjjjKjjKjjjuh1jFhhhjiGhNhNubj)}(hX&**Definition**:: struct ttm_kmap_iter_tt { struct ttm_kmap_iter base; struct ttm_tt *tt; pgprot_t prot; }; **Members** ``base`` Embedded struct ttm_kmap_iter providing the usage interface ``tt`` Cached struct ttm_tt. ``prot`` Cached page protection for mapping.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh:}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjKubjh)}(hestruct ttm_kmap_iter_tt { struct ttm_kmap_iter base; struct ttm_tt *tt; pgprot_t prot; };h]hestruct ttm_kmap_iter_tt { struct ttm_kmap_iter base; struct ttm_tt *tt; pgprot_t prot; };}hjKsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjKubh)}(h **Members**h]j)}(hjKh]hMembers}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjKubj)}(hhh](j)}(hE``base`` Embedded struct ttm_kmap_iter providing the usage interface h](j)}(h``base``h]j)}(hjLh]hbase}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjKubj)}(hhh]h)}(h;Embedded struct ttm_kmap_iter providing the usage interfaceh]h;Embedded struct ttm_kmap_iter providing the usage interface}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhKhjLubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjLhKhjKubj)}(h``tt`` Cached struct ttm_tt. h](j)}(h``tt``h]j)}(hj;Lh]htt}(hj=LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Lubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj5Lubj)}(hhh]h)}(hCached struct ttm_tt.h]hCached struct ttm_tt.}(hjTLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPLhKhjQLubah}(h]h ]h"]h$]h&]uh1jhj5Lubeh}(h]h ]h"]h$]h&]uh1jhjPLhKhjKubj)}(h,``prot`` Cached page protection for mapping.h](j)}(h``prot``h]j)}(hjtLh]hprot}(hjvLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrLubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjnLubj)}(hhh]h)}(h#Cached page protection for mapping.h]h#Cached page protection for mapping.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjLubah}(h]h ]h"]h$]h&]uh1jhjnLubeh}(h]h ]h"]h$]h&]uh1jhjLhKhjKubeh}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjiGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_tt_is_swapped (C function)c.ttm_tt_is_swappedhNtauh1j5hjiGhhhNhNubjG)}(hhh](jL)}(h0bool ttm_tt_is_swapped (const struct ttm_tt *tt)h]jR)}(h/bool ttm_tt_is_swapped(const struct ttm_tt *tt)h](j)}(hj*h]hbool}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjj)}(h h]h }(hjLhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjLhhhjLhKubj{)}(httm_tt_is_swappedh]j)}(httm_tt_is_swappedh]httm_tt_is_swapped}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLhhhjLhKubj)}(h(const struct ttm_tt *tt)h]j)}(hconst struct ttm_tt *tth](jX)}(hj h]hconst}(hj MhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjMubjj)}(h h]h }(hjMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjMubjX)}(hjh]hstruct}(hj%MhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjMubjj)}(h h]h }(hj2MhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjMubh)}(hhh]j)}(httm_tth]httm_tt}(hjCMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Mubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjEMmodnameN classnameNj+j.)}j1]j4)}j'jLsbc.ttm_tt_is_swappedasbuh1hhjMubjj)}(h h]h }(hjcMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjMubjH)}(hjKh]h*}(hjqMhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjMubj)}(htth]htt}(hj~MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubah}(h]h ]h"]h$]h&]jjuh1jhjLhhhjLhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjLhhhjLhKubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jKhjLhKhjLhhubj)}(hhh]h)}(h.Whether the ttm_tt is swapped out or backed uph]h.Whether the ttm_tt is swapped out or backed up}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjMhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1jFhhhjiGhNhNubj)}(h|**Parameters** ``const struct ttm_tt *tt`` The struct ttm_tt. **Return** true if swapped or backed up, false otherwise.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjMubj)}(hhh]j)}(h/``const struct ttm_tt *tt`` The struct ttm_tt. h](j)}(h``const struct ttm_tt *tt``h]j)}(hjMh]hconst struct ttm_tt *tt}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjMubj)}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhKhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhKhjMubah}(h]h ]h"]h$]h&]uh1jhjMubh)}(h **Return**h]j)}(hj$Nh]hReturn}(hj&NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Nubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjMubh)}(h.true if swapped or backed up, false otherwise.h]h.true if swapped or backed up, false otherwise.}(hj:NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjiGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB ttm_tt_is_backed_up (C function)c.ttm_tt_is_backed_uphNtauh1j5hjiGhhhNhNubjG)}(hhh](jL)}(h2bool ttm_tt_is_backed_up (const struct ttm_tt *tt)h]jR)}(h1bool ttm_tt_is_backed_up(const struct ttm_tt *tt)h](j)}(hj*h]hbool}(hjiNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeNhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjj)}(h h]h }(hjwNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjeNhhhjvNhKubj{)}(httm_tt_is_backed_uph]j)}(httm_tt_is_backed_uph]httm_tt_is_backed_up}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjeNhhhjvNhKubj)}(h(const struct ttm_tt *tt)h]j)}(hconst struct ttm_tt *tth](jX)}(hj h]hconst}(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjNubjj)}(h h]h }(hjNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjNubjX)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjNubjj)}(h h]h }(hjNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjNubh)}(hhh]j)}(httm_tth]httm_tt}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjNmodnameN classnameNj+j.)}j1]j4)}j'jNsbc.ttm_tt_is_backed_upasbuh1hhjNubjj)}(h h]h }(hjNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjNubjH)}(hjKh]h*}(hj OhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjNubj)}(htth]htt}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubah}(h]h ]h"]h$]h&]jjuh1jhjeNhhhjvNhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjaNhhhjvNhKubah}(h]j\Nah ](jjeh"]h$]h&]jj)jhuh1jKhjvNhKhj^Nhhubj)}(hhh]h)}(hWhether the ttm_tt backed uph]hWhether the ttm_tt backed up}(hjCOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj@Ohhubah}(h]h ]h"]h$]h&]uh1jhj^NhhhjvNhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[Ojj[Ojjjuh1jFhhhjiGhNhNubj)}(h|**Parameters** ``const struct ttm_tt *tt`` The struct ttm_tt. **Return** true if swapped or backed up, false otherwise.h](h)}(h**Parameters**h]j)}(hjeOh]h Parameters}(hjgOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcOubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj_Oubj)}(hhh]j)}(h/``const struct ttm_tt *tt`` The struct ttm_tt. h](j)}(h``const struct ttm_tt *tt``h]j)}(hjOh]hconst struct ttm_tt *tt}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj~Oubj)}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhKhjOubah}(h]h ]h"]h$]h&]uh1jhj~Oubeh}(h]h ]h"]h$]h&]uh1jhjOhKhj{Oubah}(h]h ]h"]h$]h&]uh1jhj_Oubh)}(h **Return**h]j)}(hjOh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj_Oubh)}(h.true if swapped or backed up, false otherwise.h]h.true if swapped or backed up, false otherwise.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj_Oubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjiGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#ttm_tt_clear_backed_up (C function)c.ttm_tt_clear_backed_uphNtauh1j5hjiGhhhNhNubjG)}(hhh](jL)}(h/void ttm_tt_clear_backed_up (struct ttm_tt *tt)h]jR)}(h.void ttm_tt_clear_backed_up(struct ttm_tt *tt)h](j)}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjj)}(h h]h }(hjPhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjPhhhjPhKubj{)}(httm_tt_clear_backed_uph]j)}(httm_tt_clear_backed_uph]httm_tt_clear_backed_up}(hj%PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Pubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPhhhjPhKubj)}(h(struct ttm_tt *tt)h]j)}(hstruct ttm_tt *tth](jX)}(hjh]hstruct}(hjAPhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj=Pubjj)}(h h]h }(hjNPhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj=Pubh)}(hhh]j)}(httm_tth]httm_tt}(hj_PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Pubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjaPmodnameN classnameNj+j.)}j1]j4)}j'j'Psbc.ttm_tt_clear_backed_upasbuh1hhj=Pubjj)}(h h]h }(hjPhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj=PubjH)}(hjKh]h*}(hjPhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj=Pubj)}(htth]htt}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Pubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9Pubah}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjOhhhjPhKubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1jKhjPhKhjOhhubj)}(hhh]h)}(h!Clear the ttm_tt backed-up statush]h!Clear the ttm_tt backed-up status}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjPhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjPhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1jFhhhjiGhNhNubj)}(h**Parameters** ``struct ttm_tt *tt`` The struct ttm_tt. **Description** Drivers can use this functionto clear the backed-up status, for example before destroying or re-validating a purged tt.h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjPubj)}(hhh]j)}(h)``struct ttm_tt *tt`` The struct ttm_tt. h](j)}(h``struct ttm_tt *tt``h]j)}(hjQh]hstruct ttm_tt *tt}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjPubj)}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjQubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjQhKhjPubah}(h]h ]h"]h$]h&]uh1jhjPubh)}(h**Description**h]j)}(hj@Qh]h Description}(hjBQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Qubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjPubh)}(hwDrivers can use this functionto clear the backed-up status, for example before destroying or re-validating a purged tt.h]hwDrivers can use this functionto clear the backed-up status, for example before destroying or re-validating a purged tt.}(hjVQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjiGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_tt_create (C function)c.ttm_tt_createhNtauh1j5hjiGhhhNhNubjG)}(hhh](jL)}(hAint ttm_tt_create (struct ttm_buffer_object *bo, bool zero_alloc)h]jR)}(h@int ttm_tt_create(struct ttm_buffer_object *bo, bool zero_alloc)h](j)}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjj)}(h h]h }(hjQhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjQhhhjQhKubj{)}(h ttm_tt_createh]j)}(h ttm_tt_createh]h ttm_tt_create}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQhhhjQhKubj)}(h/(struct ttm_buffer_object *bo, bool zero_alloc)h](j)}(hstruct ttm_buffer_object *boh](jX)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjQubjj)}(h h]h }(hjQhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjQubh)}(hhh]j)}(httm_buffer_objecth]httm_buffer_object}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjQmodnameN classnameNj+j.)}j1]j4)}j'jQsbc.ttm_tt_createasbuh1hhjQubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjQubjH)}(hjKh]h*}(hjRhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjQubj)}(hboh]hbo}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hbool zero_alloch](j)}(hj*h]hbool}(hj4RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Rubjj)}(h h]h }(hjARhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0Rubj)}(h zero_alloch]h zero_alloc}(hjORhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjQhhhjQhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj}QhhhjQhKubah}(h]jxQah ](jjeh"]h$]h&]jj)jhuh1jKhjQhKhjzQhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjzQhhhjQhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1jFhhhjiGhNhNubj)}(hX **Parameters** ``struct ttm_buffer_object *bo`` pointer to a struct ttm_buffer_object ``bool zero_alloc`` true if allocated pages needs to be zeroed **Description** Make sure we have a TTM structure allocated for the given BO. No pages are actually allocated.h](h)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjRubj)}(hhh](j)}(hG``struct ttm_buffer_object *bo`` pointer to a struct ttm_buffer_object h](j)}(h ``struct ttm_buffer_object *bo``h]j)}(hjRh]hstruct ttm_buffer_object *bo}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjRubj)}(hhh]h)}(h%pointer to a struct ttm_buffer_objecth]h%pointer to a struct ttm_buffer_object}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKhjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhKhjRubj)}(h?``bool zero_alloc`` true if allocated pages needs to be zeroed h](j)}(h``bool zero_alloc``h]j)}(hjRh]hbool zero_alloc}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjRubj)}(hhh]h)}(h*true if allocated pages needs to be zeroedh]h*true if allocated pages needs to be zeroed}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKhjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhKhjRubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(h**Description**h]j)}(hjSh]h Description}(hj!ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjRubh)}(h^Make sure we have a TTM structure allocated for the given BO. No pages are actually allocated.h]h^Make sure we have a TTM structure allocated for the given BO. No pages are actually allocated.}(hj5ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjiGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_tt_init (C function) c.ttm_tt_inithNtauh1j5hjiGhhhNhNubjG)}(hhh](jL)}(hint ttm_tt_init (struct ttm_tt *ttm, struct ttm_buffer_object *bo, uint32_t page_flags, enum ttm_caching caching, unsigned long extra_pages)h]jR)}(hint ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, uint32_t page_flags, enum ttm_caching caching, unsigned long extra_pages)h](j)}(hinth]hint}(hjdShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ShhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjj)}(h h]h }(hjsShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj`ShhhjrShKubj{)}(h ttm_tt_inith]j)}(h ttm_tt_inith]h ttm_tt_init}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj`ShhhjrShKubj)}(h|(struct ttm_tt *ttm, struct ttm_buffer_object *bo, uint32_t page_flags, enum ttm_caching caching, unsigned long extra_pages)h](j)}(hstruct ttm_tt *ttmh](jX)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjSubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjSubh)}(hhh]j)}(httm_tth]httm_tt}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjSmodnameN classnameNj+j.)}j1]j4)}j'jSsb c.ttm_tt_initasbuh1hhjSubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjSubjH)}(hjKh]h*}(hjShhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjSubj)}(httmh]httm}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hstruct ttm_buffer_object *boh](jX)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjTubjj)}(h h]h }(hj ThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjTubh)}(hhh]j)}(httm_buffer_objecth]httm_buffer_object}(hj1ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Tubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj3TmodnameN classnameNj+j.)}j1]jS c.ttm_tt_initasbuh1hhjTubjj)}(h h]h }(hjOThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjTubjH)}(hjKh]h*}(hj]ThhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjTubj)}(hboh]hbo}(hjjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(huint32_t page_flagsh](h)}(hhh]j)}(huint32_th]huint32_t}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjTmodnameN classnameNj+j.)}j1]jS c.ttm_tt_initasbuh1hhjTubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjTubj)}(h page_flagsh]h page_flags}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(henum ttm_caching cachingh](jX)}(hj[h]henum}(hjThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjTubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjTubh)}(hhh]j)}(h ttm_cachingh]h ttm_caching}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjTmodnameN classnameNj+j.)}j1]jS c.ttm_tt_initasbuh1hhjTubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjTubj)}(hcachingh]hcaching}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hunsigned long extra_pagesh](j)}(hunsignedh]hunsigned}(hj.UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*Uubjj)}(h h]h }(hjahhubj)}(hhh]h)}(h$Mark pages for clearing on populate.h]h$Mark pages for clearing on populate.}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM hjbhhubah}(h]h ]h"]h$]h&]uh1jhj>ahhhjWahM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!bjj!bjjjuh1jFhhhjiGhNhNubj)}(h**Parameters** ``struct ttm_tt *ttm`` Pointer to the ttm_tt structure **Description** Marks pages for clearing so that the next time the page vector is populated, the pages will be cleared.h](h)}(h**Parameters**h]j)}(hj+bh]h Parameters}(hj-bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)bubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhj%bubj)}(hhh]j)}(h7``struct ttm_tt *ttm`` Pointer to the ttm_tt structure h](j)}(h``struct ttm_tt *ttm``h]j)}(hjJbh]hstruct ttm_tt *ttm}(hjLbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHbubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM hjDbubj)}(hhh]h)}(hPointer to the ttm_tt structureh]hPointer to the ttm_tt structure}(hjcbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_bhM hj`bubah}(h]h ]h"]h$]h&]uh1jhjDbubeh}(h]h ]h"]h$]h&]uh1jhj_bhM hjAbubah}(h]h ]h"]h$]h&]uh1jhj%bubh)}(h**Description**h]j)}(hjbh]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhj%bubh)}(hgMarks pages for clearing so that the next time the page vector is populated, the pages will be cleared.h]hgMarks pages for clearing so that the next time the page vector is populated, the pages will be cleared.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM hj%bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjiGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_backup_flags (C struct)c.ttm_backup_flagshNtauh1j5hjiGhhhNhNubjG)}(hhh](jL)}(httm_backup_flagsh]jR)}(hstruct ttm_backup_flagsh](jX)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjbhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMubjj)}(h h]h }(hjbhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjbhhhjbhMubj{)}(httm_backup_flagsh]j)}(hjbh]httm_backup_flags}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjbhhhjbhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjbhhhjbhMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1jKhjbhMhjbhhubj)}(hhh]h)}(h!Flags to govern backup behaviour.h]h!Flags to govern backup behaviour.}(hj chhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhj chhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhMubeh}(h]h ](jstructeh"]h$]h&]jjjj$cjj$cjjjuh1jFhhhjiGhNhNubj)}(hX%**Definition**:: struct ttm_backup_flags { u32 purge : 1; u32 writeback : 1; }; **Members** ``purge`` Free pages without backing up. Bypass pools. ``writeback`` Attempt to copy contents directly to swap space, even if that means blocking on writes to external memory.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj0chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,cubh:}(hj,chhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM!hj(cubjh)}(hFstruct ttm_backup_flags { u32 purge : 1; u32 writeback : 1; };h]hFstruct ttm_backup_flags { u32 purge : 1; u32 writeback : 1; };}hjIcsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM#hj(cubh)}(h **Members**h]j)}(hjZch]hMembers}(hj\chhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXcubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM(hj(cubj)}(hhh](j)}(h7``purge`` Free pages without backing up. Bypass pools. h](j)}(h ``purge``h]j)}(hjych]hpurge}(hj{chhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwcubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhjscubj)}(hhh]h)}(h,Free pages without backing up. Bypass pools.h]h,Free pages without backing up. Bypass pools.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjscubeh}(h]h ]h"]h$]h&]uh1jhjchMhjpcubj)}(hx``writeback`` Attempt to copy contents directly to swap space, even if that means blocking on writes to external memory.h](j)}(h ``writeback``h]j)}(hjch]h writeback}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM hjcubj)}(hhh]h)}(hjAttempt to copy contents directly to swap space, even if that means blocking on writes to external memory.h]hjAttempt to copy contents directly to swap space, even if that means blocking on writes to external memory.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchM hjpcubeh}(h]h ]h"]h$]h&]uh1jhj(cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjiGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_agp_tt_create (C function)c.ttm_agp_tt_createhNtauh1j5hjiGhhhNhNubjG)}(hhh](jL)}(hustruct ttm_tt * ttm_agp_tt_create (struct ttm_buffer_object *bo, struct agp_bridge_data *bridge, uint32_t page_flags)h]jR)}(hsstruct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo, struct agp_bridge_data *bridge, uint32_t page_flags)h](jX)}(hjh]hstruct}(hj dhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjdhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM3ubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdhhhjdhM3ubh)}(hhh]j)}(httm_tth]httm_tt}(hj*dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'dubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj,dmodnameN classnameNj+j.)}j1]j4)}j'ttm_agp_tt_createsbc.ttm_agp_tt_createasbuh1hhjdhhhjdhM3ubjj)}(h h]h }(hjKdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdhhhjdhM3ubjH)}(hjKh]h*}(hjYdhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjdhhhjdhM3ubj{)}(httm_agp_tt_createh]j)}(hjHdh]httm_agp_tt_create}(hjjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdhhhjdhM3ubj)}(hS(struct ttm_buffer_object *bo, struct agp_bridge_data *bridge, uint32_t page_flags)h](j)}(hstruct ttm_buffer_object *boh](jX)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjdubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubh)}(hhh]j)}(httm_buffer_objecth]httm_buffer_object}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjdmodnameN classnameNj+j.)}j1]jFdc.ttm_agp_tt_createasbuh1hhjdubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubjH)}(hjKh]h*}(hjdhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjdubj)}(hboh]hbo}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}dubj)}(hstruct agp_bridge_data *bridgeh](jX)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjdubjj)}(h h]h }(hjehhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubh)}(hhh]j)}(hagp_bridge_datah]hagp_bridge_data}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjemodnameN classnameNj+j.)}j1]jFdc.ttm_agp_tt_createasbuh1hhjdubjj)}(h h]h }(hj1ehhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubjH)}(hjKh]h*}(hj?ehhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjdubj)}(hbridgeh]hbridge}(hjLehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}dubj)}(huint32_t page_flagsh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeeubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjjemodnameN classnameNj+j.)}j1]jFdc.ttm_agp_tt_createasbuh1hhjaeubjj)}(h h]h }(hjehhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjaeubj)}(h page_flagsh]h page_flags}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}dubeh}(h]h ]h"]h$]h&]jjuh1jhjdhhhjdhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjdhhhjdhM3ubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jKhjdhM3hjdhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjdhhhjdhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1jFhhhjiGhNhNubj)}(hX**Parameters** ``struct ttm_buffer_object *bo`` Buffer object we allocate the ttm for. ``struct agp_bridge_data *bridge`` The agp bridge this device is sitting on. ``uint32_t page_flags`` Page flags as identified by TTM_TT_FLAG_XX flags. **Description** Create a TTM backend that uses the indicated AGP bridge as an aperture for TT memory. This function uses the linux agpgart interface to bind and unbind memory backing a ttm_tt.h](h)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM7hjeubj)}(hhh](j)}(hH``struct ttm_buffer_object *bo`` Buffer object we allocate the ttm for. h](j)}(h ``struct ttm_buffer_object *bo``h]j)}(hjeh]hstruct ttm_buffer_object *bo}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM5hjeubj)}(hhh]h)}(h&Buffer object we allocate the ttm for.h]h&Buffer object we allocate the ttm for.}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhM5hjfubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h W]h"]h$]h&]uh1jhjfhM5hjeubj)}(hM``struct agp_bridge_data *bridge`` The agp bridge this device is sitting on. h](j)}(h"``struct agp_bridge_data *bridge``h]j)}(hj)fh]hstruct agp_bridge_data *bridge}(hj+fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'fubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM6hj#fubj)}(hhh]h)}(h)The agp bridge this device is sitting on.h]h)The agp bridge this device is sitting on.}(hjBfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>fhM6hj?fubah}(h]h ]h"]h$]h&]uh1jhj#fubeh}(h]h ]h"]h$]h&]uh1jhj>fhM6hjeubj)}(hJ``uint32_t page_flags`` Page flags as identified by TTM_TT_FLAG_XX flags. h](j)}(h``uint32_t page_flags``h]j)}(hjbfh]huint32_t page_flags}(hjdfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`fubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM7hj\fubj)}(hhh]h)}(h1Page flags as identified by TTM_TT_FLAG_XX flags.h]h1Page flags as identified by TTM_TT_FLAG_XX flags.}(hj{fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwfhM7hjxfubah}(h]h ]h"]h$]h&]uh1jhj\fubeh}(h]h ]h"]h$]h&]uh1jhjwfhM7hjeubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(h**Description**h]j)}(hjfh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM9hjeubh)}(hCreate a TTM backend that uses the indicated AGP bridge as an aperture for TT memory. This function uses the linux agpgart interface to bind and unbind memory backing a ttm_tt.h]hCreate a TTM backend that uses the indicated AGP bridge as an aperture for TT memory. This function uses the linux agpgart interface to bind and unbind memory backing a ttm_tt.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM4hjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjiGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"ttm_kmap_iter_tt_init (C function)c.ttm_kmap_iter_tt_inithNtauh1j5hjiGhhhNhNubjG)}(hhh](jL)}(hbstruct ttm_kmap_iter * ttm_kmap_iter_tt_init (struct ttm_kmap_iter_tt *iter_tt, struct ttm_tt *tt)h]jR)}(h`struct ttm_kmap_iter *ttm_kmap_iter_tt_init(struct ttm_kmap_iter_tt *iter_tt, struct ttm_tt *tt)h](jX)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjfhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMubjj)}(h h]h }(hjfhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjfhhhjfhMubh)}(hhh]j)}(h ttm_kmap_iterh]h ttm_kmap_iter}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjgmodnameN classnameNj+j.)}j1]j4)}j'ttm_kmap_iter_tt_initsbc.ttm_kmap_iter_tt_initasbuh1hhjfhhhjfhMubjj)}(h h]h }(hj"ghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjfhhhjfhMubjH)}(hjKh]h*}(hj0ghhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjfhhhjfhMubj{)}(httm_kmap_iter_tt_inith]j)}(hjgh]httm_kmap_iter_tt_init}(hjAghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=gubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjfhhhjfhMubj)}(h5(struct ttm_kmap_iter_tt *iter_tt, struct ttm_tt *tt)h](j)}(h struct ttm_kmap_iter_tt *iter_tth](jX)}(hjh]hstruct}(hj\ghhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjXgubjj)}(h h]h }(hjighhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjXgubh)}(hhh]j)}(httm_kmap_iter_tth]httm_kmap_iter_tt}(hjzghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwgubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj|gmodnameN classnameNj+j.)}j1]jgc.ttm_kmap_iter_tt_initasbuh1hhjXgubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjXgubjH)}(hjKh]h*}(hjghhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjXgubj)}(hiter_tth]hiter_tt}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTgubj)}(hstruct ttm_tt *tth](jX)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjgubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubh)}(hhh]j)}(httm_tth]httm_tt}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjgmodnameN classnameNj+j.)}j1]jgc.ttm_kmap_iter_tt_initasbuh1hhjgubjj)}(h h]h }(hjhhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubjH)}(hjKh]h*}(hjhhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjgubj)}(htth]htt}(hj#hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTgubeh}(h]h ]h"]h$]h&]jjuh1jhjfhhhjfhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjfhhhjfhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1jKhjfhMhjfhhubj)}(hhh]h)}(h$Initialize a struct ttm_kmap_iter_tth]h$Initialize a struct ttm_kmap_iter_tt}(hjMhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjJhhhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjfhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjehjjehjjjuh1jFhhhjiGhNhNubj)}(h**Parameters** ``struct ttm_kmap_iter_tt *iter_tt`` The struct ttm_kmap_iter_tt to initialize. ``struct ttm_tt *tt`` Struct ttm_tt holding page pointers of the struct ttm_resource. **Return** Pointer to the embedded struct ttm_kmap_iter.h](h)}(h**Parameters**h]j)}(hjohh]h Parameters}(hjqhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjihubj)}(hhh](j)}(hP``struct ttm_kmap_iter_tt *iter_tt`` The struct ttm_kmap_iter_tt to initialize. h](j)}(h$``struct ttm_kmap_iter_tt *iter_tt``h]j)}(hjhh]h struct ttm_kmap_iter_tt *iter_tt}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjhubj)}(hhh]h)}(h*The struct ttm_kmap_iter_tt to initialize.h]h*The struct ttm_kmap_iter_tt to initialize.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjhubj)}(hV``struct ttm_tt *tt`` Struct ttm_tt holding page pointers of the struct ttm_resource. h](j)}(h``struct ttm_tt *tt``h]j)}(hjhh]hstruct ttm_tt *tt}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjhubj)}(hhh]h)}(h?Struct ttm_tt holding page pointers of the struct ttm_resource.h]h?Struct ttm_tt holding page pointers of the struct ttm_resource.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjhubeh}(h]h ]h"]h$]h&]uh1jhjihubh)}(h **Return**h]j)}(hjih]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjihubh)}(h-Pointer to the embedded struct ttm_kmap_iter.h]h-Pointer to the embedded struct ttm_kmap_iter.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjihubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjiGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB ttm_tt_setup_backup (C function)c.ttm_tt_setup_backuphNtauh1j5hjiGhhhNhNubjG)}(hhh](jL)}(h+int ttm_tt_setup_backup (struct ttm_tt *tt)h]jR)}(h*int ttm_tt_setup_backup(struct ttm_tt *tt)h](j)}(hinth]hint}(hjGihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCihhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMubjj)}(h h]h }(hjVihhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjCihhhjUihMubj{)}(httm_tt_setup_backuph]j)}(httm_tt_setup_backuph]httm_tt_setup_backup}(hjhihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdiubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjCihhhjUihMubj)}(h(struct ttm_tt *tt)h]j)}(hstruct ttm_tt *tth](jX)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjiubjj)}(h h]h }(hjihhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubh)}(hhh]j)}(httm_tth]httm_tt}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjimodnameN classnameNj+j.)}j1]j4)}j'jjisbc.ttm_tt_setup_backupasbuh1hhjiubjj)}(h h]h }(hjihhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubjH)}(hjKh]h*}(hjihhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjiubj)}(htth]htt}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|iubah}(h]h ]h"]h$]h&]jjuh1jhjCihhhjUihMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj?ihhhjUihMubah}(h]j:iah ](jjeh"]h$]h&]jj)jhuh1jKhjUihMhjThe ttm_tt for wich to allocate and assign a backup structure.h]h>The ttm_tt for wich to allocate and assign a backup structure.}(hjajhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]jhMhj^jubah}(h]h ]h"]h$]h&]uh1jhjBjubeh}(h]h ]h"]h$]h&]uh1jhj]jhMhj?jubah}(h]h ]h"]h$]h&]uh1jhj#jubh)}(h**Description**h]j)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhj#jubh)}(hAssign a backup structure to be used for tt backup. This should typically be done at bo creation, to avoid allocations at shrinking time.h]hAssign a backup structure to be used for tt backup. This should typically be done at bo creation, to avoid allocations at shrinking time.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhj#jubh)}(h **Return**h]j)}(hjjh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chM!hj#jubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chM"hj#jubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjiGhhhNhNubeh}(h]ttm-tt-object-referenceah ]h"]ttm tt object referenceah$]h&]uh1hhhhhhhhK>ubh)}(hhh](h)}(hTTM page pool referenceh]hTTM page pool reference}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhhhhhKGubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_pool_type (C struct)c.ttm_pool_typehNtauh1j5hjjhhhNhNubjG)}(hhh](jL)}(h ttm_pool_typeh]jR)}(hstruct ttm_pool_typeh](jX)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjkhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKubjj)}(h h]h }(hjkhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjkhhhjkhKubj{)}(h ttm_pool_typeh]j)}(hjkh]h ttm_pool_type}(hj(khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$kubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjkhhhjkhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjkhhhjkhKubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jKhjkhKhjjhhubj)}(hhh]h)}(hPool for a certain memory typeh]hPool for a certain memory type}(hjJkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK+hjGkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjkhKubeh}(h]h ](jstructeh"]h$]h&]jjjjbkjjbkjjjuh1jFhhhjjhNhNubj)}(hX**Definition**:: struct ttm_pool_type { struct ttm_pool *pool; unsigned int order; enum ttm_caching caching; struct list_head shrinker_list; struct list_lru pages; }; **Members** ``pool`` the pool we belong to, might be NULL for the global ones ``order`` the allocation order our pages have ``caching`` the caching type our pages have ``shrinker_list`` our place on the global shrinker list ``pages`` the lru_list of pages in the poolh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjnkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjkubh:}(hjjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK/hjfkubjh)}(hstruct ttm_pool_type { struct ttm_pool *pool; unsigned int order; enum ttm_caching caching; struct list_head shrinker_list; struct list_lru pages; };h]hstruct ttm_pool_type { struct ttm_pool *pool; unsigned int order; enum ttm_caching caching; struct list_head shrinker_list; struct list_lru pages; };}hjksbah}(h]h ]h"]h$]h&]jjuh1jghU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK1hjfkubh)}(h **Members**h]j)}(hjkh]hMembers}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK9hjfkubj)}(hhh](j)}(hB``pool`` the pool we belong to, might be NULL for the global ones h](j)}(h``pool``h]j)}(hjkh]hpool}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK.hjkubj)}(hhh]h)}(h8the pool we belong to, might be NULL for the global onesh]h8the pool we belong to, might be NULL for the global ones}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhK.hjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhK.hjkubj)}(h.``order`` the allocation order our pages have h](j)}(h ``order``h]j)}(hjkh]horder}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK/hjkubj)}(hhh]h)}(h#the allocation order our pages haveh]h#the allocation order our pages have}(hj lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhK/hjlubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjlhK/hjkubj)}(h,``caching`` the caching type our pages have h](j)}(h ``caching``h]j)}(hj)lh]hcaching}(hj+lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'lubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK0hj#lubj)}(hhh]h)}(hthe caching type our pages haveh]hthe caching type our pages have}(hjBlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>lhK0hj?lubah}(h]h ]h"]h$]h&]uh1jhj#lubeh}(h]h ]h"]h$]h&]uh1jhj>lhK0hjkubj)}(h8``shrinker_list`` our place on the global shrinker list h](j)}(h``shrinker_list``h]j)}(hjblh]h shrinker_list}(hjdlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`lubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK1hj\lubj)}(hhh]h)}(h%our place on the global shrinker listh]h%our place on the global shrinker list}(hj{lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwlhK1hjxlubah}(h]h ]h"]h$]h&]uh1jhj\lubeh}(h]h ]h"]h$]h&]uh1jhjwlhK1hjkubj)}(h+``pages`` the lru_list of pages in the poolh](j)}(h ``pages``h]j)}(hjlh]hpages}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK1hjlubj)}(hhh]h)}(h!the lru_list of pages in the poolh]h!the lru_list of pages in the pool}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK2hjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhK1hjkubeh}(h]h ]h"]h$]h&]uh1jhjfkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_pool (C struct) c.ttm_poolhNtauh1j5hjjhhhNhNubjG)}(hhh](jL)}(httm_poolh]jR)}(hstruct ttm_poolh](jX)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjlhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK8ubjj)}(h h]h }(hjmhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlhhhjmhK8ubj{)}(httm_poolh]j)}(hjlh]httm_pool}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhjmhK8ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjlhhhjmhK8ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1jKhjmhK8hjlhhubj)}(hhh]h)}(hPool for all caching and ordersh]hPool for all caching and orders}(hj7mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK>hj4mhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjmhK8ubeh}(h]h ](jstructeh"]h$]h&]jjjjOmjjOmjjjuh1jFhhhjjhNhNubj)}(hX**Definition**:: struct ttm_pool { struct device *dev; int nid; unsigned int alloc_flags; struct { struct ttm_pool_type orders[NR_PAGE_ORDERS]; } caching[TTM_NUM_CACHING_TYPES]; }; **Members** ``dev`` the device we allocate pages for ``nid`` which numa node to use ``alloc_flags`` TTM_ALLOCATION_POOL_* flags ``caching`` pools for each caching/orderh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj[mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWmubh:}(hjWmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKBhjSmubjh)}(hstruct ttm_pool { struct device *dev; int nid; unsigned int alloc_flags; struct { struct ttm_pool_type orders[NR_PAGE_ORDERS]; } caching[TTM_NUM_CACHING_TYPES]; };h]hstruct ttm_pool { struct device *dev; int nid; unsigned int alloc_flags; struct { struct ttm_pool_type orders[NR_PAGE_ORDERS]; } caching[TTM_NUM_CACHING_TYPES]; };}hjtmsbah}(h]h ]h"]h$]h&]jjuh1jghU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKDhjSmubh)}(h **Members**h]j)}(hjmh]hMembers}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKMhjSmubj)}(hhh](j)}(h)``dev`` the device we allocate pages for h](j)}(h``dev``h]j)}(hjmh]hdev}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKAhjmubj)}(hhh]h)}(h the device we allocate pages forh]h the device we allocate pages for}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKAhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhKAhjmubj)}(h``nid`` which numa node to use h](j)}(h``nid``h]j)}(hjmh]hnid}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKBhjmubj)}(hhh]h)}(hwhich numa node to useh]hwhich numa node to use}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKBhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhKBhjmubj)}(h,``alloc_flags`` TTM_ALLOCATION_POOL_* flags h](j)}(h``alloc_flags``h]j)}(hjnh]h alloc_flags}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKChjnubj)}(hhh]h)}(hTTM_ALLOCATION_POOL_* flagsh]hTTM_ALLOCATION_POOL_* flags}(hj/nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+nhKChj,nubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhj+nhKChjmubj)}(h(``caching`` pools for each caching/orderh](j)}(h ``caching``h]j)}(hjOnh]hcaching}(hjQnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMnubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKChjInubj)}(hhh]h)}(hpools for each caching/orderh]hpools for each caching/order}(hjhnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKDhjenubah}(h]h ]h"]h$]h&]uh1jhjInubeh}(h]h ]h"]h$]h&]uh1jhjdnhKChjmubeh}(h]h ]h"]h$]h&]uh1jhjSmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_pool_alloc (C function)c.ttm_pool_allochNtauh1j5hjjhhhNhNubjG)}(hhh](jL)}(h\int ttm_pool_alloc (struct ttm_pool *pool, struct ttm_tt *tt, struct ttm_operation_ctx *ctx)h]jR)}(h[int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, struct ttm_operation_ctx *ctx)h](j)}(hinth]hint}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM^ubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjnhhhjnhM^ubj{)}(httm_pool_alloch]j)}(httm_pool_alloch]httm_pool_alloc}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjnhhhjnhM^ubj)}(hI(struct ttm_pool *pool, struct ttm_tt *tt, struct ttm_operation_ctx *ctx)h](j)}(hstruct ttm_pool *poolh](jX)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjnubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjnubh)}(hhh]j)}(httm_poolh]httm_pool}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjomodnameN classnameNj+j.)}j1]j4)}j'jnsbc.ttm_pool_allocasbuh1hhjnubjj)}(h h]h }(hj$ohhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjnubjH)}(hjKh]h*}(hj2ohhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjnubj)}(hpoolh]hpool}(hj?ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct ttm_tt *tth](jX)}(hjh]hstruct}(hjXohhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjToubjj)}(h h]h }(hjeohhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjToubh)}(hhh]j)}(httm_tth]httm_tt}(hjvohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsoubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjxomodnameN classnameNj+j.)}j1]j oc.ttm_pool_allocasbuh1hhjToubjj)}(h h]h }(hjohhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjToubjH)}(hjKh]h*}(hjohhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjToubj)}(htth]htt}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjToubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct ttm_operation_ctx *ctxh](jX)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjoubjj)}(h h]h }(hjohhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjoubh)}(hhh]j)}(httm_operation_ctxh]httm_operation_ctx}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjomodnameN classnameNj+j.)}j1]j oc.ttm_pool_allocasbuh1hhjoubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjoubjH)}(hjKh]h*}(hjphhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjoubj)}(hctxh]hctx}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhjnhhhjnhM^ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjnhhhjnhM^ubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1jKhjnhM^hjnhhubj)}(hhh]h)}(hFill a ttm_tt objecth]hFill a ttm_tt object}(hjIphhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM^hjFphhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjapjjapjjjuh1jFhhhjjhNhNubj)}(hXC**Parameters** ``struct ttm_pool *pool`` ttm_pool to use ``struct ttm_tt *tt`` ttm_tt object to fill ``struct ttm_operation_ctx *ctx`` operation context **Description** Fill the ttm_tt object with pages and also make sure to DMA map them when necessary. **Return** 0 on successe, negative error code otherwise.h](h)}(h**Parameters**h]j)}(hjkph]h Parameters}(hjmphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjipubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMbhjepubj)}(hhh](j)}(h*``struct ttm_pool *pool`` ttm_pool to use h](j)}(h``struct ttm_pool *pool``h]j)}(hjph]hstruct ttm_pool *pool}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM`hjpubj)}(hhh]h)}(httm_pool to useh]httm_pool to use}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphM`hjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphM`hjpubj)}(h,``struct ttm_tt *tt`` ttm_tt object to fill h](j)}(h``struct ttm_tt *tt``h]j)}(hjph]hstruct ttm_tt *tt}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMahjpubj)}(hhh]h)}(httm_tt object to fillh]httm_tt object to fill}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMahjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMahjpubj)}(h4``struct ttm_operation_ctx *ctx`` operation context h](j)}(h!``struct ttm_operation_ctx *ctx``h]j)}(hjph]hstruct ttm_operation_ctx *ctx}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMbhjpubj)}(hhh]h)}(hoperation contexth]hoperation context}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMbhjqubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjqhMbhjpubeh}(h]h ]h"]h$]h&]uh1jhjepubh)}(h**Description**h]j)}(hj7qh]h Description}(hj9qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5qubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMdhjepubh)}(hTFill the ttm_tt object with pages and also make sure to DMA map them when necessary.h]hTFill the ttm_tt object with pages and also make sure to DMA map them when necessary.}(hjMqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMchjepubh)}(h **Return**h]j)}(hj^qh]hReturn}(hj`qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\qubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMfhjepubh)}(h-0 on successe, negative error code otherwise.h]h-0 on successe, negative error code otherwise.}(hjtqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMghjepubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBttm_pool_free (C function)c.ttm_pool_freehNtauh1j5hjjhhhNhNubjG)}(hhh](jL)}(h=void ttm_pool_free (struct ttm_pool *pool, struct ttm_tt *tt)h]jR)}(h`__ article on LWN. While slightly outdated, the document provides a good overview of the GEM API principles. Buffer allocation and read and write operations, described as part of the common GEM API, are currently implemented using driver-specific ioctls.h](h*The GEM userspace API is described in the }(hjzhhhNhNubh reference)}(hJ`GEM - the Graphics Execution Manager `__h]h$GEM - the Graphics Execution Manager}(hjzhhhNhNubah}(h]h ]h"]h$]h&]name$GEM - the Graphics Execution Managerrefurihttp://lwn.net/Articles/283798/uh1jzhjzubh article on LWN. While slightly outdated, the document provides a good overview of the GEM API principles. Buffer allocation and read and write operations, described as part of the common GEM API, are currently implemented using driver-specific ioctls.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKYhjzhhubh)}(hX8GEM is data-agnostic. It manages abstract buffer objects without knowing what individual buffers contain. APIs that require knowledge of buffer contents or purpose, such as buffer allocation or synchronization primitives, are thus outside of the scope of GEM and must be implemented using driver-specific ioctls.h]hX8GEM is data-agnostic. It manages abstract buffer objects without knowing what individual buffers contain. APIs that require knowledge of buffer contents or purpose, such as buffer allocation or synchronization primitives, are thus outside of the scope of GEM and must be implemented using driver-specific ioctls.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK`hjzhhubh)}(h8On a fundamental level, GEM involves several operations:h]h8On a fundamental level, GEM involves several operations:}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKfhjzhhubh bullet_list)}(hhh](h list_item)}(hMemory allocation and freeingh]h)}(hjzh]hMemory allocation and freeing}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhjzubah}(h]h ]h"]h$]h&]uh1jzhjzhhhhhNubjz)}(hCommand executionh]h)}(hj{h]hCommand execution}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKihj{ubah}(h]h ]h"]h$]h&]uh1jzhjzhhhhhNubjz)}(h.Aperture management at command execution time h]h)}(h-Aperture management at command execution timeh]h-Aperture management at command execution time}(hj+{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKjhj'{ubah}(h]h ]h"]h$]h&]uh1jzhjzhhhhhNubeh}(h]h ]h"]h$]h&]bullet-uh1jzhhhKhhjzhhubh)}(hBuffer object allocation is relatively straightforward and largely provided by Linux's shmem layer, which provides memory to back each object.h]hBuffer object allocation is relatively straightforward and largely provided by Linux’s shmem layer, which provides memory to back each object.}(hjG{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKlhjzhhubh)}(hDevice-specific operations, such as command execution, pinning, buffer read & write, mapping, and domain ownership transfers are left to driver-specific ioctls.h]hDevice-specific operations, such as command execution, pinning, buffer read & write, mapping, and domain ownership transfers are left to driver-specific ioctls.}(hjU{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKphjzhhubh)}(hhh](h)}(hGEM Initializationh]hGEM Initialization}(hjf{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc{hhhhhKuubh)}(hXYDrivers that use GEM must set the DRIVER_GEM bit in the struct :c:type:`struct drm_driver ` driver_features field. The DRM core will then automatically initialize the GEM core before calling the load operation. Behind the scene, this will create a DRM Memory Manager object which provides an address space pool for object allocation.h](h?Drivers that use GEM must set the DRIVER_GEM bit in the struct }(hjt{hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hj~{h]hstruct drm_driver}(hj{hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj|{ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhhhKwhjt{ubh driver_features field. The DRM core will then automatically initialize the GEM core before calling the load operation. Behind the scene, this will create a DRM Memory Manager object which provides an address space pool for object allocation.}(hjt{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKwhjc{hhubh)}(hXIn a KMS configuration, drivers need to allocate and initialize a command ring buffer following core GEM initialization if required by the hardware. UMA devices usually have what is called a "stolen" memory region, which provides space for the initial framebuffer and large, contiguous memory regions required by the device. This space is typically not managed by GEM, and must be initialized separately into its own DRM MM object.h]hXIn a KMS configuration, drivers need to allocate and initialize a command ring buffer following core GEM initialization if required by the hardware. UMA devices usually have what is called a “stolen” memory region, which provides space for the initial framebuffer and large, contiguous memory regions required by the device. This space is typically not managed by GEM, and must be initialized separately into its own DRM MM object.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK~hjc{hhubeh}(h]gem-initializationah ]h"]gem initializationah$]h&]uh1hhjzhhhhhKuubh)}(hhh](h)}(hGEM Objects Creationh]hGEM Objects Creation}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hhhhhKubh)}(hkGEM splits creation of GEM objects and allocation of the memory that backs them in two distinct operations.h]hkGEM splits creation of GEM objects and allocation of the memory that backs them in two distinct operations.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj{hhubh)}(hX:GEM objects are represented by an instance of struct :c:type:`struct drm_gem_object `. Drivers usually need to extend GEM objects with private information and thus create a driver-specific GEM object structure type that embeds an instance of struct :c:type:`struct drm_gem_object `.h](h5GEM objects are represented by an instance of struct }(hj{hhhNhNubh)}(h0:c:type:`struct drm_gem_object `h]j)}(hj{h]hstruct drm_gem_object}(hj{hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhhhKhj{ubh. Drivers usually need to extend GEM objects with private information and thus create a driver-specific GEM object structure type that embeds an instance of struct }(hj{hhhNhNubh)}(h0:c:type:`struct drm_gem_object `h]j)}(hj|h]hstruct drm_gem_object}(hj |hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhhhKhj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj{hhubh)}(hXMTo create a GEM object, a driver allocates memory for an instance of its specific GEM object type and initializes the embedded struct :c:type:`struct drm_gem_object ` with a call to drm_gem_object_init(). The function takes a pointer to the DRM device, a pointer to the GEM object and the buffer object size in bytes.h](hTo create a GEM object, a driver allocates memory for an instance of its specific GEM object type and initializes the embedded struct }(hj.|hhhNhNubh)}(h0:c:type:`struct drm_gem_object `h]j)}(hj8|h]hstruct drm_gem_object}(hj:|hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj6|ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhhhKhj.|ubh with a call to drm_gem_object_init(). The function takes a pointer to the DRM device, a pointer to the GEM object and the buffer object size in bytes.}(hj.|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj{hhubh)}(hXxGEM uses shmem to allocate anonymous pageable memory. drm_gem_object_init() will create an shmfs file of the requested size and store it into the struct :c:type:`struct drm_gem_object ` filp field. The memory is used as either main storage for the object when the graphics hardware uses system memory directly or as a backing store otherwise. Drivers can call drm_gem_huge_mnt_create() to create, mount and use a huge shmem mountpoint instead of the default one ('shm_mnt'). For builds with CONFIG_TRANSPARENT_HUGEPAGE enabled, further calls to drm_gem_object_init() will let shmem allocate huge pages when possible.h](hGEM uses shmem to allocate anonymous pageable memory. drm_gem_object_init() will create an shmfs file of the requested size and store it into the struct }(hj_|hhhNhNubh)}(h0:c:type:`struct drm_gem_object `h]j)}(hji|h]hstruct drm_gem_object}(hjk|hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjg|ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhhhKhj_|ubhX filp field. The memory is used as either main storage for the object when the graphics hardware uses system memory directly or as a backing store otherwise. Drivers can call drm_gem_huge_mnt_create() to create, mount and use a huge shmem mountpoint instead of the default one (‘shm_mnt’). For builds with CONFIG_TRANSPARENT_HUGEPAGE enabled, further calls to drm_gem_object_init() will let shmem allocate huge pages when possible.}(hj_|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj{hhubh)}(hXDrivers are responsible for the actual physical pages allocation by calling shmem_read_mapping_page_gfp() for each page. Note that they can decide to allocate pages when initializing the GEM object, or to delay allocation until the memory is needed (for instance when a page fault occurs as a result of a userspace memory access or when the driver needs to start a DMA transfer involving the memory).h]hXDrivers are responsible for the actual physical pages allocation by calling shmem_read_mapping_page_gfp() for each page. Note that they can decide to allocate pages when initializing the GEM object, or to delay allocation until the memory is needed (for instance when a page fault occurs as a result of a userspace memory access or when the driver needs to start a DMA transfer involving the memory).}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj{hhubh)}(hXAnonymous pageable memory allocation is not always desired, for instance when the hardware requires physically contiguous system memory as is often the case in embedded devices. Drivers can create GEM objects with no shmfs backing (called private GEM objects) by initializing them with a call to drm_gem_private_object_init() instead of drm_gem_object_init(). Storage for private GEM objects must be managed by drivers.h]hXAnonymous pageable memory allocation is not always desired, for instance when the hardware requires physically contiguous system memory as is often the case in embedded devices. Drivers can create GEM objects with no shmfs backing (called private GEM objects) by initializing them with a call to drm_gem_private_object_init() instead of drm_gem_object_init(). Storage for private GEM objects must be managed by drivers.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj{hhubeh}(h]gem-objects-creationah ]h"]gem objects creationah$]h&]uh1hhjzhhhhhKubh)}(hhh](h)}(hGEM Objects Lifetimeh]hGEM Objects Lifetime}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hhhhhKubh)}(hAll GEM objects are reference-counted by the GEM core. References can be acquired and release by calling drm_gem_object_get() and drm_gem_object_put() respectively.h]hAll GEM objects are reference-counted by the GEM core. References can be acquired and release by calling drm_gem_object_get() and drm_gem_object_put() respectively.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj|hhubh)}(hXWhen the last reference to a GEM object is released the GEM core calls the :c:type:`struct drm_gem_object_funcs ` free operation. That operation is mandatory for GEM-enabled drivers and must free the GEM object and all associated resources.h](hKWhen the last reference to a GEM object is released the GEM core calls the }(hj|hhhNhNubh)}(h8:c:type:`struct drm_gem_object_funcs `h]j)}(hj|h]hstruct drm_gem_object_funcs}(hj|hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jagem_object_funcsuh1hhhhKhj|ubh free operation. That operation is mandatory for GEM-enabled drivers and must free the GEM object and all associated resources.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj|hhubh)}(hvoid (\*free) (struct drm_gem_object \*obj); Drivers are responsible for freeing all GEM object resources. This includes the resources created by the GEM core, which need to be released with drm_gem_object_release().h]hvoid (*free) (struct drm_gem_object *obj); Drivers are responsible for freeing all GEM object resources. This includes the resources created by the GEM core, which need to be released with drm_gem_object_release().}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj|hhubeh}(h]gem-objects-lifetimeah ]h"]gem objects lifetimeah$]h&]uh1hhjzhhhhhKubh)}(hhh](h)}(hGEM Objects Namingh]hGEM Objects Naming}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hhhhhKubh)}(hCommunication between userspace and the kernel refers to GEM objects using local handles, global names or, more recently, file descriptors. All of those are 32-bit integer values; the usual Linux kernel limits apply to the file descriptors.h]hCommunication between userspace and the kernel refers to GEM objects using local handles, global names or, more recently, file descriptors. All of those are 32-bit integer values; the usual Linux kernel limits apply to the file descriptors.}(hj+}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj}hhubh)}(hX0GEM handles are local to a DRM file. Applications get a handle to a GEM object through a driver-specific ioctl, and can use that handle to refer to the GEM object in other standard or driver-specific ioctls. Closing a DRM file handle frees all its GEM handles and dereferences the associated GEM objects.h]hX0GEM handles are local to a DRM file. Applications get a handle to a GEM object through a driver-specific ioctl, and can use that handle to refer to the GEM object in other standard or driver-specific ioctls. Closing a DRM file handle frees all its GEM handles and dereferences the associated GEM objects.}(hj9}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj}hhubh)}(hXtTo create a handle for a GEM object drivers call drm_gem_handle_create(). The function takes a pointer to the DRM file and the GEM object and returns a locally unique handle. When the handle is no longer needed drivers delete it with a call to drm_gem_handle_delete(). Finally the GEM object associated with a handle can be retrieved by a call to drm_gem_object_lookup().h]hXtTo create a handle for a GEM object drivers call drm_gem_handle_create(). The function takes a pointer to the DRM file and the GEM object and returns a locally unique handle. When the handle is no longer needed drivers delete it with a call to drm_gem_handle_delete(). Finally the GEM object associated with a handle can be retrieved by a call to drm_gem_object_lookup().}(hjG}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj}hhubh)}(hX;Handles don't take ownership of GEM objects, they only take a reference to the object that will be dropped when the handle is destroyed. To avoid leaking GEM objects, drivers must make sure they drop the reference(s) they own (such as the initial reference taken at object creation time) as appropriate, without any special consideration for the handle. For example, in the particular case of combined GEM object and handle creation in the implementation of the dumb_create operation, drivers must drop the initial reference to the GEM object before returning the handle.h]hX=Handles don’t take ownership of GEM objects, they only take a reference to the object that will be dropped when the handle is destroyed. To avoid leaking GEM objects, drivers must make sure they drop the reference(s) they own (such as the initial reference taken at object creation time) as appropriate, without any special consideration for the handle. For example, in the particular case of combined GEM object and handle creation in the implementation of the dumb_create operation, drivers must drop the initial reference to the GEM object before returning the handle.}(hjU}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj}hhubh)}(hXGEM names are similar in purpose to handles but are not local to DRM files. They can be passed between processes to reference a GEM object globally. Names can't be used directly to refer to objects in the DRM API, applications must convert handles to names and names to handles using the DRM_IOCTL_GEM_FLINK and DRM_IOCTL_GEM_OPEN ioctls respectively. The conversion is handled by the DRM core without any driver-specific support.h]hXGEM names are similar in purpose to handles but are not local to DRM files. They can be passed between processes to reference a GEM object globally. Names can’t be used directly to refer to objects in the DRM API, applications must convert handles to names and names to handles using the DRM_IOCTL_GEM_FLINK and DRM_IOCTL_GEM_OPEN ioctls respectively. The conversion is handled by the DRM core without any driver-specific support.}(hjc}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj}hhubh)}(hXGEM also supports buffer sharing with dma-buf file descriptors through PRIME. GEM-based drivers must use the provided helpers functions to implement the exporting and importing correctly. See ?. Since sharing file descriptors is inherently more secure than the easily guessable and global GEM names it is the preferred buffer sharing mechanism. Sharing buffers through GEM names is only supported for legacy userspace. Furthermore PRIME also allows cross-device buffer sharing since it is based on dma-bufs.h]hXGEM also supports buffer sharing with dma-buf file descriptors through PRIME. GEM-based drivers must use the provided helpers functions to implement the exporting and importing correctly. See ?. Since sharing file descriptors is inherently more secure than the easily guessable and global GEM names it is the preferred buffer sharing mechanism. Sharing buffers through GEM names is only supported for legacy userspace. Furthermore PRIME also allows cross-device buffer sharing since it is based on dma-bufs.}(hjq}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj}hhubeh}(h]gem-objects-namingah ]h"]gem objects namingah$]h&]uh1hhjzhhhhhKubh)}(hhh](h)}(hGEM Objects Mappingh]hGEM Objects Mapping}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hhhhhKubh)}(hXDBecause mapping operations are fairly heavyweight GEM favours read/write-like access to buffers, implemented through driver-specific ioctls, over mapping buffers to userspace. However, when random access to the buffer is needed (to perform software rendering for instance), direct access to the object can be more efficient.h]hXDBecause mapping operations are fairly heavyweight GEM favours read/write-like access to buffers, implemented through driver-specific ioctls, over mapping buffers to userspace. However, when random access to the buffer is needed (to perform software rendering for instance), direct access to the object can be more efficient.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj}hhubh)}(hXThe mmap system call can't be used directly to map GEM objects, as they don't have their own file handle. Two alternative methods currently co-exist to map GEM objects to userspace. The first method uses a driver-specific ioctl to perform the mapping operation, calling do_mmap() under the hood. This is often considered dubious, seems to be discouraged for new GEM-enabled drivers, and will thus not be described here.h]hXThe mmap system call can’t be used directly to map GEM objects, as they don’t have their own file handle. Two alternative methods currently co-exist to map GEM objects to userspace. The first method uses a driver-specific ioctl to perform the mapping operation, calling do_mmap() under the hood. This is often considered dubious, seems to be discouraged for new GEM-enabled drivers, and will thus not be described here.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj}hhubh)}(hXThe second method uses the mmap system call on the DRM file handle. void \*mmap(void \*addr, size_t length, int prot, int flags, int fd, off_t offset); DRM identifies the GEM object to be mapped by a fake offset passed through the mmap offset argument. Prior to being mapped, a GEM object must thus be associated with a fake offset. To do so, drivers must call drm_gem_create_mmap_offset() on the object.h]hXThe second method uses the mmap system call on the DRM file handle. void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); DRM identifies the GEM object to be mapped by a fake offset passed through the mmap offset argument. Prior to being mapped, a GEM object must thus be associated with a fake offset. To do so, drivers must call drm_gem_create_mmap_offset() on the object.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj}hhubh)}(hOnce allocated, the fake offset value must be passed to the application in a driver-specific way and can then be used as the mmap offset argument.h]hOnce allocated, the fake offset value must be passed to the application in a driver-specific way and can then be used as the mmap offset argument.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj}hhubh)}(hXThe GEM core provides a helper method drm_gem_mmap() to handle object mapping. The method can be set directly as the mmap file operation handler. It will look up the GEM object based on the offset value and set the VMA operations to the :c:type:`struct drm_driver ` gem_vm_ops field. Note that drm_gem_mmap() doesn't map memory to userspace, but relies on the driver-provided fault handler to map pages individually.h](hThe GEM core provides a helper method drm_gem_mmap() to handle object mapping. The method can be set directly as the mmap file operation handler. It will look up the GEM object based on the offset value and set the VMA operations to the }(hj}hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hj}h]hstruct drm_driver}(hj}hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhhhMhj}ubh gem_vm_ops field. Note that drm_gem_mmap() doesn’t map memory to userspace, but relies on the driver-provided fault handler to map pages individually.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj}hhubh)}(hTo use drm_gem_mmap(), drivers must fill the struct :c:type:`struct drm_driver ` gem_vm_ops field with a pointer to VM operations.h](h4To use drm_gem_mmap(), drivers must fill the struct }(hj~hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hj ~h]hstruct drm_driver}(hj ~hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ~ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhhhMhj~ubh2 gem_vm_ops field with a pointer to VM operations.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj}hhubh)}(hThe VM operations is a :c:type:`struct vm_operations_struct ` made up of several fields, the more interesting ones being:h](hThe VM operations is a }(hj2~hhhNhNubh)}(h<:c:type:`struct vm_operations_struct `h]j)}(hj<~h]hstruct vm_operations_struct}(hj>~hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj:~ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^javm_operations_structuh1hhhhMhj2~ubh< made up of several fields, the more interesting ones being:}(hj2~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj}hhubjh)}(hstruct vm_operations_struct { void (*open)(struct vm_area_struct * area); void (*close)(struct vm_area_struct * area); vm_fault_t (*fault)(struct vm_fault *vmf); };h]hstruct vm_operations_struct { void (*open)(struct vm_area_struct * area); void (*close)(struct vm_area_struct * area); vm_fault_t (*fault)(struct vm_fault *vmf); };}hjc~sbah}(h]h ]h"]h$]h&]jjforcelanguagejhighlight_args}uh1jghhhMhj}hhubh)}(hThe open and close operations must update the GEM object reference count. Drivers can use the drm_gem_vm_open() and drm_gem_vm_close() helper functions directly as open and close handlers.h]hThe open and close operations must update the GEM object reference count. Drivers can use the drm_gem_vm_open() and drm_gem_vm_close() helper functions directly as open and close handlers.}(hju~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM&hj}hhubh)}(hXThe fault operation handler is responsible for mapping pages to userspace when a page fault occurs. Depending on the memory allocation scheme, drivers can allocate pages at fault time, or can decide to allocate memory for the GEM object at the time the object is created.h]hXThe fault operation handler is responsible for mapping pages to userspace when a page fault occurs. Depending on the memory allocation scheme, drivers can allocate pages at fault time, or can decide to allocate memory for the GEM object at the time the object is created.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM*hj}hhubh)}(hDrivers that want to map the GEM object upfront instead of handling page faults can implement their own mmap file operation handler.h]hDrivers that want to map the GEM object upfront instead of handling page faults can implement their own mmap file operation handler.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM/hj}hhubh)}(hX3In order to reduce page table overhead, if the internal shmem mountpoint "shm_mnt" is configured to use transparent huge pages (for builds with CONFIG_TRANSPARENT_HUGEPAGE enabled) and if the shmem backing store managed to allocate a huge page for a faulty address, the fault handler will first attempt to insert that huge page into the VMA before falling back to individual page insertion. mmap() user address alignment for GEM objects is handled by providing a custom get_unmapped_area file operation which forwards to the shmem backing store. For most drivers, which don't create a huge mountpoint by default or through a module parameter, transparent huge pages can be enabled by either setting the "transparent_hugepage_shmem" kernel parameter or the "/sys/kernel/mm/transparent_hugepage/shmem_enabled" sysfs knob.h]hXAIn order to reduce page table overhead, if the internal shmem mountpoint “shm_mnt” is configured to use transparent huge pages (for builds with CONFIG_TRANSPARENT_HUGEPAGE enabled) and if the shmem backing store managed to allocate a huge page for a faulty address, the fault handler will first attempt to insert that huge page into the VMA before falling back to individual page insertion. mmap() user address alignment for GEM objects is handled by providing a custom get_unmapped_area file operation which forwards to the shmem backing store. For most drivers, which don’t create a huge mountpoint by default or through a module parameter, transparent huge pages can be enabled by either setting the “transparent_hugepage_shmem” kernel parameter or the “/sys/kernel/mm/transparent_hugepage/shmem_enabled” sysfs knob.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM2hj}hhubh)}(hFor platforms without MMU the GEM core provides a helper method drm_gem_dma_get_unmapped_area(). The mmap() routines will call this to get a proposed address for the mapping.h]hFor platforms without MMU the GEM core provides a helper method drm_gem_dma_get_unmapped_area(). The mmap() routines will call this to get a proposed address for the mapping.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM?hj}hhubh)}(hTo use drm_gem_dma_get_unmapped_area(), drivers must fill the struct :c:type:`struct file_operations ` get_unmapped_area field with a pointer on drm_gem_dma_get_unmapped_area().h](hETo use drm_gem_dma_get_unmapped_area(), drivers must fill the struct }(hj~hhhNhNubh)}(h2:c:type:`struct file_operations `h]j)}(hj~h]hstruct file_operations}(hj~hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jafile_operationsuh1hhhhMChj~ubhK get_unmapped_area field with a pointer on drm_gem_dma_get_unmapped_area().}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMChj}hhubh)}(hmMore detailed information about get_unmapped_area can be found in Documentation/admin-guide/mm/nommu-mmap.rsth]hmMore detailed information about get_unmapped_area can be found in Documentation/admin-guide/mm/nommu-mmap.rst}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMGhj}hhubeh}(h]gem-objects-mappingah ]h"]gem objects mappingah$]h&]uh1hhjzhhhhhKubh)}(hhh](h)}(hMemory Coherencyh]hMemory Coherency}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMKubh)}(hX2When mapped to the device or used in a command buffer, backing pages for an object are flushed to memory and marked write combined so as to be coherent with the GPU. Likewise, if the CPU accesses an object after the GPU has finished rendering to the object, then the object must be made coherent with the CPU's view of memory, usually involving GPU cache flushing of various kinds. This core CPU<->GPU coherency management is provided by a device-specific ioctl, which evaluates an object's current domain and performs any necessary flushing or synchronization to put the object into the desired coherency domain (note that the object may be busy, i.e. an active render target; in that case, setting the domain blocks the client and waits for rendering to complete before performing any necessary flushing operations).h]hX6When mapped to the device or used in a command buffer, backing pages for an object are flushed to memory and marked write combined so as to be coherent with the GPU. Likewise, if the CPU accesses an object after the GPU has finished rendering to the object, then the object must be made coherent with the CPU’s view of memory, usually involving GPU cache flushing of various kinds. This core CPU<->GPU coherency management is provided by a device-specific ioctl, which evaluates an object’s current domain and performs any necessary flushing or synchronization to put the object into the desired coherency domain (note that the object may be busy, i.e. an active render target; in that case, setting the domain blocks the client and waits for rendering to complete before performing any necessary flushing operations).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMMhjhhubeh}(h]memory-coherencyah ]h"]memory coherencyah$]h&]uh1hhjzhhhhhMKubh)}(hhh](h)}(hCommand Executionh]hCommand Execution}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hhhhhM[ubh)}(hX,Perhaps the most important GEM function for GPU devices is providing a command execution interface to clients. Client programs construct command buffers containing references to previously allocated memory objects, and then submit them to GEM. At that point, GEM takes care to bind all the objects into the GTT, execute the buffer, and provide necessary synchronization between clients accessing the same buffers. This often involves evicting some objects from the GTT and re-binding others (a fairly expensive operation), and providing relocation support which hides fixed GTT offsets from clients. Clients must take care not to submit command buffers that reference more objects than can fit in the GTT; otherwise, GEM will reject them and no rendering will occur. Similarly, if several objects in the buffer require fence registers to be allocated for correct rendering (e.g. 2D blits on pre-965 chips), care must be taken not to require more fence registers than are available to the client. Such resource management should be abstracted from the client in libdrm.h]hX,Perhaps the most important GEM function for GPU devices is providing a command execution interface to clients. Client programs construct command buffers containing references to previously allocated memory objects, and then submit them to GEM. At that point, GEM takes care to bind all the objects into the GTT, execute the buffer, and provide necessary synchronization between clients accessing the same buffers. This often involves evicting some objects from the GTT and re-binding others (a fairly expensive operation), and providing relocation support which hides fixed GTT offsets from clients. Clients must take care not to submit command buffers that reference more objects than can fit in the GTT; otherwise, GEM will reject them and no rendering will occur. Similarly, if several objects in the buffer require fence registers to be allocated for correct rendering (e.g. 2D blits on pre-965 chips), care must be taken not to require more fence registers than are available to the client. Such resource management should be abstracted from the client in libdrm.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM]hj)hhubeh}(h]command-executionah ]h"]command executionah$]h&]uh1hhjzhhhhhM[ubh)}(hhh](h)}(hGEM Function Referenceh]hGEM Function Reference}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhhhhhMoubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_object_status (C enum)c.drm_gem_object_statushNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hdrm_gem_object_statush]jR)}(henum drm_gem_object_statush](jX)}(hj[h]henum}(hjzhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjvhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvhhhjhKubj{)}(hdrm_gem_object_statush]j)}(hjth]hdrm_gem_object_status}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjrhhhjhKubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjohhubj)}(hhh]h)}(h,bitmask of object state for fdinfo reportingh]h,bitmask of object state for fdinfo reporting}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhK4hjhhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhKubeh}(h]h ](jenumeh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(h**Constants** ``DRM_GEM_OBJECT_RESIDENT`` object is resident in memory (ie. not unpinned) ``DRM_GEM_OBJECT_PURGEABLE`` object marked as purgeable by userspace ``DRM_GEM_OBJECT_ACTIVE`` object is currently used by an active submissionh](h)}(h **Constants**h]j)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhK8hjubj)}(hhh](j)}(hL``DRM_GEM_OBJECT_RESIDENT`` object is resident in memory (ie. not unpinned) h](j)}(h``DRM_GEM_OBJECT_RESIDENT``h]j)}(hjh]hDRM_GEM_OBJECT_RESIDENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhK;hjubj)}(hhh]h)}(h/object is resident in memory (ie. not unpinned)h]h/object is resident in memory (ie. not unpinned)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK;hjubj)}(hE``DRM_GEM_OBJECT_PURGEABLE`` object marked as purgeable by userspace h](j)}(h``DRM_GEM_OBJECT_PURGEABLE``h]j)}(hj6h]hDRM_GEM_OBJECT_PURGEABLE}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhK>hj0ubj)}(hhh]h)}(h'object marked as purgeable by userspaceh]h'object marked as purgeable by userspace}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhK>hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhK>hjubj)}(hJ``DRM_GEM_OBJECT_ACTIVE`` object is currently used by an active submissionh](j)}(h``DRM_GEM_OBJECT_ACTIVE``h]j)}(hjoh]hDRM_GEM_OBJECT_ACTIVE}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhK@hjiubj)}(hhh]h)}(h0object is currently used by an active submissionh]h0object is currently used by an active submission}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKAhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKChjPhhubh)}(hXWBitmask of status used for fdinfo memory stats, see :c:type:`drm_gem_object_funcs.status ` and drm_show_fdinfo(). Note that an object can report DRM_GEM_OBJECT_PURGEABLE and be active or not resident, in which case drm_show_fdinfo() will not account for it as purgeable. So drivers do not need to check if the buffer is idle and resident to return this bit, i.e. userspace can mark a buffer as purgeable even while it is still busy on the GPU. It will not get reported in the puregeable stats until it becomes idle. The status gem object func does not need to consider this.h](h4Bitmask of status used for fdinfo memory stats, see }(hjȀhhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.status `h]j)}(hjҀh]hdrm_gem_object_funcs.status}(hjԀhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjЀubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhK8hjȀubhX and drm_show_fdinfo(). Note that an object can report DRM_GEM_OBJECT_PURGEABLE and be active or not resident, in which case drm_show_fdinfo() will not account for it as purgeable. So drivers do not need to check if the buffer is idle and resident to return this bit, i.e. userspace can mark a buffer as purgeable even while it is still busy on the GPU. It will not get reported in the puregeable stats until it becomes idle. The status gem object func does not need to consider this.}(hjȀhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK8hjPhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_object_funcs (C struct)c.drm_gem_object_funcshNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hdrm_gem_object_funcsh]jR)}(hstruct drm_gem_object_funcsh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKDubjj)}(h h]h }(hj!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hKDubj{)}(hdrm_gem_object_funcsh]j)}(hj h]hdrm_gem_object_funcs}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hKDubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj hKDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hKDhjhhubj)}(hhh]h)}(hGEM object functionsh]hGEM object functions}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKIhjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKDubeh}(h]h ](jstructeh"]h$]h&]jjjjmjjmjjjuh1jFhhhjPhNhNubj)}(hX**Definition**:: struct drm_gem_object_funcs { void (*free)(struct drm_gem_object *obj); int (*open)(struct drm_gem_object *obj, struct drm_file *file); void (*close)(struct drm_gem_object *obj, struct drm_file *file); void (*print_info)(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj); struct dma_buf *(*export)(struct drm_gem_object *obj, int flags); int (*pin)(struct drm_gem_object *obj); void (*unpin)(struct drm_gem_object *obj); struct sg_table *(*get_sg_table)(struct drm_gem_object *obj); int (*vmap)(struct drm_gem_object *obj, struct iosys_map *map); void (*vunmap)(struct drm_gem_object *obj, struct iosys_map *map); int (*mmap)(struct drm_gem_object *obj, struct vm_area_struct *vma); int (*evict)(struct drm_gem_object *obj); enum drm_gem_object_status (*status)(struct drm_gem_object *obj); size_t (*rss)(struct drm_gem_object *obj); const struct vm_operations_struct *vm_ops; }; **Members** ``free`` Deconstructor for drm_gem_objects. This callback is mandatory. ``open`` Called upon GEM handle creation. This callback is optional. ``close`` Called upon GEM handle release. This callback is optional. ``print_info`` If driver subclasses struct :c:type:`drm_gem_object`, it can implement this optional hook for printing additional driver specific info. drm_printf_indent() should be used in the callback passing it the indent argument. This callback is called from drm_gem_print_info(). This callback is optional. ``export`` Export backing buffer as a :c:type:`dma_buf`. If this is not set drm_gem_prime_export() is used. This callback is optional. ``pin`` Pin backing buffer in memory, such that dma-buf importers can access it. Used by the drm_gem_map_attach() helper. This callback is optional. ``unpin`` Unpin backing buffer. Used by the drm_gem_map_detach() helper. This callback is optional. ``get_sg_table`` Returns a Scatter-Gather table representation of the buffer. Used when exporting a buffer by the drm_gem_map_dma_buf() helper. Releasing is done by calling dma_unmap_sg_attrs() and sg_free_table() in drm_gem_unmap_buf(), therefore these helpers and this callback here cannot be used for sg tables pointing at driver private memory ranges. See also drm_prime_pages_to_sg(). ``vmap`` Returns a virtual address for the buffer. Used by the drm_gem_dmabuf_vmap() helper. Called with a held GEM reservation lock. This callback is optional. ``vunmap`` Releases the address previously returned by **vmap**. Used by the drm_gem_dmabuf_vunmap() helper. Called with a held GEM reservation lock. This callback is optional. ``mmap`` Handle mmap() of the gem object, setup vma accordingly. This callback is optional. The callback is used by both drm_gem_mmap_obj() and drm_gem_prime_mmap(). When **mmap** is present **vm_ops** is not used, the **mmap** callback must set vma->vm_ops instead. ``evict`` Evicts gem object out from memory. Used by the drm_gem_object_evict() helper. Returns 0 on success, -errno otherwise. Called with a held GEM reservation lock. This callback is optional. ``status`` The optional status callback can return additional object state which determines which stats the object is counted against. The callback is called under table_lock. Racing against object status change is "harmless", and the callback can expect to not race against object destruction. Called by drm_show_memory_stats(). ``rss`` Return resident size of the object in physical memory. Called by drm_show_memory_stats(). ``vm_ops`` Virtual memory operations used with mmap. This is optional but necessary for mmap support.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh:}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKMhjqubjh)}(hXstruct drm_gem_object_funcs { void (*free)(struct drm_gem_object *obj); int (*open)(struct drm_gem_object *obj, struct drm_file *file); void (*close)(struct drm_gem_object *obj, struct drm_file *file); void (*print_info)(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj); struct dma_buf *(*export)(struct drm_gem_object *obj, int flags); int (*pin)(struct drm_gem_object *obj); void (*unpin)(struct drm_gem_object *obj); struct sg_table *(*get_sg_table)(struct drm_gem_object *obj); int (*vmap)(struct drm_gem_object *obj, struct iosys_map *map); void (*vunmap)(struct drm_gem_object *obj, struct iosys_map *map); int (*mmap)(struct drm_gem_object *obj, struct vm_area_struct *vma); int (*evict)(struct drm_gem_object *obj); enum drm_gem_object_status (*status)(struct drm_gem_object *obj); size_t (*rss)(struct drm_gem_object *obj); const struct vm_operations_struct *vm_ops; };h]hXstruct drm_gem_object_funcs { void (*free)(struct drm_gem_object *obj); int (*open)(struct drm_gem_object *obj, struct drm_file *file); void (*close)(struct drm_gem_object *obj, struct drm_file *file); void (*print_info)(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj); struct dma_buf *(*export)(struct drm_gem_object *obj, int flags); int (*pin)(struct drm_gem_object *obj); void (*unpin)(struct drm_gem_object *obj); struct sg_table *(*get_sg_table)(struct drm_gem_object *obj); int (*vmap)(struct drm_gem_object *obj, struct iosys_map *map); void (*vunmap)(struct drm_gem_object *obj, struct iosys_map *map); int (*mmap)(struct drm_gem_object *obj, struct vm_area_struct *vma); int (*evict)(struct drm_gem_object *obj); enum drm_gem_object_status (*status)(struct drm_gem_object *obj); size_t (*rss)(struct drm_gem_object *obj); const struct vm_operations_struct *vm_ops; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jghQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKOhjqubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKahjqubj)}(hhh](j)}(hI``free`` Deconstructor for drm_gem_objects. This callback is mandatory. h](j)}(h``free``h]j)}(hjh]hfree}(hjāhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKPhjubj)}(hhh](h)}(h"Deconstructor for drm_gem_objects.h]h"Deconstructor for drm_gem_objects.}(hjہhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKNhj؁ubh)}(hThis callback is mandatory.h]hThis callback is mandatory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjׁhKPhj؁ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjׁhKPhjubj)}(hF``open`` Called upon GEM handle creation. This callback is optional. h](j)}(h``open``h]j)}(hj h]hopen}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKYhjubj)}(hhh](h)}(h Called upon GEM handle creation.h]h Called upon GEM handle creation.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKWhj ubh)}(hThis callback is optional.h]hThis callback is optional.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKYhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKYhjubj)}(hF``close`` Called upon GEM handle release. This callback is optional. h](j)}(h ``close``h]j)}(hjRh]hclose}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKbhjLubj)}(hhh](h)}(hCalled upon GEM handle release.h]hCalled upon GEM handle release.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhK`hjhubh)}(hThis callback is optional.h]hThis callback is optional.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKbhjhubeh}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghKbhjubj)}(hX;``print_info`` If driver subclasses struct :c:type:`drm_gem_object`, it can implement this optional hook for printing additional driver specific info. drm_printf_indent() should be used in the callback passing it the indent argument. This callback is called from drm_gem_print_info(). This callback is optional. h](j)}(h``print_info``h]j)}(hjh]h print_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKqhjubj)}(hhh](h)}(hIf driver subclasses struct :c:type:`drm_gem_object`, it can implement this optional hook for printing additional driver specific info.h](hIf driver subclasses struct }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKihjubhS, it can implement this optional hook for printing additional driver specific info.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjڂhKihjubh)}(hRdrm_printf_indent() should be used in the callback passing it the indent argument.h]hRdrm_printf_indent() should be used in the callback passing it the indent argument.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKlhjubh)}(h2This callback is called from drm_gem_print_info().h]h2This callback is called from drm_gem_print_info().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKohjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKqhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKqhjubj)}(h``export`` Export backing buffer as a :c:type:`dma_buf`. If this is not set drm_gem_prime_export() is used. This callback is optional. h](j)}(h ``export``h]j)}(hj#h]hexport}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhK|hjubj)}(hhh](h)}(h`Export backing buffer as a :c:type:`dma_buf`. If this is not set drm_gem_prime_export() is used.h](hExport backing buffer as a }(hj<hhhNhNubh)}(h:c:type:`dma_buf`h]j)}(hjFh]hdma_buf}(hjHhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_bufuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKyhj<ubh4. If this is not set drm_gem_prime_export() is used.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchKyhj9ubh)}(hThis callback is optional.h]hThis callback is optional.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hK|hj9ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hK|hjubj)}(h``pin`` Pin backing buffer in memory, such that dma-buf importers can access it. Used by the drm_gem_map_attach() helper. This callback is optional. h](j)}(h``pin``h]j)}(hjh]hpin}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubj)}(hhh](h)}(hqPin backing buffer in memory, such that dma-buf importers can access it. Used by the drm_gem_map_attach() helper.h]hqPin backing buffer in memory, such that dma-buf importers can access it. Used by the drm_gem_map_attach() helper.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(he``unpin`` Unpin backing buffer. Used by the drm_gem_map_detach() helper. This callback is optional. h](j)}(h ``unpin``h]j)}(hjփh]hunpin}(hj؃hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԃubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjЃubj)}(hhh](h)}(h>Unpin backing buffer. Used by the drm_gem_map_detach() helper.h]h>Unpin backing buffer. Used by the drm_gem_map_detach() helper.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjЃubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hX``get_sg_table`` Returns a Scatter-Gather table representation of the buffer. Used when exporting a buffer by the drm_gem_map_dma_buf() helper. Releasing is done by calling dma_unmap_sg_attrs() and sg_free_table() in drm_gem_unmap_buf(), therefore these helpers and this callback here cannot be used for sg tables pointing at driver private memory ranges. See also drm_prime_pages_to_sg(). h](j)}(h``get_sg_table``h]j)}(hjh]h get_sg_table}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubj)}(hhh](h)}(hXRReturns a Scatter-Gather table representation of the buffer. Used when exporting a buffer by the drm_gem_map_dma_buf() helper. Releasing is done by calling dma_unmap_sg_attrs() and sg_free_table() in drm_gem_unmap_buf(), therefore these helpers and this callback here cannot be used for sg tables pointing at driver private memory ranges.h]hXRReturns a Scatter-Gather table representation of the buffer. Used when exporting a buffer by the drm_gem_map_dma_buf() helper. Releasing is done by calling dma_unmap_sg_attrs() and sg_free_table() in drm_gem_unmap_buf(), therefore these helpers and this callback here cannot be used for sg tables pointing at driver private memory ranges.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhj4ubh)}(h!See also drm_prime_pages_to_sg().h]h!See also drm_prime_pages_to_sg().}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKhj4ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hKhjubj)}(h``vmap`` Returns a virtual address for the buffer. Used by the drm_gem_dmabuf_vmap() helper. Called with a held GEM reservation lock. This callback is optional. h](j)}(h``vmap``h]j)}(hjfh]hvmap}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhj`ubj)}(hhh](h)}(h|Returns a virtual address for the buffer. Used by the drm_gem_dmabuf_vmap() helper. Called with a held GEM reservation lock.h]h|Returns a virtual address for the buffer. Used by the drm_gem_dmabuf_vmap() helper. Called with a held GEM reservation lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhj|ubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hKhj|ubeh}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hKhjubj)}(h``vunmap`` Releases the address previously returned by **vmap**. Used by the drm_gem_dmabuf_vunmap() helper. Called with a held GEM reservation lock. This callback is optional. h](j)}(h ``vunmap``h]j)}(hjh]hvunmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubj)}(hhh](h)}(hReleases the address previously returned by **vmap**. Used by the drm_gem_dmabuf_vunmap() helper. Called with a held GEM reservation lock.h](h,Releases the address previously returned by }(hjDŽhhhNhNubj)}(h**vmap**h]hvmap}(hjτhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDŽubhV. Used by the drm_gem_dmabuf_vunmap() helper. Called with a held GEM reservation lock.}(hjDŽhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjĄubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjÄhKhjĄubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjÄhKhjubj)}(hX``mmap`` Handle mmap() of the gem object, setup vma accordingly. This callback is optional. The callback is used by both drm_gem_mmap_obj() and drm_gem_prime_mmap(). When **mmap** is present **vm_ops** is not used, the **mmap** callback must set vma->vm_ops instead. h](j)}(h``mmap``h]j)}(hjh]hmmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubj)}(hhh](h)}(h7Handle mmap() of the gem object, setup vma accordingly.h]h7Handle mmap() of the gem object, setup vma accordingly.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubh)}(hThe callback is used by both drm_gem_mmap_obj() and drm_gem_prime_mmap(). When **mmap** is present **vm_ops** is not used, the **mmap** callback must set vma->vm_ops instead.h](hPThe callback is used by both drm_gem_mmap_obj() and drm_gem_prime_mmap(). When }(hj?hhhNhNubj)}(h**mmap**h]hmmap}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh is present }(hj?hhhNhNubj)}(h **vm_ops**h]hvm_ops}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh is not used, the }(hj?hhhNhNubj)}(h**mmap**h]hmmap}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh' callback must set vma->vm_ops instead.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``evict`` Evicts gem object out from memory. Used by the drm_gem_object_evict() helper. Returns 0 on success, -errno otherwise. Called with a held GEM reservation lock. This callback is optional. h](j)}(h ``evict``h]j)}(hjh]hevict}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubj)}(hhh](h)}(hEvicts gem object out from memory. Used by the drm_gem_object_evict() helper. Returns 0 on success, -errno otherwise. Called with a held GEM reservation lock.h]hEvicts gem object out from memory. Used by the drm_gem_object_evict() helper. Returns 0 on success, -errno otherwise. Called with a held GEM reservation lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hXM``status`` The optional status callback can return additional object state which determines which stats the object is counted against. The callback is called under table_lock. Racing against object status change is "harmless", and the callback can expect to not race against object destruction. Called by drm_show_memory_stats(). h](j)}(h ``status``h]j)}(hjޅh]hstatus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܅ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhj؅ubj)}(hhh](h)}(hXThe optional status callback can return additional object state which determines which stats the object is counted against. The callback is called under table_lock. Racing against object status change is "harmless", and the callback can expect to not race against object destruction.h]hX!The optional status callback can return additional object state which determines which stats the object is counted against. The callback is called under table_lock. Racing against object status change is “harmless”, and the callback can expect to not race against object destruction.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubh)}(h"Called by drm_show_memory_stats().h]h"Called by drm_show_memory_stats().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhj؅ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hc``rss`` Return resident size of the object in physical memory. Called by drm_show_memory_stats(). h](j)}(h``rss``h]j)}(hj&h]hrss}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhj ubj)}(hhh](h)}(h6Return resident size of the object in physical memory.h]h6Return resident size of the object in physical memory.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhj<ubh)}(h"Called by drm_show_memory_stats().h]h"Called by drm_show_memory_stats().}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hKhj<ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hKhjubj)}(hf``vm_ops`` Virtual memory operations used with mmap. This is optional but necessary for mmap support.h](j)}(h ``vm_ops``h]j)}(hjnh]hvm_ops}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjhubj)}(hhh](h)}(h)Virtual memory operations used with mmap.h]h)Virtual memory operations used with mmap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubh)}(h0This is optional but necessary for mmap support.h]h0This is optional but necessary for mmap support.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_lru (C struct) c.drm_gem_lruhNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h drm_gem_lruh]jR)}(hstruct drm_gem_lruh](jX)}(hjh]hstruct}(hj׆hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjӆhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjӆhhhjhKubj{)}(h drm_gem_lruh]j)}(hjцh]h drm_gem_lru}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjӆhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjφhhhjhKubah}(h]jʆah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhj̆hhubj)}(hhh]h)}(hA simple LRU helperh]hA simple LRU helper}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj̆hhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjj1jj1jjjuh1jFhhhjPhNhNubj)}(hX**Definition**:: struct drm_gem_lru { struct mutex *lock; long count; struct list_head list; }; **Members** ``lock`` Lock protecting movement of GEM objects between LRUs. All LRUs that the object can move between should be protected by the same lock. ``count`` The total number of backing pages of the GEM objects in this LRU. ``list`` The LRU list.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh:}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhj5ubjh)}(hZstruct drm_gem_lru { struct mutex *lock; long count; struct list_head list; };h]hZstruct drm_gem_lru { struct mutex *lock; long count; struct list_head list; };}hjVsbah}(h]h ]h"]h$]h&]jjuh1jghQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhj5ubh)}(h **Members**h]j)}(hjgh]hMembers}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhj5ubj)}(hhh](j)}(h``lock`` Lock protecting movement of GEM objects between LRUs. All LRUs that the object can move between should be protected by the same lock. h](j)}(h``lock``h]j)}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubj)}(hhh]h)}(hLock protecting movement of GEM objects between LRUs. All LRUs that the object can move between should be protected by the same lock.h]hLock protecting movement of GEM objects between LRUs. All LRUs that the object can move between should be protected by the same lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj}ubj)}(hL``count`` The total number of backing pages of the GEM objects in this LRU. h](j)}(h ``count``h]j)}(hjh]hcount}(hj‡hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh]h)}(hAThe total number of backing pages of the GEM objects in this LRU.h]hAThe total number of backing pages of the GEM objects in this LRU.}(hjهhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjևubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjՇhMhj}ubj)}(h``list`` The LRU list.h](j)}(h``list``h]j)}(hjh]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM hjubj)}(hhh]h)}(h The LRU list.h]h The LRU list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj}ubeh}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubh)}(h**Description**h]j)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjPhhubh)}(hX$A helper for tracking GEM objects in a given state, to aid in driver's shrinker implementation. Tracks the count of pages for lockless :c:type:`shrinker.count_objects `, and provides :c:type:`drm_gem_lru_scan` for driver's :c:type:`shrinker.scan_objects ` implementation.h](hA helper for tracking GEM objects in a given state, to aid in driver’s shrinker implementation. Tracks the count of pages for lockless }(hjShhhNhNubh)}(h+:c:type:`shrinker.count_objects `h]j)}(hj]h]hshrinker.count_objects}(hj_hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jashrinkeruh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjSubh, and provides }(hjShhhNhNubh)}(h:c:type:`drm_gem_lru_scan`h]j)}(hjh]hdrm_gem_lru_scan}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_lru_scanuh1hhjzhKhjSubh for driver’s }(hjShhhNhNubh)}(h*:c:type:`shrinker.scan_objects `h]j)}(hjh]hshrinker.scan_objects}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jashrinkeruh1hhjzhKhjSubh implementation.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhKhjPhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_object (C struct)c.drm_gem_objecthNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hdrm_gem_objecth]jR)}(hstruct drm_gem_objecth](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(hdrm_gem_objecth]j)}(hjވh]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj܈hhhjhKubah}(h]j׈ah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjوhhubj)}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj#hhubah}(h]h ]h"]h$]h&]uh1jhjوhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjj>jj>jjjuh1jFhhhjPhNhNubj)}(hXn**Definition**:: struct drm_gem_object { struct kref refcount; unsigned handle_count; struct drm_device *dev; struct file *filp; struct drm_vma_offset_node vma_node; size_t size; int name; struct dma_buf *dma_buf; struct dma_buf_attachment *import_attach; struct dma_resv *resv; struct dma_resv _resv; struct { struct list_head list; struct mutex lock; } gpuva; const struct drm_gem_object_funcs *funcs; struct list_head lru_node; struct drm_gem_lru *lru; }; **Members** ``refcount`` Reference count of this object Please use drm_gem_object_get() to acquire and drm_gem_object_put_locked() or drm_gem_object_put() to release a reference to a GEM buffer object. ``handle_count`` This is the GEM file_priv handle count of this object. Each handle also holds a reference. Note that when the handle_count drops to 0 any global names (e.g. the id in the flink namespace) will be cleared. Protected by :c:type:`drm_device.object_name_lock `. ``dev`` DRM dev this object belongs to. ``filp`` SHMEM file node used as backing storage for swappable buffer objects. GEM also supports driver private objects with driver-specific backing storage (contiguous DMA memory, special reserved blocks). In this case **filp** is NULL. ``vma_node`` Mapping info for this object to support mmap. Drivers are supposed to allocate the mmap offset using drm_gem_create_mmap_offset(). The offset itself can be retrieved using drm_vma_node_offset_addr(). Memory mapping itself is handled by drm_gem_mmap(), which also checks that userspace is allowed to access the object. ``size`` Size of the object, in bytes. Immutable over the object's lifetime. ``name`` Global name for this object, starts at 1. 0 means unnamed. Access is covered by :c:type:`drm_device.object_name_lock `. This is used by the GEM_FLINK and GEM_OPEN ioctls. ``dma_buf`` dma-buf associated with this GEM object. Pointer to the dma-buf associated with this gem object (either through importing or exporting). We break the resulting reference loop when the last gem handle for this object is released. Protected by :c:type:`drm_device.object_name_lock `. ``import_attach`` dma-buf attachment backing this object. Any foreign dma_buf imported as a gem object has this set to the attachment point for the device. This is invariant over the lifetime of a gem object. The :c:type:`drm_gem_object_funcs.free ` callback is responsible for cleaning up the dma_buf attachment and references acquired at import time. Note that the drm gem/prime core does not depend upon drivers setting this field any more. So for drivers where this doesn't make sense (e.g. virtual devices or a displaylink behind an usb bus) they can simply leave it as NULL. ``resv`` Pointer to reservation object associated with the this GEM object. Normally (**resv** == &**_resv**) except for imported GEM objects. ``_resv`` A reservation object for this GEM object. This is unused for imported GEM objects. ``gpuva`` Fields used by GPUVM to manage mappings pointing to this GEM object. When DRM_GPUVM_IMMEDIATE_MODE is set, this list is protected by the mutex. Otherwise, the list is protected by the GEMs :c:type:`dma_resv` lock. Note that all entries in this list must agree on whether DRM_GPUVM_IMMEDIATE_MODE is set. ``gpuva.list`` list of GPUVM mappings attached to this GEM object. Drivers should lock list accesses with either the GEMs :c:type:`dma_resv` lock (:c:type:`drm_gem_object.resv `) or the :c:type:`drm_gem_object.gpuva `.lock mutex. ``gpuva.lock`` lock protecting access to :c:type:`drm_gem_object.gpuva `.list when DRM_GPUVM_IMMEDIATE_MODE is used. Only used when DRM_GPUVM_IMMEDIATE_MODE is set. It should be safe to take this mutex during the fence signalling path, so do not allocate memory while holding this lock. Otherwise, the :c:type:`dma_resv` lock should be used. ``funcs`` Optional GEM object functions. If this is set, it will be used instead of the corresponding :c:type:`drm_driver` GEM callbacks. New drivers should use this. ``lru_node`` List node in a :c:type:`drm_gem_lru`. ``lru`` The current LRU list that the GEM object is on.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh:}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjBubjh)}(hX struct drm_gem_object { struct kref refcount; unsigned handle_count; struct drm_device *dev; struct file *filp; struct drm_vma_offset_node vma_node; size_t size; int name; struct dma_buf *dma_buf; struct dma_buf_attachment *import_attach; struct dma_resv *resv; struct dma_resv _resv; struct { struct list_head list; struct mutex lock; } gpuva; const struct drm_gem_object_funcs *funcs; struct list_head lru_node; struct drm_gem_lru *lru; };h]hX struct drm_gem_object { struct kref refcount; unsigned handle_count; struct drm_device *dev; struct file *filp; struct drm_vma_offset_node vma_node; size_t size; int name; struct dma_buf *dma_buf; struct dma_buf_attachment *import_attach; struct dma_resv *resv; struct dma_resv _resv; struct { struct list_head list; struct mutex lock; } gpuva; const struct drm_gem_object_funcs *funcs; struct list_head lru_node; struct drm_gem_lru *lru; };}hjcsbah}(h]h ]h"]h$]h&]jjuh1jghQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjBubh)}(h **Members**h]j)}(hjth]hMembers}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM/hjBubj)}(hhh](j)}(h``refcount`` Reference count of this object Please use drm_gem_object_get() to acquire and drm_gem_object_put_locked() or drm_gem_object_put() to release a reference to a GEM buffer object. h](j)}(h ``refcount``h]j)}(hjh]hrefcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM"hjubj)}(hhh](h)}(hReference count of this objecth]hReference count of this object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh)}(hPlease use drm_gem_object_get() to acquire and drm_gem_object_put_locked() or drm_gem_object_put() to release a reference to a GEM buffer object.h]hPlease use drm_gem_object_get() to acquire and drm_gem_object_put_locked() or drm_gem_object_put() to release a reference to a GEM buffer object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjubj)}(hX!``handle_count`` This is the GEM file_priv handle count of this object. Each handle also holds a reference. Note that when the handle_count drops to 0 any global names (e.g. the id in the flink namespace) will be cleared. Protected by :c:type:`drm_device.object_name_lock `. h](j)}(h``handle_count``h]j)}(hj܉h]h handle_count}(hjމhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjډubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM/hj։ubj)}(hhh](h)}(h6This is the GEM file_priv handle count of this object.h]h6This is the GEM file_priv handle count of this object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM)hjubh)}(hEach handle also holds a reference. Note that when the handle_count drops to 0 any global names (e.g. the id in the flink namespace) will be cleared.h]hEach handle also holds a reference. Note that when the handle_count drops to 0 any global names (e.g. the id in the flink namespace) will be cleared.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM+hjubh)}(h@Protected by :c:type:`drm_device.object_name_lock `.h](h Protected by }(hjhhhNhNubh)}(h2:c:type:`drm_device.object_name_lock `h]j)}(hjh]hdrm_device.object_name_lock}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_deviceuh1hhjhM/hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM/hjubeh}(h]h ]h"]h$]h&]uh1jhj։ubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjubj)}(h(``dev`` DRM dev this object belongs to. h](j)}(h``dev``h]j)}(hjVh]hdev}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM6hjPubj)}(hhh]h)}(hDRM dev this object belongs to.h]hDRM dev this object belongs to.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM6hjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM6hjubj)}(h``filp`` SHMEM file node used as backing storage for swappable buffer objects. GEM also supports driver private objects with driver-specific backing storage (contiguous DMA memory, special reserved blocks). In this case **filp** is NULL. h](j)}(h``filp``h]j)}(hjh]hfilp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM>hjubj)}(hhh]h)}(hSHMEM file node used as backing storage for swappable buffer objects. GEM also supports driver private objects with driver-specific backing storage (contiguous DMA memory, special reserved blocks). In this case **filp** is NULL.h](hSHMEM file node used as backing storage for swappable buffer objects. GEM also supports driver private objects with driver-specific backing storage (contiguous DMA memory, special reserved blocks). In this case }(hjhhhNhNubj)}(h**filp**h]hfilp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM>hjubj)}(hXL``vma_node`` Mapping info for this object to support mmap. Drivers are supposed to allocate the mmap offset using drm_gem_create_mmap_offset(). The offset itself can be retrieved using drm_vma_node_offset_addr(). Memory mapping itself is handled by drm_gem_mmap(), which also checks that userspace is allowed to access the object. h](j)}(h ``vma_node``h]j)}(hjۊh]hvma_node}(hj݊hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjيubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMJhjՊubj)}(hhh](h)}(hMapping info for this object to support mmap. Drivers are supposed to allocate the mmap offset using drm_gem_create_mmap_offset(). The offset itself can be retrieved using drm_vma_node_offset_addr().h]hMapping info for this object to support mmap. Drivers are supposed to allocate the mmap offset using drm_gem_create_mmap_offset(). The offset itself can be retrieved using drm_vma_node_offset_addr().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMEhjubh)}(huMemory mapping itself is handled by drm_gem_mmap(), which also checks that userspace is allowed to access the object.h]huMemory mapping itself is handled by drm_gem_mmap(), which also checks that userspace is allowed to access the object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMIhjubeh}(h]h ]h"]h$]h&]uh1jhjՊubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubj)}(hN``size`` Size of the object, in bytes. Immutable over the object's lifetime. h](j)}(h``size``h]j)}(hj$h]hsize}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMRhjubj)}(hhh]h)}(hDSize of the object, in bytes. Immutable over the object's lifetime.h]hFSize of the object, in bytes. Immutable over the object’s lifetime.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMQhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMRhjubj)}(h``name`` Global name for this object, starts at 1. 0 means unnamed. Access is covered by :c:type:`drm_device.object_name_lock `. This is used by the GEM_FLINK and GEM_OPEN ioctls. h](j)}(h``name``h]j)}(hj^h]hname}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM[hjXubj)}(hhh]h)}(hGlobal name for this object, starts at 1. 0 means unnamed. Access is covered by :c:type:`drm_device.object_name_lock `. This is used by the GEM_FLINK and GEM_OPEN ioctls.h](hPGlobal name for this object, starts at 1. 0 means unnamed. Access is covered by }(hjwhhhNhNubh)}(h2:c:type:`drm_device.object_name_lock `h]j)}(hjh]hdrm_device.object_name_lock}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_deviceuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMYhjwubh4. This is used by the GEM_FLINK and GEM_OPEN ioctls.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMYhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshM[hjubj)}(hX4``dma_buf`` dma-buf associated with this GEM object. Pointer to the dma-buf associated with this gem object (either through importing or exporting). We break the resulting reference loop when the last gem handle for this object is released. Protected by :c:type:`drm_device.object_name_lock `. h](j)}(h ``dma_buf``h]j)}(hjh]hdma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhhjubj)}(hhh](h)}(h(dma-buf associated with this GEM object.h]h(dma-buf associated with this GEM object.}(hjԋhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMbhjыubh)}(hPointer to the dma-buf associated with this gem object (either through importing or exporting). We break the resulting reference loop when the last gem handle for this object is released.h]hPointer to the dma-buf associated with this gem object (either through importing or exporting). We break the resulting reference loop when the last gem handle for this object is released.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMdhjыubh)}(h@Protected by :c:type:`drm_device.object_name_lock `.h](h Protected by }(hjhhhNhNubh)}(h2:c:type:`drm_device.object_name_lock `h]j)}(hjh]hdrm_device.object_name_lock}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_deviceuh1hhjЋhMhhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjЋhMhhjыubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjЋhMhhjubj)}(hX^``import_attach`` dma-buf attachment backing this object. Any foreign dma_buf imported as a gem object has this set to the attachment point for the device. This is invariant over the lifetime of a gem object. The :c:type:`drm_gem_object_funcs.free ` callback is responsible for cleaning up the dma_buf attachment and references acquired at import time. Note that the drm gem/prime core does not depend upon drivers setting this field any more. So for drivers where this doesn't make sense (e.g. virtual devices or a displaylink behind an usb bus) they can simply leave it as NULL. h](j)}(h``import_attach``h]j)}(hj5h]h import_attach}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM|hj/ubj)}(hhh](h)}(h'dma-buf attachment backing this object.h]h'dma-buf attachment backing this object.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMohjKubh)}(hAny foreign dma_buf imported as a gem object has this set to the attachment point for the device. This is invariant over the lifetime of a gem object.h]hAny foreign dma_buf imported as a gem object has this set to the attachment point for the device. This is invariant over the lifetime of a gem object.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMqhjKubh)}(hThe :c:type:`drm_gem_object_funcs.free ` callback is responsible for cleaning up the dma_buf attachment and references acquired at import time.h](hThe }(hjlhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j)}(hjvh]hdrm_gem_object_funcs.free}(hjxhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMuhjlubhg callback is responsible for cleaning up the dma_buf attachment and references acquired at import time.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMuhjKubh)}(hNote that the drm gem/prime core does not depend upon drivers setting this field any more. So for drivers where this doesn't make sense (e.g. virtual devices or a displaylink behind an usb bus) they can simply leave it as NULL.h]hNote that the drm gem/prime core does not depend upon drivers setting this field any more. So for drivers where this doesn’t make sense (e.g. virtual devices or a displaylink behind an usb bus) they can simply leave it as NULL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMyhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM|hjubj)}(h``resv`` Pointer to reservation object associated with the this GEM object. Normally (**resv** == &**_resv**) except for imported GEM objects. h](j)}(h``resv``h]j)}(hjh]hresv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh](h)}(hBPointer to reservation object associated with the this GEM object.h]hBPointer to reservation object associated with the this GEM object.}(hj،hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjՌubh)}(hBNormally (**resv** == &**_resv**) except for imported GEM objects.h](h Normally (}(hjhhhNhNubj)}(h**resv**h]hresv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0 == &**_resv**) except for imported GEM objects.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjԌhMhjՌubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԌhMhjubj)}(h^``_resv`` A reservation object for this GEM object. This is unused for imported GEM objects. h](j)}(h ``_resv``h]j)}(hjh]h_resv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh](h)}(h)A reservation object for this GEM object.h]h)A reservation object for this GEM object.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj/ubh)}(h(This is unused for imported GEM objects.h]h(This is unused for imported GEM objects.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubj)}(hX<``gpuva`` Fields used by GPUVM to manage mappings pointing to this GEM object. When DRM_GPUVM_IMMEDIATE_MODE is set, this list is protected by the mutex. Otherwise, the list is protected by the GEMs :c:type:`dma_resv` lock. Note that all entries in this list must agree on whether DRM_GPUVM_IMMEDIATE_MODE is set. h](j)}(h ``gpuva``h]j)}(hjah]hgpuva}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj[ubj)}(hhh](h)}(hDFields used by GPUVM to manage mappings pointing to this GEM object.h]hDFields used by GPUVM to manage mappings pointing to this GEM object.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjwubh)}(hWhen DRM_GPUVM_IMMEDIATE_MODE is set, this list is protected by the mutex. Otherwise, the list is protected by the GEMs :c:type:`dma_resv` lock.h](hxWhen DRM_GPUVM_IMMEDIATE_MODE is set, this list is protected by the mutex. Otherwise, the list is protected by the GEMs }(hjhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjh]hdma_resv}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh lock.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjwubh)}(hYNote that all entries in this list must agree on whether DRM_GPUVM_IMMEDIATE_MODE is set.h]hYNote that all entries in this list must agree on whether DRM_GPUVM_IMMEDIATE_MODE is set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjwubeh}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjubj)}(hX``gpuva.list`` list of GPUVM mappings attached to this GEM object. Drivers should lock list accesses with either the GEMs :c:type:`dma_resv` lock (:c:type:`drm_gem_object.resv `) or the :c:type:`drm_gem_object.gpuva `.lock mutex. h](j)}(h``gpuva.list``h]j)}(hj܍h]h gpuva.list}(hjލhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڍubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj֍ubj)}(hhh](h)}(h3list of GPUVM mappings attached to this GEM object.h]h3list of GPUVM mappings attached to this GEM object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh)}(hDrivers should lock list accesses with either the GEMs :c:type:`dma_resv` lock (:c:type:`drm_gem_object.resv `) or the :c:type:`drm_gem_object.gpuva `.lock mutex.h](h7Drivers should lock list accesses with either the GEMs }(hjhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjh]hdma_resv}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh lock (}(hjhhhNhNubh)}(h.:c:type:`drm_gem_object.resv `h]j)}(hj2h]hdrm_gem_object.resv}(hj4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj+hMhjubh ) or the }(hjhhhNhNubh)}(h/:c:type:`drm_gem_object.gpuva `h]j)}(hjUh]hdrm_gem_object.gpuva}(hjWhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj+hMhjubh .lock mutex.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hMhjubeh}(h]h ]h"]h$]h&]uh1jhj֍ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hXg``gpuva.lock`` lock protecting access to :c:type:`drm_gem_object.gpuva `.list when DRM_GPUVM_IMMEDIATE_MODE is used. Only used when DRM_GPUVM_IMMEDIATE_MODE is set. It should be safe to take this mutex during the fence signalling path, so do not allocate memory while holding this lock. Otherwise, the :c:type:`dma_resv` lock should be used. h](j)}(h``gpuva.lock``h]j)}(hjh]h gpuva.lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh](h)}(hulock protecting access to :c:type:`drm_gem_object.gpuva `.list when DRM_GPUVM_IMMEDIATE_MODE is used.h](hlock protecting access to }(hjhhhNhNubh)}(h/:c:type:`drm_gem_object.gpuva `h]j)}(hjh]hdrm_gem_object.gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh,.list when DRM_GPUVM_IMMEDIATE_MODE is used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjΎhMhjubh)}(hOnly used when DRM_GPUVM_IMMEDIATE_MODE is set. It should be safe to take this mutex during the fence signalling path, so do not allocate memory while holding this lock. Otherwise, the :c:type:`dma_resv` lock should be used.h](hOnly used when DRM_GPUVM_IMMEDIATE_MODE is set. It should be safe to take this mutex during the fence signalling path, so do not allocate memory while holding this lock. Otherwise, the }(hjَhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjh]hdma_resv}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjَubh lock should be used.}(hjَhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``funcs`` Optional GEM object functions. If this is set, it will be used instead of the corresponding :c:type:`drm_driver` GEM callbacks. New drivers should use this. h](j)}(h ``funcs``h]j)}(hjh]hfuncs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh](h)}(hOptional GEM object functions. If this is set, it will be used instead of the corresponding :c:type:`drm_driver` GEM callbacks.h](h\Optional GEM object functions. If this is set, it will be used instead of the corresponding }(hj6hhhNhNubh)}(h:c:type:`drm_driver`h]j)}(hj@h]h drm_driver}(hjBhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj6ubh GEM callbacks.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hMhj3ubh)}(hNew drivers should use this.h]hNew drivers should use this.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubj)}(h3``lru_node`` List node in a :c:type:`drm_gem_lru`. h](j)}(h ``lru_node``h]j)}(hjh]hlru_node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh]h)}(h%List node in a :c:type:`drm_gem_lru`.h](hList node in a }(hjhhhNhNubh)}(h:c:type:`drm_gem_lru`h]j)}(hjh]h drm_gem_lru}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gem_lruuh1hhjhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h7``lru`` The current LRU list that the GEM object is on.h](j)}(h``lru``h]j)}(hjh]hlru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjޏubj)}(hhh]h)}(h/The current LRU list that the GEM object is on.h]h/The current LRU list that the GEM object is on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjޏubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubh)}(h**Description**h]j)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjPhhubh)}(h}This structure defines the generic parts for GEM buffer objects, which are mostly around handling mmap and userspace handles.h]h}This structure defines the generic parts for GEM buffer objects, which are mostly around handling mmap and userspace handles.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjPhhubh)}(h+Buffer objects are often abbreviated to BO.h]h+Buffer objects are often abbreviated to BO.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjPhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBDRM_GEM_FOPS (C macro)c.DRM_GEM_FOPShNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h DRM_GEM_FOPSh]jR)}(h DRM_GEM_FOPSh]j{)}(h DRM_GEM_FOPSh]j)}(hjnh]h DRM_GEM_FOPS}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjphhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjlhhhjhMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjihhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjihhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubh)}(h``DRM_GEM_FOPS``h]j)}(hjh]h DRM_GEM_FOPS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjPhhubj)}(h Default drm GEM file operations **Description** This macro provides a shorthand for setting the GEM file ops in the :c:type:`file_operations` structure. If all you need are the default ops, use DEFINE_DRM_GEM_FOPS instead. h](j)}(h Default drm GEM file operations h]h)}(hDefault drm GEM file operationsh]hDefault drm GEM file operations}(hjȐhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjĐubah}(h]h ]h"]h$]h&]uh1jhj֐hMhjubh)}(h**Description**h]j)}(hjߐh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݐubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh)}(hThis macro provides a shorthand for setting the GEM file ops in the :c:type:`file_operations` structure. If all you need are the default ops, use DEFINE_DRM_GEM_FOPS instead.h](hDThis macro provides a shorthand for setting the GEM file ops in the }(hjhhhNhNubh)}(h:c:type:`file_operations`h]j)}(hjh]hfile_operations}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jafile_operationsuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubhR structure. If all you need are the default ops, use DEFINE_DRM_GEM_FOPS instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj֐hMhjPhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBDEFINE_DRM_GEM_FOPS (C macro)c.DEFINE_DRM_GEM_FOPShNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hDEFINE_DRM_GEM_FOPSh]jR)}(hDEFINE_DRM_GEM_FOPSh]j{)}(hDEFINE_DRM_GEM_FOPSh]j)}(hj@h]hDEFINE_DRM_GEM_FOPS}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhj>hhhj]hMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jKhj]hMhj;hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj;hhhj]hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjvjjvjjjuh1jFhhhjPhNhNubh)}(h``DEFINE_DRM_GEM_FOPS (name)``h]j)}(hj|h]hDEFINE_DRM_GEM_FOPS (name)}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjPhhubj)}(h2macro to generate file operations for GEM drivers h]h)}(h1macro to generate file operations for GEM driversh]h1macro to generate file operations for GEM drivers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjPhhubj)}(hX7**Parameters** ``name`` name for the generated structure **Description** This macro autogenerates a suitable :c:type:`struct file_operations ` for GEM based drivers, which can be assigned to :c:type:`drm_driver.fops `. Note that this structure cannot be shared between drivers, because it contains a reference to the current module using THIS_MODULE. Note that the declaration is already marked as static - if you need a non-static version of this you're probably doing it wrong and will break the THIS_MODULE reference by accident.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh]j)}(h*``name`` name for the generated structure h](j)}(h``name``h]j)}(hjБh]hname}(hjґhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΑubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjʑubj)}(hhh]h)}(h name for the generated structureh]h name for the generated structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjʑubeh}(h]h ]h"]h$]h&]uh1jhjhMhjǑubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh)}(hX2This macro autogenerates a suitable :c:type:`struct file_operations ` for GEM based drivers, which can be assigned to :c:type:`drm_driver.fops `. Note that this structure cannot be shared between drivers, because it contains a reference to the current module using THIS_MODULE.h](h$This macro autogenerates a suitable }(hj!hhhNhNubh)}(h2:c:type:`struct file_operations `h]j)}(hj+h]hstruct file_operations}(hj-hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jafile_operationsuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj!ubh1 for GEM based drivers, which can be assigned to }(hj!hhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j)}(hjOh]hdrm_driver.fops}(hjQhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhjHhMhj!ubh. Note that this structure cannot be shared between drivers, because it contains a reference to the current module using THIS_MODULE.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjHhMhjubh)}(hNote that the declaration is already marked as static - if you need a non-static version of this you're probably doing it wrong and will break the THIS_MODULE reference by accident.h]hNote that the declaration is already marked as static - if you need a non-static version of this you’re probably doing it wrong and will break the THIS_MODULE reference by accident.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!drm_gem_get_huge_mnt (C function)c.drm_gem_get_huge_mnthNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h?struct vfsmount * drm_gem_get_huge_mnt (struct drm_device *dev)h]jR)}(h=struct vfsmount *drm_gem_get_huge_mnt(struct drm_device *dev)h](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubh)}(hhh]j)}(hvfsmounth]hvfsmount}(hjĒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjƒmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_get_huge_mntsbc.drm_gem_get_huge_mntasbuh1hhjhhhjhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhMubj{)}(hdrm_gem_get_huge_mnth]j)}(hjh]hdrm_gem_get_huge_mnt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct drm_device *dev)h]j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj?modnameN classnameNj+j.)}j1]jc.drm_gem_get_huge_mntasbuh1hhjubjj)}(h h]h }(hj[hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjihhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h2Get the huge tmpfs mountpoint used by a DRM deviceh]h2Get the huge tmpfs mountpoint used by a DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(hXh**Parameters** ``struct drm_device *dev`` DRM device **Description** This function gets the huge tmpfs mountpoint used by DRM device **dev**. A huge tmpfs mountpoint is used instead of `shm_mnt` after a successful call to drm_gem_huge_mnt_create() when CONFIG_TRANSPARENT_HUGEPAGE is enabled. **Return** The huge tmpfs mountpoint in use, NULL otherwise.h](h)}(h**Parameters**h]j)}(hj“h]h Parameters}(hjēhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh]j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߓubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjۓubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjۓubeh}(h]h ]h"]h$]h&]uh1jhjhMhjؓubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh)}(hThis function gets the huge tmpfs mountpoint used by DRM device **dev**. A huge tmpfs mountpoint is used instead of `shm_mnt` after a successful call to drm_gem_huge_mnt_create() when CONFIG_TRANSPARENT_HUGEPAGE is enabled.h](h@This function gets the huge tmpfs mountpoint used by DRM device }(hj2hhhNhNubj)}(h**dev**h]hdev}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh-. A huge tmpfs mountpoint is used instead of }(hj2hhhNhNubhtitle_reference)}(h `shm_mnt`h]hshm_mnt}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2ubhb after a successful call to drm_gem_huge_mnt_create() when CONFIG_TRANSPARENT_HUGEPAGE is enabled.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh)}(h **Return**h]j)}(hjih]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh)}(h1The huge tmpfs mountpoint in use, NULL otherwise.h]h1The huge tmpfs mountpoint in use, NULL otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_object_get (C function)c.drm_gem_object_gethNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h4void drm_gem_object_get (struct drm_gem_object *obj)h]jR)}(h3void drm_gem_object_get(struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM&ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM&ubj{)}(hdrm_gem_object_geth]j)}(hdrm_gem_object_geth]hdrm_gem_object_get}(hjϔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˔ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM&ubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j4)}j'jєsbc.drm_gem_object_getasbuh1hhjubjj)}(h h]h }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj7hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM&ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhM&ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM&hjhhubj)}(hhh]h)}(h%acquire a GEM buffer object referenceh]h%acquire a GEM buffer object reference}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM&hjkhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(h**Parameters** ``struct drm_gem_object *obj`` GEM buffer object **Description** This function acquires an additional reference to **obj**. It is illegal to call this without already holding a reference. No locks required.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM*hjubj)}(hhh]j)}(h1``struct drm_gem_object *obj`` GEM buffer object h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM'hjubj)}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hjȕhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjĕhM'hjŕubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjĕhM'hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM)hjubh)}(hThis function acquires an additional reference to **obj**. It is illegal to call this without already holding a reference. No locks required.h](h2This function acquires an additional reference to }(hjhhhNhNubj)}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhT. It is illegal to call this without already holding a reference. No locks required.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM(hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_object_put (C function)c.drm_gem_object_puthNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h4void drm_gem_object_put (struct drm_gem_object *obj)h]jR)}(h3void drm_gem_object_put(struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM9ubjj)}(h h]h }(hjPhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj=hhhjOhM9ubj{)}(hdrm_gem_object_puth]j)}(hdrm_gem_object_puth]hdrm_gem_object_put}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj=hhhjOhM9ubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjzubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjzubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jdsbc.drm_gem_object_putasbuh1hhjzubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjzubjH)}(hjKh]h*}(hjʖhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhFjzubj)}(hobjh]hobj}(hjזhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubah}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhM9ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj9hhhjOhM9ubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1jKhjOhM9hj6hhubj)}(hhh]h)}(h"drop a GEM buffer object referenceh]h"drop a GEM buffer object reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM9hjhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(hz**Parameters** ``struct drm_gem_object *obj`` GEM buffer object **Description** This releases a reference to **obj**.h](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM=hjubj)}(hhh]j)}(h1``struct drm_gem_object *obj`` GEM buffer object h](j)}(h``struct drm_gem_object *obj``h]j)}(hjBh]hstruct drm_gem_object *obj}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM:hj<ubj)}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM:hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM:hj9ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM<hjubh)}(h%This releases a reference to **obj**.h](hThis releases a reference to }(hjhhhNhNubj)}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB6drm_gem_object_is_shared_for_memory_stats (C function)+c.drm_gem_object_is_shared_for_memory_statshNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hKbool drm_gem_object_is_shared_for_memory_stats (struct drm_gem_object *obj)h]jR)}(hJbool drm_gem_object_is_shared_for_memory_stats(struct drm_gem_object *obj)h](j)}(hj*h]hbool}(hjԗhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЗhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMsubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjЗhhhjhMsubj{)}(h)drm_gem_object_is_shared_for_memory_statsh]j)}(h)drm_gem_object_is_shared_for_memory_statsh]h)drm_gem_object_is_shared_for_memory_stats}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjЗhhhjhMsubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj0modnameN classnameNj+j.)}j1]j4)}j'jsb+c.drm_gem_object_is_shared_for_memory_statsasbuh1hhj ubjj)}(h h]h }(hjNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj\hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hobjh]hobj}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjЗhhhjhMsubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj̗hhhjhMsubah}(h]jǗah ](jjeh"]h$]h&]jj)jhuh1jKhjhMshjɗhhubj)}(hhh]h)}(hhelper for shared memory statsh]hhelper for shared memory stats}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMshjhhubah}(h]h ]h"]h$]h&]uh1jhjɗhhhjhMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(h**Parameters** ``struct drm_gem_object *obj`` obj in question **Description** This helper should only be used for fdinfo shared memory stats to determine if a GEM object is shared.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMwhjubj)}(hhh]j)}(h/``struct drm_gem_object *obj`` obj in question h](j)}(h``struct drm_gem_object *obj``h]j)}(hjԘh]hstruct drm_gem_object *obj}(hj֘hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҘubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMxhjΘubj)}(hhh]h)}(hobj in questionh]hobj in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjΘubeh}(h]h ]h"]h$]h&]uh1jhjhMxhj˘ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMzhjubh)}(hfThis helper should only be used for fdinfo shared memory stats to determine if a GEM object is shared.h]hfThis helper should only be used for fdinfo shared memory stats to determine if a GEM object is shared.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMthjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gem_is_imported (C function)c.drm_gem_is_importedhNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h;bool drm_gem_is_imported (const struct drm_gem_object *obj)h]jR)}(h:bool drm_gem_is_imported(const struct drm_gem_object *obj)h](j)}(hj*h]hbool}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMubjj)}(h h]h }(hjbhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjPhhhjahMubj{)}(hdrm_gem_is_importedh]j)}(hdrm_gem_is_importedh]hdrm_gem_is_imported}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPhhhjahMubj)}(h"(const struct drm_gem_object *obj)h]j)}(h const struct drm_gem_object *objh](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjəhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƙubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj˙modnameN classnameNj+j.)}j1]j4)}j'jvsbc.drm_gem_is_importedasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjPhhhjahMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjLhhhjahMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1jKhjahMhjIhhubj)}(hhh]h)}(h.Tests if GEM object's buffer has been importedh]h0Tests if GEM object’s buffer has been imported}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj+hhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1jFhhhjPhNhNubj)}(h**Parameters** ``const struct drm_gem_object *obj`` the GEM object **Return** True if the GEM object's buffer has been imported, false otherwiseh](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjJubj)}(hhh]j)}(h4``const struct drm_gem_object *obj`` the GEM object h](j)}(h$``const struct drm_gem_object *obj``h]j)}(hjoh]h const struct drm_gem_object *obj}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjiubj)}(hhh]h)}(hthe GEM objecth]hthe GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjJubh)}(hBTrue if the GEM object's buffer has been imported, false otherwiseh]hDTrue if the GEM object’s buffer has been imported, false otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_gpuva_init (C function)c.drm_gem_gpuva_inithNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h4void drm_gem_gpuva_init (struct drm_gem_object *obj)h]jR)}(h3void drm_gem_gpuva_init(struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gem_gpuva_inith]j)}(hdrm_gem_gpuva_inith]hdrm_gem_gpuva_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj(ubjj)}(h h]h }(hj9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj(ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjLmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_gpuva_initasbuh1hhj(ubjj)}(h h]h }(hjjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj(ubjH)}(hjKh]h*}(hjxhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj(ubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h)initialize the gpuva list of a GEM objecth]h)initialize the gpuva list of a GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjǛjjǛjjjuh1jFhhhjPhNhNubj)}(hXM**Parameters** ``struct drm_gem_object *obj`` the :c:type:`drm_gem_object` **Description** This initializes the :c:type:`drm_gem_object`'s :c:type:`drm_gpuvm_bo` list. Calling this function is only necessary for drivers intending to support the :c:type:`drm_driver_feature` DRIVER_GEM_GPUVA. See also drm_gem_gpuva_set_lock().h](h)}(h**Parameters**h]j)}(hjћh]h Parameters}(hjӛhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϛubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj˛ubj)}(hhh]j)}(h<``struct drm_gem_object *obj`` the :c:type:`drm_gem_object` h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh]h)}(hthe :c:type:`drm_gem_object`h](hthe }(hj hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjhMhj ubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj˛ubh)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj˛ubh)}(hLThis initializes the :c:type:`drm_gem_object`'s :c:type:`drm_gpuvm_bo` list.h](hThis initializes the }(hj`hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjjh]hdrm_gem_object}(hjlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj`ubh’s }(hj`hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjhMhj`ubh list.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj˛ubh)}(h{Calling this function is only necessary for drivers intending to support the :c:type:`drm_driver_feature` DRIVER_GEM_GPUVA.h](hMCalling this function is only necessary for drivers intending to support the }(hjhhhNhNubh)}(h:c:type:`drm_driver_feature`h]j)}(hjh]hdrm_driver_feature}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_driver_featureuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh DRIVER_GEM_GPUVA.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjܜhMhj˛ubh)}(h"See also drm_gem_gpuva_set_lock().h]h"See also drm_gem_gpuva_set_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj˛ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_gem_for_each_gpuvm_bo (C macro)c.drm_gem_for_each_gpuvm_bohNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hdrm_gem_for_each_gpuvm_boh]jR)}(hdrm_gem_for_each_gpuvm_boh]j{)}(hdrm_gem_for_each_gpuvm_boh]j)}(hjh]hdrm_gem_for_each_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj-hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj-hMhj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj-hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjFjjFjjjuh1jFhhhjPhNhNubh)}(h.``drm_gem_for_each_gpuvm_bo (entry__, obj__)``h]j)}(hjLh]h*drm_gem_for_each_gpuvm_bo (entry__, obj__)}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjPhhubj)}(h7iterator to walk over a list of :c:type:`drm_gpuvm_bo` h]h)}(h6iterator to walk over a list of :c:type:`drm_gpuvm_bo`h](h iterator to walk over a list of }(hjfhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjph]h drm_gpuvm_bo}(hjrhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjfubeh}(h]h ]h"]h$]h&]uh1hhjhMhjbubah}(h]h ]h"]h$]h&]uh1jhjhMhjPhhubj)}(hXB**Parameters** ``entry__`` :c:type:`drm_gpuvm_bo` structure to assign to in each iteration step ``obj__`` the :c:type:`drm_gem_object` the :c:type:`drm_gpuvm_bo` to walk are associated with **Description** This iterator walks over all :c:type:`drm_gpuvm_bo` structures associated with the :c:type:`drm_gem_object`.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh](j)}(hQ``entry__`` :c:type:`drm_gpuvm_bo` structure to assign to in each iteration step h](j)}(h ``entry__``h]j)}(hjh]hentry__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh]h)}(hD:c:type:`drm_gpuvm_bo` structure to assign to in each iteration steph](h)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjޝh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjܝubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjԝhMhj؝ubh. structure to assign to in each iteration step}(hj؝hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjԝhMhj՝ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԝhMhjubj)}(h^``obj__`` the :c:type:`drm_gem_object` the :c:type:`drm_gpuvm_bo` to walk are associated with h](j)}(h ``obj__``h]j)}(hjh]hobj__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh]h)}(hSthe :c:type:`drm_gem_object` the :c:type:`drm_gpuvm_bo` to walk are associated withh](hthe }(hj0hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj:h]hdrm_gem_object}(hj<hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj,hMhj0ubh the }(hj0hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj]h]h drm_gpuvm_bo}(hj_hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhj,hMhj0ubh to walk are associated with}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh)}(hlThis iterator walks over all :c:type:`drm_gpuvm_bo` structures associated with the :c:type:`drm_gem_object`.h](hThis iterator walks over all }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh structures associated with the }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjܞh]hdrm_gem_object}(hjޞhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjڞubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj՞hMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj՞hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_gem_for_each_gpuvm_bo_safe (C macro) c.drm_gem_for_each_gpuvm_bo_safehNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hdrm_gem_for_each_gpuvm_bo_safeh]jR)}(hdrm_gem_for_each_gpuvm_bo_safeh]j{)}(hdrm_gem_for_each_gpuvm_bo_safeh]j)}(hjh]hdrm_gem_for_each_gpuvm_bo_safe}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj:hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj:hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj:hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjSjjSjjjuh1jFhhhjPhNhNubh)}(h;``drm_gem_for_each_gpuvm_bo_safe (entry__, next__, obj__)``h]j)}(hjYh]h7drm_gem_for_each_gpuvm_bo_safe (entry__, next__, obj__)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjPhhubj)}(h>iterator to safely walk over a list of :c:type:`drm_gpuvm_bo` h]h)}(h=iterator to safely walk over a list of :c:type:`drm_gpuvm_bo`h](h'iterator to safely walk over a list of }(hjshhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj}h]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjsubeh}(h]h ]h"]h$]h&]uh1hhjhMhjoubah}(h]h ]h"]h$]h&]uh1jhjhMhjPhhubj)}(hX**Parameters** ``entry__`` :c:type:`drm_gpuvm_bostructure` to assign to in each iteration step ``next__`` :c:type:`next` :c:type:`drm_gpuvm_bo` to store the next step ``obj__`` the :c:type:`drm_gem_object` the :c:type:`drm_gpuvm_bo` to walk are associated with **Description** This iterator walks over all :c:type:`drm_gpuvm_bo` structures associated with the :c:type:`drm_gem_object`. It is implemented with list_for_each_entry_safe(), hence it is save against removal of elements.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh](j)}(hP``entry__`` :c:type:`drm_gpuvm_bostructure` to assign to in each iteration step h](j)}(h ``entry__``h]j)}(hj̟h]hentry__}(hjΟhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʟubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjƟubj)}(hhh]h)}(hC:c:type:`drm_gpuvm_bostructure` to assign to in each iteration steph](h)}(h:c:type:`drm_gpuvm_bostructure`h]j)}(hjh]hdrm_gpuvm_bostructure}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_bostructureuh1hhjhMhjubh$ to assign to in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjƟubeh}(h]h ]h"]h$]h&]uh1jhjhMhjßubj)}(hH``next__`` :c:type:`next` :c:type:`drm_gpuvm_bo` to store the next step h](j)}(h ``next__``h]j)}(hj$h]hnext__}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh]h)}(h<:c:type:`next` :c:type:`drm_gpuvm_bo` to store the next steph](h)}(h:c:type:`next`h]j)}(hjCh]hnext}(hjEhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^janextuh1hhj9hMhj=ubh }(hj=hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjfh]h drm_gpuvm_bo}(hjhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhj9hMhj=ubh to store the next step}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjßubj)}(h^``obj__`` the :c:type:`drm_gem_object` the :c:type:`drm_gpuvm_bo` to walk are associated with h](j)}(h ``obj__``h]j)}(hjh]hobj__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh]h)}(hSthe :c:type:`drm_gem_object` the :c:type:`drm_gpuvm_bo` to walk are associated withh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj h]hdrm_gem_object}(hjĠhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjhMhjubh the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjhMhjubh to walk are associated with}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjßubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh)}(hThis iterator walks over all :c:type:`drm_gpuvm_bo` structures associated with the :c:type:`drm_gem_object`. It is implemented with list_for_each_entry_safe(), hence it is save against removal of elements.h](hThis iterator walks over all }(hj6hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj@h]h drm_gpuvm_bo}(hjBhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj6ubh structures associated with the }(hj6hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjdh]hdrm_gem_object}(hjfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj]hMhj6ubhb. It is implemented with list_for_each_entry_safe(), hence it is save against removal of elements.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_gem_huge_mnt_create (C function)c.drm_gem_huge_mnt_createhNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hGint drm_gem_huge_mnt_create (struct drm_device *dev, const char *value)h]jR)}(hFint drm_gem_huge_mnt_create(struct drm_device *dev, const char *value)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chK_ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhK_ubj{)}(hdrm_gem_huge_mnt_createh]j)}(hdrm_gem_huge_mnt_createh]hdrm_gem_huge_mnt_create}(hj̡hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȡubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK_ubj)}(h+(struct drm_device *dev, const char *value)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jΡsbc.drm_gem_huge_mnt_createasbuh1hhjubjj)}(h h]h }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj4hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *valueh](jX)}(hj h]hconst}(hjZhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjVubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVubj)}(hcharh]hchar}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjVubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK_ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhK_ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhK_hjhhubj)}(hhh]h)}(h-Create, mount and use a huge tmpfs mountpointh]h-Create, mount and use a huge tmpfs mountpoint}(hjȢhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chK_hjŢhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(hX**Parameters** ``struct drm_device *dev`` DRM device that will use the huge tmpfs mountpoint ``const char *value`` huge tmpfs mount option value **Description** This function creates and mounts a dedicated huge tmpfs mountpoint for the lifetime of the DRM device **dev** which is used at GEM object initialization with drm_gem_object_init(). The most common option for **value** is "within_size" which only allocates huge pages if the page will be fully within the GEM object size. "always", "advise" and "never" are supported too but the latter would just create a mountpoint similar to the default one (`shm_mnt`). See shmemfs and Transparent Hugepage for more information. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKchjubj)}(hhh](j)}(hN``struct drm_device *dev`` DRM device that will use the huge tmpfs mountpoint h](j)}(h``struct drm_device *dev``h]j)}(hj h]hstruct drm_device *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chK`hjubj)}(hhh]h)}(h2DRM device that will use the huge tmpfs mountpointh]h2DRM device that will use the huge tmpfs mountpoint}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK`hjubj)}(h4``const char *value`` huge tmpfs mount option value h](j)}(h``const char *value``h]j)}(hjBh]hconst char *value}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKahj<ubj)}(hhh]h)}(hhuge tmpfs mount option valueh]hhuge tmpfs mount option value}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKahjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKahjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKchjubh)}(hThis function creates and mounts a dedicated huge tmpfs mountpoint for the lifetime of the DRM device **dev** which is used at GEM object initialization with drm_gem_object_init().h](hfThis function creates and mounts a dedicated huge tmpfs mountpoint for the lifetime of the DRM device }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhG which is used at GEM object initialization with drm_gem_object_init().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKbhjubh)}(hXMThe most common option for **value** is "within_size" which only allocates huge pages if the page will be fully within the GEM object size. "always", "advise" and "never" are supported too but the latter would just create a mountpoint similar to the default one (`shm_mnt`). See shmemfs and Transparent Hugepage for more information.h](hThe most common option for }(hjhhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is “within_size” which only allocates huge pages if the page will be fully within the GEM object size. “always”, “advise” and “never” are supported too but the latter would just create a mountpoint similar to the default one (}(hjhhhNhNubjM)}(h `shm_mnt`h]hshm_mnt}(hjΣhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh=). See shmemfs and Transparent Hugepage for more information.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKfhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKlhjubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKmhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gem_object_init (C function)c.drm_gem_object_inithNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hYint drm_gem_object_init (struct drm_device *dev, struct drm_gem_object *obj, size_t size)h]jR)}(hXint drm_gem_object_init(struct drm_device *dev, struct drm_gem_object *obj, size_t size)h](j)}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*hhhj<hKubj{)}(hdrm_gem_object_inith]j)}(hdrm_gem_object_inith]hdrm_gem_object_init}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj*hhhj<hKubj)}(hA(struct drm_device *dev, struct drm_gem_object *obj, size_t size)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjgubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jQsbc.drm_gem_object_initasbuh1hhjgubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjgubj)}(hdevh]hdev}(hjĤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjݤhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj٤ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj٤ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_object_initasbuh1hhj٤ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj٤ubjH)}(hjKh]h*}(hj'hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj٤ubj)}(hobjh]hobj}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj٤ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjRmodnameN classnameNj+j.)}j1]jc.drm_gem_object_initasbuh1hhjIubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIubj)}(hsizeh]hsize}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhj*hhhj<hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj&hhhj<hKubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1jKhj<hKhj#hhubj)}(hhh]h)}(h/initialize an allocated shmem-backed GEM objecth]h/initialize an allocated shmem-backed GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj<hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(hXv**Parameters** ``struct drm_device *dev`` drm_device the object should be initialized for ``struct drm_gem_object *obj`` drm_gem_object to initialize ``size_t size`` object size **Description** Initialize an already allocated GEM object of the specified size with shmfs backing store. A huge mountpoint can be used by calling drm_gem_huge_mnt_create() beforehand.h](h)}(h**Parameters**h]j)}(hjȥh]h Parameters}(hjʥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƥubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhj¥ubj)}(hhh](j)}(hK``struct drm_device *dev`` drm_device the object should be initialized for h](j)}(h``struct drm_device *dev``h]j)}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjubj)}(hhh]h)}(h/drm_device the object should be initialized forh]h/drm_device the object should be initialized for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjޥubj)}(h<``struct drm_gem_object *obj`` drm_gem_object to initialize h](j)}(h``struct drm_gem_object *obj``h]j)}(hj h]hstruct drm_gem_object *obj}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjubj)}(hhh]h)}(hdrm_gem_object to initializeh]hdrm_gem_object to initialize}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hKhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hKhjޥubj)}(h``size_t size`` object size h](j)}(h``size_t size``h]j)}(hjYh]h size_t size}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjSubj)}(hhh]h)}(h object sizeh]h object size}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhKhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjޥubeh}(h]h ]h"]h$]h&]uh1jhj¥ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhj¥ubh)}(hInitialize an already allocated GEM object of the specified size with shmfs backing store. A huge mountpoint can be used by calling drm_gem_huge_mnt_create() beforehand.h]hInitialize an already allocated GEM object of the specified size with shmfs backing store. A huge mountpoint can be used by calling drm_gem_huge_mnt_create() beforehand.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhj¥ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_gem_private_object_init (C function)c.drm_gem_private_object_inithNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hbvoid drm_gem_private_object_init (struct drm_device *dev, struct drm_gem_object *obj, size_t size)h]jR)}(havoid drm_gem_private_object_init(struct drm_device *dev, struct drm_gem_object *obj, size_t size)h](j)}(hvoidh]hvoid}(hj٦hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjզhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjզhhhjhKubj{)}(hdrm_gem_private_object_inith]j)}(hdrm_gem_private_object_inith]hdrm_gem_private_object_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjզhhhjhKubj)}(hA(struct drm_device *dev, struct drm_gem_object *obj, size_t size)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj#hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj6modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_private_object_initasbuh1hhjubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjbhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jPc.drm_gem_private_object_initasbuh1hhjubjj)}(h h]h }(hjħhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjҧhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjߧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jPc.drm_gem_private_object_initasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hsizeh]hsize}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjզhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjѦhhhjhKubah}(h]j̦ah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjΦhhubj)}(hhh]h)}(h*initialize an allocated private GEM objecth]h*initialize an allocated private GEM object}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjNhhubah}(h]h ]h"]h$]h&]uh1jhjΦhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1jFhhhjPhNhNubj)}(hX{**Parameters** ``struct drm_device *dev`` drm_device the object should be initialized for ``struct drm_gem_object *obj`` drm_gem_object to initialize ``size_t size`` object size **Description** Initialize an already allocated GEM object of the specified size with no GEM provided backing store. Instead the caller is responsible for backing the object and handling it.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjmubj)}(hhh](j)}(hK``struct drm_device *dev`` drm_device the object should be initialized for h](j)}(h``struct drm_device *dev``h]j)}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjubj)}(hhh]h)}(h/drm_device the object should be initialized forh]h/drm_device the object should be initialized for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h<``struct drm_gem_object *obj`` drm_gem_object to initialize h](j)}(h``struct drm_gem_object *obj``h]j)}(hj˨h]hstruct drm_gem_object *obj}(hjͨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɨubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjŨubj)}(hhh]h)}(hdrm_gem_object to initializeh]hdrm_gem_object to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjŨubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``size_t size`` object size h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjubj)}(hhh]h)}(h object sizeh]h object size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjmubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjmubh)}(hInitialize an already allocated GEM object of the specified size with no GEM provided backing store. Instead the caller is responsible for backing the object and handling it.h]hInitialize an already allocated GEM object of the specified size with no GEM provided backing store. Instead the caller is responsible for backing the object and handling it.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_gem_private_object_fini (C function)c.drm_gem_private_object_finihNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h=void drm_gem_private_object_fini (struct drm_gem_object *obj)h]jR)}(hubjj)}(h h]h }(hjOhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjbmodnameN classnameNj+j.)}j1]j4)}j'j(sbc.drm_gem_handle_deleteasbuh1hhj>ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj>ubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j|c.drm_gem_handle_deleteasbuh1hhjubjj)}(h h]h }(hjիhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h%deletes the given file-private handleh]h%deletes the given file-private handle}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jFhhhjPhNhNubj)}(hXW**Parameters** ``struct drm_file *filp`` drm file-private structure to use for the handle look up ``u32 handle`` userspace handle to delete **Description** Removes the GEM handle from the **filp** lookup table which has been added with drm_gem_handle_create(). If this is the last handle also cleans up linked resources like GEM names.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj)ubj)}(hhh](j)}(hS``struct drm_file *filp`` drm file-private structure to use for the handle look up h](j)}(h``struct drm_file *filp``h]j)}(hjNh]hstruct drm_file *filp}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjHubj)}(hhh]h)}(h8drm file-private structure to use for the handle look uph]h8drm file-private structure to use for the handle look up}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjEubj)}(h*``u32 handle`` userspace handle to delete h](j)}(h``u32 handle``h]j)}(hjh]h u32 handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]h)}(huserspace handle to deleteh]huserspace handle to delete}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]j)}(hj¬h]h Description}(hjĬhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj)ubh)}(hRemoves the GEM handle from the **filp** lookup table which has been added with drm_gem_handle_create(). If this is the last handle also cleans up linked resources like GEM names.h](h Removes the GEM handle from the }(hjجhhhNhNubj)}(h**filp**h]hfilp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjجubh lookup table which has been added with drm_gem_handle_create(). If this is the last handle also cleans up linked resources like GEM names.}(hjجhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_gem_dumb_map_offset (C function)c.drm_gem_dumb_map_offsethNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hdint drm_gem_dumb_map_offset (struct drm_file *file, struct drm_device *dev, u32 handle, u64 *offset)h]jR)}(hcint drm_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev, u32 handle, u64 *offset)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMubjj)}(h h]h }(hj(hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj'hMubj{)}(hdrm_gem_dumb_map_offseth]j)}(hdrm_gem_dumb_map_offseth]hdrm_gem_dumb_map_offset}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj'hMubj)}(hH(struct drm_file *file, struct drm_device *dev, u32 handle, u64 *offset)h](j)}(hstruct drm_file *fileh](jX)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjRubjj)}(h h]h }(hjchhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjvmodnameN classnameNj+j.)}j1]j4)}j'j<sbc.drm_gem_dumb_map_offsetasbuh1hhjRubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjRubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjȭhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjĭubjj)}(h h]h }(hjխhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjĭubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_dumb_map_offsetasbuh1hhjĭubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjĭubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjĭubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĭubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj=modnameN classnameNj+j.)}j1]jc.drm_gem_dumb_map_offsetasbuh1hhj4ubjj)}(h h]h }(hjYhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4ubj)}(hhandleh]hhandle}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(h u64 *offseth](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_dumb_map_offsetasbuh1hhj|ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj|ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj|ubj)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj'hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj'hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj'hMhjhhubj)}(hhh]h)}(h,return the fake mmap offset for a gem objecth]h,return the fake mmap offset for a gem object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(hX**Parameters** ``struct drm_file *file`` drm file-private structure containing the gem object ``struct drm_device *dev`` corresponding drm_device ``u32 handle`` gem object handle ``u64 *offset`` return location for the fake mmap offset **Description** This implements the :c:type:`drm_driver.dumb_map_offset ` kms driver callback for drivers which use gem to manage their backing storage. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh](j)}(hO``struct drm_file *file`` drm file-private structure containing the gem object h](j)}(h``struct drm_file *file``h]j)}(hj'h]hstruct drm_file *file}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj!ubj)}(hhh]h)}(h4drm file-private structure containing the gem objecth]h4drm file-private structure containing the gem object}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubj)}(h4``struct drm_device *dev`` corresponding drm_device h](j)}(h``struct drm_device *dev``h]j)}(hj`h]hstruct drm_device *dev}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjZubj)}(hhh]h)}(hcorresponding drm_deviceh]hcorresponding drm_device}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjubj)}(h!``u32 handle`` gem object handle h](j)}(h``u32 handle``h]j)}(hjh]h u32 handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]h)}(hgem object handleh]hgem object handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``u64 *offset`` return location for the fake mmap offset h](j)}(h``u64 *offset``h]j)}(hjүh]h u64 *offset}(hjԯhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЯubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj̯ubj)}(hhh]h)}(h(return location for the fake mmap offseth]h(return location for the fake mmap offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj̯ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hThis implements the :c:type:`drm_driver.dumb_map_offset ` kms driver callback for drivers which use gem to manage their backing storage.h](hThis implements the }(hj#hhhNhNubh)}(h1:c:type:`drm_driver.dumb_map_offset `h]j)}(hj-h]hdrm_driver.dumb_map_offset}(hj/hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj#ubhO kms driver callback for drivers which use gem to manage their backing storage.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJhMhjubh)}(h **Return**h]j)}(hjWh]hReturn}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_gem_handle_create (C function)c.drm_gem_handle_createhNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h`int drm_gem_handle_create (struct drm_file *file_priv, struct drm_gem_object *obj, u32 *handlep)h]jR)}(h_int drm_gem_handle_create(struct drm_file *file_priv, struct drm_gem_object *obj, u32 *handlep)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gem_handle_createh]j)}(hdrm_gem_handle_createh]hdrm_gem_handle_create}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hF(struct drm_file *file_priv, struct drm_gem_object *obj, u32 *handlep)h](j)}(hstruct drm_file *file_privh](jX)}(hjh]hstruct}(hjٰhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjհubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjհubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_handle_createasbuh1hhjհubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjհubjH)}(hjKh]h*}(hj%hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjհubj)}(h file_privh]h file_priv}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjհubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѰubj)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjGubjj)}(h h]h }(hjXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjGubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjkmodnameN classnameNj+j.)}j1]jc.drm_gem_handle_createasbuh1hhjGubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjGubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjGubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѰubj)}(h u32 *handleph](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_handle_createasbuh1hhjubjj)}(h h]h }(hjܱhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hhandleph]hhandlep}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѰubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h!create a gem handle for an objecth]h!create a gem handle for an object}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jFhhhjPhNhNubj)}(hXC**Parameters** ``struct drm_file *file_priv`` drm file-private structure to register the handle for ``struct drm_gem_object *obj`` object to register ``u32 *handlep`` pointer to return the created handle to the caller **Description** Create a handle for this object. This adds a handle reference to the object, which includes a regular reference count. Callers will likely want to dereference the object afterwards. Since this publishes **obj** to userspace it must be fully set up by this point, drivers must call this last in their buffer object creation callbacks.h](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM hj=ubj)}(hhh](j)}(hU``struct drm_file *file_priv`` drm file-private structure to register the handle for h](j)}(h``struct drm_file *file_priv``h]j)}(hjbh]hstruct drm_file *file_priv}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj\ubj)}(hhh]h)}(h5drm file-private structure to register the handle forh]h5drm file-private structure to register the handle for}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjYubj)}(h2``struct drm_gem_object *obj`` object to register h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]h)}(hobject to registerh]hobject to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjYubj)}(hD``u32 *handlep`` pointer to return the created handle to the caller h](j)}(h``u32 *handlep``h]j)}(hjԲh]h u32 *handlep}(hjֲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҲubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjβubj)}(hhh]h)}(h2pointer to return the created handle to the callerh]h2pointer to return the created handle to the caller}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjβubeh}(h]h ]h"]h$]h&]uh1jhjhMhjYubeh}(h]h ]h"]h$]h&]uh1jhj=ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM!hj=ubh)}(hCreate a handle for this object. This adds a handle reference to the object, which includes a regular reference count. Callers will likely want to dereference the object afterwards.h]hCreate a handle for this object. This adds a handle reference to the object, which includes a regular reference count. Callers will likely want to dereference the object afterwards.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM hj=ubh)}(hSince this publishes **obj** to userspace it must be fully set up by this point, drivers must call this last in their buffer object creation callbacks.h](hSince this publishes }(hj4hhhNhNubj)}(h**obj**h]hobj}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh{ to userspace it must be fully set up by this point, drivers must call this last in their buffer object creation callbacks.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM$hj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_gem_free_mmap_offset (C function)c.drm_gem_free_mmap_offsethNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h:void drm_gem_free_mmap_offset (struct drm_gem_object *obj)h]jR)}(h9void drm_gem_free_mmap_offset(struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM4ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjqhhhjhM4ubj{)}(hdrm_gem_free_mmap_offseth]j)}(hdrm_gem_free_mmap_offseth]hdrm_gem_free_mmap_offset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjqhhhjhM4ubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjгhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͳubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjҳmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_free_mmap_offsetasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhM4ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjmhhhjhM4ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1jKhjhM4hjjhhubj)}(hhh]h)}(h(release a fake mmap offset for an objecth]h(release a fake mmap offset for an object}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM4hj2hhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhM4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1jFhhhjPhNhNubj)}(hXF**Parameters** ``struct drm_gem_object *obj`` obj in question **Description** This routine frees fake offsets allocated by drm_gem_create_mmap_offset(). Note that drm_gem_object_release() already calls this function, so drivers don't have to take care of releasing the mmap offset themselves when freeing the GEM object.h](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM8hjQubj)}(hhh]j)}(h/``struct drm_gem_object *obj`` obj in question h](j)}(h``struct drm_gem_object *obj``h]j)}(hjvh]hstruct drm_gem_object *obj}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM5hjpubj)}(hhh]h)}(hobj in questionh]hobj in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjmubah}(h]h ]h"]h$]h&]uh1jhjQubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM7hjQubh)}(hJThis routine frees fake offsets allocated by drm_gem_create_mmap_offset().h]hJThis routine frees fake offsets allocated by drm_gem_create_mmap_offset().}(hjǴhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM6hjQubh)}(hNote that drm_gem_object_release() already calls this function, so drivers don't have to take care of releasing the mmap offset themselves when freeing the GEM object.h]hNote that drm_gem_object_release() already calls this function, so drivers don’t have to take care of releasing the mmap offset themselves when freeing the GEM object.}(hjִhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM8hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB,drm_gem_create_mmap_offset_size (C function)!c.drm_gem_create_mmap_offset_sizehNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hMint drm_gem_create_mmap_offset_size (struct drm_gem_object *obj, size_t size)h]jR)}(hLint drm_gem_create_mmap_offset_size(struct drm_gem_object *obj, size_t size)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMGubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMGubj{)}(hdrm_gem_create_mmap_offset_sizeh]j)}(hdrm_gem_create_mmap_offset_sizeh]hdrm_gem_create_mmap_offset_size}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMGubj)}(h)(struct drm_gem_object *obj, size_t size)h](j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj>ubjj)}(h h]h }(hjOhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjbmodnameN classnameNj+j.)}j1]j4)}j'j(sb!c.drm_gem_create_mmap_offset_sizeasbuh1hhj>ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj>ubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j|!c.drm_gem_create_mmap_offset_sizeasbuh1hhjubjj)}(h h]h }(hjյhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMGubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMGubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMGhjhhubj)}(hhh]h)}(h'create a fake mmap offset for an objecth]h'create a fake mmap offset for an object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMGhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMGubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jFhhhjPhNhNubj)}(hX**Parameters** ``struct drm_gem_object *obj`` obj in question ``size_t size`` the virtual size **Description** GEM memory mapping works by handing back to userspace a fake mmap offset it can use in a subsequent mmap(2) call. The DRM core code then looks up the object based on the offset and sets up the various memory mapping structures. This routine allocates and attaches a fake offset for **obj**, in cases where the virtual size differs from the physical size (ie. :c:type:`drm_gem_object.size `). Otherwise just use drm_gem_create_mmap_offset(). This function is idempotent and handles an already allocated mmap offset transparently. Drivers do not need to check for this case.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMKhj)ubj)}(hhh](j)}(h/``struct drm_gem_object *obj`` obj in question h](j)}(h``struct drm_gem_object *obj``h]j)}(hjNh]hstruct drm_gem_object *obj}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMHhjHubj)}(hhh]h)}(hobj in questionh]hobj in question}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMHhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMHhjEubj)}(h!``size_t size`` the virtual size h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMIhjubj)}(hhh]h)}(hthe virtual sizeh]hthe virtual size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]j)}(hj¶h]h Description}(hjĶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMKhj)ubh)}(hGEM memory mapping works by handing back to userspace a fake mmap offset it can use in a subsequent mmap(2) call. The DRM core code then looks up the object based on the offset and sets up the various memory mapping structures.h]hGEM memory mapping works by handing back to userspace a fake mmap offset it can use in a subsequent mmap(2) call. The DRM core code then looks up the object based on the offset and sets up the various memory mapping structures.}(hjضhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMJhj)ubh)}(hThis routine allocates and attaches a fake offset for **obj**, in cases where the virtual size differs from the physical size (ie. :c:type:`drm_gem_object.size `). Otherwise just use drm_gem_create_mmap_offset().h](h6This routine allocates and attaches a fake offset for }(hjhhhNhNubj)}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhF, in cases where the virtual size differs from the physical size (ie. }(hjhhhNhNubh)}(h.:c:type:`drm_gem_object.size `h]j)}(hjh]hdrm_gem_object.size}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMOhjubh3). Otherwise just use drm_gem_create_mmap_offset().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMOhj)ubh)}(hThis function is idempotent and handles an already allocated mmap offset transparently. Drivers do not need to check for this case.h]hThis function is idempotent and handles an already allocated mmap offset transparently. Drivers do not need to check for this case.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMShj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_gem_create_mmap_offset (C function)c.drm_gem_create_mmap_offsethNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h;int drm_gem_create_mmap_offset (struct drm_gem_object *obj)h]jR)}(h:int drm_gem_create_mmap_offset(struct drm_gem_object *obj)h](j)}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMbubjj)}(h h]h }(hjihhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVhhhjhhMbubj{)}(hdrm_gem_create_mmap_offseth]j)}(hdrm_gem_create_mmap_offseth]hdrm_gem_create_mmap_offset}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhjhhMbubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'j}sbc.drm_gem_create_mmap_offsetasbuh1hhjubjj)}(h h]h }(hjշhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjVhhhjhhMbubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjRhhhjhhMbubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jKhjhhMbhjOhhubj)}(hhh]h)}(h'create a fake mmap offset for an objecth]h'create a fake mmap offset for an object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMbhjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1jFhhhjPhNhNubj)}(hX**Parameters** ``struct drm_gem_object *obj`` obj in question **Description** GEM memory mapping works by handing back to userspace a fake mmap offset it can use in a subsequent mmap(2) call. The DRM core code then looks up the object based on the offset and sets up the various memory mapping structures. This routine allocates and attaches a fake offset for **obj**. Drivers can call drm_gem_free_mmap_offset() before freeing **obj** to release the fake offset again.h](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMfhj6ubj)}(hhh]j)}(h/``struct drm_gem_object *obj`` obj in question h](j)}(h``struct drm_gem_object *obj``h]j)}(hj[h]hstruct drm_gem_object *obj}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMchjUubj)}(hhh]h)}(hobj in questionh]hobj in question}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMchjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMchjRubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMehj6ubh)}(hGEM memory mapping works by handing back to userspace a fake mmap offset it can use in a subsequent mmap(2) call. The DRM core code then looks up the object based on the offset and sets up the various memory mapping structures.h]hGEM memory mapping works by handing back to userspace a fake mmap offset it can use in a subsequent mmap(2) call. The DRM core code then looks up the object based on the offset and sets up the various memory mapping structures.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMdhj6ubh)}(h>This routine allocates and attaches a fake offset for **obj**.h](h6This routine allocates and attaches a fake offset for }(hjhhhNhNubj)}(h**obj**h]hobj}(hjøhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMihj6ubh)}(hdDrivers can call drm_gem_free_mmap_offset() before freeing **obj** to release the fake offset again.h](h;Drivers can call drm_gem_free_mmap_offset() before freeing }(hjܸhhhNhNubj)}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܸubh" to release the fake offset again.}(hjܸhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMkhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_get_pages (C function)c.drm_gem_get_pageshNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h=struct page ** drm_gem_get_pages (struct drm_gem_object *obj)h]jR)}(h;struct page **drm_gem_get_pages(struct drm_gem_object *obj)h](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMubjj)}(h h]h }(hj+hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj*hMubh)}(hhh]j)}(hpageh]hpage}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj>modnameN classnameNj+j.)}j1]j4)}j'drm_gem_get_pagessbc.drm_gem_get_pagesasbuh1hhjhhhj*hMubjj)}(h h]h }(hj]hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj*hMubjH)}(hjKh]h*}(hjkhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhj*hMubjH)}(hjKh]h*}(hjxhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhj*hMubj{)}(hdrm_gem_get_pagesh]j)}(hjZh]hdrm_gem_get_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj*hMubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj¹hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjĹmodnameN classnameNj+j.)}j1]jXc.drm_gem_get_pagesasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj*hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj*hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj*hMhjhhubj)}(hhh]h)}(hhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_gem_object_lookup (C function)c.drm_gem_object_lookuphNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hQstruct drm_gem_object * drm_gem_object_lookup (struct drm_file *filp, u32 handle)h]jR)}(hOstruct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle)h](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMhubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_object_lookupsbc.drm_gem_object_lookupasbuh1hhjhhhjhMhubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMhubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhMhubj{)}(hdrm_gem_object_lookuph]j)}(hjh]hdrm_gem_object_lookup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMhubj)}(h#(struct drm_file *filp, u32 handle)h](j)}(hstruct drm_file *filph](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj=modnameN classnameNj+j.)}j1]jc.drm_gem_object_lookupasbuh1hhjubjj)}(h h]h }(hjYhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjghhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hfilph]hfilp}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_object_lookupasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMhubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMhubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhhjhhubj)}(hhh]h)}(h$look up a GEM object from its handleh]h$look up a GEM object from its handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMhubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(hX**Parameters** ``struct drm_file *filp`` DRM file private date ``u32 handle`` userspace handle **Description** If looking up an array of handles, use drm_gem_objects_lookup(). **Return** A reference to the object named by the handle if such exists on **filp**, NULL otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMlhjubj)}(hhh](j)}(h0``struct drm_file *filp`` DRM file private date h](j)}(h``struct drm_file *filp``h]j)}(hj'h]hstruct drm_file *filp}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMihj!ubj)}(hhh]h)}(hDRM file private dateh]hDRM file private date}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMihj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMihjubj)}(h ``u32 handle`` userspace handle h](j)}(h``u32 handle``h]j)}(hj`h]h u32 handle}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMjhjZubj)}(hhh]h)}(huserspace handleh]huserspace handle}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMjhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMjhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMlhjubh)}(h@If looking up an array of handles, use drm_gem_objects_lookup().h]h@If looking up an array of handles, use drm_gem_objects_lookup().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMkhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMmhjubh)}(hYA reference to the object named by the handle if such exists on **filp**, NULL otherwise.h](h@A reference to the object named by the handle if such exists on }(hjhhhNhNubj)}(h**filp**h]hfilp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, NULL otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMnhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_gem_dma_resv_wait (C function)c.drm_gem_dma_resv_waithNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(helong drm_gem_dma_resv_wait (struct drm_file *filep, u32 handle, bool wait_all, unsigned long timeout)h]jR)}(hdlong drm_gem_dma_resv_wait(struct drm_file *filep, u32 handle, bool wait_all, unsigned long timeout)h](j)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM}ubjj)}(h h]h }(hj(hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj'hM}ubj{)}(hdrm_gem_dma_resv_waith]j)}(hdrm_gem_dma_resv_waith]hdrm_gem_dma_resv_wait}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj'hM}ubj)}(hJ(struct drm_file *filep, u32 handle, bool wait_all, unsigned long timeout)h](j)}(hstruct drm_file *fileph](jX)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjRubjj)}(h h]h }(hjchhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjvmodnameN classnameNj+j.)}j1]j4)}j'j<sbc.drm_gem_dma_resv_waitasbuh1hhjRubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjRubj)}(hfileph]hfilep}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_dma_resv_waitasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(h bool wait_allh](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubj)}(hwait_allh]hwait_all}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hunsigned long timeouth](j)}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@ubj)}(hlongh]hlong}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@ubj)}(htimeouth]htimeout}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj'hM}ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj'hM}ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj'hM}hjhhubj)}(hhh]h)}(hJWait on GEM object's reservation's objects shared and/or exclusive fences.h]hNWait on GEM object’s reservation’s objects shared and/or exclusive fences.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM}hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(hXv**Parameters** ``struct drm_file *filep`` DRM file private date ``u32 handle`` userspace handle ``bool wait_all`` if true, wait on all fences, else wait on just exclusive fence ``unsigned long timeout`` timeout value in jiffies or zero to return immediately **Return** Returns -ERESTARTSYS if interrupted, 0 if the wait timed out, or greater than 0 on success.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh](j)}(h1``struct drm_file *filep`` DRM file private date h](j)}(h``struct drm_file *filep``h]j)}(hjh]hstruct drm_file *filep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]h)}(hDRM file private dateh]hDRM file private date}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``u32 handle`` userspace handle h](j)}(h``u32 handle``h]j)}(hj h]h u32 handle}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]h)}(huserspace handleh]huserspace handle}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(hQ``bool wait_all`` if true, wait on all fences, else wait on just exclusive fence h](j)}(h``bool wait_all``h]j)}(hjYh]h bool wait_all}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjSubj)}(hhh]h)}(h>if true, wait on all fences, else wait on just exclusive fenceh]h>if true, wait on all fences, else wait on just exclusive fence}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubj)}(hQ``unsigned long timeout`` timeout value in jiffies or zero to return immediately h](j)}(h``unsigned long timeout``h]j)}(hjh]hunsigned long timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]h)}(h6timeout value in jiffies or zero to return immediatelyh]h6timeout value in jiffies or zero to return immediately}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubh)}(h[Returns -ERESTARTSYS if interrupted, 0 if the wait timed out, or greater than 0 on success.h]h[Returns -ERESTARTSYS if interrupted, 0 if the wait timed out, or greater than 0 on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_gem_object_release (C function)c.drm_gem_object_releasehNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h8void drm_gem_object_release (struct drm_gem_object *obj)h]jR)}(h7void drm_gem_object_release(struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMoubjj)}(h h]h }(hj!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hMoubj{)}(hdrm_gem_object_releaseh]j)}(hdrm_gem_object_releaseh]hdrm_gem_object_release}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMoubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjKubjj)}(h h]h }(hj\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjKubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjomodnameN classnameNj+j.)}j1]j4)}j'j5sbc.drm_gem_object_releaseasbuh1hhjKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjKubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjKubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMoubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj hMoubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hMohjhhubj)}(hhh]h)}(h#release GEM buffer object resourcesh]h#release GEM buffer object resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMohjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMoubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(h**Parameters** ``struct drm_gem_object *obj`` GEM buffer object **Description** This releases any structures and resources used by **obj** and is the inverse of drm_gem_object_init().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMshjubj)}(hhh]j)}(h1``struct drm_gem_object *obj`` GEM buffer object h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMphj ubj)}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMphj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMphj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMrhjubh)}(hgThis releases any structures and resources used by **obj** and is the inverse of drm_gem_object_init().h](h3This releases any structures and resources used by }(hjdhhhNhNubj)}(h**obj**h]hobj}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh- and is the inverse of drm_gem_object_init().}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMqhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gem_object_free (C function)c.drm_gem_object_freehNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h,void drm_gem_object_free (struct kref *kref)h]jR)}(h+void drm_gem_object_free(struct kref *kref)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gem_object_freeh]j)}(hdrm_gem_object_freeh]hdrm_gem_object_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct kref *kref)h]j)}(hstruct kref *krefh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_object_freeasbuh1hhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj.hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hkrefh]hkref}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hfree a GEM objecth]hfree a GEM object}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1jFhhhjPhNhNubj)}(h**Parameters** ``struct kref *kref`` kref of the object to free **Description** Called after the last reference to the object has been lost. Frees the objecth](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]j)}(h1``struct kref *kref`` kref of the object to free h](j)}(h``struct kref *kref``h]j)}(hjh]hstruct kref *kref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]h)}(hkref of the object to freeh]hkref of the object to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hops->open implementation for GEMh]h%vma->ops->open implementation for GEM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jFhhhjPhNhNubj)}(h**Parameters** ``struct vm_area_struct *vma`` VM area structure **Description** This function implements the #vm_operations_struct open() callback for GEM drivers. This must be used together with drm_gem_vm_close().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]j)}(h1``struct vm_area_struct *vma`` VM area structure h](j)}(h``struct vm_area_struct *vma``h]j)}(hj6h]hstruct vm_area_struct *vma}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj0ubj)}(hhh]h)}(hVM area structureh]hVM area structure}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjqh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hThis function implements the #vm_operations_struct open() callback for GEM drivers. This must be used together with drm_gem_vm_close().h]hThis function implements the #vm_operations_struct open() callback for GEM drivers. This must be used together with drm_gem_vm_close().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_vm_close (C function)c.drm_gem_vm_closehNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h2void drm_gem_vm_close (struct vm_area_struct *vma)h]jR)}(h1void drm_gem_vm_close(struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gem_vm_closeh]j)}(hdrm_gem_vm_closeh]hdrm_gem_vm_close}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct vm_area_struct *vma)h]j)}(hstruct vm_area_struct *vmah](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_vm_closeasbuh1hhjubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj?hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvmah]hvma}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h&vma->ops->close implementation for GEMh]h&vma->ops->close implementation for GEM}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjshhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(h**Parameters** ``struct vm_area_struct *vma`` VM area structure **Description** This function implements the #vm_operations_struct close() callback for GEM drivers. This must be used together with drm_gem_vm_open().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]j)}(h1``struct vm_area_struct *vma`` VM area structure h](j)}(h``struct vm_area_struct *vma``h]j)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]h)}(hVM area structureh]hVM area structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hThis function implements the #vm_operations_struct close() callback for GEM drivers. This must be used together with drm_gem_vm_open().h]hThis function implements the #vm_operations_struct close() callback for GEM drivers. This must be used together with drm_gem_vm_open().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_mmap_obj (C function)c.drm_gem_mmap_objhNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(heint drm_gem_mmap_obj (struct drm_gem_object *obj, unsigned long obj_size, struct vm_area_struct *vma)h]jR)}(hdint drm_gem_mmap_obj(struct drm_gem_object *obj, unsigned long obj_size, struct vm_area_struct *vma)h](j)}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMubjj)}(h h]h }(hjFhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3hhhjEhMubj{)}(hdrm_gem_mmap_objh]j)}(hdrm_gem_mmap_objh]hdrm_gem_mmap_obj}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj3hhhjEhMubj)}(hP(struct drm_gem_object *obj, unsigned long obj_size, struct vm_area_struct *vma)h](j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjpubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jZsbc.drm_gem_mmap_objasbuh1hhjpubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjpubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hunsigned long obj_sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hobj_sizeh]hobj_size}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hstruct vm_area_struct *vmah](jX)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj3ubjj)}(h h]h }(hjDhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjWmodnameN classnameNj+j.)}j1]jc.drm_gem_mmap_objasbuh1hhj3ubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj3ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhjEhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj/hhhjEhMubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1jKhjEhMhj,hhubj)}(hhh]h)}(hmemory map a GEM objecth]hmemory map a GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(hX**Parameters** ``struct drm_gem_object *obj`` the GEM object to map ``unsigned long obj_size`` the object size to be mapped, in bytes ``struct vm_area_struct *vma`` VMA for the area to be mapped **Description** Set up the VMA to prepare mapping of the GEM object using the GEM object's vm_ops. Depending on their requirements, GEM objects can either provide a fault handler in their vm_ops (in which case any accesses to the object will be trapped, to perform migration, GTT binding, surface register allocation, or performance monitoring), or mmap the buffer memory synchronously after calling drm_gem_mmap_obj. This function is mainly intended to implement the DMABUF mmap operation, when the GEM object is not looked up based on its fake offset. To implement the DRM mmap operation, drivers should use the drm_gem_mmap() function. drm_gem_mmap_obj() assumes the user is granted access to the buffer while drm_gem_mmap() prevents unprivileged users from mapping random objects. So callers must verify access restrictions before calling this helper. Return 0 or success or -EINVAL if the object size is smaller than the VMA size, or if no vm_ops are provided.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh](j)}(h5``struct drm_gem_object *obj`` the GEM object to map h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]h)}(hthe GEM object to maph]hthe GEM object to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``unsigned long obj_size`` the object size to be mapped, in bytes h](j)}(h``unsigned long obj_size``h]j)}(hj2h]hunsigned long obj_size}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj,ubj)}(hhh]h)}(h&the object size to be mapped, in bytesh]h&the object size to be mapped, in bytes}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjubj)}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](j)}(h``struct vm_area_struct *vma``h]j)}(hjkh]hstruct vm_area_struct *vma}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjeubj)}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hXSet up the VMA to prepare mapping of the GEM object using the GEM object's vm_ops. Depending on their requirements, GEM objects can either provide a fault handler in their vm_ops (in which case any accesses to the object will be trapped, to perform migration, GTT binding, surface register allocation, or performance monitoring), or mmap the buffer memory synchronously after calling drm_gem_mmap_obj.h]hXSet up the VMA to prepare mapping of the GEM object using the GEM object’s vm_ops. Depending on their requirements, GEM objects can either provide a fault handler in their vm_ops (in which case any accesses to the object will be trapped, to perform migration, GTT binding, surface register allocation, or performance monitoring), or mmap the buffer memory synchronously after calling drm_gem_mmap_obj.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hThis function is mainly intended to implement the DMABUF mmap operation, when the GEM object is not looked up based on its fake offset. To implement the DRM mmap operation, drivers should use the drm_gem_mmap() function.h]hThis function is mainly intended to implement the DMABUF mmap operation, when the GEM object is not looked up based on its fake offset. To implement the DRM mmap operation, drivers should use the drm_gem_mmap() function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hdrm_gem_mmap_obj() assumes the user is granted access to the buffer while drm_gem_mmap() prevents unprivileged users from mapping random objects. So callers must verify access restrictions before calling this helper.h]hdrm_gem_mmap_obj() assumes the user is granted access to the buffer while drm_gem_mmap() prevents unprivileged users from mapping random objects. So callers must verify access restrictions before calling this helper.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hmReturn 0 or success or -EINVAL if the object size is smaller than the VMA size, or if no vm_ops are provided.h]hmReturn 0 or success or -EINVAL if the object size is smaller than the VMA size, or if no vm_ops are provided.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_gem_get_unmapped_area (C function)c.drm_gem_get_unmapped_areahNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hunsigned long drm_gem_get_unmapped_area (struct file *filp, unsigned long uaddr, unsigned long len, unsigned long pgoff, unsigned long flags)h]jR)}(hunsigned long drm_gem_get_unmapped_area(struct file *filp, unsigned long uaddr, unsigned long len, unsigned long pgoff, unsigned long flags)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM,ubjj)}(h h]h }(hj'hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj&hM,ubj)}(hlongh]hlong}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj&hM,ubjj)}(h h]h }(hjChhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj&hM,ubj{)}(hdrm_gem_get_unmapped_areah]j)}(hdrm_gem_get_unmapped_areah]hdrm_gem_get_unmapped_area}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj&hM,ubj)}(he(struct file *filp, unsigned long uaddr, unsigned long len, unsigned long pgoff, unsigned long flags)h](j)}(hstruct file *filph](jX)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjmubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jWsbc.drm_gem_get_unmapped_areaasbuh1hhjmubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjmubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hunsigned long uaddrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(huaddrh]huaddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjj)}(h h]h }(hjBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0ubj)}(hlongh]hlong}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjj)}(h h]h }(hj^hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0ubj)}(hlenh]hlen}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hpgoffh]hpgoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj&hM,ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj&hM,ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj&hM,hj hhubj)}(hhh]h)}(h1get memory mapping region routine for GEM objectsh]h1get memory mapping region routine for GEM objects}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM,hj5hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1jFhhhjPhNhNubj)}(hX**Parameters** ``struct file *filp`` DRM file pointer ``unsigned long uaddr`` User address hint ``unsigned long len`` Mapping length ``unsigned long pgoff`` Offset (in pages) ``unsigned long flags`` Mapping flags **Description** If a driver supports GEM object mapping, before ending up in drm_gem_mmap(), mmap calls on the DRM file descriptor will first try to find a free linear address space large enough for a mapping. Since GEM objects are backed by shmem buffers, this should preferably be handled by the shmem virtual memory filesystem which can appropriately align addresses to huge page sizes when needed. Look up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created) and call shmem_get_unmapped_area() with the right file pointer. If a GEM object is not available at the given offset or if the caller is not granted access to it, fall back to mm_get_unmapped_area().h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM0hjTubj)}(hhh](j)}(h'``struct file *filp`` DRM file pointer h](j)}(h``struct file *filp``h]j)}(hjyh]hstruct file *filp}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM-hjsubj)}(hhh]h)}(hDRM file pointerh]hDRM file pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjpubj)}(h*``unsigned long uaddr`` User address hint h](j)}(h``unsigned long uaddr``h]j)}(hjh]hunsigned long uaddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM.hjubj)}(hhh]h)}(hUser address hinth]hUser address hint}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjpubj)}(h%``unsigned long len`` Mapping length h](j)}(h``unsigned long len``h]j)}(hjh]hunsigned long len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM/hjubj)}(hhh]h)}(hMapping lengthh]hMapping length}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjpubj)}(h*``unsigned long pgoff`` Offset (in pages) h](j)}(h``unsigned long pgoff``h]j)}(hj$h]hunsigned long pgoff}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM0hjubj)}(hhh]h)}(hOffset (in pages)h]hOffset (in pages)}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hM0hj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hM0hjpubj)}(h&``unsigned long flags`` Mapping flags h](j)}(h``unsigned long flags``h]j)}(hj]h]hunsigned long flags}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM1hjWubj)}(hhh]h)}(h Mapping flagsh]h Mapping flags}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhM1hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM1hjpubeh}(h]h ]h"]h$]h&]uh1jhjTubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM3hjTubh)}(hXIf a driver supports GEM object mapping, before ending up in drm_gem_mmap(), mmap calls on the DRM file descriptor will first try to find a free linear address space large enough for a mapping. Since GEM objects are backed by shmem buffers, this should preferably be handled by the shmem virtual memory filesystem which can appropriately align addresses to huge page sizes when needed.h]hXIf a driver supports GEM object mapping, before ending up in drm_gem_mmap(), mmap calls on the DRM file descriptor will first try to find a free linear address space large enough for a mapping. Since GEM objects are backed by shmem buffers, this should preferably be handled by the shmem virtual memory filesystem which can appropriately align addresses to huge page sizes when needed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM2hjTubh)}(hLook up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created) and call shmem_get_unmapped_area() with the right file pointer.h]hLook up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created) and call shmem_get_unmapped_area() with the right file pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM9hjTubh)}(hIf a GEM object is not available at the given offset or if the caller is not granted access to it, fall back to mm_get_unmapped_area().h]hIf a GEM object is not available at the given offset or if the caller is not granted access to it, fall back to mm_get_unmapped_area().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM=hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_mmap (C function)c.drm_gem_mmaphNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h@int drm_gem_mmap (struct file *filp, struct vm_area_struct *vma)h]jR)}(h?int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMYubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hMYubj{)}(h drm_gem_mmaph]j)}(h drm_gem_mmaph]h drm_gem_mmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMYubj)}(h/(struct file *filp, struct vm_area_struct *vma)h](j)}(hstruct file *filph](jX)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj4ubjj)}(h h]h }(hjEhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4ubh)}(hhh]j)}(hfileh]hfile}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjXmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_mmapasbuh1hhj4ubjj)}(h h]h }(hjvhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj4ubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hstruct vm_area_struct *vmah](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jrc.drm_gem_mmapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMYubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj hMYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hMYhjhhubj)}(hhh]h)}(h"memory map routine for GEM objectsh]h"memory map routine for GEM objects}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMYhj(hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1jFhhhjPhNhNubj)}(hX**Parameters** ``struct file *filp`` DRM file pointer ``struct vm_area_struct *vma`` VMA for the area to be mapped **Description** If a driver supports GEM object mapping, mmap calls on the DRM file descriptor will end up here. Look up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created) and map it with a call to drm_gem_mmap_obj(). If the caller is not granted access to the buffer object, the mmap will fail with EACCES. Please see the vma manager for more information.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM]hjGubj)}(hhh](j)}(h'``struct file *filp`` DRM file pointer h](j)}(h``struct file *filp``h]j)}(hjlh]hstruct file *filp}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMZhjfubj)}(hhh]h)}(hDRM file pointerh]hDRM file pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjcubj)}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](j)}(h``struct vm_area_struct *vma``h]j)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNuba0h}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM[hjubj)}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjcubeh}(h]h ]h"]h$]h&]uh1jhjGubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM]hjGubh)}(h`If a driver supports GEM object mapping, mmap calls on the DRM file descriptor will end up here.h]h`If a driver supports GEM object mapping, mmap calls on the DRM file descriptor will end up here.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM\hjGubh)}(hLook up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created) and map it with a call to drm_gem_mmap_obj().h]hLook up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created) and map it with a call to drm_gem_mmap_obj().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM_hjGubh)}(hIf the caller is not granted access to the buffer object, the mmap will fail with EACCES. Please see the vma manager for more information.h]hIf the caller is not granted access to the buffer object, the mmap will fail with EACCES. Please see the vma manager for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMchjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_gem_lock_reservations (C function)c.drm_gem_lock_reservationshNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hkint drm_gem_lock_reservations (struct drm_gem_object **objs, int count, struct ww_acquire_ctx *acquire_ctx)h]jR)}(hjint drm_gem_lock_reservations(struct drm_gem_object **objs, int count, struct ww_acquire_ctx *acquire_ctx)h](j)}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?hhhjQhMubj{)}(hdrm_gem_lock_reservationsh]j)}(hdrm_gem_lock_reservationsh]hdrm_gem_lock_reservations}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?hhhjQhMubj)}(hM(struct drm_gem_object **objs, int count, struct ww_acquire_ctx *acquire_ctx)h](j)}(hstruct drm_gem_object **objsh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj|ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj|ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jfsbc.drm_gem_lock_reservationsasbuh1hhj|ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj|ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj|ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj|ubj)}(hobjsh]hobjs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(h int counth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(h"struct ww_acquire_ctx *acquire_ctxh](jX)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj0ubjj)}(h h]h }(hjAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0ubh)}(hhh]j)}(hww_acquire_ctxh]hww_acquire_ctx}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjTmodnameN classnameNj+j.)}j1]jc.drm_gem_lock_reservationsasbuh1hhj0ubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0ubjH)}(hjKh]h*}(hj~hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj0ubj)}(h acquire_ctxh]h acquire_ctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhjQhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj;hhhjQhMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1jKhjQhMhj8hhubj)}(hhh]h)}(hHSets up the ww context and acquires the lock on an array of GEM objects.h]hHSets up the ww context and acquires the lock on an array of GEM objects.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(hX**Parameters** ``struct drm_gem_object **objs`` drm_gem_objects to lock ``int count`` Number of objects in **objs** ``struct ww_acquire_ctx *acquire_ctx`` struct ww_acquire_ctx that will be initialized as part of tracking this set of locked reservations. **Description** Once you've locked your reservations, you'll want to set up space for your shared fences (if applicable), submit your job, then drm_gem_unlock_reservations().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh](j)}(h9``struct drm_gem_object **objs`` drm_gem_objects to lock h](j)}(h ``struct drm_gem_object **objs``h]j)}(hjh]hstruct drm_gem_object **objs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]h)}(hdrm_gem_objects to lockh]hdrm_gem_objects to lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h,``int count`` Number of objects in **objs** h](j)}(h ``int count``h]j)}(hj/h]h int count}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj)ubj)}(hhh]h)}(hNumber of objects in **objs**h](hNumber of objects in }(hjHhhhNhNubj)}(h**objs**h]hobjs}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj)}(h``struct ww_acquire_ctx *acquire_ctx`` struct ww_acquire_ctx that will be initialized as part of tracking this set of locked reservations. h](j)}(h&``struct ww_acquire_ctx *acquire_ctx``h]j)}(hjvh]h"struct ww_acquire_ctx *acquire_ctx}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjpubj)}(hhh]h)}(hcstruct ww_acquire_ctx that will be initialized as part of tracking this set of locked reservations.h]hcstruct ww_acquire_ctx that will be initialized as part of tracking this set of locked reservations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hOnce you've locked your reservations, you'll want to set up space for your shared fences (if applicable), submit your job, then drm_gem_unlock_reservations().h]hOnce you’ve locked your reservations, you’ll want to set up space for your shared fences (if applicable), submit your job, then drm_gem_unlock_reservations().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_lru_init (C function)c.drm_gem_lru_inithNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hCvoid drm_gem_lru_init (struct drm_gem_lru *lru, struct mutex *lock)h]jR)}(hBvoid drm_gem_lru_init(struct drm_gem_lru *lru, struct mutex *lock)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gem_lru_inith]j)}(hdrm_gem_lru_inith]hdrm_gem_lru_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h-(struct drm_gem_lru *lru, struct mutex *lock)h](j)}(hstruct drm_gem_lru *lruh](jX)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj0ubjj)}(h h]h }(hjAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0ubh)}(hhh]j)}(h drm_gem_lruh]h drm_gem_lru}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjTmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_lru_initasbuh1hhj0ubjj)}(h h]h }(hjrhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj0ubj)}(hlruh]hlru}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hstruct mutex *lockh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hmutexh]hmutex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jnc.drm_gem_lru_initasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hlockh]hlock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hinitialize a LRUh]hinitialize a LRU}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1jFhhhjPhNhNubj)}(hy**Parameters** ``struct drm_gem_lru *lru`` The LRU to initialize ``struct mutex *lock`` The lock protecting the LRUh](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM hjCubj)}(hhh](j)}(h2``struct drm_gem_lru *lru`` The LRU to initialize h](j)}(h``struct drm_gem_lru *lru``h]j)}(hjhh]hstruct drm_gem_lru *lru}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjbubj)}(hhh]h)}(hThe LRU to initializeh]hThe LRU to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj_ubj)}(h2``struct mutex *lock`` The lock protecting the LRUh](j)}(h``struct mutex *lock``h]j)}(hjh]hstruct mutex *lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM hjubj)}(hhh]h)}(hThe lock protecting the LRUh]hThe lock protecting the LRU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj_ubeh}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_lru_remove (C function)c.drm_gem_lru_removehNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h4void drm_gem_lru_remove (struct drm_gem_object *obj)h]jR)}(h3void drm_gem_lru_remove(struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM4ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hM4ubj{)}(hdrm_gem_lru_removeh]j)}(hdrm_gem_lru_removeh]hdrm_gem_lru_remove}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hM4ubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj4ubjj)}(h h]h }(hjEhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjXmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_lru_removeasbuh1hhj4ubjj)}(h h]h }(hjvhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj4ubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hM4ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj hM4ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hM4hjhhubj)}(hhh]h)}(h(remove object from whatever LRU it is inh]h(remove object from whatever LRU it is in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM4hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(h**Parameters** ``struct drm_gem_object *obj`` The GEM object to remove from current LRU **Description** If the object is currently in any LRU, remove it.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM8hjubj)}(hhh]j)}(hI``struct drm_gem_object *obj`` The GEM object to remove from current LRU h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM8hjubj)}(hhh]h)}(h)The GEM object to remove from current LRUh]h)The GEM object to remove from current LRU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM:hjubh)}(h1If the object is currently in any LRU, remove it.h]h1If the object is currently in any LRU, remove it.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM5hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)drm_gem_lru_move_tail_locked (C function)c.drm_gem_lru_move_tail_lockedhNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hWvoid drm_gem_lru_move_tail_locked (struct drm_gem_lru *lru, struct drm_gem_object *obj)h]jR)}(hVvoid drm_gem_lru_move_tail_locked(struct drm_gem_lru *lru, struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMIubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjxhhhjhMIubj{)}(hdrm_gem_lru_move_tail_lockedh]j)}(hdrm_gem_lru_move_tail_lockedh]hdrm_gem_lru_move_tail_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhjhMIubj)}(h5(struct drm_gem_lru *lru, struct drm_gem_object *obj)h](j)}(hstruct drm_gem_lru *lruh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gem_lruh]h drm_gem_lru}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_lru_move_tail_lockedasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hlruh]hlru}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj'ubjj)}(h h]h }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj'ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjKmodnameN classnameNj+j.)}j1]jc.drm_gem_lru_move_tail_lockedasbuh1hhj'ubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj'ubjH)}(hjKh]h*}(hjuhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj'ubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhMIubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjthhhjhMIubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1jKhjhMIhjqhhubj)}(hhh]h)}(h&move the object to the tail of the LRUh]h&move the object to the tail of the LRU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMIhjhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(h**Parameters** ``struct drm_gem_lru *lru`` The LRU to move the object into. ``struct drm_gem_object *obj`` The GEM object to move into this LRU **Description** Like :c:type:`drm_gem_lru_move_tail` but lru lock must be heldh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMMhjubj)}(hhh](j)}(h=``struct drm_gem_lru *lru`` The LRU to move the object into. h](j)}(h``struct drm_gem_lru *lru``h]j)}(hjh]hstruct drm_gem_lru *lru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMMhjubj)}(hhh]h)}(h The LRU to move the object into.h]h The LRU to move the object into.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubj)}(hD``struct drm_gem_object *obj`` The GEM object to move into this LRU h](j)}(h``struct drm_gem_object *obj``h]j)}(hj&h]hstruct drm_gem_object *obj}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMNhj ubj)}(hhh]h)}(h$The GEM object to move into this LRUh]h$The GEM object to move into this LRU}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMNhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMNhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMPhjubh)}(h>Like :c:type:`drm_gem_lru_move_tail` but lru lock must be heldh](hLike }(hjwhhhNhNubh)}(h:c:type:`drm_gem_lru_move_tail`h]j)}(hjh]hdrm_gem_lru_move_tail}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_lru_move_tailuh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMJhjwubh but lru lock must be held}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_gem_lru_move_tail (C function)c.drm_gem_lru_move_tailhNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hPvoid drm_gem_lru_move_tail (struct drm_gem_lru *lru, struct drm_gem_object *obj)h]jR)}(hOvoid drm_gem_lru_move_tail(struct drm_gem_lru *lru, struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM_ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM_ubj{)}(hdrm_gem_lru_move_tailh]j)}(hdrm_gem_lru_move_tailh]hdrm_gem_lru_move_tail}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM_ubj)}(h5(struct drm_gem_lru *lru, struct drm_gem_object *obj)h](j)}(hstruct drm_gem_lru *lruh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gem_lruh]h drm_gem_lru}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj&modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_lru_move_tailasbuh1hhjubjj)}(h h]h }(hjDhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjRhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hlruh]hlru}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjtubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjtubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j@c.drm_gem_lru_move_tailasbuh1hhjtubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjtubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjtubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM_ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhM_ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM_hjhhubj)}(hhh]h)}(h&move the object to the tail of the LRUh]h&move the object to the tail of the LRU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM_hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(hXL**Parameters** ``struct drm_gem_lru *lru`` The LRU to move the object into. ``struct drm_gem_object *obj`` The GEM object to move into this LRU **Description** If the object is already in this LRU it will be moved to the tail. Otherwise it will be removed from whichever other LRU it is in (if any) and moved into this LRU.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMchjubj)}(hhh](j)}(h=``struct drm_gem_lru *lru`` The LRU to move the object into. h](j)}(h``struct drm_gem_lru *lru``h]j)}(hj:h]hstruct drm_gem_lru *lru}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMehj4ubj)}(hhh]h)}(h The LRU to move the object into.h]h The LRU to move the object into.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMehjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMehj1ubj)}(hD``struct drm_gem_object *obj`` The GEM object to move into this LRU h](j)}(h``struct drm_gem_object *obj``h]j)}(hjsh]hstruct drm_gem_object *obj}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMfhjmubj)}(hhh]h)}(h$The GEM object to move into this LRUh]h$The GEM object to move into this LRU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMfhj1ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhhjubh)}(hIf the object is already in this LRU it will be moved to the tail. Otherwise it will be removed from whichever other LRU it is in (if any) and moved into this LRU.h]hIf the object is already in this LRU it will be moved to the tail. Otherwise it will be removed from whichever other LRU it is in (if any) and moved into this LRU.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM`hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_lru_scan (C function)c.drm_gem_lru_scanhNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hunsigned long drm_gem_lru_scan (struct drm_gem_lru *lru, unsigned int nr_to_scan, unsigned long *remaining, bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket), struct ww_acquire_ctx *ticket)h]jR)}(hunsigned long drm_gem_lru_scan(struct drm_gem_lru *lru, unsigned int nr_to_scan, unsigned long *remaining, bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket), struct ww_acquire_ctx *ticket)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMrubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMrubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMrubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMrubj{)}(hdrm_gem_lru_scanh]j)}(hdrm_gem_lru_scanh]hdrm_gem_lru_scan}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMrubj)}(h(struct drm_gem_lru *lru, unsigned int nr_to_scan, unsigned long *remaining, bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket), struct ww_acquire_ctx *ticket)h](j)}(hstruct drm_gem_lru *lruh](jX)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjHubjj)}(h h]h }(hjYhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHubh)}(hhh]j)}(h drm_gem_lruh]h drm_gem_lru}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjlmodnameN classnameNj+j.)}j1]j4)}j'j2sbc.drm_gem_lru_scanasbuh1hhjHubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjHubj)}(hlruh]hlru}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunsigned int nr_to_scanh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h nr_to_scanh]h nr_to_scan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunsigned long *remainingh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubj)}(hlongh]hlong}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjj)}(h h]h }(hj9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hjGhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(h remainingh]h remaining}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hIbool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)h](j)}(hj*h]hbool}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjj)}(h h]h }(hjzhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubjH)}(h(h]h(}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjiubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjiubj)}(hshrinkh]hshrink}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjH)}(h)h]h)}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjiubjH)}(hjh]h(}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjiubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjiubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_lru_scanasbuh1hhjiubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjiubj)}(hobjh]hobj}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjH)}(h,h]h,}(hj1hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjiubjj)}(h h]h }(hj?hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubjX)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjiubjj)}(h h]h }(hjZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubh)}(hhh]j)}(hww_acquire_ctxh]hww_acquire_ctx}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmmodnameN classnameNj+j.)}j1]jc.drm_gem_lru_scanasbuh1hhjiubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjiubj)}(hticketh]hticket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjH)}(hjh]h)}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hstruct ww_acquire_ctx *ticketh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hww_acquire_ctxh]hww_acquire_ctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_lru_scanasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hticketh]hticket}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMrubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMrubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMrhjhhubj)}(hhh]h)}(h)helper to implement shrinker.scan_objectsh]h)helper to implement shrinker.scan_objects}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMrhjHhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMrubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1jFhhhjPhNhNubj)}(hX**Parameters** ``struct drm_gem_lru *lru`` The LRU to scan ``unsigned int nr_to_scan`` The number of pages to try to reclaim ``unsigned long *remaining`` The number of pages left to reclaim, should be initialized by caller ``bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)`` Callback to try to shrink/reclaim the object. ``struct ww_acquire_ctx *ticket`` Optional ww_acquire_ctx context to use for locking **Description** If the shrink callback succeeds, it is expected that the driver move the object out of this LRU. If the LRU possibly contain active buffers, it is the responsibility of the shrink callback to check for this (ie. dma_resv_test_signaled()) or if necessary block until the buffer becomes idle.h](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMvhjgubj)}(hhh](j)}(h,``struct drm_gem_lru *lru`` The LRU to scan h](j)}(h``struct drm_gem_lru *lru``h]j)}(hjh]hstruct drm_gem_lru *lru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM{hjubj)}(hhh]h)}(hThe LRU to scanh]hThe LRU to scan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjubj)}(hB``unsigned int nr_to_scan`` The number of pages to try to reclaim h](j)}(h``unsigned int nr_to_scan``h]j)}(hjh]hunsigned int nr_to_scan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM|hjubj)}(hhh]h)}(h%The number of pages to try to reclaimh]h%The number of pages to try to reclaim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM|hjubj)}(hb``unsigned long *remaining`` The number of pages left to reclaim, should be initialized by caller h](j)}(h``unsigned long *remaining``h]j)}(hjh]hunsigned long *remaining}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM}hjubj)}(hhh]h)}(hDThe number of pages left to reclaim, should be initialized by callerh]hDThe number of pages left to reclaim, should be initialized by caller}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjubj)}(h|``bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)`` Callback to try to shrink/reclaim the object. h](j)}(hM``bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)``h]j)}(hj7h]hIbool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM~hj1ubj)}(hhh]h)}(h-Callback to try to shrink/reclaim the object.h]h-Callback to try to shrink/reclaim the object.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM~hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhM~hjubj)}(hU``struct ww_acquire_ctx *ticket`` Optional ww_acquire_ctx context to use for locking h](j)}(h!``struct ww_acquire_ctx *ticket``h]j)}(hjph]hstruct ww_acquire_ctx *ticket}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjjubj)}(hhh]h)}(h2Optional ww_acquire_ctx context to use for lockingh]h2Optional ww_acquire_ctx context to use for locking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjgubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjgubh)}(h`If the shrink callback succeeds, it is expected that the driver move the object out of this LRU.h]h`If the shrink callback succeeds, it is expected that the driver move the object out of this LRU.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMshjgubh)}(hIf the LRU possibly contain active buffers, it is the responsibility of the shrink callback to check for this (ie. dma_resv_test_signaled()) or if necessary block until the buffer becomes idle.h]hIf the LRU possibly contain active buffers, it is the responsibility of the shrink callback to check for this (ie. dma_resv_test_signaled()) or if necessary block until the buffer becomes idle.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMvhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!drm_gem_evict_locked (C function)c.drm_gem_evict_lockedhNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(h5int drm_gem_evict_locked (struct drm_gem_object *obj)h]jR)}(h4int drm_gem_evict_locked(struct drm_gem_object *obj)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hMubj{)}(hdrm_gem_evict_lockedh]j)}(hdrm_gem_evict_lockedh]hdrm_gem_evict_locked}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj8ubjj)}(h h]h }(hjIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj\modnameN classnameNj+j.)}j1]j4)}j'j"sbc.drm_gem_evict_lockedasbuh1hhj8ubjj)}(h h]h }(hjzhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj8ubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hMhjhhubj)}(hhh]h)}(h.helper to evict backing pages for a GEM objecth]h.helper to evict backing pages for a GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(h@**Parameters** ``struct drm_gem_object *obj`` obj in questionh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]j)}(h.``struct drm_gem_object *obj`` obj in questionh](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]h)}(hobj in questionh]hobj in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubeh}(h]gem-function-referenceah ]h"]gem function referenceah$]h&]uh1hhjzhhhhhMoubh)}(hhh](h)}(h"GEM DMA Helper Functions Referenceh]h"GEM DMA Helper Functions Reference}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhMxubh)}(hThe DRM GEM/DMA helpers are a means to provide buffer objects that are presented to the device as a contiguous chunk of memory. This is useful for devices that do not support scatter-gather DMA (either directly or by using an intimately attached IOMMU).h]hThe DRM GEM/DMA helpers are a means to provide buffer objects that are presented to the device as a contiguous chunk of memory. This is useful for devices that do not support scatter-gather DMA (either directly or by using an intimately attached IOMMU).}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:378: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjIhhubh)}(hXFor devices that access the memory bus through an (external) IOMMU then the buffer objects are allocated using a traditional page-based allocator and may be scattered through physical memory. However they are contiguous in the IOVA space so appear contiguous to devices using them.h]hXFor devices that access the memory bus through an (external) IOMMU then the buffer objects are allocated using a traditional page-based allocator and may be scattered through physical memory. However they are contiguous in the IOVA space so appear contiguous to devices using them.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:378: ./drivers/gpu/drm/drm_gem_dma_helper.chK"hjIhhubh)}(hrFor other devices then the helpers rely on CMA to provide buffer objects that are physically contiguous in memory.h]hrFor other devices then the helpers rely on CMA to provide buffer objects that are physically contiguous in memory.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:378: ./drivers/gpu/drm/drm_gem_dma_helper.chK(hjIhhubh)}(hFor GEM callback helpers in struct :c:type:`drm_gem_object` functions, see likewise named functions with an _object_ infix (e.g., drm_gem_dma_object_vmap() wraps drm_gem_dma_vmap()). These helpers perform the necessary type conversion.h](h#For GEM callback helpers in struct }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:378: ./drivers/gpu/drm/drm_gem_dma_helper.chK+hjubh functions, see likewise named functions with an _object_ infix (e.g., drm_gem_dma_object_vmap() wraps drm_gem_dma_vmap()). These helpers perform the necessary type conversion.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK+hjIhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_dma_object (C struct)c.drm_gem_dma_objecthNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hdrm_gem_dma_objecth]jR)}(hstruct drm_gem_dma_objecth](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(hdrm_gem_dma_objecth]j)}(hjh]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h)}(h+GEM object backed by DMA memory allocationsh]h+GEM object backed by DMA memory allocations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhK hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjj,jj,jjjuh1jFhhhjIhNhNubj)}(hXB**Definition**:: struct drm_gem_dma_object { struct drm_gem_object base; dma_addr_t dma_addr; struct sg_table *sgt; void *vaddr; bool map_noncoherent; }; **Members** ``base`` base GEM object ``dma_addr`` DMA address of the backing memory ``sgt`` scatter/gather table for imported PRIME buffers. The table can have more than one entry but they are guaranteed to have contiguous DMA addresses. ``vaddr`` kernel virtual address of the backing memory ``map_noncoherent`` if true, the GEM object is backed by non-coherent memoryh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh:}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj0ubjh)}(hstruct drm_gem_dma_object { struct drm_gem_object base; dma_addr_t dma_addr; struct sg_table *sgt; void *vaddr; bool map_noncoherent; };h]hstruct drm_gem_dma_object { struct drm_gem_object base; dma_addr_t dma_addr; struct sg_table *sgt; void *vaddr; bool map_noncoherent; };}hjQsbah}(h]h ]h"]h$]h&]jjuh1jgh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj0ubh)}(h **Members**h]j)}(hjbh]hMembers}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj0ubj)}(hhh](j)}(h``base`` base GEM object h](j)}(h``base``h]j)}(hjh]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj{ubj)}(hhh]h)}(hbase GEM objecth]hbase GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjxubj)}(h/``dma_addr`` DMA address of the backing memory h](j)}(h ``dma_addr``h]j)}(hjh]hdma_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubj)}(hhh]h)}(h!DMA address of the backing memoryh]h!DMA address of the backing memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjxubj)}(h``sgt`` scatter/gather table for imported PRIME buffers. The table can have more than one entry but they are guaranteed to have contiguous DMA addresses. h](j)}(h``sgt``h]j)}(hjh]hsgt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubj)}(hhh]h)}(hscatter/gather table for imported PRIME buffers. The table can have more than one entry but they are guaranteed to have contiguous DMA addresses.h]hscatter/gather table for imported PRIME buffers. The table can have more than one entry but they are guaranteed to have contiguous DMA addresses.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjxubj)}(h7``vaddr`` kernel virtual address of the backing memory h](j)}(h ``vaddr``h]j)}(hj-h]hvaddr}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj'ubj)}(hhh]h)}(h,kernel virtual address of the backing memoryh]h,kernel virtual address of the backing memory}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjxubj)}(hL``map_noncoherent`` if true, the GEM object is backed by non-coherent memoryh](j)}(h``map_noncoherent``h]j)}(hjfh]hmap_noncoherent}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj`ubj)}(hhh]h)}(h8if true, the GEM object is backed by non-coherent memoryh]h8if true, the GEM object is backed by non-coherent memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hKhjxubeh}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_gem_dma_object_free (C function)c.drm_gem_dma_object_freehNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(h9void drm_gem_dma_object_free (struct drm_gem_object *obj)h]jR)}(h8void drm_gem_dma_object_free(struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhK4ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhK4ubj{)}(hdrm_gem_dma_object_freeh]j)}(hdrm_gem_dma_object_freeh]hdrm_gem_dma_object_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK4ubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_dma_object_freeasbuh1hhjubjj)}(h h]h }(hj;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjIhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK4ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhK4ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhK4hjhhubj)}(hhh]h)}(h*GEM object function for drm_gem_dma_free()h]h*GEM object function for drm_gem_dma_free()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhK4hj}hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjIhNhNubj)}(hX**Parameters** ``struct drm_gem_object *obj`` GEM object to free **Description** This function wraps drm_gem_dma_free_object(). Drivers that employ the DMA helpers should use it as their :c:type:`drm_gem_object_funcs.free ` handler.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhK8hjubj)}(hhh]j)}(h2``struct drm_gem_object *obj`` GEM object to free h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhK5hjubj)}(hhh]h)}(hGEM object to freeh]hGEM object to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhK7hjubh)}(hThis function wraps drm_gem_dma_free_object(). Drivers that employ the DMA helpers should use it as their :c:type:`drm_gem_object_funcs.free ` handler.h](hjThis function wraps drm_gem_dma_free_object(). Drivers that employ the DMA helpers should use it as their }(hjhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j)}(hjh]hdrm_gem_object_funcs.free}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhK6hjubh handler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hK6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_gem_dma_object_print_info (C function)c.drm_gem_dma_object_print_infohNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hqvoid drm_gem_dma_object_print_info (struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h]jR)}(hpvoid drm_gem_dma_object_print_info(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKBubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj`hhhjrhKBubj{)}(hdrm_gem_dma_object_print_infoh]j)}(hdrm_gem_dma_object_print_infoh]hdrm_gem_dma_object_print_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj`hhhjrhKBubj)}(hN(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h](j)}(hstruct drm_printer *ph](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_dma_object_print_infoasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjTh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int indenth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj<hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hindenth]hindent}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const struct drm_gem_object *objh](jX)}(hj h]hconst}(hjchhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_ubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubjX)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_dma_object_print_infoasbuh1hhj_ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj_ubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj`hhhjrhKBubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj\hhhjrhKBubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jKhjrhKBhjYhhubj)}(hhh]h)}(h3Print :c:type:`drm_gem_dma_object` info for debugfsh](hPrint }(hjhhhNhNubh)}(h:c:type:`drm_gem_dma_object`h]j)}(hj h]hdrm_gem_dma_object}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gem_dma_object_print_infoasbjadrm_gem_dma_objectuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubh info for debugfs}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKBhjhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjrhKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1jFhhhjIhNhNubj)}(hXk**Parameters** ``struct drm_printer *p`` DRM printer ``unsigned int indent`` Tab indentation level ``const struct drm_gem_object *obj`` GEM object **Description** This function wraps drm_gem_dma_print_info(). Drivers that employ the DMA helpers should use this function as their :c:type:`drm_gem_object_funcs.print_info ` handler.h](h)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKFhjDubj)}(hhh](j)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hjih]hstruct drm_printer *p}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKChjcubj)}(hhh]h)}(h DRM printerh]h DRM printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKChjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKChj`ubj)}(h.``unsigned int indent`` Tab indentation level h](j)}(h``unsigned int indent``h]j)}(hjh]hunsigned int indent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKDhjubj)}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKDhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKDhj`ubj)}(h0``const struct drm_gem_object *obj`` GEM object h](j)}(h$``const struct drm_gem_object *obj``h]j)}(hjh]h const struct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKEhjubj)}(hhh]h)}(h GEM objecth]h GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKEhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKEhj`ubeh}(h]h ]h"]h$]h&]uh1jhjDubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKGhjDubh)}(hThis function wraps drm_gem_dma_print_info(). Drivers that employ the DMA helpers should use this function as their :c:type:`drm_gem_object_funcs.print_info ` handler.h](htThis function wraps drm_gem_dma_print_info(). Drivers that employ the DMA helpers should use this function as their }(hj,hhhNhNubh)}(h@:c:type:`drm_gem_object_funcs.print_info `h]j)}(hj6h]hdrm_gem_object_funcs.print_info}(hj8hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKFhj,ubh handler.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjShKFhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB,drm_gem_dma_object_get_sg_table (C function)!c.drm_gem_dma_object_get_sg_tablehNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hNstruct sg_table * drm_gem_dma_object_get_sg_table (struct drm_gem_object *obj)h]jR)}(hLstruct sg_table *drm_gem_dma_object_get_sg_table(struct drm_gem_object *obj)h](jX)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjzhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKSubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjzhhhjhKSubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_dma_object_get_sg_tablesb!c.drm_gem_dma_object_get_sg_tableasbuh1hhjzhhhjhKSubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjzhhhjhKSubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjzhhhjhKSubj{)}(hdrm_gem_dma_object_get_sg_tableh]j)}(hjh]hdrm_gem_dma_object_get_sg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjzhhhjhKSubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j!c.drm_gem_dma_object_get_sg_tableasbuh1hhjubjj)}(h h]h }(hj4hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjBhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjzhhhjhKSubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjvhhhjhKSubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jKhjhKShjshhubj)}(hhh]h)}(h2GEM object function for drm_gem_dma_get_sg_table()h]h2GEM object function for drm_gem_dma_get_sg_table()}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKShjvhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhKSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjIhNhNubj)}(hX[**Parameters** ``struct drm_gem_object *obj`` GEM object **Description** This function wraps drm_gem_dma_get_sg_table(). Drivers that employ the DMA helpers should use it as their :c:type:`drm_gem_object_funcs.get_sg_table ` handler. **Return** A pointer to the scatter/gather table of pinned pages or NULL on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKWhjubj)}(hhh]j)}(h*``struct drm_gem_object *obj`` GEM object h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKThjubj)}(hhh]h)}(h GEM objecth]h GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKThjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKVhjubh)}(hThis function wraps drm_gem_dma_get_sg_table(). Drivers that employ the DMA helpers should use it as their :c:type:`drm_gem_object_funcs.get_sg_table ` handler.h](hkThis function wraps drm_gem_dma_get_sg_table(). Drivers that employ the DMA helpers should use it as their }(hj hhhNhNubh)}(hB:c:type:`drm_gem_object_funcs.get_sg_table `h]j)}(hjh]h!drm_gem_object_funcs.get_sg_table}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKUhj ubh handler.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hKUhjubh)}(h **Return**h]j)}(hj?h]hReturn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKXhjubh)}(hIA pointer to the scatter/gather table of pinned pages or NULL on failure.h]hIA pointer to the scatter/gather table of pinned pages or NULL on failure.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_gem_dma_object_mmap (C function)c.drm_gem_dma_object_mmaphNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hTint drm_gem_dma_object_mmap (struct drm_gem_object *obj, struct vm_area_struct *vma)h]jR)}(hSint drm_gem_dma_object_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKwubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKwubj{)}(hdrm_gem_dma_object_mmaph]j)}(hdrm_gem_dma_object_mmaph]hdrm_gem_dma_object_mmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKwubj)}(h8(struct drm_gem_object *obj, struct vm_area_struct *vma)h](j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_dma_object_mmapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct vm_area_struct *vmah](jX)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj/ubjj)}(h h]h }(hj@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj/ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjSmodnameN classnameNj+j.)}j1]jc.drm_gem_dma_object_mmapasbuh1hhj/ubjj)}(h h]h }(hjohhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj/ubjH)}(hjKh]h*}(hj}hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj/ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj|hhhjhKwubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jKhjhKwhjyhhubj)}(hhh]h)}(h*GEM object function for drm_gem_dma_mmap()h]h*GEM object function for drm_gem_dma_mmap()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKwhjhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjIhNhNubj)}(hXs**Parameters** ``struct drm_gem_object *obj`` GEM object ``struct vm_area_struct *vma`` VMA for the area to be mapped **Description** This function wraps drm_gem_dma_mmap(). Drivers that employ the dma helpers should use it as their :c:type:`drm_gem_object_funcs.mmap ` handler. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhK{hjubj)}(hhh](j)}(h*``struct drm_gem_object *obj`` GEM object h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKxhjubj)}(hhh]h)}(h GEM objecth]h GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKxhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKxhjubj)}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](j)}(h``struct vm_area_struct *vma``h]j)}(hj.h]hstruct vm_area_struct *vma}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKyhj(ubj)}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKyhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKyhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhK{hjubh)}(hThis function wraps drm_gem_dma_mmap(). Drivers that employ the dma helpers should use it as their :c:type:`drm_gem_object_funcs.mmap ` handler.h](hcThis function wraps drm_gem_dma_mmap(). Drivers that employ the dma helpers should use it as their }(hjhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.mmap `h]j)}(hjh]hdrm_gem_object_funcs.mmap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKzhjubh handler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKzhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhK}hjubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhK~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB1DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE (C macro))c.DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATEhNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(h'DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATEh]jR)}(h'DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATEh]j{)}(h'DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATEh]j)}(hjh]h'DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj(jj(jjjuh1jFhhhjIhNhNubh)}(h>``DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE (dumb_create_func)``h]j)}(hj.h]h:DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE (dumb_create_func)}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjIhhubj)}(hDMA GEM driver operations h]h)}(hDMA GEM driver operationsh]hDMA GEM driver operations}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjDubah}(h]h ]h"]h$]h&]uh1jhjVhKhjIhhubj)}(hX **Parameters** ``dumb_create_func`` callback function for .dumb_create **Description** This macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure. This macro is a variant of DRM_GEM_DMA_DRIVER_OPS for drivers that override the default implementation of :c:type:`struct rm_driver `.dumb_create. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE() instead.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj]ubj)}(hhh]j)}(h8``dumb_create_func`` callback function for .dumb_create h](j)}(h``dumb_create_func``h]j)}(hjh]hdumb_create_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj|ubj)}(hhh]h)}(h"callback function for .dumb_createh]h"callback function for .dumb_create}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj]ubh)}(hlThis macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure.h](hMThis macro provides a shortcut for setting the default GEM operations in the }(hjhhhNhNubh)}(h:c:type:`drm_driver`h]j)}(hjh]h drm_driver}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubh structure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhj]ubh)}(hXCThis macro is a variant of DRM_GEM_DMA_DRIVER_OPS for drivers that override the default implementation of :c:type:`struct rm_driver `.dumb_create. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE() instead.h](hjThis macro is a variant of DRM_GEM_DMA_DRIVER_OPS for drivers that override the default implementation of }(hjhhhNhNubh)}(h&:c:type:`struct rm_driver `h]j)}(hjh]hstruct rm_driver}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja rm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubh.dumb_create. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE() instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hKhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB DRM_GEM_DMA_DRIVER_OPS (C macro)c.DRM_GEM_DMA_DRIVER_OPShNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hDRM_GEM_DMA_DRIVER_OPSh]jR)}(hDRM_GEM_DMA_DRIVER_OPSh]j{)}(hDRM_GEM_DMA_DRIVER_OPSh]j)}(hjQh]hDRM_GEM_DMA_DRIVER_OPS}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjShhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjOhhhjnhKubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jKhjnhKhjLhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjLhhhjnhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhjIhNhNubh)}(h``DRM_GEM_DMA_DRIVER_OPS``h]j)}(hjh]hDRM_GEM_DMA_DRIVER_OPS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjIhhubj)}(hX DMA GEM driver operations **Description** This macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure. Drivers that come with their own implementation of :c:type:`struct drm_driver `.dumb_create should use DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE() instead. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP instead. h](j)}(hDMA GEM driver operations h]h)}(hDMA GEM driver operationsh]hDMA GEM driver operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubh)}(hlThis macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure.h](hMThis macro provides a shortcut for setting the default GEM operations in the }(hjhhhNhNubh)}(h:c:type:`drm_driver`h]j)}(hjh]h drm_driver}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubh structure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(hX8Drivers that come with their own implementation of :c:type:`struct drm_driver `.dumb_create should use DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE() instead. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP instead.h](h3Drivers that come with their own implementation of }(hj hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjh]hstruct drm_driver}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj ubh.dumb_create should use DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE() instead. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP instead.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1hKhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjIhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB6DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE (C macro).c.DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATEhNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATEh]jR)}(h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATEh]j{)}(h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATEh]j)}(hjUh]h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjShhhjrhKubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jKhjrhKhjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPhhhjrhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhjIhNhNubh)}(hC``DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE (dumb_create_func)``h]j)}(hjh]h?DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE (dumb_create_func)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjIhhubj)}(hCDMA GEM driver operations ensuring a virtual address on the buffer h]h)}(hBDMA GEM driver operations ensuring a virtual address on the bufferh]hBDMA GEM driver operations ensuring a virtual address on the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjIhhubj)}(hX^**Parameters** ``dumb_create_func`` callback function for .dumb_create **Description** This macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure for drivers that need the virtual address also on imported buffers. This macro is a variant of DRM_GEM_DMA_DRIVER_OPS_VMAP for drivers that override the default implementation of :c:type:`struct drm_driver `.dumb_create. Use DRM_GEM_DMA_DRIVER_OPS_VMAP if possible. Drivers that do not require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE() instead.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubj)}(hhh]j)}(h8``dumb_create_func`` callback function for .dumb_create h](j)}(h``dumb_create_func``h]j)}(hjh]hdumb_create_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubj)}(hhh]h)}(h"callback function for .dumb_createh]h"callback function for .dumb_create}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubh)}(hThis macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure for drivers that need the virtual address also on imported buffers.h](hMThis macro provides a shortcut for setting the default GEM operations in the }(hj6hhhNhNubh)}(h:c:type:`drm_driver`h]j)}(hj@h]h drm_driver}(hjBhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj6ubhN structure for drivers that need the virtual address also on imported buffers.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hKhjubh)}(hXQThis macro is a variant of DRM_GEM_DMA_DRIVER_OPS_VMAP for drivers that override the default implementation of :c:type:`struct drm_driver `.dumb_create. Use DRM_GEM_DMA_DRIVER_OPS_VMAP if possible. Drivers that do not require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE() instead.h](hoThis macro is a variant of DRM_GEM_DMA_DRIVER_OPS_VMAP for drivers that override the default implementation of }(hjhhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjrh]hstruct drm_driver}(hjthhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjhubh.dumb_create. Use DRM_GEM_DMA_DRIVER_OPS_VMAP if possible. Drivers that do not require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE() instead.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%DRM_GEM_DMA_DRIVER_OPS_VMAP (C macro)c.DRM_GEM_DMA_DRIVER_OPS_VMAPhNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hDRM_GEM_DMA_DRIVER_OPS_VMAPh]jR)}(hDRM_GEM_DMA_DRIVER_OPS_VMAPh]j{)}(hDRM_GEM_DMA_DRIVER_OPS_VMAPh]j)}(hjh]hDRM_GEM_DMA_DRIVER_OPS_VMAP}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhjIhNhNubh)}(h``DRM_GEM_DMA_DRIVER_OPS_VMAP``h]j)}(hjh]hDRM_GEM_DMA_DRIVER_OPS_VMAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjIhhubj)}(hXM DMA GEM driver operations ensuring a virtual address on the buffer **Description** This macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure for drivers that need the virtual address also on imported buffers. Drivers that come with their own implementation of :c:type:`struct drm_driver `.dumb_create should use DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE() instead. Use DRM_GEM_DMA_DRIVER_OPS_VMAP if possible. Drivers that do not require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS instead. h](j)}(hCDMA GEM driver operations ensuring a virtual address on the buffer h]h)}(hBDMA GEM driver operations ensuring a virtual address on the bufferh]hBDMA GEM driver operations ensuring a virtual address on the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhjhKhjubh)}(h**Description**h]j)}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubh)}(hThis macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure for drivers that need the virtual address also on imported buffers.h](hMThis macro provides a shortcut for setting the default GEM operations in the }(hj;hhhNhNubh)}(h:c:type:`drm_driver`h]j)}(hjEh]h drm_driver}(hjGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj;ubhN structure for drivers that need the virtual address also on imported buffers.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbhKhjubh)}(hXDDrivers that come with their own implementation of :c:type:`struct drm_driver `.dumb_create should use DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE() instead. Use DRM_GEM_DMA_DRIVER_OPS_VMAP if possible. Drivers that do not require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS instead.h](h3Drivers that come with their own implementation of }(hjmhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjwh]hstruct drm_driver}(hjyhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjmubh.dumb_create should use DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE() instead. Use DRM_GEM_DMA_DRIVER_OPS_VMAP if possible. Drivers that do not require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS instead.}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjIhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!DEFINE_DRM_GEM_DMA_FOPS (C macro)c.DEFINE_DRM_GEM_DMA_FOPShNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hDEFINE_DRM_GEM_DMA_FOPSh]jR)}(hDEFINE_DRM_GEM_DMA_FOPSh]j{)}(hDEFINE_DRM_GEM_DMA_FOPSh]j)}(hjh]hDEFINE_DRM_GEM_DMA_FOPS}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhjIhNhNubh)}(h"``DEFINE_DRM_GEM_DMA_FOPS (name)``h]j)}(hjh]hDEFINE_DRM_GEM_DMA_FOPS (name)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjIhhubj)}(h2macro to generate file operations for DMA drivers h]h)}(h1macro to generate file operations for DMA driversh]h1macro to generate file operations for DMA drivers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhjhKhjIhhubj)}(hX7**Parameters** ``name`` name for the generated structure **Description** This macro autogenerates a suitable :c:type:`struct file_operations ` for DMA based drivers, which can be assigned to :c:type:`drm_driver.fops `. Note that this structure cannot be shared between drivers, because it contains a reference to the current module using THIS_MODULE. Note that the declaration is already marked as static - if you need a non-static version of this you're probably doing it wrong and will break the THIS_MODULE reference by accident.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj#ubj)}(hhh]j)}(h*``name`` name for the generated structure h](j)}(h``name``h]j)}(hjHh]hname}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjBubj)}(hhh]h)}(h name for the generated structureh]h name for the generated structure}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj#ubh)}(hX2This macro autogenerates a suitable :c:type:`struct file_operations ` for DMA based drivers, which can be assigned to :c:type:`drm_driver.fops `. Note that this structure cannot be shared between drivers, because it contains a reference to the current module using THIS_MODULE.h](h$This macro autogenerates a suitable }(hjhhhNhNubh)}(h2:c:type:`struct file_operations `h]j)}(hjh]hstruct file_operations}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jafile_operationsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubh1 for DMA based drivers, which can be assigned to }(hjhhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j)}(hjh]hdrm_driver.fops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhjhKhjubh. Note that this structure cannot be shared between drivers, because it contains a reference to the current module using THIS_MODULE.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhj#ubh)}(hNote that the declaration is already marked as static - if you need a non-static version of this you're probably doing it wrong and will break the THIS_MODULE reference by accident.h]hNote that the declaration is already marked as static - if you need a non-static version of this you’re probably doing it wrong and will break the THIS_MODULE reference by accident.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_dma_create (C function)c.drm_gem_dma_createhNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hTstruct drm_gem_dma_object * drm_gem_dma_create (struct drm_device *drm, size_t size)h]jR)}(hRstruct drm_gem_dma_object *drm_gem_dma_create(struct drm_device *drm, size_t size)h](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKwubjj)}(h h]h }(hj+hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj*hKwubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj>modnameN classnameNj+j.)}j1]j4)}j'drm_gem_dma_createsbc.drm_gem_dma_createasbuh1hhjhhhj*hKwubjj)}(h h]h }(hj]hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj*hKwubjH)}(hjKh]h*}(hjkhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhj*hKwubj{)}(hdrm_gem_dma_createh]j)}(hjZh]hdrm_gem_dma_create}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj*hKwubj)}(h%(struct drm_device *drm, size_t size)h](j)}(hstruct drm_device *drmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jXc.drm_gem_dma_createasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]jXc.drm_gem_dma_createasbuh1hhjubjj)}(h h]h }(hj(hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hsizeh]hsize}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj*hKwubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj*hKwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj*hKwhjhhubj)}(hhh]h)}(h&allocate an object with the given sizeh]h&allocate an object with the given size}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKwhj]hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1jFhhhjIhNhNubj)}(hX**Parameters** ``struct drm_device *drm`` DRM device ``size_t size`` size of the object to allocate **Description** This function creates a DMA GEM object and allocates memory as backing store. The allocated memory will occupy a contiguous chunk of bus address space. For devices that are directly connected to the memory bus then the allocated memory will be physically contiguous. For devices that access through an IOMMU, then the allocated memory is not expected to be physically contiguous because having contiguous IOVAs is sufficient to meet a devices DMA requirements. **Return** A struct drm_gem_dma_object * on success or an ERR_PTR()-encoded negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chK{hj|ubj)}(hhh](j)}(h&``struct drm_device *drm`` DRM device h](j)}(h``struct drm_device *drm``h]j)}(hjh]hstruct drm_device *drm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKxhjubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKxhjubj)}(h/``size_t size`` size of the object to allocate h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKyhjubj)}(hhh]h)}(hsize of the object to allocateh]hsize of the object to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKyhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKyhjubeh}(h]h ]h"]h$]h&]uh1jhj|ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chK{hj|ubh)}(hThis function creates a DMA GEM object and allocates memory as backing store. The allocated memory will occupy a contiguous chunk of bus address space.h]hThis function creates a DMA GEM object and allocates memory as backing store. The allocated memory will occupy a contiguous chunk of bus address space.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKzhj|ubh)}(hX4For devices that are directly connected to the memory bus then the allocated memory will be physically contiguous. For devices that access through an IOMMU, then the allocated memory is not expected to be physically contiguous because having contiguous IOVAs is sufficient to meet a devices DMA requirements.h]hX4For devices that are directly connected to the memory bus then the allocated memory will be physically contiguous. For devices that access through an IOMMU, then the allocated memory is not expected to be physically contiguous because having contiguous IOVAs is sufficient to meet a devices DMA requirements.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chK}hj|ubh)}(h **Return**h]j)}(hjKh]hReturn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKhj|ubh)}(h`A struct drm_gem_dma_object * on success or an ERR_PTR()-encoded negative error code on failure.h]h`A struct drm_gem_dma_object * on success or an ERR_PTR()-encoded negative error code on failure.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_dma_free (C function)c.drm_gem_dma_freehNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(h:void drm_gem_dma_free (struct drm_gem_dma_object *dma_obj)h]jR)}(h9void drm_gem_dma_free(struct drm_gem_dma_object *dma_obj)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(hdrm_gem_dma_freeh]j)}(hdrm_gem_dma_freeh]hdrm_gem_dma_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h$(struct drm_gem_dma_object *dma_obj)h]j)}(h"struct drm_gem_dma_object *dma_objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_dma_freeasbuh1hhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdma_objh]hdma_obj}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h)}(h/free resources associated with a DMA GEM objecth]h/free resources associated with a DMA GEM object}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1jFhhhjIhNhNubj)}(hX>**Parameters** ``struct drm_gem_dma_object *dma_obj`` DMA GEM object to free **Description** This function frees the backing memory of the DMA GEM object, cleans up the GEM object state and frees the memory used to store the object itself. If the buffer is imported and the virtual address is set, it is released.h](h)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjlubj)}(hhh]j)}(h>``struct drm_gem_dma_object *dma_obj`` DMA GEM object to free h](j)}(h&``struct drm_gem_dma_object *dma_obj``h]j)}(hjh]h"struct drm_gem_dma_object *dma_obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjubj)}(hhh]h)}(hDMA GEM object to freeh]hDMA GEM object to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjlubh)}(hThis function frees the backing memory of the DMA GEM object, cleans up the GEM object state and frees the memory used to store the object itself. If the buffer is imported and the virtual address is set, it is released.h]hThis function frees the backing memory of the DMA GEM object, cleans up the GEM object state and frees the memory used to store the object itself. If the buffer is imported and the virtual address is set, it is released.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB-drm_gem_dma_dumb_create_internal (C function)"c.drm_gem_dma_dumb_create_internalhNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(h|int drm_gem_dma_dumb_create_internal (struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h]jR)}(h{int drm_gem_dma_dumb_create_internal(struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhjhMubj{)}(h drm_gem_dma_dumb_create_internalh]j)}(h drm_gem_dma_dumb_create_internalh]h drm_gem_dma_dumb_create_internal}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhMubj)}(hW(struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h](j)}(hstruct drm_file *file_privh](jX)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjJubjj)}(h h]h }(hj[hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjnmodnameN classnameNj+j.)}j1]j4)}j'j4sb"c.drm_gem_dma_dumb_create_internalasbuh1hhjJubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjJubj)}(h file_privh]h file_priv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct drm_device *drmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j"c.drm_gem_dma_dumb_create_internalasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(h!struct drm_mode_create_dumb *argsh](jX)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj,ubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,ubh)}(hhh]j)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjPmodnameN classnameNj+j.)}j1]j"c.drm_gem_dma_dumb_create_internalasbuh1hhj,ubjj)}(h h]h }(hjlhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,ubjH)}(hjKh]h*}(hjzhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj,ubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hcreate a dumb buffer objecth]hcreate a dumb buffer object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjIhNhNubj)}(hX7**Parameters** ``struct drm_file *file_priv`` DRM file-private structure to create the dumb buffer for ``struct drm_device *drm`` DRM device ``struct drm_mode_create_dumb *args`` IOCTL data **Description** This aligns the pitch and size arguments to the minimum required. This is an internal helper that can be wrapped by a driver to account for hardware with more specific alignment requirements. It should not be used directly as their :c:type:`drm_driver.dumb_create ` callback. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubj)}(hhh](j)}(hX``struct drm_file *file_priv`` DRM file-private structure to create the dumb buffer for h](j)}(h``struct drm_file *file_priv``h]j)}(hjh]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubj)}(hhh]h)}(h8DRM file-private structure to create the dumb buffer forh]h8DRM file-private structure to create the dumb buffer for}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``struct drm_device *drm`` DRM device h](j)}(h``struct drm_device *drm``h]j)}(hj+h]hstruct drm_device *drm}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj%ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubj)}(h1``struct drm_mode_create_dumb *args`` IOCTL data h](j)}(h%``struct drm_mode_create_dumb *args``h]j)}(hjdh]h!struct drm_mode_create_dumb *args}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj^ubj)}(hhh]h)}(h IOCTL datah]h IOCTL data}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh)}(hXThis aligns the pitch and size arguments to the minimum required. This is an internal helper that can be wrapped by a driver to account for hardware with more specific alignment requirements. It should not be used directly as their :c:type:`drm_driver.dumb_create ` callback.h](hThis aligns the pitch and size arguments to the minimum required. This is an internal helper that can be wrapped by a driver to account for hardware with more specific alignment requirements. It should not be used directly as their }(hjhhhNhNubh)}(h-:c:type:`drm_driver.dumb_create `h]j)}(hjh]hdrm_driver.dumb_create}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM hjubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_gem_dma_dumb_create (C function)c.drm_gem_dma_dumb_createhNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hsint drm_gem_dma_dumb_create (struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h]jR)}(hrint drm_gem_dma_dumb_create(struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h](j)}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM"ubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*hhhj<hM"ubj{)}(hdrm_gem_dma_dumb_createh]j)}(hdrm_gem_dma_dumb_createh]hdrm_gem_dma_dumb_create}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj*hhhj<hM"ubj)}(hW(struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h](j)}(hstruct drm_file *file_privh](jX)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjgubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jQsbc.drm_gem_dma_dumb_createasbuh1hhjgubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjgubj)}(h file_privh]h file_priv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hstruct drm_device *drmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_dma_dumb_createasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj'hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdrmh]hdrm}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(h!struct drm_mode_create_dumb *argsh](jX)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjIubjj)}(h h]h }(hjZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIubh)}(hhh]j)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmmodnameN classnameNj+j.)}j1]jc.drm_gem_dma_dumb_createasbuh1hhjIubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjIubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhj*hhhj<hM"ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj&hhhj<hM"ubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1jKhj<hM"hj#hhubj)}(hhh]h)}(hcreate a dumb buffer objecth]hcreate a dumb buffer object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM"hjhhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj<hM"ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjIhNhNubj)}(hX**Parameters** ``struct drm_file *file_priv`` DRM file-private structure to create the dumb buffer for ``struct drm_device *drm`` DRM device ``struct drm_mode_create_dumb *args`` IOCTL data **Description** This function computes the pitch of the dumb buffer and rounds it up to an integer number of bytes per pixel. Drivers for hardware that doesn't have any additional restrictions on the pitch can directly use this function as their :c:type:`drm_driver.dumb_create ` callback. For hardware with additional restrictions, drivers can adjust the fields set up by userspace and pass the IOCTL data along to the drm_gem_dma_dumb_create_internal() function. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM&hjubj)}(hhh](j)}(hX``struct drm_file *file_priv`` DRM file-private structure to create the dumb buffer for h](j)}(h``struct drm_file *file_priv``h]j)}(hjh]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM#hj ubj)}(hhh]h)}(h8DRM file-private structure to create the dumb buffer forh]h8DRM file-private structure to create the dumb buffer for}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hM#hj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hM#hjubj)}(h&``struct drm_device *drm`` DRM device h](j)}(h``struct drm_device *drm``h]j)}(hjHh]hstruct drm_device *drm}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM$hjBubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM$hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM$hjubj)}(h1``struct drm_mode_create_dumb *args`` IOCTL data h](j)}(h%``struct drm_mode_create_dumb *args``h]j)}(hjh]h!struct drm_mode_create_dumb *args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM%hj{ubj)}(hhh]h)}(h IOCTL datah]h IOCTL data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM'hjubh)}(hXThis function computes the pitch of the dumb buffer and rounds it up to an integer number of bytes per pixel. Drivers for hardware that doesn't have any additional restrictions on the pitch can directly use this function as their :c:type:`drm_driver.dumb_create ` callback.h](hThis function computes the pitch of the dumb buffer and rounds it up to an integer number of bytes per pixel. Drivers for hardware that doesn’t have any additional restrictions on the pitch can directly use this function as their }(hjhhhNhNubh)}(h-:c:type:`drm_driver.dumb_create `h]j)}(hjh]hdrm_driver.dumb_create}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM&hjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM&hjubh)}(hFor hardware with additional restrictions, drivers can adjust the fields set up by userspace and pass the IOCTL data along to the drm_gem_dma_dumb_create_internal() function.h]hFor hardware with additional restrictions, drivers can adjust the fields set up by userspace and pass the IOCTL data along to the drm_gem_dma_dumb_create_internal() function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM+hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM/hjubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_gem_dma_get_unmapped_area (C function)c.drm_gem_dma_get_unmapped_areahNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hunsigned long drm_gem_dma_get_unmapped_area (struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)h]jR)}(hunsigned long drm_gem_dma_get_unmapped_area(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)h](j)}(hunsignedh]hunsigned}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMLubjj)}(h h]h }(hjihhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVhhhjhhMLubj)}(hlongh]hlong}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjhhMLubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVhhhjhhMLubj{)}(hdrm_gem_dma_get_unmapped_areah]j)}(hdrm_gem_dma_get_unmapped_areah]hdrm_gem_dma_get_unmapped_area}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhjhhMLubj)}(hd(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)h](j)}(hstruct file *filph](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_dma_get_unmapped_areaasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hfilph]hfilp}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjj)}(h h]h }(hj3hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!ubj)}(hlongh]hlong}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjj)}(h h]h }(hjOhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!ubj)}(haddrh]haddr}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjrubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjrubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hpgoffh]hpgoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hflagsh]hflags}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjhhMLubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjRhhhjhhMLubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jKhjhhMLhjOhhubj)}(hhh]h)}(h*propose address for mapping in noMMU casesh]h*propose address for mapping in noMMU cases}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMLhjwhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjIhNhNubj)}(hX **Parameters** ``struct file *filp`` file object ``unsigned long addr`` memory address ``unsigned long len`` buffer size ``unsigned long pgoff`` page offset ``unsigned long flags`` memory flags **Description** This function is used in noMMU platforms to propose address mapping for a given buffer. It's intended to be used as a direct handler for the struct :c:type:`file_operations.get_unmapped_area ` operation. **Return** mapping address on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMPhjubj)}(hhh](j)}(h"``struct file *filp`` file object h](j)}(h``struct file *filp``h]j)}(hjh]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMMhjubj)}(hhh]h)}(h file objecth]h file object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubj)}(h&``unsigned long addr`` memory address h](j)}(h``unsigned long addr``h]j)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMNhjubj)}(hhh]h)}(hmemory addressh]hmemory address}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMNhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMNhjubj)}(h"``unsigned long len`` buffer size h](j)}(h``unsigned long len``h]j)}(hj-h]hunsigned long len}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMOhj'ubj)}(hhh]h)}(h buffer sizeh]h buffer size}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMOhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMOhjubj)}(h$``unsigned long pgoff`` page offset h](j)}(h``unsigned long pgoff``h]j)}(hjfh]hunsigned long pgoff}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMPhj`ubj)}(hhh]h)}(h page offseth]h page offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMPhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMPhjubj)}(h%``unsigned long flags`` memory flags h](j)}(h``unsigned long flags``h]j)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMQhjubj)}(hhh]h)}(h memory flagsh]h memory flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMQhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMShjubh)}(hThis function is used in noMMU platforms to propose address mapping for a given buffer. It's intended to be used as a direct handler for the struct :c:type:`file_operations.get_unmapped_area ` operation.h](hThis function is used in noMMU platforms to propose address mapping for a given buffer. It’s intended to be used as a direct handler for the struct }(hjhhhNhNubh)}(h=:c:type:`file_operations.get_unmapped_area `h]j)}(hjh]h!file_operations.get_unmapped_area}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jafile_operationsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMRhjubh operation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMRhjubh)}(h **Return**h]j)}(hj$h]hReturn}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMWhjubh)}(h?mapping address on success or a negative error code on failure.h]h?mapping address on success or a negative error code on failure.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_gem_dma_print_info (C function)c.drm_gem_dma_print_infohNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hrvoid drm_gem_dma_print_info (const struct drm_gem_dma_object *dma_obj, struct drm_printer *p, unsigned int indent)h]jR)}(hqvoid drm_gem_dma_print_info(const struct drm_gem_dma_object *dma_obj, struct drm_printer *p, unsigned int indent)h](j)}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjehhhjwhMubj{)}(hdrm_gem_dma_print_infoh]j)}(hdrm_gem_dma_print_infoh]hdrm_gem_dma_print_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhjwhMubj)}(hV(const struct drm_gem_dma_object *dma_obj, struct drm_printer *p, unsigned int indent)h](j)}(h(const struct drm_gem_dma_object *dma_objh](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_dma_print_infoasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdma_objh]hdma_obj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_printer *ph](jX)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj/ubjj)}(h h]h }(hj@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj/ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjSmodnameN classnameNj+j.)}j1]jc.drm_gem_dma_print_infoasbuh1hhj/ubjj)}(h h]h }(hjohhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj/ubjH)}(hjKh]h*}(hj}hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj/ubj)}(hjTh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int indenth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hindenth]hindent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhjwhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjahhhjwhMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jKhjwhMhj^hhubj)}(hhh]h)}(h3Print :c:type:`drm_gem_dma_object` info for debugfsh](hPrint }(hj hhhNhNubh)}(h:c:type:`drm_gem_dma_object`h]j)}(hj h]hdrm_gem_dma_object}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gem_dma_print_infoasbjadrm_gem_dma_objectuh1hhj*hKwhj ubh info for debugfs}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjD jjD jjjuh1jFhhhjIhNhNubj)}(hX**Parameters** ``const struct drm_gem_dma_object *dma_obj`` DMA GEM object ``struct drm_printer *p`` DRM printer ``unsigned int indent`` Tab indentation level **Description** This function prints dma_addr and vaddr for use in e.g. debugfs output.h](h)}(h**Parameters**h]j)}(hjN h]h Parameters}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjH ubj)}(hhh](j)}(h<``const struct drm_gem_dma_object *dma_obj`` DMA GEM object h](j)}(h,``const struct drm_gem_dma_object *dma_obj``h]j)}(hjm h]h(const struct drm_gem_dma_object *dma_obj}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjg ubj)}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjg ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjd ubj)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hj h]hstruct drm_printer *p}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubj)}(hhh]h)}(h DRM printerh]h DRM printer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjd ubj)}(h.``unsigned int indent`` Tab indentation level h](j)}(h``unsigned int indent``h]j)}(hj h]hunsigned int indent}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubj)}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjd ubeh}(h]h ]h"]h$]h&]uh1jhjH ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjH ubh)}(hGThis function prints dma_addr and vaddr for use in e.g. debugfs output.h]hGThis function prints dma_addr and vaddr for use in e.g. debugfs output.}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjH ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_gem_dma_get_sg_table (C function)c.drm_gem_dma_get_sg_tablehNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hOstruct sg_table * drm_gem_dma_get_sg_table (struct drm_gem_dma_object *dma_obj)h]jR)}(hMstruct sg_table *drm_gem_dma_get_sg_table(struct drm_gem_dma_object *dma_obj)h](jX)}(hjh]hstruct}(hj_ hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[ hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMubjj)}(h h]h }(hjm hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[ hhhjl hMubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj~ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j4)}j'drm_gem_dma_get_sg_tablesbc.drm_gem_dma_get_sg_tableasbuh1hhj[ hhhjl hMubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[ hhhjl hMubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj[ hhhjl hMubj{)}(hdrm_gem_dma_get_sg_tableh]j)}(hj h]hdrm_gem_dma_get_sg_table}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[ hhhjl hMubj)}(h$(struct drm_gem_dma_object *dma_obj)h]j)}(h"struct drm_gem_dma_object *dma_objh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j c.drm_gem_dma_get_sg_tableasbuh1hhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj# hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hdma_objh]hdma_obj}(hj0 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhj[ hhhjl hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjW hhhjl hMubah}(h]jR ah ](jjeh"]h$]h&]jj)jhuh1jKhjl hMhjT hhubj)}(hhh]h)}(hCprovide a scatter/gather table of pinned pages for a DMA GEM objecth]hCprovide a scatter/gather table of pinned pages for a DMA GEM object}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjW hhubah}(h]h ]h"]h$]h&]uh1jhjT hhhjl hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjr jjr jjjuh1jFhhhjIhNhNubj)}(hX**Parameters** ``struct drm_gem_dma_object *dma_obj`` DMA GEM object **Description** This function exports a scatter/gather table by calling the standard DMA mapping API. **Return** A pointer to the scatter/gather table of pinned pages or NULL on failure.h](h)}(h**Parameters**h]j)}(hj| h]h Parameters}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjv ubj)}(hhh]j)}(h6``struct drm_gem_dma_object *dma_obj`` DMA GEM object h](j)}(h&``struct drm_gem_dma_object *dma_obj``h]j)}(hj h]h"struct drm_gem_dma_object *dma_obj}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubj)}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjv ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjv ubh)}(hUThis function exports a scatter/gather table by calling the standard DMA mapping API.h]hUThis function exports a scatter/gather table by calling the standard DMA mapping API.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjv ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjv ubh)}(hIA pointer to the scatter/gather table of pinned pages or NULL on failure.h]hIA pointer to the scatter/gather table of pinned pages or NULL on failure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjv ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB.drm_gem_dma_prime_import_sg_table (C function)#c.drm_gem_dma_prime_import_sg_tablehNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hstruct drm_gem_object * drm_gem_dma_prime_import_sg_table (struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h]jR)}(hstruct drm_gem_object *drm_gem_dma_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h](jX)}(hjh]hstruct}(hjB hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj> hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMubjj)}(h h]h }(hjP hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj> hhhjO hMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hja hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjc modnameN classnameNj+j.)}j1]j4)}j'!drm_gem_dma_prime_import_sg_tablesb#c.drm_gem_dma_prime_import_sg_tableasbuh1hhj> hhhjO hMubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj> hhhjO hMubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj> hhhjO hMubj{)}(h!drm_gem_dma_prime_import_sg_tableh]j)}(hj h]h!drm_gem_dma_prime_import_sg_table}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj> hhhjO hMubj)}(hQ(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j} #c.drm_gem_dma_prime_import_sg_tableasbuh1hhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h!struct dma_buf_attachment *attachh](jX)}(hjh]hstruct}(hj, hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj( ubjj)}(h h]h }(hj9 hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj( ubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjJ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjL modnameN classnameNj+j.)}j1]j} #c.drm_gem_dma_prime_import_sg_tableasbuh1hhj( ubjj)}(h h]h }(hjh hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj( ubjH)}(hjKh]h*}(hjv hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj( ubj)}(hattachh]hattach}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj( ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct sg_table *sgth](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j} #c.drm_gem_dma_prime_import_sg_tableasbuh1hhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hsgth]hsgt}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj> hhhjO hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj: hhhjO hMubah}(h]j5 ah ](jjeh"]h$]h&]jj)jhuh1jKhjO hMhj7 hhubj)}(hhh]h)}(hSproduce a DMA GEM object from another driver's scatter/gather table of pinned pagesh]hUproduce a DMA GEM object from another driver’s scatter/gather table of pinned pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj7 hhhjO hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1jFhhhjIhNhNubj)}(hX**Parameters** ``struct drm_device *dev`` device to import into ``struct dma_buf_attachment *attach`` DMA-BUF attachment ``struct sg_table *sgt`` scatter/gather table of pinned pages **Description** This function imports a scatter/gather table exported via DMA-BUF by another driver. Imported buffers must be physically contiguous in memory (i.e. the scatter/gather table must contain a single entry). Drivers that use the DMA helpers should set this as their :c:type:`drm_driver.gem_prime_import_sg_table ` callback. **Return** A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.h](h)}(h**Parameters**h]j)}(hj?h]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj9ubj)}(hhh](j)}(h1``struct drm_device *dev`` device to import into h](j)}(h``struct drm_device *dev``h]j)}(hj^h]hstruct drm_device *dev}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjXubj)}(hhh]h)}(hdevice to import intoh]hdevice to import into}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjUubj)}(h9``struct dma_buf_attachment *attach`` DMA-BUF attachment h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hjh]h!struct dma_buf_attachment *attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubj)}(hhh]h)}(hDMA-BUF attachmenth]hDMA-BUF attachment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjUubj)}(h>``struct sg_table *sgt`` scatter/gather table of pinned pages h](j)}(h``struct sg_table *sgt``h]j)}(hjh]hstruct sg_table *sgt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubj)}(hhh]h)}(h$scatter/gather table of pinned pagesh]h$scatter/gather table of pinned pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjUubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj9ubh)}(hXJThis function imports a scatter/gather table exported via DMA-BUF by another driver. Imported buffers must be physically contiguous in memory (i.e. the scatter/gather table must contain a single entry). Drivers that use the DMA helpers should set this as their :c:type:`drm_driver.gem_prime_import_sg_table ` callback.h](hXThis function imports a scatter/gather table exported via DMA-BUF by another driver. Imported buffers must be physically contiguous in memory (i.e. the scatter/gather table must contain a single entry). Drivers that use the DMA helpers should set this as their }(hj!hhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j)}(hj+h]h$drm_driver.gem_prime_import_sg_table}(hj-hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj!ubh callback.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjHhMhj9ubh)}(h **Return**h]j)}(hjUh]hReturn}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj9ubh)}(h]A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.h]h]A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_dma_vmap (C function)c.drm_gem_dma_vmaphNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hPint drm_gem_dma_vmap (struct drm_gem_dma_object *dma_obj, struct iosys_map *map)h]jR)}(hOint drm_gem_dma_vmap(struct drm_gem_dma_object *dma_obj, struct iosys_map *map)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gem_dma_vmaph]j)}(hdrm_gem_dma_vmaph]hdrm_gem_dma_vmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h;(struct drm_gem_dma_object *dma_obj, struct iosys_map *map)h](j)}(h"struct drm_gem_dma_object *dma_objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_dma_vmapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj#hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdma_objh]hdma_obj}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct iosys_map *maph](jX)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjEubjj)}(h h]h }(hjVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjEubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjimodnameN classnameNj+j.)}j1]jc.drm_gem_dma_vmapasbuh1hhjEubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjEubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjEubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hmap a DMA GEM object into the kernel’s virtual address space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjIhNhNubj)}(hX**Parameters** ``struct drm_gem_dma_object *dma_obj`` DMA GEM object ``struct iosys_map *map`` Returns the kernel virtual address of the DMA GEM object's backing store. **Description** This function maps a buffer into the kernel's virtual address space. Since the DMA buffers are already mapped into the kernel virtual address space this simply returns the cached virtual address. **Return** 0 on success, or a negative error code otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubj)}(hhh](j)}(h6``struct drm_gem_dma_object *dma_obj`` DMA GEM object h](j)}(h&``struct drm_gem_dma_object *dma_obj``h]j)}(hj h]h"struct drm_gem_dma_object *dma_obj}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubj)}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hd``struct iosys_map *map`` Returns the kernel virtual address of the DMA GEM object's backing store. h](j)}(h``struct iosys_map *map``h]j)}(hjDh]hstruct iosys_map *map}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj>ubj)}(hhh]h)}(hIReturns the kernel virtual address of the DMA GEM object's backing store.h]hKReturns the kernel virtual address of the DMA GEM object’s backing store.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh)}(hThis function maps a buffer into the kernel's virtual address space. Since the DMA buffers are already mapped into the kernel virtual address space this simply returns the cached virtual address.h]hThis function maps a buffer into the kernel’s virtual address space. Since the DMA buffers are already mapped into the kernel virtual address space this simply returns the cached virtual address.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh)}(h10 on success, or a negative error code otherwise.h]h10 on success, or a negative error code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_dma_mmap (C function)c.drm_gem_dma_mmaphNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hUint drm_gem_dma_mmap (struct drm_gem_dma_object *dma_obj, struct vm_area_struct *vma)h]jR)}(hTint drm_gem_dma_mmap(struct drm_gem_dma_object *dma_obj, struct vm_area_struct *vma)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gem_dma_mmaph]j)}(hdrm_gem_dma_mmaph]hdrm_gem_dma_mmap}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h@(struct drm_gem_dma_object *dma_obj, struct vm_area_struct *vma)h](j)}(h"struct drm_gem_dma_object *dma_objh](jX)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj%ubjj)}(h h]h }(hj6hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj%ubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjImodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_dma_mmapasbuh1hhj%ubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj%ubjH)}(hjKh]h*}(hjuhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj%ubj)}(hdma_objh]hdma_obj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hstruct vm_area_struct *vmah](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jcc.drm_gem_dma_mmapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h%memory-map an exported DMA GEM objecth]h%memory-map an exported DMA GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1jFhhhjIhNhNubj)}(hX**Parameters** ``struct drm_gem_dma_object *dma_obj`` DMA GEM object ``struct vm_area_struct *vma`` VMA for the area to be mapped **Description** This function maps a buffer into a userspace process's address space. In addition to the usual GEM VMA setup it immediately faults in the entire object instead of using on-demand faulting. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM hj8ubj)}(hhh](j)}(h6``struct drm_gem_dma_object *dma_obj`` DMA GEM object h](j)}(h&``struct drm_gem_dma_object *dma_obj``h]j)}(hj]h]h"struct drm_gem_dma_object *dma_obj}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjWubj)}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubj)}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](j)}(h``struct vm_area_struct *vma``h]j)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubj)}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM hj8ubh)}(hThis function maps a buffer into a userspace process's address space. In addition to the usual GEM VMA setup it immediately faults in the entire object instead of using on-demand faulting.h]hThis function maps a buffer into a userspace process’s address space. In addition to the usual GEM VMA setup it immediately faults in the entire object instead of using on-demand faulting.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM hj8ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM hj8ubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB3drm_gem_dma_prime_import_sg_table_vmap (C function)(c.drm_gem_dma_prime_import_sg_table_vmaphNtauh1j5hjIhhhNhNubjG)}(hhh](jL)}(hstruct drm_gem_object * drm_gem_dma_prime_import_sg_table_vmap (struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h]jR)}(hstruct drm_gem_object *drm_gem_dma_prime_import_sg_table_vmap(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h](jX)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj9hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM1ubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9hhhjJhM1ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj^modnameN classnameNj+j.)}j1]j4)}j'&drm_gem_dma_prime_import_sg_table_vmapsb(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhj9hhhjJhM1ubjj)}(h h]h }(hj}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9hhhjJhM1ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj9hhhjJhM1ubj{)}(h&drm_gem_dma_prime_import_sg_table_vmaph]j)}(hjzh]h&drm_gem_dma_prime_import_sg_table_vmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhjJhM1ubj)}(hQ(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jx(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!struct dma_buf_attachment *attachh](jX)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj#ubjj)}(h h]h }(hj4hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#ubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjGmodnameN classnameNj+j.)}j1]jx(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhj#ubjj)}(h h]h }(hjchhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#ubjH)}(hjKh]h*}(hjqhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj#ubj)}(hattachh]hattach}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sg_table *sgth](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jx(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhjJhM1ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj5hhhjJhM1ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jKhjJhM1hj2hhubj)}(hhh]h)}(h\PRIME import another driver's scatter/gather table and get the virtual address of the bufferh]h^PRIME import another driver’s scatter/gather table and get the virtual address of the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM1hjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjJhM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jFhhhjIhNhNubj)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct dma_buf_attachment *attach`` DMA-BUF attachment ``struct sg_table *sgt`` Scatter/gather table of pinned pages **Description** This function imports a scatter/gather table using drm_gem_dma_prime_import_sg_table() and uses dma_buf_vmap() to get the kernel virtual address. This ensures that a DMA GEM object always has its virtual address set. This address is released when the object is freed. This function can be used as the :c:type:`drm_driver.gem_prime_import_sg_table ` callback. The :c:type:`DRM_GEM_DMA_DRIVER_OPS_VMAP` macro provides a shortcut to set the necessary DRM driver operations. **Return** A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM5hj4ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjYh]hstruct drm_device *dev}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM3hjSubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM3hjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM3hjPubj)}(h9``struct dma_buf_attachment *attach`` DMA-BUF attachment h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hjh]h!struct dma_buf_attachment *attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM4hjubj)}(hhh]h)}(hDMA-BUF attachmenth]hDMA-BUF attachment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjPubj)}(h>``struct sg_table *sgt`` Scatter/gather table of pinned pages h](j)}(h``struct sg_table *sgt``h]j)}(hjh]hstruct sg_table *sgt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM5hjubj)}(hhh]h)}(h$Scatter/gather table of pinned pagesh]h$Scatter/gather table of pinned pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjPubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM7hj4ubh)}(hX This function imports a scatter/gather table using drm_gem_dma_prime_import_sg_table() and uses dma_buf_vmap() to get the kernel virtual address. This ensures that a DMA GEM object always has its virtual address set. This address is released when the object is freed.h]hX This function imports a scatter/gather table using drm_gem_dma_prime_import_sg_table() and uses dma_buf_vmap() to get the kernel virtual address. This ensures that a DMA GEM object always has its virtual address set. This address is released when the object is freed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM6hj4ubh)}(hThis function can be used as the :c:type:`drm_driver.gem_prime_import_sg_table ` callback. The :c:type:`DRM_GEM_DMA_DRIVER_OPS_VMAP` macro provides a shortcut to set the necessary DRM driver operations.h](h!This function can be used as the }(hj+hhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j)}(hj5h]h$drm_driver.gem_prime_import_sg_table}(hj7hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM;hj+ubh callback. The }(hj+hhhNhNubh)}(h%:c:type:`DRM_GEM_DMA_DRIVER_OPS_VMAP`h]j)}(hjYh]hDRM_GEM_DMA_DRIVER_OPS_VMAP}(hj[hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_GEM_DMA_DRIVER_OPS_VMAPuh1hhjRhM;hj+ubhF macro provides a shortcut to set the necessary DRM driver operations.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjRhM;hj4ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM?hj4ubh)}(h]A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.h]h]A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM@hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubeh}(h]"gem-dma-helper-functions-referenceah ]h"]"gem dma helper functions referenceah$]h&]uh1hhjzhhhhhMxubh)}(hhh](h)}(h#GEM SHMEM Helper Function Referenceh]h#GEM SHMEM Helper Function Reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hpThis library provides helpers for GEM objects backed by shmem buffers allocated using anonymous pageable memory.h]hpThis library provides helpers for GEM objects backed by shmem buffers allocated using anonymous pageable memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:390: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhjhhubh)}(hXGFunctions that operate on the GEM object receive struct :c:type:`drm_gem_shmem_object`. For GEM callback helpers in struct :c:type:`drm_gem_object` functions, see likewise named functions with an _object_ infix (e.g., drm_gem_shmem_object_vmap() wraps drm_gem_shmem_vmap()). These helpers perform the necessary type conversion.h](h8Functions that operate on the GEM object receive struct }(hjhhhNhNubh)}(h:c:type:`drm_gem_shmem_object`h]j)}(hjh]hdrm_gem_shmem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_shmem_objectuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:390: ./drivers/gpu/drm/drm_gem_shmem_helper.chK"hjubh%. For GEM callback helpers in struct }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjhK"hjubh functions, see likewise named functions with an _object_ infix (e.g., drm_gem_shmem_object_vmap() wraps drm_gem_shmem_vmap()). These helpers perform the necessary type conversion.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK"hjhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_shmem_object (C struct)c.drm_gem_shmem_objecthNtauh1j5hjhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhNubjG)}(hhh](jL)}(hdrm_gem_shmem_objecth]jR)}(hstruct drm_gem_shmem_objecth](jX)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjAhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjAhhhjRhKubj{)}(hdrm_gem_shmem_objecth]j)}(hj?h]hdrm_gem_shmem_object}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjAhhhjRhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj=hhhjRhKubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jKhjRhKhj:hhubj)}(hhh]h)}(hGEM object backed by shmemh]hGEM object backed by shmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj:hhhjRhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjhj9hNubj)}(hX**Definition**:: struct drm_gem_shmem_object { struct drm_gem_object base; struct page **pages; refcount_t pages_use_count; refcount_t pages_pin_count; int madv; struct list_head madv_list; struct sg_table *sgt; void *vaddr; refcount_t vmap_use_count; bool pages_mark_dirty_on_put : 1; bool pages_mark_accessed_on_put : 1; bool map_wc : 1; }; **Members** ``base`` Base GEM object ``pages`` Page table ``pages_use_count`` Reference count on the pages table. The pages are put when the count reaches zero. ``pages_pin_count`` Reference count on the pinned pages table. Pages are hard-pinned and reside in memory if count greater than zero. Otherwise, when count is zero, the pages are allowed to be evicted and purged by memory shrinker. ``madv`` State for madvise 0 is active/inuse. A negative value is the object is purged. Positive values are driver specific and not used by the helpers. ``madv_list`` List entry for madvise tracking Typically used by drivers to track purgeable objects ``sgt`` Scatter/gather table for imported PRIME buffers ``vaddr`` Kernel virtual address of the backing memory ``vmap_use_count`` Reference count on the virtual address. The address are un-mapped when the count reaches zero. ``pages_mark_dirty_on_put`` Mark pages as dirty when they are put. ``pages_mark_accessed_on_put`` Mark pages as accessed when they are put. ``map_wc`` map object write-combined (instead of using shmem defaults).h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjubjh)}(hXustruct drm_gem_shmem_object { struct drm_gem_object base; struct page **pages; refcount_t pages_use_count; refcount_t pages_pin_count; int madv; struct list_head madv_list; struct sg_table *sgt; void *vaddr; refcount_t vmap_use_count; bool pages_mark_dirty_on_put : 1; bool pages_mark_accessed_on_put : 1; bool map_wc : 1; };h]hXustruct drm_gem_shmem_object { struct drm_gem_object base; struct page **pages; refcount_t pages_use_count; refcount_t pages_pin_count; int madv; struct list_head madv_list; struct sg_table *sgt; void *vaddr; refcount_t vmap_use_count; bool pages_mark_dirty_on_put : 1; bool pages_mark_accessed_on_put : 1; bool map_wc : 1; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jgh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK*hjubj)}(hhh](j)}(h``base`` Base GEM object h](j)}(h``base``h]j)}(hjh]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjubj)}(hhh]h)}(hBase GEM objecth]hBase GEM object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h``pages`` Page table h](j)}(h ``pages``h]j)}(hj-h]hpages}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj'ubj)}(hhh]h)}(h Page tableh]h Page table}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjubj)}(hg``pages_use_count`` Reference count on the pages table. The pages are put when the count reaches zero. h](j)}(h``pages_use_count``h]j)}(hjfh]hpages_use_count}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK%hj`ubj)}(hhh]h)}(hRReference count on the pages table. The pages are put when the count reaches zero.h]hRReference count on the pages table. The pages are put when the count reaches zero.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK$hj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hK%hjubj)}(h``pages_pin_count`` Reference count on the pinned pages table. Pages are hard-pinned and reside in memory if count greater than zero. Otherwise, when count is zero, the pages are allowed to be evicted and purged by memory shrinker. h](j)}(h``pages_pin_count``h]j)}(hjh]hpages_pin_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK0hjubj)}(hhh](h)}(h*Reference count on the pinned pages table.h]h*Reference count on the pinned pages table.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK,hjubh)}(hPages are hard-pinned and reside in memory if count greater than zero. Otherwise, when count is zero, the pages are allowed to be evicted and purged by memory shrinker.h]hPages are hard-pinned and reside in memory if count greater than zero. Otherwise, when count is zero, the pages are allowed to be evicted and purged by memory shrinker.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK.hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK0hjubj)}(h``madv`` State for madvise 0 is active/inuse. A negative value is the object is purged. Positive values are driver specific and not used by the helpers. h](j)}(h``madv``h]j)}(hjh]hmadv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK;hjubj)}(hhh](h)}(hState for madviseh]hState for madvise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK7hjubh)}(h}0 is active/inuse. A negative value is the object is purged. Positive values are driver specific and not used by the helpers.h]h}0 is active/inuse. A negative value is the object is purged. Positive values are driver specific and not used by the helpers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK9hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK;hjubj)}(hd``madv_list`` List entry for madvise tracking Typically used by drivers to track purgeable objects h](j)}(h ``madv_list``h]j)}(hj2h]h madv_list}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKBhj,ubj)}(hhh](h)}(hList entry for madvise trackingh]hList entry for madvise tracking}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK@hjHubh)}(h4Typically used by drivers to track purgeable objectsh]h4Typically used by drivers to track purgeable objects}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhKBhjHubeh}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhKBhjubj)}(h8``sgt`` Scatter/gather table for imported PRIME buffers h](j)}(h``sgt``h]j)}(hjzh]hsgt}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKGhjtubj)}(hhh]h)}(h/Scatter/gather table for imported PRIME buffersh]h/Scatter/gather table for imported PRIME buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKGhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhKGhjubj)}(h7``vaddr`` Kernel virtual address of the backing memory h](j)}(h ``vaddr``h]j)}(hjh]hvaddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKLhjubj)}(hhh]h)}(h,Kernel virtual address of the backing memoryh]h,Kernel virtual address of the backing memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjubj)}(hr``vmap_use_count`` Reference count on the virtual address. The address are un-mapped when the count reaches zero. h](j)}(h``vmap_use_count``h]j)}(hjh]hvmap_use_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKRhjubj)}(hhh]h)}(h^Reference count on the virtual address. The address are un-mapped when the count reaches zero.h]h^Reference count on the virtual address. The address are un-mapped when the count reaches zero.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjubj)}(hC``pages_mark_dirty_on_put`` Mark pages as dirty when they are put. h](j)}(h``pages_mark_dirty_on_put``h]j)}(hj&h]hpages_mark_dirty_on_put}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKYhj ubj)}(hhh]h)}(h&Mark pages as dirty when they are put.h]h&Mark pages as dirty when they are put.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hKYhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hKYhjubj)}(hI``pages_mark_accessed_on_put`` Mark pages as accessed when they are put. h](j)}(h``pages_mark_accessed_on_put``h]j)}(hj_h]hpages_mark_accessed_on_put}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK`hjYubj)}(hhh]h)}(h)Mark pages as accessed when they are put.h]h)Mark pages as accessed when they are put.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthK`hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthK`hjubj)}(hG``map_wc`` map object write-combined (instead of using shmem defaults).h](j)}(h ``map_wc``h]j)}(hjh]hmap_wc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKfhjubj)}(hhh]h)}(h` handler.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjubj)}(hhh]j)}(h2``struct drm_gem_object *obj`` GEM object to free h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjubj)}(hhh]h)}(hGEM object to freeh]hGEM object to free}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjubh)}(hThis function wraps drm_gem_shmem_free(). Drivers that employ the shmem helpers should use it as their :c:type:`drm_gem_object_funcs.free ` handler.h](hgThis function wraps drm_gem_shmem_free(). Drivers that employ the shmem helpers should use it as their }(hjDhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j)}(hjNh]hdrm_gem_object_funcs.free}(hjPhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjDubh handler.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj9hNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB,drm_gem_shmem_object_print_info (C function)!c.drm_gem_shmem_object_print_infohNtauh1j5hjhhhj9hNubjG)}(hhh](jL)}(hsvoid drm_gem_shmem_object_print_info (struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h]jR)}(hrvoid drm_gem_shmem_object_print_info(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(hdrm_gem_shmem_object_print_infoh]j)}(hdrm_gem_shmem_object_print_infoh]hdrm_gem_shmem_object_print_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(hN(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h](j)}(hstruct drm_printer *ph](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsb!c.drm_gem_shmem_object_print_infoasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjTh]hp}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int indenth](j)}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@ubj)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@ubj)}(hindenth]hindent}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const struct drm_gem_object *objh](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j !c.drm_gem_shmem_object_print_infoasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h)}(h5Print :c:type:`drm_gem_shmem_object` info for debugfsh](hPrint }(hj1hhhNhNubh)}(h:c:type:`drm_gem_shmem_object`h]j)}(hj;h]hdrm_gem_shmem_object}(hj=hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j !c.drm_gem_shmem_object_print_infoasbjadrm_gem_shmem_objectuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj1ubh info for debugfs}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj.hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jFhhhjhj9hNubj)}(hXo**Parameters** ``struct drm_printer *p`` DRM printer ``unsigned int indent`` Tab indentation level ``const struct drm_gem_object *obj`` GEM object **Description** This function wraps drm_gem_shmem_print_info(). Drivers that employ the shmem helpers should use this function as their :c:type:`drm_gem_object_funcs.print_info ` handler.h](h)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjvubj)}(hhh](j)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hjh]hstruct drm_printer *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjubj)}(hhh]h)}(h DRM printerh]h DRM printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h.``unsigned int indent`` Tab indentation level h](j)}(h``unsigned int indent``h]j)}(hjh]hunsigned int indent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjubj)}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h0``const struct drm_gem_object *obj`` GEM object h](j)}(h$``const struct drm_gem_object *obj``h]j)}(hj h]h const struct drm_gem_object *obj}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj ubj)}(hhh]h)}(h GEM objecth]h GEM object}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj" hKhj# ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj" hKhjubeh}(h]h ]h"]h$]h&]uh1jhjvubh)}(h**Description**h]j)}(hjH h]h Description}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjvubh)}(hThis function wraps drm_gem_shmem_print_info(). Drivers that employ the shmem helpers should use this function as their :c:type:`drm_gem_object_funcs.print_info ` handler.h](hxThis function wraps drm_gem_shmem_print_info(). Drivers that employ the shmem helpers should use this function as their }(hj^ hhhNhNubh)}(h@:c:type:`drm_gem_object_funcs.print_info `h]j)}(hjh h]hdrm_gem_object_funcs.print_info}(hjj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjf ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj^ ubh handler.}(hj^ hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj9hNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_gem_shmem_object_pin (C function)c.drm_gem_shmem_object_pinhNtauh1j5hjhhhj9hNubjG)}(hhh](jL)}(h9int drm_gem_shmem_object_pin (struct drm_gem_object *obj)h]jR)}(h8int drm_gem_shmem_object_pin(struct drm_gem_object *obj)h](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhj hKubj{)}(hdrm_gem_shmem_object_pinh]j)}(hdrm_gem_shmem_object_pinh]hdrm_gem_shmem_object_pin}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hKubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj !hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj !modnameN classnameNj+j.)}j1]j4)}j'j sbc.drm_gem_shmem_object_pinasbuh1hhj ubjj)}(h h]h }(hj+!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj9!hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hobjh]hobj}(hjF!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj hKhj hhubj)}(hhh]h)}(h+GEM object function for drm_gem_shmem_pin()h]h+GEM object function for drm_gem_shmem_pin()}(hjp!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjm!hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1jFhhhjhj9hNubj)}(h**Parameters** ``struct drm_gem_object *obj`` GEM object **Description** This function wraps drm_gem_shmem_pin(). Drivers that employ the shmem helpers should use it as their :c:type:`drm_gem_object_funcs.pin ` handler.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj!ubj)}(hhh]j)}(h*``struct drm_gem_object *obj`` GEM object h](j)}(h``struct drm_gem_object *obj``h]j)}(hj!h]hstruct drm_gem_object *obj}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj!ubj)}(hhh]h)}(h GEM objecth]h GEM object}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hKhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hKhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubh)}(h**Description**h]j)}(hj!h]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj!ubh)}(hThis function wraps drm_gem_shmem_pin(). Drivers that employ the shmem helpers should use it as their :c:type:`drm_gem_object_funcs.pin ` handler.h](hfThis function wraps drm_gem_shmem_pin(). Drivers that employ the shmem helpers should use it as their }(hj"hhhNhNubh)}(h9:c:type:`drm_gem_object_funcs.pin `h]j)}(hj "h]hdrm_gem_object_funcs.pin}(hj"hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj "ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj"ubh handler.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj)"hKhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj9hNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_gem_shmem_object_unpin (C function)c.drm_gem_shmem_object_unpinhNtauh1j5hjhhhj9hNubjG)}(hhh](jL)}(h` handler.h](h)}(h**Parameters**h]j)}(hj6#h]h Parameters}(hj8#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4#ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj0#ubj)}(hhh]j)}(h*``struct drm_gem_object *obj`` GEM object h](j)}(h``struct drm_gem_object *obj``h]j)}(hjU#h]hstruct drm_gem_object *obj}(hjW#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS#ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjO#ubj)}(hhh]h)}(h GEM objecth]h GEM object}(hjn#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj#hKhjk#ubah}(h]h ]h"]h$]h&]uh1jhjO#ubeh}(h]h ]h"]h$]h&]uh1jhjj#hKhjL#ubah}(h]h ]h"]h$]h&]uh1jhj0#ubh)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj0#ubh)}(hThis function wraps drm_gem_shmem_unpin(). Drivers that employ the shmem helpers should use it as their :c:type:`drm_gem_object_funcs.unpin ` handler.h](hhThis function wraps drm_gem_shmem_unpin(). Drivers that employ the shmem helpers should use it as their }(hj#hhhNhNubh)}(h;:c:type:`drm_gem_object_funcs.unpin `h]j)}(hj#h]hdrm_gem_object_funcs.unpin}(hj#hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj#ubh handler.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#hKhj0#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj9hNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB.drm_gem_shmem_object_get_sg_table (C function)#c.drm_gem_shmem_object_get_sg_tablehNtauh1j5hjhhhj9hNubjG)}(hhh](jL)}(hPstruct sg_table * drm_gem_shmem_object_get_sg_table (struct drm_gem_object *obj)h]jR)}(hNstruct sg_table *drm_gem_shmem_object_get_sg_table(struct drm_gem_object *obj)h](jX)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj#hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKubjj)}(h h]h }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#hhhj$hKubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj$modnameN classnameNj+j.)}j1]j4)}j'!drm_gem_shmem_object_get_sg_tablesb#c.drm_gem_shmem_object_get_sg_tableasbuh1hhj#hhhj$hKubjj)}(h h]h }(hj8$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#hhhj$hKubjH)}(hjKh]h*}(hjF$hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj#hhhj$hKubj{)}(h!drm_gem_shmem_object_get_sg_tableh]j)}(hj5$h]h!drm_gem_shmem_object_get_sg_table}(hjW$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#hhhj$hKubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjr$hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjn$ubjj)}(h h]h }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjn$ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj$modnameN classnameNj+j.)}j1]j3$#c.drm_gem_shmem_object_get_sg_tableasbuh1hhjn$ubjj)}(h h]h }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjn$ubjH)}(hjKh]h*}(hj$hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjn$ubj)}(hobjh]hobj}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjj$ubah}(h]h ]h"]h$]h&]jjuh1jhj#hhhj$hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj#hhhj$hKubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jKhj$hKhj#hhubj)}(hhh]h)}(h4GEM object function for drm_gem_shmem_get_sg_table()h]h4GEM object function for drm_gem_shmem_get_sg_table()}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj$hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj %jj %jjjuh1jFhhhjhj9hNubj)}(hXh**Parameters** ``struct drm_gem_object *obj`` GEM object **Description** This function wraps drm_gem_shmem_get_sg_table(). Drivers that employ the shmem helpers should use it as their :c:type:`drm_gem_object_funcs.get_sg_table ` handler. **Return** A pointer to the scatter/gather table of pinned pages or error pointer on failure.h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj%ubj)}(hhh]j)}(h*``struct drm_gem_object *obj`` GEM object h](j)}(h``struct drm_gem_object *obj``h]j)}(hj4%h]hstruct drm_gem_object *obj}(hj6%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2%ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj.%ubj)}(hhh]h)}(h GEM objecth]h GEM object}(hjM%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI%hKhjJ%ubah}(h]h ]h"]h$]h&]uh1jhj.%ubeh}(h]h ]h"]h$]h&]uh1jhjI%hKhj+%ubah}(h]h ]h"]h$]h&]uh1jhj%ubh)}(h**Description**h]j)}(hjo%h]h Description}(hjq%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm%ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj%ubh)}(hThis function wraps drm_gem_shmem_get_sg_table(). Drivers that employ the shmem helpers should use it as their :c:type:`drm_gem_object_funcs.get_sg_table ` handler.h](hoThis function wraps drm_gem_shmem_get_sg_table(). Drivers that employ the shmem helpers should use it as their }(hj%hhhNhNubh)}(hB:c:type:`drm_gem_object_funcs.get_sg_table `h]j)}(hj%h]h!drm_gem_object_funcs.get_sg_table}(hj%hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj%ubh handler.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%hKhj%ubh)}(h **Return**h]j)}(hj%h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj%ubh)}(hRA pointer to the scatter/gather table of pinned pages or error pointer on failure.h]hRA pointer to the scatter/gather table of pinned pages or error pointer on failure.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj9hNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_gem_shmem_object_mmap (C function)c.drm_gem_shmem_object_mmaphNtauh1j5hjhhhj9hNubjG)}(hhh](jL)}(hVint drm_gem_shmem_object_mmap (struct drm_gem_object *obj, struct vm_area_struct *vma)h]jR)}(hUint drm_gem_shmem_object_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)h](j)}(hinth]hint}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhMubjj)}(h h]h }(hj &hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj%hhhj &hMubj{)}(hdrm_gem_shmem_object_mmaph]j)}(hdrm_gem_shmem_object_mmaph]hdrm_gem_shmem_object_mmap}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj%hhhj &hMubj)}(h8(struct drm_gem_object *obj, struct vm_area_struct *vma)h](j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hj;&hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj7&ubjj)}(h h]h }(hjH&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj7&ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjY&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV&ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj[&modnameN classnameNj+j.)}j1]j4)}j'j!&sbc.drm_gem_shmem_object_mmapasbuh1hhj7&ubjj)}(h h]h }(hjy&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj7&ubjH)}(hjKh]h*}(hj&hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7&ubj)}(hobjh]hobj}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3&ubj)}(hstruct vm_area_struct *vmah](jX)}(hjh]hstruct}(hj&hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj&ubjj)}(h h]h }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj&modnameN classnameNj+j.)}j1]ju&c.drm_gem_shmem_object_mmapasbuh1hhj&ubjj)}(h h]h }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&ubjH)}(hjKh]h*}(hj&hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj&ubj)}(hvmah]hvma}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3&ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj &hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj%hhhj &hMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1jKhj &hMhj%hhubj)}(hhh]h)}(h,GEM object function for drm_gem_shmem_mmap()h]h,GEM object function for drm_gem_shmem_mmap()}(hj.'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhMhj+'hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj &hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjF'jjF'jjjuh1jFhhhjhj9hNubj)}(hXw**Parameters** ``struct drm_gem_object *obj`` GEM object ``struct vm_area_struct *vma`` VMA for the area to be mapped **Description** This function wraps drm_gem_shmem_mmap(). Drivers that employ the shmem helpers should use it as their :c:type:`drm_gem_object_funcs.mmap ` handler. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjP'h]h Parameters}(hjR'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN'ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhM hjJ'ubj)}(hhh](j)}(h*``struct drm_gem_object *obj`` GEM object h](j)}(h``struct drm_gem_object *obj``h]j)}(hjo'h]hstruct drm_gem_object *obj}(hjq'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm'ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhMhji'ubj)}(hhh]h)}(h GEM objecth]h GEM object}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhji'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhjf'ubj)}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](j)}(h``struct vm_area_struct *vma``h]j)}(hj'h]hstruct vm_area_struct *vma}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhMhj'ubj)}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhjf'ubeh}(h]h ]h"]h$]h&]uh1jhjJ'ubh)}(h**Description**h]j)}(hj'h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhM hjJ'ubh)}(hThis function wraps drm_gem_shmem_mmap(). Drivers that employ the shmem helpers should use it as their :c:type:`drm_gem_object_funcs.mmap ` handler.h](hgThis function wraps drm_gem_shmem_mmap(). Drivers that employ the shmem helpers should use it as their }(hj'hhhNhNubh)}(h::c:type:`drm_gem_object_funcs.mmap `h]j)}(hj(h]hdrm_gem_object_funcs.mmap}(hj(hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhM hj'ubh handler.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj (hM hjJ'ubh)}(h **Return**h]j)}(hj-(h]hReturn}(hj/(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+(ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhM hjJ'ubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjC(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhM hjJ'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj9hNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"DRM_GEM_SHMEM_DRIVER_OPS (C macro)c.DRM_GEM_SHMEM_DRIVER_OPShNtauh1j5hjhhhj9hNubjG)}(hhh](jL)}(hDRM_GEM_SHMEM_DRIVER_OPSh]jR)}(hDRM_GEM_SHMEM_DRIVER_OPSh]j{)}(hDRM_GEM_SHMEM_DRIVER_OPSh]j)}(hjl(h]hDRM_GEM_SHMEM_DRIVER_OPS}(hjv(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjn(hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhM%ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjj(hhhj(hM%ubah}(h]je(ah ](jjeh"]h$]h&]jj)jhuh1jKhj(hM%hjg(hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjg(hhhj(hM%ubeh}(h]h ](jmacroeh"]h$]h&]jjjj(jj(jjjuh1jFhhhjhj9hNubh)}(h``DRM_GEM_SHMEM_DRIVER_OPS``h]j)}(hj(h]hDRM_GEM_SHMEM_DRIVER_OPS}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhM'hjhhubj)}(h Default shmem GEM operations **Description** This macro provides a shortcut for setting the shmem GEM operations in the :c:type:`drm_driver` structure. Drivers that do not require an s/g table for imported buffers should use this. h](j)}(hDefault shmem GEM operations h]h)}(hDefault shmem GEM operationsh]hDefault shmem GEM operations}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhM%hj(ubah}(h]h ]h"]h$]h&]uh1jhj(hM%hj(ubh)}(h**Description**h]j)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhM'hj(ubh)}(hThis macro provides a shortcut for setting the shmem GEM operations in the :c:type:`drm_driver` structure. Drivers that do not require an s/g table for imported buffers should use this.h](hKThis macro provides a shortcut for setting the shmem GEM operations in the }(hj(hhhNhNubh)}(h:c:type:`drm_driver`h]j)}(hj(h]h drm_driver}(hj(hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhM&hj(ubhZ structure. Drivers that do not require an s/g table for imported buffers should use this.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj)hM&hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hM%hjhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_shmem_init (C function)c.drm_gem_shmem_inithNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h`int drm_gem_shmem_init (struct drm_device *dev, struct drm_gem_shmem_object *shmem, size_t size)h]jR)}(h_int drm_gem_shmem_init(struct drm_device *dev, struct drm_gem_shmem_object *shmem, size_t size)h](j)}(hinth]hint}(hjD)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@)hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKcubjj)}(h h]h }(hjS)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@)hhhjR)hKcubj{)}(hdrm_gem_shmem_inith]j)}(hdrm_gem_shmem_inith]hdrm_gem_shmem_init}(hje)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja)ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj@)hhhjR)hKcubj)}(hI(struct drm_device *dev, struct drm_gem_shmem_object *shmem, size_t size)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj})ubjj)}(h h]h }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj})ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj)modnameN classnameNj+j.)}j1]j4)}j'jg)sbc.drm_gem_shmem_initasbuh1hhj})ubjj)}(h h]h }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj})ubjH)}(hjKh]h*}(hj)hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj})ubj)}(hdevh]hdev}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj})ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy)ubj)}(h"struct drm_gem_shmem_object *shmemh](jX)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj)ubjj)}(h h]h }(hj*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj)ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj*modnameN classnameNj+j.)}j1]j)c.drm_gem_shmem_initasbuh1hhj)ubjj)}(h h]h }(hj/*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj)ubjH)}(hjKh]h*}(hj=*hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj)ubj)}(hshmemh]hshmem}(hjJ*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy)ubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjf*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc*ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjh*modnameN classnameNj+j.)}j1]j)c.drm_gem_shmem_initasbuh1hhj_*ubjj)}(h h]h }(hj*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_*ubj)}(hsizeh]hsize}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy)ubeh}(h]h ]h"]h$]h&]jjuh1jhj@)hhhjR)hKcubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj<)hhhjR)hKcubah}(h]j7)ah ](jjeh"]h$]h&]jj)jhuh1jKhjR)hKchj9)hhubj)}(hhh]h)}(hInitialize an allocated object.h]hInitialize an allocated object.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKchj*hhubah}(h]h ]h"]h$]h&]uh1jhj9)hhhjR)hKcubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1jFhhhjhNhNubj)}(hX3**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_gem_shmem_object *shmem`` shmem GEM object to initialize ``size_t size`` Buffer size in bytes **Description** This function initializes an allocated shmem GEM object. **Return** 0 on success, or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKghj*ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj*h]hstruct drm_device *dev}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKdhj*ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hKdhj+ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj+hKdhj*ubj)}(hF``struct drm_gem_shmem_object *shmem`` shmem GEM object to initialize h](j)}(h&``struct drm_gem_shmem_object *shmem``h]j)}(hj6+h]h"struct drm_gem_shmem_object *shmem}(hj8+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4+ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKehj0+ubj)}(hhh]h)}(hshmem GEM object to initializeh]hshmem GEM object to initialize}(hjO+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK+hKehjL+ubah}(h]h ]h"]h$]h&]uh1jhj0+ubeh}(h]h ]h"]h$]h&]uh1jhjK+hKehj*ubj)}(h%``size_t size`` Buffer size in bytes h](j)}(h``size_t size``h]j)}(hjo+h]h size_t size}(hjq+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm+ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKfhji+ubj)}(hhh]h)}(hBuffer size in bytesh]hBuffer size in bytes}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hKfhj+ubah}(h]h ]h"]h$]h&]uh1jhji+ubeh}(h]h ]h"]h$]h&]uh1jhj+hKfhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*ubh)}(h**Description**h]j)}(hj+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhhj*ubh)}(h8This function initializes an allocated shmem GEM object.h]h8This function initializes an allocated shmem GEM object.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKghj*ubh)}(h **Return**h]j)}(hj+h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKihj*ubh)}(h20 on success, or a negative error code on failure.h]h20 on success, or a negative error code on failure.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKjhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!drm_gem_shmem_create (C function)c.drm_gem_shmem_createhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hXstruct drm_gem_shmem_object * drm_gem_shmem_create (struct drm_device *dev, size_t size)h]jR)}(hVstruct drm_gem_shmem_object *drm_gem_shmem_create(struct drm_device *dev, size_t size)h](jX)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj,hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKubjj)}(h h]h }(hj$,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,hhhj#,hKubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj5,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2,ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj7,modnameN classnameNj+j.)}j1]j4)}j'drm_gem_shmem_createsbc.drm_gem_shmem_createasbuh1hhj,hhhj#,hKubjj)}(h h]h }(hjV,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,hhhj#,hKubjH)}(hjKh]h*}(hjd,hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj,hhhj#,hKubj{)}(hdrm_gem_shmem_createh]j)}(hjS,h]hdrm_gem_shmem_create}(hju,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj#,hKubj)}(h%(struct drm_device *dev, size_t size)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj,ubjj)}(h h]h }(hj,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj,modnameN classnameNj+j.)}j1]jQ,c.drm_gem_shmem_createasbuh1hhj,ubjj)}(h h]h }(hj,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,ubjH)}(hjKh]h*}(hj,hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj,ubj)}(hdevh]hdev}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj-modnameN classnameNj+j.)}j1]jQ,c.drm_gem_shmem_createasbuh1hhj,ubjj)}(h h]h }(hj!-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,ubj)}(hsizeh]hsize}(hj/-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj#,hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj,hhhj#,hKubah}(h]j ,ah ](jjeh"]h$]h&]jj)jhuh1jKhj#,hKhj ,hhubj)}(hhh]h)}(h&Allocate an object with the given sizeh]h&Allocate an object with the given size}(hjY-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhjV-hhubah}(h]h ]h"]h$]h&]uh1jhj ,hhhj#,hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjq-jjq-jjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``size_t size`` Size of the object to allocate **Description** This function creates a shmem GEM object. **Return** A struct drm_gem_shmem_object * on success or an ERR_PTR()-encoded negative error code on failure.h](h)}(h**Parameters**h]j)}(hj{-h]h Parameters}(hj}-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy-ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhju-ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj-h]hstruct drm_device *dev}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj-ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hKhj-ubj)}(h/``size_t size`` Size of the object to allocate h](j)}(h``size_t size``h]j)}(hj-h]h size_t size}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj-ubj)}(hhh]h)}(hSize of the object to allocateh]hSize of the object to allocate}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hKhj-ubeh}(h]h ]h"]h$]h&]uh1jhju-ubh)}(h**Description**h]j)}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj .ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhju-ubh)}(h)This function creates a shmem GEM object.h]h)This function creates a shmem GEM object.}(hj$.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhju-ubh)}(h **Return**h]j)}(hj5.h]hReturn}(hj7.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3.ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhju-ubh)}(hbA struct drm_gem_shmem_object * on success or an ERR_PTR()-encoded negative error code on failure.h]hbA struct drm_gem_shmem_object * on success or an ERR_PTR()-encoded negative error code on failure.}(hjK.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhju-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_gem_shmem_release (C function)c.drm_gem_shmem_releasehNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h?void drm_gem_shmem_release (struct drm_gem_shmem_object *shmem)h]jR)}(h>void drm_gem_shmem_release(struct drm_gem_shmem_object *shmem)h](j)}(hvoidh]hvoid}(hjz.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv.hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKubjj)}(h h]h }(hj.hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjv.hhhj.hKubj{)}(hdrm_gem_shmem_releaseh]j)}(hdrm_gem_shmem_releaseh]hdrm_gem_shmem_release}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjv.hhhj.hKubj)}(h$(struct drm_gem_shmem_object *shmem)h]j)}(h"struct drm_gem_shmem_object *shmemh](jX)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj.ubjj)}(h h]h }(hj.hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj.ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj.modnameN classnameNj+j.)}j1]j4)}j'j.sbc.drm_gem_shmem_releaseasbuh1hhj.ubjj)}(h h]h }(hj.hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj.ubjH)}(hjKh]h*}(hj/hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj.ubj)}(hshmemh]hshmem}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubah}(h]h ]h"]h$]h&]jjuh1jhjv.hhhj.hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjr.hhhj.hKubah}(h]jm.ah ](jjeh"]h$]h&]jj)jhuh1jKhj.hKhjo.hhubj)}(hhh]h)}(h5Release resources associated with a shmem GEM object.h]h5Release resources associated with a shmem GEM object.}(hj:/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj7/hhubah}(h]h ]h"]h$]h&]uh1jhjo.hhhj.hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjR/jjR/jjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_gem_shmem_object *shmem`` shmem GEM object **Description** This function cleans up the GEM object state, but does not free the memory used to store the object itself. This function is meant to be a dedicated helper for the Rust GEM bindings.h](h)}(h**Parameters**h]j)}(hj\/h]h Parameters}(hj^/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ/ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhjV/ubj)}(hhh]j)}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](j)}(h&``struct drm_gem_shmem_object *shmem``h]j)}(hj{/h]h"struct drm_gem_shmem_object *shmem}(hj}/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy/ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhju/ubj)}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hKhj/ubah}(h]h ]h"]h$]h&]uh1jhju/ubeh}(h]h ]h"]h$]h&]uh1jhj/hKhjr/ubah}(h]h ]h"]h$]h&]uh1jhjV/ubh)}(h**Description**h]j)}(hj/h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhjV/ubh)}(hThis function cleans up the GEM object state, but does not free the memory used to store the object itself. This function is meant to be a dedicated helper for the Rust GEM bindings.h]hThis function cleans up the GEM object state, but does not free the memory used to store the object itself. This function is meant to be a dedicated helper for the Rust GEM bindings.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhjV/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_shmem_free (C function)c.drm_gem_shmem_freehNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:4hMNhj;4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj:4hMNhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]j)}(hj`4h]h Description}(hjb4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^4ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMPhj4ubh)}(hRThis function removes the requirement that the backing pages are pinned in memory.h]hRThis function removes the requirement that the backing pages are pinned in memory.}(hjv4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMOhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_gem_shmem_dumb_create (C function)c.drm_gem_shmem_dumb_createhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hpint drm_gem_shmem_dumb_create (struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h]jR)}(hoint drm_gem_shmem_dumb_create(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h](j)}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubjj)}(h h]h }(hj4hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4hhhj4hMubj{)}(hdrm_gem_shmem_dumb_createh]j)}(hdrm_gem_shmem_dumb_createh]hdrm_gem_shmem_dumb_create}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj4hhhj4hMubj)}(hR(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h](j)}(hstruct drm_file *fileh](jX)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj4ubjj)}(h h]h }(hj4hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj5modnameN classnameNj+j.)}j1]j4)}j'j4sbc.drm_gem_shmem_dumb_createasbuh1hhj4ubjj)}(h h]h }(hj 5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4ubjH)}(hjKh]h*}(hj.5hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj4ubj)}(hfileh]hfile}(hj;5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjT5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjP5ubjj)}(h h]h }(hja5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjP5ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjr5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo5ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjt5modnameN classnameNj+j.)}j1]j5c.drm_gem_shmem_dumb_createasbuh1hhjP5ubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjP5ubjH)}(hjKh]h*}(hj5hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjP5ubj)}(hdevh]hdev}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(h!struct drm_mode_create_dumb *argsh](jX)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj5ubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubh)}(hhh]j)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj5modnameN classnameNj+j.)}j1]j5c.drm_gem_shmem_dumb_createasbuh1hhj5ubjj)}(h h]h }(hj6hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubjH)}(hjKh]h*}(hj6hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj5ubj)}(hargsh]hargs}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubeh}(h]h ]h"]h$]h&]jjuh1jhj4hhhj4hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj4hhhj4hMubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1jKhj4hMhj4hhubj)}(hhh]h)}(h!Create a dumb shmem buffer objecth]h!Create a dumb shmem buffer object}(hjE6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjB6hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]6jj]6jjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_file *file`` DRM file structure to create the dumb buffer for ``struct drm_device *dev`` DRM device ``struct drm_mode_create_dumb *args`` IOCTL data **Description** This function computes the pitch of the dumb buffer and rounds it up to an integer number of bytes per pixel. Drivers for hardware that doesn't have any additional restrictions on the pitch can directly use this function as their :c:type:`drm_driver.dumb_create ` callback. For hardware with additional restrictions, drivers can adjust the fields set up by userspace before calling into this function. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjg6h]h Parameters}(hji6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje6ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhja6ubj)}(hhh](j)}(hK``struct drm_file *file`` DRM file structure to create the dumb buffer for h](j)}(h``struct drm_file *file``h]j)}(hj6h]hstruct drm_file *file}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj6ubj)}(hhh]h)}(h0DRM file structure to create the dumb buffer forh]h0DRM file structure to create the dumb buffer for}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj}6ubj)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj6h]hstruct drm_device *dev}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj6ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj}6ubj)}(h1``struct drm_mode_create_dumb *args`` IOCTL data h](j)}(h%``struct drm_mode_create_dumb *args``h]j)}(hj6h]h!struct drm_mode_create_dumb *args}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj6ubj)}(hhh]h)}(h IOCTL datah]h IOCTL data}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj 7hMhj}6ubeh}(h]h ]h"]h$]h&]uh1jhja6ubh)}(h**Description**h]j)}(hj37h]h Description}(hj57hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj17ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhja6ubh)}(hXThis function computes the pitch of the dumb buffer and rounds it up to an integer number of bytes per pixel. Drivers for hardware that doesn't have any additional restrictions on the pitch can directly use this function as their :c:type:`drm_driver.dumb_create ` callback.h](hThis function computes the pitch of the dumb buffer and rounds it up to an integer number of bytes per pixel. Drivers for hardware that doesn’t have any additional restrictions on the pitch can directly use this function as their }(hjI7hhhNhNubh)}(h-:c:type:`drm_driver.dumb_create `h]j)}(hjS7h]hdrm_driver.dumb_create}(hjU7hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjQ7ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjI7ubh callback.}(hjI7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjp7hMhja6ubh)}(hFor hardware with additional restrictions, drivers can adjust the fields set up by userspace before calling into this function.h]hFor hardware with additional restrictions, drivers can adjust the fields set up by userspace before calling into this function.}(hj{7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhja6ubh)}(h **Return**h]j)}(hj7h]hReturn}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhja6ubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhja6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_shmem_mmap (C function)c.drm_gem_shmem_mmaphNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hWint drm_gem_shmem_mmap (struct drm_gem_shmem_object *shmem, struct vm_area_struct *vma)h]jR)}(hVint drm_gem_shmem_mmap(struct drm_gem_shmem_object *shmem, struct vm_area_struct *vma)h](j)}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubjj)}(h h]h }(hj7hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj7hhhj7hMubj{)}(hdrm_gem_shmem_mmaph]j)}(hdrm_gem_shmem_mmaph]hdrm_gem_shmem_mmap}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7hhhj7hMubj)}(h@(struct drm_gem_shmem_object *shmem, struct vm_area_struct *vma)h](j)}(h"struct drm_gem_shmem_object *shmemh](jX)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj 8ubjj)}(h h]h }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj 8ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj,8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)8ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj.8modnameN classnameNj+j.)}j1]j4)}j'j7sbc.drm_gem_shmem_mmapasbuh1hhj 8ubjj)}(h h]h }(hjL8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj 8ubjH)}(hjKh]h*}(hjZ8hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj 8ubj)}(hshmemh]hshmem}(hjg8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hstruct vm_area_struct *vmah](jX)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj|8ubjj)}(h h]h }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj|8ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj8modnameN classnameNj+j.)}j1]jH8c.drm_gem_shmem_mmapasbuh1hhj|8ubjj)}(h h]h }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj|8ubjH)}(hjKh]h*}(hj8hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj|8ubj)}(hvmah]hvma}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj7hhhj7hMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jKhj7hMhj7hhubj)}(hhh]h)}(hMemory-map a shmem GEM objecth]hMemory-map a shmem GEM object}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jFhhhjhNhNubj)}(hX>**Parameters** ``struct drm_gem_shmem_object *shmem`` shmem GEM object ``struct vm_area_struct *vma`` VMA for the area to be mapped **Description** This function implements an augmented version of the GEM DRM file mmap operation for shmem objects. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hj#9h]h Parameters}(hj%9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!9ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj9ubj)}(hhh](j)}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](j)}(h&``struct drm_gem_shmem_object *shmem``h]j)}(hjB9h]h"struct drm_gem_shmem_object *shmem}(hjD9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@9ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj<9ubj)}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hj[9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW9hMhjX9ubah}(h]h ]h"]h$]h&]uh1jhj<9ubeh}(h]h ]h"]h$]h&]uh1jhjW9hMhj99ubj)}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](j)}(h``struct vm_area_struct *vma``h]j)}(hj{9h]hstruct vm_area_struct *vma}(hj}9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy9ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhju9ubj)}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhju9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj99ubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj9ubh)}(hcThis function implements an augmented version of the GEM DRM file mmap operation for shmem objects.h]hcThis function implements an augmented version of the GEM DRM file mmap operation for shmem objects.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj9ubh)}(h **Return**h]j)}(hj9h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj9ubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_gem_shmem_print_info (C function)c.drm_gem_shmem_print_infohNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(htvoid drm_gem_shmem_print_info (const struct drm_gem_shmem_object *shmem, struct drm_printer *p, unsigned int indent)h]jR)}(hsvoid drm_gem_shmem_print_info(const struct drm_gem_shmem_object *shmem, struct drm_printer *p, unsigned int indent)h](j)}(hvoidh]hvoid}(hj":hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubjj)}(h h]h }(hj1:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:hhhj0:hMubj{)}(hdrm_gem_shmem_print_infoh]j)}(hdrm_gem_shmem_print_infoh]hdrm_gem_shmem_print_info}(hjC:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhhj0:hMubj)}(hV(const struct drm_gem_shmem_object *shmem, struct drm_printer *p, unsigned int indent)h](j)}(h(const struct drm_gem_shmem_object *shmemh](jX)}(hj h]hconst}(hj_:hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[:ubjj)}(h h]h }(hjl:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[:ubjX)}(hjh]hstruct}(hjz:hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[:ubjj)}(h h]h }(hj:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[:ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj:modnameN classnameNj+j.)}j1]j4)}j'jE:sbc.drm_gem_shmem_print_infoasbuh1hhj[:ubjj)}(h h]h }(hj:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[:ubjH)}(hjKh]h*}(hj:hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj[:ubj)}(hshmemh]hshmem}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjW:ubj)}(hstruct drm_printer *ph](jX)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj:ubjj)}(h h]h }(hj:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj ;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj ;modnameN classnameNj+j.)}j1]j:c.drm_gem_shmem_print_infoasbuh1hhj:ubjj)}(h h]h }(hj(;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:ubjH)}(hjKh]h*}(hj6;hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj:ubj)}(hjTh]hp}(hjC;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjW:ubj)}(hunsigned int indenth](j)}(hunsignedh]hunsigned}(hj[;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW;ubjj)}(h h]h }(hji;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjW;ubj)}(hinth]hint}(hjw;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW;ubjj)}(h h]h }(hj;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjW;ubj)}(hindenth]hindent}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjW:ubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhj0:hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj:hhhj0:hMubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1jKhj0:hMhj:hhubj)}(hhh]h)}(h5Print :c:type:`drm_gem_shmem_object` info for debugfsh](hPrint }(hj;hhhNhNubh)}(h:c:type:`drm_gem_shmem_object`h]j)}(hj;h]hdrm_gem_shmem_object}(hj;hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j:c.drm_gem_shmem_print_infoasbjadrm_gem_shmem_objectuh1hhjR)hKchj;ubh info for debugfs}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj;hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj0:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1jFhhhjhNhNubj)}(h**Parameters** ``const struct drm_gem_shmem_object *shmem`` shmem GEM object ``struct drm_printer *p`` DRM printer ``unsigned int indent`` Tab indentation levelh](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj <hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj<ubj)}(hhh](j)}(h>``const struct drm_gem_shmem_object *shmem`` shmem GEM object h](j)}(h,``const struct drm_gem_shmem_object *shmem``h]j)}(hj&<h]h(const struct drm_gem_shmem_object *shmem}(hj(<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$<ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj <ubj)}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hj?<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;<hMhj<<ubah}(h]h ]h"]h$]h&]uh1jhj <ubeh}(h]h ]h"]h$]h&]uh1jhj;<hMhj<ubj)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hj_<h]hstruct drm_printer *p}(hja<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]<ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjY<ubj)}(hhh]h)}(h DRM printerh]h DRM printer}(hjx<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt<hMhju<ubah}(h]h ]h"]h$]h&]uh1jhjY<ubeh}(h]h ]h"]h$]h&]uh1jhjt<hMhj<ubj)}(h-``unsigned int indent`` Tab indentation levelh](j)}(h``unsigned int indent``h]j)}(hj<h]hunsigned int indent}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj<ubj)}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_gem_shmem_get_sg_table (C function)c.drm_gem_shmem_get_sg_tablehNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hQstruct sg_table * drm_gem_shmem_get_sg_table (struct drm_gem_shmem_object *shmem)h]jR)}(hOstruct sg_table *drm_gem_shmem_get_sg_table(struct drm_gem_shmem_object *shmem)h](jX)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj<hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<hhhj<hMubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj=modnameN classnameNj+j.)}j1]j4)}j'drm_gem_shmem_get_sg_tablesbc.drm_gem_shmem_get_sg_tableasbuh1hhj<hhhj<hMubjj)}(h h]h }(hj2=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<hhhj<hMubjH)}(hjKh]h*}(hj@=hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj<hhhj<hMubj{)}(hdrm_gem_shmem_get_sg_tableh]j)}(hj/=h]hdrm_gem_shmem_get_sg_table}(hjQ=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM=ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj<hhhj<hMubj)}(h$(struct drm_gem_shmem_object *shmem)h]j)}(h"struct drm_gem_shmem_object *shmemh](jX)}(hjh]hstruct}(hjl=hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjh=ubjj)}(h h]h }(hjy=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjh=ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj=modnameN classnameNj+j.)}j1]j-=c.drm_gem_shmem_get_sg_tableasbuh1hhjh=ubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjh=ubjH)}(hjKh]h*}(hj=hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjh=ubj)}(hshmemh]hshmem}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd=ubah}(h]h ]h"]h$]h&]jjuh1jhj<hhhj<hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj<hhhj<hMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1jKhj<hMhj<hhubj)}(hhh]h)}(hEProvide a scatter/gather table of pinned pages for a shmem GEM objecth]hEProvide a scatter/gather table of pinned pages for a shmem GEM object}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhj<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_gem_shmem_object *shmem`` shmem GEM object **Description** This function exports a scatter/gather table suitable for PRIME usage by calling the standard DMA mapping API. Drivers who need to acquire an scatter/gather table for objects need to call drm_gem_shmem_get_pages_sgt() instead. **Return** A pointer to the scatter/gather table of pinned pages or error pointer on failure.h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj >ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chM hj >ubj)}(hhh]j)}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](j)}(h&``struct drm_gem_shmem_object *shmem``h]j)}(hj.>h]h"struct drm_gem_shmem_object *shmem}(hj0>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,>ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chM hj(>ubj)}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hjG>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjC>hM hjD>ubah}(h]h ]h"]h$]h&]uh1jhj(>ubeh}(h]h ]h"]h$]h&]uh1jhjC>hM hj%>ubah}(h]h ]h"]h$]h&]uh1jhj >ubh)}(h**Description**h]j)}(hji>h]h Description}(hjk>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg>ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chM hj >ubh)}(hnThis function exports a scatter/gather table suitable for PRIME usage by calling the standard DMA mapping API.h]hnThis function exports a scatter/gather table suitable for PRIME usage by calling the standard DMA mapping API.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chM hj >ubh)}(hsDrivers who need to acquire an scatter/gather table for objects need to call drm_gem_shmem_get_pages_sgt() instead.h]hsDrivers who need to acquire an scatter/gather table for objects need to call drm_gem_shmem_get_pages_sgt() instead.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chM hj >ubh)}(h **Return**h]j)}(hj>h]hReturn}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj >ubh)}(hRA pointer to the scatter/gather table of pinned pages or error pointer on failure.h]hRA pointer to the scatter/gather table of pinned pages or error pointer on failure.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj >ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_gem_shmem_get_pages_sgt (C function)c.drm_gem_shmem_get_pages_sgthNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hRstruct sg_table * drm_gem_shmem_get_pages_sgt (struct drm_gem_shmem_object *shmem)h]jR)}(hPstruct sg_table *drm_gem_shmem_get_pages_sgt(struct drm_gem_shmem_object *shmem)h](jX)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj>hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMDubjj)}(h h]h }(hj>hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>hhhj>hMDubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj?modnameN classnameNj+j.)}j1]j4)}j'drm_gem_shmem_get_pages_sgtsbc.drm_gem_shmem_get_pages_sgtasbuh1hhj>hhhj>hMDubjj)}(h h]h }(hj$?hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>hhhj>hMDubjH)}(hjKh]h*}(hj2?hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj>hhhj>hMDubj{)}(hdrm_gem_shmem_get_pages_sgth]j)}(hj!?h]hdrm_gem_shmem_get_pages_sgt}(hjC?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj??ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhj>hMDubj)}(h$(struct drm_gem_shmem_object *shmem)h]j)}(h"struct drm_gem_shmem_object *shmemh](jX)}(hjh]hstruct}(hj^?hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjZ?ubjj)}(h h]h }(hjk?hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjZ?ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj|?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy?ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj~?modnameN classnameNj+j.)}j1]j?c.drm_gem_shmem_get_pages_sgtasbuh1hhjZ?ubjj)}(h h]h }(hj?hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjZ?ubjH)}(hjKh]h*}(hj?hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjZ?ubj)}(hshmemh]hshmem}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjV?ubah}(h]h ]h"]h$]h&]jjuh1jhj>hhhj>hMDubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj>hhhj>hMDubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jKhj>hMDhj>hhubj)}(hhh]h)}(hRPin pages, dma map them, and return a scatter/gather table for a shmem GEM object.h]hRPin pages, dma map them, and return a scatter/gather table for a shmem GEM object.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMDhj?hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj>hMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1jFhhhjhNhNubj)}(hX2**Parameters** ``struct drm_gem_shmem_object *shmem`` shmem GEM object **Description** This function returns a scatter/gather table suitable for driver usage. If the sg table doesn't exist, the pages are pinned, dma-mapped, and a sg table created. This is the main function for drivers to get at backing storage, and it hides and difference between dma-buf imported and natively allocated objects. drm_gem_shmem_get_sg_table() should not be directly called by drivers. **Return** A pointer to the scatter/gather table of pinned pages or errno on failure.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMHhj?ubj)}(hhh]j)}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](j)}(h&``struct drm_gem_shmem_object *shmem``h]j)}(hj @h]h"struct drm_gem_shmem_object *shmem}(hj"@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMFhj@ubj)}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hj9@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5@hMFhj6@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj5@hMFhj@ubah}(h]h ]h"]h$]h&]uh1jhj?ubh)}(h**Description**h]j)}(hj[@h]h Description}(hj]@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY@ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMHhj?ubh)}(hThis function returns a scatter/gather table suitable for driver usage. If the sg table doesn't exist, the pages are pinned, dma-mapped, and a sg table created.h]hThis function returns a scatter/gather table suitable for driver usage. If the sg table doesn’t exist, the pages are pinned, dma-mapped, and a sg table created.}(hjq@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMGhj?ubh)}(hThis is the main function for drivers to get at backing storage, and it hides and difference between dma-buf imported and natively allocated objects. drm_gem_shmem_get_sg_table() should not be directly called by drivers.h]hThis is the main function for drivers to get at backing storage, and it hides and difference between dma-buf imported and natively allocated objects. drm_gem_shmem_get_sg_table() should not be directly called by drivers.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMKhj?ubh)}(h **Return**h]j)}(hj@h]hReturn}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMOhj?ubh)}(hJA pointer to the scatter/gather table of pinned pages or errno on failure.h]hJA pointer to the scatter/gather table of pinned pages or errno on failure.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMPhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB0drm_gem_shmem_prime_import_sg_table (C function)%c.drm_gem_shmem_prime_import_sg_tablehNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hstruct drm_gem_object * drm_gem_shmem_prime_import_sg_table (struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h]jR)}(hstruct drm_gem_object *drm_gem_shmem_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h](jX)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj@hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMcubjj)}(h h]h }(hj@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@hhhj@hMcubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj@modnameN classnameNj+j.)}j1]j4)}j'#drm_gem_shmem_prime_import_sg_tablesb%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhj@hhhj@hMcubjj)}(h h]h }(hjAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@hhhj@hMcubjH)}(hjKh]h*}(hj$AhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj@hhhj@hMcubj{)}(h#drm_gem_shmem_prime_import_sg_tableh]j)}(hjAh]h#drm_gem_shmem_prime_import_sg_table}(hj5AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Aubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj@hhhj@hMcubj)}(hQ(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjPAhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjLAubjj)}(h h]h }(hj]AhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjLAubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjnAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkAubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjpAmodnameN classnameNj+j.)}j1]jA%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhjLAubjj)}(h h]h }(hjAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjLAubjH)}(hjKh]h*}(hjAhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjLAubj)}(hdevh]hdev}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHAubj)}(h!struct dma_buf_attachment *attachh](jX)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjAubjj)}(h h]h }(hjAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjAubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjAmodnameN classnameNj+j.)}j1]jA%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhjAubjj)}(h h]h }(hjAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjAubjH)}(hjKh]h*}(hj BhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjAubj)}(hattachh]hattach}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHAubj)}(hstruct sg_table *sgth](jX)}(hjh]hstruct}(hj0BhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj,Bubjj)}(h h]h }(hj=BhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,Bubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjNBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKBubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjPBmodnameN classnameNj+j.)}j1]jA%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhj,Bubjj)}(h h]h }(hjlBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,BubjH)}(hjKh]h*}(hjzBhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj,Bubj)}(hsgth]hsgt}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Bubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHAubeh}(h]h ]h"]h$]h&]jjuh1jhj@hhhj@hMcubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj@hhhj@hMcubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1jKhj@hMchj@hhubj)}(hhh]h)}(hUProduce a shmem GEM object from another driver's scatter/gather table of pinned pagesh]hWProduce a shmem GEM object from another driver’s scatter/gather table of pinned pages}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMchjBhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_device *dev`` Device to import into ``struct dma_buf_attachment *attach`` DMA-BUF attachment ``struct sg_table *sgt`` Scatter/gather table of pinned pages **Description** This function imports a scatter/gather table exported via DMA-BUF by another driver. Drivers that use the shmem helpers should set this as their :c:type:`drm_driver.gem_prime_import_sg_table ` callback. **Return** A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.h](h)}(h**Parameters**h]j)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMghjBubj)}(hhh](j)}(h1``struct drm_device *dev`` Device to import into h](j)}(h``struct drm_device *dev``h]j)}(hjBh]hstruct drm_device *dev}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMehjBubj)}(hhh]h)}(hDevice to import intoh]hDevice to import into}(hj ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMehjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjChMehjBubj)}(h9``struct dma_buf_attachment *attach`` DMA-BUF attachment h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hj+Ch]h!struct dma_buf_attachment *attach}(hj-ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)Cubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMfhj%Cubj)}(hhh]h)}(hDMA-BUF attachmenth]hDMA-BUF attachment}(hjDChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@ChMfhjACubah}(h]h ]h"]h$]h&]uh1jhj%Cubeh}(h]h ]h"]h$]h&]uh1jhj@ChMfhjBubj)}(h>``struct sg_table *sgt`` Scatter/gather table of pinned pages h](j)}(h``struct sg_table *sgt``h]j)}(hjdCh]hstruct sg_table *sgt}(hjfChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbCubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMghj^Cubj)}(hhh]h)}(h$Scatter/gather table of pinned pagesh]h$Scatter/gather table of pinned pages}(hj}ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyChMghjzCubah}(h]h ]h"]h$]h&]uh1jhj^Cubeh}(h]h ]h"]h$]h&]uh1jhjyChMghjBubeh}(h]h ]h"]h$]h&]uh1jhjBubh)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMihjBubh)}(hThis function imports a scatter/gather table exported via DMA-BUF by another driver. Drivers that use the shmem helpers should set this as their :c:type:`drm_driver.gem_prime_import_sg_table ` callback.h](hThis function imports a scatter/gather table exported via DMA-BUF by another driver. Drivers that use the shmem helpers should set this as their }(hjChhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j)}(hjCh]h$drm_driver.gem_prime_import_sg_table}(hjChhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhhjCubh callback.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjChMhhjBubh)}(h **Return**h]j)}(hjCh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMlhjBubh)}(h]A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.h]h]A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMmhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB.drm_gem_shmem_prime_import_no_map (C function)#c.drm_gem_shmem_prime_import_no_maphNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hkstruct drm_gem_object * drm_gem_shmem_prime_import_no_map (struct drm_device *dev, struct dma_buf *dma_buf)h]jR)}(histruct drm_gem_object *drm_gem_shmem_prime_import_no_map(struct drm_device *dev, struct dma_buf *dma_buf)h](jX)}(hjh]hstruct}(hj.DhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj*Dhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubjj)}(h h]h }(hj` implementation.h](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjEubj)}(hhh](j)}(h1``struct drm_device *dev`` Device to import into h](j)}(h``struct drm_device *dev``h]j)}(hjEh]hstruct drm_device *dev}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjEubj)}(hhh]h)}(hDevice to import intoh]hDevice to import into}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjEubj)}(h5``struct dma_buf *dma_buf`` dma-buf object to import h](j)}(h``struct dma_buf *dma_buf``h]j)}(hjFh]hstruct dma_buf *dma_buf}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj Fubj)}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hj,FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(FhMhj)Fubah}(h]h ]h"]h$]h&]uh1jhj Fubeh}(h]h ]h"]h$]h&]uh1jhj(FhMhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hjNFh]h Description}(hjPFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLFubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjEubh)}(hDrivers that use the shmem helpers but also wants to import dmabuf without mapping its sg_table can use this as their :c:type:`drm_driver.gem_prime_import ` implementation.h](hvDrivers that use the shmem helpers but also wants to import dmabuf without mapping its sg_table can use this as their }(hjdFhhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j)}(hjnFh]hdrm_driver.gem_prime_import}(hjpFhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjlFubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjdFubh implementation.}(hjdFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjFhMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]#gem-shmem-helper-function-referenceah ]h"]#gem shmem helper function referenceah$]h&]uh1hhjzhhhhhMubh)}(hhh](h)}(h#GEM VRAM Helper Functions Referenceh]h#GEM VRAM Helper Functions Reference}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhhhhhMubh)}(hThis library provides :c:type:`struct drm_gem_vram_object ` (GEM VRAM), a GEM buffer object that is backed by video RAM (VRAM). It can be used for framebuffer devices with dedicated memory.h](hThis library provides }(hjFhhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j)}(hjFh]hstruct drm_gem_vram_object}(hjFhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_vram_objectuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:402: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjFubh (GEM VRAM), a GEM buffer object that is backed by video RAM (VRAM). It can be used for framebuffer devices with dedicated memory.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjFhKhjFhhubh)}(hXThe data structure :c:type:`struct drm_vram_mm ` and its helpers implement a memory manager for simple framebuffer devices with dedicated video memory. GEM VRAM buffer objects are either placed in the video memory or remain evicted to system memory.h](hThe data structure }(hjFhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjFh]hstruct drm_vram_mm}(hjFhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_vram_mmuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:402: ./drivers/gpu/drm/drm_gem_vram_helper.chK hjFubh and its helpers implement a memory manager for simple framebuffer devices with dedicated video memory. GEM VRAM buffer objects are either placed in the video memory or remain evicted to system memory.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhK hjFhhubh)}(hX|With the GEM interface userspace applications create, manage and destroy graphics buffers, such as an on-screen framebuffer. GEM does not provide an implementation of these interfaces. It's up to the DRM driver to provide an implementation that suits the hardware. If the hardware device contains dedicated video memory, the DRM driver can use the VRAM helper library. Each active buffer object is stored in video RAM. Active buffer are used for drawing the current frame, typically something like the frame's scanout buffer or the cursor image. If there's no more space left in VRAM, inactive GEM objects can be moved to system memory.h]hXWith the GEM interface userspace applications create, manage and destroy graphics buffers, such as an on-screen framebuffer. GEM does not provide an implementation of these interfaces. It’s up to the DRM driver to provide an implementation that suits the hardware. If the hardware device contains dedicated video memory, the DRM driver can use the VRAM helper library. Each active buffer object is stored in video RAM. Active buffer are used for drawing the current frame, typically something like the frame’s scanout buffer or the cursor image. If there’s no more space left in VRAM, inactive GEM objects can be moved to system memory.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:402: ./drivers/gpu/drm/drm_gem_vram_helper.chK%hjFhhubh)}(hXTo initialize the VRAM helper library call drmm_vram_helper_init(). The function allocates and initializes an instance of :c:type:`struct drm_vram_mm ` in :c:type:`struct drm_device `.vram_mm . Use :c:type:`DRM_GEM_VRAM_DRIVER` to initialize :c:type:`struct drm_driver ` and :c:type:`DEFINE_DRM_GEM_FOPS` to define :c:type:`struct file_operations `; as illustrated below.h](hzTo initialize the VRAM helper library call drmm_vram_helper_init(). The function allocates and initializes an instance of }(hj)GhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hj3Gh]hstruct drm_vram_mm}(hj5GhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj1Gubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_vram_mmuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:402: ./drivers/gpu/drm/drm_gem_vram_helper.chK/hj)Gubh in }(hj)GhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjWGh]hstruct drm_device}(hjYGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjUGubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_deviceuh1hhjPGhK/hj)Gubh.vram_mm . Use }(hj)GhhhNhNubh)}(h:c:type:`DRM_GEM_VRAM_DRIVER`h]j)}(hjzGh]hDRM_GEM_VRAM_DRIVER}(hj|GhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjxGubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_GEM_VRAM_DRIVERuh1hhjPGhK/hj)Gubh to initialize }(hj)GhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjGh]hstruct drm_driver}(hjGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhjPGhK/hj)Gubh and }(hj)GhhhNhNubh)}(h:c:type:`DEFINE_DRM_GEM_FOPS`h]j)}(hjGh]hDEFINE_DRM_GEM_FOPS}(hjGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDEFINE_DRM_GEM_FOPSuh1hhjPGhK/hj)Gubh to define }(hj)GhhhNhNubh)}(h2:c:type:`struct file_operations `h]j)}(hjGh]hstruct file_operations}(hjGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jafile_operationsuh1hhjPGhK/hj)Gubh; as illustrated below.}(hj)GhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPGhK/hjFhhubjh)}(hXDEFINE_DRM_GEM_FOPS(fops); struct drm_driver drv = { .driver_feature = DRM_ ... , .fops = &fops, DRM_GEM_VRAM_DRIVER }; int init_drm_driver() { struct drm_device *dev; uint64_t vram_base; unsigned long vram_size; int ret; // setup device, vram base and size // ... ret = drmm_vram_helper_init(dev, vram_base, vram_size); if (ret) return ret; return 0; }h]hXDEFINE_DRM_GEM_FOPS(fops); struct drm_driver drv = { .driver_feature = DRM_ ... , .fops = &fops, DRM_GEM_VRAM_DRIVER }; int init_drm_driver() { struct drm_device *dev; uint64_t vram_base; unsigned long vram_size; int ret; // setup device, vram base and size // ... ret = drmm_vram_helper_init(dev, vram_base, vram_size); if (ret) return ret; return 0; }}hj Hsbah}(h]h ]h"]h$]h&]jjjq~jr~jjs~}uh1jgha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:402: ./drivers/gpu/drm/drm_gem_vram_helper.chK5hjFhhubh)}(hXDThis creates an instance of :c:type:`struct drm_vram_mm `, exports DRM userspace interfaces for GEM buffer management and initializes file operations to allow for accessing created GEM buffers. With this setup, the DRM driver manages an area of video RAM with VRAM MM and provides GEM VRAM objects to userspace.h](hThis creates an instance of }(hjHhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hj$Hh]hstruct drm_vram_mm}(hj&HhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj"Hubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_vram_mmuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:402: ./drivers/gpu/drm/drm_gem_vram_helper.chKNhjHubh, exports DRM userspace interfaces for GEM buffer management and initializes file operations to allow for accessing created GEM buffers. With this setup, the DRM driver manages an area of video RAM with VRAM MM and provides GEM VRAM objects to userspace.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAHhKNhjFhhubh)}(hYou don't have to clean up the instance of VRAM MM. drmm_vram_helper_init() is a managed interface that installs a clean-up handler to run during the DRM device's release.h]hYou don’t have to clean up the instance of VRAM MM. drmm_vram_helper_init() is a managed interface that installs a clean-up handler to run during the DRM device’s release.}(hjLHhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:402: ./drivers/gpu/drm/drm_gem_vram_helper.chKThjFhhubh)}(hXDA buffer object that is pinned in video RAM has a fixed address within that memory region. Call drm_gem_vram_offset() to retrieve this value. Typically it's used to program the hardware's scanout engine for framebuffers, set the cursor overlay's image for a mouse cursor, or use it as input to the hardware's drawing engine.h]hXLA buffer object that is pinned in video RAM has a fixed address within that memory region. Call drm_gem_vram_offset() to retrieve this value. Typically it’s used to program the hardware’s scanout engine for framebuffers, set the cursor overlay’s image for a mouse cursor, or use it as input to the hardware’s drawing engine.}(hj[HhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:402: ./drivers/gpu/drm/drm_gem_vram_helper.chKXhjFhhubh)}(hTo access a buffer object's memory from the DRM driver, call drm_gem_vram_vmap(). It maps the buffer into kernel address space and returns the memory address. Use drm_gem_vram_vunmap() to release the mapping.h]hTo access a buffer object’s memory from the DRM driver, call drm_gem_vram_vmap(). It maps the buffer into kernel address space and returns the memory address. Use drm_gem_vram_vunmap() to release the mapping.}(hjjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:402: ./drivers/gpu/drm/drm_gem_vram_helper.chK^hjFhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_vram_object (C struct)c.drm_gem_vram_objecthNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hdrm_gem_vram_objecth]jR)}(hstruct drm_gem_vram_objecth](jX)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjHhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKubjj)}(h h]h }(hjHhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHhhhjHhKubj{)}(hdrm_gem_vram_objecth]j)}(hjHh]hdrm_gem_vram_object}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHhhhjHhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjHhhhjHhKubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1jKhjHhKhjHhhubj)}(hhh]h)}(hGEM object backed by VRAMh]hGEM object backed by VRAM}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK hjHhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhKubeh}(h]h ](jstructeh"]h$]h&]jjjjHjjHjjjuh1jFhhhjFhNhNubj)}(hXG**Definition**:: struct drm_gem_vram_object { struct ttm_buffer_object bo; struct iosys_map map; unsigned int vmap_use_count; struct ttm_placement placement; struct ttm_place placements[2]; }; **Members** ``bo`` TTM buffer object ``map`` Mapping information for **bo** ``vmap_use_count`` Reference count on the virtual address. The address are un-mapped when the count reaches zero. ``placement`` TTM placement information. Supported placements are ``TTM_PL_VRAM`` and ``TTM_PL_SYSTEM`` ``placements`` TTM placement information.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh:}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK$hjHubjh)}(hstruct drm_gem_vram_object { struct ttm_buffer_object bo; struct iosys_map map; unsigned int vmap_use_count; struct ttm_placement placement; struct ttm_place placements[2]; };h]hstruct drm_gem_vram_object { struct ttm_buffer_object bo; struct iosys_map map; unsigned int vmap_use_count; struct ttm_placement placement; struct ttm_place placements[2]; };}hjIsbah}(h]h ]h"]h$]h&]jjuh1jgh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK&hjHubh)}(h **Members**h]j)}(hj"Ih]hMembers}(hj$IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Iubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK.hjHubj)}(hhh](j)}(h``bo`` TTM buffer object h](j)}(h``bo``h]j)}(hjAIh]hbo}(hjCIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?Iubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK"hj;Iubj)}(hhh]h)}(hTTM buffer objecth]hTTM buffer object}(hjZIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVIhK"hjWIubah}(h]h ]h"]h$]h&]uh1jhj;Iubeh}(h]h ]h"]h$]h&]uh1jhjVIhK"hj8Iubj)}(h'``map`` Mapping information for **bo** h](j)}(h``map``h]j)}(hjzIh]hmap}(hj|IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxIubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK#hjtIubj)}(hhh]h)}(hMapping information for **bo**h](hMapping information for }(hjIhhhNhNubj)}(h**bo**h]hbo}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1hhjIhK#hjIubah}(h]h ]h"]h$]h&]uh1jhjtIubeh}(h]h ]h"]h$]h&]uh1jhjIhK#hj8Iubj)}(hr``vmap_use_count`` Reference count on the virtual address. The address are un-mapped when the count reaches zero. h](j)}(h``vmap_use_count``h]j)}(hjIh]hvmap_use_count}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK:hjIubj)}(hhh]h)}(h^Reference count on the virtual address. The address are un-mapped when the count reaches zero.h]h^Reference count on the virtual address. The address are un-mapped when the count reaches zero.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK9hjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhK:hj8Iubj)}(hh``placement`` TTM placement information. Supported placements are ``TTM_PL_VRAM`` and ``TTM_PL_SYSTEM`` h](j)}(h ``placement``h]j)}(hjIh]h placement}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK%hjIubj)}(hhh]h)}(hYTTM placement information. Supported placements are ``TTM_PL_VRAM`` and ``TTM_PL_SYSTEM``h](h4TTM placement information. Supported placements are }(hjJhhhNhNubj)}(h``TTM_PL_VRAM``h]h TTM_PL_VRAM}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh and }(hjJhhhNhNubj)}(h``TTM_PL_SYSTEM``h]h TTM_PL_SYSTEM}(hj.JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK$hjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjJhK%hj8Iubj)}(h)``placements`` TTM placement information.h](j)}(h``placements``h]j)}(hjUJh]h placements}(hjWJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSJubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK%hjOJubj)}(hhh]h)}(hTTM placement information.h]hTTM placement information.}(hjnJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK&hjkJubah}(h]h ]h"]h$]h&]uh1jhjOJubeh}(h]h ]h"]h$]h&]uh1jhjjJhK%hj8Iubeh}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubh)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK)hjFhhubh)}(hThe 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.h]hThe 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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK&hjFhhubh)}(hXVGEM 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().h]hXVGEM 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().}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK+hjFhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_vram_of_bo (C function)c.drm_gem_vram_of_bohNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hNstruct drm_gem_vram_object * drm_gem_vram_of_bo (struct ttm_buffer_object *bo)h]jR)}(hLstruct drm_gem_vram_object *drm_gem_vram_of_bo(struct ttm_buffer_object *bo)h](jX)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjJhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKEubjj)}(h h]h }(hjJhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJhhhjJhKEubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjKmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_vram_of_bosbc.drm_gem_vram_of_boasbuh1hhjJhhhjJhKEubjj)}(h h]h }(hj%KhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJhhhjJhKEubjH)}(hjKh]h*}(hj3KhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjJhhhjJhKEubj{)}(hdrm_gem_vram_of_boh]j)}(hj"Kh]hdrm_gem_vram_of_bo}(hjDKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Kubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhjJhKEubj)}(h(struct ttm_buffer_object *bo)h]j)}(hstruct ttm_buffer_object *boh](jX)}(hjh]hstruct}(hj_KhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[Kubjj)}(h h]h }(hjlKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[Kubh)}(hhh]j)}(httm_buffer_objecth]httm_buffer_object}(hj}KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzKubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjKmodnameN classnameNj+j.)}j1]j Kc.drm_gem_vram_of_boasbuh1hhj[Kubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[KubjH)}(hjKh]h*}(hjKhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj[Kubj)}(hboh]hbo}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWKubah}(h]h ]h"]h$]h&]jjuh1jhjJhhhjJhKEubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjJhhhjJhKEubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jKhjJhKEhjJhhubj)}(hhh]h)}(hfReturns the container of type :c:type:`struct drm_gem_vram_object ` for field bo.h](hReturns the container of type }(hjKhhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j)}(hjKh]hstruct drm_gem_vram_object}(hjKhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j Kc.drm_gem_vram_of_boasbjadrm_gem_vram_objectuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjKubh for field bo.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKEhjKhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhKEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!Ljj!Ljjjuh1jFhhhjFhNhNubj)}(hu**Parameters** ``struct ttm_buffer_object *bo`` the VRAM buffer object **Return** The containing GEM VRAM objecth](h)}(h**Parameters**h]j)}(hj+Lh]h Parameters}(hj-LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)Lubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKIhj%Lubj)}(hhh]j)}(h8``struct ttm_buffer_object *bo`` the VRAM buffer object h](j)}(h ``struct ttm_buffer_object *bo``h]j)}(hjJLh]hstruct ttm_buffer_object *bo}(hjLLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHLubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKGhjDLubj)}(hhh]h)}(hthe VRAM buffer objecth]hthe VRAM buffer object}(hjcLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_LhKGhj`Lubah}(h]h ]h"]h$]h&]uh1jhjDLubeh}(h]h ]h"]h$]h&]uh1jhj_LhKGhjALubah}(h]h ]h"]h$]h&]uh1jhj%Lubh)}(h **Return**h]j)}(hjLh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKIhj%Lubh)}(hThe containing GEM VRAM objecth]hThe containing GEM VRAM object}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKHhj%Lubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gem_vram_of_gem (C function)c.drm_gem_vram_of_gemhNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hMstruct drm_gem_vram_object * drm_gem_vram_of_gem (struct drm_gem_object *gem)h]jR)}(hKstruct drm_gem_vram_object *drm_gem_vram_of_gem(struct drm_gem_object *gem)h](jX)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjLhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKQubjj)}(h h]h }(hjLhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjLhhhjLhKQubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjLmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_vram_of_gemsbc.drm_gem_vram_of_gemasbuh1hhjLhhhjLhKQubjj)}(h h]h }(hj MhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjLhhhjLhKQubjH)}(hjKh]h*}(hjMhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjLhhhjLhKQubj{)}(hdrm_gem_vram_of_gemh]j)}(hjMh]hdrm_gem_vram_of_gem}(hj)MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Mubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLhhhjLhKQubj)}(h(struct drm_gem_object *gem)h]j)}(hstruct drm_gem_object *gemh](jX)}(hjh]hstruct}(hjDMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj@Mubjj)}(h h]h }(hjQMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@Mubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjbMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Mubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjdMmodnameN classnameNj+j.)}j1]jMc.drm_gem_vram_of_gemasbuh1hhj@Mubjj)}(h h]h }(hjMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@MubjH)}(hjKh]h*}(hjMhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj@Mubj)}(hgemh]hgem}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj` for field gem.h](hReturns the container of type }(hjMhhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j)}(hjMh]hstruct drm_gem_vram_object}(hjMhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jMc.drm_gem_vram_of_gemasbjadrm_gem_vram_objectuh1hhj LhKhjMubh for field gem.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKQhjMhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhKQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jFhhhjFhNhNubj)}(hk**Parameters** ``struct drm_gem_object *gem`` the GEM object **Return** The containing GEM VRAM objecth](h)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Nubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKUhj Nubj)}(hhh]j)}(h.``struct drm_gem_object *gem`` the GEM object h](j)}(h``struct drm_gem_object *gem``h]j)}(hj.Nh]hstruct drm_gem_object *gem}(hj0NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,Nubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKShj(Nubj)}(hhh]h)}(hthe GEM objecth]hthe GEM object}(hjGNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCNhKShjDNubah}(h]h ]h"]h$]h&]uh1jhj(Nubeh}(h]h ]h"]h$]h&]uh1jhjCNhKShj%Nubah}(h]h ]h"]h$]h&]uh1jhj Nubh)}(h **Return**h]j)}(hjiNh]hReturn}(hjkNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKUhj Nubh)}(hThe containing GEM VRAM objecth]hThe containing GEM VRAM object}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKThj Nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)DRM_GEM_VRAM_PLANE_HELPER_FUNCS (C macro)!c.DRM_GEM_VRAM_PLANE_HELPER_FUNCShNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hDRM_GEM_VRAM_PLANE_HELPER_FUNCSh]jR)}(hDRM_GEM_VRAM_PLANE_HELPER_FUNCSh]j{)}(hDRM_GEM_VRAM_PLANE_HELPER_FUNCSh]j)}(hjNh]hDRM_GEM_VRAM_PLANE_HELPER_FUNCS}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjNhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK~ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjNhhhjNhK~ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jKhjNhK~hjNhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjNhhhjNhK~ubeh}(h]h ](jmacroeh"]h$]h&]jjjjNjjNjjjuh1jFhhhjFhNhNubh)}(h#``DRM_GEM_VRAM_PLANE_HELPER_FUNCS``h]j)}(hjNh]hDRM_GEM_VRAM_PLANE_HELPER_FUNCS}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjFhhubj)}(h Initializes struct drm_plane_helper_funcs for VRAM handling **Description** 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. h](j)}(h` **Description** Drivers that use VRAM MM and GEM VRAM can use this macro to initialize :c:type:`struct drm_driver ` with default functions. h](j)}(hHdefault callback functions for :c:type:`struct drm_driver ` h]h)}(hGdefault callback functions for :c:type:`struct drm_driver `h](hdefault callback functions for }(hjOhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjOh]hstruct drm_driver}(hjOhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjOubeh}(h]h ]h"]h$]h&]uh1hhjOhKhjOubah}(h]h ]h"]h$]h&]uh1jhjOhKhjOubh)}(h**Description**h]j)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjOubh)}(hDrivers that use VRAM MM and GEM VRAM can use this macro to initialize :c:type:`struct drm_driver ` with default functions.h](hGDrivers that use VRAM MM and GEM VRAM can use this macro to initialize }(hjOhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjPh]hstruct drm_driver}(hj PhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjOubh with default functions.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj$PhKhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhKhjFhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_vram_mm (C struct) c.drm_vram_mmhNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(h drm_vram_mmh]jR)}(hstruct drm_vram_mmh](jX)}(hjh]hstruct}(hjNPhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjJPhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKubjj)}(h h]h }(hj\PhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJPhhhj[PhKubj{)}(h drm_vram_mmh]j)}(hjHPh]h drm_vram_mm}(hjnPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJPhhhj[PhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjFPhhhj[PhKubah}(h]jAPah ](jjeh"]h$]h&]jj)jhuh1jKhj[PhKhjCPhhubj)}(hhh]h)}(hAn instance of VRAM MMh]hAn instance of VRAM MM}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjPhhubah}(h]h ]h"]h$]h&]uh1jhjCPhhhj[PhKubeh}(h]h ](jstructeh"]h$]h&]jjjjPjjPjjjuh1jFhhhjFhNhNubj)}(hX**Definition**:: struct drm_vram_mm { uint64_t vram_base; size_t vram_size; struct ttm_device bdev; }; **Members** ``vram_base`` Base address of the managed video memory ``vram_size`` Size of the managed video memory in bytes ``bdev`` The TTM BO device.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh:}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjPubjh)}(hastruct drm_vram_mm { uint64_t vram_base; size_t vram_size; struct ttm_device bdev; };h]hastruct drm_vram_mm { uint64_t vram_base; size_t vram_size; struct ttm_device bdev; };}hjPsbah}(h]h ]h"]h$]h&]jjuh1jgh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjPubh)}(h **Members**h]j)}(hjPh]hMembers}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjPubj)}(hhh](j)}(h7``vram_base`` Base address of the managed video memory h](j)}(h ``vram_base``h]j)}(hjPh]h vram_base}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjPubj)}(hhh]h)}(h(Base address of the managed video memoryh]h(Base address of the managed video memory}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjQubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjQhKhjPubj)}(h8``vram_size`` Size of the managed video memory in bytes h](j)}(h ``vram_size``h]j)}(hj6Qh]h vram_size}(hj8QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4Qubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhj0Qubj)}(hhh]h)}(h)Size of the managed video memory in bytesh]h)Size of the managed video memory in bytes}(hjOQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKQhKhjLQubah}(h]h ]h"]h$]h&]uh1jhj0Qubeh}(h]h ]h"]h$]h&]uh1jhjKQhKhjPubj)}(h``bdev`` The TTM BO device.h](j)}(h``bdev``h]j)}(hjoQh]hbdev}(hjqQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmQubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjiQubj)}(hhh]h)}(hThe TTM BO device.h]hThe TTM BO device.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjQubah}(h]h ]h"]h$]h&]uh1jhjiQubeh}(h]h ]h"]h$]h&]uh1jhjQhKhjPubeh}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubh)}(h**Description**h]j)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjFhhubh)}(hXThe fields :c:type:`struct drm_vram_mm `.vram_base and :c:type:`struct drm_vram_mm `.vrm_size are managed by VRAM MM, but are available for public read access. Use the field :c:type:`struct drm_vram_mm `.bdev to access the TTM BO device.h](h The fields }(hjQhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjQh]hstruct drm_vram_mm}(hjQhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_vram_mmuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjQubh.vram_base and }(hjQhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjQh]hstruct drm_vram_mm}(hjQhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_vram_mmuh1hhjQhKhjQubhZ.vrm_size are managed by VRAM MM, but are available for public read access. Use the field }(hjQhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjRh]hstruct drm_vram_mm}(hjRhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_vram_mmuh1hhjQhKhjQubh".bdev to access the TTM BO device.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQhKhjFhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_vram_mm_of_bdev (C function)c.drm_vram_mm_of_bdevhNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hBstruct drm_vram_mm * drm_vram_mm_of_bdev (struct ttm_device *bdev)h]jR)}(h@struct drm_vram_mm *drm_vram_mm_of_bdev(struct ttm_device *bdev)h](jX)}(hjh]hstruct}(hjYRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjURhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKubjj)}(h h]h }(hjgRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjURhhhjfRhKubh)}(hhh]j)}(h drm_vram_mmh]h drm_vram_mm}(hjxRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuRubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjzRmodnameN classnameNj+j.)}j1]j4)}j'drm_vram_mm_of_bdevsbc.drm_vram_mm_of_bdevasbuh1hhjURhhhjfRhKubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjURhhhjfRhKubjH)}(hjKh]h*}(hjRhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjURhhhjfRhKubj{)}(hdrm_vram_mm_of_bdevh]j)}(hjRh]hdrm_vram_mm_of_bdev}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjURhhhjfRhKubj)}(h(struct ttm_device *bdev)h]j)}(hstruct ttm_device *bdevh](jX)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjRubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRubh)}(hhh]j)}(h ttm_deviceh]h ttm_device}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjRmodnameN classnameNj+j.)}j1]jRc.drm_vram_mm_of_bdevasbuh1hhjRubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRubjH)}(hjKh]h*}(hjShhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjRubj)}(hbdevh]hbdev}(hj*ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubah}(h]h ]h"]h$]h&]jjuh1jhjURhhhjfRhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjQRhhhjfRhKubah}(h]jLRah ](jjeh"]h$]h&]jj)jhuh1jKhjfRhKhjNRhhubj)}(hhh]h)}(hVReturns the container of type :c:type:`struct ttm_device ` for field bdev.h](hReturns the container of type }(hjTShhhNhNubh)}(h(:c:type:`struct ttm_device `h]j)}(hj^Sh]hstruct ttm_device}(hj`ShhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj\Subah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jRc.drm_vram_mm_of_bdevasbja ttm_deviceuh1hhj LhKhjTSubh for field bdev.}(hjTShhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjQShhubah}(h]h ]h"]h$]h&]uh1jhjNRhhhjfRhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1jFhhhjFhNhNubj)}(h**Parameters** ``struct ttm_device *bdev`` the TTM BO device **Return** The containing instance of :c:type:`struct drm_vram_mm `h](h)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjSubj)}(hhh]j)}(h.``struct ttm_device *bdev`` the TTM BO device h](j)}(h``struct ttm_device *bdev``h]j)}(hjSh]hstruct ttm_device *bdev}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjSubj)}(hhh]h)}(hthe TTM BO deviceh]hthe TTM BO device}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShKhjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShKhjSubah}(h]h ]h"]h$]h&]uh1jhjSubh)}(h **Return**h]j)}(hjSh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjSubh)}(hEThe containing instance of :c:type:`struct drm_vram_mm `h](hThe containing instance of }(hjThhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjTh]hstruct drm_vram_mm}(hjThhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_vram_mmuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjTubeh}(h]h ]h"]h$]h&]uh1hhj5ThKhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gem_vram_create (C function)c.drm_gem_vram_createhNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hnstruct drm_gem_vram_object * drm_gem_vram_create (struct drm_device *dev, size_t size, unsigned long pg_align)h]jR)}(hlstruct drm_gem_vram_object *drm_gem_vram_create(struct drm_device *dev, size_t size, unsigned long pg_align)h](jX)}(hjh]hstruct}(hj\ThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjXThhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKubjj)}(h h]h }(hjjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjXThhhjiThKubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hj{ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxTubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj}TmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_vram_createsbc.drm_gem_vram_createasbuh1hhjXThhhjiThKubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjXThhhjiThKubjH)}(hjKh]h*}(hjThhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjXThhhjiThKubj{)}(hdrm_gem_vram_createh]j)}(hjTh]hdrm_gem_vram_create}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjXThhhjiThKubj)}(h=(struct drm_device *dev, size_t size, unsigned long pg_align)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjTubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjTubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjTmodnameN classnameNj+j.)}j1]jTc.drm_gem_vram_createasbuh1hhjTubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjTubjH)}(hjKh]h*}(hj UhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjTubj)}(hdevh]hdev}(hj-UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjIUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFUubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjKUmodnameN classnameNj+j.)}j1]jTc.drm_gem_vram_createasbuh1hhjBUubjj)}(h h]h }(hjgUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBUubj)}(hsizeh]hsize}(hjuUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hunsigned long pg_alignh](j)}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUubj)}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUubj)}(hpg_alignh]hpg_align}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubeh}(h]h ]h"]h$]h&]jjuh1jhjXThhhjiThKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjTThhhjiThKubah}(h]jOTah ](jjeh"]h$]h&]jj)jhuh1jKhjiThKhjQThhubj)}(hhh]h)}(h Creates a VRAM-backed GEM objecth]h Creates a VRAM-backed GEM object}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjUhhubah}(h]h ]h"]h$]h&]uh1jhjQThhhjiThKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1jFhhhjFhNhNubj)}(hX**Parameters** ``struct drm_device *dev`` the DRM device ``size_t size`` the buffer size in bytes ``unsigned long pg_align`` the buffer's alignment in multiples of the page size **Description** GEM objects are allocated by calling struct drm_driver.gem_create_object, if set. Otherwise kzalloc() will be used. Drivers can set their own GEM object functions in struct drm_driver.gem_create_object. If no functions are set, the new GEM object will use the default functions from GEM VRAM helpers. **Return** A new instance of :c:type:`struct drm_gem_vram_object ` on success, or an ERR_PTR()-encoded error code otherwise.h](h)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj Vubj)}(hhh](j)}(h*``struct drm_device *dev`` the DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj1Vh]hstruct drm_device *dev}(hj3VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Vubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj+Vubj)}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hjJVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFVhKhjGVubah}(h]h ]h"]h$]h&]uh1jhj+Vubeh}(h]h ]h"]h$]h&]uh1jhjFVhKhj(Vubj)}(h)``size_t size`` the buffer size in bytes h](j)}(h``size_t size``h]j)}(hjjVh]h size_t size}(hjlVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhVubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjdVubj)}(hhh]h)}(hthe buffer size in bytesh]hthe buffer size in bytes}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKhjVubah}(h]h ]h"]h$]h&]uh1jhjdVubeh}(h]h ]h"]h$]h&]uh1jhjVhKhj(Vubj)}(hP``unsigned long pg_align`` the buffer's alignment in multiples of the page size h](j)}(h``unsigned long pg_align``h]j)}(hjVh]hunsigned long pg_align}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjVubj)}(hhh]h)}(h4the buffer's alignment in multiples of the page sizeh]h6the buffer’s alignment in multiples of the page size}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhKhj(Vubeh}(h]h ]h"]h$]h&]uh1jhj Vubh)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj Vubh)}(hX,GEM objects are allocated by calling struct drm_driver.gem_create_object, if set. Otherwise kzalloc() will be used. Drivers can set their own GEM object functions in struct drm_driver.gem_create_object. If no functions are set, the new GEM object will use the default functions from GEM VRAM helpers.h]hX,GEM objects are allocated by calling struct drm_driver.gem_create_object, if set. Otherwise kzalloc() will be used. Drivers can set their own GEM object functions in struct drm_driver.gem_create_object. If no functions are set, the new GEM object will use the default functions from GEM VRAM helpers.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj Vubh)}(h **Return**h]j)}(hjWh]hReturn}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj Vubh)}(hA new instance of :c:type:`struct drm_gem_vram_object ` on success, or an ERR_PTR()-encoded error code otherwise.h](hA new instance of }(hjWhhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j)}(hj%Wh]hstruct drm_gem_vram_object}(hj'WhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj#Wubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_vram_objectuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjWubh: on success, or an ERR_PTR()-encoded error code otherwise.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBWhKhj Vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_vram_put (C function)c.drm_gem_vram_puthNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(h7void drm_gem_vram_put (struct drm_gem_vram_object *gbo)h]jR)}(h6void drm_gem_vram_put(struct drm_gem_vram_object *gbo)h](j)}(hvoidh]hvoid}(hjmWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiWhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKubjj)}(h h]h }(hj|WhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiWhhhj{WhKubj{)}(hdrm_gem_vram_puth]j)}(hdrm_gem_vram_puth]hdrm_gem_vram_put}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjiWhhhj{WhKubj)}(h!(struct drm_gem_vram_object *gbo)h]j)}(hstruct drm_gem_vram_object *gboh](jX)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjWubjj)}(h h]h }(hjWhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjWubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjWmodnameN classnameNj+j.)}j1]j4)}j'jWsbc.drm_gem_vram_putasbuh1hhjWubjj)}(h h]h }(hjWhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjWubjH)}(hjKh]h*}(hjWhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjWubj)}(hgboh]hgbo}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubah}(h]h ]h"]h$]h&]jjuh1jhjiWhhhj{WhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjeWhhhj{WhKubah}(h]j`Wah ](jjeh"]h$]h&]jj)jhuh1jKhj{WhKhjbWhhubj)}(hhh]h)}(h0Releases a reference to a VRAM-backed GEM objecth]h0Releases a reference to a VRAM-backed GEM object}(hj-XhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj*Xhhubah}(h]h ]h"]h$]h&]uh1jhjbWhhhj{WhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEXjjEXjjjuh1jFhhhjFhNhNubj)}(h**Parameters** ``struct drm_gem_vram_object *gbo`` the GEM VRAM object **Description** See ttm_bo_fini() for more information.h](h)}(h**Parameters**h]j)}(hjOXh]h Parameters}(hjQXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMXubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjIXubj)}(hhh]j)}(h8``struct drm_gem_vram_object *gbo`` the GEM VRAM object h](j)}(h#``struct drm_gem_vram_object *gbo``h]j)}(hjnXh]hstruct drm_gem_vram_object *gbo}(hjpXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlXubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjhXubj)}(hhh]h)}(hthe GEM VRAM objecth]hthe GEM VRAM object}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKhjXubah}(h]h ]h"]h$]h&]uh1jhjhXubeh}(h]h ]h"]h$]h&]uh1jhjXhKhjeXubah}(h]h ]h"]h$]h&]uh1jhjIXubh)}(h**Description**h]j)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjIXubh)}(h'See ttm_bo_fini() for more information.h]h'See ttm_bo_fini() for more information.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjIXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gem_vram_offset (C function)c.drm_gem_vram_offsethNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(h9s64 drm_gem_vram_offset (struct drm_gem_vram_object *gbo)h]jR)}(h8s64 drm_gem_vram_offset(struct drm_gem_vram_object *gbo)h](h)}(hhh]j)}(hs64h]hs64}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjXmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_vram_offsetsbc.drm_gem_vram_offsetasbuh1hhjXhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKubjj)}(h h]h }(hjYhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjXhhhjYhKubj{)}(hdrm_gem_vram_offseth]j)}(hjYh]hdrm_gem_vram_offset}(hj%YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Yubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjXhhhjYhKubj)}(h!(struct drm_gem_vram_object *gbo)h]j)}(hstruct drm_gem_vram_object *gboh](jX)}(hjh]hstruct}(hj@YhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj`.dumb_createh](hHelper for implementing }(hjyahhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjah]hstruct drm_driver}(hjahhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j_c.drm_gem_vram_fill_create_dumbasbja drm_driveruh1hhjiThKhjyaubh .dumb_create}(hjyahhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjvahhubah}(h]h ]h"]h$]h&]uh1jhj,_hhhjE_hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1jFhhhjFhNhNubj)}(hX**Parameters** ``struct drm_file *file`` the DRM file ``struct drm_device *dev`` the DRM device ``unsigned long pg_align`` the buffer's alignment in multiples of the page size ``unsigned long pitch_align`` the scanline's alignment in powers of 2 ``struct drm_mode_create_dumb *args`` the arguments as provided to :c:type:`struct drm_driver `.dumb_create **Description** This helper function fills :c:type:`struct drm_mode_create_dumb `, which is used by :c:type:`struct drm_driver `.dumb_create. Implementations of this interface should forwards their arguments to this helper, plus the driver-specific parameters. **Return** 0 on success, or a negative error code otherwise.h](h)}(h**Parameters**h]j)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjaubj)}(hhh](j)}(h'``struct drm_file *file`` the DRM file h](j)}(h``struct drm_file *file``h]j)}(hjah]hstruct drm_file *file}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjaubj)}(hhh]h)}(h the DRM fileh]h the DRM file}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhjaubj)}(h*``struct drm_device *dev`` the DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjbh]hstruct drm_device *dev}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjbubj)}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hj4bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0bhMhj1bubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj0bhMhjaubj)}(hP``unsigned long pg_align`` the buffer's alignment in multiples of the page size h](j)}(h``unsigned long pg_align``h]j)}(hjTbh]hunsigned long pg_align}(hjVbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRbubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjNbubj)}(hhh]h)}(h4the buffer's alignment in multiples of the page sizeh]h6the buffer’s alignment in multiples of the page size}(hjmbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjibhMhjjbubah}(h]h ]h"]h$]h&]uh1jhjNbubeh}(h]h ]h"]h$]h&]uh1jhjibhMhjaubj)}(hF``unsigned long pitch_align`` the scanline's alignment in powers of 2 h](j)}(h``unsigned long pitch_align``h]j)}(hjbh]hunsigned long pitch_align}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjbubj)}(hhh]h)}(h'the scanline's alignment in powers of 2h]h)the scanline’s alignment in powers of 2}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjaubj)}(hx``struct drm_mode_create_dumb *args`` the arguments as provided to :c:type:`struct drm_driver `.dumb_create h](j)}(h%``struct drm_mode_create_dumb *args``h]j)}(hjbh]h!struct drm_mode_create_dumb *args}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjbubj)}(hhh]h)}(hQthe arguments as provided to :c:type:`struct drm_driver `.dumb_createh](hthe arguments as provided to }(hjbhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjbh]hstruct drm_driver}(hjbhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjbubh .dumb_create}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchMhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjaubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hj%ch]h Description}(hj'chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#cubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjaubh)}(hXThis helper function fills :c:type:`struct drm_mode_create_dumb `, which is used by :c:type:`struct drm_driver `.dumb_create. Implementations of this interface should forwards their arguments to this helper, plus the driver-specific parameters.h](hThis helper function fills }(hj;chhhNhNubh)}(h<:c:type:`struct drm_mode_create_dumb `h]j)}(hjEch]hstruct drm_mode_create_dumb}(hjGchhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjCcubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_mode_create_dumbuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj;cubh, which is used by }(hj;chhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjich]hstruct drm_driver}(hjkchhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjgcubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhjbchMhj;cubh.dumb_create. Implementations of this interface should forwards their arguments to this helper, plus the driver-specific parameters.}(hj;chhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbchMhjaubh)}(h **Return**h]j)}(hjch]hReturn}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjaubh)}(h10 on success, or a negative error code otherwise.h]h10 on success, or a negative error code otherwise.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB,drm_gem_vram_driver_dumb_create (C function)!c.drm_gem_vram_driver_dumb_createhNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hvint drm_gem_vram_driver_dumb_create (struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h]jR)}(huint drm_gem_vram_driver_dumb_create(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h](j)}(hinth]hint}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMubjj)}(h h]h }(hjchhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjchhhjchMubj{)}(hdrm_gem_vram_driver_dumb_createh]j)}(hdrm_gem_vram_driver_dumb_createh]hdrm_gem_vram_driver_dumb_create}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjchhhjchMubj)}(hR(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h](j)}(hstruct drm_file *fileh](jX)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjdubjj)}(h h]h }(hj!dhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj2dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/dubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj4dmodnameN classnameNj+j.)}j1]j4)}j'jcsb!c.drm_gem_vram_driver_dumb_createasbuh1hhjdubjj)}(h h]h }(hjRdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubjH)}(hjKh]h*}(hj`dhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjdubj)}(hfileh]hfile}(hjmdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj dubj)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjdubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjdmodnameN classnameNj+j.)}j1]jNd!c.drm_gem_vram_driver_dumb_createasbuh1hhjdubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubjH)}(hjKh]h*}(hjdhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjdubj)}(hdevh]hdev}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj dubj)}(h!struct drm_mode_create_dumb *argsh](jX)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjdubjj)}(h h]h }(hjehhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubh)}(hhh]j)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjemodnameN classnameNj+j.)}j1]jNd!c.drm_gem_vram_driver_dumb_createasbuh1hhjdubjj)}(h h]h }(hj2ehhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubjH)}(hjKh]h*}(hj@ehhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjdubj)}(hargsh]hargs}(hjMehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj dubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjchMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjchhhjchMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jKhjchMhjchhubj)}(hhh]h)}(h?Implements :c:type:`struct drm_driver `.dumb_createh](h Implements }(hjwehhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjeh]hstruct drm_driver}(hjehhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jNd!c.drm_gem_vram_driver_dumb_createasbja drm_driveruh1hhjiThKhjweubh .dumb_create}(hjwehhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjtehhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1jFhhhjFhNhNubj)}(hX**Parameters** ``struct drm_file *file`` the DRM file ``struct drm_device *dev`` the DRM device ``struct drm_mode_create_dumb *args`` the arguments as provided to :c:type:`struct drm_driver `.dumb_create **Description** This function requires the driver to use **drm_device.vram_mm** for its instance of VRAM MM. **Return** 0 on success, or a negative error code otherwise.h](h)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjeubj)}(hhh](j)}(h'``struct drm_file *file`` the DRM file h](j)}(h``struct drm_file *file``h]j)}(hjeh]hstruct drm_file *file}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjeubj)}(hhh]h)}(h the DRM fileh]h the DRM file}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehMhjeubj)}(h*``struct drm_device *dev`` the DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjfh]hstruct drm_device *dev}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjfubj)}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hj2fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.fhMhj/fubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhj.fhMhjeubj)}(hx``struct drm_mode_create_dumb *args`` the arguments as provided to :c:type:`struct drm_driver `.dumb_create h](j)}(h%``struct drm_mode_create_dumb *args``h]j)}(hjRfh]h!struct drm_mode_create_dumb *args}(hjTfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPfubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjLfubj)}(hhh]h)}(hQthe arguments as provided to :c:type:`struct drm_driver `.dumb_createh](hthe arguments as provided to }(hjkfhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjufh]hstruct drm_driver}(hjwfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjsfubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjkfubh .dumb_create}(hjkfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjfhMhjhfubah}(h]h ]h"]h$]h&]uh1jhjLfubeh}(h]h ]h"]h$]h&]uh1jhjgfhMhjeubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(h**Description**h]j)}(hjfh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjeubh)}(h\This function requires the driver to use **drm_device.vram_mm** for its instance of VRAM MM.h](h)This function requires the driver to use }(hjfhhhNhNubj)}(h**drm_device.vram_mm**h]hdrm_device.vram_mm}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh for its instance of VRAM MM.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjeubh)}(h **Return**h]j)}(hjfh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjeubh)}(h10 on success, or a negative error code otherwise.h]h10 on success, or a negative error code otherwise.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB1drm_gem_vram_plane_helper_prepare_fb (C function)&c.drm_gem_vram_plane_helper_prepare_fbhNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(heint drm_gem_vram_plane_helper_prepare_fb (struct drm_plane *plane, struct drm_plane_state *new_state)h]jR)}(hdint drm_gem_vram_plane_helper_prepare_fb(struct drm_plane *plane, struct drm_plane_state *new_state)h](j)}(hinth]hint}(hj/ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ghhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chM@ubjj)}(h h]h }(hj>ghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj+ghhhj=ghM@ubj{)}(h$drm_gem_vram_plane_helper_prepare_fbh]j)}(h$drm_gem_vram_plane_helper_prepare_fbh]h$drm_gem_vram_plane_helper_prepare_fb}(hjPghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLgubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+ghhhj=ghM@ubj)}(h<(struct drm_plane *plane, struct drm_plane_state *new_state)h](j)}(hstruct drm_plane *planeh](jX)}(hjh]hstruct}(hjlghhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhgubjj)}(h h]h }(hjyghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhgubh)}(hhh]j)}(h drm_planeh]h drm_plane}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjgmodnameN classnameNj+j.)}j1]j4)}j'jRgsb&c.drm_gem_vram_plane_helper_prepare_fbasbuh1hhjhgubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhgubjH)}(hjKh]h*}(hjghhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhgubj)}(hplaneh]hplane}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdgubj)}(h!struct drm_plane_state *new_stateh](jX)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjgubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubh)}(hhh]j)}(hdrm_plane_stateh]hdrm_plane_state}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjgmodnameN classnameNj+j.)}j1]jg&c.drm_gem_vram_plane_helper_prepare_fbasbuh1hhjgubjj)}(h h]h }(hjhhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubjH)}(hjKh]h*}(hj(hhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjgubj)}(h new_stateh]h new_state}(hj5hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdgubeh}(h]h ]h"]h$]h&]jjuh1jhj+ghhhj=ghM@ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj'ghhhj=ghM@ubah}(h]j"gah ](jjeh"]h$]h&]jj)jhuh1jKhj=ghM@hj$ghhubj)}(hhh]h)}(hVImplements :c:type:`struct drm_plane_helper_funcs `.prepare_fbh](h Implements }(hj_hhhhNhNubh)}(h@:c:type:`struct drm_plane_helper_funcs `h]j)}(hjihh]hstruct drm_plane_helper_funcs}(hjkhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjghubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jg&c.drm_gem_vram_plane_helper_prepare_fbasbjadrm_plane_helper_funcsuh1hhjiThKhj_hubh .prepare_fb}(hj_hhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chM@hj\hhhubah}(h]h ]h"]h$]h&]uh1jhj$ghhhj=ghM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1jFhhhjFhNhNubj)}(hX**Parameters** ``struct drm_plane *plane`` a DRM plane ``struct drm_plane_state *new_state`` the plane's new state **Description** During plane updates, this function sets the plane's fence and pins the GEM VRAM objects of the plane's new framebuffer to VRAM. Call drm_gem_vram_plane_helper_cleanup_fb() to unpin them. **Return** 0 on success, or a negative errno code otherwise.h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMDhjhubj)}(hhh](j)}(h(``struct drm_plane *plane`` a DRM plane h](j)}(h``struct drm_plane *plane``h]j)}(hjhh]hstruct drm_plane *plane}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMBhjhubj)}(hhh]h)}(h a DRM planeh]h a DRM plane}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMBhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMBhjhubj)}(h<``struct drm_plane_state *new_state`` the plane's new state h](j)}(h%``struct drm_plane_state *new_state``h]j)}(hjih]h!struct drm_plane_state *new_state}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMChjhubj)}(hhh]h)}(hthe plane's new stateh]hthe plane’s new state}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMChjiubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjihMChjhubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:iubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMEhjhubh)}(hDuring plane updates, this function sets the plane's fence and pins the GEM VRAM objects of the plane's new framebuffer to VRAM. Call drm_gem_vram_plane_helper_cleanup_fb() to unpin them.h]hDuring plane updates, this function sets the plane’s fence and pins the GEM VRAM objects of the plane’s new framebuffer to VRAM. Call drm_gem_vram_plane_helper_cleanup_fb() to unpin them.}(hjRihhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMDhjhubh)}(h **Return**h]j)}(hjcih]hReturn}(hjeihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaiubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMHhjhubh)}(h10 on success, or a negative errno code otherwise.h]h10 on success, or a negative errno code otherwise.}(hjyihhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMIhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB1drm_gem_vram_plane_helper_cleanup_fb (C function)&c.drm_gem_vram_plane_helper_cleanup_fbhNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hfvoid drm_gem_vram_plane_helper_cleanup_fb (struct drm_plane *plane, struct drm_plane_state *old_state)h]jR)}(hevoid drm_gem_vram_plane_helper_cleanup_fb(struct drm_plane *plane, struct drm_plane_state *old_state)h](j)}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMsubjj)}(h h]h }(hjihhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjihhhjihMsubj{)}(h$drm_gem_vram_plane_helper_cleanup_fbh]j)}(h$drm_gem_vram_plane_helper_cleanup_fbh]h$drm_gem_vram_plane_helper_cleanup_fb}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjihhhjihMsubj)}(h<(struct drm_plane *plane, struct drm_plane_state *old_state)h](j)}(hstruct drm_plane *planeh](jX)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjiubjj)}(h h]h }(hjihhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubh)}(hhh]j)}(h drm_planeh]h drm_plane}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjjmodnameN classnameNj+j.)}j1]j4)}j'jisb&c.drm_gem_vram_plane_helper_cleanup_fbasbuh1hhjiubjj)}(h h]h }(hj#jhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubjH)}(hjKh]h*}(hj1jhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjiubj)}(hplaneh]hplane}(hj>jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(h!struct drm_plane_state *old_stateh](jX)}(hjh]hstruct}(hjWjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjSjubjj)}(h h]h }(hjdjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjSjubh)}(hhh]j)}(hdrm_plane_stateh]hdrm_plane_state}(hjujhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjwjmodnameN classnameNj+j.)}j1]jj&c.drm_gem_vram_plane_helper_cleanup_fbasbuh1hhjSjubjj)}(h h]h }(hjjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjSjubjH)}(hjKh]h*}(hjjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjSjubj)}(h old_stateh]h old_state}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhjihhhjihMsubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjihhhjihMsubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jKhjihMshjihhubj)}(hhh]h)}(hVImplements :c:type:`struct drm_plane_helper_funcs `.cleanup_fbh](h Implements }(hjjhhhNhNubh)}(h@:c:type:`struct drm_plane_helper_funcs `h]j)}(hjjh]hstruct drm_plane_helper_funcs}(hjjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jj&c.drm_gem_vram_plane_helper_cleanup_fbasbjadrm_plane_helper_funcsuh1hhjiThKhjjubh .cleanup_fb}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMshjjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1jFhhhjFhNhNubj)}(hX(**Parameters** ``struct drm_plane *plane`` a DRM plane ``struct drm_plane_state *old_state`` the plane's old state **Description** During plane updates, this function unpins the GEM VRAM objects of the plane's old framebuffer from VRAM. Complements drm_gem_vram_plane_helper_prepare_fb().h](h)}(h**Parameters**h]j)}(hj"kh]h Parameters}(hj$khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj kubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMwhjkubj)}(hhh](j)}(h(``struct drm_plane *plane`` a DRM plane h](j)}(h``struct drm_plane *plane``h]j)}(hjAkh]hstruct drm_plane *plane}(hjCkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?kubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMuhj;kubj)}(hhh]h)}(h a DRM planeh]h a DRM plane}(hjZkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVkhMuhjWkubah}(h]h ]h"]h$]h&]uh1jhj;kubeh}(h]h ]h"]h$]h&]uh1jhjVkhMuhj8kubj)}(h<``struct drm_plane_state *old_state`` the plane's old state h](j)}(h%``struct drm_plane_state *old_state``h]j)}(hjzkh]h!struct drm_plane_state *old_state}(hj|khhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxkubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMvhjtkubj)}(hhh]h)}(hthe plane's old stateh]hthe plane’s old state}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMvhjkubah}(h]h ]h"]h$]h&]uh1jhjtkubeh}(h]h ]h"]h$]h&]uh1jhjkhMvhj8kubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h**Description**h]j)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMxhjkubh)}(hDuring plane updates, this function unpins the GEM VRAM objects of the plane's old framebuffer from VRAM. Complements drm_gem_vram_plane_helper_prepare_fb().h]hDuring plane updates, this function unpins the GEM VRAM objects of the plane’s old framebuffer from VRAM. Complements drm_gem_vram_plane_helper_prepare_fb().}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMwhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_vram_mm_debugfs_init (C function)c.drm_vram_mm_debugfs_inithNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(h7void drm_vram_mm_debugfs_init (struct drm_minor *minor)h]jR)}(h6void drm_vram_mm_debugfs_init(struct drm_minor *minor)h](j)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMEubjj)}(h h]h }(hj lhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjkhhhjlhMEubj{)}(hdrm_vram_mm_debugfs_inith]j)}(hdrm_vram_mm_debugfs_inith]hdrm_vram_mm_debugfs_init}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjkhhhjlhMEubj)}(h(struct drm_minor *minor)h]j)}(hstruct drm_minor *minorh](jX)}(hjh]hstruct}(hj7lhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj3lubjj)}(h h]h }(hjDlhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3lubh)}(hhh]j)}(h drm_minorh]h drm_minor}(hjUlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRlubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjWlmodnameN classnameNj+j.)}j1]j4)}j'jlsbc.drm_vram_mm_debugfs_initasbuh1hhj3lubjj)}(h h]h }(hjulhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3lubjH)}(hjKh]h*}(hjlhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj3lubj)}(hminorh]hminor}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/lubah}(h]h ]h"]h$]h&]jjuh1jhjkhhhjlhMEubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjkhhhjlhMEubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1jKhjlhMEhjkhhubj)}(hhh]h)}(hRegister VRAM MM debugfs file.h]hRegister VRAM MM debugfs file.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMEhjlhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjlhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1jFhhhjFhNhNubj)}(h?**Parameters** ``struct drm_minor *minor`` drm minor device.h](h)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMIhjlubj)}(hhh]j)}(h-``struct drm_minor *minor`` drm minor device.h](j)}(h``struct drm_minor *minor``h]j)}(hjlh]hstruct drm_minor *minor}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMKhjlubj)}(hhh]h)}(hdrm minor device.h]hdrm minor device.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMGhjmubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjmhMKhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drmm_vram_helper_init (C function)c.drmm_vram_helper_inithNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hXint drmm_vram_helper_init (struct drm_device *dev, uint64_t vram_base, size_t vram_size)h]jR)}(hWint drmm_vram_helper_init(struct drm_device *dev, uint64_t vram_base, size_t vram_size)h](j)}(hinth]hint}(hjUmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQmhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMubjj)}(h h]h }(hjdmhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjQmhhhjcmhMubj{)}(hdrmm_vram_helper_inith]j)}(hdrmm_vram_helper_inith]hdrmm_vram_helper_init}(hjvmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQmhhhjcmhMubj)}(h>(struct drm_device *dev, uint64_t vram_base, size_t vram_size)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjmubjj)}(h h]h }(hjmhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmmodnameN classnameNj+j.)}j1]j4)}j'jxmsbc.drmm_vram_helper_initasbuh1hhjmubjj)}(h h]h }(hjmhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmubjH)}(hjKh]h*}(hjmhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjmubj)}(hdevh]hdev}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(huint64_t vram_baseh](h)}(hhh]j)}(huint64_th]huint64_t}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj nmodnameN classnameNj+j.)}j1]jmc.drmm_vram_helper_initasbuh1hhjnubjj)}(h h]h }(hj%nhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjnubj)}(h vram_baseh]h vram_base}(hj3nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(hsize_t vram_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjOnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLnubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjQnmodnameN classnameNj+j.)}j1]jmc.drmm_vram_helper_initasbuh1hhjHnubjj)}(h h]h }(hjmnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHnubj)}(h vram_sizeh]h vram_size}(hj{nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubeh}(h]h ]h"]h$]h&]jjuh1jhjQmhhhjcmhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjMmhhhjcmhMubah}(h]jHmah ](jjeh"]h$]h&]jj)jhuh1jKhjcmhMhjJmhhubj)}(hhh]h)}(hMInitializes a device's instance of :c:type:`struct drm_vram_mm `h](h%Initializes a device’s instance of }(hjnhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjnh]hstruct drm_vram_mm}(hjnhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jmc.drmm_vram_helper_initasbja drm_vram_mmuh1hhjiThKhjnubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjnhhubah}(h]h ]h"]h$]h&]uh1jhjJmhhhjcmhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1jFhhhjFhNhNubj)}(hX**Parameters** ``struct drm_device *dev`` the DRM device ``uint64_t vram_base`` the base address of the video memory ``size_t vram_size`` the size of the video memory in bytes **Description** Creates a new instance of :c:type:`struct drm_vram_mm ` and stores it in struct :c:type:`drm_device.vram_mm `. The instance is auto-managed and cleaned up as part of device cleanup. Calling this function multiple times will generate an error message. **Return** 0 on success, or a negative errno code otherwise.h](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjnubj)}(hhh](j)}(h*``struct drm_device *dev`` the DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj oh]hstruct drm_device *dev}(hj ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjoubj)}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hj#ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhj oubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjoubj)}(h<``uint64_t vram_base`` the base address of the video memory h](j)}(h``uint64_t vram_base``h]j)}(hjCoh]huint64_t vram_base}(hjEohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAoubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj=oubj)}(hhh]h)}(h$the base address of the video memoryh]h$the base address of the video memory}(hj\ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXohMhjYoubah}(h]h ]h"]h$]h&]uh1jhj=oubeh}(h]h ]h"]h$]h&]uh1jhjXohMhjoubj)}(h;``size_t vram_size`` the size of the video memory in bytes h](j)}(h``size_t vram_size``h]j)}(hj|oh]hsize_t vram_size}(hj~ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzoubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjvoubj)}(hhh]h)}(h%the size of the video memory in bytesh]h%the size of the video memory in bytes}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjvoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjoubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjnubh)}(hXCreates a new instance of :c:type:`struct drm_vram_mm ` and stores it in struct :c:type:`drm_device.vram_mm `. The instance is auto-managed and cleaned up as part of device cleanup. Calling this function multiple times will generate an error message.h](hCreates a new instance of }(hjohhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjoh]hstruct drm_vram_mm}(hjohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_vram_mmuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjoubh and stores it in struct }(hjohhhNhNubh)}(h):c:type:`drm_device.vram_mm `h]j)}(hjoh]hdrm_device.vram_mm}(hjohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_deviceuh1hhjohMhjoubh. The instance is auto-managed and cleaned up as part of device cleanup. Calling this function multiple times will generate an error message.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjohMhjnubh)}(h **Return**h]j)}(hj$ph]hReturn}(hj&phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"pubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjnubh)}(h10 on success, or a negative errno code otherwise.h]h10 on success, or a negative errno code otherwise.}(hj:phhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_vram_helper_mode_valid (C function)c.drm_vram_helper_mode_validhNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hmenum drm_mode_status drm_vram_helper_mode_valid (struct drm_device *dev, const struct drm_display_mode *mode)h]jR)}(hlenum drm_mode_status drm_vram_helper_mode_valid(struct drm_device *dev, const struct drm_display_mode *mode)h](jX)}(hj[h]henum}(hjiphhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjephhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMubjj)}(h h]h }(hjwphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjephhhjvphMubh)}(hhh]j)}(hdrm_mode_statush]hdrm_mode_status}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjpmodnameN classnameNj+j.)}j1]j4)}j'drm_vram_helper_mode_validsbc.drm_vram_helper_mode_validasbuh1hhjephhhjvphMubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjephhhjvphMubj{)}(hdrm_vram_helper_mode_validh]j)}(hjph]hdrm_vram_helper_mode_valid}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjephhhjvphMubj)}(h=(struct drm_device *dev, const struct drm_display_mode *mode)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjpubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjpmodnameN classnameNj+j.)}j1]jpc.drm_vram_helper_mode_validasbuh1hhjpubjj)}(h h]h }(hjqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubjH)}(hjKh]h*}(hj qhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjpubj)}(hdevh]hdev}(hj-qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(h#const struct drm_display_mode *modeh](jX)}(hj h]hconst}(hjFqhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBqubjj)}(h h]h }(hjSqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBqubjX)}(hjh]hstruct}(hjaqhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBqubjj)}(h h]h }(hjnqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBqubh)}(hhh]j)}(hdrm_display_modeh]hdrm_display_mode}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|qubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjqmodnameN classnameNj+j.)}j1]jpc.drm_vram_helper_mode_validasbuh1hhjBqubjj)}(h h]h }(hjqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBqubjH)}(hjKh]h*}(hjqhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjBqubj)}(hmodeh]hmode}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhjephhhjvphMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjaphhhjvphMubah}(h]j\pah ](jjeh"]h$]h&]jj)jhuh1jKhjvphMhj^phhubj)}(hhh]h)}(hKTests if a display mode's framebuffer fits into the available video memory.h]hMTests if a display mode’s framebuffer fits into the available video memory.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjqhhubah}(h]h ]h"]h$]h&]uh1jhj^phhhjvphMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1jFhhhjFhNhNubj)}(hX**Parameters** ``struct drm_device *dev`` the DRM device ``const struct drm_display_mode *mode`` the mode to test **Description** This function tests if enough video memory is available for using the specified display mode. Atomic modesetting requires importing the designated framebuffer into video memory before evicting the active one. Hence, any framebuffer may consume at most half of the available VRAM. Display modes that require a larger framebuffer can not be used, even if the CRTC does support them. Each framebuffer is assumed to have 32-bit color depth. **Note** The function can only test if the display mode is supported in general. If there are too many framebuffers pinned to video memory, a display mode may still not be usable in practice. The color depth of 32-bit fits all current use case. A more flexible test can be added when necessary. **Return** MODE_OK if the display mode is supported, or an error code of type enum drm_mode_status otherwise.h](h)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjqubj)}(hhh](j)}(h*``struct drm_device *dev`` the DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj#rh]hstruct drm_device *dev}(hj%rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!rubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjrubj)}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hj` callback.h](h)}(h**Parameters**h]j)}(hj7uh]h Parameters}(hj9uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5uubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhj1uubj)}(hhh](j)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hjVuh]hstruct drm_printer *p}(hjXuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTuubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjPuubj)}(hhh]h)}(h DRM printerh]h DRM printer}(hjouhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkuhKhjluubah}(h]h ]h"]h$]h&]uh1jhjPuubeh}(h]h ]h"]h$]h&]uh1jhjkuhKhjMuubj)}(h.``unsigned int indent`` Tab indentation level h](j)}(h``unsigned int indent``h]j)}(hjuh]hunsigned int indent}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjuubj)}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjMuubj)}(h0``const struct drm_gem_object *gem`` GEM object h](j)}(h$``const struct drm_gem_object *gem``h]j)}(hjuh]h const struct drm_gem_object *gem}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjuubj)}(hhh]h)}(h GEM objecth]h GEM object}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjMuubeh}(h]h ]h"]h$]h&]uh1jhj1uubh)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhj1uubh)}(hgThis function can be used as :c:type:`drm_gem_object_funcs.print_info ` callback.h](hThis function can be used as }(hjvhhhNhNubh)}(h@:c:type:`drm_gem_object_funcs.print_info `h]j)}(hj#vh]hdrm_gem_object_funcs.print_info}(hj%vhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj!vubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjvubh callback.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@vhKhj1uubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjshhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_ttm_vmap (C function)c.drm_gem_ttm_vmaphNtauh1j5hjshhhNhNubjG)}(hhh](jL)}(hHint drm_gem_ttm_vmap (struct drm_gem_object *gem, struct iosys_map *map)h]jR)}(hGint drm_gem_ttm_vmap(struct drm_gem_object *gem, struct iosys_map *map)h](j)}(hinth]hint}(hjkvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgvhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK9ubjj)}(h h]h }(hjzvhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgvhhhjyvhK9ubj{)}(hdrm_gem_ttm_vmaph]j)}(hdrm_gem_ttm_vmaph]hdrm_gem_ttm_vmap}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjgvhhhjyvhK9ubj)}(h3(struct drm_gem_object *gem, struct iosys_map *map)h](j)}(hstruct drm_gem_object *gemh](jX)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjvubjj)}(h h]h }(hjvhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjvmodnameN classnameNj+j.)}j1]j4)}j'jvsbc.drm_gem_ttm_vmapasbuh1hhjvubjj)}(h h]h }(hjvhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubjH)}(hjKh]h*}(hjvhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjvubj)}(hgemh]hgem}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(hstruct iosys_map *maph](jX)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjwubjj)}(h h]h }(hj'whhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjwubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hj8whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5wubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj:wmodnameN classnameNj+j.)}j1]jvc.drm_gem_ttm_vmapasbuh1hhjwubjj)}(h h]h }(hjVwhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjwubjH)}(hjKh]h*}(hjdwhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjwubj)}(hmaph]hmap}(hjqwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhjgvhhhjyvhK9ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjcvhhhjyvhK9ubah}(h]j^vah ](jjeh"]h$]h&]jj)jhuh1jKhjyvhK9hj`vhhubj)}(hhh]h)}(h vmap :c:type:`ttm_buffer_object`h](hvmap }(hjwhhhNhNubh)}(h:c:type:`ttm_buffer_object`h]j)}(hjwh]httm_buffer_object}(hjwhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jvc.drm_gem_ttm_vmapasbjattm_buffer_objectuh1hhj`shKhjwubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK9hjwhhubah}(h]h ]h"]h$]h&]uh1jhj`vhhhjyvhK9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1jFhhhjshNhNubj)}(hXU**Parameters** ``struct drm_gem_object *gem`` GEM object. ``struct iosys_map *map`` [out] returns the dma-buf mapping. **Description** Maps a GEM object with ttm_bo_vmap(). This function can be used as :c:type:`drm_gem_object_funcs.vmap ` callback. **Return** 0 on success, or a negative errno code otherwise.h](h)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK=hjwubj)}(hhh](j)}(h+``struct drm_gem_object *gem`` GEM object. h](j)}(h``struct drm_gem_object *gem``h]j)}(hjxh]hstruct drm_gem_object *gem}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK:hjwubj)}(hhh]h)}(h GEM object.h]h GEM object.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhK:hjxubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjxhK:hjwubj)}(h=``struct iosys_map *map`` [out] returns the dma-buf mapping. h](j)}(h``struct iosys_map *map``h]j)}(hj9xh]hstruct iosys_map *map}(hj;xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7xubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK;hj3xubj)}(hhh]h)}(h"[out] returns the dma-buf mapping.h]h"[out] returns the dma-buf mapping.}(hjRxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNxhK;hjOxubah}(h]h ]h"]h$]h&]uh1jhj3xubeh}(h]h ]h"]h$]h&]uh1jhjNxhK;hjwubeh}(h]h ]h"]h$]h&]uh1jhjwubh)}(h**Description**h]j)}(hjtxh]h Description}(hjvxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrxubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK=hjwubh)}(hMaps a GEM object with ttm_bo_vmap(). This function can be used as :c:type:`drm_gem_object_funcs.vmap ` callback.h](hCMaps a GEM object with ttm_bo_vmap(). This function can be used as }(hjxhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.vmap `h]j)}(hjxh]hdrm_gem_object_funcs.vmap}(hjxhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK` callback.h](h)}(h**Parameters**h]j)}(hjyzh]h Parameters}(hj{zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwzubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKQhjszubj)}(hhh](j)}(h+``struct drm_gem_object *gem`` GEM object. h](j)}(h``struct drm_gem_object *gem``h]j)}(hjzh]hstruct drm_gem_object *gem}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKNhjzubj)}(hhh]h)}(h GEM object.h]h GEM object.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKNhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhKNhjzubj)}(h+``struct iosys_map *map`` dma-buf mapping. h](j)}(h``struct iosys_map *map``h]j)}(hjzh]hstruct iosys_map *map}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKOhjzubj)}(hhh]h)}(hdma-buf mapping.h]hdma-buf mapping.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKOhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhKOhjzubeh}(h]h ]h"]h$]h&]uh1jhjszubh)}(h**Description**h]j)}(hj {h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj {ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKQhjszubh)}(hUnmaps a GEM object with ttm_bo_vunmap(). This function can be used as :c:type:`drm_gem_object_funcs.vmap ` callback.h](hGUnmaps a GEM object with ttm_bo_vunmap(). This function can be used as }(hj"{hhhNhNubh)}(h::c:type:`drm_gem_object_funcs.vmap `h]j)}(hj,{h]hdrm_gem_object_funcs.vmap}(hj.{hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj*{ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKPhj"{ubh callback.}(hj"{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjI{hKPhjszubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjshhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_ttm_mmap (C function)c.drm_gem_ttm_mmaphNtauh1j5hjshhhNhNubjG)}(hhh](jL)}(hMint drm_gem_ttm_mmap (struct drm_gem_object *gem, struct vm_area_struct *vma)h]jR)}(hLint drm_gem_ttm_mmap(struct drm_gem_object *gem, struct vm_area_struct *vma)h](j)}(hinth]hint}(hjt{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp{hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK^ubjj)}(h h]h }(hj{hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjp{hhhj{hK^ubj{)}(hdrm_gem_ttm_mmaph]j)}(hdrm_gem_ttm_mmaph]hdrm_gem_ttm_mmap}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjp{hhhj{hK^ubj)}(h8(struct drm_gem_object *gem, struct vm_area_struct *vma)h](j)}(hstruct drm_gem_object *gemh](jX)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj{ubjj)}(h h]h }(hj{hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj{ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj{modnameN classnameNj+j.)}j1]j4)}j'j{sbc.drm_gem_ttm_mmapasbuh1hhj{ubjj)}(h h]h }(hj{hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj{ubjH)}(hjKh]h*}(hj{hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj{ubj)}(hgemh]hgem}(hj |hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hstruct vm_area_struct *vmah](jX)}(hjh]hstruct}(hj#|hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj|ubjj)}(h h]h }(hj0|hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj|ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjA|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>|ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjC|modnameN classnameNj+j.)}j1]j{c.drm_gem_ttm_mmapasbuh1hhj|ubjj)}(h h]h }(hj_|hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj|ubjH)}(hjKh]h*}(hjm|hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj|ubj)}(hvmah]hvma}(hjz|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1jhjp{hhhj{hK^ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjl{hhhj{hK^ubah}(h]jg{ah ](jjeh"]h$]h&]jj)jhuh1jKhj{hK^hji{hhubj)}(hhh]h)}(h mmap :c:type:`ttm_buffer_object`h](hmmap }(hj|hhhNhNubh)}(h:c:type:`ttm_buffer_object`h]j)}(hj|h]httm_buffer_object}(hj|hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j{c.drm_gem_ttm_mmapasbjattm_buffer_objectuh1hhj`shKhj|ubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK^hj|hhubah}(h]h ]h"]h$]h&]uh1jhji{hhhj{hK^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1jFhhhjshNhNubj)}(h**Parameters** ``struct drm_gem_object *gem`` GEM object. ``struct vm_area_struct *vma`` vm area. **Description** This function can be used as :c:type:`drm_gem_object_funcs.mmap ` callback.h](h)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKbhj|ubj)}(hhh](j)}(h+``struct drm_gem_object *gem`` GEM object. h](j)}(h``struct drm_gem_object *gem``h]j)}(hj }h]hstruct drm_gem_object *gem}(hj }hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK_hj}ubj)}(hhh]h)}(h GEM object.h]h GEM object.}(hj"}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hK_hj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hK_hj}ubj)}(h(``struct vm_area_struct *vma`` vm area. h](j)}(h``struct vm_area_struct *vma``h]j)}(hjB}h]hstruct vm_area_struct *vma}(hjD}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@}ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK`hj<}ubj)}(hhh]h)}(hvm area.h]hvm area.}(hj[}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW}hK`hjX}ubah}(h]h ]h"]h$]h&]uh1jhj<}ubeh}(h]h ]h"]h$]h&]uh1jhjW}hK`hj}ubeh}(h]h ]h"]h$]h&]uh1jhj|ubh)}(h**Description**h]j)}(hj}}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{}ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKbhj|ubh)}(haThis function can be used as :c:type:`drm_gem_object_funcs.mmap ` callback.h](hThis function can be used as }(hj}hhhNhNubh)}(h::c:type:`drm_gem_object_funcs.mmap `h]j)}(hj}h]hdrm_gem_object_funcs.mmap}(hj}hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKahj}ubh callback.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}hKahj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjshhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_gem_ttm_dumb_map_offset (C function)c.drm_gem_ttm_dumb_map_offsethNtauh1j5hjshhhNhNubjG)}(hhh](jL)}(hrint drm_gem_ttm_dumb_map_offset (struct drm_file *file, struct drm_device *dev, uint32_t handle, uint64_t *offset)h]jR)}(hqint drm_gem_ttm_dumb_map_offset(struct drm_file *file, struct drm_device *dev, uint32_t handle, uint64_t *offset)h](j)}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKzubjj)}(h h]h }(hj}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}hhhj}hKzubj{)}(hdrm_gem_ttm_dumb_map_offseth]j)}(hdrm_gem_ttm_dumb_map_offseth]hdrm_gem_ttm_dumb_map_offset}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhj}hKzubj)}(hR(struct drm_file *file, struct drm_device *dev, uint32_t handle, uint64_t *offset)h](j)}(hstruct drm_file *fileh](jX)}(hjh]hstruct}(hj"~hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj~ubjj)}(h h]h }(hj/~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj@~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=~ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjB~modnameN classnameNj+j.)}j1]j4)}j'j~sbc.drm_gem_ttm_dumb_map_offsetasbuh1hhj~ubjj)}(h h]h }(hj`~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubjH)}(hjKh]h*}(hjn~hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj~ubj)}(hfileh]hfile}(hj{~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj~ubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj~modnameN classnameNj+j.)}j1]j\~c.drm_gem_ttm_dumb_map_offsetasbuh1hhj~ubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubjH)}(hjKh]h*}(hj~hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj~ubj)}(hdevh]hdev}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(huint32_t handleh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j\~c.drm_gem_ttm_dumb_map_offsetasbuh1hhjubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hhandleh]hhandle}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(huint64_t *offseth](h)}(hhh]j)}(huint64_th]huint64_t}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjQmodnameN classnameNj+j.)}j1]j\~c.drm_gem_ttm_dumb_map_offsetasbuh1hhjHubjj)}(h h]h }(hjmhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHubjH)}(hjKh]h*}(hj{hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjHubj)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubeh}(h]h ]h"]h$]h&]jjuh1jhj}hhhj}hKzubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj}hhhj}hKzubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1jKhj}hKzhj}hhubj)}(hhh]h)}(hCImplements struct :c:type:`drm_driver.dumb_map_offset `h](hImplements struct }(hjhhhNhNubh)}(h1:c:type:`drm_driver.dumb_map_offset `h]j)}(hjh]hdrm_driver.dumb_map_offset}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j\~c.drm_gem_ttm_dumb_map_offsetasbja drm_driveruh1hhj`shKhjubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKzhjhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hKzubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjshNhNubj)}(hXD**Parameters** ``struct drm_file *file`` DRM file pointer. ``struct drm_device *dev`` DRM device. ``uint32_t handle`` GEM handle ``uint64_t *offset`` Returns the mapping's memory offset on success **Description** Provides an implementation of struct :c:type:`drm_driver.dumb_map_offset ` for TTM-based GEM drivers. TTM allocates the offset internally and drm_gem_ttm_dumb_map_offset() returns it for dumb-buffer implementations. See struct :c:type:`drm_driver.dumb_map_offset `. **Return** 0 on success, or a negative errno code otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK~hjubj)}(hhh](j)}(h,``struct drm_file *file`` DRM file pointer. h](j)}(h``struct drm_file *file``h]j)}(hjh]hstruct drm_file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK{hjubj)}(hhh]h)}(hDRM file pointer.h]hDRM file pointer.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hK{hj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hK{hjubj)}(h'``struct drm_device *dev`` DRM device. h](j)}(h``struct drm_device *dev``h]j)}(hjPh]hstruct drm_device *dev}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK|hjJubj)}(hhh]h)}(h DRM device.h]h DRM device.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehK|hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehK|hjubj)}(h``uint32_t handle`` GEM handle h](j)}(h``uint32_t handle``h]j)}(hjh]huint32_t handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK}hjubj)}(hhh]h)}(h GEM handleh]h GEM handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK}hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK}hjubj)}(hD``uint64_t *offset`` Returns the mapping's memory offset on success h](j)}(h``uint64_t *offset``h]j)}(hj€h]huint64_t *offset}(hjĀhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK~hjubj)}(hhh]h)}(h.Returns the mapping's memory offset on successh]h0Returns the mapping’s memory offset on success}(hjۀhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj׀hK~hj؀ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj׀hK~hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjubh)}(hProvides an implementation of struct :c:type:`drm_driver.dumb_map_offset ` for TTM-based GEM drivers. TTM allocates the offset internally and drm_gem_ttm_dumb_map_offset() returns it for dumb-buffer implementations.h](h%Provides an implementation of struct }(hjhhhNhNubh)}(h1:c:type:`drm_driver.dumb_map_offset `h]j)}(hjh]hdrm_driver.dumb_map_offset}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjubh for TTM-based GEM drivers. TTM allocates the offset internally and drm_gem_ttm_dumb_map_offset() returns it for dumb-buffer implementations.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:hKhjubh)}(h=See struct :c:type:`drm_driver.dumb_map_offset `.h](h See struct }(hjEhhhNhNubh)}(h1:c:type:`drm_driver.dumb_map_offset `h]j)}(hjOh]hdrm_driver.dumb_map_offset}(hjQhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjEubh.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhKhjubh)}(h **Return**h]j)}(hjyh]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjubh)}(h10 on success, or a negative errno code otherwise.h]h10 on success, or a negative errno code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjshhhNhNubeh}(h]"gem-ttm-helper-functions-referenceah ]h"]"gem ttm helper functions referenceah$]h&]uh1hhjzhhhhhMubeh}(h]"the-graphics-execution-manager-gemah ]h"]$the graphics execution manager (gem)ah$]h&]uh1hhhhhhhhKPubh)}(hhh](h)}(hVMA Offset Managerh]hVMA Offset Manager}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hXThe vma-manager is responsible to map arbitrary driver-dependent memory regions into the linear user address-space. It provides offsets to the caller which can then be used on the address_space of the drm-device. It takes care to not overlap regions, size them appropriately and to not confuse mm-core by inconsistent fake vm_pgoff fields. Drivers shouldn't use this for object placement in VMEM. This manager should only be used to manage mappings into linear user-space VMs.h]hXThe vma-manager is responsible to map arbitrary driver-dependent memory regions into the linear user address-space. It provides offsets to the caller which can then be used on the address_space of the drm-device. It takes care to not overlap regions, size them appropriately and to not confuse mm-core by inconsistent fake vm_pgoff fields. Drivers shouldn’t use this for object placement in VMEM. This manager should only be used to manage mappings into linear user-space VMs.}(hjƁhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:423: ./drivers/gpu/drm/drm_vma_manager.chK&hjhhubh)}(hWe use drm_mm as backend to manage object allocations. But it is highly optimized for alloc/free calls, not lookups. Hence, we use an rb-tree to speed up offset lookups.h]hWe use drm_mm as backend to manage object allocations. But it is highly optimized for alloc/free calls, not lookups. Hence, we use an rb-tree to speed up offset lookups.}(hjՁhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:423: ./drivers/gpu/drm/drm_vma_manager.chK.hjhhubh)}(hYou must not use multiple offset managers on a single address_space. Otherwise, mm-core will be unable to tear down memory mappings as the VM will no longer be linear.h]hYou must not use multiple offset managers on a single address_space. Otherwise, mm-core will be unable to tear down memory mappings as the VM will no longer be linear.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:423: ./drivers/gpu/drm/drm_vma_manager.chK2hjhhubh)}(hXThis offset manager works on page-based addresses. That is, every argument and return code (with the exception of drm_vma_node_offset_addr()) is given in number of pages, not number of bytes. That means, object sizes and offsets must always be page-aligned (as usual). If you want to get a valid byte-based user-space address for a given offset, please see drm_vma_node_offset_addr().h]hXThis offset manager works on page-based addresses. That is, every argument and return code (with the exception of drm_vma_node_offset_addr()) is given in number of pages, not number of bytes. That means, object sizes and offsets must always be page-aligned (as usual). If you want to get a valid byte-based user-space address for a given offset, please see drm_vma_node_offset_addr().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:423: ./drivers/gpu/drm/drm_vma_manager.chK6hjhhubh)}(hXAdditionally to offset management, the vma offset manager also handles access management. For every open-file context that is allowed to access a given node, you must call drm_vma_node_allow(). Otherwise, an mmap() call on this open-file with the offset of the node will fail with -EACCES. To revoke access again, use drm_vma_node_revoke(). However, the caller is responsible for destroying already existing mappings, if required.h]hXAdditionally to offset management, the vma offset manager also handles access management. For every open-file context that is allowed to access a given node, you must call drm_vma_node_allow(). Otherwise, an mmap() call on this open-file with the offset of the node will fail with -EACCES. To revoke access again, use drm_vma_node_revoke(). However, the caller is responsible for destroying already existing mappings, if required.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:423: ./drivers/gpu/drm/drm_vma_manager.chK=hjhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB/drm_vma_offset_exact_lookup_locked (C function)$c.drm_vma_offset_exact_lookup_lockedhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hstruct drm_vma_offset_node * drm_vma_offset_exact_lookup_locked (struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h]jR)}(hstruct drm_vma_offset_node *drm_vma_offset_exact_lookup_locked(struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h](jX)}(hjh]hstruct}(hj*hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj&hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKTubjj)}(h h]h }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&hhhj7hKTubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjKmodnameN classnameNj+j.)}j1]j4)}j'"drm_vma_offset_exact_lookup_lockedsb$c.drm_vma_offset_exact_lookup_lockedasbuh1hhj&hhhj7hKTubjj)}(h h]h }(hjjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&hhhj7hKTubjH)}(hjKh]h*}(hjxhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj&hhhj7hKTubj{)}(h"drm_vma_offset_exact_lookup_lockedh]j)}(hjgh]h"drm_vma_offset_exact_lookup_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&hhhj7hKTubj)}(hN(struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h](j)}(h"struct drm_vma_offset_manager *mgrh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hj‚hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjĂmodnameN classnameNj+j.)}j1]je$c.drm_vma_offset_exact_lookup_lockedasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj"hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj>hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hstarth]hstart}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long pagesh](j)}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjaubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjaubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj&hhhj7hKTubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj"hhhj7hKTubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj7hKThjhhubj)}(hhh]h)}(hLook up node by exact addressh]hLook up node by exact address}(hjǃhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKThjăhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hKTubeh}(h]h ](jfunctioneh"]h$]h&]jjjj߃jj߃jjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_vma_offset_manager *mgr`` Manager object ``unsigned long start`` Start address (page-based, not byte-based) ``unsigned long pages`` Size of object (page-based) **Description** Same as drm_vma_offset_lookup_locked() but does not allow any offset into the node. It only returns the exact object with the given start address. **Return** Node at exact start address **start**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKXhjubj)}(hhh](j)}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](j)}(h&``struct drm_vma_offset_manager *mgr``h]j)}(hjh]h"struct drm_vma_offset_manager *mgr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKUhjubj)}(hhh]h)}(hManager objecth]hManager object}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKUhjubj)}(hC``unsigned long start`` Start address (page-based, not byte-based) h](j)}(h``unsigned long start``h]j)}(hjAh]hunsigned long start}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKVhj;ubj)}(hhh]h)}(h*Start address (page-based, not byte-based)h]h*Start address (page-based, not byte-based)}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKVhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhKVhjubj)}(h4``unsigned long pages`` Size of object (page-based) h](j)}(h``unsigned long pages``h]j)}(hjzh]hunsigned long pages}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKWhjtubj)}(hhh]h)}(hSize of object (page-based)h]hSize of object (page-based)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKWhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhKWhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKYhjubh)}(hSame as drm_vma_offset_lookup_locked() but does not allow any offset into the node. It only returns the exact object with the given start address.h]hSame as drm_vma_offset_lookup_locked() but does not allow any offset into the node. It only returns the exact object with the given start address.}(hj˄hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKXhjubh)}(h **Return**h]j)}(hj܄h]hReturn}(hjބhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڄubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhK[hjubh)}(h&Node at exact start address **start**.h](hNode at exact start address }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhK\hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_vma_offset_lock_lookup (C function)c.drm_vma_offset_lock_lookuphNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hDvoid drm_vma_offset_lock_lookup (struct drm_vma_offset_manager *mgr)h]jR)}(hCvoid drm_vma_offset_lock_lookup(struct drm_vma_offset_manager *mgr)h](j)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKkubjj)}(h h]h }(hjBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj/hhhjAhKkubj{)}(hdrm_vma_offset_lock_lookuph]j)}(hdrm_vma_offset_lock_lookuph]hdrm_vma_offset_lock_lookup}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhjAhKkubj)}(h$(struct drm_vma_offset_manager *mgr)h]j)}(h"struct drm_vma_offset_manager *mgrh](jX)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjlubjj)}(h h]h }(hj}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jVsbc.drm_vma_offset_lock_lookupasbuh1hhjlubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjlubj)}(hmgrh]hmgr}(hjɅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubah}(h]h ]h"]h$]h&]jjuh1jhj/hhhjAhKkubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj+hhhjAhKkubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1jKhjAhKkhj(hhubj)}(hhh]h)}(h$Lock lookup for extended private useh]h$Lock lookup for extended private use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKkhjhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhKkubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jFhhhjhNhNubj)}(hXt**Parameters** ``struct drm_vma_offset_manager *mgr`` Manager object **Description** Lock VMA manager for extended lookups. Only locked VMA function calls are allowed while holding this lock. All other contexts are blocked from VMA until the lock is released via drm_vma_offset_unlock_lookup(). Use this if you need to take a reference to the objects returned by drm_vma_offset_lookup_locked() before releasing this lock again. This lock must not be used for anything else than extended lookups. You must not call any other VMA helpers while holding this lock. **Note** You're in atomic-context while holding this lock!h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKohjubj)}(hhh]j)}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](j)}(h&``struct drm_vma_offset_manager *mgr``h]j)}(hj4h]h"struct drm_vma_offset_manager *mgr}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKlhj.ubj)}(hhh]h)}(hManager objecth]hManager object}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhKlhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhKlhj+ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKnhjubh)}(hLock VMA manager for extended lookups. Only locked VMA function calls are allowed while holding this lock. All other contexts are blocked from VMA until the lock is released via drm_vma_offset_unlock_lookup().h]hLock VMA manager for extended lookups. Only locked VMA function calls are allowed while holding this lock. All other contexts are blocked from VMA until the lock is released via drm_vma_offset_unlock_lookup().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKmhjubh)}(hUse this if you need to take a reference to the objects returned by drm_vma_offset_lookup_locked() before releasing this lock again.h]hUse this if you need to take a reference to the objects returned by drm_vma_offset_lookup_locked() before releasing this lock again.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKqhjubh)}(hThis lock must not be used for anything else than extended lookups. You must not call any other VMA helpers while holding this lock.h]hThis lock must not be used for anything else than extended lookups. You must not call any other VMA helpers while holding this lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKthjubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKwhjubh)}(h1You're in atomic-context while holding this lock!h]h3You’re in atomic-context while holding this lock!}(hjʆhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)drm_vma_offset_unlock_lookup (C function)c.drm_vma_offset_unlock_lookuphNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hFvoid drm_vma_offset_unlock_lookup (struct drm_vma_offset_manager *mgr)h]jR)}(hEvoid drm_vma_offset_unlock_lookup(struct drm_vma_offset_manager *mgr)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(hdrm_vma_offset_unlock_lookuph]j)}(hdrm_vma_offset_unlock_lookuph]hdrm_vma_offset_unlock_lookup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h$(struct drm_vma_offset_manager *mgr)h]j)}(h"struct drm_vma_offset_manager *mgrh](jX)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj2ubjj)}(h h]h }(hjChhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj2ubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjVmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_vma_offset_unlock_lookupasbuh1hhj2ubjj)}(h h]h }(hjthhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj2ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj2ubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h)}(h&Unlock lookup for extended private useh]h&Unlock lookup for extended private use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjчjjчjjjuh1jFhhhjhNhNubj)}(h**Parameters** ``struct drm_vma_offset_manager *mgr`` Manager object **Description** Release lookup-lock. See drm_vma_offset_lock_lookup() for more information.h](h)}(h**Parameters**h]j)}(hjۇh]h Parameters}(hj݇hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjهubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjՇubj)}(hhh]j)}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](j)}(h&``struct drm_vma_offset_manager *mgr``h]j)}(hjh]h"struct drm_vma_offset_manager *mgr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubj)}(hhh]h)}(hManager objecth]hManager object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjՇubh)}(h**Description**h]j)}(hj5h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjՇubh)}(hKRelease lookup-lock. See drm_vma_offset_lock_lookup() for more information.h]hKRelease lookup-lock. See drm_vma_offset_lock_lookup() for more information.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjՇubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_vma_node_reset (C function)c.drm_vma_node_resethNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h:void drm_vma_node_reset (struct drm_vma_offset_node *node)h]jR)}(h9void drm_vma_node_reset(struct drm_vma_offset_node *node)h](j)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvhhhjhKubj{)}(hdrm_vma_node_reseth]j)}(hdrm_vma_node_reseth]hdrm_vma_node_reset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhjhKubj)}(h"(struct drm_vma_offset_node *node)h]j)}(h struct drm_vma_offset_node *nodeh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjĈhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjՈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҈ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj׈modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_vma_node_resetasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjvhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjrhhhjhKubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjohhubj)}(hhh]h)}(hInitialize or reset node objecth]hInitialize or reset node object}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhj7hhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_vma_offset_node *node`` Node to initialize or reset **Description** Reset a node to its initial state. This must be called before using it with any VMA offset manager. This must not be called on an already allocated node, or you will leak memory.h](h)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjVubj)}(hhh]j)}(hA``struct drm_vma_offset_node *node`` Node to initialize or reset h](j)}(h$``struct drm_vma_offset_node *node``h]j)}(hj{h]h struct drm_vma_offset_node *node}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjuubj)}(hhh]h)}(hNode to initialize or reseth]hNode to initialize or reset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhKhjrubah}(h]h ]h"]h$]h&]uh1jhjVubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjVubh)}(hcReset a node to its initial state. This must be called before using it with any VMA offset manager.h]hcReset a node to its initial state. This must be called before using it with any VMA offset manager.}(hj̉hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjVubh)}(hNThis must not be called on an already allocated node, or you will leak memory.h]hNThis must not be called on an already allocated node, or you will leak memory.}(hjۉhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_vma_node_start (C function)c.drm_vma_node_starthNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hIunsigned long drm_vma_node_start (const struct drm_vma_offset_node *node)h]jR)}(hHunsigned long drm_vma_node_start(const struct drm_vma_offset_node *node)h](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj)}(hlongh]hlong}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(hdrm_vma_node_starth]j)}(hdrm_vma_node_starth]hdrm_vma_node_start}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h((const struct drm_vma_offset_node *node)h]j)}(h&const struct drm_vma_offset_node *nodeh](jX)}(hj h]hconst}(hjchhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_ubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubjX)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jIsbc.drm_vma_node_startasbuh1hhj_ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubjH)}(hjKh]h*}(hjʊhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj_ubj)}(hnodeh]hnode}(hj׊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h)}(h.Return start address for page-based addressingh]h.Return start address for page-based addressing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX"**Parameters** ``const struct drm_vma_offset_node *node`` Node to inspect **Description** Return the start address of the given node. This can be used as offset into the linear VM space that is provided by the VMA offset manager. Note that this can only be used for page-based addressing. If you need a proper offset for user-space mappings, you must apply "<< PAGE_SHIFT" or use the drm_vma_node_offset_addr() helper instead. **Return** Start address of **node** for page-based addressing. 0 if the node does not have an offset allocated.h](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubj)}(hhh]j)}(h;``const struct drm_vma_offset_node *node`` Node to inspect h](j)}(h*``const struct drm_vma_offset_node *node``h]j)}(hjBh]h&const struct drm_vma_offset_node *node}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhj<ubj)}(hhh]h)}(hNode to inspecth]hNode to inspect}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKhj9ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubh)}(hXPReturn the start address of the given node. This can be used as offset into the linear VM space that is provided by the VMA offset manager. Note that this can only be used for page-based addressing. If you need a proper offset for user-space mappings, you must apply "<< PAGE_SHIFT" or use the drm_vma_node_offset_addr() helper instead.h]hXTReturn the start address of the given node. This can be used as offset into the linear VM space that is provided by the VMA offset manager. Note that this can only be used for page-based addressing. If you need a proper offset for user-space mappings, you must apply “<< PAGE_SHIFT” or use the drm_vma_node_offset_addr() helper instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubh)}(heStart address of **node** for page-based addressing. 0 if the node does not have an offset allocated.h](hStart address of }(hjhhhNhNubj)}(h**node**h]hnode}(hj‹hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhL for page-based addressing. 0 if the node does not have an offset allocated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_vma_node_size (C function)c.drm_vma_node_sizehNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hBunsigned long drm_vma_node_size (struct drm_vma_offset_node *node)h]jR)}(hAunsigned long drm_vma_node_size(struct drm_vma_offset_node *node)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hKubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKubjj)}(h h]h }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hKubj{)}(hdrm_vma_node_sizeh]j)}(hdrm_vma_node_sizeh]hdrm_vma_node_size}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hKubj)}(h"(struct drm_vma_offset_node *node)h]j)}(h struct drm_vma_offset_node *nodeh](jX)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjPubjj)}(h h]h }(hjahhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjPubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjtmodnameN classnameNj+j.)}j1]j4)}j'j:sbc.drm_vma_node_sizeasbuh1hhjPubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjPubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjPubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hKhjhhubj)}(hhh]h)}(hReturn size (page-based)h]hReturn size (page-based)}(hj׌hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjԌhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hXd**Parameters** ``struct drm_vma_offset_node *node`` Node to inspect **Description** Return the size as number of pages for the given node. This is the same size that was passed to drm_vma_offset_add(). If no offset is allocated for the node, this is 0. **Return** Size of **node** as number of pages. 0 if the node does not have an offset allocated.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubj)}(hhh]j)}(h5``struct drm_vma_offset_node *node`` Node to inspect h](j)}(h$``struct drm_vma_offset_node *node``h]j)}(hjh]h struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubj)}(hhh]h)}(hNode to inspecth]hNode to inspect}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubh)}(hReturn the size as number of pages for the given node. This is the same size that was passed to drm_vma_offset_add(). If no offset is allocated for the node, this is 0.h]hReturn the size as number of pages for the given node. This is the same size that was passed to drm_vma_offset_add(). If no offset is allocated for the node, this is 0.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubh)}(h **Return**h]j)}(hjzh]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubh)}(hUSize of **node** as number of pages. 0 if the node does not have an offset allocated.h](hSize of }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhE as number of pages. 0 if the node does not have an offset allocated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_vma_node_offset_addr (C function)c.drm_vma_node_offset_addrhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hA__u64 drm_vma_node_offset_addr (struct drm_vma_offset_node *node)h]jR)}(h@__u64 drm_vma_node_offset_addr(struct drm_vma_offset_node *node)h](h)}(hhh]j)}(h__u64h]h__u64}(hjԍhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjэubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj֍modnameN classnameNj+j.)}j1]j4)}j'drm_vma_node_offset_addrsbc.drm_vma_node_offset_addrasbuh1hhj͍hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj͍hhhjhKubj{)}(hdrm_vma_node_offset_addrh]j)}(hjh]hdrm_vma_node_offset_addr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj͍hhhjhKubj)}(h"(struct drm_vma_offset_node *node)h]j)}(h struct drm_vma_offset_node *nodeh](jX)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj0hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjCmodnameN classnameNj+j.)}j1]jc.drm_vma_node_offset_addrasbuh1hhjubjj)}(h h]h }(hj_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjmhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnodeh]hnode}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj͍hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjɍhhhjhKubah}(h]jčah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjƍhhubj)}(hhh]h)}(h,Return sanitized offset for user-space mmapsh]h,Return sanitized offset for user-space mmaps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjƍhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hXq**Parameters** ``struct drm_vma_offset_node *node`` Linked offset node **Description** Same as drm_vma_node_start() but returns the address as a valid offset that can be used for user-space mappings during mmap(). This must not be called on unlinked nodes. **Return** Offset of **node** for byte-based addressing. 0 if the node does not have an object allocated.h](h)}(h**Parameters**h]j)}(hjƎh]h Parameters}(hjȎhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjĎubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubj)}(hhh]j)}(h8``struct drm_vma_offset_node *node`` Linked offset node h](j)}(h$``struct drm_vma_offset_node *node``h]j)}(hjh]h struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjߎubj)}(hhh]h)}(hLinked offset nodeh]hLinked offset node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjߎubeh}(h]h ]h"]h$]h&]uh1jhjhKhj܎ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubh)}(hSame as drm_vma_node_start() but returns the address as a valid offset that can be used for user-space mappings during mmap(). This must not be called on unlinked nodes.h]hSame as drm_vma_node_start() but returns the address as a valid offset that can be used for user-space mappings during mmap(). This must not be called on unlinked nodes.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubh)}(h **Return**h]j)}(hjGh]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubh)}(h^Offset of **node** for byte-based addressing. 0 if the node does not have an object allocated.h](h Offset of }(hj]hhhNhNubj)}(h**node**h]hnode}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubhL for byte-based addressing. 0 if the node does not have an object allocated.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_vma_node_unmap (C function)c.drm_vma_node_unmaphNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h^void drm_vma_node_unmap (struct drm_vma_offset_node *node, struct address_space *file_mapping)h]jR)}(h]void drm_vma_node_unmap(struct drm_vma_offset_node *node, struct address_space *file_mapping)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(hdrm_vma_node_unmaph]j)}(hdrm_vma_node_unmaph]hdrm_vma_node_unmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(hF(struct drm_vma_offset_node *node, struct address_space *file_mapping)h](j)}(h struct drm_vma_offset_node *nodeh](jX)}(hjh]hstruct}(hjۏhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj׏ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj׏ubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_vma_node_unmapasbuh1hhj׏ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj׏ubjH)}(hjKh]h*}(hj'hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj׏ubj)}(hnodeh]hnode}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׏ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjӏubj)}(h"struct address_space *file_mappingh](jX)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjIubjj)}(h h]h }(hjZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIubh)}(hhh]j)}(h address_spaceh]h address_space}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmmodnameN classnameNj+j.)}j1]jc.drm_vma_node_unmapasbuh1hhjIubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjIubj)}(h file_mappingh]h file_mapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjӏubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h)}(hUnmap offset nodeh]hUnmap offset node}(hjΐhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjːhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_vma_offset_node *node`` Offset node ``struct address_space *file_mapping`` Address space to unmap **node** from **Description** Unmap all userspace mappings for a given offset node. The mappings must be associated with the **file_mapping** address-space. If no offset exists nothing is done. This call is unlocked. The caller must guarantee that drm_vma_offset_remove() is not called on this node concurrently.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubj)}(hhh](j)}(h1``struct drm_vma_offset_node *node`` Offset node h](j)}(h$``struct drm_vma_offset_node *node``h]j)}(hjh]h struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhj ubj)}(hhh]h)}(h Offset nodeh]h Offset node}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjubj)}(hL``struct address_space *file_mapping`` Address space to unmap **node** from h](j)}(h&``struct address_space *file_mapping``h]j)}(hjHh]h"struct address_space *file_mapping}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjBubj)}(hhh]h)}(h$Address space to unmap **node** fromh](hAddress space to unmap }(hjahhhNhNubj)}(h**node**h]hnode}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh from}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubh)}(hUnmap all userspace mappings for a given offset node. The mappings must be associated with the **file_mapping** address-space. If no offset exists nothing is done.h](h_Unmap all userspace mappings for a given offset node. The mappings must be associated with the }(hjhhhNhNubj)}(h**file_mapping**h]h file_mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh4 address-space. If no offset exists nothing is done.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubh)}(hvThis call is unlocked. The caller must guarantee that drm_vma_offset_remove() is not called on this node concurrently.h]hvThis call is unlocked. The caller must guarantee that drm_vma_offset_remove() is not called on this node concurrently.}(hj̑hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_vma_node_verify_access (C function)c.drm_vma_node_verify_accesshNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hWint drm_vma_node_verify_access (struct drm_vma_offset_node *node, struct drm_file *tag)h]jR)}(hVint drm_vma_node_verify_access(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hKubj{)}(hdrm_vma_node_verify_accessh]j)}(hdrm_vma_node_verify_accessh]hdrm_vma_node_verify_access}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hKubj)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(h struct drm_vma_offset_node *nodeh](jX)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj4ubjj)}(h h]h }(hjEhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4ubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjXmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_vma_node_verify_accessasbuh1hhj4ubjj)}(h h]h }(hjvhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj4ubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hstruct drm_file *tagh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjȒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŒubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjʒmodnameN classnameNj+j.)}j1]jrc.drm_vma_node_verify_accessasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(htagh]htag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hKhjhhubj)}(hhh]h)}(h"Access verification helper for TTMh]h"Access verification helper for TTM}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhj(hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1jFhhhjhNhNubj)}(hXf**Parameters** ``struct drm_vma_offset_node *node`` Offset node ``struct drm_file *tag`` Tag of file to check **Description** This checks whether **tag** is granted access to **node**. It is the same as drm_vma_node_is_allowed() but suitable as drop-in helper for TTM verify_access() callbacks. **Return** 0 if access is granted, -EACCES otherwise.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjGubj)}(hhh](j)}(h1``struct drm_vma_offset_node *node`` Offset node h](j)}(h$``struct drm_vma_offset_node *node``h]j)}(hjlh]h struct drm_vma_offset_node *node}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjfubj)}(hhh]h)}(h Offset nodeh]h Offset node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhKhjcubj)}(h.``struct drm_file *tag`` Tag of file to check h](j)}(h``struct drm_file *tag``h]j)}(hjh]hstruct drm_file *tag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubj)}(hhh]h)}(hTag of file to checkh]hTag of file to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjcubeh}(h]h ]h"]h$]h&]uh1jhjGubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޓubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjGubh)}(hThis checks whether **tag** is granted access to **node**. It is the same as drm_vma_node_is_allowed() but suitable as drop-in helper for TTM verify_access() callbacks.h](hThis checks whether }(hjhhhNhNubj)}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is granted access to }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubho. It is the same as drm_vma_node_is_allowed() but suitable as drop-in helper for TTM verify_access() callbacks.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjGubh)}(h **Return**h]j)}(hj+h]hReturn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjGubh)}(h*0 if access is granted, -EACCES otherwise.h]h*0 if access is granted, -EACCES otherwise.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_vma_offset_manager_init (C function)c.drm_vma_offset_manager_inithNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(htvoid drm_vma_offset_manager_init (struct drm_vma_offset_manager *mgr, unsigned long page_offset, unsigned long size)h]jR)}(hsvoid drm_vma_offset_manager_init(struct drm_vma_offset_manager *mgr, unsigned long page_offset, unsigned long size)h](j)}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKHubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlhhhj~hKHubj{)}(hdrm_vma_offset_manager_inith]j)}(hdrm_vma_offset_manager_inith]hdrm_vma_offset_manager_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhj~hKHubj)}(hS(struct drm_vma_offset_manager *mgr, unsigned long page_offset, unsigned long size)h](j)}(h"struct drm_vma_offset_manager *mgrh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hj˔hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȔubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj͔modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_vma_offset_manager_initasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long page_offseth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h page_offseth]h page_offset}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjlhhhj~hKHubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhhj~hKHubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jKhj~hKHhjehhubj)}(hhh]h)}(hInitialize new offset-managerh]hInitialize new offset-manager}(hjҕhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKHhjϕhhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~hKHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_vma_offset_manager *mgr`` Manager object ``unsigned long page_offset`` Offset of available memory area (page-based) ``unsigned long size`` Size of available address space range (page-based) **Description** Initialize a new offset-manager. The offset and area size available for the manager are given as **page_offset** and **size**. Both are interpreted as page-numbers, not bytes. Adding/removing nodes from the manager is locked internally and protected against concurrent access. However, node allocation and destruction is left for the caller. While calling into the vma-manager, a given node must always be guaranteed to be referenced.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKLhjubj)}(hhh](j)}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](j)}(h&``struct drm_vma_offset_manager *mgr``h]j)}(hjh]h"struct drm_vma_offset_manager *mgr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKIhj ubj)}(hhh]h)}(hManager objecth]hManager object}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKIhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hKIhj ubj)}(hK``unsigned long page_offset`` Offset of available memory area (page-based) h](j)}(h``unsigned long page_offset``h]j)}(hjLh]hunsigned long page_offset}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKJhjFubj)}(hhh]h)}(h,Offset of available memory area (page-based)h]h,Offset of available memory area (page-based)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKJhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahKJhj ubj)}(hJ``unsigned long size`` Size of available address space range (page-based) h](j)}(h``unsigned long size``h]j)}(hjh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKKhjubj)}(hhh]h)}(h2Size of available address space range (page-based)h]h2Size of available address space range (page-based)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKKhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hj–hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKMhjubh)}(hInitialize a new offset-manager. The offset and area size available for the manager are given as **page_offset** and **size**. Both are interpreted as page-numbers, not bytes.h](haInitialize a new offset-manager. The offset and area size available for the manager are given as }(hj֖hhhNhNubj)}(h**page_offset**h]h page_offset}(hjޖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֖ubh and }(hj֖hhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֖ubh2. Both are interpreted as page-numbers, not bytes.}(hj֖hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKLhjubh)}(hXAdding/removing nodes from the manager is locked internally and protected against concurrent access. However, node allocation and destruction is left for the caller. While calling into the vma-manager, a given node must always be guaranteed to be referenced.h]hXAdding/removing nodes from the manager is locked internally and protected against concurrent access. However, node allocation and destruction is left for the caller. While calling into the vma-manager, a given node must always be guaranteed to be referenced.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB+drm_vma_offset_manager_destroy (C function) c.drm_vma_offset_manager_destroyhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hHvoid drm_vma_offset_manager_destroy (struct drm_vma_offset_manager *mgr)h]jR)}(hGvoid drm_vma_offset_manager_destroy(struct drm_vma_offset_manager *mgr)h](j)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chK_ubjj)}(h h]h }(hjGhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4hhhjFhK_ubj{)}(hdrm_vma_offset_manager_destroyh]j)}(hdrm_vma_offset_manager_destroyh]hdrm_vma_offset_manager_destroy}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj4hhhjFhK_ubj)}(h$(struct drm_vma_offset_manager *mgr)h]j)}(h"struct drm_vma_offset_manager *mgrh](jX)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjqubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'j[sb c.drm_vma_offset_manager_destroyasbuh1hhjqubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjqubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjqubj)}(hmgrh]hmgr}(hjΗhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhjFhK_ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj0hhhjFhK_ubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1jKhjFhK_hj-hhubj)}(hhh]h)}(hDestroy offset managerh]hDestroy offset manager}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chK_hjhhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjFhK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX}**Parameters** ``struct drm_vma_offset_manager *mgr`` Manager object **Description** Destroy an object manager which was previously created via drm_vma_offset_manager_init(). The caller must remove all allocated nodes before destroying the manager. Otherwise, drm_mm will refuse to free the requested resources. The manager must not be accessed after this function is called.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKchjubj)}(hhh]j)}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](j)}(h&``struct drm_vma_offset_manager *mgr``h]j)}(hj9h]h"struct drm_vma_offset_manager *mgr}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chK`hj3ubj)}(hhh]h)}(hManager objecth]hManager object}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhK`hjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhK`hj0ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKbhjubh)}(hDestroy an object manager which was previously created via drm_vma_offset_manager_init(). The caller must remove all allocated nodes before destroying the manager. Otherwise, drm_mm will refuse to free the requested resources.h]hDestroy an object manager which was previously created via drm_vma_offset_manager_init(). The caller must remove all allocated nodes before destroying the manager. Otherwise, drm_mm will refuse to free the requested resources.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKahjubh)}(h?The manager must not be accessed after this function is called.h]h?The manager must not be accessed after this function is called.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)drm_vma_offset_lookup_locked (C function)c.drm_vma_offset_lookup_lockedhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hstruct drm_vma_offset_node * drm_vma_offset_lookup_locked (struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h]jR)}(hstruct drm_vma_offset_node *drm_vma_offset_lookup_locked(struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h](jX)}(hjh]hstruct}(hjȘhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjĘhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKpubjj)}(h h]h }(hj֘hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjĘhhhj՘hKpubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_vma_offset_lookup_lockedsbc.drm_vma_offset_lookup_lockedasbuh1hhjĘhhhj՘hKpubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjĘhhhj՘hKpubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjĘhhhj՘hKpubj{)}(hdrm_vma_offset_lookup_lockedh]j)}(hjh]hdrm_vma_offset_lookup_locked}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjĘhhhj՘hKpubj)}(hN(struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h](j)}(h"struct drm_vma_offset_manager *mgrh](jX)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj>ubjj)}(h h]h }(hjOhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>ubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjbmodnameN classnameNj+j.)}j1]jc.drm_vma_offset_lookup_lockedasbuh1hhj>ubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj>ubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hjΙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjܙhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hunsigned long pagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hpagesh]hpages}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubeh}(h]h ]h"]h$]h&]jjuh1jhjĘhhhj՘hKpubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj՘hKpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj՘hKphjhhubj)}(hhh]h)}(hFind node in offset spaceh]hFind node in offset space}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKphjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj՘hKpubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_vma_offset_manager *mgr`` Manager object ``unsigned long start`` Start address for object (page-based) ``unsigned long pages`` Size of object (page-based) **Description** Find a node given a start address and object size. This returns the _best_ match for the given node. That is, **start** may point somewhere into a valid region and the given node will be returned, as long as the node spans the whole requested area (given the size in number of pages as **pages**). Note that before lookup the vma offset manager lookup lock must be acquired with drm_vma_offset_lock_lookup(). See there for an example. This can then be used to implement weakly referenced lookups using kref_get_unless_zero(). **Example** :: drm_vma_offset_lock_lookup(mgr); node = drm_vma_offset_lookup_locked(mgr); if (node) kref_get_unless_zero(container_of(node, sth, entr)); drm_vma_offset_unlock_lookup(mgr); **Return** Returns NULL if no suitable node can be found. Otherwise, the best match is returned. It's the caller's responsibility to make sure the node doesn't get destroyed before the caller can access it.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKthjubj)}(hhh](j)}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](j)}(h&``struct drm_vma_offset_manager *mgr``h]j)}(hjh]h"struct drm_vma_offset_manager *mgr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKqhjubj)}(hhh]h)}(hManager objecth]hManager object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKqhjubj)}(h>``unsigned long start`` Start address for object (page-based) h](j)}(h``unsigned long start``h]j)}(hjߚh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݚubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKrhjٚubj)}(hhh]h)}(h%Start address for object (page-based)h]h%Start address for object (page-based)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKrhjubah}(h]h ]h"]h$]h&]uh1jhjٚubeh}(h]h ]h"]h$]h&]uh1jhjhKrhjubj)}(h4``unsigned long pages`` Size of object (page-based) h](j)}(h``unsigned long pages``h]j)}(hjh]hunsigned long pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKshjubj)}(hhh]h)}(hSize of object (page-based)h]hSize of object (page-based)}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKshj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hKshjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKuhjubh)}(hX)Find a node given a start address and object size. This returns the _best_ match for the given node. That is, **start** may point somewhere into a valid region and the given node will be returned, as long as the node spans the whole requested area (given the size in number of pages as **pages**).h](hnFind a node given a start address and object size. This returns the _best_ match for the given node. That is, }(hjihhhNhNubj)}(h **start**h]hstart}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh may point somewhere into a valid region and the given node will be returned, as long as the node spans the whole requested area (given the size in number of pages as }(hjihhhNhNubj)}(h **pages**h]hpages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh).}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKthjubh)}(hNote that before lookup the vma offset manager lookup lock must be acquired with drm_vma_offset_lock_lookup(). See there for an example. This can then be used to implement weakly referenced lookups using kref_get_unless_zero().h]hNote that before lookup the vma offset manager lookup lock must be acquired with drm_vma_offset_lock_lookup(). See there for an example. This can then be used to implement weakly referenced lookups using kref_get_unless_zero().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKyhjubh)}(h **Example**h]j)}(hjh]hExample}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chK}hjubjh)}(hdrm_vma_offset_lock_lookup(mgr); node = drm_vma_offset_lookup_locked(mgr); if (node) kref_get_unless_zero(container_of(node, sth, entr)); drm_vma_offset_unlock_lookup(mgr);h]hdrm_vma_offset_lock_lookup(mgr); node = drm_vma_offset_lookup_locked(mgr); if (node) kref_get_unless_zero(container_of(node, sth, entr)); drm_vma_offset_unlock_lookup(mgr);}hjÛsbah}(h]h ]h"]h$]h&]jjuh1jgh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjubh)}(h **Return**h]j)}(hjԛh]hReturn}(hj֛hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjқubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjubh)}(hReturns NULL if no suitable node can be found. Otherwise, the best match is returned. It's the caller's responsibility to make sure the node doesn't get destroyed before the caller can access it.h]hReturns NULL if no suitable node can be found. Otherwise, the best match is returned. It’s the caller’s responsibility to make sure the node doesn’t get destroyed before the caller can access it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_vma_offset_add (C function)c.drm_vma_offset_addhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hrint drm_vma_offset_add (struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node, unsigned long pages)h]jR)}(hqint drm_vma_offset_add(struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node, unsigned long pages)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKubjj)}(h h]h }(hj(hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj'hKubj{)}(hdrm_vma_offset_addh]j)}(hdrm_vma_offset_addh]hdrm_vma_offset_add}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj'hKubj)}(h[(struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node, unsigned long pages)h](j)}(h"struct drm_vma_offset_manager *mgrh](jX)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjRubjj)}(h h]h }(hjchhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjvmodnameN classnameNj+j.)}j1]j4)}j'j<sbc.drm_vma_offset_addasbuh1hhjRubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjRubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(h struct drm_vma_offset_node *nodeh](jX)}(hjh]hstruct}(hjȜhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjĜubjj)}(h h]h }(hj՜hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjĜubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_vma_offset_addasbuh1hhjĜubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjĜubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjĜubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĜubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hunsigned long pagesh](j)}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjj)}(h h]h }(hjFhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4ubj)}(hlongh]hlong}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjj)}(h h]h }(hjbhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4ubj)}(hpagesh]hpages}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj'hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj'hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj'hKhjhhubj)}(hhh]h)}(hAdd offset node to managerh]hAdd offset node to manager}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hXZ**Parameters** ``struct drm_vma_offset_manager *mgr`` Manager object ``struct drm_vma_offset_node *node`` Node to be added ``unsigned long pages`` Allocation size visible to user-space (in number of pages) **Description** Add a node to the offset-manager. If the node was already added, this does nothing and return 0. **pages** is the size of the object given in number of pages. After this call succeeds, you can access the offset of the node until it is removed again. If this call fails, it is safe to retry the operation or call drm_vma_offset_remove(), anyway. However, no cleanup is required in that case. **pages** is not required to be the same size as the underlying memory object that you want to map. It only limits the size that user-space can map into their address space. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjubj)}(hhh](j)}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](j)}(h&``struct drm_vma_offset_manager *mgr``h]j)}(hj۝h]h"struct drm_vma_offset_manager *mgr}(hjݝhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٝubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhj՝ubj)}(hhh]h)}(hManager objecth]hManager object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj՝ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjҝubj)}(h6``struct drm_vma_offset_node *node`` Node to be added h](j)}(h$``struct drm_vma_offset_node *node``h]j)}(hjh]h struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjubj)}(hhh]h)}(hNode to be addedh]hNode to be added}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hKhjҝubj)}(hS``unsigned long pages`` Allocation size visible to user-space (in number of pages) h](j)}(h``unsigned long pages``h]j)}(hjMh]hunsigned long pages}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjGubj)}(hhh]h)}(h:Allocation size visible to user-space (in number of pages)h]h:Allocation size visible to user-space (in number of pages)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKhjҝubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjubh)}(hAdd a node to the offset-manager. If the node was already added, this does nothing and return 0. **pages** is the size of the object given in number of pages. After this call succeeds, you can access the offset of the node until it is removed again.h](haAdd a node to the offset-manager. If the node was already added, this does nothing and return 0. }(hjhhhNhNubj)}(h **pages**h]hpages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is the size of the object given in number of pages. After this call succeeds, you can access the offset of the node until it is removed again.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjubh)}(hIf this call fails, it is safe to retry the operation or call drm_vma_offset_remove(), anyway. However, no cleanup is required in that case.h]hIf this call fails, it is safe to retry the operation or call drm_vma_offset_remove(), anyway. However, no cleanup is required in that case.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjubh)}(h**pages** is not required to be the same size as the underlying memory object that you want to map. It only limits the size that user-space can map into their address space.h](j)}(h **pages**h]hpages}(hjҞhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΞubh is not required to be the same size as the underlying memory object that you want to map. It only limits the size that user-space can map into their address space.}(hjΞhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_vma_offset_remove (C function)c.drm_vma_offset_removehNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(havoid drm_vma_offset_remove (struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node)h]jR)}(h`void drm_vma_offset_remove(struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node)h](j)}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKubjj)}(h h]h }(hjAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj.hhhj@hKubj{)}(hdrm_vma_offset_removeh]j)}(hdrm_vma_offset_removeh]hdrm_vma_offset_remove}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.hhhj@hKubj)}(hF(struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node)h](j)}(h"struct drm_vma_offset_manager *mgrh](jX)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjkubjj)}(h h]h }(hj|hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjkubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jUsbc.drm_vma_offset_removeasbuh1hhjkubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjkubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjkubj)}(hmgrh]hmgr}(hjȟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(h struct drm_vma_offset_node *nodeh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjݟubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjݟubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_vma_offset_removeasbuh1hhjݟubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjݟubjH)}(hjKh]h*}(hj+hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjݟubj)}(hnodeh]hnode}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݟubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhj.hhhj@hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj*hhhj@hKubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1jKhj@hKhj'hhubj)}(hhh]h)}(hRemove offset node from managerh]hRemove offset node from manager}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhj_hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_vma_offset_manager *mgr`` Manager object ``struct drm_vma_offset_node *node`` Node to be removed **Description** Remove a node from the offset manager. If the node wasn't added before, this does nothing. After this call returns, the offset and size will be 0 until a new offset is allocated via drm_vma_offset_add() again. Helper functions like drm_vma_node_start() and drm_vma_node_offset_addr() will return 0 if no offset is allocated.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhj~ubj)}(hhh](j)}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](j)}(h&``struct drm_vma_offset_manager *mgr``h]j)}(hjh]h"struct drm_vma_offset_manager *mgr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjubj)}(hhh]h)}(hManager objecth]hManager object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h8``struct drm_vma_offset_node *node`` Node to be removed h](j)}(h$``struct drm_vma_offset_node *node``h]j)}(hjܠh]h struct drm_vma_offset_node *node}(hjޠhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڠubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhj֠ubj)}(hhh]h)}(hNode to be removedh]hNode to be removed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj֠ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhj~ubh)}(hXDRemove a node from the offset manager. If the node wasn't added before, this does nothing. After this call returns, the offset and size will be 0 until a new offset is allocated via drm_vma_offset_add() again. Helper functions like drm_vma_node_start() and drm_vma_node_offset_addr() will return 0 if no offset is allocated.h]hXFRemove a node from the offset manager. If the node wasn’t added before, this does nothing. After this call returns, the offset and size will be 0 until a new offset is allocated via drm_vma_offset_add() again. Helper functions like drm_vma_node_start() and drm_vma_node_offset_addr() will return 0 if no offset is allocated.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_vma_node_allow (C function)c.drm_vma_node_allowhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hOint drm_vma_node_allow (struct drm_vma_offset_node *node, struct drm_file *tag)h]jR)}(hNint drm_vma_node_allow(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(hinth]hint}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM'ubjj)}(h h]h }(hjkhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjXhhhjjhM'ubj{)}(hdrm_vma_node_allowh]j)}(hdrm_vma_node_allowh]hdrm_vma_node_allow}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjXhhhjjhM'ubj)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(h struct drm_vma_offset_node *nodeh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_vma_node_allowasbuh1hhjubjj)}(h h]h }(hjסhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_file *tagh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj+modnameN classnameNj+j.)}j1]jӡc.drm_vma_node_allowasbuh1hhjubjj)}(h h]h }(hjGhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjUhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(htagh]htag}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhjjhM'ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjThhhjjhM'ubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1jKhjjhM'hjQhhubj)}(hhh]h)}(h&Add open-file to list of allowed usersh]h&Add open-file to list of allowed users}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM'hjhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjjhM'ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_vma_offset_node *node`` Node to modify ``struct drm_file *tag`` Tag of file to remove **Description** Add **tag** to the list of allowed open-files for this node. If **tag** is already on this list, the ref-count is incremented. The list of allowed-users is preserved across drm_vma_offset_add() and drm_vma_offset_remove() calls. You may even call it if the node is currently not added to any offset-manager. You must remove all open-files the same number of times as you added them before destroying the node. Otherwise, you will leak memory. This is locked against concurrent access internally. **Return** 0 on success, negative error code on internal failure (out-of-mem)h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM+hjubj)}(hhh](j)}(h4``struct drm_vma_offset_node *node`` Node to modify h](j)}(h$``struct drm_vma_offset_node *node``h]j)}(hj͢h]h struct drm_vma_offset_node *node}(hjϢhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjˢubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM(hjǢubj)}(hhh]h)}(hNode to modifyh]hNode to modify}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjǢubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjĢubj)}(h/``struct drm_file *tag`` Tag of file to remove h](j)}(h``struct drm_file *tag``h]j)}(hjh]hstruct drm_file *tag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM)hjubj)}(hhh]h)}(hTag of file to removeh]hTag of file to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjĢubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM+hjubh)}(h~Add **tag** to the list of allowed open-files for this node. If **tag** is already on this list, the ref-count is incremented.h](hAdd }(hjWhhhNhNubj)}(h**tag**h]htag}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh5 to the list of allowed open-files for this node. If }(hjWhhhNhNubj)}(h**tag**h]htag}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh7 is already on this list, the ref-count is incremented.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM*hjubh)}(hThe list of allowed-users is preserved across drm_vma_offset_add() and drm_vma_offset_remove() calls. You may even call it if the node is currently not added to any offset-manager.h]hThe list of allowed-users is preserved across drm_vma_offset_add() and drm_vma_offset_remove() calls. You may even call it if the node is currently not added to any offset-manager.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM-hjubh)}(hYou must remove all open-files the same number of times as you added them before destroying the node. Otherwise, you will leak memory.h]hYou must remove all open-files the same number of times as you added them before destroying the node. Otherwise, you will leak memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM1hjubh)}(h4This is locked against concurrent access internally.h]h4This is locked against concurrent access internally.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM4hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM6hjubh)}(hB0 on success, negative error code on internal failure (out-of-mem)h]hB0 on success, negative error code on internal failure (out-of-mem)}(hjϣhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM7hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_vma_node_allow_once (C function)c.drm_vma_node_allow_oncehNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hTint drm_vma_node_allow_once (struct drm_vma_offset_node *node, struct drm_file *tag)h]jR)}(hSint drm_vma_node_allow_once(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMAubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hMAubj{)}(hdrm_vma_node_allow_onceh]j)}(hdrm_vma_node_allow_onceh]hdrm_vma_node_allow_once}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMAubj)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(h struct drm_vma_offset_node *nodeh](jX)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj7ubjj)}(h h]h }(hjHhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj7ubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj[modnameN classnameNj+j.)}j1]j4)}j'j!sbc.drm_vma_node_allow_onceasbuh1hhj7ubjj)}(h h]h }(hjyhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj7ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7ubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hstruct drm_file *tagh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjˤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȤubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjͤmodnameN classnameNj+j.)}j1]juc.drm_vma_node_allow_onceasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(htagh]htag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMAubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj hMAubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hMAhjhhubj)}(hhh]h)}(h&Add open-file to list of allowed usersh]h&Add open-file to list of allowed users}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMAhj+hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1jFhhhjhNhNubj)}(hXz**Parameters** ``struct drm_vma_offset_node *node`` Node to modify ``struct drm_file *tag`` Tag of file to remove **Description** Add **tag** to the list of allowed open-files for this node. The list of allowed-users is preserved across drm_vma_offset_add() and drm_vma_offset_remove() calls. You may even call it if the node is currently not added to any offset-manager. This is not ref-counted unlike drm_vma_node_allow() hence drm_vma_node_revoke() should only be called once after this. This is locked against concurrent access internally. **Return** 0 on success, negative error code on internal failure (out-of-mem)h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMEhjJubj)}(hhh](j)}(h4``struct drm_vma_offset_node *node`` Node to modify h](j)}(h$``struct drm_vma_offset_node *node``h]j)}(hjoh]h struct drm_vma_offset_node *node}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMBhjiubj)}(hhh]h)}(hNode to modifyh]hNode to modify}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjfubj)}(h/``struct drm_file *tag`` Tag of file to remove h](j)}(h``struct drm_file *tag``h]j)}(hjh]hstruct drm_file *tag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMChjubj)}(hhh]h)}(hTag of file to removeh]hTag of file to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjfubeh}(h]h ]h"]h$]h&]uh1jhjJubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMEhjJubh)}(hhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,hhhj=hMubj{)}(hdrm_vma_node_is_allowedh]j)}(hdrm_vma_node_is_allowedh]hdrm_vma_node_is_allowed}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj=hMubj)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(h struct drm_vma_offset_node *nodeh](jX)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhubjj)}(h h]h }(hjyhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jRsbc.drm_vma_node_is_allowedasbuh1hhjhubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhubj)}(hnodeh]hnode}(hjũhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hstruct drm_file *tagh](jX)}(hjh]hstruct}(hjީhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjکubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjکubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_vma_node_is_allowedasbuh1hhjکubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjکubjH)}(hjKh]h*}(hj(hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjکubj)}(htagh]htag}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjکubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj=hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj(hhhj=hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jKhj=hMhj%hhubj)}(hhh]h)}(h,Check whether an open-file is granted accessh]h,Check whether an open-file is granted access}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMhj\hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj=hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1jFhhhjhNhNubj)}(hXb**Parameters** ``struct drm_vma_offset_node *node`` Node to check ``struct drm_file *tag`` Tag of file to remove **Description** Search the list in **node** whether **tag** is currently on the list of allowed open-files (see drm_vma_node_allow()). This is locked against concurrent access internally. **Return** true if **filp** is on the listh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMhj{ubj)}(hhh](j)}(h3``struct drm_vma_offset_node *node`` Node to check h](j)}(h$``struct drm_vma_offset_node *node``h]j)}(hjh]h struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMhjubj)}(hhh]h)}(h Node to checkh]h Node to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``struct drm_file *tag`` Tag of file to remove h](j)}(h``struct drm_file *tag``h]j)}(hj٪h]hstruct drm_file *tag}(hj۪hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjתubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMhjӪubj)}(hhh]h)}(hTag of file to removeh]hTag of file to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjӪubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj{ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMhj{ubh)}(hvSearch the list in **node** whether **tag** is currently on the list of allowed open-files (see drm_vma_node_allow()).h](hSearch the list in }(hj*hhhNhNubj)}(h**node**h]hnode}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh whether }(hj*hhhNhNubj)}(h**tag**h]htag}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubhK is currently on the list of allowed open-files (see drm_vma_node_allow()).}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMhj{ubh)}(h4This is locked against concurrent access internally.h]h4This is locked against concurrent access internally.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMhj{ubh)}(h **Return**h]j)}(hjnh]hReturn}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMhj{ubh)}(htrue if **filp** is on the listh](htrue if }(hjhhhNhNubj)}(h**filp**h]hfilp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is on the list}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubhtarget)}(h.. _prime_buffer_sharing:h]h}(h]h ]h"]h$]h&]refidprime-buffer-sharinguh1jhMhjhhhhubeh}(h]vma-offset-managerah ]h"]vma offset managerah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hPRIME Buffer Sharingh]hPRIME Buffer Sharing}(hjūhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj«hhhhhMubh)}(hPRIME is the cross device buffer sharing framework in drm, originally created for the OPTIMUS range of multi-gpu platforms. To userspace PRIME buffers are dma-buf based file descriptors.h]hPRIME is the cross device buffer sharing framework in drm, originally created for the OPTIMUS range of multi-gpu platforms. To userspace PRIME buffers are dma-buf based file descriptors.}(hjӫhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj«hhubh)}(hhh](h)}(hOverview and Lifetime Rulesh]hOverview and Lifetime Rules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hX-Similar to GEM global names, PRIME file descriptors are also used to share buffer objects across processes. They offer additional security: as file descriptors must be explicitly sent over UNIX domain sockets to be shared between applications, they can't be guessed like the globally unique GEM names.h]hX/Similar to GEM global names, PRIME file descriptors are also used to share buffer objects across processes. They offer additional security: as file descriptors must be explicitly sent over UNIX domain sockets to be shared between applications, they can’t be guessed like the globally unique GEM names.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:444: ./drivers/gpu/drm/drm_prime.chK/hjhhubh)}(hXDrivers that support the PRIME API implement the drm_gem_object_funcs.export and :c:type:`drm_driver.gem_prime_import ` hooks. :c:type:`dma_buf_ops` implementations for drivers are all individually exported for drivers which need to overwrite or reimplement some of them.h](hQDrivers that support the PRIME API implement the drm_gem_object_funcs.export and }(hjhhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j)}(hj h]hdrm_driver.gem_prime_import}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:444: ./drivers/gpu/drm/drm_prime.chK5hjubh hooks. }(hjhhhNhNubh)}(h:c:type:`dma_buf_ops`h]j)}(hj/h]h dma_buf_ops}(hj1hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhj(hK5hjubh{ implementations for drivers are all individually exported for drivers which need to overwrite or reimplement some of them.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj(hK5hjhhubh)}(hhh](h)}(h"Reference Counting for GEM Driversh]h"Reference Counting for GEM Drivers}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhNhNubh)}(hXOn the export the :c:type:`dma_buf` holds a reference to the exported buffer object, usually a :c:type:`drm_gem_object`. It takes this reference in the PRIME_HANDLE_TO_FD IOCTL, when it first calls :c:type:`drm_gem_object_funcs.export ` and stores the exporting GEM object in the :c:type:`dma_buf.priv ` field. This reference needs to be released when the final reference to the :c:type:`dma_buf` itself is dropped and its :c:type:`dma_buf_ops.release ` function is called. For GEM-based drivers, the :c:type:`dma_buf` should be exported using drm_gem_dmabuf_export() and then released by drm_gem_dmabuf_release().h](hOn the export the }(hjghhhNhNubh)}(h:c:type:`dma_buf`h]j)}(hjqh]hdma_buf}(hjshhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_bufuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:444: ./drivers/gpu/drm/drm_prime.chK=hjgubh< holds a reference to the exported buffer object, usually a }(hjghhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjhK=hjgubhO. It takes this reference in the PRIME_HANDLE_TO_FD IOCTL, when it first calls }(hjghhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.export `h]j)}(hjh]hdrm_gem_object_funcs.export}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhjhK=hjgubh, and stores the exporting GEM object in the }(hjghhhNhNubh)}(h :c:type:`dma_buf.priv `h]j)}(hj۬h]h dma_buf.priv}(hjݬhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj٬ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_bufuh1hhjhK=hjgubhL field. This reference needs to be released when the final reference to the }(hjghhhNhNubh)}(h:c:type:`dma_buf`h]j)}(hjh]hdma_buf}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_bufuh1hhjhK=hjgubh itself is dropped and its }(hjghhhNhNubh)}(h+:c:type:`dma_buf_ops.release `h]j)}(hj!h]hdma_buf_ops.release}(hj#hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhjhK=hjgubh1 function is called. For GEM-based drivers, the }(hjghhhNhNubh)}(h:c:type:`dma_buf`h]j)}(hjDh]hdma_buf}(hjFhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_bufuh1hhjhK=hjgubh` should be exported using drm_gem_dmabuf_export() and then released by drm_gem_dmabuf_release().}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK=hjVubh)}(hXtThus the chain of references always flows in one direction, avoiding loops: importing GEM object -> dma-buf -> exported GEM bo. A further complication are the lookup caches for import and export. These are required to guarantee that any given object will always have only one unique userspace handle. This is required to allow userspace to detect duplicated imports, since some GEM drivers do fail command submissions if a given buffer object is listed more than once. These import and export caches in :c:type:`drm_prime_file_private` only retain a weak reference, which is cleaned up when the corresponding object is released.h](hXThus the chain of references always flows in one direction, avoiding loops: importing GEM object -> dma-buf -> exported GEM bo. A further complication are the lookup caches for import and export. These are required to guarantee that any given object will always have only one unique userspace handle. This is required to allow userspace to detect duplicated imports, since some GEM drivers do fail command submissions if a given buffer object is listed more than once. These import and export caches in }(hjkhhhNhNubh)}(h :c:type:`drm_prime_file_private`h]j)}(hjuh]hdrm_prime_file_private}(hjwhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_prime_file_privateuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:444: ./drivers/gpu/drm/drm_prime.chKFhjkubh] only retain a weak reference, which is cleaned up when the corresponding object is released.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKFhjVubh)}(hX=Self-importing: If userspace is using PRIME as a replacement for flink then it will get a fd->handle request for a GEM object that it created. Drivers should detect this situation and return back the underlying object from the dma-buf private. For GEM based drivers this is handled in drm_gem_prime_import() already.h]hX=Self-importing: If userspace is using PRIME as a replacement for flink then it will get a fd->handle request for a GEM object that it created. Drivers should detect this situation and return back the underlying object from the dma-buf private. For GEM based drivers this is handled in drm_gem_prime_import() already.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:444: ./drivers/gpu/drm/drm_prime.chKPhjVubeh}(h]"reference-counting-for-gem-driversah ]h"]"reference counting for gem driversah$]h&]uh1hhjhhhNhNubeh}(h]overview-and-lifetime-rulesah ]h"]overview and lifetime rulesah$]h&]uh1hhj«hhhhhMubh)}(hhh](h)}(hPRIME Helper Functionsh]hPRIME Helper Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hX}Drivers can implement :c:type:`drm_gem_object_funcs.export ` and :c:type:`drm_driver.gem_prime_import ` in terms of simpler APIs by using the helper functions drm_gem_prime_export() and drm_gem_prime_import(). These functions implement dma-buf support in terms of some lower-level helpers, which are again exported for drivers to use individually:h](hDrivers can implement }(hjͭhhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.export `h]j)}(hj׭h]hdrm_gem_object_funcs.export}(hj٭hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjխubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:450: ./drivers/gpu/drm/drm_prime.chM(hjͭubh and }(hjͭhhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j)}(hjh]hdrm_driver.gem_prime_import}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhjhM(hjͭubh in terms of simpler APIs by using the helper functions drm_gem_prime_export() and drm_gem_prime_import(). These functions implement dma-buf support in terms of some lower-level helpers, which are again exported for drivers to use individually:}(hjͭhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM(hjhhubh)}(hhh](h)}(hExporting buffersh]hExporting buffers}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hNhNubh)}(hXOptional pinning of buffers is handled at dma-buf attach and detach time in drm_gem_map_attach() and drm_gem_map_detach(). Backing storage itself is handled by drm_gem_map_dma_buf() and drm_gem_unmap_dma_buf(), which relies on :c:type:`drm_gem_object_funcs.get_sg_table `. If :c:type:`drm_gem_object_funcs.get_sg_table ` is unimplemented, exports into another device are rejected.h](hOptional pinning of buffers is handled at dma-buf attach and detach time in drm_gem_map_attach() and drm_gem_map_detach(). Backing storage itself is handled by drm_gem_map_dma_buf() and drm_gem_unmap_dma_buf(), which relies on }(hj3hhhNhNubh)}(hB:c:type:`drm_gem_object_funcs.get_sg_table `h]j)}(hj=h]h!drm_gem_object_funcs.get_sg_table}(hj?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:450: ./drivers/gpu/drm/drm_prime.chM1hj3ubh. If }(hj3hhhNhNubh)}(hB:c:type:`drm_gem_object_funcs.get_sg_table `h]j)}(hjah]h!drm_gem_object_funcs.get_sg_table}(hjchhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhjZhM1hj3ubh< is unimplemented, exports into another device are rejected.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhM1hj"ubh)}(hFor kernel-internal access there's drm_gem_dmabuf_vmap() and drm_gem_dmabuf_vunmap(). Userspace mmap support is provided by drm_gem_dmabuf_mmap().h]hFor kernel-internal access there’s drm_gem_dmabuf_vmap() and drm_gem_dmabuf_vunmap(). Userspace mmap support is provided by drm_gem_dmabuf_mmap().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:450: ./drivers/gpu/drm/drm_prime.chM7hj"ubh)}(hNote that these export helpers can only be used if the underlying backing storage is fully coherent and either permanently pinned, or it is safe to pin it indefinitely.h]hNote that these export helpers can only be used if the underlying backing storage is fully coherent and either permanently pinned, or it is safe to pin it indefinitely.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:450: ./drivers/gpu/drm/drm_prime.chM;hj"ubh)}(hGFIXME: The underlying helper functions are named rather inconsistently.h]hGFIXME: The underlying helper functions are named rather inconsistently.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:450: ./drivers/gpu/drm/drm_prime.chM?hj"ubeh}(h]exporting-buffersah ]h"]exporting buffersah$]h&]uh1hhjhhhNhNubh)}(hhh](h)}(hImporting buffersh]hImporting buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhNhNubh)}(hvImporting dma-bufs using drm_gem_prime_import() relies on :c:type:`drm_driver.gem_prime_import_sg_table `.h](h:Importing dma-bufs using drm_gem_prime_import() relies on }(hjήhhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j)}(hjخh]h$drm_driver.gem_prime_import_sg_table}(hjڮhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj֮ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:450: ./drivers/gpu/drm/drm_prime.chMDhjήubh.}(hjήhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMDhjubh)}(hNote that similarly to the export helpers this permanently pins the underlying backing storage. Which is ok for scanout, but is not the best option for sharing lots of buffers for rendering.h]hNote that similarly to the export helpers this permanently pins the underlying backing storage. Which is ok for scanout, but is not the best option for sharing lots of buffers for rendering.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:450: ./drivers/gpu/drm/drm_prime.chMGhjubeh}(h]importing-buffersah ]h"]importing buffersah$]h&]uh1hhjhhhNhNubeh}(h]prime-helper-functionsah ]h"]prime helper functionsah$]h&]uh1hhj«hhhhhMubh)}(hhh](h)}(hPRIME Function Referencesh]hPRIME Function References}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!drm_prime_file_private (C struct)c.drm_prime_file_privatehNtauh1j5hjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:456: ./include/drm/drm_prime.hhNubjG)}(hhh](jL)}(hdrm_prime_file_privateh]jR)}(hstruct drm_prime_file_privateh](jX)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjFhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:456: ./include/drm/drm_prime.hhKubjj)}(h h]h }(hjXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjFhhhjWhKubj{)}(hdrm_prime_file_privateh]j)}(hjDh]hdrm_prime_file_private}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFhhhjWhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjBhhhjWhKubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1jKhjWhKhj?hhubj)}(hhh]h)}(hper-file tracking for PRIMEh]hper-file tracking for PRIME}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:456: ./include/drm/drm_prime.hhK(hjhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjWhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjhj>hNubj)}(hE**Definition**:: struct drm_prime_file_private { }; **Members**h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:456: ./include/drm/drm_prime.hhK,hjubjh)}(h"struct drm_prime_file_private { };h]h"struct drm_prime_file_private { };}hjɯsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:456: ./include/drm/drm_prime.hhK.hjubh)}(h **Members**h]j)}(hjگh]hMembers}(hjܯhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjدubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:456: ./include/drm/drm_prime.hhK1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj>hNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:456: ./include/drm/drm_prime.hhK4hjhhubh)}(hThis just contains the internal :c:type:`struct dma_buf ` and handle caches for each :c:type:`struct drm_file ` used by the PRIME core code.h](h This just contains the internal }(hjhhhNhNubh)}(h":c:type:`struct dma_buf `h]j)}(hjh]hstruct dma_buf}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_bufuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:456: ./include/drm/drm_prime.hhK)hjubh and handle caches for each }(hjhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hj=h]hstruct drm_file}(hj?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_fileuh1hhj6hK)hjubh used by the PRIME core code.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj6hK)hjhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_gem_dmabuf_export (C function)c.drm_gem_dmabuf_exporthNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hestruct dma_buf * drm_gem_dmabuf_export (struct drm_device *dev, struct dma_buf_export_info *exp_info)h]jR)}(hcstruct dma_buf *drm_gem_dmabuf_export(struct drm_device *dev, struct dma_buf_export_info *exp_info)h](jX)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjyhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyhhhjhKubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_dmabuf_exportsbc.drm_gem_dmabuf_exportasbuh1hhjyhhhjhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyhhhjhKubjH)}(hjKh]h*}(hj˰hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjyhhhjhKubj{)}(hdrm_gem_dmabuf_exporth]j)}(hjh]hdrm_gem_dmabuf_export}(hjܰhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjذubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhjhKubj)}(h>(struct drm_device *dev, struct dma_buf_export_info *exp_info)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_dmabuf_exportasbuh1hhjubjj)}(h h]h }(hj3hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjAhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h$struct dma_buf_export_info *exp_infoh](jX)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjcubjj)}(h h]h }(hjthhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjcubh)}(hhh]j)}(hdma_buf_export_infoh]hdma_buf_export_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_dmabuf_exportasbuh1hhjcubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjcubjH3)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjcubj)}(hexp_infoh]hexp_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjuhhhjhKubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjrhhubj)}(hhh]h)}(h/:c:type:`dma_buf` export implementation for GEMh](h)}(h:c:type:`dma_buf`h]j)}(hjh]hdma_buf}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gem_dmabuf_exportasbjadma_bufuh1hhjhKhjubh export implementation for GEM}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1jFhhhjhNhNubj)}(hX4**Parameters** ``struct drm_device *dev`` parent device for the exported dmabuf ``struct dma_buf_export_info *exp_info`` the export information used by dma_buf_export() **Description** This wraps dma_buf_export() for use by generic GEM drivers that are using drm_gem_dmabuf_release(). In addition to calling dma_buf_export(), we take a reference to the :c:type:`drm_device` and the exported :c:type:`drm_gem_object` (stored in :c:type:`dma_buf_export_info.priv `) which is released by drm_gem_dmabuf_release(). Returns the new dmabuf.h](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chKhj(ubj)}(hhh](j)}(hA``struct drm_device *dev`` parent device for the exported dmabuf h](j)}(h``struct drm_device *dev``h]j)}(hjMh]hstruct drm_device *dev}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chKhjGubj)}(hhh]h)}(h%parent device for the exported dmabufh]h%parent device for the exported dmabuf}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKhjDubj)}(hY``struct dma_buf_export_info *exp_info`` the export information used by dma_buf_export() h](j)}(h(``struct dma_buf_export_info *exp_info``h]j)}(hjh]h$struct dma_buf_export_info *exp_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chKhjubj)}(hhh]h)}(h/the export information used by dma_buf_export()h]h/the export information used by dma_buf_export()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjDubeh}(h]h ]h"]h$]h&]uh1jhj(ubh)}(h**Description**h]j)}(hjh]h Description}(hjòhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chKhj(ubh)}(hXZThis wraps dma_buf_export() for use by generic GEM drivers that are using drm_gem_dmabuf_release(). In addition to calling dma_buf_export(), we take a reference to the :c:type:`drm_device` and the exported :c:type:`drm_gem_object` (stored in :c:type:`dma_buf_export_info.priv `) which is released by drm_gem_dmabuf_release().h](hThis wraps dma_buf_export() for use by generic GEM drivers that are using drm_gem_dmabuf_release(). In addition to calling dma_buf_export(), we take a reference to the }(hjײhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj߲ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chKhjײubh and the exported }(hjײhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjhKhjײubh (stored in }(hjײhhhNhNubh)}(h8:c:type:`dma_buf_export_info.priv `h]j)}(hj(h]hdma_buf_export_info.priv}(hj*hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_buf_export_infouh1hhjhKhjײubh0) which is released by drm_gem_dmabuf_release().}(hjײhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhj(ubh)}(hReturns the new dmabuf.h]hReturns the new dmabuf.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chKhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_gem_dmabuf_release (C function)c.drm_gem_dmabuf_releasehNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h5void drm_gem_dmabuf_release (struct dma_buf *dma_buf)h]jR)}(h4void drm_gem_dmabuf_release(struct dma_buf *dma_buf)h](j)}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjzhhhjhMubj{)}(hdrm_gem_dmabuf_releaseh]j)}(hdrm_gem_dmabuf_releaseh]hdrm_gem_dmabuf_release}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjzhhhjhMubj)}(h(struct dma_buf *dma_buf)h]j)}(hstruct dma_buf *dma_bufh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjȳhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjٳhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֳubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj۳modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_dmabuf_releaseasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjzhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjvhhhjhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjshhubj)}(hhh]h)}(h0:c:type:`dma_buf` release implementation for GEMh](h)}(h:c:type:`dma_buf`h]j)}(hjDh]hdma_buf}(hjFhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gem_dmabuf_releaseasbjadma_bufuh1hhjhKhj>ubh release implementation for GEM}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj;hhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1jFhhhjhNhNubj)}(hXG**Parameters** ``struct dma_buf *dma_buf`` buffer to be released **Description** Generic release function for dma_bufs exported as PRIME buffers. GEM drivers must use this in their :c:type:`dma_buf_ops` structure as the release callback. drm_gem_dmabuf_release() should be used in conjunction with drm_gem_dmabuf_export().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj~ubj)}(hhh]j)}(h2``struct dma_buf *dma_buf`` buffer to be released h](j)}(h``struct dma_buf *dma_buf``h]j)}(hjh]hstruct dma_buf *dma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hbuffer to be releasedh]hbuffer to be released}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hj޴h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܴubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj~ubh)}(hGeneric release function for dma_bufs exported as PRIME buffers. GEM drivers must use this in their :c:type:`dma_buf_ops` structure as the release callback. drm_gem_dmabuf_release() should be used in conjunction with drm_gem_dmabuf_export().h](hdGeneric release function for dma_bufs exported as PRIME buffers. GEM drivers must use this in their }(hjhhhNhNubh)}(h:c:type:`dma_buf_ops`h]j)}(hjh]h dma_buf_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubhx structure as the release callback. drm_gem_dmabuf_release() should be used in conjunction with drm_gem_dmabuf_export().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_gem_prime_fd_to_handle (C function)c.drm_gem_prime_fd_to_handlehNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hsint drm_gem_prime_fd_to_handle (struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle)h]jR)}(hrint drm_gem_prime_fd_to_handle(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle)h](j)}(hinth]hint}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBhhhjThMubj{)}(hdrm_gem_prime_fd_to_handleh]j)}(hdrm_gem_prime_fd_to_handleh]hdrm_gem_prime_fd_to_handle}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjThMubj)}(hT(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jisbc.drm_gem_prime_fd_to_handleasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjϵhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hjܵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hstruct drm_file *file_privh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_prime_fd_to_handleasbuh1hhjubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj?hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h file_privh]h file_priv}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(h int prime_fdh](j)}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjaubj)}(hprime_fdh]hprime_fd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(huint32_t *handleh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_prime_fd_to_handleasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjɶhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hhandleh]hhandle}(hjֶhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjThMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj>hhhjThMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jKhjThMhj;hhubj)}(hhh]h)}(h%PRIME import function for GEM driversh]h%PRIME import function for GEM drivers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_device *dev`` drm_device to import into ``struct drm_file *file_priv`` drm file-private structure ``int prime_fd`` fd id of the dma-buf which should be imported ``uint32_t *handle`` pointer to storage for the handle of the imported buffer object **Description** This is the PRIME import function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual importing of GEM object from the dma-buf is done through the :c:type:`drm_driver.gem_prime_import ` driver callback. Returns 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh](j)}(h5``struct drm_device *dev`` drm_device to import into h](j)}(h``struct drm_device *dev``h]j)}(hjAh]hstruct drm_device *dev}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj;ubj)}(hhh]h)}(hdrm_device to import intoh]hdrm_device to import into}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj8ubj)}(h:``struct drm_file *file_priv`` drm file-private structure h](j)}(h``struct drm_file *file_priv``h]j)}(hjzh]hstruct drm_file *file_priv}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjtubj)}(hhh]h)}(hdrm file-private structureh]hdrm file-private structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubj)}(h?``int prime_fd`` fd id of the dma-buf which should be imported h](j)}(h``int prime_fd``h]j)}(hjh]h int prime_fd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(h-fd id of the dma-buf which should be importedh]h-fd id of the dma-buf which should be imported}(hj̷hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȷhMhjɷubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȷhMhj8ubj)}(hU``uint32_t *handle`` pointer to storage for the handle of the imported buffer object h](j)}(h``uint32_t *handle``h]j)}(hjh]huint32_t *handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(h?pointer to storage for the handle of the imported buffer objecth]h?pointer to storage for the handle of the imported buffer object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hXThis is the PRIME import function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual importing of GEM object from the dma-buf is done through the :c:type:`drm_driver.gem_prime_import ` driver callback.h](hThis is the PRIME import function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual importing of GEM object from the dma-buf is done through the }(hj=hhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j)}(hjGh]hdrm_driver.gem_prime_import}(hjIhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj=ubh driver callback.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjdhMhjubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB+drm_gem_prime_handle_to_dmabuf (C function) c.drm_gem_prime_handle_to_dmabufhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hstruct dma_buf * drm_gem_prime_handle_to_dmabuf (struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags)h]jR)}(hstruct dma_buf *drm_gem_prime_handle_to_dmabuf(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags)h](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_prime_handle_to_dmabufsb c.drm_gem_prime_handle_to_dmabufasbuh1hhjhhhjhMubjj)}(h h]h }(hj޸hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhMubj{)}(hdrm_gem_prime_handle_to_dmabufh]j)}(hj۸h]hdrm_gem_prime_handle_to_dmabuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hU(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj8modnameN classnameNj+j.)}j1]jٸ c.drm_gem_prime_handle_to_dmabufasbuh1hhjubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjbhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_file *file_privh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jٸ c.drm_gem_prime_handle_to_dmabufasbuh1hhjubjj)}(h h]h }(hjĹhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjҹhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h file_privh]h file_priv}(hj߹hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(huint32_t handleh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jٸ c.drm_gem_prime_handle_to_dmabufasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hhandleh]hhandle}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(huint32_t flagsh](h)}(hhh]j)}(huint32_th]huint32_t}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjEmodnameN classnameNj+j.)}j1]jٸ c.drm_gem_prime_handle_to_dmabufasbuh1hhj<ubjj)}(h h]h }(hjahhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<ubj)}(hflagsh]hflags}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h%PRIME export function for GEM driversh]h%PRIME export function for GEM drivers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hXy**Parameters** ``struct drm_device *dev`` dev to export the buffer from ``struct drm_file *file_priv`` drm file-private structure ``uint32_t handle`` buffer handle to export ``uint32_t flags`` flags like DRM_CLOEXEC **Description** This is the PRIME export function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual exporting from GEM object to a dma-buf is done through the :c:type:`drm_gem_object_funcs.export ` callback. Unlike drm_gem_prime_handle_to_fd(), it returns the struct dma_buf it has created, without attaching it to any file descriptors. The difference between those two is similar to that between anon_inode_getfile() and anon_inode_getfd(); insertion into descriptor table is something you can not revert if any cleanup is needed, so the descriptor-returning variants should only be used when you are past the last failure exit and the only thing left is passing the new file descriptor to userland. When all you need is the object itself or when you need to do something else that might fail, use that one instead.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh](j)}(h9``struct drm_device *dev`` dev to export the buffer from h](j)}(h``struct drm_device *dev``h]j)}(hjںh]hstruct drm_device *dev}(hjܺhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjغubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjԺubj)}(hhh]h)}(hdev to export the buffer fromh]hdev to export the buffer from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjԺubeh}(h]h ]h"]h$]h&]uh1jhjhMhjѺubj)}(h:``struct drm_file *file_priv`` drm file-private structure h](j)}(h``struct drm_file *file_priv``h]j)}(hjh]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj ubj)}(hhh]h)}(hdrm file-private structureh]hdrm file-private structure}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhjѺubj)}(h,``uint32_t handle`` buffer handle to export h](j)}(h``uint32_t handle``h]j)}(hjLh]huint32_t handle}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjFubj)}(hhh]h)}(hbuffer handle to exporth]hbuffer handle to export}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjѺubj)}(h*``uint32_t flags`` flags like DRM_CLOEXEC h](j)}(h``uint32_t flags``h]j)}(hjh]huint32_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hflags like DRM_CLOEXECh]hflags like DRM_CLOEXEC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjѺubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hj»hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hX This is the PRIME export function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual exporting from GEM object to a dma-buf is done through the :c:type:`drm_gem_object_funcs.export ` callback.h](hThis is the PRIME export function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual exporting from GEM object to a dma-buf is done through the }(hjֻhhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.export `h]j)}(hjh]hdrm_gem_object_funcs.export}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj޻ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjֻubh callback.}(hjֻhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(hXaUnlike drm_gem_prime_handle_to_fd(), it returns the struct dma_buf it has created, without attaching it to any file descriptors. The difference between those two is similar to that between anon_inode_getfile() and anon_inode_getfd(); insertion into descriptor table is something you can not revert if any cleanup is needed, so the descriptor-returning variants should only be used when you are past the last failure exit and the only thing left is passing the new file descriptor to userland. When all you need is the object itself or when you need to do something else that might fail, use that one instead.h]hXaUnlike drm_gem_prime_handle_to_fd(), it returns the struct dma_buf it has created, without attaching it to any file descriptors. The difference between those two is similar to that between anon_inode_getfile() and anon_inode_getfd(); insertion into descriptor table is something you can not revert if any cleanup is needed, so the descriptor-returning variants should only be used when you are past the last failure exit and the only thing left is passing the new file descriptor to userland. When all you need is the object itself or when you need to do something else that might fail, use that one instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_gem_prime_handle_to_fd (C function)c.drm_gem_prime_handle_to_fdhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hint drm_gem_prime_handle_to_fd (struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd)h]jR)}(hint drm_gem_prime_handle_to_fd(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd)h](j)}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjFhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3hhhjEhMubj{)}(hdrm_gem_prime_handle_to_fdh]j)}(hdrm_gem_prime_handle_to_fdh]hdrm_gem_prime_handle_to_fd}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj3hhhjEhMubj)}(hd(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjpubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jZsbc.drm_gem_prime_handle_to_fdasbuh1hhjpubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjpubj)}(hdevh]hdev}(hjͼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hstruct drm_file *file_privh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_prime_handle_to_fdasbuh1hhjubjj)}(h h]h }(hj"hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj0hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h file_privh]h file_priv}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(huint32_t handleh](h)}(hhh]j)}(huint32_th]huint32_t}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj[modnameN classnameNj+j.)}j1]jc.drm_gem_prime_handle_to_fdasbuh1hhjRubjj)}(h h]h }(hjwhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(huint32_t flagsh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_prime_handle_to_fdasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hflagsh]hflags}(hjͽhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(h int *prime_fdh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hprime_fdh]hprime_fd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhjEhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj/hhhjEhMubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1jKhjEhMhj,hhubj)}(hhh]h)}(h%PRIME export function for GEM driversh]h%PRIME export function for GEM drivers}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj6hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1jFhhhjhNhNubj)}(hXb**Parameters** ``struct drm_device *dev`` dev to export the buffer from ``struct drm_file *file_priv`` drm file-private structure ``uint32_t handle`` buffer handle to export ``uint32_t flags`` flags like DRM_CLOEXEC ``int *prime_fd`` pointer to storage for the fd id of the create dma-buf **Description** This is the PRIME export function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual exporting from GEM object to a dma-buf is done through the :c:type:`drm_gem_object_funcs.export ` callback.h](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjUubj)}(hhh](j)}(h9``struct drm_device *dev`` dev to export the buffer from h](j)}(h``struct drm_device *dev``h]j)}(hjzh]hstruct drm_device *dev}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjtubj)}(hhh]h)}(hdev to export the buffer fromh]hdev to export the buffer from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhjqubj)}(h:``struct drm_file *file_priv`` drm file-private structure h](j)}(h``struct drm_file *file_priv``h]j)}(hjh]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hdrm file-private structureh]hdrm file-private structure}(hj̾hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȾhMhjɾubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȾhMhjqubj)}(h,``uint32_t handle`` buffer handle to export h](j)}(h``uint32_t handle``h]j)}(hjh]huint32_t handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hbuffer handle to exporth]hbuffer handle to export}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjqubj)}(h*``uint32_t flags`` flags like DRM_CLOEXEC h](j)}(h``uint32_t flags``h]j)}(hj%h]huint32_t flags}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hflags like DRM_CLOEXECh]hflags like DRM_CLOEXEC}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjqubj)}(hI``int *prime_fd`` pointer to storage for the fd id of the create dma-buf h](j)}(h``int *prime_fd``h]j)}(hj^h]h int *prime_fd}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjXubj)}(hhh]h)}(h6pointer to storage for the fd id of the create dma-bufh]h6pointer to storage for the fd id of the create dma-buf}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjqubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjUubh)}(hX This is the PRIME export function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual exporting from GEM object to a dma-buf is done through the :c:type:`drm_gem_object_funcs.export ` callback.h](hThis is the PRIME export function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual exporting from GEM object to a dma-buf is done through the }(hjhhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.export `h]j)}(hjh]hdrm_gem_object_funcs.export}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjֿhMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_map_attach (C function)c.drm_gem_map_attachhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hSint drm_gem_map_attach (struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h]jR)}(hRint drm_gem_map_attach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMOubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMOubj{)}(hdrm_gem_map_attachh]j)}(hdrm_gem_map_attachh]hdrm_gem_map_attach}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMOubj)}(h<(struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h](j)}(hstruct dma_buf *dma_bufh](jX)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj:ubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:ubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj^modnameN classnameNj+j.)}j1]j4)}j'j$sbc.drm_gem_map_attachasbuh1hhj:ubjj)}(h h]h }(hj|hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj:ubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(h!struct dma_buf_attachment *attachh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jxc.drm_gem_map_attachasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hattachh]hattach}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMOubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMOubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMOhjhhubj)}(hhh]h)}(h%dma_buf attach implementation for GEMh]h%dma_buf attach implementation for GEM}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMOhj.hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct dma_buf *dma_buf`` buffer to attach device to ``struct dma_buf_attachment *attach`` buffer attachment data **Description** Calls :c:type:`drm_gem_object_funcs.pin ` for device specific handling. This can be used as the :c:type:`dma_buf_ops.attach ` callback. Must be used together with drm_gem_map_detach(). Returns 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMShjMubj)}(hhh](j)}(h7``struct dma_buf *dma_buf`` buffer to attach device to h](j)}(h``struct dma_buf *dma_buf``h]j)}(hjrh]hstruct dma_buf *dma_buf}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMPhjlubj)}(hhh]h)}(hbuffer to attach device toh]hbuffer to attach device to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjiubj)}(h=``struct dma_buf_attachment *attach`` buffer attachment data h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hjh]h!struct dma_buf_attachment *attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMQhjubj)}(hhh]h)}(hbuffer attachment datah]hbuffer attachment data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMQhjiubeh}(h]h ]h"]h$]h&]uh1jhjMubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMShjMubh)}(hCalls :c:type:`drm_gem_object_funcs.pin ` for device specific handling. This can be used as the :c:type:`dma_buf_ops.attach ` callback. Must be used together with drm_gem_map_detach().h](hCalls }(hjhhhNhNubh)}(h9:c:type:`drm_gem_object_funcs.pin `h]j)}(hjh]hdrm_gem_object_funcs.pin}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMRhjubh7 for device specific handling. This can be used as the }(hjhhhNhNubh)}(h*:c:type:`dma_buf_ops.attach `h]j)}(hj*h]hdma_buf_ops.attach}(hj,hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhj#hMRhjubh; callback. Must be used together with drm_gem_map_detach().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#hMRhjMubh)}(h5Returns 0 on success, negative error code on failure.h]h5Returns 0 on success, negative error code on failure.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMVhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_map_detach (C function)c.drm_gem_map_detachhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hTvoid drm_gem_map_detach (struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h]jR)}(hSvoid drm_gem_map_detach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMuubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj|hhhjhMuubj{)}(hdrm_gem_map_detachh]j)}(hdrm_gem_map_detachh]hdrm_gem_map_detach}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj|hhhjhMuubj)}(h<(struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h](j)}(hstruct dma_buf *dma_bufh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_map_detachasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!struct dma_buf_attachment *attachh](jX)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj+ubjj)}(h h]h }(hj<hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj+ubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjOmodnameN classnameNj+j.)}j1]jc.drm_gem_map_detachasbuh1hhj+ubjj)}(h h]h }(hjkhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj+ubjH)}(hjKh]h*}(hjyhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj+ubj)}(hattachh]hattach}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhjhMuubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjxhhhjhMuubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1jKhjhMuhjuhhubj)}(hhh]h)}(h%dma_buf detach implementation for GEMh]h%dma_buf detach implementation for GEM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMuhjhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct dma_buf *dma_buf`` buffer to detach from ``struct dma_buf_attachment *attach`` attachment to be detached **Description** Calls :c:type:`drm_gem_object_funcs.pin ` for device specific handling. Cleans up :c:type:`dma_buf_attachment` from drm_gem_map_attach(). This can be used as the :c:type:`dma_buf_ops.detach ` callback.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMyhjubj)}(hhh](j)}(h2``struct dma_buf *dma_buf`` buffer to detach from h](j)}(h``struct dma_buf *dma_buf``h]j)}(hjh]hstruct dma_buf *dma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMvhjubj)}(hhh]h)}(hbuffer to detach fromh]hbuffer to detach from}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubj)}(h@``struct dma_buf_attachment *attach`` attachment to be detached h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hj*h]h!struct dma_buf_attachment *attach}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMwhj$ubj)}(hhh]h)}(hattachment to be detachedh]hattachment to be detached}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMwhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMwhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMyhjubh)}(hCalls :c:type:`drm_gem_object_funcs.pin ` for device specific handling. Cleans up :c:type:`dma_buf_attachment` from drm_gem_map_attach(). This can be used as the :c:type:`dma_buf_ops.detach ` callback.h](hCalls }(hj{hhhNhNubh)}(h9:c:type:`drm_gem_object_funcs.pin `h]j)}(hjh]hdrm_gem_object_funcs.pin}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMxhj{ubh* for device specific handling. Cleans up }(hj{hhhNhNubh)}(h:c:type:`dma_buf_attachment`h]j)}(hjh]hdma_buf_attachment}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_buf_attachmentuh1hhjhMxhj{ubh4 from drm_gem_map_attach(). This can be used as the }(hj{hhhNhNubh)}(h*:c:type:`dma_buf_ops.detach `h]j)}(hjh]hdma_buf_ops.detach}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhjhMxhj{ubh callback.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gem_map_dma_buf (C function)c.drm_gem_map_dma_bufhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hfstruct sg_table * drm_gem_map_dma_buf (struct dma_buf_attachment *attach, enum dma_data_direction dir)h]jR)}(hdstruct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, enum dma_data_direction dir)h](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hj!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hMubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj4modnameN classnameNj+j.)}j1]j4)}j'drm_gem_map_dma_bufsbc.drm_gem_map_dma_bufasbuh1hhjhhhj hMubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hMubjH)}(hjKh]h*}(hjahhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhj hMubj{)}(hdrm_gem_map_dma_bufh]j)}(hjPh]hdrm_gem_map_dma_buf}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMubj)}(h@(struct dma_buf_attachment *attach, enum dma_data_direction dir)h](j)}(h!struct dma_buf_attachment *attachh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jNc.drm_gem_map_dma_bufasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hattachh]hattach}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum dma_data_direction dirh](jX)}(hj[h]henum}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_data_directionh]hdma_data_direction}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jNc.drm_gem_map_dma_bufasbuh1hhjubjj)}(h h]h }(hj9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hdirh]hdir}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hMhjhhubj)}(hhh]h)}(h"map_dma_buf implementation for GEMh]h"map_dma_buf implementation for GEM}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX4**Parameters** ``struct dma_buf_attachment *attach`` attachment whose scatterlist is to be returned ``enum dma_data_direction dir`` direction of DMA transfer **Description** Calls :c:type:`drm_gem_object_funcs.get_sg_table ` and then maps the scatterlist. This can be used as the :c:type:`dma_buf_ops.map_dma_buf ` callback. Should be used together with drm_gem_unmap_dma_buf(). **Return** sg_table containing the scatterlist to be returned; returns ERR_PTR on error. May return -EINTR if it is interrupted by a signal.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh](j)}(hU``struct dma_buf_attachment *attach`` attachment whose scatterlist is to be returned h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hjh]h!struct dma_buf_attachment *attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(h.attachment whose scatterlist is to be returnedh]h.attachment whose scatterlist is to be returned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h:``enum dma_data_direction dir`` direction of DMA transfer h](j)}(h``enum dma_data_direction dir``h]j)}(hjh]henum dma_data_direction dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hdirection of DMA transferh]hdirection of DMA transfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj&h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hCalls :c:type:`drm_gem_object_funcs.get_sg_table ` and then maps the scatterlist. This can be used as the :c:type:`dma_buf_ops.map_dma_buf ` callback. Should be used together with drm_gem_unmap_dma_buf().h](hCalls }(hj<hhhNhNubh)}(hB:c:type:`drm_gem_object_funcs.get_sg_table `h]j)}(hjFh]h!drm_gem_object_funcs.get_sg_table}(hjHhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj<ubh8 and then maps the scatterlist. This can be used as the }(hj<hhhNhNubh)}(h/:c:type:`dma_buf_ops.map_dma_buf `h]j)}(hjjh]hdma_buf_ops.map_dma_buf}(hjlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhjchMhj<ubh@ callback. Should be used together with drm_gem_unmap_dma_buf().}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hsg_table containing the scatterlist to be returned; returns ERR_PTR on error. May return -EINTR if it is interrupted by a signal.h]hsg_table containing the scatterlist to be returned; returns ERR_PTR on error. May return -EINTR if it is interrupted by a signal.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_gem_unmap_dma_buf (C function)c.drm_gem_unmap_dma_bufhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hqvoid drm_gem_unmap_dma_buf (struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir)h]jR)}(hpvoid drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gem_unmap_dma_bufh]j)}(hdrm_gem_unmap_dma_bufh]hdrm_gem_unmap_dma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hV(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir)h](j)}(h!struct dma_buf_attachment *attachh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj"hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj5modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_unmap_dma_bufasbuh1hhjubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjahhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hattachh]hattach}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct sg_table *sgth](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jOc.drm_gem_unmap_dma_bufasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(henum dma_data_direction dirh](jX)}(hj[h]henum}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_data_directionh]hdma_data_direction}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jOc.drm_gem_unmap_dma_bufasbuh1hhjubjj)}(h h]h }(hj3hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hdirh]hdir}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h$unmap_dma_buf implementation for GEMh]h$unmap_dma_buf implementation for GEM}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjhhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX>**Parameters** ``struct dma_buf_attachment *attach`` attachment to unmap buffer from ``struct sg_table *sgt`` scatterlist info of the buffer to unmap ``enum dma_data_direction dir`` direction of DMA transfer **Description** This can be used as the :c:type:`dma_buf_ops.unmap_dma_buf ` callback.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh](j)}(hF``struct dma_buf_attachment *attach`` attachment to unmap buffer from h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hjh]h!struct dma_buf_attachment *attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hattachment to unmap buffer fromh]hattachment to unmap buffer from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``struct sg_table *sgt`` scatterlist info of the buffer to unmap h](j)}(h``struct sg_table *sgt``h]j)}(hjh]hstruct sg_table *sgt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(h'scatterlist info of the buffer to unmaph]h'scatterlist info of the buffer to unmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h:``enum dma_data_direction dir`` direction of DMA transfer h](j)}(h``enum dma_data_direction dir``h]j)}(hjh]henum dma_data_direction dir}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hdirection of DMA transferh]hdirection of DMA transfer}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hSThis can be used as the :c:type:`dma_buf_ops.unmap_dma_buf ` callback.h](hThis can be used as the }(hjohhhNhNubh)}(h1:c:type:`dma_buf_ops.unmap_dma_buf `h]j)}(hjyh]hdma_buf_ops.unmap_dma_buf}(hj{hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjoubh callback.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gem_dmabuf_vmap (C function)c.drm_gem_dmabuf_vmaphNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hHint drm_gem_dmabuf_vmap (struct dma_buf *dma_buf, struct iosys_map *map)h]jR)}(hGint drm_gem_dmabuf_vmap(struct dma_buf *dma_buf, struct iosys_map *map)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gem_dmabuf_vmaph]j)}(hdrm_gem_dmabuf_vmaph]hdrm_gem_dmabuf_vmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h0(struct dma_buf *dma_buf, struct iosys_map *map)h](j)}(hstruct dma_buf *dma_bufh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_dmabuf_vmapasbuh1hhjubjj)}(h h]h }(hj<hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjJhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdma_bufh]hdma_buf}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct iosys_map *maph](jX)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjlubjj)}(h h]h }(hj}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j8c.drm_gem_dmabuf_vmapasbuh1hhjlubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjlubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h#dma_buf vmap implementation for GEMh]h#dma_buf vmap implementation for GEM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct dma_buf *dma_buf`` buffer to be mapped ``struct iosys_map *map`` the virtual address of the buffer **Description** Sets up a kernel virtual mapping. This can be used as the :c:type:`dma_buf_ops.vmap ` callback. Calls into :c:type:`drm_gem_object_funcs.vmap ` for device specific handling. The kernel virtual address is returned in map. Returns 0 on success or a negative errno code otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj ubj)}(hhh](j)}(h0``struct dma_buf *dma_buf`` buffer to be mapped h](j)}(h``struct dma_buf *dma_buf``h]j)}(hj2h]hstruct dma_buf *dma_buf}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj,ubj)}(hhh]h)}(hbuffer to be mappedh]hbuffer to be mapped}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj)ubj)}(h<``struct iosys_map *map`` the virtual address of the buffer h](j)}(h``struct iosys_map *map``h]j)}(hjkh]hstruct iosys_map *map}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjeubj)}(hhh]h)}(h!the virtual address of the bufferh]h!the virtual address of the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhj)ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj ubh)}(hSets up a kernel virtual mapping. This can be used as the :c:type:`dma_buf_ops.vmap ` callback. Calls into :c:type:`drm_gem_object_funcs.vmap ` for device specific handling. The kernel virtual address is returned in map.h](h:Sets up a kernel virtual mapping. This can be used as the }(hjhhhNhNubh)}(h(:c:type:`dma_buf_ops.vmap `h]j)}(hjh]hdma_buf_ops.vmap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh callback. Calls into }(hjhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.vmap `h]j)}(hjh]hdrm_gem_object_funcs.vmap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhjhMhjubhM for device specific handling. The kernel virtual address is returned in map.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj ubh)}(h8Returns 0 on success or a negative errno code otherwise.h]h8Returns 0 on success or a negative errno code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_gem_dmabuf_vunmap (C function)c.drm_gem_dmabuf_vunmaphNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hKvoid drm_gem_dmabuf_vunmap (struct dma_buf *dma_buf, struct iosys_map *map)h]jR)}(hJvoid drm_gem_dmabuf_vunmap(struct dma_buf *dma_buf, struct iosys_map *map)h](j)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjOhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<hhhjNhMubj{)}(hdrm_gem_dmabuf_vunmaph]j)}(hdrm_gem_dmabuf_vunmaph]hdrm_gem_dmabuf_vunmap}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj<hhhjNhMubj)}(h0(struct dma_buf *dma_buf, struct iosys_map *map)h](j)}(hstruct dma_buf *dma_bufh](jX)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjyubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jcsbc.drm_gem_dmabuf_vunmapasbuh1hhjyubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjyubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hstruct iosys_map *maph](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_dmabuf_vunmapasbuh1hhjubjj)}(h h]h }(hj+hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj9hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hmaph]hmap}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhj<hhhjNhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj8hhhjNhMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jKhjNhMhj5hhubj)}(hhh]h)}(h%dma_buf vunmap implementation for GEMh]h%dma_buf vunmap implementation for GEM}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjmhhubah}(h]h ]h"]h$]h&]uh1jhj5hhhjNhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hXj**Parameters** ``struct dma_buf *dma_buf`` buffer to be unmapped ``struct iosys_map *map`` the virtual address of the buffer **Description** Releases a kernel virtual mapping. This can be used as the :c:type:`dma_buf_ops.vunmap ` callback. Calls into :c:type:`drm_gem_object_funcs.vunmap ` for device specific handling.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh](j)}(h2``struct dma_buf *dma_buf`` buffer to be unmapped h](j)}(h``struct dma_buf *dma_buf``h]j)}(hjh]hstruct dma_buf *dma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hbuffer to be unmappedh]hbuffer to be unmapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``struct iosys_map *map`` the virtual address of the buffer h](j)}(h``struct iosys_map *map``h]j)}(hjh]hstruct iosys_map *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(h!the virtual address of the bufferh]h!the virtual address of the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hReleases a kernel virtual mapping. This can be used as the :c:type:`dma_buf_ops.vunmap ` callback. Calls into :c:type:`drm_gem_object_funcs.vunmap ` for device specific handling.h](h;Releases a kernel virtual mapping. This can be used as the }(hj;hhhNhNubh)}(h*:c:type:`dma_buf_ops.vunmap `h]j)}(hjEh]hdma_buf_ops.vunmap}(hjGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj;ubh callback. Calls into }(hj;hhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.vunmap `h]j)}(hjih]hdrm_gem_object_funcs.vunmap}(hjkhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhjbhMhj;ubh for device specific handling.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_prime_mmap (C function)c.drm_gem_prime_mmaphNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hOint drm_gem_prime_mmap (struct drm_gem_object *obj, struct vm_area_struct *vma)h]jR)}(hNint drm_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gem_prime_mmaph]j)}(hdrm_gem_prime_mmaph]hdrm_gem_prime_mmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h8(struct drm_gem_object *obj, struct vm_area_struct *vma)h](j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_prime_mmapasbuh1hhjubjj)}(h h]h }(hj+hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj9hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct vm_area_struct *vmah](jX)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[ubjj)}(h h]h }(hjlhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j'c.drm_gem_prime_mmapasbuh1hhj[ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj[ubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h#PRIME mmap function for GEM driversh]h#PRIME mmap function for GEM drivers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_gem_object *obj`` GEM object ``struct vm_area_struct *vma`` Virtual address range **Description** This function sets up a userspace mapping for PRIME exported buffers using the same codepath that is used for regular GEM buffer mapping on the DRM fd. The fake GEM offset is added to vma->vm_pgoff and :c:type:`drm_driver->fops `->mmap is called to set up the mapping.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh](j)}(h*``struct drm_gem_object *obj`` GEM object h](j)}(h``struct drm_gem_object *obj``h]j)}(hj!h]hstruct drm_gem_object *obj}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(h GEM objecth]h GEM object}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(h5``struct vm_area_struct *vma`` Virtual address range h](j)}(h``struct vm_area_struct *vma``h]j)}(hjZh]hstruct vm_area_struct *vma}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjTubj)}(hhh]h)}(hVirtual address rangeh]hVirtual address range}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hXThis function sets up a userspace mapping for PRIME exported buffers using the same codepath that is used for regular GEM buffer mapping on the DRM fd. The fake GEM offset is added to vma->vm_pgoff and :c:type:`drm_driver->fops `->mmap is called to set up the mapping.h](hThis function sets up a userspace mapping for PRIME exported buffers using the same codepath that is used for regular GEM buffer mapping on the DRM fd. The fake GEM offset is added to vma->vm_pgoff and }(hjhhhNhNubh)}(h':c:type:`drm_driver->fops `h]j)}(hjh]hdrm_driver->fops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh'->mmap is called to set up the mapping.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gem_dmabuf_mmap (C function)c.drm_gem_dmabuf_mmaphNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hMint drm_gem_dmabuf_mmap (struct dma_buf *dma_buf, struct vm_area_struct *vma)h]jR)}(hLint drm_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM*ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hM*ubj{)}(hdrm_gem_dmabuf_mmaph]j)}(hdrm_gem_dmabuf_mmaph]hdrm_gem_dmabuf_mmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hM*ubj)}(h5(struct dma_buf *dma_buf, struct vm_area_struct *vma)h](j)}(hstruct dma_buf *dma_bufh](jX)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj6ubjj)}(h h]h }(hjGhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj6ubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjZmodnameN classnameNj+j.)}j1]j4)}j'j sbc.drm_gem_dmabuf_mmapasbuh1hhj6ubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj6ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj6ubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hstruct vm_area_struct *vmah](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jtc.drm_gem_dmabuf_mmapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hM*ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj hM*ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hM*hjhhubj)}(hhh]h)}(h#dma_buf mmap implementation for GEMh]h#dma_buf mmap implementation for GEM}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM*hj*hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1jFhhhjhNhNubj)}(hXc**Parameters** ``struct dma_buf *dma_buf`` buffer to be mapped ``struct vm_area_struct *vma`` virtual address range **Description** Provides memory mapping for the buffer. This can be used as the :c:type:`dma_buf_ops.mmap ` callback. It just forwards to drm_gem_prime_mmap(). Returns 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM.hjIubj)}(hhh](j)}(h0``struct dma_buf *dma_buf`` buffer to be mapped h](j)}(h``struct dma_buf *dma_buf``h]j)}(hjnh]hstruct dma_buf *dma_buf}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM+hjhubj)}(hhh]h)}(hbuffer to be mappedh]hbuffer to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjeubj)}(h5``struct vm_area_struct *vma`` virtual address range h](j)}(h``struct vm_area_struct *vma``h]j)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM,hjubj)}(hhh]h)}(hvirtual address rangeh]hvirtual address range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjeubeh}(h]h ]h"]h$]h&]uh1jhjIubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM.hjIubh)}(hProvides memory mapping for the buffer. This can be used as the :c:type:`dma_buf_ops.mmap ` callback. It just forwards to drm_gem_prime_mmap().h](h@Provides memory mapping for the buffer. This can be used as the }(hjhhhNhNubh)}(h(:c:type:`dma_buf_ops.mmap `h]j)}(hjh]hdma_buf_ops.mmap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM-hjubh4 callback. It just forwards to drm_gem_prime_mmap().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM-hjIubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM0hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_prime_pages_to_sg (C function)c.drm_prime_pages_to_sghNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hlstruct sg_table * drm_prime_pages_to_sg (struct drm_device *dev, struct page **pages, unsigned int nr_pages)h]jR)}(hjstruct sg_table *drm_prime_pages_to_sg(struct drm_device *dev, struct page **pages, unsigned int nr_pages)h](jX)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjUhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMGubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUhhhjfhMGubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjzmodnameN classnameNj+j.)}j1]j4)}j'drm_prime_pages_to_sgsbc.drm_prime_pages_to_sgasbuh1hhjUhhhjfhMGubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUhhhjfhMGubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjUhhhjfhMGubj{)}(hdrm_prime_pages_to_sgh]j)}(hjh]hdrm_prime_pages_to_sg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUhhhjfhMGubj)}(hD(struct drm_device *dev, struct page **pages, unsigned int nr_pages)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_prime_pages_to_sgasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct page **pagesh](jX)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj?ubjj)}(h h]h }(hjPhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?ubh)}(hhh]j)}(hpageh]hpage}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjcmodnameN classnameNj+j.)}j1]jc.drm_prime_pages_to_sgasbuh1hhj?ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj?ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj?ubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjfhMGubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjQhhhjfhMGubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jKhjfhMGhjNhhubj)}(hhh]h)}(h%converts a page array into an sg listh]h%converts a page array into an sg list}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMGhjhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjfhMGubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct page **pages`` pointer to the array of page pointers to convert ``unsigned int nr_pages`` length of the page vector **Description** This helper creates an sg table object from a set of pages the driver is responsible for mapping the pages into the importers address space for use with dma_buf itself. This is useful for implementing :c:type:`drm_gem_object_funcs.get_sg_table `.h](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMKhj>ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjch]hstruct drm_device *dev}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMHhj]ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMHhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMHhjZubj)}(hI``struct page **pages`` pointer to the array of page pointers to convert h](j)}(h``struct page **pages``h]j)}(hjh]hstruct page **pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMIhjubj)}(hhh]h)}(h0pointer to the array of page pointers to converth]h0pointer to the array of page pointers to convert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjZubj)}(h4``unsigned int nr_pages`` length of the page vector h](j)}(h``unsigned int nr_pages``h]j)}(hjh]hunsigned int nr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMJhjubj)}(hhh]h)}(hlength of the page vectorh]hlength of the page vector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjZubeh}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMLhj>ubh)}(hThis helper creates an sg table object from a set of pages the driver is responsible for mapping the pages into the importers address space for use with dma_buf itself.h]hThis helper creates an sg table object from a set of pages the driver is responsible for mapping the pages into the importers address space for use with dma_buf itself.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMKhj>ubh)}(hcThis is useful for implementing :c:type:`drm_gem_object_funcs.get_sg_table `.h](h This is useful for implementing }(hj5hhhNhNubh)}(hB:c:type:`drm_gem_object_funcs.get_sg_table `h]j)}(hj?h]h!drm_gem_object_funcs.get_sg_table}(hjAhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMOhj5ubh.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\hMOhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_prime_get_contiguous_size (C function)c.drm_prime_get_contiguous_sizehNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hBunsigned long drm_prime_get_contiguous_size (struct sg_table *sgt)h]jR)}(hAunsigned long drm_prime_get_contiguous_size(struct sg_table *sgt)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMmubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMmubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMmubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMmubj{)}(hdrm_prime_get_contiguous_sizeh]j)}(hdrm_prime_get_contiguous_sizeh]hdrm_prime_get_contiguous_size}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMmubj)}(h(struct sg_table *sgt)h]j)}(hstruct sg_table *sgth](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_prime_get_contiguous_sizeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj,hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hsgth]hsgt}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMmubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMmubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1jKhjhMmhj|hhubj)}(hhh]h)}(h)returns the contiguous size of the bufferh]h)returns the contiguous size of the buffer}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMmhj`hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhMmubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1jFhhhjhNhNubj)}(hXL**Parameters** ``struct sg_table *sgt`` sg_table describing the buffer to check **Description** This helper calculates the contiguous size in the DMA address space of the buffer described by the provided sg_table. This is useful for implementing :c:type:`drm_gem_object_funcs.gem_prime_import_sg_table `.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMqhjubj)}(hhh]j)}(hA``struct sg_table *sgt`` sg_table describing the buffer to check h](j)}(h``struct sg_table *sgt``h]j)}(hjh]hstruct sg_table *sgt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMnhjubj)}(hhh]h)}(h'sg_table describing the buffer to checkh]h'sg_table describing the buffer to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMphjubh)}(huThis helper calculates the contiguous size in the DMA address space of the buffer described by the provided sg_table.h]huThis helper calculates the contiguous size in the DMA address space of the buffer described by the provided sg_table.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMohjubh)}(hpThis is useful for implementing :c:type:`drm_gem_object_funcs.gem_prime_import_sg_table `.h](h This is useful for implementing }(hjhhhNhNubh)}(hO:c:type:`drm_gem_object_funcs.gem_prime_import_sg_table `h]j)}(hjh]h.drm_gem_object_funcs.gem_prime_import_sg_table}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMrhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hMrhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!drm_gem_prime_export (C function)c.drm_gem_prime_exporthNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hMstruct dma_buf * drm_gem_prime_export (struct drm_gem_object *obj, int flags)h]jR)}(hKstruct dma_buf *drm_gem_prime_export(struct drm_gem_object *obj, int flags)h](jX)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjRhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRhhhjchMubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjwmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_prime_exportsbc.drm_gem_prime_exportasbuh1hhjRhhhjchMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRhhhjchMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjRhhhjchMubj{)}(hdrm_gem_prime_exporth]j)}(hjh]hdrm_gem_prime_export}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRhhhjchMubj)}(h'(struct drm_gem_object *obj, int flags)h](j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_prime_exportasbuh1hhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j)}(hinth]hint}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjj)}(h h]h }(hjNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<ubj)}(hflagsh]hflags}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjchMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjNhhhjchMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1jKhjchMhjKhhubj)}(hhh]h)}(h4helper library implementation of the export callbackh]h4helper library implementation of the export callback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjchMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hXY**Parameters** ``struct drm_gem_object *obj`` GEM object to export ``int flags`` flags like DRM_CLOEXEC and DRM_RDWR **Description** This is the implementation of the :c:type:`drm_gem_object_funcs.export ` functions for GEM drivers using the PRIME helpers. It is used as the default in drm_gem_prime_handle_to_fd().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh](j)}(h4``struct drm_gem_object *obj`` GEM object to export h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hGEM object to exporth]hGEM object to export}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``int flags`` flags like DRM_CLOEXEC and DRM_RDWR h](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(h#flags like DRM_CLOEXEC and DRM_RDWRh]h#flags like DRM_CLOEXEC and DRM_RDWR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hThis is the implementation of the :c:type:`drm_gem_object_funcs.export ` functions for GEM drivers using the PRIME helpers. It is used as the default in drm_gem_prime_handle_to_fd().h](h"This is the implementation of the }(hjQhhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.export `h]j)}(hj[h]hdrm_gem_object_funcs.export}(hj]hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjQubhn functions for GEM drivers using the PRIME helpers. It is used as the default in drm_gem_prime_handle_to_fd().}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB.drm_gem_is_prime_exported_dma_buf (C function)#c.drm_gem_is_prime_exported_dma_bufhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hXbool drm_gem_is_prime_exported_dma_buf (struct drm_device *dev, struct dma_buf *dma_buf)h]jR)}(hWbool drm_gem_is_prime_exported_dma_buf(struct drm_device *dev, struct dma_buf *dma_buf)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(h!drm_gem_is_prime_exported_dma_buf#h]j)}(h!drm_gem_is_prime_exported_dma_bufh]h!drm_gem_is_prime_exported_dma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h1(struct drm_device *dev, struct dma_buf *dma_buf)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsb#c.drm_gem_is_prime_exported_dma_bufasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj+hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dma_buf *dma_bufh](jX)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjMubjj)}(h h]h }(hj^hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjMubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjqmodnameN classnameNj+j.)}j1]j#c.drm_gem_is_prime_exported_dma_bufasbuh1hhjMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjMubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hJchecks if the DMA-BUF was exported from a GEM object belonging to **dev**.h](hBchecks if the DMA-BUF was exported from a GEM object belonging to }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(h**Parameters** ``struct drm_device *dev`` drm_device to check against ``struct dma_buf *dma_buf`` dma-buf object to import **Return** true if the DMA-BUF was exported from a GEM object belonging to **dev**, false otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh](j)}(h7``struct drm_device *dev`` drm_device to check against h](j)}(h``struct drm_device *dev``h]j)}(hj%h]hstruct drm_device *dev}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hdrm_device to check againsth]hdrm_device to check against}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubj)}(h5``struct dma_buf *dma_buf`` dma-buf object to import h](j)}(h``struct dma_buf *dma_buf``h]j)}(hj^h]hstruct dma_buf *dma_buf}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjXubj)}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hYtrue if the DMA-BUF was exported from a GEM object belonging to **dev**, false otherwise.h](h@true if the DMA-BUF was exported from a GEM object belonging to }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, false otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_gem_prime_import_dev (C function)c.drm_gem_prime_import_devhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h}struct drm_gem_object * drm_gem_prime_import_dev (struct drm_device *dev, struct dma_buf *dma_buf, struct device *attach_dev)h]jR)}(h{struct drm_gem_object *drm_gem_prime_import_dev(struct drm_device *dev, struct dma_buf *dma_buf, struct device *attach_dev)h](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_prime_import_devsbc.drm_gem_prime_import_devasbuh1hhjhhhjhMubjj)}(h h]h }(hj0hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubjH)}(hjKh]h*}(hj>hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhMubj{)}(hdrm_gem_prime_import_devh]j)}(hj-h]hdrm_gem_prime_import_dev}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hL(struct drm_device *dev, struct dma_buf *dma_buf, struct device *attach_dev)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjfubjj)}(h h]h }(hjwhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjfubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j+c.drm_gem_prime_import_devasbuh1hhjfubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjfubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjfubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hstruct dma_buf *dma_bufh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j+c.drm_gem_prime_import_devasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj$hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdma_bufh]hdma_buf}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hstruct device *attach_devh](jX)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjFubjj)}(h h]h }(hjWhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjFubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjjmodnameN classnameNj+j.)}j1]j+c.drm_gem_prime_import_devasbuh1hhjFubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjFubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjFubj)}(h attach_devh]h attach_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h*core implementation of the import callbackh]h*core implementation of the import callback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_device *dev`` drm_device to import into ``struct dma_buf *dma_buf`` dma-buf object to import ``struct device *attach_dev`` struct device to dma_buf attach **Description** This is the core of drm_gem_prime_import(). It's designed to be called by drivers who want to use a different device structure than :c:type:`drm_device.dev ` for attaching via dma_buf. This function calls :c:type:`drm_driver.gem_prime_import_sg_table ` internally. Drivers must arrange to call drm_prime_gem_destroy() from their :c:type:`drm_gem_object_funcs.free ` hook when using this function.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh](j)}(h5``struct drm_device *dev`` drm_device to import into h](j)}(h``struct drm_device *dev``h]j)}(hj h]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hdrm_device to import intoh]hdrm_device to import into}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(h5``struct dma_buf *dma_buf`` dma-buf object to import h](j)}(h``struct dma_buf *dma_buf``h]j)}(hjEh]hstruct dma_buf *dma_buf}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj?ubj)}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjubj)}(h>``struct device *attach_dev`` struct device to dma_buf attach h](j)}(h``struct device *attach_dev``h]j)}(hj~h]hstruct device *attach_dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjxubj)}(hhh]h)}(hstruct device to dma_buf attachh]hstruct device to dma_buf attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hX This is the core of drm_gem_prime_import(). It's designed to be called by drivers who want to use a different device structure than :c:type:`drm_device.dev ` for attaching via dma_buf. This function calls :c:type:`drm_driver.gem_prime_import_sg_table ` internally.h](hThis is the core of drm_gem_prime_import(). It’s designed to be called by drivers who want to use a different device structure than }(hjhhhNhNubh)}(h%:c:type:`drm_device.dev `h]j)}(hjh]hdrm_device.dev}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh0 for attaching via dma_buf. This function calls }(hjhhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j)}(hjh]h$drm_driver.gem_prime_import_sg_table}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhjhMhjubh internally.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(hDrivers must arrange to call drm_prime_gem_destroy() from their :c:type:`drm_gem_object_funcs.free ` hook when using this function.h](h@Drivers must arrange to call drm_prime_gem_destroy() from their }(hj$hhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j)}(hj.h]hdrm_gem_object_funcs.free}(hj0hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj$ubh hook when using this function.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!drm_gem_prime_import (C function)c.drm_gem_prime_importhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h^struct drm_gem_object * drm_gem_prime_import (struct drm_device *dev, struct dma_buf *dma_buf)h]jR)}(h\struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev, struct dma_buf *dma_buf)h](jX)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjrhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjrhhhjhMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_prime_importsbc.drm_gem_prime_importasbuh1hhjrhhhjhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjrhhhjhMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjrhhhjhMubj{)}(hdrm_gem_prime_importh]j)}(hjh]hdrm_gem_prime_import}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrhhhjhMubj)}(h1(struct drm_device *dev, struct dma_buf *dma_buf)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_prime_importasbuh1hhjubjj)}(h h]h }(hj,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj:hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dma_buf *dma_bufh](jX)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj\ubjj)}(h h]h }(hjmhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj\ubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_prime_importasbuh1hhj\ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj\ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj\ubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjnhhhjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjkhhubj)}(hhh]h)}(h4helper library implementation of the import callbackh]h4helper library implementation of the import callback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX<**Parameters** ``struct drm_device *dev`` drm_device to import into ``struct dma_buf *dma_buf`` dma-buf object to import **Description** This is the implementation of the gem_prime_import functions for GEM drivers using the PRIME helpers. Drivers can use this as their :c:type:`drm_driver.gem_prime_import ` implementation. It is used as the default implementation in drm_gem_prime_fd_to_handle(). Drivers must arrange to call drm_prime_gem_destroy() from their :c:type:`drm_gem_object_funcs.free ` hook when using this function.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh](j)}(h5``struct drm_device *dev`` drm_device to import into h](j)}(h``struct drm_device *dev``h]j)}(hj"h]hstruct drm_device *dev}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hdrm_device to import intoh]hdrm_device to import into}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(h5``struct dma_buf *dma_buf`` dma-buf object to import h](j)}(h``struct dma_buf *dma_buf``h]j)}(hj[h]hstruct dma_buf *dma_buf}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjUubj)}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hXThis is the implementation of the gem_prime_import functions for GEM drivers using the PRIME helpers. Drivers can use this as their :c:type:`drm_driver.gem_prime_import ` implementation. It is used as the default implementation in drm_gem_prime_fd_to_handle().h](hThis is the implementation of the gem_prime_import functions for GEM drivers using the PRIME helpers. Drivers can use this as their }(hjhhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j)}(hjh]hdrm_driver.gem_prime_import}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubhZ implementation. It is used as the default implementation in drm_gem_prime_fd_to_handle().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(hDrivers must arrange to call drm_prime_gem_destroy() from their :c:type:`drm_gem_object_funcs.free ` hook when using this function.h](h@Drivers must arrange to call drm_prime_gem_destroy() from their }(hjhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j)}(hjh]hdrm_gem_object_funcs.free}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh hook when using this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_prime_sg_to_page_array (C function)c.drm_prime_sg_to_page_arrayhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h[int drm_prime_sg_to_page_array (struct sg_table *sgt, struct page **pages, int max_entries)h]jR)}(hZint drm_prime_sg_to_page_array(struct sg_table *sgt, struct page **pages, int max_entries)h](j)}(hinth]hint}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hj?hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,hhhj>hMubj{)}(hdrm_prime_sg_to_page_arrayh]j)}(hdrm_prime_sg_to_page_arrayh]hdrm_prime_sg_to_page_array}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj>hMubj)}(h<(struct sg_table *sgt, struct page **pages, int max_entries)h](j)}(hstruct sg_table *sgth](jX)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjiubjj)}(h h]h }(hjzhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jSsbc.drm_prime_sg_to_page_arrayasbuh1hhjiubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjiubj)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hstruct page **pagesh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_prime_sg_to_page_arrayasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj)hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjH)}(hjKh]h*}(hj6hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hpagesh]hpages}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hint max_entriesh](j)}(hinth]hint}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjj)}(h h]h }(hjjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjXubj)}(h max_entriesh]h max_entries}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj>hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj(hhhj>hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jKhj>hMhj%hhubj)}(hhh]h)}(h%convert an sg table into a page arrayh]h%convert an sg table into a page array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct sg_table *sgt`` scatter-gather table to convert ``struct page **pages`` array of page pointers to store the pages in ``int max_entries`` size of the passed-in array **Description** Exports an sg table into an array of pages. This function is deprecated and strongly discouraged to be used. The page array is only useful for page faults and those can corrupt fields in the struct page if they are not handled by the exporting driver.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh](j)}(h9``struct sg_table *sgt`` scatter-gather table to convert h](j)}(h``struct sg_table *sgt``h]j)}(hjh]hstruct sg_table *sgt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(hscatter-gather table to converth]hscatter-gather table to convert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hE``struct page **pages`` array of page pointers to store the pages in h](j)}(h``struct page **pages``h]j)}(hjh]hstruct page **pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubj)}(hhh]h)}(h,array of page pointers to store the pages inh]h,array of page pointers to store the pages in}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubj)}(h0``int max_entries`` size of the passed-in array h](j)}(h``int max_entries``h]j)}(hjUh]hint max_entries}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjOubj)}(hhh]h)}(hsize of the passed-in arrayh]hsize of the passed-in array}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(h+Exports an sg table into an array of pages.h]h+Exports an sg table into an array of pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hThis function is deprecated and strongly discouraged to be used. The page array is only useful for page faults and those can corrupt fields in the struct page if they are not handled by the exporting driver.h]hThis function is deprecated and strongly discouraged to be used. The page array is only useful for page faults and those can corrupt fields in the struct page if they are not handled by the exporting driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB+drm_prime_sg_to_dma_addr_array (C function) c.drm_prime_sg_to_dma_addr_arrayhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h]int drm_prime_sg_to_dma_addr_array (struct sg_table *sgt, dma_addr_t *addrs, int max_entries)h]jR)}(h\int drm_prime_sg_to_dma_addr_array(struct sg_table *sgt, dma_addr_t *addrs, int max_entries)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM0ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM0ubj{)}(hdrm_prime_sg_to_dma_addr_arrayh]j)}(hdrm_prime_sg_to_dma_addr_arrayh]hdrm_prime_sg_to_dma_addr_array}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM0ubj)}(h:(struct sg_table *sgt, dma_addr_t *addrs, int max_entries)h](j)}(hstruct sg_table *sgth](jX)}(hjh]hstruct}(hj!hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj.hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjAmodnameN classnameNj+j.)}j1]j4)}j'jsb c.drm_prime_sg_to_dma_addr_arrayasbuh1hhjubjj)}(h h]h }(hj_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjmhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hsgth]hsgt}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hdma_addr_t *addrsh](h)}(hhh]j)}(h dma_addr_th]h dma_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j[ c.drm_prime_sg_to_dma_addr_arrayasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(haddrsh]haddrs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint max_entriesh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h max_entriesh]h max_entries}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhM0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM0hjhhubj)}(hhh]h)}(h)convert an sg table into a dma addr arrayh]h)convert an sg table into a dma addr array}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM0hj+hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1jFhhhjhNhNubj)}(hX|**Parameters** ``struct sg_table *sgt`` scatter-gather table to convert ``dma_addr_t *addrs`` array to store the dma bus address of each page ``int max_entries`` size of both the passed-in arrays **Description** Exports an sg table into an array of addresses. Drivers should use this in their :c:type:`drm_driver.gem_prime_import_sg_table ` implementation.h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM4hjJubj)}(hhh](j)}(h9``struct sg_table *sgt`` scatter-gather table to convert h](j)}(h``struct sg_table *sgt``h]j)}(hjoh]hstruct sg_table *sgt}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM1hjiubj)}(hhh]h)}(hscatter-gather table to converth]hscatter-gather table to convert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjfubj)}(hF``dma_addr_t *addrs`` array to store the dma bus address of each page h](j)}(h``dma_addr_t *addrs``h]j)}(hjh]hdma_addr_t *addrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM2hjubj)}(hhh]h)}(h/array to store the dma bus address of each pageh]h/array to store the dma bus address of each page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjfubj)}(h6``int max_entries`` size of both the passed-in arrays h](j)}(h``int max_entries``h]j)}(hjh]hint max_entries}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM3hjubj)}(hhh]h)}(h!size of both the passed-in arraysh]h!size of both the passed-in arrays}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjfubeh}(h]h ]h"]h$]h&]uh1jhjJubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM5hjJubh)}(h/Exports an sg table into an array of addresses.h]h/Exports an sg table into an array of addresses.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM4hjJubh)}(hlDrivers should use this in their :c:type:`drm_driver.gem_prime_import_sg_table ` implementation.h](h!Drivers should use this in their }(hjAhhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j)}(hjKh]h$drm_driver.gem_prime_import_sg_table}(hjMhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM6hjAubh implementation.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhhM6hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_prime_gem_destroy (C function)c.drm_prime_gem_destroyhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hLvoid drm_prime_gem_destroy (struct drm_gem_object *obj, struct sg_table *sg)h]jR)}(hKvoid drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMJubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMJubj{)}(hdrm_prime_gem_destroyh]j)}(hdrm_prime_gem_destroyh]hdrm_prime_gem_destroy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMJubj)}(h1(struct drm_gem_object *obj, struct sg_table *sg)h](j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_prime_gem_destroyasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sg_table *sgh](jX)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj>ubjj)}(h h]h }(hjOhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>ubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjbmodnameN classnameNj+j.)}j1]j c.drm_prime_gem_destroyasbuh1hhj>ubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj>ubj)}(hsgh]hsg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMJubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMJhjhhubj)}(hhh]h)}(h.helper to clean up a PRIME-imported GEM objecth]h.helper to clean up a PRIME-imported GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMJhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hXJ**Parameters** ``struct drm_gem_object *obj`` GEM object which was created from a dma-buf ``struct sg_table *sg`` the sg-table which was pinned at import time **Description** This is the cleanup functions which GEM drivers need to call when they use drm_gem_prime_import() or drm_gem_prime_import_dev() to import dma-bufs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMNhjubj)}(hhh](j)}(hK``struct drm_gem_object *obj`` GEM object which was created from a dma-buf h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMKhjubj)}(hhh]h)}(h+GEM object which was created from a dma-bufh]h+GEM object which was created from a dma-buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjubj)}(hE``struct sg_table *sg`` the sg-table which was pinned at import time h](j)}(h``struct sg_table *sg``h]j)}(hj=h]hstruct sg_table *sg}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMLhj7ubj)}(hhh]h)}(h,the sg-table which was pinned at import timeh]h,the sg-table which was pinned at import time}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMLhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMLhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMNhjubh)}(hThis is the cleanup functions which GEM drivers need to call when they use drm_gem_prime_import() or drm_gem_prime_import_dev() to import dma-bufs.h]hThis is the cleanup functions which GEM drivers need to call when they use drm_gem_prime_import() or drm_gem_prime_import_dev() to import dma-bufs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]prime-function-referencesah ]h"]prime function referencesah$]h&]uh1hhj«hhhhhMubeh}(h](jid1eh ]h"](prime buffer sharingprime_buffer_sharingeh$]h&]uh1hhhhhhhhMexpect_referenced_by_name}jjsexpect_referenced_by_id}jjsubh)}(hhh](h)}(hDRM MM Range Allocatorh]hDRM MM Range Allocator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(hOverviewh]hOverview}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hXdrm_mm provides a simple range allocator. The drivers are free to use the resource allocator from the linux core if it suits them, the upside of drm_mm is that it's in the DRM core. Which means that it's easier to extend for some of the crazier special purpose needs of gpus.h]hXdrm_mm provides a simple range allocator. The drivers are free to use the resource allocator from the linux core if it suits them, the upside of drm_mm is that it’s in the DRM core. Which means that it’s easier to extend for some of the crazier special purpose needs of gpus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:468: ./drivers/gpu/drm/drm_mm.chK7hjhhubh)}(hX>The main data struct is :c:type:`drm_mm`, allocations are tracked in :c:type:`drm_mm_node`. Drivers are free to embed either of them into their own suitable datastructures. drm_mm itself will not do any memory allocations of its own, so if drivers choose not to embed nodes they need to still allocate them themselves.h](hThe main data struct is }(hjhhhNhNubh)}(h:c:type:`drm_mm`h]j)}(hjh]hdrm_mm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_mmuh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:468: ./drivers/gpu/drm/drm_mm.chK`.h](hXThe DRM range allocator supports this use-case through the scanning interfaces. First a scan operation needs to be initialized with drm_mm_scan_init() or drm_mm_scan_init_with_range(). The driver adds objects to the roster, probably by walking an LRU list, but this can be freely implemented. Eviction candidates are added using drm_mm_scan_add_block() until a suitable hole is found or there are no further evictable objects. Eviction roster metadata is tracked in }(hjhhhNhNubh)}(h*:c:type:`struct drm_mm_scan `h]j)}(hjh]hstruct drm_mm_scan}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_mm_scanuh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:474: ./drivers/gpu/drm/drm_mm.chMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhjhhubh)}(hThe driver must walk through all objects again in exactly the reverse order to restore the allocator state. Note that while the allocator is used in the scan mode no other operation is allowed.h]hThe driver must walk through all objects again in exactly the reverse order to restore the allocator state. Note that while the allocator is used in the scan mode no other operation is allowed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:474: ./drivers/gpu/drm/drm_mm.chMhjhhubh)}(hXFinally the driver evicts all objects selected (drm_mm_scan_remove_block() reported true) in the scan, and any overlapping nodes after color adjustment (drm_mm_scan_color_evict()). Adding and removing an object is O(1), and since freeing a node is also O(1) the overall complexity is O(scanned_objects). So like the free stack which needs to be walked before a scan operation even begins this is linear in the number of objects. It doesn't seem to hurt too badly.h]hXFinally the driver evicts all objects selected (drm_mm_scan_remove_block() reported true) in the scan, and any overlapping nodes after color adjustment (drm_mm_scan_color_evict()). Adding and removing an object is O(1), and since freeing a node is also O(1) the overall complexity is O(scanned_objects). So like the free stack which needs to be walked before a scan operation even begins this is linear in the number of objects. It doesn’t seem to hurt too badly.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:474: ./drivers/gpu/drm/drm_mm.chMhjhhubeh}(h]lru-scan-eviction-supportah ]h"]lru scan/eviction supportah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h*DRM MM Range Allocator Function Referencesh]h*DRM MM Range Allocator Function References}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hhhhhMubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_insert_mode (C enum)c.drm_mm_insert_modehNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hdrm_mm_insert_modeh]jR)}(henum drm_mm_insert_modeh](jX)}(hj[h]henum}(hjghhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjchhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKubjj)}(h h]h }(hjuhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjchhhjthKubj{)}(hdrm_mm_insert_modeh]j)}(hjah]hdrm_mm_insert_mode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjchhhjthKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj_hhhjthKubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1jKhjthKhj\hhubj)}(hhh]h)}(h'control search and allocation behaviourh]h'control search and allocation behaviour}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhK`). ``DRM_MM_INSERT_EVICT`` Search for the most recently evicted hole (within the search range) that fits the desired node. This is appropriate for use immediately after performing an eviction scan (see drm_mm_scan_init()) and removing the selected nodes to form a hole. Allocates the node from the bottom of the found hole. ``DRM_MM_INSERT_ONCE`` Only check the first hole for suitablity and report -ENOSPC immediately otherwise, rather than check every hole until a suitable one is found. Can only be used in conjunction with another search method such as DRM_MM_INSERT_HIGH or DRM_MM_INSERT_LOW. ``DRM_MM_INSERT_HIGHEST`` Only check the highest hole (the hole with the largest address) and insert the node at the top of the hole or report -ENOSPC if unsuitable. Does not search all holes. ``DRM_MM_INSERT_LOWEST`` Only check the lowest hole (the hole with the smallest address) and insert the node at the bottom of the hole or report -ENOSPC if unsuitable. Does not search all holes.h](h)}(h **Constants**h]j)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhK@hjubj)}(hhh](j)}(h``DRM_MM_INSERT_BEST`` Search for the smallest hole (within the search range) that fits the desired node. Allocates the node from the bottom of the found hole. h](j)}(h``DRM_MM_INSERT_BEST``h]j)}(hjh]hDRM_MM_INSERT_BEST}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKFhjubj)}(hhh](h)}(hRSearch for the smallest hole (within the search range) that fits the desired node.h]hRSearch for the smallest hole (within the search range) that fits the desired node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKChjubh)}(h5Allocates the node from the bottom of the found hole.-h]h5Allocates the node from the bottom of the found hole.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKFhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKFhjubj)}(h``DRM_MM_INSERT_LOW`` Search for the lowest hole (address closest to 0, within the search range) that fits the desired node. Allocates the node from the bottom of the found hole. h](j)}(h``DRM_MM_INSERT_LOW``h]j)}(hj2h]hDRM_MM_INSERT_LOW}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKLhj,ubj)}(hhh](h)}(hfSearch for the lowest hole (address closest to 0, within the search range) that fits the desired node.h]hfSearch for the lowest hole (address closest to 0, within the search range) that fits the desired node.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKIhjHubh)}(h5Allocates the node from the bottom of the found hole.h]h5Allocates the node from the bottom of the found hole.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhKLhjHubeh}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhKLhjubj)}(hX0``DRM_MM_INSERT_HIGH`` Search for the highest hole (address closest to U64_MAX, within the search range) that fits the desired node. Allocates the node from the *top* of the found hole. The specified alignment for the node is applied to the base of the node (:c:type:`drm_mm_node.start `). h](j)}(h``DRM_MM_INSERT_HIGH``h]j)}(hjzh]hDRM_MM_INSERT_HIGH}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKThjtubj)}(hhh](h)}(hmSearch for the highest hole (address closest to U64_MAX, within the search range) that fits the desired node.h]hmSearch for the highest hole (address closest to U64_MAX, within the search range) that fits the desired node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKOhjubh)}(hAllocates the node from the *top* of the found hole. The specified alignment for the node is applied to the base of the node (:c:type:`drm_mm_node.start `).h](hAllocates the node from the }(hjhhhNhNubhemphasis)}(h*top*h]htop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh] of the found hole. The specified alignment for the node is applied to the base of the node (}(hjhhhNhNubh)}(h):c:type:`drm_mm_node.start `h]j)}(hjh]hdrm_mm_node.start}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_mm_nodeuh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKRhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKRhjubeh}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhKThjubj)}(hXB``DRM_MM_INSERT_EVICT`` Search for the most recently evicted hole (within the search range) that fits the desired node. This is appropriate for use immediately after performing an eviction scan (see drm_mm_scan_init()) and removing the selected nodes to form a hole. Allocates the node from the bottom of the found hole. h](j)}(h``DRM_MM_INSERT_EVICT``h]j)}(hjh]hDRM_MM_INSERT_EVICT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhK\hjubj)}(hhh](h)}(hSearch for the most recently evicted hole (within the search range) that fits the desired node. This is appropriate for use immediately after performing an eviction scan (see drm_mm_scan_init()) and removing the selected nodes to form a hole.h]hSearch for the most recently evicted hole (within the search range) that fits the desired node. This is appropriate for use immediately after performing an eviction scan (see drm_mm_scan_init()) and removing the selected nodes to form a hole.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKWhjubh)}(h5Allocates the node from the bottom of the found hole.h]h5Allocates the node from the bottom of the found hole.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK\hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjubj)}(hX``DRM_MM_INSERT_ONCE`` Only check the first hole for suitablity and report -ENOSPC immediately otherwise, rather than check every hole until a suitable one is found. Can only be used in conjunction with another search method such as DRM_MM_INSERT_HIGH or DRM_MM_INSERT_LOW. h](j)}(h``DRM_MM_INSERT_ONCE``h]j)}(hjBh]hDRM_MM_INSERT_ONCE}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKbhj<ubj)}(hhh]h)}(hOnly check the first hole for suitablity and report -ENOSPC immediately otherwise, rather than check every hole until a suitable one is found. Can only be used in conjunction with another search method such as DRM_MM_INSERT_HIGH or DRM_MM_INSERT_LOW.h]hOnly check the first hole for suitablity and report -ENOSPC immediately otherwise, rather than check every hole until a suitable one is found. Can only be used in conjunction with another search method such as DRM_MM_INSERT_HIGH or DRM_MM_INSERT_LOW.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhK_hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKbhjubj)}(h``DRM_MM_INSERT_HIGHEST`` Only check the highest hole (the hole with the largest address) and insert the node at the top of the hole or report -ENOSPC if unsuitable. Does not search all holes. h](j)}(h``DRM_MM_INSERT_HIGHEST``h]j)}(hj|h]hDRM_MM_INSERT_HIGHEST}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKihjvubj)}(hhh](h)}(hOnly check the highest hole (the hole with the largest address) and insert the node at the top of the hole or report -ENOSPC if unsuitable.h]hOnly check the highest hole (the hole with the largest address) and insert the node at the top of the hole or report -ENOSPC if unsuitable.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKehjubh)}(hDoes not search all holes.h]hDoes not search all holes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKihjubeh}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhKihjubj)}(h``DRM_MM_INSERT_LOWEST`` Only check the lowest hole (the hole with the smallest address) and insert the node at the bottom of the hole or report -ENOSPC if unsuitable. Does not search all holes.h](j)}(h``DRM_MM_INSERT_LOWEST``h]j)}(hjh]hDRM_MM_INSERT_LOWEST}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKohjubj)}(hhh](h)}(hOnly check the lowest hole (the hole with the smallest address) and insert the node at the bottom of the hole or report -ENOSPC if unsuitable.h]hOnly check the lowest hole (the hole with the smallest address) and insert the node at the bottom of the hole or report -ENOSPC if unsuitable.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKlhjubh)}(hDoes not search all holes.h]hDoes not search all holes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKphjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKohjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKrhj=hhubh)}(hXThe :c:type:`struct drm_mm ` range manager supports finding a suitable modes using a number of search trees. These trees are oranised by size, by address and in most recent eviction order. This allows the user to find either the smallest hole to reuse, the lowest or highest address to reuse, or simply reuse the most recent eviction that fits. When allocating the :c:type:`drm_mm_node` from within the hole, the :c:type:`drm_mm_insert_mode` also dictate whether to allocate the lowest matching address or the highest.h](hThe }(hj,hhhNhNubh)}(h :c:type:`struct drm_mm `h]j)}(hj6h]h struct drm_mm}(hj8hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_mmuh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhK=hj,ubhXQ range manager supports finding a suitable modes using a number of search trees. These trees are oranised by size, by address and in most recent eviction order. This allows the user to find either the smallest hole to reuse, the lowest or highest address to reuse, or simply reuse the most recent eviction that fits. When allocating the }(hj,hhhNhNubh)}(h:c:type:`drm_mm_node`h]j)}(hjZh]h drm_mm_node}(hj\hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_mm_nodeuh1hhjShK=hj,ubh from within the hole, the }(hj,hhhNhNubh)}(h:c:type:`drm_mm_insert_mode`h]j)}(hj}h]hdrm_mm_insert_mode}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_mm_insert_modeuh1hhjShK=hj,ubhM also dictate whether to allocate the lowest matching address or the highest.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjShK=hj=hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_node (C struct) c.drm_mm_nodehNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(h drm_mm_nodeh]jR)}(hstruct drm_mm_nodeh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKHubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKHubj{)}(h drm_mm_nodeh]j)}(hjh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKHubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKHubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKHhjhhubj)}(hhh]h)}(h$allocated block in the DRM allocatorh]h$allocated block in the DRM allocator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKHubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhj=hNhNubj)}(h**Definition**:: struct drm_mm_node { unsigned long color; u64 start; u64 size; }; **Members** ``color`` Opaque driver-private tag. ``start`` Start address of the allocated block. ``size`` Size of the allocated block.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubjh)}(hMstruct drm_mm_node { unsigned long color; u64 start; u64 size; };h]hMstruct drm_mm_node { unsigned long color; u64 start; u64 size; };}hj<sbah}(h]h ]h"]h$]h&]jjuh1jghP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubh)}(h **Members**h]j)}(hjMh]hMembers}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubj)}(hhh](j)}(h%``color`` Opaque driver-private tag. h](j)}(h ``color``h]j)}(hjlh]hcolor}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjfubj)}(hhh]h)}(hOpaque driver-private tag.h]hOpaque driver-private tag.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhKhjcubj)}(h0``start`` Start address of the allocated block. h](j)}(h ``start``h]j)}(hjh]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubj)}(hhh]h)}(h%Start address of the allocated block.h]h%Start address of the allocated block.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjcubj)}(h%``size`` Size of the allocated block.h](j)}(h``size``h]j)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubj)}(hhh]h)}(hSize of the allocated block.h]hSize of the allocated block.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjcubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubh)}(h**Description**h]j)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhj=hhubh)}(hX:This represents an allocated block in a :c:type:`drm_mm` allocator. Except for pre-reserved nodes inserted using drm_mm_reserve_node() the structure is entirely opaque and should only be accessed through the provided funcions. Since allocation of these nodes is entirely handled by the driver they can be embedded.h](h(This represents an allocated block in a }(hj7hhhNhNubh)}(h:c:type:`drm_mm`h]j)}(hjAh]hdrm_mm}(hjChhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_mmuh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhj7ubhX allocator. Except for pre-reserved nodes inserted using drm_mm_reserve_node() the structure is entirely opaque and should only be accessed through the provided funcions. Since allocation of these nodes is entirely handled by the driver they can be embedded.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hKhj=hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm (C struct)c.drm_mmhNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hdrm_mmh]jR)}(h struct drm_mmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj~hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~hhhjhKubj{)}(hdrm_mmh]j)}(hj|h]hdrm_mm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjzhhhjhKubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjwhhubj)}(hhh]h)}(h DRM allocatorh]h DRM allocator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhj=hNhNubj)}(hX**Definition**:: struct drm_mm { void (*color_adjust)(const struct drm_mm_node *node, unsigned long color, u64 *start, u64 *end); }; **Members** ``color_adjust`` Optional driver callback to further apply restrictions on a hole. The node argument points at the node containing the hole from which the block would be allocated (see drm_mm_hole_follows() and friends). The other arguments are the size of the block to be allocated. The driver can adjust the start and end as needed to e.g. insert guard pages.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubjh)}(hwstruct drm_mm { void (*color_adjust)(const struct drm_mm_node *node, unsigned long color, u64 *start, u64 *end); };h]hwstruct drm_mm { void (*color_adjust)(const struct drm_mm_node *node, unsigned long color, u64 *start, u64 *end); };}hjsbah}(h]h ]h"]h$]h&]jjuh1jghP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubj)}(hhh]j)}(hXi``color_adjust`` Optional driver callback to further apply restrictions on a hole. The node argument points at the node containing the hole from which the block would be allocated (see drm_mm_hole_follows() and friends). The other arguments are the size of the block to be allocated. The driver can adjust the start and end as needed to e.g. insert guard pages.h](j)}(h``color_adjust``h]j)}(hj1h]h color_adjust}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhj+ubj)}(hhh]h)}(hXXOptional driver callback to further apply restrictions on a hole. The node argument points at the node containing the hole from which the block would be allocated (see drm_mm_hole_follows() and friends). The other arguments are the size of the block to be allocated. The driver can adjust the start and end as needed to e.g. insert guard pages.h]hXXOptional driver callback to further apply restrictions on a hole. The node argument points at the node containing the hole from which the block would be allocated (see drm_mm_hole_follows() and friends). The other arguments are the size of the block to be allocated. The driver can adjust the start and end as needed to e.g. insert guard pages.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhKhj(ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubh)}(h**Description**h]j)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhj=hhubh)}(hX0DRM range allocator with a few special functions and features geared towards managing GPU memory. Except for the **color_adjust** callback the structure is entirely opaque and should only be accessed through the provided functions and macros. This structure can be embedded into larger driver structures.h](hqDRM range allocator with a few special functions and features geared towards managing GPU memory. Except for the }(hjhhhNhNubj)}(h**color_adjust**h]h color_adjust}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh callback the structure is entirely opaque and should only be accessed through the provided functions and macros. This structure can be embedded into larger driver structures.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhj=hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_scan (C struct) c.drm_mm_scanhNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(h drm_mm_scanh]jR)}(hstruct drm_mm_scanh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(h drm_mm_scanh]j)}(hjh]h drm_mm_scan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h)}(h#DRM allocator eviction roaster datah]h#DRM allocator eviction roaster data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhj=hNhNubj)}(h:**Definition**:: struct drm_mm_scan { }; **Members**h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh:}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhj"ubjh)}(hstruct drm_mm_scan { };h]hstruct drm_mm_scan { };}hjCsbah}(h]h ]h"]h$]h&]jjuh1jghP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhj"ubh)}(h **Members**h]j)}(hjTh]hMembers}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubh)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhj=hhubh)}(hXMThis structure tracks data needed for the eviction roaster set up using drm_mm_scan_init(), and used with drm_mm_scan_add_block() and drm_mm_scan_remove_block(). The structure is entirely opaque and should only be accessed through the provided functions and macros. It is meant to be allocated temporarily by the driver on the stack.h]hXMThis structure tracks data needed for the eviction roaster set up using drm_mm_scan_init(), and used with drm_mm_scan_add_block() and drm_mm_scan_remove_block(). The structure is entirely opaque and should only be accessed through the provided functions and macros. It is meant to be allocated temporarily by the driver on the stack.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhj=hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_mm_node_allocated (C function)c.drm_mm_node_allocatedhNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(h;bool drm_mm_node_allocated (const struct drm_mm_node *node)h]jR)}(h:bool drm_mm_node_allocated(const struct drm_mm_node *node)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(hdrm_mm_node_allocatedh]j)}(hdrm_mm_node_allocatedh]hdrm_mm_node_allocated}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h (const struct drm_mm_node *node)h]j)}(hconst struct drm_mm_node *nodeh](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj(modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_mm_node_allocatedasbuh1hhjubjj)}(h h]h }(hjFhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjThhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnodeh]hnode}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h)}(h"checks whether a node is allocatedh]h"checks whether a node is allocated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj=hNhNubj)}(hX/**Parameters** ``const struct drm_mm_node *node`` drm_mm_node to check **Description** Drivers are required to clear a node prior to using it with the drm_mm range manager. Drivers should use this helper for proper encapsulation of drm_mm internals. **Return** True if the **node** is allocated.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubj)}(hhh]j)}(h8``const struct drm_mm_node *node`` drm_mm_node to check h](j)}(h"``const struct drm_mm_node *node``h]j)}(hjh]hconst struct drm_mm_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubj)}(hhh]h)}(hdrm_mm_node to checkh]hdrm_mm_node to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubh)}(hUDrivers are required to clear a node prior to using it with the drm_mm range manager.h]hUDrivers are required to clear a node prior to using it with the drm_mm range manager.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubh)}(hLDrivers should use this helper for proper encapsulation of drm_mm internals.h]hLDrivers should use this helper for proper encapsulation of drm_mm internals.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubh)}(h **Return**h]j)}(hj=h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubh)}(h"True if the **node** is allocated.h](h True if the }(hjShhhNhNubj)}(h**node**h]hnode}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh is allocated.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_initialized (C function)c.drm_mm_initializedhNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(h1bool drm_mm_initialized (const struct drm_mm *mm)h]jR)}(h0bool drm_mm_initialized(const struct drm_mm *mm)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_mm_initializedh]j)}(hdrm_mm_initializedh]hdrm_mm_initialized}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(const struct drm_mm *mm)h]j)}(hconst struct drm_mm *mmh](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_mm_initializedasbuh1hhjubjj)}(h h]h }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj7hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hmmh]hmm}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h*checks whether an allocator is initializedh]h*checks whether an allocator is initialized}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjkhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj=hNhNubj)}(hX/**Parameters** ``const struct drm_mm *mm`` drm_mm to check **Description** Drivers should clear the struct drm_mm prior to initialisation if they want to use this function. Drivers should use this helper for proper encapsulation of drm_mm internals. **Return** True if the **mm** is initialized.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM hjubj)}(hhh]j)}(h,``const struct drm_mm *mm`` drm_mm to check h](j)}(h``const struct drm_mm *mm``h]j)}(hjh]hconst struct drm_mm *mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM hjubj)}(hhh]h)}(hdrm_mm to checkh]hdrm_mm to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM hjubh)}(haDrivers should clear the struct drm_mm prior to initialisation if they want to use this function.h]haDrivers should clear the struct drm_mm prior to initialisation if they want to use this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM hjubh)}(hLDrivers should use this helper for proper encapsulation of drm_mm internals.h]hLDrivers should use this helper for proper encapsulation of drm_mm internals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM hjubh)}(h **Return**h]j)}(hj h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubh)}(h"True if the **mm** is initialized.h](h True if the }(hj6hhhNhNubj)}(h**mm**h]hmm}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is initialized.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_mm_hole_follows (C function)c.drm_mm_hole_followshNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(h9bool drm_mm_hole_follows (const struct drm_mm_node *node)h]jR)}(h8bool drm_mm_hole_follows(const struct drm_mm_node *node)h](j)}(hj*h]hbool}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjshhhjhMubj{)}(hdrm_mm_hole_followsh]j)}(hdrm_mm_hole_followsh]hdrm_mm_hole_follows}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjshhhjhMubj)}(h (const struct drm_mm_node *node)h]j)}(hconst struct drm_mm_node *nodeh](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_mm_hole_followsasbuh1hhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnodeh]hnode}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjshhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjohhhjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjlhhubj)}(hhh]h)}(h'checks whether a hole follows this nodeh]h'checks whether a hole follows this node}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1jFhhhj=hNhNubj)}(hXe**Parameters** ``const struct drm_mm_node *node`` drm_mm_node to check **Description** Holes are embedded into the drm_mm using the tail of a drm_mm_node. If you wish to know whether a hole follows this particular node, query this function. See also drm_mm_hole_node_start() and drm_mm_hole_node_end(). **Return** True if a hole follows the **node**.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjmubj)}(hhh]j)}(h8``const struct drm_mm_node *node`` drm_mm_node to check h](j)}(h"``const struct drm_mm_node *node``h]j)}(hjh]hconst struct drm_mm_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubj)}(hhh]h)}(hdrm_mm_node to checkh]hdrm_mm_node to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjmubh)}(hHoles are embedded into the drm_mm using the tail of a drm_mm_node. If you wish to know whether a hole follows this particular node, query this function. See also drm_mm_hole_node_start() and drm_mm_hole_node_end().h]hHoles are embedded into the drm_mm using the tail of a drm_mm_node. If you wish to know whether a hole follows this particular node, query this function. See also drm_mm_hole_node_start() and drm_mm_hole_node_end().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjmubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM!hjmubh)}(h$True if a hole follows the **node**.h](hTrue if a hole follows the }(hj hhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM"hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_mm_hole_node_start (C function)c.drm_mm_hole_node_starthNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(h@u64 drm_mm_hole_node_start (const struct drm_mm_node *hole_node)h]jR)}(h?u64 drm_mm_hole_node_start(const struct drm_mm_node *hole_node)h](h)}(hhh]j)}(hu64h]hu64}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjPmodnameN classnameNj+j.)}j1]j4)}j'drm_mm_hole_node_startsbc.drm_mm_hole_node_startasbuh1hhjGhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM0ubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjGhhhjohM0ubj{)}(hdrm_mm_hole_node_starth]j)}(hjlh]hdrm_mm_hole_node_start}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhjohM0ubj)}(h%(const struct drm_mm_node *hole_node)h]j)}(h#const struct drm_mm_node *hole_nodeh](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jjc.drm_mm_hole_node_startasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h hole_nodeh]h hole_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjGhhhjohM0ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjChhhjohM0ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jKhjohM0hj@hhubj)}(hhh]h)}(h1computes the start of the hole following **node**h](h)computes the start of the hole following }(hj9hhhNhNubj)}(h**node**h]hnode}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM0hj6hhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjohM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1jFhhhj=hNhNubj)}(hXq**Parameters** ``const struct drm_mm_node *hole_node`` drm_mm_node which implicitly tracks the following hole **Description** This is useful for driver-specific debug dumpers. Otherwise drivers should not inspect holes themselves. Drivers must check first whether a hole indeed follows by looking at drm_mm_hole_follows() **Return** Start of the subsequent hole.h](h)}(h**Parameters**h]j)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM4hjcubj)}(hhh]j)}(h_``const struct drm_mm_node *hole_node`` drm_mm_node which implicitly tracks the following hole h](j)}(h'``const struct drm_mm_node *hole_node``h]j)}(hjh]h#const struct drm_mm_node *hole_node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM1hjubj)}(hhh]h)}(h6drm_mm_node which implicitly tracks the following holeh]h6drm_mm_node which implicitly tracks the following hole}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjcubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM3hjcubh)}(hThis is useful for driver-specific debug dumpers. Otherwise drivers should not inspect holes themselves. Drivers must check first whether a hole indeed follows by looking at drm_mm_hole_follows()h]hThis is useful for driver-specific debug dumpers. Otherwise drivers should not inspect holes themselves. Drivers must check first whether a hole indeed follows by looking at drm_mm_hole_follows()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM2hjcubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM6hjcubh)}(hStart of the subsequent hole.h]hStart of the subsequent hole.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM7hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!drm_mm_hole_node_end (C function)c.drm_mm_hole_node_endhNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(h>u64 drm_mm_hole_node_end (const struct drm_mm_node *hole_node)h]jR)}(h=u64 drm_mm_hole_node_end(const struct drm_mm_node *hole_node)h](h)}(hhh]j)}(hu64h]hu64}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj4modnameN classnameNj+j.)}j1]j4)}j'drm_mm_hole_node_endsbc.drm_mm_hole_node_endasbuh1hhj+hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMFubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj+hhhjShMFubj{)}(hdrm_mm_hole_node_endh]j)}(hjPh]hdrm_mm_hole_node_end}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+hhhjShMFubj)}(h%(const struct drm_mm_node *hole_node)h]j)}(h#const struct drm_mm_node *hole_nodeh](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj}ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}ubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj}ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jNc.drm_mm_hole_node_endasbuh1hhj}ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj}ubj)}(h hole_nodeh]h hole_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubah}(h]h ]h"]h$]h&]jjuh1jhj+hhhjShMFubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj'hhhjShMFubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1jKhjShMFhj$hhubj)}(hhh]h)}(h/computes the end of the hole following **node**h](h'computes the end of the hole following }(hjhhhNhNubj)}(h**node**h]hnode}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMFhjhhubah}(h]h ]h"]h$]h&]uh1jhj$hhhjShMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1jFhhhj=hNhNubj)}(hXp**Parameters** ``const struct drm_mm_node *hole_node`` drm_mm_node which implicitly tracks the following hole **Description** This is useful for driver-specific debug dumpers. Otherwise drivers should not inspect holes themselves. Drivers must check first whether a hole indeed follows by looking at drm_mm_hole_follows(). **Return** End of the subsequent hole.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMJhjGubj)}(hhh]j)}(h_``const struct drm_mm_node *hole_node`` drm_mm_node which implicitly tracks the following hole h](j)}(h'``const struct drm_mm_node *hole_node``h]j)}(hjlh]h#const struct drm_mm_node *hole_node}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMGhjfubj)}(hhh]h)}(h6drm_mm_node which implicitly tracks the following holeh]h6drm_mm_node which implicitly tracks the following hole}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjcubah}(h]h ]h"]h$]h&]uh1jhjGubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMIhjGubh)}(hThis is useful for driver-specific debug dumpers. Otherwise drivers should not inspect holes themselves. Drivers must check first whether a hole indeed follows by looking at drm_mm_hole_follows().h]hThis is useful for driver-specific debug dumpers. Otherwise drivers should not inspect holes themselves. Drivers must check first whether a hole indeed follows by looking at drm_mm_hole_follows().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMHhjGubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMLhjGubh)}(hEnd of the subsequent hole.h]hEnd of the subsequent hole.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMMhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_nodes (C macro)c.drm_mm_nodeshNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(h drm_mm_nodesh]jR)}(h drm_mm_nodesh]j{)}(h drm_mm_nodesh]j)}(hj h]h drm_mm_nodes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMVubah}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj*hMVubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj*hMVhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj*hMVubeh}(h]h ](jmacroeh"]h$]h&]jjjjCjjCjjjuh1jFhhhj=hNhNubh)}(h``drm_mm_nodes (mm)``h]j)}(hjIh]hdrm_mm_nodes (mm)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMXhj=hhubj)}(h-list of nodes under the drm_mm range manager h]h)}(h,list of nodes under the drm_mm range managerh]h,list of nodes under the drm_mm range manager}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMVhj_ubah}(h]h ]h"]h$]h&]uh1jhjqhMVhj=hhubj)}(hXV**Parameters** ``mm`` the struct drm_mm range manager **Description** As the drm_mm range manager hides its node_list deep with its structure, extracting it looks painful and repetitive. This is not expected to be used outside of the drm_mm_for_each_node() macros and similar internal functions. **Return** The node list, may be empty.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMZhjxubj)}(hhh]j)}(h'``mm`` the struct drm_mm range manager h](j)}(h``mm``h]j)}(hjh]hmm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMWhjubj)}(hhh]h)}(hthe struct drm_mm range managerh]hthe struct drm_mm range manager}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjubah}(h]h ]h"]h$]h&]uh1jhjxubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMYhjxubh)}(hAs the drm_mm range manager hides its node_list deep with its structure, extracting it looks painful and repetitive. This is not expected to be used outside of the drm_mm_for_each_node() macros and similar internal functions.h]hAs the drm_mm range manager hides its node_list deep with its structure, extracting it looks painful and repetitive. This is not expected to be used outside of the drm_mm_for_each_node() macros and similar internal functions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMXhjxubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM]hjxubh)}(hThe node list, may be empty.h]hThe node list, may be empty.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM^hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_for_each_node (C macro)c.drm_mm_for_each_nodehNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hdrm_mm_for_each_nodeh]jR)}(hdrm_mm_for_each_nodeh]j{)}(hdrm_mm_for_each_nodeh]j)}(hj>h]hdrm_mm_for_each_node}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj@hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMdubah}(h]h ]h"]h$]h&]jjjuh1jQjjhj<hhhj[hMdubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jKhj[hMdhj9hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj9hhhj[hMdubeh}(h]h ](jmacroeh"]h$]h&]jjjjtjjtjjjuh1jFhhhj=hNhNubh)}(h$``drm_mm_for_each_node (entry, mm)``h]j)}(hjzh]h drm_mm_for_each_node (entry, mm)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMfhj=hhubj)}(h*iterator to walk over all allocated nodes h]h)}(h)iterator to walk over all allocated nodesh]h)iterator to walk over all allocated nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMdhjubah}(h]h ]h"]h$]h&]uh1jhjhMdhj=hhubj)}(hX5**Parameters** ``entry`` :c:type:`struct drm_mm_node ` to assign to in each iteration step ``mm`` :c:type:`drm_mm` allocator to walk **Description** This iterator walks over all nodes in the range allocator. It is implemented with list_for_each(), so not save against removal of elements.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhhjubj)}(hhh](j)}(hY``entry`` :c:type:`struct drm_mm_node ` to assign to in each iteration step h](j)}(h ``entry``h]j)}(hjh]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMehjubj)}(hhh]h)}(hN:c:type:`struct drm_mm_node ` to assign to in each iteration steph](h)}(h*:c:type:`struct drm_mm_node `h]j)}(hjh]hstruct drm_mm_node}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_mm_nodeuh1hhjhMehjubh$ to assign to in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjubj)}(h*``mm`` :c:type:`drm_mm` allocator to walk h](j)}(h``mm``h]j)}(hj&h]hmm}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMfhj ubj)}(hhh]h)}(h":c:type:`drm_mm` allocator to walkh](h)}(h:c:type:`drm_mm`h]j)}(hjEh]hdrm_mm}(hjGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_mmuh1hhj;hMfhj?ubh allocator to walk}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;hMfhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMfhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhhjubh)}(hThis iterator walks over all nodes in the range allocator. It is implemented with list_for_each(), so not save against removal of elements.h]hThis iterator walks over all nodes in the range allocator. It is implemented with list_for_each(), so not save against removal of elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_mm_for_each_node_safe (C macro)c.drm_mm_for_each_node_safehNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hdrm_mm_for_each_node_safeh]jR)}(hdrm_mm_for_each_node_safeh]j{)}(hdrm_mm_for_each_node_safeh]j)}(hjh]hdrm_mm_for_each_node_safe}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMoubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMoubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMohjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMoubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhj=hNhNubh)}(h/``drm_mm_for_each_node_safe (entry, next, mm)``h]j)}(hjh]h+drm_mm_for_each_node_safe (entry, next, mm)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMqhj=hhubj)}(h*iterator to walk over all allocated nodes h]h)}(h)iterator to walk over all allocated nodesh]h)iterator to walk over all allocated nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMohjubah}(h]h ]h"]h$]h&]uh1jhj#hMohj=hhubj)}(hX**Parameters** ``entry`` :c:type:`struct drm_mm_node ` to assign to in each iteration step ``next`` :c:type:`struct drm_mm_node ` to store the next step ``mm`` :c:type:`drm_mm` allocator to walk **Description** This iterator walks over all nodes in the range allocator. It is implemented with list_for_each_safe(), so save against removal of elements.h](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMshj*ubj)}(hhh](j)}(hY``entry`` :c:type:`struct drm_mm_node ` to assign to in each iteration step h](j)}(h ``entry``h]j)}(hjOh]hentry}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMphjIubj)}(hhh]h)}(hN:c:type:`struct drm_mm_node ` to assign to in each iteration steph](h)}(h*:c:type:`struct drm_mm_node `h]j)}(hjnh]hstruct drm_mm_node}(hjphhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_mm_nodeuh1hhjdhMphjhubh$ to assign to in each iteration step}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjdhMphjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMphjFubj)}(hK``next`` :c:type:`struct drm_mm_node ` to store the next step h](j)}(h``next``h]j)}(hjh]hnext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMqhjubj)}(hhh]h)}(hA:c:type:`struct drm_mm_node ` to store the next steph](h)}(h*:c:type:`struct drm_mm_node `h]j)}(hjh]hstruct drm_mm_node}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_mm_nodeuh1hhjhMqhjubh to store the next step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjFubj)}(h*``mm`` :c:type:`drm_mm` allocator to walk h](j)}(h``mm``h]j)}(hjh]hmm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMrhjubj)}(hhh]h)}(h":c:type:`drm_mm` allocator to walkh](h)}(h:c:type:`drm_mm`h]j)}(hjh]hdrm_mm}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_mmuh1hhjhMrhjubh allocator to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjFubeh}(h]h ]h"]h$]h&]uh1jhj*ubh)}(h**Description**h]j)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMthj*ubh)}(hThis iterator walks over all nodes in the range allocator. It is implemented with list_for_each_safe(), so save against removal of elements.h]hThis iterator walks over all nodes in the range allocator. It is implemented with list_for_each_safe(), so save against removal of elements.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMshj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_for_each_hole (C macro)c.drm_mm_for_each_holehNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hdrm_mm_for_each_holeh]jR)}(hdrm_mm_for_each_holeh]j{)}(hdrm_mm_for_each_holeh]j)}(hjh]hdrm_mm_for_each_hole}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM{ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhM{ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM{hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM{ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhj=hNhNubh)}(h8``drm_mm_for_each_hole (pos, mm, hole_start, hole_end)``h]j)}(hjh]h4drm_mm_for_each_hole (pos, mm, hole_start, hole_end)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM}hj=hhubj)}(h iterator to walk over all holes h]h)}(hiterator to walk over all holesh]hiterator to walk over all holes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM{hjubah}(h]h ]h"]h$]h&]uh1jhjhM{hj=hhubj)}(hX**Parameters** ``pos`` :c:type:`drm_mm_node` used internally to track progress ``mm`` :c:type:`drm_mm` allocator to walk ``hole_start`` ulong variable to assign the hole start to on each iteration ``hole_end`` ulong variable to assign the hole end to on each iteration **Description** This iterator walks over all holes in the range allocator. It is implemented with list_for_each(), so not save against removal of elements. **entry** is used internally and will not reflect a real drm_mm_node for the very first hole. Hence users of this iterator may not access it. Implementation Note: We need to inline list_for_each_entry in order to be able to set hole_start and hole_end on each iteration while keeping the macro sane.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubj)}(hhh](j)}(h@``pos`` :c:type:`drm_mm_node` used internally to track progress h](j)}(h``pos``h]j)}(hj(h]hpos}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM|hj"ubj)}(hhh]h)}(h7:c:type:`drm_mm_node` used internally to track progressh](h)}(h:c:type:`drm_mm_node`h]j)}(hjGh]h drm_mm_node}(hjIhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_mm_nodeuh1hhj=hM|hjAubh" used internally to track progress}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj=hM|hj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hM|hjubj)}(h*``mm`` :c:type:`drm_mm` allocator to walk h](j)}(h``mm``h]j)}(hjh]hmm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM}hjzubj)}(hhh]h)}(h":c:type:`drm_mm` allocator to walkh](h)}(h:c:type:`drm_mm`h]j)}(hjh]hdrm_mm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_mmuh1hhjhM}hjubh allocator to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjubj)}(hL``hole_start`` ulong variable to assign the hole start to on each iteration h](j)}(h``hole_start``h]j)}(hjh]h hole_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM~hjubj)}(hhh]h)}(h``unsigned long color`` opaque tag value to use for this node h](j)}(h``unsigned long color``h]j)}(hjYh]hunsigned long color}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjSubj)}(hhh]h)}(h%opaque tag value to use for this nodeh]h%opaque tag value to use for this node}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjlubj)}(hO``enum drm_mm_insert_mode mode`` fine-tune the allocation search and placement h](j)}(h ``enum drm_mm_insert_mode mode``h]j)}(hjh]henum drm_mm_insert_mode mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubj)}(hhh]h)}(h-fine-tune the allocation search and placementh]h-fine-tune the allocation search and placement}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubeh}(h]h ]h"]h$]h&]uh1jhjPubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjPubh)}(haThis is a simplified version of drm_mm_insert_node_in_range() with no range restrictions applied.h]haThis is a simplified version of drm_mm_insert_node_in_range() with no range restrictions applied.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjPubh)}(h+The preallocated node must be cleared to 0.h]h+The preallocated node must be cleared to 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjPubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjPubh)}(h20 on success, -ENOSPC if there's no suitable hole.h]h40 on success, -ENOSPC if there’s no suitable hole.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_insert_node (C function)c.drm_mm_insert_nodehNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hNint drm_mm_insert_node (struct drm_mm *mm, struct drm_mm_node *node, u64 size)h]jR)}(hMint drm_mm_insert_node(struct drm_mm *mm, struct drm_mm_node *node, u64 size)h](j)}(hinth]hint}(hjH hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMubjj)}(h h]h }(hjW hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjD hhhjV hMubj{)}(hdrm_mm_insert_nodeh]j)}(hdrm_mm_insert_nodeh]hdrm_mm_insert_node}(hji hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjD hhhjV hMubj)}(h7(struct drm_mm *mm, struct drm_mm_node *node, u64 size)h](j)}(hstruct drm_mm *mmh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j4)}j'jk sbc.drm_mm_insert_nodeasbuh1hhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hmmh]hmm}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj} ubj)}(hstruct drm_mm_node *nodeh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j c.drm_mm_insert_nodeasbuh1hhj ubjj)}(h h]h }(hj3 hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hjA hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hnodeh]hnode}(hjN hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj} ubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjl modnameN classnameNj+j.)}j1]j c.drm_mm_insert_nodeasbuh1hhjc ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjc ubj)}(hsizeh]hsize}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj} ubeh}(h]h ]h"]h$]h&]jjuh1jhjD hhhjV hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj@ hhhjV hMubah}(h]j; ah ](jjeh"]h$]h&]jj)jhuh1jKhjV hMhj= hhubj)}(hhh]h)}(h$search for space and insert **node**h](hsearch for space and insert }(hj hhhNhNubj)}(h**node**h]hnode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj hhubah}(h]h ]h"]h$]h&]uh1jhj= hhhjV hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jFhhhj=hNhNubj)}(hXv**Parameters** ``struct drm_mm *mm`` drm_mm to allocate from ``struct drm_mm_node *node`` preallocate node to insert ``u64 size`` size of the allocation **Description** This is a simplified version of drm_mm_insert_node_generic() with **color** set to 0. The preallocated node must be cleared to 0. **Return** 0 on success, -ENOSPC if there's no suitable hole.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj ubj)}(hhh](j)}(h.``struct drm_mm *mm`` drm_mm to allocate from h](j)}(h``struct drm_mm *mm``h]j)}(hj h]hstruct drm_mm *mm}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj ubj)}(hhh]h)}(hdrm_mm to allocate fromh]hdrm_mm to allocate from}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ hMhj% ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$ hMhj ubj)}(h8``struct drm_mm_node *node`` preallocate node to insert h](j)}(h``struct drm_mm_node *node``h]j)}(hjH h]hstruct drm_mm_node *node}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjB ubj)}(hhh]h)}(hpreallocate node to inserth]hpreallocate node to insert}(hja hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj] hMhj^ ubah}(h]h ]h"]h$]h&]uh1jhjB ubeh}(h]h ]h"]h$]h&]uh1jhj] hMhj ubj)}(h$``u64 size`` size of the allocation h](j)}(h ``u64 size``h]j)}(hj h]hu64 size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj{ ubj)}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj{ ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj ubh)}(hUThis is a simplified version of drm_mm_insert_node_generic() with **color** set to 0.h](hBThis is a simplified version of drm_mm_insert_node_generic() with }(hj hhhNhNubj)}(h **color**h]hcolor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh set to 0.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj ubh)}(h+The preallocated node must be cleared to 0.h]h+The preallocated node must be cleared to 0.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj ubh)}(h20 on success, -ENOSPC if there's no suitable hole.h]h40 on success, -ENOSPC if there’s no suitable hole.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_clean (C function)c.drm_mm_cleanhNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(h+bool drm_mm_clean (const struct drm_mm *mm)h]jR)}(h*bool drm_mm_clean(const struct drm_mm *mm)h](j)}(hj*h]hbool}(hjI hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMubjj)}(h h]h }(hjW hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjE hhhjV hMubj{)}(h drm_mm_cleanh]j)}(h drm_mm_cleanh]h drm_mm_clean}(hji hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjE hhhjV hMubj)}(h(const struct drm_mm *mm)h]j)}(hconst struct drm_mm *mmh](jX)}(hj h]hconst}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j4)}j'jk sbc.drm_mm_cleanasbuh1hhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hmmh]hmm}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj} ubah}(h]h ]h"]h$]h&]jjuh1jhjE hhhjV hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjA hhhjV hMubah}(h]j< ah ](jjeh"]h$]h&]jj)jhuh1jKhjV hMhj> hhubj)}(hhh]h)}(h$checks whether an allocator is cleanh]h$checks whether an allocator is clean}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj hhubah}(h]h ]h"]h$]h&]uh1jhj> hhhjV hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj; jj; jjjuh1jFhhhj=hNhNubj)}(h**Parameters** ``const struct drm_mm *mm`` drm_mm allocator to check **Return** True if the allocator is completely free, false if there's still a node allocated in it.h](h)}(h**Parameters**h]j)}(hjE h]h Parameters}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj? ubj)}(hhh]j)}(h6``const struct drm_mm *mm`` drm_mm allocator to check h](j)}(h``const struct drm_mm *mm``h]j)}(hjd h]hconst struct drm_mm *mm}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj^ ubj)}(hhh]h)}(hdrm_mm allocator to checkh]hdrm_mm allocator to check}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy hMhjz ubah}(h]h ]h"]h$]h&]uh1jhj^ ubeh}(h]h ]h"]h$]h&]uh1jhjy hMhj[ ubah}(h]h ]h"]h$]h&]uh1jhj? ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj? ubh)}(hXTrue if the allocator is completely free, false if there's still a node allocated in it.h]hZTrue if the allocator is completely free, false if there’s still a node allocated in it.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj? ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_mm_for_each_node_in_range (C macro)c.drm_mm_for_each_node_in_rangehNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hdrm_mm_for_each_node_in_rangeh]jR)}(hdrm_mm_for_each_node_in_rangeh]j{)}(hdrm_mm_for_each_node_in_rangeh]j)}(hj h]hdrm_mm_for_each_node_in_range}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj hMhj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhj=hNhNubh)}(h@``drm_mm_for_each_node_in_range (node__, mm__, start__, end__)``h]j)}(hjh]h`, and may even continue indefinitely.h](h)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjIubj)}(hhh](j)}(hE``node__`` drm_mm_node structure to assign to in each iteration step h](j)}(h ``node__``h]j)}(hjnh]hnode__}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjhubj)}(hhh]h)}(h9drm_mm_node structure to assign to in each iteration steph]h9drm_mm_node structure to assign to in each iteration step}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(h"``mm__`` drm_mm allocator to walk h](j)}(h``mm__``h]j)}(hjh]hmm__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubj)}(hhh]h)}(hdrm_mm allocator to walkh]hdrm_mm allocator to walk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(h>``start__`` starting offset, the first node will overlap this h](j)}(h ``start__``h]j)}(hjh]hstart__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubj)}(hhh]h)}(h1starting offset, the first node will overlap thish]h1starting offset, the first node will overlap this}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(hP``end__`` ending offset, the last node will start before this (but may overlap) h](j)}(h ``end__``h]j)}(hjh]hend__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubj)}(hhh]h)}(hEending offset, the last node will start before this (but may overlap)h]hEending offset, the last node will start before this (but may overlap)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjeubeh}(h]h ]h"]h$]h&]uh1jhjIubh)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjIubh)}(hX This iterator walks over all nodes in the range allocator that lie between **start** and **end**. It is implemented similarly to list_for_each(), but using the internal interval tree to accelerate the search for the starting node, and so not safe against removal of elements. It assumes that **end** is within (or is the upper limit of) the drm_mm allocator. If [**start**, **end**] are beyond the range of the drm_mm, the iterator may walk over the special _unallocated_ :c:type:`drm_mm.head_node `, and may even continue indefinitely.h](hKThis iterator walks over all nodes in the range allocator that lie between }(hjjhhhNhNubj)}(h **start**h]hstart}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh and }(hjjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh. It is implemented similarly to list_for_each(), but using the internal interval tree to accelerate the search for the starting node, and so not safe against removal of elements. It assumes that }(hjjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh@ is within (or is the upper limit of) the drm_mm allocator. If [}(hjjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh, }(hjjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh[] are beyond the range of the drm_mm, the iterator may walk over the special _unallocated_ }(hjjhhhNhNubh)}(h#:c:type:`drm_mm.head_node `h]j)}(hjh]hdrm_mm.head_node}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_mmuh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjjubh%, and may even continue indefinitely.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_scan_init (C function)c.drm_mm_scan_inithNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hvoid drm_mm_scan_init (struct drm_mm_scan *scan, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color, enum drm_mm_insert_mode mode)h]jR)}(hvoid drm_mm_scan_init(struct drm_mm_scan *scan, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color, enum drm_mm_insert_mode mode)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj$hMubj{)}(hdrm_mm_scan_inith]j)}(hdrm_mm_scan_inith]hdrm_mm_scan_init}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj$hMubj)}(hy(struct drm_mm_scan *scan, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color, enum drm_mm_insert_mode mode)h](j)}(hstruct drm_mm_scan *scanh](jX)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjOubjj)}(h h]h }(hj`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOubh)}(hhh]j)}(h drm_mm_scanh]h drm_mm_scan}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjsmodnameN classnameNj+j.)}j1]j4)}j'j9sbc.drm_mm_scan_initasbuh1hhjOubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjOubj)}(hscanh]hscan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hstruct drm_mm *mmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_mm_scan_initasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj:modnameN classnameNj+j.)}j1]jc.drm_mm_scan_initasbuh1hhj1ubjj)}(h h]h }(hjVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj1ubj)}(hsizeh]hsize}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(h u64 alignmenth](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_mm_scan_initasbuh1hhjyubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyubj)}(h alignmenth]h alignment}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hunsigned long colorh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hcolorh]hcolor}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(henum drm_mm_insert_mode modeh](jX)}(hj[h]henum}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj#hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_mm_insert_modeh]hdrm_mm_insert_mode}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj6modnameN classnameNj+j.)}j1]jc.drm_mm_scan_initasbuh1hhjubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hmodeh]hmode}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj$hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj$hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj$hMhj hhubj)}(hhh]h)}(hinitialize lru scanningh]hinitialize lru scanning}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj=hNhNubj)}(hX**Parameters** ``struct drm_mm_scan *scan`` scan state ``struct drm_mm *mm`` drm_mm to scan ``u64 size`` size of the allocation ``u64 alignment`` alignment of the allocation ``unsigned long color`` opaque tag value to use for the allocation ``enum drm_mm_insert_mode mode`` fine-tune the allocation search and placement **Description** This is a simplified version of drm_mm_scan_init_with_range() with no range restrictions applied. This simply sets up the scanning routines with the parameters for the desired hole. Warning: As long as the scan list is non-empty, no other operations than adding/removing nodes to/from the scan list are allowed.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubj)}(hhh](j)}(h(``struct drm_mm_scan *scan`` scan state h](j)}(h``struct drm_mm_scan *scan``h]j)}(hjh]hstruct drm_mm_scan *scan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubj)}(hhh]h)}(h scan stateh]h scan state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``struct drm_mm *mm`` drm_mm to scan h](j)}(h``struct drm_mm *mm``h]j)}(hjh]hstruct drm_mm *mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubj)}(hhh]h)}(hdrm_mm to scanh]hdrm_mm to scan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h$``u64 size`` size of the allocation h](j)}(h ``u64 size``h]j)}(hj=h]hu64 size}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj7ubj)}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubj)}(h.``u64 alignment`` alignment of the allocation h](j)}(h``u64 alignment``h]j)}(hjvh]h u64 alignment}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjpubj)}(hhh]h)}(halignment of the allocationh]halignment of the allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hC``unsigned long color`` opaque tag value to use for the allocation h](j)}(h``unsigned long color``h]j)}(hjh]hunsigned long color}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubj)}(hhh]h)}(h*opaque tag value to use for the allocationh]h*opaque tag value to use for the allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hO``enum drm_mm_insert_mode mode`` fine-tune the allocation search and placement h](j)}(h ``enum drm_mm_insert_mode mode``h]j)}(hjh]henum drm_mm_insert_mode mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubj)}(hhh]h)}(h-fine-tune the allocation search and placementh]h-fine-tune the allocation search and placement}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj#h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM hjubh)}(haThis is a simplified version of drm_mm_scan_init_with_range() with no range restrictions applied.h]haThis is a simplified version of drm_mm_scan_init_with_range() with no range restrictions applied.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM hjubh)}(hSThis simply sets up the scanning routines with the parameters for the desired hole.h]hSThis simply sets up the scanning routines with the parameters for the desired hole.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM hjubh)}(hWarning: As long as the scan list is non-empty, no other operations than adding/removing nodes to/from the scan list are allowed.h]hWarning: As long as the scan list is non-empty, no other operations than adding/removing nodes to/from the scan list are allowed.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_mm_reserve_node (C function)c.drm_mm_reserve_nodehNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hEint drm_mm_reserve_node (struct drm_mm *mm, struct drm_mm_node *node)h]jR)}(hDint drm_mm_reserve_node(struct drm_mm *mm, struct drm_mm_node *node)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_mm_reserve_nodeh]j)}(hdrm_mm_reserve_nodeh]hdrm_mm_reserve_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h-(struct drm_mm *mm, struct drm_mm_node *node)h](j)}(hstruct drm_mm *mmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_mm_reserve_nodeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_mm_node *nodeh](jX)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj1ubjj)}(h h]h }(hjBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj1ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjUmodnameN classnameNj+j.)}j1]jc.drm_mm_reserve_nodeasbuh1hhj1ubjj)}(h h]h }(hjqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj1ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj1ubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj~hhhjhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhj{hhubj)}(hhh]h)}(hinsert an pre-initialized nodeh]hinsert an pre-initialized node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj{hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj=hNhNubj)}(hXK**Parameters** ``struct drm_mm *mm`` drm_mm allocator to insert **node** into ``struct drm_mm_node *node`` drm_mm_node to insert **Description** This functions inserts an already set-up :c:type:`drm_mm_node` into the allocator, meaning that start, size and color must be set by the caller. All other fields must be cleared to 0. This is useful to initialize the allocator with preallocated objects which must be set-up before the range allocator can be set-up, e.g. when taking over a firmware framebuffer. **Return** 0 on success, -ENOSPC if there's no hole where **node** is.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubj)}(hhh](j)}(h?``struct drm_mm *mm`` drm_mm allocator to insert **node** into h](j)}(h``struct drm_mm *mm``h]j)}(hjh]hstruct drm_mm *mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubj)}(hhh]h)}(h(drm_mm allocator to insert **node** intoh](hdrm_mm allocator to insert }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh into}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h3``struct drm_mm_node *node`` drm_mm_node to insert h](j)}(h``struct drm_mm_node *node``h]j)}(hjBh]hstruct drm_mm_node *node}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj<ubj)}(hhh]h)}(hdrm_mm_node to inserth]hdrm_mm_node to insert}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubh)}(hXiThis functions inserts an already set-up :c:type:`drm_mm_node` into the allocator, meaning that start, size and color must be set by the caller. All other fields must be cleared to 0. This is useful to initialize the allocator with preallocated objects which must be set-up before the range allocator can be set-up, e.g. when taking over a firmware framebuffer.h](h)This functions inserts an already set-up }(hjhhhNhNubh)}(h:c:type:`drm_mm_node`h]j)}(hjh]h drm_mm_node}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_mm_nodeuh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubhX+ into the allocator, meaning that start, size and color must be set by the caller. All other fields must be cleared to 0. This is useful to initialize the allocator with preallocated objects which must be set-up before the range allocator can be set-up, e.g. when taking over a firmware framebuffer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubh)}(h;0 on success, -ENOSPC if there's no hole where **node** is.h](h10 on success, -ENOSPC if there’s no hole where }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_mm_insert_node_in_range (C function)c.drm_mm_insert_node_in_rangehNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hint drm_mm_insert_node_in_range (struct drm_mm * const mm, struct drm_mm_node * const node, u64 size, u64 alignment, unsigned long color, u64 range_start, u64 range_end, enum drm_mm_insert_mode mode)h]jR)}(hint drm_mm_insert_node_in_range(struct drm_mm *const mm, struct drm_mm_node *const node, u64 size, u64 alignment, unsigned long color, u64 range_start, u64 range_end, enum drm_mm_insert_mode mode)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj,hMubj{)}(hdrm_mm_insert_node_in_rangeh]j)}(hdrm_mm_insert_node_in_rangeh]hdrm_mm_insert_node_in_range}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj,hMubj)}(h(struct drm_mm *const mm, struct drm_mm_node *const node, u64 size, u64 alignment, unsigned long color, u64 range_start, u64 range_end, enum drm_mm_insert_mode mode)h](j)}(hstruct drm_mm *const mmh](jX)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjWubjj)}(h h]h }(hjhhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjWubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj{modnameN classnameNj+j.)}j1]j4)}j'jAsbc.drm_mm_insert_node_in_rangeasbuh1hhjWubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjWubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjWubjX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjWubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjWubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hstruct drm_mm_node *const nodeh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_mm_insert_node_in_rangeasbuh1hhjubjj)}(h h]h }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj2hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjX)}(hj h]hconst}(hj?hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjLhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hnodeh]hnode}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjxmodnameN classnameNj+j.)}j1]jc.drm_mm_insert_node_in_rangeasbuh1hhjoubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjoubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(h u64 alignmenth](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_mm_insert_node_in_rangeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h alignmenth]h alignment}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hunsigned long colorh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hcolorh]hcolor}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hu64 range_starth](h)}(hhh]j)}(hu64h]hu64}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjYmodnameN classnameNj+j.)}j1]jc.drm_mm_insert_node_in_rangeasbuh1hhjPubjj)}(h h]h }(hjuhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjPubj)}(h range_starth]h range_start}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(h u64 range_endh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_mm_insert_node_in_rangeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h range_endh]h range_end}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(henum drm_mm_insert_mode modeh](jX)}(hj[h]henum}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_mm_insert_modeh]hdrm_mm_insert_mode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_mm_insert_node_in_rangeasbuh1hhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hmodeh]hmode}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj,hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj,hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj,hMhjhhubj)}(hhh]h)}(h+ranged search for space and insert **node**h](h#ranged search for space and insert }(hjXhhhNhNubj)}(h**node**h]hnode}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjUhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jFhhhj=hNhNubj)}(hXq**Parameters** ``struct drm_mm * const mm`` drm_mm to allocate from ``struct drm_mm_node * const node`` preallocate node to insert ``u64 size`` size of the allocation ``u64 alignment`` alignment of the allocation ``unsigned long color`` opaque tag value to use for this node ``u64 range_start`` start of the allowed range for this node ``u64 range_end`` end of the allowed range for this node ``enum drm_mm_insert_mode mode`` fine-tune the allocation search and placement **Description** The preallocated **node** must be cleared to 0. **Return** 0 on success, -ENOSPC if there's no suitable hole.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubj)}(hhh](j)}(h5``struct drm_mm * const mm`` drm_mm to allocate from h](j)}(h``struct drm_mm * const mm``h]j)}(hjh]hstruct drm_mm * const mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubj)}(hhh]h)}(hdrm_mm to allocate fromh]hdrm_mm to allocate from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``struct drm_mm_node * const node`` preallocate node to insert h](j)}(h#``struct drm_mm_node * const node``h]j)}(hjh]hstruct drm_mm_node * const node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubj)}(hhh]h)}(hpreallocate node to inserth]hpreallocate node to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h$``u64 size`` size of the allocation h](j)}(h ``u64 size``h]j)}(hjh]hu64 size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubj)}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubj)}(h.``u64 alignment`` alignment of the allocation h](j)}(h``u64 alignment``h]j)}(hjRh]h u64 alignment}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjLubj)}(hhh]h)}(halignment of the allocationh]halignment of the allocation}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjubj)}(h>``unsigned long color`` opaque tag value to use for this node h](j)}(h``unsigned long color``h]j)}(hjh]hunsigned long color}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubj)}(hhh]h)}(h%opaque tag value to use for this nodeh]h%opaque tag value to use for this node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h=``u64 range_start`` start of the allowed range for this node h](j)}(h``u64 range_start``h]j)}(hjh]hu64 range_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubj)}(hhh]h)}(h(start of the allowed range for this nodeh]h(start of the allowed range for this node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``u64 range_end`` end of the allowed range for this node h](j)}(h``u64 range_end``h]j)}(hjh]h u64 range_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubj)}(hhh]h)}(h&end of the allowed range for this nodeh]h&end of the allowed range for this node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hO``enum drm_mm_insert_mode mode`` fine-tune the allocation search and placement h](j)}(h ``enum drm_mm_insert_mode mode``h]j)}(hj6h]henum drm_mm_insert_mode mode}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj0ubj)}(hhh]h)}(h-fine-tune the allocation search and placementh]h-fine-tune the allocation search and placement}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjqh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubh)}(h/The preallocated **node** must be cleared to 0.h](hThe preallocated }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be cleared to 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubh)}(h20 on success, -ENOSPC if there's no suitable hole.h]h40 on success, -ENOSPC if there’s no suitable hole.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_remove_node (C function)c.drm_mm_remove_nodehNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(h2void drm_mm_remove_node (struct drm_mm_node *node)h]jR)}(h1void drm_mm_remove_node(struct drm_mm_node *node)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMmubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMmubj{)}(hdrm_mm_remove_nodeh]j)}(hdrm_mm_remove_nodeh]hdrm_mm_remove_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMmubj)}(h(struct drm_mm_node *node)h]j)}(hstruct drm_mm_node *nodeh](jX)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj(ubjj)}(h h]h }(hj9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj(ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjLmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_mm_remove_nodeasbuh1hhj(ubjj)}(h h]h }(hjjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj(ubjH)}(hjKh]h*}(hjxhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj(ubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMmubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMmhjhhubj)}(hhh]h)}(h(Remove a memory node from the allocator.h]h(Remove a memory node from the allocator.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMmhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj=hNhNubj)}(hX4**Parameters** ``struct drm_mm_node *node`` drm_mm_node to remove **Description** This just removes a node from its drm_mm allocator. The node does not need to be cleared again before it can be re-inserted into this or any other drm_mm allocator. It is a bug to call this function on a unallocated node.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMqhjubj)}(hhh]j)}(h3``struct drm_mm_node *node`` drm_mm_node to remove h](j)}(h``struct drm_mm_node *node``h]j)}(hjh]hstruct drm_mm_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMnhjubj)}(hhh]h)}(hdrm_mm_node to removeh]hdrm_mm_node to remove}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj+h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMphjubh)}(hThis just removes a node from its drm_mm allocator. The node does not need to be cleared again before it can be re-inserted into this or any other drm_mm allocator. It is a bug to call this function on a unallocated node.h]hThis just removes a node from its drm_mm allocator. The node does not need to be cleared again before it can be re-inserted into this or any other drm_mm allocator. It is a bug to call this function on a unallocated node.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_mm_scan_init_with_range (C function)c.drm_mm_scan_init_with_rangehNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hvoid drm_mm_scan_init_with_range (struct drm_mm_scan *scan, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color, u64 start, u64 end, enum drm_mm_insert_mode mode)h]jR)}(hvoid drm_mm_scan_init_with_range(struct drm_mm_scan *scan, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color, u64 start, u64 end, enum drm_mm_insert_mode mode)h](j)}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlhhhj~hMubj{)}(hdrm_mm_scan_init_with_rangeh]j)}(hdrm_mm_scan_init_with_rangeh]hdrm_mm_scan_init_with_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhj~hMubj)}(h(struct drm_mm_scan *scan, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color, u64 start, u64 end, enum drm_mm_insert_mode mode)h](j)}(hstruct drm_mm_scan *scanh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_mm_scanh]h drm_mm_scan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_mm_scan_init_with_rangeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hscanh]hscan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_mm *mmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj?modnameN classnameNj+j.)}j1]jc.drm_mm_scan_init_with_rangeasbuh1hhjubjj)}(h h]h }(hj[hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjihhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hmmh]hmm}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_mm_scan_init_with_rangeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 alignmenth](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_mm_scan_init_with_rangeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h alignmenth]h alignment}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long colorh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjj)}(h h]h }(hj- hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubj)}(hlongh]hlong}(hj; hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjj)}(h h]h }(hjI hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubj)}(hcolorh]hcolor}(hjW hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hjs hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetju modnameN classnameNj+j.)}j1]jc.drm_mm_scan_init_with_rangeasbuh1hhjl ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjl ubj)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 endh](h)}(hhh]j)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]jc.drm_mm_scan_init_with_rangeasbuh1hhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubj)}(hendh]hend}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum drm_mm_insert_mode modeh](jX)}(hj[h]henum}(hj!hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj !hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(hdrm_mm_insert_modeh]hdrm_mm_insert_mode}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj !modnameN classnameNj+j.)}j1]jc.drm_mm_scan_init_with_rangeasbuh1hhj ubjj)}(h h]h }(hj#ubj)}(hhh]h)}(h-fine-tune the allocation search and placementh]h-fine-tune the allocation search and placement}(hj]#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY#hMhjZ#ubah}(h]h ]h"]h$]h&]uh1jhj>#ubeh}(h]h ]h"]h$]h&]uh1jhjY#hMhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubh)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}#ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj!ubh)}(hSThis simply sets up the scanning routines with the parameters for the desired hole.h]hSThis simply sets up the scanning routines with the parameters for the desired hole.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj!ubh)}(hWarning: As long as the scan list is non-empty, no other operations than adding/removing nodes to/from the scan list are allowed.h]hWarning: As long as the scan list is non-empty, no other operations than adding/removing nodes to/from the scan list are allowed.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_mm_scan_add_block (C function)c.drm_mm_scan_add_blockhNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hObool drm_mm_scan_add_block (struct drm_mm_scan *scan, struct drm_mm_node *node)h]jR)}(hNbool drm_mm_scan_add_block(struct drm_mm_scan *scan, struct drm_mm_node *node)h](j)}(hj*h]hbool}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMubjj)}(h h]h }(hj#hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#hhhj#hMubj{)}(hdrm_mm_scan_add_blockh]j)}(hdrm_mm_scan_add_blockh]hdrm_mm_scan_add_block}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#hhhj#hMubj)}(h4(struct drm_mm_scan *scan, struct drm_mm_node *node)h](j)}(hstruct drm_mm_scan *scanh](jX)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj $ubjj)}(h h]h }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj $ubh)}(hhh]j)}(h drm_mm_scanh]h drm_mm_scan}(hj-$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*$ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj/$modnameN classnameNj+j.)}j1]j4)}j'j#sbc.drm_mm_scan_add_blockasbuh1hhj $ubjj)}(h h]h }(hjM$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj $ubjH)}(hjKh]h*}(hj[$hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj $ubj)}(hscanh]hscan}(hjh$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj $ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct drm_mm_node *nodeh](jX)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj}$ubjj)}(h h]h }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}$ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj$modnameN classnameNj+j.)}j1]jI$c.drm_mm_scan_add_blockasbuh1hhj}$ubjj)}(h h]h }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}$ubjH)}(hjKh]h*}(hj$hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj}$ubj)}(hnodeh]hnode}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubeh}(h]h ]h"]h$]h&]jjuh1jhj#hhhj#hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj#hhhj#hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jKhj#hMhj#hhubj)}(hhh]h)}(hadd a node to the scan listh]hadd a node to the scan list}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jFhhhj=hNhNubj)}(hX**Parameters** ``struct drm_mm_scan *scan`` the active drm_mm scanner ``struct drm_mm_node *node`` drm_mm_node to add **Description** Add a node to the scan list that might be freed to make space for the desired hole. **Return** True if a hole has been found, false otherwise.h](h)}(h**Parameters**h]j)}(hj$%h]h Parameters}(hj&%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"%ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj%ubj)}(hhh](j)}(h7``struct drm_mm_scan *scan`` the active drm_mm scanner h](j)}(h``struct drm_mm_scan *scan``h]j)}(hjC%h]hstruct drm_mm_scan *scan}(hjE%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA%ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj=%ubj)}(hhh]h)}(hthe active drm_mm scannerh]hthe active drm_mm scanner}(hj\%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX%hMhjY%ubah}(h]h ]h"]h$]h&]uh1jhj=%ubeh}(h]h ]h"]h$]h&]uh1jhjX%hMhj:%ubj)}(h0``struct drm_mm_node *node`` drm_mm_node to add h](j)}(h``struct drm_mm_node *node``h]j)}(hj|%h]hstruct drm_mm_node *node}(hj~%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz%ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjv%ubj)}(hhh]h)}(hdrm_mm_node to addh]hdrm_mm_node to add}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jhjv%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj:%ubeh}(h]h ]h"]h$]h&]uh1jhj%ubh)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj%ubh)}(hSAdd a node to the scan list that might be freed to make space for the desired hole.h]hSAdd a node to the scan list that might be freed to make space for the desired hole.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj%ubh)}(h **Return**h]j)}(hj%h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj%ubh)}(h/True if a hole has been found, false otherwise.h]h/True if a hole has been found, false otherwise.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_mm_scan_remove_block (C function)c.drm_mm_scan_remove_blockhNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hRbool drm_mm_scan_remove_block (struct drm_mm_scan *scan, struct drm_mm_node *node)h]jR)}(hQbool drm_mm_scan_remove_block(struct drm_mm_scan *scan, struct drm_mm_node *node)h](j)}(hj*h]hbool}(hj#&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM3ubjj)}(h h]h }(hj1&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&hhhj0&hM3ubj{)}(hdrm_mm_scan_remove_blockh]j)}(hdrm_mm_scan_remove_blockh]hdrm_mm_scan_remove_block}(hjC&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&hhhj0&hM3ubj)}(h4(struct drm_mm_scan *scan, struct drm_mm_node *node)h](j)}(hstruct drm_mm_scan *scanh](jX)}(hjh]hstruct}(hj_&hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[&ubjj)}(h h]h }(hjl&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[&ubh)}(hhh]j)}(h drm_mm_scanh]h drm_mm_scan}(hj}&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz&ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj&modnameN classnameNj+j.)}j1]j4)}j'jE&sbc.drm_mm_scan_remove_blockasbuh1hhj[&ubjj)}(h h]h }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[&ubjH)}(hjKh]h*}(hj&hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj[&ubj)}(hscanh]hscan}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjW&ubj)}(hstruct drm_mm_node *nodeh](jX)}(hjh]hstruct}(hj&hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj&ubjj)}(h h]h }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj&modnameN classnameNj+j.)}j1]j&c.drm_mm_scan_remove_blockasbuh1hhj&ubjj)}(h h]h }(hj 'hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&ubjH)}(hjKh]h*}(hj'hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj&ubj)}(hnodeh]hnode}(hj('hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjW&ubeh}(h]h ]h"]h$]h&]jjuh1jhj&hhhj0&hM3ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj&hhhj0&hM3ubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1jKhj0&hM3hj&hhubj)}(hhh]h)}(h remove a node from the scan listh]h remove a node from the scan list}(hjR'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM3hjO'hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj0&hM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjj'jjj'jjjuh1jFhhhj=hNhNubj)}(hX>**Parameters** ``struct drm_mm_scan *scan`` the active drm_mm scanner ``struct drm_mm_node *node`` drm_mm_node to remove **Description** Nodes **must** be removed in exactly the reverse order from the scan list as they have been added (e.g. using list_add() as they are added and then list_for_each() over that eviction list to remove), otherwise the internal state of the memory manager will be corrupted. When the scan list is empty, the selected memory nodes can be freed. An immediately following drm_mm_insert_node_in_range_generic() or one of the simpler versions of that function with !DRM_MM_SEARCH_BEST will then return the just freed block (because it's at the top of the free_stack list). **Return** True if this block should be evicted, false otherwise. Will always return false when no hole has been found.h](h)}(h**Parameters**h]j)}(hjt'h]h Parameters}(hjv'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr'ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM7hjn'ubj)}(hhh](j)}(h7``struct drm_mm_scan *scan`` the active drm_mm scanner h](j)}(h``struct drm_mm_scan *scan``h]j)}(hj'h]hstruct drm_mm_scan *scan}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM4hj'ubj)}(hhh]h)}(hthe active drm_mm scannerh]hthe active drm_mm scanner}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM4hj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM4hj'ubj)}(h3``struct drm_mm_node *node`` drm_mm_node to remove h](j)}(h``struct drm_mm_node *node``h]j)}(hj'h]hstruct drm_mm_node *node}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM5hj'ubj)}(hhh]h)}(hdrm_mm_node to removeh]hdrm_mm_node to remove}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM5hj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM5hj'ubeh}(h]h ]h"]h$]h&]uh1jhjn'ubh)}(h**Description**h]j)}(hj(h]h Description}(hj (hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM7hjn'ubh)}(hX Nodes **must** be removed in exactly the reverse order from the scan list as they have been added (e.g. using list_add() as they are added and then list_for_each() over that eviction list to remove), otherwise the internal state of the memory manager will be corrupted.h](hNodes }(hj(hhhNhNubj)}(h**must**h]hmust}(hj%(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh be removed in exactly the reverse order from the scan list as they have been added (e.g. using list_add() as they are added and then list_for_each() over that eviction list to remove), otherwise the internal state of the memory manager will be corrupted.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM6hjn'ubh)}(hX$When the scan list is empty, the selected memory nodes can be freed. An immediately following drm_mm_insert_node_in_range_generic() or one of the simpler versions of that function with !DRM_MM_SEARCH_BEST will then return the just freed block (because it's at the top of the free_stack list).h]hX&When the scan list is empty, the selected memory nodes can be freed. An immediately following drm_mm_insert_node_in_range_generic() or one of the simpler versions of that function with !DRM_MM_SEARCH_BEST will then return the just freed block (because it’s at the top of the free_stack list).}(hj>(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM;hjn'ubh)}(h **Return**h]j)}(hjO(h]hReturn}(hjQ(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM(ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM@hjn'ubh)}(hlTrue if this block should be evicted, false otherwise. Will always return false when no hole has been found.h]hlTrue if this block should be evicted, false otherwise. Will always return false when no hole has been found.}(hje(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMAhjn'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_mm_scan_color_evict (C function)c.drm_mm_scan_color_evicthNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hGstruct drm_mm_node * drm_mm_scan_color_evict (struct drm_mm_scan *scan)h]jR)}(hEstruct drm_mm_node *drm_mm_scan_color_evict(struct drm_mm_scan *scan)h](jX)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj(hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMdubjj)}(h h]h }(hj(hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj(hhhj(hMdubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj(modnameN classnameNj+j.)}j1]j4)}j'drm_mm_scan_color_evictsbc.drm_mm_scan_color_evictasbuh1hhj(hhhj(hMdubjj)}(h h]h }(hj(hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj(hhhj(hMdubjH)}(hjKh]h*}(hj(hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj(hhhj(hMdubj{)}(hdrm_mm_scan_color_evicth]j)}(hj(h]hdrm_mm_scan_color_evict}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhhj(hMdubj)}(h(struct drm_mm_scan *scan)h]j)}(hstruct drm_mm_scan *scanh](jX)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj )ubjj)}(h h]h }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj )ubh)}(hhh]j)}(h drm_mm_scanh]h drm_mm_scan}(hj,)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj))ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj.)modnameN classnameNj+j.)}j1]j(c.drm_mm_scan_color_evictasbuh1hhj )ubjj)}(h h]h }(hjJ)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj )ubjH)}(hjKh]h*}(hjX)hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj )ubj)}(hscanh]hscan}(hje)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj )ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubah}(h]h ]h"]h$]h&]jjuh1jhj(hhhj(hMdubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj(hhhj(hMdubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jKhj(hMdhj(hhubj)}(hhh]h)}(h.evict overlapping nodes on either side of holeh]h.evict overlapping nodes on either side of hole}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMdhj)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jFhhhj=hNhNubj)}(hXV**Parameters** ``struct drm_mm_scan *scan`` drm_mm scan with target hole **Description** After completing an eviction scan and removing the selected nodes, we may need to remove a few more nodes from either side of the target hole if mm.color_adjust is being used. **Return** A node to evict, or NULL if there are no overlapping nodes.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhhj)ubj)}(hhh]j)}(h:``struct drm_mm_scan *scan`` drm_mm scan with target hole h](j)}(h``struct drm_mm_scan *scan``h]j)}(hj)h]hstruct drm_mm_scan *scan}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMehj)ubj)}(hhh]h)}(hdrm_mm scan with target holeh]hdrm_mm scan with target hole}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMehj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMehj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]j)}(hj *h]h Description}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj *ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMghj)ubh)}(hAfter completing an eviction scan and removing the selected nodes, we may need to remove a few more nodes from either side of the target hole if mm.color_adjust is being used.h]hAfter completing an eviction scan and removing the selected nodes, we may need to remove a few more nodes from either side of the target hole if mm.color_adjust is being used.}(hj!*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMfhj)ubh)}(h **Return**h]j)}(hj2*h]hReturn}(hj4*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0*ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMjhj)ubh)}(h;A node to evict, or NULL if there are no overlapping nodes.h]h;A node to evict, or NULL if there are no overlapping nodes.}(hjH*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMkhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_init (C function) c.drm_mm_inithNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(h9void drm_mm_init (struct drm_mm *mm, u64 start, u64 size)h]jR)}(h8void drm_mm_init(struct drm_mm *mm, u64 start, u64 size)h](j)}(hvoidh]hvoid}(hjw*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs*hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMubjj)}(h h]h }(hj*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjs*hhhj*hMubj{)}(h drm_mm_inith]j)}(h drm_mm_inith]h drm_mm_init}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjs*hhhj*hMubj)}(h((struct drm_mm *mm, u64 start, u64 size)h](j)}(hstruct drm_mm *mmh](jX)}(hjh]hstruct}(hj*hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj*ubjj)}(h h]h }(hj*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj*modnameN classnameNj+j.)}j1]j4)}j'j*sb c.drm_mm_initasbuh1hhj*ubjj)}(h h]h }(hj*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*ubjH)}(hjKh]h*}(hj+hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj*ubj)}(hmmh]hmm}(hj +hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hj)+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&+ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj++modnameN classnameNj+j.)}j1]j* c.drm_mm_initasbuh1hhj"+ubjj)}(h h]h }(hjG+hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj"+ubj)}(hstarth]hstart}(hjU+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjq+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn+ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjs+modnameN classnameNj+j.)}j1]j* c.drm_mm_initasbuh1hhjj+ubjj)}(h h]h }(hj+hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjj+ubj)}(hsizeh]hsize}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubeh}(h]h ]h"]h$]h&]jjuh1jhjs*hhhj*hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjo*hhhj*hMubah}(h]jj*ah ](jjeh"]h$]h&]jj)jhuh1jKhj*hMhjl*hhubj)}(hhh]h)}(hinitialize a drm-mm allocatorh]hinitialize a drm-mm allocator}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj+hhubah}(h]h ]h"]h$]h&]uh1jhjl*hhhj*hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1jFhhhj=hNhNubj)}(hX **Parameters** ``struct drm_mm *mm`` the drm_mm structure to initialize ``u64 start`` start of the range managed by **mm** ``u64 size`` end of the range managed by **mm** **Description** Note that **mm** must be cleared to 0 before calling this function.h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj+ubj)}(hhh](j)}(h9``struct drm_mm *mm`` the drm_mm structure to initialize h](j)}(h``struct drm_mm *mm``h]j)}(hj,h]hstruct drm_mm *mm}(hj ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj,ubj)}(hhh]h)}(h"the drm_mm structure to initializeh]h"the drm_mm structure to initialize}(hj!,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj+ubj)}(h3``u64 start`` start of the range managed by **mm** h](j)}(h ``u64 start``h]j)}(hjA,h]h u64 start}(hjC,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?,ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj;,ubj)}(hhh]h)}(h$start of the range managed by **mm**h](hstart of the range managed by }(hjZ,hhhNhNubj)}(h**mm**h]hmm}(hjb,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ,ubeh}(h]h ]h"]h$]h&]uh1hhjV,hMhjW,ubah}(h]h ]h"]h$]h&]uh1jhj;,ubeh}(h]h ]h"]h$]h&]uh1jhjV,hMhj+ubj)}(h0``u64 size`` end of the range managed by **mm** h](j)}(h ``u64 size``h]j)}(hj,h]hu64 size}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj,ubj)}(hhh]h)}(h"end of the range managed by **mm**h](hend of the range managed by }(hj,hhhNhNubj)}(h**mm**h]hmm}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1hhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+ubh)}(h**Description**h]j)}(hj,h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj+ubh)}(hCNote that **mm** must be cleared to 0 before calling this function.h](h Note that }(hj,hhhNhNubj)}(h**mm**h]hmm}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh3 must be cleared to 0 before calling this function.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_takedown (C function)c.drm_mm_takedownhNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(h(void drm_mm_takedown (struct drm_mm *mm)h]jR)}(h'void drm_mm_takedown(struct drm_mm *mm)h](j)}(hvoidh]hvoid}(hj(-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$-hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMubjj)}(h h]h }(hj7-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj$-hhhj6-hMubj{)}(hdrm_mm_takedownh]j)}(hdrm_mm_takedownh]hdrm_mm_takedown}(hjI-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj$-hhhj6-hMubj)}(h(struct drm_mm *mm)h]j)}(hstruct drm_mm *mmh](jX)}(hjh]hstruct}(hje-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhja-ubjj)}(h h]h }(hjr-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihja-ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj-modnameN classnameNj+j.)}j1]j4)}j'jK-sbc.drm_mm_takedownasbuh1hhja-ubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihja-ubjH)}(hjKh]h*}(hj-hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhja-ubj)}(hmmh]hmm}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]-ubah}(h]h ]h"]h$]h&]jjuh1jhj$-hhhj6-hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj -hhhj6-hMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jKhj6-hMhj-hhubj)}(hhh]h)}(hclean up a drm_mm allocatorh]hclean up a drm_mm allocator}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj6-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1jFhhhj=hNhNubj)}(h**Parameters** ``struct drm_mm *mm`` drm_mm allocator to clean up **Description** Note that it is a bug to call this function on an allocator which is not clean.h](h)}(h**Parameters**h]j)}(hj .h]h Parameters}(hj .hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj.ubj)}(hhh]j)}(h3``struct drm_mm *mm`` drm_mm allocator to clean up h](j)}(h``struct drm_mm *mm``h]j)}(hj).h]hstruct drm_mm *mm}(hj+.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'.ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj#.ubj)}(hhh]h)}(hdrm_mm allocator to clean uph]hdrm_mm allocator to clean up}(hjB.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>.hMhj?.ubah}(h]h ]h"]h$]h&]uh1jhj#.ubeh}(h]h ]h"]h$]h&]uh1jhj>.hMhj .ubah}(h]h ]h"]h$]h&]uh1jhj.ubh)}(h**Description**h]j)}(hjd.h]h Description}(hjf.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb.ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj.ubh)}(hONote that it is a bug to call this function on an allocator which is not clean.h]hONote that it is a bug to call this function on an allocator which is not clean.}(hjz.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_mm_print (C function)c.drm_mm_printhNtauh1j5hj=hhhNhNubjG)}(hhh](jL)}(hBvoid drm_mm_print (const struct drm_mm *mm, struct drm_printer *p)h]jR)}(hAvoid drm_mm_print(const struct drm_mm *mm, struct drm_printer *p)h](j)}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMubjj)}(h h]h }(hj.hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj.hhhj.hMubj{)}(h drm_mm_printh]j)}(h drm_mm_printh]h drm_mm_print}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.hhhj.hMubj)}(h0(const struct drm_mm *mm, struct drm_printer *p)h](j)}(hconst struct drm_mm *mmh](jX)}(hj h]hconst}(hj.hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj.ubjj)}(h h]h }(hj.hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj.ubjX)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj.ubjj)}(h h]h }(hj/hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj.ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj!/modnameN classnameNj+j.)}j1]j4)}j'j.sbc.drm_mm_printasbuh1hhj.ubjj)}(h h]h }(hj?/hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj.ubjH)}(hjKh]h*}(hjM/hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj.ubj)}(hmmh]hmm}(hjZ/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hstruct drm_printer *ph](jX)}(hjh]hstruct}(hjs/hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjo/ubjj)}(h h]h }(hj/hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjo/ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj/modnameN classnameNj+j.)}j1]j;/c.drm_mm_printasbuh1hhjo/ubjj)}(h h]h }(hj/hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjo/ubjH)}(hjKh]h*}(hj/hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjo/ubj)}(hjTh]hp}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubeh}(h]h ]h"]h$]h&]jjuh1jhj.hhhj.hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj.hhhj.hMubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1jKhj.hMhj.hhubj)}(hhh]h)}(hprint allocator stateh]hprint allocator state}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj 0jj 0jjjuh1jFhhhj=hNhNubj)}(hw**Parameters** ``const struct drm_mm *mm`` drm_mm allocator to print ``struct drm_printer *p`` DRM printer to useh](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj0ubj)}(hhh](j)}(h6``const struct drm_mm *mm`` drm_mm allocator to print h](j)}(h``const struct drm_mm *mm``h]j)}(hj40h]hconst struct drm_mm *mm}(hj60hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj20ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj.0ubj)}(hhh]h)}(hdrm_mm allocator to printh]hdrm_mm allocator to print}(hjM0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI0hMhjJ0ubah}(h]h ]h"]h$]h&]uh1jhj.0ubeh}(h]h ]h"]h$]h&]uh1jhjI0hMhj+0ubj)}(h,``struct drm_printer *p`` DRM printer to useh](j)}(h``struct drm_printer *p``h]j)}(hjm0h]hstruct drm_printer *p}(hjo0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk0ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjg0ubj)}(hhh]h)}(hDRM printer to useh]hDRM printer to use}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj0ubah}(h]h ]h"]h$]h&]uh1jhjg0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj+0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=hhhNhNubj)}(h.. _drm_gpuvm:h]h}(h]h ]h"]h$]h&]j drm-gpuvmuh1jhMhj=hhhhubeh}(h]*drm-mm-range-allocator-function-referencesah ]h"]*drm mm range allocator function referencesah$]h&]uh1hhjhhhhhMubeh}(h]drm-mm-range-allocatorah ]h"]drm mm range allocatorah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h DRM GPUVMh]h DRM GPUVM}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hhhhhMubh)}(hhh](h)}(hOverviewh]hOverview}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hhhhhMubh)}(hXThe DRM GPU VA Manager, represented by struct drm_gpuvm keeps track of a GPU's virtual address (VA) space and manages the corresponding virtual mappings represented by :c:type:`drm_gpuva` objects. It also keeps track of the mapping's backing :c:type:`drm_gem_object` buffers.h](hThe DRM GPU VA Manager, represented by struct drm_gpuvm keeps track of a GPU’s virtual address (VA) space and manages the corresponding virtual mappings represented by }(hj0hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj0h]h drm_gpuva}(hj0hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:494: ./drivers/gpu/drm/drm_gpuvm.chK$hj0ubh9 objects. It also keeps track of the mapping’s backing }(hj0hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj1h]hdrm_gem_object}(hj1hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj1hK$hj0ubh buffers.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1hK$hj0hhubh)}(h:c:type:`drm_gem_object` buffers maintain a list of :c:type:`drm_gpuva` objects representing all existing GPU VA mappings using this :c:type:`drm_gem_object` as backing buffer.h](h)}(h:c:type:`drm_gem_object`h]j)}(hjF1h]hdrm_gem_object}(hjH1hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjD1ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:494: ./drivers/gpu/drm/drm_gpuvm.chK)hj@1ubh buffers maintain a list of }(hj@1hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjj1h]h drm_gpuva}(hjl1hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjh1ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjc1hK)hj@1ubh> objects representing all existing GPU VA mappings using this }(hj@1hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj1h]hdrm_gem_object}(hj1hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjc1hK)hj@1ubh as backing buffer.}(hj@1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjc1hK)hj0hhubh)}(hGPU VAs can be flagged as sparse, such that drivers may use GPU VAs to also keep track of sparse PTEs in order to support Vulkan 'Sparse Resources'.h]hGPU VAs can be flagged as sparse, such that drivers may use GPU VAs to also keep track of sparse PTEs in order to support Vulkan ‘Sparse Resources’.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:494: ./drivers/gpu/drm/drm_gpuvm.chK,hj0hhubh)}(h}The GPU VA manager internally uses a rb-tree to manage the :c:type:`drm_gpuva` mappings within a GPU's virtual address space.h](h;The GPU VA manager internally uses a rb-tree to manage the }(hj1hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj1h]h drm_gpuva}(hj1hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:494: ./drivers/gpu/drm/drm_gpuvm.chK/hj1ubh1 mappings within a GPU’s virtual address space.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1hK/hj0hhubh)}(hThe :c:type:`drm_gpuvm` structure contains a special :c:type:`drm_gpuva` representing the portion of VA space reserved by the kernel. This node is initialized together with the GPU VA manager instance and removed when the GPU VA manager is destroyed.h](hThe }(hj1hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj1h]h drm_gpuvm}(hj2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:494: ./drivers/gpu/drm/drm_gpuvm.chK2hj1ubh structure contains a special }(hj1hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj#2h]h drm_gpuva}(hj%2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj!2ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj2hK2hj1ubh representing the portion of VA space reserved by the kernel. This node is initialized together with the GPU VA manager instance and removed when the GPU VA manager is destroyed.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hK2hj0hhubh)}(hIn a typical application drivers would embed struct drm_gpuvm and struct drm_gpuva within their own driver specific structures, there won't be any memory allocations of its own nor memory allocations of :c:type:`drm_gpuva` entries.h](hIn a typical application drivers would embed struct drm_gpuvm and struct drm_gpuva within their own driver specific structures, there won’t be any memory allocations of its own nor memory allocations of }(hjJ2hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjT2h]h drm_gpuva}(hjV2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjR2ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:494: ./drivers/gpu/drm/drm_gpuvm.chK7hjJ2ubh entries.}(hjJ2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjq2hK7hj0hhubh)}(hX+The data structures needed to store :c:type:`drm_gpuvas` within the :c:type:`drm_gpuvm` are contained within struct drm_gpuva already. Hence, for inserting :c:type:`drm_gpuva` entries from within dma-fence signalling critical sections it is enough to pre-allocate the :c:type:`drm_gpuva` structures.h](h$The data structures needed to store }(hj|2hhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hj2h]h drm_gpuvas}(hj2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:494: ./drivers/gpu/drm/drm_gpuvm.chK4hKJhj4ubh maintains a list of }(hj4hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh4h]h drm_gpuvm_bo}(hjj4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjf4ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhj>4hKJhj4ubh structures, and each }(hj4hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj4h]h drm_gpuvm_bo}(hj4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhj>4hKJhj4ubh contains a list of }(hj4hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj4h]h drm_gpuva}(hj4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj>4hKJhj4ubh structures.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj>4hKJhj0hhubh)}(hXA :c:type:`drm_gpuvm_bo` is an abstraction that represents a combination of a :c:type:`drm_gpuvm` and a :c:type:`drm_gem_object`. Every such combination should be unique. This is ensured by the API through drm_gpuvm_bo_obtain() and drm_gpuvm_bo_obtain_prealloc() which first look into the corresponding :c:type:`drm_gem_object` list of :c:type:`drm_gpuvm_bos` for an existing instance of this particular combination. If not present, a new instance is created and linked to the :c:type:`drm_gem_object`.h](hA }(hj4hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj4h]h drm_gpuvm_bo}(hj4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:494: ./drivers/gpu/drm/drm_gpuvm.chKNhj4ubh6 is an abstraction that represents a combination of a }(hj4hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj5h]h drm_gpuvm}(hj5hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj4hKNhj4ubh and a }(hj4hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj&5h]hdrm_gem_object}(hj(5hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj$5ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj4hKNhj4ubh. Every such combination should be unique. This is ensured by the API through drm_gpuvm_bo_obtain() and drm_gpuvm_bo_obtain_prealloc() which first look into the corresponding }(hj4hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjI5h]hdrm_gem_object}(hjK5hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjG5ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj4hKNhj4ubh list of }(hj4hhhNhNubh)}(h:c:type:`drm_gpuvm_bos`h]j)}(hjl5h]h drm_gpuvm_bos}(hjn5hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjj5ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bosuh1hhj4hKNhj4ubhv for an existing instance of this particular combination. If not present, a new instance is created and linked to the }(hj4hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj5h]hdrm_gem_object}(hj5hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj4hKNhj4ubh.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4hKNhj0hhubh)}(hXS:c:type:`drm_gpuvm_bo` structures, since unique for a given :c:type:`drm_gpuvm`, are also used as entry for the :c:type:`drm_gpuvm`'s lists of external and evicted objects. Those lists are maintained in order to accelerate locking of dma-resv locks and validation of evicted objects bound in a :c:type:`drm_gpuvm`. For instance, all :c:type:`drm_gem_object`'s :c:type:`dma_resv` of a given :c:type:`drm_gpuvm` can be locked by calling drm_gpuvm_exec_lock(). Once locked drivers can call drm_gpuvm_validate() in order to validate all evicted :c:type:`drm_gem_objects`. It is also possible to lock additional :c:type:`drm_gem_objects` by providing the corresponding parameters to drm_gpuvm_exec_lock() as well as open code the :c:type:`drm_exec` loop while making use of helper functions such as drm_gpuvm_prepare_range() or drm_gpuvm_prepare_objects().h](h)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj5h]h drm_gpuvm_bo}(hj5hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:494: ./drivers/gpu/drm/drm_gpuvm.chKVhj5ubh& structures, since unique for a given }(hj5hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj5h]h drm_gpuvm}(hj5hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj5hKVhj5ubh!, are also used as entry for the }(hj5hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj6h]h drm_gpuvm}(hj6hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj5hKVhj5ubh’s lists of external and evicted objects. Those lists are maintained in order to accelerate locking of dma-resv locks and validation of evicted objects bound in a }(hj5hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj&6h]h drm_gpuvm}(hj(6hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj$6ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj5hKVhj5ubh. For instance, all }(hj5hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjI6h]hdrm_gem_object}(hjK6hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjG6ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj5hKVhj5ubh’s }(hj5hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjl6h]hdma_resv}(hjn6hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjj6ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhj5hKVhj5ubh of a given }(hj5hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj6h]h drm_gpuvm}(hj6hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj5hKVhj5ubh can be locked by calling drm_gpuvm_exec_lock(). Once locked drivers can call drm_gpuvm_validate() in order to validate all evicted }(hj5hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hj6h]hdrm_gem_objects}(hj6hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhj5hKVhj5ubh). It is also possible to lock additional }(hj5hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hj6h]hdrm_gem_objects}(hj6hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhj5hKVhj5ubh] by providing the corresponding parameters to drm_gpuvm_exec_lock() as well as open code the }(hj5hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hj6h]hdrm_exec}(hj6hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhj5hKVhj5ubhl loop while making use of helper functions such as drm_gpuvm_prepare_range() or drm_gpuvm_prepare_objects().}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5hKVhj0hhubh)}(hEvery bound :c:type:`drm_gem_object` is treated as external object when its :c:type:`dma_resv` structure is different than the :c:type:`drm_gpuvm`'s common :c:type:`dma_resv` structure.h](h Every bound }(hj7hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj)7h]hdrm_gem_object}(hj+7hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj'7ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:494: ./drivers/gpu/drm/drm_gpuvm.chKbhj7ubh( is treated as external object when its }(hj7hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjM7h]hdma_resv}(hjO7hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjK7ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhjF7hKbhj7ubh! structure is different than the }(hj7hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjp7h]h drm_gpuvm}(hjr7hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjn7ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjF7hKbhj7ubh ’s common }(hj7hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj7h]hdma_resv}(hj7hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhjF7hKbhj7ubh structure.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjF7hKbhj0hhubeh}(h]id3ah ]h"]h$]jah&]uh1hhj0hhhhhMjKubh)}(hhh](h)}(hSplit and Mergeh]hSplit and Merge}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hhhhhMubh)}(hBesides its capability to manage and represent a GPU VA space, the GPU VA manager also provides functions to let the :c:type:`drm_gpuvm` calculate a sequence of operations to satisfy a given map or unmap request.h](huBesides its capability to manage and represent a GPU VA space, the GPU VA manager also provides functions to let the }(hj7hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj7h]h drm_gpuvm}(hj7hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKihj7ubhL calculate a sequence of operations to satisfy a given map or unmap request.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj7hKihj7hhubh)}(hX8Therefore the DRM GPU VA manager provides an algorithm implementing splitting and merging of existing GPU VA mappings with the ones that are requested to be mapped or unmapped. This feature is required by the Vulkan API to implement Vulkan 'Sparse Memory Bindings' - drivers UAPIs often refer to this as VM BIND.h]hX<Therefore the DRM GPU VA manager provides an algorithm implementing splitting and merging of existing GPU VA mappings with the ones that are requested to be mapped or unmapped. This feature is required by the Vulkan API to implement Vulkan ‘Sparse Memory Bindings’ - drivers UAPIs often refer to this as VM BIND.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKmhj7hhubh)}(hX6Drivers can call drm_gpuvm_sm_map() to receive a sequence of callbacks containing map, unmap and remap operations for a given newly requested mapping. The sequence of callbacks represents the set of operations to execute in order to integrate the new mapping cleanly into the current state of the GPU VA space.h]hX6Drivers can call drm_gpuvm_sm_map() to receive a sequence of callbacks containing map, unmap and remap operations for a given newly requested mapping. The sequence of callbacks represents the set of operations to execute in order to integrate the new mapping cleanly into the current state of the GPU VA space.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKshj7hhubh)}(hXDepending on how the new GPU VA mapping intersects with the existing mappings of the GPU VA space the :c:type:`drm_gpuvm_ops` callbacks contain an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The caller might receive no callback at all if no operation is required, e.g. if the requested mapping already exists in the exact same way.h](hfDepending on how the new GPU VA mapping intersects with the existing mappings of the GPU VA space the }(hj"8hhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hj,8h]h drm_gpuvm_ops}(hj.8hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj*8ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKyhj"8ubhX callbacks contain an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The caller might receive no callback at all if no operation is required, e.g. if the requested mapping already exists in the exact same way.}(hj"8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjI8hKyhj7hhubh)}(hWThe single map operation represents the original map operation requested by the caller.h]hWThe single map operation represents the original map operation requested by the caller.}(hjT8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj7hhubh)}(hX:c:type:`drm_gpuva_op_unmap` contains a 'keep' field, which indicates whether the :c:type:`drm_gpuva` to unmap is physically contiguous with the original mapping request. Optionally, if 'keep' is set, drivers may keep the actual page table entries for this :c:type:`drm_gpuva`, adding the missing page table entries only and update the :c:type:`drm_gpuvm`'s view of things accordingly.h](h)}(h:c:type:`drm_gpuva_op_unmap`h]j)}(hji8h]hdrm_gpuva_op_unmap}(hjk8hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjg8ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_op_unmapuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhjc8ubh: contains a ‘keep’ field, which indicates whether the }(hjc8hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj8h]h drm_gpuva}(hj8hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj8hKhjc8ubh to unmap is physically contiguous with the original mapping request. Optionally, if ‘keep’ is set, drivers may keep the actual page table entries for this }(hjc8hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj8h]h drm_gpuva}(hj8hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj8hKhjc8ubh<, adding the missing page table entries only and update the }(hjc8hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj8h]h drm_gpuvm}(hj8hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj8hKhjc8ubh ’s view of things accordingly.}(hjc8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj8hKhj7hhubh)}(hXDrivers may do the same optimization, namely delta page table updates, also for remap operations. This is possible since :c:type:`drm_gpuva_op_remap` consists of one unmap operation and one or two map operations, such that drivers can derive the page table update delta accordingly.h](hyDrivers may do the same optimization, namely delta page table updates, also for remap operations. This is possible since }(hj8hhhNhNubh)}(h:c:type:`drm_gpuva_op_remap`h]j)}(hj9h]hdrm_gpuva_op_remap}(hj9hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_op_remapuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj8ubh consists of one unmap operation and one or two map operations, such that drivers can derive the page table update delta accordingly.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!9hKhj7hhubh)}(hNote that there can't be more than two existing mappings to split up, one at the beginning and one at the end of the new mapping, hence there is a maximum of two remap operations.h]hNote that there can’t be more than two existing mappings to split up, one at the beginning and one at the end of the new mapping, hence there is a maximum of two remap operations.}(hj,9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj7hhubh)}(hXAnalogous to drm_gpuvm_sm_map() drm_gpuvm_sm_unmap() uses :c:type:`drm_gpuvm_ops` to call back into the driver in order to unmap a range of GPU VA space. The logic behind this function is way simpler though: For all existing mappings enclosed by the given range unmap operations are created. For mappings which are only partially located within the given range, remap operations are created such that those mappings are split up and re-mapped partially.h](h:Analogous to drm_gpuvm_sm_map() drm_gpuvm_sm_unmap() uses }(hj;9hhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hjE9h]h drm_gpuvm_ops}(hjG9hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjC9ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj;9ubhXt to call back into the driver in order to unmap a range of GPU VA space. The logic behind this function is way simpler though: For all existing mappings enclosed by the given range unmap operations are created. For mappings which are only partially located within the given range, remap operations are created such that those mappings are split up and re-mapped partially.}(hj;9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjb9hKhj7hhubh)}(hXAs an alternative to drm_gpuvm_sm_map() and drm_gpuvm_sm_unmap(), drm_gpuvm_sm_map_ops_create() and drm_gpuvm_sm_unmap_ops_create() can be used to directly obtain an instance of struct drm_gpuva_ops containing a list of :c:type:`drm_gpuva_op`, which can be iterated with drm_gpuva_for_each_op(). This list contains the :c:type:`drm_gpuva_ops` analogous to the callbacks one would receive when calling drm_gpuvm_sm_map() or drm_gpuvm_sm_unmap(). While this way requires more memory (to allocate the :c:type:`drm_gpuva_ops`), it provides drivers a way to iterate the :c:type:`drm_gpuva_op` multiple times, e.g. once in a context where memory allocations are possible (e.g. to allocate GPU page tables) and once in the dma-fence signalling critical path.h](hAs an alternative to drm_gpuvm_sm_map() and drm_gpuvm_sm_unmap(), drm_gpuvm_sm_map_ops_create() and drm_gpuvm_sm_unmap_ops_create() can be used to directly obtain an instance of struct drm_gpuva_ops containing a list of }(hjm9hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjw9h]h drm_gpuva_op}(hjy9hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhju9ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhjm9ubhM, which can be iterated with drm_gpuva_for_each_op(). This list contains the }(hjm9hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj9h]h drm_gpuva_ops}(hj9hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhj9hKhjm9ubh analogous to the callbacks one would receive when calling drm_gpuvm_sm_map() or drm_gpuvm_sm_unmap(). While this way requires more memory (to allocate the }(hjm9hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj9h]h drm_gpuva_ops}(hj9hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhj9hKhjm9ubh,), it provides drivers a way to iterate the }(hjm9hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hj9h]h drm_gpuva_op}(hj9hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhj9hKhjm9ubh multiple times, e.g. once in a context where memory allocations are possible (e.g. to allocate GPU page tables) and once in the dma-fence signalling critical path.}(hjm9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hKhj7hhubh)}(hXTo update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert() and drm_gpuva_remove() may be used. These functions can safely be used from :c:type:`drm_gpuvm_ops` callbacks originating from drm_gpuvm_sm_map() or drm_gpuvm_sm_unmap(). However, it might be more convenient to use the provided helper functions drm_gpuva_map(), drm_gpuva_remap() and drm_gpuva_unmap() instead.h](hTo update the }(hj:hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj:h]h drm_gpuvm}(hj:hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj:ubh}’s view of the GPU VA space drm_gpuva_insert() and drm_gpuva_remove() may be used. These functions can safely be used from }(hj:hhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hj6:h]h drm_gpuvm_ops}(hj8:hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj4:ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_opsuh1hhj/:hKhj:ubh callbacks originating from drm_gpuvm_sm_map() or drm_gpuvm_sm_unmap(). However, it might be more convenient to use the provided helper functions drm_gpuva_map(), drm_gpuva_remap() and drm_gpuva_unmap() instead.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/:hKhj7hhubh)}(hThe following diagram depicts the basic relationships of existing GPU VA mappings, a newly requested mapping and the resulting mappings as implemented by drm_gpuvm_sm_map() - it doesn't cover any arbitrary combinations of these.h]hThe following diagram depicts the basic relationships of existing GPU VA mappings, a newly requested mapping and the resulting mappings as implemented by drm_gpuvm_sm_map() - it doesn’t cover any arbitrary combinations of these.}(hj]:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj7hhubhenumerated_list)}(hhh](jz)}(hX Requested mapping is identical. Replace it, but indicate the backing PTEs could be kept. :: 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=n) 0 a 1 new: |-----------| (bo_offset=n) h](h)}(hXRequested mapping is identical. Replace it, but indicate the backing PTEs could be kept.h]hXRequested mapping is identical. Replace it, but indicate the backing PTEs could be kept.}(hju:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhjq:ubjh)}(h 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=n) 0 a 1 new: |-----------| (bo_offset=n)h]h 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=n) 0 a 1 new: |-----------| (bo_offset=n)}hj:sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhjq:ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hXRequested mapping is identical, except for the BO offset, hence replace the mapping. :: 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=m) 0 a 1 new: |-----------| (bo_offset=m) h](h)}(hTRequested mapping is identical, except for the BO offset, hence replace the mapping.h]hTRequested mapping is identical, except for the BO offset, hence replace the mapping.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj:ubjh)}(h 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=m) 0 a 1 new: |-----------| (bo_offset=m)h]h 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=m) 0 a 1 new: |-----------| (bo_offset=m)}hj:sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj:ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hXRequested mapping is identical, except for the backing BO, hence replace the mapping. :: 0 a 1 old: |-----------| (bo_offset=n) 0 b 1 req: |-----------| (bo_offset=n) 0 b 1 new: |-----------| (bo_offset=n) h](h)}(hURequested mapping is identical, except for the backing BO, hence replace the mapping.h]hURequested mapping is identical, except for the backing BO, hence replace the mapping.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj:ubjh)}(h 0 a 1 old: |-----------| (bo_offset=n) 0 b 1 req: |-----------| (bo_offset=n) 0 b 1 new: |-----------| (bo_offset=n)h]h 0 a 1 old: |-----------| (bo_offset=n) 0 b 1 req: |-----------| (bo_offset=n) 0 b 1 new: |-----------| (bo_offset=n)}hj:sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj:ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hXExistent mapping is a left aligned subset of the requested one, hence replace the existing one. :: 0 a 1 old: |-----| (bo_offset=n) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n) .. note:: We expect to see the same result for a request with a different BO and/or non-contiguous BO offset. h](h)}(h_Existent mapping is a left aligned subset of the requested one, hence replace the existing one.h]h_Existent mapping is a left aligned subset of the requested one, hence replace the existing one.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj:ubjh)}(h 0 a 1 old: |-----| (bo_offset=n) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n)h]h 0 a 1 old: |-----| (bo_offset=n) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n)}hj:sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj:ubhnote)}(hcWe expect to see the same result for a request with a different BO and/or non-contiguous BO offset.h]h)}(hcWe expect to see the same result for a request with a different BO and/or non-contiguous BO offset.h]hcWe expect to see the same result for a request with a different BO and/or non-contiguous BO offset.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj ;ubah}(h]h ]h"]h$]h&]uh1j ;hj:ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hXRequested mapping's range is a left aligned subset of the existing one, but backed by a different BO. Hence, map the requested mapping and split the existing one adjusting its BO offset. :: 0 a 2 old: |-----------| (bo_offset=n) 0 b 1 req: |-----| (bo_offset=n) 0 b 1 a' 2 new: |-----|-----| (b.bo_offset=n, a.bo_offset=n+1) .. note:: We expect to see the same result for a request with a different BO and/or non-contiguous BO offset. h](h)}(hRequested mapping's range is a left aligned subset of the existing one, but backed by a different BO. Hence, map the requested mapping and split the existing one adjusting its BO offset.h]hRequested mapping’s range is a left aligned subset of the existing one, but backed by a different BO. Hence, map the requested mapping and split the existing one adjusting its BO offset.}(hj0;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj,;ubjh)}(h 0 a 2 old: |-----------| (bo_offset=n) 0 b 1 req: |-----| (bo_offset=n) 0 b 1 a' 2 new: |-----|-----| (b.bo_offset=n, a.bo_offset=n+1)h]h 0 a 2 old: |-----------| (bo_offset=n) 0 b 1 req: |-----| (bo_offset=n) 0 b 1 a' 2 new: |-----|-----| (b.bo_offset=n, a.bo_offset=n+1)}hj?;sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhj,;ubj ;)}(hcWe expect to see the same result for a request with a different BO and/or non-contiguous BO offset.h]h)}(hcWe expect to see the same result for a request with a different BO and/or non-contiguous BO offset.h]hcWe expect to see the same result for a request with a different BO and/or non-contiguous BO offset.}(hjR;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chKhjN;ubah}(h]h ]h"]h$]h&]uh1j ;hj,;ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hX6Existent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept. :: 0 a 2 old: |-----------| (bo_offset=n) 0 a 1 req: |-----| (bo_offset=n) 0 a 1 a' 2 new: |-----|-----| (a.bo_offset=n, a'.bo_offset=n+1) h](h)}(hwExistent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept.h]hwExistent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept.}(hjq;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMhjm;ubjh)}(h 0 a 2 old: |-----------| (bo_offset=n) 0 a 1 req: |-----| (bo_offset=n) 0 a 1 a' 2 new: |-----|-----| (a.bo_offset=n, a'.bo_offset=n+1)h]h 0 a 2 old: |-----------| (bo_offset=n) 0 a 1 req: |-----| (bo_offset=n) 0 a 1 a' 2 new: |-----|-----| (a.bo_offset=n, a'.bo_offset=n+1)}hj;sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMhjm;ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hXRequested mapping's range is a right aligned subset of the existing one, but backed by a different BO. Hence, map the requested mapping and split the existing one, without adjusting the BO offset. :: 0 a 2 old: |-----------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 new: |-----|-----| (a.bo_offset=n,b.bo_offset=m) h](h)}(hRequested mapping's range is a right aligned subset of the existing one, but backed by a different BO. Hence, map the requested mapping and split the existing one, without adjusting the BO offset.h]hRequested mapping’s range is a right aligned subset of the existing one, but backed by a different BO. Hence, map the requested mapping and split the existing one, without adjusting the BO offset.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMhj;ubjh)}(h 0 a 2 old: |-----------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 new: |-----|-----| (a.bo_offset=n,b.bo_offset=m)h]h 0 a 2 old: |-----------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 new: |-----|-----| (a.bo_offset=n,b.bo_offset=m)}hj;sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMhj;ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hX?Existent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept. :: 0 a 2 old: |-----------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 new: |-----|-----| (a'.bo_offset=n, a.bo_offset=n+1) h](h)}(hwExistent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept.h]hwExistent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chM!hj;ubjh)}(h 0 a 2 old: |-----------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 new: |-----|-----| (a'.bo_offset=n, a.bo_offset=n+1)h]h 0 a 2 old: |-----------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 new: |-----|-----| (a'.bo_offset=n, a.bo_offset=n+1)}hj;sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chM&hj;ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hXExistent mapping is overlapped at the end by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existing one, without adjusting the BO offset. :: 0 a 2 old: |-----------| (bo_offset=n) 1 b 3 req: |-----------| (bo_offset=m) 0 a 1 b 3 new: |-----|-----------| (a.bo_offset=n,b.bo_offset=m) h](h)}(hExistent mapping is overlapped at the end by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existing one, without adjusting the BO offset.h]hExistent mapping is overlapped at the end by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existing one, without adjusting the BO offset.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chM0hj;ubjh)}(h 0 a 2 old: |-----------| (bo_offset=n) 1 b 3 req: |-----------| (bo_offset=m) 0 a 1 b 3 new: |-----|-----------| (a.bo_offset=n,b.bo_offset=m)h]h 0 a 2 old: |-----------| (bo_offset=n) 1 b 3 req: |-----------| (bo_offset=m) 0 a 1 b 3 new: |-----|-----------| (a.bo_offset=n,b.bo_offset=m)}hj;sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chM6hj;ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hXExistent mapping is overlapped by the requested mapping, both having the same backing BO with a contiguous offset. Indicate the backing PTEs of the old mapping could be kept. :: 0 a 2 old: |-----------| (bo_offset=n) 1 a 3 req: |-----------| (bo_offset=n+1) 0 a' 1 a 3 new: |-----|-----------| (a'.bo_offset=n, a.bo_offset=n+1) h](h)}(hExistent mapping is overlapped by the requested mapping, both having the same backing BO with a contiguous offset. Indicate the backing PTEs of the old mapping could be kept.h]hExistent mapping is overlapped by the requested mapping, both having the same backing BO with a contiguous offset. Indicate the backing PTEs of the old mapping could be kept.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chM@hj <ubjh)}(h 0 a 2 old: |-----------| (bo_offset=n) 1 a 3 req: |-----------| (bo_offset=n+1) 0 a' 1 a 3 new: |-----|-----------| (a'.bo_offset=n, a.bo_offset=n+1)h]h 0 a 2 old: |-----------| (bo_offset=n) 1 a 3 req: |-----------| (bo_offset=n+1) 0 a' 1 a 3 new: |-----|-----------| (a'.bo_offset=n, a.bo_offset=n+1)}hj <sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMFhj <ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hXRequested mapping's range is a centered subset of the existing one having a different backing BO. Hence, map the requested mapping and split up the existing one in two mappings, adjusting the BO offset of the right one accordingly. :: 0 a 3 old: |-----------------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 a' 3 new: |-----|-----|-----| (a.bo_offset=n,b.bo_offset=m,a'.bo_offset=n+2) h](h)}(hRequested mapping's range is a centered subset of the existing one having a different backing BO. Hence, map the requested mapping and split up the existing one in two mappings, adjusting the BO offset of the right one accordingly.h]hRequested mapping’s range is a centered subset of the existing one having a different backing BO. Hence, map the requested mapping and split up the existing one in two mappings, adjusting the BO offset of the right one accordingly.}(hj9<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMPhj5<ubjh)}(h 0 a 3 old: |-----------------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 a' 3 new: |-----|-----|-----| (a.bo_offset=n,b.bo_offset=m,a'.bo_offset=n+2)h]h 0 a 3 old: |-----------------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 a' 3 new: |-----|-----|-----| (a.bo_offset=n,b.bo_offset=m,a'.bo_offset=n+2)}hjH<sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMWhj5<ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hXtRequested mapping is a contiguous subset of the existing one. Split it up, but indicate that the backing PTEs could be kept. :: 0 a 3 old: |-----------------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 a'' 3 old: |-----|-----|-----| (a'.bo_offset=n, a.bo_offset=n+1, a''.bo_offset=n+2) h](h)}(h|Requested mapping is a contiguous subset of the existing one. Split it up, but indicate that the backing PTEs could be kept.h]h|Requested mapping is a contiguous subset of the existing one. Split it up, but indicate that the backing PTEs could be kept.}(hja<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMahj]<ubjh)}(h 0 a 3 old: |-----------------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 a'' 3 old: |-----|-----|-----| (a'.bo_offset=n, a.bo_offset=n+1, a''.bo_offset=n+2)h]h 0 a 3 old: |-----------------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 a'' 3 old: |-----|-----|-----| (a'.bo_offset=n, a.bo_offset=n+1, a''.bo_offset=n+2)}hjp<sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMfhj]<ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hXExistent mapping is a right aligned subset of the requested one, hence replace the existing one. :: 1 a 2 old: |-----| (bo_offset=n+1) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n) .. note:: We expect to see the same result for a request with a different bo and/or non-contiguous bo_offset. h](h)}(h`Existent mapping is a right aligned subset of the requested one, hence replace the existing one.h]h`Existent mapping is a right aligned subset of the requested one, hence replace the existing one.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMphj<ubjh)}(h 1 a 2 old: |-----| (bo_offset=n+1) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n)h]h 1 a 2 old: |-----| (bo_offset=n+1) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n)}hj<sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMuhj<ubj ;)}(hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.h]h)}(hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.h]hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMhj<ubah}(h]h ]h"]h$]h&]uh1j ;hj<ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hXExistent mapping is a centered subset of the requested one, hence replace the existing one. :: 1 a 2 old: |-----| (bo_offset=n+1) 0 a 3 req: |----------------| (bo_offset=n) 0 a 3 new: |----------------| (bo_offset=n) .. note:: We expect to see the same result for a request with a different bo and/or non-contiguous bo_offset. h](h)}(h[Existent mapping is a centered subset of the requested one, hence replace the existing one.h]h[Existent mapping is a centered subset of the requested one, hence replace the existing one.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMhj<ubjh)}(h 1 a 2 old: |-----| (bo_offset=n+1) 0 a 3 req: |----------------| (bo_offset=n) 0 a 3 new: |----------------| (bo_offset=n)h]h 1 a 2 old: |-----| (bo_offset=n+1) 0 a 3 req: |----------------| (bo_offset=n) 0 a 3 new: |----------------| (bo_offset=n)}hj<sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMhj<ubj ;)}(hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.h]h)}(hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.h]hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMhj<ubah}(h]h ]h"]h$]h&]uh1j ;hj<ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubjz)}(hXExistent mappings is overlapped at the beginning by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existing one, adjusting its BO offset accordingly. :: 1 a 3 old: |-----------| (bo_offset=n) 0 b 2 req: |-----------| (bo_offset=m) 0 b 2 a' 3 new: |-----------|-----| (b.bo_offset=m,a.bo_offset=n+2) h](h)}(hExistent mappings is overlapped at the beginning by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existing one, adjusting its BO offset accordingly.h]hExistent mappings is overlapped at the beginning by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existing one, adjusting its BO offset accordingly.}(hj =hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMhj=ubjh)}(h 1 a 3 old: |-----------| (bo_offset=n) 0 b 2 req: |-----------| (bo_offset=m) 0 b 2 a' 3 new: |-----------|-----| (b.bo_offset=m,a.bo_offset=n+2)h]h 1 a 3 old: |-----------| (bo_offset=n) 0 b 2 req: |-----------| (bo_offset=m) 0 b 2 a' 3 new: |-----------|-----| (b.bo_offset=m,a.bo_offset=n+2)}hj=sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:500: ./drivers/gpu/drm/drm_gpuvm.chMhj=ubeh}(h]h ]h"]h$]h&]uh1jzhjn:ubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffixjuh1jl:hj7hhhNhNubj)}(h.. _drm_gpuvm_locking:h]h}(h]h ]h"]h$]h&]jdrm-gpuvm-lockinguh1jhMhj7hhhhubeh}(h]split-and-mergeah ]h"]split and mergeah$]h&]uh1hhj0hhhhhMubh)}(hhh](h)}(hLockingh]hLocking}(hjO=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL=hhhhhMubh)}(hXeIn terms of managing :c:type:`drm_gpuva` entries DRM GPUVM does not take care of locking itself, it is the drivers responsibility to take care about locking. Drivers might want to protect the following operations: inserting, removing and iterating :c:type:`drm_gpuva` objects as well as generating all kinds of operations, such as split / merge or prefetch.h](hIn terms of managing }(hj]=hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjg=h]h drm_gpuva}(hji=hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhje=ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:508: ./drivers/gpu/drm/drm_gpuvm.chMhj]=ubh entries DRM GPUVM does not take care of locking itself, it is the drivers responsibility to take care about locking. Drivers might want to protect the following operations: inserting, removing and iterating }(hj]=hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj=h]h drm_gpuva}(hj=hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj=hMhj]=ubhZ objects as well as generating all kinds of operations, such as split / merge or prefetch.}(hj]=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj=hMhjL=hhubh)}(hXDRM GPUVM also does not take care of the locking of the backing :c:type:`drm_gem_object` buffers GPU VA lists and :c:type:`drm_gpuvm_bo` abstractions by itself; drivers are responsible to enforce mutual exclusion using either the GEMs dma_resv lock or the GEMs gpuva.lock mutex.h](h@DRM GPUVM also does not take care of the locking of the backing }(hj=hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj=h]hdrm_gem_object}(hj=hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:508: ./drivers/gpu/drm/drm_gpuvm.chMhj=ubh buffers GPU VA lists and }(hj=hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj=h]h drm_gpuvm_bo}(hj=hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhj=hMhj=ubh abstractions by itself; drivers are responsible to enforce mutual exclusion using either the GEMs dma_resv lock or the GEMs gpuva.lock mutex.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj=hMhjL=hhubh)}(hXHowever, DRM GPUVM contains lockdep checks to ensure callers of its API hold the corresponding lock whenever the :c:type:`drm_gem_objects` GPU VA list is accessed by functions such as drm_gpuva_link() or drm_gpuva_unlink(), but also drm_gpuvm_bo_obtain() and drm_gpuvm_bo_put().h](hqHowever, DRM GPUVM contains lockdep checks to ensure callers of its API hold the corresponding lock whenever the }(hj>hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hj>h]hdrm_gem_objects}(hj>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:508: ./drivers/gpu/drm/drm_gpuvm.chMhj>ubh GPU VA list is accessed by functions such as drm_gpuva_link() or drm_gpuva_unlink(), but also drm_gpuvm_bo_obtain() and drm_gpuvm_bo_put().}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj.>hMhjL=hhubh)}(hXThe latter is required since on creation and destruction of a :c:type:`drm_gpuvm_bo` the :c:type:`drm_gpuvm_bo` is attached / removed from the :c:type:`drm_gem_objects` gpuva list. Subsequent calls to drm_gpuvm_bo_obtain() for the same :c:type:`drm_gpuvm` and :c:type:`drm_gem_object` must be able to observe previous creations and destructions of :c:type:`drm_gpuvm_bos` in order to keep instances unique.h](h>The latter is required since on creation and destruction of a }(hj9>hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjC>h]h drm_gpuvm_bo}(hjE>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjA>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:508: ./drivers/gpu/drm/drm_gpuvm.chMhj9>ubh the }(hj9>hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjg>h]h drm_gpuvm_bo}(hji>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhje>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhj`>hMhj9>ubh is attached / removed from the }(hj9>hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hj>h]hdrm_gem_objects}(hj>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhj`>hMhj9>ubhD gpuva list. Subsequent calls to drm_gpuvm_bo_obtain() for the same }(hj9>hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj>h]h drm_gpuvm}(hj>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj`>hMhj9>ubh and }(hj9>hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj>h]hdrm_gem_object}(hj>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj`>hMhj9>ubh@ must be able to observe previous creations and destructions of }(hj9>hhhNhNubh)}(h:c:type:`drm_gpuvm_bos`h]j)}(hj>h]h drm_gpuvm_bos}(hj>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bosuh1hhj`>hMhj9>ubh# in order to keep instances unique.}(hj9>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`>hMhjL=hhubh)}(hThe :c:type:`drm_gpuvm`'s lists for keeping track of external and evicted objects are protected against concurrent insertion / removal and iteration internally.h](hThe }(hj?hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj$?h]h drm_gpuvm}(hj&?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj"?ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:508: ./drivers/gpu/drm/drm_gpuvm.chMhj?ubh’s lists for keeping track of external and evicted objects are protected against concurrent insertion / removal and iteration internally.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjA?hMhjL=hhubh)}(hHowever, drivers still need ensure to protect concurrent calls to functions iterating those lists, namely drm_gpuvm_prepare_objects() and drm_gpuvm_validate().h]hHowever, drivers still need ensure to protect concurrent calls to functions iterating those lists, namely drm_gpuvm_prepare_objects() and drm_gpuvm_validate().}(hjL?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:508: ./drivers/gpu/drm/drm_gpuvm.chMhjL=hhubh)}(hXAlternatively, drivers can set the :c:type:`DRM_GPUVM_RESV_PROTECTED` flag to indicate that the corresponding :c:type:`dma_resv` locks are held in order to protect the lists. If :c:type:`DRM_GPUVM_RESV_PROTECTED` is set, internal locking is disabled and the corresponding lockdep checks are enabled. This is an optimization for drivers which are capable of taking the corresponding :c:type:`dma_resv` locks and hence do not require internal locking.h](h#Alternatively, drivers can set the }(hj[?hhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j)}(hje?h]hDRM_GPUVM_RESV_PROTECTED}(hjg?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjc?ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_GPUVM_RESV_PROTECTEDuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:508: ./drivers/gpu/drm/drm_gpuvm.chMhj[?ubh) flag to indicate that the corresponding }(hj[?hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj?h]hdma_resv}(hj?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhj?hMhj[?ubh2 locks are held in order to protect the lists. If }(hj[?hhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j)}(hj?h]hDRM_GPUVM_RESV_PROTECTED}(hj?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_GPUVM_RESV_PROTECTEDuh1hhj?hMhj[?ubh is set, internal locking is disabled and the corresponding lockdep checks are enabled. This is an optimization for drivers which are capable of taking the corresponding }(hj[?hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj?h]hdma_resv}(hj?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhj?hMhj[?ubh1 locks and hence do not require internal locking.}(hj[?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj?hMhjL=hhubeh}(h](lockingjC=eh ]h"](lockingdrm_gpuvm_lockingeh$]h&]uh1hhj0hhhhhMj}j?j9=sj}jC=j9=subh)}(hhh](h)}(hExamplesh]hExamples}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hhhhhMubh)}(hThis section gives two examples on how to let the DRM GPUVA Manager generate :c:type:`drm_gpuva_op` in order to satisfy a given map or unmap request and how to make use of them.h](hMThis section gives two examples on how to let the DRM GPUVA Manager generate }(hj@hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hj@h]h drm_gpuva_op}(hj@hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:514: ./drivers/gpu/drm/drm_gpuvm.chMhj@ubhN in order to satisfy a given map or unmap request and how to make use of them.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9@hMhj@hhubh)}(hXFThe below code is strictly limited to illustrate the generic usage pattern. To maintain simplicity, it doesn't make use of any abstractions for common code, different (asynchronous) stages with fence signalling critical paths, any other helpers or error handling in terms of freeing memory and dropping previously taken locks.h]hXHThe below code is strictly limited to illustrate the generic usage pattern. To maintain simplicity, it doesn’t make use of any abstractions for common code, different (asynchronous) stages with fence signalling critical paths, any other helpers or error handling in terms of freeing memory and dropping previously taken locks.}(hjD@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:514: ./drivers/gpu/drm/drm_gpuvm.chMhj@hhubjm:)}(hhh](jz)}(hX Obtain a list of :c:type:`drm_gpuva_op` to create a new mapping:: // Allocates a new &drm_gpuva. struct drm_gpuva * driver_gpuva_alloc(void); // Typically drivers would embed the &drm_gpuvm and &drm_gpuva // structure in individual driver structures and lock the dma-resv with // drm_exec or similar helpers. int driver_mapping_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range, struct drm_gem_object *obj, u64 offset) { struct drm_gpuvm_map_req map_req = { .map.va.addr = addr, .map.va.range = range, .map.gem.obj = obj, .map.gem.offset = offset, }; struct drm_gpuva_ops *ops; struct drm_gpuva_op *op struct drm_gpuvm_bo *vm_bo; driver_lock_va_space(); ops = drm_gpuvm_sm_map_ops_create(gpuvm, &map_req); if (IS_ERR(ops)) return PTR_ERR(ops); vm_bo = drm_gpuvm_bo_obtain(gpuvm, obj); if (IS_ERR(vm_bo)) return PTR_ERR(vm_bo); drm_gpuva_for_each_op(op, ops) { struct drm_gpuva *va; switch (op->op) { case DRM_GPUVA_OP_MAP: va = driver_gpuva_alloc(); if (!va) ; // unwind previous VA space updates, // free memory and unlock driver_vm_map(); drm_gpuva_map(gpuvm, va, &op->map); drm_gpuva_link(va, vm_bo); break; case DRM_GPUVA_OP_REMAP: { struct drm_gpuva *prev = NULL, *next = NULL; va = op->remap.unmap->va; if (op->remap.prev) { prev = driver_gpuva_alloc(); if (!prev) ; // unwind previous VA space // updates, free memory and // unlock } if (op->remap.next) { next = driver_gpuva_alloc(); if (!next) ; // unwind previous VA space // updates, free memory and // unlock } driver_vm_remap(); drm_gpuva_remap(prev, next, &op->remap); if (prev) drm_gpuva_link(prev, va->vm_bo); if (next) drm_gpuva_link(next, va->vm_bo); drm_gpuva_unlink(va); break; } case DRM_GPUVA_OP_UNMAP: va = op->unmap->va; driver_vm_unmap(); drm_gpuva_unlink(va); drm_gpuva_unmap(&op->unmap); break; default: break; } } drm_gpuvm_bo_put(vm_bo); driver_unlock_va_space(); return 0; } h](h)}(hAObtain a list of :c:type:`drm_gpuva_op` to create a new mapping::h](hObtain a list of }(hjZ@hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjd@h]h drm_gpuva_op}(hjf@hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjb@ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:514: ./drivers/gpu/drm/drm_gpuvm.chMhjZ@ubh to create a new mapping:}(hjZ@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@hMhjV@ubjh)}(hX // Allocates a new &drm_gpuva. struct drm_gpuva * driver_gpuva_alloc(void); // Typically drivers would embed the &drm_gpuvm and &drm_gpuva // structure in individual driver structures and lock the dma-resv with // drm_exec or similar helpers. int driver_mapping_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range, struct drm_gem_object *obj, u64 offset) { struct drm_gpuvm_map_req map_req = { .map.va.addr = addr, .map.va.range = range, .map.gem.obj = obj, .map.gem.offset = offset, }; struct drm_gpuva_ops *ops; struct drm_gpuva_op *op struct drm_gpuvm_bo *vm_bo; driver_lock_va_space(); ops = drm_gpuvm_sm_map_ops_create(gpuvm, &map_req); if (IS_ERR(ops)) return PTR_ERR(ops); vm_bo = drm_gpuvm_bo_obtain(gpuvm, obj); if (IS_ERR(vm_bo)) return PTR_ERR(vm_bo); drm_gpuva_for_each_op(op, ops) { struct drm_gpuva *va; switch (op->op) { case DRM_GPUVA_OP_MAP: va = driver_gpuva_alloc(); if (!va) ; // unwind previous VA space updates, // free memory and unlock driver_vm_map(); drm_gpuva_map(gpuvm, va, &op->map); drm_gpuva_link(va, vm_bo); break; case DRM_GPUVA_OP_REMAP: { struct drm_gpuva *prev = NULL, *next = NULL; va = op->remap.unmap->va; if (op->remap.prev) { prev = driver_gpuva_alloc(); if (!prev) ; // unwind previous VA space // updates, free memory and // unlock } if (op->remap.next) { next = driver_gpuva_alloc(); if (!next) ; // unwind previous VA space // updates, free memory and // unlock } driver_vm_remap(); drm_gpuva_remap(prev, next, &op->remap); if (prev) drm_gpuva_link(prev, va->vm_bo); if (next) drm_gpuva_link(next, va->vm_bo); drm_gpuva_unlink(va); break; } case DRM_GPUVA_OP_UNMAP: va = op->unmap->va; driver_vm_unmap(); drm_gpuva_unlink(va); drm_gpuva_unmap(&op->unmap); break; default: break; } } drm_gpuvm_bo_put(vm_bo); driver_unlock_va_space(); return 0; }h]hX // Allocates a new &drm_gpuva. struct drm_gpuva * driver_gpuva_alloc(void); // Typically drivers would embed the &drm_gpuvm and &drm_gpuva // structure in individual driver structures and lock the dma-resv with // drm_exec or similar helpers. int driver_mapping_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range, struct drm_gem_object *obj, u64 offset) { struct drm_gpuvm_map_req map_req = { .map.va.addr = addr, .map.va.range = range, .map.gem.obj = obj, .map.gem.offset = offset, }; struct drm_gpuva_ops *ops; struct drm_gpuva_op *op struct drm_gpuvm_bo *vm_bo; driver_lock_va_space(); ops = drm_gpuvm_sm_map_ops_create(gpuvm, &map_req); if (IS_ERR(ops)) return PTR_ERR(ops); vm_bo = drm_gpuvm_bo_obtain(gpuvm, obj); if (IS_ERR(vm_bo)) return PTR_ERR(vm_bo); drm_gpuva_for_each_op(op, ops) { struct drm_gpuva *va; switch (op->op) { case DRM_GPUVA_OP_MAP: va = driver_gpuva_alloc(); if (!va) ; // unwind previous VA space updates, // free memory and unlock driver_vm_map(); drm_gpuva_map(gpuvm, va, &op->map); drm_gpuva_link(va, vm_bo); break; case DRM_GPUVA_OP_REMAP: { struct drm_gpuva *prev = NULL, *next = NULL; va = op->remap.unmap->va; if (op->remap.prev) { prev = driver_gpuva_alloc(); if (!prev) ; // unwind previous VA space // updates, free memory and // unlock } if (op->remap.next) { next = driver_gpuva_alloc(); if (!next) ; // unwind previous VA space // updates, free memory and // unlock } driver_vm_remap(); drm_gpuva_remap(prev, next, &op->remap); if (prev) drm_gpuva_link(prev, va->vm_bo); if (next) drm_gpuva_link(next, va->vm_bo); drm_gpuva_unlink(va); break; } case DRM_GPUVA_OP_UNMAP: va = op->unmap->va; driver_vm_unmap(); drm_gpuva_unlink(va); drm_gpuva_unmap(&op->unmap); break; default: break; } } drm_gpuvm_bo_put(vm_bo); driver_unlock_va_space(); return 0; }}hj@sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:514: ./drivers/gpu/drm/drm_gpuvm.chMhjV@ubeh}(h]h ]h"]h$]h&]uh1jzhjS@ubjz)}(hX Receive a callback for each :c:type:`drm_gpuva_op` to create a new mapping:: struct driver_context { struct drm_gpuvm *gpuvm; struct drm_gpuvm_bo *vm_bo; struct drm_gpuva *new_va; struct drm_gpuva *prev_va; struct drm_gpuva *next_va; }; // ops to pass to drm_gpuvm_init() static const struct drm_gpuvm_ops driver_gpuvm_ops = { .sm_step_map = driver_gpuva_map, .sm_step_remap = driver_gpuva_remap, .sm_step_unmap = driver_gpuva_unmap, }; // Typically drivers would embed the &drm_gpuvm and &drm_gpuva // structure in individual driver structures and lock the dma-resv with // drm_exec or similar helpers. int driver_mapping_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range, struct drm_gem_object *obj, u64 offset) { struct driver_context ctx; struct drm_gpuvm_bo *vm_bo; struct drm_gpuva_ops *ops; struct drm_gpuva_op *op; int ret = 0; ctx.gpuvm = gpuvm; ctx.new_va = kzalloc(sizeof(*ctx.new_va), GFP_KERNEL); ctx.prev_va = kzalloc(sizeof(*ctx.prev_va), GFP_KERNEL); ctx.next_va = kzalloc(sizeof(*ctx.next_va), GFP_KERNEL); ctx.vm_bo = drm_gpuvm_bo_create(gpuvm, obj); if (!ctx.new_va || !ctx.prev_va || !ctx.next_va || !vm_bo) { ret = -ENOMEM; goto out; } // Typically protected with a driver specific GEM gpuva lock // used in the fence signaling path for drm_gpuva_link() and // drm_gpuva_unlink(), hence pre-allocate. ctx.vm_bo = drm_gpuvm_bo_obtain_prealloc(ctx.vm_bo); driver_lock_va_space(); ret = drm_gpuvm_sm_map(gpuvm, &ctx, addr, range, obj, offset); driver_unlock_va_space(); out: drm_gpuvm_bo_put(ctx.vm_bo); kfree(ctx.new_va); kfree(ctx.prev_va); kfree(ctx.next_va); return ret; } int driver_gpuva_map(struct drm_gpuva_op *op, void *__ctx) { struct driver_context *ctx = __ctx; drm_gpuva_map(ctx->vm, ctx->new_va, &op->map); drm_gpuva_link(ctx->new_va, ctx->vm_bo); // prevent the new GPUVA from being freed in // driver_mapping_create() ctx->new_va = NULL; return 0; } int driver_gpuva_remap(struct drm_gpuva_op *op, void *__ctx) { struct driver_context *ctx = __ctx; struct drm_gpuva *va = op->remap.unmap->va; drm_gpuva_remap(ctx->prev_va, ctx->next_va, &op->remap); if (op->remap.prev) { drm_gpuva_link(ctx->prev_va, va->vm_bo); ctx->prev_va = NULL; } if (op->remap.next) { drm_gpuva_link(ctx->next_va, va->vm_bo); ctx->next_va = NULL; } drm_gpuva_unlink(va); kfree(va); return 0; } int driver_gpuva_unmap(struct drm_gpuva_op *op, void *__ctx) { drm_gpuva_unlink(op->unmap.va); drm_gpuva_unmap(&op->unmap); kfree(op->unmap.va); return 0; } h](h)}(hLReceive a callback for each :c:type:`drm_gpuva_op` to create a new mapping::h](hReceive a callback for each }(hj@hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hj@h]h drm_gpuva_op}(hj@hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:514: ./drivers/gpu/drm/drm_gpuvm.chM|hj@ubh to create a new mapping:}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@hM|hj@ubjh)}(hX struct driver_context { struct drm_gpuvm *gpuvm; struct drm_gpuvm_bo *vm_bo; struct drm_gpuva *new_va; struct drm_gpuva *prev_va; struct drm_gpuva *next_va; }; // ops to pass to drm_gpuvm_init() static const struct drm_gpuvm_ops driver_gpuvm_ops = { .sm_step_map = driver_gpuva_map, .sm_step_remap = driver_gpuva_remap, .sm_step_unmap = driver_gpuva_unmap, }; // Typically drivers would embed the &drm_gpuvm and &drm_gpuva // structure in individual driver structures and lock the dma-resv with // drm_exec or similar helpers. int driver_mapping_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range, struct drm_gem_object *obj, u64 offset) { struct driver_context ctx; struct drm_gpuvm_bo *vm_bo; struct drm_gpuva_ops *ops; struct drm_gpuva_op *op; int ret = 0; ctx.gpuvm = gpuvm; ctx.new_va = kzalloc(sizeof(*ctx.new_va), GFP_KERNEL); ctx.prev_va = kzalloc(sizeof(*ctx.prev_va), GFP_KERNEL); ctx.next_va = kzalloc(sizeof(*ctx.next_va), GFP_KERNEL); ctx.vm_bo = drm_gpuvm_bo_create(gpuvm, obj); if (!ctx.new_va || !ctx.prev_va || !ctx.next_va || !vm_bo) { ret = -ENOMEM; goto out; } // Typically protected with a driver specific GEM gpuva lock // used in the fence signaling path for drm_gpuva_link() and // drm_gpuva_unlink(), hence pre-allocate. ctx.vm_bo = drm_gpuvm_bo_obtain_prealloc(ctx.vm_bo); driver_lock_va_space(); ret = drm_gpuvm_sm_map(gpuvm, &ctx, addr, range, obj, offset); driver_unlock_va_space(); out: drm_gpuvm_bo_put(ctx.vm_bo); kfree(ctx.new_va); kfree(ctx.prev_va); kfree(ctx.next_va); return ret; } int driver_gpuva_map(struct drm_gpuva_op *op, void *__ctx) { struct driver_context *ctx = __ctx; drm_gpuva_map(ctx->vm, ctx->new_va, &op->map); drm_gpuva_link(ctx->new_va, ctx->vm_bo); // prevent the new GPUVA from being freed in // driver_mapping_create() ctx->new_va = NULL; return 0; } int driver_gpuva_remap(struct drm_gpuva_op *op, void *__ctx) { struct driver_context *ctx = __ctx; struct drm_gpuva *va = op->remap.unmap->va; drm_gpuva_remap(ctx->prev_va, ctx->next_va, &op->remap); if (op->remap.prev) { drm_gpuva_link(ctx->prev_va, va->vm_bo); ctx->prev_va = NULL; } if (op->remap.next) { drm_gpuva_link(ctx->next_va, va->vm_bo); ctx->next_va = NULL; } drm_gpuva_unlink(va); kfree(va); return 0; } int driver_gpuva_unmap(struct drm_gpuva_op *op, void *__ctx) { drm_gpuva_unlink(op->unmap.va); drm_gpuva_unmap(&op->unmap); kfree(op->unmap.va); return 0; }h]hX struct driver_context { struct drm_gpuvm *gpuvm; struct drm_gpuvm_bo *vm_bo; struct drm_gpuva *new_va; struct drm_gpuva *prev_va; struct drm_gpuva *next_va; }; // ops to pass to drm_gpuvm_init() static const struct drm_gpuvm_ops driver_gpuvm_ops = { .sm_step_map = driver_gpuva_map, .sm_step_remap = driver_gpuva_remap, .sm_step_unmap = driver_gpuva_unmap, }; // Typically drivers would embed the &drm_gpuvm and &drm_gpuva // structure in individual driver structures and lock the dma-resv with // drm_exec or similar helpers. int driver_mapping_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range, struct drm_gem_object *obj, u64 offset) { struct driver_context ctx; struct drm_gpuvm_bo *vm_bo; struct drm_gpuva_ops *ops; struct drm_gpuva_op *op; int ret = 0; ctx.gpuvm = gpuvm; ctx.new_va = kzalloc(sizeof(*ctx.new_va), GFP_KERNEL); ctx.prev_va = kzalloc(sizeof(*ctx.prev_va), GFP_KERNEL); ctx.next_va = kzalloc(sizeof(*ctx.next_va), GFP_KERNEL); ctx.vm_bo = drm_gpuvm_bo_create(gpuvm, obj); if (!ctx.new_va || !ctx.prev_va || !ctx.next_va || !vm_bo) { ret = -ENOMEM; goto out; } // Typically protected with a driver specific GEM gpuva lock // used in the fence signaling path for drm_gpuva_link() and // drm_gpuva_unlink(), hence pre-allocate. ctx.vm_bo = drm_gpuvm_bo_obtain_prealloc(ctx.vm_bo); driver_lock_va_space(); ret = drm_gpuvm_sm_map(gpuvm, &ctx, addr, range, obj, offset); driver_unlock_va_space(); out: drm_gpuvm_bo_put(ctx.vm_bo); kfree(ctx.new_va); kfree(ctx.prev_va); kfree(ctx.next_va); return ret; } int driver_gpuva_map(struct drm_gpuva_op *op, void *__ctx) { struct driver_context *ctx = __ctx; drm_gpuva_map(ctx->vm, ctx->new_va, &op->map); drm_gpuva_link(ctx->new_va, ctx->vm_bo); // prevent the new GPUVA from being freed in // driver_mapping_create() ctx->new_va = NULL; return 0; } int driver_gpuva_remap(struct drm_gpuva_op *op, void *__ctx) { struct driver_context *ctx = __ctx; struct drm_gpuva *va = op->remap.unmap->va; drm_gpuva_remap(ctx->prev_va, ctx->next_va, &op->remap); if (op->remap.prev) { drm_gpuva_link(ctx->prev_va, va->vm_bo); ctx->prev_va = NULL; } if (op->remap.next) { drm_gpuva_link(ctx->next_va, va->vm_bo); ctx->next_va = NULL; } drm_gpuva_unlink(va); kfree(va); return 0; } int driver_gpuva_unmap(struct drm_gpuva_op *op, void *__ctx) { drm_gpuva_unlink(op->unmap.va); drm_gpuva_unmap(&op->unmap); kfree(op->unmap.va); return 0; }}hj@sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:514: ./drivers/gpu/drm/drm_gpuvm.chM~hj@ubeh}(h]h ]h"]h$]h&]uh1jzhjS@ubeh}(h]h ]h"]h$]h&]j5=j6=j7=hj8=juh1jl:hj@hhhNhNubeh}(h]examplesah ]h"]examplesah$]h&]uh1hhj0hhhhhMubh)}(hhh](h)}(hDRM GPUVM Function Referencesh]hDRM GPUVM Function References}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hhhhhMubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_flags (C enum)c.drm_gpuva_flagshNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_flagsh]jR)}(henum drm_gpuva_flagsh](jX)}(hj[h]henum}(hj$AhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj AhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKubjj)}(h h]h }(hj2AhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj Ahhhj1AhKubj{)}(hdrm_gpuva_flagsh]j)}(hjAh]hdrm_gpuva_flags}(hjDAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Aubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj Ahhhj1AhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjAhhhj1AhKubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1jKhj1AhKhjAhhubj)}(hhh]h)}(hflags for struct drm_gpuvah]hflags for struct drm_gpuva}(hjfAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhK+hjcAhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhj1AhKubeh}(h]h ](jenumeh"]h$]h&]jjjj~Ajj~Ajjjuh1jFhhhj@hNhNubj)}(h**Constants** ``DRM_GPUVA_INVALIDATED`` Flag indicating that the :c:type:`drm_gpuva`'s backing GEM is invalidated. ``DRM_GPUVA_SPARSE`` Flag indicating that the :c:type:`drm_gpuva` is a sparse mapping. ``DRM_GPUVA_USERBITS`` user defined bitsh](h)}(h **Constants**h]j)}(hjAh]h Constants}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhK/hjAubj)}(hhh](j)}(he``DRM_GPUVA_INVALIDATED`` Flag indicating that the :c:type:`drm_gpuva`'s backing GEM is invalidated. h](j)}(h``DRM_GPUVA_INVALIDATED``h]j)}(hjAh]hDRM_GPUVA_INVALIDATED}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhK2hjAubj)}(hhh]h)}(hJFlag indicating that the :c:type:`drm_gpuva`'s backing GEM is invalidated.h](hFlag indicating that the }(hjAhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjAh]h drm_gpuva}(hjAhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjAhK2hjAubh ’s backing GEM is invalidated.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhK2hjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhK2hjAubj)}(hW``DRM_GPUVA_SPARSE`` Flag indicating that the :c:type:`drm_gpuva` is a sparse mapping. h](j)}(h``DRM_GPUVA_SPARSE``h]j)}(hjBh]hDRM_GPUVA_SPARSE}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhK5hjAubj)}(hhh]h)}(hAFlag indicating that the :c:type:`drm_gpuva` is a sparse mapping.h](hFlag indicating that the }(hjBhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj&Bh]h drm_gpuva}(hj(BhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj$Bubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjBhK5hjBubh is a sparse mapping.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBhK5hjBubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjBhK5hjAubj)}(h(``DRM_GPUVA_USERBITS`` user defined bitsh](j)}(h``DRM_GPUVA_USERBITS``h]j)}(hj_Bh]hDRM_GPUVA_USERBITS}(hjaBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Bubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhK7hjYBubj)}(hhh]h)}(huser defined bitsh]huser defined bits}(hjxBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhK8hjuBubah}(h]h ]h"]h$]h&]uh1jhjYBubeh}(h]h ]h"]h$]h&]uh1jhjtBhK7hjAubeh}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva (C struct) c.drm_gpuvahNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h drm_gpuvah]jR)}(hstruct drm_gpuvah](jX)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhK=ubjj)}(h h]h }(hjBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBhhhjBhK=ubj{)}(h drm_gpuvah]j)}(hjBh]h drm_gpuva}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjBhK=ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjBhhhjBhK=ubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jKhjBhK=hjBhhubj)}(hhh]h)}(h#structure to track a GPU VA mappingh]h#structure to track a GPU VA mapping}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKChjBhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhK=ubeh}(h]h ](jstructeh"]h$]h&]jjjjCjjCjjjuh1jFhhhj@hNhNubj)}(hX**Definition**:: struct drm_gpuva { struct drm_gpuvm *vm; struct drm_gpuvm_bo *vm_bo; enum drm_gpuva_flags flags; struct { u64 addr; u64 range; } va; struct { u64 offset; struct drm_gem_object *obj; struct list_head entry; } gem; struct { struct rb_node node; struct list_head entry; u64 __subtree_last; } rb; }; **Members** ``vm`` the :c:type:`drm_gpuvm` this object is associated with ``vm_bo`` the :c:type:`drm_gpuvm_bo` abstraction for the mapped :c:type:`drm_gem_object` ``flags`` the :c:type:`drm_gpuva_flags` for this mapping ``va`` structure containing the address and range of the :c:type:`drm_gpuva` ``va.addr`` the start address ``gem`` structure containing the :c:type:`drm_gem_object` and its offset ``gem.offset`` the offset within the :c:type:`drm_gem_object` ``gem.obj`` the mapped :c:type:`drm_gem_object` ``gem.entry`` the :c:type:`list_head` to attach this object to a :c:type:`drm_gpuvm_bo` ``rb`` structure containing data to store :c:type:`drm_gpuvas` in a rb-tree ``rb.node`` the rb-tree node ``rb.entry`` The :c:type:`list_head` to additionally connect :c:type:`drm_gpuvas` in the same order they appear in the interval tree. This is useful to keep iterating :c:type:`drm_gpuvas` from a start node found through the rb-tree while doing modifications on the rb-tree itself. ``rb.__subtree_last`` needed by the interval tree, holding last-in-subtreeh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh:}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKGhjCubjh)}(hXstruct drm_gpuva { struct drm_gpuvm *vm; struct drm_gpuvm_bo *vm_bo; enum drm_gpuva_flags flags; struct { u64 addr; u64 range; } va; struct { u64 offset; struct drm_gem_object *obj; struct list_head entry; } gem; struct { struct rb_node node; struct list_head entry; u64 __subtree_last; } rb; };h]hXstruct drm_gpuva { struct drm_gpuvm *vm; struct drm_gpuvm_bo *vm_bo; enum drm_gpuva_flags flags; struct { u64 addr; u64 range; } va; struct { u64 offset; struct drm_gem_object *obj; struct list_head entry; } gem; struct { struct rb_node node; struct list_head entry; u64 __subtree_last; } rb; };}hj8Csbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKIhjCubh)}(h **Members**h]j)}(hjICh]hMembers}(hjKChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGCubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhK]hjCubj)}(hhh](j)}(h>``vm`` the :c:type:`drm_gpuvm` this object is associated with h](j)}(h``vm``h]j)}(hjhCh]hvm}(hjjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfCubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKMhjbCubj)}(hhh]h)}(h6the :c:type:`drm_gpuvm` this object is associated withh](hthe }(hjChhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjCh]h drm_gpuvm}(hjChhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj}ChKMhjCubh this object is associated with}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}ChKMhj~Cubah}(h]h ]h"]h$]h&]uh1jhjbCubeh}(h]h ]h"]h$]h&]uh1jhj}ChKMhj_Cubj)}(hY``vm_bo`` the :c:type:`drm_gpuvm_bo` abstraction for the mapped :c:type:`drm_gem_object` h](j)}(h ``vm_bo``h]j)}(hjCh]hvm_bo}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKShjCubj)}(hhh]h)}(hNthe :c:type:`drm_gpuvm_bo` abstraction for the mapped :c:type:`drm_gem_object`h](hthe }(hjChhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjCh]h drm_gpuvm_bo}(hjChhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKRhjCubh abstraction for the mapped }(hjChhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj Dh]hdrm_gem_object}(hj DhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj Dubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjDhKRhjCubeh}(h]h ]h"]h$]h&]uh1hhjDhKRhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChKShj_Cubj)}(h9``flags`` the :c:type:`drm_gpuva_flags` for this mapping h](j)}(h ``flags``h]j)}(hj@Dh]hflags}(hjBDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Dubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKXhj:Dubj)}(hhh]h)}(h.the :c:type:`drm_gpuva_flags` for this mappingh](hthe }(hjYDhhhNhNubh)}(h:c:type:`drm_gpuva_flags`h]j)}(hjcDh]hdrm_gpuva_flags}(hjeDhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjaDubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_flagsuh1hhjUDhKXhjYDubh for this mapping}(hjYDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjUDhKXhjVDubah}(h]h ]h"]h$]h&]uh1jhj:Dubeh}(h]h ]h"]h$]h&]uh1jhjUDhKXhj_Cubj)}(hM``va`` structure containing the address and range of the :c:type:`drm_gpuva` h](j)}(h``va``h]j)}(hjDh]hva}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhK]hjDubj)}(hhh]h)}(hEstructure containing the address and range of the :c:type:`drm_gpuva`h](h2structure containing the address and range of the }(hjDhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjDh]h drm_gpuva}(hjDhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjDhK]hjDubeh}(h]h ]h"]h$]h&]uh1hhjDhK]hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhK]hj_Cubj)}(h``va.addr`` the start address h](j)}(h ``va.addr``h]j)}(hjDh]hva.addr}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKahjDubj)}(hhh]h)}(hthe start addressh]hthe start address}(hj EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj EhKahj Eubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj EhKahj_Cubj)}(hI``gem`` structure containing the :c:type:`drm_gem_object` and its offset h](j)}(h``gem``h]j)}(hj-Eh]hgem}(hj/EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Eubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKlhj'Eubj)}(hhh]h)}(h@structure containing the :c:type:`drm_gem_object` and its offseth](hstructure containing the }(hjFEhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjPEh]hdrm_gem_object}(hjREhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjNEubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjBEhKlhjFEubh and its offset}(hjFEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBEhKlhjCEubah}(h]h ]h"]h$]h&]uh1jhj'Eubeh}(h]h ]h"]h$]h&]uh1jhjBEhKlhj_Cubj)}(h>``gem.offset`` the offset within the :c:type:`drm_gem_object` h](j)}(h``gem.offset``h]j)}(hjEh]h gem.offset}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKphjEubj)}(hhh]h)}(h.the offset within the :c:type:`drm_gem_object`h](hthe offset within the }(hjEhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjEh]hdrm_gem_object}(hjEhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjEhKphjEubeh}(h]h ]h"]h$]h&]uh1hhjEhKphjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKphj_Cubj)}(h0``gem.obj`` the mapped :c:type:`drm_gem_object` h](j)}(h ``gem.obj``h]j)}(hjEh]hgem.obj}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKuhjEubj)}(hhh]h)}(h#the mapped :c:type:`drm_gem_object`h](h the mapped }(hjEhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjFh]hdrm_gem_object}(hjFhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjEhKuhjEubeh}(h]h ]h"]h$]h&]uh1hhjEhKuhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKuhj_Cubj)}(hX``gem.entry`` the :c:type:`list_head` to attach this object to a :c:type:`drm_gpuvm_bo` h](j)}(h ``gem.entry``h]j)}(hj9Fh]h gem.entry}(hj;FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Fubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKzhj3Fubj)}(hhh]h)}(hIthe :c:type:`list_head` to attach this object to a :c:type:`drm_gpuvm_bo`h](hthe }(hjRFhhhNhNubh)}(h:c:type:`list_head`h]j)}(hj\Fh]h list_head}(hj^FhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjZFubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja list_headuh1hhjNFhKzhjRFubh to attach this object to a }(hjRFhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjFh]h drm_gpuvm_bo}(hjFhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj}Fubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjNFhKzhjRFubeh}(h]h ]h"]h$]h&]uh1hhjNFhKzhjOFubah}(h]h ]h"]h$]h&]uh1jhj3Fubeh}(h]h ]h"]h$]h&]uh1jhjNFhKzhj_Cubj)}(hL``rb`` structure containing data to store :c:type:`drm_gpuvas` in a rb-tree h](j)}(h``rb``h]j)}(hjFh]hrb}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjFubj)}(hhh]h)}(hDstructure containing data to store :c:type:`drm_gpuvas` in a rb-treeh](h#structure containing data to store }(hjFhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjFh]h drm_gpuvas}(hjFhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhjFhKhjFubh in a rb-tree}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjFhKhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhKhj_Cubj)}(h``rb.node`` the rb-tree node h](j)}(h ``rb.node``h]j)}(hjGh]hrb.node}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhj Gubj)}(hhh]h)}(hthe rb-tree nodeh]hthe rb-tree node}(hj)GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%GhKhj&Gubah}(h]h ]h"]h$]h&]uh1jhj Gubeh}(h]h ]h"]h$]h&]uh1jhj%GhKhj_Cubj)}(hX``rb.entry`` The :c:type:`list_head` to additionally connect :c:type:`drm_gpuvas` in the same order they appear in the interval tree. This is useful to keep iterating :c:type:`drm_gpuvas` from a start node found through the rb-tree while doing modifications on the rb-tree itself. h](j)}(h ``rb.entry``h]j)}(hjIGh]hrb.entry}(hjKGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjCGubj)}(hhh]h)}(hX The :c:type:`list_head` to additionally connect :c:type:`drm_gpuvas` in the same order they appear in the interval tree. This is useful to keep iterating :c:type:`drm_gpuvas` from a start node found through the rb-tree while doing modifications on the rb-tree itself.h](hThe }(hjbGhhhNhNubh)}(h:c:type:`list_head`h]j)}(hjlGh]h list_head}(hjnGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjjGubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjbGubh to additionally connect }(hjbGhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjGh]h drm_gpuvas}(hjGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhjGhKhjbGubhV in the same order they appear in the interval tree. This is useful to keep iterating }(hjbGhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjGh]h drm_gpuvas}(hjGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhjGhKhjbGubh] from a start node found through the rb-tree while doing modifications on the rb-tree itself.}(hjbGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhKhj_Gubah}(h]h ]h"]h$]h&]uh1jhjCGubeh}(h]h ]h"]h$]h&]uh1jhj^GhKhj_Cubj)}(hJ``rb.__subtree_last`` needed by the interval tree, holding last-in-subtreeh](j)}(h``rb.__subtree_last``h]j)}(hjGh]hrb.__subtree_last}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjGubj)}(hhh]h)}(h4needed by the interval tree, holding last-in-subtreeh]h4needed by the interval tree, holding last-in-subtree}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjHubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjHhKhj_Cubeh}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hj/Hh]h Description}(hj1HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Hubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhj@hhubh)}(hXThis structure represents a GPU VA mapping and is associated with a :c:type:`drm_gpuvm`.h](hDThis structure represents a GPU VA mapping and is associated with a }(hjEHhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjOHh]h drm_gpuvm}(hjQHhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjMHubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKDhjEHubh.}(hjEHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlHhKDhj@hhubh)}(hBTypically, this structure is embedded in bigger driver structures.h]hBTypically, this structure is embedded in bigger driver structures.}(hjwHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKGhj@hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!drm_gpuva_invalidate (C function)c.drm_gpuva_invalidatehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hAvoid drm_gpuva_invalidate (struct drm_gpuva *va, bool invalidate)h]jR)}(h@void drm_gpuva_invalidate(struct drm_gpuva *va, bool invalidate)h](j)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKubjj)}(h h]h }(hjHhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHhhhjHhKubj{)}(hdrm_gpuva_invalidateh]j)}(hdrm_gpuva_invalidateh]hdrm_gpuva_invalidate}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHhhhjHhKubj)}(h'(struct drm_gpuva *va, bool invalidate)h](j)}(hstruct drm_gpuva *vah](jX)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjHubjj)}(h h]h }(hjHhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjHmodnameN classnameNj+j.)}j1]j4)}j'jHsbc.drm_gpuva_invalidateasbuh1hhjHubjj)}(h h]h }(hjIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHubjH)}(hjKh]h*}(hj(IhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjHubj)}(hvah]hva}(hj5IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hbool invalidateh](j)}(hj*h]hbool}(hjNIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJIubjj)}(h h]h }(hj[IhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJIubj)}(h invalidateh]h invalidate}(hjiIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjHhhhjHhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjHhhhjHhKubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1jKhjHhKhjHhhubj)}(hhh]h)}(hGsets whether the backing GEM of this :c:type:`drm_gpuva` is invalidatedh](h%sets whether the backing GEM of this }(hjIhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjIh]h drm_gpuva}(hjIhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jIc.drm_gpuva_invalidateasbja drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjIubh is invalidated}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjIhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1jFhhhj@hNhNubj)}(h**Parameters** ``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to set the invalidate flag for ``bool invalidate`` indicates whether the :c:type:`drm_gpuva` is invalidatedh](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjIubj)}(hhh](j)}(hP``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to set the invalidate flag for h](j)}(h``struct drm_gpuva *va``h]j)}(hjIh]hstruct drm_gpuva *va}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjIubj)}(hhh]h)}(h6the :c:type:`drm_gpuva` to set the invalidate flag forh](hthe }(hjJhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj Jh]h drm_gpuva}(hj"JhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjJhKhjJubh to set the invalidate flag for}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJhKhjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjIubj)}(hL``bool invalidate`` indicates whether the :c:type:`drm_gpuva` is invalidatedh](j)}(h``bool invalidate``h]j)}(hjYJh]hbool invalidate}(hj[JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWJubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjSJubj)}(hhh]h)}(h8indicates whether the :c:type:`drm_gpuva` is invalidatedh](hindicates whether the }(hjrJhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj|Jh]h drm_gpuva}(hj~JhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjzJubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjrJubh is invalidated}(hjrJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJhKhjoJubah}(h]h ]h"]h$]h&]uh1jhjSJubeh}(h]h ]h"]h$]h&]uh1jhjnJhKhjIubeh}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_gpuva_invalidated (C function)c.drm_gpuva_invalidatedhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h1bool drm_gpuva_invalidated (struct drm_gpuva *va)h]jR)}(h0bool drm_gpuva_invalidated(struct drm_gpuva *va)h](j)}(hj*h]hbool}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKubjj)}(h h]h }(hjJhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJhhhjJhKubj{)}(hdrm_gpuva_invalidatedh]j)}(hdrm_gpuva_invalidatedh]hdrm_gpuva_invalidated}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhjJhKubj)}(h(struct drm_gpuva *va)h]j)}(hstruct drm_gpuva *vah](jX)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjKubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjKubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj0KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Kubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj2KmodnameN classnameNj+j.)}j1]j4)}j'jJsbc.drm_gpuva_invalidatedasbuh1hhjKubjj)}(h h]h }(hjPKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjKubjH)}(hjKh]h*}(hj^KhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjKubj)}(hvah]hva}(hjkKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Kubah}(h]h ]h"]h$]h&]jjuh1jhjJhhhjJhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjJhhhjJhKubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jKhjJhKhjJhhubj)}(hhh]h)}(hKindicates whether the backing BO of this :c:type:`drm_gpuva` is invalidatedh](h)indicates whether the backing BO of this }(hjKhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjKh]h drm_gpuva}(hjKhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jLKc.drm_gpuva_invalidatedasbja drm_gpuvauh1hhjIhKhjKubh is invalidated}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjKhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jFhhhj@hNhNubj)}(h**Parameters** ``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to check **Return** ``true`` if the GPU VA is invalidated, ``false`` otherwiseh](h)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjKubj)}(hhh]j)}(h:``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to check h](j)}(h``struct drm_gpuva *va``h]j)}(hjKh]hstruct drm_gpuva *va}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjKubj)}(hhh]h)}(h the :c:type:`drm_gpuva` to checkh](hthe }(hjLhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj!Lh]h drm_gpuva}(hj#LhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjLhKhjLubh to check}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjLhKhjLubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjLhKhjKubah}(h]h ]h"]h$]h&]uh1jhjKubh)}(h **Return**h]j)}(hj\Lh]hReturn}(hj^LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZLubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjKubh)}(h:``true`` if the GPU VA is invalidated, ``false`` otherwiseh](j)}(h``true``h]htrue}(hjvLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrLubh if the GPU VA is invalidated, }(hjrLhhhNhNubj)}(h ``false``h]hfalse}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrLubh otherwise}(hjrLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_flags (C enum)c.drm_gpuvm_flagshNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuvm_flagsh]jR)}(henum drm_gpuvm_flagsh](jX)}(hj[h]henum}(hjLhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjLhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKubjj)}(h h]h }(hjLhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjLhhhjLhKubj{)}(hdrm_gpuvm_flagsh]j)}(hjLh]hdrm_gpuvm_flags}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLhhhjLhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjLhhhjLhKubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jKhjLhKhjLhhubj)}(hhh]h)}(hflags for struct drm_gpuvmh]hflags for struct drm_gpuvm}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjMhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhKubeh}(h]h ](jenumeh"]h$]h&]jjjjMjjMjjjuh1jFhhhj@hNhNubj)}(hX**Constants** ``DRM_GPUVM_RESV_PROTECTED`` GPUVM is protected externally by the GPUVM's :c:type:`dma_resv` lock ``DRM_GPUVM_IMMEDIATE_MODE`` use the locking scheme for GEMs designed for modifying the GPUVM during the fence signalling path When set, gpuva.lock is used to protect gpuva.list in all GEM objects associated with this GPUVM. Otherwise, the GEMs dma-resv is used. ``DRM_GPUVM_USERBITS`` user defined bitsh](h)}(h **Constants**h]j)}(hj%Mh]h Constants}(hj'MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Mubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjMubj)}(hhh](j)}(hb``DRM_GPUVM_RESV_PROTECTED`` GPUVM is protected externally by the GPUVM's :c:type:`dma_resv` lock h](j)}(h``DRM_GPUVM_RESV_PROTECTED``h]j)}(hjDMh]hDRM_GPUVM_RESV_PROTECTED}(hjFMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBMubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhj>Mubj)}(hhh]h)}(hDGPUVM is protected externally by the GPUVM's :c:type:`dma_resv` lockh](h/GPUVM is protected externally by the GPUVM’s }(hj]MhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjgMh]hdma_resv}(hjiMhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjeMubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhj]Mubh lock}(hj]MhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMhKhjZMubah}(h]h ]h"]h$]h&]uh1jhj>Mubeh}(h]h ]h"]h$]h&]uh1jhjYMhKhj;Mubj)}(hX``DRM_GPUVM_IMMEDIATE_MODE`` use the locking scheme for GEMs designed for modifying the GPUVM during the fence signalling path When set, gpuva.lock is used to protect gpuva.list in all GEM objects associated with this GPUVM. Otherwise, the GEMs dma-resv is used. h](j)}(h``DRM_GPUVM_IMMEDIATE_MODE``h]j)}(hjMh]hDRM_GPUVM_IMMEDIATE_MODE}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjMubj)}(hhh](h)}(hause the locking scheme for GEMs designed for modifying the GPUVM during the fence signalling pathh]hause the locking scheme for GEMs designed for modifying the GPUVM during the fence signalling path}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjMubh)}(hWhen set, gpuva.lock is used to protect gpuva.list in all GEM objects associated with this GPUVM. Otherwise, the GEMs dma-resv is used.h]hWhen set, gpuva.lock is used to protect gpuva.list in all GEM objects associated with this GPUVM. Otherwise, the GEMs dma-resv is used.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjMubeh}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj;Mubj)}(h(``DRM_GPUVM_USERBITS`` user defined bitsh](j)}(h``DRM_GPUVM_USERBITS``h]j)}(hjMh]hDRM_GPUVM_USERBITS}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjMubj)}(hhh]h)}(huser defined bitsh]huser defined bits}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjNubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj;Mubeh}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm (C struct) c.drm_gpuvmhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h drm_gpuvmh]jR)}(hstruct drm_gpuvmh](jX)}(hjh]hstruct}(hjDNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj@NhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKubjj)}(h h]h }(hjRNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@NhhhjQNhKubj{)}(h drm_gpuvmh]j)}(hj>Nh]h drm_gpuvm}(hjdNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Nubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj@NhhhjQNhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj representing the address space cutout reserved for the kernel}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjzQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjNubj)}(hK``ops`` :c:type:`drm_gpuvm_ops` providing the split/merge steps to drivers h](j)}(h``ops``h]j)}(hjQh]hops}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjQubj)}(hhh]h)}(hB:c:type:`drm_gpuvm_ops` providing the split/merge steps to driversh](h)}(h:c:type:`drm_gpuvm_ops`h]j)}(hjQh]h drm_gpuvm_ops}(hjQhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_opsuh1hhjQhMhjQubh+ providing the split/merge steps to drivers}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjNubj)}(hO``r_obj`` Resv GEM object; representing the GPUVM's common :c:type:`dma_resv`. h](j)}(h ``r_obj``h]j)}(hj1Rh]hr_obj}(hj3RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Rubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM"hj+Rubj)}(hhh]h)}(hDResv GEM object; representing the GPUVM's common :c:type:`dma_resv`.h](h3Resv GEM object; representing the GPUVM’s common }(hjJRhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjTRh]hdma_resv}(hjVRhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjRRubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhjFRhM"hjJRubh.}(hjJRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjFRhM"hjGRubah}(h]h ]h"]h$]h&]uh1jhj+Rubeh}(h]h ]h"]h$]h&]uh1jhjFRhM"hjNubj)}(h-``extobj`` structure holding the extobj list h](j)}(h ``extobj``h]j)}(hjRh]hextobj}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM'hjRubj)}(hhh]h)}(h!structure holding the extobj listh]h!structure holding the extobj list}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM'hjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhM'hjNubj)}(h_``extobj.list`` :c:type:`list_head` storing :c:type:`drm_gpuvm_bos` serving as external object h](j)}(h``extobj.list``h]j)}(hjRh]h extobj.list}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM,hjRubj)}(hhh]h)}(hN:c:type:`list_head` storing :c:type:`drm_gpuvm_bos` serving as external objecth](h)}(h:c:type:`list_head`h]j)}(hjRh]h list_head}(hjRhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM+hjRubh storing }(hjRhhhNhNubh)}(h:c:type:`drm_gpuvm_bos`h]j)}(hj Sh]h drm_gpuvm_bos}(hj ShhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bosuh1hhjShM+hjRubh serving as external object}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjShM+hjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhM,hjNubj)}(hj``extobj.local_list`` pointer to the local list temporarily storing entries from the external object list h](j)}(h``extobj.local_list``h]j)}(hjBSh]hextobj.local_list}(hjDShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Subah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM2hjUubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja maple_treeuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhj6UubhO structures. Typically, this structure is embedded in bigger driver structures.}(hj6UhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]UhKhj@hhubh)}(hPDrivers can pass addresses and ranges in an arbitrary unit, e.g. bytes or pages.h]hPDrivers can pass addresses and ranges in an arbitrary unit, e.g. bytes or pages.}(hjhUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhj@hhubh)}(hCThere should be one manager instance per GPU virtual address space.h]hCThere should be one manager instance per GPU virtual address space.}(hjwUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhj@hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_get (C function)c.drm_gpuvm_gethNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h:struct drm_gpuvm * drm_gpuvm_get (struct drm_gpuvm *gpuvm)h]jR)}(h8struct drm_gpuvm *drm_gpuvm_get(struct drm_gpuvm *gpuvm)h](jX)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjUhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM`ubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUhhhjUhM`ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjUmodnameN classnameNj+j.)}j1]j4)}j' drm_gpuvm_getsbc.drm_gpuvm_getasbuh1hhjUhhhjUhM`ubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUhhhjUhM`ubjH)}(hjKh]h*}(hjUhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjUhhhjUhM`ubj{)}(h drm_gpuvm_geth]j)}(hjUh]h drm_gpuvm_get}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUhhhjUhM`ubj)}(h(struct drm_gpuvm *gpuvm)h]j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjVubjj)}(h h]h }(hj&VhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj7VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Vubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj9VmodnameN classnameNj+j.)}j1]jUc.drm_gpuvm_getasbuh1hhjVubjj)}(h h]h }(hjUVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVubjH)}(hjKh]h*}(hjcVhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjVubj)}(hgpuvmh]hgpuvm}(hjpVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubah}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhM`ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjUhhhjUhM`ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1jKhjUhM`hjUhhubj)}(hhh]h)}(h$acquire a struct drm_gpuvm referenceh]h$acquire a struct drm_gpuvm reference}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM`hjVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhM`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1jFhhhj@hNhNubj)}(hXC**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to acquire the reference of **Description** This function acquires an additional reference to **gpuvm**. It is illegal to call this without already holding a reference. No locks required. **Return** the :c:type:`struct drm_gpuvm ` pointerh](h)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMdhjVubj)}(hhh]j)}(hP``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to acquire the reference of h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjVh]hstruct drm_gpuvm *gpuvm}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMahjVubj)}(hhh]h)}(h3the :c:type:`drm_gpuvm` to acquire the reference ofh](hthe }(hjVhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjVh]h drm_gpuvm}(hjWhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjVhMahjVubh to acquire the reference of}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjVhMahjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMahjVubah}(h]h ]h"]h$]h&]uh1jhjVubh)}(h**Description**h]j)}(hj9Wh]h Description}(hj;WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Wubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMchjVubh)}(hThis function acquires an additional reference to **gpuvm**. It is illegal to call this without already holding a reference. No locks required.h](h2This function acquires an additional reference to }(hjOWhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjWWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOWubhT. It is illegal to call this without already holding a reference. No locks required.}(hjOWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMbhjVubh)}(h **Return**h]j)}(hjrWh]hReturn}(hjtWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpWubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMehjVubh)}(h2the :c:type:`struct drm_gpuvm ` pointerh](hthe }(hjWhhhNhNubh)}(h&:c:type:`struct drm_gpuvm `h]j)}(hjWh]hstruct drm_gpuvm}(hjWhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMfhjWubh pointer}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWhMfhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_gpuvm_resv_protected (C function)c.drm_gpuvm_resv_protectedhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h7bool drm_gpuvm_resv_protected (struct drm_gpuvm *gpuvm)h]jR)}(h6bool drm_gpuvm_resv_protected(struct drm_gpuvm *gpuvm)h](j)}(hj*h]hbool}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMyubjj)}(h h]h }(hjWhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjWhhhjWhMyubj{)}(hdrm_gpuvm_resv_protectedh]j)}(hdrm_gpuvm_resv_protectedh]hdrm_gpuvm_resv_protected}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWhhhjWhMyubj)}(h(struct drm_gpuvm *gpuvm)h]j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjXubjj)}(h h]h }(hj#XhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjXubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj4XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Xubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj6XmodnameN classnameNj+j.)}j1]j4)}j'jWsbc.drm_gpuvm_resv_protectedasbuh1hhjXubjj)}(h h]h }(hjTXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjXubjH)}(hjKh]h*}(hjbXhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjXubj)}(hgpuvmh]hgpuvm}(hjoXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubah}(h]h ]h"]h$]h&]jjuh1jhjWhhhjWhMyubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjWhhhjWhMyubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jKhjWhMyhjWhhubj)}(hhh]h)}(h;indicates whether :c:type:`DRM_GPUVM_RESV_PROTECTED` is seth](hindicates whether }(hjXhhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j)}(hjXh]hDRM_GPUVM_RESV_PROTECTED}(hjXhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jPXc.drm_gpuvm_resv_protectedasbjaDRM_GPUVM_RESV_PROTECTEDuh1hhjIhKhjXubh is set}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMyhjXhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjWhMyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1jFhhhj@hNhNubj)}(h**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` **Return** true if :c:type:`DRM_GPUVM_RESV_PROTECTED` is set, false otherwise.h](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM}hjXubj)}(hhh]j)}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjYh]hstruct drm_gpuvm *gpuvm}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM{hjXubj)}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjYhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj%Yh]h drm_gpuvm}(hj'YhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj#Yubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjYhM{hjYubeh}(h]h ]h"]h$]h&]uh1hhjYhM{hjYubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjYhM{hjXubah}(h]h ]h"]h$]h&]uh1jhjXubh)}(h **Return**h]j)}(hj\Yh]hReturn}(hj^YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZYubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM}hjXubh)}(hCtrue if :c:type:`DRM_GPUVM_RESV_PROTECTED` is set, false otherwise.h](htrue if }(hjrYhhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j)}(hj|Yh]hDRM_GPUVM_RESV_PROTECTED}(hj~YhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjzYubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_GPUVM_RESV_PROTECTEDuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM}hjrYubh is set, false otherwise.}(hjrYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjYhM}hjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_gpuvm_immediate_mode (C function)c.drm_gpuvm_immediate_modehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h7bool drm_gpuvm_immediate_mode (struct drm_gpuvm *gpuvm)h]jR)}(h6bool drm_gpuvm_immediate_mode(struct drm_gpuvm *gpuvm)h](j)}(hj*h]hbool}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubjj)}(h h]h }(hjYhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYhhhjYhMubj{)}(hdrm_gpuvm_immediate_modeh]j)}(hdrm_gpuvm_immediate_modeh]hdrm_gpuvm_immediate_mode}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjYhhhjYhMubj)}(h(struct drm_gpuvm *gpuvm)h]j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjYubjj)}(h h]h }(hj ZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj ZmodnameN classnameNj+j.)}j1]j4)}j'jYsbc.drm_gpuvm_immediate_modeasbuh1hhjYubjj)}(h h]h }(hj>ZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYubjH)}(hjKh]h*}(hjLZhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjYubj)}(hgpuvmh]hgpuvm}(hjYZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhjYhhhjYhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjYhhhjYhMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1jKhjYhMhjYhhubj)}(hhh]h)}(h;indicates whether :c:type:`DRM_GPUVM_IMMEDIATE_MODE` is seth](hindicates whether }(hjZhhhNhNubh)}(h":c:type:`DRM_GPUVM_IMMEDIATE_MODE`h]j)}(hjZh]hDRM_GPUVM_IMMEDIATE_MODE}(hjZhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j:Zc.drm_gpuvm_immediate_modeasbjaDRM_GPUVM_IMMEDIATE_MODEuh1hhjIhKhjZubh is set}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jFhhhj@hNhNubj)}(h**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` **Return** true if :c:type:`DRM_GPUVM_IMMEDIATE_MODE` is set, false otherwise.h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjZubj)}(hhh]j)}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjZh]hstruct drm_gpuvm *gpuvm}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjZubj)}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hj[hhhNhNubh)3}(h:c:type:`drm_gpuvm`h]j)}(hj[h]h drm_gpuvm}(hj[hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj [ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj[hMhj[ubeh}(h]h ]h"]h$]h&]uh1hhj[hMhj[ubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjZubah}(h]h ]h"]h$]h&]uh1jhjZubh)}(h **Return**h]j)}(hjF[h]hReturn}(hjH[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD[ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjZubh)}(hCtrue if :c:type:`DRM_GPUVM_IMMEDIATE_MODE` is set, false otherwise.h](htrue if }(hj\[hhhNhNubh)}(h":c:type:`DRM_GPUVM_IMMEDIATE_MODE`h]j)}(hjf[h]hDRM_GPUVM_IMMEDIATE_MODE}(hjh[hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjd[ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_GPUVM_IMMEDIATE_MODEuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj\[ubh is set, false otherwise.}(hj\[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj[hMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_resv (C macro)c.drm_gpuvm_resvhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuvm_resvh]jR)}(hdrm_gpuvm_resvh]j{)}(hdrm_gpuvm_resvh]j)}(hj[h]hdrm_gpuvm_resv}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhj[hhhj[hMubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jKhj[hMhj[hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj[hhhj[hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj[jj[jjjuh1jFhhhj@hNhNubh)}(h``drm_gpuvm_resv (gpuvm__)``h]j)}(hj[h]hdrm_gpuvm_resv (gpuvm__)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubj)}(h5returns the :c:type:`drm_gpuvm`'s :c:type:`dma_resv` h]h)}(h4returns the :c:type:`drm_gpuvm`'s :c:type:`dma_resv`h](h returns the }(hj[hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj\h]h drm_gpuvm}(hj \hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj[ubh’s }(hj[hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj,\h]hdma_resv}(hj.\hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj*\ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhj%\hMhj[ubeh}(h]h ]h"]h$]h&]uh1hhj%\hMhj[ubah}(h]h ]h"]h$]h&]uh1jhj%\hMhj@hhubj)}(h**Parameters** ``gpuvm__`` the :c:type:`drm_gpuvm` **Return** a pointer to the :c:type:`drm_gpuvm`'s shared :c:type:`dma_resv`h](h)}(h**Parameters**h]j)}(hj[\h]h Parameters}(hj]\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY\ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjU\ubj)}(hhh]j)}(h$``gpuvm__`` the :c:type:`drm_gpuvm` h](j)}(h ``gpuvm__``h]j)}(hjz\h]hgpuvm__}(hj|\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx\ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjt\ubj)}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hj\hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj\h]h drm_gpuvm}(hj\hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj\hMhj\ubeh}(h]h ]h"]h$]h&]uh1hhj\hMhj\ubah}(h]h ]h"]h$]h&]uh1jhjt\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjq\ubah}(h]h ]h"]h$]h&]uh1jhjU\ubh)}(h **Return**h]j)}(hj\h]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjU\ubh)}(h@a pointer to the :c:type:`drm_gpuvm`'s shared :c:type:`dma_resv`h](ha pointer to the }(hj\hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj\h]h drm_gpuvm}(hj\hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj\ubh ’s shared }(hj\hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj]h]hdma_resv}(hj]hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhj]hMhj\ubeh}(h]h ]h"]h$]h&]uh1hhj]hMhjU\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_resv_obj (C macro)c.drm_gpuvm_resv_objhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuvm_resv_objh]jR)}(hdrm_gpuvm_resv_objh]j{)}(hdrm_gpuvm_resv_objh]j)}(hjU]h]hdrm_gpuvm_resv_obj}(hj_]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjW]hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjS]hhhjr]hMubah}(h]jN]ah ](jjeh"]h$]h&]jj)jhuh1jKhjr]hMhjP]hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjP]hhhjr]hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj]jj]jjjuh1jFhhhj@hNhNubh)}(h ``drm_gpuvm_resv_obj (gpuvm__)``h]j)}(hj]h]hdrm_gpuvm_resv_obj (gpuvm__)}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubj)}(hZreturns the :c:type:`drm_gem_object` holding the :c:type:`drm_gpuvm`'s :c:type:`dma_resv` h]h)}(hYreturns the :c:type:`drm_gem_object` holding the :c:type:`drm_gpuvm`'s :c:type:`dma_resv`h](h returns the }(hj]hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj]h]hdrm_gem_object}(hj]hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj]ubh holding the }(hj]hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj]h]h drm_gpuvm}(hj]hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj]hMhj]ubh’s }(hj]hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj]h]hdma_resv}(hj]hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhj]hMhj]ubeh}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhj]hMhj@hhubj)}(h**Parameters** ``gpuvm__`` the :c:type:`drm_gpuvm` **Return** a pointer to the :c:type:`drm_gem_object` holding the :c:type:`drm_gpuvm`'s shared :c:type:`dma_resv`h](h)}(h**Parameters**h]j)}(hj+^h]h Parameters}(hj-^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)^ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj%^ubj)}(hhh]j)}(h$``gpuvm__`` the :c:type:`drm_gpuvm` h](j)}(h ``gpuvm__``h]j)}(hjJ^h]hgpuvm__}(hjL^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH^ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjD^ubj)}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjc^hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjm^h]h drm_gpuvm}(hjo^hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjk^ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj_^hMhjc^ubeh}(h]h ]h"]h$]h&]uh1hhj_^hMhj`^ubah}(h]h ]h"]h$]h&]uh1jhjD^ubeh}(h]h ]h"]h$]h&]uh1jhj_^hMhjA^ubah}(h]h ]h"]h$]h&]uh1jhj%^ubh)}(h **Return**h]j)}(hj^h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj%^ubh)}(hea pointer to the :c:type:`drm_gem_object` holding the :c:type:`drm_gpuvm`'s shared :c:type:`dma_resv`h](ha pointer to the }(hj^hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj^h]hdrm_gem_object}(hj^hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj^ubh holding the }(hj^hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj^h]h drm_gpuvm}(hj^hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj^hMhj^ubh ’s shared }(hj^hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj _h]hdma_resv}(hj _hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj _ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhj^hMhj^ubeh}(h]h ]h"]h$]h&]uh1hhj^hMhj%^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gpuvm_is_extobj (C function)c.drm_gpuvm_is_extobjhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hNbool drm_gpuvm_is_extobj (struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h]jR)}(hMbool drm_gpuvm_is_extobj(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](j)}(hj*h]hbool}(hjN_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ_hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubjj)}(h h]h }(hj\_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJ_hhhj[_hMubj{)}(hdrm_gpuvm_is_extobjh]j)}(hdrm_gpuvm_is_extobjh]hdrm_gpuvm_is_extobj}(hjn_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJ_hhhj[_hMubj)}(h5(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_ubjj)}(h h]h }(hj_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj_modnameN classnameNj+j.)}j1]j4)}j'jp_sbc.drm_gpuvm_is_extobjasbuh1hhj_ubjj)}(h h]h }(hj_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubjH)}(hjKh]h*}(hj_hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj_ubj)}(hgpuvmh]hgpuvm}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_ubjj)}(h h]h }(hj `hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj`modnameN classnameNj+j.)}j1]j_c.drm_gpuvm_is_extobjasbuh1hhj_ubjj)}(h h]h }(hj8`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubjH)}(hjKh]h*}(hjF`hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj_ubj)}(hobjh]hobj}(hjS`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhjJ_hhhj[_hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjF_hhhj[_hMubah}(h]jA_ah ](jjeh"]h$]h&]jj)jhuh1jKhj[_hMhjC_hhubj)}(hhh]h)}(hJindicates whether the given :c:type:`drm_gem_object` is an external objecth](hindicates whether the given }(hj}`hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj`h]hdrm_gem_object}(hj`hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j_c.drm_gpuvm_is_extobjasbjadrm_gem_objectuh1hhjIhKhj}`ubh is an external object}(hj}`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjz`hhubah}(h]h ]h"]h$]h&]uh1jhjC_hhhj[_hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1jFhhhj@hNhNubj)}(hX%**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to check ``struct drm_gem_object *obj`` the :c:type:`drm_gem_object` to check **Return** true if the :c:type:`drm_gem_object` :c:type:`dma_resv` differs from the :c:type:`drm_gpuvms` :c:type:`dma_resv`, false otherwiseh](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj`ubj)}(hhh](j)}(h=``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to check h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hj`h]hstruct drm_gpuvm *gpuvm}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj`ubj)}(hhh]h)}(h the :c:type:`drm_gpuvm` to checkh](hthe }(hj`hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj ah]h drm_gpuvm}(hj ahhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj`hMhj`ubh to check}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj`ubj)}(hE``struct drm_gem_object *obj`` the :c:type:`drm_gem_object` to check h](j)}(h``struct drm_gem_object *obj``h]j)}(hjBah]hstruct drm_gem_object *obj}(hjDahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@aubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjfubj)}(hC``next__`` another :c:type:`drm_gpuva` to use as temporary storage h](j)}(h ``next__``h]j)}(hjfh]hnext__}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjfubj)}(hhh]h)}(h7another :c:type:`drm_gpuva` to use as temporary storageh](hanother }(hjfhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjfh]h drm_gpuva}(hjfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjfhMhjfubh to use as temporary storage}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhj>fubj)}(h-``gpuvm__`` :c:type:`drm_gpuvm` to walk over h](j)}(h ``gpuvm__``h]j)}(hjfh]hgpuvm__}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjfubj)}(hhh]h)}(h :c:type:`drm_gpuvm` to walk overh](h)}(h:c:type:`drm_gpuvm`h]j)}(hjgh]h drm_gpuvm}(hjghhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjghMhjgubh to walk over}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjghMhj>fubj)}(h?``start__`` starting offset, the first gpuva will overlap this h](j)}(h ``start__``h]j)}(hjSgh]hstart__}(hjUghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQgubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjMgubj)}(hhh]h)}(h2starting offset, the first gpuva will overlap thish]h2starting offset, the first gpuva will overlap this}(hjlghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhghMhjigubah}(h]h ]h"]h$]h&]uh1jhjMgubeh}(h]h ]h"]h$]h&]uh1jhjhghMhj>fubj)}(hQ``end__`` ending offset, the last gpuva will start before this (but may overlap) h](j)}(h ``end__``h]j)}(hjgh]hend__}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjgubj)}(hhh]h)}(hFending offset, the last gpuva will start before this (but may overlap)h]hFending offset, the last gpuva will start before this (but may overlap)}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhj>fubeh}(h]h ]h"]h$]h&]uh1jhj"fubh)}(h**Description**h]j)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj"fubh)}(hXThis iterator walks over all :c:type:`drm_gpuvas` in the :c:type:`drm_gpuvm` that lie between **start__** and **end__**. It is implemented similarly to list_for_each_safe(), but is using the :c:type:`drm_gpuvm`'s internal interval tree to accelerate the search for the starting :c:type:`drm_gpuva`, and hence is safe against removal of elements. It assumes that **end__** is within (or is the upper limit of) the :c:type:`drm_gpuvm`. This iterator does not skip over the :c:type:`drm_gpuvm`'s **kernel_alloc_node**.h](hThis iterator walks over all }(hjghhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjgh]h drm_gpuvas}(hjghhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjgubh in the }(hjghhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj hh]h drm_gpuvm}(hjhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj hubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhhMhjgubh that lie between }(hjghhhNhNubj)}(h **start__**h]hstart__}(hj-hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh and }(hjghhhNhNubj)}(h **end__**h]hend__}(hj?hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubhH. It is implemented similarly to list_for_each_safe(), but is using the }(hjghhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjShh]h drm_gpuvm}(hjUhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjQhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhhMhjgubhF’s internal interval tree to accelerate the search for the starting }(hjghhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjvhh]h drm_gpuva}(hjxhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjthubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjhhMhjgubhA, and hence is safe against removal of elements. It assumes that }(hjghhhNhNubj)}(h **end__**h]hend__}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh* is within (or is the upper limit of) the }(hjghhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjhh]h drm_gpuvm}(hjhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhhMhjgubh'. This iterator does not skip over the }(hjghhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjhh]h drm_gpuvm}(hjhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhhMhjgubh’s }(hjghhhNhNubj)}(h**kernel_alloc_node**h]hkernel_alloc_node}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhhMhj"fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_for_each_va (C macro)c.drm_gpuvm_for_each_vahNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuvm_for_each_vah]jR)}(hdrm_gpuvm_for_each_vah]j{)}(hdrm_gpuvm_for_each_vah]j)}(hj!ih]hdrm_gpuvm_for_each_va}(hj+ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'iubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#ihhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjihhhj>ihMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jKhj>ihMhjihhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjihhhj>ihMubeh}(h]h ](jmacroeh"]h$]h&]jjjjWijjWijjjuh1jFhhhj@hNhNubh)}(h)``drm_gpuvm_for_each_va (va__, gpuvm__)``h]j)}(hj]ih]h%drm_gpuvm_for_each_va (va__, gpuvm__)}(hj_ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[iubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubj)}(h&iterate over all :c:type:`drm_gpuvas` h]h)}(h%iterate over all :c:type:`drm_gpuvas`h](hiterate over all }(hjwihhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjih]h drm_gpuvas}(hjihhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjwiubeh}(h]h ]h"]h$]h&]uh1hhjihMhjsiubah}(h]h ]h"]h$]h&]uh1jhjihMhj@hhubj)}(h**Parameters** ``va__`` :c:type:`drm_gpuva` to assign to in each iteration step ``gpuvm__`` :c:type:`drm_gpuvm` to walk over **Description** This iterator walks over all :c:type:`drm_gpuva` structures associated with the given :c:type:`drm_gpuvm`.h](h)}(h**Parameters**h]j)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjiubj)}(hhh](j)}(hA``va__`` :c:type:`drm_gpuva` to assign to in each iteration step h](j)}(h``va__``h]j)}(hjih]hva__}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjiubj)}(hhh]h)}(h7:c:type:`drm_gpuva` to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j)}(hjih]h drm_gpuva}(hjihhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjihMhjiubh$ to assign to in each iteration step}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMhjiubj)}(h-``gpuvm__`` :c:type:`drm_gpuvm` to walk over h](j)}(h ``gpuvm__``h]j)}(hj(jh]hgpuvm__}(hj*jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&jubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj"jubj)}(hhh]h)}(h :c:type:`drm_gpuvm` to walk overh](h)}(h:c:type:`drm_gpuvm`h]j)}(hjGjh]h drm_gpuvm}(hjIjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjEjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj=jhMhjAjubh to walk over}(hjAjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj=jhMhj>jubah}(h]h ]h"]h$]h&]uh1jhj"jubeh}(h]h ]h"]h$]h&]uh1jhj=jhMhjiubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]j)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjiubh)}(hjThis iterator walks over all :c:type:`drm_gpuva` structures associated with the given :c:type:`drm_gpuvm`.h](hThis iterator walks over all }(hjjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjjh]h drm_gpuva}(hjjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjjubh& structures associated with the given }(hjjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjjh]h drm_gpuvm}(hjjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjjhMhjjubh.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjhMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_gpuvm_for_each_va_safe (C macro)c.drm_gpuvm_for_each_va_safehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuvm_for_each_va_safeh]jR)}(hdrm_gpuvm_for_each_va_safeh]j{)}(hdrm_gpuvm_for_each_va_safeh]j)}(hjkh]hdrm_gpuvm_for_each_va_safe}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj khhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjkhhhj$khMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1jKhj$khMhjkhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjkhhhj$khMubeh}(h]h ](jmacroeh"]h$]h&]jjjj=kjj=kjjjuh1jFhhhj@hNhNubh)}(h6``drm_gpuvm_for_each_va_safe (va__, next__, gpuvm__)``h]j)}(hjCkh]h2drm_gpuvm_for_each_va_safe (va__, next__, gpuvm__)}(hjEkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAkubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubj)}(h-safely iterate over all :c:type:`drm_gpuvas` h]h)}(h,safely iterate over all :c:type:`drm_gpuvas`h](hsafely iterate over all }(hj]khhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjgkh]h drm_gpuvas}(hjikhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjekubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj]kubeh}(h]h ]h"]h$]h&]uh1hhjkhMhjYkubah}(h]h ]h"]h$]h&]uh1jhjkhMhj@hhubj)}(hX**Parameters** ``va__`` :c:type:`drm_gpuva` to assign to in each iteration step ``next__`` another :c:type:`drm_gpuva` to use as temporary storage ``gpuvm__`` :c:type:`drm_gpuvm` to walk over **Description** This iterator walks over all :c:type:`drm_gpuva` structures associated with the given :c:type:`drm_gpuvm`. It is implemented with list_for_each_entry_safe(), and hence safe against the removal of elements.h](h)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjkubj)}(hhh](j)}(hA``va__`` :c:type:`drm_gpuva` to assign to in each iteration step h](j)}(h``va__``h]j)}(hjkh]hva__}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjkubj)}(hhh]h)}(h7:c:type:`drm_gpuva` to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j)}(hjkh]h drm_gpuva}(hjkhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjkhMhjkubh$ to assign to in each iteration step}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjkubj)}(hC``next__`` another :c:type:`drm_gpuva` to use as temporary storage h](j)}(h ``next__``h]j)}(hjlh]hnext__}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj lubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjlubj)}(hhh]h)}(h7another :c:type:`drm_gpuva` to use as temporary storageh](hanother }(hj'lhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj1lh]h drm_gpuva}(hj3lhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj/lubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj#lhMhj'lubh to use as temporary storage}(hj'lhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#lhMhj$lubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhj#lhMhjkubj)}(h-``gpuvm__`` :c:type:`drm_gpuvm` to walk over h](j)}(h ``gpuvm__``h]j)}(hjjlh]hgpuvm__}(hjllhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhlubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjdlubj)}(hhh]h)}(h :c:type:`drm_gpuvm` to walk overh](h)}(h:c:type:`drm_gpuvm`h]j)}(hjlh]h drm_gpuvm}(hjlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjlhMhjlubh to walk over}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjdlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjkubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h**Description**h]j)}(hjlh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjkubh)}(hThis iterator walks over all :c:type:`drm_gpuva` structures associated with the given :c:type:`drm_gpuvm`. It is implemented with list_for_each_entry_safe(), and hence safe against the removal of elements.h](hThis iterator walks over all }(hjlhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjlh]h drm_gpuva}(hjlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjlubh& structures associated with the given }(hjlhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjmh]h drm_gpuvm}(hj mhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjmhMhjlubhd. It is implemented with list_for_each_entry_safe(), and hence safe against the removal of elements.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjmhMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_exec (C struct)c.drm_gpuvm_exechNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuvm_exech]jR)}(hstruct drm_gpuvm_exech](jX)}(hjh]hstruct}(hjOmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjKmhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM ubjj)}(h h]h }(hj]mhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjKmhhhj\mhM ubj{)}(hdrm_gpuvm_exech]j)}(hjImh]hdrm_gpuvm_exec}(hjomhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKmhhhj\mhM ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjGmhhhj\mhM ubah}(h]jBmah ](jjeh"]h$]h&]jj)jhuh1jKhj\mhM hjDmhhubj)}(hhh]h)}(h5:c:type:`drm_gpuvm` abstraction of :c:type:`drm_exec`h](h)}(h:c:type:`drm_gpuvm`h]j)}(hjmh]h drm_gpuvm}(hjmhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j4)}j'jImsbc.drm_gpuvm_execasbja drm_gpuvmuh1hhjIhKhjmubh abstraction of }(hjmhhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hjmh]hdrm_exec}(hjmhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+jmjadrm_execuh1hhjIhKhjmubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjmhhubah}(h]h ]h"]h$]h&]uh1jhjDmhhhj\mhM ubeh}(h]h ](jstructeh"]h$]h&]jjjjmjjmjjjuh1jFhhhj@hNhNubj)}(hX0**Definition**:: struct drm_gpuvm_exec { struct drm_exec exec; u32 flags; struct drm_gpuvm *vm; unsigned int num_fences; struct { int (*fn)(struct drm_gpuvm_exec *vm_exec); void *priv; } extra; }; **Members** ``exec`` the :c:type:`drm_exec` structure ``flags`` the flags for the struct drm_exec ``vm`` the :c:type:`drm_gpuvm` to lock its DMA reservations ``num_fences`` the number of fences to reserve for the :c:type:`dma_resv` of the locked :c:type:`drm_gem_objects` ``extra`` Callback and corresponding private data for the driver to lock arbitrary additional :c:type:`drm_gem_objects`. ``extra.fn`` The driver callback to lock additional :c:type:`drm_gem_objects`. ``extra.priv`` driver private data for the **fn** callbackh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh:}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjmubjh)}(hstruct drm_gpuvm_exec { struct drm_exec exec; u32 flags; struct drm_gpuvm *vm; unsigned int num_fences; struct { int (*fn)(struct drm_gpuvm_exec *vm_exec); void *priv; } extra; };h]hstruct drm_gpuvm_exec { struct drm_exec exec; u32 flags; struct drm_gpuvm *vm; unsigned int num_fences; struct { int (*fn)(struct drm_gpuvm_exec *vm_exec); void *priv; } extra; };}hjnsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjmubh)}(h **Members**h]j)}(hj$nh]hMembers}(hj&nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"nubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM hjmubj)}(hhh](j)}(h*``exec`` the :c:type:`drm_exec` structure h](j)}(h``exec``h]j)}(hjCnh]hexec}(hjEnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAnubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj=nubj)}(hhh]h)}(h the :c:type:`drm_exec` structureh](hthe }(hj\nhhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hjfnh]hdrm_exec}(hjhnhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjdnubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhjXnhMhj\nubh structure}(hj\nhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjXnhMhjYnubah}(h]h ]h"]h$]h&]uh1jhj=nubeh}(h]h ]h"]h$]h&]uh1jhjXnhMhj:nubj)}(h,``flags`` the flags for the struct drm_exec h](j)}(h ``flags``h]j)}(hjnh]hflags}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjnubj)}(hhh]h)}(h!the flags for the struct drm_exech]h!the flags for the struct drm_exec}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhj:nubj)}(h<``vm`` the :c:type:`drm_gpuvm` to lock its DMA reservations h](j)}(h``vm``h]j)}(hjnh]hvm}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM"hjnubj)}(hhh]h)}(h4the :c:type:`drm_gpuvm` to lock its DMA reservationsh](hthe }(hjnhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjnh]h drm_gpuvm}(hjnhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjnhM"hjnubh to lock its DMA reservations}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhM"hjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhM"hj:nubj)}(hr``num_fences`` the number of fences to reserve for the :c:type:`dma_resv` of the locked :c:type:`drm_gem_objects` h](j)}(h``num_fences``h]j)}(hj4oh]h num_fences}(hj6ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2oubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM(hj.oubj)}(hhh]h)}(hbthe number of fences to reserve for the :c:type:`dma_resv` of the locked :c:type:`drm_gem_objects`h](h(the number of fences to reserve for the }(hjMohhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjWoh]hdma_resv}(hjYohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjUoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM'hjMoubh of the locked }(hjMohhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hj{oh]hdrm_gem_objects}(hj}ohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjyoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhjtohM'hjMoubeh}(h]h ]h"]h$]h&]uh1hhjtohM'hjJoubah}(h]h ]h"]h$]h&]uh1jhj.oubeh}(h]h ]h"]h$]h&]uh1jhjIohM(hj:nubj)}(hy``extra`` Callback and corresponding private data for the driver to lock arbitrary additional :c:type:`drm_gem_objects`. h](j)}(h ``extra``h]j)}(hjoh]hextra}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM.hjoubj)}(hhh]h)}(hnCallback and corresponding private data for the driver to lock arbitrary additional :c:type:`drm_gem_objects`.h](hTCallback and corresponding private data for the driver to lock arbitrary additional }(hjohhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjoh]hdrm_gem_objects}(hjohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM-hjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjohM-hjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohM.hj:nubj)}(hO``extra.fn`` The driver callback to lock additional :c:type:`drm_gem_objects`. h](j)}(h ``extra.fn``h]j)}(hj ph]hextra.fn}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhj pubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM3hjpubj)}(hhh]h)}(hAThe driver callback to lock additional :c:type:`drm_gem_objects`.h](h'The driver callback to lock additional }(hj&phhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hj0ph]hdrm_gem_objects}(hj2phhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj.pubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM2hj&pubh.}(hj&phhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMphM2hj#pubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhj"phM3hj:nubj)}(h:``extra.priv`` driver private data for the **fn** callbackh](j)}(h``extra.priv``h]j)}(hjjph]h extra.priv}(hjlphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhpubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM7hjdpubj)}(hhh]h)}(h+driver private data for the **fn** callbackh](hdriver private data for the }(hjphhhNhNubj)}(h**fn**h]hfn}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh callback}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM8hjpubah}(h]h ]h"]h$]h&]uh1jhjdpubeh}(h]h ]h"]h$]h&]uh1jhjphM7hj:nubeh}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM;hj@hhubh)}(hNThis structure should be created on the stack as :c:type:`drm_exec` should be.h](h1This structure should be created on the stack as }(hjphhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hjph]hdrm_exec}(hjphhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjpubh should be.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphMhj@hhubh)}(hWOptionally, **extra** can be set in order to lock additional :c:type:`drm_gem_objects`.h](h Optionally, }(hjqhhhNhNubj)}(h **extra**h]hextra}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh( can be set in order to lock additional }(hjqhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hj#qh]hdrm_gem_objects}(hj%qhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj!qubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjqubh.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@qhMhj@hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_gpuvm_exec_unlock (C function)c.drm_gpuvm_exec_unlockhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h;void drm_gpuvm_exec_unlock (struct drm_gpuvm_exec *vm_exec)h]jR)}(h:void drm_gpuvm_exec_unlock(struct drm_gpuvm_exec *vm_exec)h](j)}(hvoidh]hvoid}(hjdqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`qhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMTubjj)}(h h]h }(hjsqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj`qhhhjrqhMTubj{)}(hdrm_gpuvm_exec_unlockh]j)}(hdrm_gpuvm_exec_unlockh]hdrm_gpuvm_exec_unlock}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj`qhhhjrqhMTubj)}(h (struct drm_gpuvm_exec *vm_exec)h]j)}(hstruct drm_gpuvm_exec *vm_exech](jX)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqubjj)}(h h]h }(hjqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjqubh)}(hhh]j)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjqmodnameN classnameNj+j.)}j1]j4)}j'jqsbc.drm_gpuvm_exec_unlockasbuh1hhjqubjj)}(h h]h }(hjqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjqubjH)}(hjKh]h*}(hjqhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjqubj)}(hvm_exech]hvm_exec}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhj`qhhhjrqhMTubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj\qhhhjrqhMTubah}(h]jWqah ](jjeh"]h$]h&]jj)jhuh1jKhjrqhMThjYqhhubj)}(hhh]h)}(h(lock all dma-resv of all assoiciated BOsh]h(lock all dma-resv of all assoiciated BOs}(hj$rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMThj!rhhubah}(h]h ]h"]h$]h&]uh1jhjYqhhhjrqhMTubeh}(h]h ](jfunctioneh"]h$]h&]jjjj``kref`` The reference count for this :c:type:`drm_gpuvm_bo`. h](j)}(h``kref``h]j)}(hjzh]hkref}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjzubj)}(hhh]h)}(h4The reference count for this :c:type:`drm_gpuvm_bo`.h](hThe reference count for this }(hj{hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj{h]h drm_gpuvm_bo}(hj!{hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhj{hMhj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{hMhj{ubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjyubj)}(h8``list`` Structure containing all :c:type:`list_heads`. h](j)}(h``list``h]j)}(hjX{h]hlist}(hjZ{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV{ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjR{ubj)}(hhh]h)}(h.Structure containing all :c:type:`list_heads`.h](hStructure containing all }(hjq{hhhNhNubh)}(h:c:type:`list_heads`h]j)}(hj{{h]h list_heads}(hj}{hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjy{ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja list_headsuh1hhjm{hMhjq{ubh.}(hjq{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjm{hMhjn{ubah}(h]h ]h"]h$]h&]uh1jhjR{ubeh}(h]h ]h"]h$]h&]uh1jhjm{hMhjyubj)}(h``list.gpuva`` The list of linked :c:type:`drm_gpuvas`. It is safe to access entries from this list as long as the GEM's gpuva lock is held. See also struct drm_gem_object. h](j)}(h``list.gpuva``h]j)}(hj{h]h list.gpuva}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj{ubj)}(hhh](h)}(h(The list of linked :c:type:`drm_gpuvas`.h](hThe list of linked }(hj{hhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hj{h]h drm_gpuvas}(hj{hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{hMhj{ubh)}(htIt is safe to access entries from this list as long as the GEM's gpuva lock is held. See also struct drm_gem_object.h]hvIt is safe to access entries from this list as long as the GEM’s gpuva lock is held. See also struct drm_gem_object.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjyubj)}(hO``list.entry`` Structure containing all :c:type:`list_heads` serving as entry. h](j)}(h``list.entry``h]j)}(hj |h]h list.entry}(hj"|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj|ubj)}(hhh]h)}(h?Structure containing all :c:type:`list_heads` serving as entry.h](hStructure containing all }(hj9|hhhNhNubh)}(h:c:type:`list_heads`h]j)}(hjC|h]h list_heads}(hjE|hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjA|ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja list_headsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj9|ubh serving as entry.}(hj9|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`|hMhj6|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj5|hMhjyubj)}(hU``list.entry.gem`` List entry to attach to the :c:type:`drm_gem_objects` gpuva list. h](j)}(h``list.entry.gem``h]j)}(hj}|h]hlist.entry.gem}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{|ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjw|ubj)}(hhh]h)}(hAList entry to attach to the :c:type:`drm_gem_objects` gpuva list.h](hList entry to attach to the }(hj|hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hj|h]hdrm_gem_objects}(hj|hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj|ubh gpuva list.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhjw|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjyubj)}(hR``list.entry.evict`` List entry to attach to the :c:type:`drm_gpuvms` evict list. h](j)}(h``list.entry.evict``h]j)}(hj|h]hlist.entry.evict}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj|ubj)}(hhh]h)}(h` pointerh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]j)}(hV``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to acquire the reference of h](j)}(h``struct drm_gpuvm_bo *vm_bo``h]j)}(hjh]hstruct drm_gpuvm_bo *vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]h)}(h6the :c:type:`drm_gpuvm_bo` to acquire the reference ofh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjhMhjubh to acquire the reference of}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh)}(hThis function acquires an additional reference to **vm_bo**. It is illegal to call this without already holding a reference. No locks required.h](h2This function acquires an additional reference to }(hjWhhhNhNubj)}(h **vm_bo**h]hvm_bo}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubhT. It is illegal to call this without already holding a reference. No locks required.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh)}(h **Return**h]j)}(hjzh]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh)}(h*the :c:type:`struct vm_bo ` pointerh](hthe }(hjhhhNhNubh)}(h:c:type:`struct vm_bo `h]j)}(hjh]h struct vm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^javm_bouh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh pointer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_gpuvm_bo_gem_evict (C function)c.drm_gpuvm_bo_gem_evicthNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hDvoid drm_gpuvm_bo_gem_evict (struct drm_gem_object *obj, bool evict)h]jR)}(hCvoid drm_gpuvm_bo_gem_evict(struct drm_gem_object *obj, bool evict)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjހhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjހhhhjhMubj{)}(hdrm_gpuvm_bo_gem_evicth]j)}(hdrm_gpuvm_bo_gem_evicth]hdrm_gpuvm_bo_gem_evict}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjހhhhjhMubj)}(h((struct drm_gem_object *obj, bool evict)h](j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj?modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_bo_gem_evictasbuh1hhjubjj)}(h h]h }(hj]hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjkhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool evicth](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hevicth]hevict}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjހhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjڀhhhjhMubah}(h]jՀah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhj׀hhubj)}(hhh]h)}(haadd/remove all :c:type:`drm_gpuvm_bo`'s in the list to/from the :c:type:`drm_gpuvms` evicted listh](hadd/remove all }(hjցhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjށubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jYc.drm_gpuvm_bo_gem_evictasbja drm_gpuvm_bouh1hhjIhKhjցubh’s in the list to/from the }(hjցhhhNhNubh)}(h:c:type:`drm_gpuvms`h]j)}(hjh]h drm_gpuvms}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+jja drm_gpuvmsuh1hhjIhKhjցubh evicted list}(hjցhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjӁhhubah}(h]h ]h"]h$]h&]uh1jhj׀hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jFhhhj@hNhNubj)}(h**Parameters** ``struct drm_gem_object *obj`` the :c:type:`drm_gem_object` ``bool evict`` indicates whether **obj** is evicted **Description** See drm_gpuvm_bo_evict().h](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj=ubj)}(hhh](j)}(h<``struct drm_gem_object *obj`` the :c:type:`drm_gem_object` h](j)}(h``struct drm_gem_object *obj``h]j)}(hjbh]hstruct drm_gem_object *obj}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj\ubj)}(hhh]h)}(hthe :c:type:`drm_gem_object`h](hthe }(hj{hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjwhMhj{ubeh}(h]h ]h"]h$]h&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjYubj)}(h4``bool evict`` indicates whether **obj** is evicted h](j)}(h``bool evict``h]j)}(hjh]h bool evict}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]h)}(h$indicates whether **obj** is evictedh](hindicates whether }(hjӂhhhNhNubj)}(h**obj**h]hobj}(hjۂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӂubh is evicted}(hjӂhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjςhMhjЂubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjςhMhjYubeh}(h]h ]h"]h$]h&]uh1jhj=ubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM hj=ubh)}(hSee drm_gpuvm_bo_evict().h]hSee drm_gpuvm_bo_evict().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_gpuvm_bo_for_each_va (C macro)c.drm_gpuvm_bo_for_each_vahNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuvm_bo_for_each_vah]jR)}(hdrm_gpuvm_bo_for_each_vah]j{)}(hdrm_gpuvm_bo_for_each_vah]j)}(hjFh]hdrm_gpuvm_bo_for_each_va}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjDhhhjchMubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1jKhjchMhjAhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjAhhhjchMubeh}(h]h ](jmacroeh"]h$]h&]jjjj|jj|jjjuh1jFhhhj@hNhNubh)}(h,``drm_gpuvm_bo_for_each_va (va__, vm_bo__)``h]j)}(hjh]h(drm_gpuvm_bo_for_each_va (va__, vm_bo__)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubj)}(h4iterator to walk over a list of :c:type:`drm_gpuva` h]h)}(h3iterator to walk over a list of :c:type:`drm_gpuva`h](h iterator to walk over a list of }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ]h"]h$]h&]uh1hhjÃhMhjubah}(h]h ]h"]h$]h&]uh1jhjÃhMhj@hhubj)}(hX`**Parameters** ``va__`` :c:type:`drm_gpuva` structure to assign to in each iteration step ``vm_bo__`` the :c:type:`drm_gpuvm_bo` the :c:type:`drm_gpuva` to walk are associated with **Description** This iterator walks over all :c:type:`drm_gpuva` structures associated with the :c:type:`drm_gpuvm_bo`. The caller must hold the GEM's gpuva lock.h](h)}(h**Parameters**h]j)}(hjփh]h Parameters}(hj؃hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԃubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjЃubj)}(hhh](j)}(hK``va__`` :c:type:`drm_gpuva` structure to assign to in each iteration step h](j)}(h``va__``h]j)}(hjh]hva__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]h)}(hA:c:type:`drm_gpuva` structure to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj hMhjubh. structure to assign to in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h[``vm_bo__`` the :c:type:`drm_gpuvm_bo` the :c:type:`drm_gpuva` to walk are associated with h](j)}(h ``vm_bo__``h]j)}(hjMh]hvm_bo__}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjGubj)}(hhh]h)}(hNthe :c:type:`drm_gpuvm_bo` the :c:type:`drm_gpuva` to walk are associated withh](hthe }(hjfhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjph]h drm_gpuvm_bo}(hjrhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjbhMhjfubh the }(hjfhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjbhMhjfubh to walk are associated with}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjubeh}(h]h ]h"]h$]h&]uh1jhjЃubh)}(h**Description**h]j)}(hj΄h]h Description}(hjЄhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̄ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjЃubh)}(hgThis iterator walks over all :c:type:`drm_gpuva` structures associated with the :c:type:`drm_gpuvm_bo`.h](hThis iterator walks over all }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh structures associated with the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhj hMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhjЃubh)}(h*The caller must hold the GEM's gpuva lock.h]h,The caller must hold the GEM’s gpuva lock.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjЃubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_gpuvm_bo_for_each_va_safe (C macro)c.drm_gpuvm_bo_for_each_va_safehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuvm_bo_for_each_va_safeh]jR)}(hdrm_gpuvm_bo_for_each_va_safeh]j{)}(hdrm_gpuvm_bo_for_each_va_safeh]j)}(hjbh]hdrm_gpuvm_bo_for_each_va_safe}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM&ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhj`hhhjhM&ubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jKhjhM&hj]hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj]hhhjhM&ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubh)}(h9``drm_gpuvm_bo_for_each_va_safe (va__, next__, vm_bo__)``h]j)}(hjh]h5drm_gpuvm_bo_for_each_va_safe (va__, next__, vm_bo__)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM(hj@hhubj)}(h;iterator to safely walk over a list of :c:type:`drm_gpuva` h]h)}(h:iterator to safely walk over a list of :c:type:`drm_gpuva`h](h'iterator to safely walk over a list of }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj…h]h drm_gpuva}(hjąhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM&hjubeh}(h]h ]h"]h$]h&]uh1hhj߅hM&hjubah}(h]h ]h"]h$]h&]uh1jhj߅hM&hj@hhubj)}(hX **Parameters** ``va__`` :c:type:`drm_gpuva` structure to assign to in each iteration step ``next__`` :c:type:`next` :c:type:`drm_gpuva` to store the next step ``vm_bo__`` the :c:type:`drm_gpuvm_bo` the :c:type:`drm_gpuva` to walk are associated with **Description** This iterator walks over all :c:type:`drm_gpuva` structures associated with the :c:type:`drm_gpuvm_bo`. It is implemented with list_for_each_entry_safe(), hence it is save against removal of elements. The caller must hold the GEM's gpuva lock.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM*hjubj)}(hhh](j)}(hK``va__`` :c:type:`drm_gpuva` structure to assign to in each iteration step h](j)}(h``va__``h]j)}(hjh]hva__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM(hj ubj)}(hhh]h)}(hA:c:type:`drm_gpuva` structure to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j)}(hj0h]h drm_gpuva}(hj2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj&hM(hj*ubh. structure to assign to in each iteration step}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&hM(hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hM(hjubj)}(hE``next__`` :c:type:`next` :c:type:`drm_gpuva` to store the next step h](j)}(h ``next__``h]j)}(hjih]hnext__}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM)hjcubj)}(hhh]h)}(h9:c:type:`next` :c:type:`drm_gpuva` to store the next steph](h)}(h:c:type:`next`h]j)}(hjh]hnext}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^janextuh1hhj~hM)hjubh }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj~hM)hjubh to store the next step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hM)hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM)hjubj)}(h[``vm_bo__`` the :c:type:`drm_gpuvm_bo` the :c:type:`drm_gpuva` to walk are associated with h](j)}(h ``vm_bo__``h]j)}(hjh]hvm_bo__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM*hjކubj)}(hhh]h)}(hNthe :c:type:`drm_gpuvm_bo` the :c:type:`drm_gpuva` to walk are associated withh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjhM*hjubh the }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj*h]h drm_gpuva}(hj,hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjhM*hjubh to walk are associated with}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1jhjކubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM,hjubh)}(hThis iterator walks over all :c:type:`drm_gpuva` structures associated with the :c:type:`drm_gpuvm_bo`. It is implemented with list_for_each_entry_safe(), hence it is save against removal of elements.h](hThis iterator walks over all }(hj{hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM+hj{ubh structures associated with the }(hj{hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjhM+hj{ubhb. It is implemented with list_for_each_entry_safe(), hence it is save against removal of elements.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM+hjubh)}(h*The caller must hold the GEM's gpuva lock.h]h,The caller must hold the GEM’s gpuva lock.}(hjЇhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_op_type (C enum)c.drm_gpuva_op_typehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_op_typeh]jR)}(henum drm_gpuva_op_typeh](jX)}(hj[h]henum}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM4ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hM4ubj{)}(hdrm_gpuva_op_typeh]j)}(hjh]hdrm_gpuva_op_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hM4ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj hM4ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hM4hjhhubj)}(hhh]h)}(hGPU VA operation typeh]hGPU VA operation type}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM6hj>hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM4ubeh}(h]h ](jenumeh"]h$]h&]jjjjYjjYjjjuh1jFhhhj@hNhNubj)}(h**Constants** ``DRM_GPUVA_OP_MAP`` the map op type ``DRM_GPUVA_OP_REMAP`` the remap op type ``DRM_GPUVA_OP_UNMAP`` the unmap op type ``DRM_GPUVA_OP_PREFETCH`` the prefetch op type ``DRM_GPUVA_OP_DRIVER`` the driver defined op typeh](h)}(h **Constants**h]j)}(hjch]h Constants}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM:hj]ubj)}(hhh](j)}(h%``DRM_GPUVA_OP_MAP`` the map op type h](j)}(h``DRM_GPUVA_OP_MAP``h]j)}(hjh]hDRM_GPUVA_OP_MAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM=hj|ubj)}(hhh]h)}(hthe map op typeh]hthe map op type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjyubj)}(h)``DRM_GPUVA_OP_REMAP`` the remap op type h](j)}(h``DRM_GPUVA_OP_REMAP``h]j)}(hjh]hDRM_GPUVA_OP_REMAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM@hjubj)}(hhh]h)}(hthe remap op typeh]hthe remap op type}(hjԈhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjЈhM@hjшubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjЈhM@hjyubj)}(h)``DRM_GPUVA_OP_UNMAP`` the unmap op type h](j)}(h``DRM_GPUVA_OP_UNMAP``h]j)}(hjh]hDRM_GPUVA_OP_UNMAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMChjubj)}(hhh]h)}(hthe unmap op typeh]hthe unmap op type}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMChj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMChjyubj)}(h/``DRM_GPUVA_OP_PREFETCH`` the prefetch op type h](j)}(h``DRM_GPUVA_OP_PREFETCH``h]j)}(hj-h]hDRM_GPUVA_OP_PREFETCH}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMFhj'ubj)}(hhh]h)}(hthe prefetch op typeh]hthe prefetch op type}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMFhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMFhjyubj)}(h2``DRM_GPUVA_OP_DRIVER`` the driver defined op typeh](j)}(h``DRM_GPUVA_OP_DRIVER``h]j)}(hjfh]hDRM_GPUVA_OP_DRIVER}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMHhj`ubj)}(hhh]h)}(hthe driver defined op typeh]hthe driver defined op type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMIhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMHhjyubeh}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMKhj@hhubh)}(hKOperations to alter the GPU VA mappings tracked by the :c:type:`drm_gpuvm`.h](h7Operations to alter the GPU VA mappings tracked by the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjɉh]h drm_gpuvm}(hjˉhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjljubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM7hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM7hj@hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_op_map (C struct)c.drm_gpuva_op_maphNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_op_maph]jR)}(hstruct drm_gpuva_op_maph](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM<ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM<ubj{)}(hdrm_gpuva_op_maph]j)}(hjh]hdrm_gpuva_op_map}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM<ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhM<ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM<hjhhubj)}(hhh]h)}(hGPU VA map operationh]hGPU VA map operation}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMVhjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM<ubeh}(h]h ](jstructeh"]h$]h&]jjjjdjjdjjjuh1jFhhhj@hNhNubj)}(hXA**Definition**:: struct drm_gpuva_op_map { struct { u64 addr; u64 range; } va; struct { u64 offset; struct drm_gem_object *obj; } gem; }; **Members** ``va`` structure containing address and range of a map operation ``va.addr`` the base address of the new mapping ``va.range`` the range of the new mapping ``gem`` structure containing the :c:type:`drm_gem_object` and its offset ``gem.offset`` the offset within the :c:type:`drm_gem_object` ``gem.obj`` the :c:type:`drm_gem_object` to maph](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh:}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMZhjhubjh)}(hstruct drm_gpuva_op_map { struct { u64 addr; u64 range; } va; struct { u64 offset; struct drm_gem_object *obj; } gem; };h]hstruct drm_gpuva_op_map { struct { u64 addr; u64 range; } va; struct { u64 offset; struct drm_gem_object *obj; } gem; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM\hjhubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMghjhubj)}(hhh](j)}(hA``va`` structure containing address and range of a map operation h](j)}(h``va``h]j)}(hjh]hva}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM_hjubj)}(hhh]h)}(h9structure containing address and range of a map operationh]h9structure containing address and range of a map operation}(hjҊhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM^hjϊubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjΊhM_hjubj)}(h0``va.addr`` the base address of the new mapping h](j)}(h ``va.addr``h]j)}(hjh]hva.addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMchjubj)}(hhh]h)}(h#the base address of the new mappingh]h#the base address of the new mapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMchj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjubj)}(h*``va.range`` the range of the new mapping h](j)}(h ``va.range``h]j)}(hj,h]hva.range}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhhj&ubj)}(hhh]h)}(hthe range of the new mappingh]hthe range of the new mapping}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhhjubj)}(hI``gem`` structure containing the :c:type:`drm_gem_object` and its offset h](j)}(h``gem``h]j)}(hjeh]hgem}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMnhj_ubj)}(hhh]h)}(h@structure containing the :c:type:`drm_gem_object` and its offseth](hstructure containing the }(hj~hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjzhMnhj~ubh and its offset}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMnhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMnhjubj)}(h>``gem.offset`` the offset within the :c:type:`drm_gem_object` h](j)}(h``gem.offset``h]j)}(hjh]h gem.offset}(hjËhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMrhjubj)}(hhh]h)}(h.the offset within the :c:type:`drm_gem_object`h](hthe offset within the }(hjڋhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj֋hMrhjڋubeh}(h]h ]h"]h$]h&]uh1hhj֋hMrhj׋ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj֋hMrhjubj)}(h/``gem.obj`` the :c:type:`drm_gem_object` to maph](j)}(h ``gem.obj``h]j)}(hjh]hgem.obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMvhjubj)}(hhh]h)}(h#the :c:type:`drm_gem_object` to maph](hthe }(hj2hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj<h]hdrm_gem_object}(hj>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMwhj2ubh to map}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjYhMwhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMvhjubeh}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMzhj@hhubh)}(hUThis structure represents a single map operation generated by the DRM GPU VA manager.h]hUThis structure represents a single map operation generated by the DRM GPU VA manager.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMWhj@hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_op_unmap (C struct)c.drm_gpuva_op_unmaphNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_op_unmaph]jR)}(hstruct drm_gpuva_op_unmaph](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM]ubjj)}(h h]h }(hjˌhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjʌhM]ubj{)}(hdrm_gpuva_op_unmaph]j)}(hjh]hdrm_gpuva_op_unmap}(hj݌hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٌubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjʌhM]ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjʌhM]ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjʌhM]hjhhubj)}(hhh]h)}(hGPU VA unmap operationh]hGPU VA unmap operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM}hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjʌhM]ubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hX**Definition**:: struct drm_gpuva_op_unmap { struct drm_gpuva *va; bool keep; }; **Members** ``va`` the :c:type:`drm_gpuva` to unmap ``keep`` Indicates whether this :c:type:`drm_gpuva` is physically contiguous with the original mapping request. Optionally, if :c:type:`keep` is set, drivers may keep the actual page table mappings for this :c:type:`drm_gpuva`, adding the missing page table entries only and update the :c:type:`drm_gpuvm` accordingly.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubjh)}(hGstruct drm_gpuva_op_unmap { struct drm_gpuva *va; bool keep; };h]hGstruct drm_gpuva_op_unmap { struct drm_gpuva *va; bool keep; };}hj<sbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh)}(h **Members**h]j)}(hjMh]hMembers}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh](j)}(h(``va`` the :c:type:`drm_gpuva` to unmap h](j)}(h``va``h]j)}(hjlh]hva}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjfubj)}(hhh]h)}(h the :c:type:`drm_gpuva` to unmaph](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjhMhjubh to unmap}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(hX?``keep`` Indicates whether this :c:type:`drm_gpuva` is physically contiguous with the original mapping request. Optionally, if :c:type:`keep` is set, drivers may keep the actual page table mappings for this :c:type:`drm_gpuva`, adding the missing page table entries only and update the :c:type:`drm_gpuvm` accordingly.h](j)}(h``keep``h]j)}(hjȍh]hkeep}(hjʍhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƍubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh](h)}(hfIndicates whether this :c:type:`drm_gpuva` is physically contiguous with the original mapping request.h](hIndicates whether this }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh< is physically contiguous with the original mapping request.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjލubh)}(hOptionally, if :c:type:`keep` is set, drivers may keep the actual page table mappings for this :c:type:`drm_gpuva`, adding the missing page table entries only and update the :c:type:`drm_gpuvm` accordingly.h](hOptionally, if }(hjhhhNhNubh)}(h:c:type:`keep`h]j)}(hjh]hkeep}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jakeepuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubhB is set, drivers may keep the actual page table mappings for this }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjAh]h drm_gpuva}(hjChhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj:hMhjubh<, adding the missing page table entries only and update the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjdh]h drm_gpuvm}(hjfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj:hMhjubh accordingly.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:hMhjލubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjݍhMhjcubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubh)}(hWThis structure represents a single unmap operation generated by the DRM GPU VA manager.h]hWThis structure represents a single unmap operation generated by the DRM GPU VA manager.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM~hj@hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_op_remap (C struct)c.drm_gpuva_op_remaphNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_op_remaph]jR)}(hstruct drm_gpuva_op_remaph](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gpuva_op_remaph]j)}(hjގh]hdrm_gpuva_op_remap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj܎hhhjhMubah}(h]j׎ah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjَhhubj)}(hhh]h)}(hGPU VA remap operationh]hGPU VA remap operation}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj#hhubah}(h]h ]h"]h$]h&]uh1jhjَhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjj>jj>jjjuh1jFhhhj@hNhNubj)}(hX[**Definition**:: struct drm_gpuva_op_remap { struct drm_gpuva_op_map *prev; struct drm_gpuva_op_map *next; struct drm_gpuva_op_unmap *unmap; }; **Members** ``prev`` the preceding part of a split mapping ``next`` the subsequent part of a split mapping ``unmap`` the unmap operation for the original existing mappingh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh:}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjBubjh)}(hstruct drm_gpuva_op_remap { struct drm_gpuva_op_map *prev; struct drm_gpuva_op_map *next; struct drm_gpuva_op_unmap *unmap; };h]hstruct drm_gpuva_op_remap { struct drm_gpuva_op_map *prev; struct drm_gpuva_op_map *next; struct drm_gpuva_op_unmap *unmap; };}hjcsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjBubh)}(h **Members**h]j)}(hjth]hMembers}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjBubj)}(hhh](j)}(h/``prev`` the preceding part of a split mapping h](j)}(h``prev``h]j)}(hjh]hprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]h)}(h%the preceding part of a split mappingh]h%the preceding part of a split mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``next`` the subsequent part of a split mapping h](j)}(h``next``h]j)}(hj̏h]hnext}(hjΏhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʏubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjƏubj)}(hhh]h)}(h&the subsequent part of a split mappingh]h&the subsequent part of a split mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjƏubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``unmap`` the unmap operation for the original existing mappingh](j)}(h ``unmap``h]j)}(hjh]hunmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]h)}(h5the unmap operation for the original existing mappingh]h5the unmap operation for the original existing mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubh)}(hMThis represents a single remap operation generated by the DRM GPU VA manager.h]hMThis represents a single remap operation generated by the DRM GPU VA manager.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubh)}(hA remap operation is generated when an existing GPU VA mmapping is split up by inserting a new GPU VA mapping or by partially unmapping existent mapping(s), hence it consists of a maximum of two map and one unmap operation.h]hA remap operation is generated when an existing GPU VA mmapping is split up by inserting a new GPU VA mapping or by partially unmapping existent mapping(s), hence it consists of a maximum of two map and one unmap operation.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubh)}(hThe **unmap** operation takes care of removing the original existing mapping. **prev** is used to remap the preceding part, **next** the subsequent part.h](hThe }(hj|hhhNhNubj)}(h **unmap**h]hunmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubhA operation takes care of removing the original existing mapping. }(hj|hhhNhNubj)}(h**prev**h]hprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh& is used to remap the preceding part, }(hj|hhhNhNubj)}(h**next**h]hnext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh the subsequent part.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubh)}(hIf either a new mapping's start address is aligned with the start address of the old mapping or the new mapping's end address is aligned with the end address of the old mapping, either **prev** or **next** is NULL.h](hIf either a new mapping’s start address is aligned with the start address of the old mapping or the new mapping’s end address is aligned with the end address of the old mapping, either }(hjhhhNhNubj)}(h**prev**h]hprev}(hjɐhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh or }(hjhhhNhNubj)}(h**next**h]hnext}(hjېhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubh)}(hX<Note, the reason for a dedicated remap operation, rather than arbitrary unmap and map operations, is to give drivers the chance of extracting driver specific data for creating the new mappings from the unmap operations's :c:type:`drm_gpuva` structure which typically is embedded in larger driver specific structures.h](hNote, the reason for a dedicated remap operation, rather than arbitrary unmap and map operations, is to give drivers the chance of extracting driver specific data for creating the new mappings from the unmap operations’s }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubhL structure which typically is embedded in larger driver specific structures.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj@hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gpuva_op_prefetch (C struct)c.drm_gpuva_op_prefetchhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_op_prefetchh]jR)}(hstruct drm_gpuva_op_prefetchh](jX)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj;hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubjj)}(h h]h }(hjMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;hhhjLhMubj{)}(hdrm_gpuva_op_prefetchh]j)}(hj9h]hdrm_gpuva_op_prefetch}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj;hhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj7hhhjLhMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1jKhjLhMhj4hhubj)}(hhh]h)}(hGPU VA prefetch operationh]hGPU VA prefetch operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj~hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhjLhMubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(h**Definition**:: struct drm_gpuva_op_prefetch { struct drm_gpuva *va; }; **Members** ``va`` the :c:type:`drm_gpuva` to prefetchh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubjh)}(h;struct drm_gpuva_op_prefetch { struct drm_gpuva *va; };h]h;struct drm_gpuva_op_prefetch { struct drm_gpuva *va; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh)}(h **Members**h]j)}(hjϑh]hMembers}(hjёhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͑ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]j)}(h*``va`` the :c:type:`drm_gpuva` to prefetchh](j)}(h``va``h]j)}(hjh]hva}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]h)}(h#the :c:type:`drm_gpuva` to prefetchh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh to prefetch}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj.hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubh)}(hZThis structure represents a single prefetch operation generated by the DRM GPU VA manager.h]hZThis structure represents a single prefetch operation generated by the DRM GPU VA manager.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_op (C struct)c.drm_gpuva_ophNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h drm_gpuva_oph]jR)}(hstruct drm_gpuva_oph](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(h drm_gpuva_oph]j)}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hGPU VA operationh]hGPU VA operation}(hjԒhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjђhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hX}**Definition**:: struct drm_gpuva_op { struct list_head entry; enum drm_gpuva_op_type op; union { struct drm_gpuva_op_map map; struct drm_gpuva_op_remap remap; struct drm_gpuva_op_unmap unmap; struct drm_gpuva_op_prefetch prefetch; }; }; **Members** ``entry`` The :c:type:`list_head` used to distribute instances of this struct within :c:type:`drm_gpuva_ops`. ``op`` the type of the operation ``{unnamed_union}`` anonymous ``map`` the map operation ``remap`` the remap operation ``unmap`` the unmap operation ``prefetch`` the prefetch operationh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubjh)}(hX struct drm_gpuva_op { struct list_head entry; enum drm_gpuva_op_type op; union { struct drm_gpuva_op_map map; struct drm_gpuva_op_remap remap; struct drm_gpuva_op_unmap unmap; struct drm_gpuva_op_prefetch prefetch; }; };h]hX struct drm_gpuva_op { struct list_head entry; enum drm_gpuva_op_type op; union { struct drm_gpuva_op_map map; struct drm_gpuva_op_remap remap; struct drm_gpuva_op_unmap unmap; struct drm_gpuva_op_prefetch prefetch; }; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh)}(h **Members**h]j)}(hj"h]hMembers}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh](j)}(hn``entry`` The :c:type:`list_head` used to distribute instances of this struct within :c:type:`drm_gpuva_ops`. h](j)}(h ``entry``h]j)}(hjAh]hentry}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj;ubj)}(hhh]h)}(hcThe :c:type:`list_head` used to distribute instances of this struct within :c:type:`drm_gpuva_ops`.h](hThe }(hjZhhhNhNubh)}(h:c:type:`list_head`h]j)}(hjdh]h list_head}(hjfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjZubh4 used to distribute instances of this struct within }(hjZhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhjhMhjZubh.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj8ubj)}(h!``op`` the type of the operation h](j)}(h``op``h]j)}(hjh]hop}(hjÓhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]h)}(hthe type of the operationh]hthe type of the operation}(hjړhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj֓hMhjדubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj֓hMhj8ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjubj)}(hhh]h)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj8ubj)}(h``map`` the map operation h](j)}(h``map``h]j)}(hj3h]hmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj-ubj)}(hhh]h)}(hthe map operationh]hthe map operation}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMhj8ubj)}(h``remap`` the remap operation h](j)}(h ``remap``h]j)}(hjlh]hremap}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjfubj)}(hhh]h)}(hthe remap operationh]hthe remap operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubj)}(h``unmap`` the unmap operation h](j)}(h ``unmap``h]j)}(hjh]hunmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]h)}(hthe unmap operationh]hthe unmap operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubj)}(h#``prefetch`` the prefetch operationh](j)}(h ``prefetch``h]j)}(hjޔh]hprefetch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܔubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjؔubj)}(hhh]h)}(hthe prefetch operationh]hthe prefetch operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjؔubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubh)}(h5This structure represents a single generic operation.h]h5This structure represents a single generic operation.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubh)}(h:The particular type of the operation is defined by **op**.h](h3The particular type of the operation is defined by }(hjFhhhNhNubj)}(h**op**h]hop}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_ops (C struct)c.drm_gpuva_opshNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h drm_gpuva_opsh]jR)}(hstruct drm_gpuva_opsh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj|hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj|hhhjhMubj{)}(h drm_gpuva_opsh]j)}(hjzh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj|hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjuhhubj)}(hhh]h)}(h&wraps a list of :c:type:`drm_gpuva_op`h](hwraps a list of }(hj•hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hj̕h]h drm_gpuva_op}(hjΕhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjʕubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j4)}j'jzsbc.drm_gpuva_opsasbja drm_gpuva_opuh1hhjIhKhj•ubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(h}**Definition**:: struct drm_gpuva_ops { struct list_head list; }; **Members** ``list`` the :c:type:`list_head`h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubjh)}(h4struct drm_gpuva_ops { struct list_head list; };h]h4struct drm_gpuva_ops { struct list_head list; };}hj%sbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh)}(h **Members**h]j)}(hj6h]hMembers}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]j)}(h ``list`` the :c:type:`list_head`h](j)}(h``list``h]j)}(hjUh]hlist}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjOubj)}(hhh]h)}(hthe :c:type:`list_head`h](hthe }(hjnhhhNhNubh)}(h:c:type:`list_head`h]j)}(hjxh]h list_head}(hjzhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjnubeh}(h]h ]h"]h$]h&]uh1hhjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjLubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_for_each_op (C macro)c.drm_gpuva_for_each_ophNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_for_each_oph]jR)}(hdrm_gpuva_for_each_oph]j{)}(hdrm_gpuva_for_each_oph]j)}(hjȖh]hdrm_gpuva_for_each_op}(hjҖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΖubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjʖhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjƖhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjÖhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjÖhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubh)}(h#``drm_gpuva_for_each_op (op, ops)``h]j)}(hjh]hdrm_gpuva_for_each_op (op, ops)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubj)}(h.iterator to walk over :c:type:`drm_gpuva_ops` h]h)}(h-iterator to walk over :c:type:`drm_gpuva_ops`h](hiterator to walk over }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj(h]h drm_gpuva_ops}(hj*hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ]h"]h$]h&]uh1hhjEhMhjubah}(h]h ]h"]h$]h&]uh1jhjEhMhj@hhubj)}(h**Parameters** ``op`` :c:type:`drm_gpuva_op` to assign in each iteration step ``ops`` :c:type:`drm_gpuva_ops` to walk **Description** This iterator walks over all ops within a given list of operations.h](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjRubj)}(hhh](j)}(h?``op`` :c:type:`drm_gpuva_op` to assign in each iteration step h](j)}(h``op``h]j)}(hjwh]hop}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjqubj)}(hhh]h)}(h7:c:type:`drm_gpuva_op` to assign in each iteration steph](h)}(h:c:type:`drm_gpuva_op`h]j)}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhjhMhjubh! to assign in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(h(``ops`` :c:type:`drm_gpuva_ops` to walk h](j)}(h``ops``h]j)}(hjϗh]hops}(hjїhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͗ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjɗubj)}(hhh]h)}(h:c:type:`drm_gpuva_ops` to walkh](h)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhjhMhjubh to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjɗubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(h**Description**h]j)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjRubh)}(hCThis iterator walks over all ops within a given list of operations.h]hCThis iterator walks over all ops within a given list of operations.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_gpuva_for_each_op_safe (C macro)c.drm_gpuva_for_each_op_safehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_for_each_op_safeh]jR)}(hdrm_gpuva_for_each_op_safeh]j{)}(hdrm_gpuva_for_each_op_safeh]j)}(hjhh]hdrm_gpuva_for_each_op_safe}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjfhhhjhM ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1jKhjhM hjchhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjchhhjhM ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubh)}(h.``drm_gpuva_for_each_op_safe (op, next, ops)``h]j)}(hjh]h*drm_gpuva_for_each_op_safe (op, next, ops)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM hj@hhubj)}(h5iterator to safely walk over :c:type:`drm_gpuva_ops` h]h)}(h4iterator to safely walk over :c:type:`drm_gpuva_ops`h](hiterator to safely walk over }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjȘh]h drm_gpuva_ops}(hjʘhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjƘubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM hjubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjhM hj@hhubj)}(hXl**Parameters** ``op`` :c:type:`drm_gpuva_op` to assign in each iteration step ``next`` :c:type:`next` :c:type:`drm_gpuva_op` to store the next step ``ops`` :c:type:`drm_gpuva_ops` to walk **Description** This iterator walks over all ops within a given list of operations. It is implemented with list_for_each_safe(), so save against removal of elements.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh](j)}(h?``op`` :c:type:`drm_gpuva_op` to assign in each iteration step h](j)}(h``op``h]j)}(hjh]hop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM hjubj)}(hhh]h)}(h7:c:type:`drm_gpuva_op` to assign in each iteration steph](h)}(h:c:type:`drm_gpuva_op`h]j)}(hj6h]h drm_gpuva_op}(hj8hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhj,hM hj0ubh! to assign in each iteration step}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hM hj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hM hjubj)}(hF``next`` :c:type:`next` :c:type:`drm_gpuva_op` to store the next step h](j)}(h``next``h]j)}(hjoh]hnext}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM hjiubj)}(hhh]h)}(h<:c:type:`next` :c:type:`drm_gpuva_op` to store the next steph](h)}(h:c:type:`next`h]j)}(hjh]hnext}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^janextuh1hhjhM hjubh }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhjhM hjubh to store the next step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h(``ops`` :c:type:`drm_gpuva_ops` to walk h](j)}(h``ops``h]j)}(hjh]hops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM hjubj)}(hhh]h)}(h:c:type:`drm_gpuva_ops` to walkh](h)}(h:c:type:`drm_gpuva_ops`h]j)}(hj h]h drm_gpuva_ops}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhjhM hjubh to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh)}(hThis iterator walks over all ops within a given list of operations. It is implemented with list_for_each_safe(), so save against removal of elements.h]hThis iterator walks over all ops within a given list of operations. It is implemented with list_for_each_safe(), so save against removal of elements.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB,drm_gpuva_for_each_op_from_reverse (C macro)$c.drm_gpuva_for_each_op_from_reversehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h"drm_gpuva_for_each_op_from_reverseh]jR)}(h"drm_gpuva_for_each_op_from_reverseh]j{)}(h"drm_gpuva_for_each_op_from_reverseh]j)}(hjh]h"drm_gpuva_for_each_op_from_reverse}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhj~hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj~hhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubh)}(h0``drm_gpuva_for_each_op_from_reverse (op, ops)``h]j)}(hjh]h,drm_gpuva_for_each_op_from_reverse (op, ops)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubj)}(h'iterate backwards from the given point h]h)}(h&iterate backwards from the given pointh]h&iterate backwards from the given point}(hjٚhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj՚ubah}(h]h ]h"]h$]h&]uh1jhjhMhj@hhubj)}(hX**Parameters** ``op`` :c:type:`drm_gpuva_op` to assign in each iteration step ``ops`` :c:type:`drm_gpuva_ops` to walk **Description** This iterator walks over all ops within a given list of operations beginning from the given operation in reverse order.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh](j)}(h?``op`` :c:type:`drm_gpuva_op` to assign in each iteration step h](j)}(h``op``h]j)}(hjh]hop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj ubj)}(hhh]h)}(h7:c:type:`drm_gpuva_op` to assign in each iteration steph](h)}(h:c:type:`drm_gpuva_op`h]j)}(hj2h]h drm_gpuva_op}(hj4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhj(hMhj,ubh! to assign in each iteration step}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj(hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhj ubj)}(h(``ops`` :c:type:`drm_gpuva_ops` to walk h](j)}(h``ops``h]j)}(hjkh]hops}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjeubj)}(hhh]h)}(h:c:type:`drm_gpuva_ops` to walkh](h)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhjhMhjubh to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjśh]h Description}(hjǛhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÛubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh)}(hwThis iterator walks over all ops within a given list of operations beginning from the given operation in reverse order.h]hwThis iterator walks over all ops within a given list of operations beginning from the given operation in reverse order.}(hjۛhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_gpuva_for_each_op_reverse (C macro)c.drm_gpuva_for_each_op_reversehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_for_each_op_reverseh]jR)}(hdrm_gpuva_for_each_op_reverseh]j{)}(hdrm_gpuva_for_each_op_reverseh]j)}(hjh]hdrm_gpuva_for_each_op_reverse}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM!ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj!hM!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj!hM!hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj!hM!ubeh}(h]h ](jmacroeh"]h$]h&]jjjj:jj:jjjuh1jFhhhj@hNhNubh)}(h+``drm_gpuva_for_each_op_reverse (op, ops)``h]j)}(hj@h]h'drm_gpuva_for_each_op_reverse (op, ops)}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM#hj@hhubj)}(h9iterator to walk over :c:type:`drm_gpuva_ops` in reverse h]h)}(h8iterator to walk over :c:type:`drm_gpuva_ops` in reverseh](hiterator to walk over }(hjZhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjdh]h drm_gpuva_ops}(hjfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM!hjZubh in reverse}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM!hjVubah}(h]h ]h"]h$]h&]uh1jhjhM!hj@hhubj)}(h**Parameters** ``op`` :c:type:`drm_gpuva_op` to assign in each iteration step ``ops`` :c:type:`drm_gpuva_ops` to walk **Description** This iterator walks over all ops within a given list of operations in reverseh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM%hjubj)}(hhh](j)}(h?``op`` :c:type:`drm_gpuva_op` to assign in each iteration step h](j)}(h``op``h]j)}(hjh]hop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM"hjubj)}(hhh]h)}(h7:c:type:`drm_gpuva_op` to assign in each iteration steph](h)}(h:c:type:`drm_gpuva_op`h]j)}(hj֜h]h drm_gpuva_op}(hj؜hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjԜubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhj̜hM"hjМubh! to assign in each iteration step}(hjМhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj̜hM"hj͜ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̜hM"hjubj)}(h(``ops`` :c:type:`drm_gpuva_ops` to walk h](j)}(h``ops``h]j)}(hjh]hops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM#hj ubj)}(hhh]h)}(h:c:type:`drm_gpuva_ops` to walkh](h)}(h:c:type:`drm_gpuva_ops`h]j)}(hj.h]h drm_gpuva_ops}(hj0hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhj$hM#hj(ubh to walk}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj$hM#hj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hM#hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM%hjubh)}(hMThis iterator walks over all ops within a given list of operations in reverseh]hMThis iterator walks over all ops within a given list of operations in reverse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_first_op (C macro)c.drm_gpuva_first_ophNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_first_oph]jR)}(hdrm_gpuva_first_oph]j{)}(hdrm_gpuva_first_oph]j)}(hjh]hdrm_gpuva_first_op}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM+ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjŝhM+ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjŝhM+hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjŝhM+ubeh}(h]h ](jmacroeh"]h$]h&]jjjjޝjjޝjjjuh1jFhhhj@hNhNubh)}(h``drm_gpuva_first_op (ops)``h]j)}(hjh]hdrm_gpuva_first_op (ops)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM-hj@hhubj)}(hFreturns the first :c:type:`drm_gpuva_op` from :c:type:`drm_gpuva_ops` h]h)}(hEreturns the first :c:type:`drm_gpuva_op` from :c:type:`drm_gpuva_ops`h](hreturns the first }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjh]h drm_gpuva_op}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM+hjubh from }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj,h]h drm_gpuva_ops}(hj.hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhj%hM+hjubeh}(h]h ]h"]h$]h&]uh1hhj%hM+hjubah}(h]h ]h"]h$]h&]uh1jhj%hM+hj@hhubj)}(ha**Parameters** ``ops`` the :c:type:`drm_gpuva_ops` to get the fist :c:type:`drm_gpuva_op` fromh](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM/hjUubj)}(hhh]j)}(hO``ops`` the :c:type:`drm_gpuva_ops` to get the fist :c:type:`drm_gpuva_op` fromh](j)}(h``ops``h]j)}(hjzh]hops}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM1hjtubj)}(hhh]h)}(hGthe :c:type:`drm_gpuva_ops` to get the fist :c:type:`drm_gpuva_op` fromh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM,hjubh to get the fist }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjh]h drm_gpuva_op}(hjÞhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhjhM,hjubh from}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_last_op (C macro)c.drm_gpuva_last_ophNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_last_oph]jR)}(hdrm_gpuva_last_oph]j{)}(hdrm_gpuva_last_oph]j)}(hjh]hdrm_gpuva_last_op}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM2ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj1hM2ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj1hM2hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj1hM2ubeh}(h]h ](jmacroeh"]h$]h&]jjjjJjjJjjjuh1jFhhhj@hNhNubh)}(h``drm_gpuva_last_op (ops)``h]j)}(hjPh]hdrm_gpuva_last_op (ops)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM4hj@hhubj)}(hEreturns the last :c:type:`drm_gpuva_op` from :c:type:`drm_gpuva_ops` h]h)}(hDreturns the last :c:type:`drm_gpuva_op` from :c:type:`drm_gpuva_ops`h](hreturns the last }(hjjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjth]h drm_gpuva_op}(hjvhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM2hjjubh from }(hjjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhjhM2hjjubeh}(h]h ]h"]h$]h&]uh1hhjhM2hjfubah}(h]h ]h"]h$]h&]uh1jhjhM2hj@hhubj)}(ha**Parameters** ``ops`` the :c:type:`drm_gpuva_ops` to get the last :c:type:`drm_gpuva_op` fromh](h)}(h**Parameters**h]j)}(hjǟh]h Parameters}(hjɟhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjşubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM6hjubj)}(hhh]j)}(hO``ops`` the :c:type:`drm_gpuva_ops` to get the last :c:type:`drm_gpuva_op` fromh](j)}(h``ops``h]j)}(hjh]hops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM8hjubj)}(hhh]h)}(hGthe :c:type:`drm_gpuva_ops` to get the last :c:type:`drm_gpuva_op` fromh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj h]h drm_gpuva_ops}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM3hjubh to get the last }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hj-h]h drm_gpuva_op}(hj/hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhj&hM3hjubh from}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&hM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjݟubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_prev_op (C macro)c.drm_gpuva_prev_ophNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_prev_oph]jR)}(hdrm_gpuva_prev_oph]j{)}(hdrm_gpuva_prev_oph]j)}(hjh]hdrm_gpuva_prev_op}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM9ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhj~hhhjhM9ubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jKhjhM9hj{hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{hhhjhM9ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubh)}(h``drm_gpuva_prev_op (op)``h]j)}(hjh]hdrm_gpuva_prev_op (op)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM;hj@hhubj)}(h,previous :c:type:`drm_gpuva_op` in the list h]h)}(h+previous :c:type:`drm_gpuva_op` in the listh](h previous }(hj֠hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjޠubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM9hj֠ubh in the list}(hj֠hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM9hjҠubah}(h]h ]h"]h$]h&]uh1jhjhM9hj@hhubj)}(h;**Parameters** ``op`` the current :c:type:`drm_gpuva_op`h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM=hjubj)}(hhh]j)}(h)``op`` the current :c:type:`drm_gpuva_op`h](j)}(h``op``h]j)}(hj3h]hop}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM?hj-ubj)}(hhh]h)}(h"the current :c:type:`drm_gpuva_op`h](h the current }(hjLhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjVh]h drm_gpuva_op}(hjXhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM:hjLubeh}(h]h ]h"]h$]h&]uh1hhjshM:hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhM?hj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_next_op (C macro)c.drm_gpuva_next_ophNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuva_next_oph]jR)}(hdrm_gpuva_next_oph]j{)}(hdrm_gpuva_next_oph]j)}(hjh]hdrm_gpuva_next_op}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM?ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjáhM?ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjáhM?hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjáhM?ubeh}(h]h ](jmacroeh"]h$]h&]jjjjܡjjܡjjjuh1jFhhhj@hNhNubh)}(h``drm_gpuva_next_op (op)``h]j)}(hjh]hdrm_gpuva_next_op (op)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMAhj@hhubj)}(h(next :c:type:`drm_gpuva_op` in the list h]h)}(h'next :c:type:`drm_gpuva_op` in the listh](hnext }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM?hjubh in the list}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#hM?hjubah}(h]h ]h"]h$]h&]uh1jhj#hM?hj@hhubj)}(h;**Parameters** ``op`` the current :c:type:`drm_gpuva_op`h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMChj4ubj)}(hhh]j)}(h)``op`` the current :c:type:`drm_gpuva_op`h](j)}(h``op``h]j)}(hjYh]hop}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMEhjSubj)}(hhh]h)}(h"the current :c:type:`drm_gpuva_op`h](h the current }(hjrhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hj|h]h drm_gpuva_op}(hj~hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM@hjrubeh}(h]h ]h"]h$]h&]uh1hhjhM@hjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMEhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_map_req (C struct)c.drm_gpuvm_map_reqhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuvm_map_reqh]jR)}(hstruct drm_gpuvm_map_reqh](jX)}(hjh]hstruct}(hjҢhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj΢hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMEubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj΢hhhjߢhMEubj{)}(hdrm_gpuvm_map_reqh]j)}(hj̢h]hdrm_gpuvm_map_req}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj΢hhhjߢhMEubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjʢhhhjߢhMEubah}(h]jŢah ](jjeh"]h$]h&]jj)jhuh1jKhjߢhMEhjǢhhubj)}(hhh]h)}(h3arguments passed to drm_gpuvm_sm_map[_ops_create]()h]h3arguments passed to drm_gpuvm_sm_map[_ops_create]()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMEhjhhubah}(h]h ]h"]h$]h&]uh1jhjǢhhhjߢhMEubeh}(h]h ](jstructeh"]h$]h&]jjjj,jj,jjjuh1jFhhhj@hNhNubj)}(h**Definition**:: struct drm_gpuvm_map_req { struct drm_gpuva_op_map map; }; **Members** ``map`` struct drm_gpuva_op_maph](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh:}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMIhj0ubjh)}(h>struct drm_gpuvm_map_req { struct drm_gpuva_op_map map; };h]h>struct drm_gpuvm_map_req { struct drm_gpuva_op_map map; };}hjQsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMKhj0ubh)}(h **Members**h]j)}(hjbh]hMembers}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMOhj0ubj)}(hhh]j)}(h``map`` struct drm_gpuva_op_maph](j)}(h``map``h]j)}(hjh]hmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMIhj{ubj)}(hhh]h)}(hstruct drm_gpuva_op_maph]hstruct drm_gpuva_op_map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMJhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjxubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_ops (C struct)c.drm_gpuvm_opshNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h drm_gpuvm_opsh]jR)}(hstruct drm_gpuvm_opsh](jX)}(hjh]hstruct}(hjۣhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjףhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMPubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjףhhhjhMPubj{)}(h drm_gpuvm_opsh]j)}(hjգh]h drm_gpuvm_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjףhhhjhMPubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjӣhhhjhMPubah}(h]jΣah ](jjeh"]h$]h&]jj)jhuh1jKhjhMPhjУhhubj)}(hhh]h)}(hcallbacks for split/merge stepsh]hcallbacks for split/merge steps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMmhjhhubah}(h]h ]h"]h$]h&]uh1jhjУhhhjhMPubeh}(h]h ](jstructeh"]h$]h&]jjjj5jj5jjjuh1jFhhhj@hNhNubj)}(hX9**Definition**:: struct drm_gpuvm_ops { void (*vm_free)(struct drm_gpuvm *gpuvm); struct drm_gpuva_op *(*op_alloc)(void); void (*op_free)(struct drm_gpuva_op *op); struct drm_gpuvm_bo *(*vm_bo_alloc)(void); void (*vm_bo_free)(struct drm_gpuvm_bo *vm_bo); int (*vm_bo_validate)(struct drm_gpuvm_bo *vm_bo, struct drm_exec *exec); int (*sm_step_map)(struct drm_gpuva_op *op, void *priv); int (*sm_step_remap)(struct drm_gpuva_op *op, void *priv); int (*sm_step_unmap)(struct drm_gpuva_op *op, void *priv); }; **Members** ``vm_free`` called when the last reference of a struct drm_gpuvm is dropped This callback is mandatory. ``op_alloc`` called when the :c:type:`drm_gpuvm` allocates a struct drm_gpuva_op Some drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can allocate memory accordingly. This callback is optional. ``op_free`` called when the :c:type:`drm_gpuvm` frees a struct drm_gpuva_op Some drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly. This callback is optional. ``vm_bo_alloc`` called when the :c:type:`drm_gpuvm` allocates a struct drm_gpuvm_bo Some drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can allocate memory accordingly. This callback is optional. ``vm_bo_free`` called when the :c:type:`drm_gpuvm` frees a struct drm_gpuvm_bo Some drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly. This callback is optional. ``vm_bo_validate`` called from drm_gpuvm_validate() Drivers receive this callback for every evicted :c:type:`drm_gem_object` being mapped in the corresponding :c:type:`drm_gpuvm`. Typically, drivers would call their driver specific variant of ttm_bo_validate() from within this callback. ``sm_step_map`` called from :c:type:`drm_gpuvm_sm_map` to finally insert the mapping once all previous steps were completed The :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively. Can be NULL if :c:type:`drm_gpuvm_sm_map` is used. ``sm_step_remap`` called from :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to split up an existent mapping This callback is called when existent mapping needs to be split up. This is the case when either a newly requested mapping overlaps or is enclosed by an existent mapping or a partial unmap of an existent mapping is requested. The :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively. Can be NULL if neither :c:type:`drm_gpuvm_sm_map` nor :c:type:`drm_gpuvm_sm_unmap` is used. ``sm_step_unmap`` called from :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to unmap an existing mapping This callback is called when existing mapping needs to be unmapped. This is the case when either a newly requested mapping encloses an existing mapping or an unmap of an existing mapping is requested. The :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively. Can be NULL if neither :c:type:`drm_gpuvm_sm_map` nor :c:type:`drm_gpuvm_sm_unmap` is used.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh:}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMqhj9ubjh)}(hX struct drm_gpuvm_ops { void (*vm_free)(struct drm_gpuvm *gpuvm); struct drm_gpuva_op *(*op_alloc)(void); void (*op_free)(struct drm_gpuva_op *op); struct drm_gpuvm_bo *(*vm_bo_alloc)(void); void (*vm_bo_free)(struct drm_gpuvm_bo *vm_bo); int (*vm_bo_validate)(struct drm_gpuvm_bo *vm_bo, struct drm_exec *exec); int (*sm_step_map)(struct drm_gpuva_op *op, void *priv); int (*sm_step_remap)(struct drm_gpuva_op *op, void *priv); int (*sm_step_unmap)(struct drm_gpuva_op *op, void *priv); };h]hX struct drm_gpuvm_ops { void (*vm_free)(struct drm_gpuvm *gpuvm); struct drm_gpuva_op *(*op_alloc)(void); void (*op_free)(struct drm_gpuva_op *op); struct drm_gpuvm_bo *(*vm_bo_alloc)(void); void (*vm_bo_free)(struct drm_gpuvm_bo *vm_bo); int (*vm_bo_validate)(struct drm_gpuvm_bo *vm_bo, struct drm_exec *exec); int (*sm_step_map)(struct drm_gpuva_op *op, void *priv); int (*sm_step_remap)(struct drm_gpuva_op *op, void *priv); int (*sm_step_unmap)(struct drm_gpuva_op *op, void *priv); };}hjZsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMshj9ubh)}(h **Members**h]j)}(hjkh]hMembers}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj9ubj)}(hhh](j)}(hi``vm_free`` called when the last reference of a struct drm_gpuvm is dropped This callback is mandatory. h](j)}(h ``vm_free``h]j)}(hjh]hvm_free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMyhjubj)}(hhh](h)}(h?called when the last reference of a struct drm_gpuvm is droppedh]h?called when the last reference of a struct drm_gpuvm is dropped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMvhjubh)}(hThis callback is mandatory.h]hThis callback is mandatory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMyhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjubj)}(hX ``op_alloc`` called when the :c:type:`drm_gpuvm` allocates a struct drm_gpuva_op Some drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can allocate memory accordingly. This callback is optional. h](j)}(h ``op_alloc``h]j)}(hjҤh]hop_alloc}(hjԤhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjФubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj̤ubj)}(hhh](h)}(hCcalled when the :c:type:`drm_gpuvm` allocates a struct drm_gpuva_oph](hcalled when the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM~hjubh allocates a struct drm_gpuva_op}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM~hjubh)}(hSome drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can allocate memory accordingly.h]hSome drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can allocate memory accordingly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj̤ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hX``op_free`` called when the :c:type:`drm_gpuvm` frees a struct drm_gpuva_op Some drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly. This callback is optional. h](j)}(h ``op_free``h]j)}(hjLh]hop_free}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjFubj)}(hhh](h)}(h?called when the :c:type:`drm_gpuvm` frees a struct drm_gpuva_oph](hcalled when the }(hjehhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjoh]h drm_gpuvm}(hjqhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjeubh frees a struct drm_gpuva_op}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjbubh)}(hSome drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly.h]hSome drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjbubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjbubeh}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjubj)}(hX ``vm_bo_alloc`` called when the :c:type:`drm_gpuvm` allocates a struct drm_gpuvm_bo Some drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can allocate memory accordingly. This callback is optional. h](j)}(h``vm_bo_alloc``h]j)}(hjƥh]h vm_bo_alloc}(hjȥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjĥubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh](h)}(hCcalled when the :c:type:`drm_gpuvm` allocates a struct drm_gpuvm_boh](hcalled when the }(hjߥhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjߥubh allocates a struct drm_gpuvm_bo}(hjߥhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjܥubh)}(hSome drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can allocate memory accordingly.h]hSome drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can allocate memory accordingly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjܥubh)}(hThis callback is optional.h]hThis callback is optional.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjۥhMhjܥubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۥhMhjubj)}(hX``vm_bo_free`` called when the :c:type:`drm_gpuvm` frees a struct drm_gpuvm_bo Some drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly. This callback is optional. h](j)}(h``vm_bo_free``h]j)}(hj@h]h vm_bo_free}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj:ubj)}(hhh](h)}(h?called when the :c:type:`drm_gpuvm` frees a struct drm_gpuvm_boh](hcalled when the }(hjYhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjch]h drm_gpuvm}(hjehhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjYubh frees a struct drm_gpuvm_bo}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjVubh)}(hSome drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly.h]hSome drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjVubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubeh}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjubj)}(hX"``vm_bo_validate`` called from drm_gpuvm_validate() Drivers receive this callback for every evicted :c:type:`drm_gem_object` being mapped in the corresponding :c:type:`drm_gpuvm`. Typically, drivers would call their driver specific variant of ttm_bo_validate() from within this callback. h](j)}(h``vm_bo_validate``h]j)}(hjh]hvm_bo_validate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh](h)}(h called from drm_gpuvm_validate()h]h called from drm_gpuvm_validate()}(hjӦhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjЦubh)}(hDrivers receive this callback for every evicted :c:type:`drm_gem_object` being mapped in the corresponding :c:type:`drm_gpuvm`.h](h0Drivers receive this callback for every evicted }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh# being mapped in the corresponding }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj hMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhjЦubh)}(hkTypically, drivers would call their driver specific variant of ttm_bo_validate() from within this callback.h]hkTypically, drivers would call their driver specific variant of ttm_bo_validate() from within this callback.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjЦubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϦhMhjubj)}(hX;``sm_step_map`` called from :c:type:`drm_gpuvm_sm_map` to finally insert the mapping once all previous steps were completed The :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively. Can be NULL if :c:type:`drm_gpuvm_sm_map` is used. h](j)}(h``sm_step_map``h]j)}(hjXh]h sm_step_map}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjRubj)}(hhh](h)}(hkcalled from :c:type:`drm_gpuvm_sm_map` to finally insert the mapping once all previous steps were completedh](h called from }(hjqhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hj{h]hdrm_gpuvm_sm_map}(hj}hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjqubhE to finally insert the mapping once all previous steps were completed}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjnubh)}(hThe :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively.h](hThe }(hjhhhNhNubh)}(h:c:type:`priv`h]j)}(hjh]hpriv}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^japrivuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh. pointer matches the one the driver passed to }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjѧh]hdrm_gpuvm_sm_map}(hjӧhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjϧubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhjʧhMhjubh or }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhjʧhMhjubh, respectively.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjʧhMhjnubh)}(h2Can be NULL if :c:type:`drm_gpuvm_sm_map` is used.h](hCan be NULL if }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hj%h]hdrm_gpuvm_sm_map}(hj'hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhjmhMhjubh is used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjmhMhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjubj)}(hXE``sm_step_remap`` called from :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to split up an existent mapping This callback is called when existent mapping needs to be split up. This is the case when either a newly requested mapping overlaps or is enclosed by an existent mapping or a partial unmap of an existent mapping is requested. The :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively. Can be NULL if neither :c:type:`drm_gpuvm_sm_map` nor :c:type:`drm_gpuvm_sm_unmap` is used. h](j)}(h``sm_step_remap``h]j)}(hj^h]h sm_step_remap}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjXubj)}(hhh](h)}(hgcalled from :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to split up an existent mappingh](h called from }(hjwhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjh]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjwubh and }(hjwhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhjhMhjwubh to split up an existent mapping}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjtubh)}(hThis callback is called when existent mapping needs to be split up. This is the case when either a newly requested mapping overlaps or is enclosed by an existent mapping or a partial unmap of an existent mapping is requested.h]hThis callback is called when existent mapping needs to be split up. This is the case when either a newly requested mapping overlaps or is enclosed by an existent mapping or a partial unmap of an existent mapping is requested.}(hj̨hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjtubh)}(hThe :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively.h](hThe }(hjۨhhhNhNubh)}(h:c:type:`priv`h]j)}(hjh]hpriv}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^japrivuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjۨubh. pointer matches the one the driver passed to }(hjۨhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hj h]hdrm_gpuvm_sm_map}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhjhMhjۨubh or }(hjۨhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hj,h]hdrm_gpuvm_sm_unmap}(hj.hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhjhMhjۨubh, respectively.}(hjۨhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjtubh)}(h[Can be NULL if neither :c:type:`drm_gpuvm_sm_map` nor :c:type:`drm_gpuvm_sm_unmap` is used.h](hCan be NULL if neither }(hjShhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hj]h]hdrm_gpuvm_sm_map}(hj_hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjSubh nor }(hjShhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhjzhMhjSubh is used.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhjtubeh}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubj)}(hX(``sm_step_unmap`` called from :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to unmap an existing mapping This callback is called when existing mapping needs to be unmapped. This is the case when either a newly requested mapping encloses an existing mapping or an unmap of an existing mapping is requested. The :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively. Can be NULL if neither :c:type:`drm_gpuvm_sm_map` nor :c:type:`drm_gpuvm_sm_unmap` is used.h](j)}(h``sm_step_unmap``h]j)}(hjh]h sm_step_unmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh](h)}(hdcalled from :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to unmap an existing mappingh](h called from }(hjөhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjݩh]hdrm_gpuvm_sm_map}(hjߩhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj۩ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjөubh and }(hjөhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhjhMhjөubh to unmap an existing mapping}(hjөhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjЩubh)}(hThis callback is called when existing mapping needs to be unmapped. This is the case when either a newly requested mapping encloses an existing mapping or an unmap of an existing mapping is requested.h]hThis callback is called when existing mapping needs to be unmapped. This is the case when either a newly requested mapping encloses an existing mapping or an unmap of an existing mapping is requested.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjЩubh)}(hThe :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively.h](hThe }(hj7hhhNhNubh)}(h:c:type:`priv`h]j)}(hjAh]hpriv}(hjChhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^japrivuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj7ubh. pointer matches the one the driver passed to }(hj7hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjeh]hdrm_gpuvm_sm_map}(hjghhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhj^hMhj7ubh or }(hj7hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhj^hMhj7ubh, respectively.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hMhjЩubh)}(h[Can be NULL if neither :c:type:`drm_gpuvm_sm_map` nor :c:type:`drm_gpuvm_sm_unmap` is used.h](hCan be NULL if neither }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjh]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhjϩhMhjubh nor }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjܪh]hdrm_gpuvm_sm_unmap}(hjުhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjڪubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhjϩhMhjubh is used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjϩhMhjЩubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϩhMhjubeh}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubh)}(hThis structure defines the callbacks used by :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to provide the split/merge steps for map and unmap operations to drivers.h](h-This structure defines the callbacks used by }(hj4hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hj>h]hdrm_gpuvm_sm_map}(hj@hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMnhj4ubh and }(hj4hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjbh]hdrm_gpuvm_sm_unmap}(hjdhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhj[hMnhj4ubhJ to provide the split/merge steps for map and unmap operations to drivers.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj[hMnhj@hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB.drm_gpuva_op_remap_to_unmap_range (C function)#c.drm_gpuva_op_remap_to_unmap_rangehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hivoid drm_gpuva_op_remap_to_unmap_range (const struct drm_gpuva_op_remap *op, u64 *start_addr, u64 *range)h]jR)}(hhvoid drm_gpuva_op_remap_to_unmap_range(const struct drm_gpuva_op_remap *op, u64 *start_addr, u64 *range)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(h!drm_gpuva_op_remap_to_unmap_rangeh]j)}(h!drm_gpuva_op_remap_to_unmap_rangeh]h!drm_gpuva_op_remap_to_unmap_range}(hjëhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hB(const struct drm_gpuva_op_remap *op, u64 *start_addr, u64 *range)h](j)}(h#const struct drm_gpuva_op_remap *oph](jX)}(hj h]hconst}(hj߫hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj۫ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj۫ubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj۫ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj۫ubh)}(hhh]j)}(hdrm_gpuva_op_remaph]hdrm_gpuva_op_remap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jūsb#c.drm_gpuva_op_remap_to_unmap_rangeasbuh1hhj۫ubjj)}(h h]h }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj۫ubjH)}(hjKh]h*}(hjFhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj۫ubj)}(hoph]hop}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۫ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj׫ubj)}(hu64 *start_addrh](h)}(hhh]j)}(hu64h]hu64}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjqmodnameN classnameNj+j.)}j1]j4#c.drm_gpuva_op_remap_to_unmap_rangeasbuh1hhjhubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhubj)}(h start_addrh]h start_addr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj׫ubj)}(h u64 *rangeh](h)}(hhh]j)}(hu64h]hu64}(hjĬhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjƬmodnameN classnameNj+j.)}j1]j4#c.drm_gpuva_op_remap_to_unmap_rangeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj׫ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hCHelper to get the start and range of the unmap stage of a remap op.h]hCHelper to get the start and range of the unmap stage of a remap op.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj$hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``const struct drm_gpuva_op_remap *op`` Remap op. ``u64 *start_addr`` Output pointer for the start of the required unmap. ``u64 *range`` Output pointer for the length of the required unmap. **Description** The given start address and range will be set such that they represent the range of the address space that was previously covered by the mapping being re-mapped, but is now empty.h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjCubj)}(hhh](j)}(h2``const struct drm_gpuva_op_remap *op`` Remap op. h](j)}(h'``const struct drm_gpuva_op_remap *op``h]j)}(hjhh]h#const struct drm_gpuva_op_remap *op}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjbubj)}(hhh]h)}(h Remap op.h]h Remap op.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj_ubj)}(hH``u64 *start_addr`` Output pointer for the start of the required unmap. h](j)}(h``u64 *start_addr``h]j)}(hjh]hu64 *start_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]h)}(h3Output pointer for the start of the required unmap.h]h3Output pointer for the start of the required unmap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj_ubj)}(hD``u64 *range`` Output pointer for the length of the required unmap. h](j)}(h``u64 *range``h]j)}(hjڭh]h u64 *range}(hjܭhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjحubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjԭubj)}(hhh]h)}(h4Output pointer for the length of the required unmap.h]h4Output pointer for the length of the required unmap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjԭubeh}(h]h ]h"]h$]h&]uh1jhjhMhj_ubeh}(h]h ]h"]h$]h&]uh1jhjCubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjCubh)}(hThe given start address and range will be set such that they represent the range of the address space that was previously covered by the mapping being re-mapped, but is now empty.h]hThe given start address and range will be set such that they represent the range of the address space that was previously covered by the mapping being re-mapped, but is now empty.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_gpuvm_range_valid (C function)c.drm_gpuvm_range_validhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hIbool drm_gpuvm_range_valid (struct drm_gpuvm *gpuvm, u64 addr, u64 range)h]jR)}(hHbool drm_gpuvm_range_valid(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hj*h]hbool}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjhhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVhhhjghMubj{)}(hdrm_gpuvm_range_validh]j)}(hdrm_gpuvm_range_validh]hdrm_gpuvm_range_valid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhjghMubj)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'j|sbc.drm_gpuvm_range_validasbuh1hhjubjj)}(h h]h }(hjԮhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]jЮc.drm_gpuvm_range_validasbuh1hhjubjj)}(h h]h }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(haddrh]haddr}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjUmodnameN classnameNj+j.)}j1]jЮc.drm_gpuvm_range_validasbuh1hhjLubjj)}(h h]h }(hjqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjLubj)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjghMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjRhhhjghMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jKhjghMhjOhhubj)}(hhh]h)}(hIchecks whether the given range is valid for the given :c:type:`drm_gpuvm`h](h6checks whether the given range is valid for the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jЮc.drm_gpuvm_range_validasbja drm_gpuvmuh1hhjghMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hX3**Parameters** ``struct drm_gpuvm *gpuvm`` the GPUVM to check the range for ``u64 addr`` the base address ``u64 range`` the range starting from the base address **Description** Checks whether the range is within the GPUVM's managed boundaries. **Return** true for a valid range, false otherwiseh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(h=``struct drm_gpuvm *gpuvm`` the GPUVM to check the range for h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h the GPUVM to check the range forh]h the GPUVM to check the range for}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubj)}(h``u64 addr`` the base address h](j)}(h ``u64 addr``h]j)}(hjGh]hu64 addr}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjAubj)}(hhh]h)}(hthe base addressh]hthe base address}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjubj)}(h7``u64 range`` the range starting from the base address h](j)}(h ``u64 range``h]j)}(hjh]h u64 range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjzubj)}(hhh]h)}(h(the range starting from the base addressh]h(the range starting from the base address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hBChecks whether the range is within the GPUVM's managed boundaries.h]hDChecks whether the range is within the GPUVM’s managed boundaries.}(hjѰhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h'true for a valid range, false otherwiseh]h'true for a valid range, false otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_gpuvm_resv_object_alloc (C function)c.drm_gpuvm_resv_object_allochNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hLstruct drm_gem_object * drm_gpuvm_resv_object_alloc (struct drm_device *drm)h]jR)}(hJstruct drm_gem_object *drm_gpuvm_resv_object_alloc(struct drm_device *drm)h](jX)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj#hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#hhhj4hMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjHmodnameN classnameNj+j.)}j1]j4)}j'drm_gpuvm_resv_object_allocsbc.drm_gpuvm_resv_object_allocasbuh1hhj#hhhj4hMubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#hhhj4hMubjH)}(hjKh]h*}(hjuhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj#hhhj4hMubj{)}(hdrm_gpuvm_resv_object_alloch]j)}(hjdh]hdrm_gpuvm_resv_object_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#hhhj4hMubj)}(h(struct drm_device *drm)h]j)}(hstruct drm_device *drmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jbc.drm_gpuvm_resv_object_allocasbuh1hhjubjj)}(h h]h }(hjݱhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj#hhhj4hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj4hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj4hMhjhhubj)}(hhh]h)}(h)allocate a dummy :c:type:`drm_gem_object`h](hallocate a dummy }(hj"hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj,h]hdrm_gem_object}(hj.hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jbc.drm_gpuvm_resv_object_allocasbjadrm_gem_objectuh1hhjghMhj"ubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^jj^jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_device *drm`` the drivers :c:type:`drm_device` **Description** Allocates a dummy :c:type:`drm_gem_object` which can be passed to drm_gpuvm_init() in order to serve as root GEM object providing the :c:type:`drm_resv` shared across :c:type:`drm_gem_objects` local to a single GPUVM. **Return** the :c:type:`drm_gem_object` on success, NULL on failureh](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjbubj)}(hhh]j)}(h<``struct drm_device *drm`` the drivers :c:type:`drm_device` h](j)}(h``struct drm_device *drm``h]j)}(hjh]hstruct drm_device *drm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h the drivers :c:type:`drm_device`h](h the drivers }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_deviceuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj߲ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjbubh)}(hAllocates a dummy :c:type:`drm_gem_object` which can be passed to drm_gpuvm_init() in order to serve as root GEM object providing the :c:type:`drm_resv` shared across :c:type:`drm_gem_objects` local to a single GPUVM.h](hAllocates a dummy }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh\ which can be passed to drm_gpuvm_init() in order to serve as root GEM object providing the }(hjhhhNhNubh)}(h:c:type:`drm_resv`h]j)}(hj%h]hdrm_resv}(hj'hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_resvuh1hhjhMhjubh shared across }(hjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjHh]hdrm_gem_objects}(hjJhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhjhMhjubh local to a single GPUVM.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjbubh)}(h **Return**h]j)}(hjqh]hReturn}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjbubh)}(h8the :c:type:`drm_gem_object` on success, NULL on failureh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjubh on success, NULL on failure}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_init (C function)c.drm_gpuvm_inithNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hvoid drm_gpuvm_init (struct drm_gpuvm *gpuvm, const char *name, enum drm_gpuvm_flags flags, struct drm_device *drm, struct drm_gem_object *r_obj, u64 start_offset, u64 range, u64 reserve_offset, u64 reserve_range, const struct drm_gpuvm_ops *ops)h]jR)}(hvoid drm_gpuvm_init(struct drm_gpuvm *gpuvm, const char *name, enum drm_gpuvm_flags flags, struct drm_device *drm, struct drm_gem_object *r_obj, u64 start_offset, u64 range, u64 reserve_offset, u64 reserve_range, const struct drm_gpuvm_ops *ops)h](j)}(hvoidh]hvoid}(hjٳhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjճhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM3ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjճhhhjhM3ubj{)}(hdrm_gpuvm_inith]j)}(hdrm_gpuvm_inith]hdrm_gpuvm_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjճhhhjhM3ubj)}(h(struct drm_gpuvm *gpuvm, const char *name, enum drm_gpuvm_flags flags, struct drm_device *drm, struct drm_gem_object *r_obj, u64 start_offset, u64 range, u64 reserve_offset, u64 reserve_range, const struct drm_gpuvm_ops *ops)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj#hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj6modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_initasbuh1hhjubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjbhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnameh]hname}(hj̴hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum drm_gpuvm_flags flagsh](jX)}(hj[h]henum}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gpuvm_flagsh]hdrm_gpuvm_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jPc.drm_gpuvm_initasbuh1hhjubjj)}(h h]h }(hj!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hflagsh]hflags}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_device *drmh](jX)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjDubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjhmodnameN classnameNj+j.)}j1]jPc.drm_gpuvm_initasbuh1hhjDubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjDubj)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *r_objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjŵhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjֵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӵubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjصmodnameN classnameNj+j.)}j1]jPc.drm_gpuvm_initasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hr_objh]hr_obj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 start_offseth](h)}(hhh]j)}(hu64h]hu64}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj-modnameN classnameNj+j.)}j1]jPc.drm_gpuvm_initasbuh1hhj$ubjj)}(h h]h }(hjIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj$ubj)}(h start_offseth]h start_offset}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjumodnameN classnameNj+j.)}j1]jPc.drm_gpuvm_initasbuh1hhjlubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlubj)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 reserve_offseth](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jPc.drm_gpuvm_initasbuh1hhjubjj)}(h h]h }(hjٶhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hreserve_offseth]hreserve_offset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 reserve_rangeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jPc.drm_gpuvm_initasbuh1hhjubjj)}(h h]h }(hj!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h reserve_rangeh]h reserve_range}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct drm_gpuvm_ops *opsh](jX)}(hj h]hconst}(hjHhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjDubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDubjX)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjDubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDubh)}(hhh]j)}(h drm_gpuvm_opsh]h drm_gpuvm_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jPc.drm_gpuvm_initasbuh1hhjDubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjDubj)}(hopsh]hops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjճhhhjhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjѳhhhjhM3ubah}(h]j̳ah ](jjeh"]h$]h&]jj)jhuh1jKhjhM3hjγhhubj)}(hhh]h)}(h initialize a :c:type:`drm_gpuvm`h](h initialize a }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jPc.drm_gpuvm_initasbja drm_gpuvmuh1hhjghMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM3hjhhubah}(h]h ]h"]h$]h&]uh1jhjγhhhjhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` pointer to the :c:type:`drm_gpuvm` to initialize ``const char *name`` the name of the GPU VA space ``enum drm_gpuvm_flags flags`` the :c:type:`drm_gpuvm_flags` for this GPUVM ``struct drm_device *drm`` the :c:type:`drm_device` this VM resides in ``struct drm_gem_object *r_obj`` the resv :c:type:`drm_gem_object` providing the GPUVM's common :c:type:`dma_resv` ``u64 start_offset`` the start offset of the GPU VA space ``u64 range`` the size of the GPU VA space ``u64 reserve_offset`` the start of the kernel reserved GPU VA area ``u64 reserve_range`` the size of the kernel reserved GPU VA area ``const struct drm_gpuvm_ops *ops`` :c:type:`drm_gpuvm_ops` called on :c:type:`drm_gpuvm_sm_map` / :c:type:`drm_gpuvm_sm_unmap` **Description** The :c:type:`drm_gpuvm` must be initialized with this function before use. Note that **gpuvm** must be cleared to 0 before calling this function. The given :c:type:`name` is expected to be managed by the surrounding driver structures.h](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM7hj$ubj)}(hhh](j)}(hM``struct drm_gpuvm *gpuvm`` pointer to the :c:type:`drm_gpuvm` to initialize h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjIh]hstruct drm_gpuvm *gpuvm}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM4hjCubj)}(hhh]h)}(h0pointer to the :c:type:`drm_gpuvm` to initializeh](hpointer to the }(hjbhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjlh]h drm_gpuvm}(hjnhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj^hM4hjbubh to initialize}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hM4hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM4hj@ubj)}(h2``const char *name`` the name of the GPU VA space h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM5hjubj)}(hhh]h)}(hthe name of the GPU VA spaceh]hthe name of the GPU VA space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hj@ubj)}(hL``enum drm_gpuvm_flags flags`` the :c:type:`drm_gpuvm_flags` for this GPUVM h](j)}(h``enum drm_gpuvm_flags flags``h]j)}(hj޸h]henum drm_gpuvm_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܸubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM6hjظubj)}(hhh]h)}(h,the :c:type:`drm_gpuvm_flags` for this GPUVMh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_flags`h]j)}(hjh]hdrm_gpuvm_flags}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_flagsuh1hhjhM6hjubh for this GPUVM}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjظubeh}(h]h ]h"]h$]h&]uh1jhjhM6hj@ubj)}(hG``struct drm_device *drm`` the :c:type:`drm_device` this VM resides in h](j)}(h``struct drm_device *drm``h]j)}(hj:h]hstruct drm_device *drm}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM7hj4ubj)}(hhh]h)}(h+the :c:type:`drm_device` this VM resides inh](hthe }(hjShhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj]h]h drm_device}(hj_hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_deviceuh1hhjOhM7hjSubh this VM resides in}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhM7hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM7hj@ubj)}(hs``struct drm_gem_object *r_obj`` the resv :c:type:`drm_gem_object` providing the GPUVM's common :c:type:`dma_resv` h](j)}(h ``struct drm_gem_object *r_obj``h]j)}(hjh]hstruct drm_gem_object *r_obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM8hjubj)}(hhh]h)}(hQthe resv :c:type:`drm_gem_object` providing the GPUVM's common :c:type:`dma_resv`h](h the resv }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjhM8hjubh providing the GPUVM’s common }(hjhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjܹh]hdma_resv}(hj޹hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjڹubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhjhM8hjubeh}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hj@ubj)}(h:``u64 start_offset`` the start offset of the GPU VA space h](j)}(h``u64 start_offset``h]j)}(hjh]hu64 start_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM9hj ubj)}(hhh]h)}(h$the start offset of the GPU VA spaceh]h$the start offset of the GPU VA space}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM9hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hM9hj@ubj)}(h+``u64 range`` the size of the GPU VA space h](j)}(h ``u64 range``h]j)}(hjJh]h u64 range}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM:hjDubj)}(hhh]h)}(hthe size of the GPU VA spaceh]hthe size of the GPU VA space}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hM:hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hM:hj@ubj)}(hD``u64 reserve_offset`` the start of the kernel reserved GPU VA area h](j)}(h``u64 reserve_offset``h]j)}(hjh]hu64 reserve_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM;hj}ubj)}(hhh]h)}(h,the start of the kernel reserved GPU VA areah]h,the start of the kernel reserved GPU VA area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhM;hj@ubj)}(hB``u64 reserve_range`` the size of the kernel reserved GPU VA area h](j)}(h``u64 reserve_range``h]j)}(hjh]hu64 reserve_range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM<hjubj)}(hhh]h)}(h+the size of the kernel reserved GPU VA areah]h+the size of the kernel reserved GPU VA area}(hjպhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѺhM<hjҺubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjѺhM<hj@ubj)}(h``const struct drm_gpuvm_ops *ops`` :c:type:`drm_gpuvm_ops` called on :c:type:`drm_gpuvm_sm_map` / :c:type:`drm_gpuvm_sm_unmap` h](j)}(h#``const struct drm_gpuvm_ops *ops``h]j)}(hjh]hconst struct drm_gpuvm_ops *ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM=hjubj)}(hhh]h)}(h[:c:type:`drm_gpuvm_ops` called on :c:type:`drm_gpuvm_sm_map` / :c:type:`drm_gpuvm_sm_unmap`h](h)}(h:c:type:`drm_gpuvm_ops`h]j)}(hjh]h drm_gpuvm_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_opsuh1hhj hM=hjubh called on }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hj7h]hdrm_gpuvm_sm_map}(hj9hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhj hM=hjubh / }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjZh]hdrm_gpuvm_sm_unmap}(hj\hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhj hM=hjubeh}(h]h ]h"]h$]h&]uh1hhj hM=hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM=hj@ubeh}(h]h ]h"]h$]h&]uh1jhj$ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM?hj$ubh)}(hJThe :c:type:`drm_gpuvm` must be initialized with this function before use.h](hThe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM>hjubh3 must be initialized with this function before use.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjλhM>hj$ubh)}(hNote that **gpuvm** must be cleared to 0 before calling this function. The given :c:type:`name` is expected to be managed by the surrounding driver structures.h](h Note that }(hjٻhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٻubh> must be cleared to 0 before calling this function. The given }(hjٻhhhNhNubh)}(h:c:type:`name`h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^janameuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM@hjٻubh@ is expected to be managed by the surrounding driver structures.}(hjٻhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM@hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_put (C function)c.drm_gpuvm_puthNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h,void drm_gpuvm_put (struct drm_gpuvm *gpuvm)h]jR)}(h+void drm_gpuvm_put(struct drm_gpuvm *gpuvm)h](j)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjLhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9hhhjKhMubj{)}(h drm_gpuvm_puth]j)}(h drm_gpuvm_puth]h drm_gpuvm_put}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhjKhMubj)}(h(struct drm_gpuvm *gpuvm)h]j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjvubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'j`sbc.drm_gpuvm_putasbuh1hhjvubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubjH)}(hjKh]h*}(hjƼhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjvubj)}(hgpuvmh]hgpuvm}(hjӼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj5hhhjKhMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jKhjKhMhj2hhubj)}(hhh]h)}(h!drop a struct drm_gpuvm referenceh]h!drop a struct drm_gpuvm reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(h**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to release the reference of **Description** This releases a reference to **gpuvm**. This function may be called from atomic context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]j)}(hP``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to release the reference of h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hj>h]hstruct drm_gpuvm *gpuvm}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj8ubj)}(hhh]h)}(h3the :c:type:`drm_gpuvm` to release the reference ofh](hthe }(hjWhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjah]h drm_gpuvm}(hjchhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjShMhjWubh to release the reference of}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h'This releases a reference to **gpuvm**.h](hThis releases a reference to }(hjhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h0This function may be called from atomic context.h]h0This function may be called from atomic context.}(hjӽhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!drm_gpuvm_prepare_vm (C function)c.drm_gpuvm_prepare_vmhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hbint drm_gpuvm_prepare_vm (struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h]jR)}(haint drm_gpuvm_prepare_vm(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gpuvm_prepare_vmh]j)}(hdrm_gpuvm_prepare_vmh]hdrm_gpuvm_prepare_vm}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hI(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj;ubjj)}(h h]h }(hjLhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj_modnameN classnameNj+j.)}j1]j4)}j'j%sbc.drm_gpuvm_prepare_vmasbuh1hhj;ubjj)}(h h]h }(hj}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj;ubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hstruct drm_exec *exech](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjϾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̾ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjѾmodnameN classnameNj+j.)}j1]jyc.drm_gpuvm_prepare_vmasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hunsigned int num_fencesh](j)}(hunsignedh]hunsigned}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj/hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hinth]hint}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h num_fencesh]h num_fences}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h"prepare the GPUVMs common dma-resvh]h"prepare the GPUVMs common dma-resv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hX!**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` ``struct drm_exec *exec`` the :c:type:`drm_exec` context ``unsigned int num_fences`` the amount of :c:type:`dma_fences` to reserve **Description** Calls drm_exec_prepare_obj() for the GPUVMs dummy :c:type:`drm_gem_object`; if **num_fences** is zero drm_exec_lock_obj() is called instead. Using this function directly, it is the drivers responsibility to call drm_exec_init() and drm_exec_fini() accordingly. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjĿh]hstruct drm_gpuvm *gpuvm}(hjƿhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj¿ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjݿhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjٿhMhjݿubeh}(h]h ]h"]h$]h&]uh1hhjٿhMhjڿubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjٿhMhjubj)}(h9``struct drm_exec *exec`` the :c:type:`drm_exec` context h](j)}(h``struct drm_exec *exec``h]j)}(hjh]hstruct drm_exec *exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(hthe :c:type:`drm_exec` contexth](hthe }(hj5hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hj?h]hdrm_exec}(hjAhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhj1hMhj5ubh context}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubj)}(hJ``unsigned int num_fences`` the amount of :c:type:`dma_fences` to reserve h](j)}(h``unsigned int num_fences``h]j)}(hjxh]hunsigned int num_fences}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjrubj)}(hhh]h)}(h-the amount of :c:type:`dma_fences` to reserveh](hthe amount of }(hjhhhNhNubh)}(h:c:type:`dma_fences`h]j)}(hjh]h dma_fences}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_fencesuh1hhjhMhjubh to reserve}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hCalls drm_exec_prepare_obj() for the GPUVMs dummy :c:type:`drm_gem_object`; if **num_fences** is zero drm_exec_lock_obj() is called instead.h](h2Calls drm_exec_prepare_obj() for the GPUVMs dummy }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh; if }(hjhhhNhNubj)}(h**num_fences**h]h num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ is zero drm_exec_lock_obj() is called instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(hwUsing this function directly, it is the drivers responsibility to call drm_exec_init() and drm_exec_fini() accordingly.h]hwUsing this function directly, it is the drivers responsibility to call drm_exec_init() and drm_exec_fini() accordingly.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h **Return**h]j)}(hjAh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_gpuvm_prepare_objects (C function)c.drm_gpuvm_prepare_objectshNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hgint drm_gpuvm_prepare_objects (struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h]jR)}(hfint drm_gpuvm_prepare_objects(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gpuvm_prepare_objectsh]j)}(hdrm_gpuvm_prepare_objectsh]hdrm_gpuvm_prepare_objects}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hI(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_prepare_objectsasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_exec *exech](jX)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj1ubjj)}(h h]h }(hjBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj1ubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjUmodnameN classnameNj+j.)}j1]jc.drm_gpuvm_prepare_objectsasbuh1hhj1ubjj)}(h h]h }(hjqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj1ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj1ubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_fencesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h num_fencesh]h num_fences}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj~hhhjhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhj{hhubj)}(hhh]h)}(hprepare all associated BOsh]hprepare all associated BOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj{hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` ``struct drm_exec *exec`` the :c:type:`drm_exec` locking context ``unsigned int num_fences`` the amount of :c:type:`dma_fences` to reserve **Description** Calls drm_exec_prepare_obj() for all :c:type:`drm_gem_objects` the given :c:type:`drm_gpuvm` contains mappings of; if **num_fences** is zero drm_exec_lock_obj() is called instead. Using this function directly, it is the drivers responsibility to call drm_exec_init() and drm_exec_fini() accordingly. **Note** This function is safe against concurrent insertion and removal of external objects, however it is not safe against concurrent usage itself. Drivers need to make sure to protect this case with either an outer VM lock or by calling drm_gpuvm_prepare_vm() before this function within the drm_exec_until_all_locked() loop, such that the GPUVM's dma-resv lock ensures mutual exclusion. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj#ubj)}(hhh](j)}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjHh]hstruct drm_gpuvm *gpuvm}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjBubj)}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjahhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjkh]h drm_gpuvm}(hjmhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj]hMhjaubeh}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj?ubj)}(hA``struct drm_exec *exec`` the :c:type:`drm_exec` locking context h](j)}(h``struct drm_exec *exec``h]j)}(hjh]hstruct drm_exec *exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h&the :c:type:`drm_exec` locking contexth](hthe }(hjhhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hjh]hdrm_exec}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhjhMhjubh locking context}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubj)}(hJ``unsigned int num_fences`` the amount of :c:type:`dma_fences` to reserve h](j)}(h``unsigned int num_fences``h]j)}(hjh]hunsigned int num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h-the amount of :c:type:`dma_fences` to reserveh](hthe amount of }(hjhhhNhNubh)}(h:c:type:`dma_fences`h]j)}(hjh]h dma_fences}(hj!hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_fencesuh1hhjhMhjubh to reserve}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubeh}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj#ubh)}(hCalls drm_exec_prepare_obj() for all :c:type:`drm_gem_objects` the given :c:type:`drm_gpuvm` contains mappings of; if **num_fences** is zero drm_exec_lock_obj() is called instead.h](h%Calls drm_exec_prepare_obj() for all }(hjphhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjzh]hdrm_gem_objects}(hj|hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjpubh the given }(hjphhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMhjpubh contains mappings of; if }(hjphhhNhNubj)}(h**num_fences**h]h num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh/ is zero drm_exec_lock_obj() is called instead.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj#ubh)}(hwUsing this function directly, it is the drivers responsibility to call drm_exec_init() and drm_exec_fini() accordingly.h]hwUsing this function directly, it is the drivers responsibility to call drm_exec_init() and drm_exec_fini() accordingly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj#ubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj#ubh)}(hThis function is safe against concurrent insertion and removal of external objects, however it is not safe against concurrent usage itself.h]hThis function is safe against concurrent insertion and removal of external objects, however it is not safe against concurrent usage itself.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj#ubh)}(hDrivers need to make sure to protect this case with either an outer VM lock or by calling drm_gpuvm_prepare_vm() before this function within the drm_exec_until_all_locked() loop, such that the GPUVM's dma-resv lock ensures mutual exclusion.h]hDrivers need to make sure to protect this case with either an outer VM lock or by calling drm_gpuvm_prepare_vm() before this function within the drm_exec_until_all_locked() loop, such that the GPUVM’s dma-resv lock ensures mutual exclusion.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj#ubh)}(h **Return**h]j)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj#ubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_gpuvm_prepare_range (C function)c.drm_gpuvm_prepare_rangehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hzint drm_gpuvm_prepare_range (struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 addr, u64 range, unsigned int num_fences)h]jR)}(hyint drm_gpuvm_prepare_range(struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 addr, u64 range, unsigned int num_fences)h](j)}(hinth]hint}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjrhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_hhhjqhMubj{)}(hdrm_gpuvm_prepare_rangeh]j)}(hdrm_gpuvm_prepare_rangeh]hdrm_gpuvm_prepare_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj_hhhjqhMubj)}(h^(struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 addr, u64 range, unsigned int num_fences)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_prepare_rangeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_exec *exech](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj2modnameN classnameNj+j.)}j1]jc.drm_gpuvm_prepare_rangeasbuh1hhjubjj)}(h h]h }(hjNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj\hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hexech]hexec}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuvm_prepare_rangeasbuh1hhj~ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuvm_prepare_rangeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_fencesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj<hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h num_fencesh]h num_fences}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj_hhhjqhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj[hhhjqhMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1jKhjqhMhjXhhubj)}(hhh]h)}(h+prepare all BOs mapped within a given rangeh]h+prepare all BOs mapped within a given range}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjqhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjqhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hXE**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` ``struct drm_exec *exec`` the :c:type:`drm_exec` locking context ``u64 addr`` the start address within the VA space ``u64 range`` the range to iterate within the VA space ``unsigned int num_fences`` the amount of :c:type:`dma_fences` to reserve **Description** Calls drm_exec_prepare_obj() for all :c:type:`drm_gem_objects` mapped between **addr** and **addr** + **range**; if **num_fences** is zero drm_exec_lock_obj() is called instead. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``struct drm_exec *exec`` the :c:type:`drm_exec` locking context h](j)}(h``struct drm_exec *exec``h]j)}(hj h]hstruct drm_exec *exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h&the :c:type:`drm_exec` locking contexth](hthe }(hj&hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hj0h]hdrm_exec}(hj2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhj"hMhj&ubh locking context}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubj)}(h3``u64 addr`` the start address within the VA space h](j)}(h ``u64 addr``h]j)}(hjih]hu64 addr}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjcubj)}(hhh]h)}(h%the start address within the VA spaceh]h%the start address within the VA space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhjubj)}(h7``u64 range`` the range to iterate within the VA space h](j)}(h ``u64 range``h]j)}(hjh]h u64 range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h(the range to iterate within the VA spaceh]h(the range to iterate within the VA space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hJ``unsigned int num_fences`` the amount of :c:type:`dma_fences` to reserve h](j)}(h``unsigned int num_fences``h]j)}(hjh]hunsigned int num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h-the amount of :c:type:`dma_fences` to reserveh](hthe amount of }(hjhhhNhNubh)}(h:c:type:`dma_fences`h]j)}(hjh]h dma_fences}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_fencesuh1hhjhMhjubh to reserve}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hCalls drm_exec_prepare_obj() for all :c:type:`drm_gem_objects` mapped between **addr** and **addr** + **range**; if **num_fences** is zero drm_exec_lock_obj() is called instead.h](h%Calls drm_exec_prepare_obj() for all }(hjOhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjYh]hdrm_gem_objects}(hj[hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjOubh mapped between }(hjOhhhNhNubj)}(h**addr**h]haddr}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh and }(hjOhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh + }(hjOhhhNhNubj)}(h **range**h]hrange}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh; if }(hjOhhhNhNubj)}(h**num_fences**h]h num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh/ is zero drm_exec_lock_obj() is called instead.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjvhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gpuvm_exec_lock (C function)c.drm_gpuvm_exec_lockhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h8int drm_gpuvm_exec_lock (struct drm_gpuvm_exec *vm_exec)h]jR)}(h7int drm_gpuvm_exec_lock(struct drm_gpuvm_exec *vm_exec)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM7ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhjhM7ubj{)}(hdrm_gpuvm_exec_lockh]j)}(hdrm_gpuvm_exec_lockh]hdrm_gpuvm_exec_lock}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhM7ubj)}(h (struct drm_gpuvm_exec *vm_exec)h]j)}(hstruct drm_gpuvm_exec *vm_exech](jX)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjIubjj)}(h h]h }(hjZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIubh)}(hhh]j)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmmodnameN classnameNj+j.)}j1]j4)}j'j3sbc.drm_gpuvm_exec_lockasbuh1hhjIubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjIubj)}(hvm_exech]hvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhM7ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhM7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM7hjhhubj)}(hhh]h)}(h'lock all dma-resv of all associated BOsh]h'lock all dma-resv of all associated BOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM7hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hX@**Parameters** ``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper **Description** Acquires all dma-resv locks of all :c:type:`drm_gem_objects` the given :c:type:`drm_gpuvm` contains mappings of. Additionally, when calling this function with struct drm_gpuvm_exec::extra being set the driver receives the given **fn** callback to lock additional dma-resv in the context of the :c:type:`drm_gpuvm_exec` instance. Typically, drivers would call drm_exec_prepare_obj() from within this callback. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM;hjubj)}(hhh]j)}(hH``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper h](j)}(h"``struct drm_gpuvm_exec *vm_exec``h]j)}(hjh]hstruct drm_gpuvm_exec *vm_exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM8hj ubj)}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hj*hhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j)}(hj4h]hdrm_gpuvm_exec}(hj6hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_execuh1hhj&hM8hj*ubh wrapper}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&hM8hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hM8hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM:hjubh)}(hpAcquires all dma-resv locks of all :c:type:`drm_gem_objects` the given :c:type:`drm_gpuvm` contains mappings of.h](h#Acquires all dma-resv locks of all }(hjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM9hjubh the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhM9hjubh contains mappings of.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM9hjubh)}(hX'Additionally, when calling this function with struct drm_gpuvm_exec::extra being set the driver receives the given **fn** callback to lock additional dma-resv in the context of the :c:type:`drm_gpuvm_exec` instance. Typically, drivers would call drm_exec_prepare_obj() from within this callback.h](hsAdditionally, when calling this function with struct drm_gpuvm_exec::extra being set the driver receives the given }(hjhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh< callback to lock additional dma-resv in the context of the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j)}(hjh]hdrm_gpuvm_exec}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_execuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM<hjubhZ instance. Typically, drivers would call drm_exec_prepare_obj() from within this callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM<hjubh)}(h **Return**h]j)}(hj h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMAhjubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMBhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_gpuvm_exec_lock_array (C function)c.drm_gpuvm_exec_lock_arrayhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hsint drm_gpuvm_exec_lock_array (struct drm_gpuvm_exec *vm_exec, struct drm_gem_object **objs, unsigned int num_objs)h]jR)}(hrint drm_gpuvm_exec_lock_array(struct drm_gpuvm_exec *vm_exec, struct drm_gem_object **objs, unsigned int num_objs)h](j)}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMvubjj)}(h h]h }(hjthhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjahhhjshMvubj{)}(hdrm_gpuvm_exec_lock_arrayh]j)}(hdrm_gpuvm_exec_lock_arrayh]hdrm_gpuvm_exec_lock_array}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhhjshMvubj)}(hU(struct drm_gpuvm_exec *vm_exec, struct drm_gem_object **objs, unsigned int num_objs)h](j)}(hstruct drm_gpuvm_exec *vm_exech](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_exec_lock_arrayasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvm_exech]hvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object **objsh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj4modnameN classnameNj+j.)}j1]jc.drm_gpuvm_exec_lock_arrayasbuh1hhjubjj)}(h h]h }(hjPhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjH)}(hjKh]h*}(hjkhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjsh]hobjs}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_objsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hnum_objsh]hnum_objs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhjshMvubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj]hhhjshMvubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jKhjshMvhjZhhubj)}(hhh]h)}(h'lock all dma-resv of all associated BOsh]h'lock all dma-resv of all associated BOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMvhjhhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjshMvubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper ``struct drm_gem_object **objs`` additional :c:type:`drm_gem_objects` to lock ``unsigned int num_objs`` the number of additional :c:type:`drm_gem_objects` to lock **Description** Acquires all dma-resv locks of all :c:type:`drm_gem_objects` the given :c:type:`drm_gpuvm` contains mappings of, plus the ones given through **objs**. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMzhjubj)}(hhh](j)}(hH``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper h](j)}(h"``struct drm_gpuvm_exec *vm_exec``h]j)}(hj4h]hstruct drm_gpuvm_exec *vm_exec}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMwhj.ubj)}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hjMhhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j)}(hjWh]hdrm_gpuvm_exec}(hjYhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_execuh1hhjIhMwhjMubh wrapper}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhMwhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMwhj+ubj)}(hN``struct drm_gem_object **objs`` additional :c:type:`drm_gem_objects` to lock h](j)}(h ``struct drm_gem_object **objs``h]j)}(hjh]hstruct drm_gem_object **objs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMxhjubj)}(hhh]h)}(h,additional :c:type:`drm_gem_objects` to lockh](h additional }(hjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhjhMxhjubh to lock}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMxhj+ubj)}(hU``unsigned int num_objs`` the number of additional :c:type:`drm_gem_objects` to lock h](j)}(h``unsigned int num_objs``h]j)}(hjh]hunsigned int num_objs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMyhjubj)}(hhh]h)}(h:the number of additional :c:type:`drm_gem_objects` to lockh](hthe number of additional }(hjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhjhMyhjubh to lock}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMyhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM{hjubh)}(hAcquires all dma-resv locks of all :c:type:`drm_gem_objects` the given :c:type:`drm_gpuvm` contains mappings of, plus the ones given through **objs**.h](h#Acquires all dma-resv locks of all }(hj`hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjjh]hdrm_gem_objects}(hjlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMzhj`ubh the given }(hj`hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMzhj`ubh3 contains mappings of, plus the ones given through }(hj`hhhNhNubj)}(h**objs**h]hobjs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMzhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM}hjubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_gpuvm_exec_lock_range (C function)c.drm_gpuvm_exec_lock_rangehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hSint drm_gpuvm_exec_lock_range (struct drm_gpuvm_exec *vm_exec, u64 addr, u64 range)h]jR)}(hRint drm_gpuvm_exec_lock_range(struct drm_gpuvm_exec *vm_exec, u64 addr, u64 range)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhjhMubj{)}(hdrm_gpuvm_exec_lock_rangeh]j)}(hdrm_gpuvm_exec_lock_rangeh]hdrm_gpuvm_exec_lock_range}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhMubj)}(h5(struct drm_gpuvm_exec *vm_exec, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm_exec *vm_exech](jX)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjGubjj)}(h h]h }(hjXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjGubh)}(hhh]j)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjkmodnameN classnameNj+j.)}j1]j4)}j'j1sbc.drm_gpuvm_exec_lock_rangeasbuh1hhjGubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjGubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjGubj)}(hvm_exech]hvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuvm_exec_lock_rangeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]jc.drm_gpuvm_exec_lock_rangeasbuh1hhjubjj)}(h h]h }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hrangeh]hrange}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h+prepare all BOs mapped within a given rangeh]h+prepare all BOs mapped within a given range}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj[hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper ``u64 addr`` the start address within the VA space ``u64 range`` the range to iterate within the VA space **Description** Acquires all dma-resv locks of all :c:type:`drm_gem_objects` mapped between **addr** and **addr** + **range**. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjzubj)}(hhh](j)}(hH``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper h](j)}(h"``struct drm_gpuvm_exec *vm_exec``h]j)}(hjh]hstruct drm_gpuvm_exec *vm_exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j)}(hjh]hdrm_gpuvm_exec}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_execuh1hhjhMhjubh wrapper}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``u64 addr`` the start address within the VA space h](j)}(h ``u64 addr``h]j)}(hjh]hu64 addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h%the start address within the VA spaceh]h%the start address within the VA space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h7``u64 range`` the range to iterate within the VA space h](j)}(h ``u64 range``h]j)}(hj4h]h u64 range}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj.ubj)}(hhh]h)}(h(the range to iterate within the VA spaceh]h(the range to iterate within the VA space}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjzubh)}(hnAcquires all dma-resv locks of all :c:type:`drm_gem_objects` mapped between **addr** and **addr** + **range**.h](h#Acquires all dma-resv locks of all }(hjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh mapped between }(hjhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h **range**h]hrange}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjzubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjzubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_validate (C function)c.drm_gpuvm_validatehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hGint drm_gpuvm_validate (struct drm_gpuvm *gpuvm, struct drm_exec *exec)h]jR)}(hFint drm_gpuvm_validate(struct drm_gpuvm *gpuvm, struct drm_exec *exec)h](j)}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjChhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0hhhjBhMubj{)}(hdrm_gpuvm_validateh]j)}(hdrm_gpuvm_validateh]hdrm_gpuvm_validate}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0hhhjBhMubj)}(h0(struct drm_gpuvm *gpuvm, struct drm_exec *exec)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjmubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jWsbc.drm_gpuvm_validateasbuh1hhjmubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjmubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hstruct drm_exec *exech](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuvm_validateasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj-hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hexech]hexec}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhj0hhhjBhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj,hhhjBhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1jKhjBhMhj)hhubj)}(hhh]h)}(h"validate all BOs marked as evictedh]h"validate all BOs marked as evicted}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjahhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to validate evicted BOs ``struct drm_exec *exec`` the :c:type:`drm_exec` instance used for locking the GPUVM **Description** Calls the :c:type:`drm_gpuvm_ops`::vm_bo_validate callback for all evicted buffer objects being mapped in the given :c:type:`drm_gpuvm`. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(hL``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to validate evicted BOs h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h/the :c:type:`drm_gpuvm` to validate evicted BOsh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMhjubh to validate evicted BOs}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hU``struct drm_exec *exec`` the :c:type:`drm_exec` instance used for locking the GPUVM h](j)}(h``struct drm_exec *exec``h]j)}(hjh]hstruct drm_exec *exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h:the :c:type:`drm_exec` instance used for locking the GPUVMh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hj$h]hdrm_exec}(hj&hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhjhMhjubh$ instance used for locking the GPUVM}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hCalls the :c:type:`drm_gpuvm_ops`::vm_bo_validate callback for all evicted buffer objects being mapped in the given :c:type:`drm_gpuvm`.h](h Calls the }(hjuhhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hjh]h drm_gpuvm_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjuubhS::vm_bo_validate callback for all evicted buffer objects being mapped in the given }(hjuhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMhjuubh.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_gpuvm_resv_add_fence (C function)c.drm_gpuvm_resv_add_fencehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hvoid drm_gpuvm_resv_add_fence (struct drm_gpuvm *gpuvm, struct drm_exec *exec, struct dma_fence *fence, enum dma_resv_usage private_usage, enum dma_resv_usage extobj_usage)h]jR)}(hvoid drm_gpuvm_resv_add_fence(struct drm_gpuvm *gpuvm, struct drm_exec *exec, struct dma_fence *fence, enum dma_resv_usage private_usage, enum dma_resv_usage extobj_usage)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhjhMubj{)}(hdrm_gpuvm_resv_add_fenceh]j)}(hdrm_gpuvm_resv_add_fenceh]hdrm_gpuvm_resv_add_fence}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhMubj)}(h(struct drm_gpuvm *gpuvm, struct drm_exec *exec, struct dma_fence *fence, enum dma_resv_usage private_usage, enum dma_resv_usage extobj_usage)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjJubjj)}(h h]h }(hj[hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjnmodnameN classnameNj+j.)}j1]j4)}j'j4sbc.drm_gpuvm_resv_add_fenceasbuh1hhjJubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjJubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct drm_exec *exech](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuvm_resv_add_fenceasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct dma_fence *fenceh](jX)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj,ubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,ubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjPmodnameN classnameNj+j.)}j1]jc.drm_gpuvm_resv_add_fenceasbuh1hhj,ubjj)}(h h]h }(hjlhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,ubjH)}(hjKh]h*}(hjzhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj,ubj)}(hfenceh]hfence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(h!enum dma_resv_usage private_usageh](jX)}(hj[h]henum}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_resv_usageh]hdma_resv_usage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuvm_resv_add_fenceasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h private_usageh]h private_usage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(h enum dma_resv_usage extobj_usageh](jX)}(hj[h]henum}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_resv_usageh]hdma_resv_usage}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj#modnameN classnameNj+j.)}j1]jc.drm_gpuvm_resv_add_fenceasbuh1hhjubjj)}(h h]h }(hj?hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h extobj_usageh]h extobj_usage}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h,add fence to private and all extobj dma-resvh]h,add fence to private and all extobj dma-resv}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjthhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hXE**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to add a fence to ``struct drm_exec *exec`` the :c:type:`drm_exec` locking context ``struct dma_fence *fence`` fence to add ``enum dma_resv_usage private_usage`` private dma-resv usage ``enum dma_resv_usage extobj_usage`` extobj dma-resv usageh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(hF``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to add a fence to h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h)the :c:type:`drm_gpuvm` to add a fence toh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMhjubh to add a fence to}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``struct drm_exec *exec`` the :c:type:`drm_exec` locking context h](j)}(h``struct drm_exec *exec``h]j)}(hjh]hstruct drm_exec *exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h&the :c:type:`drm_exec` locking contexth](hthe }(hj-hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hj7h]hdrm_exec}(hj9hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhj)hMhj-ubh locking context}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjubj)}(h)``struct dma_fence *fence`` fence to add h](j)}(h``struct dma_fence *fence``h]j)}(hjph]hstruct dma_fence *fence}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjjubj)}(hhh]h)}(h fence to addh]h fence to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h=``enum dma_resv_usage private_usage`` private dma-resv usage h](j)}(h%``enum dma_resv_usage private_usage``h]j)}(hjh]h!enum dma_resv_usage private_usage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(hprivate dma-resv usageh]hprivate dma-resv usage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h:``enum dma_resv_usage extobj_usage`` extobj dma-resv usageh](j)}(h$``enum dma_resv_usage extobj_usage``h]j)}(hjh]h enum dma_resv_usage extobj_usage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(hextobj dma-resv usageh]hextobj dma-resv usage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gpuvm_bo_create (C function)c.drm_gpuvm_bo_createhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h_struct drm_gpuvm_bo * drm_gpuvm_bo_create (struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h]jR)}(h]struct drm_gpuvm_bo *drm_gpuvm_bo_create(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](jX)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj8hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjJhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8hhhjIhMubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj]modnameN classnameNj+j.)}j1]j4)}j'drm_gpuvm_bo_createsbc.drm_gpuvm_bo_createasbuh1hhj8hhhjIhMubjj)}(h h]h }(hj|hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8hhhjIhMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj8hhhjIhMubj{)}(hdrm_gpuvm_bo_createh]j)}(hjyh]hdrm_gpuvm_bo_create}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhhjIhMubj)}(h5(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jwc.drm_gpuvm_bo_createasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hj&hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj"ubjj)}(h h]h }(hj3hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj"ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjFmodnameN classnameNj+j.)}j1]jwc.drm_gpuvm_bo_createasbuh1hhj"ubjj)}(h h]h }(hjbhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj"ubjH)}(hjKh]h*}(hjphhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj"ubj)}(hobjh]hobj}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhjIhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj4hhhjIhMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jKhjIhMhj1hhubj)}(hhh]h)}(h,create a new instance of struct drm_gpuvm_boh]h,create a new instance of struct drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj1hhhjIhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` The :c:type:`drm_gpuvm` the **obj** is mapped in. ``struct drm_gem_object *obj`` The :c:type:`drm_gem_object` being mapped in the **gpuvm**. **Description** If provided by the driver, this function uses the :c:type:`drm_gpuvm_ops` vm_bo_alloc() callback to allocate. **Return** a pointer to the :c:type:`drm_gpuvm_bo` on success, NULL on failureh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM!hjubj)}(hhh](j)}(hN``struct drm_gpuvm *gpuvm`` The :c:type:`drm_gpuvm` the **obj** is mapped in. h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h1The :c:type:`drm_gpuvm` the **obj** is mapped in.h](hThe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj h]h drm_gpuvm}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMhjubh the }(hjhhhNhNubj)}(h**obj**h]hobj}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is mapped in.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h[``struct drm_gem_object *obj`` The :c:type:`drm_gem_object` being mapped in the **gpuvm**. h](j)}(h``struct drm_gem_object *obj``h]j)}(hjVh]hstruct drm_gem_object *obj}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjPubj)}(hhh]h)}(h;The :c:type:`drm_gem_object` being mapped in the **gpuvm**.h](hThe }(hjohhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjyh]hdrm_gem_object}(hj{hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjkhMhjoubh being mapped in the }(hjohhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM!hjubh)}(hmIf provided by the driver, this function uses the :c:type:`drm_gpuvm_ops` vm_bo_alloc() callback to allocate.h](h2If provided by the driver, this function uses the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hjh]h drm_gpuvm_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjubh$ vm_bo_alloc() callback to allocate.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM#hjubh)}(hCa pointer to the :c:type:`drm_gpuvm_bo` on success, NULL on failureh](ha pointer to the }(hj&hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj0h]h drm_gpuvm_bo}(hj2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM$hj&ubh on success, NULL on failure}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMhM$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_bo_put (C function)c.drm_gpuvm_bo_puthNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h2bool drm_gpuvm_bo_put (struct drm_gpuvm_bo *vm_bo)h]jR)}(h1bool drm_gpuvm_bo_put(struct drm_gpuvm_bo *vm_bo)h](j)}(hj*h]hbool}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM~ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjthhhjhM~ubj{)}(hdrm_gpuvm_bo_puth]j)}(hdrm_gpuvm_bo_puth]hdrm_gpuvm_bo_put}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjthhhjhM~ubj)}(h(struct drm_gpuvm_bo *vm_bo)h]j)}(hstruct drm_gpuvm_bo *vm_boh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_bo_putasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvm_boh]hvm_bo}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjthhhjhM~ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjphhhjhM~ubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1jKhjhM~hjmhhubj)}(hhh]h)}(h$drop a struct drm_gpuvm_bo referenceh]h$drop a struct drm_gpuvm_bo reference}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM~hj4hhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjhM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1jFhhhj@hNhNubj)}(hXc**Parameters** ``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to release the reference of **Description** This releases a reference to **vm_bo**. If the reference count drops to zero, the :c:type:`gpuvm_bo` is destroyed, which includes removing it from the GEMs gpuva list. Hence, if a call to this function can potentially let the reference count drop to zero the caller must hold the lock that the GEM uses for its gpuva list (either the GEM's dma-resv or gpuva.lock mutex). This function may only be called from non-atomic context. **Return** true if vm_bo was destroyed, false otherwise.h](h)}(h**Parameters**h]j)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjSubj)}(hhh]j)}(hV``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to release the reference of h](j)}(h``struct drm_gpuvm_bo *vm_bo``h]j)}(hjxh]hstruct drm_gpuvm_bo *vm_bo}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjrubj)}(hhh]h)}(h6the :c:type:`drm_gpuvm_bo` to release the reference ofh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjhMhjubh to release the reference of}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjSubh)}(h'This releases a reference to **vm_bo**.h](hThis releases a reference to }(hjhhhNhNubj)}(h **vm_bo**h]hvm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjSubh)}(hXJIf the reference count drops to zero, the :c:type:`gpuvm_bo` is destroyed, which includes removing it from the GEMs gpuva list. Hence, if a call to this function can potentially let the reference count drop to zero the caller must hold the lock that the GEM uses for its gpuva list (either the GEM's dma-resv or gpuva.lock mutex).h](h*If the reference count drops to zero, the }(hj hhhNhNubh)}(h:c:type:`gpuvm_bo`h]j)}(hjh]hgpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jagpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj ubhX is destroyed, which includes removing it from the GEMs gpuva list. Hence, if a call to this function can potentially let the reference count drop to zero the caller must hold the lock that the GEM uses for its gpuva list (either the GEM’s dma-resv or gpuva.lock mutex).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4hMhjSubh)}(h9This function may only be called from non-atomic context.h]h9This function may only be called from non-atomic context.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjSubh)}(h **Return**h]j)}(hjPh]hReturn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjSubh)}(h-true if vm_bo was destroyed, false otherwise.h]h-true if vm_bo was destroyed, false otherwise.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_gpuvm_bo_put_deferred (C function)c.drm_gpuvm_bo_put_deferredhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h;bool drm_gpuvm_bo_put_deferred (struct drm_gpuvm_bo *vm_bo)h]jR)}(h:bool drm_gpuvm_bo_put_deferred(struct drm_gpuvm_bo *vm_bo)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gpuvm_bo_put_deferredh]j)}(hdrm_gpuvm_bo_put_deferredh]hdrm_gpuvm_bo_put_deferred}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct drm_gpuvm_bo *vm_bo)h]j)}(hstruct drm_gpuvm_bo *vm_boh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_bo_put_deferredasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvm_boh]hvm_bo}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h:drop a struct drm_gpuvm_bo reference with deferred cleanuph]h:drop a struct drm_gpuvm_bo reference with deferred cleanup}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1jFhhhj@hNhNubj)}(hXj**Parameters** ``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to release the reference of **Description** This releases a reference to **vm_bo**. This might take and release the GEMs GPUVA lock. You should call drm_gpuvm_bo_deferred_cleanup() later to complete the cleanup process. **Return** true if vm_bo is being destroyed, false otherwise.h](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjpubj)}(hhh]j)}(hV``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to release the reference of h](j)}(h``struct drm_gpuvm_bo *vm_bo``h]j)}(hjh]hstruct drm_gpuvm_bo *vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h6the :c:type:`drm_gpuvm_bo` to release the reference ofh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjhMhjubh to release the reference of}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjpubh)}(h'This releases a reference to **vm_bo**.h](hThis releases a reference to }(hj hhhNhNubj)}(h **vm_bo**h]hvm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjpubh)}(hThis might take and release the GEMs GPUVA lock. You should call drm_gpuvm_bo_deferred_cleanup() later to complete the cleanup process.h]hThis might take and release the GEMs GPUVA lock. You should call drm_gpuvm_bo_deferred_cleanup() later to complete the cleanup process.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjpubh)}(h **Return**h]j)}(hj;h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjpubh)}(h2true if vm_bo is being destroyed, false otherwise.h]h2true if vm_bo is being destroyed, false otherwise.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_gpuvm_bo_deferred_cleanup (C function)c.drm_gpuvm_bo_deferred_cleanuphNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hh]hReturn}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM:hj$ubh)}(hIa pointer to the :c:type:`drm_gpuvm_bo` on success, an ERR_PTR on failureh](ha pointer to the }(hjThhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj^h]h drm_gpuvm_bo}(hj`hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM;hjTubh" on success, an ERR_PTR on failure}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{hM;hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)drm_gpuvm_bo_obtain_prealloc (C function)c.drm_gpuvm_bo_obtain_preallochNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hQstruct drm_gpuvm_bo * drm_gpuvm_bo_obtain_prealloc (struct drm_gpuvm_bo *__vm_bo)h]jR)}(hOstruct drm_gpuvm_bo *drm_gpuvm_bo_obtain_prealloc(struct drm_gpuvm_bo *__vm_bo)h](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM[ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM[ubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_gpuvm_bo_obtain_preallocsbc.drm_gpuvm_bo_obtain_preallocasbuh1hhjhhhjhM[ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM[ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhM[ubj{)}(hdrm_gpuvm_bo_obtain_prealloch]j)}(hjh]hdrm_gpuvm_bo_obtain_prealloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM[ubj)}(h(struct drm_gpuvm_bo *__vm_bo)h]j)}(hstruct drm_gpuvm_bo *__vm_boh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj@modnameN classnameNj+j.)}j1]jc.drm_gpuvm_bo_obtain_preallocasbuh1hhjubjj)}(h h]h }(hj\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h__vm_boh]h__vm_bo}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM[ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhM[ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM[hjhhubj)}(hhh]h)}(hpobtains an instance of the :c:type:`drm_gpuvm_bo` for the given :c:type:`drm_gpuvm` and :c:type:`drm_gem_object`h](hobtains an instance of the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gpuvm_bo_obtain_preallocasbja drm_gpuvm_bouh1hhjghMhjubh for the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+jja drm_gpuvmuh1hhjghMhjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+jjadrm_gem_objectuh1hhjghMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM[hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm_bo *__vm_bo`` A pre-allocated struct drm_gpuvm_bo. **Description** Find the :c:type:`drm_gpuvm_bo` representing the combination of the given :c:type:`drm_gpuvm` and :c:type:`drm_gem_object`. If found, increases the reference count of the found :c:type:`drm_gpuvm_bo` accordingly, while the **__vm_bo** reference count is decreased. If not found **__vm_bo** is returned without further increase of the reference count. The provided **__vm_bo** must not already be in the gpuva, evict, or extobj lists prior to calling this method. A new :c:type:`drm_gpuvm_bo` is added to the GEMs gpuva list. **Return** a pointer to the found :c:type:`drm_gpuvm_bo` or **__vm_bo** if no existing :c:type:`drm_gpuvm_bo` was foundh](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM_hj'ubj)}(hhh]j)}(hF``struct drm_gpuvm_bo *__vm_bo`` A pre-allocated struct drm_gpuvm_bo. h](j)}(h ``struct drm_gpuvm_bo *__vm_bo``h]j)}(hjLh]hstruct drm_gpuvm_bo *__vm_bo}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM]hjFubj)}(hhh]h)}(h$A pre-allocated struct drm_gpuvm_bo.h]h$A pre-allocated struct drm_gpuvm_bo.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM]hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM]hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM_hj'ubh)}(hX^Find the :c:type:`drm_gpuvm_bo` representing the combination of the given :c:type:`drm_gpuvm` and :c:type:`drm_gem_object`. If found, increases the reference count of the found :c:type:`drm_gpuvm_bo` accordingly, while the **__vm_bo** reference count is decreased. If not found **__vm_bo** is returned without further increase of the reference count.h](h Find the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM^hjubh+ representing the combination of the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhM^hjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjhM^hjubh7. If found, increases the reference count of the found }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjhM^hjubh accordingly, while the }(hjhhhNhNubj)}(h **__vm_bo**h]h__vm_bo}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, reference count is decreased. If not found }(hjhhhNhNubj)}(h **__vm_bo**h]h__vm_bo}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh= is returned without further increase of the reference count.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM^hj'ubh)}(hoThe provided **__vm_bo** must not already be in the gpuva, evict, or extobj lists prior to calling this method.h](h The provided }(hj\hhhNhNubj)}(h **__vm_bo**h]h__vm_bo}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubhW must not already be in the gpuva, evict, or extobj lists prior to calling this method.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMdhj'ubh)}(h=A new :c:type:`drm_gpuvm_bo` is added to the GEMs gpuva list.h](hA new }(hj}hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMghj}ubh! is added to the GEMs gpuva list.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMghj'ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMihj'ubh)}(hla pointer to the found :c:type:`drm_gpuvm_bo` or **__vm_bo** if no existing :c:type:`drm_gpuvm_bo` was foundh](ha pointer to the found }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMjhjubh or }(hjhhhNhNubj)}(h **__vm_bo**h]h__vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if no existing }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjhMjhjubh was found}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMjhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_gpuvm_bo_extobj_add (C function)c.drm_gpuvm_bo_extobj_addhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h9void drm_gpuvm_bo_extobj_add (struct drm_gpuvm_bo *vm_bo)h]jR)}(h8void drm_gpuvm_bo_extobj_add(struct drm_gpuvm_bo *vm_bo)h](j)}(hvoidh]hvoid}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hj]hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJhhhj\hMubj{)}(hdrm_gpuvm_bo_extobj_addh]j)}(hdrm_gpuvm_bo_extobj_addh]hdrm_gpuvm_bo_extobj_add}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhj\hMubj)}(h(struct drm_gpuvm_bo *vm_bo)h]j)}(hstruct drm_gpuvm_bo *vm_boh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jqsbc.drm_gpuvm_bo_extobj_addasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvm_boh]hvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjJhhhj\hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjFhhhj\hMubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1jKhj\hMhjChhubj)}(hhh]h)}(hHadds the :c:type:`drm_gpuvm_bo` to its :c:type:`drm_gpuvm`'s extobj listh](h adds the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gpuvm_bo_extobj_addasbja drm_gpuvm_bouh1hhjghMhjubh to its }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj@h]h drm_gpuvm}(hjBhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j4ja drm_gpuvmuh1hhjghMhjubh’s extobj list}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjChhhj\hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1jFhhhj@hNhNubj)}(hXB**Parameters** ``struct drm_gpuvm_bo *vm_bo`` The :c:type:`drm_gpuvm_bo` to add to its :c:type:`drm_gpuvm`'s the extobj list. **Description** Adds the given **vm_bo** to its :c:type:`drm_gpuvm`'s extobj list if not on the list already and if the corresponding :c:type:`drm_gem_object` is an external object, actually.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjuubj)}(hhh]j)}(ho``struct drm_gpuvm_bo *vm_bo`` The :c:type:`drm_gpuvm_bo` to add to its :c:type:`drm_gpuvm`'s the extobj list. h](j)}(h``struct drm_gpuvm_bo *vm_bo``h]j)}(hjh]hstruct drm_gpuvm_bo *vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(hOThe :c:type:`drm_gpuvm_bo` to add to its :c:type:`drm_gpuvm`'s the extobj list.h](hThe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjhMhjubh to add to its }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMhjubh’s the extobj list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjuubh)}(hAdds the given **vm_bo** to its :c:type:`drm_gpuvm`'s extobj list if not on the list already and if the corresponding :c:type:`drm_gem_object` is an external object, actually.h](hAdds the given }(hj1hhhNhNubj)}(h **vm_bo**h]hvm_bo}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh to its }(hj1hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjMh]h drm_gpuvm}(hjOhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj1ubhE’s extobj list if not on the list already and if the corresponding }(hj1hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjqh]hdrm_gem_object}(hjshhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjjhMhj1ubh! is an external object, actually.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjhMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_bo_evict (C function)c.drm_gpuvm_bo_evicthNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h@void drm_gpuvm_bo_evict (struct drm_gpuvm_bo *vm_bo, bool evict)h]jR)}(h?void drm_gpuvm_bo_evict(struct drm_gpuvm_bo *vm_bo, bool evict)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gpuvm_bo_evicth]j)}(hdrm_gpuvm_bo_evicth]hdrm_gpuvm_bo_evict}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h((struct drm_gpuvm_bo *vm_bo, bool evict)h](j)}(hstruct drm_gpuvm_bo *vm_boh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_bo_evictasbuh1hhjubjj)}(h h]h }(hj3hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjAhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvm_boh]hvm_bo}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool evicth](j)}(hj*h]hbool}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjj)}(h h]h }(hjthhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjcubj)}(hevicth]hevict}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hUadd / remove a :c:type:`drm_gpuvm_bo` to / from the :c:type:`drm_gpuvms` evicted listh](hadd / remove a }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j/c.drm_gpuvm_bo_evictasbja drm_gpuvm_bouh1hhjghMhjubh to / from the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvms`h]j)}(hjh]h drm_gpuvms}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+jja drm_gpuvmsuh1hhjghMhjubh evicted list}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to add or remove ``bool evict`` indicates whether the object is evicted **Description** Adds a :c:type:`drm_gpuvm_bo` to or removes it from the :c:type:`drm_gpuvm`'s evicted list.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(hK``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to add or remove h](j)}(h``struct drm_gpuvm_bo *vm_bo``h]j)}(hj8h]hstruct drm_gpuvm_bo *vm_bo}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj2ubj)}(hhh]h)}(h+the :c:type:`drm_gpuvm_bo` to add or removeh](hthe }(hjQhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj[h]h drm_gpuvm_bo}(hj]hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjMhMhjQubh to add or remove}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj/ubj)}(h7``bool evict`` indicates whether the object is evicted h](j)}(h``bool evict``h]j)}(hjh]h bool evict}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h'indicates whether the object is evictedh]h'indicates whether the object is evicted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj/ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h[Adds a :c:type:`drm_gpuvm_bo` to or removes it from the :c:type:`drm_gpuvm`'s evicted list.h](hAdds a }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh to or removes it from the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj hMhjubh’s evicted list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_insert (C function)c.drm_gpuva_inserthNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hDint drm_gpuva_insert (struct drm_gpuvm *gpuvm, struct drm_gpuva *va)h]jR)}(hCint drm_gpuva_insert(struct drm_gpuvm *gpuvm, struct drm_gpuva *va)h](j)}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjihhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVhhhjhhMubj{)}(hdrm_gpuva_inserth]j)}(hdrm_gpuva_inserth]hdrm_gpuva_insert}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhjhhMubj)}(h/(struct drm_gpuvm *gpuvm, struct drm_gpuva *va)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'j}sbc.drm_gpuva_insertasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gpuva *vah](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj)modnameN classnameNj+j.)}j1]jc.drm_gpuva_insertasbuh1hhjubjj)}(h h]h }(hjEhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjShhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvah]hva}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjhhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjRhhhjhhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jKhjhhMhjOhhubj)}(hhh]h)}(hinsert a :c:type:`drm_gpuva`h](h insert a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gpuva_insertasbja drm_gpuvauh1hhjghMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to insert the :c:type:`drm_gpuva` in ``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to insert **Description** Insert a :c:type:`drm_gpuva` with a given address and range into a :c:type:`drm_gpuvm`. It is safe to use this function using the safe versions of iterating the GPU VA space, such as drm_gpuvm_for_each_va_safe() and drm_gpuvm_for_each_va_range_safe(). **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(hY``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to insert the :c:type:`drm_gpuva` in h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(hhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjhMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(h**Parameters** ``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to unlink **Description** Similar to drm_gpuva_unlink(), but uses drm_gpuvm_bo_put_deferred() and takes the lock for the caller.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMfhjubj)}(hhh]j)}(h;``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to unlink h](j)}(h``struct drm_gpuva *va``h]j)}(hjh]hstruct drm_gpuva *va}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMchjubj)}(hhh]h)}(h!the :c:type:`drm_gpuva` to unlinkh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjhMchjubh to unlink}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMehjubh)}(hfSimilar to drm_gpuva_unlink(), but uses drm_gpuvm_bo_put_deferred() and takes the lock for the caller.h]hfSimilar to drm_gpuva_unlink(), but uses drm_gpuvm_bo_put_deferred() and takes the lock for the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMdhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!drm_gpuva_find_first (C function)c.drm_gpuva_find_firsthNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hVstruct drm_gpuva * drm_gpuva_find_first (struct drm_gpuvm *gpuvm, u64 addr, u64 range)h]jR)}(hTstruct drm_gpuva *drm_gpuva_find_first(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jX)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjIhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hj[hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIhhhjZhMubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjnmodnameN classnameNj+j.)}j1]j4)}j'drm_gpuva_find_firstsbc.drm_gpuva_find_firstasbuh1hhjIhhhjZhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIhhhjZhMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjIhhhjZhMubj{)}(hdrm_gpuva_find_firsth]j)}(hjh]hdrm_gpuva_find_first}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjIhhhjZhMubj)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuva_find_firstasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj<modnameN classnameNj+j.)}j1]jc.drm_gpuva_find_firstasbuh1hhj3ubjj)}(h h]h }(hjXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3ubj)}(haddrh]haddr}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuva_find_firstasbuh1hhj{ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj{ubj)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjIhhhjZhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjEhhhjZhMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1jKhjZhMhjBhhubj)}(hhh]h)}(h5find the first :c:type:`drm_gpuva` in the given rangeh](hfind the first }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gpuva_find_firstasbja drm_gpuvauh1hhjghMhjubh in the given range}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjZhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(h**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to search in ``u64 addr`` the :c:type:`drm_gpuvas` address ``u64 range`` the :c:type:`drm_gpuvas` range **Return** the first :c:type:`drm_gpuva` within the given rangeh](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(hA``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to search in h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjAh]hstruct drm_gpuvm *gpuvm}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj;ubj)}(hhh]h)}(h$the :c:type:`drm_gpuvm` to search inh](hthe }(hjZhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjdh]h drm_gpuvm}(hjfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjVhMhjZubh to search in}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj8ubj)}(h.``u64 addr`` the :c:type:`drm_gpuvas` address h](j)}(h ``u64 addr``h]j)}(hjh]hu64 addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h the :c:type:`drm_gpuvas` addressh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjh]h drm_gpuvas}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhjhMhjubh address}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubj)}(h-``u64 range`` the :c:type:`drm_gpuvas` range h](j)}(h ``u64 range``h]j)}(hjh]h u64 range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(hthe :c:type:`drm_gpuvas` rangeh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjh]h drm_gpuvas}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhjhMhjubh range}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjWh]hReturn}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h4the first :c:type:`drm_gpuva` within the given rangeh](h the first }(hjmhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjwh]h drm_gpuva}(hjyhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjmubh within the given range}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_find (C function)c.drm_gpuva_findhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hPstruct drm_gpuva * drm_gpuva_find (struct drm_gpuvm *gpuvm, u64 addr, u64 range)h]jR)}(hNstruct drm_gpuva *drm_gpuva_find(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_gpuva_findsbc.drm_gpuva_findasbuh1hhjhhhjhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhMubj{)}(hdrm_gpuva_findh]j)}(hjh]hdrm_gpuva_find}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj5ubjj)}(h h]h }(hjFhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjYmodnameN classnameNj+j.)}j1]jc.drm_gpuva_findasbuh1hhj5ubjj)}(h h]h }(hjuhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj5ubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuva_findasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuva_findasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hrangeh]hrange}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hfind a :c:type:`drm_gpuva`h](hfind a }(hjJhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjTh]h drm_gpuva}(hjVhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gpuva_findasbja drm_gpuvauh1hhjghMhjJubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to search in ``u64 addr`` the :c:type:`drm_gpuvas` address ``u64 range`` the :c:type:`drm_gpuvas` range **Return** the :c:type:`drm_gpuva` at a given :c:type:`addr` and with a given :c:type:`range`h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(hA``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to search in h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h$the :c:type:`drm_gpuvm` to search inh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMhjubh to search in}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``u64 addr`` the :c:type:`drm_gpuvas` address h](j)}(h ``u64 addr``h]j)}(hj h]hu64 addr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h the :c:type:`drm_gpuvas` addressh](hthe }(hj$hhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hj.h]h drm_gpuvas}(hj0hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhj hMhj$ubh address}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h-``u64 range`` the :c:type:`drm_gpuvas` range h](j)}(h ``u64 range``h]j)}(hjgh]h u64 range}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjaubj)}(hhh]h)}(hthe :c:type:`drm_gpuvas` rangeh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjh]h drm_gpuvas}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhj|hMhjubh range}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hRthe :c:type:`drm_gpuva` at a given :c:type:`addr` and with a given :c:type:`range`h](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh at a given }(hjhhhNhNubh)}(h:c:type:`addr`h]j)}(hj h]haddr}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaaddruh1hhj hMhjubh and with a given }(hjhhhNhNubh)}(h:c:type:`range`h]j)}(hj, h]hrange}(hj. hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj* ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jarangeuh1hhj hMhjubeh}(h]h ]h"]h$]h&]uh1hhj hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gpuva_find_prev (C function)c.drm_gpuva_find_prevhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hKstruct drm_gpuva * drm_gpuva_find_prev (struct drm_gpuvm *gpuvm, u64 start)h]jR)}(hIstruct drm_gpuva *drm_gpuva_find_prev(struct drm_gpuvm *gpuvm, u64 start)h](jX)}(hjh]hstruct}(hjo hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjk hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hj} hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjk hhhj| hMubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j4)}j'drm_gpuva_find_prevsbc.drm_gpuva_find_prevasbuh1hhjk hhhj| hMubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjk hhhj| hMubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjk hhhj| hMubj{)}(hdrm_gpuva_find_prevh]j)}(hj h]hdrm_gpuva_find_prev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjk hhhj| hMubj)}(h$(struct drm_gpuvm *gpuvm, u64 start)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j c.drm_gpuva_find_prevasbuh1hhj ubjj)}(h h]h }(hj% hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj3 hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hgpuvmh]hgpuvm}(hj@ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hj\ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj^ modnameN classnameNj+j.)}j1]j c.drm_gpuva_find_prevasbuh1hhjU ubjj)}(h h]h }(hjz hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjU ubj)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjk hhhj| hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjg hhhj| hMubah}(h]jb ah ](jjeh"]h$]h&]jj)jhuh1jKhj| hMhjd hhubj)}(hhh]h)}(h5find the :c:type:`drm_gpuva` before the given addressh](h find the }(hj hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj h]h drm_gpuva}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j c.drm_gpuva_find_prevasbja drm_gpuvauh1hhjghMhj ubh before the given address}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjd hhhj| hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to search in ``u64 start`` the given GPU VA's start address **Description** Find the adjacent :c:type:`drm_gpuva` before the GPU VA with given :c:type:`start` address. Note that if there is any free space between the GPU VA mappings no mapping is returned. **Return** a pointer to the found :c:type:`drm_gpuva` or NULL if none was foundh](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj ubj)}(hhh](j)}(hA``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to search in h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hj h]hstruct drm_gpuvm *gpuvm}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj ubj)}(hhh]h)}(h$the :c:type:`drm_gpuvm` to search inh](hthe }(hj4 hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj> h]h drm_gpuvm}(hj@ hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj< ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj0 hMhj4 ubh to search in}(hj4 hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0 hMhj1 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj0 hMhj ubj)}(h/``u64 start`` the given GPU VA's start address h](j)}(h ``u64 start``h]j)}(hjw h]h u64 start}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjq ubj)}(hhh]h)}(h the given GPU VA's start addressh]h"the given GPU VA’s start address}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjq ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj ubh)}(h[Find the adjacent :c:type:`drm_gpuva` before the GPU VA with given :c:type:`start` address.h](hFind the adjacent }(hj hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj h]h drm_gpuva}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj ubh before the GPU VA with given }(hj hhhNhNubh)}(h:c:type:`start`h]j)}(hj h]hstart}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jastartuh1hhj hMhj ubh address.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubh)}(hXNote that if there is any free space between the GPU VA mappings no mapping is returned.h]hXNote that if there is any free space between the GPU VA mappings no mapping is returned.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj ubh)}(h **Return**h]j)}(hj. h]hReturn}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj, ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj ubh)}(hDa pointer to the found :c:type:`drm_gpuva` or NULL if none was foundh](ha pointer to the found }(hjD hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjN h]h drm_gpuva}(hjP hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjL ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjD ubh or NULL if none was found}(hjD hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjk hMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gpuva_find_next (C function)c.drm_gpuva_find_nexthNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hIstruct drm_gpuva * drm_gpuva_find_next (struct drm_gpuvm *gpuvm, u64 end)h]jR)}(hGstruct drm_gpuva *drm_gpuva_find_next(struct drm_gpuvm *gpuvm, u64 end)h](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhj hMubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j4)}j'drm_gpuva_find_nextsbc.drm_gpuva_find_nextasbuh1hhj hhhj hMubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhj hMubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj hhhj hMubj{)}(hdrm_gpuva_find_nexth]j)}(hj h]hdrm_gpuva_find_next}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hMubj)}(h"(struct drm_gpuvm *gpuvm, u64 end)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj. hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj0 modnameN classnameNj+j.)}j1]j c.drm_gpuva_find_nextasbuh1hhj ubjj)}(h h]h }(hjL hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hjZ hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hgpuvmh]hgpuvm}(hjg hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hu64 endh](h)}(hhh]j)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j c.drm_gpuva_find_nextasbuh1hhj| ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj| ubj)}(hendh]hend}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj| ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj hMhj hhubj)}(hhh]h)}(h4find the :c:type:`drm_gpuva` after the given addressh](h find the }(hj hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj h]h drm_gpuva}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j c.drm_gpuva_find_nextasbja drm_gpuvauh1hhjghMhj ubh after the given address}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to search in ``u64 end`` the given GPU VA's end address **Description** Find the adjacent :c:type:`drm_gpuva` after the GPU VA with given :c:type:`end` address. Note that if there is any free space between the GPU VA mappings no mapping is returned. **Return** a pointer to the found :c:type:`drm_gpuva` or NULL if none was foundh](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(hA``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to search in h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjBh]hstruct drm_gpuvm *gpuvm}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj<ubj)}(hhh]h)}(h$the :c:type:`drm_gpuvm` to search inh](hthe }(hj[hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjeh]h drm_gpuvm}(hjghhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjWhMhj[ubh to search in}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj9ubj)}(h+``u64 end`` the given GPU VA's end address h](j)}(h ``u64 end``h]j)}(hjh]hu64 end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(hthe given GPU VA's end addressh]h the given GPU VA’s end address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj9ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hXFind the adjacent :c:type:`drm_gpuva` after the GPU VA with given :c:type:`end` address.h](hFind the adjacent }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh after the GPU VA with given }(hjhhhNhNubh)}(h :c:type:`end`h]j)}(hjh]hend}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaenduh1hhjhMhjubh address.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(hXNote that if there is any free space between the GPU VA mappings no mapping is returned.h]hXNote that if there is any free space between the GPU VA mappings no mapping is returned.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h **Return**h]j)}(hjUh]hReturn}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hDa pointer to the found :c:type:`drm_gpuva` or NULL if none was foundh](ha pointer to the found }(hjkhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjuh]h drm_gpuva}(hjwhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjkubh or NULL if none was found}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_gpuvm_interval_empty (C function)c.drm_gpuvm_interval_emptyhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hLbool drm_gpuvm_interval_empty (struct drm_gpuvm *gpuvm, u64 addr, u64 range)h]jR)}(hKbool drm_gpuvm_interval_empty(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gpuvm_interval_emptyh]j)}(hdrm_gpuvm_interval_emptyh]hdrm_gpuvm_interval_empty}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_interval_emptyasbuh1hhjubjj)}(h h]h }(hj7hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjEhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjpmodnameN classnameNj+j.)}j1]j3c.drm_gpuvm_interval_emptyasbuh1hhjgubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j3c.drm_gpuvm_interval_emptyasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h:indicate whether a given interval of the VA space is emptyh]h:indicate whether a given interval of the VA space is empty}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1jFhhhj@hNhNubj)}(h**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to check the range for ``u64 addr`` the start address of the range ``u64 range`` the range of the interval **Return** true if the interval is empty, false otherwiseh](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj(ubj)}(hhh](j)}(hK``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to check the range for h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjMh]hstruct drm_gpuvm *gpuvm}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjGubj)}(hhh]h)}(h.the :c:type:`drm_gpuvm` to check the range forh](hthe }(hjfhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjph]h drm_gpuvm}(hjrhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjbhMhjfubh to check the range for}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjDubj)}(h,``u64 addr`` the start address of the range h](j)}(h ``u64 addr``h]j)}(hjh]hu64 addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(hthe start address of the rangeh]hthe start address of the range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubj)}(h(``u64 range`` the range of the interval h](j)}(h ``u64 range``h]j)}(hjh]h u64 range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(hthe range of the intervalh]hthe range of the interval}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubeh}(h]h ]h"]h$]h&]uh1jhj(ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj(ubh)}(h.true if the interval is empty, false otherwiseh]h.true if the interval is empty, false otherwise}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_map (C function)c.drm_gpuva_maphNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hevoid drm_gpuva_map (struct drm_gpuvm *gpuvm, struct drm_gpuva *va, const struct drm_gpuva_op_map *op)h]jR)}(hdvoid drm_gpuva_map(struct drm_gpuvm *gpuvm, struct drm_gpuva *va, const struct drm_gpuva_op_map *op)h](j)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj^hhhjphMubj{)}(h drm_gpuva_maph]j)}(h drm_gpuva_maph]h drm_gpuva_map}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj^hhhjphMubj)}(hR(struct drm_gpuvm *gpuvm, struct drm_gpuva *va, const struct drm_gpuva_op_map *op)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuva_mapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gpuva *vah](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj1modnameN classnameNj+j.)}j1]jc.drm_gpuva_mapasbuh1hhj ubjj)}(h h]h }(hjMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj[hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hvah]hva}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!const struct drm_gpuva_op_map *oph](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj}ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}ubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj}ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}ubh)}(hhh]j)}(hdrm_gpuva_op_maph]hdrm_gpuva_op_map}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuva_mapasbuh1hhj}ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj}ubj)}(hoph]hop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhjphMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjZhhhjphMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1jKhjphMhjWhhubj)}(hhh]h)}(hPhelper to insert a :c:type:`drm_gpuva` according to a :c:type:`drm_gpuva_op_map`h](hhelper to insert a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj'h]h drm_gpuva}(hj)hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gpuva_mapasbja drm_gpuvauh1hhjghMhjubh according to a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op_map`h]j)}(hjOh]hdrm_gpuva_op_map}(hjQhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+jCjadrm_gpuva_op_mapuh1hhjghMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjphMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1jFhhhj@hNhNubj)}(hXG**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` ``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to insert ``const struct drm_gpuva_op_map *op`` the :c:type:`drm_gpuva_op_map` to initialize **va** with **Description** Initializes the **va** from the **op** and inserts it into the given **gpuvm**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h;``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to insert h](j)}(h``struct drm_gpuva *va``h]j)}(hjh]hstruct drm_gpuva *va}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h!the :c:type:`drm_gpuva` to inserth](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj h]h drm_gpuva}(hj"hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjhMhjubh to insert}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h_``const struct drm_gpuva_op_map *op`` the :c:type:`drm_gpuva_op_map` to initialize **va** with h](j)}(h%``const struct drm_gpuva_op_map *op``h]j)}(hjYh]h!const struct drm_gpuva_op_map *op}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjSubj)}(hhh]h)}(h8the :c:type:`drm_gpuva_op_map` to initialize **va** withh](hthe }(hjrhhhNhNubh)}(h:c:type:`drm_gpuva_op_map`h]j)}(hj|h]hdrm_gpuva_op_map}(hj~hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_op_mapuh1hhjnhMhjrubh to initialize }(hjrhhhNhNubj)}(h**va**h]hva}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh with}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hOInitializes the **va** from the **op** and inserts it into the given **gpuvm**.h](hInitializes the }(hjhhhNhNubj)}(h**va**h]hva}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh from the }(hjhhhNhNubj)}(h**op**h]hop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and inserts it into the given }(hjhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_remap (C function)c.drm_gpuva_remaphNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hjvoid drm_gpuva_remap (struct drm_gpuva *prev, struct drm_gpuva *next, const struct drm_gpuva_op_remap *op)h]jR)}(hivoid drm_gpuva_remap(struct drm_gpuva *prev, struct drm_gpuva *next, const struct drm_gpuva_op_remap *op)h](j)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM ubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@hhhjRhM ubj{)}(hdrm_gpuva_remaph]j)}(hdrm_gpuva_remaph]hdrm_gpuva_remap}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj@hhhjRhM ubj)}(hU(struct drm_gpuva *prev, struct drm_gpuva *next, const struct drm_gpuva_op_remap *op)h](j)}(hstruct drm_gpuva *prevh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj}ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}ubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jgsbc.drm_gpuva_remapasbuh1hhj}ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj}ubj)}(hprevh]hprev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hstruct drm_gpuva *nexth](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuva_remapasbuh1hhjubjj)}(h h]h }(hj/hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj=hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnexth]hnext}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(h#const struct drm_gpuva_op_remap *oph](jX)}(hj h]hconst}(hjchhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_ubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubjX)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubh)}(hhh]j)}(hdrm_gpuva_op_remaph]hdrm_gpuva_op_remap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuva_remapasbuh1hhj_ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj_ubj)}(hoph]hop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhj@hhhjRhM ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj<hhhjRhM ubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jKhjRhM hj9hhubj)}(hhh]h)}(hQhelper to remap a :c:type:`drm_gpuva` according to a :c:type:`drm_gpuva_op_remap`h](hhelper to remap a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj h]h drm_gpuva}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gpuva_remapasbja drm_gpuvauh1hhjghMhjubh according to a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op_remap`h]j)}(hj1h]hdrm_gpuva_op_remap}(hj3hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j%jadrm_gpuva_op_remapuh1hhjghMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^jj^jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuva *prev`` the :c:type:`drm_gpuva` to remap when keeping the start of a mapping ``struct drm_gpuva *next`` the :c:type:`drm_gpuva` to remap when keeping the end of a mapping ``const struct drm_gpuva_op_remap *op`` the :c:type:`drm_gpuva_op_remap` to initialize **prev** and **next** with **Description** Removes the currently mapped :c:type:`drm_gpuva` and remaps it using **prev** and/or **next**.h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjbubj)}(hhh](j)}(h```struct drm_gpuva *prev`` the :c:type:`drm_gpuva` to remap when keeping the start of a mapping h](j)}(h``struct drm_gpuva *prev``h]j)}(hjh]hstruct drm_gpuva *prev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjubj)}(hhh]h)}(hDthe :c:type:`drm_gpuva` to remap when keeping the start of a mappingh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjhM hjubh- to remap when keeping the start of a mapping}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj~ubj)}(h^``struct drm_gpuva *next`` the :c:type:`drm_gpuva` to remap when keeping the end of a mapping h](j)}(h``struct drm_gpuva *next``h]j)}(hjh]hstruct drm_gpuva *next}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjubj)}(hhh]h)}(hBthe :c:type:`drm_gpuva` to remap when keeping the end of a mappingh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjhM hjubh+ to remap when keeping the end of a mapping}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj~ubj)}(hr``const struct drm_gpuva_op_remap *op`` the :c:type:`drm_gpuva_op_remap` to initialize **prev** and **next** with h](j)}(h'``const struct drm_gpuva_op_remap *op``h]j)}(hj?h]h#const struct drm_gpuva_op_remap *op}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj9ubj)}(hhh]h)}(hIthe :c:type:`drm_gpuva_op_remap` to initialize **prev** and **next** withh](hthe }(hjXhhhNhNubh)}(h:c:type:`drm_gpuva_op_remap`h]j)}(hjbh]hdrm_gpuva_op_remap}(hjdhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_op_remapuh1hhjThM hjXubh to initialize }(hjXhhhNhNubj)}(h**prev**h]hprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh and }(hjXhhhNhNubj)}(h**next**h]hnext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh with}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjThM hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThM hj~ubeh}(h]h ]h"]h$]h&]uh1jhjbubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjbubh)}(h^Removes the currently mapped :c:type:`drm_gpuva` and remaps it using **prev** and/or **next**.h](hRemoves the currently mapped }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjubh and remaps it using }(hjhhhNhNubj)}(h**prev**h]hprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and/or }(hjhhhNhNubj)}(h**next**h]hnext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_unmap (C function)c.drm_gpuva_unmaphNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h:void drm_gpuva_unmap (const struct drm_gpuva_op_unmap *op)h]jR)}(h9void drm_gpuva_unmap(const struct drm_gpuva_op_unmap *op)h](j)}(hvoidh]hvoid}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM" ubjj)}(h h]h }(hj\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIhhhj[hM" ubj{)}(hdrm_gpuva_unmaph]j)}(hdrm_gpuva_unmaph]hdrm_gpuva_unmap}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjIhhhj[hM" ubj)}(h%(const struct drm_gpuva_op_unmap *op)h]j)}(h#const struct drm_gpuva_op_unmap *oph](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gpuva_op_unmaph]hdrm_gpuva_op_unmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jpsbc.drm_gpuva_unmapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hoph]hop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjIhhhj[hM" ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjEhhhj[hM" ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1jKhj[hM" hjBhhubj)}(hhh]h)}(hRhelper to remove a :c:type:`drm_gpuva` according to a :c:type:`drm_gpuva_op_unmap`h](hhelper to remove a }(hj(hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj2h]h drm_gpuva}(hj4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gpuva_unmapasbja drm_gpuvauh1hhjghMhj(ubh according to a }(hj(hhhNhNubh)}(h:c:type:`drm_gpuva_op_unmap`h]j)}(hjZh]hdrm_gpuva_op_unmap}(hj\hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+jNjadrm_gpuva_op_unmapuh1hhjghMhj(ubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM" hj%hhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hM" ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(h**Parameters** ``const struct drm_gpuva_op_unmap *op`` the :c:type:`drm_gpuva_op_unmap` specifying the :c:type:`drm_gpuva` to remove **Description** Removes the :c:type:`drm_gpuva` associated with the :c:type:`drm_gpuva_op_unmap`.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM& hjubj)}(hhh]j)}(hv``const struct drm_gpuva_op_unmap *op`` the :c:type:`drm_gpuva_op_unmap` specifying the :c:type:`drm_gpuva` to remove h](j)}(h'``const struct drm_gpuva_op_unmap *op``h]j)}(hjh]h#const struct drm_gpuva_op_unmap *op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM$ hjubj)}(hhh]h)}(hMthe :c:type:`drm_gpuva_op_unmap` specifying the :c:type:`drm_gpuva` to removeh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op_unmap`h]j)}(hjh]hdrm_gpuva_op_unmap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_op_unmapuh1hhjhM$ hjubh specifying the }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjhM$ hjubh to remove}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM$ hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$ hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM& hjubh)}(hQRemoves the :c:type:`drm_gpuva` associated with the :c:type:`drm_gpuva_op_unmap`.h](h Removes the }(hjGhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjQh]h drm_gpuva}(hjShhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM% hjGubh associated with the }(hjGhhhNhNubh)}(h:c:type:`drm_gpuva_op_unmap`h]j)}(hjuh]hdrm_gpuva_op_unmap}(hjwhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_op_unmapuh1hhjnhM% hjGubh.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhM% hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_sm_map (C function)c.drm_gpuvm_sm_maphNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h_int drm_gpuvm_sm_map (struct drm_gpuvm *gpuvm, void *priv, const struct drm_gpuvm_map_req *req)h]jR)}(h^int drm_gpuvm_sm_map(struct drm_gpuvm *gpuvm, void *priv, const struct drm_gpuvm_map_req *req)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMQ ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMQ ubj{)}(hdrm_gpuvm_sm_maph]j)}(hdrm_gpuvm_sm_maph]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMQ ubj)}(hJ(struct drm_gpuvm *gpuvm, void *priv, const struct drm_gpuvm_map_req *req)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_sm_mapasbuh1hhjubjj)}(h h]h }(hj7hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjEhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *privh](j)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjj)}(h h]h }(hjyhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjgubj)}(hprivh]hpriv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h#const struct drm_gpuvm_map_req *reqh](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gpuvm_map_reqh]hdrm_gpuvm_map_req}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j3c.drm_gpuvm_sm_mapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMQ ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMQ ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMQ hjhhubj)}(hhh]h)}(h2calls the :c:type:`drm_gpuva_op` split/merge stepsh](h calls the }(hjIhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjSh]h drm_gpuva_op}(hjUhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j3c.drm_gpuvm_sm_mapasbja drm_gpuva_opuh1hhjghMhjIubh split/merge steps}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMQ hjFhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMQ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@hNhNubj)}(hXy**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``void *priv`` pointer to a driver private data structure ``const struct drm_gpuvm_map_req *req`` ptr to struct drm_gpuvm_map_req **Description** This function iterates the given range of the GPU VA space. It utilizes the :c:type:`drm_gpuvm_ops` to call back into the driver providing the split and merge steps. Drivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor :c:type:`drm_gpuvm_sm_unmap` is allowed to be called before the :c:type:`drm_gpuvm`'s view of the GPU VA space was updated with the previous set of operations. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used. A sequence of callbacks can contain map, unmap and remap operations, but the sequence of callbacks might also be empty if no operation is required, e.g. if the requested mapping already exists in the exact same way. There can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller. **Return** 0 on success or a negative error codeh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMU hjubj)}(hhh](j)}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMR hjubj)}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMR hjubh representing the GPU VA space}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMR hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMR hjubj)}(h:``void *priv`` pointer to a driver private data structure h](j)}(h``void *priv``h]j)}(hjh]h void *priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMS hjubj)}(hhh]h)}(h*pointer to a driver private data structureh]h*pointer to a driver private data structure}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMS hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMS hjubj)}(hH``const struct drm_gpuvm_map_req *req`` ptr to struct drm_gpuvm_map_req h](j)}(h'``const struct drm_gpuvm_map_req *req``h]j)}(hjGh]h#const struct drm_gpuvm_map_req *req}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMT hjAubj)}(hhh]h)}(hptr to struct drm_gpuvm_map_reqh]hptr to struct drm_gpuvm_map_req}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMT hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMT hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMV hjubh)}(hThis function iterates the given range of the GPU VA space. It utilizes the :c:type:`drm_gpuvm_ops` to call back into the driver providing the split and merge steps.h](hLThis function iterates the given range of the GPU VA space. It utilizes the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hjh]h drm_gpuvm_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMU hjubhB to call back into the driver providing the split and merge steps.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMU hjubh)}(hXDrivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor :c:type:`drm_gpuvm_sm_unmap` is allowed to be called before the :c:type:`drm_gpuvm`'s view of the GPU VA space was updated with the previous set of operations. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.h](hDrivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMY hjubh$ is allowed to be called before the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMY hjubh]’s view of the GPU VA space was updated with the previous set of operations. To update the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj h]h drm_gpuvm}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMY hjubh’s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMY hjubh)}(hA sequence of callbacks can contain map, unmap and remap operations, but the sequence of callbacks might also be empty if no operation is required, e.g. if the requested mapping already exists in the exact same way.h]hA sequence of callbacks can contain map, unmap and remap operations, but the sequence of callbacks might also be empty if no operation is required, e.g. if the requested mapping already exists in the exact same way.}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMb hjubh)}(hThere can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller.h]hThere can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller.}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMf hjubh)}(h **Return**h]j)}(hjb h]hReturn}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj` ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMj hjubh)}(h%0 on success or a negative error codeh]h%0 on success or a negative error code}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMk hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_sm_unmap (C function)c.drm_gpuvm_sm_unmaphNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hYint drm_gpuvm_sm_unmap (struct drm_gpuvm *gpuvm, void *priv, u64 req_addr, u64 req_range)h]jR)}(hXint drm_gpuvm_sm_unmap(struct drm_gpuvm *gpuvm, void *priv, u64 req_addr, u64 req_range)h](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM} ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhj hM} ubj{)}(hdrm_gpuvm_sm_unmaph]j)}(hdrm_gpuvm_sm_unmaph]hdrm_gpuvm_sm_unmap}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hM} ubj)}(hB(struct drm_gpuvm *gpuvm, void *priv, u64 req_addr, u64 req_range)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj!modnameN classnameNj+j.)}j1]j4)}j'j sbc.drm_gpuvm_sm_unmapasbuh1hhj ubjj)}(h h]h }(hj"!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj0!hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hgpuvmh]hgpuvm}(hj=!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h void *privh](j)}(hvoidh]hvoid}(hjV!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR!ubjj)}(h h]h }(hjd!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjR!ubjH)}(hjKh]h*}(hjr!hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjR!ubj)}(hprivh]hpriv}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h u64 req_addrh](h)}(hhh]j)}(hu64h]hu64}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj!modnameN classnameNj+j.)}j1]j!c.drm_gpuvm_sm_unmapasbuh1hhj!ubjj)}(h h]h }(hj!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!ubj)}(hreq_addrh]hreq_addr}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h u64 req_rangeh](h)}(hhh]j)}(hu64h]hu64}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj!modnameN classnameNj+j.)}j1]j!c.drm_gpuvm_sm_unmapasbuh1hhj!ubjj)}(h h]h }(hj"hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!ubj)}(h req_rangeh]h req_range}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hM} ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj hM} ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj hM} hj hhubj)}(hhh]h)}(h3calls the :c:type:`drm_gpuva_ops` to split on unmaph](h calls the }(hj9"hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjC"h]h drm_gpuva_ops}(hjE"hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjA"ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j!c.drm_gpuvm_sm_unmapasbja drm_gpuva_opsuh1hhjghMhj9"ubh to split on unmap}(hj9"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM} hj6"hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM} ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjy"jjy"jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``void *priv`` pointer to a driver private data structure ``u64 req_addr`` the start address of the range to unmap ``u64 req_range`` the range of the mappings to unmap **Description** This function iterates the given range of the GPU VA space. It utilizes the :c:type:`drm_gpuvm_ops` to call back into the driver providing the operations to unmap and, if required, split existing mappings. Drivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor :c:type:`drm_gpuvm_sm_map` is allowed to be called before the :c:type:`drm_gpuvm`'s view of the GPU VA space was updated with the previous set of operations. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used. A sequence of callbacks can contain unmap and remap operations, depending on whether there are actual overlapping mappings to split. There can be an arbitrary amount of unmap operations and a maximum of two remap operations. **Return** 0 on success or a negative error codeh](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj}"ubj)}(hhh](j)}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hj"h]hstruct drm_gpuvm *gpuvm}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM~ hj"ubj)}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hj"hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj"h]h drm_gpuvm}(hj"hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj"hM~ hj"ubh representing the GPU VA space}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj"hM~ hj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM~ hj"ubj)}(h:``void *priv`` pointer to a driver private data structure h](j)}(h``void *priv``h]j)}(hj"h]h void *priv}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj"ubj)}(hhh]h)}(h*pointer to a driver private data structureh]h*pointer to a driver private data structure}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM hj#ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj#hM hj"ubj)}(h9``u64 req_addr`` the start address of the range to unmap h](j)}(h``u64 req_addr``h]j)}(hj7#h]h u64 req_addr}(hj9#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj1#ubj)}(hhh]h)}(h'the start address of the range to unmaph]h'the start address of the range to unmap}(hjP#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL#hM hjM#ubah}(h]h ]h"]h$]h&]uh1jhj1#ubeh}(h]h ]h"]h$]h&]uh1jhjL#hM hj"ubj)}(h5``u64 req_range`` the range of the mappings to unmap h](j)}(h``u64 req_range``h]j)}(hjp#h]h u64 req_range}(hjr#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjj#ubj)}(hhh]h)}(h"the range of the mappings to unmaph]h"the range of the mappings to unmap}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM hj#ubah}(h]h ]h"]h$]h&]uh1jhjj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hM hj"ubeh}(h]h ]h"]h$]h&]uh1jhj}"ubh)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj}"ubh)}(hThis function iterates the given range of the GPU VA space. It utilizes the :c:type:`drm_gpuvm_ops` to call back into the driver providing the operations to unmap and, if required, split existing mappings.h](hLThis function iterates the given range of the GPU VA space. It utilizes the }(hj#hhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hj#h]h drm_gpuvm_ops}(hj#hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj#ubhj to call back into the driver providing the operations to unmap and, if required, split existing mappings.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#hM hj}"ubh)}(hXDrivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor :c:type:`drm_gpuvm_sm_map` is allowed to be called before the :c:type:`drm_gpuvm`'s view of the GPU VA space was updated with the previous set of operations. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.h](hDrivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor }(hj#hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hj#h]hdrm_gpuvm_sm_map}(hj#hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj#ubh$ is allowed to be called before the }(hj#hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj!$h]h drm_gpuvm}(hj#$hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj$hM hj#ubh]’s view of the GPU VA space was updated with the previous set of operations. To update the }(hj#hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjD$h]h drm_gpuvm}(hjF$hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjB$ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj$hM hj#ubh’s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj$hM hj}"ubh)}(hA sequence of callbacks can contain unmap and remap operations, depending on whether there are actual overlapping mappings to split.h]hA sequence of callbacks can contain unmap and remap operations, depending on whether there are actual overlapping mappings to split.}(hjk$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj}"ubh)}(h[There can be an arbitrary amount of unmap operations and a maximum of two remap operations.h]h[There can be an arbitrary amount of unmap operations and a maximum of two remap operations.}(hjz$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj}"ubh)}(h **Return**h]j)}(hj$h]hReturn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj}"ubh)}(h%0 on success or a negative error codeh]h%0 on success or a negative error code}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj}"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_gpuvm_sm_map_exec_lock (C function)c.drm_gpuvm_sm_map_exec_lockhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hint drm_gpuvm_sm_map_exec_lock (struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences, struct drm_gpuvm_map_req *req)h]jR)}(hint drm_gpuvm_sm_map_exec_lock(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences, struct drm_gpuvm_map_req *req)h](j)}(hinth]hint}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM ubjj)}(h h]h }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj$hhhj$hM ubj{)}(hdrm_gpuvm_sm_map_exec_lockh]j)}(hdrm_gpuvm_sm_map_exec_lockh]hdrm_gpuvm_sm_map_exec_lock}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj$hhhj$hM ubj)}(hh(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences, struct drm_gpuvm_map_req *req)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj %hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj %ubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj %ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj+%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(%ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj-%modnameN classnameNj+j.)}j1]j4)}j'j$sbc.drm_gpuvm_sm_map_exec_lockasbuh1hhj %ubjj)}(h h]h }(hjK%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj %ubjH)}(hjKh]h*}(hjY%hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj %ubj)}(hgpuvmh]hgpuvm}(hjf%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj %ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hstruct drm_exec *exech](jX)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj{%ubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj{%ubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj%modnameN classnameNj+j.)}j1]jG%c.drm_gpuvm_sm_map_exec_lockasbuh1hhj{%ubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj{%ubjH)}(hjKh]h*}(hj%hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj{%ubj)}(hexech]hexec}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hunsigned int num_fencesh](j)}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj%ubj)}(hinth]hint}(hj &hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjj)}(h h]h }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj%ubj)}(h num_fencesh]h num_fences}(hj'&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hstruct drm_gpuvm_map_req *reqh](jX)}(hjh]hstruct}(hj@&hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj<&ubjj)}(h h]h }(hjM&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<&ubh)}(hhh]j)}(hdrm_gpuvm_map_reqh]hdrm_gpuvm_map_req}(hj^&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[&ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj`&modnameN classnameNj+j.)}j1]jG%c.drm_gpuvm_sm_map_exec_lockasbuh1hhj<&ubjj)}(h h]h }(hj|&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<&ubjH)}(hjKh]h*}(hj&hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj<&ubj)}(hreqh]hreq}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubeh}(h]h ]h"]h$]h&]jjuh1jhj$hhhj$hM ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj$hhhj$hM ubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1jKhj$hM hj$hhubj)}(hhh]h)}(h1locks the objects touched by a drm_gpuvm_sm_map()h]h1locks the objects touched by a drm_gpuvm_sm_map()}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj&hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jFhhhj@hNhNubj)}(hX}**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``struct drm_exec *exec`` the :c:type:`drm_exec` locking context ``unsigned int num_fences`` for newly mapped objects, the # of fences to reserve ``struct drm_gpuvm_map_req *req`` ptr to drm_gpuvm_map_req struct **Description** This function locks (drm_exec_lock_obj()) objects that will be unmapped/ remapped, and locks+prepares (drm_exec_prepare_object()) objects that will be newly mapped. The expected usage is:: vm_bind { struct drm_exec exec; // IGNORE_DUPLICATES is required, INTERRUPTIBLE_WAIT is recommended: drm_exec_init(&exec, IGNORE_DUPLICATES | INTERRUPTIBLE_WAIT, 0); drm_exec_until_all_locked (&exec) { for_each_vm_bind_operation { switch (op->op) { case DRIVER_OP_UNMAP: ret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, &exec, op->addr, op->range); break; case DRIVER_OP_MAP: ret = drm_gpuvm_sm_map_exec_lock(gpuvm, &exec, num_fences, &req); break; } drm_exec_retry_on_contention(&exec); if (ret) return ret; } } } This enables all locking to be performed before the driver begins modifying the VM. This is safe to do in the case of overlapping DRIVER_VM_BIND_OPs, where an earlier op can alter the sequence of steps generated for a later op, because the later altered step will involve the same GEM object(s) already seen in the earlier locking step. For example: 1) An earlier driver DRIVER_OP_UNMAP op removes the need for a DRM_GPUVA_OP_REMAP/UNMAP step. This is safe because we've already locked the GEM object in the earlier DRIVER_OP_UNMAP op. 2) An earlier DRIVER_OP_MAP op overlaps with a later DRIVER_OP_MAP/UNMAP op, introducing a DRM_GPUVA_OP_REMAP/UNMAP that wouldn't have been required without the earlier DRIVER_OP_MAP. This is safe because we've already locked the GEM object in the earlier DRIVER_OP_MAP step. **Return** 0 on success or a negative error codeh](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj&ubj)}(hhh](j)}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hj'h]hstruct drm_gpuvm *gpuvm}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj&ubj)}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hj'hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj%'h]h drm_gpuvm}(hj''hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj#'ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj'hM hj'ubh representing the GPU VA space}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj'hM hj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj'hM hj&ubj)}(hA``struct drm_exec *exec`` the :c:type:`drm_exec` locking context h](j)}(h``struct drm_exec *exec``h]j)}(hj^'h]hstruct drm_exec *exec}(hj`'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\'ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjX'ubj)}(hhh]h)}(h&the :c:type:`drm_exec` locking contexth](hthe }(hjw'hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hj'h]hdrm_exec}(hj'hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhjs'hM hjw'ubh locking context}(hjw'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjs'hM hjt'ubah}(h]h ]h"]h$]h&]uh1jhjX'ubeh}(h]h ]h"]h$]h&]uh1jhjs'hM hj&ubj)}(hQ``unsigned int num_fences`` for newly mapped objects, the # of fences to reserve h](j)}(h``unsigned int num_fences``h]j)}(hj'h]hunsigned int num_fences}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj'ubj)}(hhh]h)}(h4for newly mapped objects, the # of fences to reserveh]h4for newly mapped objects, the # of fences to reserve}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM hj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM hj&ubj)}(hB``struct drm_gpuvm_map_req *req`` ptr to drm_gpuvm_map_req struct h](j)}(h!``struct drm_gpuvm_map_req *req``h]j)}(hj'h]hstruct drm_gpuvm_map_req *req}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj'ubj)}(hhh]h)}(hptr to drm_gpuvm_map_req structh]hptr to drm_gpuvm_map_req struct}(hj (hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hM hj (ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj(hM hj&ubeh}(h]h ]h"]h$]h&]uh1jhj&ubh)}(h**Description**h]j)}(hj.(h]h Description}(hj0(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj&ubh)}(hThis function locks (drm_exec_lock_obj()) objects that will be unmapped/ remapped, and locks+prepares (drm_exec_prepare_object()) objects that will be newly mapped.h]hThis function locks (drm_exec_lock_obj()) objects that will be unmapped/ remapped, and locks+prepares (drm_exec_prepare_object()) objects that will be newly mapped.}(hjD(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj&ubh)}(hThe expected usage is::h]hThe expected usage is:}(hjS(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj&ubjh)}(hXvm_bind { struct drm_exec exec; // IGNORE_DUPLICATES is required, INTERRUPTIBLE_WAIT is recommended: drm_exec_init(&exec, IGNORE_DUPLICATES | INTERRUPTIBLE_WAIT, 0); drm_exec_until_all_locked (&exec) { for_each_vm_bind_operation { switch (op->op) { case DRIVER_OP_UNMAP: ret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, &exec, op->addr, op->range); break; case DRIVER_OP_MAP: ret = drm_gpuvm_sm_map_exec_lock(gpuvm, &exec, num_fences, &req); break; } drm_exec_retry_on_contention(&exec); if (ret) return ret; } } }h]hXvm_bind { struct drm_exec exec; // IGNORE_DUPLICATES is required, INTERRUPTIBLE_WAIT is recommended: drm_exec_init(&exec, IGNORE_DUPLICATES | INTERRUPTIBLE_WAIT, 0); drm_exec_until_all_locked (&exec) { for_each_vm_bind_operation { switch (op->op) { case DRIVER_OP_UNMAP: ret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, &exec, op->addr, op->range); break; case DRIVER_OP_MAP: ret = drm_gpuvm_sm_map_exec_lock(gpuvm, &exec, num_fences, &req); break; } drm_exec_retry_on_contention(&exec); if (ret) return ret; } } }}hjb(sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj&ubh)}(hX_This enables all locking to be performed before the driver begins modifying the VM. This is safe to do in the case of overlapping DRIVER_VM_BIND_OPs, where an earlier op can alter the sequence of steps generated for a later op, because the later altered step will involve the same GEM object(s) already seen in the earlier locking step. For example:h]hX_This enables all locking to be performed before the driver begins modifying the VM. This is safe to do in the case of overlapping DRIVER_VM_BIND_OPs, where an earlier op can alter the sequence of steps generated for a later op, because the later altered step will involve the same GEM object(s) already seen in the earlier locking step. For example:}(hjq(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj&ubjm:)}(hhh](jz)}(hAn earlier driver DRIVER_OP_UNMAP op removes the need for a DRM_GPUVA_OP_REMAP/UNMAP step. This is safe because we've already locked the GEM object in the earlier DRIVER_OP_UNMAP op. h]h)}(hAn earlier driver DRIVER_OP_UNMAP op removes the need for a DRM_GPUVA_OP_REMAP/UNMAP step. This is safe because we've already locked the GEM object in the earlier DRIVER_OP_UNMAP op.h]hAn earlier driver DRIVER_OP_UNMAP op removes the need for a DRM_GPUVA_OP_REMAP/UNMAP step. This is safe because we’ve already locked the GEM object in the earlier DRIVER_OP_UNMAP op.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj(ubah}(h]h ]h"]h$]h&]uh1jzhj(ubjz)}(hXAn earlier DRIVER_OP_MAP op overlaps with a later DRIVER_OP_MAP/UNMAP op, introducing a DRM_GPUVA_OP_REMAP/UNMAP that wouldn't have been required without the earlier DRIVER_OP_MAP. This is safe because we've already locked the GEM object in the earlier DRIVER_OP_MAP step. h]h)}(hXAn earlier DRIVER_OP_MAP op overlaps with a later DRIVER_OP_MAP/UNMAP op, introducing a DRM_GPUVA_OP_REMAP/UNMAP that wouldn't have been required without the earlier DRIVER_OP_MAP. This is safe because we've already locked the GEM object in the earlier DRIVER_OP_MAP step.h]hXAn earlier DRIVER_OP_MAP op overlaps with a later DRIVER_OP_MAP/UNMAP op, introducing a DRM_GPUVA_OP_REMAP/UNMAP that wouldn’t have been required without the earlier DRIVER_OP_MAP. This is safe because we’ve already locked the GEM object in the earlier DRIVER_OP_MAP step.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj(ubah}(h]h ]h"]h$]h&]uh1jzhj(ubeh}(h]h ]h"]h$]h&]j5=j6=j7=hj8=juh1jl:hj&ubh)}(h **Return**h]j)}(hj(h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj&ubh)}(h%0 on success or a negative error codeh]h%0 on success or a negative error code}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)drm_gpuvm_sm_unmap_exec_lock (C function)c.drm_gpuvm_sm_unmap_exec_lockhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hnint drm_gpuvm_sm_unmap_exec_lock (struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 req_addr, u64 req_range)h]jR)}(hmint drm_gpuvm_sm_unmap_exec_lock(struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 req_addr, u64 req_range)h](j)}(hinth]hint}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM ubjj)}(h h]h }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj(hhhj)hM ubj{)}(hdrm_gpuvm_sm_unmap_exec_lockh]j)}(hdrm_gpuvm_sm_unmap_exec_lockh]hdrm_gpuvm_sm_unmap_exec_lock}(hj#)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhhj)hM ubj)}(hM(struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 req_addr, u64 req_range)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj?)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj;)ubjj)}(h h]h }(hjL)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;)ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj])hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ)ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj_)modnameN classnameNj+j.)}j1]j4)}j'j%)sbc.drm_gpuvm_sm_unmap_exec_lockasbuh1hhj;)ubjj)}(h h]h }(hj})hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;)ubjH)}(hjKh]h*}(hj)hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj;)ubj)}(hgpuvmh]hgpuvm}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7)ubj)}(hstruct drm_exec *exech](jX)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj)ubjj)}(h h]h }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj)ubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj)modnameN classnameNj+j.)}j1]jy)c.drm_gpuvm_sm_unmap_exec_lockasbuh1hhj)ubjj)}(h h]h }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj)ubjH)}(hjKh]h*}(hj)hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj)ubj)}(hexech]hexec}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7)ubj)}(h u64 req_addrh](h)}(hhh]j)}(hu64h]hu64}(hj$*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!*ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj&*modnameN classnameNj+j.)}j1]jy)c.drm_gpuvm_sm_unmap_exec_lockasbuh1hhj*ubjj)}(h h]h }(hjB*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*ubj)}(hreq_addrh]hreq_addr}(hjP*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7)ubj)}(h u64 req_rangeh](h)}(hhh]j)}(hu64h]hu64}(hjl*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji*ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjn*modnameN classnameNj+j.)}j1]jy)c.drm_gpuvm_sm_unmap_exec_lockasbuh1hhje*ubjj)}(h h]h }(hj*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihje*ubj)}(h req_rangeh]h req_range}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7)ubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhj)hM ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj(hhhj)hM ubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jKhj)hM hj(hhubj)}(hhh]h)}(h1locks the objects touched by drm_gpuvm_sm_unmap()h]h1locks the objects touched by drm_gpuvm_sm_unmap()}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj*hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj)hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``struct drm_exec *exec`` the :c:type:`drm_exec` locking context ``u64 req_addr`` the start address of the range to unmap ``u64 req_range`` the range of the mappings to unmap **Description** This function locks (drm_exec_lock_obj()) objects that will be unmapped/ remapped by drm_gpuvm_sm_unmap(). See drm_gpuvm_sm_map_exec_lock() for expected usage. **Return** 0 on success or a negative error codeh](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj*ubj)}(hhh](j)}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hj+h]hstruct drm_gpuvm *gpuvm}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj*ubj)}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hj+hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj&+h]h drm_gpuvm}(hj(+hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj$+ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj+hM hj+ubh representing the GPU VA space}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hM hj+ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj+hM hj*ubj)}(hA``struct drm_exec *exec`` the :c:type:`drm_exec` locking context h](j)}(h``struct drm_exec *exec``h]j)}(hj_+h]hstruct drm_exec *exec}(hja+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]+ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjY+ubj)}(hhh]h)}(h&the :c:type:`drm_exec` locking contexth](hthe }(hjx+hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hj+h]hdrm_exec}(hj+hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhjt+hM hjx+ubh locking context}(hjx+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjt+hM hju+ubah}(h]h ]h"]h$]h&]uh1jhjY+ubeh}(h]h ]h"]h$]h&]uh1jhjt+hM hj*ubj)}(h9``u64 req_addr`` the start address of the range to unmap h](j)}(h``u64 req_addr``h]j)}(hj+h]h u64 req_addr}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj+ubj)}(hhh]h)}(h'the start address of the range to unmaph]h'the start address of the range to unmap}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM hj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM hj*ubj)}(h5``u64 req_range`` the range of the mappings to unmap h](j)}(h``u64 req_range``h]j)}(hj+h]h u64 req_range}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj+ubj)}(hhh]h)}(h"the range of the mappings to unmaph]h"the range of the mappings to unmap}(hj ,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ,hM hj ,ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj ,hM hj*ubeh}(h]h ]h"]h$]h&]uh1jhj*ubh)}(h**Description**h]j)}(hj/,h]h Description}(hj1,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-,ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj*ubh)}(hjThis function locks (drm_exec_lock_obj()) objects that will be unmapped/ remapped by drm_gpuvm_sm_unmap().h]hjThis function locks (drm_exec_lock_obj()) objects that will be unmapped/ remapped by drm_gpuvm_sm_unmap().}(hjE,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj*ubh)}(h4See drm_gpuvm_sm_map_exec_lock() for expected usage.h]h4See drm_gpuvm_sm_map_exec_lock() for expected usage.}(hjT,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj*ubh)}(h **Return**h]j)}(hje,h]hReturn}(hjg,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc,ubah}(h]h ]h"]h$+]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj*ubh)}(h%0 on success or a negative error codeh]h%0 on success or a negative error code}(hj{,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_gpuvm_sm_map_ops_create (C function)c.drm_gpuvm_sm_map_ops_createhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hqstruct drm_gpuva_ops * drm_gpuvm_sm_map_ops_create (struct drm_gpuvm *gpuvm, const struct drm_gpuvm_map_req *req)h]jR)}(hostruct drm_gpuva_ops *drm_gpuvm_sm_map_ops_create(struct drm_gpuvm *gpuvm, const struct drm_gpuvm_map_req *req)h](jX)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj,hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM ubjj)}(h h]h }(hj,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,hhhj,hM ubh)}(hhh]j)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj,modnameN classnameNj+j.)}j1]j4)}j'drm_gpuvm_sm_map_ops_createsbc.drm_gpuvm_sm_map_ops_createasbuh1hhj,hhhj,hM ubjj)}(h h]h }(hj,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,hhhj,hM ubjH)}(hjKh]h*}(hj,hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj,hhhj,hM ubj{)}(hdrm_gpuvm_sm_map_ops_createh]j)}(hj,h]hdrm_gpuvm_sm_map_ops_create}(hj -hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj,hM ubj)}(h>(struct drm_gpuvm *gpuvm, const struct drm_gpuvm_map_req *req)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj$-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj -ubjj)}(h h]h }(hj1-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj -ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjB-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?-ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjD-modnameN classnameNj+j.)}j1]j,c.drm_gpuvm_sm_map_ops_createasbuh1hhj -ubjj)}(h h]h }(hj`-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj -ubjH)}(hjKh]h*}(hjn-hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj -ubj)}(hgpuvmh]hgpuvm}(hj{-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj -ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(h#const struct drm_gpuvm_map_req *reqh](jX)}(hj h]hconst}(hj-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj-ubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-ubjX)}(hjh]hstruct}(hj-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj-ubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-ubh)}(hhh]j)}(hdrm_gpuvm_map_reqh]hdrm_gpuvm_map_req}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj-modnameN classnameNj+j.)}j1]j,c.drm_gpuvm_sm_map_ops_createasbuh1hhj-ubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-ubjH)}(hjKh]h*}(hj-hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj-ubj)}(hreqh]hreq}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj,hM ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj,hhhj,hM ubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1jKhj,hM hj,hhubj)}(hhh]h)}(h6creates the :c:type:`drm_gpuva_ops` to split and mergeh](h creates the }(hj0.hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj:.h]h drm_gpuva_ops}(hj<.hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj8.ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j,c.drm_gpuvm_sm_map_ops_createasbja drm_gpuva_opsuh1hhjghMhj0.ubh to split and merge}(hj0.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj-.hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjp.jjp.jjjuh1jFhhhj@hNhNubj)}(hXj**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``const struct drm_gpuvm_map_req *req`` map request arguments **Description** This function creates a list of operations to perform splitting and merging of existing mapping(s) with the newly requested one. The list can be iterated with :c:type:`drm_gpuva_for_each_op` and must be processed in the given order. It can contain map, unmap and remap operations, but it also can be empty if no operation is required, e.g. if the requested mapping already exists in the exact same way. There can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller. Note that before calling this function again with another mapping request it is necessary to update the :c:type:`drm_gpuvm`'s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used. After the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`. **Return** a pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](h)}(h**Parameters**h]j)}(hjz.h]h Parameters}(hj|.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx.ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjt.ubj)}(hhh](j)}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hj.h]hstruct drm_gpuvm *gpuvm}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj.ubj)}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hj.hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj.h]h drm_gpuvm}(hj.hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj.hM hj.ubh representing the GPU VA space}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj.hM hj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hM hj.ubj)}(h>``const struct drm_gpuvm_map_req *req`` map request arguments h](j)}(h'``const struct drm_gpuvm_map_req *req``h]j)}(hj.h]h#const struct drm_gpuvm_map_req *req}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj.ubj)}(hhh]h)}(hmap request argumentsh]hmap request arguments}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj /hM hj /ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj /hM hj.ubeh}(h]h ]h"]h$]h&]uh1jhjt.ubh)}(h**Description**h]j)}(hj0/h]h Description}(hj2/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj./ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjt.ubh)}(hThis function creates a list of operations to perform splitting and merging of existing mapping(s) with the newly requested one.h]hThis function creates a list of operations to perform splitting and merging of existing mapping(s) with the newly requested one.}(hjF/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjt.ubh)}(hXThe list can be iterated with :c:type:`drm_gpuva_for_each_op` and must be processed in the given order. It can contain map, unmap and remap operations, but it also can be empty if no operation is required, e.g. if the requested mapping already exists in the exact same way.h](hThe list can be iterated with }(hjU/hhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j)}(hj_/h]hdrm_gpuva_for_each_op}(hja/hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj]/ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjU/ubh and must be processed in the given order. It can contain map, unmap and remap operations, but it also can be empty if no operation is required, e.g. if the requested mapping already exists in the exact same way.}(hjU/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|/hM hjt.ubh)}(hThere can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller.h]hThere can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjt.ubh)}(hXNote that before calling this function again with another mapping request it is necessary to update the :c:type:`drm_gpuvm`'s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.h](hhNote that before calling this function again with another mapping request it is necessary to update the }(hj/hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj/h]h drm_gpuvm}(hj/hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj/ubhw’s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the }(hj/hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj/h]h drm_gpuvm}(hj/hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj/hM hj/ubh’s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/hM hjt.ubh)}(hAfter the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`.h](h2After the caller finished processing the returned }(hj/hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj/h]h drm_gpuva_ops}(hj/hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj/ubh, they must be freed with }(hj/hhhNhNubh)}(h:c:type:`drm_gpuva_ops_free`h]j)}(hj0h]hdrm_gpuva_ops_free}(hj0hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_ops_freeuh1hhj0hM hj/ubh.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0hM hjt.ubh)}(h **Return**h]j)}(hjB0h]hReturn}(hjD0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@0ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjt.ubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hjX0hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjb0h]h drm_gpuva_ops}(hjd0hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj`0ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjX0ubh" on success, an ERR_PTR on failure}(hjX0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0hM hjt.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)drm_gpuvm_madvise_ops_create (C function)c.drm_gpuvm_madvise_ops_createhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hrstruct drm_gpuva_ops * drm_gpuvm_madvise_ops_create (struct drm_gpuvm *gpuvm, const struct drm_gpuvm_map_req *req)h]jR)}(hpstruct drm_gpuva_ops *drm_gpuvm_madvise_ops_create(struct drm_gpuvm *gpuvm, const struct drm_gpuvm_map_req *req)h](jX)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj0hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM ubjj)}(h h]h }(hj0hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0hhhj0hM ubh)}(hhh]j)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj0modnameN classnameNj+j.)}j1]j4)}j'drm_gpuvm_madvise_ops_createsbc.drm_gpuvm_madvise_ops_createasbuh1hhj0hhhj0hM ubjj)}(h h]h }(hj0hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0hhhj0hM ubjH)}(hjKh]h*}(hj0hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj0hhhj0hM ubj{)}(hdrm_gpuvm_madvise_ops_createh]j)}(hj0h]hdrm_gpuvm_madvise_ops_create}(hj 1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0hhhj0hM ubj)}(h>(struct drm_gpuvm *gpuvm, const struct drm_gpuvm_map_req *req)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj$1hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj 1ubjj)}(h h]h }(hj11hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj 1ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjB1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?1ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjD1modnameN classnameNj+j.)}j1]j0c.drm_gpuvm_madvise_ops_createasbuh1hhj 1ubjj)}(h h]h }(hj`1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj 1ubjH)}(hjKh]h*}(hjn1hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj 1ubj)}(hgpuvmh]hgpuvm}(hj{1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(h#const struct drm_gpuvm_map_req *reqh](jX)}(hj h]hconst}(hj1hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj1ubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj1ubjX)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj1ubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj1ubh)}(hhh]j)}(hdrm_gpuvm_map_reqh]hdrm_gpuvm_map_req}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj1modnameN classnameNj+j.)}j1]j0c.drm_gpuvm_madvise_ops_createasbuh1hhj1ubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj1ubjH)}(hjKh]h*}(hj1hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj1ubj)}(hreqh]hreq}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhj0hhhj0hM ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj0hhhj0hM ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jKhj0hM hj0hhubj)}(hhh]h)}(h,creates the :c:type:`drm_gpuva_ops` to splith](h creates the }(hj02hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj:2h]h drm_gpuva_ops}(hj<2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj82ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j0c.drm_gpuvm_madvise_ops_createasbja drm_gpuva_opsuh1hhjghMhj02ubh to split}(hj02hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj-2hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjp2jjp2jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``const struct drm_gpuvm_map_req *req`` map request arguments **Description** This function creates a list of operations to perform splitting of existent mapping(s) at start or end, based on the request map. The list can be iterated with :c:type:`drm_gpuva_for_each_op` and must be processed in the given order. It can contain map and remap operations, but it also can be empty if no operation is required, e.g. if the requested mapping already exists is the exact same way. There will be no unmap operations, a maximum of two remap operations and two map operations. The two map operations correspond to: one from start to the end of drm_gpuvaX, and another from the start of drm_gpuvaY to end. Note that before calling this function again with another mapping request it is necessary to update the :c:type:`drm_gpuvm`'s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used. After the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`. **Return** a pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](h)}(h**Parameters**h]j)}(hjz2h]h Parameters}(hj|2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx2ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjt2ubj)}(hhh](j)}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hj2h]hstruct drm_gpuvm *gpuvm}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj2ubj)}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hj2hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj2h]h drm_gpuvm}(hj2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj2hM hj2ubh representing the GPU VA space}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hM hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM hj2ubj)}(h>``const struct drm_gpuvm_map_req *req`` map request arguments h](j)}(h'``const struct drm_gpuvm_map_req *req``h]j)}(hj2h]h#const struct drm_gpuvm_map_req *req}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj2ubj)}(hhh]h)}(hmap request argumentsh]hmap request arguments}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 3hM hj 3ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj 3hM hj2ubeh}(h]h ]h"]h$]h&]uh1jhjt2ubh)}(h**Description**h]j)}(hj03h]h Description}(hj23hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.3ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjt2ubh)}(hThis function creates a list of operations to perform splitting of existent mapping(s) at start or end, based on the request map.h]hThis function creates a list of operations to perform splitting of existent mapping(s) at start or end, based on the request map.}(hjF3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjt2ubh)}(hX The list can be iterated with :c:type:`drm_gpuva_for_each_op` and must be processed in the given order. It can contain map and remap operations, but it also can be empty if no operation is required, e.g. if the requested mapping already exists is the exact same way.h](hThe list can be iterated with }(hjU3hhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j)}(hj_3h]hdrm_gpuva_for_each_op}(hja3hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj]3ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjU3ubh and must be processed in the given order. It can contain map and remap operations, but it also can be empty if no operation is required, e.g. if the requested mapping already exists is the exact same way.}(hjU3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|3hM hjt2ubh)}(hThere will be no unmap operations, a maximum of two remap operations and two map operations. The two map operations correspond to: one from start to the end of drm_gpuvaX, and another from the start of drm_gpuvaY to end.h]hThere will be no unmap operations, a maximum of two remap operations and two map operations. The two map operations correspond to: one from start to the end of drm_gpuvaX, and another from the start of drm_gpuvaY to end.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjt2ubh)}(hXNote that before calling this function again with another mapping request it is necessary to update the :c:type:`drm_gpuvm`'s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.h](hhNote that before calling this function again with another mapping request it is necessary to update the }(hj3hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj3h]h drm_gpuvm}(hj3hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj3ubhw’s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the }(hj3hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj3h]h drm_gpuvm}(hj3hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj3hM hj3ubh’s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3hM hjt2ubh)}(hAfter the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`.h](h2After the caller finished processing the returned }(hj3hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj3h]h drm_gpuva_ops}(hj3hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj3ubh, they must be freed with }(hj3hhhNhNubh)}(h:c:type:`drm_gpuva_ops_free`h]j)}(hj4h]hdrm_gpuva_ops_free}(hj4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_ops_freeuh1hhj4hM hj3ubh.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4hM hjt2ubh)}(h **Return**h]j)}(hjB4h]hReturn}(hjD4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@4ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjt2ubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hjX4hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjb4h]h drm_gpuva_ops}(hjd4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj`4ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjX4ubh" on success, an ERR_PTR on failure}(hjX4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4hM hjt2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_gpuvm_sm_unmap_ops_create (C function)c.drm_gpuvm_sm_unmap_ops_createhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hkstruct drm_gpuva_ops * drm_gpuvm_sm_unmap_ops_create (struct drm_gpuvm *gpuvm, u64 req_addr, u64 req_range)h]jR)}(histruct drm_gpuva_ops *drm_gpuvm_sm_unmap_ops_create(struct drm_gpuvm *gpuvm, u64 req_addr, u64 req_range)h](jX)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj4hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM ubjj)}(h h]h }(hj4hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4hhhj4hM ubh)}(hhh]j)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj4modnameN classnameNj+j.)}j1]j4)}j'drm_gpuvm_sm_unmap_ops_createsbc.drm_gpuvm_sm_unmap_ops_createasbuh1hhj4hhhj4hM ubjj)}(h h]h }(hj4hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4hhhj4hM ubjH)}(hjKh]h*}(hj4hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj4hhhj4hM ubj{)}(hdrm_gpuvm_sm_unmap_ops_createh]j)}(hj4h]hdrm_gpuvm_sm_unmap_ops_create}(hj 5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj4hhhj4hM ubj)}(h6(struct drm_gpuvm *gpuvm, u64 req_addr, u64 req_range)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj$5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj 5ubjj)}(h h]h }(hj15hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj 5ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjB5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?5ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjD5modnameN classnameNj+j.)}j1]j4c.drm_gpuvm_sm_unmap_ops_createasbuh1hhj 5ubjj)}(h h]h }(hj`5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj 5ubjH)}(hjKh]h*}(hjn5hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj 5ubj)}(hgpuvmh]hgpuvm}(hj{5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(h u64 req_addrh](h)}(hhh]j)}(hu64h]hu64}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj5modnameN classnameNj+j.)}j1]j4c.drm_gpuvm_sm_unmap_ops_createasbuh1hhj5ubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubj)}(hreq_addrh]hreq_addr}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(h u64 req_rangeh](h)}(hhh]j)}(hu64h]hu64}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj5modnameN classnameNj+j.)}j1]j4c.drm_gpuvm_sm_unmap_ops_createasbuh1hhj5ubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubj)}(h req_rangeh]h req_range}(hj 6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1jhj4hhhj4hM ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj4hhhj4hM ubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1jKhj4hM hj4hhubj)}(hhh]h)}(h5creates the :c:type:`drm_gpuva_ops` to split on unmaph](h creates the }(hj56hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj?6h]h drm_gpuva_ops}(hjA6hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj=6ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j4c.drm_gpuvm_sm_unmap_ops_createasbja drm_gpuva_opsuh1hhjghMhj56ubh to split on unmap}(hj56hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj26hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjju6jju6jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``u64 req_addr`` the start address of the range to unmap ``u64 req_range`` the range of the mappings to unmap **Description** This function creates a list of operations to perform unmapping and, if required, splitting of the mappings overlapping the unmap range. The list can be iterated with :c:type:`drm_gpuva_for_each_op` and must be processed in the given order. It can contain unmap and remap operations, depending on whether there are actual overlapping mappings to split. There can be an arbitrary amount of unmap operations and a maximum of two remap operations. Note that before calling this function again with another range to unmap it is necessary to update the :c:type:`drm_gpuvm`'s view of the GPU VA space. The previously obtained operations must be processed or abandoned. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used. After the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`. **Return** a pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}6ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjy6ubj)}(hhh](j)}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hj6h]hstruct drm_gpuvm *gpuvm}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj6ubj)}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hj6hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj6h]h drm_gpuvm}(hj6hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj6hM hj6ubh representing the GPU VA space}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj6hM hj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hM hj6ubj)}(h9``u64 req_addr`` the start address of the range to unmap h](j)}(h``u64 req_addr``h]j)}(hj6h]h u64 req_addr}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj6ubj)}(hhh]h)}(h'the start address of the range to unmaph]h'the start address of the range to unmap}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM hj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hM hj6ubj)}(h5``u64 req_range`` the range of the mappings to unmap h](j)}(h``u64 req_range``h]j)}(hj37h]h u64 req_range}(hj57hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj17ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj-7ubj)}(hhh]h)}(h"the range of the mappings to unmaph]h"the range of the mappings to unmap}(hjL7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH7hM hjI7ubah}(h]h ]h"]h$]h&]uh1jhj-7ubeh}(h]h ]h"]h$]h&]uh1jhjH7hM hj6ubeh}(h]h ]h"]h$]h&]uh1jhjy6ubh)}(h**Description**h]j)}(hjn7h]h Description}(hjp7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl7ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjy6ubh)}(hThis function creates a list of operations to perform unmapping and, if required, splitting of the mappings overlapping the unmap range.h]hThis function creates a list of operations to perform unmapping and, if required, splitting of the mappings overlapping the unmap range.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjy6ubh)}(hThe list can be iterated with :c:type:`drm_gpuva_for_each_op` and must be processed in the given order. It can contain unmap and remap operations, depending on whether there are actual overlapping mappings to split.h](hThe list can be iterated with }(hj7hhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j)}(hj7h]hdrm_gpuva_for_each_op}(hj7hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj7ubh and must be processed in the given order. It can contain unmap and remap operations, depending on whether there are actual overlapping mappings to split.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj7hM hjy6ubh)}(h[There can be an arbitrary amount of unmap operations and a maximum of two remap operations.h]h[There can be an arbitrary amount of unmap operations and a maximum of two remap operations.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjy6ubh)}(hXyNote that before calling this function again with another range to unmap it is necessary to update the :c:type:`drm_gpuvm`'s view of the GPU VA space. The previously obtained operations must be processed or abandoned. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.h](hgNote that before calling this function again with another range to unmap it is necessary to update the }(hj7hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj7h]h drm_gpuvm}(hj7hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj7ubhp’s view of the GPU VA space. The previously obtained operations must be processed or abandoned. To update the }(hj7hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj8h]h drm_gpuvm}(hj8hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj7hM hj7ubh’s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj7hM hjy6ubh)}(hAfter the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`.h](h2After the caller finished processing the returned }(hj)8hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj38h]h drm_gpuva_ops}(hj58hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj18ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj)8ubh, they must be freed with }(hj)8hhhNhNubh)}(h:c:type:`drm_gpuva_ops_free`h]j)}(hjW8h]hdrm_gpuva_ops_free}(hjY8hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjU8ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_ops_freeuh1hhjP8hM hj)8ubh.}(hj)8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjP8hM hjy6ubh)}(h **Return**h]j)}(hj8h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~8ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjy6ubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hj8hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj8h]h drm_gpuva_ops}(hj8hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj8ubh" on success, an ERR_PTR on failure}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj8hM hjy6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_gpuvm_prefetch_ops_create (C function)c.drm_gpuvm_prefetch_ops_createhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hcstruct drm_gpuva_ops * drm_gpuvm_prefetch_ops_create (struct drm_gpuvm *gpuvm, u64 addr, u64 range)h]jR)}(hastruct drm_gpuva_ops *drm_gpuvm_prefetch_ops_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jX)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj8hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM" ubjj)}(h h]h }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8hhhj8hM" ubh)}(hhh]j)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj 9modnameN classnameNj+j.)}j1]j4)}j'drm_gpuvm_prefetch_ops_createsbc.drm_gpuvm_prefetch_ops_createasbuh1hhj8hhhj8hM" ubjj)}(h h]h }(hj(9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8hhhj8hM" ubjH)}(hjKh]h*}(hj69hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj8hhhj8hM" ubj{)}(hdrm_gpuvm_prefetch_ops_createh]j)}(hj%9h]hdrm_gpuvm_prefetch_ops_create}(hjG9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhhj8hM" ubj)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjb9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj^9ubjj)}(h h]h }(hjo9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj^9ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}9ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj9modnameN classnameNj+j.)}j1]j#9c.drm_gpuvm_prefetch_ops_createasbuh1hhj^9ubjj)}(h h]h }(hj9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj^9ubjH)}(hjKh]h*}(hj9hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj^9ubj)}(hgpuvmh]hgpuvm}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZ9ubj)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj9modnameN classnameNj+j.)}j1]j#9c.drm_gpuvm_prefetch_ops_createasbuh1hhj9ubjj)}(h h]h }(hj9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9ubj)}(haddrh]haddr}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZ9ubj)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj:modnameN classnameNj+j.)}j1]j#9c.drm_gpuvm_prefetch_ops_createasbuh1hhj:ubjj)}(h h]h }(hj;:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:ubj)}(hrangeh]hrange}(hjI:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZ9ubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hM" ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj8hhhj8hM" ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jKhj8hM" hj8hhubj)}(hhh]h)}(h/creates the :c:type:`drm_gpuva_ops` to prefetchh](h creates the }(hjs:hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj}:h]h drm_gpuva_ops}(hj:hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj{:ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j#9c.drm_gpuvm_prefetch_ops_createasbja drm_gpuva_opsuh1hhjghMhjs:ubh to prefetch}(hjs:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM" hjp:hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hM" ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``u64 addr`` the start address of the range to prefetch ``u64 range`` the range of the mappings to prefetch **Description** This function creates a list of operations to perform prefetching. The list can be iterated with :c:type:`drm_gpuva_for_each_op` and must be processed in the given order. It can contain prefetch operations. There can be an arbitrary amount of prefetch operations. After the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`. **Return** a pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM& hj:ubj)}(hhh](j)}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hj:h]hstruct drm_gpuvm *gpuvm}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM# hj:ubj)}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hj:hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj:h]h drm_gpuvm}(hj;hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj:hM# hj:ubh representing the GPU VA space}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:hM# hj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hM# hj:ubj)}(h8``u64 addr`` the start address of the range to prefetch h](j)}(h ``u64 addr``h]j)}(hj8;h]hu64 addr}(hj:;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM$ hj2;ubj)}(hhh]h)}(h*the start address of the range to prefetchh]h*the start address of the range to prefetch}(hjQ;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM;hM$ hjN;ubah}(h]h ]h"]h$]h&]uh1jhj2;ubeh}(h]h ]h"]h$]h&]uh1jhjM;hM$ hj:ubj)}(h4``u64 range`` the range of the mappings to prefetch h](j)}(h ``u64 range``h]j)}(hjq;h]h u64 range}(hjs;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM% hjk;ubj)}(hhh]h)}(h%the range of the mappings to prefetchh]h%the range of the mappings to prefetch}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hM% hj;ubah}(h]h ]h"]h$]h&]uh1jhjk;ubeh}(h]h ]h"]h$]h&]uh1jhj;hM% hj:ubeh}(h]h ]h"]h$]h&]uh1jhj:ubh)}(h**Description**h]j)}(hj;h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM' hj:ubh)}(hBThis function creates a list of operations to perform prefetching.h]hBThis function creates a list of operations to perform prefetching.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM& hj:ubh)}(hThe list can be iterated with :c:type:`drm_gpuva_for_each_op` and must be processed in the given order. It can contain prefetch operations.h](hThe list can be iterated with }(hj;hhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j)}(hj;h]hdrm_gpuva_for_each_op}(hj;hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM( hj;ubhN and must be processed in the given order. It can contain prefetch operations.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;hM( hj:ubh)}(h8There can be an arbitrary amount of prefetch operations.h]h8There can be an arbitrary amount of prefetch operations.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM+ hj:ubh)}(hAfter the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`.h](h2After the caller finished processing the returned }(hj<hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj<h]h drm_gpuva_ops}(hj<hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM- hj<ubh, they must be freed with }(hj<hhhNhNubh)}(h:c:type:`drm_gpuva_ops_free`h]j)}(hj@<h]hdrm_gpuva_ops_free}(hjB<hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj><ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_ops_freeuh1hhj9<hM- hj<ubh.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9<hM- hj:ubh)}(h **Return**h]j)}(hji<h]hReturn}(hjk<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg<ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM0 hj:ubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hj<hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj<h]h drm_gpuva_ops}(hj<hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM1 hj<ubh" on success, an ERR_PTR on failure}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj<hM1 hj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_gpuvm_bo_unmap_ops_create (C function)c.drm_gpuvm_bo_unmap_ops_createhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hQstruct drm_gpuva_ops * drm_gpuvm_bo_unmap_ops_create (struct drm_gpuvm_bo *vm_bo)h]jR)}(hOstruct drm_gpuva_ops *drm_gpuvm_bo_unmap_ops_create(struct drm_gpuvm_bo *vm_bo)h](jX)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj<hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMX ubjj)}(h h]h }(hj<hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<hhhj<hMX ubh)}(hhh]j)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj<modnameN classnameNj+j.)}j1]j4)}j'drm_gpuvm_bo_unmap_ops_createsbc.drm_gpuvm_bo_unmap_ops_createasbuh1hhj<hhhj<hMX ubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<hhhj<hMX ubjH)}(hjKh]h*}(hj=hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj<hhhj<hMX ubj{)}(hdrm_gpuvm_bo_unmap_ops_createh]j)}(hj=h]hdrm_gpuvm_bo_unmap_ops_create}(hj0=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,=ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj<hhhj<hMX ubj)}(h(struct drm_gpuvm_bo *vm_bo)h]j)}(hstruct drm_gpuvm_bo *vm_boh](jX)}(hjh]hstruct}(hjK=hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjG=ubjj)}(h h]h }(hjX=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjG=ubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hji=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf=ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjk=modnameN classnameNj+j.)}j1]j =c.drm_gpuvm_bo_unmap_ops_createasbuh1hhjG=ubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjG=ubjH)}(hjKh]h*}(hj=hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjG=ubj)}(hvm_boh]hvm_bo}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjC=ubah}(h]h ]h"]h$]h&]jjuh1jhj<hhhj<hMX ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj<hhhj<hMX ubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1jKhj<hMX hj<hhubj)}(hhh]h)}(h2creates the :c:type:`drm_gpuva_ops` to unmap a GEMh](h creates the }(hj=hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj=h]h drm_gpuva_ops}(hj=hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j =c.drm_gpuvm_bo_unmap_ops_createasbja drm_gpuva_opsuh1hhjghMhj=ubh to unmap a GEM}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMX hj=hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhj<hMX ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj >jj >jjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` abstraction **Description** This function creates a list of operations to perform unmapping for every GPUVA attached to a GEM. The list can be iterated with :c:type:`drm_gpuva_for_each_op` and consists out of an arbitrary amount of unmap operations. After the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`. This function expects the caller to protect the GEM's GPUVA list against concurrent access using either the GEM's dma-resv or gpuva.lock mutex. **Return** a pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM\ hj>ubj)}(hhh]j)}(hF``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` abstraction h](j)}(h``struct drm_gpuvm_bo *vm_bo``h]j)}(hj5>h]hstruct drm_gpuvm_bo *vm_bo}(hj7>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3>ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMY hj/>ubj)}(hhh]h)}(h&the :c:type:`drm_gpuvm_bo` abstractionh](hthe }(hjN>hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjX>h]h drm_gpuvm_bo}(hjZ>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjV>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjJ>hMY hjN>ubh abstraction}(hjN>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJ>hMY hjK>ubah}(h]h ]h"]h$]h&]uh1jhj/>ubeh}(h]h ]h"]h$]h&]uh1jhjJ>hMY hj,>ubah}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM[ hj>ubh)}(hbThis function creates a list of operations to perform unmapping for every GPUVA attached to a GEM.h]hbThis function creates a list of operations to perform unmapping for every GPUVA attached to a GEM.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMZ hj>ubh)}(hzThe list can be iterated with :c:type:`drm_gpuva_for_each_op` and consists out of an arbitrary amount of unmap operations.h](hThe list can be iterated with }(hj>hhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j)}(hj>h]hdrm_gpuva_for_each_op}(hj>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM] hj>ubh= and consists out of an arbitrary amount of unmap operations.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj>hM] hj>ubh)}(hAfter the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`.h](h2After the caller finished processing the returned }(hj>hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj>h]h drm_gpuva_ops}(hj>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM` hj>ubh, they must be freed with }(hj>hhhNhNubh)}(h:c:type:`drm_gpuva_ops_free`h]j)}(hj?h]hdrm_gpuva_ops_free}(hj?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_ops_freeuh1hhj?hM` hj>ubh.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj?hM` hj>ubh)}(hThis function expects the caller to protect the GEM's GPUVA list against concurrent access using either the GEM's dma-resv or gpuva.lock mutex.h]hThis function expects the caller to protect the GEM’s GPUVA list against concurrent access using either the GEM’s dma-resv or gpuva.lock mutex.}(hj??hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMc hj>ubh)}(h **Return**h]j)}(hjP?h]hReturn}(hjR?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN?ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMf hj>ubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hjf?hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjp?h]h drm_gpuva_ops}(hjr?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjn?ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMg hjf?ubh" on success, an ERR_PTR on failure}(hjf?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj?hMg hj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuva_ops_free (C function)c.drm_gpuva_ops_freehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hLvoid drm_gpuva_ops_free (struct drm_gpuvm *gpuvm, struct drm_gpuva_ops *ops)h]jR)}(hKvoid drm_gpuva_ops_free(struct drm_gpuvm *gpuvm, struct drm_gpuva_ops *ops)h](j)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM ubjj)}(h h]h }(hj?hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?hhhj?hM ubj{)}(hdrm_gpuva_ops_freeh]j)}(hdrm_gpuva_ops_freeh]hdrm_gpuva_ops_free}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?hhhj?hM ubj)}(h4(struct drm_gpuvm *gpuvm, struct drm_gpuva_ops *ops)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj?ubjj)}(h h]h }(hj@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj@modnameN classnameNj+j.)}j1]j4)}j'j?sbc.drm_gpuva_ops_freeasbuh1hhj?ubjj)}(h h]h }(hj3@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?ubjH)}(hjKh]h*}(hjA@hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj?ubj)}(hgpuvmh]hgpuvm}(hjN@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hstruct drm_gpuva_ops *opsh](jX)}(hjh]hstruct}(hjg@hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjc@ubjj)}(h h]h }(hjt@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjc@ubh)}(hhh]j)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj@modnameN classnameNj+j.)}j1]j/@c.drm_gpuva_ops_freeasbuh1hhjc@ubjj)}(h h]h }(hj@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjc@ubjH)}(hjKh]h*}(hj@hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjc@ubj)}(hopsh]hops}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhj?hM ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj?hhhj?hM ubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1jKhj?hM hj?hhubj)}(hhh]h)}(h&free the given :c:type:`drm_gpuva_ops`h](hfree the given }(hj@hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj@h]h drm_gpuva_ops}(hj@hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j/@c.drm_gpuva_ops_freeasbja drm_gpuva_opsuh1hhjghMhj@ubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$Ajj$Ajjjuh1jFhhhj@hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` the ops were created for ``struct drm_gpuva_ops *ops`` the :c:type:`drm_gpuva_ops` to free **Description** Frees the given :c:type:`drm_gpuva_ops` structure including all the ops associated with it.h](h)}(h**Parameters**h]j)}(hj.Ah]h Parameters}(hj0AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,Aubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj(Aubj)}(hhh](j)}(hM``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` the ops were created for h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjMAh]hstruct drm_gpuvm *gpuvm}(hjOAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKAubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjGAubj)}(hhh]h)}(h0the :c:type:`drm_gpuvm` the ops were created forh](hthe }(hjfAhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjpAh]h drm_gpuvm}(hjrAhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjnAubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjbAhM hjfAubh the ops were created for}(hjfAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbAhM hjcAubah}(h]h ]h"]h$]h&]uh1jhjGAubeh}(h]h ]h"]h$]h&]uh1jhjbAhM hjDAubj)}(hB``struct drm_gpuva_ops *ops`` the :c:type:`drm_gpuva_ops` to free h](j)}(h``struct drm_gpuva_ops *ops``h]j)}(hjAh]hstruct drm_gpuva_ops *ops}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjAubj)}(hhh]h)}(h#the :c:type:`drm_gpuva_ops` to freeh](hthe }(hjAhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjAh]h drm_gpuva_ops}(hjAhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhjAhM hjAubh to free}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhM hjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhM hjDAubeh}(h]h ]h"]h$]h&]uh1jhj(Aubh)}(h**Description**h]j)}(hjBh]h Description}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj(Aubh)}(h[Frees the given :c:type:`drm_gpuva_ops` structure including all the ops associated with it.h](hFrees the given }(hjBhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj'Bh]h drm_gpuva_ops}(hj)BhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj%Bubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjBubh4 structure including all the ops associated with it.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjDBhM hj(Aubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubeh}(h]drm-gpuvm-function-referencesah ]h"]drm gpuvm function referencesah$]h&]uh1hhj0hhhhhMubeh}(h](j0id2eh ]h"]( drm gpuvm drm_gpuvmeh$]h&]uh1hhhhhhhhMj}jdBj0sj}j0j0subh)}(hhh](h)}(hDRM Buddy Allocatorh]hDRM Buddy Allocator}(hjlBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiBhhhhhMubh)}(hhh](h)}(h/Buddy Allocator Function References (GPU buddy)h]h/Buddy Allocator Function References (GPU buddy)}(hj}BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzBhhhhhMubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBgpu_buddy_init (C function)c.gpu_buddy_inithNtauh1j5hjzBhhhNhNubjG)}(hhh](jL)}(hCint gpu_buddy_init (struct gpu_buddy *mm, u64 size, u64 chunk_size)h]jR)}(hBint gpu_buddy_init(struct gpu_buddy *mm, u64 size, u64 chunk_size)h](j)}(hinth]hint}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chM`ubjj)}(h h]h }(hjBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBhhhjBhM`ubj{)}(hgpu_buddy_inith]j)}(hgpu_buddy_inith]hgpu_buddy_init}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjBhM`ubj)}(h0(struct gpu_buddy *mm, u64 size, u64 chunk_size)h](j)}(hstruct gpu_buddy *mmh](jX)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubjj)}(h h]h }(hjBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjCmodnameN classnameNj+j.)}j1]j4)}j'jBsbc.gpu_buddy_initasbuh1hhjBubjj)}(h h]h }(hjChhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubjH)}(hjKh]h*}(hj-ChhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjBubj)}(hmmh]hmm}(hj:ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjVChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSCubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjXCmodnameN classnameNj+j.)}j1]jCc.gpu_buddy_initasbuh1hhjOCubjj)}(h h]h }(hjtChhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOCubj)}(hsizeh]hsize}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hu64 chunk_sizeh](h)}(hhh]j)}(hu64h]hu64}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjCmodnameN classnameNj+j.)}j1]jCc.gpu_buddy_initasbuh1hhjCubjj)}(h h]h }(hjChhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjCubj)}(h chunk_sizeh]h chunk_size}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjBhM`ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjBhhhjBhM`ubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jKhjBhM`hjBhhubj)}(hhh]h)}(hinit memory managerh]hinit memory manager}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chM`hjChhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhM`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj Djj Djjjuh1jFhhhjzBhNhNubj)}(hX-**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager to initialize ``u64 size`` size in bytes to manage ``u64 chunk_size`` minimum page size in bytes for our allocations **Description** Initializes the memory manager and its resources. **Return** 0 on success, error code on failure.h](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMdhjDubj)}(hhh](j)}(h9``struct gpu_buddy *mm`` GPU buddy manager to initialize h](j)}(h``struct gpu_buddy *mm``h]j)}(hj5Dh]hstruct gpu_buddy *mm}(hj7DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Dubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMbhj/Dubj)}(hhh]h)}(hGPU buddy manager to initializeh]hGPU buddy manager to initialize}(hjNDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJDhMbhjKDubah}(h]h ]h"]h$]h&]uh1jhj/Dubeh}(h]h ]h"]h$]h&]uh1jhjJDhMbhj,Dubj)}(h%``u64 size`` size in bytes to manage h](j)}(h ``u64 size``h]j)}(hjnDh]hu64 size}(hjpDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlDubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMchjhDubj)}(hhh]h)}(hsize in bytes to manageh]hsize in bytes to manage}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMchjDubah}(h]h ]h"]h$]h&]uh1jhjhDubeh}(h]h ]h"]h$]h&]uh1jhjDhMchj,Dubj)}(hB``u64 chunk_size`` minimum page size in bytes for our allocations h](j)}(h``u64 chunk_size``h]j)}(hjDh]hu64 chunk_size}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMdhjDubj)}(hhh]h)}(h.minimum page size in bytes for our allocationsh]h.minimum page size in bytes for our allocations}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMdhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMdhj,Dubeh}(h]h ]h"]h$]h&]uh1jhjDubh)}(h**Description**h]j)}(hjDh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMfhjDubh)}(h1Initializes the memory manager and its resources.h]h1Initializes the memory manager and its resources.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMehjDubh)}(h **Return**h]j)}(hj Eh]hReturn}(hj EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMghjDubh)}(h$0 on success, error code on failure.h]h$0 on success, error code on failure.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzBhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBgpu_buddy_fini (C function)c.gpu_buddy_finihNtauh1j5hjzBhhhNhNubjG)}(hhh](jL)}(h*void gpu_buddy_fini (struct gpu_buddy *mm)h]jR)}(h)void gpu_buddy_fini(struct gpu_buddy *mm)h](j)}(hvoidh]hvoid}(hjNEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJEhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMubjj)}(h h]h }(hj]EhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJEhhhj\EhMubj{)}(hgpu_buddy_finih]j)}(hgpu_buddy_finih]hgpu_buddy_fini}(hjoEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkEubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJEhhhj\EhMubj)}(h(struct gpu_buddy *mm)h]j)}(hstruct gpu_buddy *mmh](jX)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjEubjj)}(h h]h }(hjEhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjEubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjEmodnameN classnameNj+j.)}j1]j4)}j'jqEsbc.gpu_buddy_finiasbuh1hhjEubjj)}(h h]h }(hjEhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjEubjH)}(hjKh]h*}(hjEhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjEubj)}(hmmh]hmm}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubah}(h]h ]h"]h$]h&]jjuh1jhjJEhhhj\EhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjFEhhhj\EhMubah}(h]jAEah ](jjeh"]h$]h&]jj)jhuh1jKhj\EhMhjCEhhubj)}(hhh]h)}(htear down the memory managerh]htear down the memory manager}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhj Fhhubah}(h]h ]h"]h$]h&]uh1jhjCEhhhj\EhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&Fjj&Fjjjuh1jFhhhjzBhNhNubj)}(h**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager to free **Description** Cleanup memory manager resources and the freetreeh](h)}(h**Parameters**h]j)}(hj0Fh]h Parameters}(hj2FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Fubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhj*Fubj)}(hhh]j)}(h3``struct gpu_buddy *mm`` GPU buddy manager to free h](j)}(h``struct gpu_buddy *mm``h]j)}(hjOFh]hstruct gpu_buddy *mm}(hjQFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMFubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjIFubj)}(hhh]h)}(hGPU buddy manager to freeh]hGPU buddy manager to free}(hjhFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdFhMhjeFubah}(h]h ]h"]h$]h&]uh1jhjIFubeh}(h]h ]h"]h$]h&]uh1jhjdFhMhjFFubah}(h]h ]h"]h$]h&]uh1jhj*Fubh)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhj*Fubh)}(h1Cleanup memory manager resources and the freetreeh]h1Cleanup memory manager resources and the freetree}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhj*Fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzBhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"gpu_buddy_reset_clear (C function)c.gpu_buddy_reset_clearhNtauh1j5hjzBhhhNhNubjG)}(hhh](jL)}(h@void gpu_buddy_reset_clear (struct gpu_buddy *mm, bool is_clear)h]jR)}(h?void gpu_buddy_reset_clear(struct gpu_buddy *mm, bool is_clear)h](j)}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMubjj)}(h h]h }(hjFhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjFhhhjFhMubj{)}(hgpu_buddy_reset_clearh]j)}(hgpu_buddy_reset_clearh]hgpu_buddy_reset_clear}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFhhhjFhMubj)}(h%(struct gpu_buddy *mm, bool is_clear)h](j)}(hstruct gpu_buddy *mmh](jX)}(hjh]hstruct}(hj GhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjGubjj)}(h h]h }(hjGhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjGubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hj*GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Gubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj,GmodnameN classnameNj+j.)}j1]j4)}j'jFsbc.gpu_buddy_reset_clearasbuh1hhjGubjj)}(h h]h }(hjJGhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjGubjH)}(hjKh]h*}(hjXGhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjGubj)}(hmmh]hmm}(hjeGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(h bool is_clearh](j)}(hj*h]hbool}(hj~GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzGubjj)}(h h]h }(hjGhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjzGubj)}(his_clearh]his_clear}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjFhhhjFhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjFhhhjFhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jKhjFhMhjFhhubj)}(hhh]h)}(hreset blocks clear stateh]hreset blocks clear state}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1jFhhhjzBhNhNubj)}(h**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager ``bool is_clear`` blocks clear state **Description** Reset the clear state based on **is_clear** value for each block in the freetree.h](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjGubj)}(hhh](j)}(h+``struct gpu_buddy *mm`` GPU buddy manager h](j)}(h``struct gpu_buddy *mm``h]j)}(hjHh]hstruct gpu_buddy *mm}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjGubj)}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjGubj)}(h%``bool is_clear`` blocks clear state h](j)}(h``bool is_clear``h]j)}(hj=Hh]h bool is_clear}(hj?HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Hubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhj7Hubj)}(hhh]h)}(hblocks clear stateh]hblocks clear state}(hjVHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRHhMhjSHubah}(h]h ]h"]h$]h&]uh1jhj7Hubeh}(h]h ]h"]h$]h&]uh1jhjRHhMhjGubeh}(h]h ]h"]h$]h&]uh1jhjGubh)}(h**Description**h]j)}(hjxHh]h Description}(hjzHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvHubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjGubh)}(hQReset the clear state based on **is_clear** value for each block in the freetree.h](hReset the clear state based on }(hjHhhhNhNubj)}(h **is_clear**h]his_clear}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh& value for each block in the freetree.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzBhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!gpu_buddy_free_block (C function)c.gpu_buddy_free_blockhNtauh1j5hjzBhhhNhNubjG)}(hhh](jL)}(hOvoid gpu_buddy_free_block (struct gpu_buddy *mm, struct gpu_buddy_block *block)h]jR)}(hNvoid gpu_buddy_free_block(struct gpu_buddy *mm, struct gpu_buddy_block *block)h](j)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chM?ubjj)}(h h]h }(hjHhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHhhhjHhM?ubj{)}(hgpu_buddy_free_blockh]j)}(hgpu_buddy_free_blockh]hgpu_buddy_free_block}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHhhhjHhM?ubj)}(h5(struct gpu_buddy *mm, struct gpu_buddy_block *block)h](j)}(hstruct gpu_buddy *mmh](jX)}(hjh]hstruct}(hj IhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjIubjj)}(h h]h }(hjIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hj*IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Iubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj,ImodnameN classnameNj+j.)}j1]j4)}j'jHsbc.gpu_buddy_free_blockasbuh1hhjIubjj)}(h h]h }(hjJIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIubjH)}(hjKh]h*}(hjXIhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjIubj)}(hmmh]hmm}(hjeIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hstruct gpu_buddy_block *blockh](jX)}(hjh]hstruct}(hj~IhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjzIubjj)}(h h]h }(hjIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjzIubh)}(hhh]j)}(hgpu_buddy_blockh]hgpu_buddy_block}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjImodnameN classnameNj+j.)}j1]jFIc.gpu_buddy_free_blockasbuh1hhjzIubjj)}(h h]h }(hjIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjzIubjH)}(hjKh]h*}(hjIhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjzIubj)}(hblockh]hblock}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubeh}(h]h ]h"]h$]h&]jjuh1jhjHhhhjHhM?ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjHhhhjHhM?ubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1jKhjHhM?hjHhhubj)}(hhh]h)}(h free a blockh]h free a block}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chM?hjIhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jFhhhjzBhNhNubj)}(hs**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager ``struct gpu_buddy_block *block`` block to be freedh](h)}(h**Parameters**h]j)}(hj!Jh]h Parameters}(hj#JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMChjJubj)}(hhh](j)}(h+``struct gpu_buddy *mm`` GPU buddy manager h](j)}(h``struct gpu_buddy *mm``h]j)}(hj@Jh]hstruct gpu_buddy *mm}(hjBJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Jubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMAhj:Jubj)}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hjYJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUJhMAhjVJubah}(h]h ]h"]h$]h&]uh1jhj:Jubeh}(h]h ]h"]h$]h&]uh1jhjUJhMAhj7Jubj)}(h3``struct gpu_buddy_block *block`` block to be freedh](j)}(h!``struct gpu_buddy_block *block``h]j)}(hjyJh]hstruct gpu_buddy_block *block}(hj{JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwJubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMChjsJubj)}(hhh]h)}(hblock to be freedh]hblock to be freed}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMBhjJubah}(h]h ]h"]h$]h&]uh1jhjsJubeh}(h]h ]h"]h$]h&]uh1jhjJhMChj7Jubeh}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzBhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB gpu_buddy_free_list (C function)c.gpu_buddy_free_listhNtauh1j5hjzBhhhNhNubjG)}(hhh](jL)}(h^void gpu_buddy_free_list (struct gpu_buddy *mm, struct list_head *objects, unsigned int flags)h]jR)}(h]void gpu_buddy_free_list(struct gpu_buddy *mm, struct list_head *objects, unsigned int flags)h](j)}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMpubjj)}(h h]h }(hjJhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJhhhjJhMpubj{)}(hgpu_buddy_free_listh]j)}(hgpu_buddy_free_listh]hgpu_buddy_free_list}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhjJhMpubj)}(hE(struct gpu_buddy *mm, struct list_head *objects, unsigned int flags)h](j)}(hstruct gpu_buddy *mmh](jX)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj Kubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj Kubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hj.KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Kubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj0KmodnameN classnameNj+j.)}j1]j4)}j'jJsbc.gpu_buddy_free_listasbuh1hhj Kubjj)}(h h]h }(hjNKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj KubjH)}(hjKh]h*}(hj\KhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj Kubj)}(hmmh]hmm}(hjiKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hstruct list_head *objectsh](jX)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj~Kubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~Kubh)}(hhh]j)}(h list_headh]h list_head}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjKmodnameN classnameNj+j.)}j1]jJKc.gpu_buddy_free_listasbuh1hhj~Kubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~KubjH)}(hjKh]h*}(hjKhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj~Kubj)}(hobjectsh]hobjects}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjj)}(h h]h }(hjLhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjKubj)}(hinth]hint}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjj)}(h h]h }(hjLhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjKubj)}(hflagsh]hflags}(hj*LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjJhhhjJhMpubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjJhhhjJhMpubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jKhjJhMphjJhhubj)}(hhh]h)}(h free blocksh]h free blocks}(hjTLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMphjQLhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjlLjjlLjjjuh1jFhhhjzBhNhNubj)}(h**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager ``struct list_head *objects`` input list head to free blocks ``unsigned int flags`` optional flags like GPU_BUDDY_CLEAREDh](h)}(h**Parameters**h]j)}(hjvLh]h Parameters}(hjxLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtLubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMthjpLubj)}(hhh](j)}(h+``struct gpu_buddy *mm`` GPU buddy manager h](j)}(h``struct gpu_buddy *mm``h]j)}(hjLh]hstruct gpu_buddy *mm}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMrhjLubj)}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMrhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMrhjLubj)}(h=``struct list_head *objects`` input list head to free blocks h](j)}(h``struct list_head *objects``h]j)}(hjLh]hstruct list_head *objects}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMshjLubj)}(hhh]h)}(hinput list head to free blocksh]hinput list head to free blocks}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMshjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMshjLubj)}(h<``unsigned int flags`` optional flags like GPU_BUDDY_CLEAREDh](j)}(h``unsigned int flags``h]j)}(hjMh]hunsigned int flags}(hj MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMuhjMubj)}(hhh]h)}(h%optional flags like GPU_BUDDY_CLEAREDh]h%optional flags like GPU_BUDDY_CLEARED}(hj MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMthjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMuhjLubeh}(h]h ]h"]h$]h&]uh1jhjpLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzBhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!gpu_buddy_block_trim (C function)c.gpu_buddy_block_trimhNtauh1j5hjzBhhhNhNubjG)}(hhh](jL)}(hcint gpu_buddy_block_trim (struct gpu_buddy *mm, u64 *start, u64 new_size, struct list_head *blocks)h]jR)}(hbint gpu_buddy_block_trim(struct gpu_buddy *mm, u64 *start, u64 new_size, struct list_head *blocks)h](j)}(hinth]hint}(hjaMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]MhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMyubjj)}(h h]h }(hjpMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj]MhhhjoMhMyubj{)}(hgpu_buddy_block_trimh]j)}(hgpu_buddy_block_trimh]hgpu_buddy_block_trim}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Mubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]MhhhjoMhMyubj)}(hJ(struct gpu_buddy *mm, u64 *start, u64 new_size, struct list_head *blocks)h](j)}(hstruct gpu_buddy *mmh](jX)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjMubjj)}(h h]h }(hjMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjMubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjMmodnameN classnameNj+j.)}j1]j4)}j'jMsbc.gpu_buddy_block_trimasbuh1hhjMubjj)}(h h]h }(hjMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjMubjH)}(hjKh]h*}(hjMhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjMubj)}(hmmh]hmm}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(h u64 *starth](h)}(hhh]j)}(hu64h]hu64}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjNmodnameN classnameNj+j.)}j1]jMc.gpu_buddy_block_trimasbuh1hhj Nubjj)}(h h]h }(hj1NhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj NubjH)}(hjKh]h*}(hj?NhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj Nubj)}(hstarth]hstart}(hjLNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(h u64 new_sizeh](h)}(hhh]j)}(hu64h]hu64}(hjhNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeNubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjjNmodnameN classnameNj+j.)}j1]jMc.gpu_buddy_block_trimasbuh1hhjaNubjj)}(h h]h }(hjNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjaNubj)}(hnew_sizeh]hnew_size}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hstruct list_head *blocksh](jX)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjNubjj)}(h h]h }(hjNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjNubh)}(hhh]j)}(h list_headh]h list_head}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjNmodnameN classnameNj+j.)}j1]jMc.gpu_buddy_block_trimasbuh1hhjNubjj)}(h h]h }(hjNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjNubjH)}(hjKh]h*}(hjNhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjNubj)}(hblocksh]hblocks}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1jhj]MhhhjoMhMyubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjYMhhhjoMhMyubah}(h]jTMah ](jjeh"]h$]h&]jj)jhuh1jKhjoMhMyhjVMhhubj)}(hhh]h)}(hfree unused pagesh]hfree unused pages}(hj.OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMyhj+Ohhubah}(h]h ]h"]h$]h&]uh1jhjVMhhhjoMhMyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFOjjFOjjjuh1jFhhhjzBhNhNubj)}(hX**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager ``u64 *start`` start address to begin the trimming. ``u64 new_size`` original size requested ``struct list_head *blocks`` Input and output list of allocated blocks. MUST contain single block as input to be trimmed. On success will contain the newly allocated blocks making up the **new_size**. Blocks always appear in ascending order **Description** For contiguous allocation, we round up the size to the nearest power of two value, drivers consume *actual* size, so remaining portions are unused and can be optionally freed with this function **Return** 0 on success, error code on failure.h](h)}(h**Parameters**h]j)}(hjPOh]h Parameters}(hjROhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNOubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chM}hjJOubj)}(hhh](j)}(h+``struct gpu_buddy *mm`` GPU buddy manager h](j)}(h``struct gpu_buddy *mm``h]j)}(hjoOh]hstruct gpu_buddy *mm}(hjqOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmOubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chM{hjiOubj)}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM{hjOubah}(h]h ]h"]h$]h&]uh1jhjiOubeh}(h]h ]h"]h$]h&]uh1jhjOhM{hjfOubj)}(h4``u64 *start`` start address to begin the trimming. h](j)}(h``u64 *start``h]j)}(hjOh]h u64 *start}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chM|hjOubj)}(hhh]h)}(h$start address to begin the trimming.h]h$start address to begin the trimming.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM|hjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhM|hjfOubj)}(h)``u64 new_size`` original size requested h](j)}(h``u64 new_size``h]j)}(hjOh]h u64 new_size}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chM}hjOubj)}(hhh]h)}(horiginal size requestedh]horiginal size requested}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM}hjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhM}hjfOubj)}(h``struct list_head *blocks`` Input and output list of allocated blocks. MUST contain single block as input to be trimmed. On success will contain the newly allocated blocks making up the **new_size**. Blocks always appear in ascending order h](j)}(h``struct list_head *blocks``h]j)}(hjPh]hstruct list_head *blocks}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjPubj)}(hhh]h)}(hInput and output list of allocated blocks. MUST contain single block as input to be trimmed. On success will contain the newly allocated blocks making up the **new_size**. Blocks always appear in ascending orderh](hInput and output list of allocated blocks. MUST contain single block as input to be trimmed. On success will contain the newly allocated blocks making up the }(hj3PhhhNhNubj)}(h **new_size**h]hnew_size}(hj;PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Pubh). Blocks always appear in ascending order}(hj3PhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chM~hj0Pubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhj/PhMhjfOubeh}(h]h ]h"]h$]h&]uh1jhjJOubh)}(h**Description**h]j)}(hjhPh]h Description}(hjjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfPubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjJOubh)}(hFor contiguous allocation, we round up the size to the nearest power of two value, drivers consume *actual* size, so remaining portions are unused and can be optionally freed with this functionh](hcFor contiguous allocation, we round up the size to the nearest power of two value, drivers consume }(hj~PhhhNhNubj)}(h*actual*h]hactual}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~PubhV size, so remaining portions are unused and can be optionally freed with this function}(hj~PhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjJOubh)}(h **Return**h]j)}(hjPh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjJOubh)}(h$0 on success, error code on failure.h]h$0 on success, error code on failure.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjJOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzBhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#gpu_buddy_alloc_blocks (C function)c.gpu_buddy_alloc_blockshNtauh1j5hjzBhhhNhNubjG)}(hhh](jL)}(hint gpu_buddy_alloc_blocks (struct gpu_buddy *mm, u64 start, u64 end, u64 size, u64 min_block_size, struct list_head *blocks, unsigned long flags)h]jR)}(hint gpu_buddy_alloc_blocks(struct gpu_buddy *mm, u64 start, u64 end, u64 size, u64 min_block_size, struct list_head *blocks, unsigned long flags)h](j)}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMubjj)}(h h]h }(hjPhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjPhhhjPhMubj{)}(hgpu_buddy_alloc_blocksh]j)}(hgpu_buddy_alloc_blocksh]hgpu_buddy_alloc_blocks}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPhhhjPhMubj)}(hw(struct gpu_buddy *mm, u64 start, u64 end, u64 size, u64 min_block_size, struct list_head *blocks, unsigned long flags)h](j)}(hstruct gpu_buddy *mmh](jX)}(hjh]hstruct}(hj#QhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjQubjj)}(h h]h }(hj0QhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjQubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjAQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Qubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjCQmodnameN classnameNj+j.)}j1]j4)}j'j Qsbc.gpu_buddy_alloc_blocksasbuh1hhjQubjj)}(h h]h }(hjaQhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjQubjH)}(hjKh]h*}(hjoQhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjQubj)}(hmmh]hmm}(hj|QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjQmodnameN classnameNj+j.)}j1]j]Qc.gpu_buddy_alloc_blocksasbuh1hhjQubjj)}(h h]h }(hjQhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjQubj)}(hstarth]hstart}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hu64 endh](h)}(hhh]j)}(hu64h]hu64}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjQmodnameN classnameNj+j.)}j1]j]Qc.gpu_buddy_alloc_blocksasbuh1hhjQubjj)}(h h]h }(hjQhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjQubj)}(hendh]hend}(hj RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hj(RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Rubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj*RmodnameN classnameNj+j.)}j1]j]Qc.gpu_buddy_alloc_blocksasbuh1hhj!Rubjj)}(h h]h }(hjFRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!Rubj)}(hsizeh]hsize}(hjTRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hu64 min_block_sizeh](h)}(hhh]j)}(hu64h]hu64}(hjpRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmRubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjrRmodnameN classnameNj+j.)}j1]j]Qc.gpu_buddy_alloc_blocksasbuh1hhjiRubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiRubj)}(hmin_block_sizeh]hmin_block_size}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hstruct list_head *blocksh](jX)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjRubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRubh)}(hhh]j)}(h list_headh]h list_head}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjRmodnameN classnameNj+j.)}j1]j]Qc.gpu_buddy_alloc_blocksasbuh1hhjRubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRubjH)}(hjKh]h*}(hjRhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjRubj)}(hblocksh]hblocks}(hj ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hj%ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Subjj)}(h h]h }(hj3ShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!Subj)}(hlongh]hlong}(hjAShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Subjj)}(h h]h }(hjOShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!Subj)}(hflagsh]hflags}(hj]ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Subeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjPhhhjPhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1jKhjPhMhjPhhubj)}(hhh]h)}(hallocate power-of-two blocksh]hallocate power-of-two blocks}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjShhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1jFhhhjzBhNhNubj)}(hX**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager to allocate from ``u64 start`` start of the allowed range for this block ``u64 end`` end of the allowed range for this block ``u64 size`` size of the allocation in bytes ``u64 min_block_size`` alignment of the allocation ``struct list_head *blocks`` output list head to add allocated blocks ``unsigned long flags`` GPU_BUDDY_*_ALLOCATION flags **Description** alloc_range_bias() called on range limitations, which traverses the tree and returns the desired block. alloc_from_freetree() called when *no* range restrictions are enforced, which picks the block from the freetree. **Return** 0 on success, error code on failure.h](h)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjSubj)}(hhh](j)}(h<``struct gpu_buddy *mm`` GPU buddy manager to allocate from h](j)}(h``struct gpu_buddy *mm``h]j)}(hjSh]hstruct gpu_buddy *mm}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjSubj)}(hhh]h)}(h"GPU buddy manager to allocate fromh]h"GPU buddy manager to allocate from}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShMhjSubj)}(h8``u64 start`` start of the allowed range for this block h](j)}(h ``u64 start``h]j)}(hjTh]h u64 start}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjSubj)}(hhh]h)}(h)start of the allowed range for this blockh]h)start of the allowed range for this block}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjThMhjSubj)}(h4``u64 end`` end of the allowed range for this block h](j)}(h ``u64 end``h]j)}(hj:Th]hu64 end}(hjVubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjCVmodnameN classnameNj+j.)}j1]j4)}j'j Vsbc.gpu_buddy_block_printasbuh1hhjVubjj)}(h h]h }(hjaVhhhNhNubah}(h]h ]jvah"6]h$]h&]uh1jihjVubjH)}(hjKh]h*}(hjoVhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjVubj)}(hmmh]hmm}(hj|VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hstruct gpu_buddy_block *blockh](jX)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjVubjj)}(h h]h }(hjVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVubh)}(hhh]j)}(hgpu_buddy_blockh]hgpu_buddy_block}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjVmodnameN classnameNj+j.)}j1]j]Vc.gpu_buddy_block_printasbuh1hhjVubjj)}(h h]h }(hjVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVubjH)}(hjKh]h*}(hjVhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjVubj)}(hblockh]hblock}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjUhhhjUhMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1jKhjUhMhjUhhubj)}(hhh]h)}(hprint block informationh]hprint block information}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.Wjj.Wjjjuh1jFhhhjzBhNhNubj)}(hq**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager ``struct gpu_buddy_block *block`` GPU buddy blockh](h)}(h**Parameters**h]j)}(hj8Wh]h Parameters}(hj:WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Wubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhj2Wubj)}(hhh](j)}(h+``struct gpu_buddy *mm`` GPU buddy manager h](j)}(h``struct gpu_buddy *mm``h]j)}(hjWWh]hstruct gpu_buddy *mm}(hjYWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUWubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjQWubj)}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hjpWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlWhMhjmWubah}(h]h ]h"]h$]h&]uh1jhjQWubeh}(h]h ]h"]h$]h&]uh1jhjlWhMhjNWubj)}(h1``struct gpu_buddy_block *block`` GPU buddy blockh](j)}(h!``struct gpu_buddy_block *block``h]j)}(hjWh]hstruct gpu_buddy_block *block}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjWubj)}(hhh]h)}(hGPU buddy blockh]hGPU buddy block}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjNWubeh}(h]h ]h"]h$]h&]uh1jhj2Wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzBhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBgpu_buddy_print (C function)c.gpu_buddy_printhNtauh1j5hjzBhhhNhNubjG)}(hhh](jL)}(h+void gpu_buddy_print (struct gpu_buddy *mm)h]jR)}(h*void gpu_buddy_print(struct gpu_buddy *mm)h](j)}(hvoidh]hvoid}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMubjj)}(h h]h }(hjWhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjWhhhjWhMubj{)}(hgpu_buddy_printh]j)}(hgpu_buddy_printh]hgpu_buddy_print}(hj XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWhhhjWhMubj)}(h(struct gpu_buddy *mm)h]j)}(hstruct gpu_buddy *mmh](jX)}(hjh]hstruct}(hj'XhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj#Xubjj)}(h h]h }(hj4XhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#Xubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjEXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBXubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjGXmodnameN classnameNj+j.)}j1]j4)}j'j Xsbc.gpu_buddy_printasbuh1hhj#Xubjj)}(h h]h }(hjeXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#XubjH)}(hjKh]h*}(hjsXhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj#Xubj)}(hmmh]hmm}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Xubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubah}(h]h ]h"]h$]h&]jjuh1jhjWhhhjWhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjWhhhjWhMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jKhjWhMhjWhhubj)}(hhh]h)}(hprint allocator stateh]hprint allocator state}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjXhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1jFhhhjzBhNhNubj)}(h<**Parameters** ``struct gpu_buddy *mm`` GPU buddy managerh](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjXubj)}(hhh]j)}(h*``struct gpu_buddy *mm`` GPU buddy managerh](j)}(h``struct gpu_buddy *mm``h]j)}(hjXh]hstruct gpu_buddy *mm}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjXubj)}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjYubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzBhhhNhNubeh}(h]-buddy-allocator-function-references-gpu-buddyah ]h"]/buddy allocator function references (gpu buddy)ah$]h&]uh1hhjiBhhhhhMubh)}(hhh](h)}(h.DRM Buddy Specific Logging Function Referencesh]h.DRM Buddy Specific Logging Function References}(hj7YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4YhhhhhMubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_buddy_block_print (C function)c.drm_buddy_block_printhNtauh1j5hj4YhhhNhNubjG)}(hhh](jL)}(hgvoid drm_buddy_block_print (struct gpu_buddy *mm, struct gpu_buddy_block *block, struct drm_printer *p)h]jR)}(hfvoid drm_buddy_block_print(struct gpu_buddy *mm, struct gpu_buddy_block *block, struct drm_printer *p)h](j)}(hvoidh]hvoid}(hj^YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZYhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chKubjj)}(h h]h }(hjmYhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjZYhhhjlYhKubj{)}(hdrm_buddy_block_printh]j)}(hdrm_buddy_block_printh]hdrm_buddy_block_print}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Yubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjZYhhhjlYhKubj)}(hL(struct gpu_buddy *mm, struct gpu_buddy_block *block, struct drm_printer *p)h](j)}(hstruct gpu_buddy *mmh](jX)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjYubjj)}(h h]h }(hjYhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjYmodnameN classnameNj+j.)}j1]j4)}j'jYsbc.drm_buddy_block_printasbuh1hhjYubjj)}(h h]h }(hjYhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYubjH)}(hjKh]h*}(hjYhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjYubj)}(hmmh]hmm}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hstruct gpu_buddy_block *blockh](jX)}(hjh]hstruct}(hj ZhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj Zubjj)}(h h]h }(hjZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj Zubh)}(hhh]j)}(hgpu_buddy_blockh]hgpu_buddy_block}(hj+ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Zubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj-ZmodnameN classnameNj+j.)}j1]jYc.drm_buddy_block_printasbuh1hhj Zubjj)}(h h]h }(hjIZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ZubjH)}(hjKh]h*}(hjWZhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj Zubj)}(hblockh]hblock}(hjdZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hstruct drm_printer *ph](jX)}(hjh]hstruct}(hj}ZhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjyZubjj)}(h h]h }(hjZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyZubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjZmodnameN classnameNj+j.)}j1]jYc.drm_buddy_block_printasbuh1hhjyZubjj)}(h h]h }(hjZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyZubjH)}(hjKh]h*}(hjZhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjyZubj)}(hjTh]hp}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubeh}(h]h ]h"]h$]h&]jjuh1jhjZYhhhjlYhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjVYhhhjlYhKubah}(h]jQYah ](jjeh"]h$]h&]jj)jhuh1jKhjlYhKhjSYhhubj)}(hhh]h)}(hprint block informationh]hprint block information}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chKhjZhhubah}(h]h ]h"]h$]h&]uh1jhjSYhhhjlYhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1jFhhhj4YhNhNubj)}(h**Parameters** ``struct gpu_buddy *mm`` DRM buddy manager ``struct gpu_buddy_block *block`` DRM buddy block ``struct drm_printer *p`` DRM printer to useh](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj![hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chKhj[ubj)}(hhh](j)}(h+``struct gpu_buddy *mm`` DRM buddy manager h](j)}(h``struct gpu_buddy *mm``h]j)}(hj>[h]hstruct gpu_buddy *mm}(hj@[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chKhj8[ubj)}(hhh]h)}(hDRM buddy managerh]hDRM buddy manager}(hjW[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS[hKhjT[ubah}(h]h ]h"]h$]h&]uh1jhj8[ubeh}(h]h ]h"]h$]h&]uh1jhjS[hKhj5[ubj)}(h2``struct gpu_buddy_block *block`` DRM buddy block h](j)}(h!``struct gpu_buddy_block *block``h]j)}(hjw[h]hstruct gpu_buddy_block *block}(hjy[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chKhjq[ubj)}(hhh]h)}(hDRM buddy blockh]hDRM buddy block}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKhj[ubah}(h]h ]h"]h$]h&]uh1jhjq[ubeh}(h]h ]h"]h$]h&]uh1jhj[hKhj5[ubj)}(h,``struct drm_printer *p`` DRM printer to useh](j)}(h``struct drm_printer *p``h]j)}(hj[h]hstruct drm_printer *p}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chKhj[ubj)}(hhh]h)}(hDRM printer to useh]hDRM printer to use}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chKhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hKhj5[ubeh}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4YhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_buddy_print (C function)c.drm_buddy_printhNtauh1j5hj4YhhhNhNubjG)}(hhh](jL)}(hBvoid drm_buddy_print (struct gpu_buddy *mm, struct drm_printer *p)h]jR)}(hAvoid drm_buddy_print(struct gpu_buddy *mm, struct drm_printer *p)h](j)}(hvoidh]hvoid}(hj \hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chK$ubjj)}(h h]h }(hj\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj\hhhj\hK$ubj{)}(hdrm_buddy_printh]j)}(hdrm_buddy_printh]hdrm_buddy_print}(hj+\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'\ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\hhhj\hK$ubj)}(h-(struct gpu_buddy *mm, struct drm_printer *p)h](j)}(hstruct gpu_buddy *mmh](jX)}(hjh]hstruct}(hjG\hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjC\ubjj)}(h h]h }(hjT\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjC\ubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hje\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb\ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjg\modnameN classnameNj+j.)}j1]j4)}j'j-\sbc.drm_buddy_printasbuh1hhjC\ubjj)}(h h]h }(hj\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjC\ubjH)}(hjKh]h*}(hj\hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjC\ubj)}(hmmh]hmm}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?\ubj)}(hstruct drm_printer *ph](jX)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj\ubjj)}(h h]h }(hj\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj\ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj\modnameN classnameNj+j.)}j1]j\c.drm_buddy_printasbuh1hhj\ubjj)}(h h]h }(hj\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj\ubjH)}(hjKh]h*}(hj]hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj\ubj)}(hjTh]hp}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?\ubeh}(h]h ]h"]h$]h&]jjuh1jhj\hhhj\hK$ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj\hhhj\hK$ubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jKhj\hK$hj[hhubj)}(hhh]h)}(hprint allocator stateh]hprint allocator state}(hj9]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chK$hj6]hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhj\hK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQ]jjQ]jjjuh1jFhhhj4YhNhNubj)}(hl**Parameters** ``struct gpu_buddy *mm`` DRM buddy manager ``struct drm_printer *p`` DRM printer to useh](h)}(h**Parameters**h]j)}(hj[]h]h Parameters}(hj]]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY]ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chK(hjU]ubj)}(hhh](j)}(h+``struct gpu_buddy *mm`` DRM buddy manager h](j)}(h``struct gpu_buddy *mm``h]j)}(hjz]h]hstruct gpu_buddy *mm}(hj|]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx]ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chK&hjt]ubj)}(hhh]h)}(hDRM buddy managerh]hDRM buddy manager}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hK&hj]ubah}(h]h ]h"]h$]h&]uh1jhjt]ubeh}(h]h ]h"]h$]h&]uh1jhj]hK&hjq]ubj)}(h,``struct drm_printer *p`` DRM printer to useh](j)}(h``struct drm_printer *p``h]j)}(hj]h]hstruct drm_printer *p}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chK(hj]ubj)}(hhh]h)}(hDRM printer to useh]hDRM printer to use}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:538: ./drivers/gpu/drm/drm_buddy.chK'hj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hK(hjq]ubeh}(h]h ]h"]h$]h&]uh1jhjU]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4YhhhNhNubeh}(h].drm-buddy-specific-logging-function-referencesah ]h"].drm buddy specific logging function referencesah$]h&]uh1hhjiBhhhhhMubeh}(h]drm-buddy-allocatorah ]h"]drm buddy allocatorah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h'DRM Cache Handling and Fast WC memcpy()h]h'DRM Cache Handling and Fast WC memcpy()}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hhhhhMubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_clflush_pages (C function)c.drm_clflush_pageshNtauh1j5hj^hhhNhNubjG)}(hhh](jL)}(hFvoid drm_clflush_pages (struct page *pages[], unsigned long num_pages)h]jR)}(hEvoid drm_clflush_pages(struct page *pages[], unsigned long num_pages)h](j)}(hvoidh]hvoid}(hj.^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*^hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKOubjj)}(h h]h }(hj=^hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*^hhhj<^hKOubj{)}(hdrm_clflush_pagesh]j)}(hdrm_clflush_pagesh]hdrm_clflush_pages}(hjO^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj*^hhhj<^hKOubj)}(h/(struct page *pages[], unsigned long num_pages)h](j)}(hstruct page *pages[]h](jX)}(hjh]hstruct}(hjk^hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjg^ubjj)}(h h]h }(hjx^hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjg^ubh)}(hhh]j)}(hpageh]hpage}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj^modnameN classnameNj+j.)}j1]j4)}j'jQ^sbc.drm_clflush_pagesasbuh1hhjg^ubjj)}(h h]h }(hj^hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjg^ubjH)}(hjKh]h*}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjg^ubj)}(hpagesh]hpages}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg^ubjH)}(h[h]h[}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjg^ubjH)}(h]h]h]}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjg^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc^ubj)}(hunsigned long num_pagesh](j)}(hunsignedh]hunsigned}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjj)}(h h]h }(hj_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj^ubj)}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjj)}(h h]h }(hj#_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj^ubj)}(h num_pagesh]h num_pages}(hj1_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc^ubeh}(h]h ]h"]h$]h&]jjuh1jhj*^hhhj<^hKOubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj&^hhhj<^hKOubah}(h]j!^ah ](jjeh"]h$]h&]jj)jhuh1jKhj<^hKOhj#^hhubj)}(hhh]h)}(h%Flush dcache lines of a set of pages.h]h%Flush dcache lines of a set of pages.}(hj[_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKOhjX_hhubah}(h]h ]h"]h$]h&]uh1jhj#^hhhj<^hKOubeh}(h]h ](jfunctioneh"]h$]h&]jjjjs_jjs_jjjuh1jFhhhj^hNhNubj)}(h**Parameters** ``struct page *pages[]`` List of pages to be flushed. ``unsigned long num_pages`` Number of pages in the array. **Description** Flush every data cache line entry that points to an address belonging to a page in the array.h](h)}(h**Parameters**h]j)}(hj}_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{_ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKShjw_ubj)}(hhh](j)}(h6``struct page *pages[]`` List of pages to be flushed. h](j)}(h``struct page *pages[]``h]j)}(hj_h]hstruct page *pages[]}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKPhj_ubj)}(hhh]h)}(hList of pages to be flushed.h]hList of pages to be flushed.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKPhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hKPhj_ubj)}(h:``unsigned long num_pages`` Number of pages in the array. h](j)}(h``unsigned long num_pages``h]j)}(hj_h]hunsigned long num_pages}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKQhj_ubj)}(hhh]h)}(hNumber of pages in the array.h]hNumber of pages in the array.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKQhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hKQhj_ubeh}(h]h ]h"]h$]h&]uh1jhjw_ubh)}(h**Description**h]j)}(hj`h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKShjw_ubh)}(h]Flush every data cache line entry that points to an address belonging to a page in the array.h]h]Flush every data cache line entry that points to an address belonging to a page in the array.}(hj&`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKRhjw_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_clflush_sg (C function)c.drm_clflush_sghNtauh1j5hj^hhhNhNubjG)}(hhh](jL)}(h)void drm_clflush_sg (struct sg_table *st)h]jR)}(h(void drm_clflush_sg(struct sg_table *st)h](j)}(hvoidh]hvoid}(hjU`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ`hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKxubjj)}(h h]h }(hjd`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjQ`hhhjc`hKxubj{)}(hdrm_clflush_sgh]j)}(hdrm_clflush_sgh]hdrm_clflush_sg}(hjv`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQ`hhhjc`hKxubj)}(h(struct sg_table *st)h]j)}(hstruct sg_table *sth](jX)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj`ubjj)}(h h]h }(hj`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj`ubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj`modnameN classnameNj+j.)}j1]j4)}j'jx`sbc.drm_clflush_sgasbuh1hhj`ubjj)}(h h]h }(hj`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj`ubjH)}(hjKh]h*}(hj`hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj`ubj)}(hsth]hst}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubah}(h]h ]h"]h$]h&]jjuh1jhjQ`hhhjc`hKxubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjM`hhhjc`hKxubah}(h]jH`ah ](jjeh"]h$]h&]jj)jhuh1jKhjc`hKxhjJ`hhubj)}(hhh]h)}(h0Flush dcache lines pointing to a scather-gather.h]h0Flush dcache lines pointing to a scather-gather.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKxhjahhubah}(h]h ]h"]h$]h&]uh1jhjJ`hhhjc`hKxubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-ajj-ajjjuh1jFhhhj^hNhNubj)}(h**Parameters** ``struct sg_table *st`` struct sg_table. **Description** Flush every data cache line entry that points to an address in the sg.h](h)}(h**Parameters**h]j)}(hj7ah]h Parameters}(hj9ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5aubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chK|hj1aubj)}(hhh]j)}(h)``struct sg_table *st`` struct sg_table. h](j)}(h``struct sg_table *st``h]j)}(hjVah]hstruct sg_table *st}(hjXahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKyhjPaubj)}(hhh]h)}(hstruct sg_table.h]hstruct sg_table.}(hjoahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkahKyhjlaubah}(h]h ]h"]h$]h&]uh1jhjPaubeh}(h]h ]h"]h$]h&]uh1jhjkahKyhjMaubah}(h]h ]h"]h$]h&]uh1jhj1aubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chK{hj1aubh)}(hFFlush every data cache line entry that points to an address in the sg.h]hFFlush every data cache line entry that points to an address in the sg.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKzhj1aubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_clflush_virt_range (C function)c.drm_clflush_virt_rangehNtauh1j5hj^hhhNhNubjG)}(hhh](jL)}(h>void drm_clflush_virt_range (void *addr, unsigned long length)h]jR)}(h=void drm_clflush_virt_range(void *addr, unsigned long length)h](j)}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKubjj)}(h h]h }(hjahhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjahhhjahKubj{)}(hdrm_clflush_virt_rangeh]j)}(hdrm_clflush_virt_rangeh]hdrm_clflush_virt_range}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhhjahKubj)}(h"(void *addr, unsigned long length)h](j)}(h void *addrh](j)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjj)}(h h]h }(hj!bhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjbubjH)}(hjKh]h*}(hj/bhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjbubj)}(haddrh]haddr}(hjhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_SYNCOBJ_CREATE_SIGNALEDuh1hhj9hhK4hjhubh flag is passed to }(hjhhhhNhNubh)}(h":c:type:`DRM_IOCTL_SYNCOBJ_CREATE`h]j)}(hjchh]hDRM_IOCTL_SYNCOBJ_CREATE}(hjehhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjahubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_IOCTL_SYNCOBJ_CREATEuh1hhj9hhK4hjhubh.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hhK4hjzfhhubh)}(hXIf the syncobj is considered as a binary (its state is either signaled or unsignaled) primitive, when GPU work is enqueued in a DRM driver to signal the syncobj, the syncobj's fence is replaced with a fence which will be signaled by the completion of that work. If the syncobj is considered as a timeline primitive, when GPU work is enqueued in a DRM driver to signal the a given point of the syncobj, a new struct :c:type:`dma_fence_chain` pointing to the DRM driver's fence and also pointing to the previous fence that was in the syncobj. The new struct :c:type:`dma_fence_chain` fence replace the syncobj's fence and will be signaled by completion of the DRM driver's work and also any work associated with the fence previously in the syncobj.h](hXIf the syncobj is considered as a binary (its state is either signaled or unsignaled) primitive, when GPU work is enqueued in a DRM driver to signal the syncobj, the syncobj’s fence is replaced with a fence which will be signaled by the completion of that work. If the syncobj is considered as a timeline primitive, when GPU work is enqueued in a DRM driver to signal the a given point of the syncobj, a new struct }(hjhhhhNhNubh)}(h:c:type:`dma_fence_chain`h]j)}(hjhh]hdma_fence_chain}(hjhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_fence_chainuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chK;hjhubhv pointing to the DRM driver’s fence and also pointing to the previous fence that was in the syncobj. The new struct }(hjhhhhNhNubh)}(h:c:type:`dma_fence_chain`h]j)}(hjhh]hdma_fence_chain}(hjhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_fence_chainuh1hhjhhK;hjhubh fence replace the syncobj’s fence and will be signaled by completion of the DRM driver’s work and also any work associated with the fence previously in the syncobj.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhhK;hjzfhhubh)}(hWhen GPU work which waits on a syncobj is enqueued in a DRM driver, at the time the work is enqueued, it waits on the syncobj's fence before submitting the work to hardware. That fence is either :h]hWhen GPU work which waits on a syncobj is enqueued in a DRM driver, at the time the work is enqueued, it waits on the syncobj’s fence before submitting the work to hardware. That fence is either :}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKGhjzfhhubj)}(h- The syncobj's current fence if the syncobj is considered as a binary primitive. - The struct :c:type:`dma_fence` associated with a given point if the syncobj is considered as a timeline primitive. h]jz)}(hhh](jz)}(hOThe syncobj's current fence if the syncobj is considered as a binary primitive.h]h)}(hOThe syncobj's current fence if the syncobj is considered as a binary primitive.h]hQThe syncobj’s current fence if the syncobj is considered as a binary primitive.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKKhjhubah}(h]h ]h"]h$]h&]uh1jzhjhubjz)}(hsThe struct :c:type:`dma_fence` associated with a given point if the syncobj is considered as a timeline primitive. h]h)}(hrThe struct :c:type:`dma_fence` associated with a given point if the syncobj is considered as a timeline primitive.h](h The struct }(hjihhhNhNubh)}(h:c:type:`dma_fence`h]j)}(hjih]h dma_fence}(hjihhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_fenceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKMhjiubhT associated with a given point if the syncobj is considered as a timeline primitive.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9ihKMhjiubah}(h]h ]h"]h$]h&]uh1jzhjhubeh}(h]h ]h"]h$]h&]jE{jF{uh1jzhjihKKhjhubah}(h]h ]h"]h$]h&]uh1jhjihKKhjzfhhubh)}(hsIf the syncobj's fence is NULL or not present in the syncobj's timeline, the enqueue operation is expected to fail.h]hwIf the syncobj’s fence is NULL or not present in the syncobj’s timeline, the enqueue operation is expected to fail.}(hjVihhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKPhjzfhhubh)}(hXWith binary syncobj, all manipulation of the syncobjs's fence happens in terms of the current fence at the time the ioctl is called by userspace regardless of whether that operation is an immediate host-side operation (signal or reset) or or an operation which is enqueued in some driver queue. :c:type:`DRM_IOCTL_SYNCOBJ_RESET` and :c:type:`DRM_IOCTL_SYNCOBJ_SIGNAL` can be used to manipulate a syncobj from the host by resetting its pointer to NULL or setting its pointer to a fence which is already signaled.h](hX)With binary syncobj, all manipulation of the syncobjs’s fence happens in terms of the current fence at the time the ioctl is called by userspace regardless of whether that operation is an immediate host-side operation (signal or reset) or or an operation which is enqueued in some driver queue. }(hjeihhhNhNubh)}(h!:c:type:`DRM_IOCTL_SYNCOBJ_RESET`h]j)}(hjoih]hDRM_IOCTL_SYNCOBJ_RESET}(hjqihhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjmiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_IOCTL_SYNCOBJ_RESETuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKShjeiubh and }(hjeihhhNhNubh)}(h":c:type:`DRM_IOCTL_SYNCOBJ_SIGNAL`h]j)}(hjih]hDRM_IOCTL_SYNCOBJ_SIGNAL}(hjihhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_IOCTL_SYNCOBJ_SIGNALuh1hhjihKShjeiubh can be used to manipulate a syncobj from the host by resetting its pointer to NULL or setting its pointer to a fence which is already signaled.}(hjeihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjihKShjzfhhubh)}(hWith a timeline syncobj, all manipulation of the synobj's fence happens in terms of a u64 value referring to point in the timeline. See dma_fence_chain_find_seqno() to see how a given point is found in the timeline.h]hWith a timeline syncobj, all manipulation of the synobj’s fence happens in terms of a u64 value referring to point in the timeline. See dma_fence_chain_find_seqno() to see how a given point is found in the timeline.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chK[hjzfhhubh)}(hXNote that applications should be careful to always use timeline set of ioctl() when dealing with syncobj considered as timeline. Using a binary set of ioctl() with a syncobj considered as timeline could result incorrect synchronization. The use of binary syncobj is supported through the timeline set of ioctl() by using a point value of 0, this will reproduce the behavior of the binary set of ioctl() (for example replace the syncobj's fence when signaling).h]hXNote that applications should be careful to always use timeline set of ioctl() when dealing with syncobj considered as timeline. Using a binary set of ioctl() with a syncobj considered as timeline could result incorrect synchronization. The use of binary syncobj is supported through the timeline set of ioctl() by using a point value of 0, this will reproduce the behavior of the binary set of ioctl() (for example replace the syncobj’s fence when signaling).}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chK`hjzfhhubh)}(hhh](h)}(hHost-side wait on syncobjsh]hHost-side wait on syncobjs}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihNhNubh)}(hX:c:type:`DRM_IOCTL_SYNCOBJ_WAIT` takes an array of syncobj handles and does a host-side wait on all of the syncobj fences simultaneously. If :c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL` is set, the wait ioctl will wait on all of the syncobj fences to be signaled before it returns. Otherwise, it returns once at least one syncobj fence has been signaled and the index of a signaled fence is written back to the client.h](h)}(h :c:type:`DRM_IOCTL_SYNCOBJ_WAIT`h]j)}(hjih]hDRM_IOCTL_SYNCOBJ_WAIT}(hjihhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_IOCTL_SYNCOBJ_WAITuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKlhjiubhm takes an array of syncobj handles and does a host-side wait on all of the syncobj fences simultaneously. If }(hjihhhNhNubh)}(h):c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL`h]j)}(hjjh]hDRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL}(hjjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALLuh1hhj jhKlhjiubh is set, the wait ioctl will wait on all of the syncobj fences to be signaled before it returns. Otherwise, it returns once at least one syncobj fence has been signaled and the index of a signaled fence is written back to the client.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj jhKlhjiubh)}(hXUnlike the enqueued GPU work dependencies which fail if they see a NULL fence in a syncobj, if :c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT` is set, the host-side wait will first wait for the syncobj to receive a non-NULL fence and then wait on that fence. If :c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT` is not set and any one of the syncobjs in the array has a NULL fence, -EINVAL will be returned. Assuming the syncobj starts off with a NULL fence, this allows a client to do a host wait in one thread (or process) which waits on GPU work submitted in another thread (or process) without having to manually synchronize between the two. This requirement is inherited from the Vulkan fence API.h](h_Unlike the enqueued GPU work dependencies which fail if they see a NULL fence in a syncobj, if }(hj:jhhhNhNubh)}(h0:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT`h]j)}(hjDjh]h&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT}(hjFjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjBjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMITuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKshj:jubhx is set, the host-side wait will first wait for the syncobj to receive a non-NULL fence and then wait on that fence. If }(hj:jhhhNhNubh)}(h0:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT`h]j)}(hjhjh]h&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT}(hjjjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjfjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMITuh1hhjajhKshj:jubhX is not set and any one of the syncobjs in the array has a NULL fence, -EINVAL will be returned. Assuming the syncobj starts off with a NULL fence, this allows a client to do a host wait in one thread (or process) which waits on GPU work submitted in another thread (or process) without having to manually synchronize between the two. This requirement is inherited from the Vulkan fence API.}(hj:jhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjajhKshjiubh)}(hX+If :c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE` is set, the ioctl will also set a fence deadline hint on the backing fences before waiting, to provide the fence signaler with an appropriate sense of urgency. The deadline is specified as an absolute :c:type:`CLOCK_MONOTONIC` value in units of ns.h](hIf }(hjjhhhNhNubh)}(h.:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE`h]j)}(hjjh]h$DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE}(hjjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja$DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINEuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKhjjubh is set, the ioctl will also set a fence deadline hint on the backing fences before waiting, to provide the fence signaler with an appropriate sense of urgency. The deadline is specified as an absolute }(hjjhhhNhNubh)}(h:c:type:`CLOCK_MONOTONIC`h]j)}(hjjh]hCLOCK_MONOTONIC}(hjjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaCLOCK_MONOTONICuh1hhjjhKhjjubh value in units of ns.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjhKhjiubh)}(hSimilarly, :c:type:`DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT` takes an array of syncobj handles as well as an array of u64 points and does a host-side wait on all of syncobj fences at the given points simultaneously.h](h Similarly, }(hjjhhhNhNubh)}(h):c:type:`DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT`h]j)}(hjjh]hDRM_IOCTL_SYNCOBJ_TIMELINE_WAIT}(hjjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_IOCTL_SYNCOBJ_TIMELINE_WAITuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKhjjubh takes an array of syncobj handles as well as an array of u64 points and does a host-side wait on all of syncobj fences at the given points simultaneously.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj khKhjiubh)}(hXZ:c:type:`DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT` also adds the ability to wait for a given fence to materialize on the timeline without waiting for the fence to be signaled by using the :c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE` flag. This requirement is inherited from the wait-before-signal behavior required by the Vulkan timeline semaphore API.h](h)}(h):c:type:`DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT`h]j)}(hjkh]hDRM_IOCTL_SYNCOBJ_TIMELINE_WAIT}(hjkhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_IOCTL_SYNCOBJ_TIMELINE_WAITuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKhjkubh also adds the ability to wait for a given fence to materialize on the timeline without waiting for the fence to be signaled by using the }(hjkhhhNhNubh)}(h/:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE`h]j)}(hj@kh]h%DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE}(hjBkhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>kubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja%DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLEuh1hhj9khKhjkubhx flag. This requirement is inherited from the wait-before-signal behavior required by the Vulkan timeline semaphore API.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9khKhjiubh)}(hAlternatively, :c:type:`DRM_IOCTL_SYNCOBJ_EVENTFD` can be used to wait without blocking: an eventfd will be signaled when the syncobj is. This is useful to integrate the wait in an event loop.h](hAlternatively, }(hjgkhhhNhNubh)}(h#:c:type:`DRM_IOCTL_SYNCOBJ_EVENTFD`h]j)}(hjqkh]hDRM_IOCTL_SYNCOBJ_EVENTFD}(hjskhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjokubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_IOCTL_SYNCOBJ_EVENTFDuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKhjgkubh can be used to wait without blocking: an eventfd will be signaled when the syncobj is. This is useful to integrate the wait in an event loop.}(hjgkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhKhjiubeh}(h]host-side-wait-on-syncobjsah ]h"]host-side wait on syncobjsah$]h&]uh1hhjzfhhhNhNubh)}(hhh](h)}(hImport/export of syncobjsh]hImport/export of syncobjs}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhNhNubh)}(h:c:type:`DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE` and :c:type:`DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD` provide two mechanisms for import/export of syncobjs.h](h)}(h(:c:type:`DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE`h]j)}(hjkh]hDRM_IOCTL_SYNCOBJ_FD_TO_HANDLE}(hjkhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_IOCTL_SYNCOBJ_FD_TO_HANDLEuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKhjkubh and }(hjkhhhNhNubh)}(h(:c:type:`DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD`h]j)}(hjkh]hDRM_IOCTL_SYNCOBJ_HANDLE_TO_FD}(hjkhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_IOCTL_SYNCOBJ_HANDLE_TO_FDuh1hhjkhKhjkubh6 provide two mechanisms for import/export of syncobjs.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhKhjkubh)}(hXThe first lets the client import or export an entire syncobj to a file descriptor. These fd's are opaque and have no other use case, except passing the syncobj between processes. All exported file descriptors and any syncobj handles created as a result of importing those file descriptors own a reference to the same underlying struct :c:type:`drm_syncobj` and the syncobj can be used persistently across all the processes with which it is shared. The syncobj is freed only once the last reference is dropped. Unlike dma-buf, importing a syncobj creates a new handle (with its own reference) for every import instead of de-duplicating. The primary use-case of this persistent import/export is for shared Vulkan fences and semaphores.h](hXQThe first lets the client import or export an entire syncobj to a file descriptor. These fd’s are opaque and have no other use case, except passing the syncobj between processes. All exported file descriptors and any syncobj handles created as a result of importing those file descriptors own a reference to the same underlying struct }(hjlhhhNhNubh)}(h:c:type:`drm_syncobj`h]j)}(hj lh]h drm_syncobj}(hjlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj lubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_syncobjuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKhjlubhXy and the syncobj can be used persistently across all the processes with which it is shared. The syncobj is freed only once the last reference is dropped. Unlike dma-buf, importing a syncobj creates a new handle (with its own reference) for every import instead of de-duplicating. The primary use-case of this persistent import/export is for shared Vulkan fences and semaphores.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj*lhKhjkubh)}(hXThe second import/export mechanism, which is indicated by :c:type:`DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE` or :c:type:`DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE` lets the client import/export the syncobj's current fence from/to a :c:type:`sync_file`. When a syncobj is exported to a sync file, that sync file wraps the sycnobj's fence at the time of export and any later signal or reset operations on the syncobj will not affect the exported sync file. When a sync file is imported into a syncobj, the syncobj's fence is set to the fence wrapped by that sync file. Because sync files are immutable, resetting or signaling the syncobj will not affect any sync files whose fences have been imported into the syncobj.h](h:The second import/export mechanism, which is indicated by }(hj5lhhhNhNubh)}(h9:c:type:`DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE`h]j)}(hj?lh]h/DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE}(hjAlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj=lubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja/DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILEuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKhj5lubh or }(hj5lhhhNhNubh)}(h9:c:type:`DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE`h]j)}(hjclh]h/DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE}(hjelhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjalubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja/DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILEuh1hhj\lhKhj5lubhG lets the client import/export the syncobj’s current fence from/to a }(hj5lhhhNhNubh)}(h:c:type:`sync_file`h]j)}(hjlh]h sync_file}(hjlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja sync_fileuh1hhj\lhKhj5lubhX. When a syncobj is exported to a sync file, that sync file wraps the sycnobj’s fence at the time of export and any later signal or reset operations on the syncobj will not affect the exported sync file. When a sync file is imported into a syncobj, the syncobj’s fence is set to the fence wrapped by that sync file. Because sync files are immutable, resetting or signaling the syncobj will not affect any sync files whose fences have been imported into the syncobj.}(hj5lhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\lhKhjkubeh}(h]import-export-of-syncobjsah ]h"]import/export of syncobjsah$]h&]uh1hhjzfhhhNhNubh)}(hhh](h)}(h5Import/export of timeline points in timeline syncobjsh]h5Import/export of timeline points in timeline syncobjs}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhNhNubh)}(h:c:type:`DRM_IOCTL_SYNCOBJ_TRANSFER` provides a mechanism to transfer a struct :c:type:`dma_fence_chain` of a syncobj at a given u64 point to another u64 point into another syncobj.h](h)}(h$:c:type:`DRM_IOCTL_SYNCOBJ_TRANSFER`h]j)}(hjlh]hDRM_IOCTL_SYNCOBJ_TRANSFER}(hjlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_IOCTL_SYNCOBJ_TRANSFERuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKhjlubh+ provides a mechanism to transfer a struct }(hjlhhhNhNubh)}(h:c:type:`dma_fence_chain`h]j)}(hjlh]hdma_fence_chain}(hjlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_fence_chainuh1hhjlhKhjlubhM of a syncobj at a given u64 point to another u64 point into another syncobj.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhKhjlubh)}(hNote that if you want to transfer a struct :c:type:`dma_fence_chain` from a given point on a timeline syncobj from/into a binary syncobj, you can use the point 0 to mean take/replace the fence in the syncobj.h](h+Note that if you want to transfer a struct }(hjmhhhNhNubh)}(h:c:type:`dma_fence_chain`h]j)}(hj!mh]hdma_fence_chain}(hj#mhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_fence_chainuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKhjmubh from a given point on a timeline syncobj from/into a binary syncobj, you can use the point 0 to mean take/replace the fence in the syncobj.}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj>mhKhjlubeh}(h]5import-export-of-timeline-points-in-timeline-syncobjsah ]h"]5import/export of timeline points in timeline syncobjsah$]h&]uh1hhjzfhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj (C struct) c.drm_syncobjhNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(h drm_syncobjh]jR)}(hstruct drm_syncobjh](jX)}(hjh]hstruct}(hjjmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjfmhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKubjj)}(h h]h }(hjxmhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjfmhhhjwmhKubj{)}(h drm_syncobjh]j)}(hjdmh]h drm_syncobj}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjfmhhhjwmhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjbmhhhjwmhKubah}(h]j]mah ](jjeh"]h$]h&]jj)jhuh1jKhjwmhKhj_mhhubj)}(hhh]h)}(h sync object.h]h sync object.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK#hjmhhubah}(h]h ]h"]h$]h&]uh1jhj_mhhhjwmhKubeh}(h]h ](jstructeh"]h$]h&]jjjjmjjmjjjuh1jFhhhjzfhNhNubj)}(hX**Definition**:: struct drm_syncobj { struct kref refcount; struct dma_fence *fence; struct list_head cb_list; struct list_head ev_fd_list; spinlock_t lock; struct file *file; }; **Members** ``refcount`` Reference count of this object. ``fence`` NULL or a pointer to the fence bound to this object. This field should not be used directly. Use drm_syncobj_fence_get() and drm_syncobj_replace_fence() instead. ``cb_list`` List of callbacks to call when the :c:type:`fence` gets replaced. ``ev_fd_list`` List of registered eventfd. ``lock`` Protects :c:type:`cb_list` and :c:type:`ev_fd_list`, and write-locks :c:type:`fence`. ``file`` A file backing for this syncobj.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh:}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK'hjmubjh)}(hstruct drm_syncobj { struct kref refcount; struct dma_fence *fence; struct list_head cb_list; struct list_head ev_fd_list; spinlock_t lock; struct file *file; };h]hstruct drm_syncobj { struct kref refcount; struct dma_fence *fence; struct list_head cb_list; struct list_head ev_fd_list; spinlock_t lock; struct file *file; };}hjmsbah}(h]h ]h"]h$]h&]jjuh1jghU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK)hjmubh)}(h **Members**h]j)}(hjmh]hMembers}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK2hjmubj)}(hhh](j)}(h-``refcount`` Reference count of this object. h](j)}(h ``refcount``h]j)}(hjnh]hrefcount}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK*hjnubj)}(hhh]h)}(hReference count of this object.h]hReference count of this object.}(hj2nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.nhK*hj/nubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhj.nhK*hjnubj)}(h``fence`` NULL or a pointer to the fence bound to this object. This field should not be used directly. Use drm_syncobj_fence_get() and drm_syncobj_replace_fence() instead. h](j)}(h ``fence``h]j)}(hjRnh]hfence}(hjTnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPnubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK1hjLnubj)}(hhh](h)}(h4NULL or a pointer to the fence bound to this object.h]h4NULL or a pointer to the fence bound to this object.}(hjknhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK.hjhnubh)}(hlThis field should not be used directly. Use drm_syncobj_fence_get() and drm_syncobj_replace_fence() instead.h]hlThis field should not be used directly. Use drm_syncobj_fence_get() and drm_syncobj_replace_fence() instead.}(hjznhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK0hjhnubeh}(h]h ]h"]h$]h&]uh1jhjLnubeh}(h]h ]h"]h$]h&]uh1jhjgnhK1hjnubj)}(hN``cb_list`` List of callbacks to call when the :c:type:`fence` gets replaced. h](j)}(h ``cb_list``h]j)}(hjnh]hcb_list}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK6hjnubj)}(hhh]h)}(hAList of callbacks to call when the :c:type:`fence` gets replaced.h](h#List of callbacks to call when the }(hjnhhhNhNubh)}(h:c:type:`fence`h]j)}(hjnh]hfence}(hjnhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jafenceuh1hhjnhK6hjnubh gets replaced.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhK6hjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhK6hjnubj)}(h+``ev_fd_list`` List of registered eventfd. h](j)}(h``ev_fd_list``h]j)}(hjnh]h ev_fd_list}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK:hjnubj)}(hhh]h)}(hList of registered eventfd.h]hList of registered eventfd.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ohK:hj oubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhj ohK:hjnubj)}(h_``lock`` Protects :c:type:`cb_list` and :c:type:`ev_fd_list`, and write-locks :c:type:`fence`. h](j)}(h``lock``h]j)}(hj0oh]hlock}(hj2ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.oubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK>hj*oubj)}(hhh]h)}(hUProtects :c:type:`cb_list` and :c:type:`ev_fd_list`, and write-locks :c:type:`fence`.h](h Protects }(hjIohhhNhNubh)}(h:c:type:`cb_list`h]j)}(hjSoh]hcb_list}(hjUohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjQoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jacb_listuh1hhjEohK>hjIoubh and }(hjIohhhNhNubh)}(h:c:type:`ev_fd_list`h]j)}(hjvoh]h ev_fd_list}(hjxohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjtoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja ev_fd_listuh1hhjEohK>hjIoubh, and write-locks }(hjIohhhNhNubh)}(h:c:type:`fence`h]j)}(hjoh]hfence}(hjohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jafenceuh1hhjEohK>hjIoubh.}(hjIohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEohK>hjFoubah}(h]h ]h"]h$]h&]uh1jhj*oubeh}(h]h ]h"]h$]h&]uh1jhjEohK>hjnubj)}(h)``file`` A file backing for this syncobj.h](j)}(h``file``h]j)}(hjoh]hfile}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKAhjoubj)}(hhh]h)}(h A file backing for this syncobj.h]h A file backing for this syncobj.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKBhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohKAhjnubeh}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzfhhhNhNubh)}(h**Description**h]j)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKEhjzfhhubh)}(hOThis structure defines a generic sync object which wraps a :c:type:`dma_fence`.h](h;This structure defines a generic sync object which wraps a }(hj+phhhNhNubh)}(h:c:type:`dma_fence`h]j)}(hj5ph]h dma_fence}(hj7phhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj3pubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_fenceuh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK$hj+pubh.}(hj+phhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjRphK$hjzfhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj_get (C function)c.drm_syncobj_gethNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(h.void drm_syncobj_get (struct drm_syncobj *obj)h]jR)}(h-void drm_syncobj_get(struct drm_syncobj *obj)h](j)}(hvoidh]hvoid}(hjvphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrphhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKIubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjrphhhjphKIubj{)}(hdrm_syncobj_geth]j)}(hdrm_syncobj_geth]hdrm_syncobj_get}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrphhhjphKIubj)}(h(struct drm_syncobj *obj)h]j)}(hstruct drm_syncobj *objh](jX)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjpubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjpmodnameN classnameNj+j.)}j1]j4)}j'jpsbc.drm_syncobj_getasbuh1hhjpubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubjH)}(hjKh]h*}(hjphhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjpubj)}(hobjh]hobj}(hj qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubah}(h]h ]h"]h$]h&]jjuh1jhjrphhhjphKIubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjnphhhjphKIubah}(h]jipah ](jjeh"]h$]h&]jj)jhuh1jKhjphKIhjkphhubj)}(hhh]h)}(hacquire a syncobj referenceh]hacquire a syncobj reference}(hj6qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKIhj3qhhubah}(h]h ]h"]h$]h&]uh1jhjkphhhjphKIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNqjjNqjjjuh1jFhhhjzfhNhNubj)}(h**Parameters** ``struct drm_syncobj *obj`` sync object **Description** This acquires an additional reference to **obj**. It is illegal to call this without already holding a reference. No locks required.h](h)}(h**Parameters**h]j)}(hjXqh]h Parameters}(hjZqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVqubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKMhjRqubj)}(hhh]j)}(h(``struct drm_syncobj *obj`` sync object h](j)}(h``struct drm_syncobj *obj``h]j)}(hjwqh]hstruct drm_syncobj *obj}(hjyqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuqubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKJhjqqubj)}(hhh]h)}(h sync objecth]h sync object}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhKJhjqubah}(h]h ]h"]h$]h&]uh1jhjqqubeh}(h]h ]h"]h$]h&]uh1jhjqhKJhjnqubah}(h]h ]h"]h$]h&]uh1jhjRqubh)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKLhjRqubh)}(hThis acquires an additional reference to **obj**. It is illegal to call this without already holding a reference. No locks required.h](h)This acquires an additional reference to }(hjqhhhNhNubj)}(h**obj**h]hobj}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubhT. It is illegal to call this without already holding a reference. No locks required.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKKhjRqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzfhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj_put (C function)c.drm_syncobj_puthNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(h.void drm_syncobj_put (struct drm_syncobj *obj)h]jR)}(h-void drm_syncobj_put(struct drm_syncobj *obj)h](j)}(hvoidh]hvoid}(hj rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKVubjj)}(h h]h }(hjrhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjrhhhjrhKVubj{)}(hdrm_syncobj_puth]j)}(hdrm_syncobj_puth]hdrm_syncobj_put}(hj*rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&rubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrhhhjrhKVubj)}(h(struct drm_syncobj *obj)h]j)}(hstruct drm_syncobj *objh](jX)}(hjh]hstruct}(hjFrhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBrubjj)}(h h]h }(hjSrhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBrubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjdrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjarubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjfrmodnameN classnameNj+j.)}j1]j4)}j'j,rsbc.drm_syncobj_putasbuh1hhjBrubjj)}(h h]h }(hjrhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBrubjH)}(hjKh]h*}(hjrhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjBrubj)}(hobjh]hobj}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>rubah}(h]h ]h"]h$]h&]jjuh1jhjrhhhjrhKVubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjrhhhjrhKVubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jKhjrhKVhjqhhubj)}(hhh]h)}(h%release a reference to a sync object.h]h%release a reference to a sync object.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKVhjrhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjrhKVubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jFhhhjzfhNhNubj)}(h:**Parameters** ``struct drm_syncobj *obj`` sync object.h](h)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKZhjrubj)}(hhh]j)}(h(``struct drm_syncobj *obj`` sync object.h](j)}(h``struct drm_syncobj *obj``h]j)}(hj sh]hstruct drm_syncobj *obj}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK\hjsubj)}(hhh]h)}(h sync object.h]h sync object.}(hj#shhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKWhj subah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshK\hjsubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzfhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_syncobj_fence_get (C function)c.drm_syncobj_fence_gethNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(hFstruct dma_fence * drm_syncobj_fence_get (struct drm_syncobj *syncobj)h]jR)}(hDstruct dma_fence *drm_syncobj_fence_get(struct drm_syncobj *syncobj)h](jX)}(hjh]hstruct}(hjdshhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj`shhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK`ubjj)}(h h]h }(hjrshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj`shhhjqshK`ubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjsmodnameN classnameNj+j.)}j1]j4)}j'drm_syncobj_fence_getsbc.drm_syncobj_fence_getasbuh1hhj`shhhjqshK`ubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj`shhhjqshK`ubjH)}(hjKh]h*}(hjshhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj`shhhjqshK`ubj{)}(hdrm_syncobj_fence_geth]j)}(hjsh]hdrm_syncobj_fence_get}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj`shhhjqshK`ubj)}(h(struct drm_syncobj *syncobj)h]j)}(hstruct drm_syncobj *syncobjh](jX)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjsubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjsubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjsmodnameN classnameNj+j.)}j1]jsc.drm_syncobj_fence_getasbuh1hhjsubjj)}(h h]h }(hjthhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjsubjH)}(hjKh]h*}(hj(thhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjsubj)}(hsyncobjh]hsyncobj}(hj5thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhj`shhhjqshK`ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj\shhhjqshK`ubah}(h]jWsah ](jjeh"]h$]h&]jj)jhuh1jKhjqshK`hjYshhubj)}(hhh]h)}(h+get a reference to a fence in a sync objecth]h+get a reference to a fence in a sync object}(hj_thhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK`hj\thhubah}(h]h ]h"]h$]h&]uh1jhjYshhhjqshK`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwtjjwtjjjuh1jFhhhjzfhNhNubj)}(hXX**Parameters** ``struct drm_syncobj *syncobj`` sync object. **Description** This acquires additional reference to :c:type:`drm_syncobj.fence ` contained in **obj**, if not NULL. It is illegal to call this without already holding a reference. No locks required. **Return** Either the fence of **obj** or NULL if there's none.h](h)}(h**Parameters**h]j)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKdhj{tubj)}(hhh]j)}(h-``struct drm_syncobj *syncobj`` sync object. h](j)}(h``struct drm_syncobj *syncobj``h]j)}(hjth]hstruct drm_syncobj *syncobj}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKahjtubj)}(hhh]h)}(h sync object.h]h sync object.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKahjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthKahjtubah}(h]h ]h"]h$]h&]uh1jhj{tubh)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKchj{tubh)}(hThis acquires additional reference to :c:type:`drm_syncobj.fence ` contained in **obj**, if not NULL. It is illegal to call this without already holding a reference. No locks required.h](h&This acquires additional reference to }(hjthhhNhNubh)}(h):c:type:`drm_syncobj.fence `h]j)}(hjth]hdrm_syncobj.fence}(hjthhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_syncobjuh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKbhjtubh contained in }(hjthhhNhNubj)}(h**obj**h]hobj}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubha, if not NULL. It is illegal to call this without already holding a reference. No locks required.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjuhKbhj{tubh)}(h **Return**h]j)}(hj7uh]hReturn}(hj9uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5uubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKfhj{tubh)}(h4Either the fence of **obj** or NULL if there's none.h](hEither the fence of }(hjMuhhhNhNubj)}(h**obj**h]hobj}(hjUuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMuubh or NULL if there’s none.}(hjMuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKghj{tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzfhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj_find (C function)c.drm_syncobj_findhNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(hQstruct drm_syncobj * drm_syncobj_find (struct drm_file *file_private, u32 handle)h]jR)}(hOstruct drm_syncobj *drm_syncobj_find(struct drm_file *file_private, u32 handle)h](jX)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjuhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chKubjj)}(h h]h }(hjuhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjuhhhjuhKubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjumodnameN classnameNj+j.)}j1]j4)}j'drm_syncobj_findsbc.drm_syncobj_findasbuh1hhjuhhhjuhKubjj)}(h h]h }(hjuhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjuhhhjuhKubjH)}(hjKh]h*}(hjuhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjuhhhjuhKubj{)}(hdrm_syncobj_findh]j)}(hjuh]hdrm_syncobj_find}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjuhhhjuhKubj)}(h+(struct drm_file *file_private, u32 handle)h](j)}(hstruct drm_file *file_privateh](jX)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjvubjj)}(h h]h }(hjvhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj&vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#vubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj(vmodnameN classnameNj+j.)}j1]juc.drm_syncobj_findasbuh1hhjvubjj)}(h h]h }(hjDvhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubjH)}(hjKh]h*}(hjRvhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjvubj)}(h file_privateh]h file_private}(hj_vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hj{vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxvubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj}vmodnameN classnameNj+j.)}j1]juc.drm_syncobj_findasbuh1hhjtvubjj)}(h h]h }(hjvhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjtvubj)}(hhandleh]hhandle}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhjuhhhjuhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjuhhhjuhKubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1jKhjuhKhjuhhubj)}(hhh]h)}(h#lookup and reference a sync object.h]h#lookup and reference a sync object.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chKhjvhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1jFhhhjzfhNhNubj)}(hX **Parameters** ``struct drm_file *file_private`` drm file private pointer ``u32 handle`` sync object handle to lookup. **Description** Returns a reference to the syncobj pointed to by handle or NULL. The reference must be released by calling drm_syncobj_put().h](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chKhjvubj)}(hhh](j)}(h;``struct drm_file *file_private`` drm file private pointer h](j)}(h!``struct drm_file *file_private``h]j)}(hjwh]hstruct drm_file *file_private}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chKhj wubj)}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hj+whhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'whKhj(wubah}(h]h ]h"]h$]h&]uh1jhj wubeh}(h]h ]h"]h$]h&]uh1jhj'whKhj wubj)}(h-``u32 handle`` sync object handle to lookup. h](j)}(h``u32 handle``h]j)}(hjKwh]h u32 handle}(hjMwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIwubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chKhjEwubj)}(hhh]h)}(hsync object handle to lookup.h]hsync object handle to lookup.}(hjdwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`whKhjawubah}(h]h ]h"]h$]h&]uh1jhjEwubeh}(h]h ]h"]h$]h&]uh1jhj`whKhj wubeh}(h]h ]h"]h$]h&]uh1jhjvubh)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chKhjvubh)}(h}Returns a reference to the syncobj pointed to by handle or NULL. The reference must be released by calling drm_syncobj_put().h]h}Returns a reference to the syncobj pointed to by handle or NULL. The reference must be released by calling drm_syncobj_put().}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chKhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzfhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_syncobj_add_point (C function)c.drm_syncobj_add_pointhNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(hvoid drm_syncobj_add_point (struct drm_syncobj *syncobj, struct dma_fence_chain *chain, struct dma_fence *fence, uint64_t point)h]jR)}(hvoid drm_syncobj_add_point(struct drm_syncobj *syncobj, struct dma_fence_chain *chain, struct dma_fence *fence, uint64_t point)h](j)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMEubjj)}(h h]h }(hjwhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjwhhhjwhMEubj{)}(hdrm_syncobj_add_pointh]j)}(hdrm_syncobj_add_pointh]hdrm_syncobj_add_point}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhhjwhMEubj)}(he(struct drm_syncobj *syncobj, struct dma_fence_chain *chain, struct dma_fence *fence, uint64_t point)h](j)}(hstruct drm_syncobj *syncobjh](jX)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjxubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjxubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hj&xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#xubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj(xmodnameN classnameNj+j.)}j1]j4)}j'jwsbc.drm_syncobj_add_pointasbuh1hhjxubjj)}(h h]h }(hjFxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjxubjH)}(hjKh]h*}(hjTxhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjxubj)}(hsyncobjh]hsyncobj}(hjaxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hstruct dma_fence_chain *chainh](jX)}(hjh]hstruct}(hjzxhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjvxubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvxubh)}(hhh]j)}(hdma_fence_chainh]hdma_fence_chain}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjxmodnameN classnameNj+j.)}j1]jBxc.drm_syncobj_add_pointasbuh1hhjvxubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvxubjH)}(hjKh]h*}(hjxhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjvxubj)}(hchainh]hchain}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hstruct dma_fence *fenceh](jX)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjxubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjxubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj ymodnameN classnameNj+j.)}j1]jBxc.drm_syncobj_add_pointasbuh1hhjxubjj)}(h h]h }(hj&yhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjxubjH)}(hjKh]h*}(hj4yhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjxubj)}(hfenceh]hfence}(hjAyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(huint64_t pointh](h)}(hhh]j)}(huint64_th]huint64_t}(hj]yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZyubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj_ymodnameN classnameNj+j.)}j1]jBxc.drm_syncobj_add_pointasbuh1hhjVyubjj)}(h h]h }(hj{yhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVyubj)}(hpointh]hpoint}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjwhMEubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjwhhhjwhMEubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jKhjwhMEhjwhhubj)}(hhh]h)}(h%add new timeline point to the syncobjh]h%add new timeline point to the syncobj}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMEhjyhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjwhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1jFhhhjzfhNhNubj)}(hXj**Parameters** ``struct drm_syncobj *syncobj`` sync object to add timeline point do ``struct dma_fence_chain *chain`` chain node to use to add the point ``struct dma_fence *fence`` fence to encapsulate in the chain node ``uint64_t point`` sequence number to use for the point **Description** Add the chain node as new timeline point to the syncobj.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMIhjyubj)}(hhh](j)}(hE``struct drm_syncobj *syncobj`` sync object to add timeline point do h](j)}(h``struct drm_syncobj *syncobj``h]j)}(hjyh]hstruct drm_syncobj *syncobj}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMFhjyubj)}(hhh]h)}(h$sync object to add timeline point doh]h$sync object to add timeline point do}(hj zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj zhMFhj zubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhj zhMFhjyubj)}(hE``struct dma_fence_chain *chain`` chain node to use to add the point h](j)}(h!``struct dma_fence_chain *chain``h]j)}(hj-zh]hstruct dma_fence_chain *chain}(hj/zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+zubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMGhj'zubj)}(hhh]h)}(h"chain node to use to add the pointh]h"chain node to use to add the point}(hjFzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBzhMGhjCzubah}(h]h ]h"]h$]h&]uh1jhj'zubeh}(h]h ]h"]h$]h&]uh1jhjBzhMGhjyubj)}(hC``struct dma_fence *fence`` fence to encapsulate in the chain node h](j)}(h``struct dma_fence *fence``h]j)}(hjfzh]hstruct dma_fence *fence}(hjhzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdzubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMHhj`zubj)}(hhh]h)}(h&fence to encapsulate in the chain nodeh]h&fence to encapsulate in the chain node}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{zhMHhj|zubah}(h]h ]h"]h$]h&]uh1jhj`zubeh}(h]h ]h"]h$]h&]uh1jhj{zhMHhjyubj)}(h8``uint64_t point`` sequence number to use for the point h](j)}(h``uint64_t point``h]j)}(hjzh]huint64_t point}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMIhjzubj)}(hhh]h)}(h$sequence number to use for the pointh]h$sequence number to use for the point}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMIhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMIhjyubeh}(h]h ]h"]h$]h&]uh1jhjyubh)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMKhjyubh)}(h8Add the chain node as new timeline point to the syncobj.h]h8Add the chain node as new timeline point to the syncobj.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMJhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzfhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_syncobj_replace_fence (C function)c.drm_syncobj_replace_fencehNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(hUvoid drm_syncobj_replace_fence (struct drm_syncobj *syncobj, struct dma_fence *fence)h]jR)}(hTvoid drm_syncobj_replace_fence(struct drm_syncobj *syncobj, struct dma_fence *fence)h](j)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMnubjj)}(h h]h }(hj.{hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj{hhhj-{hMnubj{)}(hdrm_syncobj_replace_fenceh]j)}(hdrm_syncobj_replace_fenceh]hdrm_syncobj_replace_fence}(hj@{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<{ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj{hhhj-{hMnubj)}(h6(struct drm_syncobj *syncobj, struct dma_fence *fence)h](j)}(hstruct drm_syncobj *syncobjh](jX)}(hjh]hstruct}(hj\{hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjX{ubjj)}(h h]h }(hji{hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjX{ubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjz{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw{ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj|{modnameN classnameNj+j.)}j1]j4)}j'jB{sbc.drm_syncobj_replace_fenceasbuh1hhjX{ubjj)}(h h]h }(hj{hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjX{ubjH)}(hjKh]h*}(hj{hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjX{ubj)}(hsyncobjh]hsyncobj}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjT{ubj)}(hstruct dma_fence *fenceh](jX)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj{ubjj)}(h h]h }(hj{hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj{ubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj{modnameN classnameNj+j.)}j1]j{c.drm_syncobj_replace_fenceasbuh1hhj{ubjj)}(h h]h }(hj |hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj{ubjH)}(hjKh]h*}(hj|hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj{ubj)}(hfenceh]hfence}(hj%|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjT{ubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhj-{hMnubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj{hhhj-{hMnubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1jKhj-{hMnhj{hhubj)}(hhh]h)}(hreplace fence in a sync object.h]hreplace fence in a sync object.}(hjO|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMnhjL|hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj-{hMnubeh}(h]h ](jfunctioneh"]h$]h&]jjjjg|jjg|jjjuh1jFhhhjzfhNhNubj)}(h**Parameters** ``struct drm_syncobj *syncobj`` Sync object to replace fence in ``struct dma_fence *fence`` fence to install in sync file. **Description** This replaces the fence on a sync object.h](h)}(h**Parameters**h]j)}(hjq|h]h Parameters}(hjs|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo|ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMrhjk|ubj)}(hhh](j)}(h@``struct drm_syncobj *syncobj`` Sync object to replace fence in h](j)}(h``struct drm_syncobj *syncobj``h]j)}(hj|h]hstruct drm_syncobj *syncobj}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMohj|ubj)}(hhh]h)}(hSync object to replace fence inh]hSync object to replace fence in}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMohj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMohj|ubj)}(h;``struct dma_fence *fence`` fence to install in sync file. h](j)}(h``struct dma_fence *fence``h]j)}(hj|h]hstruct dma_fence *fence}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMphj|ubj)}(hhh]h)}(hfence to install in sync file.h]hfence to install in sync file.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMphj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMphj|ubeh}(h]h ]h"]h$]h&]uh1jhjk|ubh)}(h**Description**h]j)}(hj}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMrhjk|ubh)}(h)This replaces the fence on a sync object.h]h)This replaces the fence on a sync object.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMqhjk|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzfhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_syncobj_find_fence (C function)c.drm_syncobj_find_fencehNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(hvint drm_syncobj_find_fence (struct drm_file *file_private, u32 handle, u64 point, u64 flags, struct dma_fence **fence)h]jR)}(huint drm_syncobj_find_fence(struct drm_file *file_private, u32 handle, u64 point, u64 flags, struct dma_fence **fence)h](j)}(hinth]hint}(hjI}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE}hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMubjj)}(h h]h }(hjX}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjE}hhhjW}hMubj{)}(hdrm_syncobj_find_fenceh]j)}(hdrm_syncobj_find_fenceh]hdrm_syncobj_find_fence}(hjj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf}ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjE}hhhjW}hMubj)}(h[(struct drm_file *file_private, u32 handle, u64 point, u64 flags, struct dma_fence **fence)h](j)}(hstruct drm_file *file_privateh](jX)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj}ubjj)}(h h]h }(hj}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj}modnameN classnameNj+j.)}j1]j4)}j'jl}sbc.drm_syncobj_find_fenceasbuh1hhj}ubjj)}(h h]h }(hj}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}ubjH)}(hjKh]h*}(hj}hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj}ubj)}(h file_privateh]h file_private}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~}ubj)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj}modnameN classnameNj+j.)}j1]j}c.drm_syncobj_find_fenceasbuh1hhj}ubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}ubj)}(hhandleh]hhandle}(hj'~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~}ubj)}(h u64 pointh](h)}(hhh]j)}(hu64h]hu64}(hjC~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@~ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjE~modnameN classnameNj+j.)}j1]j}c.drm_syncobj_find_fenceasbuh1hhj<~ubjj)}(h h]h }(hja~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<~ubj)}(hpointh]hpoint}(hjo~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~}ubj)}(h u64 flagsh](h)}(hhh]j)}(hu64h]hu64}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj~modnameN classnameNj+j.)}j1]j}c.drm_syncobj_find_fenceasbuh1hhj~ubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubj)}(hflagsh]hflags}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~}ubj)}(hstruct dma_fence **fenceh](jX)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj~ubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj~modnameN classnameNj+j.)}j1]j}c.drm_syncobj_find_fenceasbuh1hhj~ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj~ubjH)}(hjKh]h*}(hj'hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj~ubj)}(hfenceh]hfence}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~}ubeh}(h]h ]h"]h$]h&]jjuh1jhjE}hhhjW}hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjA}hhhjW}hMubah}(h]j<}ah ](jjeh"]h$]h&]jj)jhuh1jKhjW}hMhj>}hhubj)}(hhh]h)}(h/lookup and reference the fence in a sync objecth]h/lookup and reference the fence in a sync object}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhj[hhubah}(h]h ]h"]h$]h&]uh1jhj>}hhhjW}hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1jFhhhjzfhNhNubj)}(hX2**Parameters** ``struct drm_file *file_private`` drm file private pointer ``u32 handle`` sync object handle to lookup. ``u64 point`` timeline point ``u64 flags`` DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or not ``struct dma_fence **fence`` out parameter for the fence **Description** This is just a convenience function that combines drm_syncobj_find() and drm_syncobj_fence_get(). Returns 0 on success or a negative error value on failure. On success **fence** contains a reference to the fence, which must be released by calling dma_fence_put().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjzubj)}(hhh](j)}(h;``struct drm_file *file_private`` drm file private pointer h](j)}(h!``struct drm_file *file_private``h]j)}(hjh]hstruct drm_file *file_private}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjubj)}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h-``u32 handle`` sync object handle to lookup. h](j)}(h``u32 handle``h]j)}(hjh]h u32 handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjubj)}(hhh]h)}(hsync object handle to lookup.h]hsync object handle to lookup.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``u64 point`` timeline point h](j)}(h ``u64 point``h]j)}(hjh]h u64 point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhj ubj)}(hhh]h)}(htimeline pointh]htimeline point}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjubj)}(h<``u64 flags`` DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or not h](j)}(h ``u64 flags``h]j)}(hjJh]h u64 flags}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjDubj)}(hhh]h)}(h-DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or noth]h-DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or not}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjubj)}(h9``struct dma_fence **fence`` out parameter for the fence h](j)}(h``struct dma_fence **fence``h]j)}(hjh]hstruct dma_fence **fence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhj}ubj)}(hhh]h)}(hout parameter for the fenceh]hout parameter for the fence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjzubh)}(haThis is just a convenience function that combines drm_syncobj_find() and drm_syncobj_fence_get().h]haThis is just a convenience function that combines drm_syncobj_find() and drm_syncobj_fence_get().}(hjԀhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjzubh)}(hReturns 0 on success or a negative error value on failure. On success **fence** contains a reference to the fence, which must be released by calling dma_fence_put().h](hFReturns 0 on success or a negative error value on failure. On success }(hjhhhNhNubj)}(h **fence**h]hfence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhV contains a reference to the fence, which must be released by calling dma_fence_put().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzfhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj_free (C function)c.drm_syncobj_freehNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(h)void drm_syncobj_free (struct kref *kref)h]jR)}(h(void drm_syncobj_free(struct kref *kref)h](j)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM ubjj)}(h h]h }(hj3hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhj2hM ubj{)}(hdrm_syncobj_freeh]j)}(hdrm_syncobj_freeh]hdrm_syncobj_free}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj2hM ubj)}(h(struct kref *kref)h]j)}(hstruct kref *krefh](jX)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj]ubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj]ubh)}(hhh]j)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jGsbc.drm_syncobj_freeasbuh1hhj]ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj]ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj]ubj)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj2hM ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj2hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj2hM hjhhubj)}(hhh]h)}(hfree a sync object.h]hfree a sync object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjzfhNhNubj)}(h{**Parameters** ``struct kref *kref`` kref to free. **Description** Only to be called from kref_put in drm_syncobj_put.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM hjubj)}(hhh]j)}(h$``struct kref *kref`` kref to free. h](j)}(h``struct kref *kref``h]j)}(hj%h]hstruct kref *kref}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM hjubj)}(hhh]h)}(h kref to free.h]h kref to free.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hM hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM hjubh)}(h3Only to be called from kref_put in drm_syncobj_put.h]h3Only to be called from kref_put in drm_syncobj_put.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzfhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj_create (C function)c.drm_syncobj_createhNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(hbint drm_syncobj_create (struct drm_syncobj **out_syncobj, uint32_t flags, struct dma_fence *fence)h]jR)}(haint drm_syncobj_create(struct drm_syncobj **out_syncobj, uint32_t flags, struct dma_fence *fence)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_syncobj_createh]j)}(hdrm_syncobj_createh]hdrm_syncobj_create}(hjƂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj‚ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hK(struct drm_syncobj **out_syncobj, uint32_t flags, struct dma_fence *fence)h](j)}(h struct drm_syncobj **out_syncobjh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjނubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjނubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jȂsbc.drm_syncobj_createasbuh1hhjނubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjނubjH)}(hjKh]h*}(hj.hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjނubjH)}(hjKh]h*}(hj;hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjނubj)}(h out_syncobjh]h out_syncobj}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjނubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjڂubj)}(huint32_t flagsh](h)}(hhh]j)}(huint32_th]huint32_t}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjfmodnameN classnameNj+j.)}j1]jc.drm_syncobj_createasbuh1hhj]ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj]ubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjڂubj)}(hstruct dma_fence *fenceh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hjǃhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjăubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjɃmodnameN classnameNj+j.)}j1]jc.drm_syncobj_createasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hfenceh]hfence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjڂubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hcreate a new syncobjh]hcreate a new syncobj}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhj'hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1jFhhhjzfhNhNubj)}(hX**Parameters** ``struct drm_syncobj **out_syncobj`` returned syncobj ``uint32_t flags`` DRM_SYNCOBJ_* flags ``struct dma_fence *fence`` if non-NULL, the syncobj will represent this fence **Description** This is the first function to create a sync object. After creating, drivers probably want to make it available to userspace, either through drm_syncobj_get_handle() or drm_syncobj_get_fd(). Returns 0 on success or a negative error value on failure.h](h)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM#hjFubj)}(hhh](j)}(h6``struct drm_syncobj **out_syncobj`` returned syncobj h](j)}(h$``struct drm_syncobj **out_syncobj``h]j)}(hjkh]h struct drm_syncobj **out_syncobj}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM hjeubj)}(hhh]h)}(hreturned syncobjh]hreturned syncobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM hjbubj)}(h'``uint32_t flags`` DRM_SYNCOBJ_* flags h](j)}(h``uint32_t flags``h]j)}(hjh]huint32_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM!hjubj)}(hhh]h)}(hDRM_SYNCOBJ_* flagsh]hDRM_SYNCOBJ_* flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjbubj)}(hO``struct dma_fence *fence`` if non-NULL, the syncobj will represent this fence h](j)}(h``struct dma_fence *fence``h]j)}(hj݄h]hstruct dma_fence *fence}(hj߄hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۄubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM"hjׄubj)}(hhh]h)}(h2if non-NULL, the syncobj will represent this fenceh]h2if non-NULL, the syncobj will represent this fence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjׄubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjbubeh}(h]h ]h"]h$]h&]uh1jhjFubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM$hjFubh)}(hThis is the first function to create a sync object. After creating, drivers probably want to make it available to userspace, either through drm_syncobj_get_handle() or drm_syncobj_get_fd().h]hThis is the first function to create a sync object. After creating, drivers probably want to make it available to userspace, either through drm_syncobj_get_handle() or drm_syncobj_get_fd().}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM#hjFubh)}(h:Returns 0 on success or a negative error value on failure.h]h:Returns 0 on success or a negative error value on failure.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM'hjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzfhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_syncobj_get_handle (C function)c.drm_syncobj_get_handlehNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(hdint drm_syncobj_get_handle (struct drm_file *file_private, struct drm_syncobj *syncobj, u32 *handle)h]jR)}(hcint drm_syncobj_get_handle(struct drm_file *file_private, struct drm_syncobj *syncobj, u32 *handle)h](j)}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMJubjj)}(h h]h }(hj{hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhhjzhMJubj{)}(hdrm_syncobj_get_handleh]j)}(hdrm_syncobj_get_handleh]hdrm_syncobj_get_handle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhhjzhMJubj)}(hI(struct drm_file *file_private, struct drm_syncobj *syncobj, u32 *handle)h](j)}(hstruct drm_file *file_privateh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjDžhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjąubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjɅmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_syncobj_get_handleasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h file_privateh]h file_private}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_syncobj *syncobjh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj(hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj;modnameN classnameNj+j.)}j1]jc.drm_syncobj_get_handleasbuh1hhjubjj)}(h h]h }(hjWhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjehhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hsyncobjh]hsyncobj}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 *handleh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_syncobj_get_handleasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hhandleh]hhandle}(hjdžhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhjzhMJubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjdhhhjzhMJubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1jKhjzhMJhjahhubj)}(hhh]h)}(hget a handle from a syncobjh]hget a handle from a syncobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMJhjhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jFhhhjzfhNhNubj)}(hXn**Parameters** ``struct drm_file *file_private`` drm file private pointer ``struct drm_syncobj *syncobj`` Sync object to export ``u32 *handle`` out parameter with the new handle **Description** Exports a sync object created with drm_syncobj_create() as a handle on **file_private** to userspace. Returns 0 on success or a negative error value on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMNhj ubj)}(hhh](j)}(h;``struct drm_file *file_private`` drm file private pointer h](j)}(h!``struct drm_file *file_private``h]j)}(hj2h]hstruct drm_file *file_private}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMKhj,ubj)}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMKhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMKhj)ubj)}(h6``struct drm_syncobj *syncobj`` Sync object to export h](j)}(h``struct drm_syncobj *syncobj``h]j)}(hjkh]hstruct drm_syncobj *syncobj}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMLhjeubj)}(hhh]h)}(hSync object to exporth]hSync object to export}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMLhj)ubj)}(h2``u32 *handle`` out parameter with the new handle h](j)}(h``u32 *handle``h]j)}(hjh]h u32 *handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMMhjubj)}(hhh]h)}(h!out parameter with the new handleh]h!out parameter with the new handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhj)ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hj߇h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj݇ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMOhj ubh)}(heExports a sync object created with drm_syncobj_create() as a handle on **file_private** to userspace.h](hGExports a sync object created with drm_syncobj_create() as a handle on }(hjhhhNhNubj)}(h**file_private**h]h file_private}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to userspace.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMNhj ubh)}(h:Returns 0 on success or a negative error value on failure.h]h:Returns 0 on success or a negative error value on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMQhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzfhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj_get_fd (C function)c.drm_syncobj_get_fdhNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(h?int drm_syncobj_get_fd (struct drm_syncobj *syncobj, int *p_fd)h]jR)}(h>int drm_syncobj_get_fd(struct drm_syncobj *syncobj, int *p_fd)h](j)}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjAhhhjShMubj{)}(hdrm_syncobj_get_fdh]j)}(hdrm_syncobj_get_fdh]hdrm_syncobj_get_fd}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjAhhhjShMubj)}(h((struct drm_syncobj *syncobj, int *p_fd)h](j)}(hstruct drm_syncobj *syncobjh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj~ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jhsbc.drm_syncobj_get_fdasbuh1hhj~ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubjH)}(hjKh]h*}(hjΈhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj~ubj)}(hsyncobjh]hsyncobj}(hjۈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(h int *p_fdh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hp_fdh]hp_fd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubeh}(h]h ]h"]h$]h&]jjuh1jhjAhhhjShMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj=hhhjShMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jKhjShMhj:hhubj)}(hhh]h)}(h$get a file descriptor from a syncobjh]h$get a file descriptor from a syncobj}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhj:hhhjShMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1jFhhhjzfhNhNubj)}(hX**Parameters** ``struct drm_syncobj *syncobj`` Sync object to export ``int *p_fd`` out parameter with the new file descriptor **Description** Exports a sync object created with drm_syncobj_create() as a file descriptor. Returns 0 on success or a negative error value on failure.h](h)}(h**Parameters**h]j)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjcubj)}(hhh](j)}(h6``struct drm_syncobj *syncobj`` Sync object to export h](j)}(h``struct drm_syncobj *syncobj``h]j)}(hjh]hstruct drm_syncobj *syncobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjubj)}(hhh]h)}(hSync object to exporth]hSync object to export}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``int *p_fd`` out parameter with the new file descriptor h](j)}(h ``int *p_fd``h]j)}(hjh]h int *p_fd}(hjÉhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjubj)}(hhh]h)}(h*out parameter with the new file descriptorh]h*out parameter with the new file descriptor}(hjډhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj։hMhj׉ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj։hMhjubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjcubh)}(hMExports a sync object created with drm_syncobj_create() as a file descriptor.h]hMExports a sync object created with drm_syncobj_create() as a file descriptor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjcubh)}(h:Returns 0 on success or a negative error value on failure.h]h:Returns 0 on success or a negative error value on failure.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjzfhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_timeout_abs_to_jiffies (C function)c.drm_timeout_abs_to_jiffieshNtauh1j5hjzfhhhNhNubjG)}(hhh](jL)}(h=signed long drm_timeout_abs_to_jiffies (int64_t timeout_nsec)h]jR)}(hresv, fence, DMA_RESV_USAGE_READ); ... } drm_exec_fini(&exec);h]hX`struct drm_gem_object *obj; struct drm_exec exec; unsigned long index; int ret; drm_exec_init(&exec, DRM_EXEC_INTERRUPTIBLE_WAIT); drm_exec_until_all_locked(&exec) { ret = drm_exec_prepare_obj(&exec, boA, 1); drm_exec_retry_on_contention(&exec); if (ret) goto error; ret = drm_exec_prepare_obj(&exec, boB, 1); drm_exec_retry_on_contention(&exec); if (ret) goto error; } drm_exec_for_each_locked_object(&exec, index, obj) { dma_resv_add_fence(obj->resv, fence, DMA_RESV_USAGE_READ); ... } drm_exec_fini(&exec);}hjsbah}(h]h ]h"]h$]h&]jjuh1jghV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:564: ./drivers/gpu/drm/drm_exec.chKhjhhubh)}(h%See struct dma_exec for more details.h]h%See struct dma_exec for more details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:564: ./drivers/gpu/drm/drm_exec.chK/hjhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_exec (C struct) c.drm_exechNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hdrm_exech]jR)}(hstruct drm_exech](jX)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj7hhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKubjj)}(h h]h }(hjIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj7hhhjHhKubj{)}(hdrm_exech]j)}(hj5h]hdrm_exec}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7hhhjHhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj3hhhjHhKubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1jKhjHhKhj0hhubj)}(hhh]h)}(hExecution contexth]hExecution context}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKhjzhhubah}(h]h ]h"]h$]h&]uh1jhj0hhhjHhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX**Definition**:: struct drm_exec { u32 flags; struct ww_acquire_ctx ticket; unsigned int num_objects; unsigned int max_objects; struct drm_gem_object **objects; struct drm_gem_object *contended; struct drm_gem_object *prelocked; }; **Members** ``flags`` Flags to control locking behavior ``ticket`` WW ticket used for acquiring locks ``num_objects`` number of objects locked ``max_objects`` maximum objects in array ``objects`` array of the locked objects ``contended`` contended GEM object we backed off for ``prelocked`` already locked GEM object due to contentionh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKhjubjh)}(hXstruct drm_exec { u32 flags; struct ww_acquire_ctx ticket; unsigned int num_objects; unsigned int max_objects; struct drm_gem_object **objects; struct drm_gem_object *contended; struct drm_gem_object *prelocked; };h]hXstruct drm_exec { u32 flags; struct ww_acquire_ctx ticket; unsigned int num_objects; unsigned int max_objects; struct drm_gem_object **objects; struct drm_gem_object *contended; struct drm_gem_object *prelocked; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jghR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKhjubh)}(h **Members**h]j)}(hjˌh]hMembers}(hj͌hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɌubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKhjubj)}(hhh](j)}(h,``flags`` Flags to control locking behavior h](j)}(h ``flags``h]j)}(hjh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKhjubj)}(hhh]h)}(h!Flags to control locking behaviorh]h!Flags to control locking behavior}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h.``ticket`` WW ticket used for acquiring locks h](j)}(h ``ticket``h]j)}(hj#h]hticket}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKhjubj)}(hhh]h)}(h"WW ticket used for acquiring locksh]h"WW ticket used for acquiring locks}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hKhjubj)}(h)``num_objects`` number of objects locked h](j)}(h``num_objects``h]j)}(hj\h]h num_objects}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKhjVubj)}(hhh]h)}(hnumber of objects lockedh]hnumber of objects locked}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhKhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjubj)}(h)``max_objects`` maximum objects in array h](j)}(h``max_objects``h]j)}(hjh]h max_objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK#hjubj)}(hhh]h)}(hmaximum objects in arrayh]hmaximum objects in array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjubj)}(h(``objects`` array of the locked objects h](j)}(h ``objects``h]j)}(hj΍h]hobjects}(hjЍhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̍ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK(hjȍubj)}(hhh]h)}(harray of the locked objectsh]harray of the locked objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK(hjubah}(h]h ]h"]h$]h&]uh1jhjȍubeh}(h]h ]h"]h$]h&]uh1jhjhK(hjubj)}(h5``contended`` contended GEM object we backed off for h](j)}(h ``contended``h]j)}(hjh]h contended}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK-hjubj)}(hhh]h)}(h&contended GEM object we backed off forh]h&contended GEM object we backed off for}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK-hjubj)}(h9``prelocked`` already locked GEM object due to contentionh](j)}(h ``prelocked``h]j)}(hj@h]h prelocked}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK1hj:ubj)}(hhh]h)}(h+already locked GEM object due to contentionh]h+already locked GEM object due to contention}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK2hjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhK1hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_exec_obj (C function)c.drm_exec_objhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hQstruct drm_gem_object * drm_exec_obj (struct drm_exec *exec, unsigned long index)h]jR)}(hOstruct drm_gem_object *drm_exec_obj(struct drm_exec *exec, unsigned long index)h](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK7ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhK7ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j' drm_exec_objsbc.drm_exec_objasbuh1hhjhhhjhK7ubjj)}(h h]h }(hjڎhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhK7ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhK7ubj{)}(h drm_exec_objh]j)}(hj׎h]h drm_exec_obj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK7ubj)}(h,(struct drm_exec *exec, unsigned long index)h](j)}(hstruct drm_exec *exech](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj4modnameN classnameNj+j.)}j1]jՎc.drm_exec_objasbuh1hhjubjj)}(h h]h }(hjPhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hexech]hexec}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long indexh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK7ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhK7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhK7hjhhubj)}(hhh]h)}(h+Return the object for a give drm_exec indexh]h+Return the object for a give drm_exec index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK7hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(h**Parameters** ``struct drm_exec *exec`` Pointer to the drm_exec context ``unsigned long index`` The index. **Return** Pointer to the locked object corresponding to **index** if index is within the number of locked objects. NULL otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK;hjubj)}(hhh](j)}(h:``struct drm_exec *exec`` Pointer to the drm_exec context h](j)}(h``struct drm_exec *exec``h]j)}(hj'h]hstruct drm_exec *exec}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK8hj!ubj)}(hhh]h)}(hPointer to the drm_exec contexth]hPointer to the drm_exec context}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hK8hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hK8hjubj)}(h#``unsigned long index`` The index. h](j)}(h``unsigned long index``h]j)}(hj`h]hunsigned long index}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK9hjZubj)}(hhh]h)}(h The index.h]h The index.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhK9hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhK9hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK;hjubh)}(hxPointer to the locked object corresponding to **index** if index is within the number of locked objects. NULL otherwise.h](h.Pointer to the locked object corresponding to }(hjhhhNhNubj)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA if index is within the number of locked objects. NULL otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)drm_exec_for_each_locked_object (C macro)!c.drm_exec_for_each_locked_objecthNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hdrm_exec_for_each_locked_objecth]jR)}(hdrm_exec_for_each_locked_objecth]j{)}(hdrm_exec_for_each_locked_objecth]j)}(hjh]hdrm_exec_for_each_locked_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKEubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj hKEubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hKEhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hKEubeh}(h]h ](jmacroeh"]h$]h&]jjjj"jj"jjjuh1jFhhhjhNhNubh)}(h6``drm_exec_for_each_locked_object (exec, index, obj)``h]j)}(hj(h]h2drm_exec_for_each_locked_object (exec, index, obj)}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKGhjhhubj)}(h$iterate over all the locked objects h]h)}(h#iterate over all the locked objectsh]h#iterate over all the locked objects}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKEhj>ubah}(h]h ]h"]h$]h&]uh1jhjPhKEhjhhubj)}(h**Parameters** ``exec`` drm_exec object ``index`` unsigned long index for the iteration ``obj`` the current GEM object **Description** Iterate over all the locked GEM objects inside the drm_exec object.h](h)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKIhjWubj)}(hhh](j)}(h``exec`` drm_exec object h](j)}(h``exec``h]j)}(hj|h]hexec}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKFhjvubj)}(hhh]h)}(hdrm_exec objecth]hdrm_exec object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKFhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhKFhjsubj)}(h0``index`` unsigned long index for the iteration h](j)}(h ``index``h]j)}(hjh]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKGhjubj)}(hhh]h)}(h%unsigned long index for the iterationh]h%unsigned long index for the iteration}(hjΑhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjʑhKGhjˑubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjʑhKGhjsubj)}(h``obj`` the current GEM object h](j)}(h``obj``h]j)}(hjh]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKHhjubj)}(hhh]h)}(hthe current GEM objecth]hthe current GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKHhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubh)}(h**Description**h]j)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKJhjWubh)}(hCIterate over all the locked GEM objects inside the drm_exec object.h]hCIterate over all the locked GEM objects inside the drm_exec object.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKIhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB1drm_exec_for_each_locked_object_reverse (C macro))c.drm_exec_for_each_locked_object_reversehNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h'drm_exec_for_each_locked_object_reverseh]jR)}(h'drm_exec_for_each_locked_object_reverseh]j{)}(h'drm_exec_for_each_locked_object_reverseh]j)}(hjhh]h'drm_exec_for_each_locked_object_reverse}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKPubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjfhhhjhKPubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1jKhjhKPhjchhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjchhhjhKPubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubh)}(h>``drm_exec_for_each_locked_object_reverse (exec, index, obj)``h]j)}(hjh]h:drm_exec_for_each_locked_object_reverse (exec, index, obj)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKRhjhhubj)}(h=iterate over all the locked objects in reverse locking order h]h)}(hubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM;hj:ubj)}(hhh]h)}(h.number of fences to reserve on each GEM objecth]h.number of fences to reserve on each GEM object}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM;hjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhM;hjubeh}(h]h ]h"]h$]h&]uh1jhjpubh)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM=hjpubh)}(hyPrepares all GEM objects in an array, aborts on first error. Reserves **num_fences** on each GEM object after locking it.h](hFPrepares all GEM objects in an array, aborts on first error. Reserves }(hjhhhNhNubj)}(h**num_fences**h]h num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% on each GEM object after locking it.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM<hjpubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM?hjpubh)}(h~-EDEADLOCK on contention, -EALREADY when object is already locked, -ENOMEM when memory allocation failed and zero for success.h]h~-EDEADLOCK on contention, -EALREADY when object is already locked, -ENOMEM when memory allocation failed and zero for success.}(hjʧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM@hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]drm-execution-contextah ]h"]drm execution contextah$]h&]uh1hhhhhhhhM2ubh)}(hhh](h)}(h GPU Schedulerh]h GPU Scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM>ubh)}(hhh](h)}(hOverviewh]hOverview}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMAubh)}(hXThe GPU scheduler provides entities which allow userspace to push jobs into software queues which are then scheduled on a hardware run queue. The software queues have a priority among them. The scheduler selects the entities from the run queue using a FIFO. The scheduler provides dependency handling features among jobs. The driver is supposed to provide callback functions for backend operations to the scheduler like submitting a job to hardware run queue, returning the dependencies of a job etc.h]hXThe GPU scheduler provides entities which allow userspace to push jobs into software queues which are then scheduled on a hardware run queue. The software queues have a priority among them. The scheduler selects the entities from the run queue using a FIFO. The scheduler provides dependency handling features among jobs. The driver is supposed to provide callback functions for backend operations to the scheduler like submitting a job to hardware run queue, returning the dependencies of a job etc.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:579: ./drivers/gpu/drm/scheduler/sched_main.chKhjhhubh)}(h3The organisation of the scheduler is the following:h]h3The organisation of the scheduler is the following:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:579: ./drivers/gpu/drm/scheduler/sched_main.chK!hjhhubjm:)}(hhh](jz)}(h#Each hw run queue has one schedulerh]h)}(hj-h]h#Each hw run queue has one scheduler}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:579: ./drivers/gpu/drm/scheduler/sched_main.chK#hj+ubah}(h]h ]h"]h$]h&]uh1jzhj(ubjz)}(hhEach scheduler has multiple run queues with different priorities (e.g., HIGH_HW,HIGH_SW, KERNEL, NORMAL)h]h)}(hhEach scheduler has multiple run queues with different priorities (e.g., HIGH_HW,HIGH_SW, KERNEL, NORMAL)h]hhEach scheduler has multiple run queues with different priorities (e.g., HIGH_HW,HIGH_SW, KERNEL, NORMAL)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:579: ./drivers/gpu/drm/scheduler/sched_main.chK$hjCubah}(h]h ]h"]h$]h&]uh1jzhj(ubjz)}(h`. Protected by :c:type:`drm_sched_rq.lock ` of **rq**. ``lock`` Lock protecting the run-queue (**rq**) to which this entity belongs, **priority** and the list of schedulers (**sched_list**, **num_sched_list**). ``rq`` Runqueue on which this entity is currently scheduled. FIXME: Locking is very unclear for this. Writers are protected by **lock**, but readers are generally lockless and seem to just race with not even a READ_ONCE. ``sched_list`` A list of schedulers (struct drm_gpu_scheduler). Jobs from this entity can be scheduled on any scheduler on this list. This can be modified by calling drm_sched_entity_modify_sched(). Locking is entirely up to the driver, see the above function for more details. This will be set to NULL if :c:type:`num_sched_list` equals 1 and **rq** has been set already. FIXME: This means priority changes through drm_sched_entity_set_priority() will be lost henceforth in this case. ``num_sched_list`` Number of drm_gpu_schedulers in the **sched_list**. ``priority`` Priority of the entity. This can be modified by calling drm_sched_entity_set_priority(). Protected by **lock**. ``job_queue`` the list of jobs of this entity. ``fence_seq`` A linearly increasing seqno incremented with each new :c:type:`drm_sched_fence` which is part of the entity. FIXME: Callers of drm_sched_job_arm() need to ensure correct locking, this doesn't need to be atomic. ``fence_context`` A unique context for all the fences which belong to this entity. The :c:type:`drm_sched_fence.scheduled ` uses the fence_context but :c:type:`drm_sched_fence.finished ` uses fence_context + 1. ``dependency`` The dependency fence of the job which is on the top of the job queue. ``cb`` Callback for the dependency fence above. ``guilty`` Points to entities' guilty. ``last_scheduled`` Points to the finished fence of the last scheduled job. Only written by drm_sched_entity_pop_job(). Can be accessed locklessly from drm_sched_job_arm() if the queue is empty. ``last_user`` last group leader pushing a job into the entity. ``stopped`` Marks the enity as removed from rq and destined for termination. This is set by calling drm_sched_entity_flush() and by drm_sched_fini(). ``entity_idle`` Signals when entity is not in use, used to sequence entity cleanup in drm_sched_entity_fini(). ``oldest_job_waiting`` Marks earliest job waiting in SW queue ``rb_tree_node`` The node used to insert this entity into time based priority queueh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh:}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKOhj-ubjh)}(hXstruct drm_sched_entity { struct list_head list; spinlock_t lock; struct drm_sched_rq *rq; struct drm_gpu_scheduler **sched_list; unsigned int num_sched_list; enum drm_sched_priority priority; struct spsc_queue job_queue; atomic_t fence_seq; uint64_t fence_context; struct dma_fence *dependency; struct dma_fence_cb cb; atomic_t *guilty; struct dma_fence *last_scheduled; struct task_struct *last_user; bool stopped; struct completion entity_idle; ktime_t oldest_job_waiting; struct rb_node rb_tree_node; };h]hXstruct drm_sched_entity { struct list_head list; spinlock_t lock; struct drm_sched_rq *rq; struct drm_gpu_scheduler **sched_list; unsigned int num_sched_list; enum drm_sched_priority priority; struct spsc_queue job_queue; atomic_t fence_seq; uint64_t fence_context; struct dma_fence *dependency; struct dma_fence_cb cb; atomic_t *guilty; struct dma_fence *last_scheduled; struct task_struct *last_user; bool stopped; struct completion entity_idle; ktime_t oldest_job_waiting; struct rb_node rb_tree_node; };}hjNsbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKQhj-ubh)}(h **Members**h]j)}(hj_h]hMembers}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKfhj-ubj)}(hhh](j)}(h``list`` Used to append this struct to the list of entities in the runqueue **rq** under :c:type:`drm_sched_rq.entities `. Protected by :c:type:`drm_sched_rq.lock ` of **rq**. h](j)}(h``list``h]j)}(hj~h]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKXhjxubj)}(hhh](h)}(hUsed to append this struct to the list of entities in the runqueue **rq** under :c:type:`drm_sched_rq.entities `.h](hCUsed to append this struct to the list of entities in the runqueue }(hjhhhNhNubj)}(h**rq**h]hrq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh under }(hjhhhNhNubh)}(h.:c:type:`drm_sched_rq.entities `h]j)}(hjh]hdrm_sched_rq.entities}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_sched_rquh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKUhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjЫhKUhjubh)}(hBProtected by :c:type:`drm_sched_rq.lock ` of **rq**.h](h Protected by }(hj۫hhhNhNubh)}(h*:c:type:`drm_sched_rq.lock `h]j)}(hjh]hdrm_sched_rq.lock}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_sched_rquh1hhjhKXhj۫ubh of }(hj۫hhhNhNubj)}(h**rq**h]hrq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj۫ubh.}(hj۫hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKXhjubeh}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhKXhjuubj)}(h``lock`` Lock protecting the run-queue (**rq**) to which this entity belongs, **priority** and the list of schedulers (**sched_list**, **num_sched_list**). h](j)}(h``lock``h]j)}(hj0h]hlock}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhK`hj*ubj)}(hhh]h)}(hLock protecting the run-queue (**rq**) to which this entity belongs, **priority** and the list of schedulers (**sched_list**, **num_sched_list**).h](hLock protecting the run-queue (}(hjIhhhNhNubj)}(h**rq**h]hrq}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh ) to which this entity belongs, }(hjIhhhNhNubj)}(h **priority**h]hpriority}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh and the list of schedulers (}(hjIhhhNhNubj)}(h**sched_list**h]h sched_list}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh, }(hjIhhhNhNubj)}(h**num_sched_list**h]hnum_sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh).}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhK_hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhK`hjuubj)}(h``rq`` Runqueue on which this entity is currently scheduled. FIXME: Locking is very unclear for this. Writers are protected by **lock**, but readers are generally lockless and seem to just race with not even a READ_ONCE. h](j)}(h``rq``h]j)}(hjh]hrq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKkhjubj)}(hhh](h)}(h5Runqueue on which this entity is currently scheduled.h]h5Runqueue on which this entity is currently scheduled.}(hjˬhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKghjȬubh)}(hFIXME: Locking is very unclear for this. Writers are protected by **lock**, but readers are generally lockless and seem to just race with not even a READ_ONCE.h](hBFIXME: Locking is very unclear for this. Writers are protected by }(hjڬhhhNhNubj)}(h**lock**h]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڬubhU, but readers are generally lockless and seem to just race with not even a READ_ONCE.}(hjڬhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKihjȬubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjǬhKkhjuubj)}(hX``sched_list`` A list of schedulers (struct drm_gpu_scheduler). Jobs from this entity can be scheduled on any scheduler on this list. This can be modified by calling drm_sched_entity_modify_sched(). Locking is entirely up to the driver, see the above function for more details. This will be set to NULL if :c:type:`num_sched_list` equals 1 and **rq** has been set already. FIXME: This means priority changes through drm_sched_entity_set_priority() will be lost henceforth in this case. h](j)}(h``sched_list``h]j)}(hj h]h sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhK}hjubj)}(hhh](h)}(hwA list of schedulers (struct drm_gpu_scheduler). Jobs from this entity can be scheduled on any scheduler on this list.h]hwA list of schedulers (struct drm_gpu_scheduler). Jobs from this entity can be scheduled on any scheduler on this list.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKrhj#ubh)}(hThis can be modified by calling drm_sched_entity_modify_sched(). Locking is entirely up to the driver, see the above function for more details.h]hThis can be modified by calling drm_sched_entity_modify_sched(). Locking is entirely up to the driver, see the above function for more details.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKuhj#ubh)}(h^This will be set to NULL if :c:type:`num_sched_list` equals 1 and **rq** has been set already.h](hThis will be set to NULL if }(hjDhhhNhNubh)}(h:c:type:`num_sched_list`h]j)}(hjNh]hnum_sched_list}(hjPhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^janum_sched_listuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKyhjDubh equals 1 and }(hjDhhhNhNubj)}(h**rq**h]hrq}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh has been set already.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhKyhj#ubh)}(hpFIXME: This means priority changes through drm_sched_entity_set_priority() will be lost henceforth in this case.h]hpFIXME: This means priority changes through drm_sched_entity_set_priority() will be lost henceforth in this case.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhK|hj#ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hK}hjuubj)}(hG``num_sched_list`` Number of drm_gpu_schedulers in the **sched_list**. h](j)}(h``num_sched_list``h]j)}(hjh]hnum_sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubj)}(hhh]h)}(h3Number of drm_gpu_schedulers in the **sched_list**.h](h$Number of drm_gpu_schedulers in the }(hj­hhhNhNubj)}(h**sched_list**h]h sched_list}(hjʭhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj­ubh.}(hj­hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjuubj)}(h}``priority`` Priority of the entity. This can be modified by calling drm_sched_entity_set_priority(). Protected by **lock**. h](j)}(h ``priority``h]j)}(hjh]hpriority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubj)}(hhh]h)}(hoPriority of the entity. This can be modified by calling drm_sched_entity_set_priority(). Protected by **lock**.h](hfPriority of the entity. This can be modified by calling drm_sched_entity_set_priority(). Protected by }(hj hhhNhNubj)}(h**lock**h]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjuubj)}(h/``job_queue`` the list of jobs of this entity. h](j)}(h ``job_queue``h]j)}(hj@h]h job_queue}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj:ubj)}(hhh]h)}(h the list of jobs of this entity.h]h the list of jobs of this entity.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhKhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhKhjuubj)}(h``fence_seq`` A linearly increasing seqno incremented with each new :c:type:`drm_sched_fence` which is part of the entity. FIXME: Callers of drm_sched_job_arm() need to ensure correct locking, this doesn't need to be atomic. h](j)}(h ``fence_seq``h]j)}(hjyh]h fence_seq}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjsubj)}(hhh](h)}(hlA linearly increasing seqno incremented with each new :c:type:`drm_sched_fence` which is part of the entity.h](h6A linearly increasing seqno incremented with each new }(hjhhhNhNubh)}(h:c:type:`drm_sched_fence`h]j)}(hjh]hdrm_sched_fence}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_fenceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubh which is part of the entity.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(heFIXME: Callers of drm_sched_job_arm() need to ensure correct locking, this doesn't need to be atomic.h]hgFIXME: Callers of drm_sched_job_arm() need to ensure correct locking, this doesn’t need to be atomic.}(hjĮhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhKhjuubj)}(h``fence_context`` A unique context for all the fences which belong to this entity. The :c:type:`drm_sched_fence.scheduled ` uses the fence_context but :c:type:`drm_sched_fence.finished ` uses fence_context + 1. h](j)}(h``fence_context``h]j)}(hjh]h fence_context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj߮ubj)}(hhh]h)}(hA unique context for all the fences which belong to this entity. The :c:type:`drm_sched_fence.scheduled ` uses the fence_context but :c:type:`drm_sched_fence.finished ` uses fence_context + 1.h](hFA unique context for all the fences which belong to this entity. The }(hjhhhNhNubh)}(h5:c:type:`drm_sched_fence.scheduled `h]j)}(hjh]hdrm_sched_fence.scheduled}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_fenceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubh uses the fence_context but }(hjhhhNhNubh)}(h4:c:type:`drm_sched_fence.finished `h]j)}(hj,h]hdrm_sched_fence.finished}(hj.hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_fenceuh1hhj%hKhjubh uses fence_context + 1.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%hKhjubah}(h]h ]h"]h$]h&]uh1jhj߮ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjuubj)}(hU``dependency`` The dependency fence of the job which is on the top of the job queue. h](j)}(h``dependency``h]j)}(hjeh]h dependency}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj_ubj)}(hhh]h)}(hEThe dependency fence of the job which is on the top of the job queue.h]hEThe dependency fence of the job which is on the top of the job queue.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhKhjuubj)}(h0``cb`` Callback for the dependency fence above. h](j)}(h``cb``h]j)}(hjh]hcb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubj)}(hhh]h)}(h(Callback for the dependency fence above.h]h(Callback for the dependency fence above.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjuubj)}(h'``guilty`` Points to entities' guilty. h](j)}(h ``guilty``h]j)}(hjׯh]hguilty}(hjٯhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjկubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjѯubj)}(hhh]h)}(hPoints to entities' guilty.h]hPoints to entities’ guilty.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjѯubeh}(h]h ]h"]h$]h&]uh1jhjhKhjuubj)}(h``last_scheduled`` Points to the finished fence of the last scheduled job. Only written by drm_sched_entity_pop_job(). Can be accessed locklessly from drm_sched_job_arm() if the queue is empty. h](j)}(h``last_scheduled``h]j)}(hjh]hlast_scheduled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj ubj)}(hhh]h)}(hPoints to the finished fence of the last scheduled job. Only written by drm_sched_entity_pop_job(). Can be accessed locklessly from drm_sched_job_arm() if the queue is empty.h]hPoints to the finished fence of the last scheduled job. Only written by drm_sched_entity_pop_job(). Can be accessed locklessly from drm_sched_job_arm() if the queue is empty.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjuubj)}(h?``last_user`` last group leader pushing a job into the entity. h](j)}(h ``last_user``h]j)}(hjJh]h last_user}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjDubj)}(hhh]h)}(h0last group leader pushing a job into the entity.h]h0last group leader pushing a job into the entity.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjuubj)}(h``stopped`` Marks the enity as removed from rq and destined for termination. This is set by calling drm_sched_entity_flush() and by drm_sched_fini(). h](j)}(h ``stopped``h]j)}(hjh]hstopped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj}ubj)}(hhh]h)}(hMarks the enity as removed from rq and destined for termination. This is set by calling drm_sched_entity_flush() and by drm_sched_fini().h]hMarks the enity as removed from rq and destined for termination. This is set by calling drm_sched_entity_flush() and by drm_sched_fini().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjuubj)}(ho``entity_idle`` Signals when entity is not in use, used to sequence entity cleanup in drm_sched_entity_fini(). h](j)}(h``entity_idle``h]j)}(hjh]h entity_idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubj)}(hhh]h)}(h^Signals when entity is not in use, used to sequence entity cleanup in drm_sched_entity_fini().h]h^Signals when entity is not in use, used to sequence entity cleanup in drm_sched_entity_fini().}(hjְhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjӰubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjҰhKhjuubj)}(h>``oldest_job_waiting`` Marks earliest job waiting in SW queue h](j)}(h``oldest_job_waiting``h]j)}(hjh]holdest_job_waiting}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubj)}(hhh]h)}(h&Marks earliest job waiting in SW queueh]h&Marks earliest job waiting in SW queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjuubj)}(hS``rb_tree_node`` The node used to insert this entity into time based priority queueh](j)}(h``rb_tree_node``h]j)}(hj0h]h rb_tree_node}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj*ubj)}(hhh]h)}(hBThe node used to insert this entity into time based priority queueh]hBThe node used to insert this entity into time based priority queue}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKhjuubeh}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjGhhubh)}(hEntities will emit jobs in order to their corresponding hardware ring, and the scheduler will alternate between entities based on scheduling policy.h]hEntities will emit jobs in order to their corresponding hardware ring, and the scheduler will alternate between entities based on scheduling policy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKLhjGhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_rq (C struct)c.drm_sched_rqhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h drm_sched_rqh]jR)}(hstruct drm_sched_rqh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKSubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKSubj{)}(h drm_sched_rqh]j)}(hjh]h drm_sched_rq}(hjѱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͱubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKSubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKSubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKShjhhubj)}(hhh]h)}(h"queue of entities to be scheduled.h]h"queue of entities to be scheduled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKSubeh}(h]h ](jstructeh"]h$]h&]jjjj jj jjjuh1jFhhhjGhNhNubj)}(hXf**Definition**:: struct drm_sched_rq { struct drm_gpu_scheduler *sched; spinlock_t lock; struct drm_sched_entity *current_entity; struct list_head entities; struct rb_root_cached rb_tree_root; }; **Members** ``sched`` the scheduler to which this rq belongs to. ``lock`` protects **entities**, **rb_tree_root** and **current_entity**. ``current_entity`` the entity which is to be scheduled. ``entities`` list of the entities to be scheduled. ``rb_tree_root`` root of time based priority queue of entities for FIFO schedulingh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubjh)}(hstruct drm_sched_rq { struct drm_gpu_scheduler *sched; spinlock_t lock; struct drm_sched_entity *current_entity; struct list_head entities; struct rb_root_cached rb_tree_root; };h]hstruct drm_sched_rq { struct drm_gpu_scheduler *sched; spinlock_t lock; struct drm_sched_entity *current_entity; struct list_head entities; struct rb_root_cached rb_tree_root; };}hj0sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubh)}(h **Members**h]j)}(hjAh]hMembers}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubj)}(hhh](j)}(h5``sched`` the scheduler to which this rq belongs to. h](j)}(h ``sched``h]j)}(hj`h]hsched}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjZubj)}(hhh]h)}(h*the scheduler to which this rq belongs to.h]h*the scheduler to which this rq belongs to.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjWubj)}(hI``lock`` protects **entities**, **rb_tree_root** and **current_entity**. h](j)}(h``lock``h]j)}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubj)}(hhh]h)}(h?protects **entities**, **rb_tree_root** and **current_entity**.h](h protects }(hjhhhNhNubj)}(h **entities**h]hentities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**rb_tree_root**h]h rb_tree_root}(hj̲hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**current_entity**h]hcurrent_entity}(hj޲hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjWubj)}(h8``current_entity`` the entity which is to be scheduled. h](j)}(h``current_entity``h]j)}(hjh]hcurrent_entity}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubj)}(hhh]h)}(h$the entity which is to be scheduled.h]h$the entity which is to be scheduled.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjWubj)}(h3``entities`` list of the entities to be scheduled. h](j)}(h ``entities``h]j)}(hjAh]hentities}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj;ubj)}(hhh]h)}(h%list of the entities to be scheduled.h]h%list of the entities to be scheduled.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhKhjWubj)}(hR``rb_tree_root`` root of time based priority queue of entities for FIFO schedulingh](j)}(h``rb_tree_root``h]j)}(hjzh]h rb_tree_root}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjtubj)}(hhh]h)}(hAroot of time based priority queue of entities for FIFO schedulingh]hAroot of time based priority queue of entities for FIFO scheduling}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhKhjWubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjGhhubh)}(hRun queue is a set of entities scheduling command submissions for one specific ring. It implements the scheduling policy that selects the next entity to emit commands from.h]hRun queue is a set of entities scheduling command submissions for one specific ring. It implements the scheduling policy that selects the next entity to emit commands from.}(hjӳhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjGhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_fence (C struct)c.drm_sched_fencehNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hdrm_sched_fenceh]jR)}(hstruct drm_sched_fenceh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(hdrm_sched_fenceh]j)}(hjh]hdrm_sched_fence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h)}(h0fences corresponding to the scheduling of a job.h]h0fences corresponding to the scheduling of a job.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjUjjUjjjuh1jFhhhjGhNhNubj)}(hX**Definition**:: struct drm_sched_fence { struct dma_fence scheduled; struct dma_fence finished; ktime_t deadline; struct dma_fence *parent; struct drm_gpu_scheduler *sched; spinlock_t lock; void *owner; uint64_t drm_client_id; }; **Members** ``scheduled`` this fence is what will be signaled by the scheduler when the job is scheduled. ``finished`` this fence is what will be signaled by the scheduler when the job is completed. When setting up an out fence for the job, you should use this, since it's available immediately upon drm_sched_job_init(), and the fence returned by the driver from run_job() won't be created until the dependencies have resolved. ``deadline`` deadline set on :c:type:`drm_sched_fence.finished ` which potentially needs to be propagated to :c:type:`drm_sched_fence.parent ` ``parent`` the fence returned by :c:type:`drm_sched_backend_ops.run_job ` when scheduling the job on hardware. We signal the :c:type:`drm_sched_fence.finished ` fence once parent is signalled. ``sched`` the scheduler instance to which the job having this struct belongs to. ``lock`` the lock used by the scheduled and the finished fences. ``owner`` job owner for debugging ``drm_client_id`` The client_id of the drm_file which owns the job.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh:}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM hjYubjh)}(hX)struct drm_sched_fence { struct dma_fence scheduled; struct dma_fence finished; ktime_t deadline; struct dma_fence *parent; struct drm_gpu_scheduler *sched; spinlock_t lock; void *owner; uint64_t drm_client_id; };h]hX)struct drm_sched_fence { struct dma_fence scheduled; struct dma_fence finished; ktime_t deadline; struct dma_fence *parent; struct drm_gpu_scheduler *sched; spinlock_t lock; void *owner; uint64_t drm_client_id; };}hjzsbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM hjYubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjYubj)}(hhh](j)}(h^``scheduled`` this fence is what will be signaled by the scheduler when the job is scheduled. h](j)}(h ``scheduled``h]j)}(hjh]h scheduled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM hjubj)}(hhh]h)}(hOthis fence is what will be signaled by the scheduler when the job is scheduled.h]hOthis fence is what will be signaled by the scheduler when the job is scheduled.}(hjôhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hXD``finished`` this fence is what will be signaled by the scheduler when the job is completed. When setting up an out fence for the job, you should use this, since it's available immediately upon drm_sched_job_init(), and the fence returned by the driver from run_job() won't be created until the dependencies have resolved. h](j)}(h ``finished``h]j)}(hjh]hfinished}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj޴ubj)}(hhh](h)}(hOthis fence is what will be signaled by the scheduler when the job is completed.h]hOthis fence is what will be signaled by the scheduler when the job is completed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubh)}(hWhen setting up an out fence for the job, you should use this, since it's available immediately upon drm_sched_job_init(), and the fence returned by the driver from run_job() won't be created until the dependencies have resolved.h]hWhen setting up an out fence for the job, you should use this, since it’s available immediately upon drm_sched_job_init(), and the fence returned by the driver from run_job() won’t be created until the dependencies have resolved.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubeh}(h]h ]h"]h$]h&]uh1jhj޴ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``deadline`` deadline set on :c:type:`drm_sched_fence.finished ` which potentially needs to be propagated to :c:type:`drm_sched_fence.parent ` h](j)}(h ``deadline``h]j)}(hj-h]hdeadline}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj'ubj)}(hhh]h)}(hdeadline set on :c:type:`drm_sched_fence.finished ` which potentially needs to be propagated to :c:type:`drm_sched_fence.parent `h](hdeadline set on }(hjFhhhNhNubh)}(h4:c:type:`drm_sched_fence.finished `h]j)}(hjPh]hdrm_sched_fence.finished}(hjRhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_fenceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjFubh- which potentially needs to be propagated to }(hjFhhhNhNubh)}(h2:c:type:`drm_sched_fence.parent `h]j)}(hjth]hdrm_sched_fence.parent}(hjvhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_fenceuh1hhjmhMhjFubeh}(h]h ]h"]h$]h&]uh1hhjmhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubj)}(h``parent`` the fence returned by :c:type:`drm_sched_backend_ops.run_job ` when scheduling the job on hardware. We signal the :c:type:`drm_sched_fence.finished ` fence once parent is signalled. h](j)}(h ``parent``h]j)}(hjh]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM%hjubj)}(hhh]h)}(hthe fence returned by :c:type:`drm_sched_backend_ops.run_job ` when scheduling the job on hardware. We signal the :c:type:`drm_sched_fence.finished ` fence once parent is signalled.h](hthe fence returned by }(hjµhhhNhNubh)}(h?:c:type:`drm_sched_backend_ops.run_job `h]j)}(hj̵h]hdrm_sched_backend_ops.run_job}(hjεhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjʵubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_backend_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM#hjµubh4 when scheduling the job on hardware. We signal the }(hjµhhhNhNubh)}(h4:c:type:`drm_sched_fence.finished `h]j)}(hjh]hdrm_sched_fence.finished}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_fenceuh1hhjhM#hjµubh fence once parent is signalled.}(hjµhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjubj)}(hQ``sched`` the scheduler instance to which the job having this struct belongs to. h](j)}(h ``sched``h]j)}(hj)h]hsched}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM*hj#ubj)}(hhh]h)}(hFthe scheduler instance to which the job having this struct belongs to.h]hFthe scheduler instance to which the job having this struct belongs to.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM)hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hM*hjubj)}(hA``lock`` the lock used by the scheduled and the finished fences. h](j)}(h``lock``h]j)}(hjch]hlock}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM.hj]ubj)}(hhh]h)}(h7the lock used by the scheduled and the finished fences.h]h7the lock used by the scheduled and the finished fences.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM.hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM.hjubj)}(h"``owner`` job owner for debugging h](j)}(h ``owner``h]j)}(hjh]howner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM2hjubj)}(hhh]h)}(hjob owner for debuggingh]hjob owner for debugging}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubj)}(hC``drm_client_id`` The client_id of the drm_file which owns the job.h](j)}(h``drm_client_id``h]j)}(hjնh]h drm_client_id}(hj׶hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӶubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM6hj϶ubj)}(hhh]h)}(h1The client_id of the drm_file which owns the job.h]h1The client_id of the drm_file which owns the job.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM7hjubah}(h]h ]h"]h$]h&]uh1jhj϶ubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubeh}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_job (C struct)c.drm_sched_jobhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h drm_sched_jobh]jR)}(hstruct drm_sched_jobh](jX)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj+hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM=ubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj+hhhj<hM=ubj{)}(h drm_sched_jobh]j)}(hj)h]h drm_sched_job}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+hhhj<hM=ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj'hhhj<hM=ubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1jKhj<hM=hj$hhubj)}(hhh]h)}(hA job to be run by an entity.h]hA job to be run by an entity.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM@hjnhhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj<hM=ubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hXU**Definition**:: struct drm_sched_job { ktime_t submit_ts; struct drm_gpu_scheduler *sched; struct drm_sched_fence *s_fence; struct drm_sched_entity *entity; enum drm_sched_priority s_priority; u32 credits; unsigned int last_dependency; atomic_t karma; struct spsc_node queue_node; struct list_head list; union { struct dma_fence_cb finish_cb; struct work_struct work; }; struct dma_fence_cb cb; struct xarray dependencies; }; **Members** ``submit_ts`` When the job was pushed into the entity queue. ``sched`` The scheduler this job is or will be scheduled on. Gets set by drm_sched_job_arm(). Valid until drm_sched_backend_ops.free_job() has finished. ``s_fence`` contains the fences for the scheduling of job. ``entity`` the entity to which this job belongs. ``s_priority`` the priority of the job. ``credits`` the number of credits this job contributes to the scheduler ``last_dependency`` tracks **dependencies** as they signal ``karma`` increment on every hang caused by this job. If this exceeds the hang limit of the scheduler then the job is marked guilty and will not be scheduled further. ``queue_node`` used to append this struct to the queue of jobs in an entity. ``list`` a job participates in a "pending" and "done" lists. ``{unnamed_union}`` anonymous ``finish_cb`` the callback for the finished fence. ``work`` Helper to reschedule job kill to different context. ``cb`` the callback for the parent fence in s_fence. ``dependencies`` Contains the dependencies as struct dma_fence for this job, see drm_sched_job_add_dependency() and drm_sched_job_add_implicit_dependencies().h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMDhjubjh)}(hXYstruct drm_sched_job { ktime_t submit_ts; struct drm_gpu_scheduler *sched; struct drm_sched_fence *s_fence; struct drm_sched_entity *entity; enum drm_sched_priority s_priority; u32 credits; unsigned int last_dependency; atomic_t karma; struct spsc_node queue_node; struct list_head list; union { struct dma_fence_cb finish_cb; struct work_struct work; }; struct dma_fence_cb cb; struct xarray dependencies; };h]hXYstruct drm_sched_job { ktime_t submit_ts; struct drm_gpu_scheduler *sched; struct drm_sched_fence *s_fence; struct drm_sched_entity *entity; enum drm_sched_priority s_priority; u32 credits; unsigned int last_dependency; atomic_t karma; struct spsc_node queue_node; struct list_head list; union { struct dma_fence_cb finish_cb; struct work_struct work; }; struct dma_fence_cb cb; struct xarray dependencies; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMFhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMYhjubj)}(hhh](j)}(h=``submit_ts`` When the job was pushed into the entity queue. h](j)}(h ``submit_ts``h]j)}(hj޷h]h submit_ts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܷubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMWhjطubj)}(hhh]h)}(h.When the job was pushed into the entity queue.h]h.When the job was pushed into the entity queue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1jhjطubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjշubj)}(h``sched`` The scheduler this job is or will be scheduled on. Gets set by drm_sched_job_arm(). Valid until drm_sched_backend_ops.free_job() has finished. h](j)}(h ``sched``h]j)}(hjh]hsched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM`hjubj)}(hhh]h)}(hThe scheduler this job is or will be scheduled on. Gets set by drm_sched_job_arm(). Valid until drm_sched_backend_ops.free_job() has finished.h]hThe scheduler this job is or will be scheduled on. Gets set by drm_sched_job_arm(). Valid until drm_sched_backend_ops.free_job() has finished.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM^hj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hM`hjշubj)}(h;``s_fence`` contains the fences for the scheduling of job. h](j)}(h ``s_fence``h]j)}(hjQh]hs_fence}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMFhjKubj)}(hhh]h)}(h.contains the fences for the scheduling of job.h]h.contains the fences for the scheduling of job.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMFhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMFhjշubj)}(h1``entity`` the entity to which this job belongs. h](j)}(h ``entity``h]j)}(hjh]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMNhjubj)}(hhh]h)}(h%the entity to which this job belongs.h]h%the entity to which this job belongs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjշubj)}(h(``s_priority`` the priority of the job. h](j)}(h``s_priority``h]j)}(hjøh]h s_priority}(hjŸhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMMhjubj)}(hhh]h)}(hthe priority of the job.h]hthe priority of the job.}(hjܸhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjظhMMhjٸubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjظhMMhjշubj)}(hH``credits`` the number of credits this job contributes to the scheduler h](j)}(h ``credits``h]j)}(hjh]hcredits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMHhjubj)}(hhh]h)}(h;the number of credits this job contributes to the schedulerh]h;the number of credits this job contributes to the scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjշubj)}(h;``last_dependency`` tracks **dependencies** as they signal h](j)}(h``last_dependency``h]j)}(hj5h]hlast_dependency}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMkhj/ubj)}(hhh]h)}(h&tracks **dependencies** as they signalh](htracks }(hjNhhhNhNubj)}(h**dependencies**h]h dependencies}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh as they signal}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJhMkhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMkhjշubj)}(h``karma`` increment on every hang caused by this job. If this exceeds the hang limit of the scheduler then the job is marked guilty and will not be scheduled further. h](j)}(h ``karma``h]j)}(hjh]hkarma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMLhjzubj)}(hhh]h)}(hincrement on every hang caused by this job. If this exceeds the hang limit of the scheduler then the job is marked guilty and will not be scheduled further.h]hincrement on every hang caused by this job. If this exceeds the hang limit of the scheduler then the job is marked guilty and will not be scheduled further.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMJhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjշubj)}(hM``queue_node`` used to append this struct to the queue of jobs in an entity. h](j)}(h``queue_node``h]j)}(hjh]h queue_node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMChjubj)}(hhh]h)}(h=used to append this struct to the queue of jobs in an entity.h]h=used to append this struct to the queue of jobs in an entity.}(hjӹhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϹhMChjйubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϹhMChjշubj)}(h=``list`` a job participates in a "pending" and "done" lists. h](j)}(h``list``h]j)}(hjh]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMDhjubj)}(hhh]h)}(h3a job participates in a "pending" and "done" lists.h]h;a job participates in a “pending” and “done” lists.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjշubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j)}(hj,h]h{unnamed_union}}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj&ubj)}(hhh]h)}(h anonymoush]h anonymous}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhKhjշubj)}(h3``finish_cb`` the callback for the finished fence. h](j)}(h ``finish_cb``h]j)}(hjeh]h finish_cb}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMGhj_ubj)}(hhh]h)}(h$the callback for the finished fence.h]h$the callback for the finished fence.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMGhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMGhjշubj)}(h=``work`` Helper to reschedule job kill to different context. h](j)}(h``work``h]j)}(hjh]hwork}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMIhjubj)}(hhh]h)}(h3Helper to reschedule job kill to different context.h]h3Helper to reschedule job kill to different context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjշubj)}(h5``cb`` the callback for the parent fence in s_fence. h](j)}(h``cb``h]j)}(hj׺h]hcb}(hjٺhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjպubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMOhjѺubj)}(hhh]h)}(h-the callback for the parent fence in s_fence.h]h-the callback for the parent fence in s_fence.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1jhjѺubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjշubj)}(h``dependencies`` Contains the dependencies as struct dma_fence for this job, see drm_sched_job_add_dependency() and drm_sched_job_add_implicit_dependencies().h](j)}(h``dependencies``h]j)}(hjh]h dependencies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj ubj)}(hhh]h)}(hContains the dependencies as struct dma_fence for this job, see drm_sched_job_add_dependency() and drm_sched_job_add_implicit_dependencies().h]hContains the dependencies as struct dma_fence for this job, see drm_sched_job_add_dependency() and drm_sched_job_add_implicit_dependencies().}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM~hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjշubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjGhhubh)}(hA job is created by the driver using drm_sched_job_init(), and should call drm_sched_entity_push_job() once it wants the scheduler to schedule the job.h]hA job is created by the driver using drm_sched_job_init(), and should call drm_sched_entity_push_job() once it wants the scheduler to schedule the job.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMOhjGhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpu_sched_stat (C enum)c.drm_gpu_sched_stathNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hdrm_gpu_sched_stath]jR)}(henum drm_gpu_sched_stath](jX)}(hj[h]henum}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMVubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMVubj{)}(hdrm_gpu_sched_stath]j)}(hjh]hdrm_gpu_sched_stat}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMVubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMVubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMVhjhhubj)}(hhh]h)}(hthe scheduler's statush]hthe scheduler’s status}(hjӻhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjлhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMVubeh}(h]h ](jenumeh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hXC**Constants** ``DRM_GPU_SCHED_STAT_NONE`` Reserved. Do not use. ``DRM_GPU_SCHED_STAT_RESET`` The GPU hung and successfully reset. ``DRM_GPU_SCHED_STAT_ENODEV`` Error: Device is not available anymore. ``DRM_GPU_SCHED_STAT_NO_HANG`` Contrary to scheduler's assumption, the GPU did not hang and is still running.h](h)}(h **Constants**h]j)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubj)}(hhh](j)}(h2``DRM_GPU_SCHED_STAT_NONE`` Reserved. Do not use. h](j)}(h``DRM_GPU_SCHED_STAT_NONE``h]j)}(hjh]hDRM_GPU_SCHED_STAT_NONE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubj)}(hhh]h)}(hReserved. Do not use.h]hReserved. Do not use.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj ubj)}(hB``DRM_GPU_SCHED_STAT_RESET`` The GPU hung and successfully reset. h](j)}(h``DRM_GPU_SCHED_STAT_RESET``h]j)}(hjMh]hDRM_GPU_SCHED_STAT_RESET}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjGubj)}(hhh]h)}(h$The GPU hung and successfully reset.h]h$The GPU hung and successfully reset.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj ubj)}(hF``DRM_GPU_SCHED_STAT_ENODEV`` Error: Device is not available anymore. h](j)}(h``DRM_GPU_SCHED_STAT_ENODEV``h]j)}(hjh]hDRM_GPU_SCHED_STAT_ENODEV}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubj)}(hhh]h)}(h'Error: Device is not available anymore.h]h'Error: Device is not available anymore.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(hm``DRM_GPU_SCHED_STAT_NO_HANG`` Contrary to scheduler's assumption, the GPU did not hang and is still running.h](j)}(h``DRM_GPU_SCHED_STAT_NO_HANG``h]j)}(hjh]hDRM_GPU_SCHED_STAT_NO_HANG}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubj)}(hhh]h)}(hNContrary to scheduler's assumption, the GPU did not hang and is still running.h]hPContrary to scheduler’s assumption, the GPU did not hang and is still running.}(hjؼhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԼhMhjռubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԼhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_sched_backend_ops (C struct)c.drm_sched_backend_opshNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hdrm_sched_backend_opsh]jR)}(hstruct drm_sched_backend_opsh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMubjj)}(h h]h }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj%hMubj{)}(hdrm_sched_backend_opsh]j)}(hjh]hdrm_sched_backend_ops}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj%hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj%hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj%hMhj hhubj)}(hhh]h)}(h5Define the backend operations called by the schedulerh]h5Define the backend operations called by the scheduler}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjWhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMubeh}(h]h ](jstructeh"]h$]h&]jjjjrjjrjjjuh1jFhhhjGhNhNubj)}(hX**Definition**:: struct drm_sched_backend_ops { struct dma_fence *(*prepare_job)(struct drm_sched_job *sched_job, struct drm_sched_entity *s_entity); struct dma_fence *(*run_job)(struct drm_sched_job *sched_job); enum drm_gpu_sched_stat (*timedout_job)(struct drm_sched_job *sched_job); void (*free_job)(struct drm_sched_job *sched_job); void (*cancel_job)(struct drm_sched_job *sched_job); }; **Members** ``prepare_job`` Called when the scheduler is considering scheduling this job next, to get another struct dma_fence for this job to block on. Once it returns NULL, run_job() may be called. Can be NULL if no additional preparation to the dependencies are necessary. Skipped when jobs are killed instead of run. ``run_job`` Called to execute the job once all of the dependencies have been resolved. **sched_job**: the job to run The deprecated drm_sched_resubmit_jobs() (called by :c:type:`struct drm_sched_backend_ops `.timedout_job) can invoke this again with the same parameters. Using this is discouraged because it violates dma_fence rules, notably dma_fence_init() has to be called on already initialized fences for a second time. Moreover, this is dangerous because attempts to allocate memory might deadlock with memory management code waiting for the reset to complete. TODO: Document what drivers should do / use instead. This method is called in a workqueue context - either from the submit_wq the driver passed through drm_sched_init(), or, if the driver passed NULL, a separate, ordered workqueue the scheduler allocated. Note that the scheduler expects to 'inherit' its own reference to this fence from the callback. It does not invoke an extra dma_fence_get() on it. Consequently, this callback must take a reference for the scheduler, and additional ones for the driver's respective needs. Return: * On success: dma_fence the driver must signal once the hardware has completed the job ("hardware fence"). * On failure: NULL or an ERR_PTR. ``timedout_job`` Called when a job has taken too long to execute, to trigger GPU recovery. **sched_job**: The job that has timed out Drivers typically issue a reset to recover from GPU hangs. This procedure looks very different depending on whether a firmware or a hardware scheduler is being used. For a FIRMWARE SCHEDULER, each ring has one scheduler, and each scheduler has one entity. Hence, the steps taken typically look as follows: 1. Stop the scheduler using drm_sched_stop(). This will pause the scheduler workqueues and cancel the timeout work, guaranteeing that nothing is queued while the ring is being removed. 2. Remove the ring. The firmware will make sure that the corresponding parts of the hardware are resetted, and that other rings are not impacted. 3. Kill the entity and the associated scheduler. For a HARDWARE SCHEDULER, a scheduler instance schedules jobs from one or more entities to one ring. This implies that all entities associated with the affected scheduler cannot be torn down, because this would effectively also affect innocent userspace processes which did not submit faulty jobs (for example). Consequently, the procedure to recover with a hardware scheduler should look like this: 1. Stop all schedulers impacted by the reset using drm_sched_stop(). 2. Kill the entity the faulty job stems from. 3. Issue a GPU reset on all faulty rings (driver-specific). 4. Re-submit jobs on all schedulers impacted by re-submitting them to the entities which are still alive. 5. Restart all schedulers that were stopped in step #1 using drm_sched_start(). Note that some GPUs have distinct hardware queues but need to reset the GPU globally, which requires extra synchronization between the timeout handlers of different schedulers. One way to achieve this synchronization is to create an ordered workqueue (using alloc_ordered_workqueue()) at the driver level, and pass this queue as drm_sched_init()'s **timeout_wq** parameter. This will guarantee that timeout handlers are executed sequentially. Return: The scheduler's status, defined by :c:type:`enum drm_gpu_sched_stat ` ``free_job`` Called once the job's finished fence has been signaled and it's time to clean it up. ``cancel_job`` Used by the scheduler to guarantee remaining jobs' fences get signaled in drm_sched_fini(). Used by the scheduler to cancel all jobs that have not been executed with :c:type:`struct drm_sched_backend_ops `.run_job by the time drm_sched_fini() gets invoked. Drivers need to signal the passed job's hardware fence with an appropriate error code (e.g., -ECANCELED) in this callback. They must not free the job. The scheduler will only call this callback once it stopped calling all other callbacks forever, with the exception of :c:type:`struct drm_sched_backend_ops `.free_job.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh:}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjvubjh)}(hXstruct drm_sched_backend_ops { struct dma_fence *(*prepare_job)(struct drm_sched_job *sched_job, struct drm_sched_entity *s_entity); struct dma_fence *(*run_job)(struct drm_sched_job *sched_job); enum drm_gpu_sched_stat (*timedout_job)(struct drm_sched_job *sched_job); void (*free_job)(struct drm_sched_job *sched_job); void (*cancel_job)(struct drm_sched_job *sched_job); };h]hXstruct drm_sched_backend_ops { struct dma_fence *(*prepare_job)(struct drm_sched_job *sched_job, struct drm_sched_entity *s_entity); struct dma_fence *(*run_job)(struct drm_sched_job *sched_job); enum drm_gpu_sched_stat (*timedout_job)(struct drm_sched_job *sched_job); void (*free_job)(struct drm_sched_job *sched_job); void (*cancel_job)(struct drm_sched_job *sched_job); };}hjsbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjvubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjvubj)}(hhh](j)}(hX7``prepare_job`` Called when the scheduler is considering scheduling this job next, to get another struct dma_fence for this job to block on. Once it returns NULL, run_job() may be called. Can be NULL if no additional preparation to the dependencies are necessary. Skipped when jobs are killed instead of run. h](j)}(h``prepare_job``h]j)}(hjǽh]h prepare_job}(hjɽhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŽubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubj)}(hhh](h)}(hCalled when the scheduler is considering scheduling this job next, to get another struct dma_fence for this job to block on. Once it returns NULL, run_job() may be called.h]hCalled when the scheduler is considering scheduling this job next, to get another struct dma_fence for this job to block on. Once it returns NULL, run_job() may be called.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjݽubh)}(hxCan be NULL if no additional preparation to the dependencies are necessary. Skipped when jobs are killed instead of run.h]hxCan be NULL if no additional preparation to the dependencies are necessary. Skipped when jobs are killed instead of run.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjݽubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjܽhMhjubj)}(hX``run_job`` Called to execute the job once all of the dependencies have been resolved. **sched_job**: the job to run The deprecated drm_sched_resubmit_jobs() (called by :c:type:`struct drm_sched_backend_ops `.timedout_job) can invoke this again with the same parameters. Using this is discouraged because it violates dma_fence rules, notably dma_fence_init() has to be called on already initialized fences for a second time. Moreover, this is dangerous because attempts to allocate memory might deadlock with memory management code waiting for the reset to complete. TODO: Document what drivers should do / use instead. This method is called in a workqueue context - either from the submit_wq the driver passed through drm_sched_init(), or, if the driver passed NULL, a separate, ordered workqueue the scheduler allocated. Note that the scheduler expects to 'inherit' its own reference to this fence from the callback. It does not invoke an extra dma_fence_get() on it. Consequently, this callback must take a reference for the scheduler, and additional ones for the driver's respective needs. Return: * On success: dma_fence the driver must signal once the hardware has completed the job ("hardware fence"). * On failure: NULL or an ERR_PTR. h](j)}(h ``run_job``h]j)}(hjh]hrun_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj ubj)}(hhh](h)}(hJCalled to execute the job once all of the dependencies have been resolved.h]hJCalled to execute the job once all of the dependencies have been resolved.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj&ubh)}(h**sched_job**: the job to runh](j)}(h **sched_job**h]h sched_job}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh: the job to run}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj&ubh)}(hXThe deprecated drm_sched_resubmit_jobs() (called by :c:type:`struct drm_sched_backend_ops `.timedout_job) can invoke this again with the same parameters. Using this is discouraged because it violates dma_fence rules, notably dma_fence_init() has to be called on already initialized fences for a second time. Moreover, this is dangerous because attempts to allocate memory might deadlock with memory management code waiting for the reset to complete.h](h4The deprecated drm_sched_resubmit_jobs() (called by }(hjUhhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hj_h]hstruct drm_sched_backend_ops}(hjahhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_backend_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjUubhXf.timedout_job) can invoke this again with the same parameters. Using this is discouraged because it violates dma_fence rules, notably dma_fence_init() has to be called on already initialized fences for a second time. Moreover, this is dangerous because attempts to allocate memory might deadlock with memory management code waiting for the reset to complete.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|hMhj&ubh)}(h4TODO: Document what drivers should do / use instead.h]h4TODO: Document what drivers should do / use instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj&ubh)}(hThis method is called in a workqueue context - either from the submit_wq the driver passed through drm_sched_init(), or, if the driver passed NULL, a separate, ordered workqueue the scheduler allocated.h]hThis method is called in a workqueue context - either from the submit_wq the driver passed through drm_sched_init(), or, if the driver passed NULL, a separate, ordered workqueue the scheduler allocated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj&ubh)}(hXNote that the scheduler expects to 'inherit' its own reference to this fence from the callback. It does not invoke an extra dma_fence_get() on it. Consequently, this callback must take a reference for the scheduler, and additional ones for the driver's respective needs.h]hXNote that the scheduler expects to ‘inherit’ its own reference to this fence from the callback. It does not invoke an extra dma_fence_get() on it. Consequently, this callback must take a reference for the scheduler, and additional ones for the driver’s respective needs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj&ubh)}(hReturn: * On success: dma_fence the driver must signal once the hardware has completed the job ("hardware fence"). * On failure: NULL or an ERR_PTR.h]hReturn: * On success: dma_fence the driver must signal once the hardware has completed the job (“hardware fence”). * On failure: NULL or an ERR_PTR.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj&ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubj)}(hXe``timedout_job`` Called when a job has taken too long to execute, to trigger GPU recovery. **sched_job**: The job that has timed out Drivers typically issue a reset to recover from GPU hangs. This procedure looks very different depending on whether a firmware or a hardware scheduler is being used. For a FIRMWARE SCHEDULER, each ring has one scheduler, and each scheduler has one entity. Hence, the steps taken typically look as follows: 1. Stop the scheduler using drm_sched_stop(). This will pause the scheduler workqueues and cancel the timeout work, guaranteeing that nothing is queued while the ring is being removed. 2. Remove the ring. The firmware will make sure that the corresponding parts of the hardware are resetted, and that other rings are not impacted. 3. Kill the entity and the associated scheduler. For a HARDWARE SCHEDULER, a scheduler instance schedules jobs from one or more entities to one ring. This implies that all entities associated with the affected scheduler cannot be torn down, because this would effectively also affect innocent userspace processes which did not submit faulty jobs (for example). Consequently, the procedure to recover with a hardware scheduler should look like this: 1. Stop all schedulers impacted by the reset using drm_sched_stop(). 2. Kill the entity the faulty job stems from. 3. Issue a GPU reset on all faulty rings (driver-specific). 4. Re-submit jobs on all schedulers impacted by re-submitting them to the entities which are still alive. 5. Restart all schedulers that were stopped in step #1 using drm_sched_start(). Note that some GPUs have distinct hardware queues but need to reset the GPU globally, which requires extra synchronization between the timeout handlers of different schedulers. One way to achieve this synchronization is to create an ordered workqueue (using alloc_ordered_workqueue()) at the driver level, and pass this queue as drm_sched_init()'s **timeout_wq** parameter. This will guarantee that timeout handlers are executed sequentially. Return: The scheduler's status, defined by :c:type:`enum drm_gpu_sched_stat ` h](j)}(h``timedout_job``h]j)}(hjվh]h timedout_job}(hj׾hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӾubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjϾubj)}(hhh](h)}(hICalled when a job has taken too long to execute, to trigger GPU recovery.h]hICalled when a job has taken too long to execute, to trigger GPU recovery.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubh)}(h)**sched_job**: The job that has timed outh](j)}(h **sched_job**h]h sched_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh: The job that has timed out}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubh)}(hDrivers typically issue a reset to recover from GPU hangs. This procedure looks very different depending on whether a firmware or a hardware scheduler is being used.h]hDrivers typically issue a reset to recover from GPU hangs. This procedure looks very different depending on whether a firmware or a hardware scheduler is being used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubh)}(hFor a FIRMWARE SCHEDULER, each ring has one scheduler, and each scheduler has one entity. Hence, the steps taken typically look as follows:h]hFor a FIRMWARE SCHEDULER, each ring has one scheduler, and each scheduler has one entity. Hence, the steps taken typically look as follows:}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubjm:)}(hhh](jz)}(hStop the scheduler using drm_sched_stop(). This will pause the scheduler workqueues and cancel the timeout work, guaranteeing that nothing is queued while the ring is being removed.h]h)}(hStop the scheduler using drm_sched_stop(). This will pause the scheduler workqueues and cancel the timeout work, guaranteeing that nothing is queued while the ring is being removed.h]hStop the scheduler using drm_sched_stop(). This will pause the scheduler workqueues and cancel the timeout work, guaranteeing that nothing is queued while the ring is being removed.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj;ubah}(h]h ]h"]h$]h&]uh1jzhj8ubjz)}(hRemove the ring. The firmware will make sure that the corresponding parts of the hardware are resetted, and that other rings are not impacted.h]h)}(hRemove the ring. The firmware will make sure that the corresponding parts of the hardware are resetted, and that other rings are not impacted.h]hRemove the ring. The firmware will make sure that the corresponding parts of the hardware are resetted, and that other rings are not impacted.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjTubah}(h]h ]h"]h$]h&]uh1jzhj8ubjz)}(h/Kill the entity and the associated scheduler. h]h)}(h-Kill the entity and the associated scheduler.h]h-Kill the entity and the associated scheduler.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjmubah}(h]h ]h"]h$]h&]uh1jzhj8ubeh}(h]h ]h"]h$]h&]j5=j6=j7=hj8=juh1jl:hjubh)}(hX7For a HARDWARE SCHEDULER, a scheduler instance schedules jobs from one or more entities to one ring. This implies that all entities associated with the affected scheduler cannot be torn down, because this would effectively also affect innocent userspace processes which did not submit faulty jobs (for example).h]hX7For a HARDWARE SCHEDULER, a scheduler instance schedules jobs from one or more entities to one ring. This implies that all entities associated with the affected scheduler cannot be torn down, because this would effectively also affect innocent userspace processes which did not submit faulty jobs (for example).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubh)}(hWConsequently, the procedure to recover with a hardware scheduler should look like this:h]hWConsequently, the procedure to recover with a hardware scheduler should look like this:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubjm:)}(hhh](jz)}(hAStop all schedulers impacted by the reset using drm_sched_stop().h]h)}(hjh]hAStop all schedulers impacted by the reset using drm_sched_stop().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1jzhjubjz)}(h*Kill the entity the faulty job stems from.h]h)}(hjǿh]h*Kill the entity the faulty job stems from.}(hjɿhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjſubah}(h]h ]h"]h$]h&]uh1jzhjubjz)}(h8Issue a GPU reset on all faulty rings (driver-specific).h]h)}(hj߿h]h8Issue a GPU reset on all faulty rings (driver-specific).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjݿubah}(h]h ]h"]h$]h&]uh1jzhjubjz)}(hfRe-submit jobs on all schedulers impacted by re-submitting them to the entities which are still alive.h]h)}(hfRe-submit jobs on all schedulers impacted by re-submitting them to the entities which are still alive.h]hfRe-submit jobs on all schedulers impacted by re-submitting them to the entities which are still alive.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1jzhjubjz)}(hMRestart all schedulers that were stopped in step #1 using drm_sched_start(). h]h)}(hLRestart all schedulers that were stopped in step #1 using drm_sched_start().h]hLRestart all schedulers that were stopped in step #1 using drm_sched_start().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1jzhjubeh}(h]h ]h"]h$]h&]j5=j6=j7=hj8=juh1jl:hjubh)}(hXNote that some GPUs have distinct hardware queues but need to reset the GPU globally, which requires extra synchronization between the timeout handlers of different schedulers. One way to achieve this synchronization is to create an ordered workqueue (using alloc_ordered_workqueue()) at the driver level, and pass this queue as drm_sched_init()'s **timeout_wq** parameter. This will guarantee that timeout handlers are executed sequentially.h](hX^Note that some GPUs have distinct hardware queues but need to reset the GPU globally, which requires extra synchronization between the timeout handlers of different schedulers. One way to achieve this synchronization is to create an ordered workqueue (using alloc_ordered_workqueue()) at the driver level, and pass this queue as drm_sched_init()’s }(hj-hhhNhNubj)}(h**timeout_wq**h]h timeout_wq}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubhP parameter. This will guarantee that timeout handlers are executed sequentially.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubh)}(haReturn: The scheduler's status, defined by :c:type:`enum drm_gpu_sched_stat `h](h-Return: The scheduler’s status, defined by }(hjNhhhNhNubh)}(h6:c:type:`enum drm_gpu_sched_stat `h]j)}(hjXh]henum drm_gpu_sched_stat}(hjZhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpu_sched_statuh1hhjhMhjNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjϾubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hb``free_job`` Called once the job's finished fence has been signaled and it's time to clean it up. h](j)}(h ``free_job``h]j)}(hjh]hfree_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubj)}(hhh]h)}(hTCalled once the job's finished fence has been signaled and it's time to clean it up.h]hXCalled once the job’s finished fence has been signaled and it’s time to clean it up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hX``cancel_job`` Used by the scheduler to guarantee remaining jobs' fences get signaled in drm_sched_fini(). Used by the scheduler to cancel all jobs that have not been executed with :c:type:`struct drm_sched_backend_ops `.run_job by the time drm_sched_fini() gets invoked. Drivers need to signal the passed job's hardware fence with an appropriate error code (e.g., -ECANCELED) in this callback. They must not free the job. The scheduler will only call this callback once it stopped calling all other callbacks forever, with the exception of :c:type:`struct drm_sched_backend_ops `.free_job.h](j)}(h``cancel_job``h]j)}(hjh]h cancel_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubj)}(hhh](h)}(h[Used by the scheduler to guarantee remaining jobs' fences get signaled in drm_sched_fini().h]h]Used by the scheduler to guarantee remaining jobs’ fences get signaled in drm_sched_fini().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM hjubh)}(hUsed by the scheduler to cancel all jobs that have not been executed with :c:type:`struct drm_sched_backend_ops `.run_job by the time drm_sched_fini() gets invoked.h](hJUsed by the scheduler to cancel all jobs that have not been executed with }(hjhhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjh]hstruct drm_sched_backend_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_backend_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM hjubh3.run_job by the time drm_sched_fini() gets invoked.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubh)}(hDrivers need to signal the passed job's hardware fence with an appropriate error code (e.g., -ECANCELED) in this callback. They must not free the job.h]hDrivers need to signal the passed job’s hardware fence with an appropriate error code (e.g., -ECANCELED) in this callback. They must not free the job.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubh)}(hThe scheduler will only call this callback once it stopped calling all other callbacks forever, with the exception of :c:type:`struct drm_sched_backend_ops `.free_job.h](hvThe scheduler will only call this callback once it stopped calling all other callbacks forever, with the exception of }(hj0hhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hj:h]hstruct drm_sched_backend_ops}(hj<hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_backend_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj0ubh .free_job.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjGhhubh)}(h9These functions should be implemented in the driver side.h]h9These functions should be implemented in the driver side.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjGhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpu_scheduler (C struct)c.drm_gpu_schedulerhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hdrm_gpu_schedulerh]jR)}(hstruct drm_gpu_schedulerh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_gpu_schedulerh]j)}(hjh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h scheduler instance-specific datah]h scheduler instance-specific data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hX **Definition**:: struct drm_gpu_scheduler { const struct drm_sched_backend_ops *ops; u32 credit_limit; atomic_t credit_count; long timeout; const char *name; u32 num_rqs; struct drm_sched_rq **sched_rq; wait_queue_head_t job_scheduled; atomic64_t job_id_count; struct workqueue_struct *submit_wq; struct workqueue_struct *timeout_wq; struct work_struct work_run_job; struct work_struct work_free_job; struct delayed_work work_tdr; struct list_head pending_list; spinlock_t job_list_lock; int hang_limit; atomic_t *score; atomic_t _score; bool ready; bool free_guilty; bool pause_submit; bool own_submit_wq; struct device *dev; }; **Members** ``ops`` backend operations provided by the driver. ``credit_limit`` the credit limit of this scheduler ``credit_count`` the current credit count of this scheduler ``timeout`` the time after which a job is removed from the scheduler. ``name`` name of the ring for which this scheduler is being used. ``num_rqs`` Number of run-queues. This is at most DRM_SCHED_PRIORITY_COUNT, as there's usually one run-queue per priority, but could be less. ``sched_rq`` An allocated array of run-queues of size **num_rqs**; ``job_scheduled`` once drm_sched_entity_flush() is called the scheduler waits on this wait queue until all the scheduled jobs are finished. ``job_id_count`` used to assign unique id to the each job. ``submit_wq`` workqueue used to queue **work_run_job** and **work_free_job** ``timeout_wq`` workqueue used to queue **work_tdr** ``work_run_job`` work which calls run_job op of each scheduler. ``work_free_job`` work which calls free_job op of each scheduler. ``work_tdr`` schedules a delayed call to **drm_sched_job_timedout** after the timeout interval is over. ``pending_list`` the list of jobs which are currently in the job queue. ``job_list_lock`` lock to protect the pending_list. ``hang_limit`` once the hangs by a job crosses this limit then it is marked guilty and it will no longer be considered for scheduling. ``score`` score to help loadbalancer pick a idle sched ``_score`` score used when the driver doesn't provide one ``ready`` marks if the underlying HW is ready to work ``free_guilty`` A hit to time out handler to free the guilty job. ``pause_submit`` pause queuing of **work_run_job** on **submit_wq** ``own_submit_wq`` scheduler owns allocation of **submit_wq** ``dev`` system :c:type:`struct device `h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubjh)}(hXAstruct drm_gpu_scheduler { const struct drm_sched_backend_ops *ops; u32 credit_limit; atomic_t credit_count; long timeout; const char *name; u32 num_rqs; struct drm_sched_rq **sched_rq; wait_queue_head_t job_scheduled; atomic64_t job_id_count; struct workqueue_struct *submit_wq; struct workqueue_struct *timeout_wq; struct work_struct work_run_job; struct work_struct work_free_job; struct delayed_work work_tdr; struct list_head pending_list; spinlock_t job_list_lock; int hang_limit; atomic_t *score; atomic_t _score; bool ready; bool free_guilty; bool pause_submit; bool own_submit_wq; struct device *dev; };h]hXAstruct drm_gpu_scheduler { const struct drm_sched_backend_ops *ops; u32 credit_limit; atomic_t credit_count; long timeout; const char *name; u32 num_rqs; struct drm_sched_rq **sched_rq; wait_queue_head_t job_scheduled; atomic64_t job_id_count; struct workqueue_struct *submit_wq; struct workqueue_struct *timeout_wq; struct work_struct work_run_job; struct work_struct work_free_job; struct delayed_work work_tdr; struct list_head pending_list; spinlock_t job_list_lock; int hang_limit; atomic_t *score; atomic_t _score; bool ready; bool free_guilty; bool pause_submit; bool own_submit_wq; struct device *dev; };}hj:sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM!hjubh)}(h **Members**h]j)}(hjKh]hMembers}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM<hjubj)}(hhh](j)}(h3``ops`` backend operations provided by the driver. h](j)}(h``ops``h]j)}(hjjh]hops}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjdubj)}(hhh]h)}(h*backend operations provided by the driver.h]h*backend operations provided by the driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubj)}(h4``credit_limit`` the credit limit of this scheduler h](j)}(h``credit_limit``h]j)}(hjh]h credit_limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubj)}(hhh]h)}(h"the credit limit of this schedulerh]h"the credit limit of this scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubj)}(h<``credit_count`` the current credit count of this scheduler h](j)}(h``credit_count``h]j)}(hjh]h credit_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM hjubj)}(hhh]h)}(h*the current credit count of this schedulerh]h*the current credit count of this scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjaubj)}(hF``timeout`` the time after which a job is removed from the scheduler. h](j)}(h ``timeout``h]j)}(hjh]htimeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM!hjubj)}(hhh]h)}(h9the time after which a job is removed from the scheduler.h]h9the time after which a job is removed from the scheduler.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hM!hj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hM!hjaubj)}(hB``name`` name of the ring for which this scheduler is being used. h](j)}(h``name``h]j)}(hjNh]hname}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM"hjHubj)}(hhh]h)}(h8name of the ring for which this scheduler is being used.h]h8name of the ring for which this scheduler is being used.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM"hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchM"hjaubj)}(h``num_rqs`` Number of run-queues. This is at most DRM_SCHED_PRIORITY_COUNT, as there's usually one run-queue per priority, but could be less. h](j)}(h ``num_rqs``h]j)}(hjh]hnum_rqs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM$hjubj)}(hhh]h)}(hNumber of run-queues. This is at most DRM_SCHED_PRIORITY_COUNT, as there's usually one run-queue per priority, but could be less.h]hNumber of run-queues. This is at most DRM_SCHED_PRIORITY_COUNT, as there’s usually one run-queue per priority, but could be less.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjaubj)}(hC``sched_rq`` An allocated array of run-queues of size **num_rqs**; h](j)}(h ``sched_rq``h]j)}(hjh]hsched_rq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM%hjubj)}(hhh]h)}(h5An allocated array of run-queues of size **num_rqs**;h](h)An allocated array of run-queues of size }(hjhhhNhNubj)}(h **num_rqs**h]hnum_rqs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjaubj)}(h``job_scheduled`` once drm_sched_entity_flush() is called the scheduler waits on this wait queue until all the scheduled jobs are finished. h](j)}(h``job_scheduled``h]j)}(hj h]h job_scheduled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM(hjubj)}(hhh]h)}(hyonce drm_sched_entity_flush() is called the scheduler waits on this wait queue until all the scheduled jobs are finished.h]hyonce drm_sched_entity_flush() is called the scheduler waits on this wait queue until all the scheduled jobs are finished.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM&hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hM(hjaubj)}(h;``job_id_count`` used to assign unique id to the each job. h](j)}(h``job_id_count``h]j)}(hjFh]h job_id_count}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM)hj@ubj)}(hhh]h)}(h)used to assign unique id to the each job.h]h)used to assign unique id to the each job.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hM)hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hM)hjaubj)}(hM``submit_wq`` workqueue used to queue **work_run_job** and **work_free_job** h](j)}(h ``submit_wq``h]j)}(hjh]h submit_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM*hjyubj)}(hhh]h)}(h>workqueue used to queue **work_run_job** and **work_free_job**h](hworkqueue used to queue }(hjhhhNhNubj)}(h**work_run_job**h]h work_run_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**work_free_job**h]h work_free_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjaubj)}(h4``timeout_wq`` workqueue used to queue **work_tdr** h](j)}(h``timeout_wq``h]j)}(hjh]h timeout_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM+hjubj)}(hhh]h)}(h$workqueue used to queue **work_tdr**h](hworkqueue used to queue }(hjhhhNhNubj)}(h **work_tdr**h]hwork_tdr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjaubj)}(h@``work_run_job`` work which calls run_job op of each scheduler. h](j)}(h``work_run_job``h]j)}(hjh]h work_run_job}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM,hjubj)}(hhh]h)}(h.work which calls run_job op of each scheduler.h]h.work which calls run_job op of each scheduler.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM,hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hM,hjaubj)}(hB``work_free_job`` work which calls free_job op of each scheduler. h](j)}(h``work_free_job``h]j)}(hjXh]h work_free_job}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM-hjRubj)}(hhh]h)}(h/work which calls free_job op of each scheduler.h]h/work which calls free_job op of each scheduler.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhM-hjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhM-hjaubj)}(hh``work_tdr`` schedules a delayed call to **drm_sched_job_timedout** after the timeout interval is over. h](j)}(h ``work_tdr``h]j)}(hjh]hwork_tdr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM/hjubj)}(hhh]h)}(hZschedules a delayed call to **drm_sched_job_timedout** after the timeout interval is over.h](hschedules a delayed call to }(hjhhhNhNubj)}(h**drm_sched_job_timedout**h]hdrm_sched_job_timedout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ after the timeout interval is over.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjaubj)}(hH``pending_list`` the list of jobs which are currently in the job queue. h](j)}(h``pending_list``h]j)}(hjh]h pending_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM0hjubj)}(hhh]h)}(h6the list of jobs which are currently in the job queue.h]h6the list of jobs which are currently in the job queue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjaubj)}(h4``job_list_lock`` lock to protect the pending_list. h](j)}(h``job_list_lock``h]j)}(hjh]h job_list_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM1hjubj)}(hhh]h)}(h!lock to protect the pending_list.h]h!lock to protect the pending_list.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM1hj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hM1hjaubj)}(h``hang_limit`` once the hangs by a job crosses this limit then it is marked guilty and it will no longer be considered for scheduling. h](j)}(h``hang_limit``h]j)}(hjOh]h hang_limit}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM3hjIubj)}(hhh]h)}(hwonce the hangs by a job crosses this limit then it is marked guilty and it will no longer be considered for scheduling.h]hwonce the hangs by a job crosses this limit then it is marked guilty and it will no longer be considered for scheduling.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM2hjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhM3hjaubj)}(h7``score`` score to help loadbalancer pick a idle sched h](j)}(h ``score``h]j)}(hjh]hscore}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM4hjubj)}(hhh]h)}(h,score to help loadbalancer pick a idle schedh]h,score to help loadbalancer pick a idle sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjaubj)}(h:``_score`` score used when the driver doesn't provide one h](j)}(h ``_score``h]j)}(hjh]h_score}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM5hjubj)}(hhh]h)}(h.score used when the driver doesn't provide oneh]h0score used when the driver doesn’t provide one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjaubj)}(h6``ready`` marks if the underlying HW is ready to work h](j)}(h ``ready``h]j)}(hjh]hready}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM6hjubj)}(hhh]h)}(h+marks if the underlying HW is ready to workh]h+marks if the underlying HW is ready to work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjaubj)}(hB``free_guilty`` A hit to time out handler to free the guilty job. h](j)}(h``free_guilty``h]j)}(hj4h]h free_guilty}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM7hj.ubj)}(hhh]h)}(h1A hit to time out handler to free the guilty job.h]h1A hit to time out handler to free the guilty job.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM7hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM7hjaubj)}(hD``pause_submit`` pause queuing of **work_run_job** on **submit_wq** h](j)}(h``pause_submit``h]j)}(hjmh]h pause_submit}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM8hjgubj)}(hhh]h)}(h2pause queuing of **work_run_job** on **submit_wq**h](hpause queuing of }(hjhhhNhNubj)}(h**work_run_job**h]h work_run_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh on }(hjhhhNhNubj)}(h **submit_wq**h]h submit_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjaubj)}(h=``own_submit_wq`` scheduler owns allocation of **submit_wq** h](j)}(h``own_submit_wq``h]j)}(hjh]h own_submit_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM9hjubj)}(hhh]h)}(h*scheduler owns allocation of **submit_wq**h](hscheduler owns allocation of }(hjhhhNhNubj)}(h **submit_wq**h]h submit_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjaubj)}(h/``dev`` system :c:type:`struct device `h](j)}(h``dev``h]j)}(hj h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM9hjubj)}(hhh]h)}(h'system :c:type:`struct device `h](hsystem }(hj&hhhNhNubh)}(h :c:type:`struct device `h]j)}(hj0h]h struct device}(hj2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadeviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM:hj&ubeh}(h]h ]h"]h$]h&]uh1hhjMhM:hj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hM9hjaubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubh)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM=hjGhhubh)}(h4One scheduler is implemented for each hardware ring.h]h4One scheduler is implemented for each hardware ring.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM:hjGhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_init_args (C struct)c.drm_sched_init_argshNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hdrm_sched_init_argsh]jR)}(hstruct drm_sched_init_argsh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM?ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM?ubj{)}(hdrm_sched_init_argsh]j)}(hjh]hdrm_sched_init_args}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM?ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhM?ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM?hjhhubj)}(hhh]h)}(h/parameters for initializing a DRM GPU schedulerh]h/parameters for initializing a DRM GPU scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMYhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM?ubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hX**Definition**:: struct drm_sched_init_args { const struct drm_sched_backend_ops *ops; struct workqueue_struct *submit_wq; struct workqueue_struct *timeout_wq; u32 num_rqs; u32 credit_limit; unsigned int hang_limit; long timeout; atomic_t *score; const char *name; struct device *dev; }; **Members** ``ops`` backend operations provided by the driver ``submit_wq`` workqueue to use for submission. If NULL, an ordered wq is allocated and used. ``timeout_wq`` workqueue to use for timeout work. If NULL, the system_wq is used. ``num_rqs`` Number of run-queues. This may be at most DRM_SCHED_PRIORITY_COUNT, as there's usually one run-queue per priority, but may be less. ``credit_limit`` the number of credits this scheduler can hold from all jobs ``hang_limit`` number of times to allow a job to hang before dropping it. This mechanism is DEPRECATED. Set it to 0. ``timeout`` timeout value in jiffies for submitted jobs. ``score`` score atomic shared with other schedulers. May be NULL. ``name`` name (typically the driver's name). Used for debugging ``dev`` associated device. Used for debuggingh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM]hj ubjh)}(hX6struct drm_sched_init_args { const struct drm_sched_backend_ops *ops; struct workqueue_struct *submit_wq; struct workqueue_struct *timeout_wq; u32 num_rqs; u32 credit_limit; unsigned int hang_limit; long timeout; atomic_t *score; const char *name; struct device *dev; };h]hX6struct drm_sched_init_args { const struct drm_sched_backend_ops *ops; struct workqueue_struct *submit_wq; struct workqueue_struct *timeout_wq; u32 num_rqs; u32 credit_limit; unsigned int hang_limit; long timeout; atomic_t *score; const char *name; struct device *dev; };}hj,sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM_hj ubh)}(h **Members**h]j)}(hj=h]hMembers}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMlhj ubj)}(hhh](j)}(h2``ops`` backend operations provided by the driver h](j)}(h``ops``h]j)}(hj\h]hops}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM\hjVubj)}(hhh]h)}(h)backend operations provided by the driverh]h)backend operations provided by the driver}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM\hjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhM\hjSubj)}(h]``submit_wq`` workqueue to use for submission. If NULL, an ordered wq is allocated and used. h](j)}(h ``submit_wq``h]j)}(hjh]h submit_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM^hjubj)}(hhh]h)}(hNworkqueue to use for submission. If NULL, an ordered wq is allocated and used.h]hNworkqueue to use for submission. If NULL, an ordered wq is allocated and used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjSubj)}(hR``timeout_wq`` workqueue to use for timeout work. If NULL, the system_wq is used. h](j)}(h``timeout_wq``h]j)}(hjh]h timeout_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMehjubj)}(hhh]h)}(hBworkqueue to use for timeout work. If NULL, the system_wq is used.h]hBworkqueue to use for timeout work. If NULL, the system_wq is used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjSubj)}(h``num_rqs`` Number of run-queues. This may be at most DRM_SCHED_PRIORITY_COUNT, as there's usually one run-queue per priority, but may be less. h](j)}(h ``num_rqs``h]j)}(hjh]hnum_rqs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM`hjubj)}(hhh]h)}(hNumber of run-queues. This may be at most DRM_SCHED_PRIORITY_COUNT, as there's usually one run-queue per priority, but may be less.h]hNumber of run-queues. This may be at most DRM_SCHED_PRIORITY_COUNT, as there’s usually one run-queue per priority, but may be less.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjSubj)}(hM``credit_limit`` the number of credits this scheduler can hold from all jobs h](j)}(h``credit_limit``h]j)}(hjBh]h credit_limit}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMahj<ubj)}(hhh]h)}(h;the number of credits this scheduler can hold from all jobsh]h;the number of credits this scheduler can hold from all jobs}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMahjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMahjSubj)}(hu``hang_limit`` number of times to allow a job to hang before dropping it. This mechanism is DEPRECATED. Set it to 0. h](j)}(h``hang_limit``h]j)}(hj{h]h hang_limit}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMchjuubj)}(hhh]h)}(henumber of times to allow a job to hang before dropping it. This mechanism is DEPRECATED. Set it to 0.h]henumber of times to allow a job to hang before dropping it. This mechanism is DEPRECATED. Set it to 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMbhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMchjSubj)}(h9``timeout`` timeout value in jiffies for submitted jobs. h](j)}(h ``timeout``h]j)}(hjh]htimeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMdhjubj)}(hhh]h)}(h,timeout value in jiffies for submitted jobs.h]h,timeout value in jiffies for submitted jobs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjSubj)}(hB``score`` score atomic shared with other schedulers. May be NULL. h](j)}(h ``score``h]j)}(hjh]hscore}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMfhjubj)}(hhh]h)}(h7score atomic shared with other schedulers. May be NULL.h]h7score atomic shared with other schedulers. May be NULL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjSubj)}(h@``name`` name (typically the driver's name). Used for debugging h](j)}(h``name``h]j)}(hj'h]hname}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMghj!ubj)}(hhh]h)}(h6name (typically the driver's name). Used for debuggingh]h8name (typically the driver’s name). Used for debugging}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMghj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMghjSubj)}(h-``dev`` associated device. Used for debuggingh](j)}(h``dev``h]j)}(hj`h]hdev}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMghjZubj)}(hhh]h)}(h%associated device. Used for debuggingh]h%associated device. Used for debugging}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMghjSubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_sched_pending_job_iter (C struct)c.drm_sched_pending_job_iterhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hdrm_sched_pending_job_iterh]jR)}(h!struct drm_sched_pending_job_iterh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMnubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMnubj{)}(hdrm_sched_pending_job_iterh]j)}(hjh]hdrm_sched_pending_job_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMnubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMnubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMnhjhhubj)}(hhh]h)}(h(DRM scheduler pending job iterator stateh]h(DRM scheduler pending job iterator state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMnubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(h**Definition**:: struct drm_sched_pending_job_iter { struct drm_gpu_scheduler *sched; }; **Members** ``sched`` DRM scheduler associated with pending job iteratorh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubjh)}(hKstruct drm_sched_pending_job_iter { struct drm_gpu_scheduler *sched; };h]hKstruct drm_sched_pending_job_iter { struct drm_gpu_scheduler *sched; };}hj9sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubh)}(h **Members**h]j)}(hjJh]hMembers}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubj)}(hhh]j)}(h<``sched`` DRM scheduler associated with pending job iteratorh](j)}(h ``sched``h]j)}(hjih]hsched}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjcubj)}(hhh]h)}(h2DRM scheduler associated with pending job iteratorh]h2DRM scheduler associated with pending job iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_sched_for_each_pending_job (C macro) c.drm_sched_for_each_pending_jobhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hdrm_sched_for_each_pending_jobh]jR)}(hdrm_sched_for_each_pending_jobh]j{)}(hdrm_sched_for_each_pending_jobh]j)}(hjh]hdrm_sched_for_each_pending_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubh)}(h=``drm_sched_for_each_pending_job (__job, __sched, __entity)``h]j)}(hjh]h9drm_sched_for_each_pending_job (__job, __sched, __entity)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjGhhubj)}(h+Iterator for each pending job in scheduler h]h)}(h*Iterator for each pending job in schedulerh]h*Iterator for each pending job in scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj!hMhjGhhubj)}(hXJ**Parameters** ``__job`` Current pending job being iterated over ``__sched`` DRM scheduler to iterate over pending jobs ``__entity`` DRM scheduler entity to filter jobs, NULL indicates no filter **Description** Iterator for each pending job in scheduler, filtering on an entity, and enforcing scheduler is fully stoppedh](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj(ubj)}(hhh](j)}(h2``__job`` Current pending job being iterated over h](j)}(h ``__job``h]j)}(hjMh]h__job}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjGubj)}(hhh]h)}(h'Current pending job being iterated overh]h'Current pending job being iterated over}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjDubj)}(h7``__sched`` DRM scheduler to iterate over pending jobs h](j)}(h ``__sched``h]j)}(hjh]h__sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubj)}(hhh]h)}(h*DRM scheduler to iterate over pending jobsh]h*DRM scheduler to iterate over pending jobs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubj)}(hK``__entity`` DRM scheduler entity to filter jobs, NULL indicates no filter h](j)}(h ``__entity``h]j)}(hjh]h__entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubj)}(hhh]h)}(h=DRM scheduler entity to filter jobs, NULL indicates no filterh]h=DRM scheduler entity to filter jobs, NULL indicates no filter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubeh}(h]h ]h"]h$]h&]uh1jhj(ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj(ubh)}(hlIterator for each pending job in scheduler, filtering on an entity, and enforcing scheduler is fully stoppedh]hlIterator for each pending job in scheduler, filtering on an entity, and enforcing scheduler is fully stopped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_sched_tdr_queue_imm (C function)c.drm_sched_tdr_queue_immhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h>void drm_sched_tdr_queue_imm (struct drm_gpu_scheduler *sched)h]jR)}(h=void drm_sched_tdr_queue_imm(struct drm_gpu_scheduler *sched)h](j)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;hhhjMhMubj{)}(hdrm_sched_tdr_queue_immh]j)}(hdrm_sched_tdr_queue_immh]hdrm_sched_tdr_queue_imm}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj;hhhjMhMubj)}(h!(struct drm_gpu_scheduler *sched)h]j)}(hstruct drm_gpu_scheduler *schedh](jX)}(hjh]hstruct}(hj|hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjxubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjxubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jbsbc.drm_sched_tdr_queue_immasbuh1hhjxubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjxubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjxubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubah}(h]h ]h"]h$]h&]jjuh1jhj;hhhjMhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj7hhhjMhMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1jKhjMhMhj4hhubj)}(hhh]jz)}(hhh]jz)}(h%immediately start job timeout handlerh]h)}(hjh]h%immediately start job timeout handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubah}(h]h ]h"]h$]h&]uh1jzhjhhhjhNubah}(h]h ]h"]h$]h&]jE{jF{uh1jzhjhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj4hhhjMhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jFhhhjGhNhNubj)}(h**Parameters** ``struct drm_gpu_scheduler *sched`` scheduler for which the timeout handling should be started. **Description** Start timeout handling immediately for the named scheduler.h](h)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj-ubj)}(hhh]j)}(h```struct drm_gpu_scheduler *sched`` scheduler for which the timeout handling should be started. h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjRh]hstruct drm_gpu_scheduler *sched}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjLubj)}(hhh]h)}(h;scheduler for which the timeout handling should be started.h]h;scheduler for which the timeout handling should be started.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj-ubh)}(h;Start timeout handling immediately for the named scheduler.h]h;Start timeout handling immediately for the named scheduler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_fault (C function)c.drm_sched_faulthNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h6void drm_sched_fault (struct drm_gpu_scheduler *sched)h]jR)}(h5void drm_sched_fault(struct drm_gpu_scheduler *sched)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_sched_faulth]j)}(hdrm_sched_faulth]hdrm_sched_fault}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h!(struct drm_gpu_scheduler *sched)h]j)}(hstruct drm_gpu_scheduler *schedh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj/modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_faultasbuh1hhj ubjj)}(h h]h }(hjMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj[hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hschedh]hsched}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h!immediately start timeout handlerh]h!immediately start timeout handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(h**Parameters** ``struct drm_gpu_scheduler *sched`` scheduler where the timeout handling should be started. **Description** Start timeout handling immediately when the driver detects a hardware fault.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]j)}(h\``struct drm_gpu_scheduler *sched`` scheduler where the timeout handling should be started. h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(h7scheduler where the timeout handling should be started.h]h7scheduler where the timeout handling should be started.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hLStart timeout handling immediately when the driver detects a hardware fault.h]hLStart timeout handling immediately when the driver detects a hardware fault.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_sched_suspend_timeout (C function)c.drm_sched_suspend_timeouthNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hIunsigned long drm_sched_suspend_timeout (struct drm_gpu_scheduler *sched)h]jR)}(hHunsigned long drm_sched_suspend_timeout(struct drm_gpu_scheduler *sched)h](j)}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjbhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOhhhjahMubj)}(hlongh]hlong}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjahMubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOhhhjahMubj{)}(hdrm_sched_suspend_timeouth]j)}(hdrm_sched_suspend_timeouth]hdrm_sched_suspend_timeout}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhhjahMubj)}(h!(struct drm_gpu_scheduler *sched)h]j)}(hstruct drm_gpu_scheduler *schedh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_suspend_timeoutasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjKhhhjahMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jKhjahMhjHhhubj)}(hhh]h)}(hSuspend scheduler job timeouth]hSuspend scheduler job timeout}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj,hhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1jFhhhjGhNhNubj)}(hXA**Parameters** ``struct drm_gpu_scheduler *sched`` scheduler instance for which to suspend the timeout **Description** Suspend the delayed work timeout for the scheduler. This is done by modifying the delayed work timeout to an arbitrary large value, MAX_SCHEDULE_TIMEOUT in this case. Returns the timeout remainingh](h)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjKubj)}(hhh]j)}(hX``struct drm_gpu_scheduler *sched`` scheduler instance for which to suspend the timeout h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjph]hstruct drm_gpu_scheduler *sched}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjjubj)}(hhh]h)}(h3scheduler instance for which to suspend the timeouth]h3scheduler instance for which to suspend the timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjKubh)}(hSuspend the delayed work timeout for the scheduler. This is done by modifying the delayed work timeout to an arbitrary large value, MAX_SCHEDULE_TIMEOUT in this case.h]hSuspend the delayed work timeout for the scheduler. This is done by modifying the delayed work timeout to an arbitrary large value, MAX_SCHEDULE_TIMEOUT in this case.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjKubh)}(hReturns the timeout remainingh]hReturns the timeout remaining}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_sched_resume_timeout (C function)c.drm_sched_resume_timeouthNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hXvoid drm_sched_resume_timeout (struct drm_gpu_scheduler *sched, unsigned long remaining)h]jR)}(hWvoid drm_sched_resume_timeout(struct drm_gpu_scheduler *sched, unsigned long remaining)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hMubj{)}(hdrm_sched_resume_timeouth]j)}(hdrm_sched_resume_timeouth]hdrm_sched_resume_timeout}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMubj)}(h:(struct drm_gpu_scheduler *sched, unsigned long remaining)h](j)}(hstruct drm_gpu_scheduler *schedh](jX)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj8ubjj)}(h h]h }(hjIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8ubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj\modnameN classnameNj+j.)}j1]j4)}j'j"sbc.drm_sched_resume_timeoutasbuh1hhj8ubjj)}(h h]h }(hjzhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj8ubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(hunsigned long remainingh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h remainingh]h remaining}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hMhjhhubj)}(hhh]h)}(hResume scheduler job timeouth]hResume scheduler job timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1jFhhhjGhNhNubj)}(h**Parameters** ``struct drm_gpu_scheduler *sched`` scheduler instance for which to resume the timeout ``unsigned long remaining`` remaining timeout **Description** Resume the delayed work timeout for the scheduler.h](h)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj,ubj)}(hhh](j)}(hW``struct drm_gpu_scheduler *sched`` scheduler instance for which to resume the timeout h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjQh]hstruct drm_gpu_scheduler *sched}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjKubj)}(hhh]h)}(h2scheduler instance for which to resume the timeouth]h2scheduler instance for which to resume the timeout}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjHubj)}(h.``unsigned long remaining`` remaining timeout h](j)}(h``unsigned long remaining``h]j)}(hjh]hunsigned long remaining}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(hremaining timeouth]hremaining timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjHubeh}(h]h ]h"]h$]h&]uh1jhj,ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj,ubh)}(h2Resume the delayed work timeout for the scheduler.h]h2Resume the delayed work timeout for the scheduler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_stop (C function)c.drm_sched_stophNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hPvoid drm_sched_stop (struct drm_gpu_scheduler *sched, struct drm_sched_job *bad)h]jR)}(hOvoid drm_sched_stop(struct drm_gpu_scheduler *sched, struct drm_sched_job *bad)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMFubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMFubj{)}(hdrm_sched_stoph]j)}(hdrm_sched_stoph]hdrm_sched_stop}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMFubj)}(h<(struct drm_gpu_scheduler *sched, struct drm_sched_job *bad)h](j)}(hstruct drm_gpu_scheduler *schedh](jX)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjCubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjCubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjgmodnameN classnameNj+j.)}j1]j4)}j'j-sbc.drm_sched_stopasbuh1hhjCubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjCubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjCubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hstruct drm_sched_job *badh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_sched_stopasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hbadh]hbad}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMFubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMFubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMFhjhhubj)}(hhh]h)}(hstop the schedulerh]hstop the scheduler}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMFhj7hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1jFhhhjGhNhNubj)}(hXb**Parameters** ``struct drm_gpu_scheduler *sched`` scheduler instance ``struct drm_sched_job *bad`` job which caused the time out **Description** Stop the scheduler and also removes and frees all completed jobs. **Note** bad job will not be freed as it might be used later and so it's callers responsibility to release it manually if it's not part of the pending list any more. This function is typically used for reset recovery (see the docu of drm_sched_backend_ops.timedout_job() for details). Do not call it for scheduler teardown, i.e., before calling drm_sched_fini(). As it's only used for reset recovery, drivers must not call this function in their :c:type:`struct drm_sched_backend_ops `.timedout_job callback when they skip a reset using :c:type:`enum drm_gpu_sched_stat `.DRM_GPU_SCHED_STAT_NO_HANG.h](h)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMJhjVubj)}(hhh](j)}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hj{h]hstruct drm_gpu_scheduler *sched}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMHhjuubj)}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjrubj)}(h<``struct drm_sched_job *bad`` job which caused the time out h](j)}(h``struct drm_sched_job *bad``h]j)}(hjh]hstruct drm_sched_job *bad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMIhjubj)}(hhh]h)}(hjob which caused the time outh]hjob which caused the time out}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjrubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMKhjVubh)}(hAStop the scheduler and also removes and frees all completed jobs.h]hAStop the scheduler and also removes and frees all completed jobs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMJhjVubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMLhjVubh)}(hbad job will not be freed as it might be used later and so it's callers responsibility to release it manually if it's not part of the pending list any more.h]hbad job will not be freed as it might be used later and so it’s callers responsibility to release it manually if it’s not part of the pending list any more.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMLhjVubh)}(hThis function is typically used for reset recovery (see the docu of drm_sched_backend_ops.timedout_job() for details). Do not call it for scheduler teardown, i.e., before calling drm_sched_fini().h]hThis function is typically used for reset recovery (see the docu of drm_sched_backend_ops.timedout_job() for details). Do not call it for scheduler teardown, i.e., before calling drm_sched_fini().}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMPhjVubh)}(hXAs it's only used for reset recovery, drivers must not call this function in their :c:type:`struct drm_sched_backend_ops `.timedout_job callback when they skip a reset using :c:type:`enum drm_gpu_sched_stat `.DRM_GPU_SCHED_STAT_NO_HANG.h](hUAs it’s only used for reset recovery, drivers must not call this function in their }(hjJhhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjTh]hstruct drm_sched_backend_ops}(hjVhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_backend_opsuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMThjJubh4.timedout_job callback when they skip a reset using }(hjJhhhNhNubh)}(h6:c:type:`enum drm_gpu_sched_stat `h]j)}(hjxh]henum drm_gpu_sched_stat}(hjzhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpu_sched_statuh1hhjqhMThjJubh.DRM_GPU_SCHED_STAT_NO_HANG.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqhMThjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_start (C function)c.drm_sched_starthNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hAvoid drm_sched_start (struct drm_gpu_scheduler *sched, int errno)h]jR)}(h@void drm_sched_start(struct drm_gpu_scheduler *sched, int errno)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_sched_starth]j)}(hdrm_sched_starth]hdrm_sched_start}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h,(struct drm_gpu_scheduler *sched, int errno)h](j)}(hstruct drm_gpu_scheduler *schedh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_startasbuh1hhjubjj)}(h h]h }(hj:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjHhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hschedh]hsched}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int errnoh](j)}(hinth]hint}(hjnhhhNhNubah}(h]Lh ]jah"]h$]h&]uh1jhjjubjj)}(h h]h }(hj|hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjjubj)}(herrnoh]herrno}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hrecover jobs after a reseth]hrecover jobs after a reset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hX**Parameters** ``struct drm_gpu_scheduler *sched`` scheduler instance ``int errno`` error to set on the pending fences **Description** This function is typically used for reset recovery (see the docu of drm_sched_backend_ops.timedout_job() for details). Do not call it for scheduler startup. The scheduler itself is fully operational after drm_sched_init() succeeded. As it's only used for reset recovery, drivers must not call this function in their :c:type:`struct drm_sched_backend_ops `.timedout_job callback when they skip a reset using :c:type:`enum drm_gpu_sched_stat `.DRM_GPU_SCHED_STAT_NO_HANG.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh](j)}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h1``int errno`` error to set on the pending fences h](j)}(h ``int errno``h]j)}(hj.h]h int errno}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj(ubj)}(hhh]h)}(h"error to set on the pending fencesh]h"error to set on the pending fences}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hThis function is typically used for reset recovery (see the docu of drm_sched_backend_ops.timedout_job() for details). Do not call it for scheduler startup. The scheduler itself is fully operational after drm_sched_init() succeeded.h]hThis function is typically used for reset recovery (see the docu of drm_sched_backend_ops.timedout_job() for details). Do not call it for scheduler startup. The scheduler itself is fully operational after drm_sched_init() succeeded.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hXAs it's only used for reset recovery, drivers must not call this function in their :c:type:`struct drm_sched_backend_ops `.timedout_job callback when they skip a reset using :c:type:`enum drm_gpu_sched_stat `.DRM_GPU_SCHED_STAT_NO_HANG.h](hUAs it’s only used for reset recovery, drivers must not call this function in their }(hjhhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjh]hstruct drm_sched_backend_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_backend_opsuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh4.timedout_job callback when they skip a reset using }(hjhhhNhNubh)}(h6:c:type:`enum drm_gpu_sched_stat `h]j)}(hjh]henum drm_gpu_sched_stat}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpu_sched_statuh1hhjhMhjubh.DRM_GPU_SCHED_STAT_NO_HANG.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_sched_resubmit_jobs (C function)c.drm_sched_resubmit_jobshNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h>void drm_sched_resubmit_jobs (struct drm_gpu_scheduler *sched)h]jR)}(h=void drm_sched_resubmit_jobs(struct drm_gpu_scheduler *sched)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_sched_resubmit_jobsh]j)}(hdrm_sched_resubmit_jobsh]hdrm_sched_resubmit_jobs}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h!(struct drm_gpu_scheduler *sched)h]j)}(hstruct drm_gpu_scheduler *schedh](jX)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj<ubjj)}(h h]h }(hjMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<ubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj`modnameN classnameNj+j.)}j1]j4)}j'j&sbc.drm_sched_resubmit_jobsasbuh1hhj<ubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj<ubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h"Deprecated, don't use in new code!h]h$Deprecated, don’t use in new code!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hX**Parameters** ``struct drm_gpu_scheduler *sched`` scheduler instance **Description** Re-submitting jobs was a concept AMD came up as cheap way to implement recovery after a job timeout. This turned out to be not working very well. First of all there are many problem with the dma_fence implementation and requirements. Either the implementation is risking deadlocks with core memory management or violating documented implementation details of the dma_fence object. Drivers can still save and restore their state for recovery operations, but we shouldn't make this a general scheduler feature around the dma_fence interface. The suggested driver-side replacement is to use drm_sched_for_each_pending_job() after stopping the scheduler and implement their own recovery operations.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]j)}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hdRe-submitting jobs was a concept AMD came up as cheap way to implement recovery after a job timeout.h]hdRe-submitting jobs was a concept AMD came up as cheap way to implement recovery after a job timeout.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hXThis turned out to be not working very well. First of all there are many problem with the dma_fence implementation and requirements. Either the implementation is risking deadlocks with core memory management or violating documented implementation details of the dma_fence object.h]hXThis turned out to be not working very well. First of all there are many problem with the dma_fence implementation and requirements. Either the implementation is risking deadlocks with core memory management or violating documented implementation details of the dma_fence object.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hX9Drivers can still save and restore their state for recovery operations, but we shouldn't make this a general scheduler feature around the dma_fence interface. The suggested driver-side replacement is to use drm_sched_for_each_pending_job() after stopping the scheduler and implement their own recovery operations.h]hX;Drivers can still save and restore their state for recovery operations, but we shouldn’t make this a general scheduler feature around the dma_fence interface. The suggested driver-side replacement is to use drm_sched_for_each_pending_job() after stopping the scheduler and implement their own recovery operations.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_job_init (C function)c.drm_sched_job_inithNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hint drm_sched_job_init (struct drm_sched_job *job, struct drm_sched_entity *entity, u32 credits, void *owner, uint64_t drm_client_id)h]jR)}(hint drm_sched_job_init(struct drm_sched_job *job, struct drm_sched_entity *entity, u32 credits, void *owner, uint64_t drm_client_id)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_sched_job_inith]j)}(hdrm_sched_job_inith]hdrm_sched_job_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hn(struct drm_sched_job *job, struct drm_sched_entity *entity, u32 credits, void *owner, uint64_t drm_client_id)h](j)}(hstruct drm_sched_job *jobh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_job_initasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj+hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjobh]hjob}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_sched_entity *entityh](jX)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjMubjj)}(h h]h }(hj^hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjMubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjqmodnameN classnameNj+j.)}j1]jc.drm_sched_job_initasbuh1hhjMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjMubj)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 creditsh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_sched_job_initasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hcreditsh]hcredits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *ownerh](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj%hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hownerh]howner}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(huint64_t drm_client_idh](h)}(hhh]j)}(huint64_th]huint64_t}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjPmodnameN classnameNj+j.)}j1]jc.drm_sched_job_initasbuh1hhjGubjj)}(h h]h }(hjlhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjGubj)}(h drm_client_idh]h drm_client_id}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hinit a scheduler jobh]hinit a scheduler job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hX**Parameters** ``struct drm_sched_job *job`` scheduler job to init ``struct drm_sched_entity *entity`` scheduler entity to use ``u32 credits`` the number of credits this job contributes to the schedulers credit limit ``void *owner`` job owner for debugging ``uint64_t drm_client_id`` :c:type:`struct drm_file `.client_id of the owner (used by trace events) **Description** Refer to drm_sched_entity_push_job() documentation for locking considerations. Drivers must make sure drm_sched_job_cleanup() if this function returns successfully, even when **job** is aborted before drm_sched_job_arm() is called. Note that this function does not assign a valid value to each struct member of struct drm_sched_job. Take a look at that struct's documentation to see who sets which struct member with what lifetime. WARNING: amdgpu abuses :c:type:`drm_sched.ready ` to signal when the hardware has died, which can mean that there's no valid runqueue for a **entity**. This function returns -ENOENT in this case (which probably should be -EIO as a more meanigful return value). Returns 0 for success, negative error code otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hjubj)}(hhh](j)}(h4``struct drm_sched_job *job`` scheduler job to init h](j)}(h``struct drm_sched_job *job``h]j)}(hjh]hstruct drm_sched_job *job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(hscheduler job to inith]hscheduler job to init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``struct drm_sched_entity *entity`` scheduler entity to use h](j)}(h#``struct drm_sched_entity *entity``h]j)}(hjh]hstruct drm_sched_entity *entity}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(hscheduler entity to useh]hscheduler entity to use}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(hZ``u32 credits`` the number of credits this job contributes to the schedulers credit limit h](j)}(h``u32 credits``h]j)}(hjWh]h u32 credits}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hjQubj)}(hhh]h)}(hIthe number of credits this job contributes to the schedulers credit limith]hIthe number of credits this job contributes to the schedulers credit limit}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhM hjubj)}(h(``void *owner`` job owner for debugging h](j)}(h``void *owner``h]j)}(hjh]h void *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hjubj)}(hhh]h)}(hjob owner for debuggingh]hjob owner for debugging}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hn``uint64_t drm_client_id`` :c:type:`struct drm_file `.client_id of the owner (used by trace events) h](j)}(h``uint64_t drm_client_id``h]j)}(hjh]huint64_t drm_client_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hjubj)}(hhh]h)}(hR:c:type:`struct drm_file `.client_id of the owner (used by trace events)h](h)}(h$:c:type:`struct drm_file `h]j)}(hjh]hstruct drm_file}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_fileuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hjubh..client_id of the owner (used by trace events)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hNRefer to drm_sched_entity_push_job() documentation for locking considerations.h]hNRefer to drm_sched_entity_push_job() documentation for locking considerations.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hDrivers must make sure drm_sched_job_cleanup() if this function returns successfully, even when **job** is aborted before drm_sched_job_arm() is called.h](h`Drivers must make sure drm_sched_job_cleanup() if this function returns successfully, even when }(hjJhhhNhNubj)}(h**job**h]hjob}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh1 is aborted before drm_sched_job_arm() is called.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hNote that this function does not assign a valid value to each struct member of struct drm_sched_job. Take a look at that struct's documentation to see who sets which struct member with what lifetime.h]hNote that this function does not assign a valid value to each struct member of struct drm_sched_job. Take a look at that struct’s documentation to see who sets which struct member with what lifetime.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hXWARNING: amdgpu abuses :c:type:`drm_sched.ready ` to signal when the hardware has died, which can mean that there's no valid runqueue for a **entity**. This function returns -ENOENT in this case (which probably should be -EIO as a more meanigful return value).h](hWARNING: amdgpu abuses }(hjzhhhNhNubh)}(h%:c:type:`drm_sched.ready `h]j)}(hjh]hdrm_sched.ready}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_scheduh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjzubh] to signal when the hardware has died, which can mean that there’s no valid runqueue for a }(hjzhhhNhNubj)}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubhn. This function returns -ENOENT in this case (which probably should be -EIO as a more meanigful return value).}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h5Returns 0 for success, negative error code otherwise.h]h5Returns 0 for success, negative error code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_job_arm (C function)c.drm_sched_job_armhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h2void drm_sched_job_arm (struct drm_sched_job *job)h]jR)}(h1void drm_sched_job_arm(struct drm_sched_job *job)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMJubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMJubj{)}(hdrm_sched_job_armh]j)}(hdrm_sched_job_armh]hdrm_sched_job_arm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMJubj)}(h(struct drm_sched_job *job)h]j)}(hstruct drm_sched_job *jobh](jX)}(hjh]hstruct}(hj*hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj&ubjj)}(h h]h }(hj7hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&ubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjJmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_job_armasbuh1hhj&ubjj)}(h h]h }(hjhhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&ubjH)}(hjKh]h*}(hjvhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj&ubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMJubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMJhjhhubj)}(hhh]h)}(h!arm a scheduler job for executionh]h!arm a scheduler job for execution}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMJhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hX**Parameters** ``struct drm_sched_job *job`` scheduler job to arm **Description** This arms a scheduler job for execution. Specifically it initializes the :c:type:`drm_sched_job.s_fence ` of **job**, so that it can be attached to struct dma_resv or other places that need to track the completion of this job. It also initializes sequence numbers, which are fundamental for fence ordering. Refer to drm_sched_entity_push_job() documentation for locking considerations. Once this function was called, you *must* submit **job** with drm_sched_entity_push_job(). This can only be called if drm_sched_job_init() succeeded.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMNhjubj)}(hhh]j)}(h3``struct drm_sched_job *job`` scheduler job to arm h](j)}(h``struct drm_sched_job *job``h]j)}(hjh]hstruct drm_sched_job *job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMKhjubj)}(hhh]h)}(hscheduler job to armh]hscheduler job to arm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMMhjubh)}(hXAThis arms a scheduler job for execution. Specifically it initializes the :c:type:`drm_sched_job.s_fence ` of **job**, so that it can be attached to struct dma_resv or other places that need to track the completion of this job. It also initializes sequence numbers, which are fundamental for fence ordering.h](hIThis arms a scheduler job for execution. Specifically it initializes the }(hj?hhhNhNubh)}(h/:c:type:`drm_sched_job.s_fence `h]j)}(hjIh]hdrm_sched_job.s_fence}(hjKhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_sched_jobuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMLhj?ubh of }(hj?hhhNhNubj)}(h**job**h]hjob}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh, so that it can be attached to struct dma_resv or other places that need to track the completion of this job. It also initializes sequence numbers, which are fundamental for fence ordering.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjfhMLhjubh)}(hNRefer to drm_sched_entity_push_job() documentation for locking considerations.h]hNRefer to drm_sched_entity_push_job() documentation for locking considerations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMQhjubh)}(hZOnce this function was called, you *must* submit **job** with drm_sched_entity_push_job().h](h#Once this function was called, you }(hjhhhNhNubj)}(h*must*h]hmust}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh submit }(hjhhhNhNubj)}(h**job**h]hjob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" with drm_sched_entity_push_job().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMThjubh)}(h:This can only be called if drm_sched_job_init() succeeded.h]h:This can only be called if drm_sched_job_init() succeeded.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMWhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)drm_sched_job_add_dependency (C function)c.drm_sched_job_add_dependencyhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hUint drm_sched_job_add_dependency (struct drm_sched_job *job, struct dma_fence *fence)h]jR)}(hTint drm_sched_job_add_dependency(struct drm_sched_job *job, struct dma_fence *fence)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMkubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMkubj{)}(hdrm_sched_job_add_dependencyh]j)}(hdrm_sched_job_add_dependencyh]hdrm_sched_job_add_dependency}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMkubj)}(h4(struct drm_sched_job *job, struct dma_fence *fence)h](j)}(hstruct drm_sched_job *jobh](jX)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj-ubjj)}(h h]h }(hj>hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-ubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjQmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_job_add_dependencyasbuh1hhj-ubjj)}(h h]h }(hjohhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-ubjH)}(hjKh]h*}(hj}hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj-ubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hstruct dma_fence *fenceh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jkc.drm_sched_job_add_dependencyasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hfenceh]hfence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMkubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMkubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMkhjhhubj)}(hhh]h)}(h"adds the fence as a job dependencyh]h"adds the fence as a job dependency}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMkhj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMkubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1jFhhhjGhNhNubj)}(hXG**Parameters** ``struct drm_sched_job *job`` scheduler job to add the dependencies to ``struct dma_fence *fence`` the dma_fence to add to the list of dependencies. **Description** Note that **fence** is consumed in both the success and error cases. **Return** 0 on success, or an error on failing to expand the array.h](h)}(h**Parameters**h]j)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMohj@ubj)}(hhh](j)}(hG``struct drm_sched_job *job`` scheduler job to add the dependencies to h](j)}(h``struct drm_sched_job *job``h]j)}(hjeh]hstruct drm_sched_job *job}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMlhj_ubj)}(hhh]h)}(h(scheduler job to add the dependencies toh]h(scheduler job to add the dependencies to}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMlhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMlhj\ubj)}(hN``struct dma_fence *fence`` the dma_fence to add to the list of dependencies. h](j)}(h``struct dma_fence *fence``h]j)}(hjh]hstruct dma_fence *fence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMmhjubj)}(hhh]h)}(h1the dma_fence to add to the list of dependencies.h]h1the dma_fence to add to the list of dependencies.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhj\ubeh}(h]h ]h"]h$]h&]uh1jhj@ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMohj@ubh)}(hDNote that **fence** is consumed in both the success and error cases.h](h Note that }(hjhhhNhNubj)}(h **fence**h]hfence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh1 is consumed in both the success and error cases.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMnhj@ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMphj@ubh)}(h90 on success, or an error on failing to expand the array.h]h90 on success, or an error on failing to expand the array.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMqhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB1drm_sched_job_add_syncobj_dependency (C function)&c.drm_sched_job_add_syncobj_dependencyhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hrint drm_sched_job_add_syncobj_dependency (struct drm_sched_job *job, struct drm_file *file, u32 handle, u32 point)h]jR)}(hqint drm_sched_job_add_syncobj_dependency(struct drm_sched_job *job, struct drm_file *file, u32 handle, u32 point)h](j)}(hinth]hint}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjfhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjShhhjehMubj{)}(h$drm_sched_job_add_syncobj_dependencyh]j)}(h$drm_sched_job_add_syncobj_dependencyh]h$drm_sched_job_add_syncobj_dependency}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjShhhjehMubj)}(hI(struct drm_sched_job *job, struct drm_file *file, u32 handle, u32 point)h](j)}(hstruct drm_sched_job *jobh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jzsb&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_file *fileh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj&modnameN classnameNj+j.)}j1]j&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjubjj)}(h h]h }(hjBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjPhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hfileh]hfile}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj{modnameN classnameNj+j.)}j1]j&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjrubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjrubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 pointh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hpointh]hpoint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjShhhjehMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjOhhhjehMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jKhjehMhjLhhubj)}(hhh]h)}(h*adds a syncobj's fence as a job dependencyh]h,adds a syncobj’s fence as a job dependency}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjehMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1jFhhhjGhNhNubj)}(hXm**Parameters** ``struct drm_sched_job *job`` scheduler job to add the dependencies to ``struct drm_file *file`` drm file private pointer ``u32 handle`` syncobj handle to lookup ``u32 point`` timeline point **Description** This adds the fence matching the given syncobj to **job**. **Return** 0 on success, or an error on failing to expand the array.h](h)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj3ubj)}(hhh](j)}(hG``struct drm_sched_job *job`` scheduler job to add the dependencies to h](j)}(h``struct drm_sched_job *job``h]j)}(hjXh]hstruct drm_sched_job *job}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjRubj)}(hhh]h)}(h(scheduler job to add the dependencies toh]h(scheduler job to add the dependencies to}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubj)}(h3``struct drm_file *file`` drm file private pointer h](j)}(h``struct drm_file *file``h]j)}(hjh]hstruct drm_file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(h(``u32 handle`` syncobj handle to lookup h](j)}(h``u32 handle``h]j)}(hjh]h u32 handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(hsyncobj handle to lookuph]hsyncobj handle to lookup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(h``u32 point`` timeline point h](j)}(h ``u32 point``h]j)}(hjh]h u32 point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(htimeline pointh]htimeline point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubh)}(h**Description**h]j)}(hj>h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj3ubh)}(h:This adds the fence matching the given syncobj to **job**.h](h2This adds the fence matching the given syncobj to }(hjThhhNhNubj)}(h**job**h]hjob}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj3ubh)}(h **Return**h]j)}(hjwh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj3ubh)}(h90 on success, or an error on failing to expand the array.h]h90 on success, or an error on failing to expand the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB0drm_sched_job_add_resv_dependencies (C function)%c.drm_sched_job_add_resv_dependencieshNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(huint drm_sched_job_add_resv_dependencies (struct drm_sched_job *job, struct dma_resv *resv, enum dma_resv_usage usage)h]jR)}(htint drm_sched_job_add_resv_dependencies(struct drm_sched_job *job, struct dma_resv *resv, enum dma_resv_usage usage)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(h#drm_sched_job_add_resv_dependenciesh]j)}(h#drm_sched_job_add_resv_dependenciesh]h#drm_sched_job_add_resv_dependencies}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hM(struct drm_sched_job *job, struct dma_resv *resv, enum dma_resv_usage usage)h](j)}(hstruct drm_sched_job *jobh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsb%c.drm_sched_job_add_resv_dependenciesasbuh1hhjubjj)}(h h]h }(hj7hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjEhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjobh]hjob}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dma_resv *resvh](jX)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjgubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubh)}(hhh]j)}(hdma_resvh]hdma_resv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j3%c.drm_sched_job_add_resv_dependenciesasbuh1hhjgubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjgubj)}(hresvh]hresv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum dma_resv_usage usageh](jX)}(hj[h]henum}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_resv_usageh]hdma_resv_usage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j3%c.drm_sched_job_add_resv_dependenciesasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(husageh]husage}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h'add all fences from the resv to the jobh]h'add all fences from the resv to the job}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1jFhhhjGhNhNubj)}(hX**Parameters** ``struct drm_sched_job *job`` scheduler job to add the dependencies to ``struct dma_resv *resv`` the dma_resv object to get the fences from ``enum dma_resv_usage usage`` the dma_resv_usage to use to filter the fences **Description** This adds all fences matching the given usage from **resv** to **job**. Must be called with the **resv** lock held. **Return** 0 on success, or an error on failing to expand the array.h](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjkubj)}(hhh](j)}(hG``struct drm_sched_job *job`` scheduler job to add the dependencies to h](j)}(h``struct drm_sched_job *job``h]j)}(hjh]hstruct drm_sched_job *job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(h(scheduler job to add the dependencies toh]h(scheduler job to add the dependencies to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hE``struct dma_resv *resv`` the dma_resv object to get the fences from h](j)}(h``struct dma_resv *resv``h]j)}(hjh]hstruct dma_resv *resv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(h*the dma_resv object to get the fences fromh]h*the dma_resv object to get the fences from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hM``enum dma_resv_usage usage`` the dma_resv_usage to use to filter the fences h](j)}(h``enum dma_resv_usage usage``h]j)}(hjh]henum dma_resv_usage usage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(h.the dma_resv_usage to use to filter the fencesh]h.the dma_resv_usage to use to filter the fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h**Description**h]j)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjkubh)}(hsThis adds all fences matching the given usage from **resv** to **job**. Must be called with the **resv** lock held.h](h3This adds all fences matching the given usage from }(hjShhhNhNubj)}(h**resv**h]hresv}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh to }(hjShhhNhNubj)}(h**job**h]hjob}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh. Must be called with the }(hjShhhNhNubj)}(h**resv**h]hresv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh lock held.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjkubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjkubh)}(h90 on success, or an error on failing to expand the array.h]h90 on success, or an error on failing to expand the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB4drm_sched_job_add_implicit_dependencies (C function))c.drm_sched_job_add_implicit_dependencieshNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hoint drm_sched_job_add_implicit_dependencies (struct drm_sched_job *job, struct drm_gem_object *obj, bool write)h]jR)}(hnint drm_sched_job_add_implicit_dependencies(struct drm_sched_job *job, struct drm_gem_object *obj, bool write)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(h'drm_sched_job_add_implicit_dependenciesh]j)}(h'drm_sched_job_add_implicit_dependenciesh]h'drm_sched_job_add_implicit_dependencies}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hC(struct drm_sched_job *job, struct drm_gem_object *obj, bool write)h](j)}(hstruct drm_sched_job *jobh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj<modnameN classnameNj+j.)}j1]j4)}j'jsb)c.drm_sched_job_add_implicit_dependenciesasbuh1hhjubjj)}(h h]h }(hjZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjobh]hjob}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jV)c.drm_sched_job_add_implicit_dependenciesasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool writeh](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hwriteh]hwrite}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h.adds implicit dependencies as job dependenciesh]h.adds implicit dependencies as job dependencies}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj@hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1jFhhhjGhNhNubj)}(hX**Parameters** ``struct drm_sched_job *job`` scheduler job to add the dependencies to ``struct drm_gem_object *obj`` the gem object to add new dependencies from. ``bool write`` whether the job might write the object (so we need to depend on shared fences in the reservation object). **Description** This should be called after drm_gem_lock_reservations() on your array of GEM objects used in the job but before updating the reservations with your own fences. **Return** 0 on success, or an error on failing to expand the array.h](h)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj_ubj)}(hhh](j)}(hG``struct drm_sched_job *job`` scheduler job to add the dependencies to h](j)}(h``struct drm_sched_job *job``h]j)}(hjh]hstruct drm_sched_job *job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj~ubj)}(hhh]h)}(h(scheduler job to add the dependencies toh]h(scheduler job to add the dependencies to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj{ubj)}(hL``struct drm_gem_object *obj`` the gem object to add new dependencies from. h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(h,the gem object to add new dependencies from.h]h,the gem object to add new dependencies from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj{ubj)}(hy``bool write`` whether the job might write the object (so we need to depend on shared fences in the reservation object). h](j)}(h``bool write``h]j)}(hjh]h bool write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(hiwhether the job might write the object (so we need to depend on shared fences in the reservation object).h]hiwhether the job might write the object (so we need to depend on shared fences in the reservation object).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj{ubeh}(h]h ]h"]h$]h&]uh1jhj_ubh)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj_ubh)}(hThis should be called after drm_gem_lock_reservations() on your array of GEM objects used in the job but before updating the reservations with your own fences.h]hThis should be called after drm_gem_lock_reservations() on your array of GEM objects used in the job but before updating the reservations with your own fences.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj_ubh)}(h **Return**h]j)}(hjYh]hReturn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj_ubh)}(h90 on success, or an error on failing to expand the array.h]h90 on success, or an error on failing to expand the array.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)drm_sched_job_has_dependency (C function)c.drm_sched_job_has_dependencyhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hVbool drm_sched_job_has_dependency (struct drm_sched_job *job, struct dma_fence *fence)h]jR)}(hUbool drm_sched_job_has_dependency(struct drm_sched_job *job, struct dma_fence *fence)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_sched_job_has_dependencyh]j)}(hdrm_sched_job_has_dependencyh]hdrm_sched_job_has_dependency}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h4(struct drm_sched_job *job, struct dma_fence *fence)h](j)}(hstruct drm_sched_job *jobh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_job_has_dependencyasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj&hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjobh]hjob}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dma_fence *fenceh](jX)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjHubjj)}(h h]h }(hjYhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjlmodnameN classnameNj+j.)}j1]jc.drm_sched_job_has_dependencyasbuh1hhjHubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjHubj)}(hfenceh]hfence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h+check whether fence is the job's dependencyh]h-check whether fence is the job’s dependency}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(h**Parameters** ``struct drm_sched_job *job`` scheduler job to check ``struct dma_fence *fence`` fence to look for **Return** True if **fence** is found within the job's dependencies, or otherwise false.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh](j)}(h5``struct drm_sched_job *job`` scheduler job to check h](j)}(h``struct drm_sched_job *job``h]j)}(hjh]hstruct drm_sched_job *job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(hscheduler job to checkh]hscheduler job to check}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubj)}(h.``struct dma_fence *fence`` fence to look for h](j)}(h``struct dma_fence *fence``h]j)}(hjGh]hstruct dma_fence *fence}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjAubj)}(hhh]h)}(hfence to look forh]hfence to look for}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hMTrue if **fence** is found within the job's dependencies, or otherwise false.h](hTrue if }(hjhhhNhNubj)}(h **fence**h]hfence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> is found within the job’s dependencies, or otherwise false.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_sched_job_cleanup (C function)c.drm_sched_job_cleanuphNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h6void drm_sched_job_cleanup (struct drm_sched_job *job)h]jR)}(h5void drm_sched_job_cleanup(struct drm_sched_job *job)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_sched_job_cleanuph]j)}(hdrm_sched_job_cleanuph]hdrm_sched_job_cleanup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct drm_sched_job *job)h]j)}(hstruct drm_sched_job *jobh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj#hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj6modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_job_cleanupasbuh1hhjubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjbhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjobh]hjob}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h clean up scheduler job resourcesh]h clean up scheduler job resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hX**Parameters** ``struct drm_sched_job *job`` scheduler job to clean up **Description** Cleans up the resources allocated with drm_sched_job_init(). Drivers should call this from their error unwind code if **job** is aborted before drm_sched_job_arm() is called. drm_sched_job_arm() is a point of no return since it initializes the fences and their sequence number etc. Once that function has been called, you *must* submit it with drm_sched_entity_push_job() and cannot simply abort it by calling drm_sched_job_cleanup(). This function should be called in the :c:type:`drm_sched_backend_ops.free_job ` callback.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hjubj)}(hhh]j)}(h8``struct drm_sched_job *job`` scheduler job to clean up h](j)}(h``struct drm_sched_job *job``h]j)}(hjh]hstruct drm_sched_job *job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hjubj)}(hhh]h)}(hscheduler job to clean uph]hscheduler job to clean up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hjubh)}(h` callback.h](h&This function should be called in the }(hj|hhhNhNubh)}(h@:c:type:`drm_sched_backend_ops.free_job `h]j)}(hjh]hdrm_sched_backend_ops.free_job}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_backend_opsuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj|ubh callback.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_sched_pick_best (C function)c.drm_sched_pick_besthNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hsstruct drm_gpu_scheduler * drm_sched_pick_best (struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h]jR)}(hqstruct drm_gpu_scheduler *drm_sched_pick_best(struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_sched_pick_bestsbc.drm_sched_pick_bestasbuh1hhjhhhjhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhMubj{)}(hdrm_sched_pick_besth]j)}(hj h]hdrm_sched_pick_best}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hD(struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h](j)}(h%struct drm_gpu_scheduler **sched_listh](jX)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjDubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjhmodnameN classnameNj+j.)}j1]j c.drm_sched_pick_bestasbuh1hhjDubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjDubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjDubj)}(h sched_listh]h sched_list}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned int num_sched_listh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hnum_sched_listh]hnum_sched_list}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h5Get a drm sched from a sched_list with the least loadh]h5Get a drm sched from a sched_list with the least load}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1jFhhhjGhNhNubj)}(hX**Parameters** ``struct drm_gpu_scheduler **sched_list`` list of drm_gpu_schedulers ``unsigned int num_sched_list`` number of drm_gpu_schedulers in the sched_list **Description** Returns pointer of the sched with the least load or NULL if none of the drm_gpu_schedulers are readyh](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjCubj)}(hhh](j)}(hE``struct drm_gpu_scheduler **sched_list`` list of drm_gpu_schedulers h](j)}(h)``struct drm_gpu_scheduler **sched_list``h]j)}(hjhh]h%struct drm_gpu_scheduler **sched_list}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjbubj)}(hhh]h)}(hlist of drm_gpu_schedulersh]hlist of drm_gpu_schedulers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj_ubj)}(hO``unsigned int num_sched_list`` number of drm_gpu_schedulers in the sched_list h](j)}(h``unsigned int num_sched_list``h]j)}(hjh]hunsigned int num_sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(h.number of drm_gpu_schedulers in the sched_listh]h.number of drm_gpu_schedulers in the sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj_ubeh}(h]h ]h"]h$]h&]uh1jhjCubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjCubh)}(hdReturns pointer of the sched with the least load or NULL if none of the drm_gpu_schedulers are readyh]hdReturns pointer of the sched with the least load or NULL if none of the drm_gpu_schedulers are ready}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_init (C function)c.drm_sched_inithNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h\int drm_sched_init (struct drm_gpu_scheduler *sched, const struct drm_sched_init_args *args)h]jR)}(h[int drm_sched_init(struct drm_gpu_scheduler *sched, const struct drm_sched_init_args *args)h](j)}(hinth]hint}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hj0hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj/hMubj{)}(hdrm_sched_inith]j)}(hdrm_sched_inith]hdrm_sched_init}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj/hMubj)}(hI(struct drm_gpu_scheduler *sched, const struct drm_sched_init_args *args)h](j)}(hstruct drm_gpu_scheduler *schedh](jX)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjZubjj)}(h h]h }(hjkhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjZubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj~modnameN classnameNj+j.)}j1]j4)}j'jDsbc.drm_sched_initasbuh1hhjZubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjZubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjZubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(h&const struct drm_sched_init_args *argsh](jX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_sched_init_argsh]hdrm_sched_init_args}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]jc.drm_sched_initasbuh1hhjubjj)}(h h]h }(hj'hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj5hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hargsh]hargs}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj/hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj/hMhjhhubj)}(hhh]h)}(hInit a gpu scheduler instanceh]hInit a gpu scheduler instance}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(h**Parameters** ``struct drm_gpu_scheduler *sched`` scheduler instance ``const struct drm_sched_init_args *args`` scheduler initialization arguments **Description** Return 0 on success, otherwise error code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM"hjubj)}(hhh](j)}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hjubj)}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hN``const struct drm_sched_init_args *args`` scheduler initialization arguments h](j)}(h*``const struct drm_sched_init_args *args``h]j)}(hjh]h&const struct drm_sched_init_args *args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM!hjubj)}(hhh]h)}(h"scheduler initialization argumentsh]h"scheduler initialization arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM#hjubh)}(h*Return 0 on success, otherwise error code.h]h*Return 0 on success, otherwise error code.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_fini (C function)c.drm_sched_finihNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h5void drm_sched_fini (struct drm_gpu_scheduler *sched)h]jR)}(h4void drm_sched_fini(struct drm_gpu_scheduler *sched)h](j)}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjuhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjbhhhjthMubj{)}(hdrm_sched_finih]j)}(hdrm_sched_finih]hdrm_sched_fini}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjbhhhjthMubj)}(h!(struct drm_gpu_scheduler *sched)h]j)}(hstruct drm_gpu_scheduler *schedh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_finiasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjbhhhjthMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj^hhhjthMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1jKhjthMhj[hhubj)}(hhh]h)}(hDestroy a gpu schedulerh]hDestroy a gpu scheduler}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj#hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhjthMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1jFhhhjGhNhNubj)}(hX'**Parameters** ``struct drm_gpu_scheduler *sched`` scheduler instance **Description** Tears down and cleans up the scheduler. This stops submission of new jobs to the hardware through :c:type:`struct drm_sched_backend_ops `.run_job. If :c:type:`struct drm_sched_backend_ops `.cancel_job is implemented, all jobs will be canceled through it and afterwards cleaned up through :c:type:`struct drm_sched_backend_ops `.free_job. If cancel_job is not implemented, memory could leak.h](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjBubj)}(hhh]j)}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjgh]hstruct drm_gpu_scheduler *sched}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjaubj)}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjBubh)}(h'Tears down and cleans up the scheduler.h]h'Tears down and cleans up the scheduler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjBubh)}(hXThis stops submission of new jobs to the hardware through :c:type:`struct drm_sched_backend_ops `.run_job. If :c:type:`struct drm_sched_backend_ops `.cancel_job is implemented, all jobs will be canceled through it and afterwards cleaned up through :c:type:`struct drm_sched_backend_ops `.free_job. If cancel_job is not implemented, memory could leak.h](h:This stops submission of new jobs to the hardware through }(hjhhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjh]hstruct drm_sched_backend_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_backend_opsuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh .run_job. If }(hjhhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjh]hstruct drm_sched_backend_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_backend_opsuh1hhjhMhjubhc.cancel_job is implemented, all jobs will be canceled through it and afterwards cleaned up through }(hjhhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjh]hstruct drm_sched_backend_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_backend_opsuh1hhjhMhjubh?.free_job. If cancel_job is not implemented, memory could leak.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_sched_increase_karma (C function)c.drm_sched_increase_karmahNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h9void drm_sched_increase_karma (struct drm_sched_job *bad)h]jR)}(h8void drm_sched_increase_karma(struct drm_sched_job *bad)h](j)}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[hhhjmhMubj{)}(hdrm_sched_increase_karmah]j)}(hdrm_sched_increase_karmah]hdrm_sched_increase_karma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[hhhjmhMubj)}(h(struct drm_sched_job *bad)h]j)}(hstruct drm_sched_job *badh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_increase_karmaasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hbadh]hbad}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj[hhhjmhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjWhhhjmhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1jKhjmhMhjThhubj)}(hhh]h)}(hUpdate sched_entity guilty flagh]hUpdate sched_entity guilty flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjmhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1jFhhhjGhNhNubj)}(hX**Parameters** ``struct drm_sched_job *bad`` The job guilty of time out **Description** Increment on every hang caused by the 'bad' job. If this exceeds the hang limit of the scheduler then the respective sched entity is marked guilty and jobs from it will not be scheduled furtherh](h)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj;ubj)}(hhh]j)}(h9``struct drm_sched_job *bad`` The job guilty of time out h](j)}(h``struct drm_sched_job *bad``h]j)}(hj`h]hstruct drm_sched_job *bad}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjZubj)}(hhh]h)}(hThe job guilty of time outh]hThe job guilty of time out}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj;ubh)}(hIncrement on every hang caused by the 'bad' job. If this exceeds the hang limit of the scheduler then the respective sched entity is marked guilty and jobs from it will not be scheduled furtherh]hIncrement on every hang caused by the ‘bad’ job. If this exceeds the hang limit of the scheduler then the respective sched entity is marked guilty and jobs from it will not be scheduled further}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_sched_wqueue_ready (C function)c.drm_sched_wqueue_readyhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h=bool drm_sched_wqueue_ready (struct drm_gpu_scheduler *sched)h]jR)}(hmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_wqueue_startasbuh1hhjubjj)}(h h]h }(hj\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hschedh]hsched}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hstart scheduler submissionh]hstart scheduler submission}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hX **Parameters** ``struct drm_gpu_scheduler *sched`` scheduler instance **Description** Restarts the scheduler after drm_sched_wqueue_stop() has stopped it. This function is not necessary for 'conventional' startup. The scheduler is fully operational after drm_sched_init() succeeded.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]j)}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hDRestarts the scheduler after drm_sched_wqueue_stop() has stopped it.h]hDRestarts the scheduler after drm_sched_wqueue_stop() has stopped it.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hThis function is not necessary for 'conventional' startup. The scheduler is fully operational after drm_sched_init() succeeded.h]hThis function is not necessary for ‘conventional’ startup. The scheduler is fully operational after drm_sched_init() succeeded.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!drm_sched_is_stopped (C function)c.drm_sched_is_stoppedhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h;bool drm_sched_is_stopped (struct drm_gpu_scheduler *sched)h]jR)}(h:bool drm_sched_is_stopped(struct drm_gpu_scheduler *sched)h](j)}(hj*h]hbool}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmhhhj~hMubj{)}(hdrm_sched_is_stoppedh]j)}(hdrm_sched_is_stoppedh]hdrm_sched_is_stopped}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjmhhhj~hMubj)}(h!(struct drm_gpu_scheduler *sched)h]j)}(hstruct drm_gpu_scheduler *schedh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_is_stoppedasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjmhhhj~hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjihhhj~hMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1jKhj~hMhjfhhubj)}(hhh]h)}(h#Checks whether drm_sched is stoppedh]h#Checks whether drm_sched is stopped}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhjfhhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jFhhhjGhNhNubj)}(hz**Parameters** ``struct drm_gpu_scheduler *sched`` DRM scheduler **Return** true if sched is stopped, false otherwiseh](h)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjLubj)}(hhh]j)}(h2``struct drm_gpu_scheduler *sched`` DRM scheduler h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjqh]hstruct drm_gpu_scheduler *sched}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjkubj)}(hhh]h)}(h DRM schedulerh]h DRM scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjLubh)}(h)true if sched is stopped, false otherwiseh]h)true if sched is stopped, false otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_sched_job_is_signaled (C function)c.drm_sched_job_is_signaledhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h:bool drm_sched_job_is_signaled (struct drm_sched_job *job)h]jR)}(h9bool drm_sched_job_is_signaled(struct drm_sched_job *job)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_sched_job_is_signaledh]j)}(hdrm_sched_job_is_signaledh]hdrm_sched_job_is_signaled}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct drm_sched_job *job)h]j)}(hstruct drm_sched_job *jobh](jX)}(hjh]hstruct}(hj-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj)ubjj)}(h h]h }(hj:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj)ubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjMmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_job_is_signaledasbuh1hhj)ubjj)}(h h]h }(hjkhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj)ubjH)}(hjKh]h*}(hjyhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj)ubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hDRM scheduler job is signaledh]hDRM scheduler job is signaled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hXl**Parameters** ``struct drm_sched_job *job`` DRM scheduler job **Description** Determine if DRM scheduler job is signaled. DRM scheduler should be stopped to obtain a stable snapshot of state. Both parent fence (hardware fence) and finished fence (software fence) are checked to determine signaling state. **Return** true if job is signaled, false otherwiseh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]j)}(h0``struct drm_sched_job *job`` DRM scheduler job h](j)}(h``struct drm_sched_job *job``h]j)}(hjh]hstruct drm_sched_job *job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]h)}(hDRM scheduler jobh]hDRM scheduler job}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hDetermine if DRM scheduler job is signaled. DRM scheduler should be stopped to obtain a stable snapshot of state. Both parent fence (hardware fence) and finished fence (software fence) are checked to determine signaling state.h]hDetermine if DRM scheduler job is signaled. DRM scheduler should be stopped to obtain a stable snapshot of state. Both parent fence (hardware fence) and finished fence (software fence) are checked to determine signaling state.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(h **Return**h]j)}(hjSh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(h(true if job is signaled, false otherwiseh]h(true if job is signaled, false otherwise}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_sched_entity_init (C function)c.drm_sched_entity_inithNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hint drm_sched_entity_init (struct drm_sched_entity *entity, enum drm_sched_priority priority, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list, atomic_t *guilty)h]jR)}(hint drm_sched_entity_init(struct drm_sched_entity *entity, enum drm_sched_priority priority, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list, atomic_t *guilty)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK$ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhK$ubj{)}(hdrm_sched_entity_inith]j)}(hdrm_sched_entity_inith]hdrm_sched_entity_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK$ubj)}(h(struct drm_sched_entity *entity, enum drm_sched_priority priority, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list, atomic_t *guilty)h](j)}(hstruct drm_sched_entity *entityh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_entity_initasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj!hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hentityh]hentity}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h enum drm_sched_priority priorityh](jX)}(hj[h]henum}(hjGhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjCubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjCubh)}(hhh]j)}(hdrm_sched_priorityh]hdrm_sched_priority}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjgmodnameN classnameNj+j.)}j1]jc.drm_sched_entity_initasbuh1hhjCubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjCubj)}(hpriorityh]hpriority}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h%struct drm_gpu_scheduler **sched_listh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_sched_entity_initasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h sched_listh]h sched_list}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_sched_listh](j)}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#ubj)}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjj)}(h h]h }(hjQhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#ubj)}(hnum_sched_listh]hnum_sched_list}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hatomic_t *guiltyh](h)}(hhh]j)}(hatomic_th]hatomic_t}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj}modnameN classnameNj+j.)}j1]jc.drm_sched_entity_initasbuh1hhjtubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjtubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjtubj)}(hguiltyh]hguilty}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK$ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhK$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhK$hjhhubj)}(hhh]h)}(h?Init a context entity used by scheduler when submit to HW ring.h]h?Init a context entity used by scheduler when submit to HW ring.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK$hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hXt**Parameters** ``struct drm_sched_entity *entity`` scheduler entity to init ``enum drm_sched_priority priority`` priority of the entity ``struct drm_gpu_scheduler **sched_list`` the list of drm scheds on which jobs from this entity can be submitted ``unsigned int num_sched_list`` number of drm sched in sched_list ``atomic_t *guilty`` atomic_t set to 1 when a job on this queue is found to be guilty causing a timeout **Description** Note that the :c:type:`sched_list` must have at least one element to schedule the entity. For changing **priority** later on at runtime see drm_sched_entity_set_priority(). For changing the set of schedulers **sched_list** at runtime see drm_sched_entity_modify_sched(). An entity is cleaned up by calling drm_sched_entity_fini(). See also drm_sched_entity_destroy(). Returns 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK(hjubj)}(hhh](j)}(h=``struct drm_sched_entity *entity`` scheduler entity to init h](j)}(h#``struct drm_sched_entity *entity``h]j)}(hjh]hstruct drm_sched_entity *entity}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK'hjubj)}(hhh]h)}(hscheduler entity to inith]hscheduler entity to init}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hK'hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hK'hjubj)}(h<``enum drm_sched_priority priority`` priority of the entity h](j)}(h$``enum drm_sched_priority priority``h]j)}(hjXh]h enum drm_sched_priority priority}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK(hjRubj)}(hhh]h)}(hpriority of the entityh]hpriority of the entity}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhK(hjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhK(hjubj)}(hq``struct drm_gpu_scheduler **sched_list`` the list of drm scheds on which jobs from this entity can be submitted h](j)}(h)``struct drm_gpu_scheduler **sched_list``h]j)}(hjh]h%struct drm_gpu_scheduler **sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK*hjubj)}(hhh]h)}(hFthe list of drm scheds on which jobs from this entity can be submittedh]hFthe list of drm scheds on which jobs from this entity can be submitted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK*hjubj)}(hB``unsigned int num_sched_list`` number of drm sched in sched_list h](j)}(h``unsigned int num_sched_list``h]j)}(hjh]hunsigned int num_sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK+hjubj)}(hhh]h)}(h!number of drm sched in sched_listh]h!number of drm sched in sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK+hjubj)}(hh``atomic_t *guilty`` atomic_t set to 1 when a job on this queue is found to be guilty causing a timeout h](j)}(h``atomic_t *guilty``h]j)}(hjh]hatomic_t *guilty}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK-hjubj)}(hhh]h)}(hRatomic_t set to 1 when a job on this queue is found to be guilty causing a timeouth]hRatomic_t set to 1 when a job on this queue is found to be guilty causing a timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK-hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj@h]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK/hjubh)}(hYNote that the :c:type:`sched_list` must have at least one element to schedule the entity.h](hNote that the }(hjVhhhNhNubh)}(h:c:type:`sched_list`h]j)}(hj`h]h sched_list}(hjbhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja sched_listuh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK.hjVubh7 must have at least one element to schedule the entity.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}hK.hjubh)}(hFor changing **priority** later on at runtime see drm_sched_entity_set_priority(). For changing the set of schedulers **sched_list** at runtime see drm_sched_entity_modify_sched().h](h For changing }(hjhhhNhNubj)}(h **priority**h]hpriority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh] later on at runtime see drm_sched_entity_set_priority(). For changing the set of schedulers }(hjhhhNhNubj)}(h**sched_list**h]h sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0 at runtime see drm_sched_entity_modify_sched().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK0hjubh)}(h`An entity is cleaned up by calling drm_sched_entity_fini(). See also drm_sched_entity_destroy().h]h`An entity is cleaned up by calling drm_sched_entity_fini(). See also drm_sched_entity_destroy().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK4hjubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK7hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_sched_entity_modify_sched (C function)c.drm_sched_entity_modify_schedhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hvoid drm_sched_entity_modify_sched (struct drm_sched_entity *entity, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h]jR)}(hvoid drm_sched_entity_modify_sched(struct drm_sched_entity *entity, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chKwubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKwubj{)}(hdrm_sched_entity_modify_schedh]j)}(hdrm_sched_entity_modify_schedh]hdrm_sched_entity_modify_sched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKwubj)}(he(struct drm_sched_entity *entity, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h](j)}(hstruct drm_sched_entity *entityh](jX)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj2ubjj)}(h h]h }(hjChhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj2ubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjVmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_entity_modify_schedasbuh1hhj2ubjj)}(h h]h }(hjthhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj2ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj2ubj)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(h%struct drm_gpu_scheduler **sched_listh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jpc.drm_sched_entity_modify_schedasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h sched_listh]h sched_list}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hunsigned int num_sched_listh](j)}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjj)}(h h]h }(hj3hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!ubj)}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjj)}(h h]h }(hjOhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!ubj)}(hnum_sched_listh]hnum_sched_list}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKwhjhhubj)}(hhh]h)}(hModify sched of an entityh]hModify sched of an entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chKwhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(hX**Parameters** ``struct drm_sched_entity *entity`` scheduler entity to init ``struct drm_gpu_scheduler **sched_list`` the list of new drm scheds which will replace existing entity->sched_list ``unsigned int num_sched_list`` number of drm sched in sched_list **Description** Note that this must be called under the same common lock for **entity** as drm_sched_job_arm() and drm_sched_entity_push_job(), or the driver needs to guarantee through some other means that this is never called while new jobs can be pushed to **entity**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK{hjubj)}(hhh](j)}(h=``struct drm_sched_entity *entity`` scheduler entity to init h](j)}(h#``struct drm_sched_entity *entity``h]j)}(hjh]hstruct drm_sched_entity *entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chKxhjubj)}(hhh]h)}(hscheduler entity to inith]hscheduler entity to init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKxhjubj)}(ht``struct drm_gpu_scheduler **sched_list`` the list of new drm scheds which will replace existing entity->sched_list h](j)}(h)``struct drm_gpu_scheduler **sched_list``h]j)}(hjh]h%struct drm_gpu_scheduler **sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chKzhjubj)}(hhh]h)}(hIthe list of new drm scheds which will replace existing entity->sched_listh]hIthe list of new drm scheds which will replace existing entity->sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chKyhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKzhjubj)}(hB``unsigned int num_sched_list`` number of drm sched in sched_list h](j)}(h``unsigned int num_sched_list``h]j)}(hj;h]hunsigned int num_sched_list}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK{hj5ubj)}(hhh]h)}(h!number of drm sched in sched_listh]h!number of drm sched in sched_list}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhK{hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhK{hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjvh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK}hjubh)}(hNote that this must be called under the same common lock for **entity** as drm_sched_job_arm() and drm_sched_entity_push_job(), or the driver needs to guarantee through some other means that this is never called while new jobs can be pushed to **entity**.h](h=Note that this must be called under the same common lock for }(hjhhhNhNubj)}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh as drm_sched_job_arm() and drm_sched_entity_push_job(), or the driver needs to guarantee through some other means that this is never called while new jobs can be pushed to }(hjhhhNhNubj)}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chK|hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_sched_entity_error (C function)c.drm_sched_entity_errorhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h``struct drm_sched_entity *entity`` scheduler entity to check h](j)}(h#``struct drm_sched_entity *entity``h]j)}(hj h]hstruct drm_sched_entity *entity}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chKhj ubj)}(hhh]h)}(hscheduler entity to checkh]hscheduler entity to check}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chKhj ubh)}(h|Opportunistically return the error of the last scheduled job. Result can change any time when new jobs are pushed to the hw.h]h|Opportunistically return the error of the last scheduled job. Result can change any time when new jobs are pushed to the hw.}(hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_sched_entity_flush (C function)c.drm_sched_entity_flushhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hKlong drm_sched_entity_flush (struct drm_sched_entity *entity, long timeout)h]jR)}(hJlong drm_sched_entity_flush(struct drm_sched_entity *entity, long timeout)h](j)}(hlongh]hlong}(hj` hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ hhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMubjj)}(h h]h }(hjo hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj\ hhhjn hMubj{)}(hdrm_sched_entity_flushh]j)}(hdrm_sched_entity_flushh]hdrm_sched_entity_flush}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj} ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\ hhhjn hMubj)}(h/(struct drm_sched_entity *entity, long timeout)h](j)}(hstruct drm_sched_entity *entityh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j4)}j'j sbc.drm_sched_entity_flushasbuh1hhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hentityh]hentity}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h long timeouth](j)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubj)}(htimeouth]htimeout}(hj+ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj\ hhhjn hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjX hhhjn hMubah}(h]jS ah ](jjeh"]h$]h&]jj)jhuh1jKhjn hMhjU hhubj)}(hhh]h)}(hFlush a context entityh]hFlush a context entity}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhjR hhubah}(h]h ]h"]h$]h&]uh1jhjU hhhjn hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjm jjm jjjuh1jFhhhjGhNhNubj)}(hX**Parameters** ``struct drm_sched_entity *entity`` scheduler entity ``long timeout`` time to wait in for Q to become empty in jiffies. **Description** Splitting drm_sched_entity_fini() into two functions, The first one does the waiting, removes the entity from the runqueue and returns an error when the process was killed. Returns the remaining time in jiffies left from the input timeouth](h)}(h**Parameters**h]j)}(hjw h]h Parameters}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhjq ubj)}(hhh](j)}(h5``struct drm_sched_entity *entity`` scheduler entity h](j)}(h#``struct drm_sched_entity *entity``h]j)}(hj h]hstruct drm_sched_entity *entity}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhj ubj)}(hhh]h)}(hscheduler entityh]hscheduler entity}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(hC``long timeout`` time to wait in for Q to become empty in jiffies. h](j)}(h``long timeout``h]j)}(hj h]h long timeout}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhj ubj)}(hhh]h)}(h1time to wait in for Q to become empty in jiffies.h]h1time to wait in for Q to become empty in jiffies.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubeh}(h]h ]h"]h$]h&]uh1jhjq ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhjq ubh)}(hSplitting drm_sched_entity_fini() into two functions, The first one does the waiting, removes the entity from the runqueue and returns an error when the process was killed.h]hSplitting drm_sched_entity_fini() into two functions, The first one does the waiting, removes the entity from the runqueue and returns an error when the process was killed.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhjq ubh)}(hAReturns the remaining time in jiffies left from the input timeouth]hAReturns the remaining time in jiffies left from the input timeout}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhjq ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_sched_entity_fini (C function)c.drm_sched_entity_finihNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMChj: ubj)}(hhh]j)}(h5``struct drm_sched_entity *entity`` scheduler entity h](j)}(h#``struct drm_sched_entity *entity``h]j)}(hj_ h]hstruct drm_sched_entity *entity}(hja hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj] ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMAhjY ubj)}(hhh]h)}(hscheduler entityh]hscheduler entity}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt hMAhju ubah}(h]h ]h"]h$]h&]uh1jhjY ubeh}(h]h ]h"]h$]h&]uh1jhjt hMAhjV ubah}(h]h ]h"]h$]h&]uh1jhj: ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMChj: ubh)}(hMCleanups up **entity** which has been initialized by drm_sched_entity_init().h](h Cleanups up }(hj hhhNhNubj)}(h **entity**h]hentity}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh7 which has been initialized by drm_sched_entity_init().}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMBhj: ubh)}(hIf there are potentially job still in flight or getting newly queued drm_sched_entity_flush() must be called first. This function then goes over the entity and signals all jobs with an error code if the process was killed.h]hIf there are potentially job still in flight or getting newly queued drm_sched_entity_flush() must be called first. This function then goes over the entity and signals all jobs with an error code if the process was killed.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMDhj: ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_sched_entity_destroy (C function)c.drm_sched_entity_destroyhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h?void drm_sched_entity_destroy (struct drm_sched_entity *entity)h]jR)}(h>void drm_sched_entity_destroy(struct drm_sched_entity *entity)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM^ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhjhM^ubj{)}(hdrm_sched_entity_destroyh]j)}(hdrm_sched_entity_destroyh]hdrm_sched_entity_destroy}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhM^ubj)}(h!(struct drm_sched_entity *entity)h]j)}(hstruct drm_sched_entity *entityh](jX)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj9ubjj)}(h h]h }(hjJhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9ubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj]modnameN classnameNj+j.)}j1]j4)}j'j#sbc.drm_sched_entity_destroyasbuh1hhj9ubjj)}(h h]h }(hj{hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj9ubj)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhM^ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhjhM^ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhjhM^hj hhubj)}(hhh]h)}(hDestroy a context entityh]hDestroy a context entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM^hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhjhM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(h**Parameters** ``struct drm_sched_entity *entity`` scheduler entity **Description** Calls drm_sched_entity_flush() and drm_sched_entity_fini() as a convenience wrapper.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMbhjubj)}(hhh]j)}(h5``struct drm_sched_entity *entity`` scheduler entity h](j)}(h#``struct drm_sched_entity *entity``h]j)}(hjh]hstruct drm_sched_entity *entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM_hjubj)}(hhh]h)}(hscheduler entityh]hscheduler entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMahjubh)}(hTCalls drm_sched_entity_flush() and drm_sched_entity_fini() as a convenience wrapper.h]hTCalls drm_sched_entity_flush() and drm_sched_entity_fini() as a convenience wrapper.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM`hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_sched_entity_set_priority (C function)c.drm_sched_entity_set_priorityhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(hfvoid drm_sched_entity_set_priority (struct drm_sched_entity *entity, enum drm_sched_priority priority)h]jR)}(hevoid drm_sched_entity_set_priority(struct drm_sched_entity *entity, enum drm_sched_priority priority)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM{ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}hhhjhM{ubj{)}(hdrm_sched_entity_set_priorityh]j)}(hdrm_sched_entity_set_priorityh]hdrm_sched_entity_set_priority}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhjhM{ubj)}(hC(struct drm_sched_entity *entity, enum drm_sched_priority priority)h](j)}(hstruct drm_sched_entity *entityh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_entity_set_priorityasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h enum drm_sched_priority priorityh](jX)}(hj[h]henum}(hj0hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj,ubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,ubh)}(hhh]j)}(hdrm_sched_priorityh]hdrm_sched_priority}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjPmodnameN classnameNj+j.)}j1]jc.drm_sched_entity_set_priorityasbuh1hhj,ubjj)}(h h]h }(hjlhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,ubj)}(hpriorityh]hpriority}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj}hhhjhM{ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjyhhhjhM{ubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jKhjhM{hjvhhubj)}(hhh]h)}(hSets priority of the entityh]hSets priority of the entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM{hjhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjhM{ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjGhNhNubj)}(h**Parameters** ``struct drm_sched_entity *entity`` scheduler entity ``enum drm_sched_priority priority`` scheduler priority **Description** Update the priority of runqueues used for the entity.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhjubj)}(hhh](j)}(h5``struct drm_sched_entity *entity`` scheduler entity h](j)}(h#``struct drm_sched_entity *entity``h]j)}(hjh]hstruct drm_sched_entity *entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM}hjubj)}(hhh]h)}(hscheduler entityh]hscheduler entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjubj)}(h8``enum drm_sched_priority priority`` scheduler priority h](j)}(h$``enum drm_sched_priority priority``h]j)}(hjh]h enum drm_sched_priority priority}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM~hjubj)}(hhh]h)}(hscheduler priorityh]hscheduler priority}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM~hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hM~hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhjubh)}(h5Update the priority of runqueues used for the entity.h]h5Update the priority of runqueues used for the entity.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_sched_entity_push_job (C function)c.drm_sched_entity_push_jobhNtauh1j5hjGhhhNhNubjG)}(hhh](jL)}(h@void drm_sched_entity_push_job (struct drm_sched_job *sched_job)h]jR)}(h?void drm_sched_entity_push_job(struct drm_sched_job *sched_job)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM8ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM8ubj{)}(hdrm_sched_entity_push_jobh]j)}(hdrm_sched_entity_push_jobh]hdrm_sched_entity_push_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM8ubj)}(h!(struct drm_sched_job *sched_job)h]j)}(hstruct drm_sched_job *sched_jobh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_entity_push_jobasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj'hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h sched_jobh]h sched_job}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM8ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhM8ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM8hjhhubj)}(hhh]h)}(h&Submit a job to the entity's job queueh]h(Submit a job to the entity’s job queue}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM8hj[hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1jFhhhjGhNhNubj)}(hXM**Parameters** ``struct drm_sched_job *sched_job`` job to submit **Note** To guarantee that the order of insertion to queue matches the job's fence sequence number this function should be called with drm_sched_job_arm() under common lock for the struct drm_sched_entity that was set up for **sched_job** in drm_sched_job_init().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM<hjzubj)}(hhh]j)}(h2``struct drm_sched_job *sched_job`` job to submit h](j)}(h#``struct drm_sched_job *sched_job``h]j)}(hjh]hstruct drm_sched_job *sched_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM9hjubj)}(hhh]h)}(h job to submith]h job to submit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM;hjzubh)}(hTo guarantee that the order of insertion to queue matches the job's fence sequence number this function should be called with drm_sched_job_arm() under common lock for the struct drm_sched_entity that was set up for **sched_job** in drm_sched_job_init().h](hTo guarantee that the order of insertion to queue matches the job’s fence sequence number this function should be called with drm_sched_job_arm() under common lock for the struct drm_sched_entity that was set up for }(hjhhhNhNubj)}(h **sched_job**h]h sched_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in drm_sched_job_init().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM;hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjGhhhNhNubeh}(h]scheduler-function-referencesah ]h"]scheduler function referencesah$]h&]uh1hhjhhhhhMMubeh}(h] gpu-schedulerah ]h"] gpu schedulerah$]h&]uh1hhhhhhhhM>ubeh}(h]drm-memory-managementah ]h"]drm memory managementah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjSerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehʌ _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}(j]jaj0]j0ajC=]j9=ajqf]jgfaunameids}(j-j*jzjzjjjRjOjfGjcGjjjjjzjzjjj{j{j|j|j}j}j}j}j~j~j&j#jMjJjFjCjjjFjFjsjsjjjjjjjjjjjjjjjjjjjjj0j0overviewNj:j7j0j0jdBj0jcBj`BjI=jF=j?jC=j?j?j@j@j[BjXBj^j]j1Yj.Yj]j]jwfjtfjjqfjjjkjkjljljNmjKmjjj%j"jDjAjju nametypes}(j-jzjjRjfGjjjzjj{j|j}j}j~j&jMjFjjFjsjjjjjjjjjjj0jj:j0jdBjcBjI=j?j?j@j[Bj^j1Yj]jwfjjjkjljNmjj%jDjuh}(j*hjzhjDjMjjjjjZj_jjj6 j; jOjj2j8jjjcGjUjrjwj#j(j9j>j{jjrjwjjjjjUjZj j jk!jp!j"j"jN%jS%j(j(j+*j0*j ,j,j-j-j/j/jX0j]0j1j1j4j4j5j5j8j8j:j:j[=j`=j>j>j@j@jDjDjjjiGjGjGjFKjKKjLjLj\NjaNjOjOjxQj}QjWSj\Sj@WjEWjXjXjZjZj?\jD\j_j_jjjjjj4j9jǗj̗jGjLjjj jjjjjj!j&j̦jѦjwj|jjj jjjjhjmjjjMjRjjjjjjjjj jjj jjj(j-jjj*j/j jjjj6j;jjjjjojtjjjjjjjjIjjjjjWj\jqjvjwj|jjjJjOjNjSjjjjjjjjjj j!j&jMjRj\jajR jW j5 j: jjjjj0j5jFjj7j=jjjjj j jG"jL"j#j#j%j%je(jj(j7)j<)j ,j,jm.jr.j/j/jo1jt1j3j3j4j4j7j7j:j:j<j<j>j>j@j@j!Dj&DjsjFjHjHjJjJjLjLjNjNjPOjUOjAPjFPjLRjQRjOTjTTj`WjeWjXjXjZjZj]j]j*_j/_jcjcj"gj'gjijijkjkjHmjMmj\pjapjjsjEsjJsj^vjcvjxjxjg{jl{j}j}jjjj"j&j+jjjmjrjjjjjčjɍjjjjjcjhj+j0jjj jj%j*jOjTjjjjj#j(jj«jj«jjjjVjjjj"jjjjj<jBjpjujqjvj9j>jjj*j/jjjsjxjj jjjjj3j8jjjjjLjQjzjjIjNjjjjjijnj#j(jjjjj0jjjj7jj0j=jZj_jjjujzjjjjjjjjjoj>jCj"j'jj j7j<jjjjjjj; j@ j< jA j j j jjyj~jjjjjcjhj#j#j&j&j(j(jj*jo*j-j -j.j.j0j0j`Bj0j7j0jF=j7jC=jL=j?jL=j@j@jXBj@jAjAjBjBjHjHjJjJjLjLj7Nj