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.chMMubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5hhhj5hMMubj{)}(httm_resource_inith]j)}(httm_resource_inith]httm_resource_init}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhhj5hMMubj)}(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&]jjuh1jhj5hhhj5hMMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj5hhhj5hMMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1jKhj5hMMhj5hhubj)}(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.chMMhjl7hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hMMubeh}(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.chMQhj7ubj)}(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.chMNhj7ubj)}(hhh]h)}(h,buffer object this resource is allocated forh]h,buffer object this resource is allocated for}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMNhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMNhj7ubj)}(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.chMOhj7ubj)}(hhh]h)}(hplacement of the resourceh]hplacement of the resource}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMOhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMOhj7ubj)}(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.chMPhj8ubj)}(hhh]h)}(h!the resource object to initializeh]h!the resource object to initialize}(hj;8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj78hMPhj88ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj78hMPhj7ubeh}(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.chMRhj7ubh)}(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.chMQhj7ubeh}(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.chMpubjj)}(h h]h }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8hhhj8hMpubj{)}(httm_resource_finih]j)}(httm_resource_finih]httm_resource_fini}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhhj8hMpubj)}(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&]jjuh1jhj8hhhj8hMpubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj8hhhj8hMpubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jKhj8hMphj8hhubj)}(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.chMphj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMpubeh}(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.chMthj9ubj)}(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.chMqhj :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(:hMqhj):ubah}(h]h ]h"]h$]h&]uh1jhj :ubeh}(h]h ]h"]h$]h&]uh1jhj(:hMqhj :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.chMrhjF:ubj)}(hhh]h)}(hthe resource to clean uph]hthe resource to clean up}(hje:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja:hMrhjb:ubah}(h]h ]h"]h$]h&]uh1jhjF:ubeh}(h]h ]h"]h$]h&]uh1jhja:hMrhj :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.chMthj9ubh)}(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.chMshj9ubeh}(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.chMVubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjd=hhhj=hMVubj{)}(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=hMVubj)}(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=hMVubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj`=hhhj=hMVubah}(h]j[=ah ](jjeh"]h$]h&]jj)jhuh1jKhj=hMVhj]=hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj]=hhhj=hMVubeh}(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.chMZhjH>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.chMXhjg>ubj)}(hhh]h)}(hA memory manager object.h]hA memory manager object.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMXhj>ubah}(h]h ]h"]h$]h&]uh1jhjg>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMXhjd>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.chMZhjH>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.chMWhjH>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.chMkubjj)}(h h]h }(hj>hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>hhhj>hMkubj{)}(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>hMkubj)}(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>hMkubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj>hhhj>hMkubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jKhj>hMkhj>hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj>hhhj>hMkubeh}(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.chMohj)@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.chMmhjH@ubj)}(hhh]h)}(hmanager type to dump.h]hmanager type to dump.}(hjg@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc@hMmhjd@ubah}(h]h ]h"]h$]h&]uh1jhjH@ubeh}(h]h ]h"]h$]h&]uh1jhjc@hMmhjE@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.chMohj@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.chMnhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMohjE@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.chM ubjj)}(h h]h }(hj@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@hhhj@hM ubh)}(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@hM ubjj)}(h h]h }(hj!AhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@hhhj@hM ubjH)}(hjKh]h*}(hj/AhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj@hhhj@hM ubj{)}(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.chM hj?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&]uh1hhjZChM hj[Cubah}(h]h ]h"]h$]h&]uh1jhj?Cubeh}(h]h ]h"]h$]h&]uh1jhjZChM hjsgl) - **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&]uh1jh jlubah}(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)}(h**Definition**:: struct drm_gem_lru { long count; struct list_head list; }; **Members** ``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)}(hBstruct drm_gem_lru { long count; struct list_head list; };h]hBstruct drm_gem_lru { 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)}(hL``count`` The total number of backing pages of the GEM objects in this LRU. h](j)}(h ``count``h]j)}(hjh]hcount}(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)}(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.}(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&]uh1jhjhMhj}ubj)}(h``list`` The LRU list.h](j)}(h``list``h]j)}(hjh]hlist}(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)}(h The LRU list.h]h The LRU list.}(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}ubeh}(h]h ]h"]h$]h&]uh1jhj5ubeh}(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.hhM hjPhhubh)}(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 }(hjhhhNhNubh)}(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.hhKhjubh, and provides }(hjhhhNhNubh)}(h:c:type:`drm_gem_lru_scan`h]j)}(hjGh]hdrm_gem_lru_scan}(hjIhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_lru_scanuh1hhj@hKhjubh for driver’s }(hjhhhNhNubh)}(h*:c:type:`shrinker.scan_objects `h]j)}(hjjh]hshrinker.scan_objects}(hjlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jashrinkeruh1hhj@hKhjubh implementation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@hKhjPhhubh)}(hSAny access to this kind of object must be done with drm_device::gem_lru_mutex held.h]hSAny access to this kind of object must be done with drm_device::gem_lru_mutex held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhKhjPhhubj6)}(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 }(hjLjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjƈhKubj{)}(hdrm_gem_objecth]j)}(hjh]hdrm_gem_object}(hjوhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՈubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjƈhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjƈhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjƈhKhjhhubj)}(hhh]h)}(hGEM buffer objecth]hGEM buffer 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&]uh1jhjhhhjƈhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(hX**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. Access to this field must be done with drm_device::gem_lru_mutex held.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(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.hhMhjubjh)}(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; };}hj8sbah}(h]h ]h"]h$]h&]jjuh1jghQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh)}(h **Members**h]j)}(hjIh]hMembers}(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.hhM)hjubj)}(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)}(hjhh]hrefcount}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjbubj)}(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.hhMhj~ubh)}(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.hhMhj~ubeh}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj_ubj)}(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)}(hjh]h handle_count}(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)}(h6This is the GEM file_priv handle count of this object.h]h6This is the GEM file_priv handle count of this object.}(hjʉhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM#hjljubh)}(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.}(hjىhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM%hjljubh)}(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ƉhM)hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjƉhM)hjljubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƉhM)hj_ubj)}(h(``dev`` DRM dev this object belongs to. h](j)}(h``dev``h]j)}(hj+h]hdev}(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.hhM0hj%ubj)}(hhh]h)}(hDRM dev this object belongs to.h]hDRM dev this object belongs to.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hM0hjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hM0hj_ubj)}(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)}(hjdh]hfilp}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM8hj^ubj)}(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 }(hj}hhhNhNubj)}(h**filp**h]hfilp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh is NULL.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM5hjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhM8hj_ubj)}(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)}(hjh]hvma_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.hhMDhjubj)}(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().}(hjɊhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM?hjƊubh)}(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.}(hj؊hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMChjƊubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŊhMDhj_ubj)}(hN``size`` Size of the object, in bytes. Immutable over the object's lifetime. h](j)}(h``size``h]j)}(hjh]hsize}(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.hhMLhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMLhj_ubj)}(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)}(hj3h]hname}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMUhj-ubj)}(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 }(hjLhhhNhNubh)}(h2:c:type:`drm_device.object_name_lock `h]j)}(hjVh]hdrm_device.object_name_lock}(hjXhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjTubah}(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.hhMShjLubh4. This is used by the GEM_FLINK and GEM_OPEN ioctls.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjshMShjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMUhj_ubj)}(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.hhMbhjubj)}(hhh](h)}(h(dma-buf associated with this GEM object.h]h(dma-buf associated with this GEM object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM\hjubh)}(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.hhM^hjubh)}(h@Protected by :c:type:`drm_device.object_name_lock `.h](h Protected by }(hjNjhhhNhNubh)}(h2:c:type:`drm_device.object_name_lock `h]j)}(hjыh]hdrm_device.object_name_lock}(hjӋhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjϋubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_deviceuh1hhjhMbhjNjubh.}(hjNjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMbhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMbhj_ubj)}(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)}(hj h]h import_attach}(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.hhMvhjubj)}(hhh](h)}(h'dma-buf attachment backing this object.h]h'dma-buf attachment backing this object.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMihj ubh)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMkhj ubh)}(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 }(hjAhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j)}(hjKh]hdrm_gem_object_funcs.free}(hjMhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjIubah}(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.hhMohjAubhg callback is responsible for cleaning up the dma_buf attachment and references acquired at import time.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhhMohj ubh)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMshj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhj_ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM}hjubh)}(hBNormally (**resv** == &**_resv**) except for imported GEM objects.h](h Normally (}(hjhhhNhNubj)}(h**resv**h]hresv}(hjČhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0 == &**_resv**) except for imported GEM objects.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj_ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubh)}(h(This is unused for imported GEM objects.h]h(This is unused for imported GEM objects.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj_ubj)}(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)}(hj6h]hgpuva}(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.hhMhj0ubj)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjLubh)}(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 }(hj^hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjhh]hdma_resv}(hjjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjfubah}(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.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjLubh)}(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.hhMhjLubeh}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj_ubj)}(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)}(hjh]h gpuva.list}(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)}(h3list of GPUVM mappings attached to this GEM object.h]h3list of GPUVM mappings attached to 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)}(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 }(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 (}(hjٍhhhNhNubh)}(h.:c:type:`drm_gem_object.resv `h]j)}(hjh]hdrm_gem_object.resv}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjhMhjٍubh ) or the }(hjٍhhhNhNubh)}(h/:c:type:`drm_gem_object.gpuva `h]j)}(hj*h]hdrm_gem_object.gpuva}(hj,hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjhMhjٍubh .lock mutex.}(hjٍhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjǍubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƍhMhj_ubj)}(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)}(hjch]h gpuva.lock}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj]ubj)}(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 }(hj|hhhNhNubh)}(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.hhMhj|ubh,.list when DRM_GPUVM_IMMEDIATE_MODE is used.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjyubh)}(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 }(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 should be used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjՎhMhjyubeh}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhj_ubj)}(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 }(hj hhhNhNubh)}(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_driveruh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj ubh GEM callbacks.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hMhjubh)}(hNew drivers should use this.h]hNew drivers should use this.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj_ubj)}(h3``lru_node`` List node in a :c:type:`drm_gem_lru`. h](j)}(h ``lru_node``h]j)}(hj]h]hlru_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.hhMhjWubj)}(hhh]h)}(h%List node in a :c:type:`drm_gem_lru`.h](hList node in a }(hjvhhhNhNubh)}(h:c:type:`drm_gem_lru`h]j)}(hjh]h drm_gem_lru}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gem_lruuh1hhjrhMhjvubh.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhj_ubj)}(h``lru`` The current LRU list that the GEM object is on. Access to this field must be done with drm_device::gem_lru_mutex held.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.hhMhjubj)}(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.}(hjҏhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjϏubh)}(hFAccess to this field must be done with drm_device::gem_lru_mutex held.h]hFAccess to this field must be done with drm_device::gem_lru_mutex held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjΏhMhjϏubeh}(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&]uh1jhjPhhhNhNubh)}(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.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.}(hj/hhhNhNubah}(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)}(hjQh]h DRM_GEM_FOPS}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjShhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjOhhhjnhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jKhjnhMhjLhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjLhhhjnhMubeh}(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}(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&]uh1jhjhMhjubh)}(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 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 }(hjؐhhhNhNubh)}(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.hhMhjؐubhR structure. If all you need are the default ops, use DEFINE_DRM_GEM_FOPS instead.}(hjؐhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPhhubj6)}(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}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj%hhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhj!hhhj@hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj@hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj@hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjYjjYjjjuh1jFhhhjPhNhNubh)}(h``DEFINE_DRM_GEM_FOPS (name)``h]j)}(hj_h]hDEFINE_DRM_GEM_FOPS (name)}(hjahhhNhNubah}(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.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}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjuubah}(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)}(hjh]hname}(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 name for the generated structureh]h name for the generated structure}(hj̑hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȑhMhjɑubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȑhMhjubah}(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)}(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 }(hjhhhNhNubh)}(h2:c:type:`struct file_operations `h]j)}(hjh]hstruct file_operations}(hjhhhNhNubah}(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.hhMhjubh1 for GEM based drivers, which can be assigned to }(hjhhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j)}(hj2h]hdrm_driver.fops}(hj4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhj+hMhjubh. 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&]uh1hhj+hMhjubh)}(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.}(hjYhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_get_huge_mntsbc.drm_gem_get_huge_mntasbuh1hhjhhhjhMubjj)}(h h]h }(hjȒhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubjH)}(hjKh]h*}(hj֒hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhMubj{)}(hdrm_gem_get_huge_mnth]j)}(hjŒh]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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj"modnameN classnameNj+j.)}j1]jÒc.drm_gem_get_huge_mntasbuh1hhjubjj)}(h h]h }(hj>hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjLhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hjYhhhNhNubah}(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]j{ah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhj}hhubj)}(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&]uh1jhj}hhhjhMubeh}(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)}(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&``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&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhjubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjݓhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjٓhMhjړubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjٓhMhjubah}(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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh-. A huge tmpfs mountpoint is used instead of }(hjhhhNhNubhtitle_reference)}(h `shm_mnt`h]hshm_mnt}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j/hjubhb after a successful call to drm_gem_huge_mnt_create() when CONFIG_TRANSPARENT_HUGEPAGE is enabled.}(hjhhhNhNubeh}(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)}(hjLh]hReturn}(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.hhMhjubh)}(h1The huge tmpfs mountpoint in use, NULL otherwise.h]h1The huge tmpfs mountpoint in use, NULL otherwise.}(hjbhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM#ubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_object_getasbuh1hhjʔubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjʔubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjʔubj)}(hobjh]hobj}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʔubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjƔubah}(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}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM#hjNhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1jFhhhjPhNhNubj)}(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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM'hjmubj)}(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}(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&]uh1jhjmubh)}(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.hhM&hjmubh)}(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%hjmubeh}(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}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM6ubjj)}(h h]h }(hj3hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhj2hM6ubj{)}(hdrm_gem_object_puth]j)}(hdrm_gem_object_puth]hdrm_gem_object_put}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj2hM6ubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj]ubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj]ubh)}(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'jGsbc.drm_gem_object_putasbuh1hhj]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&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj2hM6ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj2hM6ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj2hM6hjhhubj)}(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.hhM6hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hM6ubeh}(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)}(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)}(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.hhM7hjubj)}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hM7hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hM7hjubah}(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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM9hjubh)}(h%This releases a reference to **obj**.h](hThis releases a reference to }(hjvhhhNhNubj)}(h**obj**h]hobj}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM8hjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMqubjj)}(h h]h }(hjŗhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjėhMqubj{)}(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}(hjחhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӗubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjėhMqubj)}(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ٗsb+c.drm_gem_object_is_shared_for_memory_statsasbuh1hhjubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj?hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjėhMqubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjėhMqubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjėhMqhjhhubj)}(hhh]h)}(hhelper for shared memory statsh]hhelper for shared memory stats}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMqhjshhubah}(h]h ]h"]h$]h&]uh1jhjhhhjėhMqubeh}(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.hhMuhjubj)}(hhh]j)}(h/``struct drm_gem_object *obj`` obj in question 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.hhMvhjubj)}(hhh]h)}(hobj in questionh]hobj in question}(hjИhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̘hMvhj͘ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̘hMvhjubah}(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.hhMxhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMrhjubeh}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM~ubjj)}(h h]h }(hjEhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3hhhjDhM~ubj{)}(hdrm_gem_is_importedh]j)}(hdrm_gem_is_importedh]hdrm_gem_is_imported}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj3hhhjDhM~ubj)}(h"(const struct drm_gem_object *obj)h]j)}(h const struct drm_gem_object *objh](jX)}(hj h]hconst}(hjshhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjoubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjoubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjoubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjoubh)}(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'jYsbc.drm_gem_is_importedasbuh1hhjoubjj)}(h h]h }(hj̙hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjoubjH)}(hjKh]h*}(hjڙhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjoubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubah}(h]h ]h"]h$]h&]jjuh1jhj3hhhjDhM~ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj/hhhjDhM~ubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1jKhjDhM~hj,hhubj)}(hhh]h)}(h.Tests if GEM object's buffer has been importedh]h0Tests if GEM object’s buffer has been imported}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhM~hjhhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjDhM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jFhhhjPhNhNubj)}(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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj-ubj)}(hhh]j)}(h4``const struct drm_gem_object *obj`` the GEM object h](j)}(h$``const struct drm_gem_object *obj``h]j)}(hjRh]h const struct drm_gem_object *obj}(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.hhMhjLubj)}(hhh]h)}(hthe GEM objecth]hthe GEM object}(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 **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.hhMhj-ubh)}(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.hhMhj-ubeh}(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}(hjҚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΚhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjΚhhhjhMubj{)}(hdrm_gem_gpuva_inith]j)}(hdrm_gem_gpuva_inith]hdrm_gem_gpuva_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjΚhhhjhMubj)}(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' reftargetj/modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_gpuva_initasbuh1hhj ubjj)}(h h]h }(hjMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj[hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hobjh]hobj}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(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)}(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&]uh1jhjǚhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(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)}(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<``struct drm_gem_object *obj`` the :c:type:`drm_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&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj͛ubj)}(hhh]h)}(hthe :c:type:`drm_gem_object`h](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_objectuh1hhjhMhjubeh}(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)}(hLThis initializes the :c:type:`drm_gem_object`'s :c:type:`drm_gpuvm_bo` list.h](hThis initializes the }(hjChhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjMh]hdrm_gem_object}(hjOhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjKubah}(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.hhMhjCubh’s }(hjChhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjqh]h drm_gpuvm_bo}(hjshhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjjhMhjCubh list.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjhMhjubh)}(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&]uh1hhjhMhjubh)}(h"See also drm_gem_gpuva_set_lock().h]h"See also drm_gem_gpuva_set_lock().}(hjʜhhhNhNubah}(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_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&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj)jj)jjjuh1jFhhhjPhNhNubh)}(h.``drm_gem_for_each_gpuvm_bo (entry__, obj__)``h]j)}(hj/h]h*drm_gem_for_each_gpuvm_bo (entry__, obj__)}(hj1hhhNhNubah}(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.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 }(hjIhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjSh]h drm_gpuvm_bo}(hjUhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjQubah}(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.hhMhjIubeh}(h]h ]h"]h$]h&]uh1hhjphMhjEubah}(h]h ]h"]h$]h&]uh1jhjphMhjPhhubj)}(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.hhMhj}ubj)}(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)}(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_bouh1hhjhMhjubh. structure to assign to in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(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)}(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_bouh1hhjhMhjubh to walk are associated with}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj}ubh)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:369: ./include/drm/drm_gem.hhMhj}ubh)}(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)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj}ubeh}(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&]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&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj6jj6jjjuh1jFhhhjPhNhNubh)}(h;``drm_gem_for_each_gpuvm_bo_safe (entry__, next__, obj__)``h]j)}(hj<h]h7drm_gem_for_each_gpuvm_bo_safe (entry__, next__, obj__)}(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.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 }(hjVhhhNhNubh)}(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.hhMhjVubeh}(h]h ]h"]h$]h&]uh1hhj}hMhjRubah}(h]h ]h"]h$]h&]uh1jhj}hMhjPhhubj)}(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)}(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)}(hC:c:type:`drm_gpuvm_bostructure` to assign to in each iteration steph](h)}(h:c:type:`drm_gpuvm_bostructure`h]j)}(hjΟh]hdrm_gpuvm_bostructure}(hjПhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj̟ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_bostructureuh1hhjğhMhjȟubh$ 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)}(hH``next__`` :c:type:`next` :c:type:`drm_gpuvm_bo` to store the next step h](j)}(h ``next__``h]j)}(hjh]hnext__}(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)}(h<:c:type:`next` :c:type:`drm_gpuvm_bo` to store the next steph](h)}(h:c:type:`next`h]j)}(hj&h]hnext}(hj(hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^janextuh1hhjhMhj ubh }(hj hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjIh]h drm_gpuvm_bo}(hjKhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjhMhj ubh to store the next step}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.hhMhj|ubj)}(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)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(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)}(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_bouh1hhjhMhjubh to walk are associated with}(hjhhhNhNubeh}(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)}(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 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 }(hjhhhNhNubh)}(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_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)}(hjGh]hdrm_gem_object}(hjIhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj@hMhjubhb. It is implemented with list_for_each_entry_safe(), hence it is save against removal of elements.}(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_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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK_ubj)}(h+(struct drm_device *dev, const char *value)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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_huge_mnt_createasbuh1hhjǡubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjǡubjH)}(hjKh]h*}(hjhhhNhNubah}(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)}(hconst char *valueh](jX)}(hj h]hconst}(hj=hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj9ubjj)}(h h]h }(hjJhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9ubj)}(hcharh]hchar}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjj)}(h h]h }(hjfhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9ubjH)}(hjKh]h*}(hjthhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj9ubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjáubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chK_hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjâjjâjjjuh1jFhhhjPhNhNubj)}(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)}(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.chKchjǢubj)}(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)}(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.chK`hjubj)}(hhh]h)}(h2DRM device that will use the huge tmpfs mountpointh]h2DRM device that will use the huge tmpfs mountpoint}(hjhhhNhNubah}(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)}(hj%h]hconst char *value}(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.chKahjubj)}(hhh]h)}(hhuge tmpfs mount option valueh]hhuge tmpfs mount option value}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKahj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hKahjubeh}(h]h ]h"]h$]h&]uh1jhjǢubh)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(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.chKchjǢubh)}(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 }(hjvhhhNhNubj)}(h**dev**h]hdev}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubhG which is used at GEM object initialization with drm_gem_object_init().}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKbhjǢubh)}(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 (}(hjhhhNhNubj0)}(h `shm_mnt`h]hshm_mnt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j/hjubh=). 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.chKfhjǢubh)}(h **Return**h]j)}(hj̣h]hReturn}(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.chKlhjǢubh)}(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.chKmhjǢubeh}(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}(hjhhhNhNubah}(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 hhhjhKubj{)}(hdrm_gem_object_inith]j)}(hdrm_gem_object_inith]hdrm_gem_object_init}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(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}(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjJubjj)}(h h]h }(hj[hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjnmodnameN classnameNj+j.)}j1]j4)}j'j4sbc.drm_gem_object_initasbuh1hhjJubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjJubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(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' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_object_initasbuh1hhjubjj)}(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&]noemphjjuh1jhjFubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj5modnameN classnameNj+j.)}j1]jc.drm_gem_object_initasbuh1hhj,ubjj)}(h h]h }(hjQhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,ubj)}(hsizeh]hsize}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(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&]uh1jhjhhhjhKubeh}(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)}(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.chKhjubj)}(hhh](j)}(hK``struct drm_device *dev`` drm_device the object should be initialized for 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjĥubj)}(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&]uh1hhjߥhKhjubah}(h]h ]h"]h$]h&]uh1jhjĥubeh}(h]h ]h"]h$]h&]uh1jhjߥhKhjubj)}(h<``struct drm_gem_object *obj`` drm_gem_object to initialize 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.chKhjubj)}(hhh]h)}(hdrm_gem_object to initializeh]hdrm_gem_object to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``size_t size`` object size 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhj6ubj)}(hhh]h)}(h object sizeh]h object size}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjwh]h Description}(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.chKhjubh)}(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.chKhjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/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&]uh1jihjhhhjʦhKubj{)}(hdrm_gem_private_object_inith]j)}(hdrm_gem_private_object_inith]hdrm_gem_private_object_init}(hjݦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj٦ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjʦhKubj)}(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 }(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_private_object_initasbuh1hhjubjj)}(h h]h }(hj7hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjEhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j3c.drm_gem_private_object_initasbuh1hhjgubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjgubj)}(hobjh]hobj}(hj§hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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' reftargetjmodnameN classnameNj+j.)}j1]j3c.drm_gem_private_object_initasbuh1hhjקubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjקubj)}(hsizeh]hsize}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjקubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(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*initialize an allocated private GEM objecth]h*initialize an allocated private GEM object}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhj1hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjʦhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1jFhhhjPhNhNubj)}(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)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjPubj)}(hhh](j)}(hK``struct drm_device *dev`` drm_device the object should be initialized for h](j)}(h``struct drm_device *dev``h]j)}(hjuh]hstruct drm_device *dev}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjoubj)}(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&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhKhjlubj)}(h<``struct drm_gem_object *obj`` drm_gem_object to initialize 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.chKhjubj)}(hhh]h)}(hdrm_gem_object to initializeh]hdrm_gem_object to initialize}(hjǨhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjèhKhjĨubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjèhKhjlubj)}(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&]uh1jhjhKhjlubeh}(h]h ]h"]h$]h&]uh1jhjPubh)}(h**Description**h]j)}(hj"h]h Description}(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.chKhjPubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chKhjPubeh}(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)}(h` 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}(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)}(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&]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)}(h4drm file-private structure containing the gem objecth]h4drm file-private structure containing the gem object}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``struct drm_device *dev`` corresponding 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhj=ubj)}(hhh]h)}(hcorresponding drm_deviceh]hcorresponding drm_device}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjubj)}(h!``u32 handle`` gem object handle h](j)}(h``u32 handle``h]j)}(hj|h]h u32 handle}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjvubj)}(hhh]h)}(hgem object handleh]hgem object handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``u64 *offset`` return location for the fake mmap offset h](j)}(h``u64 *offset``h]j)}(hjh]h u64 *offset}(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)}(h(return location for the fake mmap offseth]h(return location for the fake mmap offset}(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&]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 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 }(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_driveruh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubhO kms driver callback for drivers which use gem to manage their backing storage.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-hMhjubh)}(h **Return**h]j)}(hj:h]hReturn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(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.}(hjPhhhNhNubah}(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&]uh1jhj{hhhU/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&]uh1jihj{hhhjhMubj{)}(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&]jjuh1jzhj{hhhjhMubj)}(hF(struct drm_file *file_priv, struct drm_gem_object *obj, u32 *handlep)h](j)}(hstruct drm_file *file_privh](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&]uh1jhjװubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjܰmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_handle_createasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h file_privh]h file_priv}(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 }(hj;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjNmodnameN classnameNj+j.)}j1]jc.drm_gem_handle_createasbuh1hhj*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&]noemphjjuh1jhjubj)}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjͱhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hhandleph]hhandlep}(hjڱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjwhhhjhMubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjthhubj)}(hhh]h)}(h!create a gem handle for an objecth]h!create a gem handle 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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(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)}(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.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)}(hjEh]hstruct drm_file *file_priv}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubj)}(h2``struct drm_gem_object *obj`` object to register h](j)}(h``struct drm_gem_object *obj``h]j)}(hj~h]hstruct drm_gem_object *obj}(hjhhhNhNubah}(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.chMhjxubj)}(hhh]h)}(hobject to registerh]hobject to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhj<ubj)}(hD``u32 *handlep`` pointer to return the created handle to the caller h](j)}(h``u32 *handlep``h]j)}(hjh]h u32 *handlep}(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)}(h2pointer to return the created handle to the callerh]h2pointer to return the created handle to the caller}(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&]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.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.}(hjhhhNhNubah}(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 }(hjhhhNhNubj)}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh{ to userspace it must be fully set up by this point, drivers must call this last in their buffer object creation callbacks.}(hjhhhNhNubeh}(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}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM4ubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjThhhjfhM4ubj{)}(hdrm_gem_free_mmap_offseth]j)}(hdrm_gem_free_mmap_offseth]hdrm_gem_free_mmap_offset}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhhjfhM4ubj)}(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_free_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&]jjuh1jhjThhhjfhM4ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjPhhhjfhM4ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jKhjfhM4hjMhhubj)}(hhh]h)}(h(release a fake mmap offset for an objecth]h(release 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.chM4hjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhM4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jFhhhjPhNhNubj)}(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)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM8hj4ubj)}(hhh]j)}(h/``struct drm_gem_object *obj`` obj in question h](j)}(h``struct drm_gem_object *obj``h]j)}(hjYh]hstruct drm_gem_object *obj}(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.chM5hjSubj)}(hhh]h)}(hobj in questionh]hobj in question}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM5hjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM5hjPubah}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM7hj4ubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM6hj4ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM8hj4ubeh}(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&]uh1jhjubah}(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}(hj%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj!ubjj)}(h h]h }(hj2hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjEmodnameN classnameNj+j.)}j1]j4)}j'j sb!c.drm_gem_create_mmap_offset_sizeasbuh1hhj!ubjj)}(h h]h }(hjchhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!ubjH)}(hjKh]h*}(hjqhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj!ubj)}(hobjh]hobj}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(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]j_!c.drm_gem_create_mmap_offset_sizeasbuh1hhjubjj)}(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&]jjuh1jhjhhhjhMGubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMGubah}(h]j۴ah ](jjeh"]h$]h&]jj)jhuh1jKhjhMGhjݴhhubj)}(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.chMGhjhhubah}(h]h ]h"]h$]h&]uh1jhjݴhhhjhMGubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(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)}(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.chMKhj ubj)}(hhh](j)}(h/``struct drm_gem_object *obj`` obj in question h](j)}(h``struct drm_gem_object *obj``h]j)}(hj1h]hstruct drm_gem_object *obj}(hj3hhhNhNubah}(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.chMHhj+ubj)}(hhh]h)}(hobj in questionh]hobj in question}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMHhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMHhj(ubj)}(h!``size_t size`` the virtual size h](j)}(h``size_t size``h]j)}(hjjh]h size_t size}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMIhjdubj)}(hhh]h)}(hthe virtual sizeh]hthe virtual size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMIhj(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.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.}(hjhhhNhNubah}(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 }(hjʶhhhNhNubj)}(h**obj**h]hobj}(hjҶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʶubhF, in cases where the virtual size differs from the physical size (ie. }(hjʶhhhNhNubh)}(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.chMOhjʶubh3). Otherwise just use drm_gem_create_mmap_offset().}(hjʶhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMOhj 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.}(hjhhhNhNubah}(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}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMbubjj)}(h h]h }(hjLhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9hhhjKhMbubj{)}(hdrm_gem_create_mmap_offseth]j)}(hdrm_gem_create_mmap_offseth]hdrm_gem_create_mmap_offset}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhjKhMbubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjvubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubh)}(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_offsetasbuh1hhjvubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubjH)}(hjKh]h*}(hjƷhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjvubj)}(hobjh]hobj}(hjӷhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhjKhMbubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj5hhhjKhMbubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jKhjKhMbhj2hhubj)}(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&]uh1jhj2hhhjKhMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(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)}(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.chMfhjubj)}(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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMchj8ubj)}(hhh]h)}(hobj in questionh]hobj in question}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMchjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMchj5ubah}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMehjubh)}(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.chMdhjubh)}(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}(hjhhhNhNubah}(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.chMihjubh)}(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 }(hjhhhNhNubj)}(h**obj**h]hobj}(hjǸhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" to release the fake offset again.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMkhjubeh}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hMubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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*}(hjNhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhj hMubjH)}(hjKh]h*}(hj[hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhj hMubj{)}(hdrm_gem_get_pagesh]j)}(hj=h]hdrm_gem_get_pages}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j;c.drm_gem_get_pagesasbuh1hhjubjj)}(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&]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)}(hubjj)}(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(sbc.drm_gem_put_pagesasbuh1hhj>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)}(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}(hjһhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϻubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjԻmodnameN classnameNj+j.)}j1]j|c.drm_gem_put_pagesasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h bool dirtyh](j)}(hj*h]hbool}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjj)}(h h]h }(hj>hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-ubj)}(hdirtyh]hdirty}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h bool accessedh](j)}(hj*h]hbool}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjj)}(h h]h }(hjrhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjaubj)}(haccessedh]haccessed}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(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-helper to free backing pages for a GEM objecth]h-helper to free 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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj¼jj¼jjjuh1jFhhhjPhNhNubj)}(h**Parameters** ``struct drm_gem_object *obj`` obj in question ``struct page **pages`` pages to free ``bool dirty`` if true, pages will be marked as dirty ``bool accessed`` if true, the pages will be marked as accessedh](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.chMhjƼubj)}(hhh](j)}(h/``struct drm_gem_object *obj`` obj in question 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)}(hobj in questionh]hobj in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``struct page **pages`` pages to free 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]h)}(h pages to freeh]h pages to free}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(h6``bool dirty`` if true, pages will be marked as dirty h](j)}(h``bool dirty``h]j)}(hj]h]h bool dirty}(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.chMhjWubj)}(hhh]h)}(h&if true, pages will be marked as dirtyh]h&if true, pages will be marked as dirty}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjubj)}(h?``bool accessed`` if true, the pages will be marked as accessedh](j)}(h``bool accessed``h]j)}(hjh]h bool accessed}(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)}(h-if true, the pages will be marked as accessedh]h-if true, the pages will be marked as accessed}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjƼubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_gem_objects_lookup (C function)c.drm_gem_objects_lookuphNtauh1j5hjPhhhNhNubjG)}(hhh](jL)}(hyint drm_gem_objects_lookup (struct drm_file *filp, void __user *bo_handles, int count, struct drm_gem_object ***objs_out)h]jR)}(hxint drm_gem_objects_lookup(struct drm_file *filp, void __user *bo_handles, int count, struct drm_gem_object ***objs_out)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.chM/ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM/ubj{)}(hdrm_gem_objects_lookuph]j)}(hdrm_gem_objects_lookuph]hdrm_gem_objects_lookup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM/ubj)}(h^(struct drm_file *filp, void __user *bo_handles, int count, struct drm_gem_object ***objs_out)h](j)}(hstruct drm_file *filph](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}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjMmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_objects_lookupasbuh1hhj)ubjj)}(h h]h }(hjkhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj)ubjH)}(hjKh]h*}(hjyhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj)ubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hvoid __user *bo_handlesh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh__user}(hjhhhNhNubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj;hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h bo_handlesh]h bo_handles}(hjھhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(h int counth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(h!struct drm_gem_object ***objs_outh](jX)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj$ubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj$ubh)}(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]jgc.drm_gem_objects_lookupasbuh1hhj$ubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj$ubjH)}(hjKh]h*}(hjrhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj$ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj$ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj$ubj)}(hobjs_outh]hobjs_out}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubeh}(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,look up GEM objects from an array of handlesh]h,look up GEM objects from an array of handles}(hjÿhhhNhNubah}(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&]jjjjۿjjۿjjjuh1jFhhhjPhNhNubj)}(hX**Parameters** ``struct drm_file *filp`` DRM file private date ``void __user *bo_handles`` user pointer to array of userspace handle ``int count`` size of handle array ``struct drm_gem_object ***objs_out`` returned pointer to array of drm_gem_object pointers **Description** Takes an array of userspace handles and returns a newly allocated array of GEM objects. After a successful lookup GEM objects need to be released using drm_gem_object_put() and the array returned in **objs_out** must be freed using kvfree(). For a single handle lookup, use drm_gem_object_lookup(). **Return** Zero on success or a negative error code.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.chM3hj߿ubj)}(hhh](j)}(h0``struct drm_file *filp`` DRM file private date h](j)}(h``struct drm_file *filp``h]j)}(hjh]hstruct drm_file *filp}(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.chM0hjubj)}(hhh]h)}(hDRM file private dateh]hDRM file private date}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubj)}(hF``void __user *bo_handles`` user pointer to array of userspace handle h](j)}(h``void __user *bo_handles``h]j)}(hj=h]hvoid __user *bo_handles}(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.chM1hj7ubj)}(hhh]h)}(h)user pointer to array of userspace handleh]h)user pointer to array of userspace handle}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM1hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhM1hjubj)}(h#``int count`` size of handle array h](j)}(h ``int count``h]j)}(hjvh]h int count}(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.chM2hjpubj)}(hhh]h)}(hsize of handle arrayh]hsize of handle array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubj)}(h[``struct drm_gem_object ***objs_out`` returned pointer to array of drm_gem_object pointers h](j)}(h%``struct drm_gem_object ***objs_out``h]j)}(hjh]h!struct drm_gem_object ***objs_out}(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.chM3hjubj)}(hhh]h)}(h4returned pointer to array of drm_gem_object pointersh]h4returned pointer to array of drm_gem_object pointers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubeh}(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.chM5hj߿ubh)}(hWTakes an array of userspace handles and returns a newly allocated array of GEM objects.h]hWTakes an array of userspace handles and returns a newly allocated 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.chM4hj߿ubh)}(hAfter a successful lookup GEM objects need to be released using drm_gem_object_put() and the array returned in **objs_out** must be freed using kvfree().h](hoAfter a successful lookup GEM objects need to be released using drm_gem_object_put() and the array returned in }(hjhhhNhNubj)}(h **objs_out**h]hobjs_out}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be freed using kvfree().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM7hj߿ubh)}(h8For a single handle lookup, use drm_gem_object_lookup().h]h8For a single handle lookup, use drm_gem_object_lookup().}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM;hj߿ubh)}(h **Return**h]j)}(hjAh]hReturn}(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.chM=hj߿ubh)}(h)Zero on success or a negative error code.h]h)Zero on success or a negative error code.}(hjWhhhNhNubah}(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_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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]jc.drm_gem_object_lookupasbuh1hhjubjj)}(h h]h }(hj<hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjJhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hfilph]hfilp}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjumodnameN classnameNj+j.)}j1]jc.drm_gem_object_lookupasbuh1hhjlubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMhubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj~hhhjhMhubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhhj{hhubj)}(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&]uh1jhj{hhhjhMhubeh}(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}(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.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&]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)}(hDRM file private dateh]hDRM file private date}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMihj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMihjubj)}(h ``u32 handle`` userspace handle h](j)}(h``u32 handle``h]j)}(hjCh]h u32 handle}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMjhj=ubj)}(hhh]h)}(huserspace handleh]huserspace handle}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMjhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMjhjubeh}(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.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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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}(hj9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj5ubjj)}(h h]h }(hjFhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjYmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_dma_resv_waitasbuh1hhj5ubjj)}(h h]h }(hjwhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj5ubj)}(hfileph]hfilep}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(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]jsc.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&]noemphjjuh1jhj1ubj)}(h bool wait_allh](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hwait_allh]hwait_all}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hunsigned long timeouth](j)}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#ubj)}(hlongh]hlong}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjj)}(h h]h }(hjQhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#ubj)}(htimeouth]htimeout}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(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)}(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)}(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 handleh]huserspace handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hQ``bool wait_all`` if true, wait on all fences, else wait on just exclusive fence h](j)}(h``bool wait_all``h]j)}(hj<h]h bool wait_all}(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.chMhj6ubj)}(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}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubj)}(hQ``unsigned long timeout`` timeout value in jiffies or zero to return immediately h](j)}(h``unsigned long timeout``h]j)}(hjuh]hunsigned long timeout}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjoubj)}(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&]uh1jhjoubeh}(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.chMlubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMlubj{)}(hdrm_gem_object_releaseh]j)}(hdrm_gem_object_releaseh]hdrm_gem_object_release}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMlubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hj2hhhNhNubah}(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}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjRmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_object_releaseasbuh1hhj.ubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj.ubjH)}(hjKh]h*}(hj~hhhNhNubah}(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&]jjuh1jhjhhhjhMlubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMlubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMlhjhhubj)}(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.chMlhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMlubeh}(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.chMphjubj)}(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.chMmhjubj)}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMmhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMmhjubah}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMohjubh)}(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 }(hjGhhhNhNubj)}(h**obj**h]hobj}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh- and is the inverse of drm_gem_object_init().}(hjGhhhNhNubeh}(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_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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hkrefh]hkref}(hjhhhNhNubah}(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]j{ah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhj}hhubj)}(hhh]h)}(hfree a GEM objecth]hfree a GEM object}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhjhMubeh}(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)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjdubj)}(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&]uh1jhjdubh)}(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.chMhjdubh)}(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 hhhj&hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(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)}(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}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubah}(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&]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().}(hjjhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj"hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvmah]hvma}(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&vma->ops->close implementation for GEMh]h&vma->ops->close implementation for GEM}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1jFhhhjPhNhNubj)}(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)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjuubj)}(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&]uh1jhjuubh)}(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.chMhjuubh)}(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.chMhjuubeh}(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}(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_mmap_objh]j)}(hdrm_gem_mmap_objh]hdrm_gem_mmap_obj}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj(hMubj)}(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}(hjWhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjSubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjSubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjwmodnameN classnameNj+j.)}j1]j4)}j'j=sbc.drm_gem_mmap_objasbuh1hhjSubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjSubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjSubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(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&]noemphjjuh1jhjOubj)}(hstruct vm_area_struct *vmah](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj'hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj:modnameN classnameNj+j.)}j1]jc.drm_gem_mmap_objasbuh1hhjubjj)}(h h]h }(hjVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjdhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvmah]hvma}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(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)}(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&]uh1jhjhhhj(hMubeh}(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)}(hjh]hunsigned long obj_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.chMhjubj)}(hhh]h)}(h&the object size to be mapped, in bytesh]h&the object size to be mapped, in bytes}(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 vm_area_struct *vma`` VMA for the area to be mapped h](j)}(h``struct vm_area_struct *vma``h]j)}(hjNh]hstruct vm_area_struct *vma}(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)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM)ubjj)}(h h]h }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hM)ubj{)}(hdrm_gem_get_unmapped_areah]j)}(hdrm_gem_get_unmapped_areah]hdrm_gem_get_unmapped_area}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(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}(hjThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjPubjj)}(h h]h }(hjahhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjPubh)}(hhh]j)}(hfileh]hfile}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjtmodnameN classnameNj+j.)}j1]j4)}j'j:sbc.drm_gem_get_unmapped_areaasbuh1hhjPubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjPubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjPubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(huaddrh]huaddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlenh]hlen}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjj)}(h h]h }(hjvhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubj)}(hpgoffh]hpgoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(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&]noemphjjuh1jhjLubeh}(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)}(h1get memory mapping region routine for GEM objectsh]h1get memory mapping region routine for GEM objects}(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&]jjjj3jj3jjjuh1jFhhhjPhNhNubj)}(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)}(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.chM-hj7ubj)}(hhh](j)}(h'``struct file *filp`` DRM file pointer h](j)}(h``struct file *filp``h]j)}(hj\h]hstruct file *filp}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM*hjVubj)}(hhh]h)}(hDRM file pointerh]hDRM file pointer}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM*hjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhM*hjSubj)}(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+hjSubj)}(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,hjSubj)}(h*``unsigned long pgoff`` Offset (in pages) h](j)}(h``unsigned long pgoff``h]j)}(hjh]hunsigned long pgoff}(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.chM-hjubj)}(hhh]h)}(hOffset (in pages)h]hOffset (in pages)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjSubj)}(h&``unsigned long flags`` Mapping flags h](j)}(h``unsigned long flags``h]j)}(hj@h]hunsigned long flags}(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.chM.hj:ubj)}(hhh]h)}(h Mapping flagsh]h Mapping flags}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM.hjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhM.hjSubeh}(h]h ]h"]h$]h&]uh1jhj7ubh)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM0hj7ubh)}(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.chM/hj7ubh)}(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.chM6hj7ubh)}(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:hj7ubeh}(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.chMVubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMVubj{)}(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&]jjuh1jzhjhhhjhMVubj)}(h/(struct file *filp, struct vm_area_struct *vma)h](j)}(hstruct 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)}(hfileh]hfile}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj;modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_mmapasbuh1hhjubjj)}(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)}(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]jUc.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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMVubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMVubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMVhjhhubj)}(hhh]h)}(h"memory map routine for GEM objectsh]h"memory map routine for GEM objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMVhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMVubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jFhhhjPhNhNubj)}(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)}(hj0h]h Parameters}(hj2hhhNhNubah}(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.chMZhj*ubj)}(hhh](j)}(h'``struct file *filp`` DRM file pointer h](j)}(h``struct file *filp``h]j)}(hjOh]hstruct file *filp}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMWhjIubj)}(hhh]h)}(hDRM file pointerh]hDRM file pointer}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMWhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMWhjFubj)}(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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMXhjubj)}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMXhjFubeh}(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.chMZhj*ubh)}(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.chMYhj*ubh)}(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\hj*ubh)}(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.chM`hj*ubeh}(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}(hj&hhhNhNubah}(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 }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj"hhhj4hMubj{)}(hdrm_gem_lock_reservationsh]j)}(hdrm_gem_lock_reservationsh]hdrm_gem_lock_reservations}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"hhhj4hMubj)}(hM(struct drm_gem_object **objs, int count, struct ww_acquire_ctx *acquire_ctx)h](j)}(hstruct drm_gem_object **objsh](jX)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_ubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubh)}(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'jIsbc.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&]noemphjjuh1jhj[ubj)}(h int counth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(h"struct ww_acquire_ctx *acquire_ctxh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hww_acquire_ctxh]hww_acquire_ctx}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj7modnameN classnameNj+j.)}j1]jc.drm_gem_lock_reservationsasbuh1hhjubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjahhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h acquire_ctxh]h acquire_ctx}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhj4hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj4hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj4hMhjhhubj)}(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&]uh1jhjhhhj4hMubeh}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``int count`` Number of objects in **objs** h](j)}(h ``int count``h]j)}(hjh]h int count}(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.chMhj ubj)}(hhh]h)}(hNumber of objects in **objs**h](hNumber of objects in }(hj+hhhNhNubj)}(h**objs**h]hobjs}(hj3hhhNhNubah}(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'hMhjubj)}(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)}(hjYh]h"struct ww_acquire_ctx *acquire_ctx}(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)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMhjoubah}(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&]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)}(h/void drm_gem_lru_init (struct drm_gem_lru *lru)h]jR)}(h.void drm_gem_lru_init(struct drm_gem_lru *lru)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)h]j)}(hstruct drm_gem_lru *lruh](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_gem_lruh]h drm_gem_lru}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj7modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_lru_initasbuh1hhjubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjchhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hlruh]hlru}(hjphhhNhNubah}(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)}(hinitialize a LRUh]hinitialize a LRU}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjPhNhNubj)}(hC**Parameters** ``struct drm_gem_lru *lru`` The LRU to initializeh](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_gem_lru *lru`` The LRU to initializeh](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.chMhjubj)}(hhh]h)}(hThe LRU to initializeh]hThe LRU to initialize}(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&]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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM/ubjj)}(h h]h }(hjDhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj1hhhjChM/ubj{)}(hdrm_gem_lru_removeh]j)}(hdrm_gem_lru_removeh]hdrm_gem_lru_remove}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1hhhjChM/ubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjnubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjnubh)}(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'jXsbc.drm_gem_lru_removeasbuh1hhjnubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjnubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjnubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubah}(h]h ]h"]h$]h&]jjuh1jhj1hhhjChM/ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj-hhhjChM/ubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jKhjChM/hj*hhubj)}(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.chM/hjhhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jFhhhjPhNhNubj)}(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.chM3hjubj)}(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)}(hj6h]hstruct drm_gem_object *obj}(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.chM3hj0ubj)}(hhh]h)}(h)The GEM object to remove from current LRUh]h)The GEM object to remove from current LRU}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhM3hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhM3hj-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.chM5hjubh)}(h1If the object is currently in any LRU, remove it.h]h1If the object is currently in any LRU, remove it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM0hjubeh}(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}(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_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&]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}(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 }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj?hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hlruh]hlru}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjaubjj)}(h h]h }(hjrhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjaubh)}(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_tail_lockedasbuh1hhjaubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjaubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjaubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(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)}(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}(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.chMDhjubj)}(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&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMDhj!ubj)}(hhh]h)}(h The LRU to move the object into.h]h The LRU to move the object into.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMDhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMDhjubj)}(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}(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.chMEhjZubj)}(hhh]h)}(h$The GEM object to move into this LRUh]h$The GEM object to move into this LRU}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMEhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMEhjubeh}(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.chMGhjubh)}(h>Like :c:type:`drm_gem_lru_move_tail` but lru lock must be heldh](hLike }(hjhhhNhNubh)}(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.chMAhjubh but lru lock must be held}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMAhjubeh}(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.chMVubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMVubj{)}(hdrm_gem_lru_move_tailh]j)}(hdrm_gem_lru_move_tailh]hdrm_gem_lru_move_tail}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMVubj)}(h5(struct drm_gem_lru *lru, struct drm_gem_object *obj)h](j)}(hstruct drm_gem_lru *lruh](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)}(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'j&sbc.drm_gem_lru_move_tailasbuh1hhj<ubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj<ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj<ubj)}(hlruh]hlru}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(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]jzc.drm_gem_lru_move_tailasbuh1hhjubjj)}(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&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMVubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMVubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMVhjhhubj)}(hhh]h)}(h&move the object to the tail of the LRUh]h&move the object to the tail of the LRU}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMVhj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMVubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jFhhhjPhNhNubj)}(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)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMZhjOubj)}(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)}(hjth]hstruct drm_gem_lru *lru}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chM\hjnubj)}(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&]uh1hhjhM\hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjkubj)}(hD``struct drm_gem_object *obj`` The GEM object to move into this 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.chM]hjubj)}(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&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjkubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(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_hjOubh)}(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.chMWhjOubeh}(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_device *dev, 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_device *dev, 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}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMiubjj)}(h h]h }(hj<hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj)hhhj;hMiubj)}(hlongh]hlong}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj;hMiubjj)}(h h]h }(hjXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj)hhhj;hMiubj{)}(hdrm_gem_lru_scanh]j)}(hdrm_gem_lru_scanh]hdrm_gem_lru_scan}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj)hhhj;hMiubj)}(h(struct drm_device *dev, 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_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'jlsbc.drm_gem_lru_scanasbuh1hhjubjj)}(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&]noemphjjuh1jhj~ubj)}(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]jc.drm_gem_lru_scanasbuh1hhjubjj)}(h h]h }(hj4hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjBhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hlruh]hlru}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hunsigned int nr_to_scanh](j)}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjj)}(h h]h }(hjvhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubj)}(h nr_to_scanh]h nr_to_scan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(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&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h remainingh]h remaining}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hIbool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(h(h]h(}(hj2hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjH)}(hjKh]h*}(hj@hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hshrinkh]hshrink}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjH)}(h)h]h)}(hj[hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjH)}(hj4h]h(}(hjihhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjX)}(hjh]hstruct}(hjvhhhNhNubah}(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_lru_scanasbuh1hhjubjj)}(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&]uh1jhjubjH)}(h,h]h,}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjj)}(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)}(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 }(hj3hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjAhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hticketh]hticket}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjH)}(hj]h]h)}(hj\hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hstruct ww_acquire_ctx *ticketh](jX)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjpubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubh)}(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_scanasbuh1hhjpubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjpubj)}(hticketh]hticket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubeh}(h]h ]h"]h$]h&]jjuh1jhj)hhhj;hMiubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj%hhhj;hMiubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj;hMihj"hhubj)}(hhh]h)}(h)helper to implement shrinker.scan_objectsh]h)helper to implement shrinker.scan_objects}(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&]uh1jhj"hhhj;hMiubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jFhhhjPhNhNubj)}(hX0**Parameters** ``struct drm_device *dev`` DRM device the LRU belongs to ``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)}(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)}(h9``struct drm_device *dev`` DRM device the LRU belongs to h](j)}(h``struct drm_device *dev``h]j)}(hj6h]hstruct drm_device *dev}(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.chMrhj0ubj)}(hhh]h)}(hDRM device the LRU belongs toh]hDRM device the LRU belongs to}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMrhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMrhj-ubj)}(h,``struct drm_gem_lru *lru`` The LRU to scan h](j)}(h``struct drm_gem_lru *lru``h]j)}(hjoh]hstruct drm_gem_lru *lru}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMshjiubj)}(hhh]h)}(hThe LRU to scanh]hThe LRU to scan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMshjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMshj-ubj)}(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.chMthjubj)}(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&]uh1hhjhMthjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMthj-ubj)}(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.chMuhjubj)}(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&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhj-ubj)}(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)}(hjh]hIbool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)}(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.chMvhjubj)}(hhh]h)}(h-Callback to try to shrink/reclaim the object.h]h-Callback to try to shrink/reclaim the object.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMvhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMvhj-ubj)}(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)}(hjSh]hstruct ww_acquire_ctx *ticket}(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.chMwhjMubj)}(hhh]h)}(h2Optional ww_acquire_ctx context to use for lockingh]h2Optional ww_acquire_ctx context to use for locking}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMwhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMwhj-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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:372: ./drivers/gpu/drm/drm_gem.chMyhjubh)}(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.chMjhjubh)}(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.chMmhjubeh}(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&]uh1jihjhhhjhMubj{)}(hdrm_gem_evict_lockedh]j)}(hdrm_gem_evict_lockedh]hdrm_gem_evict_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(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}(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_evict_lockedasbuh1hhjubjj)}(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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(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}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hhhhhMxubh)}(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).}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:378: ./drivers/gpu/drm/drm_gem_dma_helper.chKhj,hhubh)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:378: ./drivers/gpu/drm/drm_gem_dma_helper.chK"hj,hhubh)}(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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:378: ./drivers/gpu/drm/drm_gem_dma_helper.chK(hj,hhubh)}(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 }(hjjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjth]hdrm_gem_object}(hjvhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjrubah}(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+hjjubh 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.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK+hj,hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_dma_object (C struct)c.drm_gem_dma_objecthNtauh1j5hj,hhhNhNubjG)}(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&]jjjjjjjjjuh1jFhhhj,hNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubjh)}(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; };}hj4sbah}(h]h ]h"]h$]h&]jjuh1jgh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubh)}(h **Members**h]j)}(hjEh]hMembers}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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)}(h``base`` base GEM object h](j)}(h``base``h]j)}(hjdh]hbase}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(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}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhj[ubj)}(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&]uh1jhjhKhj[ubj)}(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.}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj[ubj)}(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: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}(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)}(hL``map_noncoherent`` if true, the GEM object is backed by non-coherent memoryh](j)}(h``map_noncoherent``h]j)}(hjIh]hmap_noncoherent}(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.hhKhjCubj)}(hhh]h)}(h8if true, the GEM object is backed by non-coherent memoryh]h8if true, the GEM object is backed by non-coherent memory}(hjbhhhNhNubah}(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&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hKhj[ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_gem_dma_object_free (C function)c.drm_gem_dma_object_freehNtauh1j5hj,hhhNhNubjG)}(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 }(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_freeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj,hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hj9hhhNhNubah}(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()}(hjchhhNhNubah}(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&]jjjj{jj{jjjuh1jFhhhj,hNhNubj)}(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&]uh1hhjhK6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_gem_dma_object_print_info (C function)c.drm_gem_dma_object_print_infohNtauh1j5hj,hhhNhNubjG)}(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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKBubjj)}(h h]h }(hjVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjChhhjUhKBubj{)}(hdrm_gem_dma_object_print_infoh]j)}(hdrm_gem_dma_object_print_infoh]hdrm_gem_dma_object_print_info}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjChhhjUhKBubj)}(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'jjsbc.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&]noemphjjuh1jhj|ubj)}(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}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h const struct drm_gem_object *objh](jX)}(hj h]hconst}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubjX)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubh)}(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]jc.drm_gem_dma_object_print_infoasbuh1hhjBubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjBubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjUhKBubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj?hhhjUhKBubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1jKhjUhKBhj<hhubj)}(hhh]h)}(h3Print :c:type:`drm_gem_dma_object` info for debugfsh](hPrint }(hjhhhNhNubh)}(h:c:type:`drm_gem_dma_object`h]j)}(hjh]hdrm_gem_dma_object}(hjhhhNhNubah}(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&]uh1jhj<hhhjUhKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1jFhhhj,hNhNubj)}(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)}(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.hhKFhj'ubj)}(hhh](j)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hjLh]hstruct drm_printer *p}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKChjFubj)}(hhh]h)}(h DRM printerh]h DRM printer}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKChjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahKChjCubj)}(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&]uh1jhjhKDhjCubj)}(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&]uh1jhjhKEhjCubeh}(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.hhKGhj'ubh)}(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 }(hjhhhNhNubh)}(h@:c:type:`drm_gem_object_funcs.print_info `h]j)}(hjh]hdrm_gem_object_funcs.print_info}(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.hhKFhjubh handler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj6hKFhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubj6)}(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_tablehNtauh1j5hj,hhhNhNubjG)}(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}(hjahhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj]hhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKSubjj)}(h h]h }(hjohhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj]hhhjnhKSubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(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_tableasbuh1hhj]hhhjnhKSubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj]hhhjnhKSubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj]hhhjnhKSubj{)}(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&]jjuh1jzhj]hhhjnhKSubj)}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj%hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj]hhhjnhKSubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjYhhhjnhKSubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jKhjnhKShjVhhubj)}(hhh]h)}(h2GEM object function for drm_gem_dma_get_sg_table()h]h2GEM object function for drm_gem_dma_get_sg_table()}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKShjYhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjnhKSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1jFhhhj,hNhNubj)}(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)}(hj~h]h Parameters}(hjhhhNhNubah}(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.hhKWhjxubj)}(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&]uh1jhjxubh)}(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.hhKVhjxubh)}(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 }(hjhhhNhNubh)}(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.hhKUhjubh handler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKUhjxubh)}(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:381: ./include/drm/drm_gem_dma_helper.hhKXhjxubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKYhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_gem_dma_object_mmap (C function)c.drm_gem_dma_object_mmaphNtauh1j5hj,hhhNhNubjG)}(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}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKwubjj)}(h h]h }(hjvhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjchhhjuhKwubj{)}(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&]jjuh1jzhjchhhjuhKwubj)}(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*}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj#hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj6modnameN classnameNj+j.)}j1]jc.drm_gem_dma_object_mmapasbuh1hhjubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj`hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvmah]hvma}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjuhKwubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj_hhhjuhKwubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1jKhjuhKwhj\hhubj)}(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&]uh1jhj\hhhjuhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj,hNhNubj)}(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&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKxhjubj)}(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: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}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKyhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKyhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(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 }(hjbhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.mmap `h]j)}(hjlh]hdrm_gem_object_funcs.mmap}(hjnhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjjubah}(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.hhKzhjbubh handler.}(hjbhhhNhNubeh}(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&]uh1jhj,hhhNhNubj6)}(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_CREATEhNtauh1j5hj,hhhNhNubjG)}(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 jjjuh1jFhhhj,hNhNubh)}(h>``DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE (dumb_create_func)``h]j)}(hjh]h:DRM_GEM_DMA_DRIVER_OPS_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.hhKhj,hhubj)}(hDMA GEM driver operations h]h)}(hDMA GEM driver operationsh]hDMA GEM driver operations}(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&]uh1jhj9hKhj,hhubj)}(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)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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)}(hjeh]hdumb_create_func}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(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}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhKhj\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)}(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&]uh1jhjubah}(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&]uh1hhjhKhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB DRM_GEM_DMA_DRIVER_OPS (C macro)c.DRM_GEM_DMA_DRIVER_OPShNtauh1j5hj,hhhNhNubjG)}(hhh](jL)}(hDRM_GEM_DMA_DRIVER_OPSh]jR)}(hDRM_GEM_DMA_DRIVER_OPSh]j{)}(hDRM_GEM_DMA_DRIVER_OPSh]j)}(hj4h]hDRM_GEM_DMA_DRIVER_OPS}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6hhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1jQjjhj2hhhjQhKubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jKhjQhKhj/hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj/hhhjQhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjjjuh1jFhhhj,hNhNubh)}(h``DRM_GEM_DMA_DRIVER_OPS``h]j)}(hjph]hDRM_GEM_DMA_DRIVER_OPS}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj,hhubj)}(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 }(hjhhhNhNubh)}(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.hhKhjubh.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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj,hhubj6)}(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_CREATEhNtauh1j5hj,hhhNhNubjG)}(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)}(hj8h]h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1jQjjhj6hhhjUhKubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jKhjUhKhj3hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj3hhhjUhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjnjjnjjjuh1jFhhhj,hNhNubh)}(hC``DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE (dumb_create_func)``h]j)}(hjth]h?DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE (dumb_create_func)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj,hhubj)}(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&]uh1jhjhKhj,hhubj)}(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)}(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)}(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 }(hjhhhNhNubh)}(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:381: ./include/drm/drm_gem_dma_helper.hhKhjubhN structure for drivers that need the virtual address also on imported buffers.}(hjhhhNhNubeh}(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 }(hjKhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjUh]hstruct drm_driver}(hjWhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjSubah}(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.hhKhjKubh.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.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%DRM_GEM_DMA_DRIVER_OPS_VMAP (C macro)c.DRM_GEM_DMA_DRIVER_OPS_VMAPhNtauh1j5hj,hhhNhNubjG)}(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&]jjjjjjjjjuh1jFhhhj,hNhNubh)}(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.hhKhj,hhubj)}(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.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjubh)}(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: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 }(hjhhhNhNubh)}(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:381: ./include/drm/drm_gem_dma_helper.hhKhjubhN structure for drivers that need the virtual address also on imported buffers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEhKhjubh)}(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 }(hjPhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjZh]hstruct drm_driver}(hj\hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjXubah}(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.hhKhjPubh.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.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj,hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!DEFINE_DRM_GEM_DMA_FOPS (C macro)c.DEFINE_DRM_GEM_DMA_FOPShNtauh1j5hj,hhhNhNubjG)}(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&]jjjjjjjjjuh1jFhhhj,hNhNubh)}(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.hhKhj,hhubj)}(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.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj,hhubj)}(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}(hjhhhNhNubah}(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.hhKhjubj)}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhj%ubj)}(hhh]h)}(h name for the generated structureh]h name for the generated structure}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj"ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:381: ./include/drm/drm_gem_dma_helper.hhKhjubh)}(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 }(hj|hhhNhNubh)}(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.hhKhj|ubh1 for DMA based drivers, which can be assigned to }(hj|hhhNhNubh)}(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_driveruh1hhjhKhj|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&]uh1hhjhKhjubh)}(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.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_dma_create (C function)c.drm_gem_dma_createhNtauh1j5hj,hhhNhNubjG)}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hKwubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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*}(hjNhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhj hKwubj{)}(hdrm_gem_dma_createh]j)}(hj=h]hdrm_gem_dma_create}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hKwubj)}(h%(struct drm_device *drm, size_t size)h](j)}(hstruct drm_device *drmh](jX)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjvubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubh)}(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_createasbuh1hhjvubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjvubj)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubj)}(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_dma_createasbuh1hhjubjj)}(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&]noemphjjuh1jhjrubeh}(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}(hjChhhNhNubah}(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&]jjjj[jj[jjjuh1jFhhhj,hNhNubj)}(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)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(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.chKxhj~ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKxhj{ubj)}(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&]uh1jhjhKyhj{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&]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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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)}(hj.h]hReturn}(hj0hhhNhNubah}(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.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.}(hjDhhhNhNubah}(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&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_dma_free (C function)c.drm_gem_dma_freehNtauh1j5hj,hhhNhNubjG)}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhh`/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&]uh1jihjohhhjhKubj{)}(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&]jjuh1jzhjohhhjhKubj)}(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 }(hjhhhNhNubah}(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&]jjuh1jhjohhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjkhhhjhKubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhhubj)}(hhh]h)}(h/free resources associated with a DMA GEM objecth]h/free resources associated with a DMA GEM object}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKhj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jFhhhj,hNhNubj)}(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)}(hjUh]h Parameters}(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.chKhjOubj)}(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)}(hjth]h"struct drm_gem_dma_object *dma_obj}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjnubj)}(hhh]h)}(hDMA GEM object to freeh]hDMA GEM object to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhKhjkubah}(h]h ]h"]h$]h&]uh1jhjOubh)}(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.chKhjOubh)}(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.chKhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB-drm_gem_dma_dumb_create_internal (C function)"c.drm_gem_dma_dumb_create_internalhNtauh1j5hj,hhhNhNubjG)}(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&]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{)}(h drm_gem_dma_dumb_create_internalh]j)}(h drm_gem_dma_dumb_create_internalh]h drm_gem_dma_dumb_create_internal}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(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}(hj1hhhNhNubah}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjQmodnameN classnameNj+j.)}j1]j4)}j'jsb"c.drm_gem_dma_dumb_create_internalasbuh1hhj-ubjj)}(h h]h }(hjohhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-ubjH)}(hjKh]h*}(hj}hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj-ubj)}(h file_privh]h file_priv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(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]jk"c.drm_gem_dma_dumb_create_internalasbuh1hhjubjj)}(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&]noemphjjuh1jhj)ubj)}(h!struct drm_mode_create_dumb *argsh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj3modnameN classnameNj+j.)}j1]jk"c.drm_gem_dma_dumb_create_internalasbuh1hhjubjj)}(h h]h }(hjOhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj]hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hargsh]hargs}(hjjhhhNhNubah}(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 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&]jjjjjjjjjuh1jFhhhj,hNhNubj)}(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}(hjhhhNhNubah}(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)}(hjh]hstruct drm_device *drm}(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.chMhjubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hjGh]h!struct drm_mode_create_dumb *args}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjAubj)}(hhh]h)}(h IOCTL datah]h IOCTL data}(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**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&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_gem_dma_dumb_create (C function)c.drm_gem_dma_dumb_createhNtauh1j5hj,hhhNhNubjG)}(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}(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.chM"ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhjhM"ubj{)}(hdrm_gem_dma_dumb_createh]j)}(hdrm_gem_dma_dumb_createh]hdrm_gem_dma_dumb_create}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhM"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}(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'j4sbc.drm_gem_dma_dumb_createasbuh1hhjJubjj)}(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]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}(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]jc.drm_gem_dma_dumb_createasbuh1hhj,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 hhhjhM"ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhjhM"ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM"hjhhubj)}(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&]uh1jhjhhhjhM"ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj,hNhNubj)}(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&]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#hjubj)}(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&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjubj)}(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.chM$hj%ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hM$hjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(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)}(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.chM%hj^ubj)}(hhh]h)}(h IOCTL datah]h IOCTL data}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhM%hjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhM%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.}(hjhhhNhNubah}(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&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_gem_dma_get_unmapped_area (C function)c.drm_gem_dma_get_unmapped_areahNtauh1j5hj,hhhNhNubjG)}(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}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMLubjj)}(h h]h }(hjLhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9hhhjKhMLubj)}(hlongh]hlong}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhjKhMLubjj)}(h h]h }(hjhhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9hhhjKhMLubj{)}(hdrm_gem_dma_get_unmapped_areah]j)}(hdrm_gem_dma_get_unmapped_areah]hdrm_gem_dma_get_unmapped_area}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhjKhMLubj)}(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'j|sbc.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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long addrh](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 }(hj2hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(haddrh]haddr}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUubj)}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hflagsh]hflags}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhjKhMLubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj5hhhjKhMLubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jKhjKhMLhj2hhubj)}(hhh]h)}(h*propose address for mapping in noMMU casesh]h*propose address for mapping in noMMU cases}(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.chMLhjZhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jFhhhj,hNhNubj)}(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&]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.chMPhjyubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubj)}(h"``unsigned long len`` buffer size h](j)}(h``unsigned long len``h]j)}(hjh]hunsigned long len}(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.chMOhj ubj)}(hhh]h)}(h buffer sizeh]h buffer size}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMOhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMOhjubj)}(h$``unsigned long pgoff`` page offset h](j)}(h``unsigned long pgoff``h]j)}(hjIh]hunsigned long pgoff}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMPhjCubj)}(hhh]h)}(h page offseth]h page offset}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMPhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(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.chMQhj|ubj)}(hhh]h)}(h memory flagsh]h memory flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMQhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMQhjubeh}(h]h ]h"]h$]h&]uh1jhjyubh)}(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.chMShjyubh)}(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&]uh1hhjhMRhjyubh)}(h **Return**h]j)}(hjh]hReturn}(hj hhhNhNubah}(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.chMWhjyubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMXhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_gem_dma_print_info (C function)c.drm_gem_dma_print_infohNtauh1j5hj,hhhNhNubjG)}(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}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhh`/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&]uh1jihjHhhhjZhMubj{)}(hdrm_gem_dma_print_infoh]j)}(hdrm_gem_dma_print_infoh]hdrm_gem_dma_print_info}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHhhhjZhMubj)}(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'josbc.drm_gem_dma_print_infoasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj#hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj6modnameN classnameNj+j.)}j1]jc.drm_gem_dma_print_infoasbuh1hhjubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj`hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjTh]hp}(hjmhhhNhNubah}(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 }(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&]jjuh1jhjHhhhjZhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjDhhhjZhMubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1jKhjZhMhjAhhubj)}(hhh]h)}(h3Print :c:type:`drm_gem_dma_object` info for debugfsh](hPrint }(hjhhhNhNubh)}(h:c:type:`drm_gem_dma_object`h]j)}(hjh]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gem_dma_print_infoasbjadrm_gem_dma_objectuh1hhj hKwhjubh info for debugfs}(hjhhhNhNubeh}(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&]uh1jhjAhhhjZhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj' jj' jjjuh1jFhhhj,hNhNubj)}(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)}(hj1 h]h Parameters}(hj3 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.chMhj+ 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)}(hjP h]h(const struct drm_gem_dma_object *dma_obj}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjJ ubj)}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje hMhjf ubah}(h]h ]h"]h$]h&]uh1jhjJ ubeh}(h]h ]h"]h$]h&]uh1jhje hMhjG 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 hMhjG 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 hMhjG 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:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj+ 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.}(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.chMhj+ ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_gem_dma_get_sg_table (C function)c.drm_gem_dma_get_sg_tablehNtauh1j5hj,hhhNhNubjG)}(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}(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)}(hsg_tableh]hsg_table}(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_get_sg_tablesbc.drm_gem_dma_get_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{)}(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> hhhjO 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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(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)}(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}(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.chMhj: hhubah}(h]h ]h"]h$]h&]uh1jhj7 hhhjO hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjU jjU jjjuh1jFhhhj,hNhNubj)}(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}(hja 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.chMhjY 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.chMhjx ubj)}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjx ubeh}(h]h ]h"]h$]h&]uh1jhj hMhju ubah}(h]h ]h"]h$]h&]uh1jhjY 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.chMhjY 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.chMhjY 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.chMhjY 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.chMhjY ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubj6)}(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_tablehNtauh1j5hj,hhhNhNubjG)}(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}(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 }(hj3 hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj! hhhj2 hMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjD hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjF modnameN classnameNj+j.)}j1]j4)}j'!drm_gem_dma_prime_import_sg_tablesb#c.drm_gem_dma_prime_import_sg_tableasbuh1hhj! hhhj2 hMubjj)}(h h]h }(hje hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj! hhhj2 hMubjH)}(hjKh]h*}(hjs hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj! hhhj2 hMubj{)}(h!drm_gem_dma_prime_import_sg_tableh]j)}(hjb h]h!drm_gem_dma_prime_import_sg_table}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj! hhhj2 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 }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(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 }(hjK hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hjY hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hattachh]hattach}(hjf 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! hhhj2 hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj2 hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj2 hMhj 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.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj2 hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj,hNhNubj)}(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}(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.chMhjubj)}(hhh](j)}(h1``struct drm_device *dev`` 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&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj;ubj)}(hhh]h)}(hdevice to import intoh]hdevice to import into}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj8ubj)}(h9``struct dma_buf_attachment *attach`` DMA-BUF attachment h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hjzh]h!struct dma_buf_attachment *attach}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjtubj)}(hhh]h)}(hDMA-BUF attachmenth]hDMA-BUF attachment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubj)}(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&]uh1jhjhMhj8ubeh}(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)}(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 }(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&]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.chMhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hMhjubh)}(h **Return**h]j)}(hj8h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(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]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.}(hjNhhhNhNubah}(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&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_dma_vmap (C function)c.drm_gem_dma_vmaphNtauh1j5hj,hhhNhNubjG)}(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}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhh`/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&]uh1jihjyhhhjhMubj{)}(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&]jjuh1jzhjyhhhjhMubj)}(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*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdma_objh]hdma_obj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct iosys_map *maph](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 iosys_maph]h iosys_map}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjLmodnameN classnameNj+j.)}j1]jc.drm_gem_dma_vmapasbuh1hhj(ubjj)}(h h]h }(hjhhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj(ubjH)}(hjKh]h*}(hjvhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj(ubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjrhhubj)}(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&]uh1jhjrhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj,hNhNubj)}(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)}(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.chMhjubj)}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(hj'h]hstruct iosys_map *map}(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)}(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.chMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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.}(hjyhhhNhNubah}(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&]uh1jhj,hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_dma_mmap (C function)c.drm_gem_dma_mmaphNtauh1j5hj,hhhNhNubjG)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(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]j4)}j'jsbc.drm_gem_dma_mmapasbuh1hhjubjj)}(h h]h }(hjJhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjXhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdma_objh]hdma_obj}(hjehhhNhNubah}(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&]uh1jWhjzubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjzubh)}(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]jFc.drm_gem_dma_mmapasbuh1hhjzubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjzubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjzubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(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%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&]jjjjjjjjjuh1jFhhhj,hNhNubj)}(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&]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)}(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}(hjBhhhNhNubah}(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}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubj)}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](j)}(h``struct vm_area_struct *vma``h]j)}(hjyh]hstruct vm_area_struct *vma}(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.chMhjsubj)}(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&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubeh}(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)}(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 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.}(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&]uh1jhj,hhhNhNubj6)}(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_vmaphNtauh1j5hj,hhhNhNubjG)}(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&]uh1jWhjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM1ubjj)}(h h]h }(hj.hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj-hM1ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjAmodnameN classnameNj+j.)}j1]j4)}j'&drm_gem_dma_prime_import_sg_table_vmapsb(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhjhhhj-hM1ubjj)}(h h]h }(hj`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj-hM1ubjH)}(hjKh]h*}(hjnhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhj-hM1ubj{)}(h&drm_gem_dma_prime_import_sg_table_vmaph]j)}(hj]h]h&drm_gem_dma_prime_import_sg_table_vmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj-hM1ubj)}(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]j[(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&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(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_table_vmapasbuh1hhjubjj)}(h h]h }(hjFhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjThhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hattachh]hattach}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sg_table *sgth](jX)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjvubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j[(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhjvubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjvubj)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj-hM1ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj-hM1ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj-hM1hjhhubj)}(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&]uh1jhjhhhj-hM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj,hNhNubj)}(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)}(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.chM5hjubj)}(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&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM3hj6ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM3hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM3hj3ubj)}(h9``struct dma_buf_attachment *attach`` DMA-BUF attachment h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hjuh]h!struct dma_buf_attachment *attach}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM4hjoubj)}(hhh]h)}(hDMA-BUF attachmenth]hDMA-BUF attachment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhM4hj3ubj)}(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&]uh1jhjhM5hj3ubeh}(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.chM7hjubh)}(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.chM6hjubh)}(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 }(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_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:384: ./drivers/gpu/drm/drm_gem_dma_helper.chM;hjubh callback. The }(hjhhhNhNubh)}(h%:c:type:`DRM_GEM_DMA_DRIVER_OPS_VMAP`h]j)}(hj<h]hDRM_GEM_DMA_DRIVER_OPS_VMAP}(hj>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_GEM_DMA_DRIVER_OPS_VMAPuh1hhj5hM;hjubhF macro provides a shortcut to set the necessary DRM driver operations.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5hM;hjubh)}(h **Return**h]j)}(hjeh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(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]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.}(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.chM@hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubeh}(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}(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 }(hj6hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj$hhhj5hKubj{)}(hdrm_gem_shmem_objecth]j)}(hj"h]hdrm_gem_shmem_object}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj$hhhj5hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj5hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj5hKhjhhubj)}(hhh]h)}(hGEM object backed by shmemh]hGEM object backed by shmem}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjghhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhjhjhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``pages`` Page table h](j)}(h ``pages``h]j)}(hjh]hpages}(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.hhKhj ubj)}(hhh]h)}(h Page tableh]h Page table}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hKhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjubj)}(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)}(hjIh]hpages_use_count}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK%hjCubj)}(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.}(hjbhhhNhNubah}(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&]uh1jhjCubeh}(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.hhK0hj}ubj)}(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&]uh1jhj}ubeh}(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)}(hjh]h madv_list}(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.hhKBhjubj)}(hhh](h)}(hList entry for madvise trackingh]hList entry for madvise tracking}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhK@hj+ubh)}(h4Typically used by drivers to track purgeable objectsh]h4Typically used by drivers to track purgeable objects}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKBhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKBhjubj)}(h8``sgt`` Scatter/gather table for imported PRIME buffers h](j)}(h``sgt``h]j)}(hj]h]hsgt}(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.hhKGhjWubj)}(hhh]h)}(h/Scatter/gather table for imported PRIME buffersh]h/Scatter/gather table for imported PRIME buffers}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhKGhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKGhjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKYhjubj)}(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&]uh1hhjhKYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKYhjubj)}(hI``pages_mark_accessed_on_put`` Mark pages as accessed when they are put. h](j)}(h``pages_mark_accessed_on_put``h]j)}(hjBh]hpages_mark_accessed_on_put}(hjDhhhNhNubah}(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`hj<ubj)}(hhh]h)}(h)Mark pages as accessed when they are put.h]h)Mark pages as accessed when they are put.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhK`hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhK`hjubj)}(hG``map_wc`` map object write-combined (instead of using shmem defaults).h](j)}(h ``map_wc``h]j)}(hj{h]hmap_wc}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKfhjuubj)}(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}(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}(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.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 }(hj'hhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j)}(hj1h]hdrm_gem_object_funcs.free}(hj3hhhNhNubah}(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&]uh1hhjNhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhjhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB,drm_gem_shmem_object_print_info (C function)!c.drm_gem_shmem_object_print_infohNtauh1j5hjhhhjhNubjG)}(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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhh^/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&]uh1jihjuhhhjhKubj{)}(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&]jjuh1jzhjuhhhjhKubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int indenth](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)}(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}(hjxhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjtubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjtubjX)}(hjh]hstruct}(hjhhhNhNubah}(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_shmem_object_print_infoasbuh1hhjtubjj)}(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&]jjuh1jhjuhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjqhhhjhKubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjnhhubj)}(hhh]h)}(h5Print :c:type:`drm_gem_shmem_object` info for debugfsh](hPrint }(hjhhhNhNubh)}(h:c:type:`drm_gem_shmem_object`h]j)}(hjh]hdrm_gem_shmem_object}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(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.hhKhjubh info for debugfs}(hjhhhNhNubeh}(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&]uh1jhjnhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jFhhhjhjhNubj)}(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}(hjahhhNhNubah}(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.hhKhjYubj)}(hhh](j)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hj~h]hstruct drm_printer *p}(hjhhhNhNubah}(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.hhKhjxubj)}(hhh]h)}(h DRM printerh]h DRM printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhKhjuubj)}(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&]uh1jhjhKhjuubj)}(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:393: ./include/drm/drm_gem_shmem_helper.hhKhjubj)}(hhh]h)}(h GEM objecth]h GEM object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjuubeh}(h]h ]h"]h$]h&]uh1jhjYubh)}(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.hhKhjYubh)}(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 }(hjA hhhNhNubh)}(h@:c:type:`drm_gem_object_funcs.print_info `h]j)}(hjK h]hdrm_gem_object_funcs.print_info}(hjM hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjI 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.hhKhjA ubh handler.}(hjA hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjh hKhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhjhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_gem_shmem_object_pin (C function)c.drm_gem_shmem_object_pinhNtauh1j5hjhhhjhNubjG)}(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*}(hj!hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hobjh]hobj}(hj)!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()}(hjS!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjP!hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjk!jjk!jjjuh1jFhhhjhjhNubj)}(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)}(hju!h]h Parameters}(hjw!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs!ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhjo!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&]uh1jhjo!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.hhKhjo!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 "hKhjo!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhjhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_gem_shmem_object_unpin (C function)c.drm_gem_shmem_object_unpinhNtauh1j5hjhhhjhNubjG)}(hhh](jL)}(h` 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)}(hj8#h]hstruct drm_gem_object *obj}(hj:#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6#ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhKhj2#ubj)}(hhh]h)}(h GEM objecth]h GEM object}(hjQ#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM#hKhjN#ubah}(h]h ]h"]h$]h&]uh1jhj2#ubeh}(h]h ]h"]h$]h&]uh1jhjM#hKhj/#ubah}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h**Description**h]j)}(hjs#h]h Description}(hju#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq#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_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#hKhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhjhNubj6)}(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_tablehNtauh1j5hjhhhjhNubjG)}(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 }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#hhhj#hKubjH)}(hjKh]h*}(hj)$hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj#hhhj#hKubj{)}(h!drm_gem_shmem_object_get_sg_tableh]j)}(hj$h]h!drm_gem_shmem_object_get_sg_table}(hj:$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6$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}(hjU$hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjQ$ubjj)}(h h]h }(hjb$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjQ$ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjs$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp$ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetju$modnameN classnameNj+j.)}j1]j$#c.drm_gem_shmem_object_get_sg_tableasbuh1hhjQ$ubjj)}(h h]h }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjQ$ubjH)}(hjKh]h*}(hj$hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjQ$ubj)}(hobjh]hobj}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjM$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$jjjuh1jFhhhjhjhNubj)}(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)}(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}(hj0%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)}(hjR%h]h Description}(hjT%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP%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 }(hjh%hhhNhNubh)}(hB:c:type:`drm_gem_object_funcs.get_sg_table `h]j)}(hjr%h]h!drm_gem_object_funcs.get_sg_table}(hjt%hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjp%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.hhKhjh%ubh handler.}(hjh%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&]uh1jhjhhhjhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_gem_shmem_object_mmap (C function)c.drm_gem_shmem_object_mmaphNtauh1j5hjhhhjhNubjG)}(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&]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&]uh1jhj9&ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj>&modnameN classnameNj+j.)}j1]j4)}j'j&sbc.drm_gem_shmem_object_mmapasbuh1hhj&ubjj)}(h h]h }(hj\&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&ubjH)}(hjKh]h*}(hjj&hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj&ubj)}(hobjh]hobj}(hjw&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 }(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]jX&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&]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,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&]jjjj)'jj)'jjjuh1jFhhhjhjhNubj)}(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)}(hj3'h]h Parameters}(hj5'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1'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-'ubj)}(hhh](j)}(h*``struct drm_gem_object *obj`` GEM object h](j)}(h``struct drm_gem_object *obj``h]j)}(hjR'h]hstruct drm_gem_object *obj}(hjT'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP'ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhMhjL'ubj)}(hhh]h)}(h GEM objecth]h GEM object}(hjk'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg'hMhjh'ubah}(h]h ]h"]h$]h&]uh1jhjL'ubeh}(h]h ]h"]h$]h&]uh1jhjg'hMhjI'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'hMhjI'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:393: ./include/drm/drm_gem_shmem_helper.hhM hj-'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 hj-'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 hj-'ubh)}(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:393: ./include/drm/drm_gem_shmem_helper.hhM hj-'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhjhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"DRM_GEM_SHMEM_DRIVER_OPS (C macro)c.DRM_GEM_SHMEM_DRIVER_OPShNtauh1j5hjhhhjhNubjG)}(hhh](jL)}(hDRM_GEM_SHMEM_DRIVER_OPSh]jR)}(hDRM_GEM_SHMEM_DRIVER_OPSh]j{)}(hDRM_GEM_SHMEM_DRIVER_OPSh]j)}(hjO(h]hDRM_GEM_SHMEM_DRIVER_OPS}(hjY(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQ(hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:393: ./include/drm/drm_gem_shmem_helper.hhM%ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjM(hhhjl(hM%ubah}(h]jH(ah ](jjeh"]h$]h&]jj)jhuh1jKhjl(hM%hjJ(hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjJ(hhhjl(hM%ubeh}(h]h ](jmacroeh"]h$]h&]jjjj(jj(jjjuh1jFhhhjhjhNubh)}(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}(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.chKcubjj)}(h h]h }(hj6)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#)hhhj5)hKcubj{)}(hdrm_gem_shmem_inith]j)}(hdrm_gem_shmem_inith]hdrm_gem_shmem_init}(hjH)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD)ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#)hhhj5)hKcubj)}(hI(struct drm_device *dev, struct drm_gem_shmem_object *shmem, size_t size)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjd)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj`)ubjj)}(h h]h }(hjq)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'jJ)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&]noemphjjuh1jhj\)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}(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}(hjI*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF*ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjK*modnameN classnameNj+j.)}j1]j)c.drm_gem_shmem_initasbuh1hhjB*ubjj)}(h h]h }(hjg*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjB*ubj)}(hsizeh]hsize}(hju*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\)ubeh}(h]h ]h"]h$]h&]jjuh1jhj#)hhhj5)hKcubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj)hhhj5)hKcubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1jKhj5)hKchj)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&]uh1jhj)hhhj5)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)}(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.chKehj+ubj)}(hhh]h)}(hshmem GEM object to initializeh]hshmem GEM object to initialize}(hj2+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.+hKehj/+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj.+hKehj*ubj)}(h%``size_t size`` Buffer size in bytes h](j)}(h``size_t size``h]j)}(hjR+h]h size_t size}(hjT+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP+ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKfhjL+ubj)}(hhh]h)}(hBuffer size in bytesh]hBuffer size in bytes}(hjk+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg+hKfhjh+ubah}(h]h ]h"]h$]h&]uh1jhjL+ubeh}(h]h ]h"]h$]h&]uh1jhjg+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}(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_createsbc.drm_gem_shmem_createasbuh1hhj+hhhj,hKubjj)}(h h]h }(hj9,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj+hhhj,hKubjH)}(hjKh]h*}(hjG,hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj+hhhj,hKubj{)}(hdrm_gem_shmem_createh]j)}(hj6,h]hdrm_gem_shmem_create}(hjX,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT,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}(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_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,c.drm_gem_shmem_createasbuh1hhjo,ubjj)}(h h]h }(hj,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjo,ubjH)}(hjKh]h*}(hj,hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjo,ubj)}(hdevh]hdev}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjk,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]j4,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&]noemphjjuh1jhjk,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}(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.chKhj9-hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj,hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjT-jjT-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&]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.chKhjX-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.chKhjw-ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKhj-ubah}(h]h ]h"]h$]h&]uh1jhjw-ubeh}(h]h ]h"]h$]h&]uh1jhj-hKhjt-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-hKhjt-ubeh}(h]h ]h"]h$]h&]uh1jhjX-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.chKhjX-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.chKhjX-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.chKhjX-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.}(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.chKhjX-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}(hj].hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY.hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chKubjj)}(h h]h }(hjl.hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjY.hhhjk.hKubj{)}(hdrm_gem_shmem_releaseh]j)}(hdrm_gem_shmem_releaseh]hdrm_gem_shmem_release}(hj~.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjY.hhhjk.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&]jjuh1jhjY.hhhjk.hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjU.hhhjk.hKubah}(h]jP.ah ](jjeh"]h$]h&]jj)jhuh1jKhjk.hKhjR.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.chKhj/hhubah}(h]h ]h"]h$]h&]uh1jhjR.hhhjk.hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5/jj5/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}(hjA/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.chKhj9/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.chKhjX/ubj)}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hjw/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs/hKhjt/ubah}(h]h ]h"]h$]h&]uh1jhjX/ubeh}(h]h ]h"]h$]h&]uh1jhjs/hKhjU/ubah}(h]h ]h"]h$]h&]uh1jhj9/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.chKhj9/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.chKhj9/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)}(h` 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)}(hjJ6h]h Parameters}(hjL6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH6ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjD6ubj)}(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)}(hji6h]hstruct drm_file *file}(hjk6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg6ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjc6ubj)}(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&]uh1hhj~6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjc6ubeh}(h]h ]h"]h$]h&]uh1jhj~6hMhj`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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj`6ubeh}(h]h ]h"]h$]h&]uh1jhjD6ubh)}(h**Description**h]j)}(hj7h]h Description}(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.chMhjD6ubh)}(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 }(hj,7hhhNhNubh)}(h-:c:type:`drm_driver.dumb_create `h]j)}(hj67h]hdrm_driver.dumb_create}(hj87hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj47ubah}(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.chMhj,7ubh callback.}(hj,7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjS7hMhjD6ubh)}(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.chMhjD6ubh)}(h **Return**h]j)}(hjo7h]hReturn}(hjq7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm7ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjD6ubh)}(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.chMhjD6ubeh}(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}(hj7hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj7ubjj)}(h h]h }(hj7hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj7ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj8modnameN classnameNj+j.)}j1]j4)}j'j7sbc.drm_gem_shmem_mmapasbuh1hhj7ubjj)}(h h]h }(hj/8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj7ubjH)}(hjKh]h*}(hj=8hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7ubj)}(hshmemh]hshmem}(hjJ8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hstruct vm_area_struct *vmah](jX)}(hjh]hstruct}(hjc8hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_8ubjj)}(h h]h }(hjp8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_8ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~8ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj8modnameN classnameNj+j.)}j1]j+8c.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&]noemphjjuh1jhj7ubeh}(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}(hj8hhhNhNubah}(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&]jjjj8jj8jjjuh1jFhhhjhNhNubj)}(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)}(hj9h]h Parameters}(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.chMhj9ubj)}(hhh](j)}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](j)}(h&``struct drm_gem_shmem_object *shmem``h]j)}(hj%9h]h"struct drm_gem_shmem_object *shmem}(hj'9hhhNhNubah}(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.chMhj9ubj)}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hj>9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:9hMhj;9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj:9hMhj9ubj)}(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&]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.chMhjX9ubj)}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjw9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs9hMhjt9ubah}(h]h ]h"]h$]h&]uh1jhjX9ubeh}(h]h ]h"]h$]h&]uh1jhjs9hMhj9ubeh}(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 }(hj:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:hhhj:hMubj{)}(hdrm_gem_shmem_print_infoh]j)}(hdrm_gem_shmem_print_infoh]hdrm_gem_shmem_print_info}(hj&:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj":ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhhj: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}(hjB:hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj>:ubjj)}(h h]h }(hjO:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>:ubjX)}(hjh]hstruct}(hj]:hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj>:ubjj)}(h h]h }(hjj: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&]uh1jhjx:ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj}:modnameN classnameNj+j.)}j1]j4)}j'j(: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&]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_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)}(hjTh]hp}(hj&;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj::ubj)}(hunsigned int indenth](j)}(hunsignedh]hunsigned}(hj>;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:;ubjj)}(h h]h }(hjL;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:;ubj)}(hinth]hint}(hjZ;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:;ubjj)}(h h]h }(hjh;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:;ubj)}(hindenth]hindent}(hjv;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&]jjjuh1jQjjhj9hhhj:hMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jKhj:hMhj9hhubj)}(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_objectuh1hhj5)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&]uh1jhj9hhhj: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)}(hjB<h]hstruct drm_printer *p}(hjD<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)}(h DRM printerh]h DRM printer}(hj[<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW<hMhjX<ubah}(h]h ]h"]h$]h&]uh1jhj<<ubeh}(h]h ]h"]h$]h&]uh1jhjW<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&]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.chMhju<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&]uh1jhju<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 }(hj=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}(hj4=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0=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}(hjO=hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjK=ubjj)}(h h]h }(hj\=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjK=ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hjm=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj=ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjo=modnameN classnameNj+j.)}j1]j=c.drm_gem_shmem_get_sg_tableasbuh1hhjK=ubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjK=ubjH)}(hjKh]h*}(hj=hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjK=ubj)}(hshmemh]hshmem}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjG=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}(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.chM hj >ubj)}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(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>ubah}(h]h ]h"]h$]h&]uh1jhj=ubh)}(h**Description**h]j)}(hjL>h]h Description}(hjN>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ>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.}(hjb>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.}(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.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*}(hj?hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj>hhhj>hMDubj{)}(hdrm_gem_shmem_get_pages_sgth]j)}(hj?h]hdrm_gem_shmem_get_pages_sgt}(hj&?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}(hjA?hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj=?ubjj)}(h h]h }(hjN?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' reftargetja?modnameN classnameNj+j.)}j1]j?c.drm_gem_shmem_get_pages_sgtasbuh1hhj=?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&]noemphjjuh1jhj9?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}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMFhj@ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj@hMFhj?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&]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.}(hjT@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.}(hjc@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)}(hjt@h]hReturn}(hjv@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr@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 }(hj@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@hhhj@hMcubjH)}(hjKh]h*}(hjAhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj@hhhj@hMcubj{)}(h#drm_gem_shmem_prime_import_sg_tableh]j)}(hj@h]h#drm_gem_shmem_prime_import_sg_table}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(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}(hj3AhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj/Aubjj)}(h h]h }(hj@AhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj/Aubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjQAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNAubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjSAmodnameN classnameNj+j.)}j1]j@%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhj/Aubjj)}(h h]h }(hjoAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj/AubjH)}(hjKh]h*}(hj}AhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj/Aubj)}(hdevh]hdev}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Aubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+Aubj)}(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]j@%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhjAubjj)}(h h]h }(hjAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjAubjH)}(hjKh]h*}(hjAhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjAubj)}(hattachh]hattach}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+Aubj)}(hstruct sg_table *sgth](jX)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubjj)}(h h]h }(hj BhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj1BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Bubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj3BmodnameN classnameNj+j.)}j1]j@%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhjBubjj)}(h h]h }(hjOBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubjH)}(hjKh]h*}(hj]BhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjBubj)}(hsgth]hsgt}(hjjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+Aubeh}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMehjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMehjBubj)}(h9``struct dma_buf_attachment *attach`` DMA-BUF attachment h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hjCh]h!struct dma_buf_attachment *attach}(hjChhhNhNubah}(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.chMfhjCubj)}(hhh]h)}(hDMA-BUF attachmenth]hDMA-BUF attachment}(hj'ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ChMfhj$Cubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(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)}(hjGCh]hstruct sg_table *sgt}(hjIChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjECubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMghjACubj)}(hhh]h)}(h$Scatter/gather table of pinned pagesh]h$Scatter/gather table of pinned pages}(hj`ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\ChMghj]Cubah}(h]h ]h"]h$]h&]uh1jhjACubeh}(h]h ]h"]h$]h&]uh1jhj\ChMghjBubeh}(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}(hjDhhhNhNubah}(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 }(hjDhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj DhhhjDhMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj0DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Dubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj2DmodnameN classnameNj+j.)}j1]j4)}j'!drm_gem_shmem_prime_import_no_mapsb#c.drm_gem_shmem_prime_import_no_mapasbuh1hhj DhhhjDhMubjj)}(h h]h }(hjQDhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj DhhhjDhMubjH)}(hjKh]h*}(hj_DhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj DhhhjDhMubj{)}(h!drm_gem_shmem_prime_import_no_maph]j)}(hjNDh]h!drm_gem_shmem_prime_import_no_map}(hjpDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlDubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj DhhhjDhMubj)}(h1(struct drm_device *dev, struct dma_buf *dma_buf)h](j)}(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]jLD#c.drm_gem_shmem_prime_import_no_mapasbuh1hhjDubjj)}(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&]noemphjjuh1jhjDubj)}(hstruct dma_buf *dma_bufh](jX)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjDubjj)}(h h]h }(hjEhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjEmodnameN classnameNj+j.)}j1]jLD#c.drm_gem_shmem_prime_import_no_mapasbuh1hhjDubjj)}(h h]h }(hj7EhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDubjH)}(hjKh]h*}(hjEEhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjDubj)}(hdma_bufh]hdma_buf}(hjREhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhj DhhhjDhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj DhhhjDhMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1jKhjDhMhjDhhubj)}(hhh]h)}(h*Import dmabuf without mapping its sg_tableh]h*Import dmabuf without mapping its sg_table}(hj|EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:396: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjyEhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjDhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1jFhhhjhNhNubj)}(hXE**Parameters** ``struct drm_device *dev`` Device to import into ``struct dma_buf *dma_buf`` dma-buf object to import **Description** Drivers 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](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)}(hjEh]hstruct dma_buf *dma_buf}(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)}(hdma-buf object to importh]hdma-buf object to import}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj FhMhj Fubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj FhMhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hj1Fh]h Description}(hj3FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Fubah}(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 }(hjGFhhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j)}(hjQFh]hdrm_driver.gem_prime_import}(hjSFhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjOFubah}(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.chMhjGFubh implementation.}(hjGFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnFhMhjEubeh}(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&]uh1hhjFhK 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.}(hjFhhhNhNubah}(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)}(hjGh]hstruct drm_vram_mm}(hjGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjGubah}(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)}(hj:Gh]hstruct drm_device}(hj`h]j)}(hjGh]hstruct drm_driver}(hjGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj~Gubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhj3GhK/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_FOPSuh1hhj3GhK/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_operationsuh1hhj3GhK/hj Gubh; as illustrated below.}(hj GhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3GhK/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; }}hjGsbah}(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 }(hjGhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjHh]hstruct drm_vram_mm}(hj HhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjHubah}(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.chKNhjGubh, 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.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj$HhKNhjFhhubh)}(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.}(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.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.}(hjMHhhhNhNubah}(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}(hjuHhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqHhhh]/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&]uh1jihjqHhhhjHhKubj{)}(hdrm_gem_vram_objecth]j)}(hjoHh]hdrm_gem_vram_object}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjqHhhhjHhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjmHhhhjHhKubah}(h]jhHah ](jjeh"]h$]h&]jj)jhuh1jKhjHhKhjjHhhubj)}(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&]uh1jhjjHhhhjHhKubeh}(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]; };}hjHsbah}(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)}(hjIh]hMembers}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(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)}(hj$Ih]hbo}(hj&IhhhNhNubah}(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"hjIubj)}(hhh]h)}(hTTM buffer objecth]hTTM buffer object}(hj=IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9IhK"hj:Iubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhj9IhK"hjIubj)}(h'``map`` Mapping information for **bo** h](j)}(h``map``h]j)}(hj]Ih]hmap}(hj_IhhhNhNubah}(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#hjWIubj)}(hhh]h)}(hMapping information for **bo**h](hMapping information for }(hjvIhhhNhNubj)}(h**bo**h]hbo}(hj~IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvIubeh}(h]h ]h"]h$]h&]uh1hhjrIhK#hjsIubah}(h]h ]h"]h$]h&]uh1jhjWIubeh}(h]h ]h"]h$]h&]uh1jhjrIhK#hjIubj)}(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:hjIubj)}(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 }(hjIhhhNhNubj)}(h``TTM_PL_VRAM``h]h TTM_PL_VRAM}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh and }(hjIhhhNhNubj)}(h``TTM_PL_SYSTEM``h]h TTM_PL_SYSTEM}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK$hjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhK%hjIubj)}(h)``placements`` TTM placement information.h](j)}(h``placements``h]j)}(hj8Jh]h placements}(hj:JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Jubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK%hj2Jubj)}(hhh]h)}(hTTM placement information.h]hTTM placement information.}(hjQJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhK&hjNJubah}(h]h ]h"]h$]h&]uh1jhj2Jubeh}(h]h ]h"]h$]h&]uh1jhjMJhK%hjIubeh}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubh)}(h**Description**h]j)}(hj{Jh]h Description}(hj}JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyJubah}(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}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjJmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_vram_of_bosbc.drm_gem_vram_of_boasbuh1hhjJhhhjJhKEubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJhhhjJhKEubjH)}(hjKh]h*}(hjKhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjJhhhjJhKEubj{)}(hdrm_gem_vram_of_boh]j)}(hjKh]hdrm_gem_vram_of_bo}(hj'KhhhNhNubah}(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}(hjBKhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj>Kubjj)}(h h]h }(hjOKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>Kubh)}(hhh]j)}(httm_buffer_objecth]httm_buffer_object}(hj`KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Kubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjbKmodnameN classnameNj+j.)}j1]jKc.drm_gem_vram_of_boasbuh1hhj>Kubjj)}(h h]h }(hj~KhhhNhNubah}(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&]noemphjjuh1jhj:Kubah}(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]jKc.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&]jjjjLjjLjjjuh1jFhhhjFhNhNubj)}(hu**Parameters** ``struct ttm_buffer_object *bo`` the VRAM buffer object **Return** The containing GEM VRAM objecth](h)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjLhhhNhNubah}(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.hhKIhjLubj)}(hhh]j)}(h8``struct ttm_buffer_object *bo`` the VRAM buffer object h](j)}(h ``struct ttm_buffer_object *bo``h]j)}(hj-Lh]hstruct ttm_buffer_object *bo}(hj/LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Lubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKGhj'Lubj)}(hhh]h)}(hthe VRAM buffer objecth]hthe VRAM buffer object}(hjFLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBLhKGhjCLubah}(h]h ]h"]h$]h&]uh1jhj'Lubeh}(h]h ]h"]h$]h&]uh1jhjBLhKGhj$Lubah}(h]h ]h"]h$]h&]uh1jhjLubh)}(h **Return**h]j)}(hjhLh]hReturn}(hjjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfLubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKIhjLubh)}(hThe containing GEM VRAM objecth]hThe containing GEM VRAM object}(hj~LhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKHhjLubeh}(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 }(hjLhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjLhhhjLhKQubjH)}(hjKh]h*}(hjLhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjLhhhjLhKQubj{)}(hdrm_gem_vram_of_gemh]j)}(hjLh]hdrm_gem_vram_of_gem}(hj MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLhhhjLhKQubj)}(h(struct drm_gem_object *gem)h]j)}(hstruct drm_gem_object *gemh](jX)}(hjh]hstruct}(hj'MhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj#Mubjj)}(h h]h }(hj4MhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#Mubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjEMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBMubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjGMmodnameN classnameNj+j.)}j1]jLc.drm_gem_vram_of_gemasbuh1hhj#Mubjj)}(h h]h }(hjcMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#MubjH)}(hjKh]h*}(hjqMhhhNhNubah}(h]h ]jTah"]h$]h&]u'h1jGhj#Mubj)}(hgemh]hgem}(hj~MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubah}(h]h ]h"]h$]h&]jjuh1jhjLhhhjLhKQubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjLhhhjLhKQubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jKhjLhKQhjLhhubj)}(hhh]h)}(hgReturns the container of type :c:type:`struct drm_gem_vram_object ` 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]jLc.drm_gem_vram_of_gemasbjadrm_gem_vram_objectuh1hhjKhKhjMubh 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&]jjjjMjjMjjjuh1jFhhhjFhNhNubj)}(hk**Parameters** ``struct drm_gem_object *gem`` the GEM object **Return** The containing GEM VRAM objecth](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKUhjMubj)}(hhh]j)}(h.``struct drm_gem_object *gem`` the GEM object h](j)}(h``struct drm_gem_object *gem``h]j)}(hjNh]hstruct drm_gem_object *gem}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(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}(hj*NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&NhKShj'Nubah}(h]h ]h"]h$]h&]uh1jhj Nubeh}(h]h ]h"]h$]h&]uh1jhj&NhKShjNubah}(h]h ]h"]h$]h&]uh1jhjMubh)}(h **Return**h]j)}(hjLNh]hReturn}(hjNNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKUhjMubh)}(hThe containing GEM VRAM objecth]hThe containing GEM VRAM object}(hjbNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKThjMubeh}(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)}(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.hhKhjOubh with default functions.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhKhjOubeh}(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}(hj1PhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj-Phhh]/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&]uh1jihj-Phhhj>PhKubj{)}(h drm_vram_mmh]j)}(hj+Ph]h drm_vram_mm}(hjQPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-Phhhj>PhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj)Phhhj>PhKubah}(h]j$Pah ](jjeh"]h$]h&]jj)jhuh1jKhj>PhKhj&Phhubj)}(hhh]h)}(hAn instance of VRAM MMh]hAn instance of VRAM MM}(hjsPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjpPhhubah}(h]h ]h"]h$]h&]uh1jhj&Phhhj>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}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhKhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhKhjPubj)}(h8``vram_size`` Size of the managed video memory in bytes h](j)}(h ``vram_size``h]j)}(hjQh]h vram_size}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjQubj)}(hhh]h)}(h)Size of the managed video memory in bytesh]h)Size of the managed video memory in bytes}(hj2QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.QhKhj/Qubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhj.QhKhjPubj)}(h``bdev`` The TTM BO device.h](j)}(h``bdev``h]j)}(hjRQh]hbdev}(hjTQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPQubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjLQubj)}(hhh]h)}(hThe TTM BO device.h]hThe TTM BO device.}(hjkQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhjhQubah}(h]h ]h"]h$]h&]uh1jhjLQubeh}(h]h ]h"]h$]h&]uh1jhjgQhKhjPubeh}(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)}(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_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}(hj` for field bdev.h](hReturns the container of type }(hj7ShhhNhNubh)}(h(:c:type:`struct ttm_device `h]j)}(hjASh]hstruct ttm_device}(hjCShhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj?Subah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jwRc.drm_vram_mm_of_bdevasbja ttm_deviceuh1hhjKhKhj7Subh for field bdev.}(hj7ShhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:405: ./include/drm/drm_gem_vram_helper.hhKhj4Shhubah}(h]h ]h"]h$]h&]uh1jhj1RhhhjIRhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwSjjwSjjjuh1jFhhhjFhNhNubj)}(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.hhKhj{Subj)}(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&]uh1jhj{Subh)}(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.hhKhj{Subh)}(hEThe containing instance of :c:type:`struct drm_vram_mm `h](hThe containing instance of }(hjShhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjSh]hstruct drm_vram_mm}(hjShhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjSubah}(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.hhKhjSubeh}(h]h ]h"]h$]h&]uh1hhjThKhj{Subeh}(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&]uh1jWhj;Thhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKubjj)}(h h]h }(hjMThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;ThhhjLThKubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hj^ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Tubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj`TmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_vram_createsbc.drm_gem_vram_createasbuh1hhj;ThhhjLThKubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;ThhhjLThKubjH)}(hjKh]h*}(hjThhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj;ThhhjLThKubj{)}(hdrm_gem_vram_createh]j)}(hj|Th]hdrm_gem_vram_create}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj;ThhhjLThKubj)}(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]jzTc.drm_gem_vram_createasbuh1hhjTubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjTubjH)}(hjKh]h*}(hjUhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjTubj)}(hdevh]hdev}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj,UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Uubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj.UmodnameN classnameNj+j.)}j1]jzTc.drm_gem_vram_createasbuh1hhj%Uubjj)}(h h]h }(hjJUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj%Uubj)}(hsizeh]hsize}(hjXUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hunsigned long pg_alignh](j)}(hunsignedh]hunsigned}(hjqUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmUubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmUubj)}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmUubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmUubj)}(hpg_alignh]hpg_align}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubeh}(h]h ]h"]h$]h&]jjuh1jhj;ThhhjLThKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj7ThhhjLThKubah}(h]j2Tah ](jjeh"]h$]h&]jj)jhuh1jKhjLThKhj4Thhubj)}(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&]uh1jhj4ThhhjLThKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jFhhhjFhNhNubj)}(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)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjUubj)}(hhh](j)}(h*``struct drm_device *dev`` the DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjVh]hstruct drm_device *dev}(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)}(hthe DRM deviceh]hthe DRM device}(hj-VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)VhKhj*Vubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhj)VhKhj Vubj)}(h)``size_t size`` the buffer size in bytes h](j)}(h``size_t size``h]j)}(hjMVh]h size_t size}(hjOVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKVubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjGVubj)}(hhh]h)}(hthe buffer size in bytesh]hthe buffer size in bytes}(hjfVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbVhKhjcVubah}(h]h ]h"]h$]h&]uh1jhjGVubeh}(h]h ]h"]h$]h&]uh1jhjbVhKhj 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&]uh1jhjUubh)}(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.chKhjUubh)}(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.chKhjUubh)}(h **Return**h]j)}(hjVh]hReturn}(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.chKhjUubh)}(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 }(hjVhhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j)}(hjWh]hstruct drm_gem_vram_object}(hj WhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjWubah}(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.chKhjVubh: on success, or an ERR_PTR()-encoded error code otherwise.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%WhKhjUubeh}(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}(hjPWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLWhhha/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&]uh1jihjLWhhhj^WhKubj{)}(hdrm_gem_vram_puth]j)}(hdrm_gem_vram_puth]hdrm_gem_vram_put}(hjqWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLWhhhj^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'jsWsbc.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}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubah}(h]h ]h"]h$]h&]jjuh1jhjLWhhhj^WhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjHWhhhj^WhKubah}(h]jCWah ](jjeh"]h$]h&]jj)jhuh1jKhj^WhKhjEWhhubj)}(hhh]h)}(h0Releases a reference to a VRAM-backed GEM objecth]h0Releases a reference to a VRAM-backed GEM object}(hjXhhhNhNubah}(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&]uh1jhjEWhhhj^WhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(Xjj(Xjjjuh1jFhhhjFhNhNubj)}(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)}(hj2Xh]h Parameters}(hj4XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Xubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj,Xubj)}(hhh]j)}(h8``struct drm_gem_vram_object *gbo`` the GEM VRAM object h](j)}(h#``struct drm_gem_vram_object *gbo``h]j)}(hjQXh]hstruct drm_gem_vram_object *gbo}(hjSXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOXubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjKXubj)}(hhh]h)}(hthe GEM VRAM objecth]hthe GEM VRAM object}(hjjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfXhKhjgXubah}(h]h ]h"]h$]h&]uh1jhjKXubeh}(h]h ]h"]h$]h&]uh1jhjfXhKhjHXubah}(h]h ]h"]h$]h&]uh1jhj,Xubh)}(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.chKhj,Xubh)}(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.chKhj,Xubeh}(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 }(hjXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjXhhhjXhKubj{)}(hdrm_gem_vram_offseth]j)}(hjXh]hdrm_gem_vram_offset}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjXhhhjXhKubj)}(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&]uh1jWhjYubjj)}(h h]h }(hj0YhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjAYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Yubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjCYmodnameN classnameNj+j.)}j1]jXc.drm_gem_vram_offsetasbuh1hhjYubjj)}(h h]h }(hj_YhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYubjH)}(hjKh]h*}(hjmYhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjYubj)}(hgboh]hgbo}(hjzYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhjXhhhjXhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjXhhhjXhKubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jKhjXhKhjXhhubj)}(hhh]h)}(h2Returns a GEM VRAM object's offset in video memoryh]h4Returns a GEM VRAM object’s offset in video memory}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjYhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjXhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1jFhhhjFhNhNubj)}(hXI**Parameters** ``struct drm_gem_vram_object *gbo`` the GEM VRAM object **Description** This function returns the buffer object's offset in the device's video memory. The buffer object has to be pinned to ``TTM_PL_VRAM``. **Return** The buffer object's offset in video memory on success, or a negative errno code otherwise.h](h)}(h**Parameters**h]j)}(hjYh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjYubj)}(hhh]j)}(h8``struct drm_gem_vram_object *gbo`` the GEM VRAM object h](j)}(h#``struct drm_gem_vram_object *gbo``h]j)}(hjYh]hstruct drm_gem_vram_object *gbo}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjYubj)}(hhh]h)}(hthe GEM VRAM objecth]hthe GEM VRAM object}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhKhjYubah}(h]h ]h"]h$]h&]uh1jhjYubh)}(h**Description**h]j)}(hj Zh]h Description}(hj"ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjYubh)}(hThis function returns the buffer object's offset in the device's video memory. The buffer object has to be pinned to ``TTM_PL_VRAM``.h](hyThis function returns the buffer object’s offset in the device’s video memory. The buffer object has to be pinned to }(hj6ZhhhNhNubj)}(h``TTM_PL_VRAM``h]h TTM_PL_VRAM}(hj>ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Zubh.}(hj6ZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjYubh)}(h **Return**h]j)}(hjYZh]hReturn}(hj[ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWZubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjYubh)}(hZThe buffer object's offset in video memory on success, or a negative errno code otherwise.h]h\The buffer object’s offset in video memory on success, or a negative errno code otherwise.}(hjoZhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_vram_vmap (C function)c.drm_gem_vram_vmaphNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hNint drm_gem_vram_vmap (struct drm_gem_vram_object *gbo, struct iosys_map *map)h]jR)}(hMint drm_gem_vram_vmap(struct drm_gem_vram_object *gbo, struct iosys_map *map)h](j)}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMKubjj)}(h h]h }(hjZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjZhhhjZhMKubj{)}(hdrm_gem_vram_vmaph]j)}(hdrm_gem_vram_vmaph]hdrm_gem_vram_vmap}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjZhhhjZhMKubj)}(h8(struct drm_gem_vram_object *gbo, struct iosys_map *map)h](j)}(hstruct drm_gem_vram_object *gboh](jX)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjZubjj)}(h h]h }(hjZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjZubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjZmodnameN classnameNj+j.)}j1]j4)}j'jZsbc.drm_gem_vram_vmapasbuh1hhjZubjj)}(h h]h }(hj[hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjZubjH)}(hjKh]h*}(hj'[hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjZubj)}(hgboh]hgbo}(hj4[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(hstruct iosys_map *maph](jX)}(hjh]hstruct}(hjM[hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjI[ubjj)}(h h]h }(hjZ[hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjI[ubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjk[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh[ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjm[modnameN classnameNj+j.)}j1]j[c.drm_gem_vram_vmapasbuh1hhjI[ubjj)}(h h]h }(hj[hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjI[ubjH)}(hjKh]h*}(hj[hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjI[ubj)}(hmaph]hmap}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhjZhMKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjZhhhjZhMKubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1jKhjZhMKhjZhhubj)}(hhh]h)}(h9Pins and maps a GEM VRAM object into kernel address spaceh]h9Pins and maps a GEM VRAM object into kernel address space}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMKhj[hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjZhMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1jFhhhjFhNhNubj)}(hXL**Parameters** ``struct drm_gem_vram_object *gbo`` The GEM VRAM object to map ``struct iosys_map *map`` Returns the kernel virtual address of the VRAM GEM object's backing store. **Description** The vmap function pins a GEM VRAM object to its current location, either system or video memory, and maps its buffer into kernel address space. As pinned object cannot be relocated, you should avoid pinning objects permanently. Call drm_gem_vram_vunmap() with the returned address to unmap and unpin the GEM VRAM object. **Return** 0 on success, or a negative error code 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&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMOhj[ubj)}(hhh](j)}(h?``struct drm_gem_vram_object *gbo`` The GEM VRAM object to map h](j)}(h#``struct drm_gem_vram_object *gbo``h]j)}(hj\h]hstruct drm_gem_vram_object *gbo}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj \ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMMhj \ubj)}(hhh]h)}(hThe GEM VRAM object to maph]hThe GEM VRAM object to map}(hj(\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$\hMMhj%\ubah}(h]h ]h"]h$]h&]uh1jhj \ubeh}(h]h ]h"]h$]h&]uh1jhj$\hMMhj\ubj)}(he``struct iosys_map *map`` Returns the kernel virtual address of the VRAM GEM object's backing store. h](j)}(h``struct iosys_map *map``h]j)}(hjH\h]hstruct iosys_map *map}(hjJ\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF\ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMOhjB\ubj)}(hhh]h)}(hJReturns the kernel virtual address of the VRAM GEM object's backing store.h]hLReturns the kernel virtual address of the VRAM GEM object’s backing store.}(hja\hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMNhj^\ubah}(h]h ]h"]h$]h&]uh1jhjB\ubeh}(h]h ]h"]h$]h&]uh1jhj]\hMOhj\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&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMQhj[ubh)}(hX@The vmap function pins a GEM VRAM object to its current location, either system or video memory, and maps its buffer into kernel address space. As pinned object cannot be relocated, you should avoid pinning objects permanently. Call drm_gem_vram_vunmap() with the returned address to unmap and unpin the GEM VRAM object.h]hX@The vmap function pins a GEM VRAM object to its current location, either system or video memory, and maps its buffer into kernel address space. As pinned object cannot be relocated, you should avoid pinning objects permanently. Call drm_gem_vram_vunmap() with the returned address to unmap and unpin the GEM VRAM object.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMPhj[ubh)}(h **Return**h]j)}(hj\h]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMVhj[ubh)}(h10 on success, or a negative error code otherwise.h]h10 on success, or a negative error code otherwise.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMWhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_gem_vram_vunmap (C function)c.drm_gem_vram_vunmaphNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hQvoid drm_gem_vram_vunmap (struct drm_gem_vram_object *gbo, struct iosys_map *map)h]jR)}(hPvoid drm_gem_vram_vunmap(struct drm_gem_vram_object *gbo, struct iosys_map *map)h](j)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMwubjj)}(h h]h }(hj\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj\hhhj\hMwubj{)}(hdrm_gem_vram_vunmaph]j)}(hdrm_gem_vram_vunmaph]hdrm_gem_vram_vunmap}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\hhhj\hMwubj)}(h8(struct drm_gem_vram_object *gbo, struct iosys_map *map)h](j)}(hstruct drm_gem_vram_object *gboh](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_vram_objecth]hdrm_gem_vram_object}(hjK]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH]ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjM]modnameN classnameNj+j.)}j1]j4)}j'j]sbc.drm_gem_vram_vunmapasbuh1hhj)]ubjj)}(h h]h }(hjk]hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj)]ubjH)}(hjKh]h*}(hjy]hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj)]ubj)}(hgboh]hgbo}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%]ubj)}(hstruct iosys_map *maph](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 iosys_maph]h iosys_map}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj]modnameN classnameNj+j.)}j1]jg]c.drm_gem_vram_vunmapasbuh1hhj]ubjj)}(h h]h }(hj]hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj]ubjH)}(hjKh]h*}(hj]hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj]ubj)}(hmaph]hmap}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%]ubeh}(h]h ]h"]h$]h&]jjuh1jhj\hhhj\hMwubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj\hhhj\hMwubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jKhj\hMwhj\hhubj)}(hhh]h)}(h#Unmaps and unpins a GEM VRAM objecth]h#Unmaps and unpins a GEM VRAM object}(hj ^hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMwhj^hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hMwubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8^jj8^jjjuh1jFhhhjFhNhNubj)}(hXF**Parameters** ``struct drm_gem_vram_object *gbo`` The GEM VRAM object to unmap ``struct iosys_map *map`` Kernel virtual address where the VRAM GEM object was mapped **Description** A call to drm_gem_vram_vunmap() unmaps and unpins a GEM VRAM buffer. See the documentation for drm_gem_vram_vmap() for more information.h](h)}(h**Parameters**h]j)}(hjB^h]h Parameters}(hjD^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@^ubah}(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<^ubj)}(hhh](j)}(hA``struct drm_gem_vram_object *gbo`` The GEM VRAM object to unmap h](j)}(h#``struct drm_gem_vram_object *gbo``h]j)}(hja^h]hstruct drm_gem_vram_object *gbo}(hjc^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_^ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMxhj[^ubj)}(hhh]h)}(hThe GEM VRAM object to unmaph]hThe GEM VRAM object to unmap}(hjz^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv^hMxhjw^ubah}(h]h ]h"]h$]h&]uh1jhj[^ubeh}(h]h ]h"]h$]h&]uh1jhjv^hMxhjX^ubj)}(hV``struct iosys_map *map`` Kernel virtual address where the VRAM GEM object was mapped h](j)}(h``struct iosys_map *map``h]j)}(hj^h]hstruct iosys_map *map}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMyhj^ubj)}(hhh]h)}(h;Kernel virtual address where the VRAM GEM object was mappedh]h;Kernel virtual address where the VRAM GEM object was mapped}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMyhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMyhjX^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&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chM{hj<^ubh)}(hA call to drm_gem_vram_vunmap() unmaps and unpins a GEM VRAM buffer. See the documentation for drm_gem_vram_vmap() for more information.h]hA call to drm_gem_vram_vunmap() unmaps and unpins a GEM VRAM buffer. See the documentation for drm_gem_vram_vmap() for more information.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMzhj<^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_gem_vram_fill_create_dumb (C function)c.drm_gem_vram_fill_create_dumbhNtauh1j5hjFhhhNhNubjG)}(hhh](jL)}(hint drm_gem_vram_fill_create_dumb (struct drm_file *file, struct drm_device *dev, unsigned long pg_align, unsigned long pitch_align, struct drm_mode_create_dumb *args)h]jR)}(hint drm_gem_vram_fill_create_dumb(struct drm_file *file, struct drm_device *dev, unsigned long pg_align, unsigned long pitch_align, struct drm_mode_create_dumb *args)h](j)}(hinth]hint}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMubjj)}(h h]h }(hj)_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_hhhj(_hMubj{)}(hdrm_gem_vram_fill_create_dumbh]j)}(hdrm_gem_vram_fill_create_dumbh]hdrm_gem_vram_fill_create_dumb}(hj;_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7_ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj_hhhj(_hMubj)}(h(struct drm_file *file, struct drm_device *dev, unsigned long pg_align, unsigned long pitch_align, struct drm_mode_create_dumb *args)h](j)}(hstruct drm_file *fileh](jX)}(hjh]hstruct}(hjW_hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjS_ubjj)}(h h]h }(hjd_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjS_ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hju_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr_ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjw_modnameN classnameNj+j.)}j1]j4)}j'j=_sbc.drm_gem_vram_fill_create_dumbasbuh1hhjS_ubjj)}(h h]h }(hj_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjS_ubjH)}(hjKh]h*}(hj_hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjS_ubj)}(hfileh]hfile}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO_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_vram_fill_create_dumbasbuh1hhj_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&]noemphjjuh1jhjO_ubj)}(hunsigned long pg_alignh](j)}(hunsignedh]hunsigned}(hj9`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5`ubjj)}(h h]h }(hjG`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5`ubj)}(hlongh]hlong}(hjU`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5`ubjj)}(h h]h }(hjc`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5`ubj)}(hpg_alignh]hpg_align}(hjq`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO_ubj)}(hunsigned long pitch_alignh](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 pitch_alignh]h pitch_align}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO_ubj)}(h!struct drm_mode_create_dumb *argsh](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_mode_create_dumbh]hdrm_mode_create_dumb}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj`modnameN classnameNj+j.)}j1]j_c.drm_gem_vram_fill_create_dumbasbuh1hhj`ubjj)}(h h]h }(hjahhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj`ubjH)}(hjKh]h*}(hj%ahhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj`ubj)}(hargsh]hargs}(hj2ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO_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)}(hLHelper for implementing :c:type:`struct drm_driver `.dumb_createh](hHelper for implementing }(hj\ahhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjfah]hstruct drm_driver}(hjhahhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjdaubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j_c.drm_gem_vram_fill_create_dumbasbja drm_driveruh1hhjLThKhj\aubh .dumb_create}(hj\ahhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjYahhubah}(h]h ]h"]h$]h&]uh1jhj_hhhj(_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)}(hjah]hstruct drm_device *dev}(hjbhhhNhNubah}(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)}(hthe DRM deviceh]hthe DRM device}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjaubj)}(hP``unsigned long pg_align`` the buffer's alignment in multiples of the page size h](j)}(h``unsigned long pg_align``h]j)}(hj7bh]hunsigned long pg_align}(hj9bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5bubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj1bubj)}(hhh]h)}(h4the buffer's alignment in multiples of the page sizeh]h6the buffer’s alignment in multiples of the page size}(hjPbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLbhMhjMbubah}(h]h ]h"]h$]h&]uh1jhj1bubeh}(h]h ]h"]h$]h&]uh1jhjLbhMhjaubj)}(hF``unsigned long pitch_align`` the scanline's alignment in powers of 2 h](j)}(h``unsigned long pitch_align``h]j)}(hjpbh]hunsigned long pitch_align}(hjrbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnbubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjjbubj)}(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&]uh1jhjjbubeh}(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&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjaubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hjch]h Description}(hj chhhNhNubah}(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)}(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 }(hjchhhNhNubh)}(h<:c:type:`struct drm_mode_create_dumb `h]j)}(hj(ch]hstruct drm_mode_create_dumb}(hj*chhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj&cubah}(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.chMhjcubh, which is used by }(hjchhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjLch]hstruct drm_driver}(hjNchhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjJcubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhjEchMhjcubh.dumb_create. Implementations of this interface should forwards their arguments to this helper, plus the driver-specific parameters.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEchMhjaubh)}(h **Return**h]j)}(hjuch]hReturn}(hjwchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjscubah}(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}(hjchhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjcubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjcubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjdmodnameN classnameNj+j.)}j1]j4)}j'jcsb!c.drm_gem_vram_driver_dumb_createasbuh1hhjcubjj)}(h h]h }(hj5dhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjcubjH)}(hjKh]h*}(hjCdhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjcubj)}(hfileh]hfile}(hjPdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjidhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjedubjj)}(h h]h }(hjvdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjedubh)}(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]j1d!c.drm_gem_vram_driver_dumb_createasbuh1hhjedubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjedubjH)}(hjKh]h*}(hjdhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjedubj)}(hdevh]hdev}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjedubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(h!struct drm_mode_create_dumb *argsh](jX)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjdubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubh)}(hhh]j)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjdmodnameN classnameNj+j.)}j1]j1d!c.drm_gem_vram_driver_dumb_createasbuh1hhjdubjj)}(h h]h }(hjehhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubjH)}(hjKh]h*}(hj#ehhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjdubj)}(hargsh]hargs}(hj0ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(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 }(hjZehhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjdeh]hstruct drm_driver}(hjfehhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjbeubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j1d!c.drm_gem_vram_driver_dumb_createasbja drm_driveruh1hhjLThKhjZeubh .dumb_create}(hjZehhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjWehhubah}(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)}(hjeh]hstruct drm_device *dev}(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)}(hthe DRM deviceh]hthe DRM device}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjeubj)}(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)}(hj5fh]h!struct drm_mode_create_dumb *args}(hj7fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3fubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj/fubj)}(hhh]h)}(hQthe arguments as provided to :c:type:`struct drm_driver `.dumb_createh](hthe arguments as provided to }(hjNfhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjXfh]hstruct drm_driver}(hjZfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjVfubah}(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.chMhjNfubh .dumb_create}(hjNfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjufhMhjKfubah}(h]h ]h"]h$]h&]uh1jhj/fubeh}(h]h ]h"]h$]h&]uh1jhjJfhMhjeubeh}(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.}(hjfhhhNhNubah}(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}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhha/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&]uh1jihjghhhj 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}(hj3ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/gubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjghhhj ghM@ubj)}(h<(struct drm_plane *plane, struct drm_plane_state *new_state)h](j)}(hstruct drm_plane *planeh](jX)}(hjh]hstruct}(hjOghhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjKgubjj)}(h h]h }(hj\ghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjKgubh)}(hhh]j)}(h drm_planeh]h drm_plane}(hjmghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjgubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjogmodnameN classnameNj+j.)}j1]j4)}j'j5gsb&c.drm_gem_vram_plane_helper_prepare_fbasbuh1hhjKgubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjKgubjH)}(hjKh]h*}(hjghhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjKgubj)}(hplaneh]hplane}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGgubj)}(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 }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubjH)}(hjKh]h*}(hj hhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjgubj)}(h new_stateh]h new_state}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGgubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhj ghM@ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj ghhhj ghM@ubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1jKhj ghM@hjghhubj)}(hhh]h)}(hVImplements :c:type:`struct drm_plane_helper_funcs `.prepare_fbh](h Implements }(hjBhhhhNhNubh)}(h@:c:type:`struct drm_plane_helper_funcs `h]j)}(hjLhh]hstruct drm_plane_helper_funcs}(hjNhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjJhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jg&c.drm_gem_vram_plane_helper_prepare_fbasbjadrm_plane_helper_funcsuh1hhjLThKhjBhubh .prepare_fb}(hjBhhhhNhNubeh}(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&]uh1jhjghhhj 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)}(hjhh]h!struct drm_plane_state *new_state}(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.chMChjhubj)}(hhh]h)}(hthe plane's new stateh]hthe plane’s new state}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMChjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMChjhubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hjih]h Description}(hj!ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(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.}(hj5ihhhNhNubah}(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)}(hjFih]hReturn}(hjHihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDiubah}(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.}(hj\ihhhNhNubah}(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}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjimodnameN classnameNj+j.)}j1]j4)}j'jisb&c.drm_gem_vram_plane_helper_cleanup_fbasbuh1hhjiubjj)}(h h]h }(hjjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubjH)}(hjKh]h*}(hjjhhhNhNubah}(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}(hj:jhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj6jubjj)}(h h]h }(hjGjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj6jubh)}(hhh]j)}(hdrm_plane_stateh]hdrm_plane_state}(hjXjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjZjmodnameN classnameNj+j.)}j1]jj&c.drm_gem_vram_plane_helper_cleanup_fbasbuh1hhj6jubjj)}(h h]h }(hjvjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj6jubjH)}(hjKh]h*}(hjjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj6jubj)}(h old_stateh]h old_state}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhjihhhjihMsubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjihhhjihMsubah}(h]j~iah ](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_funcsuh1hhjLThKhjjubh .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&]jjjjjjjjjjjuh1jFhhhjFhNhNubj)}(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)}(hjkh]h Parameters}(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.chMwhjjubj)}(hhh](j)}(h(``struct drm_plane *plane`` a DRM plane h](j)}(h``struct drm_plane *plane``h]j)}(hj$kh]hstruct drm_plane *plane}(hj&khhhNhNubah}(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.chMuhjkubj)}(hhh]h)}(h a DRM planeh]h a DRM plane}(hj=khhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9khMuhj:kubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhj9khMuhjkubj)}(h<``struct drm_plane_state *old_state`` the plane's old state h](j)}(h%``struct drm_plane_state *old_state``h]j)}(hj]kh]h!struct drm_plane_state *old_state}(hj_khhhNhNubah}(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.chMvhjWkubj)}(hhh]h)}(hthe plane's old stateh]hthe plane’s old state}(hjvkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrkhMvhjskubah}(h]h ]h"]h$]h&]uh1jhjWkubeh}(h]h ]h"]h$]h&]uh1jhjrkhMvhjkubeh}(h]h ]h"]h$]h&]uh1jhjjubh)}(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.chMxhjjubh)}(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.chMwhjjubeh}(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 }(hjkhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjkhhhjkhMEubj{)}(hdrm_vram_mm_debugfs_inith]j)}(hdrm_vram_mm_debugfs_inith]hdrm_vram_mm_debugfs_init}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjkhhhjkhMEubj)}(h(struct drm_minor *minor)h]j)}(hstruct drm_minor *minorh](jX)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjlubjj)}(h h]h }(hj'lhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlubh)}(hhh]j)}(h drm_minorh]h drm_minor}(hj8lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5lubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj:lmodnameN classnameNj+j.)}j1]j4)}j'jlsbc.drm_vram_mm_debugfs_initasbuh1hhjlubjj)}(h h]h }(hjXlhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlubjH)}(hjKh]h*}(hjflhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjlubj)}(hminorh]hminor}(hjslhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubah}(h]h ]h"]h$]h&]jjuh1jhjkhhhjkhMEubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjkhhhjkhMEubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1jKhjkhMEhjkhhubj)}(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&]uh1jhjkhhhjkhMEubeh}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMGhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMKhjlubah}(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}(hj8mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4mhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMubjj)}(h h]h }(hjGmhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4mhhhjFmhMubj{)}(hdrmm_vram_helper_inith]j)}(hdrmm_vram_helper_inith]hdrmm_vram_helper_init}(hjYmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj4mhhhjFmhMubj)}(h>(struct drm_device *dev, uint64_t vram_base, size_t vram_size)h](j)}(hstruct drm_device *devh](jX)}(hjh]hstruct}(hjumhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqmubjj)}(h h]h }(hjmhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjqmubh)}(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'j[msbc.drmm_vram_helper_initasbuh1hhjqmubjj)}(h h]h }(hjmhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjqmubjH)}(hjKh]h*}(hjmhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjqmubj)}(hdevh]hdev}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmmubj)}(huint64_t vram_baseh](h)}(hhh]j)}(huint64_th]huint64_t}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmmodnameN classnameNj+j.)}j1]jmc.drmm_vram_helper_initasbuh1hhjmubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmubj)}(h vram_baseh]h vram_base}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmmubj)}(hsize_t vram_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj2nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/nubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj4nmodnameN classnameNj+j.)}j1]jmc.drmm_vram_helper_initasbuh1hhj+nubjj)}(h h]h }(hjPnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj+nubj)}(h vram_sizeh]h vram_size}(hj^nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmmubeh}(h]h ]h"]h$]h&]jjuh1jhj4mhhhjFmhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj0mhhhjFmhMubah}(h]j+mah ](jjeh"]h$]h&]jj)jhuh1jKhjFmhMhj-mhhubj)}(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_mmuh1hhjLThKhjnubeh}(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&]uh1jhj-mhhhjFmhMubeh}(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)}(hjnh]hstruct drm_device *dev}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjnubj)}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjohMhjnubj)}(h<``uint64_t vram_base`` the base address of the video memory h](j)}(h``uint64_t vram_base``h]j)}(hj&oh]huint64_t vram_base}(hj(ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$oubah}(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&]uh1hhj;ohMhj` 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)}(hjph]hReturn}(hj phhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(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.}(hjphhhNhNubah}(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}(hjLphhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjHphhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMubjj)}(h h]h }(hjZphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHphhhjYphMubh)}(hhh]j)}(hdrm_mode_statush]hdrm_mode_status}(hjkphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhpubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmpmodnameN classnameNj+j.)}j1]j4)}j'drm_vram_helper_mode_validsbc.drm_vram_helper_mode_validasbuh1hhjHphhhjYphMubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHphhhjYphMubj{)}(hdrm_vram_helper_mode_validh]j)}(hjph]hdrm_vram_helper_mode_valid}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHphhhjYphMubj)}(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 }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubjH)}(hjKh]h*}(hjqhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjpubj)}(hdevh]hdev}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(h#const struct drm_display_mode *modeh](jX)}(hj h]hconst}(hj)qhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj%qubjj)}(h h]h }(hj6qhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj%qubjX)}(hjh]hstruct}(hjDqhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj%qubjj)}(h h]h }(hjQqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj%qubh)}(hhh]j)}(hdrm_display_modeh]hdrm_display_mode}(hjbqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_qubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjdqmodnameN classnameNj+j.)}j1]jpc.drm_vram_helper_mode_validasbuh1hhj%qubjj)}(h h]h }(hjqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj%qubjH)}(hjKh]h*}(hjqhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj%qubj)}(hmodeh]hmode}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhjHphhhjYphMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjDphhhjYphMubah}(h]j?pah ](jjeh"]h$]h&]jj)jhuh1jKhjYphMhjAphhubj)}(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&]uh1jhjAphhhjYphMubeh}(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)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(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)}(hjrh]hstruct drm_device *dev}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(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}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjqubj)}(h9``const struct drm_display_mode *mode`` the mode to test h](j)}(h'``const struct drm_display_mode *mode``h]j)}(hj?rh]h#const struct drm_display_mode *mode}(hjArhhhNhNubah}(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.chMhj9rubj)}(hhh]h)}(hthe mode to testh]hthe mode to test}(hjXrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTrhMhjUrubah}(h]h ]h"]h$]h&]uh1jhj9rubeh}(h]h ]h"]h$]h&]uh1jhjTrhMhjqubeh}(h]h ]h"]h$]h&]uh1jhjqubh)}(h**Description**h]j)}(hjzrh]h Description}(hj|rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxrubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjqubh)}(hXThis 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.h]hXThis 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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjqubh)}(h**Note**h]j)}(hjrh]hNote}(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.chMhjqubh)}(hXThe 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.h]hXThe 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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjqubh)}(h **Return**h]j)}(hjrh]hReturn}(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.chMhjqubh)}(hbMODE_OK if the display mode is supported, or an error code of type enum drm_mode_status otherwise.h]hbMODE_OK if the display mode is supported, or an error code of type enum drm_mode_status otherwise.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:408: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubeh}(h]#gem-vram-helper-functions-referenceah ]h"]#gem vram helper functions referenceah$]h&]uh1hhjzhhhhhMubh)}(hhh](h)}(h"GEM TTM Helper Functions Referenceh]h"GEM TTM Helper Functions Reference}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhhhhhMubh)}(hEThis library provides helper functions for gem objects backed by ttm.h]hEThis library provides helper functions for gem objects backed by ttm.}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:414: ./drivers/gpu/drm/drm_gem_ttm_helper.chK hjrhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_gem_ttm_print_info (C function)c.drm_gem_ttm_print_infohNtauh1j5hjrhhhNhNubjG)}(hhh](jL)}(hjvoid drm_gem_ttm_print_info (struct drm_printer *p, unsigned int indent, const struct drm_gem_object *gem)h]jR)}(hivoid drm_gem_ttm_print_info(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *gem)h](j)}(hvoidh]hvoid}(hj5shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1shhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKubjj)}(h h]h }(hjDshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj1shhhjCshKubj{)}(hdrm_gem_ttm_print_infoh]j)}(hdrm_gem_ttm_print_infoh]hdrm_gem_ttm_print_info}(hjVshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1shhhjCshKubj)}(hN(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *gem)h](j)}(hstruct drm_printer *ph](jX)}(hjh]hstruct}(hjrshhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjnsubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjnsubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjsmodnameN classnameNj+j.)}j1]j4)}j'jXssbc.drm_gem_ttm_print_infoasbuh1hhjnsubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjnsubjH)}(hjKh]h*}(hjshhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjnsubj)}(hjTh]hp}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjsubj)}(hunsigned int indenth](j)}(hunsignedh]hunsigned}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjsubj)}(hinth]hint}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjj)}(h h]h }(hj thhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjsubj)}(hindenth]hindent}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjsubj)}(h const struct drm_gem_object *gemh](jX)}(hj h]hconst}(hj4thhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj0tubjj)}(h h]h }(hjAthhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0tubjX)}(hjh]hstruct}(hjOthhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj0tubjj)}(h h]h }(hj\thhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0tubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjmthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjtubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjotmodnameN classnameNj+j.)}j1]jsc.drm_gem_ttm_print_infoasbuh1hhj0tubjj)}(h h]h }(hjthhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0tubjH)}(hjKh]h*}(hjthhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj0tubj)}(hgemh]hgem}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjsubeh}(h]h ]h"]h$]h&]jjuh1jhj1shhhjCshKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj-shhhjCshKubah}(h]j(sah ](jjeh"]h$]h&]jj)jhuh1jKhjCshKhj*shhubj)}(hhh]h)}(h2Print :c:type:`ttm_buffer_object` info for debugfsh](hPrint }(hjthhhNhNubh)}(h:c:type:`ttm_buffer_object`h]j)}(hjth]httm_buffer_object}(hjthhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jsc.drm_gem_ttm_print_infoasbjattm_buffer_objectuh1hhjCshKhjtubh info for debugfs}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjthhubah}(h]h ]h"]h$]h&]uh1jhj*shhhjCshKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jFhhhjrhNhNubj)}(hX**Parameters** ``struct drm_printer *p`` DRM printer ``unsigned int indent`` Tab indentation level ``const struct drm_gem_object *gem`` GEM object **Description** This function can be used as :c:type:`drm_gem_object_funcs.print_info ` callback.h](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjuubj)}(hhh](j)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hj9uh]hstruct drm_printer *p}(hj;uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7uubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhj3uubj)}(hhh]h)}(h DRM printerh]h DRM printer}(hjRuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNuhKhjOuubah}(h]h ]h"]h$]h&]uh1jhj3uubeh}(h]h ]h"]h$]h&]uh1jhjNuhKhj0uubj)}(h.``unsigned int indent`` Tab indentation level h](j)}(h``unsigned int indent``h]j)}(hjruh]hunsigned int indent}(hjtuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpuubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjluubj)}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKhjuubah}(h]h ]h"]h$]h&]uh1jhjluubeh}(h]h ]h"]h$]h&]uh1jhjuhKhj0uubj)}(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&]uh1jhjuhKhj0uubeh}(h]h ]h"]h$]h&]uh1jhjuubh)}(h**Description**h]j)}(hjuh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjuubh)}(hgThis function can be used as :c:type:`drm_gem_object_funcs.print_info ` callback.h](hThis function can be used as }(hjuhhhNhNubh)}(h@:c:type:`drm_gem_object_funcs.print_info `h]j)}(hjvh]hdrm_gem_object_funcs.print_info}(hjvhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjvubah}(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.chKhjuubh callback.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#vhKhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_ttm_vmap (C function)c.drm_gem_ttm_vmaphNtauh1j5hjrhhhNhNubjG)}(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}(hjNvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJvhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK9ubjj)}(h h]h }(hj]vhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJvhhhj\vhK9ubj{)}(hdrm_gem_ttm_vmaph]j)}(hdrm_gem_ttm_vmaph]hdrm_gem_ttm_vmap}(hjovhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJvhhhj\vhK9ubj)}(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'jqvsbc.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}(hjvhhhNhNubah}(h]h ]jah"]h$] h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(hstruct iosys_map *maph](jX)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjvubjj)}(h h]h }(hj whhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjwmodnameN classnameNj+j.)}j1]jvc.drm_gem_ttm_vmapasbuh1hhjvubjj)}(h h]h }(hj9whhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubjH)}(hjKh]h*}(hjGwhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjvubj)}(hmaph]hmap}(hjTwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhjJvhhhj\vhK9ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjFvhhhj\vhK9ubah}(h]jAvah ](jjeh"]h$]h&]jj)jhuh1jKhj\vhK9hjCvhhubj)}(hhh]h)}(h vmap :c:type:`ttm_buffer_object`h](hvmap }(hj~whhhNhNubh)}(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_objectuh1hhjCshKhj~wubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK9hj{whhubah}(h]h ]h"]h$]h&]uh1jhjCvhhhj\vhK9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1jFhhhjrhNhNubj)}(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)}(hjwh]hstruct drm_gem_object *gem}(hjwhhhNhNubah}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhK:hjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhK:hjwubj)}(h=``struct iosys_map *map`` [out] returns the dma-buf mapping. h](j)}(h``struct iosys_map *map``h]j)}(hjxh]hstruct iosys_map *map}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK;hjxubj)}(hhh]h)}(h"[out] returns the dma-buf mapping.h]h"[out] returns the dma-buf mapping.}(hj5xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1xhK;hj2xubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhj1xhK;hjwubeh}(h]h ]h"]h$]h&]uh1jhjwubh)}(h**Description**h]j)}(hjWxh]h Description}(hjYxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUxubah}(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 }(hjmxhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.vmap `h]j)}(hjwxh]hdrm_gem_object_funcs.vmap}(hjyxhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjuxubah}(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.chKyubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjCymodnameN classnameNj+j.)}j1]j4)}j'j ysbc.drm_gem_ttm_vunmapasbuh1hhjyubjj)}(h h]h }(hjayhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyubjH)}(hjKh]h*}(hjoyhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjyubj)}(hgemh]hgem}(hj|yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hstruct iosys_map *maph](jX)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjyubjj)}(h h]h }(hjyhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjymodnameN classnameNj+j.)}j1]j]yc.drm_gem_ttm_vunmapasbuh1hhjyubjj)}(h h]h }(hjyhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyubjH)}(hjKh]h*}(hjyhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjyubj)}(hmaph]hmap}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjxhKMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjxhhhjxhKMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jKhjxhKMhjxhhubj)}(hhh]h)}(h"vunmap :c:type:`ttm_buffer_object`h](hvunmap }(hjzhhhNhNubh)}(h:c:type:`ttm_buffer_object`h]j)}(hj zh]httm_buffer_object}(hj"zhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j]yc.drm_gem_ttm_vunmapasbjattm_buffer_objectuh1hhjCshKhjzubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKMhjzhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhKMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRzjjRzjjjuh1jFhhhjrhNhNubj)}(hX**Parameters** ``struct drm_gem_object *gem`` GEM object. ``struct iosys_map *map`` dma-buf mapping. **Description** Unmaps a GEM object with ttm_bo_vunmap(). This function can be used as :c:type:`drm_gem_object_funcs.vmap ` callback.h](h)}(h**Parameters**h]j)}(hj\zh]h Parameters}(hj^zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZzubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKQhjVzubj)}(hhh](j)}(h+``struct drm_gem_object *gem`` GEM object. h](j)}(h``struct drm_gem_object *gem``h]j)}(hj{zh]hstruct drm_gem_object *gem}(hj}zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyzubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKNhjuzubj)}(hhh]h)}(h GEM object.h]h GEM object.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKNhjzubah}(h]h ]h"]h$]h&]uh1jhjuzubeh}(h]h ]h"]h$]h&]uh1jhjzhKNhjrzubj)}(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&]uh1jhjzhKOhjrzubeh}(h]h ]h"]h$]h&]uh1jhjVzubh)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chKQhjVzubh)}(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&]uh1hhj,{hKPhjVzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gem_ttm_mmap (C function)c.drm_gem_ttm_mmaphNtauh1j5hjrhhhNhNubjG)}(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}(hjW{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS{hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK^ubjj)}(h h]h }(hjf{hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjS{hhhje{hK^ubj{)}(hdrm_gem_ttm_mmaph]j)}(hdrm_gem_ttm_mmaph]hdrm_gem_ttm_mmap}(hjx{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt{ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjS{hhhje{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'jz{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 }(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]j{c.drm_gem_ttm_mmapasbuh1hhj|ubjj)}(h h]h }(hjB|hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj|ubjH)}(hjKh]h*}(hjP|hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj|ubj)}(hvmah]hvma}(hj]|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1jhjS{hhhje{hK^ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjO{hhhje{hK^ubah}(h]jJ{ah ](jjeh"]h$]h&]jj)jhuh1jKhje{hK^hjL{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_objectuh1hhjCshKhj|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&]uh1jhjL{hhhje{hK^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1jFhhhjrhNhNubj)}(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)}(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: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&]uh1hhj:}hK`hj;}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj:}hK`hj|ubeh}(h]h ]h"]h$]h&]uh1jhj|ubh)}(h**Description**h]j)}(hj`}h]h Description}(hjb}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 }(hjv}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.chKahjv}ubh callback.}(hjv}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}hKahj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_gem_ttm_dumb_map_offset (C function)c.drm_gem_ttm_dumb_map_offsethNtauh1j5hjrhhhNhNubjG)}(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' reftargetj%~modnameN classnameNj+j.)}j1]j4)}j'j}sbc.drm_gem_ttm_dumb_map_offsetasbuh1hhj~ubjj)}(h h]h }(hjC~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubjH)}(hjKh]h*}(hjQ~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}(hjw~hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjs~ubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjs~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_offsetasbuh1hhjs~ubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjs~ubjH)}(hjKh]h*}(hj~hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjs~ubj)}(hdevh]hdev}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(huint32_t handleh](h)}(hhh]j)}(huint32_th]huint32_t}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(huint64_t *offseth](h)}(hhh]j)}(huint64_th]huint64_t}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj4modnameN classnameNj+j.)}j1]j?~c.drm_gem_ttm_dumb_map_offsetasbuh1hhj+ubjj)}(h h]h }(hjPhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj+ubjH)}(hjKh]h*}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj+ubj)}(hoffseth]hoffset}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(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_driveruh1hhjCshKhjubeh}(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&]jjjjjjjjjuh1jFhhhjrhNhNubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK{hjubj)}(h'``struct drm_device *dev`` DRM device. h](j)}(h``struct drm_device *dev``h]j)}(hj3h]hstruct drm_device *dev}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(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 DRM device.h]h DRM device.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhK|hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhK|hjubj)}(h``uint32_t handle`` GEM handle h](j)}(h``uint32_t handle``h]j)}(hjlh]huint32_t handle}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:417: ./drivers/gpu/drm/drm_gem_ttm_helper.chK}hjfubj)}(hhh]h)}(h GEM handleh]h GEM handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK}hjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(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)}(hjh]huint64_t *offset}(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.Returns the mapping's memory offset on successh]h0Returns the mapping’s memory offset on success}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK~hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK~hjubeh}(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: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&]uh1hhjhKhjubh)}(h=See struct :c:type:`drm_driver.dumb_map_offset `.h](h See struct }(hj(hhhNhNubh)}(h1:c:type:`drm_driver.dumb_map_offset `h]j)}(hj2h]hdrm_driver.dumb_map_offset}(hj4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj0ubah}(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.chKhj(ubh.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhKhjubh)}(h **Return**h]j)}(hj\h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(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.}(hjrhhhNhNubah}(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&]uh1jhjrhhhNhNubeh}(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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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.}(hjǁhhhNhNubah}(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().}(hjցhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhjhKTubh)}(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'"drm_vma_offset_exact_lookup_lockedsb$c.drm_vma_offset_exact_lookup_lockedasbuh1hhj hhhjhKTubjj)}(h h]h }(hjMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhjhKTubjH)}(hjKh]h*}(hj[hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj hhhjhKTubj{)}(h"drm_vma_offset_exact_lookup_lockedh]j)}(hjJh]h"drm_vma_offset_exact_lookup_locked}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhKTubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jH$c.drm_vma_offset_exact_lookup_lockedasbuh1hhjubjj)}(h h]h }(hjÂhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjтhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hmgrh]hmgr}(hjނhhhNhNubah}(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 }(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)}(hstarth]hstart}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long pagesh](j)}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjj)}(h h]h }(hjVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDubj)}(hlongh]hlong}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjj)}(h h]h }(hjrhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhKTubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKTubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKThjhhubj)}(hhh]h)}(hLook up node by exact addressh]hLook up node by exact address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKThjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKTubeh}(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)}(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.hhKXhjƃ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.hhKUhjubj)}(hhh]h)}(hManager objecth]hManager object}(hjhhhNhNubah}(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)}(hj$h]hunsigned long start}(hj&hhhNhNubah}(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.hhKVhjubj)}(hhh]h)}(h*Start address (page-based, not byte-based)h]h*Start address (page-based, not byte-based)}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hKVhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKVhjubj)}(h4``unsigned long pages`` Size of object (page-based) h](j)}(h``unsigned long pages``h]j)}(hj]h]hunsigned long pages}(hj_hhhNhNubah}(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.hhKWhjWubj)}(hhh]h)}(hSize of object (page-based)h]hSize of object (page-based)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhKWhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKWhjubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKYhjƃubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKXhjƃubh)}(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.hhK[hjƃubh)}(h&Node at exact start address **start**.h](hNode at exact start address }(hjՄhhhNhNubj)}(h **start**h]hstart}(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:426: ./include/drm/drm_vma_manager.hhK\hjƃubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKkubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj$hKkubj{)}(hdrm_vma_offset_lock_lookuph]j)}(hdrm_vma_offset_lock_lookuph]hdrm_vma_offset_lock_lookup}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj$hKkubj)}(h$(struct drm_vma_offset_manager *mgr)h]j)}(h"struct drm_vma_offset_manager *mgrh](jX)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjOubjj)}(h h]h }(hj`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjsmodnameN classnameNj+j.)}j1]j4)}j'j9sbc.drm_vma_offset_lock_lookupasbuh1hhjOubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjOubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj$hKkubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj$hKkubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj$hKkhj hhubj)}(hhh]h)}(h$Lock lookup for extended private useh]h$Lock lookup for extended private use}(hjօhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKkhjӅhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hKkubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(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)}(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.hhKlhjubj)}(hhh]h)}(hManager objecth]hManager object}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKlhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hKlhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(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().}(hjhhhhNhNubah}(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.}(hjwhhhNhNubah}(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!}(hjhhhNhNubah}(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}(hj܆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؆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_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&]jjuh1jzhj؆hhhjhKubj)}(h$(struct drm_vma_offset_manager *mgr)h]j)}(h"struct drm_vma_offset_manager *mgrh](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_managerh]hdrm_vma_offset_manager}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj9modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_vma_offset_unlock_lookupasbuh1hhjubjj)}(h h]h }(hjWhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjehhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hmgrh]hmgr}(hjrhhhNhNubah}(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&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&]uh1jhjцhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(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)}(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)}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjׇ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ԇ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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjubh)}(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.}(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](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}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKubjj)}(h h]h }(hjlhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYhhhjkhKubj{)}(hdrm_vma_node_reseth]j)}(hdrm_vma_node_reseth]hdrm_vma_node_reset}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjYhhhjkhKubj)}(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 }(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_resetasbuh1hhjubjj)}(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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjYhhhjkhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjUhhhjkhKubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1jKhjkhKhjRhhubj)}(hhh]h)}(hInitialize or reset node objecth]hInitialize or reset node object}(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&]uh1jhjRhhhjkhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1jFhhhjhNhNubj)}(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}(hjAhhhNhNubah}(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.hhKhj9ubj)}(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&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjXubj)}(hhh]h)}(hNode to initialize or reseth]hNode to initialize or reset}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshKhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubh)}(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.hhKhj9ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhj9ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhj9ubeh}(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}(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)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(hdrm_vma_node_starth]j)}(hdrm_vma_node_starth]hdrm_vma_node_start}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(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}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubjX)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'j,sbc.drm_vma_node_startasbuh1hhjBubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjBubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(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)}(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)}(h;``const struct drm_vma_offset_node *node`` Node to inspect h](j)}(h*``const struct drm_vma_offset_node *node``h]j)}(hj%h]h&const struct drm_vma_offset_node *node}(hj'hhhNhNubah}(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.hhKhjubj)}(hhh]h)}(hNode to inspecth]hNode to inspect}(hj>hhhNhNubah}(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)}(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: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.}(hjvhhhNhNubah}(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}(hjhhhNhNubah}(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}(hjދhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڋ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)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڋhhhjhKubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjڋhhhjhKubj{)}(hdrm_vma_node_sizeh]j)}(hdrm_vma_node_sizeh]hdrm_vma_node_size}(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}(hj7hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj3ubjj)}(h h]h }(hjDhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3ubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjWmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_vma_node_sizeasbuh1hhj3ubjj)}(h h]h }(hjuhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj3ubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubah}(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)}(hReturn size (page-based)h]hReturn size (page-based)}(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&]jjjjҌjjҌjjjuh1jFhhhjhNhNubj)}(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)}(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)}(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}(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)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhj֌ubh)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhj֌ubh)}(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.hhKhj֌ubh)}(hUSize of **node** as number of pages. 0 if the node does not have an offset allocated.h](hSize of }(hjshhhNhNubj)}(h**node**h]hnode}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubhE as number of pages. 0 if the node does not have an offset allocated.}(hjshhhNhNubeh}(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](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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_vma_node_offset_addrsbc.drm_vma_node_offset_addrasbuh1hhjhhhY/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_offset_addrh]j)}(hjՍh]hdrm_vma_node_offset_addr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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}(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}(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_offset_addrasbuh1hhjubjj)}(h h]h }(hjBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjPhhhNhNubah}(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&]jjuh1jhjhhhj؍hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj؍hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj؍hKhjhhubj)}(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&]uh1jhjhhhj؍hKubeh}(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)}(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)}(h8``struct drm_vma_offset_node *node`` Linked offset node 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&]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&]uh1hhjݎhKhjގubah}(h]h ]h"]h$]h&]uh1jhjŽubeh}(h]h ]h"]h$]h&]uh1jhjݎhKhjubah}(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)}(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.}(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)}(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.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}(hjHhhhNhNubah}(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&]uh1jhj}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_unmaph]j)}(hdrm_vma_node_unmaph]hdrm_vma_node_unmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhjhKubj)}(hF(struct drm_vma_offset_node *node, struct address_space *file_mapping)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_unmapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"struct address_space *file_mappingh](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 address_spaceh]h address_space}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjPmodnameN classnameNj+j.)}j1]jc.drm_vma_node_unmapasbuh1hhj,ubjj)}(h h]h }(hjlhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,ubjH)}(hjKh]h*}(hjzhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj,ubj)}(h file_mappingh]h file_mapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj}hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjyhhhjhKubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjvhhubj)}(hhh]h)}(hUnmap offset nodeh]hUnmap offset node}(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&]uh1jhjvhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjɐjjɐjjjuh1jFhhhjhNhNubj)}(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)}(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)}(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&]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)}(h Offset nodeh]h Offset node}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hL``struct address_space *file_mapping`` Address space to unmap **node** from h](j)}(h&``struct address_space *file_mapping``h]j)}(hj+h]h"struct address_space *file_mapping}(hj-hhhNhNubah}(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$Address space to unmap **node** fromh](hAddress space to unmap }(hjDhhhNhNubj)}(h**node**h]hnode}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh from}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@hKhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhjubeh}(h]h ]h"]h$]h&]uh1jhj͐ubh)}(h**Description**h]j)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhj͐ubh)}(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.hhKhj͐ubh)}(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.}(hjhhhNhNubah}(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](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}(hjޑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڑ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_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&]jjuh1jzhjڑhhhjhKubj)}(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 }(hj(hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj;modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_vma_node_verify_accessasbuh1hhjubjj)}(h h]h }(hjYhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjghhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnodeh]hnode}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jUc.drm_vma_node_verify_accessasbuh1hhjubjj)}(h h]h }(hjɒhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjגhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(htagh]htag}(hjhhhNhNubah}(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"Access verification helper for TTMh]h"Access verification helper for TTM}(hjhhhNhNubah}(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&]uh1jhjӑhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jFhhhjhNhNubj)}(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)}(hj0h]h Parameters}(hj2hhhNhNubah}(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)}(h1``struct drm_vma_offset_node *node`` Offset node 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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhjIubj)}(hhh]h)}(h Offset nodeh]h Offset node}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhKhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjFubj)}(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&]uh1jhjhKhjFubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhj*ubh)}(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 }(hjٓhhhNhNubj)}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٓubh is granted access to }(hjٓhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٓubho. It is the same as drm_vma_node_is_allowed() but suitable as drop-in helper for TTM verify_access() callbacks.}(hjٓhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:426: ./include/drm/drm_vma_manager.hhKhj*ubh)}(h **Return**h]j)}(hjh]hReturn}(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.hhKhj*ubh)}(h*0 if access is granted, -EACCES otherwise.h]h*0 if access is granted, -EACCES otherwise.}(hj$hhhNhNubah}(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](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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKHubjj)}(h h]h }(hjbhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOhhhjahKHubj{)}(hdrm_vma_offset_manager_inith]j)}(hdrm_vma_offset_manager_inith]hdrm_vma_offset_manager_init}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhhjahKHubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jvsbc.drm_vma_offset_manager_initasbuh1hhjubjj)}(h h]h }(hjΔhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjܔhhhNhNubah}(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 }(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)}(h page_offseth]h page_offset}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjj)}(h h]h }(hjahhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOubj)}(hlongh]hlong}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjj)}(h h]h }(hj}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahKHubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjKhhhjahKHubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jKhjahKHhjHhhubj)}(hhh]h)}(hInitialize new offset-managerh]hInitialize new 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.chKHhjhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahKHubeh}(h]h ](jfunctioneh"]h$]h&]jjjj͕jj͕jjjuh1jFhhhjhNhNubj)}(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)}(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:429: ./drivers/gpu/drm/drm_vma_manager.chKLhjѕ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.chKIhjubj)}(hhh]h)}(hManager objecth]hManager object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKIhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKIhjubj)}(hK``unsigned long page_offset`` Offset of available memory area (page-based) h](j)}(h``unsigned long page_offset``h]j)}(hj/h]hunsigned long page_offset}(hj1hhhNhNubah}(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.chKJhj)ubj)}(hhh]h)}(h,Offset of available memory area (page-based)h]h,Offset of available memory area (page-based)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKJhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhKJhjubj)}(hJ``unsigned long size`` Size of available address space range (page-based) h](j)}(h``unsigned long size``h]j)}(hjhh]hunsigned long size}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKKhjbubj)}(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&]uh1hhj}hKKhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKKhjubeh}(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.chKMhjѕubh)}(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 }(hjhhhNhNubj)}(h**page_offset**h]h page_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**size**h]hsize}(hjӖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2. Both are interpreted as page-numbers, not bytes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKLhjѕubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKPhjѕubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chK_ubjj)}(h h]h }(hj*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj)hK_ubj{)}(hdrm_vma_offset_manager_destroyh]j)}(hdrm_vma_offset_manager_destroyh]hdrm_vma_offset_manager_destroy}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj)hK_ubj)}(h$(struct drm_vma_offset_manager *mgr)h]j)}(h"struct drm_vma_offset_manager *mgrh](jX)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjTubjj)}(h h]h }(hjehhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjTubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjxmodnameN classnameNj+j.)}j1]j4)}j'j>sb c.drm_vma_offset_manager_destroyasbuh1hhjTubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjTubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjTubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj)hK_ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj)hK_ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj)hK_hjhhubj)}(hhh]h)}(hDestroy offset managerh]hDestroy 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.chK_hjؗhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hK_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)}(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.chK`hjubj)}(hhh]h)}(hManager objecth]hManager object}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hK`hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hK`hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(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.}(hjmhhhNhNubah}(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.}(hj|hhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKpubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKpubh)}(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'drm_vma_offset_lookup_lockedsbc.drm_vma_offset_lookup_lockedasbuh1hhjhhhjhKpubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKpubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhKpubj{)}(hdrm_vma_offset_lookup_lockedh]j)}(hjh]hdrm_vma_offset_lookup_locked}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKpubj)}(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}(hj%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj!ubjj)}(h h]h }(hj2hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!ubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjEmodnameN classnameNj+j.)}j1]jc.drm_vma_offset_lookup_lockedasbuh1hhj!ubjj)}(h h]h }(hjahhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!ubjH)}(hjKh]h*}(hjohhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj!ubj)}(hmgrh]hmgr}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hstarth]hstart}(hj͙hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKpubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKphjhhubj)}(hhh]h)}(hFind node in offset spaceh]hFind node in offset space}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKphjEhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKpubeh}(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)}(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:429: ./drivers/gpu/drm/drm_vma_manager.chKthjdubj)}(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}(hjĚhhhNhNubah}(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.chKrhjubj)}(hhh]h)}(h%Start address for object (page-based)h]h%Start address for object (page-based)}(hjۚhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjךhKrhjؚubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjךhKrhjubj)}(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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKshjubeh}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKuhjdubh)}(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, }(hjLhhhNhNubj)}(h **start**h]hstart}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh 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 }(hjLhhhNhNubj)}(h **pages**h]hpages}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh).}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKthjdubh)}(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.chKyhjdubh)}(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}hjdubjh)}(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);}hjsbah}(h]h ]h"]h$]h&]jjuh1jgh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjdubh)}(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.chKhjdubh)}(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.}(hj͛hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjdubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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}(hj9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj5ubjj)}(h h]h }(hjFhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjYmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_vma_offset_addasbuh1hhj5ubjj)}(h h]h }(hjwhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj5ubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(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}(hjɜhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƜubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj˜modnameN classnameNj+j.)}j1]jsc.drm_vma_offset_addasbuh1hhjubjj)}(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&]noemphjjuh1jhj1ubj)}(hunsigned long pagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hlongh]hlong}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjEhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hpagesh]hpages}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hKhjhhubj)}(hhh]h)}(hAdd offset node to managerh]hAdd offset node to 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.chKhjzhhubah}(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)}(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}(hjםhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӝhKhjԝubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӝhKhjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(hS``unsigned long pages`` Allocation size visible to user-space (in number of pages) h](j)}(h``unsigned long pages``h]j)}(hj0h]hunsigned long pages}(hj2hhhNhNubah}(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)}(h:Allocation size visible to user-space (in number of pages)h]h:Allocation size visible to user-space (in number of pages)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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.}(hjhhhNhNubeh}(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)}(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)}(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}(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_removeh]j)}(hdrm_vma_offset_removeh]hdrm_vma_offset_remove}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj#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}(hjRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjNubjj)}(h h]h }(hj_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjNubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjrmodnameN classnameNj+j.)}j1]j4)}j'j8sbc.drm_vma_offset_removeasbuh1hhjNubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjNubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjNubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(h struct drm_vma_offset_node *nodeh](jX)}(hjh]hstruct}(hjğhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߟubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_vma_offset_removeasbuh1hhjubjj)}(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&]noemphjjuh1jhjJubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj#hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj#hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj#hKhj hhubj)}(hhh]h)}(hRemove offset node from managerh]hRemove offset node from manager}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjBhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1jFhhhjhNhNubj)}(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)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjaubj)}(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&]uh1jhjhKhj}ubj)}(h8``struct drm_vma_offset_node *node`` Node to be removed 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 removedh]hNode to be removed}(hjؠhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԠhKhjՠubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԠhKhj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(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.chKhjaubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chKhjaubeh}(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&]uh1jhj;hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM'ubjj)}(h h]h }(hjNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;hhhjMhM'ubj{)}(hdrm_vma_node_allowh]j)}(hdrm_vma_node_allowh]hdrm_vma_node_allow}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj;hhhjMhM'ubj)}(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&]uh1jWhjxubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjxubh)}(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'jbsbc.drm_vma_node_allowasbuh1hhjxubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjxubjH)}(hjKh]h*}(hjȡhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjxubj)}(hnodeh]hnode}(hjաhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(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' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_vma_node_allowasbuh1hhjubjj)}(h h]h }(hj*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj8hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(htagh]htag}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhjMhM'ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj7hhhjMhM'ubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1jKhjMhM'hj4hhubj)}(hhh]h)}(h&Add open-file to list of allowed usersh]h&Add open-file to list of allowed users}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM'hjlhhubah}(h]h ]h"]h$]h&]uh1jhj4hhhjMhM'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)}(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.chM(hjubj)}(hhh]h)}(hNode to modifyh]hNode to modify}(hjɢhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŢhM(hjƢubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŢhM(hjubj)}(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)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&]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 }(hj:hhhNhNubj)}(h**tag**h]htag}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh5 to the list of allowed open-files for this node. If }(hj:hhhNhNubj)}(h**tag**h]htag}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh7 is already on this list, the ref-count is incremented.}(hj:hhhNhNubeh}(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.}(hjmhhhNhNubah}(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.}(hj|hhhNhNubah}(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)}(hjhhhNhNubah}(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&]uh1jhjݣhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMAubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjݣhhhjhMAubj{)}(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&]jjuh1jzhjݣhhhjhMAubj)}(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 }(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&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj>modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_vma_node_allow_onceasbuh1hhjubjj)}(h h]h }(hj\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnodeh]hnode}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jXc.drm_vma_node_allow_onceasbuh1hhjubjj)}(h h]h }(hj̤hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjڤhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(htagh]htag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjݣhhhjhMAubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj٣hhhjhMAubah}(h]jԣah ](jjeh"]h$]h&]jj)jhuh1jKhjhMAhj֣hhubj)}(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.chMAhjhhubah}(h]h ]h"]h$]h&]uh1jhj֣hhhjhMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jFhhhjhNhNubj)}(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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMEhj-ubj)}(hhh](j)}(h4``struct drm_vma_offset_node *node`` Node to modify h](j)}(h$``struct drm_vma_offset_node *node``h]j)}(hjRh]h struct drm_vma_offset_node *node}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMBhjLubj)}(hhh]h)}(hNode to modifyh]hNode to modify}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMBhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMBhjIubj)}(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&]uh1jhjhMChjIubeh}(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:429: ./drivers/gpu/drm/drm_vma_manager.chMEhj-ubh)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj@modnameN classnameNj+j.)}j1]jc.drm_vma_node_revokeasbuh1hhjubjj)}(h h]h }(hj\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(htagh]htag}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjmhhhjhMZubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjihhhjhMZubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1jKhjhMZhjfhhubj)}(hhh]h)}(h+Remove open-file from list of allowed usersh]h+Remove open-file from 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.chMZhjhhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjhMZubeh}(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** Decrement the ref-count of **tag** in the list of allowed open-files on **node**. If the ref-count drops to zero, remove **tag** from the list. You must call this once for every drm_vma_node_allow() on **tag**. This is locked against concurrent access internally. If **tag** is not on the list, nothing is done.h](h)}(h**Parameters**h]j)}(hjçh]h Parameters}(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.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)}(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.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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM\hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM\hj٧ubeh}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM^hjubh)}(hDecrement the ref-count of **tag** in the list of allowed open-files on **node**. If the ref-count drops to zero, remove **tag** from the list. You must call this once for every drm_vma_node_allow() on **tag**.h](hDecrement the ref-count of }(hjlhhhNhNubj)}(h**tag**h]htag}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh& in the list of allowed open-files on }(hjlhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh). If the ref-count drops to zero, remove }(hjlhhhNhNubj)}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubhJ from the list. You must call this once for every drm_vma_node_allow() on }(hjlhhhNhNubj)}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chM]hjubh)}(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.chMahjubh)}(h/If **tag** is not on the list, nothing is done.h](hIf }(hjҨhhhNhNubj)}(h**tag**h]htag}(hjڨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҨubh% is not on the list, nothing is done.}(hjҨhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMchjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_vma_node_is_allowed (C function)c.drm_vma_node_is_allowedhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hUbool drm_vma_node_is_allowed (struct drm_vma_offset_node *node, struct drm_file *tag)h]jR)}(hTbool drm_vma_node_is_allowed(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:429: ./drivers/gpu/drm/drm_vma_manager.chMubjj)}(h h]h }(hj!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj hMubj{)}(hdrm_vma_node_is_allowedh]j)}(hdrm_vma_node_is_allowedh]hdrm_vma_node_is_allowed}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMubj)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(h struct drm_vma_offset_node *nodeh](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_nodeh]hdrm_vma_offset_node}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjomodnameN classnameNj+j.)}j1]j4)}j'j5sbc.drm_vma_node_is_allowedasbuh1hhjKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjKubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjKubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct drm_file *tagh](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&]uh1jhjܩubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_vma_node_is_allowedasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(htagh]htag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(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,Check whether an open-file is granted accessh]h,Check whether an open-file is granted access}(hjBhhhNhNubah}(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&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jFhhhjhNhNubj)}(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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(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.chMhj}ubj)}(hhh]h)}(h Node to checkh]h Node to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubj)}(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.chMhjubj)}(hhh]h)}(hTag of file to removeh]hTag of file to remove}(hjժhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѪhMhjҪubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjѪhMhjzubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh whether }(hj hhhNhNubj)}(h**tag**h]htag}(hj'hhhNhNubah}(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)}(hjQh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(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 }(hjghhhNhNubj)}(h**filp**h]hfilp}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh is on the list}(hjghhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hhh](h)}(hOverview and Lifetime Rulesh]hOverview and Lifetime Rules}(hjǫhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjīhhhhhMubh)}(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.}(hjիhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:444: ./drivers/gpu/drm/drm_prime.chK/hjīhhubh)}(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)}(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:444: ./drivers/gpu/drm/drm_prime.chK5hjubh hooks. }(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_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 hK5hjīhhubh)}(hhh](h)}(h"Reference Counting for GEM Driversh]h"Reference Counting for GEM Drivers}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hNhNubh)}(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 }(hjJhhhNhNubh)}(h:c:type:`dma_buf`h]j)}(hjTh]hdma_buf}(hjVhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjRubah}(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=hjJubh< holds a reference to the exported buffer object, usually a }(hjJhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjxh]hdrm_gem_object}(hjzhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjqhK=hjJubhO. It takes this reference in the PRIME_HANDLE_TO_FD IOCTL, when it first calls }(hjJhhhNhNubh)}(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_funcsuh1hhjqhK=hjJubh, and stores the exporting GEM object in the }(hjJhhhNhNubh)}(h :c:type:`dma_buf.priv `h]j)}(hjh]h dma_buf.priv}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_bufuh1hhjqhK=hjJubhL field. This reference needs to be released when the final reference to the }(hjJhhhNhNubh)}(h:c:type:`dma_buf`h]j)}(hjh]hdma_buf}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj߬ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_bufuh1hhjqhK=hjJubh itself is dropped and its }(hjJhhhNhNubh)}(h+:c:type:`dma_buf_ops.release `h]j)}(hjh]hdma_buf_ops.release}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhjqhK=hjJubh1 function is called. For GEM-based drivers, the }(hjJhhhNhNubh)}(h:c:type:`dma_buf`h]j)}(hj'h]hdma_buf}(hj)hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_bufuh1hhjqhK=hjJubh` should be exported using drm_gem_dmabuf_export() and then released by drm_gem_dmabuf_release().}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqhK=hj9ubh)}(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 }(hjNhhhNhNubh)}(h :c:type:`drm_prime_file_private`h]j)}(hjXh]hdrm_prime_file_private}(hjZhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjVubah}(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.chKFhjNubh] only retain a weak reference, which is cleaned up when the corresponding object is released.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjuhKFhj9ubh)}(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.chKPhj9ubeh}(h]"reference-counting-for-gem-driversah ]h"]"reference counting for gem driversah$]h&]uh1hhjīhhhNhNubeh}(h]overview-and-lifetime-rulesah ]h"]overview and lifetime rulesah$]h&]uh1hhjhhhhhMubh)}(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 }(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:450: ./drivers/gpu/drm/drm_prime.chM(hjubh and }(hjhhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j)}(hjޭh]hdrm_driver.gem_prime_import}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjܭubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_driveruh1hhj׭hM(hjubh 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:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj׭hM(hjhhubh)}(hhh](h)}(hExporting buffersh]hExporting buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhNhNubh)}(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 }(hjhhhNhNubh)}(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&]uh1jhjubah}(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.chM1hjubh. If }(hjhhhNhNubh)}(hB:c:type:`drm_gem_object_funcs.get_sg_table `h]j)}(hjDh]h!drm_gem_object_funcs.get_sg_table}(hjFhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhj=hM1hjubh< is unimplemented, exports into another device are rejected.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj=hM1hjubh)}(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().}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:450: ./drivers/gpu/drm/drm_prime.chM7hjubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:450: ./drivers/gpu/drm/drm_prime.chM;hjubh)}(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?hjubeh}(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 }(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_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:450: ./drivers/gpu/drm/drm_prime.chMDhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjخhMDhjubh)}(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&]uh1hhjhhhhhMubh)}(hhh](h)}(hPRIME Function Referencesh]hPRIME Function References}(hjhhhNhNubah}(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}(hj-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj)hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:456: ./include/drm/drm_prime.hhKubjj)}(h h]h }(hj;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj)hhhj:hKubj{)}(hdrm_prime_file_privateh]j)}(hj'h]hdrm_prime_file_private}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj)hhhj:hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj%hhhj:hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj:hKhj"hhubj)}(hhh]h)}(hper-file tracking for PRIMEh]hper-file tracking for PRIME}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:456: ./include/drm/drm_prime.hhK(hjlhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj:hKubeh}(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 { };}hjsbah}(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)}(hjh]hMembers}(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.hhK1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj!hNubh)}(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: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&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_fileuh1hhjhK)hjubh used by the PRIME core code.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK)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&]uh1jWhj\hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chKubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj\hhhjmhKubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_dmabuf_exportsbc.drm_gem_dmabuf_exportasbuh1hhj\hhhjmhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj\hhhjmhKubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj\hhhjmhKubj{)}(hdrm_gem_dmabuf_exporth]j)}(hjh]hdrm_gem_dmabuf_export}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\hhhjmhKubj)}(h>(struct drm_device *dev, struct dma_buf_export_info *exp_info)h](j)}(hstruct drm_device *devh](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)}(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_exportasbuh1hhjְubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjְubjH)}(hjKh]h*}(hj$hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjְubj)}(hdevh]hdev}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjְubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjҰubj)}(h$struct dma_buf_export_info *exp_infoh](jX)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjFubjj)}(h h]h }(hjWhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjFubh)}(hhh]j)}(hdma_buf_export_infoh]hdma_buf_export_info}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjjmodnameN classnameNj+j.)}j1]jc.drm_gem_dmabuf_exportasbuh1hhjFubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjFubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjFubj)}(hexp_infoh]hexp_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjҰubeh}(h]h ]h"]h$]h&]jjuh1jhj\hhhjmhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjXhhhjmhKubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1jKhjmhKhjUhhubj)}(hhh]h)}(h/:c:type:`dma_buf` export implementation for GEMh](h)}(h:c:type:`dma_buf`h]j)}(hjѱh]hdma_buf}(hjӱhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjϱubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gem_dmabuf_exportasbjadma_bufuh1hhjmhKhj˱ubh export 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.chKhjȱhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjmhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(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)}(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.chKhj ubj)}(hhh](j)}(hA``struct drm_device *dev`` parent device for the exported dmabuf h](j)}(h``struct drm_device *dev``h]j)}(hj0h]hstruct drm_device *dev}(hj2hhhNhNubah}(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.chKhj*ubj)}(hhh]h)}(h%parent device for the exported dmabufh]h%parent device for the exported dmabuf}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj'ubj)}(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)}(hjih]h$struct dma_buf_export_info *exp_info}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chKhjcubj)}(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&]uh1hhj~hKhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKhj'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.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 }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjIJh]h drm_device}(hjƲhhhNhNubah}(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.chKhjubh and the exported }(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_objectuh1hhjhKhjubh (stored in }(hjhhhNhNubh)}(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_infouh1hhjhKhjubh0) which is released by drm_gem_dmabuf_release().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhj ubh)}(hReturns the new dmabuf.h]hReturns the new dmabuf.}(hj2hhhNhNubah}(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}(hjahhhNhNubah}(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 }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj]hhhjohMubj{)}(hdrm_gem_dmabuf_releaseh]j)}(hdrm_gem_dmabuf_releaseh]hdrm_gem_dmabuf_release}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhjohMubj)}(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 }(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_dmabuf_releaseasbuh1hhjubjj)}(h h]h }(hjܳhhhNhNubah}(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&]jjuh1jhj]hhhjohMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjYhhhjohMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jKhjohMhjVhhubj)}(hhh]h)}(h0:c:type:`dma_buf` release implementation for GEMh](h)}(h:c:type:`dma_buf`h]j)}(hj'h]hdma_buf}(hj)hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jسc.drm_gem_dmabuf_releaseasbjadma_bufuh1hhjmhKhj!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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1jFhhhjhNhNubj)}(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)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjaubj)}(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&]uh1jhjhMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubh)}(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.chMhjaubh)}(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 }(hj״hhhNhNubh)}(h:c:type:`dma_buf_ops`h]j)}(hjh]h dma_buf_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjߴubah}(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״ubhx structure as the release callback. drm_gem_dmabuf_release() should be used in conjunction with drm_gem_dmabuf_export().}(hj״hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjaubeh}(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}(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 }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj%hhhj7hMubj{)}(hdrm_gem_prime_fd_to_handleh]j)}(hdrm_gem_prime_fd_to_handleh]hdrm_gem_prime_fd_to_handle}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj%hhhj7hMubj)}(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}(hjfhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjbubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjbubh)}(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'jLsbc.drm_gem_prime_fd_to_handleasbuh1hhjbubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjbubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjbubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(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]jc.drm_gem_prime_fd_to_handleasbuh1hhjԵ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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԵubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(h int prime_fdh](j)}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjj)}(h h]h }(hjVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDubj)}(hprime_fdh]hprime_fd}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(huint32_t *handleh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_prime_fd_to_handleasbuh1hhjyubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjyubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj7hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj!hhhj7hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj7hMhjhhubj)}(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&]uh1jhjhhhj7hMubeh}(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)}(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&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(h:``struct drm_file *file_priv`` drm file-private structure h](j)}(h``struct drm_file *file_priv``h]j)}(hj]h]hstruct drm_file *file_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:459: ./drivers/gpu/drm/drm_prime.chMhjWubj)}(hhh]h)}(hdrm file-private structureh]hdrm file-private structure}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hU``uint32_t *handle`` pointer to storage for the handle of the imported buffer object h](j)}(h``uint32_t *handle``h]j)}(hjϷh]huint32_t *handle}(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)}(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&]uh1jhjɷubeh}(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&]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 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)}(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:459: ./drivers/gpu/drm/drm_prime.chMhj ubh driver callback.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhMhjubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjRhhhNhNubah}(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&]uh1jWhj}hhhW/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&]uh1jihj}hhhjhMubh)}(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_dmabufasbuh1hhj}hhhjhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj}hhhjhMubjH)}(hjKh]h*}(hjϸhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj}hhhjhMubj{)}(hdrm_gem_prime_handle_to_dmabufh]j)}(hjh]hdrm_gem_prime_handle_to_dmabuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܸubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhjhMubj)}(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 }(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_prime_handle_to_dmabufasbuh1hhjubjj)}(h h]h }(hj7hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjEhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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]j c.drm_gem_prime_handle_to_dmabufasbuh1hhjgubjj)}(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}(hj¹hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(huint32_t handleh](h)}(hhh]j)}(huint32_th]huint32_t}(hj޹hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۹ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j c.drm_gem_prime_handle_to_dmabufasbuh1hhj׹ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj׹ubj)}(hhandleh]hhandle}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׹ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(huint32_t flagsh](h)}(hhh]j)}(huint32_th]huint32_t}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj(modnameN classnameNj+j.)}j1]j c.drm_gem_prime_handle_to_dmabufasbuh1hhjubjj)}(h h]h }(hjDhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hflagsh]hflags}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj}hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjyhhhjhMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjvhhubj)}(hhh]h)}(h%PRIME export function for GEM driversh]h%PRIME export function for GEM drivers}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjhMubeh}(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)}(hjh]hstruct drm_device *dev}(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)}(hdev to export the buffer fromh]hdev to export the buffer from}(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 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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h,``uint32_t handle`` buffer handle to export h](j)}(h``uint32_t handle``h]j)}(hj/h]huint32_t handle}(hj1hhhNhNubah}(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)}(hbuffer handle to exporth]hbuffer handle to export}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj)}(h*``uint32_t flags`` flags like DRM_CLOEXEC h](j)}(h``uint32_t flags``h]j)}(hjhh]huint32_t flags}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjbubj)}(hhh]h)}(hflags like DRM_CLOEXECh]hflags like DRM_CLOEXEC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(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&]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 }(hjhhhNhNubh)}(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&]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&]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}(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 }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj(hMubj{)}(hdrm_gem_prime_handle_to_fdh]j)}(hdrm_gem_prime_handle_to_fdh]hdrm_gem_prime_handle_to_fd}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj(hMubj)}(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}(hjWhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjSubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjSubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjwmodnameN classnameNj+j.)}j1]j4)}j'j=sbc.drm_gem_prime_handle_to_fdasbuh1hhjSubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjSubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjSubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(hstruct drm_file *file_privh](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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_prime_handle_to_fdasbuh1hhjżubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjżubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjżubj)}(h file_privh]h file_priv}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjżubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(huint32_t handleh](h)}(hhh]j)}(huint32_th]huint32_t}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj>modnameN classnameNj+j.)}j1]jc.drm_gem_prime_handle_to_fdasbuh1hhj5ubjj)}(h h]h }(hjZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubj)}(hhandleh]hhandle}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(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_fdasbuh1hhj}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&]noemphjjuh1jhjOubj)}(h int *prime_fdh](j)}(hinth]hint}(hjɽhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŽubjj)}(h h]h }(hj׽hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjŽubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjŽubj)}(hprime_fdh]hprime_fd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŽubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(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%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&]uh1jhjhhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1jFhhhjhNhNubj)}(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&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj8ubj)}(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.chMhjWubj)}(hhh]h)}(hdev to export the buffer fromh]hdev to export the buffer from}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubj)}(h,``uint32_t handle`` buffer handle to export h](j)}(h``uint32_t handle``h]j)}(hjϾh]huint32_t handle}(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)}(hbuffer handle to exporth]hbuffer handle to export}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjɾubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubj)}(h*``uint32_t flags`` flags like DRM_CLOEXEC h](j)}(h``uint32_t flags``h]j)}(hjh]huint32_t flags}(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)}(hflags like DRM_CLOEXECh]hflags like DRM_CLOEXEC}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubj)}(hI``int *prime_fd`` pointer to storage for the fd id of the create dma-buf h](j)}(h``int *prime_fd``h]j)}(hjAh]h int *prime_fd}(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)}(h6pointer to storage for the fd id of the create dma-bufh]h6pointer to storage for the fd id of the create dma-buf}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubh)}(h**Description**h]j)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj8ubh)}(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&]uh1hhjhMhj8ubeh}(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}(hjhhhNhNubah}(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&]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' reftargetjAmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_map_attachasbuh1hhjubjj)}(h h]h }(hj_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjmhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdma_bufh]hdma_buf}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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]j[c.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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMOubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjܿhhhjhMOubah}(h]j׿ah ](jjeh"]h$]h&]jj)jhuh1jKhjhMOhjٿhhubj)}(hhh]h)}(h%dma_buf attach implementation for GEMh]h%dma_buf attach 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.chMOhjhhubah}(h]h ]h"]h$]h&]uh1jhjٿhhhjhMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1jFhhhjhNhNubj)}(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)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMShj0ubj)}(hhh](j)}(h7``struct dma_buf *dma_buf`` buffer to attach device to h](j)}(h``struct dma_buf *dma_buf``h]j)}(hjUh]hstruct dma_buf *dma_buf}(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.chMPhjOubj)}(hhh]h)}(hbuffer to attach device toh]hbuffer to attach device to}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMPhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMPhjLubj)}(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&]uh1jhjhMQhjLubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(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.chMShj0ubh)}(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}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhjhMRhjubh; callback. Must be used together with drm_gem_map_detach().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMRhj0ubh)}(h5Returns 0 on success, negative error code on failure.h]h5Returns 0 on success, negative error code on failure.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMVhj0ubeh}(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}(hjchhhNhNubah}(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 }(hjrhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_hhhjqhMuubj{)}(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_hhhjqhMuubj)}(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*}(hjhhhNhNubah}(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}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj2modnameN classnameNj+j.)}j1]jc.drm_gem_map_detachasbuh1hhjubjj)}(h h]h }(hjNhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj\hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hattachh]hattach}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj_hhhjqhMuubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj[hhhjqhMuubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1jKhjqhMuhjXhhubj)}(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&]uh1jhjXhhhjqhMuubeh}(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}(hjhhhNhNubah}(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}(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.chMwhjubj)}(hhh]h)}(hattachment to be detachedh]hattachment to be detached}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMwhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMwhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(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)}(hjhh]hdrm_gem_object_funcs.pin}(hjjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjfubah}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubh)}(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_map_dma_bufsbc.drm_gem_map_dma_bufasbuh1hhjhhhjhMubjj)}(h h]h }(hj6hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubjH)}(hjKh]h*}(hjDhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhMubj{)}(hdrm_gem_map_dma_bufh]j)}(hj3h]hdrm_gem_map_dma_buf}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h@(struct dma_buf_attachment *attach, enum dma_data_direction dir)h](j)}(h!struct dma_buf_attachment *attachh](jX)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjlubjj)}(h h]h }(hj}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlubh)}(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]j1c.drm_gem_map_dma_bufasbuh1hhjlubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjlubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjlubj)}(hattachh]hattach}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(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]j1c.drm_gem_map_dma_bufasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hdirh]hdir}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h"map_dma_buf implementation for GEMh]h"map_dma_buf implementation for GEM}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$] h&]jjjjljjljjjuh1jFhhhjhNhNubj)}(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)}(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:459: ./drivers/gpu/drm/drm_prime.chMhjpubj)}(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&]uh1jhjpubh)}(h**Description**h]j)}(hj h]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.chMhjpubh)}(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 }(hjhhhNhNubh)}(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:459: ./drivers/gpu/drm/drm_prime.chMhjubh8 and then maps the scatterlist. This can be used as the }(hjhhhNhNubh)}(h/:c:type:`dma_buf_ops.map_dma_buf `h]j)}(hjMh]hdma_buf_ops.map_dma_buf}(hjOhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_buf_opsuh1hhjFhMhjubh@ callback. Should be used together with drm_gem_unmap_dma_buf().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjFhMhjpubh)}(h **Return**h]j)}(hjvh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjpubh)}(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.chMhjpubeh}(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 }(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]j4)}j'jsbc.drm_gem_unmap_dma_bufasbuh1hhjubjj)}(h h]h }(hj6hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjDhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hattachh]hattach}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sg_table *sgth](jX)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjfubjj)}(h h]h }(hjwhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjfubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j2c.drm_gem_unmap_dma_bufasbuh1hhjfubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjfubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjfubj)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(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 }(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]j2c.drm_gem_unmap_dma_bufasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hdirh]hdir}(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$unmap_dma_buf implementation for GEMh]h$unmap_dma_buf implementation for GEM}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1jFhhhjhNhNubj)}(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)}(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.chMhjjubj)}(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}(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&]uh1jhjjubh)}(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.chMhjjubh)}(hSThis can be used as the :c:type:`dma_buf_ops.unmap_dma_buf ` callback.h](hThis can be used as the }(hjRhhhNhNubh)}(h1:c:type:`dma_buf_ops.unmap_dma_buf `h]j)}(hj\h]hdma_buf_ops.unmap_dma_buf}(hj^hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjZubah}(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.chMhjRubh callback.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjyhMhjjubeh}(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 }(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_dmabuf_vmapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj-hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdma_bufh]hdma_buf}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct iosys_map *maph](jX)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjOubjj)}(h h]h }(hj`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjsmodnameN classnameNj+j.)}j1]jc.drm_gem_dmabuf_vmapasbuh1hhjOubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjOubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(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&]jjjjjjjjjuh1jFhhhjhNhNubj)}(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.chMhjubj)}(hhh](j)}(h0``struct dma_buf *dma_buf`` buffer to be mapped 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 mappedh]hbuffer to be mapped}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj ubj)}(h<``struct iosys_map *map`` the virtual address of the buffer h](j)}(h``struct iosys_map *map``h]j)}(hjNh]hstruct iosys_map *map}(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.chMhjHubj)}(hhh]h)}(h!the virtual address of the bufferh]h!the virtual address of the buffer}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhj 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:459: ./drivers/gpu/drm/drm_prime.chMhjubh)}(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&]uh1hhjhMhjubh)}(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.chMhjubeh}(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&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hj2hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj1hMubj{)}(hdrm_gem_dmabuf_vunmaph]j)}(hdrm_gem_dmabuf_vunmaph]hdrm_gem_dmabuf_vunmap}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj1hMubj)}(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&]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]j4)}j'jFsbc.drm_gem_dmabuf_vunmapasbuh1hhj\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&]noemphjjuh1jhjXubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gem_dmabuf_vunmapasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hmaph]hmap}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj1hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj1hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj1hMhjhhubj)}(hhh]h)}(h%dma_buf vunmap implementation for GEMh]h%dma_buf vunmap implementation for GEM}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1jFhhhjhNhNubj)}(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)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjoubj)}(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&]uh1jhjoubh)}(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.chMhjoubh)}(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 }(hjhhhNhNubh)}(h*:c:type:`dma_buf_ops.vunmap `h]j)}(hj(h]hdma_buf_ops.vunmap}(hj*hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj&ubah}(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.vunmap `h]j)}(hjLh]hdrm_gem_object_funcs.vunmap}(hjNhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_object_funcsuh1hhjEhMhjubh for device specific handling.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEhMhjoubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_prime_mmapasbuh1hhjubjj)}(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 vm_area_struct *vmah](jX)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj>ubjj)}(h h]h }(hjOhhhNhNubah}(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' reftargetjbmodnameN classnameNj+j.)}j1]j c.drm_gem_prime_mmapasbuh1hhj>ubjj)}(h h]h }(hj~hhhNhNubah}(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)}(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)}(h GEM objecth]h GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h5``struct vm_area_struct *vma`` Virtual address range 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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj7ubj)}(hhh]h)}(hVirtual address rangeh]hVirtual address range}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubeh}(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.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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM*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&]jjuh1jzhjhhhjhM*ubj)}(h5(struct dma_buf *dma_buf, struct vm_area_struct *vma)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&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj=modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gem_dmabuf_mmapasbuh1hhjubjj)}(h h]h }(hj[hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjihhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdma_bufh]hdma_buf}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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]jWc.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&]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#dma_buf mmap implementation for GEMh]h#dma_buf mmap 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.chM*hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1jFhhhjhNhNubj)}(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)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM.hj,ubj)}(hhh](j)}(h0``struct dma_buf *dma_buf`` buffer to be mapped h](j)}(h``struct dma_buf *dma_buf``h]j)}(hjQh]hstruct dma_buf *dma_buf}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM+hjKubj)}(hhh]h)}(hbuffer to be mappedh]hbuffer to be mapped}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhM+hjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhM+hjHubj)}(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,hjHubeh}(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.chM.hj,ubh)}(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-hj,ubh)}(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.chM0hj,ubeh}(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}(hj<hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj8hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMGubjj)}(h h]h }(hjJhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8hhhjIhMGubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj]modnameN classnameNj+j.)}j1]j4)}j'drm_prime_pages_to_sgsbc.drm_prime_pages_to_sgasbuh1hhj8hhhjIhMGubjj)}(h h]h }(hj|hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8hhhjIhMGubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj8hhhjIhMGubj{)}(hdrm_prime_pages_to_sgh]j)}(hjyh]hdrm_prime_pages_to_sg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhhjIhMGubj)}(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]jwc.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}(hj&hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj"ubjj)}(h h]h }(hj3hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj"ubh)}(hhh]j)}(hpageh]hpage}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjFmodnameN classnameNj+j.)}j1]jwc.drm_prime_pages_to_sgasbuh1hhj"ubjj)}(h h]h }(hjbhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj"ubjH)}(hjKh]h*}(hjphhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj"ubjH)}(hjKh]h*}(hj}hhhNhNubah}(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&]jjuh1jhj8hhhjIhMGubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj4hhhjIhMGubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jKhjIhMGhj1hhubj)}(hhh]h)}(h%converts a page array into an sg listh]h%converts a page array into an sg list}(hjhhhNhNubah}(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&]uh1jhj1hhhjIhMGubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(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)}(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.chMKhj!ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjFh]hstruct drm_device *dev}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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&]uh1hhj[hMHhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMHhj=ubj)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMIhjyubj)}(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&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMIhj=ubj)}(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&]uh1jhjhMJhj=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.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 }(hjhhhNhNubh)}(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:459: ./drivers/gpu/drm/drm_prime.chMOhjubh.}(hjhhhNhNubeh}(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}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMmubjj)}(h h]h }(hjyhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjfhhhjxhMmubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjxhMmubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjfhhhjxhMmubj{)}(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&]jjuh1jzhjfhhhjxhMmubj)}(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*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjfhhhjxhMmubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjbhhhjxhMmubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1jKhjxhMmhj_hhubj)}(hhh]h)}(h)returns the contiguous size of the bufferh]h)returns the contiguous size of the buffer}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMmhjChhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjxhMmubeh}(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)}(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:459: ./drivers/gpu/drm/drm_prime.chMqhjbubj)}(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&]uh1jhjhMnhj~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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMphjbubh)}(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.chMohjbubh)}(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&]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.chMrhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMrhjbubeh}(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}(hj9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj5hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjGhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5hhhjFhMubh)}(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'drm_gem_prime_exportsbc.drm_gem_prime_exportasbuh1hhj5hhhjFhMubjj)}(h h]h }(hjyhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5hhhjFhMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj5hhhjFhMubj{)}(hdrm_gem_prime_exporth]j)}(hjvh]hdrm_gem_prime_export}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhhjFhMubj)}(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]jtc.drm_gem_prime_exportasbuh1hhjubjj)}(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)}(h int flagsh](j)}(hinth]hint}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hflagsh]hflags}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhjFhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj1hhhjFhMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1jKhjFhMhj.hhubj)}(hhh]h)}(h4helper library implementation of the export callbackh]h4helper library implementation of the export callback}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhjfhhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjFhMubeh}(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)}(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)}(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 }(hj4hhhNhNubh)}(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:459: ./drivers/gpu/drm/drm_prime.chMhj4ubhn functions for GEM drivers using the PRIME helpers. It is used as the default in drm_gem_prime_handle_to_fd().}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj[hMhjubeh}(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_bufh]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*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dma_buf *dma_bufh](jX)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj0ubjj)}(h h]h }(hjAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0ubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjTmodnameN classnameNj+j.)}j1]j#c.drm_gem_is_prime_exported_dma_bufasbuh1hhj0ubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0ubjH)}(hjKh]h*}(hj~hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj0ubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(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)}(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&]uh1jhj{hhhjhMubeh}(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)}(hjh]hstruct drm_device *dev}(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)}(hdrm_device to check againsth]hdrm_device to check against}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h5``struct dma_buf *dma_buf`` dma-buf object to import h](j)}(h``struct dma_buf *dma_buf``h]j)}(hjAh]hstruct dma_buf *dma_buf}(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)}(hdma-buf object to importh]hdma-buf object to import}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hj|h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(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&]uh1jhjubah}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubjH)}(hjKh]h*}(hj!hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhMubj{)}(hdrm_gem_prime_import_devh]j)}(hjh]hdrm_gem_prime_import_dev}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(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}(hjMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjIubjj)}(h h]h }(hjZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmmodnameN classnameNj+j.)}j1]jc.drm_gem_prime_import_devasbuh1hhjIubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjIubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjIubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubj)}(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]jc.drm_gem_prime_import_devasbuh1hhjubjj)}(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&]noemphjjuh1jhjEubj)}(hstruct device *attach_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)}(hdeviceh]hdevice}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjMmodnameN classnameNj+j.)}j1]jc.drm_gem_prime_import_devasbuh1hhj)ubjj)}(h h]h }(hjihhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj)ubjH)}(hjKh]h*}(hjwhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj)ubj)}(h attach_devh]h attach_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubeh}(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)}(hjh]hstruct drm_device *dev}(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_device to import intoh]hdrm_device to import into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhj"ubj)}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubj)}(h>``struct device *attach_dev`` struct device to dma_buf attach h](j)}(h``struct device *attach_dev``h]j)}(hjah]hstruct device *attach_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)}(hstruct device to dma_buf attachh]hstruct device to dma_buf attach}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjubeh}(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 }(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&]uh1hhj.hMhjubeh}(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}(hjYhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjUhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUhhhjfhMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjzmodnameN classnameNj+j.)}j1]j4)}j'drm_gem_prime_importsbc.drm_gem_prime_importasbuh1hhjUhhhjfhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUhhhjfhMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjUhhhjfhMubj{)}(hdrm_gem_prime_importh]j)}(hjh]hdrm_gem_prime_import}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUhhhjfhMubj)}(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]jc.drm_gem_prime_importasbuh1hhjubjj)}(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 dma_buf *dma_bufh](jX)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj?ubjj)}(h h]h }(hjPhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?ubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjcmodnameN 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&]jjuh1jhjUhhhjfhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjQhhhjfhMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jKhjfhMhjNhhubj)}(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&]uh1jhjNhhhjfhMubeh}(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)}(hjh]hstruct drm_device *dev}(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_device to import intoh]hdrm_device to import into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhj8ubj)}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubeh}(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)}(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}(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 }(hj"hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj!hMubj{)}(hdrm_prime_sg_to_page_arrayh]j)}(hdrm_prime_sg_to_page_arrayh]hdrm_prime_sg_to_page_array}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj!hMubj)}(h<(struct sg_table *sgt, struct page **pages, int max_entries)h](j)}(hstruct sg_table *sgth](jX)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjLubjj)}(h h]h }(hj]hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjLubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjpmodnameN classnameNj+j.)}j1]j4)}j'j6sbc.drm_prime_sg_to_page_arrayasbuh1hhjLubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjLubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjLubj)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(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*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hpagesh]hpages}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hint max_entriesh](j)}(hinth]hint}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjj)}(h h]h }(hjMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;ubj)}(h max_entriesh]h max_entries}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(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%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&]uh1jhjhhhj!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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``int max_entries`` size of the passed-in array h](j)}(h``int max_entries``h]j)}(hj8h]hint max_entries}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMhj2ubj)}(hhh]h)}(hsize of the passed-in arrayh]hsize of the passed-in array}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubeh}(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&]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}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj$modnameN classnameNj+j.)}j1]j4)}j'jsb c.drm_prime_sg_to_dma_addr_arrayasbuh1hhjubjj)}(h h]h }(hjBhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjPhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hsgth]hsgt}(hj]hhhNhNubah}(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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj{modnameN classnameNj+j.)}j1]j> c.drm_prime_sg_to_dma_addr_arrayasbuh1hhjrubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjrubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjrubj)}(haddrsh]haddrs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM0hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jFhhhjhNhNubj)}(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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM4hj-ubj)}(hhh](j)}(h9``struct sg_table *sgt`` scatter-gather table to convert h](j)}(h``struct sg_table *sgt``h]j)}(hjRh]hstruct sg_table *sgt}(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.chM1hjLubj)}(hhh]h)}(hscatter-gather table to converth]hscatter-gather table to convert}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM1hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM1hjIubj)}(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&]uh1jhjhM2hjIubj)}(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&]uh1jhjhM3hjIubeh}(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.chM5hj-ubh)}(h/Exports an sg table into an array of addresses.h]h/Exports an sg table into an array of addresses.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chM4hj-ubh)}(hlDrivers should use this in their :c:type:`drm_driver.gem_prime_import_sg_table ` implementation.h](h!Drivers should use this in 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}(hj0hhhNhNubah}(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:459: ./drivers/gpu/drm/drm_prime.chM6hj$ubh implementation.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKhM6hj-ubeh}(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}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhW/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&]uh1jihjrhhhjhMJubj{)}(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&]jjuh1jzhjrhhhjhMJubj)}(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}(hj%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj!ubjj)}(h h]h }(hj2hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!ubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjEmodnameN classnameNj+j.)}j1]jc.drm_prime_gem_destroyasbuh1hhj!ubjj)}(h h]h }(hjahhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj!ubjH)}(hjKh]h*}(hjohhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj!ubj)}(hsgh]hsg}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhMJubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjnhhhjhMJubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jKhjhMJhjkhhubj)}(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&]uh1jhjkhhhjhMJubeh}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:459: ./drivers/gpu/drm/drm_prime.chMLhjubj)}(hhh]h)}(h,the sg-table which was pinned at import timeh]h,the sg-table which was pinned at import time}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMLhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMLhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj[h]h Description}(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.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.}(hjqhhhNhNubah}(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&]uh1hhjhhhhhMubeh}(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&]uh1hhjhMhjhhubh)}(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}(hjJhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjFhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKubjj)}(h h]h }(hjXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjFhhhjWhKubj{)}(hdrm_mm_insert_modeh]j)}(hjDh]hdrm_mm_insert_mode}(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)}(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)}(hjh]hDRM_MM_INSERT_LOW}(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.hhKLhjubj)}(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.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKIhj+ubh)}(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&]uh1hhj*hKLhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKLhjubj)}(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)}(hj]h]hDRM_MM_INSERT_HIGH}(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.hhKThjWubj)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKOhjsubh)}(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&]uh1hhjhKRhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKThjubj)}(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.}(hjhhhNhNubah}(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)}(hj%h]hDRM_MM_INSERT_ONCE}(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.hhKbhjubj)}(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_hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hKbhjubj)}(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}(hjahhhNhNubah}(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.hhKihjYubj)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKehjuubh)}(hDoes not search all holes.h]hDoes not search all holes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKihjuubeh}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthKihjubj)}(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 }(hjhhhNhNubh)}(h :c:type:`struct drm_mm `h]j)}(hjh]h struct drm_mm}(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.hhK=hjubhXQ 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 }(hjhhhNhNubh)}(h:c:type:`drm_mm_node`h]j)}(hj=h]h drm_mm_node}(hj?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_mm_nodeuh1hhj6hK=hjubh from within the hole, the }(hjhhhNhNubh)}(h:c:type:`drm_mm_insert_mode`h]j)}(hj`h]hdrm_mm_insert_mode}(hjbhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_mm_insert_modeuh1hhj6hK=hjubhM also dictate whether to allocate the lowest matching address or the highest.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj6hK=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}(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)}(hMstruct drm_mm_node { unsigned long color; u64 start; u64 size; };h]hMstruct drm_mm_node { unsigned long color; u64 start; u64 size; };}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)}(hj0h]hMembers}(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.hhKhjubj)}(hhh](j)}(h%``color`` Opaque driver-private tag. h](j)}(h ``color``h]j)}(hjOh]hcolor}(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.hhKhjIubj)}(hhh]h)}(hOpaque driver-private tag.h]hOpaque driver-private tag.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhKhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjFubj)}(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&]uh1jhjhKhjFubj)}(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&]uh1jhjhKhjFubeh}(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.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 }(hjhhhNhNubh)}(h:c:type:`drm_mm`h]j)}(hj$h]hdrm_mm}(hj&hhhNhNubah}(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.hhKhjubhX 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhKhj 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}(hjehhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjahhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjahhhjrhKubj{)}(hdrm_mmh]j)}(hj_h]hdrm_mm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhhjrhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj]hhhjrhKubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jKhjrhKhjZhhubj)}(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&]uh1jhjZhhhjrhKubeh}(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)}(hjh]h color_adjust}(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)}(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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(h**Description**h]j)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(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 }(hjmhhhNhNubj)}(h**color_adjust**h]h color_adjust}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh 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.}(hjmhhhNhNubeh}(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.hhKhjubjh)}(hstruct drm_mm_scan { };h]hstruct drm_mm_scan { };}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)}(hj7h]hMembers}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(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 hhhNhNubh)}(h**Description**h]j)}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(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.}(hjlhhhNhNubah}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_mm_node_allocatedasbuh1hhjubjj)}(h h]h }(hj)hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj7hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnodeh]hnode}(hjDhhhNhNubah}(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}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhKhjkhhubah}(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}(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.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.}(hjhhhNhNubah}(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&]uh1jhjubah}(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 }(hj6hhhNhNubj)}(h**node**h]hnode}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is allocated.}(hj6hhhNhNubeh}(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}(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_initializedh]j)}(hdrm_mm_initializedh]hdrm_mm_initialized}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjshhhjhMubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_mm_initializedasbuh1hhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hmmh]hmm}(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 an allocator is initializedh]h*checks whether an allocator is initialized}(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)}(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)}(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.hhM hjmubj)}(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&]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.hhM hjmubh)}(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 hjmubh)}(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 hjmubh)}(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.hhMhjmubh)}(h"True if the **mm** is initialized.h](h True if the }(hjhhhNhNubj)}(h**mm**h]hmm}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is initialized.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjmubeh}(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}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMubjj)}(h h]h }(hjhhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVhhhjghMubj{)}(hdrm_mm_hole_followsh]j)}(hdrm_mm_hole_followsh]hdrm_mm_hole_follows}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhjghMubj)}(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'j|sbc.drm_mm_hole_followsasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(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&]jjuh1jhjVhhhjghMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjRhhhjghMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jKhjghMhjOhhubj)}(hhh]h)}(h'checks whether a hole follows this nodeh]h'checks whether a hole follows this node}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj1hhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1jFhhhj 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)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjPubj)}(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)}(hjuh]hconst struct drm_mm_node *node}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjoubj)}(hhh]h)}(hdrm_mm_node to checkh]hdrm_mm_node to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubah}(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)}(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.hhMhjPubh)}(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!hjPubh)}(h$True if a hole follows the **node**.h](hTrue if a hole follows the }(hjhhhNhNubj)}(h**node**h]hnode}(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.hhM"hjPubeh}(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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj3modnameN classnameNj+j.)}j1]j4)}j'drm_mm_hole_node_startsbc.drm_mm_hole_node_startasbuh1hhj*hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM0ubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*hhhjRhM0ubj{)}(hdrm_mm_hole_node_starth]j)}(hjOh]hdrm_mm_hole_node_start}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj*hhhjRhM0ubj)}(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]jMc.drm_mm_hole_node_startasbuh1hhj|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&]noemphjjuh1jhjxubah}(h]h ]h"]h$]h&]jjuh1jhj*hhhjRhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj&hhhjRhM0ubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1jKhjRhM0hj#hhubj)}(hhh]h)}(h1computes the start of the hole following **node**h](h)computes the start 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.hhM0hjhhubah}(h]h ]h"]h$]h&]uh1jhj#hhhjRhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1jFhhhj 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)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM4hjFubj)}(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)}(hjkh]h#const struct drm_mm_node *hole_node}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM1hjeubj)}(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&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjbubah}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM3hjFubh)}(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.hhM2hjFubh)}(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.hhM6hjFubh)}(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.hhM7hjFubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'drm_mm_hole_node_endsbc.drm_mm_hole_node_endasbuh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMFubjj)}(h h]h }(hj7hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj6hMFubj{)}(hdrm_mm_hole_node_endh]j)}(hj3h]hdrm_mm_hole_node_end}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj6hMFubj)}(h%(const struct drm_mm_node *hole_node)h]j)}(h#const struct drm_mm_node *hole_nodeh](jX)}(hj h]hconst}(hjdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj`ubjj)}(h h]h }(hjqhhhNhNubah}(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]j1c.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&]noemphjjuh1jhj\ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj6hMFubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj6hMFubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj6hMFhjhhubj)}(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}(hjhhhNhNubah}(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&]uh1jhjhhhj6hMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jFhhhj 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)}(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.hhMJhj*ubj)}(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)}(hjOh]h#const struct drm_mm_node *hole_node}(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.hhMGhjIubj)}(hhh]h)}(h6drm_mm_node which implicitly tracks the following holeh]h6drm_mm_node which implicitly tracks the following hole}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMGhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMGhjFubah}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMIhj*ubh)}(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.hhMHhj*ubh)}(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.hhMLhj*ubh)}(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.hhMMhj*ubeh}(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)}(hjh]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&]jjjuh1jQjjhjhhhj hMVubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj hMVhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hMVubeh}(h]h ](jmacroeh"]h$]h&]jjjj&jj&jjjuh1jFhhhj hNhNubh)}(h``drm_mm_nodes (mm)``h]j)}(hj,h]hdrm_mm_nodes (mm)}(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.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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMVhjBubah}(h]h ]h"]h$]h&]uh1jhjThMVhj 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)}(hjah]h Parameters}(hjchhhNhNubah}(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.hhMZhj[ubj)}(hhh]j)}(h'``mm`` the struct drm_mm range manager 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.hhMWhjzubj)}(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&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjwubah}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMYhj[ubh)}(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.hhMXhj[ubh)}(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]hj[ubh)}(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^hj[ubeh}(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}(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.hhMdubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj>hMdubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj>hMdhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj>hMdubeh}(h]h ](jmacroeh"]h$]h&]jjjjWjjWjjjuh1jFhhhj hNhNubh)}(h$``drm_mm_for_each_node (entry, mm)``h]j)}(hj]h]h drm_mm_for_each_node (entry, mm)}(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.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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMdhjsubah}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMfhjubj)}(hhh]h)}(h":c:type:`drm_mm` allocator to walkh](h)}(h:c:type:`drm_mm`h]j)}(hj(h]hdrm_mm}(hj*hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_mmuh1hhjhMfhj"ubh allocator to walk}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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.}(hjyhhhNhNubah}(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&]uh1jhjhMohj 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)}(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.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)}(hj2h]hentry}(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.hhMphj,ubj)}(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)}(hjQh]hstruct drm_mm_node}(hjShhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_mm_nodeuh1hhjGhMphjKubh$ to assign to in each iteration step}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhMphjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMphj)ubj)}(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&]uh1jhjhMqhj)ubj)}(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}(hjhhhNhNubah}(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&]uh1jhjhMrhj)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.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.}(hjRhhhNhNubah}(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)}(hj{h]hdrm_mm_for_each_hole}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhM{ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjyhhhjhM{ubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jKhjhM{hjvhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjvhhhjhM{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)}(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@``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|hjubj)}(hhh]h)}(h7:c:type:`drm_mm_node` used internally to track progressh](h)}(h:c:type:`drm_mm_node`h]j)}(hj*h]h drm_mm_node}(hj,hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_mm_nodeuh1hhj hM|hj$ubh" used internally to track progress}(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*``mm`` :c:type:`drm_mm` allocator to walk h](j)}(h``mm``h]j)}(hjch]hmm}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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)}(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_mmuh1hhjxhM}hj|ubh allocator to walk}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxhM}hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM}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)}(hj<h]hunsigned long color}(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.hhMhj6ubj)}(hhh]h)}(h%opaque tag value to use for this nodeh]h%opaque tag value to use for this node}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjOubj)}(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)}(hjuh]henum drm_mm_insert_mode mode}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjoubj)}(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&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubh)}(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.hhMhj3ubh)}(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.hhMhj3ubh)}(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.hhMhj3ubh)}(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.hhMhj3ubh)}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj3ubeh}(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}(hj+ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj' hhhP/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&]uh1jihj' hhhj9 hMubj{)}(hdrm_mm_insert_nodeh]j)}(hdrm_mm_insert_nodeh]hdrm_mm_insert_node}(hjL hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj' hhhj9 hMubj)}(h7(struct drm_mm *mm, struct drm_mm_node *node, u64 size)h](j)}(hstruct drm_mm *mmh](jX)}(hjh]hstruct}(hjh hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjd ubjj)}(h h]h }(hju hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjd 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'jN sbc.drm_mm_insert_nodeasbuh1hhjd ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjd ubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjd ubj)}(hmmh]hmm}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd 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 }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj$ hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hnodeh]hnode}(hj1 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj` ubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjM hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjO modnameN classnameNj+j.)}j1]j c.drm_mm_insert_nodeasbuh1hhjF ubjj)}(h h]h }(hjk hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjF ubj)}(hsizeh]hsize}(hjy hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj` ubeh}(h]h ]h"]h$]h&]jjuh1jhj' hhhj9 hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj# hhhj9 hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj9 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 hhhj9 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)}(hj+ h]hstruct drm_mm_node *node}(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)}(hpreallocate node to inserth]hpreallocate node to insert}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@ hMhjA ubah}(h]h ]h"]h$]h&]uh1jhj% ubeh}(h]h ]h"]h$]h&]uh1jhj@ hMhj ubj)}(h$``u64 size`` size of the allocation h](j)}(h ``u64 size``h]j)}(hjd h]hu64 size}(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)}(hsize of the allocationh]hsize of the allocation}(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&]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}(hj, hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj( hhhP/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&]uh1jihj( hhhj9 hMubj{)}(h drm_mm_cleanh]j)}(h drm_mm_cleanh]h drm_mm_clean}(hjL hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj( hhhj9 hMubj)}(h(const struct drm_mm *mm)h]j)}(hconst struct drm_mm *mmh](jX)}(hj h]hconst}(hjh hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjd ubjj)}(h h]h }(hju hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjd ubjX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjd ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjd 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'jN sbc.drm_mm_cleanasbuh1hhjd ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjd ubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjd ubj)}(hmmh]hmm}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj` ubah}(h]h ]h"]h$]h&]jjuh1jhj( hhhj9 hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj$ hhhj9 hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jKhj9 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! hhhj9 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)}(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)}(h6``const struct drm_mm *mm`` drm_mm allocator to check h](j)}(h``const struct drm_mm *mm``h]j)}(hjG h]hconst struct drm_mm *mm}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjA ubj)}(hhh]h)}(hdrm_mm allocator to checkh]hdrm_mm allocator to check}(hj` hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\ hMhj] ubah}(h]h ]h"]h$]h&]uh1jhjA ubeh}(h]h ]h"]h$]h&]uh1jhj\ 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&]jjjj jj jjjuh1jFhhhj hNhNubh)}(h@``drm_mm_for_each_node_in_range (node__, mm__, start__, end__)``h]j)}(hj h]h`, and may even continue indefinitely.h](h)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj,ubj)}(hhh](j)}(hE``node__`` drm_mm_node structure to assign to in each iteration step h](j)}(h ``node__``h]j)}(hjQh]hnode__}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjKubj)}(hhh]h)}(h9drm_mm_node structure to assign to in each iteration steph]h9drm_mm_node structure to assign to in each iteration step}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjHubj)}(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&]uh1jhjhMhjHubj)}(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&]uh1jhjhMhjHubj)}(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)}(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)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhj,ubh)}(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 }(hjMhhhNhNubj)}(h **start**h]hstart}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh and }(hjMhhhNhNubj)}(h**end**h]hend}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh. 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 }(hjMhhhNhNubj)}(h**end**h]hend}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh@ is within (or is the upper limit of) the drm_mm allocator. If [}(hjMhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh, }(hjMhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh[] are beyond the range of the drm_mm, the iterator may walk over the special _unallocated_ }(hjMhhhNhNubh)}(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.hhMhjMubh%, and may even continue indefinitely.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj,ubeh}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(hdrm_mm_scan_inith]j)}(hdrm_mm_scan_inith]hdrm_mm_scan_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(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}(hj6hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj2ubjj)}(h h]h }(hjChhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj2ubh)}(hhh]j)}(h drm_mm_scanh]h drm_mm_scan}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjVmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_mm_scan_initasbuh1hhj2ubjj)}(h h]h }(hjthhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj2ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj2ubj)}(hscanh]hscan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(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]jpc.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&]noemphjjuh1jhj.ubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jpc.drm_mm_scan_initasbuh1hhjubjj)}(h h]h }(hj9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hsizeh]hsize}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(h u64 alignmenth](h)}(hhh]j)}(hu64h]hu64}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjemodnameN classnameNj+j.)}j1]jpc.drm_mm_scan_initasbuh1hhj\ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj\ubj)}(h alignmenth]h alignment}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(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&]noemphjjuh1jhj.ubj)}(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]jpc.drm_mm_scan_initasbuh1hhjubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hmodeh]hmode}(hjChhhNhNubah}(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 lru scanningh]hinitialize lru scanning}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:480: ./include/drm/drm_mm.hhMhjubj)}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(h.``u64 alignment`` alignment of the allocation h](j)}(h``u64 alignment``h]j)}(hjYh]h u64 alignment}(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)}(halignment of the allocationh]halignment of the allocation}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubj)}(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)}(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)}(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.}(hjhhhNhNubah}(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.}(hj+hhhNhNubah}(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.}(hj:hhhNhNubah}(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}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjehhhjwhMubj{)}(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&]jjuh1jzhjehhhjwhMubj)}(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}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj8modnameN classnameNj+j.)}j1]jc.drm_mm_reserve_nodeasbuh1hhjubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjbhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnodeh]hnode}(hjohhhNhNubah}(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)}(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^hhhjwhMubeh}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``struct drm_mm_node *node`` drm_mm_node to insert 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.chMhjubj)}(hhh]h)}(hdrm_mm_node to inserth]hdrm_mm_node to insert}(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&]uh1jhjubh)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(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 }(hjvhhhNhNubh)}(h:c:type:`drm_mm_node`h]j)}(hjh]h drm_mm_node}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj~ubah}(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.chMhjvubhX+ 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.}(hjvhhhNhNubeh}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubj{)}(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&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(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&]uh1jWhj:ubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj^modnameN classnameNj+j.)}j1]j4)}j'j$sbc.drm_mm_insert_node_in_rangeasbuh1hhj:ubjj)}(h h]h }(hj|hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj:ubjX)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj:ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:ubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(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]jxc.drm_mm_insert_node_in_rangeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjX)}(hj h]hconst}(hj"hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj/hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hnodeh]hnode}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj[modnameN classnameNj+j.)}j1]jxc.drm_mm_insert_node_in_rangeasbuh1hhjRubjj)}(h h]h }(hjwhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjRubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(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]jxc.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&]noemphjjuh1jhj6ubj)}(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&]noemphjjuh1jhj6ubj)}(hu64 range_starth](h)}(hhh]j)}(hu64h]hu64}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj<modnameN classnameNj+j.)}j1]jxc.drm_mm_insert_node_in_rangeasbuh1hhj3ubjj)}(h h]h }(hjXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj3ubj)}(h range_starth]h range_start}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(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]jxc.drm_mm_insert_node_in_rangeasbuh1hhj{ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj{ubj)}(h range_endh]h range_end}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(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]jxc.drm_mm_insert_node_in_rangeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(h+ranged search for space and insert **node**h](h#ranged search for space and insert }(hj;hhhNhNubj)}(h**node**h]hnode}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1jFhhhj 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)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjeubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``u64 alignment`` alignment of the allocation h](j)}(h``u64 alignment``h]j)}(hj5h]h u64 alignment}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(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)}(halignment of the allocationh]halignment of the allocation}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjubj)}(h>``unsigned long color`` opaque tag value to use for this node h](j)}(h``unsigned long color``h]j)}(hjnh]hunsigned long color}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjhubj)}(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&]uh1jhjhubeh}(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)}(hjh]henum drm_mm_insert_mode mode}(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-fine-tune the allocation search and placementh]h-fine-tune the allocation search and placement}(hj2hhhNhNubah}(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&]uh1jhjeubh)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjeubh)}(h/The preallocated **node** must be cleared to 0.h](hThe preallocated }(hjjhhhNhNubj)}(h**node**h]hnode}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh must be cleared to 0.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjeubh)}(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.chMhjeubh)}(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.chMhjeubeh}(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&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMmubj)}(h(struct drm_mm_node *node)h]j)}(hstruct drm_mm_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)}(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_remove_nodeasbuh1hhj ubjj)}(h h]h }(hjMhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hj[hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hnodeh]hnode}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(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}(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&]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.}(hj$hhhNhNubah}(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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMubjj)}(h h]h }(hjbhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOhhhjahMubj{)}(hdrm_mm_scan_init_with_rangeh]j)}(hdrm_mm_scan_init_with_rangeh]hdrm_mm_scan_init_with_range}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhhjahMubj)}(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'jvsbc.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 }(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]jc.drm_mm_scan_init_with_rangeasbuh1hhjubjj)}(h h]h }(hj>hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjLhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hmmh]hmm}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjwmodnameN classnameNj+j.)}j1]jc.drm_mm_scan_init_with_rangeasbuh1hhjnubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjnubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(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}(hjhhhNhNubah}(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&]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 }(hj, hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hcolorh]hcolor}(hj: hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hjV hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjX modnameN classnameNj+j.)}j1]jc.drm_mm_scan_init_with_rangeasbuh1hhjO ubjj)}(h h]h }(hjt hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjO ubj)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO 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!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubj)}(hmodeh]hmode}(hj-!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjKhhhjahMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jKhjahMhjHhhubj)}(hhh]h)}(h(initialize range-restricted lru scanningh]h(initialize range-restricted lru scanning}(hjW!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjT!hhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjo!jjo!jjjuh1jFhhhj 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 ``u64 start`` start of the allowed range for the allocation ``u64 end`` end of the allowed range for the allocation ``enum drm_mm_insert_mode mode`` fine-tune the allocation search and placement **Description** 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)}(hjy!h]h Parameters}(hj{!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw!ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjs!ubj)}(hhh](j)}(h(``struct drm_mm_scan *scan`` scan state 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.chMhj!ubj)}(hhh]h)}(h scan stateh]h scan state}(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_mm *mm`` drm_mm to scan 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 to scanh]hdrm_mm to scan}(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$``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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj"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!ubj)}(h.``u64 alignment`` alignment of the allocation h](j)}(h``u64 alignment``h]j)}(hjC"h]h u64 alignment}(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)}(halignment of the allocationh]halignment of the allocation}(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)}(hC``unsigned long color`` opaque tag value to use for the allocation h](j)}(h``unsigned long color``h]j)}(hj|"h]hunsigned long color}(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)}(h*opaque tag value to use for the allocationh]h*opaque tag value to use for the allocation}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjv"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhj!ubj)}(h<``u64 start`` start of the allowed range for the allocation h](j)}(h ``u64 start``h]j)}(hj"h]h u64 start}(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-start of the allowed range for the allocationh]h-start of the allowed range for 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!ubj)}(h8``u64 end`` end of the allowed range for the allocation h](j)}(h ``u64 end``h]j)}(hj"h]hu64 end}(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 allowed range for the allocationh]h+end of the allowed range for 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!ubj)}(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)}(hj'#h]henum drm_mm_insert_mode mode}(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-fine-tune the allocation search and placementh]h-fine-tune the allocation search and placement}(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&]uh1jhjs!ubh)}(h**Description**h]j)}(hjb#h]h Description}(hjd#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.chMhjs!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.}(hjx#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjs!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.chMhjs!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 }(hj0$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#ubjH)}(hjKh]h*}(hj>$hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj#ubj)}(hscanh]hscan}(hjK$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hstruct drm_mm_node *nodeh](jX)}(hjh]hstruct}(hjd$hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj`$ubjj)}(h h]h }(hjq$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_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)}(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.chMhj %ubj)}(hhh]h)}(hthe active drm_mm scannerh]hthe active drm_mm scanner}(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)}(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}(hja%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.chMhjY%ubj)}(hhh]h)}(hdrm_mm_node to addh]hdrm_mm_node to add}(hjx%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt%hMhju%ubah}(h]h ]h"]h$]h&]uh1jhjY%ubeh}(h]h ]h"]h$]h&]uh1jhjt%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 }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&hhhj&hM3ubj{)}(hdrm_mm_scan_remove_blockh]j)}(hdrm_mm_scan_remove_blockh]hdrm_mm_scan_remove_block}(hj&&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&hhhj&hM3ubj)}(h4(struct drm_mm_scan *scan, struct drm_mm_node *node)h](j)}(hstruct drm_mm_scan *scanh](jX)}(hjh]hstruct}(hjB&hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj>&ubjj)}(h h]h }(hjO&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' reftargetjb&modnameN classnameNj+j.)}j1]j4)}j'j(&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&]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_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&]noemphjjuh1jhj:&ubeh}(h]h ]h"]h$]h&]jjuh1jhj&hhhj&hM3ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj%hhhj&hM3ubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1jKhj&hM3hj%hhubj)}(hhh]h)}(h remove a node from the scan listh]h remove a node from the scan list}(hj5'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM3hj2'hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj&hM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjM'jjM'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)}(hjW'h]h Parameters}(hjY'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU'ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM7hjQ'ubj)}(hhh](j)}(h7``struct drm_mm_scan *scan`` the active drm_mm scanner h](j)}(h``struct drm_mm_scan *scan``h]j)}(hjv'h]hstruct drm_mm_scan *scan}(hjx'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt'ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM4hjp'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&]uh1jhjp'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM4hjm'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'hM5hjm'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&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chM7hjQ'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.chM6hjQ'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;hjQ'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.chM@hjQ'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.}(hjH(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMAhjQ'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}(hjw(hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjs(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&]uh1jihjs(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_evictasbuh1hhjs(hhhj(hMdubjj)}(h h]h }(hj(hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjs(hhhj(hMdubjH)}(hjKh]h*}(hj(hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjs(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&]jjuh1jzhjs(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 }(hj-)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(ubah}(h]h ]h"]h$]h&]jjuh1jhjs(hhhj(hMdubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjo(hhhj(hMdubah}(h]jj(ah ](jjeh"]h$]h&]jj)jhuh1jKhj(hMdhjl(hhubj)}(hhh]h)}(h.evict overlapping nodes on either side of holeh]h.evict overlapping nodes on either side of hole}(hjr)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMdhjo)hhubah}(h]h ]h"]h$]h&]uh1jhjl(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)}(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.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.}(hj+*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}(hjZ*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV*hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMubjj)}(h h]h }(hji*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjV*hhhjh*hMubj{)}(h drm_mm_inith]j)}(h drm_mm_inith]h drm_mm_init}(hj{*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjV*hhhjh*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 }(hj*+hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj+ubj)}(hstarth]hstart}(hj8+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjT+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ+ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjV+modnameN classnameNj+j.)}j1]j* c.drm_mm_initasbuh1hhjM+ubjj)}(h h]h }(hjr+hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjM+ubj)}(hsizeh]hsize}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubeh}(h]h ]h"]h$]h&]jjuh1jhjV*hhhjh*hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjR*hhhjh*hMubah}(h]jM*ah ](jjeh"]h$]h&]jj)jhuh1jKhjh*hMhjO*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&]uh1jhjO*hhhjh*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)}(hj$,h]h u64 start}(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$start of the range managed by **mm**h](hstart of the range managed by }(hj=,hhhNhNubj)}(h**mm**h]hmm}(hjE,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=,ubeh}(h]h ]h"]h$]h&]uh1hhj9,hMhj:,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj9,hMhj+ubj)}(h0``u64 size`` end of the range managed by **mm** h](j)}(h ``u64 size``h]j)}(hjk,h]hu64 size}(hjm,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji,ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhje,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&]uh1jhje,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 }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-hhhj-hMubj{)}(hdrm_mm_takedownh]j)}(hdrm_mm_takedownh]hdrm_mm_takedown}(hj,-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhhj-hMubj)}(h(struct drm_mm *mm)h]j)}(hstruct drm_mm *mmh](jX)}(hjh]hstruct}(hjH-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjD-ubjj)}(h h]h }(hjU-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjD-ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hjf-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc-ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjh-modnameN classnameNj+j.)}j1]j4)}j'j.-sbc.drm_mm_takedownasbuh1hhjD-ubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjD-ubjH)}(hjKh]h*}(hj-hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjD-ubj)}(hmmh]hmm}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD-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)}(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-hhhj-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}(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)}(hjG.h]h Description}(hjI.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE.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.}(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](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*}(hj0/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_printer *ph](jX)}(hjh]hstruct}(hjV/hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjR/ubjj)}(h h]h }(hjc/hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjR/ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjt/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq/ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjv/modnameN classnameNj+j.)}j1]j/c.drm_mm_printasbuh1hhjR/ubjj)}(h h]h }(hj/hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjR/ubjH)}(hjKh]h*}(hj/hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjR/ubj)}(hjTh]hp}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR/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/jj/jjjuh1jFhhhj 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)}(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)}(h6``const struct drm_mm *mm`` drm_mm allocator to print h](j)}(h``const struct drm_mm *mm``h]j)}(hj0h]hconst struct drm_mm *mm}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhj0ubj)}(hhh]h)}(hdrm_mm allocator to printh]hdrm_mm allocator to print}(hj00hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,0hMhj-0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj,0hMhj0ubj)}(h,``struct drm_printer *p`` DRM printer to useh](j)}(h``struct drm_printer *p``h]j)}(hjP0h]hstruct drm_printer *p}(hjR0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN0ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjJ0ubj)}(hhh]h)}(hDRM printer to useh]hDRM printer to use}(hji0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_mm.chMhjf0ubah}(h]h ]h"]h$]h&]uh1jhjJ0ubeh}(h]h ]h"]h$]h&]uh1jhje0hMhj0ubeh}(h]h ]h"]h$]h&]uh1jhj/ubeh}(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)}(hj0h]hdrm_gem_object}(hj0hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj0hK$hj0ubh buffers.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0hK$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)}(hj)1h]hdrm_gem_object}(hj+1hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj'1ubah}(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)}(hjM1h]h drm_gpuva}(hjO1hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjK1ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjF1hK)hj#1ubh> objects representing all existing GPU VA mappings using this }(hj#1hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjp1h]hdrm_gem_object}(hjr1hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjn1ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjF1hK)hj#1ubh as backing buffer.}(hj#1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjF1hK)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}(hj1hhhNhNubah}(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)}(hj2h]h drm_gpuva}(hj2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj1hK2hj1ubh 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&]uh1hhj1hK2hj0hhubh)}(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 }(hj-2hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj72h]h drm_gpuva}(hj92hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj52ubah}(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.chK7hj-2ubh entries.}(hj-2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjT2hK7hj0hhubh)}(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)}(hji2h]h drm_gpuvas}(hjk2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjg2ubah}(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.chKhMhj/=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 }(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_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:508: ./drivers/gpu/drm/drm_gpuvm.chMhj>ubh the }(hj>hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjJ>h]h drm_gpuvm_bo}(hjL>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjH>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjC>hMhj>ubh is attached / removed from the }(hj>hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjm>h]hdrm_gem_objects}(hjo>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjk>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectsuh1hhjC>hMhj>ubhD gpuva list. Subsequent calls to drm_gpuvm_bo_obtain() for the same }(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_gpuvmuh1hhjC>hMhj>ubh and }(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_objectuh1hhjC>hMhj>ubh@ must be able to observe previous creations and destructions of }(hj>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_bosuh1hhjC>hMhj>ubh# in order to keep instances unique.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjC>hMhj/=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&]uh1hhj$?hMhj/=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().}(hj/?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:508: ./drivers/gpu/drm/drm_gpuvm.chMhj/=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)}(hjH?h]hDRM_GPUVM_RESV_PROTECTED}(hjJ?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjF?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)}(hjl?h]hdma_resv}(hjn?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjj?ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhje?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_PROTECTEDuh1hhje?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_resvuh1hhje?hMhj>?ubh1 locks and hence do not require internal locking.}(hj>?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhje?hMhj/=hhubeh}(h](lockingj&=eh ]h"](lockingdrm_gpuvm_lockingeh$]h&]uh1hhj0hhhhhMj}j?j=sj}j&=j=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&]uh1hhj@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.}(hj'@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:514: ./drivers/gpu/drm/drm_gpuvm.chMhj?hhubjP:)}(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 }(hj=@hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjG@h]h drm_gpuva_op}(hjI@hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjE@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=@ubh to create a new mapping:}(hj=@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjd@hMhj9@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; }}hjo@sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:514: ./drivers/gpu/drm/drm_gpuvm.chMhj9@ubeh}(h]h ]h"]h$]h&]uh1jzhj6@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&]uh1jzhj6@ubeh}(h]h ]h"]h$]h&]j=j=j=hj=j]uh1jO: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}(hjAhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjAhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKubjj)}(h h]h }(hjAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjAhhhjAhKubj{)}(hdrm_gpuva_flagsh]j)}(hjAh]hdrm_gpuva_flags}(hj'AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Aubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjAhhhjAhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj@hhhjAhKubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1jKhjAhKhj@hhubj)}(hhh]h)}(hflags for struct drm_gpuvah]hflags for struct drm_gpuva}(hjIAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhK+hjFAhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjAhKubeh}(h]h ](jenumeh"]h$]h&]jjjjaAjjaAjjjuh1jFhhhj@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)}(hjkAh]h Constants}(hjmAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiAubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhK/hjeAubj)}(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)}(hjAh]hDRM_GPUVA_SPARSE}(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.hhK5hjAubj)}(hhh]h)}(hAFlag indicating that the :c:type:`drm_gpuva` is a sparse mapping.h](hFlag indicating that the }(hjAhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj Bh]h drm_gpuva}(hj BhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjAhK5hjAubh is a sparse mapping.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhK5hjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhK5hjAubj)}(h(``DRM_GPUVA_USERBITS`` user defined bitsh](j)}(h``DRM_GPUVA_USERBITS``h]j)}(hjBBh]hDRM_GPUVA_USERBITS}(hjDBhhhNhNubah}(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.hhK7hj``vm`` the :c:type:`drm_gpuvm` this object is associated with h](j)}(h``vm``h]j)}(hjKCh]hvm}(hjMChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjICubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKMhjECubj)}(hhh]h)}(h6the :c:type:`drm_gpuvm` this object is associated withh](hthe }(hjdChhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjnCh]h drm_gpuvm}(hjpChhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjlCubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj`ChKMhjdCubh this object is associated with}(hjdChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`ChKMhjaCubah}(h]h ]h"]h$]h&]uh1jhjECubeh}(h]h ]h"]h$]h&]uh1jhj`ChKMhjBCubj)}(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)}(hjCh]hdrm_gem_object}(hjChhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjChKRhjCubeh}(h]h ]h"]h$]h&]uh1hhjChKRhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChKShjBCubj)}(h9``flags`` the :c:type:`drm_gpuva_flags` for this mapping h](j)}(h ``flags``h]j)}(hj#Dh]hflags}(hj%DhhhNhNubah}(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.hhKXhjDubj)}(hhh]h)}(h.the :c:type:`drm_gpuva_flags` for this mappingh](hthe }(hj``gem.offset`` the offset within the :c:type:`drm_gem_object` h](j)}(h``gem.offset``h]j)}(hjlEh]h gem.offset}(hjnEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjEubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKphjfEubj)}(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&]uh1jhjfEubeh}(h]h ]h"]h$]h&]uh1jhjEhKphjBCubj)}(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)}(hjEh]hdrm_gem_object}(hjEhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjEubah}(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&]uh1jhjEhKuhjBCubj)}(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)}(hjFh]h gem.entry}(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.hhKzhjFubj)}(hhh]h)}(hIthe :c:type:`list_head` to attach this object to a :c:type:`drm_gpuvm_bo`h](hthe }(hj5FhhhNhNubh)}(h:c:type:`list_head`h]j)}(hj?Fh]h list_head}(hjAFhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj=Fubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja list_headuh1hhj1FhKzhj5Fubh to attach this object to a }(hj5FhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjbFh]h drm_gpuvm_bo}(hjdFhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj`Fubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhj1FhKzhj5Fubeh}(h]h ]h"]h$]h&]uh1hhj1FhKzhj2Fubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhj1FhKzhjBCubj)}(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&]uh1jhjFhKhjBCubj)}(h``rb.node`` the rb-tree node h](j)}(h ``rb.node``h]j)}(hjFh]hrb.node}(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)}(hthe rb-tree nodeh]hthe rb-tree node}(hj GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhKhj Gubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjBCubj)}(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)}(hj,Gh]hrb.entry}(hj.GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Gubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhj&Gubj)}(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 }(hjEGhhhNhNubh)}(h:c:type:`list_head`h]j)}(hjOGh]h list_head}(hjQGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjMGubah}(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.hhKhjEGubh to additionally connect }(hjEGhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjsGh]h drm_gpuvas}(hjuGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjqGubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhjlGhKhjEGubhV in the same order they appear in the interval tree. This is useful to keep iterating }(hjEGhhhNhNubh)}(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_gpuvasuh1hhjlGhKhjEGubh] from a start node found through the rb-tree while doing modifications on the rb-tree itself.}(hjEGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlGhKhjBGubah}(h]h ]h"]h$]h&]uh1jhj&Gubeh}(h]h ]h"]h$]h&]uh1jhjAGhKhjBCubj)}(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}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjBCubeh}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hjHh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(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 }(hj(HhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj2Hh]h drm_gpuvm}(hj4HhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj0Hubah}(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.hhKDhj(Hubh.}(hj(HhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOHhKDhj@hhubh)}(hBTypically, this structure is embedded in bigger driver structures.h]hBTypically, this structure is embedded in bigger driver structures.}(hjZHhhhNhNubah}(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&]uh1jhj~HhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKubjj)}(h h]h }(hjHhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~HhhhjHhKubj{)}(hdrm_gpuva_invalidateh]j)}(hdrm_gpuva_invalidateh]hdrm_gpuva_invalidate}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~HhhhjHhKubj)}(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 }(hjHhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHubjH)}(hjKh]h*}(hj IhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjHubj)}(hvah]hva}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hbool invalidateh](j)}(hj*h]hbool}(hj1IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Iubjj)}(h h]h }(hj>IhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-Iubj)}(h invalidateh]h invalidate}(hjLIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhj~HhhhjHhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjzHhhhjHhKubah}(h]juHah ](jjeh"]h$]h&]jj)jhuh1jKhjHhKhjwHhhubj)}(hhh]h)}(hGsets whether the backing GEM of this :c:type:`drm_gpuva` is invalidatedh](h%sets whether the backing GEM of this }(hjvIhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjIh]h drm_gpuva}(hjIhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj~Iubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jHc.drm_gpuva_invalidateasbja drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjvIubh is invalidated}(hjvIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjsIhhubah}(h]h ]h"]h$]h&]uh1jhjwHhhhjHhKubeh}(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 }(hjIhhhNhNubh)}(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_gpuvauh1hhjIhKhjIubh to set the invalidate flag for}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhKhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhKhjIubj)}(hL``bool invalidate`` indicates whether the :c:type:`drm_gpuva` is invalidatedh](j)}(h``bool invalidate``h]j)}(hjJhhhNhNubah}(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.hhKhj6Jubj)}(hhh]h)}(h8indicates whether the :c:type:`drm_gpuva` is invalidatedh](hindicates whether the }(hjUJhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj_Jh]h drm_gpuva}(hjaJhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj]Jubah}(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.hhKhjUJubh is invalidated}(hjUJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|JhKhjRJubah}(h]h ]h"]h$]h&]uh1jhj6Jubeh}(h]h ]h"]h$]h&]uh1jhjQJhKhjIubeh}(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}(hjJhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjJubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjKmodnameN classnameNj+j.)}j1]j4)}j'jJsbc.drm_gpuva_invalidatedasbuh1hhjJubjj)}(h h]h }(hj3KhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJubjH)}(hjKh]h*}(hjAKhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjJubj)}(hvah]hva}(hjNKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubah}(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 }(hjxKhhhNhNubh)}(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]j/Kc.drm_gpuva_invalidatedasbja drm_gpuvauh1hhjIhKhjxKubh is invalidated}(hjxKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjuKhhubah}(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}(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.hhKhjKubj)}(hhh]h)}(h the :c:type:`drm_gpuva` to checkh](hthe }(hjKhhhNhNubh)}(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_gpuvauh1hhjKhKhjKubh to check}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKhKhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhKhjKubah}(h]h ]h"]h$]h&]uh1jhjKubh)}(h **Return**h]j)}(hj?Lh]hReturn}(hjALhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Lubah}(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}(hjYLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjULubh if the GPU VA is invalidated, }(hjULhhhNhNubj)}(h ``false``h]hfalse}(hjkLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjULubh otherwise}(hjULhhhNhNubeh}(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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjLhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhKubeh}(h]h ](jenumeh"]h$]h&]jjjjLjjLjjjuh1jFhhhj@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)}(hjMh]h Constants}(hj MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(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)}(hj'Mh]hDRM_GPUVM_RESV_PROTECTED}(hj)MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Mubah}(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)}(hjJMh]hdma_resv}(hjLMhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjHMubah}(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&]uh1hhjgMhKhj=Mubah}(h]h ]h"]h$]h&]uh1jhj!Mubeh}(h]h ]h"]h$]h&]uh1jhj representing the address space cutout reserved for the kernel}(hj|QhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQhMhjyQubah}(h]h ]h"]h$]h&]uh1jhj]Qubeh}(h]h ]h"]h$]h&]uh1jhjxQhMhjNubj)}(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)}(hjRh]hr_obj}(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)}(hDResv GEM object; representing the GPUVM's common :c:type:`dma_resv`.h](h3Resv GEM object; representing the GPUVM’s common }(hj-RhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj7Rh]hdma_resv}(hj9RhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj5Rubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhj)RhM"hj-Rubh.}(hj-RhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj)RhM"hj*Rubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhj)RhM"hjNubj)}(h-``extobj`` structure holding the extobj list h](j)}(h ``extobj``h]j)}(hjpRh]hextobj}(hjrRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnRubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM'hjjRubj)}(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&]uh1jhjjRubeh}(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)}(hjRh]h drm_gpuvm_bos}(hjRhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bosuh1hhjRhM+hjRubh serving as external object}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjRhM+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)}(hj%Sh]hextobj.local_list}(hj'ShhhNhNubah}(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.hhM2hjSubj)}(hhh]h)}(hSpointer to the local list temporarily storing entries from the external object listh]hSpointer to the local list temporarily storing entries from the external object list}(hj>ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM1hj;Subah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhj:ShM2hjNubj)}(h4``extobj.lock`` spinlock to protect the extobj list h](j)}(h``extobj.lock``h]j)}(hj_Sh]h extobj.lock}(hjaShhhNhNubah}(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.hhM7hjYSubj)}(hhh]h)}(h#spinlock to protect the extobj listh]h#spinlock to protect the extobj list}(hjxShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtShM7hjuSubah}(h]h ]h"]h$]h&]uh1jhjYSubeh}(h]h ]h"]h$]h&]uh1jhjtShM7hjNubj)}(h?``evict`` structure holding the evict list and evict list lock h](j)}(h ``evict``h]j)}(hjSh]hevict}(hjShhhNhNubah}(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.hhM=hjSubj)}(hhh]h)}(h4structure holding the evict list and evict list lockh]h4structure holding the evict list and evict list lock}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM=hjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShM=hjNubj)}(h[``evict.list`` :c:type:`list_head` storing :c:type:`drm_gpuvm_bos` currently being evicted h](j)}(h``evict.list``h]j)}(hjSh]h evict.list}(hjShhhNhNubah}(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.hhMBhjSubj)}(hhh]h)}(hK:c:type:`list_head` storing :c:type:`drm_gpuvm_bos` currently being evictedh](h)}(h:c:type:`list_head`h]j)}(hjSh]h list_head}(hjShhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjSubah}(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.hhMAhjSubh storing }(hjShhhNhNubh)}(h:c:type:`drm_gpuvm_bos`h]j)}(hjTh]h drm_gpuvm_bos}(hjThhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bosuh1hhj ThMAhjSubh currently being evicted}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj ThMAhjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShMBhjNubj)}(hh``evict.local_list`` pointer to the local list temporarily storing entries from the evicted object list h](j)}(h``evict.local_list``h]j)}(hjMTh]hevict.local_list}(hjOThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKTubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMHhjGTubj)}(hhh]h)}(hRpointer to the local list temporarily storing entries from the evicted object listh]hRpointer to the local list temporarily storing entries from the evicted object list}(hjfThhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMGhjcTubah}(h]h ]h"]h$]h&]uh1jhjGTubeh}(h]h ]h"]h$]h&]uh1jhjbThMHhjNubj)}(h2``evict.lock`` spinlock to protect the evict list h](j)}(h``evict.lock``h]j)}(hjTh]h evict.lock}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMMhjTubj)}(hhh]h)}(h"spinlock to protect the evict listh]h"spinlock to protect the evict list}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMMhjNubj)}(h?``bo_defer`` structure holding vm_bos that need to be destroyedh](j)}(h ``bo_defer``h]j)}(hjTh]hbo_defer}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMRhjTubj)}(hhh]h)}(h2structure holding vm_bos that need to be destroyedh]h2structure holding vm_bos that need to be destroyed}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMShjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMRhjNubeh}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hjUh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMVhj@hhubh)}(hThe DRM GPU VA Manager keeps track of a GPU's virtual address space by using :c:type:`maple_tree` structures. Typically, this structure is embedded in bigger driver structures.h](hOThe DRM GPU VA Manager keeps track of a GPU’s virtual address space by using }(hjUhhhNhNubh)}(h:c:type:`maple_tree`h]j)}(hj#Uh]h maple_tree}(hj%UhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj!Uubah}(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.hhKhjUubhO structures. Typically, this structure is embedded in bigger driver structures.}(hjUhhhNhNubeh}(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.}(hjKUhhhNhNubah}(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.}(hjZUhhhNhNubah}(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&]uh1jWhj~UhhhS/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&]uh1jihj~UhhhjUhM`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_getasbuh1hhj~UhhhjUhM`ubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~UhhhjUhM`ubjH)}(hjKh]h*}(hjUhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj~UhhhjUhM`ubj{)}(h drm_gpuvm_geth]j)}(hjUh]h drm_gpuvm_get}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~UhhhjUhM`ubj)}(h(struct drm_gpuvm *gpuvm)h]j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjUubjj)}(h h]h }(hj VhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjVmodnameN classnameNj+j.)}j1]jUc.drm_gpuvm_getasbuh1hhjUubjj)}(h h]h }(hj8VhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUubjH)}(hjKh]h*}(hjFVhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjUubj)}(hgpuvmh]hgpuvm}(hjSVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubah}(h]h ]h"]h$]h&]jjuh1jhj~UhhhjUhM`ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjzUhhhjUhM`ubah}(h]juUah ](jjeh"]h$]h&]jj)jhuh1jKhjUhM`hjwUhhubj)}(hhh]h)}(h$acquire a struct drm_gpuvm referenceh]h$acquire a struct drm_gpuvm reference}(hj}VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM`hjzVhhubah}(h]h ]h"]h$]h&]uh1jhjwUhhhjUhM`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}(hjVhhhNhNubah}(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)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(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 }(hj2WhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hj:WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2WubhT. It is illegal to call this without already holding a reference. No locks required.}(hj2WhhhNhNubeh}(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)}(hjUWh]hReturn}(hjWWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSWubah}(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 }(hjkWhhhNhNubh)}(h&:c:type:`struct drm_gpuvm `h]j)}(hjuWh]hstruct drm_gpuvm}(hjwWhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjsWubah}(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.hhMfhjkWubh pointer}(hjkWhhhNhNubeh}(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}(hjWhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjWubjj)}(h h]h }(hjXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjWubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjXmodnameN classnameNj+j.)}j1]j4)}j'jWsbc.drm_gpuvm_resv_protectedasbuh1hhjWubjj)}(h h]h }(hj7XhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjWubjH)}(hjKh]h*}(hjEXhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjWubj)}(hgpuvmh]hgpuvm}(hjRXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubah}(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 }(hj|XhhhNhNubh)}(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]j3Xc.drm_gpuvm_resv_protectedasbjaDRM_GPUVM_RESV_PROTECTEDuh1hhjIhKhj|Xubh is set}(hj|XhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMyhjyXhhubah}(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)}(hjXh]hstruct drm_gpuvm *gpuvm}(hjXhhhNhNubah}(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.hhM{hjXubj)}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjXhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjYh]h drm_gpuvm}(hj YhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjXhM{hjXubeh}(h]h ]h"]h$]h&]uh1hhjXhM{hjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhM{hjXubah}(h]h ]h"]h$]h&]uh1jhjXubh)}(h **Return**h]j)}(hj?Yh]hReturn}(hjAYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Yubah}(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 }(hjUYhhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j)}(hj_Yh]hDRM_GPUVM_RESV_PROTECTED}(hjaYhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj]Yubah}(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}hjUYubh is set, false otherwise.}(hjUYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|YhM}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}(hjYhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjYubjj)}(h h]h }(hjYhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjZmodnameN classnameNj+j.)}j1]j4)}j'jYsbc.drm_gpuvm_immediate_modeasbuh1hhjYubjj)}(h h]h }(hj!ZhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYubjH)}(hjKh]h*}(hj/ZhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjYubj)}(hgpuvmh]hgpuvm}(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.hhMhj8\ubj)}(hhh]j)}(h$``gpuvm__`` the :c:type:`drm_gpuvm` h](j)}(h ``gpuvm__``h]j)}(hj]\h]hgpuvm__}(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)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjv\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_gpuvmuh1hhjr\hMhjv\ubeh}(h]h ]h"]h$]h&]uh1hhjr\hMhjs\ubah}(h]h ]h"]h$]h&]uh1jhjW\ubeh}(h]h ]h"]h$]h&]uh1jhjr\hMhjT\ubah}(h]h ]h"]h$]h&]uh1jhj8\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.hhMhj8\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\hMhj8\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)}(hj8]h]hdrm_gpuvm_resv_obj}(hjB]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&]jjjuh1jQjjhj6]hhhjU]hMubah}(h]j1]ah ](jjeh"]h$]h&]jj)jhuh1jKhjU]hMhj3]hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj3]hhhjU]hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjn]jjn]jjjuh1jFhhhj@hNhNubh)}(h ``drm_gpuvm_resv_obj (gpuvm__)``h]j)}(hjt]h]hdrm_gpuvm_resv_obj (gpuvm__)}(hjv]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr]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)}(hj-^h]hgpuvm__}(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)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjF^hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjP^h]h drm_gpuvm}(hjR^hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjN^ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjB^hMhjF^ubeh}(h]h ]h"]h$]h&]uh1hhjB^hMhjC^ubah}(h]h ]h"]h$]h&]uh1jhj'^ubeh}(h]h ]h"]h$]h&]uh1jhjB^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&]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}(hj1_hhhNhNubah}(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 }(hj?_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-_hhhj>_hMubj{)}(hdrm_gpuvm_is_extobjh]j)}(hdrm_gpuvm_is_extobjh]hdrm_gpuvm_is_extobj}(hjQ_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM_ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-_hhhj>_hMubj)}(h5(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjm_hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhji_ubjj)}(h h]h }(hjz_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihji_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'jS_sbc.drm_gpuvm_is_extobjasbuh1hhji_ubjj)}(h h]h }(hj_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihji_ubjH)}(hjKh]h*}(hj_hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhji_ubj)}(hgpuvmh]hgpuvm}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhje_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 }(hj`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_ubjH)}(hjKh]h*}(hj)`hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj_ubj)}(hobjh]hobj}(hj6`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhje_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)}(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)}(hjj`h]hdrm_gem_object}(hjl`hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjh`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.hhMhj]`hhubah}(h]h ]h"]h$]h&]uh1jhj&_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`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 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)}(hj%ah]hstruct drm_gem_object *obj}(hj'ahhhNhNubah}(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.hhMhjaubj)}(hhh]h)}(h%the :c:type:`drm_gem_object` to checkh](hthe }(hj>ahhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjHah]hdrm_gem_object}(hjJahhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjFaubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj:ahMhj>aubh to check}(hj>ahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:ahMhj;aubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj:ahMhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubh)}(h **Return**h]j)}(hjah]hReturn}(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.hhMhj`ubh)}(htrue 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 true if the }(hjahhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjah]hdrm_gem_object}(hjahhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjaubah}(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.hhMhjaubh }(hjahhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjah]hdma_resv}(hjahhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhjahMhjaubh differs from the }(hjahhhNhNubh)}(h:c:type:`drm_gpuvms`h]j)}(hjah]h drm_gpuvms}(hjahhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmsuh1hhjahMhjaubh }hjasbh)}(h:c:type:`dma_resv`h]j)}(hj bh]hdma_resv}(hjbhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj bubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhjahMhjaubh, false otherwise}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjahMhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_gpuvm_for_each_va_range (C macro)c.drm_gpuvm_for_each_va_rangehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hdrm_gpuvm_for_each_va_rangeh]jR)}(hdrm_gpuvm_for_each_va_rangeh]j{)}(hdrm_gpuvm_for_each_va_rangeh]j)}(hjNbh]hdrm_gpuvm_for_each_va_range}(hjXbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPbhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjLbhhhjkbhMubah}(h]jGbah ](jjeh"]h$]h&]jj)jhuh1jKhjkbhMhjIbhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjIbhhhjkbhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjbjjbjjjuh1jFhhhj@hNhNubh)}(h?``drm_gpuvm_for_each_va_range (va__, gpuvm__, start__, end__)``h]j)}(hjbh]h;drm_gpuvm_for_each_va_range (va__, gpuvm__, start__, end__)}(hjbhhhNhNubah}(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.hhMhj@hhubj)}(h-iterate over a range of :c:type:`drm_gpuvas` h]h)}(h,iterate over a range of :c:type:`drm_gpuvas`h](hiterate over a range of }(hjbhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjbh]h drm_gpuvas}(hjbhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjbubah}(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.hhMhjbubeh}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjbhMhj@hhubj)}(hX8**Parameters** ``va__`` :c:type:`drm_gpuva` structure to assign to in each iteration step ``gpuvm__`` :c:type:`drm_gpuvm` to walk over ``start__`` starting offset, the first gpuva will overlap this ``end__`` ending offset, the last gpuva will start before this (but may overlap) **Description** This 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(), 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 isn't 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](h)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjbhhhNhNubah}(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.hhMhjbubj)}(hhh](j)}(hK``va__`` :c:type:`drm_gpuva` structure to assign to in each iteration step h](j)}(h``va__``h]j)}(hjbh]hva__}(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.hhMhjbubj)}(hhh]h)}(hA:c:type:`drm_gpuva` structure to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j)}(hjch]h drm_gpuva}(hjchhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjchMhjcubh. structure to assign to in each iteration step}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjchMhjbubj)}(h-``gpuvm__`` :c:type:`drm_gpuvm` to walk over h](j)}(h ``gpuvm__``h]j)}(hjUch]hgpuvm__}(hjWchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjScubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjOcubj)}(hhh]h)}(h :c:type:`drm_gpuvm` to walk overh](h)}(h:c:type:`drm_gpuvm`h]j)}(hjtch]h drm_gpuvm}(hjvchhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjrcubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjjchMhjncubh to walk over}(hjnchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjchMhjkcubah}(h]h ]h"]h$]h&]uh1jhjOcubeh}(h]h ]h"]h$]h&]uh1jhjjchMhjbubj)}(h?``start__`` starting offset, the first gpuva will overlap this h](j)}(h ``start__``h]j)}(hjch]hstart__}(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.hhMhjcubj)}(hhh]h)}(h2starting offset, the first gpuva will overlap thish]h2starting offset, the first gpuva will overlap this}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhjbubj)}(hQ``end__`` ending offset, the last gpuva will start before this (but may overlap) h](j)}(h ``end__``h]j)}(hjch]hend__}(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.hhMhjcubj)}(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)}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhjbubeh}(h]h ]h"]h$]h&]uh1jhjbubh)}(h**Description**h]j)}(hj"dh]h Description}(hj$dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj dubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjbubh)}(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(), 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 isn't 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 }(hj8dhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjBdh]h drm_gpuvas}(hjDdhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj@dubah}(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.hhMhj8dubh in the }(hj8dhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjfdh]h drm_gpuvm}(hjhdhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjddubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj_dhMhj8dubh that lie between }(hj8dhhhNhNubj)}(h **start__**h]hstart__}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8dubh and }(hj8dhhhNhNubj)}(h **end__**h]hend__}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8dubhC. It is implemented similarly to list_for_each(), but is using the }(hj8dhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjdh]h drm_gpuvm}(hjdhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj_dhMhj8dubhF’s internal interval tree to accelerate the search for the starting }(hj8dhhhNhNubh)}(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_gpuvauh1hhj_dhMhj8dubhF, and hence isn’t safe against removal of elements. It assumes that }(hj8dhhhNhNubj)}(h **end__**h]hend__}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8dubh* is within (or is the upper limit of) the }(hj8dhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjeh]h drm_gpuvm}(hjehhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj_dhMhj8dubh'. This iterator does not skip over the }(hj8dhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj(eh]h drm_gpuvm}(hj*ehhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj&eubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj_dhMhj8dubh’s }(hj8dhhhNhNubj)}(h**kernel_alloc_node**h]hkernel_alloc_node}(hjIehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8dubh.}(hj8dhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_dhMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_gpuvm_for_each_va_range_safe (C macro)"c.drm_gpuvm_for_each_va_range_safehNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h drm_gpuvm_for_each_va_range_safeh]jR)}(h drm_gpuvm_for_each_va_range_safeh]j{)}(h drm_gpuvm_for_each_va_range_safeh]j)}(hj{eh]h drm_gpuvm_for_each_va_range_safe}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}ehhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjyehhhjehMubah}(h]jteah ](jjeh"]h$]h&]jj)jhuh1jKhjehMhjvehhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjvehhhjehMubeh}(h]h ](jmacroeh"]h$]h&]jjjjejjejjjuh1jFhhhj@hNhNubh)}(hL``drm_gpuvm_for_each_va_range_safe (va__, next__, gpuvm__, start__, end__)``h]j)}(hjeh]hHdrm_gpuvm_for_each_va_range_safe (va__, next__, gpuvm__, start__, end__)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj@hhubj)}(h4safely iterate over a range of :c:type:`drm_gpuvas` h]h)}(h3safely iterate over a range of :c:type:`drm_gpuvas`h](hsafely iterate over a range of }(hjehhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjeh]h drm_gpuvas}(hjehhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjeubah}(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.hhMhjeubeh}(h]h ]h"]h$]h&]uh1hhjehMhjeubah}(h]h ]h"]h$]h&]uh1jhjehMhj@hhubj)}(hXv**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 ``start__`` starting offset, the first gpuva will overlap this ``end__`` ending offset, the last gpuva will start before this (but may overlap) **Description** This 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](h)}(h**Parameters**h]j)}(hj fh]h Parameters}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj fubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjfubj)}(hhh](j)}(hA``va__`` :c:type:`drm_gpuva` to assign to in each iteration step h](j)}(h``va__``h]j)}(hj*fh]hva__}(hj,fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(fubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj$fubj)}(hhh]h)}(h7:c:type:`drm_gpuva` to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j)}(hjIfh]h drm_gpuva}(hjKfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjGfubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj?fhMhjCfubh$ to assign to in each iteration step}(hjCfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj?fhMhj@fubah}(h]h ]h"]h$]h&]uh1jhj$fubeh}(h]h ]h"]h$]h&]uh1jhj?fhMhj!fubj)}(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.hhMhj|fubj)}(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&]uh1jhj|fubeh}(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)}(hjfh]h drm_gpuvm}(hjfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjfhMhjfubh to walk over}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhj!fubj)}(h?``start__`` starting offset, the first gpuva will overlap this h](j)}(h ``start__``h]j)}(hj6gh]hstart__}(hj8ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4gubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj0gubj)}(hhh]h)}(h2starting offset, the first gpuva will overlap thish]h2starting offset, the first gpuva will overlap this}(hjOghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKghMhjLgubah}(h]h ]h"]h$]h&]uh1jhj0gubeh}(h]h ]h"]h$]h&]uh1jhjKghMhj!fubj)}(hQ``end__`` ending offset, the last gpuva will start before this (but may overlap) h](j)}(h ``end__``h]j)}(hjogh]hend__}(hjqghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmgubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjigubj)}(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&]uh1jhjigubeh}(h]h ]h"]h$]h&]uh1jhjghMhj!fubeh}(h]h ]h"]h$]h&]uh1jhjfubh)}(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.hhMhjfubh)}(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)}(hjgh]h drm_gpuvm}(hjghhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjghMhjgubh that lie between }(hjghhhNhNubj)}(h **start__**h]hstart__}(hjhhhhNhNubah}(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)}(hj6hh]h drm_gpuvm}(hj8hhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj4hubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjghMhjgubhF’s internal interval tree to accelerate the search for the starting }(hjghhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjYhh]h drm_gpuva}(hj[hhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjWhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjghMhjgubhA, and hence is safe against removal of elements. It assumes that }(hjghhhNhNubj)}(h **end__**h]hend__}(hjzhhhhNhNubah}(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_gpuvmuh1hhjghMhjgubh'. 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_gpuvmuh1hhjghMhjgubh’s }(hjghhhNhNubj)}(h**kernel_alloc_node**h]hkernel_alloc_node}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjghMhjfubeh}(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)}(hjih]hdrm_gpuvm_for_each_va}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj iubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjihhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjihhhj!ihMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1jKhj!ihMhjhhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhhj!ihMubeh}(h]h ](jmacroeh"]h$]h&]jjjj:ijj:ijjjuh1jFhhhj@hNhNubh)}(h)``drm_gpuvm_for_each_va (va__, gpuvm__)``h]j)}(hj@ih]h%drm_gpuvm_for_each_va (va__, gpuvm__)}(hjBihhhNhNubah}(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 }(hjZihhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjdih]h drm_gpuvas}(hjfihhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjbiubah}(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.hhMhjZiubeh}(h]h ]h"]h$]h&]uh1hhjihMhjViubah}(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.hhMhjjubj)}(hhh]h)}(h :c:type:`drm_gpuvm` to walk overh](h)}(h:c:type:`drm_gpuvm`h]j)}(hj*jh]h drm_gpuvm}(hj,jhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj(jubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj jhMhj$jubh to walk over}(hj$jhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj jhMhj!jubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhj jhMhjiubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]j)}(hjejh]h Description}(hjgjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcjubah}(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 }(hj{jhhhNhNubh)}(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.hhMhj{jubh& structures associated with the given }(hj{jhhhNhNubh)}(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_gpuvmuh1hhjjhMhj{jubh.}(hj{jhhhNhNubeh}(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)}(hjjh]hdrm_gpuvm_for_each_va_safe}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjjhhhjkhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jKhjkhMhjjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjjhhhjkhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj kjj kjjjuh1jFhhhj@hNhNubh)}(h6``drm_gpuvm_for_each_va_safe (va__, next__, gpuvm__)``h]j)}(hj&kh]h2drm_gpuvm_for_each_va_safe (va__, next__, gpuvm__)}(hj(khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$kubah}(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)}(hjJkh]h drm_gpuvas}(hjLkhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjHkubah}(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&]uh1hhjgkhMhjxubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjwubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjVxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpuvm_bo (C struct)c.drm_gpuvm_bohNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(h drm_gpuvm_boh]jR)}(hstruct drm_gpuvm_boh](jX)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjxhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjxhhhjxhMubj{)}(h drm_gpuvm_boh]j)}(hjxh]h drm_gpuvm_bo}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhjxhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj}xhhhjxhMubah}(h]jxxah ](jjeh"]h$]h&]jj)jhuh1jKhjxhMhjzxhhubj)}(hhh]h)}(hUstructure representing a :c:type:`drm_gpuvm` and :c:type:`drm_gem_object` combinationh](hstructure representing a }(hjxhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjxh]h drm_gpuvm}(hjxhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j4)}j'jxsbc.drm_gpuvm_boasbja drm_gpuvmuh1hhjIhKhjxubh and }(hjxhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjxh]hdrm_gem_object}(hjxhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+jxjadrm_gem_objectuh1hhjIhKhjxubh combination}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjxhhubah}(h]h ]h"]h$]h&]uh1jhjzxhhhjxhMubeh}(h]h ](jstructeh"]h$]h&]jjjj,yjj,yjjjuh1jFhhhj@hNhNubj)}(hX**Definition**:: struct drm_gpuvm_bo { struct drm_gpuvm *vm; struct drm_gem_object *obj; bool evicted; struct kref kref; struct { struct list_head gpuva; struct { struct list_head gem; struct list_head extobj; struct list_head evict; struct llist_node bo_defer; } entry; } list; }; **Members** ``vm`` The :c:type:`drm_gpuvm` the **obj** is mapped in. This is a reference counted pointer. ``obj`` The :c:type:`drm_gem_object` being mapped in **vm**. This is a reference counted pointer. ``evicted`` Indicates whether the :c:type:`drm_gem_object` is evicted; field protected by the :c:type:`drm_gem_object`'s dma-resv lock. ``kref`` The reference count for this :c:type:`drm_gpuvm_bo`. ``list`` Structure containing all :c:type:`list_heads`. ``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. ``list.entry`` Structure containing all :c:type:`list_heads` serving as entry. ``list.entry.gem`` List entry to attach to the :c:type:`drm_gem_objects` gpuva list. ``list.entry.evict`` List entry to attach to the :c:type:`drm_gpuvms` evict list. ``list.entry.bo_defer`` List entry to attach to the :c:type:`drm_gpuvms` bo_defer list.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj8yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4yubh:}(hj4yhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj0yubjh)}(hXhstruct drm_gpuvm_bo { struct drm_gpuvm *vm; struct drm_gem_object *obj; bool evicted; struct kref kref; struct { struct list_head gpuva; struct { struct list_head gem; struct list_head extobj; struct list_head evict; struct llist_node bo_defer; } entry; } list; };h]hXhstruct drm_gpuvm_bo { struct drm_gpuvm *vm; struct drm_gem_object *obj; bool evicted; struct kref kref; struct { struct list_head gpuva; struct { struct list_head gem; struct list_head extobj; struct list_head evict; struct llist_node bo_defer; } entry; } list; };}hjQysbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj0yubh)}(h **Members**h]j)}(hjbyh]hMembers}(hjdyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`yubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj0yubj)}(hhh](j)}(h^``vm`` The :c:type:`drm_gpuvm` the **obj** is mapped in. This is a reference counted pointer. h](j)}(h``vm``h]j)}(hjyh]hvm}(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.hhMhj{yubj)}(hhh]h)}(hVThe :c:type:`drm_gpuvm` the **obj** is mapped in. This is a reference counted pointer.h](hThe }(hjyhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjyh]h drm_gpuvm}(hjyhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjyubah}(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 the }(hjyhhhNhNubj)}(h**obj**h]hobj}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh3 is mapped in. This is a reference counted pointer.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhj{yubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjxyubj)}(hb``obj`` The :c:type:`drm_gem_object` being mapped in **vm**. This is a reference counted pointer. h](j)}(h``obj``h]j)}(hjyh]hobj}(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.hhMhjyubj)}(hhh]h)}(hYThe :c:type:`drm_gem_object` being mapped in **vm**. This is a reference counted pointer.h](hThe }(hj zhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjzh]hdrm_gem_object}(hjzhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjzubah}(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 zubh being mapped in }(hj zhhhNhNubj)}(h**vm**h]hvm}(hj5zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj zubh&. This is a reference counted pointer.}(hj zhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0zhMhjzubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjxyubj)}(h``evicted`` Indicates whether the :c:type:`drm_gem_object` is evicted; field protected by the :c:type:`drm_gem_object`'s dma-resv lock. h](j)}(h ``evicted``h]j)}(hj_zh]hevicted}(hjazhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]zubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjYzubj)}(hhh]h)}(h{Indicates whether the :c:type:`drm_gem_object` is evicted; field protected by the :c:type:`drm_gem_object`'s dma-resv lock.h](hIndicates whether the }(hjxzhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjzh]hdrm_gem_object}(hjzhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjzubah}(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.hhMhjxzubh$ is evicted; field protected by the }(hjxzhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjzh]hdrm_gem_object}(hjzhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjzhMhjxzubh’s dma-resv lock.}(hjxzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhjuzubah}(h]h ]h"]h$]h&]uh1jhjYzubeh}(h]h ]h"]h$]h&]uh1jhjtzhMhjxyubj)}(h>``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 }(hjzhhhNhNubh)}(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_bouh1hhjzhMhjzubh.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjxyubj)}(h8``list`` Structure containing all :c:type:`list_heads`. h](j)}(h``list``h]j)}(hj;{h]hlist}(hj={hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9{ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj5{ubj)}(hhh]h)}(h.Structure containing all :c:type:`list_heads`.h](hStructure containing all }(hjT{hhhNhNubh)}(h:c:type:`list_heads`h]j)}(hj^{h]h list_heads}(hj`{hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj\{ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja list_headsuh1hhjP{hMhjT{ubh.}(hjT{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjP{hMhjQ{ubah}(h]h ]h"]h$]h&]uh1jhj5{ubeh}(h]h ]h"]h$]h&]uh1jhjP{hMhjxyubj)}(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{hMhjxyubj)}(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 }(hj|hhhNhNubh)}(h:c:type:`list_heads`h]j)}(hj&|h]h list_heads}(hj(|hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj$|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.hhMhj|ubh serving as entry.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjC|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjxyubj)}(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}(hjb|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.hhMhjZ|ubj)}(hhh]h)}(hAList entry to attach to the :c:type:`drm_gem_objects` gpuva list.h](hList entry to attach to the }(hjy|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.hhMhjy|ubh gpuva list.}(hjy|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|hMhjv|ubah}(h]h ]h"]h$]h&]uh1jhjZ|ubeh}(h]h ]h"]h$]h&]uh1jhju|hMhjxyubj)}(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)}(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)}(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 }(hj:hhhNhNubj)}(h **vm_bo**h]hvm_bo}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubhT. It is illegal to call this without already holding a reference. No locks required.}(hj:hhhNhNubeh}(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)}(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.hhMhjubh)}(h*the :c:type:`struct vm_bo ` pointerh](hthe }(hjshhhNhNubh)}(h:c:type:`struct vm_bo `h]j)}(hj}h]h struct vm_bo}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj{ubah}(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.hhMhjsubh pointer}(hjshhhNhNubeh}(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}(hjŀhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/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&]uh1jihjhhhjӀhMubj{)}(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&]jjuh1jzhjhhhjӀhMubj)}(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 }(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_gpuvm_bo_gem_evictasbuh1hhjubjj)}(h h]h }(hj@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjNhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool evicth](j)}(hj*h]hbool}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubj)}(hevicth]hevict}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjӀhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjӀhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjӀhMhjhhubj)}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjÁh]h drm_gpuvm_bo}(hjŁhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j<c.drm_gpuvm_bo_gem_evictasbja drm_gpuvm_bouh1hhjIhKhjubh’s in the list 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+j߁ja drm_gpuvmsuh1hhjIhKhjubh evicted list}(hjhhhNhNubeh}(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&]uh1jhjhhhjӀhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@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)}(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_gem_object *obj`` the :c:type:`drm_gem_object` h](j)}(h``struct drm_gem_object *obj``h]j)}(hjEh]hstruct drm_gem_object *obj}(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.hhMhj?ubj)}(hhh]h)}(hthe :c:type:`drm_gem_object`h](hthe }(hj^hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjhh]hdrm_gem_object}(hjjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjZhMhj^ubeh}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubj)}(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 }(hjhhhNhNubj)}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is evicted}(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)}(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.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)}(hj)h]hdrm_gpuvm_bo_for_each_va}(hj3hhhNhNubah}(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'hhhjFhMubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1jKhjFhMhj$hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj$hhhjFhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj_jj_jjjuh1jFhhhj@hNhNubh)}(h,``drm_gpuvm_bo_for_each_va (va__, vm_bo__)``h]j)}(hjeh]h(drm_gpuvm_bo_for_each_va (va__, vm_bo__)}(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.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&]uh1hhjhMhj{ubah}(h]h ]h"]h$]h&]uh1jhjhMhj@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)}(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)}(hK``va__`` :c:type:`drm_gpuva` structure to assign to in each iteration step h](j)}(h``va__``h]j)}(hj؃h]hva__}(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)}(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_gpuvauh1hhjhMhjubh. structure 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)}(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)}(hj0h]hvm_bo__}(hj2hhhNhNubah}(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)}(hNthe :c:type:`drm_gpuvm_bo` the :c:type:`drm_gpuva` to walk are associated withh](hthe }(hjIhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjSh]h drm_gpuvm_bo}(hjUhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhjEhMhjIubh the }(hjIhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjvh]h drm_gpuva}(hjxhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjEhMhjIubh to walk are associated with}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjσ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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh)}(hgThis iterator walks over all :c:type:`drm_gpuva` structures associated with the :c:type:`drm_gpuvm_bo`.h](hThis iterator walks over all }(hjDŽ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_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjDŽubh structures associated with the }(hjDŽ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_bouh1hhjhMhjDŽubh.}(hjDŽhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h*The caller must hold the GEM's gpuva lock.h]h,The caller must hold the GEM’s gpuva lock.}(hjhhhNhNubah}(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_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)}(hjEh]hdrm_gpuvm_bo_for_each_va_safe}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM&ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjChhhjbhM&ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jKhjbhM&hj@hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj@hhhjbhM&ubeh}(h]h ](jmacroeh"]h$]h&]jjjj{jj{jjjuh1jFhhhj@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)}(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&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)}(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.hhM*hjυ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.hhM(hjubj)}(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 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&]uh1jhjubeh}(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)}(hjLh]hnext__}(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.hhM)hjFubj)}(hhh]h)}(h9:c:type:`next` :c:type:`drm_gpuva` to store the next steph](h)}(h:c:type:`next`h]j)}(hjkh]hnext}(hjmhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^janextuh1hhjahM)hjeubh }(hjehhhNhNubh)}(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_gpuvauh1hhjahM)hjeubh to store the next step}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjahM)hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM)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)}(hjdžh]hvm_bo__}(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.hhM*hjubj)}(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}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhj܆hM*hjubh the }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj h]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhj܆hM*hjubh to walk are associated with}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj܆hM*hj݆ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj܆hM*hjubeh}(h]h ]h"]h$]h&]uh1jhjυubh)}(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.hhM,hjυubh)}(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)}(hjhh]h drm_gpuva}(hjjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjfubah}(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+hjυubh)}(h*The caller must hold the GEM's gpuva lock.h]h,The caller must hold the GEM’s gpuva lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM/hjυubeh}(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&]uh1jWhjއhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM4ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjއhhhjhM4ubj{)}(hdrm_gpuva_op_typeh]j)}(hj܇h]hdrm_gpuva_op_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjއhhhjhM4ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjڇhhhjhM4ubah}(h]jՇah ](jjeh"]h$]h&]jj)jhuh1jKhjhM4hjׇhhubj)}(hhh]h)}(hGPU VA operation typeh]hGPU VA operation type}(hj$hhhNhNubah}(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&]uh1jhjׇhhhjhM4ubeh}(h]h ](jenumeh"]h$]h&]jjjj<jj<jjjuh1jFhhhj@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)}(hjFh]h Constants}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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)}(hjeh]hDRM_GPUVA_OP_MAP}(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.hhM=hj_ubj)}(hhh]h)}(hthe map op typeh]hthe map op type}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhM=hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhM=hj\ubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM@hj\ubj)}(h)``DRM_GPUVA_OP_UNMAP`` the unmap op type h](j)}(h``DRM_GPUVA_OP_UNMAP``h]j)}(hj׈h]hDRM_GPUVA_OP_UNMAP}(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.hhMChjшubj)}(hhh]h)}(hthe unmap op typeh]hthe unmap op type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjшubeh}(h]h ]h"]h$]h&]uh1jhjhMChj\ubj)}(h/``DRM_GPUVA_OP_PREFETCH`` the prefetch op type h](j)}(h``DRM_GPUVA_OP_PREFETCH``h]j)}(hjh]hDRM_GPUVA_OP_PREFETCH}(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.hhMFhj ubj)}(hhh]h)}(hthe prefetch op typeh]hthe prefetch op type}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMFhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMFhj\ubj)}(h2``DRM_GPUVA_OP_DRIVER`` the driver defined op typeh](j)}(h``DRM_GPUVA_OP_DRIVER``h]j)}(hjIh]hDRM_GPUVA_OP_DRIVER}(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.hhMHhjCubj)}(hhh]h)}(hthe driver defined op typeh]hthe driver defined op type}(hjbhhhNhNubah}(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&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMHhj\ubeh}(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)}(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.hhM7hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjɉhM7hj@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}(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 }(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}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMVhj,hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM<ubeh}(h]h ](jstructeh"]h$]h&]jjjjGjjGjjjuh1jFhhhj@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}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh:}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMZhjKubjh)}(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; };}hjlsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM\hjKubh)}(h **Members**h]j)}(hj}h]hMembers}(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.hhMghjKubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM^hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjubj)}(h0``va.addr`` the base address of the new mapping h](j)}(h ``va.addr``h]j)}(hj֊h]hva.addr}(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.hhMchjЊubj)}(hhh]h)}(h#the base address of the new mappingh]h#the base address of the new mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMchjubah}(h]h ]h"]h$]h&]uh1jhjЊubeh}(h]h ]h"]h$]h&]uh1jhjhMchjubj)}(h*``va.range`` the range of the new mapping h](j)}(h ``va.range``h]j)}(hjh]hva.range}(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.hhMhhj ubj)}(hhh]h)}(hthe range of the new mappingh]hthe range of the new mapping}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhhjubj)}(hI``gem`` structure containing the :c:type:`drm_gem_object` and its offset h](j)}(h``gem``h]j)}(hjHh]hgem}(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.hhMnhjBubj)}(hhh]h)}(h@structure containing the :c:type:`drm_gem_object` and its offseth](hstructure containing the }(hjahhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjkh]hdrm_gem_object}(hjmhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj]hMnhjaubh and its offset}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hMnhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMnhjubj)}(h>``gem.offset`` the offset within the :c:type:`drm_gem_object` h](j)}(h``gem.offset``h]j)}(hjh]h gem.offset}(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.hhMrhjubj)}(hhh]h)}(h.the offset within the :c:type:`drm_gem_object`h](hthe offset within the }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjNjh]hdrm_gem_object}(hjɋhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjŋubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjhMrhjubeh}(h]h ]h"]h$]h&]uh1hhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubj)}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hj!hhhNhNubah}(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.hhMwhjubh to map}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj<hMwhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubeh}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hjbh]h Description}(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.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.}(hjxhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM]ubj{)}(hdrm_gpuva_op_unmaph]j)}(hjh]hdrm_gpuva_op_unmap}(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)}(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}hjߌhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM]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}(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)}(hGstruct drm_gpuva_op_unmap { struct drm_gpuva *va; bool keep; };h]hGstruct drm_gpuva_op_unmap { struct drm_gpuva *va; bool keep; };}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)}(hj0h]hMembers}(hj2hhhNhNubah}(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 unmap h](j)}(h``va``h]j)}(hjOh]hva}(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.hhMhjIubj)}(hhh]h)}(h the :c:type:`drm_gpuva` to unmaph](hthe }(hjhhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjrh]h drm_gpuva}(hjthhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvauh1hhjdhMhjhubh to unmap}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjFubj)}(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)}(hjh]hkeep}(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)}(hfIndicates whether this :c:type:`drm_gpuva` is physically contiguous with the original mapping request.h](hIndicates whether this }(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_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjčubh< is physically contiguous with the original mapping request.}(hjčhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(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)}(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_gpuvauh1hhjhMhjubh<, adding the missing page table entries only and update the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjGh]h drm_gpuvm}(hjIhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMhjubh accordingly.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjFubeh}(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}(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 }(hjՎhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjÎhhhjԎhMubj{)}(hdrm_gpuva_op_remaph]j)}(hjh]hdrm_gpuva_op_remap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjÎhhhjԎhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjԎhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjԎhMhjhhubj)}(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.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjԎhMubeh}(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}(hj-hhhNhNubah}(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.hhMhj%ubjh)}(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; };}hjFsbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj%ubh)}(h **Members**h]j)}(hjWh]hMembers}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(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/``prev`` the preceding part of a split mapping h](j)}(h``prev``h]j)}(hjvh]hprev}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjpubj)}(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&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubj)}(h0``next`` the subsequent part of a split mapping h](j)}(h``next``h]j)}(hjh]hnext}(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 subsequent part of a split mappingh]h&the subsequent part of a split mapping}(hjȏhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjďhMhjŏubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjďhMhjmubj)}(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&]uh1jhjhMhjmubeh}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(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@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.}(hjAhhhNhNubah}(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.}(hjPhhhNhNubah}(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}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubhA operation takes care of removing the original existing mapping. }(hj_hhhNhNubj)}(h**prev**h]hprev}(hjyhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh or }(hjhhhNhNubj)}(h**next**h]hnext}(hjhhhNhNubah}(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 }(hjאhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjߐubah}(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.hhMhjאubhL structure which typically is embedded in larger driver specific structures.}(hjאhhhNhNubeh}(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&]uh1jWhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubjj)}(h h]h }(hj0hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj/hMubj{)}(hdrm_gpuva_op_prefetchh]j)}(hjh]hdrm_gpuva_op_prefetch}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj/hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj/hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj/hMhjhhubj)}(hhh]h)}(hGPU VA prefetch operationh]hGPU VA prefetch operation}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjahhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hMubeh}(h]h ](jstructeh"]h$]h&]jjjj|jj|jjjuh1jFhhhj@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)}(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.hhMhjubj)}(hhh]j)}(h*``va`` the :c:type:`drm_gpuva` to prefetchh](j)}(h``va``h]j)}(hjёh]hva}(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_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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjˑubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȑubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(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.}(hjMhhhNhNubah}(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}(hjuhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjqhhhjhMubj{)}(h drm_gpuva_oph]j)}(hjoh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjqhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjmhhhjhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjjhhubj)}(hhh]h)}(hGPU VA operationh]hGPU VA operation}(hjhhhNhNubah}(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&]uh1jhjjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjjϒjjϒjjjuh1jFhhhj@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}(hjےhhhNhNubah}(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.hhMhjӒubjh)}(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.hhMhjӒubh)}(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.hhMhjӒubj)}(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)}(hj$h]hentry}(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)}(hcThe :c:type:`list_head` used to distribute instances of this struct within :c:type:`drm_gpuva_ops`.h](hThe }(hj=hhhNhNubh)}(h:c:type:`list_head`h]j)}(hjGh]h list_head}(hjIhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjEubah}(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.hhMhj=ubh4 used to distribute instances of this struct within }(hj=hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjkh]h drm_gpuva_ops}(hjmhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhjdhMhj=ubh.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjdhMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(h!``op`` the type of the operation 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.hhMhjubj)}(hhh]h)}(hthe type of the operationh]hthe type of the operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhKhjדubj)}(hhh]h)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjדubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``map`` the map operation h](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.hhMhjubj)}(hhh]h)}(hthe map operationh]hthe map operation}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhjubj)}(h``remap`` the remap operation h](j)}(h ``remap``h]j)}(hjOh]hremap}(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.hhMhjIubj)}(hhh]h)}(hthe remap operationh]hthe remap operation}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjubj)}(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&]uh1jhjhMhjubj)}(h#``prefetch`` the prefetch operationh](j)}(h ``prefetch``h]j)}(hjh]hprefetch}(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 prefetch operationh]hthe prefetch operation}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj֔hMhjubeh}(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.hhMhj@hhubh)}(h5This structure represents a single generic operation.h]h5This structure represents a single generic operation.}(hjhhhNhNubah}(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 }(hj)hhhNhNubj)}(h**op**h]hop}(hj1hhhNhNubah}(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.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}(hjchhhNhNubah}(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 }(hjqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj_hhhjphMubj{)}(h drm_gpuva_opsh]j)}(hj]h]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj_hhhjphMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj[hhhjphMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1jKhjphMhjXhhubj)}(hhh]h)}(h&wraps a list of :c:type:`drm_gpuva_op`h](hwraps a list of }(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.)}j1]j4)}j'j]sbc.drm_gpuva_opsasbja drm_gpuva_opuh1hhjIhKhjubeh}(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&]uh1jhjXhhhjphMubeh}(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}(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)}(h4struct drm_gpuva_ops { struct list_head list; };h]h4struct drm_gpuva_ops { struct list_head list; };}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)}(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.hhMhjubj)}(hhh]j)}(h ``list`` the :c:type:`list_head`h](j)}(h``list``h]j)}(hj8h]hlist}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj2ubj)}(hhh]h)}(hthe :c:type:`list_head`h](hthe }(hjQhhhNhNubh)}(h:c:type:`list_head`h]j)}(hj[h]h list_head}(hj]hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjYubah}(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.hhMhjQubeh}(h]h ]h"]h$]h&]uh1hhjxhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj/ubah}(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)}(hjh]hdrm_gpuva_for_each_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.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&]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&]uh1hhj(hMhjubah}(h]h ]h"]h$]h&]uh1jhj(hMhj@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)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj5ubj)}(hhh](j)}(h?``op`` :c:type:`drm_gpuva_op` to assign in each iteration step h](j)}(h``op``h]j)}(hjZh]hop}(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.hhMhjTubj)}(hhh]h)}(h7:c:type:`drm_gpuva_op` to assign in each iteration steph](h)}(h:c:type:`drm_gpuva_op`h]j)}(hjyh]h drm_gpuva_op}(hj{hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opuh1hhjohMhjsubh! to assign in each iteration step}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjQubj)}(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.hhMhjubj)}(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&]uh1jhjϗubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhjǗhMhj˗ubh to walk}(hj˗hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjǗhMhjȗubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjǗhMhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h**Description**h]j)}(hj h]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.hhMhj5ubh)}(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.hhMhj5ubeh}(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)}(hjKh]hdrm_gpuva_for_each_op_safe}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjIhhhjhhM ubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1jKhjhhM hjFhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjFhhhjhhM 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)}(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 hjubeh}(h]h ]h"]h$]h&]uh1hhjȘhM hjubah}(h]h ]h"]h$]h&]uh1jhjȘhM 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)}(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?``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)}(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 assign in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hF``next`` :c:type:`next` :c:type:`drm_gpuva_op` to store the next step h](j)}(h``next``h]j)}(hjRh]hnext}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM hjLubj)}(hhh]h)}(h<:c:type:`next` :c:type:`drm_gpuva_op` to store the next steph](h)}(h:c:type:`next`h]j)}(hjqh]hnext}(hjshhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^janextuh1hhjghM hjkubh }(hjkhhhNhNubh)}(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_opuh1hhjghM hjkubh to store the next step}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjghM hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM hjubj)}(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.hhM hjǙ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_opsuh1hhjhM hjubh to walk}(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&]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)}(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.}(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 ] 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)}(hjfh]h"drm_gpuva_for_each_op_from_reverse}(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&]jjjuh1jQjjhjdhhhjhMubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjahhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjahhhjhMubeh}(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}(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ʚhMhj@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)}(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?``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.hhMhjubj)}(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_opuh1hhj hMhjubh! to assign 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(``ops`` :c:type:`drm_gpuva_ops` to walk h](j)}(h``ops``h]j)}(hjNh]hops}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjHubj)}(hhh]h)}(h:c:type:`drm_gpuva_ops` to walkh](h)}(h:c:type:`drm_gpuva_ops`h]j)}(hjmh]h drm_gpuva_ops}(hjohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhjchMhjgubh to walk}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjubeh}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjњubh)}(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.}(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_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&]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&]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)}(h+``drm_gpuva_for_each_op_reverse (op, ops)``h]j)}(hj#h]h'drm_gpuva_for_each_op_reverse (op, ops)}(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.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 }(hj=hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjGh]h drm_gpuva_ops}(hjIhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjEubah}(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!hj=ubh in reverse}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjdhM!hj9ubah}(h]h ]h"]h$]h&]uh1jhjdhM!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)}(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)}(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)}(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 assign in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(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_opsuh1hhjhM#hj ubh to walk}(hj hhhNhNubeh}(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&]uh1jhjuubh)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(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.hhM%hjuubh)}(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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM$hjuubeh}(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&]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)}(h``drm_gpuva_first_op (ops)``h]j)}(hjǝh]hdrm_gpuva_first_op (ops)}(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.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}(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 from }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhjhM+hjubeh}(h]h ]h"]h$]h&]uh1hhjhM+hjݝubah}(h]h ]h"]h$]h&]uh1jhjhM+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&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM/hj8ubj)}(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)}(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.hhM1hjWubj)}(hhh]h)}(hGthe :c:type:`drm_gpuva_ops` to get the fist :c:type:`drm_gpuva_op` fromh](hthe }(hjvhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(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,hjvubh to get the fist }(hjvhhhNhNubh)}(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,hjvubh from}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM,hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM1hjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(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&]jjjuh1jQjjhjhhhjhM2ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM2hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM2ubeh}(h]h ](jmacroeh"]h$]h&]jjjj-jj-jjjuh1jFhhhj@hNhNubh)}(h``drm_gpuva_last_op (ops)``h]j)}(hj3h]hdrm_gpuva_last_op (ops)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(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 }(hjMhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjWh]h drm_gpuva_op}(hjYhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjUubah}(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.hhM2hjMubh from }(hjMhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj{h]h drm_gpuva_ops}(hj}hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuva_opsuh1hhjthM2hjMubeh}(h]h ]h"]h$]h&]uh1hhjthM2hjIubah}(h]h ]h"]h$]h&]uh1jhjthM2hj@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)}(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.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)}(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.hhM8hjßubj)}(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)}(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.hhM3hjubh to get the last }(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_opuh1hhj hM3hjubh from}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hM3hjߟubah}(h]h ]h"]h$]h&]uh1jhjßubeh}(h]h ]h"]h$]h&]uh1jhjޟhM8hjubah}(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)}(hjch]hdrm_gpuva_prev_op}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhM9ubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjahhhjhM9ubah}(h]j\ah ](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 }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjàh]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.hhM9hjubh in the list}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(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)}(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)}(h"the current :c:type:`drm_gpuva_op`h](h the current }(hj/hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hj9h]h drm_gpuva_op}(hj;hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj7ubah}(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:hj/ubeh}(h]h ]h"]h$]h&]uh1hhjVhM:hj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hM?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&]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)}(h``drm_gpuva_next_op (op)``h]j)}(hjšh]hdrm_gpuva_next_op (op)}(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.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 }(hjߡhhhNhNubh)}(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?hjߡubh in the list}(hjߡhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM?hjۡubah}(h]h ]h"]h$]h&]uh1jhjhM?hj@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.hhMChjubj)}(hhh]j)}(h)``op`` the current :c:type:`drm_gpuva_op`h](j)}(h``op``h]j)}(hj<h]hop}(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.hhMEhj6ubj)}(hhh]h)}(h"the current :c:type:`drm_gpuva_op`h](h the current }(hjUhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hj_h]h drm_gpuva_op}(hjahhhNhNubah}(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.hhM@hjUubeh}(h]h ]h"]h$]h&]uh1hhj|hM@hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMEhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMEubjj)}(h h]h }(hjâhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj¢hMEubj{)}(hdrm_gpuvm_map_reqh]j)}(hjh]hdrm_gpuvm_map_req}(hjբhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѢubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj¢hMEubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj¢hMEubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj¢hMEhjhhubj)}(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&]uh1jhjhhhj¢hMEubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhj@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}(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.hhMIhjubjh)}(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; };}hj4sbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMKhjubh)}(h **Members**h]j)}(hjEh]hMembers}(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.hhMOhjubj)}(hhh]j)}(h``map`` struct drm_gpuva_op_maph](j)}(h``map``h]j)}(hjdh]hmap}(hjfhhhNhNubah}(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.hhMIhj^ubj)}(hhh]h)}(hstruct drm_gpuva_op_maph]hstruct drm_gpuva_op_map}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMJhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMIhj[ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMPubjj)}(h h]h }(hj̣hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjˣhMPubj{)}(h drm_gpuvm_opsh]j)}(hjh]h drm_gpuvm_ops}(hjޣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڣubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjˣhMPubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjˣhMPubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjˣhMPhjhhubj)}(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&]uh1jhjhhhjˣhMPubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhj@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}(hj$hhhNhNubah}(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.hhMqhjubjh)}(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); };}hj=sbah}(h]h ]h"]h$]h&]jjuh1jghS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMshjubh)}(h **Members**h]j)}(hjNh]hMembers}(hjPhhhNhNubah}(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.hhMhjubj)}(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)}(hjmh]hvm_free}(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.hhMyhjgubj)}(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&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjdubj)}(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)}(hjh]hop_alloc}(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)}(hCcalled when the :c:type:`drm_gpuvm` allocates a struct drm_gpuva_oph](hcalled when 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.hhM~hjΤubh allocates a struct drm_gpuva_op}(hjΤhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM~hjˤubh)}(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.hhMhjˤubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjʤhMhjˤubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjʤhMhjdubj)}(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)}(hj/h]hop_free}(hj1hhhNhNubah}(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_gpuva_oph](hcalled when the }(hjHhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjRh]h drm_gpuvm}(hjThhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjPubah}(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.hhMhjHubh frees a struct drm_gpuva_op}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjohMhjEubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjEubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjdubj)}(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)}(hjh]h vm_bo_alloc}(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)}(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)}(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 allocates a struct drm_gpuvm_bo}(hj¥hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(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.hhMhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjdubj)}(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}(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)}(h?called when the :c:type:`drm_gpuvm` frees a struct drm_gpuvm_boh](hcalled when the }(hj<hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjFh]h drm_gpuvm}(hjHhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjDubah}(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 frees a struct drm_gpuvm_bo}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchMhj9ubh)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj9ubh)}(hThis callback is optional.h]hThis callback is optional.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjdubj)}(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()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh)}(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 }(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# being mapped in the corresponding }(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_gpuvmuh1hhjhMhjŦubh.}(hjŦhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjdubj)}(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)}(hj;h]h sm_step_map}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj5ubj)}(hhh](h)}(hkcalled from :c:type:`drm_gpuvm_sm_map` to finally insert the mapping once all previous steps were completedh](h called from }(hjThhhNhNubh)}(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.hhMhjTubhE to finally insert the mapping once all previous steps were completed}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{hMhjQubh)}(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)}(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_mapuh1hhjhMhjubh or }(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_unmapuh1hhjhMhjubh, respectively.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjQubh)}(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)}(hjh]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_mapuh1hhjPhMhjubh is used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhMhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjdubj)}(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)}(hjAh]h sm_step_remap}(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)}(hgcalled from :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to split up an existent mappingh](h called from }(hjZhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjdh]hdrm_gpuvm_sm_map}(hjfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjbubah}(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.hhMhjZubh and }(hjZhhhNhNubh)}(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_unmapuh1hhjhMhjZubh to split up an existent mapping}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjWubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjWubh)}(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)}(hjȨh]hpriv}(hjʨhhhNhNubah}(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.hhMhjubh. pointer matches the one the driver passed to }(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_mapuh1hhjhMhjubh or }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhjhMhjubh, respectively.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjWubh)}(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 }(hj6hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hj@h]hdrm_gpuvm_sm_map}(hjBhhhNhNubah}(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.hhMhj6ubh nor }(hj6hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjdh]hdrm_gpuvm_sm_unmap}(hjfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhj]hMhj6ubh is used.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hMhjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjdubj)}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjh]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_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhjubh and }(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 to unmap an existing mapping}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjݩhMhjubh)}(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.hhMhjubh)}(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)}(hj$h]hpriv}(hj&hhhNhNubah}(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.hhMhjubh. pointer matches the one the driver passed to }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjHh]hdrm_gpuvm_sm_map}(hjJhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_mapuh1hhjAhMhjubh or }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjkh]hdrm_gpuvm_sm_unmap}(hjmhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhjAhMhjubh, respectively.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhMhjubh)}(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_mapuh1hhjhMhjubh 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_unmapuh1hhjhMhjubh is used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjdubeh}(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)}(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 }(hjhhhNhNubh)}(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_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMnhjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjEh]hdrm_gpuvm_sm_unmap}(hjGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_sm_unmapuh1hhj>hMnhjubhJ to provide the split/merge steps for map and unmap operations to drivers.}(hjhhhNhNubeh}(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}(hjhhhNhNubah}(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&]uh1jWhjubjj)}(h h]h }(hjϫhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjX)}(hjh]hstruct}(hjݫhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(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'jsb#c.drm_gpuva_op_remap_to_unmap_rangeasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj)hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hoph]hop}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 *start_addrh](h)}(hhh]j)}(hu64h]hu64}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjTmodnameN classnameNj+j.)}j1]j#c.drm_gpuva_op_remap_to_unmap_rangeasbuh1hhjKubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjKubjH)}(hjKh]h*}(hj~hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjKubj)}(h start_addrh]h start_addr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(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]j#c.drm_gpuva_op_remap_to_unmap_rangeasbuh1hhjubjj)}(h h]h }(hjŬhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjӬhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(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&]jjjuh1jQjjhj}hhhjhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjzhhubj)}(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.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhMubeh}(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)}(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)}(h2``const struct drm_gpuva_op_remap *op`` Remap op. h](j)}(h'``const struct drm_gpuva_op_remap *op``h]j)}(hjKh]h#const struct drm_gpuva_op_remap *op}(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 Remap op.h]h Remap op.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjBubj)}(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.hhMhj~ubj)}(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&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjBubj)}(hD``u64 *range`` Output pointer for the length of the required unmap. h](j)}(h``u64 *range``h]j)}(hjh]h u64 *range}(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)}(h4Output pointer for the length of the required unmap.h]h4Output pointer for the length of the required unmap.}(hj֭hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjҭhMhjӭubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjҭhMhjBubeh}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:520: ./include/drm/drm_gpuvm.hhMhj&ubh)}(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.}(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_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}(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 }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9hhhjJhMubj{)}(hdrm_gpuvm_range_validh]j)}(hdrm_gpuvm_range_validh]hdrm_gpuvm_range_valid}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhjJhMubj)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjuubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjuubh)}(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_validasbuh1hhjuubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjuubjH)}(hjKh]h*}(hjŮhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjuubj)}(hgpuvmh]hgpuvm}(hjҮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubj)}(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_range_validasbuh1hhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubj)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj8modnameN classnameNj+j.)}j1]jc.drm_gpuvm_range_validasbuh1hhj/ubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj/ubj)}(hrangeh]hrange}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhjJhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj5hhhjJhMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jKhjJhMhj2hhubj)}(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]jc.drm_gpuvm_range_validasbja drm_gpuvmuh1hhjJhMhjubeh}(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&]uh1jhj2hhhjJhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjȯjjȯjjjuh1jFhhhj@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)}(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)}(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&]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 GPUVM to check the range forh]h the GPUVM to check the range for}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``u64 addr`` the base 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.chMhj$ubj)}(hhh]h)}(hthe base addressh]hthe base address}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjubj)}(h7``u64 range`` the range starting from the base address h](j)}(h ``u64 range``h]j)}(hjch]h u64 range}(hjehhhNhNubah}(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.chMhj]ubj)}(hhh]h)}(h(the range starting from the base addressh]h(the range starting from the base address}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjubeh}(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.chMhj̯ubh)}(hBChecks whether the range is within the GPUVM's managed boundaries.h]hDChecks whether the range is within the GPUVM’s managed boundaries.}(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 **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.chMhj̯ubh)}(h'true for a valid range, false otherwiseh]h'true for a valid range, false otherwise}(hj۰hhhNhNubah}(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_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&]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)}(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_gpuvm_resv_object_allocsbc.drm_gpuvm_resv_object_allocasbuh1hhjhhhjhMubjj)}(h h]h }(hjJhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhMubjH)}(hjKh]h*}(hjXhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhMubj{)}(hdrm_gpuvm_resv_object_alloch]j)}(hjGh]hdrm_gpuvm_resv_object_alloc}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(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]jEc.drm_gpuvm_resv_object_allocasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjαhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hdrmh]hdrm}(hj۱hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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)allocate a dummy :c:type:`drm_gem_object`h](hallocate a dummy }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jEc.drm_gpuvm_resv_object_allocasbjadrm_gem_objectuh1hhjJhMhjubeh}(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&]jjjjAjjAjjjuh1jFhhhj@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)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjEubj)}(hhh]j)}(h<``struct drm_device *drm`` the drivers :c:type:`drm_device` h](j)}(h``struct drm_device *drm``h]j)}(hjjh]hstruct drm_device *drm}(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.chMhjdubj)}(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&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hjIJh]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.chMhjEubh)}(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 }(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_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjڲubh\ which can be passed to drm_gpuvm_init() in order to serve as root GEM object providing the }(hjڲhhhNhNubh)}(h:c:type:`drm_resv`h]j)}(hjh]hdrm_resv}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_resvuh1hhjhMhjڲubh shared across }(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_objectsuh1hhjhMhjڲubh local to a single GPUVM.}(hjڲhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjEubh)}(h **Return**h]j)}(hjTh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjEubh)}(h8the :c:type:`drm_gem_object` on success, NULL on failureh](hthe }(hjjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjth]hdrm_gem_object}(hjvhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjrubah}(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 hjjubh on success, NULL on failure}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjEubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM3ubjj)}(h h]h }(hj˳hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjʳhM3ubj{)}(hdrm_gpuvm_inith]j)}(hdrm_gpuvm_inith]hdrm_gpuvm_init}(hjݳhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٳubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjʳhM3ubj)}(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 }(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_initasbuh1hhjubjj)}(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)}(hconst char *nameh](jX)}(hj h]hconst}(hjkhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjgubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjgubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjgubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum drm_gpuvm_flags flagsh](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_gpuvm_flagsh]hdrm_gpuvm_flags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j3c.drm_gpuvm_initasbuh1hhjĴ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&]noemphjjuh1jhjubj)}(hstruct drm_device *drmh](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)}(h drm_deviceh]h drm_device}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjKmodnameN classnameNj+j.)}j1]j3c.drm_gpuvm_initasbuh1hhj'ubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj'ubjH)}(hjKh]h*}(hjuhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj'ubj)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(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 }(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]j3c.drm_gpuvm_initasbuh1hhjubjj)}(h h]h }(hj׵hhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j3c.drm_gpuvm_initasbuh1hhjubjj)}(h h]h }(hj,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h start_offseth]h start_offset}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjXmodnameN classnameNj+j.)}j1]j3c.drm_gpuvm_initasbuh1hhjOubjj)}(h h]h }(hjthhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOubj)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(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]j3c.drm_gpuvm_initasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hreserve_offseth]hreserve_offset}(hjʶhhhNhNubah}(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]j3c.drm_gpuvm_initasbuh1hhj߶ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj߶ubj)}(h reserve_rangeh]h reserve_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߶ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct drm_gpuvm_ops *opsh](jX)}(hj h]hconst}(hj+hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj'ubjj)}(h h]h }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj'ubjX)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj'ubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj'ubh)}(hhh]j)}(h drm_gpuvm_opsh]h drm_gpuvm_ops}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjfmodnameN classnameNj+j.)}j1]j3c.drm_gpuvm_initasbuh1hhj'ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj'ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj'ubj)}(hopsh]hops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjʳhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjʳhM3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjʳhM3hjhhubj)}(hhh]h)}(h initialize a :c:type:`drm_gpuvm`h](h initialize a }(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.)}j1]j3c.drm_gpuvm_initasbja drm_gpuvmuh1hhjJhMhjǷubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM3hjķhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjʳhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@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}(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.chM7hjubj)}(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)}(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.chM4hj&ubj)}(hhh]h)}(h0pointer to the :c:type:`drm_gpuvm` to initializeh](hpointer to 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_gpuvmuh1hhjAhM4hjEubh to initialize}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhM4hjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhM4hj#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)}(hjh]henum drm_gpuvm_flags flags}(hjøhhhNhNubah}(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.chM6hjubj)}(hhh]h)}(h,the :c:type:`drm_gpuvm_flags` for this GPUVMh](hthe }(hjڸhhhNhNubh)}(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_flagsuh1hhjָhM6hjڸubh for this GPUVM}(hjڸhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjָhM6hj׸ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjָhM6hj#ubj)}(hG``struct drm_device *drm`` the :c:type:`drm_device` this VM resides in 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.chM7hjubj)}(hhh]h)}(h+the :c:type:`drm_device` this VM resides inh](hthe }(hj6hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj@h]h drm_device}(hjBhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_deviceuh1hhj2hM7hj6ubh this VM resides in}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hM7hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hM7hj#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)}(hjyh]hstruct drm_gem_object *r_obj}(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.chM8hjsubj)}(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)}(hjh]hdma_resv}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadma_resvuh1hhjhM8hjubeh}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(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.chM9hjubj)}(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&]uh1jhjubeh}(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)}(hj-h]h u64 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)}(hthe size of the GPU VA spaceh]hthe size of the GPU VA space}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM:hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM:hj#ubj)}(hD``u64 reserve_offset`` the start of the kernel reserved GPU VA area h](j)}(h``u64 reserve_offset``h]j)}(hjfh]hu64 reserve_offset}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(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&]uh1hhj{hM;hj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hM;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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM<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)}(hjغh]hconst struct drm_gpuvm_ops *ops}(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[: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_opsuh1hhjhM=hjubh called on }(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_mapuh1hhjhM=hjubh / }(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_unmapuh1hhjhM=hjubeh}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjҺubeh}(h]h ]h"]h$]h&]uh1jhjhM=hj#ubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM?hjubh)}(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&]uh1hhjhM>hjubh)}(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 }(hjhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjĻhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> must be cleared to 0 before calling this function. The given }(hjhhhNhNubh)}(h:c:type:`name`h]j)}(hjػh]hname}(hjڻhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjֻubah}(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@hjubh@ is expected to be managed by the surrounding driver structures.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM@hjubeh}(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&]uh1jhjhhhW/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&]uh1jihjhhhj.hMubj{)}(h drm_gpuvm_puth]j)}(h drm_gpuvm_puth]h drm_gpuvm_put}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj.hMubj)}(h(struct drm_gpuvm *gpuvm)h]j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjYubjj)}(h h]h }(hjjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj}modnameN classnameNj+j.)}j1]j4)}j'jCsbc.drm_gpuvm_putasbuh1hhjYubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjYubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubah}(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!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.chMhjݼhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj.hMubeh}(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}(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)}(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&]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)}(h3the :c:type:`drm_gpuvm` to release the reference ofh](hthe }(hj:hhhNhNubh)}(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_gpuvmuh1hhj6hMhj:ubh to release the reference of}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubah}(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&]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.}(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_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}(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}(hj"hhhNhNubah}(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}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjBmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_prepare_vmasbuh1hhjubjj)}(h h]h }(hj`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjnhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hj{hhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j\c.drm_gpuvm_prepare_vmasbuh1hhjubjj)}(h h]h }(hjоhhhNhNubah}(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&]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}(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}(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&]jjjuh1jQjjhjݽhhhjhMubah}(h]jؽah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjڽhhubj)}(hhh]h)}(h"prepare the GPUVMs common dma-resvh]h"prepare the GPUVMs common dma-resv}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhjڽhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jFhhhj@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)}(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)}(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_gpuvmuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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 }(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 context}(hjhhhNhNubeh}(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)}(hj[h]hunsigned int num_fences}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjUubj)}(hhh]h)}(h-the amount of :c:type:`dma_fences` to reserveh](hthe amount of }(hjthhhNhNubh)}(h:c:type:`dma_fences`h]j)}(hj~h]h dma_fences}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_fencesuh1hhjphMhjtubh to reserve}(hjthhhNhNubeh}(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: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.}(hjhhhNhNubah}(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)}(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.chMhjubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(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_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}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjehhhjwhMubj{)}(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&]jjuh1jzhjehhhjwhMubj)}(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}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj8modnameN classnameNj+j.)}j1]jc.drm_gpuvm_prepare_objectsasbuh1hhjubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjbhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hexech]hexec}(hjohhhNhNubah}(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 }(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&]jjuh1jhjehhhjwhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjahhhjwhMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jKhjwhMhj^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^hhhjwhMubeh}(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}(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.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.chMhj%ubj)}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjDhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjNh]h drm_gpuvm}(hjPhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj@hMhjDubeh}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(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.chMhj}ubj)}(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&]uh1jhj}ubeh}(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}(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&]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&]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` 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 }(hjShhhNhNubh)}(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:523: ./drivers/gpu/drm/drm_gpuvm.chMhjSubh the given }(hjShhhNhNubh)}(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_gpuvmuh1hhjzhMhjSubh contains mappings of; if }(hjShhhNhNubj)}(h**num_fences**h]h num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh/ is zero drm_exec_lock_obj() is called instead.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhjubh)}(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.chMhjubh)}(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.chMhjubh)}(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.chMhjubh)}(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.}(hjhhhNhNubah}(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-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_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}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBhhhjThMubj{)}(hdrm_gpuvm_prepare_rangeh]j)}(hdrm_gpuvm_prepare_rangeh]hdrm_gpuvm_prepare_range}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjThMubj)}(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'jisbc.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&]noemphjjuh1jhj{ubj)}(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_prepare_rangeasbuh1hhjubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj?hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hexech]hexec}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjjmodnameN classnameNj+j.)}j1]jc.drm_gpuvm_prepare_rangeasbuh1hhjaubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjaubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(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&]noemphjjuh1jhj{ubj)}(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}(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+prepare all BOs mapped within a given rangeh]h+prepare all BOs mapped within a given range}(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&]uh1jhj;hhhjThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jFhhhj@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)}(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)}(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)}(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)}(hjh]hdrm_exec}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhjhMhj ubh locking context}(hj hhhNhNubeh}(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)}(hjLh]hu64 addr}(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.chMhjFubj)}(hhh]h)}(h%the start address within the VA spaceh]h%the start address within the VA space}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjubj)}(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&]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)}(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 }(hj2hhhNhNubh)}(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:523: ./drivers/gpu/drm/drm_gpuvm.chMhj2ubh mapped between }(hj2hhhNhNubj)}(h**addr**h]haddr}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh and }(hj2hhhNhNubj)}(h**addr**h]haddr}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh + }(hj2hhhNhNubj)}(h **range**h]hrange}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh; if }(hj2hhhNhNubj)}(h**num_fences**h]h num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh/ is zero drm_exec_lock_obj() is called instead.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjYhMhjsubh)}(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.chMhjsubh)}(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 hjsubeh}(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&]uh1jhjhhhW/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&]uh1jihjhhhjhM7ubj{)}(hdrm_gpuvm_exec_lockh]j)}(hdrm_gpuvm_exec_lockh]hdrm_gpuvm_exec_lock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM7ubj)}(h (struct drm_gpuvm_exec *vm_exec)h]j)}(hstruct drm_gpuvm_exec *vm_exech](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_gpuvm_exech]hdrm_gpuvm_exec}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjPmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_exec_lockasbuh1hhj,ubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,ubjH)}(hjKh]h*}(hj|hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj,ubj)}(hvm_exech]hvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM7ubeh}(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.chM8hjubj)}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hj hhhNhNubh)}(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_execuh1hhj hM8hj ubh wrapper}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hM8hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM8hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(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 }(hjhhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjrh]hdrm_gem_objects}(hjthhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjpubah}(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.chM9hjhubh the given }(hjhhhhNhNubh)}(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_gpuvmuh1hhjhM9hjhubh contains mappings of.}(hjhhhhNhNubeh}(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)}(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.chMAhjubh)}(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.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}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMvubjj)}(h h]h }(hjWhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjDhhhjVhMvubj{)}(hdrm_gpuvm_exec_lock_arrayh]j)}(hdrm_gpuvm_exec_lock_arrayh]hdrm_gpuvm_exec_lock_array}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjDhhhjVhMvubj)}(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'jksbc.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&]noemphjjuh1jhj}ubj)}(hstruct drm_gem_object **objsh](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_gpuvm_exec_lock_arrayasbuh1hhjubjj)}(h h]h }(hj3hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjAhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjH)}(hjKh]h*}(hjNhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjsh]hobjs}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(hunsigned int num_objsh](j)}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubj)}(hnum_objsh]hnum_objs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhjVhMvubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj@hhhjVhMvubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1jKhjVhMvhj=hhubj)}(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&]uh1jhj=hhhjVhMvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@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)}(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.chMwhjubj)}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hj0hhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j)}(hj:h]hdrm_gpuvm_exec}(hj<hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuvm_execuh1hhj,hMwhj0ubh wrapper}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hMwhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMwhjubj)}(hN``struct drm_gem_object **objs`` additional :c:type:`drm_gem_objects` to lock h](j)}(h ``struct drm_gem_object **objs``h]j)}(hjsh]hstruct drm_gem_object **objs}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMxhjmubj)}(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&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjubj)}(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&]uh1jhjubah}(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&]uh1jhjhMyhjubeh}(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: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 }(hjChhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjMh]hdrm_gem_objects}(hjOhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjKubah}(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.chMzhjCubh the given }(hjChhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjqh]h drm_gpuvm}(hjshhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjjhMzhjCubh3 contains mappings of, plus the ones given through }(hjChhhNhNubj)}(h**objs**h]hobjs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjhMzhjubh)}(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&]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_exec_lock_rangeh]j)}(hdrm_gpuvm_exec_lock_rangeh]hdrm_gpuvm_exec_lock_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h5(struct drm_gpuvm_exec *vm_exec, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm_exec *vm_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_gpuvm_exech]hdrm_gpuvm_exec}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjNmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_exec_lock_rangeasbuh1hhj*ubjj)}(h h]h }(hjlhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*ubjH)}(hjKh]h*}(hjzhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj*ubj)}(hvm_exech]hvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jhc.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&]noemphjjuh1jhj&ubj)}(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]jhc.drm_gpuvm_exec_lock_rangeasbuh1hhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(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)}(h+prepare all BOs mapped within a given rangeh]h+prepare all BOs mapped within a given range}(hjAhhhNhNubah}(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&]jjjjYjjYjjjuh1jFhhhj@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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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)}(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.chMhj|ubj)}(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&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjyubj)}(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&]uh1jhjhMhjyubj)}(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}(hj0hhhNhNubah}(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)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj]ubh)}(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 }(hjhhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjrh]hdrm_gem_objects}(hjthhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjpubah}(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.chMhjhubh mapped between }(hjhhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh and }(hjhhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh + }(hjhhhhNhNubj)}(h **range**h]hrange}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj]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-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.chMhj]ubeh}(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}(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 }(hj&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj%hMubj{)}(hdrm_gpuvm_validateh]j)}(hdrm_gpuvm_validateh]hdrm_gpuvm_validate}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj%hMubj)}(h0(struct drm_gpuvm *gpuvm, struct drm_exec *exec)h](j)}(hstruct drm_gpuvm *gpuvmh](jX)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjPubjj)}(h h]h }(hjahhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjPubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjtmodnameN classnameNj+j.)}j1]j4)}j'j:sbc.drm_gpuvm_validateasbuh1hhjPubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjPubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjPubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(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*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(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)}(h"validate all BOs marked as evictedh]h"validate all BOs marked as evicted}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMubeh}(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)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjcubj)}(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)}(hjh]hdrm_exec}(hj hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(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&]uh1jhjcubh)}(h**Description**h]j)}(hjBh]h Description}(hjDhhhNhNubah}(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.chMhjcubh)}(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 }(hjXhhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hjbh]h drm_gpuvm_ops}(hjdhhhNhNubah}(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.chMhjXubhS::vm_bo_validate callback for all evicted buffer objects being mapped in the given }(hjXhhhNhNubh)}(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_gpuvmuh1hhjhMhjXubh.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjcubh)}(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.chMhjcubh)}(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.chMhjcubeh}(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&]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_resv_add_fenceh]j)}(hdrm_gpuvm_resv_add_fenceh]hdrm_gpuvm_resv_add_fence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(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}(hj1hhhNhNubah}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjQmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_gpuvm_resv_add_fenceasbuh1hhj-ubjj)}(h h]h }(hjohhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-ubjH)}(hjKh]h*}(hj}hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj-ubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(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]jkc.drm_gpuvm_resv_add_fenceasbuh1hhjubjj)}(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&]noemphjjuh1jhj)ubj)}(hstruct dma_fence *fenceh](jX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj3modnameN classnameNj+j.)}j1]jkc.drm_gpuvm_resv_add_fenceasbuh1hhjubjj)}(h h]h }(hjOhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj]hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hfenceh]hfence}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(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]jkc.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&]noemphjjuh1jhj)ubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jkc.drm_gpuvm_resv_add_fenceasbuh1hhjubjj)}(h h]h }(hj"hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h extobj_usageh]h extobj_usage}(hj0hhhNhNubah}(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,add fence to private and all extobj dma-resvh]h,add fence to private and all extobj dma-resv}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jFhhhj@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)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjvubj)}(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 }(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_execuh1hhj hMhjubh locking context}(hjhhhNhNubeh}(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)}(hjSh]hstruct dma_fence *fence}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjMubj)}(hhh]h)}(h fence to addh]h fence to add}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjubj)}(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&]uh1jhjvubeh}(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}(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 }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj,hMubh)}(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]j4)}j'drm_gpuvm_bo_createsbc.drm_gpuvm_bo_createasbuh1hhjhhhj,hMubjj)}(h h]h }(hj_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj,hMubjH)}(hjKh]h*}(hjmhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhj,hMubj{)}(hdrm_gpuvm_bo_createh]j)}(hj\h]hdrm_gpuvm_bo_create}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj,hMubj)}(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]jZc.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}(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&]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]jZc.drm_gpuvm_bo_createasbuh1hhjubjj)}(h h]h }(hjEhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjShhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(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,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&]uh1jhjhhhj,hMubeh}(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)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjhMhjubh the }(hjhhhNhNubj)}(h**obj**h]hobj}(hjhhhNhNubah}(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)}(hj9h]hstruct drm_gem_object *obj}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj3ubj)}(hhh]h)}(h;The :c:type:`drm_gem_object` being mapped in the **gpuvm**.h](hThe }(hjRhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj\h]hdrm_gem_object}(hj^hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjNhMhjRubh being mapped in the }(hjRhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjNhMhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(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.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)}(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$hj ubh on success, NULL on failure}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0hM$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}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM~ubjj)}(h h]h }(hjihhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjWhhhjhhM~ubj{)}(hdrm_gpuvm_bo_puth]j)}(hdrm_gpuvm_bo_puth]hdrm_gpuvm_bo_put}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWhhhjhhM~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'j}sbc.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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjWhhhjhhM~ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjShhhjhhM~ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jKhjhhM~hjPhhubj)}(hhh]h)}(h$drop a struct drm_gpuvm_bo referenceh]h$drop a struct drm_gpuvm_bo reference}(hjhhhNhNubah}(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&]uh1jhjPhhhjhhM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1jFhhhj@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)}(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.chMhj6ubj)}(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)}(hj[h]hstruct drm_gpuvm_bo *vm_bo}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjUubj)}(hhh]h)}(h6the :c:type:`drm_gpuvm_bo` to release the reference ofh](hthe }(hjthhhNhNubh)}(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_bouh1hhjphMhjtubh to release the reference of}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjRubah}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj6ubh)}(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.chMhj6ubh)}(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 }(hjhhhNhNubh)}(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.chMhjubhX 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).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj6ubh)}(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.chMhj6ubh)}(h **Return**h]j)}(hj3h]hReturn}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj6ubh)}(h-true if vm_bo was destroyed, false otherwise.h]h-true if vm_bo was destroyed, false otherwise.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj6ubeh}(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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhW/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&]uh1jihjthhhjhMubj{)}(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&]jjuh1jzhjthhhjhMubj)}(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&]jjuh1jhjthhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjphhhjhMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjmhhubj)}(hhh]h)}(h:drop a struct drm_gpuvm_bo reference with deferred cleanuph]h:drop a struct drm_gpuvm_bo reference with deferred cleanup}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhj4hhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1jFhhhj@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)}(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)}(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.chMhjSubh)}(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.chMhjSubh)}(h2true if vm_bo is being destroyed, false otherwise.h]h2true if vm_bo is being destroyed, false otherwise.}(hj4hhhNhNubah}(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_deferred_cleanup (C function)c.drm_gpuvm_bo_deferred_cleanuphNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj2hMhj6ubh the }(hj6hhhNhNubj)}(h**obj**h]hobj}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is mapped in.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubj)}(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)}(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:523: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]h)}(h;The :c:type:`drm_gem_object` being mapped in the **gpuvm**.h](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_objectuh1hhjhMhjubh being mapped in the }(hjhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(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)}(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)}(hFind 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 :c:type:`drm_gpuvm_bo` accordingly.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.chMhjubh+ representing the combination of the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj?h]h drm_gpuvm}(hjAhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj8hMhjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjbh]hdrm_gem_object}(hjdhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhj8hMhjubh1. If found, increases the reference count 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^ja drm_gpuvm_bouh1hhj8hMhjubh accordingly.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj8hMhjubh)}(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)}(hCa pointer to the :c:type:`drm_gpuvm_bo` on success, NULL on failureh](ha pointer to 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 on success, NULL on failure}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_gpuvm_bo_obtain_locked (C function)c.drm_gpuvm_bo_obtain_lockedhNtauh1j5hj@hhhNhNubjG)}(hhh](jL)}(hfstruct drm_gpuvm_bo * drm_gpuvm_bo_obtain_locked (struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h]jR)}(hdstruct drm_gpuvm_bo *drm_gpuvm_bo_obtain_locked(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)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 }(hj$hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj#hM-ubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj7modnameN classnameNj+j.)}j1]j4)}j'drm_gpuvm_bo_obtain_lockedsbc.drm_gpuvm_bo_obtain_lockedasbuh1hhjhhhj#hM-ubjj)}(h h]h }(hjVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj#hM-ubjH)}(hjKh]h*}(hjdhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhj#hM-ubj{)}(hdrm_gpuvm_bo_obtain_lockedh]j)}(hjSh]hdrm_gpuvm_bo_obtain_locked}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj#hM-ubj)}(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]jQc.drm_gpuvm_bo_obtain_lockedasbuh1hhjubjj)}(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_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' reftargetj modnameN classnameNj+j.)}j1]jQc.drm_gpuvm_bo_obtain_lockedasbuh1hhjubjj)}(h h]h }(hj<hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjJhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(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)}(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]jQc.drm_gpuvm_bo_obtain_lockedasbja drm_gpuvm_bouh1hhjJhMhjubh 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_gpuvmuh1hhjJhMhjubh 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_objectuh1hhjJhMhjubeh}(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&]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** 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 :c:type:`drm_gpuvm_bo` accordingly. If not found, allocates a new :c:type:`drm_gpuvm_bo`. Requires the lock for the GEMs gpuva list. A new :c:type:`drm_gpuvm_bo` is added to the GEMs gpuva list. **Return** a pointer to the :c:type:`drm_gpuvm_bo` on success, an ERR_PTR on failureh](h)}(h**Parameters**h]j)}(hj h]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.chM1hjubj)}(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)}(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)}(h1The :c:type:`drm_gpuvm` the **obj** is mapped in.h](hThe }(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_gpuvmuh1hhjAhM/hjEubh the }(hjEhhhNhNubj)}(h**obj**h]hobj}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh is mapped in.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhM/hjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhM/hj#ubj)}(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)}(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:523: ./drivers/gpu/drm/drm_gpuvm.chM0hjubj)}(hhh]h)}(h;The :c:type:`drm_gem_object` being mapped in the **gpuvm**.h](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_objectuh1hhjhM0hjubh being mapped in the }(hjhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hj#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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM2hjubh)}(hXFind 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 :c:type:`drm_gpuvm_bo` accordingly. If not found, allocates a new :c:type:`drm_gpuvm_bo`.h](h Find the }(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_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM1hj ubh+ representing the combination of the given }(hj hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjNh]h drm_gpuvm}(hjPhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjGhM1hj ubh and }(hj hhhNhNubh)}(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_objectuh1hhjGhM1hj ubh1. If found, increases the reference count of 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_bouh1hhjGhM1hj ubh, accordingly. If not found, allocates a 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_bouh1hhjGhM1hj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhM1hjubh)}(h*Requires the lock for the GEMs gpuva list.h]h*Requires the lock for the GEMs gpuva list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM6hjubh)}(h=A new :c:type:`drm_gpuvm_bo` is added to the GEMs gpuva list.h](hA new }(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.chM8hjubh! is added to the GEMs gpuva list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM8hjubh)}(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.chM:hjubh)}(hIa pointer to the :c:type:`drm_gpuvm_bo` on success, an ERR_PTR on failureh](ha pointer to the }(hj7hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjAh]h drm_gpuvm_bo}(hjChhhNhNubah}(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;hj7ubh" on success, an ERR_PTR on failure}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hM;hjubeh}(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}(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}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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*}(hjMhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(h__vm_boh]h__vm_bo}(hjZhhhNhNubah}(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]j|ah ](jjeh"]h$]h&]jj)jhuh1jKhjhM[hj~hhubj)}(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_bouh1hhjJhMhjubh 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_gpuvmuh1hhjJhMhjubh 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_objectuh1hhjJhMhjubeh}(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&]uh1jhj~hhhjhM[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj@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)}(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_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)}(hj/h]hstruct drm_gpuvm_bo *__vm_bo}(hj1hhhNhNubah}(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$A pre-allocated struct drm_gpuvm_bo.h]h$A pre-allocated struct drm_gpuvm_bo.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM]hjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhM]hj&ubah}(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&]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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, reference count is decreased. If not found }(hjhhhNhNubj)}(h **__vm_bo**h]h__vm_bo}(hj'hhhNhNubah}(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}(hjGhhhNhNubah}(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)}(hjjh]h drm_gpuvm_bo}(hjlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjhubah}(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}(hjhhhNhNubah}(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}(hj1hhhNhNubah}(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-hhhj?hMubj{)}(hdrm_gpuvm_bo_extobj_addh]j)}(hdrm_gpuvm_bo_extobj_addh]hdrm_gpuvm_bo_extobj_add}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhhj?hMubj)}(h(struct drm_gpuvm_bo *vm_bo)h]j)}(hstruct drm_gpuvm_bo *vm_boh](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_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'jTsbc.drm_gpuvm_bo_extobj_addasbuh1hhjjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjjubj)}(hvm_boh]hvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubah}(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)}(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_bouh1hhjJhMhjubh to its }(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+jja drm_gpuvmuh1hhjJhMhjubh’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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj?hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1jFhhhj@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&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjXubj)}(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)}(hj}h]hstruct drm_gpuvm_bo *vm_bo}(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.chMhjwubj)}(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&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubah}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjXubh)}(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 }(hjhhhNhNubj)}(h **vm_bo**h]hvm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to its }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj0h]h drm_gpuvm}(hj2hhhNhNubah}(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.chMhjubhE’s extobj list if not on the list already and if the corresponding }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjTh]hdrm_gem_object}(hjVhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gem_objectuh1hhjMhMhjubh! is an external object, actually.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMhMhjXubeh}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj$hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvm_boh]hvm_bo}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool evicth](j)}(hj*h]hbool}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjj)}(h h]h }(hjWhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjFubj)}(hevicth]hevict}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(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]jc.drm_gpuvm_bo_evictasbja drm_gpuvm_bouh1hhjJhMhjubh 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_gpuvmsuh1hhjJhMhjubh 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)}(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)}(h+the :c:type:`drm_gpuvm_bo` to add or removeh](hthe }(hj4hhhNhNubh)}(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_bouh1hhj0hMhj4ubh to add or remove}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(h7``bool evict`` indicates whether the object is evicted h](j)}(h``bool evict``h]j)}(hjwh]h bool evict}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjqubj)}(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&]uh1jhjqubeh}(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)}(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_gpuvmuh1hhjhMhjubh’s evicted list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(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}(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{)}(hdrm_gpuva_inserth]j)}(hdrm_gpuva_inserth]hdrm_gpuva_insert}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhjKhMubj)}(h/(struct drm_gpuvm *gpuvm, struct drm_gpuva *va)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_gpuva_insertasbuh1hhjvubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjvubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjvubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubj)}(hstruct drm_gpuva *vah](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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]jc.drm_gpuva_insertasbuh1hhjubjj)}(h h]h }(hj(hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj6hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvah]hva}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj5hhhjKhMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jKhjKhMhj2hhubj)}(hhh]h)}(hinsert a :c:type:`drm_gpuva`h](h insert a }(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.)}j1]jc.drm_gpuva_insertasbja drm_gpuvauh1hhjJhMhjmubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhMubeh}(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)}(hhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,hhhj=hMubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjQmodnameN classnameNj+j.)}j1]j4)}j'drm_gpuva_find_firstsbc.drm_gpuva_find_firstasbuh1hhj,hhhj=hMubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj,hhhj=hMubjH)}(hjKh]h*}(hj~hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj,hhhj=hMubj{)}(hdrm_gpuva_find_firsth]j)}(hjmh]hdrm_gpuva_find_first}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj=hMubj)}(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]jkc.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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jkc.drm_gpuva_find_firstasbuh1hhjubjj)}(h h]h }(hj;hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(haddrh]haddr}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjgmodnameN classnameNj+j.)}j1]jkc.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&]jjuh1jhj,hhhj=hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj(hhhj=hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jKhj=hMhj%hhubj)}(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]jkc.drm_gpuva_find_firstasbja drm_gpuvauh1hhjJhMhjubh 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&]uh1jhj%hhhj=hMubeh}(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)}(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)}(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)}(h$the :c:type:`drm_gpuvm` to search inh](hthe }(hj=hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjGh]h drm_gpuvm}(hjIhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj9hMhj=ubh to search in}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(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&]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 :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&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hj:h]hReturn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(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 }(hjPhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjZh]h drm_gpuva}(hj\hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjXubah}(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.chMhjPubh within the given range}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhMhjubeh}(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*}(hjhhhNhNubah}(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}(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}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj<modnameN classnameNj+j.)}j1]jc.drm_gpuva_findasbuh1hhjubjj)}(h h]h }(hjXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjfhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hjshhhNhNubah}(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_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&]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_findasbuh1hhjubjj)}(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)}(hfind a :c:type:`drm_gpuva`h](hfind a }(hj-hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj7h]h drm_gpuva}(hj9hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gpuva_findasbja drm_gpuvauh1hhjJhMhj-ubeh}(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&]jjjjijjijjjuh1jFhhhj@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)}(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:523: ./drivers/gpu/drm/drm_gpuvm.chMhjmubj)}(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)}(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&]uh1jhjhMhjubj)}(h-``u64 range`` the :c:type:`drm_gpuvas` range 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.chMhjDubj)}(hhh]h)}(hthe :c:type:`drm_gpuvas` rangeh](hthe }(hjchhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjmh]h drm_gpuvas}(hjohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvasuh1hhj_hMhjcubh range}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjubeh}(h]h ]h"]h$]h&]uh1jhjmubh)}(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.chMhjmubh)}(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)}(hjh]haddr}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaaddruh1hhjhMhjubh 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^jarangeuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjmubeh}(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}(hjR hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjN 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&]uh1jihjN hhhj_ hMubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hjq hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjs modnameN classnameNj+j.)}j1]j4)}j'drm_gpuva_find_prevsbc.drm_gpuva_find_prevasbuh1hhjN hhhj_ hMubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjN hhhj_ hMubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjN 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&]jjuh1jzhjN 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*}(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)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hj? hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj< ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjA modnameN classnameNj+j.)}j1]j c.drm_gpuva_find_prevasbuh1hhj8 ubjj)}(h h]h }(hj] hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj8 ubj)}(hstarth]hstart}(hjk hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8 ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjN hhhj_ hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjJ hhhj_ hMubah}(h]jE ah ](jjeh"]h$]h&]jj)jhuh1jKhj_ hMhjG 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_gpuvauh1hhjJhMhj 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&]uh1jhjG 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 }(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 to search in}(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/``u64 start`` the given GPU VA's start address h](j)}(h ``u64 start``h]j)}(hjZ h]h u64 start}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjT ubj)}(hhh]h)}(h the given GPU VA's start addressh]h"the given GPU VA’s start address}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo hMhjp ubah}(h]h ]h"]h$]h&]uh1jhjT ubeh}(h]h ]h"]h$]h&]uh1jhjo 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}(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)}(hDa pointer to the found :c:type:`drm_gpuva` or NULL if none was foundh](ha pointer to the found }(hj' hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj1 h]h drm_gpuva}(hj3 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 or NULL if none was found}(hj' hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjN 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}(hjy hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhju 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&]uh1jihju 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_nextasbuh1hhju hhhj hMubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihju hhhj hMubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhju 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&]jjuh1jzhju 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' reftargetj modnameN classnameNj+j.)}j1]j c.drm_gpuva_find_nextasbuh1hhj 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}(hjJ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hu64 endh](h)}(hhh]j)}(hu64h]hu64}(hjf hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjh 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&]jjuh1jhju hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjq hhhj hMubah}(h]jl ah ](jjeh"]h$]h&]jj)jhuh1jKhj hMhjn 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_gpuvauh1hhjJhMhj 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&]uh1jhjn 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 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)}(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)}(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)}(h$the :c:type:`drm_gpuvm` to search inh](hthe }(hj>hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjHh]h drm_gpuvm}(hjJhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhj:hMhj>ubh to search in}(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 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.chMhj{ubj)}(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&]uh1jhj{ubeh}(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)}(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.}(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)}(hj8h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(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 }(hjNhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjXh]h drm_gpuva}(hjZhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjVubah}(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.chMhjNubh or NULL if none was found}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjuhMhjubeh}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj(hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjSmodnameN classnameNj+j.)}j1]jc.drm_gpuvm_interval_emptyasbuh1hhjJubjj)}(h h]h }(hjohhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJubj)}(haddrh]haddr}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(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_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}(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)}(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)}(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.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)}(hj0h]hstruct drm_gpuvm *gpuvm}(hj2hhhNhNubah}(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 check the range forh](hthe }(hjIhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjSh]h drm_gpuvm}(hjUhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjEhMhjIubh to check the range for}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj'ubj)}(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&]uh1jhjhMhj'ubj)}(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&]uh1jhjhMhj'ubeh}(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}(hjhhhNhNubah}(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}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMubjj)}(h h]h }(hjThhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjAhhhjShMubj{)}(h drm_gpuva_maph]j)}(h drm_gpuva_maph]h drm_gpuva_map}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjAhhhjShMubj)}(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&]uh1jWhj~ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubh)}(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'jhsbc.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)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(hstruct drm_gpuva *vah](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_mapasbuh1hhjubjj)}(h h]h }(hj0hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj>hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hvah]hva}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(h!const struct drm_gpuva_op_map *oph](jX)}(hj h]hconst}(hjdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj`ubjj)}(h h]h }(hjqhhhNhNubah}(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&]noemphjjuh1jhjzubeh}(h]h ]h"]h$]h&]jjuh1jhjAhhhjShMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj=hhhjShMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jKhjShMhj:hhubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]jc.drm_gpuva_mapasbja drm_gpuvauh1hhjJhMhjubh according to a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op_map`h]j)}(hj2h]hdrm_gpuva_op_map}(hj4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j&jadrm_gpuva_op_mapuh1hhjJhMhjubeh}(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:hhhjShMubeh}(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)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjcubj)}(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)}(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 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)}(hj<h]h!const struct drm_gpuva_op_map *op}(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.chMhj6ubj)}(hhh]h)}(h8the :c:type:`drm_gpuva_op_map` to initialize **va** withh](hthe }(hjUhhhNhNubh)}(h:c:type:`drm_gpuva_op_map`h]j)}(hj_h]hdrm_gpuva_op_map}(hjahhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_op_mapuh1hhjQhMhjUubh to initialize }(hjUhhhNhNubj)}(h**va**h]hva}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh with}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMhjcubh)}(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}(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.chMhjcubeh}(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}(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 }(hj6hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj#hhhj5hM ubj{)}(hdrm_gpuva_remaph]j)}(hdrm_gpuva_remaph]hdrm_gpuva_remap}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#hhhj5hM 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}(hjdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj`ubjj)}(h h]h }(hjqhhhNhNubah}(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'jJsbc.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&]noemphjjuh1jhj\ubj)}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hnexth]hnext}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(h#const struct drm_gpuva_op_remap *oph](jX)}(hj h]hconst}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubjj)}(h h]h }(hjShhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubjX)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubjj)}(h h]h }(hjnhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubh)}(hhh]j)}(hdrm_gpuva_op_remaph]hdrm_gpuva_op_remap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jc.drm_gpuva_remapasbuh1hhjBubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjBubj)}(hoph]hop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhj#hhhj5hM ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj5hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj5hM hjhhubj)}(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)}(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_remapasbja drm_gpuvauh1hhjJhMhjubh according to a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op_remap`h]j)}(hjh]hdrm_gpuva_op_remap}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+jjadrm_gpuva_op_remapuh1hhjJhMhjubeh}(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&]uh1jhjhhhj5hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1jFhhhj@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)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjEubj)}(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)}(hjjh]hstruct drm_gpuva *prev}(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)}(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&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhM hjaubj)}(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 hjaubj)}(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}(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 hjubj)}(hhh]h)}(hIthe :c:type:`drm_gpuva_op_remap` to initialize **prev** and **next** withh](hthe }(hj;hhhNhNubh)}(h:c:type:`drm_gpuva_op_remap`h]j)}(hjEh]hdrm_gpuva_op_remap}(hjGhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_op_remapuh1hhj7hM hj;ubh to initialize }(hj;hhhNhNubj)}(h**prev**h]hprev}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh and }(hj;hhhNhNubj)}(h**next**h]hnext}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh with}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj7hM hj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hM hjaubeh}(h]h ]h"]h$]h&]uh1jhjEubh)}(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 hjEubh)}(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 hjEubeh}(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}(hj0hhhNhNubah}(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_unmaph]j)}(hdrm_gpuva_unmaph]hdrm_gpuva_unmap}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj>hM" ubj)}(h%(const struct drm_gpuva_op_unmap *op)h]j)}(h#const struct drm_gpuva_op_unmap *oph](jX)}(hj h]hconst}(hjmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjiubjj)}(h h]h }(hjzhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubjX)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjiubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubh)}(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'jSsbc.drm_gpuva_unmapasbuh1hhjiubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjiubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjiubj)}(hoph]hop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubah}(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)}(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)}(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_unmapasbja drm_gpuvauh1hhjJhMhj ubh according to a }(hj hhhNhNubh)}(h:c:type:`drm_gpuva_op_unmap`h]j)}(hj=h]hdrm_gpuva_op_unmap}(hj?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j1jadrm_gpuva_op_unmapuh1hhjJhMhj ubeh}(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&]uh1jhj%hhhj>hM" ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1jFhhhj@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)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM& hjnubj)}(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&]uh1jhjnubh)}(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& hjnubh)}(hQRemoves the :c:type:`drm_gpuva` associated with the :c:type:`drm_gpuva_op_unmap`.h](h Removes the }(hj*hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj4h]h drm_gpuva}(hj6hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj2ubah}(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% hj*ubh associated with the }(hj*hhhNhNubh)}(h:c:type:`drm_gpuva_op_unmap`h]j)}(hjXh]hdrm_gpuva_op_unmap}(hjZhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_op_unmapuh1hhjQhM% hj*ubh.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQhM% hjnubeh}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj(hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hgpuvmh]hgpuvm}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *privh](j)}(hvoidh]hvoid}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjj)}(h h]h }(hj\hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJubjH)}(hjKh]h*}(hjjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjJubj)}(hprivh]hpriv}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(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]jc.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 }(hj,hhhNhNubh)}(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.)}j1]jc.drm_gpuvm_sm_mapasbja drm_gpuva_opuh1hhjJhMhj,ubh split/merge steps}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMQ hj)hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMQ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1jFhhhj@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)}(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.chMU hjpubj)}(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&]uh1jhjubah}(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&]uh1hhjhMS hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMS 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)}(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.chMT hj$ubj)}(hhh]h)}(hptr to struct drm_gpuvm_map_reqh]hptr to struct drm_gpuvm_map_req}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMT hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMT hjubeh}(h]h ]h"]h$]h&]uh1jhjpubh)}(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:523: ./drivers/gpu/drm/drm_gpuvm.chMV hjpubh)}(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 }(hj{hhhNhNubh)}(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 hj{ubhB to call back into the driver providing the split and merge steps.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMU hjpubh)}(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)}(hjh]h drm_gpuvm}(hj hhhNhNubah}(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 drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMY hjpubh)}(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.}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMb hjpubh)}(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.}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chMf hjpubh)}(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.chMj hjpubh)}(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.chMk hjpubeh}(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*}(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)}(h void *privh](j)}(hvoidh]hvoid}(hj9!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5!ubjj)}(h h]h }(hjG!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5!ubjH)}(hjKh]h*}(hjU!hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj5!ubj)}(hprivh]hpriv}(hjb!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5!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_unmapasbuh1hhjw!ubjj)}(h h]h }(hj!hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjw!ubj)}(hreq_addrh]hreq_addr}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw!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 }(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_sm_unmapasbja drm_gpuva_opsuh1hhjJhMhj"ubh to split on unmap}(hj"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&]jjjj\"jj\"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)}(hjf"h]h Parameters}(hjh"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd"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)}(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}(hj3#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/#hM hj0#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)}(hjS#h]h u64 req_range}(hjU#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjM#ubj)}(hhh]h)}(h"the range of the mappings to unmaph]h"the range of the mappings to unmap}(hjl#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh#hM hji#ubah}(h]h ]h"]h$]h&]uh1jhjM#ubeh}(h]h ]h"]h$]h&]uh1jhjh#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)}(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 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.}(hjN$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.}(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)}(h **Return**h]j)}(hjn$h]hReturn}(hjp$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl$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 }(hj.%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj$ubjH)}(hjKh]h*}(hj<%hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj$ubj)}(hgpuvmh]hgpuvm}(hjI%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct drm_exec *exech](jX)}(hjh]hstruct}(hjb%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj^%ubjj)}(h h]h }(hjo%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]j*%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 }(hj0&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&ubh)}(hhh]j)}(hdrm_gpuvm_map_reqh]hdrm_gpuvm_map_req}(hjA&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>&ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjC&modnameN classnameNj+j.)}j1]j*%c.drm_gpuvm_sm_map_exec_lockasbuh1hhj&ubjj)}(h h]h }(hj_&hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&ubjH)}(hjKh]h*}(hjm&hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj&ubj)}(hreqh]hreq}(hjz&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)}(hjA'h]hstruct drm_exec *exec}(hjC'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 :c:type:`drm_exec` locking contexth](hthe }(hjZ'hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hjd'h]hdrm_exec}(hjf'hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjb'ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhjV'hM hjZ'ubh locking context}(hjZ'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjV'hM hjW'ubah}(h]h ]h"]h$]h&]uh1jhj;'ubeh}(h]h ]h"]h$]h&]uh1jhjV'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}(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 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.}(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 expected usage is::h]hThe expected usage is:}(hj6(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; } } }}hjE(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:}(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&ubjP:)}(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.}(hjj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjf(ubah}(h]h ]h"]h$]h&]uh1jzhjc(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&]uh1jzhjc(ubeh}(h]h ]h"]h$]h&]j=j=j=hj=j]uh1jO: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 }(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' reftargetjB)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*}(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)}(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]j\)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&]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_unmap_exec_lockasbuh1hhj*ubjj)}(h h]h }(hj%*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*ubj)}(hreq_addrh]hreq_addr}(hj3*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(h u64 req_rangeh](h)}(hhh]j)}(hu64h]hu64}(hjO*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL*ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjQ*modnameN classnameNj+j.)}j1]j\)c.drm_gpuvm_sm_unmap_exec_lockasbuh1hhjH*ubjj)}(h h]h }(hjm*hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjH*ubj)}(h req_rangeh]h req_range}(hj{*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH*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 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)}(hjB+h]hstruct drm_exec *exec}(hjD+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 :c:type:`drm_exec` locking contexth](hthe }(hj[+hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hje+h]hdrm_exec}(hjg+hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjc+ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_execuh1hhjW+hM hj[+ubh locking context}(hj[+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjW+hM hjX+ubah}(h]h ]h"]h$]h&]uh1jhj<+ubeh}(h]h ]h"]h$]h&]uh1jhjW+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}(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)}(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().}(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)}(h4See drm_gpuvm_sm_map_exec_lock() for expected usage.h]h4See drm_gpuvm_sm_map_exec_lock() for expected usage.}(hj7,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)}(hjH,h]hReturn}(hjJ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF,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 }(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_gpuvm_sm_map_ops_createasbuh1hhj-ubjj)}(h h]h }(hjC-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-ubjH)}(hjKh]h*}(hjQ-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}(hjw-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjs-ubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjs-ubjX)}(hjh]hstruct}(hj-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjs-ubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjs-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_createasbuh1hhjs-ubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjs-ubjH)}(hjKh]h*}(hj-hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjs-ubj)}(hreqh]hreq}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs-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 }(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_sm_map_ops_createasbja drm_gpuva_opsuh1hhjJhMhj.ubh to split and merge}(hj.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&]jjjjS.jjS.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)}(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 hjW.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&]uh1jhjz.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjv.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&]uh1jhjv.ubeh}(h]h ]h"]h$]h&]uh1jhj.hM hjs.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 hjs.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:523: ./drivers/gpu/drm/drm_gpuvm.chM hjW.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.}(hj)/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjW.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 }(hj8/hhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j)}(hjB/h]hdrm_gpuva_for_each_op}(hjD/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 hj8/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.}(hj8/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_/hM hjW.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.}(hjj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjW.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 }(hjy/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 hjy/ubhw’s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the }(hjy/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 hjy/ubh’s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hjy/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/hM hjW.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 hjW.ubh)}(h **Return**h]j)}(hj%0h]hReturn}(hj'0hhhNhNubah}(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 hjW.ubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hj;0hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjE0h]h drm_gpuva_ops}(hjG0hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjC0ubah}(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;0ubh" on success, an ERR_PTR on failure}(hj;0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjb0hM hjW.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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(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}(hj1hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj1ubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj1ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj%1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"1ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj'1modnameN classnameNj+j.)}j1]j0c.drm_gpuvm_madvise_ops_createasbuh1hhj1ubjj)}(h h]h }(hjC1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj1ubjH)}(hjKh]h*}(hjQ1hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj1ubj)}(hgpuvmh]hgpuvm}(hj^1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(h#const struct drm_gpuvm_map_req *reqh](jX)}(hj h]hconst}(hjw1hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjs1ubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjs1ubjX)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjs1ubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjs1ubh)}(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_createasbuh1hhjs1ubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjs1ubjH)}(hjKh]h*}(hj1hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjs1ubj)}(hreqh]hreq}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(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 }(hj2hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj2h]h drm_gpuva_ops}(hj2hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j0c.drm_gpuvm_madvise_ops_createasbja drm_gpuva_opsuh1hhjJhMhj2ubh to split}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj2hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjS2jjS2jjjuh1jFhhhj@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)}(hj]2h]h Parameters}(hj_2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[2ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjW2ubj)}(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|2h]hstruct drm_gpuvm *gpuvm}(hj~2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjv2ubj)}(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&]uh1jhjv2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM hjs2ubj)}(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}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM hjs2ubeh}(h]h ]h"]h$]h&]uh1jhjW2ubh)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjW2ubh)}(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.}(hj)3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjW2ubh)}(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 }(hj83hhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j)}(hjB3h]hdrm_gpuva_for_each_op}(hjD3hhhNhNubah}(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 hj83ubh 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.}(hj83hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_3hM hjW2ubh)}(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.}(hjj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hjW2ubh)}(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 }(hjy3hhhNhNubh)}(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 hjy3ubhw’s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the }(hjy3hhhNhNubh)}(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 hjy3ubh’s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hjy3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3hM hjW2ubh)}(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)}(hj3h]hdrm_gpuva_ops_free}(hj3hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_ops_freeuh1hhj3hM hj3ubh.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3hM hjW2ubh)}(h **Return**h]j)}(hj%4h]hReturn}(hj'4hhhNhNubah}(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 hjW2ubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hj;4hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjE4h]h drm_gpuva_ops}(hjG4hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjC4ubah}(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;4ubh" on success, an ERR_PTR on failure}(hj;4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjb4hM hjW2ubeh}(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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(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}(hj5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj5ubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj%5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"5ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj'5modnameN classnameNj+j.)}j1]j4c.drm_gpuvm_sm_unmap_ops_createasbuh1hhj5ubjj)}(h h]h }(hjC5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj5ubjH)}(hjKh]h*}(hjQ5hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj5ubj)}(hgpuvmh]hgpuvm}(hj^5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(h u64 req_addrh](h)}(hhh]j)}(hu64h]hu64}(hjz5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw5ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj|5modnameN classnameNj+j.)}j1]j4c.drm_gpuvm_sm_unmap_ops_createasbuh1hhjs5ubjj)}(h h]h }(hj5hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjs5ubj)}(hreq_addrh]hreq_addr}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubeh}(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 }(hj6hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj"6h]h drm_gpuva_ops}(hj$6hhhNhNubah}(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_opsuh1hhjJhMhj6ubh to split on unmap}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj6hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjX6jjX6jjjuh1jFhhhj@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)}(hjb6h]h Parameters}(hjd6hhhNhNubah}(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 hj\6ubj)}(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 hj{6ubj)}(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&]uh1jhj{6ubeh}(h]h ]h"]h$]h&]uh1jhj6hM hjx6ubj)}(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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hM hj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hM hjx6ubj)}(h5``u64 req_range`` the range of the mappings to unmap h](j)}(h``u64 req_range``h]j)}(hj7h]h u64 req_range}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj7ubj)}(hhh]h)}(h"the range of the mappings to unmaph]h"the range of the mappings to unmap}(hj/7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+7hM hj,7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj+7hM hjx6ubeh}(h]h ]h"]h$]h&]uh1jhj\6ubh)}(h**Description**h]j)}(hjQ7h]h Description}(hjS7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO7ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj\6ubh)}(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.}(hjg7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj\6ubh)}(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 }(hjv7hhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j)}(hj7h]hdrm_gpuva_for_each_op}(hj7hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj~7ubah}(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 hjv7ubh 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.}(hjv7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj7hM hj\6ubh)}(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 hj\6ubh)}(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)}(hj7h]h drm_gpuvm}(hj7hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj7ubah}(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 hj\6ubh)}(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)}(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 hj 8ubh, they must be freed with }(hj 8hhhNhNubh)}(h:c:type:`drm_gpuva_ops_free`h]j)}(hj:8h]hdrm_gpuva_ops_free}(hj<8hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj88ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpuva_ops_freeuh1hhj38hM hj 8ubh.}(hj 8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj38hM hj\6ubh)}(h **Return**h]j)}(hjc8h]hReturn}(hje8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja8ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj\6ubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hjy8hhhNhNubh)}(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 hjy8ubh" on success, an ERR_PTR on failure}(hjy8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj8hM hj\6ubeh}(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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj8modnameN 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*}(hj9hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj8hhhj8hM" ubj{)}(hdrm_gpuvm_prefetch_ops_createh]j)}(hj9h]hdrm_gpuvm_prefetch_ops_create}(hj*9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&9ubah}(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}(hjE9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjA9ubjj)}(h h]h }(hjR9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjA9ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjc9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`9ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetje9modnameN classnameNj+j.)}j1]j9c.drm_gpuvm_prefetch_ops_createasbuh1hhjA9ubjj)}(h h]h }(hj9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjA9ubjH)}(hjKh]h*}(hj9hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjA9ubj)}(hgpuvmh]hgpuvm}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=9ubj)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj9modnameN classnameNj+j.)}j1]j9c.drm_gpuvm_prefetch_ops_createasbuh1hhj9ubjj)}(h h]h }(hj9hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9ubj)}(haddrh]haddr}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=9ubj)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj:modnameN classnameNj+j.)}j1]j9c.drm_gpuvm_prefetch_ops_createasbuh1hhj9ubjj)}(h h]h }(hj:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9ubj)}(hrangeh]hrange}(hj,:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=9ubeh}(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 }(hjV:hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj`:h]h drm_gpuva_ops}(hjb:hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj^:ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j.)}j1]j9c.drm_gpuvm_prefetch_ops_createasbja drm_gpuva_opsuh1hhjJhMhjV:ubh to prefetch}(hjV:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM" hjS: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)}(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.chM$ hj;ubj)}(hhh]h)}(h*the start address of the range to prefetchh]h*the start address of the range to prefetch}(hj4;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0;hM$ hj1;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj0;hM$ hj:ubj)}(h4``u64 range`` the range of the mappings to prefetch h](j)}(h ``u64 range``h]j)}(hjT;h]h u64 range}(hjV;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM% hjN;ubj)}(hhh]h)}(h%the range of the mappings to prefetchh]h%the range of the mappings to prefetch}(hjm;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji;hM% hjj;ubah}(h]h ]h"]h$]h&]uh1jhjN;ubeh}(h]h ]h"]h$]h&]uh1jhji;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}(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)}(h **Return**h]j)}(hjL<h]hReturn}(hjN<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ<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 }(hjb<hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjl<h]h drm_gpuva_ops}(hjn<hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjj<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 hjb<ubh" on success, an ERR_PTR on failure}(hjb<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}(hj=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}(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_gpuvm_boh]h drm_gpuvm_bo}(hjL=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI=ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjN=modnameN classnameNj+j.)}j1]j<c.drm_gpuvm_bo_unmap_ops_createasbuh1hhj*=ubjj)}(h h]h }(hjj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*=ubjH)}(hjKh]h*}(hjx=hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj*=ubj)}(hvm_boh]hvm_bo}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&=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_opsuh1hhjJhMhj=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)}(hj>h]hstruct drm_gpuvm_bo *vm_bo}(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.chMY hj>ubj)}(hhh]h)}(h&the :c:type:`drm_gpuvm_bo` abstractionh](hthe }(hj1>hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj;>h]h drm_gpuvm_bo}(hj=>hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj9>ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvm_bouh1hhj->hMY hj1>ubh abstraction}(hj1>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj->hMY hj.>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj->hMY hj>ubah}(h]h ]h"]h$]h&]uh1jhj=ubh)}(h**Description**h]j)}(hjv>h]h Description}(hjx>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt>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)}(hj3?h]hReturn}(hj5?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1?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 }(hjI?hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjS?h]h drm_gpuva_ops}(hjU?hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjQ?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 hjI?ubh" on success, an ERR_PTR on failure}(hjI?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjp?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 }(hj@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?ubjH)}(hjKh]h*}(hj$@hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj?ubj)}(hgpuvmh]hgpuvm}(hj1@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hstruct drm_gpuva_ops *opsh](jX)}(hjh]hstruct}(hjJ@hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjF@ubjj)}(h h]h }(hjW@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjF@ubh)}(hhh]j)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hjh@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje@ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjj@modnameN classnameNj+j.)}j1]j@c.drm_gpuva_ops_freeasbuh1hhjF@ubjj)}(h h]h }(hj@hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjF@ubjH)}(hjKh]h*}(hj@hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjF@ubj)}(hopsh]hops}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF@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_opsuh1hhjJhMhj@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&]jjjjAjjAjjjuh1jFhhhj@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)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(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)}(hj0Ah]hstruct drm_gpuvm *gpuvm}(hj2AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Aubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:523: ./drivers/gpu/drm/drm_gpuvm.chM hj*Aubj)}(hhh]h)}(h0the :c:type:`drm_gpuvm` the ops were created forh](hthe }(hjIAhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjSAh]h drm_gpuvm}(hjUAhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjQAubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_gpuvmuh1hhjEAhM hjIAubh the ops were created for}(hjIAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEAhM hjFAubah}(h]h ]h"]h$]h&]uh1jhj*Aubeh}(h]h ]h"]h$]h&]uh1jhjEAhM hj'Aubj)}(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 hj'Aubeh}(h]h ]h"]h$]h&]uh1jhj Aubh)}(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: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&]uh1jhjBubah}(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&]uh1hhj'BhM 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}jGBj0sj}j0j0subh)}(hhh](h)}(hDRM Buddy Allocatorh]hDRM Buddy Allocator}(hjOBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLBhhhhhMubh)}(hhh](h)}(h/Buddy Allocator Function References (GPU buddy)h]h/Buddy Allocator Function References (GPU buddy)}(hj`BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]BhhhhhMubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBgpu_buddy_init (C function)c.gpu_buddy_inithNtauh1j5hj]BhhhNhNubjG)}(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' reftargetjBmodnameN classnameNj+j.)}j1]j4)}j'jBsbc.gpu_buddy_initasbuh1hhjBubjj)}(h h]h }(hjChhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjBubjH)}(hjKh]h*}(hjChhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjBubj)}(hmmh]hmm}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hj9ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Cubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj;CmodnameN classnameNj+j.)}j1]jBc.gpu_buddy_initasbuh1hhj2Cubjj)}(h h]h }(hjWChhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj2Cubj)}(hsizeh]hsize}(hjeChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hu64 chunk_sizeh](h)}(hhh]j)}(hu64h]hu64}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Cubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjCmodnameN classnameNj+j.)}j1]jBc.gpu_buddy_initasbuh1hhjzCubjj)}(h h]h }(hjChhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjzCubj)}(h chunk_sizeh]h chunk_size}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjBhM`ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjBhhhjBhM`ubah}(h]jzBah ](jjeh"]h$]h&]jj)jhuh1jKhjBhM`hj|Bhhubj)}(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&]uh1jhj|BhhhjBhM`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1jFhhhj]BhNhNubj)}(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)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMdhjCubj)}(hhh](j)}(h9``struct gpu_buddy *mm`` GPU buddy manager to initialize h](j)}(h``struct gpu_buddy *mm``h]j)}(hjDh]hstruct gpu_buddy *mm}(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.chMbhjDubj)}(hhh]h)}(hGPU buddy manager to initializeh]hGPU buddy manager to initialize}(hj1DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-DhMbhj.Dubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj-DhMbhjDubj)}(h%``u64 size`` size in bytes to manage h](j)}(h ``u64 size``h]j)}(hjQDh]hu64 size}(hjSDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjODubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMchjKDubj)}(hhh]h)}(hsize in bytes to manageh]hsize in bytes to manage}(hjjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfDhMchjgDubah}(h]h ]h"]h$]h&]uh1jhjKDubeh}(h]h ]h"]h$]h&]uh1jhjfDhMchjDubj)}(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&]uh1jhjDhMdhjDubeh}(h]h ]h"]h$]h&]uh1jhjCubh)}(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.chMfhjCubh)}(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.chMehjCubh)}(h **Return**h]j)}(hjDh]hReturn}(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.chMghjCubh)}(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.chMhhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]BhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBgpu_buddy_fini (C function)c.gpu_buddy_finihNtauh1j5hj]BhhhNhNubjG)}(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}(hj1EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-EhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMubjj)}(h h]h }(hj@EhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-Ehhhj?EhMubj{)}(hgpu_buddy_finih]j)}(hgpu_buddy_finih]hgpu_buddy_fini}(hjREhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNEubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-Ehhhj?EhMubj)}(h(struct gpu_buddy *mm)h]j)}(hstruct gpu_buddy *mmh](jX)}(hjh]hstruct}(hjnEhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjjEubjj)}(h h]h }(hj{EhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjjEubh)}(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'jTEsbc.gpu_buddy_finiasbuh1hhjjEubjj)}(h h]h }(hjEhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjjEubjH)}(hjKh]h*}(hjEhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjjEubj)}(hmmh]hmm}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfEubah}(h]h ]h"]h$]h&]jjuh1jhj-Ehhhj?EhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj)Ehhhj?EhMubah}(h]j$Eah ](jjeh"]h$]h&]jj)jhuh1jKhj?EhMhj&Ehhubj)}(hhh]h)}(htear down the memory managerh]htear down the memory manager}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jhj&Ehhhj?EhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj Fjj Fjjjuh1jFhhhj]BhNhNubj)}(h**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager to free **Description** Cleanup memory manager resources and the freetreeh](h)}(h**Parameters**h]j)}(hjFh]h Parameters}(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 Fubj)}(hhh]j)}(h3``struct gpu_buddy *mm`` GPU buddy manager to free h](j)}(h``struct gpu_buddy *mm``h]j)}(hj2Fh]hstruct gpu_buddy *mm}(hj4FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Fubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhj,Fubj)}(hhh]h)}(hGPU buddy manager to freeh]hGPU buddy manager to free}(hjKFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGFhMhjHFubah}(h]h ]h"]h$]h&]uh1jhj,Fubeh}(h]h ]h"]h$]h&]uh1jhjGFhMhj)Fubah}(h]h ]h"]h$]h&]uh1jhj Fubh)}(h**Description**h]j)}(hjmFh]h Description}(hjoFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkFubah}(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&]uh1jhj]BhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"gpu_buddy_reset_clear (C function)c.gpu_buddy_reset_clearhNtauh1j5hj]BhhhNhNubjG)}(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}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjFubjj)}(h h]h }(hjFhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjFubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hj GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Gubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjGmodnameN classnameNj+j.)}j1]j4)}j'jFsbc.gpu_buddy_reset_clearasbuh1hhjFubjj)}(h h]h }(hj-GhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjFubjH)}(hjKh]h*}(hj;GhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjFubj)}(hmmh]hmm}(hjHGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(h bool is_clearh](j)}(hj*h]hbool}(hjaGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Gubjj)}(h h]h }(hjnGhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj]Gubj)}(his_clearh]his_clear}(hj|GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(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&]jjjjGjjGjjjuh1jFhhhj]BhNhNubj)}(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)}(hjGh]hstruct gpu_buddy *mm}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(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&]uh1hhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjGubj)}(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&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjHubj)}(hhh]h)}(hblocks clear stateh]hblocks clear state}(hj9HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5HhMhj6Hubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhj5HhMhjGubeh}(h]h ]h"]h$]h&]uh1jhjGubh)}(h**Description**h]j)}(hj[Hh]h Description}(hj]HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYHubah}(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 }(hjqHhhhNhNubj)}(h **is_clear**h]his_clear}(hjyHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqHubh& value for each block in the freetree.}(hjqHhhhNhNubeh}(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&]uh1jhj]BhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!gpu_buddy_free_block (C function)c.gpu_buddy_free_blockhNtauh1j5hj]BhhhNhNubjG)}(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}(hjHhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjHubjj)}(h h]h }(hjHhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hj IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Iubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjImodnameN classnameNj+j.)}j1]j4)}j'jHsbc.gpu_buddy_free_blockasbuh1hhjHubjj)}(h h]h }(hj-IhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjHubjH)}(hjKh]h*}(hj;IhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjHubj)}(hmmh]hmm}(hjHIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hstruct gpu_buddy_block *blockh](jX)}(hjh]hstruct}(hjaIhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj]Iubjj)}(h h]h }(hjnIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj]Iubh)}(hhh]j)}(hgpu_buddy_blockh]hgpu_buddy_block}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Iubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjImodnameN classnameNj+j.)}j1]j)Ic.gpu_buddy_free_blockasbuh1hhj]Iubjj)}(h h]h }(hjIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj]IubjH)}(hjKh]h*}(hjIhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj]Iubj)}(hblockh]hblock}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(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&]jjjjIjjIjjjuh1jFhhhj]BhNhNubj)}(hs**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager ``struct gpu_buddy_block *block`` block to be freedh](h)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjJhhhNhNubah}(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.chMChjIubj)}(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}(hj%JhhhNhNubah}(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.chMAhjJubj)}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Uubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjSubh)}(hgalloc_range_bias() called on range limitations, which traverses the tree and returns the desired block.h]hgalloc_range_bias() called on range limitations, which traverses the tree and returns the desired block.}(hjRUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjSubh)}(hpalloc_from_freetree() called when *no* range restrictions are enforced, which picks the block from the freetree.h](h"alloc_from_freetree() called when }(hjaUhhhNhNubj)}(h*no*h]hno}(hjiUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaUubhJ range restrictions are enforced, which picks the block from the freetree.}(hjaUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjSubh)}(h **Return**h]j)}(hjUh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjSubh)}(h$0 on success, error code on failure.h]h$0 on success, error code on failure.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]BhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"gpu_buddy_block_print (C function)c.gpu_buddy_block_printhNtauh1j5hj]BhhhNhNubjG)}(hhh](jL)}(hPvoid gpu_buddy_block_print (struct gpu_buddy *mm, struct gpu_buddy_block *block)h]jR)}(hOvoid gpu_buddy_block_print(struct gpu_buddy *mm, struct gpu_buddy_block *block)h](j)}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMubjj)}(h h]h }(hjUhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUhhhjUhMubj{)}(hgpu_buddy_block_printh]j)}(hgpu_buddy_block_printh]hgpu_buddy_block_print}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUhhhjUhMubj)}(h5(struct gpu_buddy *mm, struct gpu_buddy_block *block)h](j)}(hstruct gpu_buddy *mmh](jX)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjVubjj)}(h h]h }(hjVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjVubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hj$VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Vubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj&VmodnameN classnameNj+j.)}j1]j4)}j'jUsbc.gpu_buddy_block_printasbuh1hhjVubjj)}(h h]h }(hjDVhhhNhNubah}(h]h ]jvah"6]h$]h&]uh1jihjVubjH)}(hjKh]h*}(hjRVhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjVubj)}(hmmh]hmm}(hj_VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(hstruct gpu_buddy_block *blockh](jX)}(hjh]hstruct}(hjxVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjtVubjj)}(h h]h }(hjVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjtVubh)}(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_printasbuh1hhjtVubjj)}(h h]h }(hjVhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjtVubjH)}(hjKh]h*}(hjVhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjtVubj)}(hblockh]hblock}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubeh}(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}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1jFhhhj]BhNhNubj)}(hq**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager ``struct gpu_buddy_block *block`` GPU buddy blockh](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./drivers/gpu/buddy.chMhjWubj)}(hhh](j)}(h+``struct gpu_buddy *mm`` GPU buddy manager h](j)}(h``struct gpu_buddy *mm``h]j)}(hj:Wh]hstruct gpu_buddy *mm}(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.chK(hj8]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.chK&hjW]ubj)}(hhh]h)}(hDRM buddy managerh]hDRM buddy manager}(hjv]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr]hK&hjs]ubah}(h]h ]h"]h$]h&]uh1jhjW]ubeh}(h]h ]h"]h$]h&]uh1jhjr]hK&hjT]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(hjT]ubeh}(h]h ]h"]h$]h&]uh1jhj8]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubeh}(h].drm-buddy-specific-logging-function-referencesah ]h"].drm buddy specific logging function referencesah$]h&]uh1hhjLBhhhhhMubeh}(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}(hj2^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.^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}(hjN^hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjJ^ubjj)}(h h]h }(hj[^hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJ^ubh)}(hhh]j)}(hpageh]hpage}(hjl^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji^ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjn^modnameN classnameNj+j.)}j1]j4)}j'j4^sbc.drm_clflush_pagesasbuh1hhjJ^ubjj)}(h h]h }(hj^hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJ^ubjH)}(hjKh]h*}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjJ^ubj)}(hpagesh]hpages}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ^ubjH)}(h[h]h[}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjJ^ubjH)}(h]h]h]}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjJ^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjF^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}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjF^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.chKOhj;_hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hKOubeh}(h]h ](jfunctioneh"]h$]h&]jjjjV_jjV_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}(hjb_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.chKShjZ_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.chKPhjy_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&]uh1jhjy_ubeh}(h]h ]h"]h$]h&]uh1jhj_hKPhjv_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_hKQhjv_ubeh}(h]h ]h"]h$]h&]uh1jhjZ_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.chKShjZ_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.chKRhjZ_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}(hj8`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4`hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKxubjj)}(h h]h }(hjG`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4`hhhjF`hKxubj{)}(hdrm_clflush_sgh]j)}(hdrm_clflush_sgh]hdrm_clflush_sg}(hjY`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj4`hhhjF`hKxubj)}(h(struct sg_table *st)h]j)}(hstruct sg_table *sth](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)}(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'j[`sbc.drm_clflush_sgasbuh1hhjq`ubjj)}(h h]h }(hj`hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjq`ubjH)}(hjKh]h*}(hj`hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjq`ubj)}(hsth]hst}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjm`ubah}(h]h ]h"]h$]h&]jjuh1jhj4`hhhjF`hKxubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj0`hhhjF`hKxubah}(h]j+`ah ](jjeh"]h$]h&]jj)jhuh1jKhjF`hKxhj-`hhubj)}(hhh]h)}(h0Flush dcache lines pointing to a scather-gather.h]h0Flush dcache lines pointing to a scather-gather.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKxhj`hhubah}(h]h ]h"]h$]h&]uh1jhj-`hhhjF`hKxubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1jFhhhj]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)}(hjah]h Parameters}(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|hjaubj)}(hhh]j)}(h)``struct sg_table *st`` struct sg_table. h](j)}(h``struct sg_table *st``h]j)}(hj9ah]hstruct sg_table *st}(hj;ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7aubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKyhj3aubj)}(hhh]h)}(hstruct sg_table.h]hstruct sg_table.}(hjRahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNahKyhjOaubah}(h]h ]h"]h$]h&]uh1jhj3aubeh}(h]h ]h"]h$]h&]uh1jhjNahKyhj0aubah}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hjtah]h Description}(hjvahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjraubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chK{hjaubh)}(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.chKzhjaubeh}(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}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjj)}(h h]h }(hjbhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjaubjH)}(hjKh]h*}(hjbhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjaubj)}(haddrh]haddr}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hunsigned long lengthh](j)}(hunsignedh]hunsigned}(hj8bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4bubjj)}(h h]h }(hjFbhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4bubj)}(hlongh]hlong}(hjTbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4bubjj)}(h h]h }(hjbbhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj4bubj)}(hlengthh]hlength}(hjpbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4bubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhjahKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjahhhjahKubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1jKhjahKhjahhubj)}(hhh]h)}(hFlush dcache lines of a regionh]hFlush dcache lines of a region}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKhjbhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1jFhhhj]hNhNubj)}(h**Parameters** ``void *addr`` Initial kernel memory address. ``unsigned long length`` Region size. **Description** Flush every data cache line entry that points to an address in the region requested.h](h)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKhjbubj)}(hhh](j)}(h.``void *addr`` Initial kernel memory address. h](j)}(h``void *addr``h]j)}(hjbh]h void *addr}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKhjbubj)}(hhh]h)}(hInitial kernel memory address.h]hInitial kernel memory address.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhKhjbubj)}(h&``unsigned long length`` Region size. h](j)}(h``unsigned long length``h]j)}(hjch]hunsigned long length}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKhjcubj)}(hhh]h)}(h Region size.h]h Region size.}(hj-chhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)chKhj*cubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj)chKhjbubeh}(h]h ]h"]h$]h&]uh1jhjbubh)}(h**Description**h]j)}(hjOch]h Description}(hjQchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMcubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKhjbubh)}(hTFlush every data cache line entry that points to an address in the region requested.h]hTFlush every data cache line entry that points to an address in the region requested.}(hjechhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chKhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_memcpy_from_wc (C function)c.drm_memcpy_from_wchNtauh1j5hj]hhhNhNubjG)}(hhh](jL)}(h_void drm_memcpy_from_wc (struct iosys_map *dst, const struct iosys_map *src, unsigned long len)h]jR)}(h^void drm_memcpy_from_wc(struct iosys_map *dst, const struct iosys_map *src, unsigned long len)h](j)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chM%ubjj)}(h h]h }(hjchhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjchhhjchM%ubj{)}(hdrm_memcpy_from_wch]j)}(hdrm_memcpy_from_wch]hdrm_memcpy_from_wc}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjchhhjchM%ubj)}(hG(struct iosys_map *dst, const struct iosys_map *src, unsigned long len)h](j)}(hstruct iosys_map *dsth](jX)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjcubjj)}(h h]h }(hjchhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjcubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjcmodnameN classnameNj+j.)}j1]j4)}j'jcsbc.drm_memcpy_from_wcasbuh1hhjcubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjcubjH)}(hjKh]h*}(hjdhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjcubj)}(hdsth]hdst}(hj*dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hconst struct iosys_map *srch](jX)}(hj h]hconst}(hjCdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj?dubjj)}(h h]h }(hjPdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?dubjX)}(hjh]hstruct}(hj^dhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj?dubjj)}(h h]h }(hjkdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?dubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hj|dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjydubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj~dmodnameN classnameNj+j.)}j1]j dc.drm_memcpy_from_wcasbuh1hhj?dubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj?dubjH)}(hjKh]h*}(hjdhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj?dubj)}(hsrch]hsrc}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubj)}(hlongh]hlong}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjj)}(h h]h }(hjdhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjdubj)}(hlenh]hlen}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjchM%ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjchhhjchM%ubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jKhjchM%hjchhubj)}(hhh]h)}(hBPerform the fastest available memcpy from a source that may be WC.h]hBPerform the fastest available memcpy from a source that may be WC.}(hj0ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chM%hj-ehhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchM%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHejjHejjjuh1jFhhhj]hNhNubj)}(hXZ**Parameters** ``struct iosys_map *dst`` The destination pointer ``const struct iosys_map *src`` The source pointer ``unsigned long len`` The size of the area o transfer in bytes **Description** Tries an arch optimized memcpy for prefetching reading out of a WC region, and if no such beast is available, falls back to a normal memcpy.h](h)}(h**Parameters**h]j)}(hjReh]h Parameters}(hjTehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPeubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chM)hjLeubj)}(hhh](j)}(h2``struct iosys_map *dst`` The destination pointer h](j)}(h``struct iosys_map *dst``h]j)}(hjqeh]hstruct iosys_map *dst}(hjsehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoeubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chM'hjkeubj)}(hhh]h)}(hThe destination pointerh]hThe destination pointer}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM'hjeubah}(h]h ]h"]h$]h&]uh1jhjkeubeh}(h]h ]h"]h$]h&]uh1jhjehM'hjheubj)}(h3``const struct iosys_map *src`` The source pointer h](j)}(h``const struct iosys_map *src``h]j)}(hjeh]hconst struct iosys_map *src}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chM(hjeubj)}(hhh]h)}(hThe source pointerh]hThe source pointer}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM(hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehM(hjheubj)}(h?``unsigned long len`` The size of the area o transfer in bytes h](j)}(h``unsigned long len``h]j)}(hjeh]hunsigned long len}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chM)hjeubj)}(hhh]h)}(h(The size of the area o transfer in bytesh]h(The size of the area o transfer in bytes}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM)hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehM)hjheubeh}(h]h ]h"]h$]h&]uh1jhjLeubh)}(h**Description**h]j)}(hjfh]h Description}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chM+hjLeubh)}(hTries an arch optimized memcpy for prefetching reading out of a WC region, and if no such beast is available, falls back to a normal memcpy.h]hTries an arch optimized memcpy for prefetching reading out of a WC region, and if no such beast is available, falls back to a normal memcpy.}(hj4fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./drivers/gpu/drm/drm_cache.chM*hjLeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubj)}(h.. _drm_sync_objects:h]h}(h]h ]h"]h$]h&]jdrm-sync-objectsuh1jhM#hj]hhhhubeh}(h]%drm-cache-handling-and-fast-wc-memcpyah ]h"]'drm cache handling and fast wc memcpy()ah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hDRM Sync Objectsh]hDRM Sync Objects}(hj`fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]fhhhhhM&ubh)}(hXDRM synchronisation objects (syncobj, see struct :c:type:`drm_syncobj`) provide a container for a synchronization primitive which can be used by userspace to explicitly synchronize GPU commands, can be shared between userspace processes, and can be shared between different DRM drivers. Their primary use-case is to implement Vulkan fences and semaphores. The syncobj userspace API provides ioctls for several operations:h](h1DRM synchronisation objects (syncobj, see struct }(hjnfhhhNhNubh)}(h:c:type:`drm_syncobj`h]j)}(hjxfh]h drm_syncobj}(hjzfhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjvfubah}(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.chKhjnfubhX_) provide a container for a synchronization primitive which can be used by userspace to explicitly synchronize GPU commands, can be shared between userspace processes, and can be shared between different DRM drivers. Their primary use-case is to implement Vulkan fences and semaphores. The syncobj userspace API provides ioctls for several operations:}(hjnfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjfhKhj]fhhubj)}(hXC- Creation and destruction of syncobjs - Import and export of syncobjs to/from a syncobj file descriptor - Import and export a syncobj's underlying fence to/from a sync file - Reset a syncobj (set its fence to NULL) - Signal a syncobj (set a trivially signaled fence) - Wait for a syncobj's fence to appear and be signaled h]jz)}(hhh](jz)}(h$Creation and destruction of syncobjsh]h)}(hjfh]h$Creation and destruction of syncobjs}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chK%hjfubah}(h]h ]h"]h$]h&]uh1jzhjfubjz)}(h?Import and export of syncobjs to/from a syncobj file descriptorh]h)}(hjfh]h?Import and export of syncobjs to/from a syncobj file descriptor}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chK&hjfubah}(h]h ]h"]h$]h&]uh1jzhjfubjz)}(hBImport and export a syncobj's underlying fence to/from a sync fileh]h)}(hjfh]hDImport and export a syncobj’s underlying fence to/from a sync file}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chK'hjfubah}(h]h ]h"]h$]h&]uh1jzhjfubjz)}(h'Reset a syncobj (set its fence to NULL)h]h)}(hjfh]h'Reset a syncobj (set its fence to NULL)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chK(hjfubah}(h]h ]h"]h$]h&]uh1jzhjfubjz)}(h1Signal a syncobj (set a trivially signaled fence)h]h)}(hj gh]h1Signal a syncobj (set a trivially signaled fence)}(hj ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chK)hjgubah}(h]h ]h"]h$]h&]uh1jzhjfubjz)}(h5Wait for a syncobj's fence to appear and be signaled h]h)}(h4Wait for a syncobj's fence to appear and be signaledh]h6Wait for a syncobj’s fence to appear and be signaled}(hj#ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chK*hjgubah}(h]h ]h"]h$]h&]uh1jzhjfubeh}(h]h ]h"]h$]h&]jE{jF{uh1jzhjfhK%hjfubah}(h]h ]h"]h$]h&]uh1jhjfhK%hj]fhhubh)}(hThe syncobj userspace API also provides operations to manipulate a syncobj in terms of a timeline of struct :c:type:`dma_fence_chain` rather than a single struct :c:type:`dma_fence`, through the following operations:h](hlThe syncobj userspace API also provides operations to manipulate a syncobj in terms of a timeline of struct }(hjDghhhNhNubh)}(h:c:type:`dma_fence_chain`h]j)}(hjNgh]hdma_fence_chain}(hjPghhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjLgubah}(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,hjDgubh rather than a single struct }(hjDghhhNhNubh)}(h:c:type:`dma_fence`h]j)}(hjrgh]h dma_fence}(hjtghhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjpgubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja dma_fenceuh1hhjkghK,hjDgubh#, through the following operations:}(hjDghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkghK,hj]fhhubj)}(h- Signal a given point on the timeline - Wait for a given point to appear and/or be signaled - Import and export from/to a given point of a timeline h]jz)}(hhh](jz)}(h$Signal a given point on the timelineh]h)}(hjgh]h$Signal a given point on the timeline}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chK0hjgubah}(h]h ]h"]h$]h&]uh1jzhjgubjz)}(h3Wait for a given point to appear and/or be signaledh]h)}(hjgh]h3Wait for a given point to appear and/or be signaled}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chK1hjgubah}(h]h ]h"]h$]h&]uh1jzhjgubjz)}(h6Import and export from/to a given point of a timeline h]h)}(h5Import and export from/to a given point of a timelineh]h5Import and export from/to a given point of a timeline}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chK2hjgubah}(h]h ]h"]h$]h&]uh1jzhjgubeh}(h]h ]h"]h$]h&]jE{jF{uh1jzhjghK0hjgubah}(h]h ]h"]h$]h&]uh1jhjghK0hj]fhhubh)}(hXJAt it's core, a syncobj is simply a wrapper around a pointer to a struct :c:type:`dma_fence` which may be NULL. When a syncobj is first created, its pointer is either NULL or a pointer to an already signaled fence depending on whether the :c:type:`DRM_SYNCOBJ_CREATE_SIGNALED` flag is passed to :c:type:`DRM_IOCTL_SYNCOBJ_CREATE`.h](hKAt it’s core, a syncobj is simply a wrapper around a pointer to a struct }(hjghhhNhNubh)}(h:c:type:`dma_fence`h]j)}(hjgh]h dma_fence}(hjhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjgubah}(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.chK4hjgubh which may be NULL. When a syncobj is first created, its pointer is either NULL or a pointer to an already signaled fence depending on whether the }(hjghhhNhNubh)}(h%:c:type:`DRM_SYNCOBJ_CREATE_SIGNALED`h]j)}(hj#hh]hDRM_SYNCOBJ_CREATE_SIGNALED}(hj%hhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj!hubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_SYNCOBJ_CREATE_SIGNALEDuh1hhjhhK4hjgubh flag is passed to }(hjghhhNhNubh)}(h":c:type:`DRM_IOCTL_SYNCOBJ_CREATE`h]j)}(hjFhh]hDRM_IOCTL_SYNCOBJ_CREATE}(hjHhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjDhubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_IOCTL_SYNCOBJ_CREATEuh1hhjhhK4hjgubh.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhhK4hj]fhhubh)}(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 }(hjmhhhhNhNubh)}(h:c:type:`dma_fence_chain`h]j)}(hjwhh]hdma_fence_chain}(hjyhhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjuhubah}(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;hjmhubhv pointing to the DRM driver’s fence and also pointing to the previous fence that was in the syncobj. The new struct }(hjmhhhhNhNubh)}(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;hjmhubh 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.}(hjmhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhhK;hj]fhhubh)}(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.chKGhj]fhhubj)}(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 }(hjhhhhNhNubh)}(h:c:type:`dma_fence`h]j)}(hjhh]h dma_fence}(hjihhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjhubah}(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.chKMhjhubhT associated with a given point if the syncobj is considered as a timeline primitive.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjihKMhjhubah}(h]h ]h"]h$]h&]uh1jzhjhubeh}(h]h ]h"]h$]h&]jE{jF{uh1jzhjhhKKhjhubah}(h]h ]h"]h$]h&]uh1jhjhhKKhj]fhhubh)}(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.}(hj9ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:552: ./drivers/gpu/drm/drm_syncobj.chKPhj]fhhubh)}(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. }(hjHihhhNhNubh)}(h!:c:type:`DRM_IOCTL_SYNCOBJ_RESET`h]j)}(hjRih]hDRM_IOCTL_SYNCOBJ_RESET}(hjTihhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjPiubah}(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.chKShjHiubh and }(hjHihhhNhNubh)}(h":c:type:`DRM_IOCTL_SYNCOBJ_SIGNAL`h]j)}(hjvih]hDRM_IOCTL_SYNCOBJ_SIGNAL}(hjxihhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjtiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_IOCTL_SYNCOBJ_SIGNALuh1hhjoihKShjHiubh 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.}(hjHihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjoihKShj]fhhubh)}(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[hj]fhhubh)}(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`hj]fhhubh)}(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)}(hjih]hDRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL}(hjihhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jaDRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALLuh1hhjihKlhjiubh 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&]uh1hhjihKlhjiubh)}(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 }(hjjhhhNhNubh)}(h0:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT`h]j)}(hj'jh]h&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT}(hj)jhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj%jubah}(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.chKshjjubhx 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 }(hjjhhhNhNubh)}(h0:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT`h]j)}(hjKjh]h&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT}(hjMjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjIjubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMITuh1hhjDjhKshjjubhX 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.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjDjhKshjiubh)}(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 }(hjrjhhhNhNubh)}(h.:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE`h]j)}(hj|jh]h$DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE}(hj~jhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjzjubah}(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.chKhjrjubh 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 }(hjrjhhhNhNubh)}(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_MONOTONICuh1hhjjhKhjrjubh value in units of ns.}(hjrjhhhNhNubeh}(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&]uh1hhjjhKhjiubh)}(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)}(hjjh]hDRM_IOCTL_SYNCOBJ_TIMELINE_WAIT}(hjkhhhNhNubah}(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 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 }(hjjhhhNhNubh)}(h/:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE`h]j)}(hj#kh]h%DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE}(hj%khhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj!kubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja%DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLEuh1hhjkhKhjjubhx flag. This requirement is inherited from the wait-before-signal behavior required by the Vulkan timeline semaphore API.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhKhjiubh)}(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, }(hjJkhhhNhNubh)}(h#:c:type:`DRM_IOCTL_SYNCOBJ_EVENTFD`h]j)}(hjTkh]hDRM_IOCTL_SYNCOBJ_EVENTFD}(hjVkhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjRkubah}(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.chKhjJkubh 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.}(hjJkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqkhKhjiubeh}(h]host-side-wait-on-syncobjsah ]h"]host-side wait on syncobjsah$]h&]uh1hhj]fhhhNhNubh)}(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 }(hjkhhhNhNubh)}(h:c:type:`drm_syncobj`h]j)}(hjkh]h drm_syncobj}(hjkhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjkubah}(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.chKhjkubhXy 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.}(hjkhhhNhNubeh}(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 }(hjlhhhNhNubh)}(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}(hj$lhhhNhNubah}(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.chKhjlubh or }(hjlhhhNhNubh)}(h9:c:type:`DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE`h]j)}(hjFlh]h/DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE}(hjHlhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjDlubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja/DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILEuh1hhj?lhKhjlubhG lets the client import/export the syncobj’s current fence from/to a }(hjlhhhNhNubh)}(h:c:type:`sync_file`h]j)}(hjilh]h sync_file}(hjklhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjglubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja sync_fileuh1hhj?lhKhjlubhX. 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.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj?lhKhjkubeh}(h]import-export-of-syncobjsah ]h"]import/export of syncobjsah$]h&]uh1hhj]fhhhNhNubh)}(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 }(hjlhhhNhNubh)}(h:c:type:`dma_fence_chain`h]j)}(hjmh]hdma_fence_chain}(hjmhhhNhNubah}(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.chKhjlubh 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.}(hjlhhhNhNubeh}(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&]uh1hhj]fhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj (C struct) c.drm_syncobjhNtauh1j5hj]fhhhNhNubjG)}(hhh](jL)}(h drm_syncobjh]jR)}(hstruct drm_syncobjh](jX)}(hjh]hstruct}(hjMmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjImhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKubjj)}(h h]h }(hj[mhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjImhhhjZmhKubj{)}(h drm_syncobjh]j)}(hjGmh]h drm_syncobj}(hjmmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjimubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjImhhhjZmhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjEmhhhjZmhKubah}(h]j@mah ](jjeh"]h$]h&]jj)jhuh1jKhjZmhKhjBmhhubj)}(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&]uh1jhjBmhhhjZmhKubeh}(h]h ](jstructeh"]h$]h&]jjjjmjjmjjjuh1jFhhhj]fhNhNubj)}(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)}(hjmh]hrefcount}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK*hjmubj)}(hhh]h)}(hReference count of this object.h]hReference count of this object.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhK*hjnubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjnhK*hjmubj)}(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)}(hj5nh]hfence}(hj7nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3nubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK1hj/nubj)}(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.}(hjNnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK.hjKnubh)}(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.}(hj]nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK0hjKnubeh}(h]h ]h"]h$]h&]uh1jhj/nubeh}(h]h ]h"]h$]h&]uh1jhjJnhK1hjmubj)}(hN``cb_list`` List of callbacks to call when the :c:type:`fence` gets replaced. h](j)}(h ``cb_list``h]j)}(hj~nh]hcb_list}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|nubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK6hjxnubj)}(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&]uh1jhjxnubeh}(h]h ]h"]h$]h&]uh1jhjnhK6hjmubj)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhK:hjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhK:hjmubj)}(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)}(hjoh]hlock}(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.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 }(hj,ohhhNhNubh)}(h:c:type:`cb_list`h]j)}(hj6oh]hcb_list}(hj8ohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj4oubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jacb_listuh1hhj(ohK>hj,oubh and }(hj,ohhhNhNubh)}(h:c:type:`ev_fd_list`h]j)}(hjYoh]h ev_fd_list}(hj[ohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjWoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja ev_fd_listuh1hhj(ohK>hj,oubh, and write-locks }(hj,ohhhNhNubh)}(h:c:type:`fence`h]j)}(hj|oh]hfence}(hj~ohhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjzoubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jafenceuh1hhj(ohK>hj,oubh.}(hj,ohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj(ohK>hj)oubah}(h]h ]h"]h$]h&]uh1jhj oubeh}(h]h ]h"]h$]h&]uh1jhj(ohK>hjmubj)}(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&]uh1jhjohKAhjmubeh}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]fhhhNhNubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKEhj]fhhubh)}(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 }(hjphhhNhNubh)}(h:c:type:`dma_fence`h]j)}(hjph]h dma_fence}(hjphhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjpubah}(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$hjpubh.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5phK$hj]fhhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj_get (C function)c.drm_syncobj_gethNtauh1j5hj]fhhhNhNubjG)}(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}(hjYphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUphhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKIubjj)}(h h]h }(hjhphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUphhhjgphKIubj{)}(hdrm_syncobj_geth]j)}(hdrm_syncobj_geth]hdrm_syncobj_get}(hjzphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUphhhjgphKIubj)}(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'j|psbc.drm_syncobj_getasbuh1hhjpubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjpubjH)}(hjKh]h*}(hjphhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjpubj)}(hobjh]hobj}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubah}(h]h ]h"]h$]h&]jjuh1jhjUphhhjgphKIubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjQphhhjgphKIubah}(h]jLpah ](jjeh"]h$]h&]jj)jhuh1jKhjgphKIhjNphhubj)}(hhh]h)}(hacquire a syncobj referenceh]hacquire a syncobj reference}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKIhjqhhubah}(h]h ]h"]h$]h&]uh1jhjNphhhjgphKIubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1qjj1qjjjuh1jFhhhj]fhNhNubj)}(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)}(hj;qh]h Parameters}(hj=qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9qubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKMhj5qubj)}(hhh]j)}(h(``struct drm_syncobj *obj`` sync object h](j)}(h``struct drm_syncobj *obj``h]j)}(hjZqh]hstruct drm_syncobj *obj}(hj\qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXqubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKJhjTqubj)}(hhh]h)}(h sync objecth]h sync object}(hjsqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoqhKJhjpqubah}(h]h ]h"]h$]h&]uh1jhjTqubeh}(h]h ]h"]h$]h&]uh1jhjoqhKJhjQqubah}(h]h ]h"]h$]h&]uh1jhj5qubh)}(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.hhKLhj5qubh)}(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.hhKKhj5qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]fhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj_put (C function)c.drm_syncobj_puthNtauh1j5hj]fhhhNhNubjG)}(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}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKVubjj)}(h h]h }(hjqhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjqhhhjqhKVubj{)}(hdrm_syncobj_puth]j)}(hdrm_syncobj_puth]hdrm_syncobj_put}(hj rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj rubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjqhhhjqhKVubj)}(h(struct drm_syncobj *obj)h]j)}(hstruct drm_syncobj *objh](jX)}(hjh]hstruct}(hj)rhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj%rubjj)}(h h]h }(hj6rhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj%rubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjGrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDrubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjIrmodnameN classnameNj+j.)}j1]j4)}j'jrsbc.drm_syncobj_putasbuh1hhj%rubjj)}(h h]h }(hjgrhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj%rubjH)}(hjKh]h*}(hjurhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj%rubj)}(hobjh]hobj}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!rubah}(h]h ]h"]h$]h&]jjuh1jhjqhhhjqhKVubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjqhhhjqhKVubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jKhjqhKVhjqhhubj)}(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&]uh1jhjqhhhjqhKVubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jFhhhj]fhNhNubj)}(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)}(hjrh]hstruct drm_syncobj *obj}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK\hjrubj)}(hhh]h)}(h sync object.h]h sync object.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhKWhjsubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjshK\hjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]fhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_syncobj_fence_get (C function)c.drm_syncobj_fence_gethNtauh1j5hj]fhhhNhNubjG)}(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}(hjGshhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjCshhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:555: ./include/drm/drm_syncobj.hhK`ubjj)}(h h]h }(hjUshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjCshhhjTshK`ubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hjfshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcsubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjhsmodnameN classnameNj+j.)}j1]j4)}j'drm_syncobj_fence_getsbc.drm_syncobj_fence_getasbuh1hhjCshhhjTshK`ubjj)}(h h]h }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjCshhhjTshK`ubjH)}(hjKh]h*}(hjshhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjCshhhjTshK`ubj{)}(hdrm_syncobj_fence_geth]j)}(hjsh]hdrm_syncobj_fence_get}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjCshhhjTshK`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 }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjsubjH)}(hjKh]h*}(hj thhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjsubj)}(hsyncobjh]hsyncobj}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhjCshhhjTshK`ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj?shhhjTshK`ubah}(h]j:sah ](jjeh"]h$]h&]jj)jhuh1jKhjTshK`hj` 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)}(hjdth]h Parameters}(hjfthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbtubah}(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.hhKahj}tubj)}(hhh]h)}(h sync object.h]h sync object.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKahjtubah}(h]h ]h"]h$]h&]uh1jhj}tubeh}(h]h ]h"]h$]h&]uh1jhjthKahjztubah}(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&]uh1hhjthKbhj^tubh)}(h **Return**h]j)}(hjuh]hReturn}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(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 }(hj0uhhhNhNubj)}(h**obj**h]hobj}(hj8uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0uubh or NULL if there’s none.}(hj0uhhhNhNubeh}(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&]uh1jhj]fhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj_find (C function)c.drm_syncobj_findhNtauh1j5hj]fhhhNhNubjG)}(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}(hjquhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjmuhhhY/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&]uh1jihjmuhhhj~uhKubh)}(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_findasbuh1hhjmuhhhj~uhKubjj)}(h h]h }(hjuhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmuhhhj~uhKubjH)}(hjKh]h*}(hjuhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjmuhhhj~uhKubj{)}(hdrm_syncobj_findh]j)}(hjuh]hdrm_syncobj_find}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjmuhhhj~uhKubj)}(h+(struct drm_file *file_private, u32 handle)h](j)}(hstruct drm_file *file_privateh](jX)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjuubjj)}(h h]h }(hjuhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjuubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj vmodnameN classnameNj+j.)}j1]juc.drm_syncobj_findasbuh1hhjuubjj)}(h h]h }(hj'vhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjuubjH)}(hjKh]h*}(hj5vhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjuubj)}(h file_privateh]h file_private}(hjBvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hj^vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[vubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj`vmodnameN classnameNj+j.)}j1]juc.drm_syncobj_findasbuh1hhjWvubjj)}(h h]h }(hj|vhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjWvubj)}(hhandleh]hhandle}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhjmuhhhj~uhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjiuhhhj~uhKubah}(h]jduah ](jjeh"]h$]h&]jj)jhuh1jKhj~uhKhjfuhhubj)}(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&]uh1jhjfuhhhj~uhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1jFhhhj]fhNhNubj)}(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)}(hjvh]hstruct drm_file *file_private}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chKhjvubj)}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj whKhj wubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhj whKhjvubj)}(h-``u32 handle`` sync object handle to lookup. h](j)}(h``u32 handle``h]j)}(hj.wh]h u32 handle}(hj0whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,wubah}(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)}(hsync object handle to lookup.h]hsync object handle to lookup.}(hjGwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCwhKhjDwubah}(h]h ]h"]h$]h&]uh1jhj(wubeh}(h]h ]h"]h$]h&]uh1jhjCwhKhjvubeh}(h]h ]h"]h$]h&]uh1jhjvubh)}(h**Description**h]j)}(hjiwh]h Description}(hjkwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgwubah}(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&]uh1jhj]fhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_syncobj_add_point (C function)c.drm_syncobj_add_pointhNtauh1j5hj]fhhhNhNubjG)}(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}(hjwhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjwubjj)}(h h]h }(hjwhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjwubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hj xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj xmodnameN classnameNj+j.)}j1]j4)}j'jwsbc.drm_syncobj_add_pointasbuh1hhjwubjj)}(h h]h }(hj)xhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjwubjH)}(hjKh]h*}(hj7xhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjwubj)}(hsyncobjh]hsyncobj}(hjDxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(hstruct dma_fence_chain *chainh](jX)}(hjh]hstruct}(hj]xhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjYxubjj)}(h h]h }(hjjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYxubh)}(hhh]j)}(hdma_fence_chainh]hdma_fence_chain}(hj{xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxxubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj}xmodnameN classnameNj+j.)}j1]j%xc.drm_syncobj_add_pointasbuh1hhjYxubjj)}(h h]h }(hjxhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjYxubjH)}(hjKh]h*}(hjxhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjYxubj)}(hchainh]hchain}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjxmodnameN classnameNj+j.)}j1]j%xc.drm_syncobj_add_pointasbuh1hhjxubjj)}(h h]h }(hj yhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjxubjH)}(hjKh]h*}(hjyhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjxubj)}(hfenceh]hfence}(hj$yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(huint64_t pointh](h)}(hhh]j)}(huint64_th]huint64_t}(hj@yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=yubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjBymodnameN classnameNj+j.)}j1]j%xc.drm_syncobj_add_pointasbuh1hhj9yubjj)}(h h]h }(hj^yhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj9yubj)}(hpointh]hpoint}(hjlyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9yubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(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&]jjjjyjjyjjjuh1jFhhhj]fhNhNubj)}(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}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMFhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMFhjyubj)}(hE``struct dma_fence_chain *chain`` chain node to use to add the point h](j)}(h!``struct dma_fence_chain *chain``h]j)}(hjzh]hstruct dma_fence_chain *chain}(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.chMGhj zubj)}(hhh]h)}(h"chain node to use to add the pointh]h"chain node to use to add the point}(hj)zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%zhMGhj&zubah}(h]h ]h"]h$]h&]uh1jhj zubeh}(h]h ]h"]h$]h&]uh1jhj%zhMGhjyubj)}(hC``struct dma_fence *fence`` fence to encapsulate in the chain node h](j)}(h``struct dma_fence *fence``h]j)}(hjIzh]hstruct dma_fence *fence}(hjKzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGzubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMHhjCzubj)}(hhh]h)}(h&fence to encapsulate in the chain nodeh]h&fence to encapsulate in the chain node}(hjbzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^zhMHhj_zubah}(h]h ]h"]h$]h&]uh1jhjCzubeh}(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.chMIhj|zubj)}(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&]uh1jhj|zubeh}(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&]uh1jhj]fhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_syncobj_replace_fence (C function)c.drm_syncobj_replace_fencehNtauh1j5hj]fhhhNhNubjG)}(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&]uh1jhjzhhhY/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&]uh1jihjzhhhj{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&]jjuh1jzhjzhhhj{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&]uh1jWhj;{ubjj)}(h h]h }(hjL{hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;{ubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(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_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)}(hsyncobjh]hsyncobj}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7{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]jy{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&]noemphjjuh1jhj7{ubeh}(h]h ]h"]h$]h&]jjuh1jhjzhhhj{hMnubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjzhhhj{hMnubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1jKhj{hMnhjzhhubj)}(hhh]h)}(hreplace fence in a sync object.h]hreplace fence in a sync object.}(hj2|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMnhj/|hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhj{hMnubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJ|jjJ|jjjuh1jFhhhj]fhNhNubj)}(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)}(hjT|h]h Parameters}(hjV|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR|ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMrhjN|ubj)}(hhh](j)}(h@``struct drm_syncobj *syncobj`` Sync object to replace fence in h](j)}(h``struct drm_syncobj *syncobj``h]j)}(hjs|h]hstruct drm_syncobj *syncobj}(hju|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq|ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMohjm|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&]uh1jhjm|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMohjj|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|hMphjj|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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMrhjN|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.chMqhjN|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]fhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_syncobj_find_fence (C function)c.drm_syncobj_find_fencehNtauh1j5hj]fhhhNhNubjG)}(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}(hj,}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(}hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMubjj)}(h h]h }(hj;}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj(}hhhj:}hMubj{)}(hdrm_syncobj_find_fenceh]j)}(hdrm_syncobj_find_fenceh]hdrm_syncobj_find_fence}(hjM}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI}ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(}hhhj:}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}(hji}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhje}ubjj)}(h h]h }(hjv}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihje}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'jO}sbc.drm_syncobj_find_fenceasbuh1hhje}ubjj)}(h h]h }(hj}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihje}ubjH)}(hjKh]h*}(hj}hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhje}ubj)}(h file_privateh]h file_private}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhja}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&]noemphjjuh1jhja}ubj)}(h u64 pointh](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 }(hjD~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~ubj)}(hpointh]hpoint}(hjR~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhja}ubj)}(h u64 flagsh](h)}(hhh]j)}(hu64h]hu64}(hjn~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk~ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjp~modnameN classnameNj+j.)}j1]j}c.drm_syncobj_find_fenceasbuh1hhjg~ubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjg~ubj)}(hflagsh]hflags}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhja}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*}(hj~hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj~ubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj~ubj)}(hfenceh]hfence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhja}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/lookup and reference the fence in a sync objecth]h/lookup and reference the fence in a sync object}(hjAhhhNhNubah}(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!}hhhj:}hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1jFhhhj]fhNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhj]ubj)}(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.chMhj|ubj)}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjyubj)}(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&]uh1jhjhMhjyubj)}(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.chMhjubj)}(hhh]h)}(htimeline pointh]htimeline point}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjyubj)}(h<``u64 flags`` DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or not h](j)}(h ``u64 flags``h]j)}(hj-h]h u64 flags}(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.chMhj'ubj)}(hhh]h)}(h-DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or noth]h-DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or not}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjyubj)}(h9``struct dma_fence **fence`` out parameter for the fence h](j)}(h``struct dma_fence **fence``h]j)}(hjfh]hstruct dma_fence **fence}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(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&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjyubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhj]ubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhj]ubh)}(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 }(hjƀhhhNhNubj)}(h **fence**h]hfence}(hj΀hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƀubhV contains a reference to the fence, which must be released by calling dma_fence_put().}(hjƀhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]fhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj_free (C function)c.drm_syncobj_freehNtauh1j5hj]fhhhNhNubjG)}(hhh](jL)}(h)void drm_syncobj_free (struct kref *kref)h]jR)}(h(void drm_syncobj_free(struct kref *kref)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM ubj{)}(hdrm_syncobj_freeh]j)}(hdrm_syncobj_freeh]hdrm_syncobj_free}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h(struct kref *kref)h]j)}(hstruct kref *krefh](jX)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj@ubjj)}(h h]h }(hjQhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@ubh)}(hhh]j)}(hkrefh]hkref}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjdmodnameN classnameNj+j.)}j1]j4)}j'j*sbc.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&]noemphjjuh1jhj<ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM hjhhubj)}(hhh]h)}(hfree a sync object.h]hfree 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.chM hjāhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj߁jj߁jjjuh1jFhhhj]fhNhNubj)}(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)}(hjh]hstruct kref *kref}(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.chM hjubj)}(hhh]h)}(h kref to free.h]h kref to free.}(hj!hhhNhNubah}(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)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(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.}(hjYhhhNhNubah}(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&]uh1jhj]fhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj_create (C function)c.drm_syncobj_createhNtauh1j5hj]fhhhNhNubjG)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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}(hjłhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_syncobj_createasbuh1hhjubjj)}(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 out_syncobjh]h out_syncobj}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(huint32_t flagsh](h)}(hhh]j)}(huint32_th]huint32_t}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjImodnameN classnameNj+j.)}j1]jc.drm_syncobj_createasbuh1hhj@ubjj)}(h h]h }(hjehhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj@ubj)}(hflagsh]hflags}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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]jc.drm_syncobj_createasbuh1hhjubjj)}(h h]h }(hjȃhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjփhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hfenceh]hfence}(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]j{ah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhj}hhubj)}(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&]uh1jhj}hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jFhhhj]fhNhNubj)}(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)}(hj/h]h Parameters}(hj1hhhNhNubah}(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#hj)ubj)}(hhh](j)}(h6``struct drm_syncobj **out_syncobj`` returned syncobj h](j)}(h$``struct drm_syncobj **out_syncobj``h]j)}(hjNh]h struct drm_syncobj **out_syncobj}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM hjHubj)}(hhh]h)}(hreturned syncobjh]hreturned syncobj}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchM hjEubj)}(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!hjEubj)}(hO``struct dma_fence *fence`` if non-NULL, the syncobj will represent this fence h](j)}(h``struct dma_fence *fence``h]j)}(hjh]hstruct dma_fence *fence}(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.chM"hjubj)}(hhh]h)}(h2if non-NULL, the syncobj will represent this fenceh]h2if non-NULL, the syncobj will represent this fence}(hjلhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjՄhM"hjքubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjՄhM"hjEubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM$hj)ubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM#hj)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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chM'hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]fhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_syncobj_get_handle (C function)c.drm_syncobj_get_handlehNtauh1j5hj]fhhhNhNubjG)}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhY/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&]uh1jihjKhhhj]hMJubj{)}(hdrm_syncobj_get_handleh]j)}(hdrm_syncobj_get_handleh]hdrm_syncobj_get_handle}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKhhhj]hMJubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jrsbc.drm_syncobj_get_handleasbuh1hhjubjj)}(h h]h }(hjʅhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj؅hhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]jƅc.drm_syncobj_get_handleasbuh1hhjubjj)}(h h]h }(hj:hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjHhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hsyncobjh]hsyncobj}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 *handleh](h)}(hhh]j)}(hu32h]hu32}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjsmodnameN classnameNj+j.)}j1]jƅc.drm_syncobj_get_handleasbuh1hhjjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjjubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhj]hMJubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjGhhhj]hMJubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jKhj]hMJhjDhhubj)}(hhh]h)}(hget a handle from a syncobjh]hget a handle from a syncobj}(hjԆhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMJhjцhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj]fhNhNubj)}(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.chMNhjubj)}(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.chMKhjubj)}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMKhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMKhj ubj)}(h6``struct drm_syncobj *syncobj`` Sync object to export h](j)}(h``struct drm_syncobj *syncobj``h]j)}(hjNh]hstruct drm_syncobj *syncobj}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMLhjHubj)}(hhh]h)}(hSync object to exporth]hSync object to export}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMLhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMLhj 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&]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:558: ./drivers/gpu/drm/drm_syncobj.chMOhjubh)}(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 }(hj؇hhhNhNubj)}(h**file_private**h]h file_private}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj؇ubh to userspace.}(hj؇hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMNhjubh)}(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.chMQhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]fhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_syncobj_get_fd (C function)c.drm_syncobj_get_fdhNtauh1j5hj]fhhhNhNubjG)}(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}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMubjj)}(h h]h }(hj7hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj$hhhj6hMubj{)}(hdrm_syncobj_get_fdh]j)}(hdrm_syncobj_get_fdh]hdrm_syncobj_get_fd}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj$hhhj6hMubj)}(h((struct drm_syncobj *syncobj, int *p_fd)h](j)}(hstruct drm_syncobj *syncobjh](jX)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjaubjj)}(h h]h }(hjrhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjaubh)}(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'jKsbc.drm_syncobj_get_fdasbuh1hhjaubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjaubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjaubj)}(hsyncobjh]hsyncobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(h int *p_fdh](j)}(hinth]hint}(hj׈hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӈubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjӈubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjӈubj)}(hp_fdh]hp_fd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӈubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubeh}(h]h ]h"]h$]h&]jjuh1jhj$hhhj6hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhj6hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj6hMhjhhubj)}(hhh]h)}(h$get a file descriptor from a syncobjh]h$get a file descriptor from a 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&]uh1jhjhhhj6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1jFhhhj]fhNhNubj)}(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)}(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.chMhjFubj)}(hhh](j)}(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.chMhjeubj)}(hhh]h)}(hSync object to exporth]hSync object to export}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(h9``int *p_fd`` out parameter with the new file descriptor h](j)}(h ``int *p_fd``h]j)}(hjh]h int *p_fd}(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)}(h*out parameter with the new file descriptorh]h*out parameter with the new file descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubeh}(h]h ]h"]h$]h&]uh1jhjFubh)}(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.chMhjFubh)}(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.chMhjFubh)}(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.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]fhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB'drm_timeout_abs_to_jiffies (C function)c.drm_timeout_abs_to_jiffieshNtauh1j5hj]fhhhNhNubjG)}(hhh](jL)}(h=signed long drm_timeout_abs_to_jiffies (int64_t timeout_nsec)h]jR)}(hubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjubh)}(hCCalculate the timeout in jiffies from an absolute time in sec/nsec.h]hCCalculate the timeout in jiffies from an absolute time in sec/nsec.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:558: ./drivers/gpu/drm/drm_syncobj.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]fhhhNhNubeh}(h](jTfid4eh ]h"](drm sync objectsdrm_sync_objectseh$]h&]uh1hhhhhhhhM&j}jjJfsj}jTfjJfsubh)}(hhh](h)}(hDRM Execution contexth]hDRM Execution context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM2ubh)}(hThis component mainly abstracts the retry loop necessary for locking multiple GEM objects while preparing hardware operations (e.g. command submissions, page table updates etc..).h]hThis component mainly abstracts the retry loop necessary for locking multiple GEM objects while preparing hardware operations (e.g. command submissions, page table updates etc..).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:564: ./drivers/gpu/drm/drm_exec.chK hjhhubh)}(hIf a contention is detected while locking a GEM object the cleanup procedure unlocks all previously locked GEM objects and locks the contended one first before locking any further objects.h]hIf a contention is detected while locking a GEM object the cleanup procedure unlocks all previously locked GEM objects and locks the contended one first before locking any further objects.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:564: ./drivers/gpu/drm/drm_exec.chKhjhhubh)}(hoAfter an object is locked fences slots can optionally be reserved on the dma_resv object inside the GEM object.h]hoAfter an object is locked fences slots can optionally be reserved on the dma_resv object inside the GEM object.}(hjɋhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:564: ./drivers/gpu/drm/drm_exec.chKhjhhubh)}(h/A typical usage pattern should look like this::h]h.A typical usage pattern should look like this:}(hj؋hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:564: ./drivers/gpu/drm/drm_exec.chKhjhhubjh)}(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);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}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKubjj)}(h h]h }(hj,hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj+hKubj{)}(hdrm_exech]j)}(hjh]hdrm_exec}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj+hKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj+hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj+hKhjhhubj)}(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.hhKhj]hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hKubeh}(h]h ](jstructeh"]h$]h&]jjjjxjjxjjjuh1jFhhhjhNhNubj)}(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.hhKhj|ubjh)}(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.hhKhj|ubh)}(h **Members**h]j)}(hjh]hMembers}(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.hhKhj|ubj)}(hhh](j)}(h,``flags`` Flags to control locking behavior h](j)}(h ``flags``h]j)}(hj͌h]hflags}(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.hhKhjnjubj)}(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&]uh1jhjnjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjČubj)}(h.``ticket`` WW ticket used for acquiring locks h](j)}(h ``ticket``h]j)}(hjh]hticket}(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"WW ticket used for acquiring locksh]h"WW ticket used for acquiring locks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjČubj)}(h)``num_objects`` number of objects locked h](j)}(h``num_objects``h]j)}(hj?h]h num_objects}(hjAhhhNhNubah}(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.hhKhj9ubj)}(hhh]h)}(hnumber of objects lockedh]hnumber of objects locked}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKhjČubj)}(h)``max_objects`` maximum objects in array h](j)}(h``max_objects``h]j)}(hjxh]h max_objects}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK#hjrubj)}(hhh]h)}(hmaximum objects in arrayh]hmaximum objects in array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjČubj)}(h(``objects`` array of the locked objects h](j)}(h ``objects``h]j)}(hjh]hobjects}(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)}(harray of the locked objectsh]harray of the locked objects}(hjʍhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƍhK(hjǍubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƍhK(hjČubj)}(h5``contended`` contended GEM object we backed off for h](j)}(h ``contended``h]j)}(hjh]h contended}(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)}(h&contended GEM object we backed off forh]h&contended GEM object we backed off for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK-hjČubj)}(h9``prelocked`` already locked GEM object due to contentionh](j)}(h ``prelocked``h]j)}(hj#h]h prelocked}(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.hhK1hjubj)}(hhh]h)}(h+already locked GEM object due to contentionh]h+already locked GEM object due to contention}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK2hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hK1hjČubeh}(h]h ]h"]h$]h&]uh1jhj|ubeh}(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}(hj}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjyhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK7ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyhhhjhK7ubh)}(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_objasbuh1hhjyhhhjhK7ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyhhhjhK7ubjH)}(hjKh]h*}(hjˎhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjyhhhjhK7ubj{)}(h drm_exec_objh]j)}(hjh]h drm_exec_obj}(hj܎hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؎ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhjhK7ubj)}(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 }(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_exec_objasbuh1hhjubjj)}(h h]h }(hj3hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjAhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hexech]hexec}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long indexh](j)}(hunsignedh]hunsigned}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjj)}(h h]h }(hjuhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjcubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjcubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhK7ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjuhhhjhK7ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jKhjhK7hjrhhubj)}(hhh]h)}(h+Return the object for a give drm_exec indexh]h+Return the object for a give drm_exec index}(hjɏhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK7hjƏhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhK7ubeh}(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}(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;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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK8hjubj)}(hhh]h)}(hPointer to the drm_exec contexth]hPointer to the drm_exec context}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK8hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubj)}(h#``unsigned long index`` The index. h](j)}(h``unsigned long index``h]j)}(hjCh]hunsigned long index}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhK9hj=ubj)}(hhh]h)}(h The index.h]h The index.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhK9hjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhK9hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hj~h]hReturn}(hjhhhNhNubah}(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.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)}(hjϐh]hdrm_exec_for_each_locked_object}(hjِhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՐubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjѐhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKEubah}(h]h ]h"]h$]h&]jjjuh1jQjjhj͐hhhjhKEubah}(h]jȐah ](jjeh"]h$]h&]jj)jhuh1jKhjhKEhjʐhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjʐhhhjhKEubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubh)}(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}(hj%hhhNhNubah}(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&]uh1jhj3hKEhjhhubj)}(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}(hjBhhhNhNubah}(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.hhKIhj:ubj)}(hhh](j)}(h``exec`` drm_exec object h](j)}(h``exec``h]j)}(hj_h]hexec}(hjahhhNhNubah}(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.hhKFhjYubj)}(hhh]h)}(hdrm_exec objecth]hdrm_exec object}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKFhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthKFhjVubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKGhjVubj)}(h``obj`` the current GEM object h](j)}(h``obj``h]j)}(hjёh]hobj}(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.hhKHhjˑubj)}(hhh]h)}(hthe current GEM objecth]hthe current GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjˑubeh}(h]h ]h"]h$]h&]uh1jhjhKHhjVubeh}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKJhj:ubh)}(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.hhKIhj:ubeh}(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)}(hjKh]h'drm_exec_for_each_locked_object_reverse}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKPubah}(h]h ]h"]h$]h&]jjjuh1jQjjhjIhhhjhhKPubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1jKhjhhKPhjFhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjFhhhjhhKPubeh}(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)}(hhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj:ubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:ubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj^modnameN classnameNj+j.)}j1]j4)}j'j$sbc.drm_exec_is_contendedasbuh1hhj:ubjj)}(h h]h }(hj|hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj:ubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h)}(hcheck for contentionh]hcheck for contention}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjٖjjٖjjjuh1jFhhhjhNhNubj)}(h**Parameters** ``struct drm_exec *exec`` drm_exec object **Description** Returns true if the drm_exec object has run into some contention while locking a GEM object and needs to clean up.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(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.hhKhjݖubj)}(hhh]j)}(h*``struct drm_exec *exec`` drm_exec object 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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKhjubj)}(hhh]h)}(hdrm_exec objecth]hdrm_exec 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)}(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.hhKhjݖubh)}(hrReturns true if the drm_exec object has run into some contention while locking a GEM object and needs to clean up.h]hrReturns true if the drm_exec object has run into some contention while locking a GEM object and needs to clean up.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:567: ./include/drm/drm_exec.hhKhjݖubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_exec_init (C function)c.drm_exec_inithNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hBvoid drm_exec_init (struct drm_exec *exec, u32 flags, unsigned nr)h]jR)}(hAvoid drm_exec_init(struct drm_exec *exec, u32 flags, unsigned nr)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKGubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~hhhjhKGubj{)}(h drm_exec_inith]j)}(h drm_exec_inith]h drm_exec_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~hhhjhKGubj)}(h/(struct drm_exec *exec, u32 flags, unsigned nr)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}(hjݗhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڗubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjߗmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_exec_initasbuh1hhjubjj)}(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&]noemphjjuh1jhjubj)}(h u32 flagsh](h)}(hhh]j)}(hu32h]hu32}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj6modnameN classnameNj+j.)}j1]jc.drm_exec_initasbuh1hhj-ubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj-ubj)}(hflagsh]hflags}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h unsigned nrh](j)}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjuubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhKGubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjzhhhjhKGubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1jKhjhKGhjwhhubj)}(hhh]h)}(hinitialize a drm_exec objecth]hinitialize a drm_exec object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKGhjhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhKGubeh}(h]h ](jfunctioneh"]h$]h&]jjjjטjjטjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_exec *exec`` the drm_exec object to initialize ``u32 flags`` controls locking behavior, see DRM_EXEC_* defines ``unsigned nr`` the initial # of objects **Description** Initialize the object and make sure that we can track locked objects. If nr is non-zero then it is used as the initial objects table size. In either case, the table will grow (be re-allocated) on demand.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߘubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKKhjۘubj)}(hhh](j)}(h<``struct drm_exec *exec`` the drm_exec object to initialize 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKHhjubj)}(hhh]h)}(h!the drm_exec object to initializeh]h!the drm_exec object to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKHhjubj)}(h@``u32 flags`` controls locking behavior, see DRM_EXEC_* defines h](j)}(h ``u32 flags``h]j)}(hj9h]h u32 flags}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKIhj3ubj)}(hhh]h)}(h1controls locking behavior, see DRM_EXEC_* definesh]h1controls locking behavior, see DRM_EXEC_* defines}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhKIhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhKIhjubj)}(h)``unsigned nr`` the initial # of objects h](j)}(h``unsigned nr``h]j)}(hjrh]h unsigned nr}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKJhjlubj)}(hhh]h)}(hthe initial # of objectsh]hthe initial # of objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKJhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubeh}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKLhjۘubh)}(hEInitialize the object and make sure that we can track locked objects.h]hEInitialize the object and make sure that we can track locked objects.}(hjÙhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKKhjۘubh)}(hIf nr is non-zero then it is used as the initial objects table size. In either case, the table will grow (be re-allocated) on demand.h]hIf nr is non-zero then it is used as the initial objects table size. In either case, the table will grow (be re-allocated) on demand.}(hjҙhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKMhjۘubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_exec_fini (C function)c.drm_exec_finihNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h*void drm_exec_fini (struct drm_exec *exec)h]jR)}(h)void drm_exec_fini(struct drm_exec *exec)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKbubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKbubj{)}(h drm_exec_finih]j)}(h drm_exec_finih]h drm_exec_fini}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKbubj)}(h(struct drm_exec *exec)h]j)}(hstruct drm_exec *exech](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)}(hdrm_exech]hdrm_exec}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj^modnameN classnameNj+j.)}j1]j4)}j'j$sbc.drm_exec_finiasbuh1hhj:ubjj)}(h h]h }(hj|hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj:ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj:ubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKbubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKbhjhhubj)}(hhh]h)}(hfinalize a drm_exec objecth]hfinalize a drm_exec object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKbhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjٚjjٚjjjuh1jFhhhjhNhNubj)}(h**Parameters** ``struct drm_exec *exec`` the drm_exec object to finalize **Description** Unlock all locked objects, drop the references to objects and free all memory used for tracking the state.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(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.chKfhjݚubj)}(hhh]j)}(h:``struct drm_exec *exec`` the drm_exec object to finalize 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKchjubj)}(hhh]h)}(hthe drm_exec object to finalizeh]hthe drm_exec object to finalize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKchjubah}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKehjݚubh)}(hjUnlock all locked objects, drop the references to objects and free all memory used for tracking the state.h]hjUnlock all locked objects, drop the references to objects and free all memory used for tracking the state.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKdhjݚubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_exec_cleanup (C function)c.drm_exec_cleanuphNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(h-bool drm_exec_cleanup (struct drm_exec *exec)h]jR)}(h,bool drm_exec_cleanup(struct drm_exec *exec)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKtubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj~hhhjhKtubj{)}(hdrm_exec_cleanuph]j)}(hdrm_exec_cleanuph]hdrm_exec_cleanup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~hhhjhKtubj)}(h(struct drm_exec *exec)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}(hjܛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٛubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjޛmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_exec_cleanupasbuh1hhjubjj)}(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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhKtubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjzhhhjhKtubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1jKhjhKthjwhhubj)}(hhh]h)}(h#cleanup when contention is detectedh]h#cleanup when contention is detected}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKthj>hhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhKtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_exec *exec`` the drm_exec object to cleanup **Description** Cleanup the current state and return true if we should stay inside the retry loop, false if there wasn't any contention detected and we can keep the objects locked.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKxhj]ubj)}(hhh]j)}(h9``struct drm_exec *exec`` the drm_exec object to cleanup 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKuhj|ubj)}(hhh]h)}(hthe drm_exec object to cleanuph]hthe drm_exec object to cleanup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKuhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKuhjyubah}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKwhj]ubh)}(hCleanup the current state and return true if we should stay inside the retry loop, false if there wasn't any contention detected and we can keep the objects locked.h]hCleanup the current state and return true if we should stay inside the retry loop, false if there wasn’t any contention detected and we can keep the objects locked.}(hjӜhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKvhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_exec_lock_obj (C function)c.drm_exec_lock_objhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hIint drm_exec_lock_obj (struct drm_exec *exec, struct drm_gem_object *obj)h]jR)}(hHint drm_exec_lock_obj(struct drm_exec *exec, struct drm_gem_object *obj)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhKubj{)}(hdrm_exec_lock_objh]j)}(hdrm_exec_lock_objh]hdrm_exec_lock_obj}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h3(struct drm_exec *exec, struct drm_gem_object *obj)h](j)}(hstruct drm_exec *exech](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)}(hdrm_exech]hdrm_exec}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj_modnameN classnameNj+j.)}j1]j4)}j'j%sbc.drm_exec_lock_objasbuh1hhj;ubjj)}(h h]h }(hj}hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj;ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj;ubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(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]jyc.drm_exec_lock_objasbuh1hhjubjj)}(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&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhKhjhhubj)}(hhh]h)}(hlock a GEM object for useh]hlock a GEM object for use}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKhj/hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_exec *exec`` the drm_exec object with the state ``struct drm_gem_object *obj`` the GEM object to lock **Description** Lock a GEM object for use and grab a reference to it. **Return** -EDEADLK if a contention is detected, -EALREADY when object is already locked (can be suppressed by setting the DRM_EXEC_IGNORE_DUPLICATES flag), -ENOMEM when memory allocation failed and zero for success.h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKhjNubj)}(hhh](j)}(h=``struct drm_exec *exec`` the drm_exec object with the state h](j)}(h``struct drm_exec *exec``h]j)}(hjsh]hstruct drm_exec *exec}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKhjmubj)}(hhh]h)}(h"the drm_exec object with the stateh]h"the drm_exec object with the state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhKhjjubj)}(h6``struct drm_gem_object *obj`` the GEM object to lock 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKhjubj)}(hhh]h)}(hthe GEM object to lockh]hthe GEM object to lock}(hjŞhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjžubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubh)}(h**Description**h]j)}(hjh]h Description}(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.chKhjNubh)}(h5Lock a GEM object for use and grab a reference to it.h]h5Lock a GEM object for use and grab a reference to it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKhjNubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKhjNubh)}(h-EDEADLK if a contention is detected, -EALREADY when object is already locked (can be suppressed by setting the DRM_EXEC_IGNORE_DUPLICATES flag), -ENOMEM when memory allocation failed and zero for success.h]h-EDEADLK if a contention is detected, -EALREADY when object is already locked (can be suppressed by setting the DRM_EXEC_IGNORE_DUPLICATES flag), -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.chKhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_exec_unlock_obj (C function)c.drm_exec_unlock_objhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hLvoid drm_exec_unlock_obj (struct drm_exec *exec, struct drm_gem_object *obj)h]jR)}(hKvoid drm_exec_unlock_obj(struct drm_exec *exec, struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKubjj)}(h h]h }(hjbhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjOhhhjahKubj{)}(hdrm_exec_unlock_objh]j)}(hdrm_exec_unlock_objh]hdrm_exec_unlock_obj}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhhjahKubj)}(h3(struct drm_exec *exec, struct drm_gem_object *obj)h](j)}(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]j4)}j'jvsbc.drm_exec_unlock_objasbuh1hhjubjj)}(h h]h }(hjΟhhhNhNubah}(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&]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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj"modnameN classnameNj+j.)}j1]jʟc.drm_exec_unlock_objasbuh1hhjubjj)}(h h]h }(hj>hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjLhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjh]hobj}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahKubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjKhhhjahKubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jKhjahKhjHhhubj)}(hhh]h)}(h(unlock a GEM object in this exec contexth]h(unlock a GEM object in this exec context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hXa**Parameters** ``struct drm_exec *exec`` the drm_exec object with the state ``struct drm_gem_object *obj`` the GEM object to unlock **Description** Unlock the GEM object and remove it from the collection of locked objects. Should only be used to unlock the most recently locked objects. It's not time efficient to unlock objects locked long ago.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(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.chMhjubj)}(hhh](j)}(h=``struct drm_exec *exec`` the drm_exec object with the state 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chKhjubj)}(hhh]h)}(h"the drm_exec object with the stateh]h"the drm_exec object with the state}(hjݠhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj٠hKhjڠubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj٠hKhjubj)}(h8``struct drm_gem_object *obj`` the GEM object to unlock 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chMhjubj)}(hhh]h)}(hthe GEM object to unlockh]hthe GEM object to unlock}(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)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chMhjubh)}(hUnlock the GEM object and remove it from the collection of locked objects. Should only be used to unlock the most recently locked objects. It's not time efficient to unlock objects locked long ago.h]hUnlock the GEM object and remove it from the collection of locked objects. Should only be used to unlock the most recently locked objects. It’s not time efficient to unlock objects locked long ago.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB!drm_exec_prepare_obj (C function)c.drm_exec_prepare_objhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(heint drm_exec_prepare_obj (struct drm_exec *exec, struct drm_gem_object *obj, unsigned int num_fences)h]jR)}(hdint drm_exec_prepare_obj(struct drm_exec *exec, struct drm_gem_object *obj, unsigned int num_fences)h](j)}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chMubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjyhhhjhMubj{)}(hdrm_exec_prepare_objh]j)}(hdrm_exec_prepare_objh]hdrm_exec_prepare_obj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhjhMubj)}(hL(struct drm_exec *exec, struct drm_gem_object *obj, unsigned int num_fences)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}(hjءhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjաubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjڡmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_exec_prepare_objasbuh1hhjubjj)}(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&]noemphjjuh1jhjubj)}(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]jc.drm_exec_prepare_objasbuh1hhj(ubjj)}(h h]h }(hjhhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj(ubjH)}(hjKh]h*}(hjvhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj(ubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(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 }(hjƢhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(h num_fencesh]h num_fences}(hjԢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjrhhubj)}(hhh]h)}(hprepare a GEM object for useh]hprepare a GEM object for use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhjhNhNubj)}(hX**Parameters** ``struct drm_exec *exec`` the drm_exec object with the state ``struct drm_gem_object *obj`` the GEM object to prepare ``unsigned int num_fences`` how many fences to reserve **Description** Prepare a GEM object for use by locking it and reserving fence slots. **Return** -EDEADLK if a contention is detected, -EALREADY when object is already locked, -ENOMEM when memory allocation failed and zero for success.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj"hhhNhNubah}(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.chMhjubj)}(hhh](j)}(h=``struct drm_exec *exec`` the drm_exec object with the state h](j)}(h``struct drm_exec *exec``h]j)}(hj?h]hstruct drm_exec *exec}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chMhj9ubj)}(hhh]h)}(h"the drm_exec object with the stateh]h"the drm_exec object with the state}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhj6ubj)}(h9``struct drm_gem_object *obj`` the GEM object to prepare h](j)}(h``struct drm_gem_object *obj``h]j)}(hjxh]hstruct drm_gem_object *obj}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chMhjrubj)}(hhh]h)}(hthe GEM object to prepareh]hthe GEM object to prepare}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhj6ubj)}(h7``unsigned int num_fences`` how many 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chMhjubj)}(hhh]h)}(hhow many fences to reserveh]hhow many fences to reserve}(hjʣhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƣhMhjǣubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƣhMhj6ubeh}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chMhjubh)}(hEPrepare a GEM object for use by locking it and reserving fence slots.h]hEPrepare a GEM object for use by locking it and reserving fence slots.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chMhjubh)}(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.chMhjubh)}(h-EDEADLK if a contention is detected, -EALREADY when object is already locked, -ENOMEM when memory allocation failed and zero for success.h]h-EDEADLK if a contention is detected, -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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_exec_prepare_array (C function)c.drm_exec_prepare_arrayhNtauh1j5hjhhhNhNubjG)}(hhh](jL)}(hint drm_exec_prepare_array (struct drm_exec *exec, struct drm_gem_object **objects, unsigned int num_objects, unsigned int num_fences)h]jR)}(hint drm_exec_prepare_array(struct drm_exec *exec, struct drm_gem_object **objects, unsigned int num_objects, unsigned int num_fences)h](j)}(hinth]hint}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM7ubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjThhhjfhM7ubj{)}(hdrm_exec_prepare_arrayh]j)}(hdrm_exec_prepare_arrayh]hdrm_exec_prepare_array}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhhjfhM7ubj)}(hk(struct drm_exec *exec, struct drm_gem_object **objects, unsigned int num_objects, unsigned int num_fences)h](j)}(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]j4)}j'j{sbc.drm_exec_prepare_arrayasbuh1hhjubjj)}(h h]h }(hjӤhhhNhNubah}(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&]noemphjjuh1jhjubj)}(hstruct drm_gem_object **objectsh](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]jϤc.drm_exec_prepare_arrayasbuh1hhjubjj)}(h h]h }(hjChhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjQhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjH)}(hjKh]h*}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hobjectsh]hobjects}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_objectsh](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_objectsh]h num_objects}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_fencesh](j)}(hunsignedh]hunsigned}(hjեhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѥubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjѥubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѥubjj)}(h h]h }(hjhhhNhNubah}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjfhM7ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjPhhhjfhM7ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jKhjfhM7hjMhhubj)}(hhh]h)}(h%helper to prepare an array of objectsh]h%helper to prepare an array of objects}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM7hj4hhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhM7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1jFhhhjhNhNubj)}(hX=**Parameters** ``struct drm_exec *exec`` the drm_exec object with the state ``struct drm_gem_object **objects`` array of GEM object to prepare ``unsigned int num_objects`` number of GEM objects in the array ``unsigned int num_fences`` number of fences to reserve on each GEM object **Description** Prepares all GEM objects in an array, aborts on first error. Reserves **num_fences** on each GEM object after locking it. **Return** -EDEADLOCK on contention, -EALREADY when object is already locked, -ENOMEM when memory allocation failed and zero for success.h](h)}(h**Parameters**h]j)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM;hjSubj)}(hhh](j)}(h=``struct drm_exec *exec`` the drm_exec object with the state h](j)}(h``struct drm_exec *exec``h]j)}(hjxh]hstruct drm_exec *exec}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM8hjrubj)}(hhh]h)}(h"the drm_exec object with the stateh]h"the drm_exec object with the state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjoubj)}(hC``struct drm_gem_object **objects`` array of GEM object to prepare h](j)}(h#``struct drm_gem_object **objects``h]j)}(hjh]hstruct drm_gem_object **objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM9hjubj)}(hhh]h)}(harray of GEM object to prepareh]harray of GEM object to prepare}(hjʦhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƦhM9hjǦubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƦhM9hjoubj)}(h@``unsigned int num_objects`` number of GEM objects in the array h](j)}(h``unsigned int num_objects``h]j)}(hjh]hunsigned int num_objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM:hjubj)}(hhh]h)}(h"number of GEM objects in the arrayh]h"number of GEM objects in the array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjoubj)}(hK``unsigned int num_fences`` number of fences to reserve on each GEM object 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM;hjubj)}(hhh]h)}(h.number of fences to reserve on each GEM objecth]h.number of fences to reserve on each GEM object}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM;hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hM;hjoubeh}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]j)}(hj^h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM=hjSubh)}(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 }(hjthhhNhNubj)}(h**num_fences**h]h num_fences}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh% on each GEM object after locking it.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM<hjSubh)}(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?hjSubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:570: ./drivers/gpu/drm/drm_exec.chM@hjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]drm-execution-contextah ]h"]drm execution contextah$]h&]uh1hhhhhhhhM2ubh)}(hhh](h)}(h GPU Schedulerh]h GPU Scheduler}(hjΧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj˧hhhhhM>ubh)}(hhh](h)}(hOverviewh]hOverview}(hjߧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjܧhhhhhMAubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:579: ./drivers/gpu/drm/scheduler/sched_main.chKhjܧhhubh)}(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!hjܧhhubjP:)}(hhh](jz)}(h#Each hw run queue has one schedulerh]h)}(hjh]h#Each hw run queue has one scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:579: ./drivers/gpu/drm/scheduler/sched_main.chK#hjubah}(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)}(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)}(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}(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.hhKOhjubjh)}(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; };}hj1sbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKQhjubh)}(h **Members**h]j)}(hjBh]hMembers}(hjDhhhNhNubah}(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.hhKfhjubj)}(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)}(hjah]hlist}(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.hhKXhj[ubj)}(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 }(hjzhhhNhNubj)}(h**rq**h]hrq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh under }(hjzhhhNhNubh)}(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.hhKUhjzubh.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKUhjwubh)}(hBProtected by :c:type:`drm_sched_rq.lock ` of **rq**.h](h Protected by }(hjhhhNhNubh)}(h*:c:type:`drm_sched_rq.lock `h]j)}(hjȫh]hdrm_sched_rq.lock}(hjʫhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjƫubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^ja drm_sched_rquh1hhjvhKXhjubh of }(hjhhhNhNubj)}(h**rq**h]hrq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjvhKXhjwubeh}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKXhjXubj)}(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)}(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.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 (}(hj,hhhNhNubj)}(h**rq**h]hrq}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh ) to which this entity belongs, }(hj,hhhNhNubj)}(h **priority**h]hpriority}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh and the list of schedulers (}(hj,hhhNhNubj)}(h**sched_list**h]h sched_list}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh, }(hj,hhhNhNubj)}(h**num_sched_list**h]hnum_sched_list}(hjjhhhNhNubah}(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.hhK_hj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hK`hjXubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKghjubh)}(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 }(hjhhhNhNubj)}(h**lock**h]hlock}(hjŬhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhU, but readers are generally lockless and seem to just race with not even a READ_ONCE.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKihjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKkhjXubj)}(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)}(hjh]h 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.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.hhKrhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKuhjubh)}(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 }(hj'hhhNhNubh)}(h:c:type:`num_sched_list`h]j)}(hj1h]hnum_sched_list}(hj3hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj/ubah}(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.hhKyhj'ubh equals 1 and }(hj'hhhNhNubj)}(h**rq**h]hrq}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh has been set already.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjNhKyhjubh)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhK|hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK}hjXubj)}(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 }(hjhhhNhNubj)}(h**sched_list**h]h sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjXubj)}(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)}(hj׭h]hpriority}(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)}(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 }(hjhhhNhNubj)}(h**lock**h]hlock}(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.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjѭubeh}(h]h ]h"]h$]h&]uh1jhjhKhjXubj)}(h/``job_queue`` the list of jobs of this entity. h](j)}(h ``job_queue``h]j)}(hj#h]h job_queue}(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.hhKhjubj)}(hhh]h)}(h the list of jobs of this entity.h]h the list of jobs of this entity.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hKhjXubj)}(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)}(hj\h]h fence_seq}(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.hhKhjVubj)}(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 }(hjuhhhNhNubh)}(h:c:type:`drm_sched_fence`h]j)}(hjh]hdrm_sched_fence}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj}ubah}(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.hhKhjuubh which is part of the entity.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjrubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjrubeh}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjXubj)}(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)}(hjȮh]h fence_context}(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)}(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}(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 uses the fence_context but }(hjhhhNhNubh)}(h4:c:type:`drm_sched_fence.finished `h]j)}(hjh]hdrm_sched_fence.finished}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_fenceuh1hhjhKhjubh uses fence_context + 1.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjޮubah}(h]h ]h"]h$]h&]uh1jhj®ubeh}(h]h ]h"]h$]h&]uh1jhjݮhKhjXubj)}(hU``dependency`` The dependency fence of the job which is on the top of the job queue. h](j)}(h``dependency``h]j)}(hjHh]h dependency}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjBubj)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKhjXubj)}(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.hhKhj{ubj)}(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&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjXubj)}(h'``guilty`` Points to entities' guilty. h](j)}(h ``guilty``h]j)}(hjh]hguilty}(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)}(hPoints to entities' guilty.h]hPoints to entities’ guilty.}(hjӯhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϯhKhjЯubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϯhKhjXubj)}(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.hhKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjXubj)}(h?``last_user`` last group leader pushing a job into the entity. h](j)}(h ``last_user``h]j)}(hj-h]h last_user}(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)}(h0last group leader pushing a job into the entity.h]h0last group leader pushing a job into the entity.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjXubj)}(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)}(hjfh]hstopped}(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.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.hhKhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hKhjXubj)}(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().}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjXubj)}(h>``oldest_job_waiting`` Marks earliest job waiting in SW queue h](j)}(h``oldest_job_waiting``h]j)}(hjڰh]holdest_job_waiting}(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&Marks earliest job waiting in SW queueh]h&Marks earliest job waiting in SW queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj԰ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjXubj)}(hS``rb_tree_node`` The node used to insert this entity into time based priority queueh](j)}(h``rb_tree_node``h]j)}(hjh]h rb_tree_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.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}(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(hKhjXubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(h**Description**h]j)}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj*hhubh)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKLhj*hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_rq (C struct)c.drm_sched_rqhNtauh1j5hj*hhhNhNubjG)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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.}(hjֱhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjӱhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKSubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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; };}hjsbah}(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)}(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.hhKhjubj)}(hhh](j)}(h5``sched`` the scheduler to which this rq belongs to. h](j)}(h ``sched``h]j)}(hjCh]hsched}(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.hhKhj=ubj)}(hhh]h)}(h*the scheduler to which this rq belongs to.h]h*the scheduler to which this rq belongs to.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhKhj:ubj)}(hI``lock`` protects **entities**, **rb_tree_root** and **current_entity**. h](j)}(h``lock``h]j)}(hj|h]hlock}(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.hhKhjvubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**current_entity**h]hcurrent_entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhKhj:ubj)}(h8``current_entity`` the entity which is to be scheduled. h](j)}(h``current_entity``h]j)}(hjh]hcurrent_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.hhKhjubj)}(hhh]h)}(h$the entity which is to be scheduled.h]h$the entity which is to be scheduled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj:ubj)}(h3``entities`` list of the entities to be scheduled. h](j)}(h ``entities``h]j)}(hj$h]hentities}(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.hhKhjubj)}(hhh]h)}(h%list of the entities to be scheduled.h]h%list of the entities to be scheduled.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hKhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKhj:ubj)}(hR``rb_tree_root`` root of time based priority queue of entities for FIFO schedulingh](j)}(h``rb_tree_root``h]j)}(hj]h]h rb_tree_root}(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.hhKhjWubj)}(hhh]h)}(hAroot of time based priority queue of entities for FIFO schedulingh]hAroot of time based priority queue of entities for FIFO scheduling}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKhj:ubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj*hhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhKhj*hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_fence (C struct)c.drm_sched_fencehNtauh1j5hj*hhhNhNubjG)}(hhh](jL)}(hdrm_sched_fenceh]jR)}(hstruct drm_sched_fenceh](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.hhKubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjڳhhhjhKubj{)}(hdrm_sched_fenceh]j)}(hjسh]hdrm_sched_fence}(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)}(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.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjӳhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjj8jj8jjjuh1jFhhhj*hNhNubj)}(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}(hjDhhhNhNubah}(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 hj<ubjh)}(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; };}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)}(hjnh]hMembers}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj<ubj)}(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.}(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 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)}(hjǴh]hfinished}(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)}(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.hhMhjݴubh)}(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.}(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)}(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)}(hjh]hdeadline}(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)}(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 }(hj)hhhNhNubh)}(h4:c:type:`drm_sched_fence.finished `h]j)}(hj3h]hdrm_sched_fence.finished}(hj5hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj1ubah}(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.hhMhj)ubh- which potentially needs to be propagated to }(hj)hhhNhNubh)}(h2:c:type:`drm_sched_fence.parent `h]j)}(hjWh]hdrm_sched_fence.parent}(hjYhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_sched_fenceuh1hhjPhMhj)ubeh}(h]h ]h"]h$]h&]uh1hhjPhMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubj)}(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 }(hjhhhNhNubh)}(h?:c:type:`drm_sched_backend_ops.run_job `h]j)}(hjh]hdrm_sched_backend_ops.run_job}(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#hjubh4 when scheduling the job on hardware. We signal the }(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̵hM#hjubh fence once parent is signalled.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj̵hM#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}(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)}(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.}(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*hjubj)}(hA``lock`` the lock used by the scheduled and the finished fences. h](j)}(h``lock``h]j)}(hjFh]hlock}(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)}(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&]uh1hhj[hM.hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hM.hjubj)}(h"``owner`` job owner for debugging h](j)}(h ``owner``h]j)}(hjh]howner}(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.hhM2hjyubj)}(hhh]h)}(hjob owner for debuggingh]hjob owner for debugging}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(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)}(hjh]h drm_client_id}(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)}(h1The client_id of the drm_file which owns the job.h]h1The client_id of the drm_file which owns the job.}(hjѶhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM7hjζubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjͶhM6hjubeh}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_job (C struct)c.drm_sched_jobhNtauh1j5hj*hhhNhNubjG)}(hhh](jL)}(h drm_sched_jobh]jR)}(hstruct drm_sched_jobh](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 }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhjhM=ubj{)}(h drm_sched_jobh]j)}(hj h]h drm_sched_job}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM=ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj hhhjhM=ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhM=hjhhubj)}(hhh]h)}(hA job to be run by an entity.h]hA job to be run by an entity.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM@hjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM=ubeh}(h]h ](jstructeh"]h$]h&]jjjjljjljjjuh1jFhhhj*hNhNubj)}(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}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh:}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMDhjpubjh)}(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.hhMFhjpubh)}(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.hhMYhjpubj)}(hhh](j)}(h=``submit_ts`` When the job was pushed into the entity queue. h](j)}(h ``submit_ts``h]j)}(hjh]h submit_ts}(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.hhMWhjubj)}(hhh]h)}(h.When the job was pushed into the entity queue.h]h.When the job was pushed into the entity queue.}(hjڷhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjַhMWhj׷ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjַhMWhjubj)}(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.}(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`hjubj)}(h;``s_fence`` contains the fences for the scheduling of job. h](j)}(h ``s_fence``h]j)}(hj4h]hs_fence}(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.hhMFhj.ubj)}(hhh]h)}(h.contains the fences for the scheduling of job.h]h.contains the fences for the scheduling of job.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMFhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMFhjubj)}(h1``entity`` the entity to which this job belongs. h](j)}(h ``entity``h]j)}(hjmh]hentity}(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.hhMNhjgubj)}(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&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubj)}(h(``s_priority`` the priority of the job. h](j)}(h``s_priority``h]j)}(hjh]h s_priority}(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.hhMMhjubj)}(hhh]h)}(hthe priority of the job.h]hthe priority of the job.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubj)}(hH``credits`` the number of credits this job contributes to the scheduler h](j)}(h ``credits``h]j)}(hj߸h]hcredits}(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.hhMHhjٸubj)}(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&]uh1jhjٸubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubj)}(h;``last_dependency`` tracks **dependencies** as they signal h](j)}(h``last_dependency``h]j)}(hjh]hlast_dependency}(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.hhMkhjubj)}(hhh]h)}(h&tracks **dependencies** as they signalh](htracks }(hj1hhhNhNubj)}(h**dependencies**h]h dependencies}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh as they signal}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-hMkhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMkhjubj)}(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)}(hjch]hkarma}(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.hhMLhj]ubj)}(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.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMJhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMLhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubj)}(h=``list`` a job participates in a "pending" and "done" lists. h](j)}(h``list``h]j)}(hjֹh]hlist}(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.hhMDhjйubj)}(hhh]h)}(h3a job participates in a "pending" and "done" lists.h]h;a job participates in a “pending” and “done” lists.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1jhjйubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j)}(hjh]h{unnamed_union}}(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.hhKhj ubj)}(hhh]h)}(h anonymoush]h anonymous}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjubj)}(h3``finish_cb`` the callback for the finished fence. h](j)}(h ``finish_cb``h]j)}(hjHh]h finish_cb}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMGhjBubj)}(hhh]h)}(h$the callback for the finished fence.h]h$the callback for the finished fence.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMGhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMGhjubj)}(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.hhMIhj{ubj)}(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&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjubj)}(h5``cb`` the callback for the parent fence in s_fence. 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.hhMOhjubj)}(hhh]h)}(h-the callback for the parent fence in s_fence.h]h-the callback for the parent fence in s_fence.}(hjӺhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϺhMOhjкubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϺhMOhjubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj*hhubh)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMOhj*hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpu_sched_stat (C enum)c.drm_gpu_sched_stathNtauh1j5hj*hhhNhNubjG)}(hhh](jL)}(hdrm_gpu_sched_stath]jR)}(henum drm_gpu_sched_stath](jX)}(hj[h]henum}(hjthhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjphhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMVubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjphhhjhMVubj{)}(hdrm_gpu_sched_stath]j)}(hjnh]hdrm_gpu_sched_stat}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjphhhjhMVubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjlhhhjhMVubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1jKhjhMVhjihhubj)}(hhh]h)}(hthe scheduler's statush]hthe scheduler’s status}(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&]uh1jhjihhhjhMVubeh}(h]h ](jenumeh"]h$]h&]jjjjλjjλjjjuh1jFhhhj*hNhNubj)}(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)}(hjػh]h Constants}(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.hhMhjһubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hB``DRM_GPU_SCHED_STAT_RESET`` The GPU hung and successfully reset. h](j)}(h``DRM_GPU_SCHED_STAT_RESET``h]j)}(hj0h]hDRM_GPU_SCHED_STAT_RESET}(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.hhMhj*ubj)}(hhh]h)}(h$The GPU hung and successfully reset.h]h$The GPU hung and successfully reset.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjubj)}(hF``DRM_GPU_SCHED_STAT_ENODEV`` Error: Device is not available anymore. h](j)}(h``DRM_GPU_SCHED_STAT_ENODEV``h]j)}(hjih]hDRM_GPU_SCHED_STAT_ENODEV}(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)}(h'Error: Device is not available anymore.h]h'Error: Device is not available anymore.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjһubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_sched_backend_ops (C struct)c.drm_sched_backend_opshNtauh1j5hj*hhhNhNubjG)}(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&]uh1jihjhhhjhMubj{)}(hdrm_sched_backend_opsh]j)}(hjh]hdrm_sched_backend_ops}(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)}(h5Define the backend operations called by the schedulerh]h5Define the backend operations called by the scheduler}(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&]uh1jhjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjjUjjUjjjuh1jFhhhj*hNhNubj)}(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}(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.hhMhjYubjh)}(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); };}hjzsbah}(h]h ]h"]h$]h&]jjuh1jghW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjYubh)}(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)}(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)}(hjh]h prepare_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)}(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.}(hjýhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjubh)}(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.}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.hhMhjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh: the job to run}(hjhhhNhNubeh}(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 }(hj8hhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjBh]hstruct drm_sched_backend_ops}(hjDhhhNhNubah}(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.hhMhj8ubhXf.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.}(hj8hhhNhNubeh}(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.}(hjjhhhNhNubah}(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.}(hjyhhhNhNubah}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(hjh]h timedout_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)}(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.}(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 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.hhMhjξubh)}(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.hhMhjξubh)}(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.hhMhjξubjP:)}(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.hhMhjubah}(h]h ]h"]h$]h&]uh1jzhjubjz)}(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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj7ubah}(h]h ]h"]h$]h&]uh1jzhjubjz)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjPubah}(h]h ]h"]h$]h&]uh1jzhjubeh}(h]h ]h"]h$]h&]j=j=j=hj=jvuh1jO:hjξubh)}(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).}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjξubh)}(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:}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjξubjP:)}(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)}(hjh]h*Kill the entity the faulty job stems from.}(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)}(h8Issue a GPU reset on all faulty rings (driver-specific).h]h)}(hj¿h]h8Issue a GPU reset on all faulty rings (driver-specific).}(hjĿhhhNhNubah}(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)}(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.}(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)}(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&]j=j=j=hj=jvuh1jO:hjξubh)}(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 }(hjhhhNhNubj)}(h**timeout_wq**h]h timeout_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhP parameter. This will guarantee that timeout handlers are executed sequentially.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjξubh)}(haReturn: The scheduler's status, defined by :c:type:`enum drm_gpu_sched_stat `h](h-Return: The scheduler’s status, defined by }(hj1hhhNhNubh)}(h6:c:type:`enum drm_gpu_sched_stat `h]j)}(hj;h]henum drm_gpu_sched_stat}(hj=hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpu_sched_statuh1hhj;hMhj1ubeh}(h]h ]h"]h$]h&]uh1hhj;hMhjξubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubj)}(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)}(hjph]hfree_job}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjjubj)}(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&]uh1jhjjubeh}(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.}(hjhhhNhNubah}(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 }(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.hhMhjubh .free_job.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(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*hhubh)}(h9These functions should be implemented in the driver side.h]h9These functions should be implemented in the driver side.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhj*hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_gpu_scheduler (C struct)c.drm_gpu_schedulerhNtauh1j5hj*hhhNhNubjG)}(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&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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}(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.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; };}hjsbah}(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)}(hj.h]hMembers}(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.hhM<hjubj)}(hhh](j)}(h3``ops`` backend operations provided by the driver. h](j)}(h``ops``h]j)}(hjMh]hops}(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*backend operations provided by the driver.h]h*backend operations provided by the driver.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjDubj)}(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&]uh1jhjhMhjDubj)}(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 hjDubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM!hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM!hjDubj)}(hB``name`` name of the ring for which this scheduler is being used. h](j)}(h``name``h]j)}(hj1h]hname}(hj3hhhNhNubah}(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)}(h8name of the ring for which this scheduler is being used.h]h8name of the ring for which this scheduler is being used.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM"hjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhM"hjDubj)}(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)}(hjjh]hnum_rqs}(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.hhM$hjdubj)}(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&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjDubj)}(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%hjDubj)}(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)}(hjh]h job_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)}(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.}(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(hjDubj)}(h;``job_id_count`` used to assign unique id to the each job. h](j)}(h``job_id_count``h]j)}(hj)h]h job_id_count}(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)}(h)used to assign unique id to the each job.h]h)used to assign unique id to the each job.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hM)hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hM)hjDubj)}(hM``submit_wq`` workqueue used to queue **work_run_job** and **work_free_job** h](j)}(h ``submit_wq``h]j)}(hjbh]h submit_wq}(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.hhM*hj\ubj)}(hhh]h)}(h>workqueue used to queue **work_run_job** and **work_free_job**h](hworkqueue used to queue }(hj{hhhNhNubj)}(h**work_run_job**h]h work_run_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh and }(hj{hhhNhNubj)}(h**work_free_job**h]h work_free_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1hhjwhM*hjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhM*hjDubj)}(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+hjDubj)}(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}(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.work which calls run_job op of each scheduler.h]h.work which calls run_job op of each scheduler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjDubj)}(hB``work_free_job`` work which calls free_job op of each scheduler. h](j)}(h``work_free_job``h]j)}(hj;h]h work_free_job}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM-hj5ubj)}(hhh]h)}(h/work which calls free_job op of each scheduler.h]h/work which calls free_job op of each scheduler.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhM-hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhM-hjDubj)}(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)}(hjth]hwork_tdr}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM/hjnubj)}(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&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjDubj)}(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&]uh1jhjhM0hjDubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjDubj)}(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)}(hj2h]h hang_limit}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM3hj,ubj)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM2hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM3hjDubj)}(h7``score`` score to help loadbalancer pick a idle sched h](j)}(h ``score``h]j)}(hjlh]hscore}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM4hjfubj)}(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&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjDubj)}(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&]uh1jhjhM5hjDubj)}(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&]uh1jhjhM6hjDubj)}(hB``free_guilty`` A hit to time out handler to free the guilty job. h](j)}(h``free_guilty``h]j)}(hjh]h free_guilty}(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.hhM7hjubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hM7hj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hM7hjDubj)}(hD``pause_submit`` pause queuing of **work_run_job** on **submit_wq** h](j)}(h``pause_submit``h]j)}(hjPh]h pause_submit}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM8hjJubj)}(hhh]h)}(h2pause queuing of **work_run_job** on **submit_wq**h](hpause queuing of }(hjihhhNhNubj)}(h**work_run_job**h]h work_run_job}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh on }(hjihhhNhNubj)}(h **submit_wq**h]h submit_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1hhjehM8hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehM8hjDubj)}(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&]uh1jhjhM9hjDubj)}(h/``dev`` system :c:type:`struct device `h](j)}(h``dev``h]j)}(hjh]hdev}(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'system :c:type:`struct device `h](hsystem }(hj hhhNhNubh)}(h :c:type:`struct device `h]j)}(hjh]h struct device}(hjhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjubah}(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&]uh1hhj0hM:hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjDubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(h**Description**h]j)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM=hj*hhubh)}(h4One scheduler is implemented for each hardware ring.h]h4One scheduler is implemented for each hardware ring.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhM:hj*hhubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_init_args (C struct)c.drm_sched_init_argshNtauh1j5hj*hhhNhNubjG)}(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&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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]hjubjh)}(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; };}hjsbah}(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)}(hj h]hMembers}(hj"hhhNhNubah}(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.hhMlhjubj)}(hhh](j)}(h2``ops`` backend operations provided by the driver h](j)}(h``ops``h]j)}(hj?h]hops}(hjAhhhNhNubah}(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\hj9ubj)}(hhh]h)}(h)backend operations provided by the driverh]h)backend operations provided by the driver}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM\hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThM\hj6ubj)}(h]``submit_wq`` workqueue to use for submission. If NULL, an ordered wq is allocated and used. h](j)}(h ``submit_wq``h]j)}(hjxh]h submit_wq}(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)}(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&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhM^hj6ubj)}(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&]uh1jhjhMehj6ubj)}(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}(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 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.}(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`hj6ubj)}(hM``credit_limit`` the number of credits this scheduler can hold from all jobs h](j)}(h``credit_limit``h]j)}(hj%h]h credit_limit}(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.hhMahjubj)}(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&]uh1hhj:hMahj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMahj6ubj)}(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&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMchjXubj)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMbhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMchj6ubj)}(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&]uh1jhjhMdhj6ubj)}(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&]uh1jhjhMfhj6ubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMghjubj)}(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&]uh1hhjhMghj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMghj6ubj)}(h-``dev`` associated device. Used for debuggingh](j)}(h``dev``h]j)}(hjCh]hdev}(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.hhMghj=ubj)}(hhh]h)}(h%associated device. Used for debuggingh]h%associated device. Used for debugging}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMghj6ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_sched_pending_job_iter (C struct)c.drm_sched_pending_job_iterhNtauh1j5hj*hhhNhNubjG)}(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&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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}(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.hhMhjubjh)}(hKstruct drm_sched_pending_job_iter { struct drm_gpu_scheduler *sched; };h]hKstruct drm_sched_pending_job_iter { struct drm_gpu_scheduler *sched; };}hjsbah}(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)}(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.hhMhjubj)}(hhh]j)}(h<``sched`` DRM scheduler associated with pending job iteratorh](j)}(h ``sched``h]j)}(hjLh]hsched}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjFubj)}(hhh]h)}(h2DRM scheduler associated with pending job iteratorh]h2DRM scheduler associated with pending job iterator}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:591: ./include/drm/gpu_scheduler.hhMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjCubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB(drm_sched_for_each_pending_job (C macro) c.drm_sched_for_each_pending_jobhNtauh1j5hj*hhhNhNubjG)}(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&]jjjjjjjjjuh1jFhhhj*hNhNubh)}(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.hhMhj*hhubj)}(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&]uh1jhjhMhj*hhubj)}(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)}(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:591: ./include/drm/gpu_scheduler.hhMhj ubj)}(hhh](j)}(h2``__job`` Current pending job being iterated over h](j)}(h ``__job``h]j)}(hj0h]h__job}(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.hhMhj*ubj)}(hhh]h)}(h'Current pending job being iterated overh]h'Current pending job being iterated over}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj'ubj)}(h7``__sched`` DRM scheduler to iterate over pending jobs h](j)}(h ``__sched``h]j)}(hjih]h__sched}(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)}(h*DRM scheduler to iterate over pending jobsh]h*DRM scheduler to iterate over pending jobs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj'ubj)}(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&]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: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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_sched_tdr_queue_imm (C function)c.drm_sched_tdr_queue_immhNtauh1j5hj*hhhNhNubjG)}(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&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hj1hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjhhhj0hMubj{)}(hdrm_sched_tdr_queue_immh]j)}(hdrm_sched_tdr_queue_immh]hdrm_sched_tdr_queue_imm}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj0hMubj)}(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 }(hjlhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj[ubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jEsbc.drm_sched_tdr_queue_immasbuh1hhj[ubjj)}(h h]h }(hjhhhNhNubah}(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&]noemphjjuh1jhjWubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj0hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhj0hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhj0hMhjhhubj)}(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&]uh1jhjhhhj0hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jFhhhj*hNhNubj)}(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)}(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 for which the timeout handling should be started. h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hj5h]hstruct drm_gpu_scheduler *sched}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(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 for which the timeout handling should be started.h]h;scheduler for which the timeout handling should be started.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj,ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_fault (C function)c.drm_sched_faulthNtauh1j5hj*hhhNhNubjG)}(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&]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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_faultasbuh1hhjubjj)}(h h]h }(hj0hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj>hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hschedh]hsched}(hjKhhhNhNubah}(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!immediately start timeout handlerh]h!immediately start timeout handler}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjrhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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&]uh1jhjubah}(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.}(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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_sched_suspend_timeout (C function)c.drm_sched_suspend_timeouthNtauh1j5hj*hhhNhNubjG)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjEhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj2hhhjDhMubj)}(hlongh]hlong}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjDhMubjj)}(h h]h }(hjahhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj2hhhjDhMubj{)}(hdrm_sched_suspend_timeouth]j)}(hdrm_sched_suspend_timeouth]hdrm_sched_suspend_timeout}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj2hhhjDhMubj)}(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'jusbc.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&]jjuh1jhj2hhhjDhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj.hhhjDhMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1jKhjDhMhj+hhubj)}(hhh]h)}(hSuspend scheduler job timeouth]hSuspend 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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjDhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1jFhhhj*hNhNubj)}(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)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(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)}(hX``struct drm_gpu_scheduler *sched`` scheduler instance for which to suspend the timeout h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjSh]hstruct drm_gpu_scheduler *sched}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjMubj)}(hhh]h)}(h3scheduler instance for which to suspend the timeouth]h3scheduler instance for which to suspend the timeout}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjJubah}(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)}(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.chMhj.ubh)}(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.chMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_sched_resume_timeout (C function)c.drm_sched_resume_timeouthNtauh1j5hj*hhhNhNubjG)}(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&]uh1jihjhhhjhMubj{)}(hdrm_sched_resume_timeouth]j)}(hdrm_sched_resume_timeouth]hdrm_sched_resume_timeout}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h:(struct drm_gpu_scheduler *sched, unsigned long remaining)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}(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_resume_timeoutasbuh1hhjubjj)}(h h]h }(hj]hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjkhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hschedh]hsched}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jFhhhj*hNhNubj)}(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)}(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)}(hW``struct drm_gpu_scheduler *sched`` scheduler instance for which to resume the timeout h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hj4h]hstruct drm_gpu_scheduler *sched}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(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)}(h2scheduler instance for which to resume the timeouth]h2scheduler instance for which to resume the timeout}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubj)}(h.``unsigned long remaining`` remaining timeout h](j)}(h``unsigned long remaining``h]j)}(hjmh]hunsigned long remaining}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjgubj)}(hhh]h)}(hremaining timeouth]hremaining timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_stop (C function)c.drm_sched_stophNtauh1j5hj*hhhNhNubjG)}(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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(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}(hj*hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj&ubjj)}(h h]h }(hj7hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&ubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjJmodnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_stopasbuh1hhj&ubjj)}(h h]h }(hjhhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj&ubjH)}(hjKh]h*}(hjvhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj&ubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(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]jdc.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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMFhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1jFhhhj*hNhNubj)}(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}(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.chMJhj9ubj)}(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&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMHhjXubj)}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMHhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMHhjUubj)}(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&]uh1jhjhMIhjUubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(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.chMKhj9ubh)}(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.chMJhj9ubh)}(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.chMLhj9ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMLhj9ubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMPhj9ubh)}(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 }(hj-hhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hj7h]hstruct drm_sched_backend_ops}(hj9hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj5ubah}(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.chMThj-ubh4.timedout_job callback when they skip a reset using }(hj-hhhNhNubh)}(h6:c:type:`enum drm_gpu_sched_stat `h]j)}(hj[h]henum drm_gpu_sched_stat}(hj]hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]refdocjX refdomainjreftypetype refexplicitrefwarnj+j^jadrm_gpu_sched_statuh1hhjThMThj-ubh.DRM_GPU_SCHED_STAT_NO_HANG.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjThMThj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_start (C function)c.drm_sched_starthNtauh1j5hj*hhhNhNubjG)}(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 }(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_startasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj+hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hschedh]hsched}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int errnoh](j)}(hinth]hint}(hjQhhhNhNubah}(h]Lh ]jah"]h$]h&]uh1jhjMubjj)}(h h]h }(hj_hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjMubj)}(herrnoh]herrno}(hjmhhhNhNubah}(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)}(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&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h1``int errno`` error to set on the pending fences h](j)}(h ``int errno``h]j)}(hjh]h int errno}(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"error to set on the pending fencesh]h"error to set on the pending fences}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(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.}(hjbhhhNhNubah}(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 }(hjqhhhNhNubh)}(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&]uh1jhjyubah}(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.chMhjqubh4.timedout_job callback when they skip a reset using }(hjqhhhNhNubh)}(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_statuh1hhjhMhjqubh.DRM_GPU_SCHED_STAT_NO_HANG.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB$drm_sched_resubmit_jobs (C function)c.drm_sched_resubmit_jobshNtauh1j5hj*hhhNhNubjG)}(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}(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}(hj#hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj0hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjCmodnameN classnameNj+j.)}j1]j4)}j'j sbc.drm_sched_resubmit_jobsasbuh1hhjubjj)}(h h]h }(hjahhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjohhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hschedh]hsched}(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"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&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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}(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)}(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.}(hj8hhhNhNubah}(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.}(hjGhhhNhNubah}(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.}(hjVhhhNhNubah}(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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_job_init (C function)c.drm_sched_job_inithNtauh1j5hj*hhhNhNubjG)}(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*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_sched_entity *entityh](jX)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj0ubjj)}(h h]h }(hjAhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0ubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjTmodnameN classnameNj+j.)}j1]jc.drm_sched_job_initasbuh1hhj0ubjj)}(h h]h }(hjphhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj0ubjH)}(hjKh]h*}(hj~hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj0ubj)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(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}(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)}(hownerh]howner}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(huint64_t drm_client_idh](h)}(hhh]j)}(huint64_th]huint64_t}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj3modnameN classnameNj+j.)}j1]jc.drm_sched_job_initasbuh1hhj*ubjj)}(h h]h }(hjOhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj*ubj)}(h drm_client_idh]h drm_client_id}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj}hhhjhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjzhhubj)}(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&]uh1jhjzhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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}(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 entity to useh]hscheduler entity to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hZ``u32 credits`` the number of credits this job contributes to the schedulers credit limit h](j)}(h``u32 credits``h]j)}(hj:h]h u32 credits}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hj4ubj)}(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}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hjubj)}(h(``void *owner`` job owner for debugging h](j)}(h``void *owner``h]j)}(hjth]h void *owner}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM hjnubj)}(hhh]h)}(hjob owner for debuggingh]hjob owner for debugging}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(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)}(hjh]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.chMhjubh)}(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.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 }(hj-hhhNhNubj)}(h**job**h]hjob}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh1 is aborted before drm_sched_job_arm() is called.}(hj-hhhNhNubeh}(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.}(hjNhhhNhNubah}(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 }(hj]hhhNhNubh)}(h%:c:type:`drm_sched.ready `h]j)}(hjgh]hdrm_sched.ready}(hjihhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjeubah}(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.chMhj]ubh] to signal when the hardware has died, which can mean that there’s no valid runqueue for a }(hj]hhhNhNubj)}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubhn. This function returns -ENOENT in this case (which probably should be -EIO as a more meanigful return value).}(hj]hhhNhNubeh}(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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_job_arm (C function)c.drm_sched_job_armhNtauh1j5hj*hhhNhNubjG)}(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&]uh1jhjubah}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(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_job_armasbuh1hhj ubjj)}(h h]h }(hjKhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj ubjH)}(hjKh]h*}(hjYhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubj)}(hjobh]hjob}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(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&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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}(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.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)}(hj,h]hdrm_sched_job.s_fence}(hj.hhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhj*ubah}(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}(hjNhhhNhNubah}(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&]uh1hhjIhMLhjubh)}(hNRefer to drm_sched_entity_push_job() documentation for locking considerations.h]hNRefer to drm_sched_entity_push_job() documentation for locking considerations.}(hjfhhhNhNubah}(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 }(hjuhhhNhNubj)}(h*must*h]hmust}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh submit }(hjuhhhNhNubj)}(h**job**h]hjob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh" with drm_sched_entity_push_job().}(hjuhhhNhNubeh}(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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)drm_sched_job_add_dependency (C function)c.drm_sched_job_add_dependencyhNtauh1j5hj*hhhNhNubjG)}(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}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj4modnameN classnameNj+j.)}j1]j4)}j'jsbc.drm_sched_job_add_dependencyasbuh1hhjubjj)}(h h]h }(hjRhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj`hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjobh]hjob}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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]jNc.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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMkhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMkubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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)}(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: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)}(hjHh]hstruct drm_sched_job *job}(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.chMlhjBubj)}(hhh]h)}(h(scheduler job to add the dependencies toh]h(scheduler job to add the dependencies to}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMlhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMlhj?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.chMmhj{ubj)}(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&]uh1jhj{ubeh}(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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB1drm_sched_job_add_syncobj_dependency (C function)&c.drm_sched_job_add_syncobj_dependencyhNtauh1j5hj*hhhNhNubjG)}(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}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjIhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj6hhhjHhMubj{)}(h$drm_sched_job_add_syncobj_dependencyh]j)}(h$drm_sched_job_add_syncobj_dependencyh]h$drm_sched_job_add_syncobj_dependency}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6hhhjHhMubj)}(hI(struct drm_sched_job *job, struct drm_file *file, u32 handle, u32 point)h](j)}(hstruct drm_sched_job *jobh](jX)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjsubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjsubh)}(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'j]sb&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjsubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjsubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjsubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj modnameN classnameNj+j.)}j1]j&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjubjj)}(h h]h }(hj%hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj3hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hfileh]hfile}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj^modnameN classnameNj+j.)}j1]j&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjUubjj)}(h h]h }(hjzhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjUubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(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&]noemphjjuh1jhjoubeh}(h]h ]h"]h$]h&]jjuh1jhj6hhhjHhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj2hhhjHhMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jKhjHhMhj/hhubj)}(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&]uh1jhj/hhhjHhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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)}(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)}(hG``struct drm_sched_job *job`` scheduler job to add the dependencies to h](j)}(h``struct drm_sched_job *job``h]j)}(hj;h]hstruct drm_sched_job *job}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj5ubj)}(hhh]h)}(h(scheduler job to add the dependencies toh]h(scheduler job to add the dependencies to}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubj)}(h3``struct drm_file *file`` drm file private pointer h](j)}(h``struct drm_file *file``h]j)}(hjth]hstruct drm_file *file}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjnubj)}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhj2ubj)}(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&]uh1jhjhMhj2ubj)}(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&]uh1jhjhMhj2ubeh}(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.chMhjubh)}(h:This adds the fence matching the given syncobj to **job**.h](h2This adds the fence matching the given syncobj to }(hj7hhhNhNubj)}(h**job**h]hjob}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(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)}(hjZh]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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.}(hjphhhNhNubah}(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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB0drm_sched_job_add_resv_dependencies (C function)%c.drm_sched_job_add_resv_dependencieshNtauh1j5hj*hhhNhNubjG)}(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 }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hj(hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjobh]hjob}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dma_resv *resvh](jX)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjJubjj)}(h h]h }(hj[hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJubh)}(hhh]j)}(hdma_resvh]hdma_resv}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjnmodnameN classnameNj+j.)}j1]j%c.drm_sched_job_add_resv_dependenciesasbuh1hhjJubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjJubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjJubj)}(hresvh]hresv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(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]j%c.drm_sched_job_add_resv_dependenciesasbuh1hhjubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(husageh]husage}(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'add all fences from the resv to the jobh]h'add all fences from the resv to the job}(hj2hhhNhNubah}(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&]jjjjJjjJjjjuh1jFhhhj*hNhNubj)}(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)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjNubj)}(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)}(hjsh]hstruct drm_sched_job *job}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjmubj)}(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&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubj)}(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&]uh1jhjhMhjjubj)}(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&]uh1jhjhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubh)}(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.chMhjNubh)}(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 }(hj6hhhNhNubj)}(h**resv**h]hresv}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh to }(hj6hhhNhNubj)}(h**job**h]hjob}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh. Must be called with the }(hj6hhhNhNubj)}(h**resv**h]hresv}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh lock held.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjNubh)}(h **Return**h]j)}(hj}h]hReturn}(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.chMhjNubh)}(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.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB4drm_sched_job_add_implicit_dependencies (C function))c.drm_sched_job_add_implicit_dependencieshNtauh1j5hj*hhhNhNubjG)}(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}(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_implicit_dependenciesasbuh1hhjubjj)}(h h]h }(hj=hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjKhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hjobh]hjob}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jX)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjmubjj)}(h h]h }(hj~hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmubh)}(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]j9)c.drm_sched_job_add_implicit_dependenciesasbuh1hhjmubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjmubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjmubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool writeh](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjj)}(h h]h }(hjhhhNhNubah}(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}(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>jjjuh1jFhhhj*hNhNubj)}(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)}(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)}(hG``struct drm_sched_job *job`` scheduler job to add the dependencies to h](j)}(h``struct drm_sched_job *job``h]j)}(hjgh]hstruct drm_sched_job *job}(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)}(h(scheduler job to add the dependencies toh]h(scheduler job to add the dependencies to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj^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.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj^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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjBubh)}(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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjBubh)}(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:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjBubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB)drm_sched_job_has_dependency (C function)c.drm_sched_job_has_dependencyhNtauh1j5hj*hhhNhNubjG)}(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&]uh1jhj}hhhb/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&]uh1jihj}hhhjhMubj{)}(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&]jjuh1jzhj}hhhjhMubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjOmodnameN classnameNj+j.)}j1]jc.drm_sched_job_has_dependencyasbuh1hhj+ubjj)}(h h]h }(hjkhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj+ubjH)}(hjKh]h*}(hjyhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj+ubj)}(hfenceh]hfence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj}hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjyhhhjhMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjvhhubj)}(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&]uh1jhjvhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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&]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 checkh]hscheduler job to check}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``struct dma_fence *fence`` fence to look for 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&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj$ubj)}(hhh]h)}(hfence to look forh]hfence to look for}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjeh]hReturn}(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.chMhjubh)}(hMTrue if **fence** is found within the job's dependencies, or otherwise false.h](hTrue if }(hj{hhhNhNubj)}(h **fence**h]hfence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh> is found within the job’s dependencies, or otherwise false.}(hj{hhhNhNubeh}(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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_sched_job_cleanup (C function)c.drm_sched_job_cleanuphNtauh1j5hj*hhhNhNubjG)}(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 }(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_cleanupasbuh1hhjubjj)}(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&]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}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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)}(hhhhNhNubj)}(h*must*h]hmust}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubhj submit it with drm_sched_entity_push_job() and cannot simply abort it by calling drm_sched_job_cleanup().}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hpThis function should be called in the :c:type:`drm_sched_backend_ops.free_job ` callback.h](h&This function should be called in the }(hj_hhhNhNubh)}(h@:c:type:`drm_sched_backend_ops.free_job `h]j)}(hjih]hdrm_sched_backend_ops.free_job}(hjkhhhNhNubah}(h]h ](jLjc-typeeh"]h$]h&]uh1jhjgubah}(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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB drm_sched_pick_best (C function)c.drm_sched_pick_besthNtauh1j5hj*hhhNhNubjG)}(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)}(hjh]hdrm_sched_pick_best}(hjhhhNhNubah}(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}(hj+hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj'ubjj)}(h h]h }(hj8hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj'ubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjKmodnameN classnameNj+j.)}j1]jc.drm_sched_pick_bestasbuh1hhj'ubjj)}(h h]h }(hjghhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj'ubjH)}(hjKh]h*}(hjuhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj'ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj'ubj)}(h sched_listh]h sched_list}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1jFhhhj*hNhNubj)}(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)}(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:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj&ubj)}(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)}(hjKh]h%struct drm_gpu_scheduler **sched_list}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjEubj)}(hhh]h)}(hlist of drm_gpu_schedulersh]hlist of drm_gpu_schedulers}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjBubj)}(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.chMhj~ubj)}(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&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjBubeh}(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)}(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.chMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_init (C function)c.drm_sched_inithNtauh1j5hj*hhhNhNubjG)}(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}(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_inith]j)}(hdrm_sched_inith]hdrm_sched_init}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hI(struct drm_gpu_scheduler *sched, const struct drm_sched_init_args *args)h](j)}(hstruct drm_gpu_scheduler *schedh](jX)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj=ubjj)}(h h]h }(hjNhhhNhNubah}(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' reftargetjamodnameN classnameNj+j.)}j1]j4)}j'j'sbc.drm_sched_initasbuh1hhj=ubjj)}(h h]h }(hjhhhNhNubah}(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&]noemphjjuh1jhj9ubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetjmodnameN classnameNj+j.)}j1]j{c.drm_sched_initasbuh1hhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hargsh]hargs}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jKhjhMhjhhubj)}(hhh]h)}(hInit a gpu scheduler instanceh]hInit a gpu scheduler instance}(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&]jjjjgjjgjjjuh1jFhhhj*hNhNubj)}(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)}(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.chM"hjkubj)}(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&]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.chM#hjkubh)}(h*Return 0 on success, otherwise error code.h]h*Return 0 on success, otherwise error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chM"hjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jBdrm_sched_fini (C function)c.drm_sched_finihNtauh1j5hj*hhhNhNubjG)}(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}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMubjj)}(h h]h }(hjXhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjEhhhjWhMubj{)}(hdrm_sched_finih]j)}(hdrm_sched_finih]hdrm_sched_fini}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhjWhMubj)}(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'jlsbc.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&]noemphjjuh1jhj~ubah}(h]h ]h"]h$]h&]jjuh1jhjEhhhjWhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjAhhhjWhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1jKhjWhMhj>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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1jFhhhj*hNhNubj)}(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)}(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:594: ./drivers/gpu/drm/scheduler/sched_main.chMhj%ubj)}(hhh]j)}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjJh]hstruct drm_gpu_scheduler *sched}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjDubj)}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubah}(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'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.chMhj%ubh)}(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&]uh1hhjhMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB%drm_sched_increase_karma (C function)c.drm_sched_increase_karmahNtauh1j5hj*hhhNhNubjG)}(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}(hjBhhhNhNubah}(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 }(hjQhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj>hhhjPhMubj{)}(hdrm_sched_increase_karmah]j)}(hdrm_sched_increase_karmah]hdrm_sched_increase_karma}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhjPhMubj)}(h(struct drm_sched_job *bad)h]j)}(hstruct drm_sched_job *badh](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_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'jesbc.drm_sched_increase_karmaasbuh1hhj{ubjj)}(h h]h }(hjhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj{ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj{ubj)}(hbadh]hbad}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubah}(h]h ]h"]h$]h&]jjuh1jhj>hhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj:hhhjPhMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1jKhjPhMhj7hhubj)}(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&]uh1jhj7hhhjPhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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)}(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:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(hhh]j)}(h9``struct drm_sched_job *bad`` The job guilty of time out h](j)}(h``struct drm_sched_job *bad``h]j)}(hjCh]hstruct drm_sched_job *bad}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(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)}(hThe job guilty of time outh]hThe job guilty of time out}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhj:ubah}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_sched_wqueue_ready (C function)c.drm_sched_wqueue_readyhNtauh1j5hj*hhhNhNubjG)}(hhh](jL)}(h=bool drm_sched_wqueue_ready (struct drm_gpu_scheduler *sched)h]jR)}(hubj)}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj;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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:594: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hStops the scheduler from pulling new jobs from entities. It also stops freeing jobs automatically through drm_sched_backend_ops.free_job().h]hStops the scheduler from pulling new jobs from entities. It also stops freeing jobs automatically through drm_sched_backend_ops.free_job().}(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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_sched_wqueue_start (C function)c.drm_sched_wqueue_starthNtauh1j5hj*hhhNhNubjG)}(hhh](jL)}(h=void drm_sched_wqueue_start (struct drm_gpu_scheduler *sched)h]jR)}(hsched_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)}(hjh]hunsigned int num_sched_list}(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)}(h!number of drm sched in sched_listh]h!number of drm sched in sched_list}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hK{hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hK{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.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 }(hjohhhNhNubj)}(h **entity**h]hentity}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh 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 }(hjohhhNhNubj)}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh.}(hjohhhNhNubeh}(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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_sched_entity_error (C function)c.drm_sched_entity_errorhNtauh1j5hj*hhhNhNubjG)}(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.}(hj 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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB#drm_sched_entity_flush (C function)c.drm_sched_entity_flushhNtauh1j5hj*hhhNhNubjG)}(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}(hjC 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 }(hjR hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj? hhhjQ hMubj{)}(hdrm_sched_entity_flushh]j)}(hdrm_sched_entity_flushh]hdrm_sched_entity_flush}(hjd hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj` ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj? hhhjQ 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'jf 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&]noemphjjuh1jhjx 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&]noemphjjuh1jhjx ubeh}(h]h ]h"]h$]h&]jjuh1jhj? hhhjQ hMubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj; hhhjQ hMubah}(h]j6 ah ](jjeh"]h$]h&]jj)jhuh1jKhjQ hMhj8 hhubj)}(hhh]h)}(hFlush a context entityh]hFlush a context entity}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhj5 hhubah}(h]h ]h"]h$]h&]uh1jhj8 hhhjQ hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjP jjP jjjuh1jFhhhj*hNhNubj)}(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)}(hjZ h]h Parameters}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhjT ubj)}(hhh](j)}(h5``struct drm_sched_entity *entity`` scheduler entity h](j)}(h#``struct drm_sched_entity *entity``h]j)}(hjy h]hstruct drm_sched_entity *entity}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chMhjs ubj)}(hhh]h)}(hscheduler entityh]hscheduler entity}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjs ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjp 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 hMhjp ubeh}(h]h ]h"]h$]h&]uh1jhjT 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.chMhjT 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.chMhjT 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.chMhjT ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB"drm_sched_entity_fini (C function)c.drm_sched_entity_finihNtauh1j5hj*hhhNhNubjG)}(hhh](jL)}(hvoid drm_sched_entity_destroy(struct drm_sched_entity *entity)h](j)}(hvoidh]hvoid}(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.chM^ubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj hhhj hM^ubj{)}(hdrm_sched_entity_destroyh]j)}(hdrm_sched_entity_destroyh]hdrm_sched_entity_destroy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hM^ubj)}(h!(struct drm_sched_entity *entity)h]j)}(hstruct drm_sched_entity *entityh](jX)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj-hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(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'jsbc.drm_sched_entity_destroyasbuh1hhjubjj)}(h h]h }(hj^hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubjH)}(hjKh]h*}(hjlhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubj)}(hentityh]hentity}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(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)}(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 hhhj hM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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)}(hjh]h Description}(hj!hhhNhNubah}(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.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.}(hj5hhhNhNubah}(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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB*drm_sched_entity_set_priority (C function)c.drm_sched_entity_set_priorityhNtauh1j5hj*hhhNhNubjG)}(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}(hjdhhhNhNubah}(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 }(hjshhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihj`hhhjrhM{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`hhhjrhM{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*}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjj)}(h h]h }(hj hhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubh)}(hhh]j)}(hdrm_sched_priorityh]hdrm_sched_priority}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej' reftargetj3modnameN classnameNj+j.)}j1]jc.drm_sched_entity_set_priorityasbuh1hhjubjj)}(h h]h }(hjOhhhNhNubah}(h]h ]jvah"]h$]h&]uh1jihjubj)}(hpriorityh]hpriority}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj`hhhjrhM{ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhj\hhhjrhM{ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jKhjrhM{hjYhhubj)}(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&]uh1jhjYhhhjrhM{ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jFhhhj*hNhNubj)}(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}(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 priorityh]hscheduler priority}(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&]uh1jhj:ubah}(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.}(hjRhhhNhNubah}(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&]uh1jhj*hhhNhNubj6)}(hhh]h}(h]h ]h"]h$]h&]entries](jB&drm_sched_entity_push_job (C function)c.drm_sched_entity_push_jobhNtauh1j5hj*hhhNhNubjG)}(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&]uh1jhj}hhhd/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&]uh1jihj}hhhjhM8ubj{)}(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&]jjuh1jzhj}hhhjhM8ubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj}hhhjhM8ubeh}(h]h ]h"]h$]h&]jjjuh1jQjjhjyhhhjhM8ubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jKhjhM8hjvhhubj)}(hhh]h)}(h&Submit a job to the entity's job queueh]h(Submit a job to the entity’s job queue}(hjAhhhNhNubah}(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&]uh1jhjvhhhjhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1jFhhhj*hNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:597: ./drivers/gpu/drm/scheduler/sched_entity.chM<hj]ubj)}(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.chM9hj|ubj)}(hhh]h)}(h job to submith]h job to submit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubh)}(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;hj]ubh)}(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;hj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubeh}(h]scheduler-function-referencesah ]h"]scheduler function referencesah$]h&]uh1hhj˧hhhhhMMubeh}(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_handlerj6error_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]j0aj&=]j=ajTf]jJfaunameids}(jj jzjzjjjRjOjfGjcGjjjjjzjzjjj{j{j|j|j}j}j}j}j~j~j&j#jMjJj)j&jjjFjFjrjrjjjjjjjjjjjjjjjjjjjjj0j0overviewNjjj0j0jGBj0jFBjCBj,=j)=j?j&=j?j?j@j@j>Bj;Bj]j]jYjYj]j]jZfjWfjjTfjjjkj~kjljlj1mj.mjȧjŧjjj'j$jju nametypes}(jjzjjRjfGjjjzjj{j|j}j}j~j&jMj)jjFjrjjjjjjjjjjj0j~jj0jGBjFBj,=j?j?j@j>Bj]jYj]jZfjjjkjlj1mjȧjj'juh}(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_jj>j@j@jDj DjrjFjhHjmHjJjJjLjLjNjNj3Oj8Oj$Pj)Pj/Rj4Rj2Tj7TjCWjHWjXjXjZjZj\j\j _j_jcjcjgj gj~ijijkjkj+mj0mj?pjDpjjrj(sj-sjAvjFvjxjxjJ{jO{j}j}jjjjj jjφjԆjPjUjjjыj֋jjjtjyjёj֑jFjKjjjjjjjj j2j7jԣj٣jdjijj jjjjjjījj9jjjjjjjjjj%jSjXjTjYjj!jtjyj jj׿jܿjVj[jjjjjjjjjjjjj/j4j]jbj,j1jyj~jjjLjQjj jjjijnj0jjjjjj0j j=jBjjjXj]jjjjjjjojMjRj!j&jj jjjjjjjtjyjjj j# j j$ j j jjj\jajjjjjFjKj#j#j%j%jj(jo(jM*jR*j,j-j.j.j0j0jCBj0j7j0j)=j7j&=j/=j?j/=j@j?j;Bj@j@j@jBjBjuHjzHjJjJjLjLjNjNjuUjzUjWjWjYjYj[j[j1]j6]j$_j)_jGbjLbjtejyejhjijjjjj%mj*mj:qj?qj(sj-sjvjvjxxj}xj}~j~jjj"j'j>jCjՇjڇjjjjjjjjjhjmjVj[jjjDjIj_jdjjjjjjj\jajjjjjjjxj}j0j5jjjjjjjؽjݽj\jaj9j>jjj;j@jjj jjjjjjNjSjkjpjVj[jjj jj|jj$j)jjj0j5jcjhj]jbjj jWj\j#j(jjjE jJ jl jq jjj8j=jjj#j(jjj} j j$j$j(j(j,j,j0j0j4j4j8j8j<j<j?j?j]jLBjYj]BjzBjBj$Ej)EjFjFjHjHjJjJj7Mj