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]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.}(hhhhhNhNubah}(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.}(hjhhhNhNubah}(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_cachinghNtauh1j!hhhhhNhNubhdesc)}(hhh](hdesc_signature)}(h ttm_cachingh]hdesc_signature_line)}(henum ttm_cachingh](hdesc_sig_keyword)}(henumh]henum}(hjEhhhNhNubah}(h]h ]kah"]h$]h&]uh1jChj?hhhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:34: ./include/drm/ttm/ttm_caching.hhKubhdesc_sig_space)}(h h]h }(hjWhhhNhNubah}(h]h ]wah"]h$]h&]uh1jUhj?hhhjThKubh desc_name)}(h ttm_cachingh]h desc_sig_name)}(hj;h]h ttm_caching}(hjnhhhNhNubah}(h]h ]nah"]h$]h&]uh1jlhjhubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jfhj?hhhjThKubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1j=sphinx_line_type declaratorhj9hhhjThKubah}(h]j0ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j7hjThKhj4hhubh 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&]uh1jhj4hhhjThKubeh}(h]h ](cenumeh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1j2hhhhhNhNubh 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}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:34: ./include/drm/ttm/ttm_caching.hhK(hj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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)}(hj/h]httm_write_combined}(hj1hhhNhNubah}(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.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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:34: ./include/drm/ttm/ttm_caching.hhK,hjEubah}(h]h ]h"]h$]h&]uh1j hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhK-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)}(hjih]h ttm_cached}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:34: ./include/drm/ttm/ttm_caching.hhK0hjcubj )}(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&]uh1hhj~hK0hjubah}(h]h ]h"]h$]h&]uh1j hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hK0hjubeh}(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&ubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_global (C struct) c.ttm_globalhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h ttm_globalh]j>)}(hstruct ttm_globalh](jD)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(h ttm_globalh]jm)}(hjh]h ttm_global}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h)}(h!Buffer object driver global data.h]h!Buffer object driver global data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK'hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjj.jj.jjjuh1j2hhhjhNhNubj)}(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}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh:}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK+hj2ubh 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; };}hjUsbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK-hj2ubh)}(h **Members**h]j)}(hjfh]hMembers}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK3hj2ubj)}(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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhK.hj|ubj)}(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.hhK4hjubj )}(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.hhK3hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhK4hj|ubj)}(h;``bo_count`` Number of buffer objects allocated by devices.h](j)}(h ``bo_count``h]j)}(hjh]hbo_count}(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.hhK8hjubj )}(hhh]h)}(h.Number of buffer objects allocated by devices.h]h.Number of buffer objects allocated by devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK9hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hj|ubeh}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_device (C struct) c.ttm_devicehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h ttm_deviceh]j>)}(hstruct ttm_deviceh](jD)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjOhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhK?ubjV)}(h h]h }(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjOhhhj`hK?ubjg)}(h ttm_deviceh]jm)}(hjMh]h ttm_device}(hjshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhj`hK?ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjKhhhj`hK?ubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1j7hj`hK?hjHhhubj)}(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&]uh1jhjHhhhj`hK?ubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(hX**Definition**:: struct ttm_device { struct list_head device_list; 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 ``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.hhKhjubjT)}(hXstruct ttm_device { struct list_head device_list; 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; 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&]jjuh1jShW/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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:40: ./include/drm/ttm/ttm_device.hhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hG``funcs`` Function table for the device. Constant after bo device init h](j)}(h ``funcs``h]j)}(hj<h]hfuncs}(hj>hhhNhNubah}(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.hhKhj6ubj )}(hhh]h)}(h)}(h;int ttm_device_prepare_hibernation(struct ttm_device *bdev)h](hdesc_sig_keyword_type)}(hinth]hint}(hjdhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jbhj^hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:43: ./drivers/gpu/drm/ttm/ttm_device.chKubjV)}(h h]h }(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj^hhhjshKubjg)}(httm_device_prepare_hibernationh]jm)}(httm_device_prepare_hibernationh]httm_device_prepare_hibernation}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhjshKubhdesc_parameterlist)}(h(struct ttm_device *bdev)h]hdesc_parameter)}(hstruct ttm_device *bdevh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h ttm_deviceh]h ttm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetjmodnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]j ASTIdentifier)}jjsb c.ttm_device_prepare_hibernationasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjubjm)}(hbdevh]hbdev}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj^hhhjshKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjZhhhjshKubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1j7hjshKhjWhhubj)}(hhh]h)}(h&move GTT BOs to shmem for hibernation.h]h&move GTT BOs to shmem for hibernation.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:43: ./drivers/gpu/drm/ttm/ttm_device.chKhj2hhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjshKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1j2hhhjhNhNubj)}(h**Parameters** ``struct ttm_device *bdev`` A pointer to a struct ttm_device to prepare hibernation for. **Return** 0 on success, negative number on failure.h](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:43: ./drivers/gpu/drm/ttm/ttm_device.chKhjQubj)}(hhh]j)}(hY``struct ttm_device *bdev`` A pointer to a struct ttm_device to prepare hibernation for. h](j)}(h``struct ttm_device *bdev``h]j)}(hjvh]hstruct ttm_device *bdev}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:43: ./drivers/gpu/drm/ttm/ttm_device.chKhjpubj )}(hhh]h)}(h)}(hint ttm_device_init(struct ttm_device *bdev, const struct ttm_device_funcs *funcs, struct device *dev, struct address_space *mapping, struct drm_vma_offset_manager *vma_manager, bool use_dma_alloc, bool use_dma32)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:43: ./drivers/gpu/drm/ttm/ttm_device.chKubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj hKubjg)}(httm_device_inith]jm)}(httm_device_inith]httm_device_init}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hKubj)}(h(struct ttm_device *bdev, const struct ttm_device_funcs *funcs, struct device *dev, struct address_space *mapping, struct drm_vma_offset_manager *vma_manager, bool use_dma_alloc, bool use_dma32)h](j)}(hstruct ttm_device *bdevh](jD)}(hjh]hstruct}(hj3 hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj/ ubjV)}(h h]h }(hj@ hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/ ubh)}(hhh]jm)}(h ttm_deviceh]h ttm_device}(hjQ hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjN ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjS modnameN classnameNjj)}j]j)}jj sbc.ttm_device_initasbuh1hhj/ ubjV)}(h h]h }(hjq hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/ ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ ubjm)}(hbdevh]hbdev}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ ubj)}(h$const struct ttm_device_funcs *funcsh](jD)}(hconsth]hconst}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubjD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(httm_device_funcsh]httm_device_funcs}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jm c.ttm_device_initasbuh1hhj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hfuncsh]hfuncs}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ ubj)}(hstruct device *devh](jD)}(hjh]hstruct}(hj1 hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj- ubjV)}(h h]h }(hj> hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj- ubh)}(hhh]jm)}(hdeviceh]hdevice}(hjO hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjL ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjQ modnameN classnameNjj)}j]jm c.ttm_device_initasbuh1hhj- ubjV)}(h h]h }(hjm hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj- ubj)}(hjh]h*}(hj{ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj- ubjm)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj- ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ ubj)}(hstruct address_space *mappingh](jD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(h address_spaceh]h address_space}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jm c.ttm_device_initasbuh1hhj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hmappingh]hmapping}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ ubj)}(h*struct drm_vma_offset_manager *vma_managerh](jD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hj/ hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj, ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj1 modnameN classnameNjj)}j]jm c.ttm_device_initasbuh1hhj ubjV)}(h h]h }(hjM hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubj)}(hjh]h*}(hj[ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(h vma_managerh]h vma_manager}(hjh hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ ubj)}(hbool use_dma_alloch](jc)}(hboolh]hbool}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj} ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj} ubjm)}(h use_dma_alloch]h use_dma_alloc}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj} ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ ubj)}(hbool use_dma32h](jc)}(hj h]hbool}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubjm)}(h use_dma32h]h use_dma32}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj hKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1j2hhhjhNhNubj)}(hX**Parameters** ``struct ttm_device *bdev`` A pointer to a struct ttm_device to initialize. ``const struct ttm_device_funcs *funcs`` Function table for the device. ``struct device *dev`` The core kernel device pointer for DMA mappings and allocations. ``struct address_space *mapping`` The address space to use for this bo. ``struct drm_vma_offset_manager *vma_manager`` A pointer to a vma manager. ``bool use_dma_alloc`` If coherent DMA allocation API should be used. ``bool use_dma32`` If we should use GFP_DMA32 for device memory allocations. **Description** Initializes a struct ttm_device: **Return** !0: 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:43: ./drivers/gpu/drm/ttm/ttm_device.chKhj ubj)}(hhh](j)}(hL``struct ttm_device *bdev`` A pointer to a struct ttm_device to initialize. 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:43: ./drivers/gpu/drm/ttm/ttm_device.chKhj' ubj )}(hhh]h)}(h/A pointer to a struct ttm_device to initialize.h]h/A pointer to a struct ttm_device to initialize.}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB hKhjC ubah}(h]h ]h"]h$]h&]uh1j hj' ubeh}(h]h ]h"]h$]h&]uh1jhjB hKhj$ ubj)}(hH``const struct ttm_device_funcs *funcs`` Function table for the device. h](j)}(h(``const struct ttm_device_funcs *funcs``h]j)}(hjf h]h$const struct ttm_device_funcs *funcs}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:43: ./drivers/gpu/drm/ttm/ttm_device.chKhj` ubj )}(hhh]h)}(hFunction table for the device.h]hFunction table for the device.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{ hKhj| ubah}(h]h ]h"]h$]h&]uh1j hj` ubeh}(h]h ]h"]h$]h&]uh1jhj{ hKhj$ ubj)}(hX``struct device *dev`` The core kernel device pointer for DMA mappings and allocations. h](j)}(h``struct device *dev``h]j)}(hj h]hstruct 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:43: ./drivers/gpu/drm/ttm/ttm_device.chKhj ubj )}(hhh]h)}(h@The core kernel device pointer for DMA mappings and allocations.h]h@The core kernel device pointer for DMA mappings and allocations.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj$ ubj)}(hH``struct address_space *mapping`` The address space to use for this bo. h](j)}(h!``struct address_space *mapping``h]j)}(hj h]hstruct address_space *mapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:43: ./drivers/gpu/drm/ttm/ttm_device.chKhj ubj )}(hhh]h)}(h%The address space to use for this bo.h]h%The address space to use for this bo.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj$ ubj)}(hK``struct drm_vma_offset_manager *vma_manager`` A pointer to a vma manager. h](j)}(h.``struct drm_vma_offset_manager *vma_manager``h]j)}(hj h]h*struct drm_vma_offset_manager *vma_manager}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:43: ./drivers/gpu/drm/ttm/ttm_device.chKhj ubj )}(hhh]h)}(hA pointer to a vma manager.h]hA pointer to a vma manager.}(hj* hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj& hKhj' ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj& hKhj$ ubj)}(hF``bool use_dma_alloc`` If coherent DMA allocation API should be used. h](j)}(h``bool use_dma_alloc``h]j)}(hjJ h]hbool use_dma_alloc}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:43: ./drivers/gpu/drm/ttm/ttm_device.chKhjD ubj )}(hhh]h)}(h.If coherent DMA allocation API should be used.h]h.If coherent DMA allocation API should be used.}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ hKhj` ubah}(h]h ]h"]h$]h&]uh1j hjD ubeh}(h]h ]h"]h$]h&]uh1jhj_ hKhj$ ubj)}(hM``bool use_dma32`` If we should use GFP_DMA32 for device memory allocations. h](j)}(h``bool use_dma32``h]j)}(hj h]hbool use_dma32}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:43: ./drivers/gpu/drm/ttm/ttm_device.chKhj} ubj )}(hhh]h)}(h9If we should use GFP_DMA32 for device memory allocations.h]h9If we should use GFP_DMA32 for device memory allocations.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j hj} ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj$ 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:43: ./drivers/gpu/drm/ttm/ttm_device.chKhj ubh)}(h Initializes a struct ttm_device:h]h Initializes a struct ttm_device:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:43: ./drivers/gpu/drm/ttm/ttm_device.chKhj 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:43: ./drivers/gpu/drm/ttm/ttm_device.chKhj ubh)}(h !0: Failure.h]h !0: Failure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:43: ./drivers/gpu/drm/ttm/ttm_device.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]ttm-device-object-referenceah ]h"]ttm device object referenceah$]h&]uh1hhhhhhhhK&ubh)}(hhh](h)}(h TTM resource placement referenceh]h TTM resource placement reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK/ubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_place (C struct) c.ttm_placehNtauh1j!hjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhNubj3)}(hhh](j8)}(h ttm_placeh]j>)}(hstruct ttm_placeh](jD)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj@hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhKubjV)}(h h]h }(hjRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@hhhjQhKubjg)}(h ttm_placeh]jm)}(hj>h]h ttm_place}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhjQhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj<hhhjQhKubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1j7hjQhKhj9hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj9hhhjQhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhjhj8hNubj)}(hX**Definition**:: struct ttm_place { unsigned fpfn; unsigned lpfn; uint32_t mem_type; uint32_t flags; }; **Members** ``fpfn`` first valid page frame number to put the object ``lpfn`` last valid page frame number to put the object ``mem_type`` One of TTM_PL_* where the resource should be allocated from. ``flags`` memory domain and caching flags for the objecth](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhKNhjubjT)}(hfstruct ttm_place { unsigned fpfn; unsigned lpfn; uint32_t mem_type; uint32_t flags; };h]hfstruct ttm_place { unsigned fpfn; unsigned lpfn; uint32_t mem_type; uint32_t flags; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jShZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhKPhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhKWhjubj)}(hhh](j)}(h9``fpfn`` first valid page frame number to put the object h](j)}(h``fpfn``h]j)}(hjh]hfpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhKMhjubj )}(hhh]h)}(h/first valid page frame number to put the objecth]h/first valid page frame number to put the object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubj)}(h8``lpfn`` last valid page frame number to put the object h](j)}(h``lpfn``h]j)}(hjh]hlpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhKNhjubj )}(hhh]h)}(h.last valid page frame number to put the objecth]h.last valid page frame number to put the object}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKNhj3ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj2hKNhjubj)}(hJ``mem_type`` One of TTM_PL_* where the resource should be allocated from. h](j)}(h ``mem_type``h]j)}(hjVh]hmem_type}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhKOhjPubj )}(hhh]h)}(h)}(hstruct ttm_placementh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhKPubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhjhKPubjg)}(h ttm_placementh]jm)}(hj h]h ttm_placement}(hj0hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhKPubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKPubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKPhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKPubeh}(h]h ](jstructeh"]h$]h&]jjjj[jj[jjjuh1j2hhhjhj8hNubj)}(h**Definition**:: struct ttm_placement { unsigned num_placement; const struct ttm_place *placement; }; **Members** ``num_placement`` number of preferred placements ``placement`` preferred placementsh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh:}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhK_hj_ubjT)}(h]struct ttm_placement { unsigned num_placement; const struct ttm_place *placement; };h]h]struct ttm_placement { unsigned num_placement; const struct ttm_place *placement; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jShZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhKahj_ubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhKfhj_ubj)}(hhh](j)}(h1``num_placement`` number of preferred placements h](j)}(h``num_placement``h]j)}(hjh]h num_placement}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhK^hjubj )}(hhh]h)}(hnumber of preferred placementsh]hnumber of preferred placements}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK^hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhK^hjubj)}(h"``placement`` preferred placementsh](j)}(h ``placement``h]j)}(hjh]h placement}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhK^hjubj )}(hhh]h)}(hpreferred placementsh]hpreferred placements}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhK_hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhK^hjubeh}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj8hNubh)}(h**Description**h]j)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:49: ./include/drm/ttm/ttm_placement.hhKbhjhhubh)}(h=Structure indicating the placement you request for an object.h]h=Structure indicating the placement you request for an object.}(hjBhhhNhNubah}(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}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhhhhhK5ubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_lru_item_type (C enum)c.ttm_lru_item_typehNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(httm_lru_item_typeh]j>)}(henum ttm_lru_item_typeh](jD)}(hjGh]henum}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(httm_lru_item_typeh]jm)}(hj}h]httm_lru_item_type}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj{hhhjhKubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjxhhubj)}(hhh]h)}(h!enumerate ttm_lru_item subclassesh]h!enumerate ttm_lru_item subclasses}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhK6hjhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhKubeh}(h]h ](jenumeh"]h$]h&]jjjjjjjjjuh1j2hhhjYhNhNubj)}(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.hhK:hjubj)}(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.hhK=hjubj )}(hhh]h)}(hThe resource subclassh]hThe resource subclass}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK=hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhK=hjubj)}(h-``TTM_LRU_HITCH`` The iterator hitch subclassh](j)}(h``TTM_LRU_HITCH``h]j)}(hj?h]h TTM_LRU_HITCH}(hjAhhhNhNubah}(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.hhK?hj9ubj )}(hhh]h)}(hThe iterator hitch subclassh]hThe iterator hitch subclass}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhK@hjUubah}(h]h ]h"]h$]h&]uh1j hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThK?hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_lru_item (C struct)c.ttm_lru_itemhNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(h ttm_lru_itemh]j>)}(hstruct ttm_lru_itemh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKEubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKEubjg)}(h ttm_lru_itemh]jm)}(hjh]h ttm_lru_item}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKEubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKEubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKEhjhhubj)}(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.hhK@hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKEubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhjYhNhNubj)}(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.hhKDhjubjT)}(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&]jjuh1jShY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKFhjubh)}(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.hhKKhjubj)}(hhh](j)}(h``link`` The list link h](j)}(h``link``h]j)}(hjHh]hlink}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKBhjBubj )}(hhh]h)}(h The list linkh]h The list link}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKBhj^ubah}(h]h ]h"]h$]h&]uh1j hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKBhj?ubj)}(h``type`` The subclass typeh](j)}(h``type``h]j)}(hjh]htype}(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.hhKBhj{ubj )}(hhh]h)}(hThe subclass typeh]hThe subclass type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKChjubah}(h]h ]h"]h$]h&]uh1j hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhKBhj?ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_lru_item_init (C function)c.ttm_lru_item_inithNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(hOvoid ttm_lru_item_init (struct ttm_lru_item *item, enum ttm_lru_item_type type)h]j>)}(hNvoid ttm_lru_item_init(struct ttm_lru_item *item, enum ttm_lru_item_type type)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKJubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKJubjg)}(httm_lru_item_inith]jm)}(httm_lru_item_inith]httm_lru_item_init}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKJubj)}(h8(struct ttm_lru_item *item, enum ttm_lru_item_type type)h](j)}(hstruct ttm_lru_item *itemh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h ttm_lru_itemh]h ttm_lru_item}(hj6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8modnameN classnameNjj)}j]j)}jjsbc.ttm_lru_item_initasbuh1hhjubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hitemh]hitem}(hjqhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum ttm_lru_item_type typeh](jD)}(hjGh]henum}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(httm_lru_item_typeh]httm_lru_item_type}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jRc.ttm_lru_item_initasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKJubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKJhjhhubj)}(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.hhKJhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjYhNhNubj)}(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)}(hj h]h Parameters}(hj"hhhNhNubah}(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.hhKNhjubj)}(hhh](j)}(h5``struct ttm_lru_item *item`` The item to initialize h](j)}(h``struct ttm_lru_item *item``h]j)}(hj?h]hstruct ttm_lru_item *item}(hjAhhhNhNubah}(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.hhKKhj9ubj )}(hhh]h)}(hThe item to initializeh]hThe item to initialize}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKKhjUubah}(h]h ]h"]h$]h&]uh1j hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKKhj6ubj)}(h1``enum ttm_lru_item_type type`` The subclass typeh](j)}(h``enum ttm_lru_item_type type``h]j)}(hjxh]henum ttm_lru_item_type type}(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.hhKMhjrubj )}(hhh]h)}(hThe subclass typeh]hThe subclass type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKLhjubah}(h]h ]h"]h$]h&]uh1j hjrubeh}(h]h ]h"]h$]h&]uh1jhjhKMhj6ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_resource_manager (C struct)c.ttm_resource_managerhNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(httm_resource_managerh]j>)}(hstruct ttm_resource_managerh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKQubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKQubjg)}(httm_resource_managerh]jm)}(hjh]httm_resource_manager}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKQubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKQubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKQhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKQubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhjYhNhNubj)}(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 move_lock; struct dma_fence *move; 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 ``move_lock`` lock for move fence ``move`` The fence 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}(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.hhKhj!ubjT)}(hXBstruct 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 move_lock; struct dma_fence *move; struct list_head lru[TTM_MAX_BO_PRIORITY]; uint64_t usage; struct dmem_cgroup_region *cg; };h]hXBstruct 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 move_lock; struct dma_fence *move; struct list_head lru[TTM_MAX_BO_PRIORITY]; uint64_t usage; struct dmem_cgroup_region *cg; };}hjBsbah}(h]h ]h"]h$]h&]jjuh1jShY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhj!ubh)}(h **Members**h]j)}(hjSh]hMembers}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhj!ubj)}(hhh](j)}(h)``use_type`` The memory type is enabled. h](j)}(h ``use_type``h]j)}(hjrh]huse_type}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjlubj )}(hhh]h)}(hThe memory type is enabled.h]hThe memory type is enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjlubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubj)}(h@``use_tt`` If a TT object should be used for the backing store. h](j)}(h ``use_tt``h]j)}(hjh]huse_tt}(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)}(h4If a TT object should be used for the backing store.h]h4If a TT object should be used for the backing store.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubj)}(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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubj)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj3ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj2hKhjiubj)}(hE``func`` structure pointer implementing the range manager. See above h](j)}(h``func``h]j)}(hjVh]hfunc}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjPubj )}(hhh]h)}(h;structure pointer implementing the range manager. See aboveh]h;structure pointer implementing the range manager. See above}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKhjlubah}(h]h ]h"]h$]h&]uh1j hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKhjiubj)}(h"``move_lock`` lock for move fence h](j)}(h ``move_lock``h]j)}(hjh]h move_lock}(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)}(hlock for move fenceh]hlock for move fence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubj)}(h9``move`` The fence of the last pipelined move operation. h](j)}(h``move``h]j)}(hjh]hmove}(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 fence of the last pipelined move operation.h]h/The fence of the last pipelined move operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubj)}(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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubj)}(hO``usage`` How much of the resources are used, protected by the bdev->lru_lock. h](j)}(h ``usage``h]j)}(hj:h]husage}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhj4ubj )}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjPubah}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhKhjiubj)}(hL``cg`` :c:type:`dmem_cgroup_region` used for memory accounting, if not NULL.h](j)}(h``cg``h]j)}(hjth]hcg}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjnubj )}(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)}(hjh]hdmem_cgroup_region}(hjhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoc gpu/drm-mm refdomainjreftypetype refexplicitrefwarnjj)}j]sb reftargetdmem_cgroup_regionuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjubh) used for memory accounting, if not NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjnubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubeh}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(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.hhKhjYhhubh)}(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.hhKhjYhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_bus_placement (C struct)c.ttm_bus_placementhNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(httm_bus_placementh]j>)}(hstruct ttm_bus_placementh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKubjV)}(h h]h }(hj(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj'hKubjg)}(httm_bus_placementh]jm)}(hjh]httm_bus_placement}(hj:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj'hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj'hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj'hKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj'hKubeh}(h]h ](jstructeh"]h$]h&]jjjjejjejjjuh1j2hhhjYhNhNubj)}(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}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh:}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjiubjT)}(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; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jShY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjiubh)}(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.hhKhjiubj)}(hhh](j)}(h ``addr`` mapped virtual address h](j)}(h``addr``h]j)}(hjh]haddr}(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)}(hmapped virtual addressh]hmapped virtual address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h!``is_iomem`` is this io memory ? h](j)}(h ``is_iomem``h]j)}(hj,h]his_iomem}(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.hhKhj&ubj )}(hhh]h)}(his this io memory ?h]his this io memory ?}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKhjBubah}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhKhjubj)}(h ``caching`` See enum ttm_cachingh](j)}(h ``caching``h]j)}(hjeh]hcaching}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(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&]uh1j hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhKhjubeh}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(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.hhKhjYhhubh)}(h4Structure indicating the bus placement of an object.h]h4Structure indicating the bus placement of an object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjYhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_resource (C struct)c.ttm_resourcehNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(h ttm_resourceh]j>)}(hstruct ttm_resourceh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(h ttm_resourceh]jm)}(hjh]h ttm_resource}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjj1jj1jjjuh1j2hhhjYhNhNubj)}(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}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh:}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhj5ubjT)}(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; };}hjVsbah}(h]h ]h"]h$]h&]jjuh1jShY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhj5ubh)}(h **Members**h]j)}(hjgh]hMembers}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj5ubj)}(hhh](j)}(h#``start`` Start of the allocation. h](j)}(h ``start``h]j)}(hjh]hstart}(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)}(hStart of the allocation.h]hStart of the allocation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj}ubj)}(h+``size`` Actual size of resource in bytes. 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)}(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&]uh1j hjubeh}(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&]uh1hhj hKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj hKhj}ubj)}(h``placement`` Placement flags. h](j)}(h ``placement``h]j)}(hj1h]h placement}(hj3hhhNhNubah}(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.hhKhj+ubj )}(hhh]h)}(hPlacement flags.h]hPlacement flags.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhKhjGubah}(h]h ]h"]h$]h&]uh1j hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhKhj}ubj)}(h2``bus`` Placement on io bus accessible to the CPU h](j)}(h``bus``h]j)}(hjjh]hbus}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjdubj )}(hhh]h)}(h)Placement on io bus accessible to the CPUh]h)Placement on io bus accessible to the CPU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjdubeh}(h]h ]h"]h$]h&]uh1jhjhKhj}ubj)}(hC``bo`` weak reference to the BO, protected by ttm_device::lru_lock h](j)}(h``bo``h]j)}(hjh]hbo}(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;weak reference to the BO, protected by ttm_device::lru_lockh]h;weak reference to the BO, protected by ttm_device::lru_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj}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.hhKhjubj )}(hhh]h)}(h(cgroup state this resource is charged toh]h(cgroup state this resource is charged to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj}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 }(hj.hhhNhNubh)}(h9:c:type:`ttm_resource_manager.lru `h]j)}(hj8h]httm_resource_manager.lru}(hj:hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjttm_resource_manageruh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM hj.ubeh}(h]h ]h"]h$]h&]uh1hhjUhM hj+ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj}ubeh}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM hjYhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhKhjYhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. ttm_lru_item_to_res (C function)c.ttm_lru_item_to_reshNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(hEstruct ttm_resource * ttm_lru_item_to_res (struct ttm_lru_item *item)h]j>)}(hCstruct ttm_resource *ttm_lru_item_to_res(struct ttm_lru_item *item)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubh)}(hhh]jm)}(h ttm_resourceh]h ttm_resource}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jttm_lru_item_to_ressbc.ttm_lru_item_to_resasbuh1hhjhhhjhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(httm_lru_item_to_resh]jm)}(hjh]httm_lru_item_to_res}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct ttm_lru_item *item)h]j)}(hstruct ttm_lru_item *itemh](jD)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj+ubjV)}(h h]h }(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj+ubh)}(hhh]jm)}(h ttm_lru_itemh]h ttm_lru_item}(hjMhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjJubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjOmodnameN classnameNjj)}j]jc.ttm_lru_item_to_resasbuh1hhj+ubjV)}(h h]h }(hjkhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj+ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(hitemh]hitem}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(h7Downcast a struct ttm_lru_item to a struct ttm_resourceh]h7Downcast a struct ttm_lru_item to a 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.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjYhNhNubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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:55: ./include/drm/ttm/ttm_resource.hhMhjubh)}(h,Pointer to the embedding struct ttm_resourceh]h,Pointer to the embedding struct ttm_resource}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. ttm_lru_bulk_move_pos (C struct)c.ttm_lru_bulk_move_poshNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(httm_lru_bulk_move_posh]j>)}(hstruct ttm_lru_bulk_move_posh](jD)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjmhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmhhhj~hMubjg)}(httm_lru_bulk_move_posh]jm)}(hjkh]httm_lru_bulk_move_pos}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmhhhj~hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjihhhj~hMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1j7hj~hMhjfhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjfhhhj~hMubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhjYhNhNubj)}(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}(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.hhMhjubjT)}(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; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jShY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM hjubh)}(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+``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.hhMhj 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& hMhj' ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj& hMhj ubj)}(h(``last`` last res in the bulk move rangeh](j)}(h``last``h]j)}(hjJ h]hlast}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjD ubj )}(hhh]h)}(hlast res in the bulk move rangeh]hlast res in the bulk move range}(hjc 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&]uh1j hjD ubeh}(h]h ]h"]h$]h&]uh1jhj_ hMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(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.hhM!hjYhhubh)}(h'Range of resources for a lru bulk move.h]h'Range of resources for a lru bulk move.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjYhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_lru_bulk_move (C struct)c.ttm_lru_bulk_movehNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(httm_lru_bulk_moveh]j>)}(hstruct ttm_lru_bulk_moveh](jD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhj hM ubjg)}(httm_lru_bulk_moveh]jm)}(hj h]httm_lru_bulk_move}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hM ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj hM hj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](jstructeh"]h$]h&]jjjj!jj!jjjuh1j2hhhjYhNhNubj)}(hX**Definition**:: struct ttm_lru_bulk_move { struct ttm_lru_bulk_move_pos pos[TTM_NUM_MEM_TYPES][TTM_MAX_BO_PRIORITY]; struct list_head cursor_list; }; **Members** ``pos`` first/last lru entry for resources in the each domain/priority ``cursor_list`` The list of cursors currently traversing any of the sublists of **pos**. Protected by the ttm device's lru_lock.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.hhM+hj!ubjT)}(hstruct ttm_lru_bulk_move { struct ttm_lru_bulk_move_pos pos[TTM_NUM_MEM_TYPES][TTM_MAX_BO_PRIORITY]; struct list_head cursor_list; };h]hstruct ttm_lru_bulk_move { struct ttm_lru_bulk_move_pos pos[TTM_NUM_MEM_TYPES][TTM_MAX_BO_PRIORITY]; struct list_head cursor_list; };}hj;!sbah}(h]h ]h"]h$]h&]jjuh1jShY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM-hj!ubh)}(h **Members**h]j)}(hjL!h]hMembers}(hjN!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ!ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM2hj!ubj)}(hhh](j)}(hG``pos`` first/last lru entry for resources in the each domain/priority h](j)}(h``pos``h]j)}(hjk!h]hpos}(hjm!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji!ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM)hje!ubj )}(hhh]h)}(h>first/last lru entry for resources in the each domain/priorityh]h>first/last lru entry for resources in the each domain/priority}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM)hj!ubah}(h]h ]h"]h$]h&]uh1j hje!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM)hjb!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)}(hj!h]h cursor_list}(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)}(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 }(hj!hhhNhNubj)}(h**pos**h]hpos}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh+. Protected by the ttm device’s lru_lock.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!hM*hj!ubah}(h]h ]h"]h$]h&]uh1j hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM*hjb!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(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.hhM.hjYhhubh)}(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.hhM+hjYhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_resource_cursor (C struct)c.ttm_resource_cursorhNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(httm_resource_cursorh]j>)}(hstruct ttm_resource_cursorh](jD)}(hjh]hstruct}(hj6"hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj2"hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM4ubjV)}(h h]h }(hjD"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj2"hhhjC"hM4ubjg)}(httm_resource_cursorh]jm)}(hj0"h]httm_resource_cursor}(hjV"hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjR"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2"hhhjC"hM4ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj."hhhjC"hM4ubah}(h]j)"ah ](jjeh"]h$]h&]jj)jhuh1j7hjC"hM4hj+"hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj+"hhhjC"hM4ubeh}(h]h ](jstructeh"]h$]h&]jjjj"jj"jjjuh1j2hhhjYhNhNubj)}(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&]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.hhM<hj"ubjT)}(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; };}hj"sbah}(h]h ]h"]h$]h&]jjuh1jShY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM>hj"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.hhMGhj"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.hhM:hj"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"hM:hj"ubah}(h]h ]h"]h$]h&]uh1j hj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM:hj"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.hhM<hj #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.hhM;hj%#ubah}(h]h ]h"]h$]h&]uh1j hj #ubeh}(h]h ]h"]h$]h&]uh1jhj$#hM<hj"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)}(hjI#h]h bulk_link}(hjK#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG#ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM>hjC#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 }(hjb#hhhNhNubj)}(h**bulk**h]hbulk}(hjj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb#ubh+. Protected by the ttm device’s lru_lock.}(hjb#hhhNhNubeh}(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&]uh1j hjC#ubeh}(h]h ]h"]h$]h&]uh1jhj^#hM>hj"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)}(hj#h]hbulk}(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.hhMBhj#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}(hj#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.hhM?hj#ubah}(h]h ]h"]h$]h&]uh1j hj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMBhj"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.hhMDhj#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.hhMChj#ubah}(h]h ]h"]h$]h&]uh1j hj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMDhj"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.hhMDhj'$ubj )}(hhh]h)}(hthe current priorityh]hthe current priority}(hjF$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMEhjC$ubah}(h]h ]h"]h$]h&]uh1j hj'$ubeh}(h]h ]h"]h$]h&]uh1jhjB$hMDhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(h**Description**h]j)}(hjp$h]h Description}(hjr$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn$ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMHhjYhhubh)}(h2Cursor to iterate over the resources in a manager.h]h2Cursor to iterate over the resources in a manager.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMEhjYhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_kmap_iter_iomap (C struct)c.ttm_kmap_iter_iomaphNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(httm_kmap_iter_iomaph]j>)}(hstruct ttm_kmap_iter_iomaph](jD)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj$hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMJubjV)}(h h]h }(hj$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj$hhhj$hMJubjg)}(httm_kmap_iter_iomaph]jm)}(hj$h]httm_kmap_iter_iomap}(hj$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$hhhj$hMJubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj$hhhj$hMJubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1j7hj$hMJhj$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.hhMWhj$hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hMJubeh}(h]h ](jstructeh"]h$]h&]jjjj%jj%jjjuh1j2hhhjYhNhNubj)}(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.hhM[hj %ubjT)}(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&]jjuh1jShY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM]hj %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.hhMjhj %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.hhMZhjW%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.hhM^hj&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 }(hj3&hhhNhNubj)}(h**st**h]hst}(hj;&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3&ubh# to make sg_dma_address(st->sgl) - }(hj3&hhhNhNubj)}(h **start**h]hstart}(hjM&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3&ubh == 0 for }(hj3&hhhNhNubj)}(h **iomap**h]hiomap}(hj_&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3&ubh start.}(hj3&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM]hj0&ubah}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ]h"]h$]h&]uh1jhj/&hM^hjT%ubj)}(h8``cache`` Scatterlist traversal cache for fast lookups. h](j)}(h ``cache``h]j)}(hj&h]hcache}(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.hYhM_hj&ubj )}(hhh]h)}(h-Scatterlist traversal cache for fast lookups.h]h-Scatterlist traversal cache for fast lookups.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM_hj&ubah}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM_hjT%ubj)}(hB``cache.sg`` Pointer to the currently cached scatterlist segment. h](j)}(h ``cache.sg``h]j)}(hj&h]hcache.sg}(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)}(h4Pointer to the currently cached scatterlist segment.h]h4Pointer to the currently cached scatterlist segment.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM`hj&ubah}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM`hjT%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.hhMahj&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'hMahj'ubah}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ]h"]h$]h&]uh1jhj'hMahjT%ubj)}(h?``cache.end`` Last index + 1 of **sg**. PAGE_SIZE granularity. h](j)}(h ``cache.end``h]j)}(hjG'h]h cache.end}(hjI'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE'ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMbhjA'ubj )}(hhh]h)}(h0Last index + 1 of **sg**. PAGE_SIZE granularity.h](hLast index + 1 of }(hj`'hhhNhNubj)}(h**sg**h]hsg}(hjh'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`'ubh. PAGE_SIZE granularity.}(hj`'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\'hMbhj]'ubah}(h]h ]h"]h$]h&]uh1j hjA'ubeh}(h]h ]h"]h$]h&]uh1jhj\'hMbhjT%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}(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.hhMbhj'ubj )}(hhh]h)}(h=First offset into **iomap** of **sg**. PAGE_SIZE granularity.h](hFirst offset into }(hj'hhhNhNubj)}(h **iomap**h]hiomap}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh 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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMchj'ubah}(h]h ]h"]h$]h&]uh1j hj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMbhjT%ubeh}(h]h ]h"]h$]h&]uh1jhj %ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."ttm_kmap_iter_linear_io (C struct)c.ttm_kmap_iter_linear_iohNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(httm_kmap_iter_linear_ioh]j>)}(hstruct ttm_kmap_iter_linear_ioh](jD)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj (hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMiubjV)}(h h]h }(hj(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj (hhhj(hMiubjg)}(httm_kmap_iter_linear_ioh]jm)}(hj (h]httm_kmap_iter_linear_io}(hj0(hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj,(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj (hhhj(hMiubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj(hhhj(hMiubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1j7hj(hMihj(hhubj)}(hhh]h)}(h%Iterator specialization for linear ioh]h%Iterator specialization for linear io}(hjR(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMrhjO(hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hMiubeh}(h]h ](jstructeh"]h$]h&]jjjjj(jjj(jjjuh1j2hhhjYhNhNubj)}(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}(hjv(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr(ubh:}(hjr(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMvhjn(ubjT)}(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&]jjuh1jShY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMxhjn(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~hjn(ubj)}(hhh](j)}(h``base`` The base iterator 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.hhMthj(ubj )}(hhh]h)}(hThe base iteratorh]hThe base iterator}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMthj(ubah}(h]h ]h"]h$]h&]uh1j hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMthj(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.hhMuhj(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 )hMuhj)ubah}(h]h ]h"]h$]h&]uh1j hj(ubeh}(h]h ]h"]h$]h&]uh1jhj )hMuhj(ubj)}(h0``needs_unmap`` Whether we need to unmap on finih](j)}(h``needs_unmap``h]j)}(hj1)h]h needs_unmap}(hj3)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.hhMuhj+)ubj )}(hhh]h)}(h Whether we need to unmap on finih]h Whether we need to unmap on fini}(hjJ)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMvhjG)ubah}(h]h ]h"]h$]h&]uh1j hj+)ubeh}(h]h ]h"]h$]h&]uh1jhjF)hMuhj(ubeh}(h]h ]h"]h$]h&]uh1jhjn(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.*ttm_resource_manager_set_used (C function)c.ttm_resource_manager_set_usedhNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(hPvoid ttm_resource_manager_set_used (struct ttm_resource_manager *man, bool used)h]j>)}(hOvoid ttm_resource_manager_set_used(struct ttm_resource_manager *man, bool used)h](jc)}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj)hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhM~ubjV)}(h h]h }(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj)hhhj)hM~ubjg)}(httm_resource_manager_set_usedh]jm)}(httm_resource_manager_set_usedh]httm_resource_manager_set_used}(hj)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhj)hM~ubj)}(h-(struct ttm_resource_manager *man, bool used)h](j)}(h struct ttm_resource_manager *manh](jD)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj)ubjV)}(h h]h }(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj)ubh)}(hhh]jm)}(httm_resource_managerh]httm_resource_manager}(hj)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj)modnameN classnameNjj)}j]j)}jj)sbc.ttm_resource_manager_set_usedasbuh1hhj)ubjV)}(h h]h }(hj*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj)ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(hmanh]hman}(hj!*hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(h bool usedh](jc)}(hj h]hbool}(hj:*hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj6*ubjV)}(h h]h }(hjG*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj6*ubjm)}(husedh]hused}(hjU*hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj6*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubeh}(h]h ]h"]h$]h&]jjuh1jhj)hhhj)hM~ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj)hhhj)hM~ubah}(h]j~)ah ](jjeh"]h$]h&]jj)jhuh1j7hj)hM~hj)hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj)hhhj)hM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1j2hhhjYhNhNubj)}(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}(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&]uh1j hj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj*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&]uh1j hj*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&]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&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.&ttm_resource_manager_used (C function)c.ttm_resource_manager_usedhNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(hAbool ttm_resource_manager_used (struct ttm_resource_manager *man)h]j>)}(h@bool ttm_resource_manager_used(struct ttm_resource_manager *man)h](jc)}(hj h]hbool}(hjj+hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjf+hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMubjV)}(h h]h }(hjx+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjf+hhhjw+hMubjg)}(httm_resource_manager_usedh]jm)}(httm_resource_manager_usedh]httm_resource_manager_used}(hj+hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjf+hhhjw+hMubj)}(h"(struct ttm_resource_manager *man)h]j)}(h struct ttm_resource_manager *manh](jD)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj+ubjV)}(h h]h }(hj+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj+ubh)}(hhh]jm)}(httm_resource_managerh]httm_resource_manager}(hj+hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj+modnameN classnameNjj)}j]j)}jj+sbc.ttm_resource_manager_usedasbuh1hhj+ubjV)}(h h]h }(hj+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(hmanh]hman}(hj+hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubah}(h]h ]h"]h$]h&]jjuh1jhjf+hhhjw+hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjb+hhhjw+hMubah}(h]j]+ah ](jjeh"]h$]h&]jj)jhuh1j7hjw+hMhj_+hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj_+hhhjw+hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2,jj2,jjjuh1j2hhhjYhNhNubj)}(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.hhMhj6,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&]uh1jhjY,ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhjU,ubj )}(hhh]h)}(hManager to get used state forh]hManager to get used state for}(hjt,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjp,hMhjq,ubah}(h]h ]h"]h$]h&]uh1j hjU,ubeh}(h]h ]h"]h$]h&]uh1jhjp,hMhjR,ubah}(h]h ]h"]h$]h&]uh1jhj6,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.hhMhj6,ubh)}(h"Get the in use flag for a manager.h]h"Get the in use flag for a manager.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj6,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:55: ./include/drm/ttm/ttm_resource.hhMhj6,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.hhMhj6,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.)ttm_resource_manager_cleanup (C function)c.ttm_resource_manager_cleanuphNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(hDvoid ttm_resource_manager_cleanup (struct ttm_resource_manager *man)h]j>)}(hCvoid ttm_resource_manager_cleanup(struct ttm_resource_manager *man)h](jc)}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj,hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMubjV)}(h h]h }(hj-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj,hhhj-hMubjg)}(httm_resource_manager_cleanuph]jm)}(httm_resource_manager_cleanuph]httm_resource_manager_cleanup}(hj#-hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj-hMubj)}(h"(struct ttm_resource_manager *man)h]j)}(h struct ttm_resource_manager *manh](jD)}(hjh]hstruct}(hj?-hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj;-ubjV)}(h h]h }(hjL-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;-ubh)}(hhh]jm)}(httm_resource_managerh]httm_resource_manager}(hj]-hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZ-ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj_-modnameN classnameNjj)}j]j)}jj%-sbc.ttm_resource_manager_cleanupasbuh1hhj;-ubjV)}(h h]h }(hj}-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;-ubjm)}(hmanh]hman}(hj-hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj;-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7-ubah}(h]h ]h"]h$]h&]jjuh1jhj,hhhj-hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj,hhhj-hMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1j7hj-hMhj,hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj,hhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1j2hhhjYhNhNubj)}(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&]uh1j hj-ubeh}(h]h ]h"]h$]h&]uh1jhj .hMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubh)}(h**Description**h]j)}(hj/.h]h Description}(hj1.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-.ubah}(h]h ]h"]h$]h&]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.}(hjE.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&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.+ttm_resource_manager_for_each_res (C macro)#c.ttm_resource_manager_for_each_reshNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(h!ttm_resource_manager_for_each_resh]j>)}(h!ttm_resource_manager_for_each_resh]jg)}(h!ttm_resource_manager_for_each_resh]jm)}(hjn.h]h!ttm_resource_manager_for_each_res}(hjx.hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjt.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjp.hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjl.hhhj.hMubah}(h]jg.ah ](jjeh"]h$]h&]jj)jhuh1j7hj.hMhji.hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhji.hhhj.hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj.jj.jjjuh1j2hhhjYhNhNubh)}(h3``ttm_resource_manager_for_each_res (cursor, res)``h]j)}(hj.h]h/ttm_resource_manager_for_each_res (cursor, res)}(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.hhMhjYhhubh block_quote)}(hiterate over all resources h]h)}(hiterate over all resourcesh]hiterate over all resources}(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&]uh1j.hj.hMhjYhhubj)}(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&]uh1j hj.ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj.ubj)}(h``res`` the current resource h](j)}(h``res``h]j)}(hj9/h]hres}(hj;/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7/ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:55: ./include/drm/ttm/ttm_resource.hhMhj3/ubj )}(hhh]h)}(hthe current resourceh]hthe current resource}(hjR/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN/hMhjO/ubah}(h]h ]h"]h$]h&]uh1j hj3/ubeh}(h]h ]h"]h$]h&]uh1jhjN/hMhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.ubh)}(h**Description**h]j)}(hjt/h]h Description}(hjv/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr/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?Iterate over all the evictable resources in a resource manager.h]h?Iterate over all the evictable resources in a resource manager.}(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&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#ttm_lru_bulk_move_init (C function)c.ttm_lru_bulk_move_inithNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(h)}(h;void ttm_lru_bulk_move_init(struct ttm_lru_bulk_move *bulk)h](jc)}(hvoidh]hvoid}(hj/hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj/hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKwubjV)}(h h]h }(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/hhhj/hKwubjg)}(httm_lru_bulk_move_inith]jm)}(httm_lru_bulk_move_inith]httm_lru_bulk_move_init}(hj/hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj/hhhj/hKwubj)}(h (struct ttm_lru_bulk_move *bulk)h]j)}(hstruct ttm_lru_bulk_move *bulkh](jD)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj/ubjV)}(h h]h }(hj0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/ubh)}(hhh]jm)}(httm_lru_bulk_moveh]httm_lru_bulk_move}(hj0hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj0modnameN classnameNjj)}j]j)}jj/sbc.ttm_lru_bulk_move_initasbuh1hhj/ubjV)}(h h]h }(hj40hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/ubj)}(hjh]h*}(hjB0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hbulkh]hbulk}(hjO0hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubah}(h]h ]h"]h$]h&]jjuh1jhj/hhhj/hKwubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj/hhhj/hKwubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1j7hj/hKwhj/hhubj)}(hhh]h)}(h initialize a bulk move structureh]h initialize a bulk move structure}(hjy0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKwhjv0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1j2hhhjYhNhNubj)}(h**Parameters** ``struct ttm_lru_bulk_move *bulk`` the structure to init **Description** For now just memset the structure to zero.h](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chK{hj0ubj)}(hhh]j)}(h9``struct ttm_lru_bulk_move *bulk`` the structure to init h](j)}(h"``struct ttm_lru_bulk_move *bulk``h]j)}(hj0h]hstruct ttm_lru_bulk_move *bulk}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKxhj0ubj )}(hhh]h)}(hthe structure to inith]hthe structure to init}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKxhj0ubah}(h]h ]h"]h$]h&]uh1j hj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hKxhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKzhj0ubh)}(h*For now just memset the structure to zero.h]h*For now just memset the structure to zero.}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKyhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#ttm_lru_bulk_move_fini (C function)c.ttm_lru_bulk_move_finihNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(hUvoid ttm_lru_bulk_move_fini (struct ttm_device *bdev, struct ttm_lru_bulk_move *bulk)h]j>)}(hTvoid ttm_lru_bulk_move_fini(struct ttm_device *bdev, struct ttm_lru_bulk_move *bulk)h](jc)}(hvoidh]hvoid}(hj:1hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj61hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKubjV)}(h h]h }(hjI1hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj61hhhjH1hKubjg)}(httm_lru_bulk_move_finih]jm)}(httm_lru_bulk_move_finih]httm_lru_bulk_move_fini}(hj[1hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjW1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj61hhhjH1hKubj)}(h9(struct ttm_device *bdev, struct ttm_lru_bulk_move *bulk)h](j)}(hstruct ttm_device *bdevh](jD)}(hjh]hstruct}(hjw1hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjs1ubjV)}(h h]h }(hj1hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjs1ubh)}(hhh]jm)}(h ttm_deviceh]h ttm_device}(hj1hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj1modnameN classnameNjj)}j]j)}jj]1sbc.ttm_lru_bulk_move_finiasbuh1hhjs1ubjV)}(h h]h }(hj1hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjs1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs1ubjm)}(hbdevh]hbdev}(hj1hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjs1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjo1ubj)}(hstruct ttm_lru_bulk_move *bulkh](jD)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj1ubjV)}(h h]h }(hj1hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1ubh)}(hhh]jm)}(httm_lru_bulk_moveh]httm_lru_bulk_move}(hj2hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj 2modnameN classnameNjj)}j]j1c.ttm_lru_bulk_move_finiasbuh1hhj1ubjV)}(h h]h }(hj%2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1ubj)}(hjh]h*}(hj32hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hbulkh]hbulk}(hj@2hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjo1ubeh}(h]h ]h"]h$]h&]jjuh1jhj61hhhjH1hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj21hhhjH1hKubah}(h]j-1ah ](jjeh"]h$]h&]jj)jhuh1j7hjH1hKhj/1hhubj)}(hhh]h)}(hfinalize a bulk move structureh]hfinalize a bulk move structure}(hjj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhjg2hhubah}(h]h ]h"]h$]h&]uh1jhj/1hhhjH1hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1j2hhhjYhNhNubj)}(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)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj2ubj)}(hhh](j)}(h2``struct ttm_device *bdev`` The struct ttm_device h](j)}(h``struct ttm_device *bdev``h]j)}(hj2h]hstruct ttm_device *bdev}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj2ubj )}(hhh]h)}(hThe struct ttm_deviceh]hThe struct ttm_device}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1j hj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj2ubj)}(h=``struct ttm_lru_bulk_move *bulk`` the structure to finalize h](j)}(h"``struct ttm_lru_bulk_move *bulk``h]j)}(hj2h]hstruct ttm_lru_bulk_move *bulk}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj2ubj )}(hhh]h)}(hthe structure to finalizeh]hthe structure to finalize}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1j hj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hj3h]h Description}(hj!3hhhNhNubah}(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.chKhj2ubh)}(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.}(hj53hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#ttm_lru_bulk_move_tail (C function)c.ttm_lru_bulk_move_tailhNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(h)}(h;void ttm_lru_bulk_move_tail(struct ttm_lru_bulk_move *bulk)h](jc)}(hvoidh]hvoid}(hjd3hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj`3hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKubjV)}(h h]h }(hjs3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj`3hhhjr3hKubjg)}(httm_lru_bulk_move_tailh]jm)}(httm_lru_bulk_move_tailh]httm_lru_bulk_move_tail}(hj3hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`3hhhjr3hKubj)}(h (struct ttm_lru_bulk_move *bulk)h]j)}(hstruct ttm_lru_bulk_move *bulkh](jD)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj3ubjV)}(h h]h }(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj3ubh)}(hhh]jm)}(httm_lru_bulk_moveh]httm_lru_bulk_move}(hj3hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj3modnameN classnameNjj)}j]j)}jj3sbc.ttm_lru_bulk_move_tailasbuh1hhj3ubjV)}(h h]h }(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hbulkh]hbulk}(hj3hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubah}(h]h ]h"]h$]h&]jjuh1jhj`3hhhjr3hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj\3hhhjr3hKubah}(h]jW3ah ](jjeh"]h$]h&]jj)jhuh1j7hjr3hKhjY3hhubj)}(hhh]h)}(h-bulk move range of resources to the LRU tail.h]h-bulk move range of resources to the LRU tail.}(hj$4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj!4hhubah}(h]h ]h"]h$]h&]uh1jhjY3hhhjr3hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<4jj<4jjjuh1j2hhhjYhNhNubj)}(hX **Parameters** ``struct ttm_lru_bulk_move *bulk`` bulk move structure **Description** Bulk 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](h)}(h**Parameters**h]j)}(hjF4h]h Parameters}(hjH4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD4ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj@4ubj)}(hhh]j)}(h7``struct ttm_lru_bulk_move *bulk`` bulk move structure h](j)}(h"``struct ttm_lru_bulk_move *bulk``h]j)}(hje4h]hstruct ttm_lru_bulk_move *bulk}(hjg4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc4ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj_4ubj )}(hhh]h)}(hbulk move structureh]hbulk move structure}(hj~4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz4hKhj{4ubah}(h]h ]h"]h$]h&]uh1j hj_4ubeh}(h]h ]h"]h$]h&]uh1jhjz4hKhj\4ubah}(h]h ]h"]h$]h&]uh1jhj@4ubh)}(h**Description**h]j)}(hj4h]h Description}(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.chKhj@4ubh)}(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 }(hj4hhhNhNubh)}(h*:c:type:`ttm_device.lru_lock `h]j)}(hj4h]httm_device.lru_lock}(hj4hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj ttm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chKhj4ubh held.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4hKhj@4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_resource_init (C function)c.ttm_resource_inithNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(hnvoid ttm_resource_init (struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource *res)h]j>)}(hmvoid ttm_resource_init(struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource *res)h](jc)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj5hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chM?ubjV)}(h h]h }(hj5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj5hhhj5hM?ubjg)}(httm_resource_inith]jm)}(httm_resource_inith]httm_resource_init}(hj)5hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj%5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhj5hM?ubj)}(hW(struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource *res)h](j)}(hstruct ttm_buffer_object *boh](jD)}(hjh]hstruct}(hjE5hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjA5ubjV)}(h h]h }(hjR5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjA5ubh)}(hhh]jm)}(httm_buffer_objecth]httm_buffer_object}(hjc5hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj`5ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetje5modnameN classnameNjj)}j]j)}jj+5sbc.ttm_resource_initasbuh1hhjA5ubjV)}(h h]h }(hj5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjA5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA5ubjm)}(hboh]hbo}(hj5hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjA5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=5ubj)}(hconst struct ttm_place *placeh](jD)}(hj h]hconst}(hj5hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj5ubjV)}(h h]h }(hj5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj5ubjD)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj5ubjV)}(h h]h }(hj5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj5ubh)}(hhh]jm)}(h ttm_placeh]h ttm_place}(hj5hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj5modnameN classnameNjj)}j]j5c.ttm_resource_initasbuh1hhj5ubjV)}(h h]h }(hj6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj5ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hplaceh]hplace}(hj)6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=5ubj)}(hstruct ttm_resource *resh](jD)}(hjh]hstruct}(hjB6hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj>6ubjV)}(h h]h }(hjO6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>6ubh)}(hhh]jm)}(h ttm_resourceh]h ttm_resource}(hj`6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj]6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjb6modnameN classnameNjj)}j]j5c.ttm_resource_initasbuh1hhj>6ubjV)}(h h]h }(hj~6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>6ubjm)}(hresh]hres}(hj6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=5ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hM?ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj5hhhj5hM?ubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1j7hj5hM?hj4hhubj)}(hhh]h)}(hresource object constructureh]hresource object constructure}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chM?hj6hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj5hM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1j2hhhjYhNhNubj)}(hX9**Parameters** ``struct ttm_buffer_object *bo`` buffer object this resources is allocated for ``const struct ttm_place *place`` placement of the resource ``struct ttm_resource *res`` the resource object to inistilize **Description** Initialize a new resource object. Counterpart of ttm_resource_fini().h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMChj6ubj)}(hhh](j)}(hO``struct ttm_buffer_object *bo`` buffer object this resources 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.chM@hj6ubj )}(hhh]h)}(h-buffer object this resources is allocated forh]h-buffer object this resources is allocated for}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM@hj7ubah}(h]h ]h"]h$]h&]uh1j hj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hM@hj6ubj)}(h<``const struct ttm_place *place`` placement of the resource h](j)}(h!``const struct ttm_place *place``h]j)}(hj=7h]hconst struct ttm_place *place}(hj?7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;7ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMAhj77ubj )}(hhh]h)}(hplacement of the resourceh]hplacement of the resource}(hjV7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR7hMAhjS7ubah}(h]h ]h"]h$]h&]uh1j hj77ubeh}(h]h ]h"]h$]h&]uh1jhjR7hMAhj6ubj)}(h?``struct ttm_resource *res`` the resource object to inistilize h](j)}(h``struct ttm_resource *res``h]j)}(hjv7h]hstruct ttm_resource *res}(hjx7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt7ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMBhjp7ubj )}(hhh]h)}(h!the resource object to inistilizeh]h!the resource object to inistilize}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMBhj7ubah}(h]h ]h"]h$]h&]uh1j hjp7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMBhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hj7h]h Description}(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.chMDhj6ubh)}(hEInitialize a new resource object. Counterpart of ttm_resource_fini().h]hEInitialize a new resource object. Counterpart of ttm_resource_fini().}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMChj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_resource_fini (C function)c.ttm_resource_finihNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(hSvoid ttm_resource_fini (struct ttm_resource_manager *man, struct ttm_resource *res)h]j>)}(hRvoid ttm_resource_fini(struct ttm_resource_manager *man, struct ttm_resource *res)h](jc)}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj7hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMbubjV)}(h h]h }(hj8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj7hhhj8hMbubjg)}(httm_resource_finih]jm)}(httm_resource_finih]httm_resource_fini}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhj8hMbubj)}(h<(struct ttm_resource_manager *man, struct ttm_resource *res)h](j)}(h struct ttm_resource_manager *manh](jD)}(hjh]hstruct}(hj38hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj/8ubjV)}(h h]h }(hj@8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/8ubh)}(hhh]jm)}(httm_resource_managerh]httm_resource_manager}(hjQ8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjN8ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjS8modnameN classnameNjj)}j]j)}jj8sbc.ttm_resource_finiasbuh1hhj/8ubjV)}(h h]h }(hjq8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/8ubjm)}(hmanh]hman}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+8ubj)}(hstruct ttm_resource *resh](jD)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj8ubjV)}(h h]h }(hj8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj8ubh)}(hhh]jm)}(h ttm_resourceh]h ttm_resource}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8modnameN classnameNjj)}j]jm8c.ttm_resource_finiasbuh1hhj8ubjV)}(h h]h }(hj8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hresh]hres}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+8ubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhj8hMbubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj7hhhj8hMbubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1j7hj8hMbhj7hhubj)}(hhh]h)}(hresource destructorh]hresource destructor}(hj&9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMbhj#9hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj8hMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>9jj>9jjjuh1j2hhhjYhNhNubj)}(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)}(hjH9h]h Parameters}(hjJ9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF9ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMfhjB9ubj)}(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)}(hjg9h]h struct ttm_resource_manager *man}(hji9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje9ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMchja9ubj )}(hhh]h)}(h-the resource manager this resource belongs toh]h-the resource manager this resource belongs to}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|9hMchj}9ubah}(h]h ]h"]h$]h&]uh1j hja9ubeh}(h]h ]h"]h$]h&]uh1jhj|9hMchj^9ubj)}(h6``struct ttm_resource *res`` the resource to clean up h](j)}(h``struct ttm_resource *res``h]j)}(hj9h]hstruct ttm_resource *res}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMdhj9ubj )}(hhh]h)}(hthe resource to clean uph]hthe resource to clean up}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMdhj9ubah}(h]h ]h"]h$]h&]uh1j hj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMdhj^9ubeh}(h]h ]h"]h$]h&]uh1jhjB9ubh)}(h**Description**h]j)}(hj9h]h Description}(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.chMfhjB9ubh)}(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().}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMehjB9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.&ttm_resource_manager_init (C function)c.ttm_resource_manager_inithNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(hivoid ttm_resource_manager_init (struct ttm_resource_manager *man, struct ttm_device *bdev, uint64_t size)h]j>)}(hhvoid ttm_resource_manager_init(struct ttm_resource_manager *man, struct ttm_device *bdev, uint64_t size)h](jc)}(hvoidh]hvoid}(hj :hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj:hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMubjV)}(h h]h }(hj/:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:hhhj.:hMubjg)}(httm_resource_manager_inith]jm)}(httm_resource_manager_inith]httm_resource_manager_init}(hjA:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj=:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhj.:hMubj)}(hJ(struct ttm_resource_manager *man, struct ttm_device *bdev, uint64_t size)h](j)}(h struct ttm_resource_manager *manh](jD)}(hjh]hstruct}(hj]:hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjY:ubjV)}(h h]h }(hjj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjY:ubh)}(hhh]jm)}(httm_resource_managerh]httm_resource_manager}(hj{:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjx:ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj}:modnameN classnameNjj)}j]j)}jjC:sbc.ttm_resource_manager_initasbuh1hhjY:ubjV)}(h h]h }(hj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjY:ubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY:ubjm)}(hmanh]hman}(hj:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjY:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU:ubj)}(hstruct ttm_device *bdevh](jD)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj:ubjV)}(h h]h }(hj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:ubh)}(hhh]jm)}(h ttm_deviceh]h ttm_device}(hj:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:modnameN classnameNjj)}j]j:c.ttm_resource_manager_initasbuh1hhj:ubjV)}(h h]h }(hj ;hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hbdevh]hbdev}(hj&;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU:ubj)}(h uint64_t sizeh](h)}(hhh]jm)}(huint64_th]huint64_t}(hjB;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj?;ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjD;modnameN classnameNjj)}j]j:c.ttm_resource_manager_initasbuh1hhj;;ubjV)}(h h]h }(hj`;hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;;ubjm)}(hsizeh]hsize}(hjn;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj;;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU:ubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhj.:hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj:hhhj.:hMubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1j7hj.:hMhj:hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj:hhhj.:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1j2hhhjYhNhNubj)}(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** Initialise core parts of a 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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhj;ubj)}(hhh](j)}(hC``struct ttm_resource_manager *man`` memory manager object to init 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.chMhj;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&]uh1j hj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj;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&]uh1j hj;ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj;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.chMhj6<ubj )}(hhh]h)}(h,size of managed resources in arbitrary unitsh]h,size of managed resources in arbitrary units}(hjU<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ<hMhjR<ubah}(h]h ]h"]h$]h&]uh1j hj6<ubeh}(h]h ]h"]h$]h&]uh1jhjQ<hMhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h**Description**h]j)}(hjw<h]h Description}(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.chMhj;ubh)}(h*Initialise core parts of a manager object.h]h*Initialise core parts of a manager object.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'ttm_resource_manager_usage (C function)c.ttm_resource_manager_usagehNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(hFuint64_t ttm_resource_manager_usage (struct ttm_resource_manager *man)h]j>)}(hEuint64_t ttm_resource_manager_usage(struct ttm_resource_manager *man)h](h)}(hhh]jm)}(huint64_th]huint64_t}(hj<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj<modnameN classnameNjj)}j]j)}jttm_resource_manager_usagesbc.ttm_resource_manager_usageasbuh1hhj<hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMDubjV)}(h h]h }(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj<hhhj<hMDubjg)}(httm_resource_manager_usageh]jm)}(hj<h]httm_resource_manager_usage}(hj<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhhj<hMDubj)}(h"(struct ttm_resource_manager *man)h]j)}(h struct ttm_resource_manager *manh](jD)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj =ubjV)}(h h]h }(hj=hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj =ubh)}(hhh]jm)}(httm_resource_managerh]httm_resource_manager}(hj,=hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj)=ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj.=modnameN classnameNjj)}j]j<c.ttm_resource_manager_usageasbuh1hhj =ubjV)}(h h]h }(hjJ=hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj =ubj)}(hjh]h*}(hjX=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj =ubjm)}(hmanh]hman}(hje=hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj =ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubah}(h]h ]h"]h$]h&]jjuh1jhj<hhhj<hMDubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj<hhhj<hMDubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1j7hj<hMDhj<hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj<hhhj<hMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1j2hhhjYhNhNubj)}(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)}(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:58: ./drivers/gpu/drm/ttm/ttm_resource.chMHhj=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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMFhj=ubj )}(hhh]h)}(hA memory manager object.h]hA memory manager object.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMFhj=ubah}(h]h ]h"]h$]h&]uh1j hj=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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMHhj=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.chMEhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'ttm_resource_manager_debug (C function)c.ttm_resource_manager_debughNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(hYvoid ttm_resource_manager_debug (struct ttm_resource_manager *man, struct drm_printer *p)h]j>)}(hXvoid ttm_resource_manager_debug(struct ttm_resource_manager *man, struct drm_printer *p)h](jc)}(hvoidh]hvoid}(hjA>hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj=>hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMVubjV)}(h h]h }(hjP>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj=>hhhjO>hMVubjg)}(httm_resource_manager_debugh]jm)}(httm_resource_manager_debugh]httm_resource_manager_debug}(hjb>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=>hhhjO>hMVubj)}(h9(struct ttm_resource_manager *man, struct drm_printer *p)h](j)}(h struct ttm_resource_manager *manh](jD)}(hjh]hstruct}(hj~>hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjz>ubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjz>ubh)}(hhh]jm)}(httm_resource_managerh]httm_resource_manager}(hj>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>modnameN classnameNjj)}j]j)}jjd>sbc.ttm_resource_manager_debugasbuh1hhjz>ubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjz>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz>ubjm)}(hmanh]hman}(hj>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjz>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjv>ubj)}(hstruct drm_printer *ph](jD)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj>ubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubh)}(hhh]jm)}(h drm_printerh]h drm_printer}(hj?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ?ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj?modnameN classnameNjj)}j]j>c.ttm_resource_manager_debugasbuh1hhj>ubjV)}(h h]h }(hj,?hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubj)}(hjh]h*}(hj:?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hjh]hp}(hjG?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjv>ubeh}(h]h ]h"]h$]h&]jjuh1jhj=>hhhjO>hMVubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj9>hhhjO>hMVubah}(h]j4>ah ](jjeh"]h$]h&]jj)jhuh1j7hjO>hMVhj6>hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj6>hhhjO>hMVubeh}(h]h ](jfunctioneh"]h$]h&]jjjjy?jjy?jjjuh1j2hhhjYhNhNubj)}(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}(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.chMZhj}?ubj)}(hhh](j)}(h;``struct ttm_resource_manager *man`` manager type to dump. 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.chMXhj?ubj )}(hhh]h)}(hmanager type to dump.h]hmanager type to dump.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMXhj?ubah}(h]h ]h"]h$]h&]uh1j hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMXhj?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.chMZhj?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.chMYhj?ubah}(h]h ]h"]h$]h&]uh1j hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMZhj?ubeh}(h]h ]h"]h$]h&]uh1jhj}?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%ttm_kmap_iter_iomap_init (C function)c.ttm_kmap_iter_iomap_inithNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(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]j>)}(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](jD)}(hjh]hstruct}(hj5@hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj1@hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMubjV)}(h h]h }(hjC@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1@hhhjB@hMubh)}(hhh]jm)}(h ttm_kmap_iterh]h ttm_kmap_iter}(hjT@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQ@ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjV@modnameN classnameNjj)}j]j)}jttm_kmap_iter_iomap_initsbc.ttm_kmap_iter_iomap_initasbuh1hhj1@hhhjB@hMubjV)}(h h]h }(hju@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1@hhhjB@hMubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1@hhhjB@hMubjg)}(httm_kmap_iter_iomap_inith]jm)}(hjr@h]httm_kmap_iter_iomap_init}(hj@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1@hhhjB@hMubj)}(hk(struct ttm_kmap_iter_iomap *iter_io, struct io_mapping *iomap, struct sg_table *st, resource_size_t start)h](j)}(h#struct ttm_kmap_iter_iomap *iter_ioh](jD)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj@ubjV)}(h h]h }(hj@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@ubh)}(hhh]jm)}(httm_kmap_iter_iomaph]httm_kmap_iter_iomap}(hj@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj@modnameN classnameNjj)}j]jp@c.ttm_kmap_iter_iomap_initasbuh1hhj@ubjV)}(h h]h }(hj@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hiter_ioh]hiter_io}(hjAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hstruct io_mapping *iomaph](jD)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjAubjV)}(h h]h }(hj,AhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjAubh)}(hhh]jm)}(h io_mappingh]h io_mapping}(hj=AhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:Aubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj?AmodnameN classnameNjj)}j]jp@c.ttm_kmap_iter_iomap_initasbuh1hhjAubjV)}(h h]h }(hj[AhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjAubj)}(hjh]h*}(hjiAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hiomaph]hiomap}(hjvAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hstruct sg_table *sth](jD)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjAubjV)}(h h]h }(hjAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjAubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hjAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]jp@c.ttm_kmap_iter_iomap_initasbuh1hhjAubjV)}(h h]h }(hjAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hsth]hst}(hjAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjBhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjBmodnameN classnameNjj)}j]jp@c.ttm_kmap_iter_iomap_initasbuh1hhjAubjV)}(h h]h }(hj BhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjAubjm)}(hstarth]hstart}(hj.BhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhj1@hhhjB@hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj-@hhhjB@hMubah}(h]j(@ah ](jjeh"]h$]h&]jj)jhuh1j7hjB@hMhj*@hhubj)}(hhh]h)}(h'Initialize a struct ttm_kmap_iter_iomaph]h'Initialize a struct ttm_kmap_iter_iomap}(hjXBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjUBhhubah}(h]h ]h"]h$]h&]uh1jhj*@hhhjB@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpBjjpBjjjuh1j2hhhjYhNhNubj)}(hX**Parameters** ``struct ttm_kmap_iter_iomap *iter_io`` The struct ttm_kmap_iter_iomap to initialize. ``struct io_mapping *iomap`` The struct io_mapping representing the underlying linear io_memory. ``struct sg_table *st`` sg_table into **iomap**, representing the memory of the struct ttm_resource. ``resource_size_t start`` Offset that needs to be subtracted from **st** to make sg_dma_address(st->sgl) - **start** == 0 for **iomap** start. **Return** Pointer to the embedded struct ttm_kmap_iter.h](h)}(h**Parameters**h]j)}(hjzBh]h Parameters}(hj|BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxBubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjtBubj)}(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)}(hjBh]h#struct ttm_kmap_iter_iomap *iter_io}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjBubj )}(hhh]h)}(h-The struct ttm_kmap_iter_iomap to initialize.h]h-The struct ttm_kmap_iter_iomap to initialize.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjBubah}(h]h ]h"]h$]h&]uh1j hjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjBubj)}(ha``struct io_mapping *iomap`` The struct io_mapping representing the underlying linear io_memory. h](j)}(h``struct io_mapping *iomap``h]j)}(hjBh]hstruct io_mapping *iomap}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjBubj )}(hhh]h)}(hCThe struct io_mapping representing the underlying linear io_memory.h]hCThe struct io_mapping representing the underlying linear io_memory.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjBubah}(h]h ]h"]h$]h&]uh1j hjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjBubj)}(he``struct sg_table *st`` sg_table into **iomap**, representing the memory of the struct ttm_resource. h](j)}(h``struct sg_table *st``h]j)}(hj Ch]hstruct sg_table *st}(hj ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Cubah}(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)}(hLsg_table into **iomap**, representing the memory of the struct ttm_resource.h](hsg_table into }(hj$ChhhNhNubj)}(h **iomap**h]hiomap}(hj,ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Cubh5, representing the memory of the struct ttm_resource.}(hj$ChhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhj!Cubah}(h]h ]h"]h$]h&]uh1j hjCubeh}(h]h ]h"]h$]h&]uh1jhj ChMhjBubj)}(h``resource_size_t start`` Offset that needs to be subtracted from **st** to make sg_dma_address(st->sgl) - **start** == 0 for **iomap** start. h](j)}(h``resource_size_t start``h]j)}(hjWCh]hresource_size_t start}(hjYChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUCubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjQCubj )}(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 }(hjpChhhNhNubj)}(h**st**h]hst}(hjxChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpCubh# to make sg_dma_address(st->sgl) - }(hjpChhhNhNubj)}(h **start**h]hstart}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpCubh == 0 for }(hjpChhhNhNubj)}(h **iomap**h]hiomap}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpCubh start.}(hjpChhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjmCubah}(h]h ]h"]h$]h&]uh1j hjQCubeh}(h]h ]h"]h$]h&]uh1jhjlChMhjBubeh}(h]h ]h"]h$]h&]uh1jhjtBubh)}(h **Return**h]j)}(hjCh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjtBubh)}(h-Pointer to the embedded struct ttm_kmap_iter.h]h-Pointer to the embedded struct ttm_kmap_iter.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjtBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.0ttm_resource_manager_create_debugfs (C function)%c.ttm_resource_manager_create_debugfshNtauh1j!hjYhhhNhNubj3)}(hhh](j8)}(huvoid ttm_resource_manager_create_debugfs (struct ttm_resource_manager *man, struct dentry * parent, const char *name)h]j>)}(hsvoid ttm_resource_manager_create_debugfs(struct ttm_resource_manager *man, struct dentry *parent, const char *name)h](jc)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj Dhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMubjV)}(h h]h }(hjDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj DhhhjDhMubjg)}(h#ttm_resource_manager_create_debugfsh]jm)}(h#ttm_resource_manager_create_debugfsh]h#ttm_resource_manager_create_debugfs}(hj/DhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+Dubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj DhhhjDhMubj)}(hK(struct ttm_resource_manager *man, struct dentry *parent, const char *name)h](j)}(h struct ttm_resource_manager *manh](jD)}(hjh]hstruct}(hjKDhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjGDubjV)}(h h]h }(hjXDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjGDubh)}(hhh]jm)}(httm_resource_managerh]httm_resource_manager}(hjiDhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjfDubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjkDmodnameN classnameNjj)}j]j)}jj1Dsb%c.ttm_resource_manager_create_debugfsasbuh1hhjGDubjV)}(h h]h }(hjDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjGDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGDubjm)}(hmanh]hman}(hjDhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCDubj)}(hstruct dentry *parenth](jD)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjDubjV)}(h h]h }(hjDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjDubh)}(hhh]jm)}(hdentryh]hdentry}(hjDhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjDmodnameN classnameNjj)}j]jD%c.ttm_resource_manager_create_debugfsasbuh1hhjDubjV)}(h h]h }(hjDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjDubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hparenth]hparent}(hjEhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCDubj)}(hconst char *nameh](jD)}(hj h]hconst}(hj-EhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj)EubjV)}(h h]h }(hj:EhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj)Eubjc)}(hcharh]hchar}(hjHEhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj)EubjV)}(h h]h }(hjVEhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj)Eubj)}(hjh]h*}(hjdEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Eubjm)}(hnameh]hname}(hjqEhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj)Eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCDubeh}(h]h ]h"]h$]h&]jjuh1jhj DhhhjDhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjDhhhjDhMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1j7hjDhMhjDhhubj)}(hhh]h)}(h4Create debugfs entry for specified resource manager.h]h4Create debugfs entry for specified resource manager.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjDhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1j2hhhjYhNhNubj)}(hX**Parameters** ``struct ttm_resource_manager *man`` The TTM resource manager for which the debugfs stats file be creates ``struct dentry * parent`` debugfs directory in which the file will reside ``const char *name`` The filename to create. **Description** This function setups up a debugfs file that can be used to look at debug statistics of the specified ttm_resource_manager.h](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjEubj)}(hhh](j)}(hj``struct ttm_resource_manager *man`` The TTM resource manager for which the debugfs stats file be creates h](j)}(h$``struct ttm_resource_manager *man``h]j)}(hjEh]h struct ttm_resource_manager *man}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjEubj )}(hhh]h)}(hDThe TTM resource manager for which the debugfs stats file be createsh]hDThe TTM resource manager for which the debugfs stats file be creates}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjEubah}(h]h ]h"]h$]h&]uh1j hjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjEubj)}(hK``struct dentry * parent`` debugfs directory in which the file will reside h](j)}(h``struct dentry * parent``h]j)}(hjFh]hstruct dentry * parent}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjFubj )}(hhh]h)}(h/debugfs directory in which the file will resideh]h/debugfs directory in which the file will reside}(hj.FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*FhMhj+Fubah}(h]h ]h"]h$]h&]uh1j hjFubeh}(h]h ]h"]h$]h&]uh1jhj*FhMhjEubj)}(h-``const char *name`` The filename to create. h](j)}(h``const char *name``h]j)}(hjNFh]hconst char *name}(hjPFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLFubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjHFubj )}(hhh]h)}(hThe filename to create.h]hThe filename to create.}(hjgFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcFhMhjdFubah}(h]h ]h"]h$]h&]uh1j hjHFubeh}(h]h ]h"]h$]h&]uh1jhjcFhMhjEubeh}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjEubh)}(hzThis function setups up a debugfs file that can be used to look at debug statistics of the specified ttm_resource_manager.h]hzThis function setups up a debugfs file that can be used to look at debug statistics of the specified ttm_resource_manager.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:58: ./drivers/gpu/drm/ttm/ttm_resource.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubeh}(h]ttm-resource-object-referenceah ]h"]ttm resource object referenceah$]h&]uh1hhhhhhhhK5ubh)}(hhh](h)}(hTTM TT object referenceh]hTTM TT object reference}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhhhhhK>ubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_tt (C struct)c.ttm_tthNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(httm_tth]j>)}(h struct ttm_tth](jD)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjFhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjV)}(h h]h }(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjFhhhjFhKubjg)}(httm_tth]jm)}(hjFh]httm_tt}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjFhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjFhhhjFhKubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1j7hjFhKhjFhhubj)}(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.}(hj)GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK,hj&Ghhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhKubeh}(h]h ](jstructeh"]h$]h&]jjjjAGjjAGjjjuh1j2hhhjFhNhNubj)}(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}(hjMGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIGubh:}(hjIGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK0hjEGubjT)}(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; };}hjfGsbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK2hjEGubh)}(h **Members**h]j)}(hjwGh]hMembers}(hjyGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuGubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKEhjEGubj)}(hhh](j)}(h+``pages`` Array of pages backing the data. h](j)}(h ``pages``h]j)}(hjGh]hpages}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK2hjGubj )}(hhh]h)}(h Array of pages backing the data.h]h Array of pages backing the data.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhK2hjGubah}(h]h ]h"]h$]h&]uh1j hjGubeh}(h]h ]h"]h$]h&]uh1jhjGhK2hjGubj)}(hX``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(). h](j)}(h``page_flags``h]j)}(hjGh]h page_flags}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK`hjGubj )}(hhh](h)}(hThe page flags.h]hThe page flags.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK5hjGubh)}(hSupported values:h]hSupported values:}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK7hjGubh)}(hTTM_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.h]hTTM_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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK9hjGubh)}(hFTTM_TT_FLAG_ZERO_ALLOC: Set if the pages will be zeroed on allocation.h]hFTTM_TT_FLAG_ZERO_ALLOC: Set if the pages will be zeroed on allocation.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK>hjGubh)}(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.}(hj$HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKAhjGubh)}(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.}(hj3HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKFhjGubh)}(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).}(hjBHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKIhjGubh)}(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:}(hjQHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKOhjGubj.)}(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 |}(hjkHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKShjgHubj )}(hhh]h)}(hTTM_TT_FLAG_EXTERNAL_MAPPABLE;h]hTTM_TT_FLAG_EXTERNAL_MAPPABLE;}(hj}HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyHhKShjzHubah}(h]h ]h"]h$]h&]uh1j hjgHubeh}(h]h ]h"]h$]h&]uh1jhjyHhKShjdHubah}(h]h ]h"]h$]h&]uh1jhj`Hubah}(h]h ]h"]h$]h&]uh1j.hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKRhjGubh)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKUhjGubh)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK[hjGubh)}(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().}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK^hjGubeh}(h]h ]h"]h$]h&]uh1j hjGubeh}(h]h ]h"]h$]h&]uh1jhjGhK`hjGubj)}(h1``num_pages`` Number of pages in the page array. h](j)}(h ``num_pages``h]j)}(hjHh]h num_pages}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKlhjHubj )}(hhh]h)}(h"Number of pages in the page array.h]h"Number of pages in the page array.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhKlhjHubah}(h]h ]h"]h$]h&]uh1j hjHubeh}(h]h ]h"]h$]h&]uh1jhjHhKlhjGubj)}(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.}(hj5IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1IhKnhj2Iubah}(h]h ]h"]h$]h&]uh1j hjIubeh}(h]h ]h"]h$]h&]uh1jhj1IhKnhjGubj)}(h6``dma_address`` The DMA (bus) addresses of the pages. h](j)}(h``dma_address``h]j)}(hjUIh]h dma_address}(hjWIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSIubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKphjOIubj )}(hhh]h)}(h%The DMA (bus) addresses of the pages.h]h%The DMA (bus) addresses of the pages.}(hjnIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjIhKphjkIubah}(h]h ]h"]h$]h&]uh1j hjOIubeh}(h]h ]h"]h$]h&]uh1jhjjIhKphjGubj)}(h@``swap_storage`` Pointer to shmem struct file for swap storage. h](j)}(h``swap_storage``h]j)}(hjIh]h swap_storage}(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.hhKrhjIubj )}(hhh]h)}(h.Pointer to shmem struct file for swap storage.h]h.Pointer to shmem struct file for swap storage.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhKrhjIubah}(h]h ]h"]h$]h&]uh1j hjIubeh}(h]h ]h"]h$]h&]uh1jhjIhKrhjGubj)}(h``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. h](j)}(h ``backup``h]j)}(hjIh]hbackup}(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.hhKxhjIubj )}(hhh]h)}(hPointer 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.h](hBPointer to backup struct for backed up tts. Could be unified with }(hjIhhhNhNubj)}(h**swap_storage**h]h swap_storage}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh]. Meanwhile, the driver’s ttm_tt_create() callback is responsible for assigning this field.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKuhjIubah}(h]h ]h"]h$]h&]uh1j hjIubeh}(h]h ]h"]h$]h&]uh1jhjIhKxhjGubj)}(hJ``caching`` The current caching state of the pages, see enum ttm_caching. h](j)}(h ``caching``h]j)}(hjJh]hcaching}(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.hhK}hj Jubj )}(hhh]h)}(h=The current caching state of the pages, see enum ttm_caching.h]h=The current caching state of the pages, see enum ttm_caching.}(hj,JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhK|hj)Jubah}(h]h ]h"]h$]h&]uh1j hj Jubeh}(h]h ]h"]h$]h&]uh1jhj(JhK}hjGubj)}(h>``restore`` Partial restoration from backup state. TTM privateh](j)}(h ``restore``h]j)}(hjMJh]hrestore}(hjOJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKJubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjGJubj )}(hhh]h)}(h2Partial restoration from backup state. TTM privateh]h2Partial restoration from backup state. TTM private}(hjfJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjcJubah}(h]h ]h"]h$]h&]uh1j hjGJubeh}(h]h ]h"]h$]h&]uh1jhjbJhKhjGubeh}(h]h ]h"]h$]h&]uh1jhjEGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_kmap_iter_tt (C struct)c.ttm_kmap_iter_tthNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(httm_kmap_iter_tth]j>)}(hstruct ttm_kmap_iter_tth](jD)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjJhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjV)}(h h]h }(hjJhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjJhhhjJhKubjg)}(httm_kmap_iter_tth]jm)}(hjJh]httm_kmap_iter_tt}(hjJhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhjJhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjJhhhjJhKubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1j7hjJhKhjJhhubj)}(hhh]h)}(h-Specialization of a mappig iterator for a tt.h]h-Specialization of a mappig iterator for a tt.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjJhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhKubeh}(h]h ](jstructeh"]h$]h&]jjjjKjjKjjjuh1j2hhhjFhNhNubj)}(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}(hj KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Kubh:}(hj KhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjKubjT)}(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; };}hj&Ksbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjKubh)}(h **Members**h]j)}(hj7Kh]hMembers}(hj9KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5Kubah}(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)}(hjVKh]hbase}(hjXKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjPKubj )}(hhh]h)}(h;Embedded struct ttm_kmap_iter providing the usage interfaceh]h;Embedded struct ttm_kmap_iter providing the usage interface}(hjoKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkKhKhjlKubah}(h]h ]h"]h$]h&]uh1j hjPKubeh}(h]h ]h"]h$]h&]uh1jhjkKhKhjMKubj)}(h``tt`` Cached struct ttm_tt. h](j)}(h``tt``h]j)}(hjKh]htt}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjKubj )}(hhh]h)}(hCached struct ttm_tt.h]hCached struct ttm_tt.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhKhjKubah}(h]h ]h"]h$]h&]uh1j hjKubeh}(h]h ]h"]h$]h&]uh1jhjKhKhjMKubj)}(h,``prot`` Cached page protection for mapping.h](j)}(h``prot``h]j)}(hjKh]hprot}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(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#Cached page protection for mapping.h]h#Cached page protection for mapping.}(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&]uh1j hjKubeh}(h]h ]h"]h$]h&]uh1jhjKhKhjMKubeh}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_tt_is_swapped (C function)c.ttm_tt_is_swappedhNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(h0bool ttm_tt_is_swapped (const struct ttm_tt *tt)h]j>)}(h/bool ttm_tt_is_swapped(const struct ttm_tt *tt)h](jc)}(hj h]hbool}(hj"LhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjLhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjV)}(h h]h }(hj0LhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjLhhhj/LhKubjg)}(httm_tt_is_swappedh]jm)}(httm_tt_is_swappedh]httm_tt_is_swapped}(hjBLhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>Lubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjLhhhj/LhKubj)}(h(const struct ttm_tt *tt)h]j)}(hconst struct ttm_tt *tth](jD)}(hj h]hconst}(hj^LhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjZLubjV)}(h h]h }(hjkLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjZLubjD)}(hjh]hstruct}(hjyLhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjZLubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjZLubh)}(hhh]jm)}(httm_tth]httm_tt}(hjLhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjLmodnameN classnameNjj)}j]j)}jjDLsbc.ttm_tt_is_swappedasbuh1hhjZLubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjZLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZLubjm)}(htth]htt}(hjLhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVLubah}(h]h ]h"]h$]h&]jjuh1jhjLhhhj/LhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjLhhhj/LhKubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1j7hj/LhKhjLhhubj)}(hhh]h)}(h.Whether the ttm_tt is swapped out or backed uph]h.Whether the ttm_tt is swapped out or backed up}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjLhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhj/LhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1j2hhhjFhNhNubj)}(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}(hj MhhhNhNubah}(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)}(hj=Mh]hconst struct ttm_tt *tt}(hj?MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Mubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj7Mubj )}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hjVMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRMhKhjSMubah}(h]h ]h"]h$]h&]uh1j hj7Mubeh}(h]h ]h"]h$]h&]uh1jhjRMhKhj4Mubah}(h]h ]h"]h$]h&]uh1jhjMubh)}(h **Return**h]j)}(hjxMh]hReturn}(hjzMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvMubah}(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.}(hjMhhhNhNubah}(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&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. ttm_tt_is_backed_up (C function)c.ttm_tt_is_backed_uphNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(h2bool ttm_tt_is_backed_up (const struct ttm_tt *tt)h]j>)}(h1bool ttm_tt_is_backed_up(const struct ttm_tt *tt)h](jc)}(hj h]hbool}(hjMhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjMhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjV)}(h h]h }(hjMhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjMhhhjMhKubjg)}(httm_tt_is_backed_uph]jm)}(httm_tt_is_backed_uph]httm_tt_is_backed_up}(hjMhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhjMhKubj)}(h(const struct ttm_tt *tt)h]j)}(hconst struct ttm_tt *tth](jD)}(hj h]hconst}(hjMhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjMubjV)}(h h]h }(hjNhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjMubjD)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjMubjV)}(h h]h }(hj!NhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjMubh)}(hhh]jm)}(httm_tth]httm_tt}(hj2NhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/Nubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj4NmodnameN classnameNjj)}j]j)}jjMsbc.ttm_tt_is_backed_upasbuh1hhjMubjV)}(h h]h }(hjRNhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjMubj)}(hjh]h*}(hj`NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(htth]htt}(hjmNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubah}(h]h ]h"]h$]h&]jjuh1jhjMhhhjMhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjMhhhjMhKubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1j7hjMhKhjMhhubj)}(hhh]h)}(hWhether the ttm_tt backed uph]hWhether the ttm_tt backed up}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjNhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1j2hhhjFhNhNubj)}(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)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjNubj)}(hhh]j)}(h/``const struct ttm_tt *tt`` The struct ttm_tt. h](j)}(h``const struct ttm_tt *tt``h]j)}(hjNh]hconst struct ttm_tt *tt}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjNubj )}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhKhjNubah}(h]h ]h"]h$]h&]uh1j hjNubeh}(h]h ]h"]h$]h&]uh1jhjNhKhjNubah}(h]h ]h"]h$]h&]uh1jhjNubh)}(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.hhKhjNubh)}(h.true if swapped or backed up, false otherwise.h]h.true if swapped or backed up, false otherwise.}(hj)OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#ttm_tt_clear_backed_up (C function)c.ttm_tt_clear_backed_uphNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(h/void ttm_tt_clear_backed_up (struct ttm_tt *tt)h]j>)}(h.void ttm_tt_clear_backed_up(struct ttm_tt *tt)h](jc)}(hvoidh]hvoid}(hjXOhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjTOhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjV)}(h h]h }(hjgOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjTOhhhjfOhKubjg)}(httm_tt_clear_backed_uph]jm)}(httm_tt_clear_backed_uph]httm_tt_clear_backed_up}(hjyOhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjTOhhhjfOhKubj)}(h(struct ttm_tt *tt)h]j)}(hstruct ttm_tt *tth](jD)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjOubjV)}(h h]h }(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjOubh)}(hhh]jm)}(httm_tth]httm_tt}(hjOhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjOmodnameN classnameNjj)}j]j)}jj{Osbc.ttm_tt_clear_backed_upasbuh1hhjOubjV)}(h h]h }(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(htth]htt}(hjOhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubah}(h]h ]h"]h$]h&]jjuh1jhjTOhhhjfOhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjPOhhhjfOhKubah}(h]jKOah ](jjeh"]h$]h&]jj)jhuh1j7hjfOhKhjMOhhubj)}(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&]uh1jhjMOhhhjfOhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0Pjj0Pjjjuh1j2hhhjFhNhNubj)}(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)}(hj:Ph]h Parameters}(hj)}(h@int ttm_tt_create(struct ttm_buffer_object *bo, bool zero_alloc)h](jc)}(hinth]hint}(hjPhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjPhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjV)}(h h]h }(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjPhhhjPhKubjg)}(h ttm_tt_createh]jm)}(h ttm_tt_createh]h ttm_tt_create}(hjPhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjPhKubj)}(h/(struct ttm_buffer_object *bo, bool zero_alloc)h](j)}(hstruct ttm_buffer_object *boh](jD)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjQubjV)}(h h]h }(hj#QhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQubh)}(hhh]jm)}(httm_buffer_objecth]httm_buffer_object}(hj4QhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1Qubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6QmodnameN classnameNjj)}j]j)}jjPsbc.ttm_tt_createasbuh1hhjQubjV)}(h h]h }(hjTQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQubj)}(hjh]h*}(hjbQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(hboh]hbo}(hjoQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hbool zero_alloch](jc)}(hj h]hbool}(hjQhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjQubjV)}(h h]h }(hjQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQubjm)}(h zero_alloch]h zero_alloc}(hjQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjPhhhjPhKubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1j7hjPhKhjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPhhhjPhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1j2hhhjFhNhNubj)}(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)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjQubj)}(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)}(hjQh]hstruct ttm_buffer_object *bo}(hjRhhhNhNubah}(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.hhKhjQubj )}(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&]uh1j hjQubeh}(h]h ]h"]h$]h&]uh1jhjRhKhjQubj)}(h?``bool zero_alloc`` true if allocated pages needs to be zeroed h](j)}(h``bool zero_alloc``h]j)}(hj8Rh]hbool zero_alloc}(hj:RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Rubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj2Rubj )}(hhh]h)}(h*true if allocated pages needs to be zeroedh]h*true if allocated pages needs to be zeroed}(hjQRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMRhKhjNRubah}(h]h ]h"]h$]h&]uh1j hj2Rubeh}(h]h ]h"]h$]h&]uh1jhjMRhKhjQubeh}(h]h ]h"]h$]h&]uh1jhjQubh)}(h**Description**h]j)}(hjsRh]h Description}(hjuRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqRubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjQubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_tt_init (C function) c.ttm_tt_inithNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(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>)}(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](jc)}(hinth]hint}(hjRhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjRhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjV)}(h h]h }(hjRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjRhhhjRhKubjg)}(h ttm_tt_inith]jm)}(h ttm_tt_inith]h ttm_tt_init}(hjRhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjRhKubj)}(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](jD)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjRubjV)}(h h]h }(hjShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjRubh)}(hhh]jm)}(httm_tth]httm_tt}(hjShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjSmodnameN classnameNjj)}j]j)}jjRsb c.ttm_tt_initasbuh1hhjRubjV)}(h h]h }(hj3ShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjRubj)}(hjh]h*}(hjAShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(httmh]httm}(hjNShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hstruct ttm_buffer_object *boh](jD)}(hjh]hstruct}(hjgShhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjcSubjV)}(h h]h }(hjtShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjcSubh)}(hhh]jm)}(httm_buffer_objecth]httm_buffer_object}(hjShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjSmodnameN classnameNjj)}j]j/S c.ttm_tt_initasbuh1hhjcSubjV)}(h h]h }(hjShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjcSubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcSubjm)}(hboh]hbo}(hjShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjcSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(huint32_t page_flagsh](h)}(hhh]jm)}(huint32_th]huint32_t}(hjShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjSmodnameN classnameNjj)}j]j/S c.ttm_tt_initasbuh1hhjSubjV)}(h h]h }(hjShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjSubjm)}(h page_flagsh]h page_flags}(hjThhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(henum ttm_caching cachingh](jD)}(hjGh]henum}(hjThhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjTubjV)}(h h]h }(hj,ThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjTubh)}(hhh]jm)}(h ttm_cachingh]h ttm_caching}(hj=ThhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:Tubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj?TmodnameN classnameNjj)}j]j/S c.ttm_tt_initasbuh1hhjTubjV)}(h h]h }(hj[ThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjTubjm)}(hcachingh]hcaching}(hjiThhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hunsigned long extra_pagesh](jc)}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj~TubjV)}(h h]h }(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj~Tubjc)}(hlongh]hlong}(hjThhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj~TubjV)}(h h]h }(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj~Tubjm)}(h extra_pagesh]h extra_pages}(hjThhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj~Tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjRhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjRhhhjRhKubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1j7hjRhKhjRhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjRhhhjRhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1j2hhhjFhNhNubj)}(hX**Parameters** ``struct ttm_tt *ttm`` The struct ttm_tt. ``struct ttm_buffer_object *bo`` The buffer object we create the ttm for. ``uint32_t page_flags`` Page flags as identified by TTM_TT_FLAG_XX flags. ``enum ttm_caching caching`` the desired caching state of the pages ``unsigned long extra_pages`` Extra pages needed for the driver. **Description** Create a struct ttm_tt to back data with system memory pages. No pages are actually allocated. **Return** NULL: Out of memory.h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjTubj)}(hhh](j)}(h*``struct ttm_tt *ttm`` The struct ttm_tt. h](j)}(h``struct ttm_tt *ttm``h]j)}(hjUh]hstruct ttm_tt *ttm}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjUubj )}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hj/UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+UhKhj,Uubah}(h]h ]h"]h$]h&]uh1j hjUubeh}(h]h ]h"]h$]h&]uh1jhj+UhKhj Uubj)}(hJ``struct ttm_buffer_object *bo`` The buffer object we create the ttm for. h](j)}(h ``struct ttm_buffer_object *bo``h]j)}(hjOUh]hstruct ttm_buffer_object *bo}(hjQUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMUubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjIUubj )}(hhh]h)}(h(The buffer object we create the ttm for.h]h(The buffer object we create the ttm for.}(hjhUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdUhKhjeUubah}(h]h ]h"]h$]h&]uh1j hjIUubeh}(h]h ]h"]h$]h&]uh1jhjdUhKhj Uubj)}(hJ``uint32_t page_flags`` Page flags as identified by TTM_TT_FLAG_XX flags. h](j)}(h``uint32_t page_flags``h]j)}(hjUh]huint32_t page_flags}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjUubj )}(hhh]h)}(h1Page flags as identified by TTM_TT_FLAG_XX flags.h]h1Page flags as identified by TTM_TT_FLAG_XX flags.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhKhjUubah}(h]h ]h"]h$]h&]uh1j hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhKhj Uubj)}(hD``enum ttm_caching caching`` the desired caching state of the pages h](j)}(h``enum ttm_caching caching``h]j)}(hjUh]henum ttm_caching caching}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjUubj )}(hhh]h)}(h&the desired caching state of the pagesh]h&the desired caching state of the pages}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhKhjUubah}(h]h ]h"]h$]h&]uh1j hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhKhj Uubj)}(hA``unsigned long extra_pages`` Extra pages needed for the driver. h](j)}(h``unsigned long extra_pages``h]j)}(hjUh]hunsigned long extra_pages}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjUubj )}(hhh]h)}(h"Extra pages needed for the driver.h]h"Extra pages needed for the driver.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKhjVubah}(h]h ]h"]h$]h&]uh1j hjUubeh}(h]h ]h"]h$]h&]uh1jhjVhKhj Uubeh}(h]h ]h"]h$]h&]uh1jhjTubh)}(h**Description**h]j)}(hj5Vh]h Description}(hj7VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Vubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjTubh)}(h^Create a struct ttm_tt to back data with system memory pages. No pages are actually allocated.h]h^Create a struct ttm_tt to back data with system memory pages. No pages are actually allocated.}(hjKVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjTubh)}(h **Return**h]j)}(hj\Vh]hReturn}(hj^VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjTubh)}(hNULL: Out of memory.h]hNULL: Out of memory.}(hjrVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_tt_fini (C function) c.ttm_tt_finihNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(h%void ttm_tt_fini (struct ttm_tt *ttm)h]j>)}(h$void ttm_tt_fini(struct ttm_tt *ttm)h](jc)}(hvoidh]hvoid}(hjVhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjVhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVhhhjVhKubjg)}(h ttm_tt_finih]jm)}(h ttm_tt_finih]h ttm_tt_fini}(hjVhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjVhKubj)}(h(struct ttm_tt *ttm)h]j)}(hstruct ttm_tt *ttmh](jD)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjVubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVubh)}(hhh]jm)}(httm_tth]httm_tt}(hjVhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVmodnameN classnameNjj)}j]j)}jjVsb c.ttm_tt_finiasbuh1hhjVubjV)}(h h]h }(hjWhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVubj)}(hjh]h*}(hj*WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(httmh]httm}(hj7WhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubah}(h]h ]h"]h$]h&]jjuh1jhjVhhhjVhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjVhhhjVhKubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1j7hjVhKhjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjVhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjWjjjWjjjuh1j2hhhjFhNhNubj)}(hp**Parameters** ``struct ttm_tt *ttm`` the ttm_tt structure. **Description** Free memory of ttm_tt structureh](h)}(h**Parameters**h]j)}(hjtWh]h Parameters}(hjvWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrWubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjnWubj)}(hhh]j)}(h-``struct ttm_tt *ttm`` the ttm_tt structure. h](j)}(h``struct ttm_tt *ttm``h]j)}(hjWh]hstruct ttm_tt *ttm}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjWubj )}(hhh]h)}(hthe ttm_tt structure.h]hthe ttm_tt structure.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKhjWubah}(h]h ]h"]h$]h&]uh1j hjWubeh}(h]h ]h"]h$]h&]uh1jhjWhKhjWubah}(h]h ]h"]h$]h&]uh1jhjnWubh)}(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:64: ./include/drm/ttm/ttm_tt.hhKhjnWubh)}(hFree memory of ttm_tt structureh]hFree memory of ttm_tt structure}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjnWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_tt_destroy (C function)c.ttm_tt_destroyhNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(hAvoid ttm_tt_destroy (struct ttm_device *bdev, struct ttm_tt *ttm)h]j>)}(h@void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm)h](jc)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjXhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjV)}(h h]h }(hj"XhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjXhhhj!XhKubjg)}(httm_tt_destroyh]jm)}(httm_tt_destroyh]httm_tt_destroy}(hj4XhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj0Xubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXhhhj!XhKubj)}(h-(struct ttm_device *bdev, struct ttm_tt *ttm)h](j)}(hstruct ttm_device *bdevh](jD)}(hjh]hstruct}(hjPXhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjLXubjV)}(h h]h }(hj]XhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjLXubh)}(hhh]jm)}(h ttm_deviceh]h ttm_device}(hjnXhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjkXubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjpXmodnameN classnameNjj)}j]j)}jj6Xsbc.ttm_tt_destroyasbuh1hhjLXubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjLXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLXubjm)}(hbdevh]hbdev}(hjXhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjLXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHXubj)}(hstruct ttm_tt *ttmh](jD)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjXubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjXubh)}(hhh]jm)}(httm_tth]httm_tt}(hjXhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjXubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjXmodnameN classnameNjj)}j]jXc.ttm_tt_destroyasbuh1hhjXubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjXubj)}(hjh]h*}(hj YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjm)}(httmh]httm}(hjYhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHXubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhj!XhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj Xhhhj!XhKubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1j7hj!XhKhjXhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjXhhhj!XhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLYjjLYjjjuh1j2hhhjFhNhNubj)}(h**Parameters** ``struct ttm_device *bdev`` the ttm_device this object belongs to ``struct ttm_tt *ttm`` The struct ttm_tt. **Description** Unbind, unpopulate and destroy common struct ttm_tt.h](h)}(h**Parameters**h]j)}(hjVYh]h Parameters}(hjXYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTYubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjPYubj)}(hhh](j)}(hB``struct ttm_device *bdev`` the ttm_device this object belongs to h](j)}(h``struct ttm_device *bdev``h]j)}(hjuYh]hstruct ttm_device *bdev}(hjwYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsYubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjoYubj )}(hhh]h)}(h%the ttm_device this object belongs toh]h%the ttm_device this object belongs to}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjYubah}(h]h ]h"]h$]h&]uh1j hjoYubeh}(h]h ]h"]h$]h&]uh1jhjYhKhjlYubj)}(h*``struct ttm_tt *ttm`` The struct ttm_tt. h](j)}(h``struct ttm_tt *ttm``h]j)}(hjYh]hstruct ttm_tt *ttm}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjYubj )}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjYubah}(h]h ]h"]h$]h&]uh1j hjYubeh}(h]h ]h"]h$]h&]uh1jhjYhKhjlYubeh}(h]h ]h"]h$]h&]uh1jhjPYubh)}(h**Description**h]j)}(hjYh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjPYubh)}(h4Unbind, unpopulate and destroy common struct ttm_tt.h]h4Unbind, unpopulate and destroy common struct ttm_tt.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhjPYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_tt_swapin (C function)c.ttm_tt_swapinhNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(h&int ttm_tt_swapin (struct ttm_tt *ttm)h]j>)}(h%int ttm_tt_swapin(struct ttm_tt *ttm)h](jc)}(hinth]hint}(hj.ZhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj*ZhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjV)}(h h]h }(hj=ZhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj*Zhhhj)}(h_int ttm_tt_populate(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_operation_ctx *ctx)h](jc)}(hinth]hint}(hj[hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj[hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKubjV)}(h h]h }(hj[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj[hhhj[hKubjg)}(httm_tt_populateh]jm)}(httm_tt_populateh]httm_tt_populate}(hj[hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[hhhj[hKubj)}(hL(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_operation_ctx *ctx)h](j)}(hstruct ttm_device *bdevh](jD)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj[ubjV)}(h h]h }(hj[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj[ubh)}(hhh]jm)}(h ttm_deviceh]h ttm_device}(hj[hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj[modnameN classnameNjj)}j]j)}jj[sbc.ttm_tt_populateasbuh1hhj[ubjV)}(h h]h }(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj[ubj)}(hjh]h*}(hj)\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjm)}(hbdevh]hbdev}(hj6\hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hstruct ttm_tt *ttmh](jD)}(hjh]hstruct}(hjO\hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjK\ubjV)}(h h]h }(hj\\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjK\ubh)}(hhh]jm)}(httm_tth]httm_tt}(hjm\hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjo\modnameN classnameNjj)}j]j\c.ttm_tt_populateasbuh1hhjK\ubjV)}(h h]h }(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjK\ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK\ubjm)}(httmh]httm}(hj\hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjK\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hstruct ttm_operation_ctx *ctxh](jD)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj\ubjV)}(h h]h }(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\ubh)}(hhh]jm)}(httm_operation_ctxh]httm_operation_ctx}(hj\hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj\modnameN classnameNjj)}j]j\c.ttm_tt_populateasbuh1hhj\ubjV)}(h h]h }(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\ubj)}(hjh]h*}(hj ]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hctxh]hctx}(hj]hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubeh}(h]h ]h"]h$]h&]jjuh1jhj[hhhj[hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj[hhhj[hKubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1j7hj[hKhj[hhubj)}(hhh]h)}(hallocate pages for a ttmh]hallocate pages for a ttm}(hj@]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj=]hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhj[hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjX]jjX]jjjuh1j2hhhjFhNhNubj)}(hX(**Parameters** ``struct ttm_device *bdev`` the ttm_device this object belongs to ``struct ttm_tt *ttm`` Pointer to the ttm_tt structure ``struct ttm_operation_ctx *ctx`` operation context for populating the tt object. **Description** Calls the driver method to allocate pages for a ttmh](h)}(h**Parameters**h]j)}(hjb]h]h Parameters}(hjd]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`]ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj\]ubj)}(hhh](j)}(hB``struct ttm_device *bdev`` the ttm_device this object 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj{]ubj )}(hhh]h)}(h%the ttm_device this object belongs toh]h%the ttm_device this object belongs to}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKhj]ubah}(h]h ]h"]h$]h&]uh1j hj{]ubeh}(h]h ]h"]h$]h&]uh1jhj]hKhjx]ubj)}(h7``struct ttm_tt *ttm`` Pointer to the ttm_tt structure h](j)}(h``struct ttm_tt *ttm``h]j)}(hj]h]hstruct ttm_tt *ttm}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj]ubj )}(hhh]h)}(hPointer to the ttm_tt structureh]hPointer to the ttm_tt structure}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKhj]ubah}(h]h ]h"]h$]h&]uh1j hj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hKhjx]ubj)}(hR``struct ttm_operation_ctx *ctx`` operation context for populating the tt object. h](j)}(h!``struct ttm_operation_ctx *ctx``h]j)}(hj]h]hstruct ttm_operation_ctx *ctx}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj]ubj )}(hhh]h)}(h/operation context for populating the tt object.h]h/operation context for populating the tt object.}(hj ^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hKhj ^ubah}(h]h ]h"]h$]h&]uh1j hj]ubeh}(h]h ]h"]h$]h&]uh1jhj^hKhjx]ubeh}(h]h ]h"]h$]h&]uh1jhj\]ubh)}(h**Description**h]j)}(hj.^h]h Description}(hj0^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,^ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj\]ubh)}(h3Calls the driver method to allocate pages for a ttmh]h3Calls the driver method to allocate pages for a ttm}(hjD^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhKhj\]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_tt_unpopulate (C function)c.ttm_tt_unpopulatehNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(hDvoid ttm_tt_unpopulate (struct ttm_device *bdev, struct ttm_tt *ttm)h]j>)}(hCvoid ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm)h](jc)}(hvoidh]hvoid}(hjs^hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjo^hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMubjV)}(h h]h }(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjo^hhhj^hMubjg)}(httm_tt_unpopulateh]jm)}(httm_tt_unpopulateh]httm_tt_unpopulate}(hj^hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjo^hhhj^hMubj)}(h-(struct ttm_device *bdev, struct ttm_tt *ttm)h](j)}(hstruct ttm_device *bdevh](jD)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj^ubjV)}(h h]h }(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj^ubh)}(hhh]jm)}(h ttm_deviceh]h ttm_device}(hj^hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^modnameN classnameNjj)}j]j)}jj^sbc.ttm_tt_unpopulateasbuh1hhj^ubjV)}(h h]h }(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj^ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjm)}(hbdevh]hbdev}(hj _hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hstruct ttm_tt *ttmh](jD)}(hjh]hstruct}(hj"_hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj_ubjV)}(h h]h }(hj/_hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj_ubh)}(hhh]jm)}(httm_tth]httm_tt}(hj@_hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj=_ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjB_modnameN classnameNjj)}j]j^c.ttm_tt_unpopulateasbuh1hhj_ubjV)}(h h]h }(hj^_hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj_ubj)}(hjh]h*}(hjl_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjm)}(httmh]httm}(hjy_hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhjo^hhhj^hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjk^hhhj^hMubah}(h]jf^ah ](jjeh"]h$]h&]jj)jhuh1j7hj^hMhjh^hhubj)}(hhh]h)}(hfree pages from a ttmh]hfree pages from a ttm}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhj_hhubah}(h]h ]h"]h$]h&]uh1jhjh^hhhj^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1j2hhhjFhNhNubj)}(h**Parameters** ``struct ttm_device *bdev`` the ttm_device this object belongs to ``struct ttm_tt *ttm`` Pointer to the ttm_tt structure **Description** Calls the driver method to free all pages from a ttmh](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:64: ./include/drm/ttm/ttm_tt.hhMhj_ubj)}(hhh](j)}(hB``struct ttm_device *bdev`` the ttm_device this object 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhj_ubj )}(hhh]h)}(h%the ttm_device this object belongs toh]h%the ttm_device this object belongs to}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1j hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMhj_ubj)}(h7``struct ttm_tt *ttm`` Pointer to the ttm_tt structure h](j)}(h``struct ttm_tt *ttm``h]j)}(hj`h]hstruct ttm_tt *ttm}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhj`ubj )}(hhh]h)}(hPointer to the ttm_tt structureh]hPointer to the ttm_tt structure}(hj6`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2`hMhj3`ubah}(h]h ]h"]h$]h&]uh1j hj`ubeh}(h]h ]h"]h$]h&]uh1jhj2`hMhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_ubh)}(h**Description**h]j)}(hjX`h]h Description}(hjZ`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV`ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhj_ubh)}(h4Calls the driver method to free all pages from a ttmh]h4Calls the driver method to free all pages from a ttm}(hjn`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."ttm_tt_mark_for_clear (C function)c.ttm_tt_mark_for_clearhNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(h/void ttm_tt_mark_for_clear (struct ttm_tt *ttm)h]j>)}(h.void ttm_tt_mark_for_clear(struct ttm_tt *ttm)h](jc)}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj`hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM ubjV)}(h h]h }(hj`hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj`hhhj`hM ubjg)}(httm_tt_mark_for_clearh]jm)}(httm_tt_mark_for_clearh]httm_tt_mark_for_clear}(hj`hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`hhhj`hM ubj)}(h(struct ttm_tt *ttm)h]j)}(hstruct ttm_tt *ttmh](jD)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj`ubjV)}(h h]h }(hj`hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj`ubh)}(hhh]jm)}(httm_tth]httm_tt}(hj`hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj`modnameN classnameNjj)}j]j)}jj`sbc.ttm_tt_mark_for_clearasbuh1hhj`ubjV)}(h h]h }(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj`ubj)}(hjh]h*}(hj&ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(httmh]httm}(hj3ahhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubah}(h]h ]h"]h$]h&]jjuh1jhj`hhhj`hM ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj`hhhj`hM ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1j7hj`hM hj`hhubj)}(hhh]h)}(h$Mark pages for clearing on populate.h]h$Mark pages for clearing on populate.}(hj]ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM hjZahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjuajjuajjjuh1j2hhhjFhNhNubj)}(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)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}aubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhjyaubj)}(hhh]j)}(h7``struct ttm_tt *ttm`` Pointer to the ttm_tt structure h](j)}(h``struct ttm_tt *ttm``h]j)}(hjah]hstruct ttm_tt *ttm}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM hjaubj )}(hhh]h)}(hPointer to the ttm_tt structureh]hPointer to the ttm_tt structure}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1j hjaubeh}(h]h ]h"]h$]h&]uh1jhjahM hjaubah}(h]h ]h"]h$]h&]uh1jhjyaubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhjyaubh)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM hjyaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_backup_flags (C struct)c.ttm_backup_flagshNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(httm_backup_flagsh]j>)}(hstruct ttm_backup_flagsh](jD)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjbhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMubjV)}(h h]h }(hj,bhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjbhhhj+bhMubjg)}(httm_backup_flagsh]jm)}(hjbh]httm_backup_flags}(hj>bhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:bubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhj+bhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjbhhhj+bhMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1j7hj+bhMhjbhhubj)}(hhh]h)}(h!Flags to govern backup behaviour.h]h!Flags to govern backup behaviour.}(hj`bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhj]bhhubah}(h]h ]h"]h$]h&]uh1jhjbhhhj+bhMubeh}(h]h ](jstructeh"]h$]h&]jjjjxbjjxbjjjuh1j2hhhjFhNhNubj)}(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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh:}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM!hj|bubjT)}(hFstruct ttm_backup_flags { u32 purge : 1; u32 writeback : 1; };h]hFstruct ttm_backup_flags { u32 purge : 1; u32 writeback : 1; };}hjbsbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM#hj|bubh)}(h **Members**h]j)}(hjbh]hMembers}(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.hhM(hj|bubj)}(hhh](j)}(h7``purge`` Free pages without backing up. Bypass pools. h](j)}(h ``purge``h]j)}(hjbh]hpurge}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhMhjbubj )}(hhh]h)}(h,Free pages without backing up. Bypass pools.h]h,Free pages without backing up. Bypass pools.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1j hjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjbubj)}(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&]uh1j hjcubeh}(h]h ]h"]h$]h&]uh1jhjchM hjbubeh}(h]h ]h"]h$]h&]uh1jhj|bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_agp_tt_create (C function)c.ttm_agp_tt_createhNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(hustruct ttm_tt * ttm_agp_tt_create (struct ttm_buffer_object *bo, struct agp_bridge_data *bridge, uint32_t page_flags)h]j>)}(hsstruct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo, struct agp_bridge_data *bridge, uint32_t page_flags)h](jD)}(hjh]hstruct}(hj_chhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj[chhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM3ubjV)}(h h]h }(hjmchhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj[chhhjlchM3ubh)}(hhh]jm)}(httm_tth]httm_tt}(hj~chhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj{cubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjcmodnameN classnameNjj)}j]j)}jttm_agp_tt_createsbc.ttm_agp_tt_createasbuh1hhj[chhhjlchM3ubjV)}(h h]h }(hjchhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj[chhhjlchM3ubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[chhhjlchM3ubjg)}(httm_agp_tt_createh]jm)}(hjch]httm_agp_tt_create}(hjchhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[chhhjlchM3ubj)}(hS(struct ttm_buffer_object *bo, struct agp_bridge_data *bridge, uint32_t page_flags)h](j)}(hstruct ttm_buffer_object *boh](jD)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjcubjV)}(h h]h }(hjchhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjcubh)}(hhh]jm)}(httm_buffer_objecth]httm_buffer_object}(hjchhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjcmodnameN classnameNjj)}j]jcc.ttm_agp_tt_createasbuh1hhjcubjV)}(h h]h }(hjdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjcubj)}(hjh]h*}(hj#dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hboh]hbo}(hj0dhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hstruct agp_bridge_data *bridgeh](jD)}(hjh]hstruct}(hjIdhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjEdubjV)}(h h]h }(hjVdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEdubh)}(hhh]jm)}(hagp_bridge_datah]hagp_bridge_data}(hjgdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjddubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjidmodnameN classnameNjj)}j]jcc.ttm_agp_tt_createasbuh1hhjEdubjV)}(h h]h }(hjdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEdubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEdubjm)}(hbridgeh]hbridge}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjEdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(huint32_t page_flagsh](h)}(hhh]jm)}(huint32_th]huint32_t}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjdmodnameN classnameNjj)}j]jcc.ttm_agp_tt_createasbuh1hhjdubjV)}(h h]h }(hjdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjdubjm)}(h page_flagsh]h page_flags}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhj[chhhjlchM3ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjWchhhjlchM3ubah}(h]jRcah ](jjeh"]h$]h&]jj)jhuh1j7hjlchM3hjTchhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjTchhhjlchM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1j2hhhjFhNhNubj)}(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)}(hj%eh]h Parameters}(hj'ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#eubah}(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)}(hjDeh]hstruct ttm_buffer_object *bo}(hjFehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBeubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM5hj>eubj )}(hhh]h)}(h&Buffer object we allocate the ttm for.h]h&Buffer object we allocate the ttm for.}(hj]ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYehM5hjZeubah}(h]h ]h"]h$]h&]uh1j hj>eubeh}(h]h ]h"]h$]h&]uh1jhjYehM5hj;eubj)}(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}eh]hstruct agp_bridge_data *bridge}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{eubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:64: ./include/drm/ttm/ttm_tt.hhM6hjweubj )}(hhh]h)}(h)The agp bridge this device is sitting on.h]h)The agp bridge this device is sitting on.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM6hjeubah}(h]h ]h"]h$]h&]uh1j hjweubeh}(h]h ]h"]h$]h&]uh1jhjehM6hj;eubj)}(hJ``uint32_t page_flags`` Page flags as identified by TTM_TT_FLAG_XX flags. h](j)}(h``uint32_t page_flags``h]j)}(hjeh]huint32_t page_flags}(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.hhM7hjeubj )}(hhh]h)}(h1Page flags as identified by TTM_TT_FLAG_XX flags.h]h1Page flags as identified by TTM_TT_FLAG_XX flags.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM7hjeubah}(h]h ]h"]h$]h&]uh1j hjeubeh}(h]h ]h"]h$]h&]uh1jhjehM7hj;eubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(h**Description**h]j)}(hjeh]h Description}(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.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&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."ttm_kmap_iter_tt_init (C function)c.ttm_kmap_iter_tt_inithNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(hbstruct ttm_kmap_iter * ttm_kmap_iter_tt_init (struct ttm_kmap_iter_tt *iter_tt, struct ttm_tt *tt)h]j>)}(h`struct ttm_kmap_iter *ttm_kmap_iter_tt_init(struct ttm_kmap_iter_tt *iter_tt, struct ttm_tt *tt)h](jD)}(hjh]hstruct}(hj6fhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj2fhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMubjV)}(h h]h }(hjDfhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj2fhhhjCfhMubh)}(hhh]jm)}(h ttm_kmap_iterh]h ttm_kmap_iter}(hjUfhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjRfubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjWfmodnameN classnameNjj)}j]j)}jttm_kmap_iter_tt_initsbc.ttm_kmap_iter_tt_initasbuh1hhj2fhhhjCfhMubjV)}(h h]h }(hjvfhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj2fhhhjCfhMubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2fhhhjCfhMubjg)}(httm_kmap_iter_tt_inith]jm)}(hjsfh]httm_kmap_iter_tt_init}(hjfhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2fhhhjCfhMubj)}(h5(struct ttm_kmap_iter_tt *iter_tt, struct ttm_tt *tt)h](j)}(h struct ttm_kmap_iter_tt *iter_tth](jD)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjfubjV)}(h h]h }(hjfhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjfubh)}(hhh]jm)}(httm_kmap_iter_tth]httm_kmap_iter_tt}(hjfhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfmodnameN classnameNjj)}j]jqfc.ttm_kmap_iter_tt_initasbuh1hhjfubjV)}(h h]h }(hjfhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjm)}(hiter_tth]hiter_tt}(hjghhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hstruct ttm_tt *tth](jD)}(hjh]hstruct}(hj ghhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjgubjV)}(h h]h }(hj-ghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjgubh)}(hhh]jm)}(httm_tth]httm_tt}(hj>ghhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj;gubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj@gmodnameN classnameNjj)}j]jqfc.ttm_kmap_iter_tt_initasbuh1hhjgubjV)}(h h]h }(hj\ghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjgubj)}(hjh]h*}(hjjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(htth]htt}(hjwghhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(h]h ]h"]h$]h&]jjuh1jhj2fhhhjCfhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj.fhhhjCfhMubah}(h]j)fah ](jjeh"]h$]h&]jj)jhuh1j7hjCfhMhj+fhhubj)}(hhh]h)}(h$Initialize a struct ttm_kmap_iter_tth]h$Initialize a struct ttm_kmap_iter_tt}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjghhubah}(h]h ]h"]h$]h&]uh1jhj+fhhhjCfhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1j2hhhjFhNhNubj)}(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)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjgubj)}(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)}(hjgh]h struct ttm_kmap_iter_tt *iter_tt}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjgubj )}(hhh]h)}(h*The struct ttm_kmap_iter_tt to initialize.h]h*The struct ttm_kmap_iter_tt to initialize.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1j hjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjgubj)}(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.}(hj4hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hhMhj1hubah}(h]h ]h"]h$]h&]uh1j hjhubeh}(h]h ]h"]h$]h&]uh1jhj0hhMhjgubeh}(h]h ]h"]h$]h&]uh1jhjgubh)}(h **Return**h]j)}(hjVhh]hReturn}(hjXhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjgubh)}(h-Pointer to the embedded struct ttm_kmap_iter.h]h-Pointer to the embedded struct ttm_kmap_iter.}(hjlhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. ttm_tt_setup_backup (C function)c.ttm_tt_setup_backuphNtauh1j!hjFhhhNhNubj3)}(hhh](j8)}(h+int ttm_tt_setup_backup (struct ttm_tt *tt)h]j>)}(h*int ttm_tt_setup_backup(struct ttm_tt *tt)h](jc)}(hinth]hint}(hjhhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMubjV)}(h h]h }(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhhjhhMubjg)}(httm_tt_setup_backuph]jm)}(httm_tt_setup_backuph]httm_tt_setup_backup}(hjhhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjhhMubj)}(h(struct ttm_tt *tt)h]j)}(hstruct ttm_tt *tth](jD)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhubjV)}(h h]h }(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhubh)}(hhh]jm)}(httm_tth]httm_tt}(hjhhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjhmodnameN classnameNjj)}j]j)}jjhsbc.ttm_tt_setup_backupasbuh1hhjhubjV)}(h h]h }(hjihhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhubj)}(hjh]h*}(hj$ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(htth]htt}(hj1ihhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubah}(h]h ]h"]h$]h&]jjuh1jhjhhhhjhhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhhjhhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1j7hjhhMhjhhhubj)}(hhh]h)}(h3Allocate and assign a backup structure for a ttm_tth]h3Allocate and assign a backup structure for a ttm_tt}(hj[ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjXihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsijjsijjjuh1j2hhhjFhNhNubj)}(hX=**Parameters** ``struct ttm_tt *tt`` The ttm_tt for wich to allocate and assign a backup structure. **Description** Assign a backup structure to be used for tt backup. This should typically be done at bo creation, to avoid allocations at shrinking time. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hj}ih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{iubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjwiubj)}(hhh]j)}(hU``struct ttm_tt *tt`` The ttm_tt for wich to allocate and assign a backup structure. h](j)}(h``struct ttm_tt *tt``h]j)}(hjih]hstruct ttm_tt *tt}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjiubj )}(hhh]h)}(h>The 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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjiubah}(h]h ]h"]h$]h&]uh1j hjiubeh}(h]h ]h"]h$]h&]uh1jhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjwiubh)}(h**Description**h]j)}(hjih]h Description}(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.chMhjwiubh)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:67: ./drivers/gpu/drm/ttm/ttm_tt.chMhjwiubh)}(h **Return**h]j)}(hjih]hReturn}(hjjhhhNhNubah}(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.chMhjwiubh)}(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 hjwiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjFhhhNhNubeh}(h]ttm-tt-object-referenceah ]h"]ttm tt object referenceah$]h&]uh1hhhhhhhhK>ubh)}(hhh](h)}(hTTM page pool referenceh]hTTM page pool reference}(hj5jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2jhhhhhKGubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_pool_type (C struct)c.ttm_pool_typehNtauh1j!hj2jhhhNhNubj3)}(hhh](j8)}(h ttm_pool_typeh]j>)}(hstruct ttm_pool_typeh](jD)}(hjh]hstruct}(hj\jhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjXjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKubjV)}(h h]h }(hjjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjXjhhhjijhKubjg)}(h ttm_pool_typeh]jm)}(hjVjh]h ttm_pool_type}(hj|jhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXjhhhjijhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjTjhhhjijhKubah}(h]jOjah ](jjeh"]h$]h&]jj)jhuh1j7hjijhKhjQjhhubj)}(hhh]h)}(hPool for a certain memory typeh]hPool for a certain memory type}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK*hjjhhubah}(h]h ]h"]h$]h&]uh1jhjQjhhhjijhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjjjuh1j2hhhj2jhNhNubj)}(hX!**Definition**:: struct ttm_pool_type { struct ttm_pool *pool; unsigned int order; enum ttm_caching caching; struct list_head shrinker_list; spinlock_t lock; struct list_head 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 ``lock`` protection of the page list ``pages`` the list of pages in the poolh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh:}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK.hjjubjT)}(hstruct ttm_pool_type { struct ttm_pool *pool; unsigned int order; enum ttm_caching caching; struct list_head shrinker_list; spinlock_t lock; struct list_head pages; };h]hstruct ttm_pool_type { struct ttm_pool *pool; unsigned int order; enum ttm_caching caching; struct list_head shrinker_list; spinlock_t lock; struct list_head pages; };}hjjsbah}(h]h ]h"]h$]h&]jjuh1jShU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK0hjjubh)}(h **Members**h]j)}(hjjh]hMembers}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK9hjjubj)}(hhh](j)}(hB``pool`` the pool we belong to, might be NULL for the global ones h](j)}(h``pool``h]j)}(hj kh]hpool}(hj khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj kubah}(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}(hj$khhhNhNubah}(h]h ]h"]h$]h&]uh1hhj khK-hj!kubah}(h]h ]h"]h$]h&]uh1j hjkubeh}(h]h ]h"]h$]h&]uh1jhj khK-hjkubj)}(h.``order`` the allocation order our pages have h](j)}(h ``order``h]j)}(hjDkh]horder}(hjFkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBkubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK.hj>kubj )}(hhh]h)}(h#the allocation order our pages haveh]h#the allocation order our pages have}(hj]khhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYkhK.hjZkubah}(h]h ]h"]h$]h&]uh1j hj>kubeh}(h]h ]h"]h$]h&]uh1jhjYkhK.hjkubj)}(h,``caching`` the caching type our pages have h](j)}(h ``caching``h]j)}(hj}kh]hcaching}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{kubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK/hjwkubj )}(hhh]h)}(hthe caching type our pages haveh]hthe caching type our pages have}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhK/hjkubah}(h]h ]h"]h$]h&]uh1j hjwkubeh}(h]h ]h"]h$]h&]uh1jhjkhK/hjkubj)}(h8``shrinker_list`` our place on the global shrinker list h](j)}(h``shrinker_list``h]j)}(hjkh]h shrinker_list}(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.hhK0hjkubj )}(hhh]h)}(h%our place on the global shrinker listh]h%our place on the global shrinker list}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhK0hjkubah}(h]h ]h"]h$]h&]uh1j hjkubeh}(h]h ]h"]h$]h&]uh1jhjkhK0hjkubj)}(h%``lock`` protection of the page list h](j)}(h``lock``h]j)}(hjkh]hlock}(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.hhK1hjkubj )}(hhh]h)}(hprotection of the page listh]hprotection of the page list}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhK1hjlubah}(h]h ]h"]h$]h&]uh1j hjkubeh}(h]h ]h"]h$]h&]uh1jhjlhK1hjkubj)}(h'``pages`` the list of pages in the poolh](j)}(h ``pages``h]j)}(hj(lh]hpages}(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.hhK1hj"lubj )}(hhh]h)}(hthe list of pages in the poolh]hthe list of pages in the pool}(hjAlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK2hj>lubah}(h]h ]h"]h$]h&]uh1j hj"lubeh}(h]h ]h"]h$]h&]uh1jhj=lhK1hjkubeh}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2jhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_pool (C struct) c.ttm_poolhNtauh1j!hj2jhhhNhNubj3)}(hhh](j8)}(httm_poolh]j>)}(hstruct ttm_poolh](jD)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj~lhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK8ubjV)}(h h]h }(hjlhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj~lhhhjlhK8ubjg)}(httm_poolh]jm)}(hj|lh]httm_pool}(hjlhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~lhhhjlhK8ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjzlhhhjlhK8ubah}(h]julah ](jjeh"]h$]h&]jj)jhuh1j7hjlhK8hjwlhhubj)}(hhh]h)}(hPool for all caching and ordersh]hPool for all caching and orders}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhK?hjlhhubah}(h]h ]h"]h$]h&]uh1jhjwlhhhjlhK8ubeh}(h]h ](jstructeh"]h$]h&]jjjjljjljjjuh1j2hhhj2jhNhNubj)}(hX**Definition**:: struct ttm_pool { struct device *dev; int nid; bool use_dma_alloc; bool use_dma32; 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 ``use_dma_alloc`` if coherent DMA allocations should be used ``use_dma32`` if GFP_DMA32 should be used ``caching`` pools for each caching/orderh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh:}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKChjlubjT)}(hstruct ttm_pool { struct device *dev; int nid; bool use_dma_alloc; bool use_dma32; struct { struct ttm_pool_type orders[NR_PAGE_ORDERS]; } caching[TTM_NUM_CACHING_TYPES]; };h]hstruct ttm_pool { struct device *dev; int nid; bool use_dma_alloc; bool use_dma32; struct { struct ttm_pool_type orders[NR_PAGE_ORDERS]; } caching[TTM_NUM_CACHING_TYPES]; };}hjmsbah}(h]h ]h"]h$]h&]jjuh1jShU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKEhjlubh)}(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.hhKOhjlubj)}(hhh](j)}(h)``dev`` the device we allocate pages for h](j)}(h``dev``h]j)}(hj1mh]hdev}(hj3mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/mubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKBhj+mubj )}(hhh]h)}(h the device we allocate pages forh]h the device we allocate pages for}(hjJmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFmhKBhjGmubah}(h]h ]h"]h$]h&]uh1j hj+mubeh}(h]h ]h"]h$]h&]uh1jhjFmhKBhj(mubj)}(h``nid`` which numa node to use h](j)}(h``nid``h]j)}(hjjmh]hnid}(hjlmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhmubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKChjdmubj )}(hhh]h)}(hwhich numa node to useh]hwhich numa node to use}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKChjmubah}(h]h ]h"]h$]h&]uh1j hjdmubeh}(h]h ]h"]h$]h&]uh1jhjmhKChj(mubj)}(h=``use_dma_alloc`` if coherent DMA allocations should be used h](j)}(h``use_dma_alloc``h]j)}(hjmh]h use_dma_alloc}(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.hhKDhjmubj )}(hhh]h)}(h*if coherent DMA allocations should be usedh]h*if coherent DMA allocations should be used}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKDhjmubah}(h]h ]h"]h$]h&]uh1j hjmubeh}(h]h ]h"]h$]h&]uh1jhjmhKDhj(mubj)}(h*``use_dma32`` if GFP_DMA32 should be used h](j)}(h ``use_dma32``h]j)}(hjmh]h use_dma32}(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.hhKEhjmubj )}(hhh]h)}(hif GFP_DMA32 should be usedh]hif GFP_DMA32 should be used}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKEhjmubah}(h]h ]h"]h$]h&]uh1j hjmubeh}(h]h ]h"]h$]h&]uh1jhjmhKEhj(mubj)}(h(``caching`` pools for each caching/orderh](j)}(h ``caching``h]j)}(hjnh]hcaching}(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.hhKEhjnubj )}(hhh]h)}(hpools for each caching/orderh]hpools for each caching/order}(hj.nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:73: ./include/drm/ttm/ttm_pool.hhKFhj+nubah}(h]h ]h"]h$]h&]uh1j hjnubeh}(h]h ]h"]h$]h&]uh1jhj*nhKEhj(mubeh}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2jhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_pool_alloc (C function)c.ttm_pool_allochNtauh1j!hj2jhhhNhNubj3)}(hhh](j8)}(h\int ttm_pool_alloc (struct ttm_pool *pool, struct ttm_tt *tt, struct ttm_operation_ctx *ctx)h]j>)}(h[int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, struct ttm_operation_ctx *ctx)h](jc)}(hinth]hint}(hjonhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjknhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMubjV)}(h h]h }(hj~nhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjknhhhj}nhMubjg)}(httm_pool_alloch]jm)}(httm_pool_alloch]httm_pool_alloc}(hjnhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjknhhhj}nhMubj)}(hI(struct ttm_pool *pool, struct ttm_tt *tt, struct ttm_operation_ctx *ctx)h](j)}(hstruct ttm_pool *poolh](jD)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjnubjV)}(h h]h }(hjnhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjnubh)}(hhh]jm)}(httm_poolh]httm_pool}(hjnhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjnmodnameN classnameNjj)}j]j)}jjnsbc.ttm_pool_allocasbuh1hhjnubjV)}(h h]h }(hjnhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(hpoolh]hpool}(hjohhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct ttm_tt *tth](jD)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjoubjV)}(h h]h }(hj+ohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoubh)}(hhh]jm)}(httm_tth]httm_tt}(hjomodnameN classnameNjj)}j]jnc.ttm_pool_allocasbuh1hhjoubjV)}(h h]h }(hjZohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoubj)}(hjh]h*}(hjhohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(htth]htt}(hjuohhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct ttm_operation_ctx *ctxh](jD)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjoubjV)}(h h]h }(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoubh)}(hhh]jm)}(httm_operation_ctxh]httm_operation_ctx}(hjohhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjomodnameN classnameNjj)}j]jnc.ttm_pool_allocasbuh1hhjoubjV)}(h h]h }(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hctxh]hctx}(hjohhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhjknhhhj}nhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjgnhhhj}nhMubah}(h]jbnah ](jjeh"]h$]h&]jj)jhuh1j7hj}nhMhjdnhhubj)}(hhh]h)}(hFill a ttm_tt objecth]hFill a ttm_tt object}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMhj phhubah}(h]h ]h"]h$]h&]uh1jhjdnhhhj}nhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'pjj'pjjjuh1j2hhhj2jhNhNubj)}(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)}(hj1ph]h Parameters}(hj3phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/pubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM"hj+pubj)}(hhh](j)}(h*``struct ttm_pool *pool`` ttm_pool to use h](j)}(h``struct ttm_pool *pool``h]j)}(hjPph]hstruct ttm_pool *pool}(hjRphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNpubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM hjJpubj )}(hhh]h)}(httm_pool to useh]httm_pool to use}(hjiphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjephM hjfpubah}(h]h ]h"]h$]h&]uh1j hjJpubeh}(h]h ]h"]h$]h&]uh1jhjephM hjGpubj)}(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.chM!hjpubj )}(hhh]h)}(httm_tt object to fillh]httm_tt object to fill}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphM!hjpubah}(h]h ]h"]h$]h&]uh1j hjpubeh}(h]h ]h"]h$]h&]uh1jhjphM!hjGpubj)}(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.chM"hjpubj )}(hhh]h)}(hoperation contexth]hoperation context}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphM"hjpubah}(h]h ]h"]h$]h&]uh1j hjpubeh}(h]h ]h"]h$]h&]uh1jhjphM"hjGpubeh}(h]h ]h"]h$]h&]uh1jhj+pubh)}(h**Description**h]j)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM$hj+pubh)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM#hj+pubh)}(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.chM&hj+pubh)}(h-0 on successe, negative error code otherwise.h]h-0 on successe, negative error code otherwise.}(hj:qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM'hj+pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2jhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_pool_free (C function)c.ttm_pool_freehNtauh1j!hj2jhhhNhNubj3)}(hhh](j8)}(h=void ttm_pool_free (struct ttm_pool *pool, struct ttm_tt *tt)h]j>)}(h)}(hjvoid ttm_pool_init(struct ttm_pool *pool, struct device *dev, int nid, bool use_dma_alloc, bool use_dma32)h](jc)}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjshhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM ubjV)}(h h]h }(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjshhhjshM ubjg)}(h ttm_pool_inith]jm)}(h ttm_pool_inith]h ttm_pool_init}(hjshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjshM ubj)}(hX(struct ttm_pool *pool, struct device *dev, int nid, bool use_dma_alloc, bool use_dma32)h](j)}(hstruct ttm_pool *poolh](jD)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjsubjV)}(h h]h }(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjsubh)}(hhh]jm)}(httm_poolh]httm_pool}(hjshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjsmodnameN classnameNjj)}j]j)}jjssbc.ttm_pool_initasbuh1hhjsubjV)}(h h]h }(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjsubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hpoolh]hpool}(hj)thhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hstruct device *devh](jD)}(hjh]hstruct}(hjBthhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj>tubjV)}(h h]h }(hjOthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>tubh)}(hhh]jm)}(hdeviceh]hdevice}(hj`thhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj]tubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjbtmodnameN classnameNjj)}j]j tc.ttm_pool_initasbuh1hhj>tubjV)}(h h]h }(hj~thhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>tubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>tubjm)}(hdevh]hdev}(hjthhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hint nidh](jc)}(hinth]hint}(hjthhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjtubjV)}(h h]h }(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjtubjm)}(hnidh]hnid}(hjthhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hbool use_dma_alloch](jc)}(hj h]hbool}(hjthhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjtubjV)}(h h]h }(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjtubjm)}(h use_dma_alloch]h use_dma_alloc}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hbool use_dma32h](jc)}(hj h]hbool}(hjuhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjuubjV)}(h h]h }(hj(uhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubjm)}(h use_dma32h]h use_dma32}(hj6uhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhjshhhjshM ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjshhhjshM ubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1j7hjshM hjshhubj)}(hhh]h)}(hInitialize a poolh]hInitialize a pool}(hj`uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM hj]uhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxujjxujjjuh1j2hhhj2jhNhNubj)}(hXi**Parameters** ``struct ttm_pool *pool`` the pool to initialize ``struct device *dev`` device for DMA allocations and mappings ``int nid`` NUMA node to use for allocations ``bool use_dma_alloc`` true if coherent DMA alloc should be used ``bool use_dma32`` true if GFP_DMA32 should be used **Description** Initialize the pool and its pool types.h](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM$hj|uubj)}(hhh](j)}(h1``struct ttm_pool *pool`` the pool to initialize h](j)}(h``struct ttm_pool *pool``h]j)}(hjuh]hstruct ttm_pool *pool}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM"hjuubj )}(hhh]h)}(hthe pool to initializeh]hthe pool to initialize}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM"hjuubah}(h]h ]h"]h$]h&]uh1j hjuubeh}(h]h ]h"]h$]h&]uh1jhjuhM"hjuubj)}(h?``struct device *dev`` device for DMA allocations and mappings h](j)}(h``struct device *dev``h]j)}(hjuh]hstruct device *dev}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM#hjuubj )}(hhh]h)}(h'device for DMA allocations and mappingsh]h'device for DMA allocations and mappings}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM#hjuubah}(h]h ]h"]h$]h&]uh1j hjuubeh}(h]h ]h"]h$]h&]uh1jhjuhM#hjuubj)}(h-``int nid`` NUMA node to use for allocations h](j)}(h ``int nid``h]j)}(hjvh]hint nid}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM$hj vubj )}(hhh]h)}(h NUMA node to use for allocationsh]h NUMA node to use for allocations}(hj,vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(vhM$hj)vubah}(h]h ]h"]h$]h&]uh1j hj vubeh}(h]h ]h"]h$]h&]uh1jhj(vhM$hjuubj)}(hA``bool use_dma_alloc`` true if coherent DMA alloc should be used h](j)}(h``bool use_dma_alloc``h]j)}(hjLvh]hbool use_dma_alloc}(hjNvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM%hjFvubj )}(hhh]h)}(h)true if coherent DMA alloc should be usedh]h)true if coherent DMA alloc should be used}(hjevhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjavhM%hjbvubah}(h]h ]h"]h$]h&]uh1j hjFvubeh}(h]h ]h"]h$]h&]uh1jhjavhM%hjuubj)}(h4``bool use_dma32`` true if GFP_DMA32 should be used h](j)}(h``bool use_dma32``h]j)}(hjvh]hbool use_dma32}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM&hjvubj )}(hhh]h)}(h true if GFP_DMA32 should be usedh]h true if GFP_DMA32 should be used}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM&hjvubah}(h]h ]h"]h$]h&]uh1j hjvubeh}(h]h ]h"]h$]h&]uh1jhjvhM&hjuubeh}(h]h ]h"]h$]h&]uh1jhj|uubh)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM(hj|uubh)}(h'Initialize the pool and its pool types.h]h'Initialize the pool and its pool types.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chM'hj|uubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2jhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_pool_fini (C function)c.ttm_pool_finihNtauh1j!hj2jhhhNhNubj3)}(hhh](j8)}(h*void ttm_pool_fini (struct ttm_pool *pool)h]j>)}(h)void ttm_pool_fini(struct ttm_pool *pool)h](jc)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjwhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMRubjV)}(h h]h }(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjwhhhjwhMRubjg)}(h ttm_pool_finih]jm)}(h ttm_pool_finih]h ttm_pool_fini}(hj&whhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"wubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhjwhMRubj)}(h(struct ttm_pool *pool)h]j)}(hstruct ttm_pool *poolh](jD)}(hjh]hstruct}(hjBwhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj>wubjV)}(h h]h }(hjOwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>wubh)}(hhh]jm)}(httm_poolh]httm_pool}(hj`whhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj]wubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjbwmodnameN classnameNjj)}j]j)}jj(wsbc.ttm_pool_finiasbuh1hhj>wubjV)}(h h]h }(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>wubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>wubjm)}(hpoolh]hpool}(hjwhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:wubah}(h]h ]h"]h$]h&]jjuh1jhjwhhhjwhMRubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjvhhhjwhMRubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1j7hjwhMRhjvhhubj)}(hhh]h)}(hCleanup a poolh]hCleanup a pool}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMRhjwhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjwhMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1j2hhhj2jhNhNubj)}(h**Parameters** ``struct ttm_pool *pool`` the pool to clean up **Description** Free all pages in the pool and unregister the types from the global shrinker.h](h)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMVhjwubj)}(hhh]j)}(h/``struct ttm_pool *pool`` the pool to clean up h](j)}(h``struct ttm_pool *pool``h]j)}(hjxh]hstruct ttm_pool *pool}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMThjxubj )}(hhh]h)}(hthe pool to clean uph]hthe pool to clean up}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMThjxubah}(h]h ]h"]h$]h&]uh1j hjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMThjwubah}(h]h ]h"]h$]h&]uh1jhjwubh)}(h**Description**h]j)}(hjAxh]h Description}(hjCxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?xubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMVhjwubh)}(hMFree all pages in the pool and unregister the types from the global shrinker.h]hMFree all pages in the pool and unregister the types from the global shrinker.}(hjWxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMUhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2jhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_pool_debugfs (C function)c.ttm_pool_debugfshNtauh1j!hj2jhhhNhNubj3)}(hhh](j8)}(h@int ttm_pool_debugfs (struct ttm_pool *pool, struct seq_file *m)h]j>)}(h?int ttm_pool_debugfs(struct ttm_pool *pool, struct seq_file *m)h](jc)}(hinth]hint}(hjxhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjxhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjxhhhjxhMubjg)}(httm_pool_debugfsh]jm)}(httm_pool_debugfsh]httm_pool_debugfs}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjxhMubj)}(h+(struct ttm_pool *pool, struct seq_file *m)h](j)}(hstruct ttm_pool *poolh](jD)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjxubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjxubh)}(hhh]jm)}(httm_poolh]httm_pool}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]j)}jjxsbc.ttm_pool_debugfsasbuh1hhjxubjV)}(h h]h }(hjyhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjxubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjm)}(hpoolh]hpool}(hjyhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hstruct seq_file *mh](jD)}(hjh]hstruct}(hj5yhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj1yubjV)}(h h]h }(hjByhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1yubh)}(hhh]jm)}(hseq_fileh]hseq_file}(hjSyhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjPyubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjUymodnameN classnameNjj)}j]jxc.ttm_pool_debugfsasbuh1hhj1yubjV)}(h h]h }(hjqyhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1yubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1yubjm)}(hmh]hm}(hjyhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1yubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjxhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj~xhhhjxhMubah}(h]jyxah ](jjeh"]h$]h&]jj)jhuh1j7hjxhMhj{xhhubj)}(hhh]h)}(h Debugfs dump function for a poolh]h Debugfs dump function for a pool}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhj{xhhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1j2hhhj2jhNhNubj)}(h**Parameters** ``struct ttm_pool *pool`` the pool to dump the information for ``struct seq_file *m`` seq_file to dump to **Description** Make a debugfs dump with the per pool and global information.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:76: ./drivers/gpu/drm/ttm/ttm_pool.chMhjyubj)}(hhh](j)}(h?``struct ttm_pool *pool`` the pool to dump the information for h](j)}(h``struct ttm_pool *pool``h]j)}(hjyh]hstruct ttm_pool *pool}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMhjyubj )}(hhh]h)}(h$the pool to dump the information forh]h$the pool to dump the information for}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj zhMhj zubah}(h]h ]h"]h$]h&]uh1j hjyubeh}(h]h ]h"]h$]h&]uh1jhj zhMhjyubj)}(h+``struct seq_file *m`` seq_file to dump to h](j)}(h``struct seq_file *m``h]j)}(hj0zh]hstruct seq_file *m}(hj2zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.zubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMhj*zubj )}(hhh]h)}(hseq_file to dump toh]hseq_file to dump to}(hjIzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEzhMhjFzubah}(h]h ]h"]h$]h&]uh1j hj*zubeh}(h]h ]h"]h$]h&]uh1jhjEzhMhjyubeh}(h]h ]h"]h$]h&]uh1jhjyubh)}(h**Description**h]j)}(hjkzh]h Description}(hjmzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjizubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMhjyubh)}(h=Make a debugfs dump with the per pool and global information.h]h=Make a debugfs dump with the per pool and global information.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:76: ./drivers/gpu/drm/ttm/ttm_pool.chMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2jhhhNhNubeh}(h]ttm-page-pool-referenceah ]h"]ttm page pool referenceah$]h&]uh1hhhhhhhhKGubeh}(h]!the-translation-table-manager-ttmah ]h"]#the translation table manager (ttm)ah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h$The Graphics Execution Manager (GEM)h]h$The Graphics Execution Manager (GEM)}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhhhhhKPubh)}(hXcThe GEM design approach has resulted in a memory manager that doesn't provide full coverage of all (or even all common) use cases in its userspace or kernel API. GEM exposes a set of standard memory-related operations to userspace and a set of helper functions to drivers, and let drivers implement hardware-specific operations with their own private API.h]hXeThe GEM design approach has resulted in a memory manager that doesn’t provide full coverage of all (or even all common) use cases in its userspace or kernel API. GEM exposes a set of standard memory-related operations to userspace and a set of helper functions to drivers, and let drivers implement hardware-specific operations with their own private API.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKRhjzhhubh)}(hXpThe GEM userspace API is described in the `GEM - the Graphics Execution Manager `__ 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)}(hj{h]hMemory allocation and freeing}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhj{ubah}(h]h ]h"]h$]h&]uh1j {hj {hhhhhNubj{)}(hCommand executionh]h)}(hj({h]hCommand execution}(hj*{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKihj&{ubah}(h]h ]h"]h$]h&]uh1j {hj {hhhhhNubj{)}(h.Aperture management at command execution time h]h)}(h-Aperture management at command execution timeh]h-Aperture management at command execution time}(hjA{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKjhj={ubah}(h]h ]h"]h$]h&]uh1j {hj {hhhhhNubeh}(h]h ]h"]h$]h&]bullet-uh1j{hhhKhhjzhhubh)}(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.}(hj]{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.}(hjk{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKphjzhhubh)}(hhh](h)}(hGEM Initializationh]hGEM Initialization}(hj|{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy{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 }(hj{hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hj{h]hstruct drm_driver}(hj{hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhhhKwhj{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.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKwhjy{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~hjy{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 ](jjc-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_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 ](jjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_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 }(hjD|hhhNhNubh)}(h0:c:type:`struct drm_gem_object `h]j)}(hjN|h]hstruct drm_gem_object}(hjP|hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjL|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhhhKhjD|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.}(hjD|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj{hhubh)}(hXfGEM 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.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 }(hju|hhhNhNubh)}(h0:c:type:`struct drm_gem_object `h]j)}(hj|h]hstruct drm_gem_object}(hj|hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj}|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhhhKhju|ubh 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.}(hju|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 ](jjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjgem_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}(hj3}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0}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.}(hjA}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj0}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.}(hjO}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj0}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().}(hj]}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj0}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.}(hjk}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj0}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.}(hjy}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj0}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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj0}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&]uh1hhhhKhj}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&]uh1hhhhMhj}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 ](jjc-typeeh"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhhhM hj}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&]uh1hhhhM hj}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 ](jjc-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj 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 }(hjH~hhhNhNubh)}(h<:c:type:`struct vm_operations_struct `h]j)}(hjR~h]hstruct vm_operations_struct}(hjT~hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjP~ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvm_operations_structuh1hhhhMhjH~ubh< made up of several fields, the more interesting ones being:}(hjH~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj}hhubjT)}(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); };}hjy~sbah}(h]h ]h"]h$]h&]jjforcelanguagejhighlight_args}uh1jShhhMhj}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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM!hj}hhubh)}(hXThe fault operation handler is responsible for mapping individual 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 individual 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)}(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 ](jjc-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjfile_operationsuh1hhhhM2hj~ubhK get_unmapped_area field with a pointer on drm_gem_dma_get_unmapped_area().}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM2hj}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&]uh1hhhhM6hj}hhubeh}(h]gem-objects-mappingah ]h"]gem objects mappingah$]h&]uh1hhjzhhhhhKubh)}(hhh](h)}(hMemory Coherencyh]hMemory Coherency}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhM:ubh)}(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&]uh1hhhhM<hj hhubeh}(h]memory-coherencyah ]h"]memory coherencyah$]h&]uh1hhjzhhhhhM:ubh)}(hhh](h)}(hCommand Executionh]hCommand Execution}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hhhhhMJubh)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMLhj1hhubeh}(h]command-executionah ]h"]command executionah$]h&]uh1hhjzhhhhhMJubh)}(hhh](h)}(hGEM Function Referenceh]hGEM Function Reference}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhhhhhM^ubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_object_status (C enum)c.drm_gem_object_statushNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hdrm_gem_object_statush]j>)}(henum drm_gem_object_statush](jD)}(hjGh]henum}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj~hhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj~hhhjhKubjg)}(hdrm_gem_object_statush]jm)}(hj|h]hdrm_gem_object_status}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjzhhhjhKubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjwhhubj)}(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:352: ./include/drm/drm_gem.hhK1hjhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhKubeh}(h]h ](jenumeh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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:352: ./include/drm/drm_gem.hhK5hjubj)}(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:352: ./include/drm/drm_gem.hhK8hjubj )}(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&]uh1hhjhK8hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubj)}(hE``DRM_GEM_OBJECT_PURGEABLE`` object marked as purgeable by userspace h](j)}(h``DRM_GEM_OBJECT_PURGEABLE``h]j)}(hj>h]hDRM_GEM_OBJECT_PURGEABLE}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhK;hj8ubj )}(hhh]h)}(h'object marked as purgeable by userspaceh]h'object marked as purgeable by userspace}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShK;hjTubah}(h]h ]h"]h$]h&]uh1j hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShK;hjubj)}(hJ``DRM_GEM_OBJECT_ACTIVE`` object is currently used by an active submissionh](j)}(h``DRM_GEM_OBJECT_ACTIVE``h]j)}(hjwh]hDRM_GEM_OBJECT_ACTIVE}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhK=hjqubj )}(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:352: ./include/drm/drm_gem.hhK>hjubah}(h]h ]h"]h$]h&]uh1j hjqubeh}(h]h ]h"]h$]h&]uh1jhjhK=hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubh)}(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:352: ./include/drm/drm_gem.hhK@hjXhhubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj؀ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhK5hjЀ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&]uh1hhjhK5hjXhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_object_funcs (C struct)c.drm_gem_object_funcshNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hdrm_gem_object_funcsh]j>)}(hstruct drm_gem_object_funcsh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKAubjV)}(h h]h }(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj(hKAubjg)}(hdrm_gem_object_funcsh]jm)}(hjh]hdrm_gem_object_funcs}(hj;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj(hKAubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj(hKAubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj(hKAhjhhubj)}(hhh]h)}(hGEM object functionsh]hGEM object functions}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKFhjZhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hKAubeh}(h]h ](jstructeh"]h$]h&]jjjjujjujjjuh1j2hhhjXhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh:}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKJhjyubjT)}(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&]jjuh1jShQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKLhjyubh)}(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:352: ./include/drm/drm_gem.hhK^hjyubj)}(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&]uh1jhjȁubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKMhjāubj )}(hhh](h)}(h"Deconstructor for drm_gem_objects.h]h"Deconstructor for drm_gem_objects.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKKhjubh)}(hThis callback is mandatory.h]hThis callback is mandatory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj߁hKMhjubeh}(h]h ]h"]h$]h&]uh1j hjāubeh}(h]h ]h"]h$]h&]uh1jhj߁hKMhjubj)}(hF``open`` Called upon GEM handle creation. This callback is optional. h](j)}(h``open``h]j)}(hjh]hopen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKVhj ubj )}(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:352: ./include/drm/drm_gem.hhKThj(ubh)}(hThis callback is optional.h]hThis callback is optional.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hKVhj(ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hKVhjubj)}(hF``close`` Called upon GEM handle release. This callback is optional. h](j)}(h ``close``h]j)}(hjZh]hclose}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhK_hjTubj )}(hhh](h)}(hCalled upon GEM handle release.h]hCalled upon GEM handle release.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhK]hjpubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohK_hjpubeh}(h]h ]h"]h$]h&]uh1j hjTubeh}(h]h ]h"]h$]h&]uh1jhjohK_hjubj)}(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:352: ./include/drm/drm_gem.hhKnhjubj )}(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)}(hjłh]hdrm_gem_object}(hjǂhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjÂubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKfhjubhS, it can implement this optional hook for printing additional driver specific info.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKfhjubh)}(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:352: ./include/drm/drm_gem.hhKihjubh)}(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:352: ./include/drm/drm_gem.hhKlhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKnhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKnhjubj)}(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:352: ./include/drm/drm_gem.hhKyhj%ubj )}(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 }(hjDhhhNhNubh)}(h:c:type:`dma_buf`h]j)}(hjNh]hdma_buf}(hjPhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_bufuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKvhjDubh4. If this is not set drm_gem_prime_export() is used.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhKvhjAubh)}(hThis callback is optional.h]hThis callback is optional.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKyhjAubeh}(h]h ]h"]h$]h&]uh1j hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKyhjubj)}(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:352: ./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:352: ./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&]uh1j hjubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܃ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./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:352: ./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&]uh1j hj؃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)}(hj&h]h get_sg_table}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhj ubj )}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhj<ubh)}(h!See also drm_prime_pages_to_sg().h]h!See also drm_prime_pages_to_sg().}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hKhj<ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hKhjubj)}(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)}(hjnh]hvmap}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhjhubj )}(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:352: ./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&]uh1j hjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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:352: ./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 }(hjτhhhNhNubj)}(h**vmap**h]hvmap}(hjׄhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjτubhV. Used by the drm_gem_dmabuf_vunmap() helper. Called with a held GEM reservation lock.}(hjτhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./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&]uh1j hjubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhj ubj )}(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:352: ./include/drm/drm_gem.hhKhj&ubh)}(hThis callback is optional.h]hThis callback is optional.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhj&ubh)}(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 }(hjGhhhNhNubj)}(h**mmap**h]hmmap}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh is present }(hjGhhhNhNubj)}(h **vm_ops**h]hvm_ops}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh is not used, the }(hjGhhhNhNubj)}(h**mmap**h]hmmap}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh' callback must set vma->vm_ops instead.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhj&ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjubj)}(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:352: ./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:352: ./include/drm/drm_gem.hhKhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjƅhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(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)}(hjh]hstatus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhjubj )}(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:352: ./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&]uh1j hjubeh}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhjDubh)}(h"Called by drm_show_memory_stats().h]h"Called by drm_show_memory_stats().}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKhjDubeh}(h]h ]h"]h$]h&]uh1j hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKhjubj)}(hf``vm_ops`` Virtual memory operations used with mmap. This is optional but necessary for mmap support.h](j)}(h ``vm_ops``h]j)}(hjvh]hvm_ops}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhjpubj )}(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:352: ./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:352: ./include/drm/drm_gem.hhKhjubeh}(h]h ]h"]h$]h&]uh1j hjpubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_lru (C struct) c.drm_gem_lruhNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h drm_gem_lruh]j>)}(hstruct drm_gem_lruh](jD)}(hjh]hstruct}(hj߆hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjۆhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjۆhhhjhKubjg)}(h drm_gem_lruh]jm)}(hjنh]h drm_gem_lru}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjۆhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj׆hhhjhKubah}(h]j҆ah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjԆhhubj)}(hhh]h)}(hA simple LRU helperh]hA simple LRU helper}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjԆhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjj9jj9jjjuh1j2hhhjXhNhNubj)}(hX**Definition**:: struct drm_gem_lru { struct mutex *lock; long count; struct list_head list; }; **Members** ``lock`` Lock protecting movement of GEM objects between LRUs. All LRUs that the object can move between should be protected by the same lock. ``count`` The total number of backing pages of the GEM objects in this LRU. ``list`` The LRU list.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh:}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhj=ubjT)}(hZstruct drm_gem_lru { struct mutex *lock; long count; struct list_head list; };h]hZstruct drm_gem_lru { struct mutex *lock; long count; struct list_head list; };}hj^sbah}(h]h ]h"]h$]h&]jjuh1jShQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhj=ubh)}(h **Members**h]j)}(hjoh]hMembers}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhj=ubj)}(hhh](j)}(h``lock`` Lock protecting movement of GEM objects between LRUs. All LRUs that the object can move between should be protected by the same lock. h](j)}(h``lock``h]j)}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhjubj )}(hhh]h)}(hLock protecting movement of GEM objects between LRUs. All LRUs that the object can move between should be protected by the same lock.h]hLock protecting movement of GEM objects between LRUs. All LRUs that the object can move between should be protected by the same lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hL``count`` The total number of backing pages of the GEM objects in this LRU. h](j)}(h ``count``h]j)}(hjȇh]hcount}(hjʇhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƇubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhj‡ubj )}(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:352: ./include/drm/drm_gem.hhMhjއubah}(h]h ]h"]h$]h&]uh1j hj‡ubeh}(h]h ]h"]h$]h&]uh1jhj݇hMhjubj)}(h``list`` The LRU list.h](j)}(h``list``h]j)}(hjh]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM hjubj )}(hhh]h)}(h The LRU list.h]h The LRU list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubh)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM hjXhhubh)}(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 }(hj[hhhNhNubh)}(h+:c:type:`shrinker.count_objects `h]j)}(hjeh]hshrinker.count_objects}(hjghhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjshrinkeruh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKhj[ubh, and provides }(hj[hhhNhNubh)}(h:c:type:`drm_gem_lru_scan`h]j)}(hjh]hdrm_gem_lru_scan}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_lru_scanuh1hhjhKhj[ubh for driver’s }(hj[hhhNhNubh)}(h*:c:type:`shrinker.scan_objects `h]j)}(hjh]hshrinker.scan_objects}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjshrinkeruh1hhjhKhj[ubh implementation.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjXhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_object (C struct)c.drm_gem_objecthNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hdrm_gem_objecth]j>)}(hstruct drm_gem_objecth](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(hdrm_gem_objecth]jm)}(hjh]hdrm_gem_object}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]j߈ah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhj+hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjFjjFjjjuh1j2hhhjXhNhNubj)}(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; #ifdef CONFIG_LOCKDEP; struct lockdep_map *lock_dep_map; #endif; } 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`` Provides the list of GPU VAs attached to this GEM object. Drivers should lock list accesses with the GEMs :c:type:`dma_resv` lock (:c:type:`drm_gem_object.resv `) or a custom lock if one is provided. ``funcs`` Optional GEM object functions. If this is set, it will be used instead of the corresponding :c:type:`drm_driver` GEM callbacks. New drivers should use this. ``lru_node`` List node in a :c:type:`drm_gem_lru`. ``lru`` The current LRU list that the GEM object is on.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh:}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjJubjT)}(hX7struct 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; #ifdef CONFIG_LOCKDEP; struct lockdep_map *lock_dep_map; #endif; } gpuva; const struct drm_gem_object_funcs *funcs; struct list_head lru_node; struct drm_gem_lru *lru; };h]hX7struct 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; #ifdef CONFIG_LOCKDEP; struct lockdep_map *lock_dep_map; #endif; } gpuva; const struct drm_gem_object_funcs *funcs; struct list_head lru_node; struct drm_gem_lru *lru; };}hjksbah}(h]h ]h"]h$]h&]jjuh1jShQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjJubh)}(h **Members**h]j)}(hj|h]hMembers}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM.hjJubj)}(hhh](j)}(h``refcount`` Reference count of this object Please use drm_gem_object_get() to acquire and drm_gem_object_put_locked() or drm_gem_object_put() to release a reference to a GEM buffer object. h](j)}(h ``refcount``h]j)}(hjh]hrefcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjubj )}(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:352: ./include/drm/drm_gem.hhMhjubh)}(hPlease use drm_gem_object_get() to acquire and drm_gem_object_put_locked() or drm_gem_object_put() to release a reference to a GEM buffer object.h]hPlease use drm_gem_object_get() to acquire and drm_gem_object_put_locked() or drm_gem_object_put() to release a reference to a GEM buffer object.}(hjÉhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:352: ./include/drm/drm_gem.hhM,hjމubj )}(hhh](h)}(h6This is the GEM file_priv handle count of this object.h]h6This is the GEM file_priv handle count of this object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM&hjubh)}(hEach handle also holds a reference. Note that when the handle_count drops to 0 any global names (e.g. the id in the flink namespace) will be cleared.h]hEach handle also holds a reference. Note that when the handle_count drops to 0 any global names (e.g. the id in the flink namespace) will be cleared.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM(hjubh)}(h@Protected by :c:type:`drm_device.object_name_lock `.h](h Protected by }(hjhhhNhNubh)}(h2:c:type:`drm_device.object_name_lock `h]j)}(hj%h]hdrm_device.object_name_lock}(hj'hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_deviceuh1hhjhM,hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM,hjubeh}(h]h ]h"]h$]h&]uh1j hjމubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjubj)}(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:352: ./include/drm/drm_gem.hhM3hjXubj )}(hhh]h)}(hDRM dev this object belongs to.h]hDRM dev this object belongs to.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM3hjtubah}(h]h ]h"]h$]h&]uh1j hjXubeh}(h]h ]h"]h$]h&]uh1jhjshM3hjubj)}(h``filp`` SHMEM file node used as backing storage for swappable buffer objects. GEM also supports driver private objects with driver-specific backing storage (contiguous DMA memory, special reserved blocks). In this case **filp** is NULL. h](j)}(h``filp``h]j)}(hjh]hfilp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM;hjubj )}(hhh]h)}(hSHMEM file node used as backing storage for swappable buffer objects. GEM also supports driver private objects with driver-specific backing storage (contiguous DMA memory, special reserved blocks). In this case **filp** is NULL.h](hSHMEM file node used as backing storage for swappable buffer objects. GEM also supports driver private objects with driver-specific backing storage (contiguous DMA memory, special reserved blocks). In this case }(hjhhhNhNubj)}(h**filp**h]hfilp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM8hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubj)}(hXL``vma_node`` Mapping info for this object to support mmap. Drivers are supposed to allocate the mmap offset using drm_gem_create_mmap_offset(). The offset itself can be retrieved using drm_vma_node_offset_addr(). Memory mapping itself is handled by drm_gem_mmap(), which also checks that userspace is allowed to access the object. h](j)}(h ``vma_node``h]j)}(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:352: ./include/drm/drm_gem.hhMGhj݊ubj )}(hhh](h)}(hMapping info for this object to support mmap. Drivers are supposed to allocate the mmap offset using drm_gem_create_mmap_offset(). The offset itself can be retrieved using drm_vma_node_offset_addr().h]hMapping info for this object to support mmap. Drivers are supposed to allocate the mmap offset using drm_gem_create_mmap_offset(). The offset itself can be retrieved using drm_vma_node_offset_addr().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMBhjubh)}(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:352: ./include/drm/drm_gem.hhMFhjubeh}(h]h ]h"]h$]h&]uh1j hj݊ubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjubj)}(hN``size`` Size of the object, in bytes. Immutable over the object's lifetime. h](j)}(h``size``h]j)}(hj,h]hsize}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMOhj&ubj )}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMNhjBubah}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMOhjubj)}(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)}(hjfh]hname}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMXhj`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 }(hjhhhNhNubh)}(h2:c:type:`drm_device.object_name_lock `h]j)}(hjh]hdrm_device.object_name_lock}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_deviceuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMVhjubh4. This is used by the GEM_FLINK and GEM_OPEN ioctls.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMVhj|ubah}(h]h ]h"]h$]h&]uh1j hj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMXhjubj)}(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)}(hjËh]hdma_buf}(hjŋhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMehjubj )}(hhh](h)}(h(dma-buf associated with this GEM object.h]h(dma-buf associated with this GEM object.}(hj܋hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM_hjًubh)}(hPointer to the dma-buf associated with this gem object (either through importing or exporting). We break the resulting reference loop when the last gem handle for this object is released.h]hPointer to the dma-buf associated with this gem object (either through importing or exporting). We break the resulting reference loop when the last gem handle for this object is released.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMahjًubh)}(h@Protected by :c:type:`drm_device.object_name_lock `.h](h Protected by }(hjhhhNhNubh)}(h2:c:type:`drm_device.object_name_lock `h]j)}(hjh]hdrm_device.object_name_lock}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_deviceuh1hhj؋hMehjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj؋hMehjًubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj؋hMehjubj)}(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&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMyhj7ubj )}(hhh](h)}(h'dma-buf attachment backing this object.h]h'dma-buf attachment backing this object.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMlhjSubh)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMnhjSubh)}(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 }(hjthhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j)}(hj~h]hdrm_gem_object_funcs.free}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMrhjtubhg callback is responsible for cleaning up the dma_buf attachment and references acquired at import time.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMrhjSubh)}(hNote that the drm gem/prime core does not depend upon drivers setting this field any more. So for drivers where this doesn't make sense (e.g. virtual devices or a displaylink behind an usb bus) they can simply leave it as NULL.h]hNote that the drm gem/prime core does not depend upon drivers setting this field any more. So for drivers where this doesn’t make sense (e.g. virtual devices or a displaylink behind an usb bus) they can simply leave it as NULL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMvhjSubeh}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMyhjubj)}(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)}(hjnjh]hresv}(hjɌhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŌubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./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:352: ./include/drm/drm_gem.hhMhj݌ubh)}(hBNormally (**resv** == &**_resv**) except for imported GEM objects.h](h Normally (}(hjhhhNhNubj)}(h**resv**h]hresv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0 == &**_resv**) except for imported GEM objects.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj܌hMhj݌ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj܌hMhjubj)}(h^``_resv`` A reservation object for this GEM object. This is unused for imported GEM objects. h](j)}(h ``_resv``h]j)}(hj!h]h_resv}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjubj )}(hhh](h)}(h)A reservation object for this GEM object.h]h)A reservation object for this GEM object.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhj7ubh)}(h(This is unused for imported GEM objects.h]h(This is unused for imported GEM objects.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(h``gpuva`` Provides the list of GPU VAs attached to this GEM object. Drivers should lock list accesses with the GEMs :c:type:`dma_resv` lock (:c:type:`drm_gem_object.resv `) or a custom lock if one is provided. h](j)}(h ``gpuva``h]j)}(hjih]hgpuva}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjcubj )}(hhh](h)}(h9Provides the list of GPU VAs attached to this GEM object.h]h9Provides the list of GPU VAs attached to this GEM object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjubh)}(hDrivers should lock list accesses with the GEMs :c:type:`dma_resv` lock (:c:type:`drm_gem_object.resv `) or a custom lock if one is provided.h](h0Drivers should lock list accesses with the GEMs }(hjhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjh]hdma_resv}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjubh lock (}(hjhhhNhNubh)}(h.:c:type:`drm_gem_object.resv `h]j)}(hjh]hdrm_gem_object.resv}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhMhjubh&) or a custom lock if one is provided.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhjubj)}(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:352: ./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 }(hjhhhNhNubh)}(h:c:type:`drm_driver`h]j)}(hjh]h drm_driver}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjubh GEM callbacks.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj8hMhjubh)}(hNew drivers should use this.h]hNew drivers should use this.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h3``lru_node`` List node in a :c:type:`drm_gem_lru`. h](j)}(h ``lru_node``h]j)}(hjch]hlru_node}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhj]ubj )}(hhh]h)}(h%List node in a :c:type:`drm_gem_lru`.h](hList node in a }(hj|hhhNhNubh)}(h:c:type:`drm_gem_lru`h]j)}(hjh]h drm_gem_lru}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gem_lruuh1hhjxhMhj|ubh.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1j hj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjubj)}(h7``lru`` The current LRU list that the GEM object is on.h](j)}(h``lru``h]j)}(hjh]hlru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./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:352: ./include/drm/drm_gem.hhMhjՎubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjԎhMhjubeh}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubh)}(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:352: ./include/drm/drm_gem.hhMhjXhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjXhhubh)}(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:352: ./include/drm/drm_gem.hhMhjXhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.DRM_GEM_FOPS (C macro)c.DRM_GEM_FOPShNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h DRM_GEM_FOPSh]j>)}(h DRM_GEM_FOPSh]jg)}(h DRM_GEM_FOPSh]jm)}(hjIh]h DRM_GEM_FOPS}(hjShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjGhhhjfhMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1j7hjfhMhjDhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjDhhhjfhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubh)}(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:352: ./include/drm/drm_gem.hhMhjXhhubj.)}(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:352: ./include/drm/drm_gem.hhMhjubah}(h]h ]h"]h$]h&]uh1j.hjhMhjubh)}(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:352: ./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)}(hjڏh]hfile_operations}(hj܏hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj؏ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjfile_operationsuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./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&]uh1j.hjhMhjXhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.DEFINE_DRM_GEM_FOPS (C macro)c.DEFINE_DRM_GEM_FOPShNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hDEFINE_DRM_GEM_FOPSh]j>)}(hDEFINE_DRM_GEM_FOPSh]jg)}(hDEFINE_DRM_GEM_FOPSh]jm)}(hjh]hDEFINE_DRM_GEM_FOPS}(hj%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj8hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj8hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj8hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjQjjQjjjuh1j2hhhjXhNhNubh)}(h``DEFINE_DRM_GEM_FOPS (name)``h]j)}(hjWh]hDEFINE_DRM_GEM_FOPS (name)}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjXhhubj.)}(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}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjmubah}(h]h ]h"]h$]h&]uh1j.hjhMhjXhhubj)}(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:352: ./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:352: ./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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjfile_operationsuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjubh1 for GEM based drivers, which can be assigned to }(hjhhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j)}(hj*h]hdrm_driver.fops}(hj,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj 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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_object_get (C function)c.drm_gem_object_gethNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h4void drm_gem_object_get (struct drm_gem_object *obj)h]j>)}(h3void drm_gem_object_get(struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj|hhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj|hhhjhMubjg)}(hdrm_gem_object_geth]jm)}(hdrm_gem_object_geth]hdrm_gem_object_get}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhjhMubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjʑhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjۑhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjؑubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjݑmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_object_getasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj|hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjuhhubj)}(hhh]h)}(h%acquire a GEM buffer object referenceh]h%acquire a GEM buffer object reference}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhj=hhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1j2hhhjXhNhNubj)}(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)}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhj\ubj)}(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:352: ./include/drm/drm_gem.hhMhj{ubj )}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubah}(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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhj\ubh)}(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 }(hjҒhhhNhNubj)}(h**obj**h]hobj}(hjڒhhhNhNubah}(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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_object_put (C function)c.drm_gem_object_puthNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h4void drm_gem_object_put (struct drm_gem_object *obj)h]j>)}(h3void drm_gem_object_put(struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMubjV)}(h h]h }(hj"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj!hMubjg)}(hdrm_gem_object_puth]jm)}(hdrm_gem_object_puth]hdrm_gem_object_put}(hj4hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj!hMubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjLubjV)}(h h]h }(hj]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjLubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjnhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjpmodnameN classnameNjj)}j]j)}jj6sbc.drm_gem_object_putasbuh1hhjLubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj!hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj!hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj!hMhjhhubj)}(hhh]h)}(h"drop a GEM buffer object referenceh]h"drop a GEM buffer object reference}(hjӓhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjГhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj!hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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:352: ./include/drm/drm_gem.hhMhjubj)}(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:352: ./include/drm/drm_gem.hhMhjubj )}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjubh)}(h%This releases a reference to **obj**.h](hThis releases a reference to }(hjehhhNhNubj)}(h**obj**h]hobj}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.6drm_gem_object_is_shared_for_memory_stats (C function)+c.drm_gem_object_is_shared_for_memory_statshNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hKbool drm_gem_object_is_shared_for_memory_stats (struct drm_gem_object *obj)h]j>)}(hJbool drm_gem_object_is_shared_for_memory_stats(struct drm_gem_object *obj)h](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM=ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM=ubjg)}(h)drm_gem_object_is_shared_for_memory_statsh]jm)}(h)drm_gem_object_is_shared_for_memory_statsh]h)drm_gem_object_is_shared_for_memory_stats}(hjƔhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj”ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM=ubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjޔubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjޔubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjȔsb+c.drm_gem_object_is_shared_for_memory_statsasbuh1hhjޔubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjޔubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޔubjm)}(hobjh]hobj}(hj;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjޔubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjڔubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM=ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM=ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM=hjhhubj)}(hhh]h)}(hhelper for shared memory statsh]hhelper for shared memory stats}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM=hjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1j2hhhjXhNhNubj)}(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:352: ./include/drm/drm_gem.hhMAhjubj)}(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:352: ./include/drm/drm_gem.hhMBhjubj )}(hhh]h)}(hobj in questionh]hobj in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߕubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMDhjubh)}(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:352: ./include/drm/drm_gem.hhM>hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gem_is_imported (C function)c.drm_gem_is_importedhNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h;bool drm_gem_is_imported (const struct drm_gem_object *obj)h]j>)}(h:bool drm_gem_is_imported(const struct drm_gem_object *obj)h](jc)}(hj h]hbool}(hj&hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj"hhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMJubjV)}(h h]h }(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj"hhhj3hMJubjg)}(hdrm_gem_is_importedh]jm)}(hdrm_gem_is_importedh]hdrm_gem_is_imported}(hjFhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"hhhj3hMJubj)}(h"(const struct drm_gem_object *obj)h]j)}(h const struct drm_gem_object *objh](jD)}(hj h]hconst}(hjbhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj^ubjV)}(h h]h }(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj^ubjD)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj^ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj^ubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjHsbc.drm_gem_is_importedasbuh1hhj^ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj^ubj)}(hjh]h*}(hjɖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjm)}(hobjh]hobj}(hj֖hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubah}(h]h ]h"]h$]h&]jjuh1jhj"hhhj3hMJubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj3hMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj3hMJhjhhubj)}(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:352: ./include/drm/drm_gem.hhMJhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMNhjubj)}(hhh]j)}(h4``const struct drm_gem_object *obj`` the GEM object h](j)}(h$``const struct drm_gem_object *obj``h]j)}(hjAh]h const struct drm_gem_object *obj}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMKhj;ubj )}(hhh]h)}(hthe GEM objecth]hthe GEM object}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMKhjWubah}(h]h ]h"]h$]h&]uh1j hj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMKhj8ubah}(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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMMhjubh)}(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:352: ./include/drm/drm_gem.hhMMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gem_gpuva_set_lock (C macro)c.drm_gem_gpuva_set_lockhNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hdrm_gem_gpuva_set_lockh]j>)}(hdrm_gem_gpuva_set_lockh]jg)}(hdrm_gem_gpuva_set_lockh]jm)}(hjh]hdrm_gem_gpuva_set_lock}(hjŗhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMWubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjؗhMWubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjؗhMWhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjؗhMWubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubh)}(h&``drm_gem_gpuva_set_lock (obj, lock)``h]j)}(hjh]h"drm_gem_gpuva_set_lock (obj, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMYhjXhhubj.)}(h4Set the lock protecting accesses to the gpuva list. h]h)}(h3Set the lock protecting accesses to the gpuva list.h]h3Set the lock protecting accesses to the gpuva list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMWhj ubah}(h]h ]h"]h$]h&]uh1j.hjhMWhjXhhubj)}(hX **Parameters** ``obj`` the :c:type:`drm_gem_object` ``lock`` the lock used to protect the gpuva list. The locking primitive must contain a dep_map field. **Description** Call this if you're not proctecting access to the gpuva list with the dma-resv lock, but with a custom lock.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM[hj&ubj)}(hhh](j)}(h%``obj`` the :c:type:`drm_gem_object` h](j)}(h``obj``h]j)}(hjKh]hobj}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMXhjEubj )}(hhh]h)}(hthe :c:type:`drm_gem_object`h](hthe }(hjdhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjnh]hdrm_gem_object}(hjphhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj`hMXhjdubeh}(h]h ]h"]h$]h&]uh1hhj`hMXhjaubah}(h]h ]h"]h$]h&]uh1j hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMXhjBubj)}(hf``lock`` the lock used to protect the gpuva list. The locking primitive must contain a dep_map field. h](j)}(h``lock``h]j)}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMZhjubj )}(hhh]h)}(h\the lock used to protect the gpuva list. The locking primitive must contain a dep_map field.h]h\the lock used to protect the gpuva list. The locking primitive must contain a dep_map field.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMYhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjBubeh}(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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM\hj&ubh)}(hlCall this if you're not proctecting access to the gpuva list with the dma-resv lock, but with a custom lock.h]hnCall this if you’re not proctecting access to the gpuva list with the dma-resv lock, but with a custom lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM[hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_gpuva_init (C function)c.drm_gem_gpuva_inithNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h4void drm_gem_gpuva_init (struct drm_gem_object *obj)h]j>)}(h3void drm_gem_gpuva_init(struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMmubjV)}(h h]h }(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhj2hMmubjg)}(hdrm_gem_gpuva_inith]jm)}(hdrm_gem_gpuva_inith]hdrm_gem_gpuva_init}(hjEhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj2hMmubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj]ubjV)}(h h]h }(hjnhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj]ubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjGsbc.drm_gem_gpuva_initasbuh1hhj]ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj2hMmubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj2hMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj2hMmhjhhubj)}(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:352: ./include/drm/drm_gem.hhMmhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hMmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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:352: ./include/drm/drm_gem.hhMqhjubj)}(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:352: ./include/drm/drm_gem.hhMnhjubj )}(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 ](jjc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj:hMnhj>ubeh}(h]h ]h"]h$]h&]uh1hhj:hMnhj;ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMnhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMphjubh)}(hLThis initializes the :c:type:`drm_gem_object`'s :c:type:`drm_gpuvm_bo` list.h](hThis initializes the }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMohjubh’s }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjÚh]h drm_gpuvm_bo}(hjŚhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjhMohjubh list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMohjubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_driver_featureuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMqhjubh DRIVER_GEM_GPUVA.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMqhjubh)}(h"See also drm_gem_gpuva_set_lock().h]h"See also drm_gem_gpuva_set_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMthjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_gem_for_each_gpuvm_bo (C macro)c.drm_gem_for_each_gpuvm_bohNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hdrm_gem_for_each_gpuvm_boh]j>)}(hdrm_gem_for_each_gpuvm_boh]jg)}(hdrm_gem_for_each_gpuvm_boh]jm)}(hjEh]hdrm_gem_for_each_gpuvm_bo}(hjOhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM}ubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjChhhjbhM}ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1j7hjbhM}hj@hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj@hhhjbhM}ubeh}(h]h ](jmacroeh"]h$]h&]jjjj{jj{jjjuh1j2hhhjXhNhNubh)}(h.``drm_gem_for_each_gpuvm_bo (entry__, obj__)``h]j)}(hjh]h*drm_gem_for_each_gpuvm_bo (entry__, obj__)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjXhhubj.)}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhM}hjubeh}(h]h ]h"]h$]h&]uh1hhj›hM}hjubah}(h]h ]h"]h$]h&]uh1j.hj›hM}hjXhhubj)}(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)}(hj՛h]h Parameters}(hjכhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӛubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./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:352: ./include/drm/drm_gem.hhM~hjubj )}(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}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhj 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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj hM~hjubj)}(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)}(hjLh]hobj__}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjFubj )}(hhh]h)}(hSthe :c:type:`drm_gem_object` the :c:type:`drm_gpuvm_bo` to walk are associated withh](hthe }(hjehhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjoh]hdrm_gem_object}(hjqhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjahMhjeubh the }(hjehhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjahMhjeubh to walk are associated with}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjahMhjbubah}(h]h ]h"]h$]h&]uh1j hjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjubeh}(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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj hMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhjϛubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.(drm_gem_for_each_gpuvm_bo_safe (C macro) c.drm_gem_for_each_gpuvm_bo_safehNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hdrm_gem_for_each_gpuvm_bo_safeh]j>)}(hdrm_gem_for_each_gpuvm_bo_safeh]jg)}(hdrm_gem_for_each_gpuvm_bo_safeh]jm)}(hjRh]hdrm_gem_for_each_gpuvm_bo_safe}(hj\hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjPhhhjohMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1j7hjohMhjMhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjMhhhjohMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubh)}(h;``drm_gem_for_each_gpuvm_bo_safe (entry__, next__, obj__)``h]j)}(hjh]h7drm_gem_for_each_gpuvm_bo_safe (entry__, next__, obj__)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjXhhubj.)}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjubeh}(h]h ]h"]h$]h&]uh1hhjϝhMhjubah}(h]h ]h"]h$]h&]uh1j.hjϝhMhjXhhubj)}(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:352: ./include/drm/drm_gem.hhMhjܝubj)}(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:352: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_bostructureuh1hhjhMhjubh$ to assign to in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hH``next__`` :c:type:`next` :c:type:`drm_gpuvm_bo` to store the next step h](j)}(h ``next__``h]j)}(hjYh]hnext__}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjSubj )}(hhh]h)}(h<:c:type:`next` :c:type:`drm_gpuvm_bo` to store the next steph](h)}(h:c:type:`next`h]j)}(hjxh]hnext}(hjzhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjnextuh1hhjnhMhjrubh }(hjrhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjnhMhjrubh to store the next step}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1j hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubj)}(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)}(hjԞh]hobj__}(hj֞hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҞubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhMhjubh the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjhMhjubh to walk are associated with}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjΞubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjܝubh)}(h**Description**h]j)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjܝubh)}(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 }(hjkhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjuh]h drm_gpuvm_bo}(hjwhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:352: ./include/drm/drm_gem.hhMhjkubh structures associated with the }(hjkhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhMhjkubhb. It is implemented with list_for_each_entry_safe(), hence it is save against removal of elements.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjܝubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.)drm_gem_object_init_with_mnt (C function)c.drm_gem_object_init_with_mnthNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hzint drm_gem_object_init_with_mnt (struct drm_device *dev, struct drm_gem_object *obj, size_t size, struct vfsmount *gemfs)h]j>)}(hyint drm_gem_object_init_with_mnt(struct drm_device *dev, struct drm_gem_object *obj, size_t size, struct vfsmount *gemfs)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjܟhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKvubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjܟhhhjhKvubjg)}(hdrm_gem_object_init_with_mnth]jm)}(hdrm_gem_object_init_with_mnth]hdrm_gem_object_init_with_mnt}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjܟhhhjhKvubj)}(hY(struct drm_device *dev, struct drm_gem_object *obj, size_t size, struct vfsmount *gemfs)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hj;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj=modnameN classnameNjj)}j]j)}jjsbc.drm_gem_object_init_with_mntasbuh1hhjubjV)}(h h]h }(hj[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jWc.drm_gem_object_init_with_mntasbuh1hhjubjV)}(h h]h }(hjˠhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj٠hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jWc.drm_gem_object_init_with_mntasbuh1hhjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hsizeh]hsize}(hj.hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct vfsmount *gemfsh](jD)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjCubjV)}(h h]h }(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjCubh)}(hhh]jm)}(hvfsmounth]hvfsmount}(hjehhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjbubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjgmodnameN classnameNjj)}j]jWc.drm_gem_object_init_with_mntasbuh1hhjCubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hgemfsh]hgemfs}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjܟhhhjhKvubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj؟hhhjhKvubah}(h]jӟah ](jjeh"]h$]h&]jj)jhuh1j7hjhKvhj՟hhubj)}(hhh]h)}(hKinitialize an allocated shmem-backed GEM object in a given shmfs mountpointh]hKinitialize an allocated shmem-backed GEM object in a given shmfs mountpoint}(hjȡhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKvhjšhhubah}(h]h ]h"]h$]h&]uh1jhj՟hhhjhKvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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 ``struct vfsmount *gemfs`` tmpfs mount where the GEM object will be created. If NULL, use the usual tmpfs mountpoint (`shm_mnt`). **Description** Initialize an already allocated GEM object of the specified size with shmfs backing store.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:355: ./drivers/gpu/drm/drm_gem.chKzhjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKyhjubj )}(hhh]h)}(h/drm_device the object should be initialized forh]h/drm_device the object should be initialized for}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKyhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKyhjubj)}(h<``struct drm_gem_object *obj`` drm_gem_object to initialize h](j)}(h``struct drm_gem_object *obj``h]j)}(hjBh]hstruct drm_gem_object *obj}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKzhj<ubj )}(hhh]h)}(hdrm_gem_object to initializeh]hdrm_gem_object to initialize}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKzhjXubah}(h]h ]h"]h$]h&]uh1j hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKzhjubj)}(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&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chK{hjuubj )}(hhh]h)}(h object sizeh]h object size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK{hjubah}(h]h ]h"]h$]h&]uh1j hjuubeh}(h]h ]h"]h$]h&]uh1jhjhK{hjubj)}(h``struct vfsmount *gemfs`` tmpfs mount where the GEM object will be created. If NULL, use the usual tmpfs mountpoint (`shm_mnt`). h](j)}(h``struct vfsmount *gemfs``h]j)}(hjh]hstruct vfsmount *gemfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chK}hjubj )}(hhh]h)}(hftmpfs mount where the GEM object will be created. If NULL, use the usual tmpfs mountpoint (`shm_mnt`).h](h[tmpfs mount where the GEM object will be created. If NULL, use the usual tmpfs mountpoint (}(hj͢hhhNhNubhtitle_reference)}(h `shm_mnt`h]hshm_mnt}(hjעhhhNhNubah}(h]h ]h"]h$]h&]uh1jբhj͢ubh).}(hj͢hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chK|hjʢubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjɢhK}hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKhjubh)}(hZInitialize an already allocated GEM object of the specified size with shmfs backing store.h]hZInitialize an already allocated GEM object of the specified size with shmfs backing store.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chK~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gem_object_init (C function)c.drm_gem_object_inithNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hYint drm_gem_object_init (struct drm_device *dev, struct drm_gem_object *obj, size_t size)h]j>)}(hXint drm_gem_object_init(struct drm_device *dev, struct drm_gem_object *obj, size_t size)h](jc)}(hinth]hint}(hjIhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjEhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEhhhjWhKubjg)}(hdrm_gem_object_inith]jm)}(hdrm_gem_object_inith]hdrm_gem_object_init}(hjjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhjWhKubj)}(hA(struct drm_device *dev, struct drm_gem_object *obj, size_t size)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjlsbc.drm_gem_object_initasbuh1hhjubjV)}(h h]h }(hjģhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjңhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjߣhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_object_initasbuh1hhjubjV)}(h h]h }(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjOhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjkhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmmodnameN classnameNjj)}j]jc.drm_gem_object_initasbuh1hhjdubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjdubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhjWhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjAhhhjWhKubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1j7hjWhKhj>hhubj)}(hhh]h)}(h/initialize an allocated shmem-backed GEM objecth]h/initialize an allocated shmem-backed GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj٤jj٤jjjuh1j2hhhjXhNhNubj)}(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 shmfs backing store.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:355: ./drivers/gpu/drm/drm_gem.chKhjݤubj)}(hhh](j)}(hK``struct drm_device *dev`` drm_device the object should be initialized for h](j)}(h``struct drm_device *dev``h]j)}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKhjubj )}(hhh]h)}(h/drm_device the object should be initialized forh]h/drm_device the object should be initialized for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h<``struct drm_gem_object *obj`` drm_gem_object to initialize h](j)}(h``struct drm_gem_object *obj``h]j)}(hj;h]hstruct drm_gem_object *obj}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKhj5ubj )}(hhh]h)}(hdrm_gem_object to initializeh]hdrm_gem_object to initialize}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhKhjQubah}(h]h ]h"]h$]h&]uh1j hj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKhjubj)}(h``size_t size`` object size h](j)}(h``size_t size``h]j)}(hjth]h size_t size}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKhjnubj )}(hhh]h)}(h object sizeh]h object size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjnubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjݤubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKhjݤubh)}(hZInitialize an already allocated GEM object of the specified size with shmfs backing store.h]hZInitialize an already allocated GEM object of the specified size with shmfs backing store.}(hjťhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKhjݤubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.(drm_gem_private_object_init (C function)c.drm_gem_private_object_inithNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hbvoid drm_gem_private_object_init (struct drm_device *dev, struct drm_gem_object *obj, size_t size)h]j>)}(havoid drm_gem_private_object_init(struct drm_device *dev, struct drm_gem_object *obj, size_t size)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(hdrm_gem_private_object_inith]jm)}(hdrm_gem_private_object_inith]hdrm_gem_private_object_init}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(hA(struct drm_device *dev, struct drm_gem_object *obj, size_t size)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj-ubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj-ubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjOhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjQmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_private_object_initasbuh1hhj-ubjV)}(h h]h }(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj-ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjæmodnameN classnameNjj)}j]jkc.drm_gem_private_object_initasbuh1hhjubjV)}(h h]h }(hjߦhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jkc.drm_gem_private_object_initasbuh1hhjubjV)}(h h]h }(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hsizeh]hsize}(hjBhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h)}(h*initialize an allocated private GEM objecth]h*initialize an allocated private GEM object}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKhjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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)}(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:355: ./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)}(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:355: ./drivers/gpu/drm/drm_gem.chKhjubj )}(hhh]h)}(h/drm_device the object should be initialized forh]h/drm_device the object should be initialized for}(hjƧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj§hKhjçubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:355: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``size_t size`` object size h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKhjubj )}(hhh]h)}(h object sizeh]h object size}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKhj5ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj4hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKhjubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.(drm_gem_private_object_fini (C function)c.drm_gem_private_object_finihNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h=void drm_gem_private_object_fini (struct drm_gem_object *obj)h]j>)}(h)}(h)}(hcint drm_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev, u32 handle, u64 *offset)h](jc)}(hinth]hint}(hj4hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj0hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMzubjV)}(h h]h }(hjChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj0hhhjBhMzubjg)}(hdrm_gem_dumb_map_offseth]jm)}(hdrm_gem_dumb_map_offseth]hdrm_gem_dumb_map_offset}(hjUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhjBhMzubj)}(hH(struct drm_file *file, struct drm_device *dev, u32 handle, u64 *offset)h](j)}(hstruct drm_file *fileh](jD)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjmubjV)}(h h]h }(hj~hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjWsbc.drm_gem_dumb_map_offsetasbuh1hhjmubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hfileh]hfile}(hjʬhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj߬ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj߬ubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dumb_map_offsetasbuh1hhj߬ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj߬ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߬ubjm)}(hdevh]hdev}(hj:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj߬ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(h u32 handleh](h)}(hhh]jm)}(hu32h]hu32}(hjVhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjXmodnameN classnameNjj)}j]jc.drm_gem_dumb_map_offsetasbuh1hhjOubjV)}(h h]h }(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjOubjm)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(h u64 *offseth](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dumb_map_offsetasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjʭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hoffseth]hoffset}(hj׭hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhj0hhhjBhMzubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj,hhhjBhMzubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1j7hjBhMzhj)hhubj)}(hhh]h)}(h,return the fake mmap offset for a gem objecth]h,return the fake mmap offset for a gem object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMzhjhhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhMzubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(hX**Parameters** ``struct drm_file *file`` drm file-private structure containing the gem object ``struct drm_device *dev`` corresponding drm_device ``u32 handle`` gem object handle ``u64 *offset`` return location for the fake mmap offset **Description** This implements the :c:type:`drm_driver.dumb_map_offset ` kms driver callback for drivers which use gem to manage their backing storage. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(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:355: ./drivers/gpu/drm/drm_gem.chM~hjubj)}(hhh](j)}(hO``struct drm_file *file`` drm file-private structure containing the gem object h](j)}(h``struct drm_file *file``h]j)}(hjBh]hstruct drm_file *file}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM{hj<ubj )}(hhh]h)}(h4drm file-private structure containing the gem objecth]h4drm file-private structure containing the gem object}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM{hjXubah}(h]h ]h"]h$]h&]uh1j hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM{hj9ubj)}(h4``struct drm_device *dev`` corresponding drm_device h](j)}(h``struct drm_device *dev``h]j)}(hj{h]hstruct drm_device *dev}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM|hjuubj )}(hhh]h)}(hcorresponding drm_deviceh]hcorresponding drm_device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1j hjuubeh}(h]h ]h"]h$]h&]uh1jhjhM|hj9ubj)}(h!``u32 handle`` gem object handle h](j)}(h``u32 handle``h]j)}(hjh]h u32 handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM}hjubj )}(hhh]h)}(hgem object handleh]hgem object handle}(hjͮhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɮhM}hjʮubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjɮhM}hj9ubj)}(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:355: ./drivers/gpu/drm/drm_gem.chM~hjubj )}(hhh]h)}(h(return location for the fake mmap offseth]h(return location for the fake mmap offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM~hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM~hj9ubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hThis implements the :c:type:`drm_driver.dumb_map_offset ` kms driver callback for drivers which use gem to manage their backing storage.h](hThis implements the }(hj>hhhNhNubh)}(h1:c:type:`drm_driver.dumb_map_offset `h]j)}(hjHh]hdrm_driver.dumb_map_offset}(hjJhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhj>ubhO kms driver callback for drivers which use gem to manage their backing storage.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjehMhjubh)}(h **Return**h]j)}(hjrh]hReturn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_gem_handle_create (C function)c.drm_gem_handle_createhNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h`int drm_gem_handle_create (struct drm_file *file_priv, struct drm_gem_object *obj, u32 *handlep)h]j>)}(h_int drm_gem_handle_create(struct drm_file *file_priv, struct drm_gem_object *obj, u32 *handlep)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hjƯhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjůhMubjg)}(hdrm_gem_handle_createh]jm)}(hdrm_gem_handle_createh]hdrm_gem_handle_create}(hjدhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjԯubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjůhMubj)}(hF(struct drm_file *file_priv, struct drm_gem_object *obj, u32 *handlep)h](j)}(hstruct drm_file *file_privh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjگsbc.drm_gem_handle_createasbuh1hhjubjV)}(h h]h }(hj2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h file_privh]h file_priv}(hjMhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjbubjV)}(h h]h }(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjbubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j.c.drm_gem_handle_createasbuh1hhjbubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 *handleph](h)}(hhh]jm)}(hu32h]hu32}(hjٰhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjְubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj۰modnameN classnameNjj)}j]j.c.drm_gem_handle_createasbuh1hhjҰubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjҰubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҰubjm)}(hhandleph]hhandlep}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjҰubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjůhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjůhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjůhMhjhhubj)}(hhh]h)}(h!create a gem handle for an objecth]h!create a gem handle for an object}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhj9hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjůhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1j2hhhjXhNhNubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjXubj)}(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)}(hj}h]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjwubj )}(hhh]h)}(h5drm file-private structure to register the handle forh]h5drm file-private structure to register the handle for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubj)}(h2``struct drm_gem_object *obj`` object to register h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(hhh]h)}(hobject to registerh]hobject to register}(hjϱhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj˱hMhj̱ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj˱hMhjtubj)}(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:355: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubeh}(h]h ]h"]h$]h&]uh1jhjXubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjXubh)}(hCreate a handle for this object. This adds a handle reference to the object, which includes a regular reference count. Callers will likely want to dereference the object afterwards.h]hCreate a handle for this object. This adds a handle reference to the object, which includes a regular reference count. Callers will likely want to dereference the object afterwards.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjXubh)}(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 }(hjOhhhNhNubj)}(h**obj**h]hobj}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh{ to userspace it must be fully set up by this point, drivers must call this last in their buffer object creation callbacks.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_gem_free_mmap_offset (C function)c.drm_gem_free_mmap_offsethNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h:void drm_gem_free_mmap_offset (struct drm_gem_object *obj)h]j>)}(h9void drm_gem_free_mmap_offset(struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gem_free_mmap_offseth]jm)}(hdrm_gem_free_mmap_offseth]hdrm_gem_free_mmap_offset}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjͲhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjɲubjV)}(h h]h }(hjڲhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjɲubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_free_mmap_offsetasbuh1hhjɲubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjɲubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɲubjm)}(hobjh]hobj}(hj&hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjɲubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŲubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(h(release a fake mmap offset for an objecth]h(release a fake mmap offset for an object}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1j2hhhjXhNhNubj)}(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)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM hjlubj)}(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:355: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjlubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjlubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjlubh)}(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:355: ./drivers/gpu/drm/drm_gem.chM hjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.,drm_gem_create_mmap_offset_size (C function)!c.drm_gem_create_mmap_offset_sizehNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hMint drm_gem_create_mmap_offset_size (struct drm_gem_object *obj, size_t size)h]j>)}(hLint drm_gem_create_mmap_offset_size(struct drm_gem_object *obj, size_t size)h](jc)}(hinth]hint}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj.hMubjg)}(hdrm_gem_create_mmap_offset_sizeh]jm)}(hdrm_gem_create_mmap_offset_sizeh]hdrm_gem_create_mmap_offset_size}(hjAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj.hMubj)}(h)(struct drm_gem_object *obj, size_t size)h](j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjYubjV)}(h h]h }(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj{hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj}modnameN classnameNjj)}j]j)}jjCsb!c.drm_gem_create_mmap_offset_sizeasbuh1hhjYubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjҴhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjϴubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjԴmodnameN classnameNjj)}j]j!c.drm_gem_create_mmap_offset_sizeasbuh1hhj˴ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj˴ubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj˴ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj.hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj.hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj.hMhjhhubj)}(hhh]h)}(h'create a fake mmap offset for an objecth]h'create a fake mmap offset for an object}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhj%hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1j2hhhjXhNhNubj)}(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)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjDubj)}(hhh](j)}(h/``struct drm_gem_object *obj`` obj in question h](j)}(h``struct drm_gem_object *obj``h]j)}(hjih]hstruct drm_gem_object *obj}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjcubj )}(hhh]h)}(hobj in questionh]hobj in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1j hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj`ubj)}(h!``size_t size`` the virtual size h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(hhh]h)}(hthe virtual sizeh]hthe virtual size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj`ubeh}(h]h ]h"]h$]h&]uh1jhjDubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjDubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjDubh)}(hThis routine allocates and attaches a fake offset for **obj**, in cases where the virtual size differs from the physical size (ie. :c:type:`drm_gem_object.size `). Otherwise just use drm_gem_create_mmap_offset().h](h6This routine allocates and attaches a fake offset for }(hjhhhNhNubj)}(h**obj**h]hobj}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhF, in cases where the virtual size differs from the physical size (ie. }(hjhhhNhNubh)}(h.:c:type:`drm_gem_object.size `h]j)}(hjh]hdrm_gem_object.size}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM hjubh3). Otherwise just use drm_gem_create_mmap_offset().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;hM hjDubh)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM$hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_gem_create_mmap_offset (C function)c.drm_gem_create_mmap_offsethNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h;int drm_gem_create_mmap_offset (struct drm_gem_object *obj)h]j>)}(h:int drm_gem_create_mmap_offset(struct drm_gem_object *obj)h](jc)}(hinth]hint}(hjuhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjqhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM3ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjqhhhjhM3ubjg)}(hdrm_gem_create_mmap_offseth]jm)}(hdrm_gem_create_mmap_offseth]hdrm_gem_create_mmap_offset}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhhjhM3ubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjжhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjͶubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjҶmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_create_mmap_offsetasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhM3ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjmhhhjhM3ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1j7hjhM3hjjhhubj)}(hhh]h)}(h'create a fake mmap offset for an objecth]h'create a fake mmap offset for an object}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM3hj2hhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1j2hhhjXhNhNubj)}(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)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM7hjQubj)}(hhh]j)}(h/``struct drm_gem_object *obj`` obj in question h](j)}(h``struct drm_gem_object *obj``h]j)}(hjvh]hstruct drm_gem_object *obj}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM4hjpubj )}(hhh]h)}(hobj in questionh]hobj in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1j hjpubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjmubah}(h]h ]h"]h$]h&]uh1jhjQubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM6hjQubh)}(hGEM memory mapping works by handing back to userspace a fake mmap offset it can use in a subsequent mmap(2) call. The DRM core code then looks up the object based on the offset and sets up the various memory mapping structures.h]hGEM memory mapping works by handing back to userspace a fake mmap offset it can use in a subsequent mmap(2) call. The DRM core code then looks up the object based on the offset and sets up the various memory mapping structures.}(hjǷhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM5hjQubh)}(h>This routine allocates and attaches a fake offset for **obj**.h](h6This routine allocates and attaches a fake offset for }(hjַhhhNhNubj)}(h**obj**h]hobj}(hj޷hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjַubh.}(hjַhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM:hjQubh)}(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}(hjhhhNhNubah}(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:355: ./drivers/gpu/drm/drm_gem.chM<hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_get_pages (C function)c.drm_gem_get_pageshNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h=struct page ** drm_gem_get_pages (struct drm_gem_object *obj)h]j>)}(h;struct page **drm_gem_get_pages(struct drm_gem_object *obj)h](jD)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj4hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMRubjV)}(h h]h }(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj4hhhjEhMRubh)}(hhh]jm)}(hpageh]hpage}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjYmodnameN classnameNjj)}j]j)}jdrm_gem_get_pagessbc.drm_gem_get_pagesasbuh1hhj4hhhjEhMRubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj4hhhjEhMRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjEhMRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjEhMRubjg)}(hdrm_gem_get_pagesh]jm)}(hjuh]hdrm_gem_get_pages}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhjEhMRubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj̸hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjݸhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjڸubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj߸modnameN classnameNjj)}j]jsc.drm_gem_get_pagesasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhjEhMRubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj0hhhjEhMRubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1j7hjEhMRhj-hhubj)}(hhh]h)}(h)}(hbvoid drm_gem_put_pages(struct drm_gem_object *obj, struct page **pages, bool dirty, bool accessed)h](jc)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj9hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj9hhhjKhMubjg)}(hdrm_gem_put_pagesh]jm)}(hdrm_gem_put_pagesh]hdrm_gem_put_pages}(hj^hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhjKhMubj)}(hL(struct drm_gem_object *obj, struct page **pages, bool dirty, bool accessed)h](j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjvubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjvubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj`sbc.drm_gem_put_pagesasbuh1hhjvubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjvubj)}(hjh]h*}(hjƺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hobjh]hobj}(hjӺhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubj)}(hstruct page **pagesh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hpageh]hpage}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jc.drm_gem_put_pagesasbuh1hhjubjV)}(h h]h }(hj(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpagesh]hpages}(hjPhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubj)}(h bool dirtyh](jc)}(hj h]hbool}(hjihhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjeubjV)}(h h]h }(hjvhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjeubjm)}(hdirtyh]hdirty}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubj)}(h bool accessedh](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(haccessedh]haccessed}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj5hhhjKhMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1j7hjKhMhj2hhubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhj߻hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(hhh]h)}(hobj in questionh]hobj in question}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(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&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjVubj )}(hhh]h)}(h pages to freeh]h pages to free}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1j hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubj)}(h6``bool dirty`` if true, pages will be marked as dirty h](j)}(h``bool dirty``h]j)}(hjh]h bool dirty}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(hhh]h)}(h&if true, pages will be marked as dirtyh]h&if true, pages will be marked as dirty}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``bool accessed`` if true, the pages will be marked as accessedh](j)}(h``bool accessed``h]j)}(hjμh]h bool accessed}(hjмhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̼ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjȼubj )}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubah}(h]h ]h"]h$]h&]uh1j hjȼubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_gem_objects_lookup (C function)c.drm_gem_objects_lookuphNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hyint drm_gem_objects_lookup (struct drm_file *filp, void __user *bo_handles, int count, struct drm_gem_object ***objs_out)h]j>)}(hxint drm_gem_objects_lookup(struct drm_file *filp, void __user *bo_handles, int count, struct drm_gem_object ***objs_out)h](jc)}(hinth]hint}(hj(hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj$hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hj7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj$hhhj6hMubjg)}(hdrm_gem_objects_lookuph]jm)}(hdrm_gem_objects_lookuph]hdrm_gem_objects_lookup}(hjIhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$hhhj6hMubj)}(h^(struct drm_file *filp, void __user *bo_handles, int count, struct drm_gem_object ***objs_out)h](j)}(hstruct drm_file *filph](jD)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjaubjV)}(h h]h }(hjrhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjaubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjKsbc.drm_gem_objects_lookupasbuh1hhjaubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hvoid __user *bo_handlesh](jc)}(hvoidh]hvoid}(hj׽hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjӽubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjӽubh__user}(hjӽhhhNhNubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjӽubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӽubjm)}(h bo_handlesh]h bo_handles}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjӽubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(h int counth](jc)}(hinth]hint}(hj+hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj'ubjV)}(h h]h }(hj9hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj'ubjm)}(hcounth]hcount}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(h!struct drm_gem_object ***objs_outh](jD)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj\ubjV)}(h h]h }(hjmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\ubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj~hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_objects_lookupasbuh1hhj\ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjľhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hobjs_outh]hobjs_out}(hjѾhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubeh}(h]h ]h"]h$]h&]jjuh1jhj$hhhj6hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj6hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj6hMhjhhubj)}(hhh]h)}(h,look up GEM objects from an array of handlesh]h,look up GEM objects from an array of handles}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(hXs**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. For a single handle lookup, use drm_gem_object_lookup(). **Return** **objs** filled in with GEM object pointers. Returned GEM objects need to be released with drm_gem_object_put(). -ENOENT is returned on a lookup failure. 0 is returned 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:355: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh](j)}(h0``struct drm_file *filp`` DRM file private date h](j)}(h``struct drm_file *filp``h]j)}(hj<h]hstruct drm_file *filp}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhj6ubj )}(hhh]h)}(hDRM file private dateh]hDRM file private date}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1j hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubj)}(hF``void __user *bo_handles`` user pointer to array of userspace handle h](j)}(h``void __user *bo_handles``h]j)}(hjuh]hvoid __user *bo_handles}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjoubj )}(hhh]h)}(h)user pointer to array of userspace handleh]h)user pointer to array of userspace handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhj3ubj)}(h#``int count`` size of handle array 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:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(hhh]h)}(hsize of handle arrayh]hsize of handle array}(hjǿhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjÿhMhjĿubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjÿhMhj3ubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj3ubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubh)}(h8For a single handle lookup, use drm_gem_object_lookup().h]h8For a single handle lookup, use drm_gem_object_lookup().}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubh)}(h **Return**h]j)}(hjXh]hReturn}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubh)}(h**objs** filled in with GEM object pointers. Returned GEM objects need to be released with drm_gem_object_put(). -ENOENT is returned on a lookup failure. 0 is returned on success.h](j)}(h**objs**h]hobjs}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh filled in with GEM object pointers. Returned GEM objects need to be released with drm_gem_object_put(). -ENOENT is returned on a lookup failure. 0 is returned on success.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_gem_object_lookup (C function)c.drm_gem_object_lookuphNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hQstruct drm_gem_object * drm_gem_object_lookup (struct drm_file *filp, u32 handle)h]j>)}(hOstruct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM0ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM0ubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_gem_object_lookupsbc.drm_gem_object_lookupasbuh1hhjhhhjhM0ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM0ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM0ubjg)}(hdrm_gem_object_lookuph]jm)}(hjh]hdrm_gem_object_lookup}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM0ubj)}(h#(struct drm_file *filp, u32 handle)h](j)}(hstruct drm_file *filph](jD)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj!ubjV)}(h h]h }(hj2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj!ubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjChhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjEmodnameN classnameNjj)}j]jc.drm_gem_object_lookupasbuh1hhj!ubjV)}(h h]h }(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj!ubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hfilph]hfilp}(hj|hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 handleh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_object_lookupasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM0ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM0hjhhubj)}(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:355: ./drivers/gpu/drm/drm_gem.chM0hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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:355: ./drivers/gpu/drm/drm_gem.chM4hj ubj)}(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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM1hj)ubj )}(hhh]h)}(hDRM file private dateh]hDRM file private date}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM1hjEubah}(h]h ]h"]h$]h&]uh1j hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhM1hj&ubj)}(h ``u32 handle`` userspace handle h](j)}(h``u32 handle``h]j)}(hjhh]h u32 handle}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM2hjbubj )}(hhh]h)}(huserspace handleh]huserspace handle}(h)jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hM2hj~ubah}(h]h ]h"]h$]h&]uh1j hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hM2hj&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:355: ./drivers/gpu/drm/drm_gem.chM4hj ubh)}(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:355: ./drivers/gpu/drm/drm_gem.chM3hj ubh)}(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:355: ./drivers/gpu/drm/drm_gem.chM5hj ubh)}(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:355: ./drivers/gpu/drm/drm_gem.chM6hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_gem_dma_resv_wait (C function)c.drm_gem_dma_resv_waithNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(helong drm_gem_dma_resv_wait (struct drm_file *filep, u32 handle, bool wait_all, unsigned long timeout)h]j>)}(hdlong drm_gem_dma_resv_wait(struct drm_file *filep, u32 handle, bool wait_all, unsigned long timeout)h](jc)}(hlongh]hlong}(hj!hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMEubjV)}(h h]h }(hj0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj/hMEubjg)}(hdrm_gem_dma_resv_waith]jm)}(hdrm_gem_dma_resv_waith]hdrm_gem_dma_resv_wait}(hjBhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj/hMEubj)}(hJ(struct drm_file *filep, u32 handle, bool wait_all, unsigned long timeout)h](j)}(hstruct drm_file *fileph](jD)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjZubjV)}(h h]h }(hjkhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjZubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hj|hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj~modnameN classnameNjj)}j]j)}jjDsbc.drm_gem_dma_resv_waitasbuh1hhjZubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(hfileph]hfilep}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(h u32 handleh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dma_resv_waitasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(h bool wait_allh](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hwait_allh]hwait_all}(hj3hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hunsigned long timeouth](jc)}(hunsignedh]hunsigned}(hjLhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjHubjV)}(h h]h }(hjZhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjHubjc)}(hlongh]hlong}(hjhhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjHubjV)}(h h]h }(hjvhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjHubjm)}(htimeouth]htimeout}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hMEubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj/hMEubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj/hMEhjhhubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMEhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMIhjubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMGhjubj )}(hhh]h)}(hDRM file private dateh]hDRM file private date}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjubj)}(h ``u32 handle`` userspace handle h](j)}(h``u32 handle``h]j)}(hj(h]h u32 handle}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMHhj"ubj )}(hhh]h)}(huserspace handleh]huserspace handle}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMHhj>ubah}(h]h ]h"]h$]h&]uh1j hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMHhjubj)}(hQ``bool wait_all`` if true, wait on all fences, else wait on just exclusive fence h](j)}(h``bool wait_all``h]j)}(hjah]h bool wait_all}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMIhj[ubj )}(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}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMIhjwubah}(h]h ]h"]h$]h&]uh1j hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMIhjubj)}(hQ``unsigned long timeout`` timeout value in jiffies or zero to return immediately h](j)}(h``unsigned long timeout``h]j)}(hjh]hunsigned long timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMJhjubj )}(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&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubeh}(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:355: ./drivers/gpu/drm/drm_gem.chMLhjubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMLhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_gem_object_release (C function)c.drm_gem_object_releasehNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h8void drm_gem_object_release (struct drm_gem_object *obj)h]j>)}(h7void drm_gem_object_release(struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj(hMubjg)}(hdrm_gem_object_releaseh]jm)}(hdrm_gem_object_releaseh]hdrm_gem_object_release}(hj;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj(hMubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjSubjV)}(h h]h }(hjdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjSubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjwmodnameN classnameNjj)}j]j)}jj=sbc.drm_gem_object_releaseasbuh1hhjSubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj(hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj(hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj(hMhjhhubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubah}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubh)}(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 }(hjlhhhNhNubj)}(h**obj**h]hobj}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh- and is the inverse of drm_gem_object_init().}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gem_object_free (C function)c.drm_gem_object_freehNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h,void drm_gem_object_free (struct kref *kref)h]j>)}(h+void drm_gem_object_free(struct kref *kref)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gem_object_freeh]jm)}(hdrm_gem_object_freeh]hdrm_gem_object_free}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct kref *kref)h]j)}(hstruct kref *krefh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jjsbc.drm_gem_object_freeasbuh1hhjubjV)}(h h]h }(hj(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkrefh]hkref}(hjChhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(hfree a GEM objecth]hfree a GEM object}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(h**Parameters** ``struct kref *kref`` kref of the object to free **Description** Called after the last reference to the object has been lost. Frees the objecth](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh]j)}(h1``struct kref *kref`` kref of the object to free h](j)}(h``struct kref *kref``h]j)}(hjh]hstruct kref *kref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubh)}(h)}(h0void drm_gem_vm_open(struct vm_area_struct *vma)h](jc)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj9hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM)ubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj9hhhjKhM)ubjg)}(hdrm_gem_vm_openh]jm)}(hdrm_gem_vm_openh]hdrm_gem_vm_open}(hj^hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhjKhM)ubj)}(h(struct vm_area_struct *vma)h]j)}(hstruct vm_area_struct *vmah](jD)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjvubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjvubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj`sbc.drm_gem_vm_openasbuh1hhjvubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjvubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhjKhM)ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj5hhhjKhM)ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1j7hjKhM)hj2hhubj)}(hhh]h)}(h%vma->ops->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:355: ./drivers/gpu/drm/drm_gem.chM)hjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM-hjubj)}(hhh]j)}(h1``struct vm_area_struct *vma`` VM area structure 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM*hj8ubj )}(hhh]h)}(hVM area structureh]hVM area structure}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM*hjTubah}(h]h ]h"]h$]h&]uh1j hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShM*hj5ubah}(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:355: ./drivers/gpu/drm/drm_gem.chM,hjubh)}(hThis function implements the #vm_operations_struct open() callback for GEM drivers. This must be used together with drm_gem_vm_close().h]hThis function implements the #vm_operations_struct open() callback for GEM drivers. This must be used together with drm_gem_vm_close().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM+hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_vm_close (C function)c.drm_gem_vm_closehNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h2void drm_gem_vm_close (struct vm_area_struct *vma)h]j>)}(h1void drm_gem_vm_close(struct vm_area_struct *vma)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM8ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM8ubjg)}(hdrm_gem_vm_closeh]jm)}(hdrm_gem_vm_closeh]hdrm_gem_vm_close}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM8ubj)}(h(struct vm_area_struct *vma)h]j)}(hstruct vm_area_struct *vmah](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_vm_closeasbuh1hhjubjV)}(h h]h }(hj9hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvmah]hvma}(hjThhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM8ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM8ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM8hjhhubj)}(hhh]h)}(h&vma->ops->close implementation for GEMh]h&vma->ops->close implementation for GEM}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM8hj{hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(h**Parameters** ``struct vm_area_struct *vma`` VM area structure **Description** This function implements the #vm_operations_struct close() callback for GEM drivers. This must be used together with drm_gem_vm_open().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM<hjubj)}(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:355: ./drivers/gpu/drm/drm_gem.chM9hjubj )}(hhh]h)}(hVM area structureh]hVM area structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjubah}(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:355: ./drivers/gpu/drm/drm_gem.chM;hjubh)}(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:355: ./drivers/gpu/drm/drm_gem.chM:hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_mmap_obj (C function)c.drm_gem_mmap_objhNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(heint drm_gem_mmap_obj (struct drm_gem_object *obj, unsigned long obj_size, struct vm_area_struct *vma)h]j>)}(hdint drm_gem_mmap_obj(struct drm_gem_object *obj, unsigned long obj_size, struct vm_area_struct *vma)h](jc)}(hinth]hint}(hj?hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj;hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMGubjV)}(h h]h }(hjNhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;hhhjMhMGubjg)}(hdrm_gem_mmap_objh]jm)}(hdrm_gem_mmap_objh]hdrm_gem_mmap_obj}(hj`hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;hhhjMhMGubj)}(hP(struct drm_gem_object *obj, unsigned long obj_size, struct vm_area_struct *vma)h](j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hj|hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjxubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjxubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjbsbc.drm_gem_mmap_objasbuh1hhjxubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hunsigned long obj_sizeh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hobj_sizeh]hobj_size}(hj&hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hstruct vm_area_struct *vmah](jD)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj;ubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;ubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hj]hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj_modnameN classnameNjj)}j]jc.drm_gem_mmap_objasbuh1hhj;ubjV)}(h h]h }(hj{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjm)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhjMhMGubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj7hhhjMhMGubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1j7hjMhMGhj4hhubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMGhjhhubah}(h]h ]h"]h$]h&]uh1jhj4hhhjMhMGubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMKhjubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMHhjubj )}(hhh]h)}(hthe GEM object to maph]hthe GEM object to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubj)}(hB``unsigned long obj_size`` the object size to be mapped, in bytes h](j)}(h``unsigned long obj_size``h]j)}(hj:h]hunsigned long obj_size}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMIhj4ubj )}(hhh]h)}(h&the object size to be mapped, in bytesh]h&the object size to be mapped, in bytes}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMIhjPubah}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMIhjubj)}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](j)}(h``struct vm_area_struct *vma``h]j)}(hjsh]hstruct vm_area_struct *vma}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMJhjmubj )}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1j hjmubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubeh}(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:355: ./drivers/gpu/drm/drm_gem.chMLhjubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMKhjubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMRhjubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMVhjubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMZhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_mmap (C function)c.drm_gem_mmaphNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h@int drm_gem_mmap (struct file *filp, struct vm_area_struct *vma)h]j>)}(h?int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)h](jc)}(hinth]hint}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj.hMubjg)}(h drm_gem_mmaph]jm)}(h drm_gem_mmaph]h drm_gem_mmap}(hjAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj.hMubj)}(h/(struct file *filp, struct vm_area_struct *vma)h](j)}(hstruct file *filph](jD)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjYubjV)}(h h]h }(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYubh)}(hhh]jm)}(hfileh]hfile}(hj{hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj}modnameN classnameNjj)}j]j)}jjCsbc.drm_gem_mmapasbuh1hhjYubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(hstruct vm_area_struct *vmah](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_mmapasbuh1hhjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvmah]hvma}(hj&hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj.hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj.hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj.hMhjhhubj)}(hhh]h)}(h"memory map routine for GEM objectsh]h"memory map routine for GEM objects}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1j2hhhjXhNhNubj)}(hXC**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 when the GTT map ioctl was called on the object) 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)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjlubj)}(hhh](j)}(h'``struct file *filp`` DRM file pointer h](j)}(h``struct file *filp``h]j)}(hjh]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(hhh]h)}(hDRM file pointerh]hDRM file pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjlubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjlubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjlubh)}(hLook up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created when the GTT map ioctl was called on the object) 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 when the GTT map ioctl was called on the object) and map it with a call to drm_gem_mmap_obj().}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjlubh)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.&drm_gem_lock_reservations (C function)c.drm_gem_lock_reservationshNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hkint drm_gem_lock_reservations (struct drm_gem_object **objs, int count, struct ww_acquire_ctx *acquire_ctx)h]j>)}(hjint drm_gem_lock_reservations(struct drm_gem_object **objs, int count, struct ww_acquire_ctx *acquire_ctx)h](jc)}(hinth]hint}(hjhhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjdhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjdhhhjvhMubjg)}(hdrm_gem_lock_reservationsh]jm)}(hdrm_gem_lock_reservationsh]hdrm_gem_lock_reservations}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjdhhhjvhMubj)}(hM(struct drm_gem_object **objs, int count, struct ww_acquire_ctx *acquire_ctx)h](j)}(hstruct drm_gem_object **objsh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_lock_reservationsasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjsh]hobjs}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int counth](jc)}(hinth]hint}(hj$hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj ubjV)}(h h]h }(hj2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubjm)}(hcounth]hcount}(hj@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"struct ww_acquire_ctx *acquire_ctxh](jD)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjUubjV)}(h h]h }(hjfhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjUubh)}(hhh]jm)}(hww_acquire_ctxh]hww_acquire_ctx}(hjwhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjymodnameN classnameNjj)}j]jc.drm_gem_lock_reservationsasbuh1hhjUubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(h acquire_ctxh]h acquire_ctx}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjdhhhjvhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj`hhhjvhMubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1j7hjvhMhj]hhubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj]hhhjvhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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:355: ./drivers/gpu/drm/drm_gem.chM!hjubj)}(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:355: ./drivers/gpu/drm/drm_gem.chM$hjubj )}(hhh]h)}(hdrm_gem_objects to lockh]hdrm_gem_objects to lock}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM$hj1ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj0hM$hjubj)}(h,``int count`` Number of objects in **objs** h](j)}(h ``int count``h]j)}(hjTh]h int count}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM%hjNubj )}(hhh]h)}(hNumber of objects in **objs**h](hNumber of objects in }(hjmhhhNhNubj)}(h**objs**h]hobjs}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1hhjihM%hjjubah}(h]h ]h"]h$]h&]uh1j hjNubeh}(h]h ]h"]h$]h&]uh1jhjihM%hjubj)}(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)}(hjh]h"struct ww_acquire_ctx *acquire_ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM'hjubj )}(hhh]h)}(hcstruct ww_acquire_ctx that will be initialized as part of tracking this set of locked reservations.h]hcstruct ww_acquire_ctx that will be initialized as part of tracking this set of locked reservations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM&hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM)hjubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_lru_init (C function)c.drm_gem_lru_inithNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hCvoid drm_gem_lru_init (struct drm_gem_lru *lru, struct mutex *lock)h]j>)}(hBvoid drm_gem_lru_init(struct drm_gem_lru *lru, struct mutex *lock)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMkubjV)}(h h]h }(hj+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj*hMkubjg)}(hdrm_gem_lru_inith]jm)}(hdrm_gem_lru_inith]hdrm_gem_lru_init}(hj=hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj*hMkubj)}(h-(struct drm_gem_lru *lru, struct mutex *lock)h](j)}(hstruct drm_gem_lru *lruh](jD)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjUubjV)}(h h]h }(hjfhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjUubh)}(hhh]jm)}(h drm_gem_lruh]h drm_gem_lru}(hjwhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjymodnameN classnameNjj)}j]j)}jj?sbc.drm_gem_lru_initasbuh1hhjUubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hlruh]hlru}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hstruct mutex *lockh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hmutexh]hmutex}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_lru_initasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hlockh]hlock}(hj"hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj*hMkubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj*hMkubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj*hMkhjhhubj)}(hhh]h)}(hinitialize a LRUh]hinitialize a LRU}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMkhjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hMkubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1j2hhhjXhNhNubj)}(hy**Parameters** ``struct drm_gem_lru *lru`` The LRU to initialize ``struct mutex *lock`` The lock protecting the LRUh](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMohjhubj)}(hhh](j)}(h2``struct drm_gem_lru *lru`` The LRU to initialize h](j)}(h``struct drm_gem_lru *lru``h]j)}(hjh]hstruct drm_gem_lru *lru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMmhjubj )}(hhh]h)}(hThe LRU to initializeh]hThe LRU to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubj)}(h2``struct mutex *lock`` The lock protecting the LRUh](j)}(h``struct mutex *lock``h]j)}(hjh]hstruct mutex *lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMohjubj )}(hhh]h)}(hThe lock protecting the LRUh]hThe lock protecting the LRU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMnhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMohjubeh}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_lru_remove (C function)c.drm_gem_lru_removehNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h4void drm_gem_lru_remove (struct drm_gem_object *obj)h]j>)}(h3void drm_gem_lru_remove(struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj.hMubjg)}(hdrm_gem_lru_removeh]jm)}(hdrm_gem_lru_removeh]hdrm_gem_lru_remove}(hjAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj.hMubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjYubjV)}(h h]h }(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj{hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj}modnameN classnameNjj)}j]j)}jjCsbc.drm_gem_lru_removeasbuh1hhjYubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj.hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj.hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj.hMhjhhubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubj)}(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)}(hj!h]hstruct drm_gem_object *obj}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(hhh]h)}(h)The GEM object to remove from current LRUh]h)The GEM object to remove from current LRU}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj\h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubh)}(h1If the object is currently in any LRU, remove it.h]h1If the object is currently in any LRU, remove it.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.)drm_gem_lru_move_tail_locked (C function)c.drm_gem_lru_move_tail_lockedhNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hWvoid drm_gem_lru_move_tail_locked (struct drm_gem_lru *lru, struct drm_gem_object *obj)h]j>)}(hVvoid drm_gem_lru_move_tail_locked(struct drm_gem_lru *lru, struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gem_lru_move_tail_lockedh]jm)}(hdrm_gem_lru_move_tail_lockedh]hdrm_gem_lru_move_tail_locked}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h5(struct drm_gem_lru *lru, struct drm_gem_object *obj)h](j)}(hstruct drm_gem_lru *lruh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gem_lruh]h drm_gem_lru}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_lru_move_tail_lockedasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hlruh]hlru}(hj7hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjLubjV)}(h h]h }(hj]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjLubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjnhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjpmodnameN classnameNjj)}j]jc.drm_gem_lru_move_tail_lockedasbuh1hhjLubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(h**Parameters** ``struct drm_gem_lru *lru`` The LRU to move the object into. ``struct drm_gem_object *obj`` The GEM object to move into this LRU **Description** Like :c:type:`drm_gem_lru_move_tail` but lru lock must be heldh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh](j)}(h=``struct drm_gem_lru *lru`` The LRU to move the object into. h](j)}(h``struct drm_gem_lru *lru``h]j)}(hjh]hstruct drm_gem_lru *lru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhj 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'hMhj(ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj ubj)}(hD``struct drm_gem_object *obj`` The GEM object to move into this LRU h](j)}(h``struct drm_gem_object *obj``h]j)}(hjKh]hstruct drm_gem_object *obj}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjEubj )}(hhh]h)}(h$The GEM object to move into this LRUh]h$The GEM object to move into this LRU}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1j hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj 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:355: ./drivers/gpu/drm/drm_gem.chMhjubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_lru_move_tailuh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubh but lru lock must be held}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_gem_lru_move_tail (C function)c.drm_gem_lru_move_tailhNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hPvoid drm_gem_lru_move_tail (struct drm_gem_lru *lru, struct drm_gem_object *obj)h]j>)}(hOvoid drm_gem_lru_move_tail(struct drm_gem_lru *lru, struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gem_lru_move_tailh]jm)}(hdrm_gem_lru_move_tailh]hdrm_gem_lru_move_tail}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h5(struct drm_gem_lru *lru, struct drm_gem_object *obj)h](j)}(hstruct drm_gem_lru *lruh](jD)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj'ubjV)}(h h]h }(hj8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj'ubh)}(hhh]jm)}(h drm_gem_lruh]h drm_gem_lru}(hjIhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjKmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_lru_move_tailasbuh1hhj'ubjV)}(h h]h }(hjihhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj'ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hlruh]hlru}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jec.drm_gem_lru_move_tailasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1j2hhhjXhNhNubj)}(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)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhj:ubj)}(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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjYubj )}(hhh]h)}(h The LRU to move the object into.h]h The LRU to move the object into.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1j hjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjVubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubeh}(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:355: ./drivers/gpu/drm/drm_gem.chMhj:ubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_lru_scan (C function)c.drm_gem_lru_scanhNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(hunsigned long drm_gem_lru_scan (struct drm_gem_lru *lru, unsigned int nr_to_scan, unsigned long *remaining, bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket), struct ww_acquire_ctx *ticket)h]j>)}(hunsigned long drm_gem_lru_scan(struct drm_gem_lru *lru, unsigned int nr_to_scan, unsigned long *remaining, bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket), struct ww_acquire_ctx *ticket)h](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMubjV)}(h h]h }(hj'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj&hMubjc)}(hlongh]hlong}(hj5hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhj&hMubjV)}(h h]h }(hjChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj&hMubjg)}(hdrm_gem_lru_scanh]jm)}(hdrm_gem_lru_scanh]hdrm_gem_lru_scan}(hjUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj&hMubj)}(h(struct drm_gem_lru *lru, unsigned int nr_to_scan, unsigned long *remaining, bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket), struct ww_acquire_ctx *ticket)h](j)}(hstruct drm_gem_lru *lruh](jD)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjmubjV)}(h h]h }(hj~hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmubh)}(hhh]jm)}(h drm_gem_lruh]h drm_gem_lru}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjWsbc.drm_gem_lru_scanasbuh1hhjmubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hlruh]hlru}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hunsigned int nr_to_scanh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h nr_to_scanh]h nr_to_scan}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hunsigned long *remainingh](jc)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj0ubjV)}(h h]h }(hjBhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj0ubjc)}(hlongh]hlong}(hjPhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj0ubjV)}(h h]h }(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj0ubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(h remainingh]h remaining}(hjyhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hIbool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)h](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(h(h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hshrinkh]hshrink}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubj)}(h)h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_lru_scanasbuh1hhjubjV)}(h h]h }(hj-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjHhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubj)}(h,h]h,}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjV)}(h h]h }(hjdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjD)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hww_acquire_ctxh]hww_acquire_ctx}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_lru_scanasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hticketh]hticket}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubj)}(hjh]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hstruct ww_acquire_ctx *ticketh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hww_acquire_ctxh]hww_acquire_ctx}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_lru_scanasbuh1hhjubjV)}(h h]h }(hj+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hticketh]hticket}(hjFhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj&hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj&hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj&hMhj hhubj)}(hhh]h)}(h)helper to implement shrinker.scan_objectsh]h)helper to implement shrinker.scan_objects}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjmhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(hX**Parameters** ``struct drm_gem_lru *lru`` The LRU to scan ``unsigned int nr_to_scan`` The number of pages to try to reclaim ``unsigned long *remaining`` The number of pages left to reclaim, should be initialized by caller ``bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)`` Callback to try to shrink/reclaim the object. ``struct ww_acquire_ctx *ticket`` Optional ww_acquire_ctx context to use for locking **Description** If the shrink callback succeeds, it is expected that the driver move the object out of this LRU. If the LRU possibly contain active buffers, it is the responsibility of the shrink callback to check for this (ie. dma_resv_test_signaled()) or if necessary block until the buffer becomes idle.h](h)}(h**Parameters**h]j)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubj)}(hhh](j)}(h,``struct drm_gem_lru *lru`` The LRU to scan h](j)}(h``struct drm_gem_lru *lru``h]j)}(hjh]hstruct drm_gem_lru *lru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(hhh]h)}(hThe LRU to scanh]hThe LRU to scan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hb``unsigned long *remaining`` The number of pages left to reclaim, should be initialized by caller h](j)}(h``unsigned long *remaining``h]j)}(hj#h]hunsigned long *remaining}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(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}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(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)}(hj\h]hIbool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjVubj )}(hhh]h)}(h-Callback to try to shrink/reclaim the object.h]h-Callback to try to shrink/reclaim the object.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1j hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubj)}(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)}(hjh]hstruct 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:355: ./drivers/gpu/drm/drm_gem.chMhjubj )}(hhh]h)}(h2Optional ww_acquire_ctx context to use for lockingh]h2Optional ww_acquire_ctx context to use for locking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chMhjubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubh)}(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:355: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!drm_gem_evict_locked (C function)c.drm_gem_evict_lockedhNtauh1j!hjXhhhNhNubj3)}(hhh](j8)}(h5int drm_gem_evict_locked (struct drm_gem_object *obj)h]j>)}(h4int drm_gem_evict_locked(struct drm_gem_object *obj)h](jc)}(hinth]hint}(hj$hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM)ubjV)}(h h]h }(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhj2hM)ubjg)}(hdrm_gem_evict_lockedh]jm)}(hdrm_gem_evict_lockedh]hdrm_gem_evict_locked}(hjEhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj2hM)ubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj]ubjV)}(h h]h }(hjnhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj]ubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjGsbc.drm_gem_evict_lockedasbuh1hhj]ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj2hM)ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj2hM)ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj2hM)hjhhubj)}(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:355: ./drivers/gpu/drm/drm_gem.chM)hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjXhNhNubj)}(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:355: ./drivers/gpu/drm/drm_gem.chM-hjubj)}(hhh]j)}(h.``struct drm_gem_object *obj`` obj in questionh](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:355: ./drivers/gpu/drm/drm_gem.chM/hjubj )}(hhh]h)}(hobj in questionh]hobj in question}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:355: ./drivers/gpu/drm/drm_gem.chM*hj;ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj:hM/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjXhhhNhNubeh}(h]gem-function-referenceah ]h"]gem function referenceah$]h&]uh1hhjzhhhhhM^ubh)}(hhh](h)}(h"GEM DMA Helper Functions Referenceh]h"GEM DMA Helper Functions Reference}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhhhhhMgubh)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:361: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjnhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:361: ./drivers/gpu/drm/drm_gem_dma_helper.chK hjnhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:361: ./drivers/gpu/drm/drm_gem_dma_helper.chK&hjnhhubh)}(hFor GEM callback helpers in struct :c:type:`drm_gem_object` functions, see likewise named functions with an _object_ infix (e.g., drm_gem_dma_object_vmap() wraps drm_gem_dma_vmap()). These helpers perform the necessary type conversion.h](h#For GEM callback helpers in struct }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:361: ./drivers/gpu/drm/drm_gem_dma_helper.chK)hjubh functions, see likewise named functions with an _object_ infix (e.g., drm_gem_dma_object_vmap() wraps drm_gem_dma_vmap()). These helpers perform the necessary type conversion.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK)hjnhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_dma_object (C struct)c.drm_gem_dma_objecthNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hdrm_gem_dma_objecth]j>)}(hstruct drm_gem_dma_objecth](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(hdrm_gem_dma_objecth]jm)}(hjh]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h)}(h+GEM object backed by DMA memory allocationsh]h+GEM object backed by DMA memory allocations}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhK hj6hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjQjjQjjjuh1j2hhhjnhNhNubj)}(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}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh:}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjUubjT)}(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; };}hjvsbah}(h]h ]h"]h$]h&]jjuh1jSh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjUubh)}(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:364: ./include/drm/drm_gem_dma_helper.hhKhjUubj)}(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:364: ./include/drm/drm_gem_dma_helper.hhKhjubj )}(hhh]h)}(hbase GEM objecth]hbase GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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:364: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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:364: ./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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhj.ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj-hKhjubj)}(h7``vaddr`` kernel virtual address of the backing memory h](j)}(h ``vaddr``h]j)}(hjRh]hvaddr}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjLubj )}(hhh]h)}(h,kernel virtual address of the backing memoryh]h,kernel virtual address of the backing memory}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKhjhubah}(h]h ]h"]h$]h&]uh1j hjLubeh}(h]h ]h"]h$]h&]uh1jhjghKhjubj)}(hL``map_noncoherent`` if true, the GEM object is backed by non-coherent memoryh](j)}(h``map_noncoherent``h]j)}(hjh]hmap_noncoherent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjubj )}(hhh]h)}(h8if true, the GEM object is backed by non-coherent memoryh]h8if true, the GEM object is backed by non-coherent memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.$drm_gem_dma_object_free (C function)c.drm_gem_dma_object_freehNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(h9void drm_gem_dma_object_free (struct drm_gem_object *obj)h]j>)}(h8void drm_gem_dma_object_free(struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhK4ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhK4ubjg)}(hdrm_gem_dma_object_freeh]jm)}(hdrm_gem_dma_object_freeh]hdrm_gem_dma_object_free}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK4ubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjBmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_dma_object_freeasbuh1hhjubjV)}(h h]h }(hj`hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hj{hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK4ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhK4ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhK4hjhhubj)}(hhh]h)}(h*GEM object function for drm_gem_dma_free()h]h*GEM object function for drm_gem_dma_free()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhK4hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjnhNhNubj)}(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:364: ./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:364: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./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 }(hj7hhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j)}(hjAh]hdrm_gem_object_funcs.free}(hjChhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhK6hj7ubh handler.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hK6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.*drm_gem_dma_object_print_info (C function)c.drm_gem_dma_object_print_infohNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hqvoid drm_gem_dma_object_print_info (struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h]j>)}(hpvoid drm_gem_dma_object_print_info(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKBubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKBubjg)}(hdrm_gem_dma_object_print_infoh]jm)}(hdrm_gem_dma_object_print_infoh]hdrm_gem_dma_object_print_info}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKBubj)}(hN(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h](j)}(hstruct drm_printer *ph](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_dma_object_print_infoasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int indenth](jc)}(hunsignedh]hunsigned}(hj7hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj3ubjV)}(h h]h }(hjEhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj3ubjc)}(hinth]hint}(hjShhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj3ubjV)}(h h]h }(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj3ubjm)}(hindenth]hindent}(hjohhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const struct drm_gem_object *objh](jD)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dma_object_print_infoasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKBubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKBubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1j7hjhKBhj~hhubj)}(hhh]h)}(h3Print :c:type:`drm_gem_dma_object` info for debugfsh](hPrint }(hj$hhhNhNubh)}(h:c:type:`drm_gem_dma_object`h]j)}(hj.h]hdrm_gem_dma_object}(hj0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jc.drm_gem_dma_object_print_infoasbjdrm_gem_dma_objectuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhj$ubh info for debugfs}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKBhj!hhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1j2hhhjnhNhNubj)}(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)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKFhjiubj)}(hhh](j)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hjh]hstruct drm_printer *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKChjubj )}(hhh]h)}(h DRM printerh]h DRM printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKChjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKChjubj)}(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:364: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKDhjubj)}(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:364: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKEhjubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]j)}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKGhjiubh)}(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 }(hjQhhhNhNubh)}(h@:c:type:`drm_gem_object_funcs.print_info `h]j)}(hj[h]hdrm_gem_object_funcs.print_info}(hj]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKFhjQubh handler.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxhKFhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.,drm_gem_dma_object_get_sg_table (C function)!c.drm_gem_dma_object_get_sg_tablehNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hNstruct sg_table * drm_gem_dma_object_get_sg_table (struct drm_gem_object *obj)h]j>)}(hLstruct sg_table *drm_gem_dma_object_get_sg_table(struct drm_gem_object *obj)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKSubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKSubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_gem_dma_object_get_sg_tablesb!c.drm_gem_dma_object_get_sg_tableasbuh1hhjhhhjhKSubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKSubjg)}(hdrm_gem_dma_object_get_sg_tableh]jm)}(hjh]hdrm_gem_dma_object_get_sg_table}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKSubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj=modnameN classnameNjj)}j]j!c.drm_gem_dma_object_get_sg_tableasbuh1hhjubjV)}(h h]h }(hjYhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjthhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKSubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKSubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKShjhhubj)}(hhh]h)}(h2GEM object function for drm_gem_dma_get_sg_table()h]h2GEM object function for drm_gem_dma_get_sg_table()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKShjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjnhNhNubj)}(hX[**Parameters** ``struct drm_gem_object *obj`` GEM object **Description** This function wraps drm_gem_dma_get_sg_table(). Drivers that employ the DMA helpers should use it as their :c:type:`drm_gem_object_funcs.get_sg_table ` handler. **Return** A pointer to the scatter/gather table of pinned pages or NULL on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKWhjubj)}(hhh]j)}(h*``struct drm_gem_object *obj`` GEM object h](j)}(h``struct drm_gem_object *obj``h]j)}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKThjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKVhjubh)}(hThis function wraps drm_gem_dma_get_sg_table(). Drivers that employ the DMA helpers should use it as their :c:type:`drm_gem_object_funcs.get_sg_table ` handler.h](hkThis function wraps drm_gem_dma_get_sg_table(). Drivers that employ the DMA helpers should use it as their }(hj0hhhNhNubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKUhj0ubh handler.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWhKUhjubh)}(h **Return**h]j)}(hjdh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKXhjubh)}(hIA pointer to the scatter/gather table of pinned pages or NULL on failure.h]hIA pointer to the scatter/gather table of pinned pages or NULL on failure.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.$drm_gem_dma_object_mmap (C function)c.drm_gem_dma_object_mmaphNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hTint drm_gem_dma_object_mmap (struct drm_gem_object *obj, struct vm_area_struct *vma)h]j>)}(hSint drm_gem_dma_object_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKwubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKwubjg)}(hdrm_gem_dma_object_mmaph]jm)}(hdrm_gem_dma_object_mmaph]hdrm_gem_dma_object_mmap}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKwubj)}(h8(struct drm_gem_object *obj, struct vm_area_struct *vma)h](j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_dma_object_mmapasbuh1hhjubjV)}(h h]h }(hj$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hj?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct vm_area_struct *vmah](jD)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjTubjV)}(h h]h }(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjTubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hjvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]j c.drm_gem_dma_object_mmapasbuh1hhjTubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKwhjhhubj)}(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:364: ./include/drm/drm_gem_dma_helper.hhKwhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjnhNhNubj)}(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:364: ./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:364: ./include/drm/drm_gem_dma_helper.hhKxhjubj )}(hhh]h)}(h GEM objecth]h GEM object}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hKxhj0ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj/hKxhjubj)}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](j)}(h``struct vm_area_struct *vma``h]j)}(hjSh]hstruct vm_area_struct *vma}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKyhjMubj )}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhKyhjiubah}(h]h ]h"]h$]h&]uh1j hjMubeh}(h]h ]h"]h$]h&]uh1jhjhhKyhjubeh}(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:364: ./include/drm/drm_gem_dma_helper.hhK{hjubh)}(hThis function wraps drm_gem_dma_mmap(). Drivers that employ the dma helpers should use it as their :c:type:`drm_gem_object_funcs.mmap ` handler.h](hcThis function wraps drm_gem_dma_mmap(). Drivers that employ the dma helpers should use it as their }(hjhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.mmap `h]j)}(hjh]hdrm_gem_object_funcs.mmap}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKzhjubh handler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKzhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./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:364: ./include/drm/drm_gem_dma_helper.hhK~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.1DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE (C macro))c.DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATEhNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(h'DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATEh]j>)}(h'DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATEh]jg)}(h'DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATEh]jm)}(hjh]h'DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE}(hj!hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj4hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj4hKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj4hKubeh}(h]h ](jmacroeh"]h$]h&]jjjjMjjMjjjuh1j2hhhjnhNhNubh)}(h>``DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE (dumb_create_func)``h]j)}(hjSh]h:DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE (dumb_create_func)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjnhhubj.)}(hDMA GEM driver operations h]h)}(hDMA GEM driver operationsh]hDMA GEM driver operations}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjiubah}(h]h ]h"]h$]h&]uh1j.hj{hKhjnhhubj)}(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)}(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:364: ./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:364: ./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&]uh1j hjubeh}(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:364: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjubh structure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(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 }(hj*hhhNhNubh)}(h&:c:type:`struct rm_driver `h]j)}(hj4h]hstruct rm_driver}(hj6hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj rm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhj*ubh.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.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. DRM_GEM_DMA_DRIVER_OPS (C macro)c.DRM_GEM_DMA_DRIVER_OPShNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hDRM_GEM_DMA_DRIVER_OPSh]j>)}(hDRM_GEM_DMA_DRIVER_OPSh]jg)}(hDRM_GEM_DMA_DRIVER_OPSh]jm)}(hjvh]hDRM_GEM_DMA_DRIVER_OPS}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjthhhjhKubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjqhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhjnhNhNubh)}(h``DRM_GEM_DMA_DRIVER_OPS``h]j)}(hjh]hDRM_GEM_DMA_DRIVER_OPS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjnhhubj.)}(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:364: ./include/drm/drm_gem_dma_helper.hhKhjubah}(h]h ]h"]h$]h&]uh1j.hjhKhjubh)}(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:364: ./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}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjubh structure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj$hKhjubh)}(hX8Drivers that come with their own implementation of :c:type:`struct drm_driver `.dumb_create should use DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE() instead. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP instead.h](h3Drivers that come with their own implementation of }(hj/hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hj9h]hstruct drm_driver}(hj;hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhj/ubh.dumb_create should use DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE() instead. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP instead.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjVhKhjubeh}(h]h ]h"]h$]h&]uh1j.hjhKhjnhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.6DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE (C macro).c.DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATEhNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATEh]j>)}(h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATEh]jg)}(h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATEh]jm)}(hjzh]h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjxhhhjhKubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjuhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjuhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhjnhNhNubh)}(hC``DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE (dumb_create_func)``h]j)}(hjh]h?DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE (dumb_create_func)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjnhhubj.)}(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:364: ./include/drm/drm_gem_dma_helper.hhKhjubah}(h]h ]h"]h$]h&]uh1j.hjhKhjnhhubj)}(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:364: ./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)}(hj h]hdumb_create_func}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjubj )}(hhh]h)}(h"callback function for .dumb_createh]h"callback function for .dumb_create}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjubh)}(hThis macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure for drivers that need the virtual address also on imported buffers.h](hMThis macro provides a shortcut for setting the default GEM operations in the }(hj[hhhNhNubh)}(h:c:type:`drm_driver`h]j)}(hjeh]h drm_driver}(hjghhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhj[ubhN structure for drivers that need the virtual address also on imported buffers.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(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 }(hjhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjh]hstruct drm_driver}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjubh.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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%DRM_GEM_DMA_DRIVER_OPS_VMAP (C macro)c.DRM_GEM_DMA_DRIVER_OPS_VMAPhNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hDRM_GEM_DMA_DRIVER_OPS_VMAPh]j>)}(hDRM_GEM_DMA_DRIVER_OPS_VMAPh]jg)}(hDRM_GEM_DMA_DRIVER_OPS_VMAPh]jm)}(hjh]hDRM_GEM_DMA_DRIVER_OPS_VMAP}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhjnhNhNubh)}(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:364: ./include/drm/drm_gem_dma_helper.hhKhjnhhubj.)}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhj/ubah}(h]h ]h"]h$]h&]uh1j.hjAhKhj+ubh)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhj+ubh)}(hThis macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure for drivers that need the virtual address also on imported buffers.h](hMThis macro provides a shortcut for setting the default GEM operations in the }(hj`hhhNhNubh)}(h:c:type:`drm_driver`h]j)}(hjjh]h drm_driver}(hjlhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhj`ubhN structure for drivers that need the virtual address also on imported buffers.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhj+ubh)}(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 }(hjhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjh]hstruct drm_driver}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjubh.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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhj+ubeh}(h]h ]h"]h$]h&]uh1j.hjAhKhjnhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!DEFINE_DRM_GEM_DMA_FOPS (C macro)c.DEFINE_DRM_GEM_DMA_FOPShNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hDEFINE_DRM_GEM_DMA_FOPSh]j>)}(hDEFINE_DRM_GEM_DMA_FOPSh]jg)}(hDEFINE_DRM_GEM_DMA_FOPSh]jm)}(hjh]hDEFINE_DRM_GEM_DMA_FOPS}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhjnhNhNubh)}(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:364: ./include/drm/drm_gem_dma_helper.hhKhjnhhubj.)}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhj/ubah}(h]h ]h"]h$]h&]uh1j.hjAhKhjnhhubj)}(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)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjHubj)}(hhh]j)}(h*``name`` name for the generated structure h](j)}(h``name``h]j)}(hjmh]hname}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjgubj )}(hhh]h)}(h name for the generated structureh]h name for the generated structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjgubeh}(h]h ]h"]h$]h&]uh1jhjhKhjdubah}(h]h ]h"]h$]h&]uh1jhjHubh)}(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:364: ./include/drm/drm_gem_dma_helper.hhKhjHubh)}(hX2This macro autogenerates a suitable :c:type:`struct file_operations ` for DMA based drivers, which can be assigned to :c:type:`drm_driver.fops `. Note that this structure cannot be shared between drivers, because it contains a reference to the current module using THIS_MODULE.h](h$This macro autogenerates a suitable }(hjhhhNhNubh)}(h2:c:type:`struct file_operations `h]j)}(hjh]hstruct file_operations}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjfile_operationsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:364: ./include/drm/drm_gem_dma_helper.hhKhjubh1 for DMA based drivers, which can be assigned to }(hjhhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j)}(hjh]hdrm_driver.fops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhjhKhjubh. Note that this structure cannot be shared between drivers, because it contains a reference to the current module using THIS_MODULE.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjHubh)}(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:364: ./include/drm/drm_gem_dma_helper.hhKhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_dma_create (C function)c.drm_gem_dma_createhNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hTstruct drm_gem_dma_object * drm_gem_dma_create (struct drm_device *drm, size_t size)h]j>)}(hRstruct drm_gem_dma_object *drm_gem_dma_create(struct drm_device *drm, size_t size)h](jD)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj>hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKuubjV)}(h h]h }(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>hhhjOhKuubh)}(hhh]jm)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjahhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjcmodnameN classnameNjj)}j]j)}jdrm_gem_dma_createsbc.drm_gem_dma_createasbuh1hhj>hhhjOhKuubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>hhhjOhKuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhjOhKuubjg)}(hdrm_gem_dma_createh]jm)}(hjh]hdrm_gem_dma_create}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>hhhjOhKuubj)}(h%(struct drm_device *drm, size_t size)h](j)}(hstruct drm_device *drmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j}c.drm_gem_dma_createasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj/hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj1modnameN classnameNjj)}j]j}c.drm_gem_dma_createasbuh1hhj(ubjV)}(h h]h }(hjMhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(ubjm)}(hsizeh]hsize}(hj[hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj>hhhjOhKuubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj:hhhjOhKuubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1j7hjOhKuhj7hhubj)}(hhh]h)}(h&allocate an object with the given sizeh]h&allocate an object with the given size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKuhjhhubah}(h]h ]h"]h$]h&]uh1jhj7hhhjOhKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjnhNhNubj)}(hX**Parameters** ``struct drm_device *drm`` DRM device ``size_t size`` size of the object to allocate **Description** This function creates a DMA GEM object and allocates memory as backing store. The allocated memory will occupy a contiguous chunk of bus address space. For devices that are directly connected to the memory bus then the allocated memory will be physically contiguous. For devices that access through an IOMMU, then the allocated memory is not expected to be physically contiguous because having contiguous IOVAs is sufficient to meet a devices DMA requirements. **Return** A struct drm_gem_dma_object * on success or an ERR_PTR()-encoded negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKyhjubj)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKvhjubj )}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKvhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKvhjubj)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKwhjubj )}(hhh]h)}(hsize of the object to allocateh]hsize of the object to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKyhjubh)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKxhjubh)}(hX4For devices that are directly connected to the memory bus then the allocated memory will be physically contiguous. For devices that access through an IOMMU, then the allocated memory is not expected to be physically contiguous because having contiguous IOVAs is sufficient to meet a devices DMA requirements.h]hX4For devices that are directly connected to the memory bus then the allocated memory will be physically contiguous. For devices that access through an IOMMU, then the allocated memory is not expected to be physically contiguous because having contiguous IOVAs is sufficient to meet a devices DMA requirements.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chK{hjubh)}(h **Return**h]j)}(hjph]hReturn}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_dma_free (C function)c.drm_gem_dma_freehNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(h:void drm_gem_dma_free (struct drm_gem_dma_object *dma_obj)h]j>)}(h9void drm_gem_dma_free(struct drm_gem_dma_object *dma_obj)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(hdrm_gem_dma_freeh]jm)}(hdrm_gem_dma_freeh]hdrm_gem_dma_free}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h$(struct drm_gem_dma_object *dma_obj)h]j)}(h"struct drm_gem_dma_object *dma_objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_dma_freeasbuh1hhjubjV)}(h h]h }(hj0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdma_objh]hdma_obj}(hjKhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h)}(h/free resources associated with a DMA GEM objecth]h/free resources associated with a DMA GEM object}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjrhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjnhNhNubj)}(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)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjubj)}(hhh]j)}(h>``struct drm_gem_dma_object *dma_obj`` DMA GEM object to free h](j)}(h&``struct drm_gem_dma_object *dma_obj``h]j)}(hjh]h"struct drm_gem_dma_object *dma_obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjubj )}(hhh]h)}(hDMA GEM object to freeh]hDMA GEM object to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjubh)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.-drm_gem_dma_dumb_create_internal (C function)"c.drm_gem_dma_dumb_create_internalhNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(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>)}(h{int drm_gem_dma_dumb_create_internal(struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h](jc)}(hinth]hint}(hj6hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj2hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKubjV)}(h h]h }(hjEhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj2hhhjDhKubjg)}(h drm_gem_dma_dumb_create_internalh]jm)}(h drm_gem_dma_dumb_create_internalh]h drm_gem_dma_dumb_create_internal}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhjDhKubj)}(hW(struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h](j)}(hstruct drm_file *file_privh](jD)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjoubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjYsb"c.drm_gem_dma_dumb_create_internalasbuh1hhjoubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(h file_privh]h file_priv}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hstruct drm_device *drmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j"c.drm_gem_dma_dumb_create_internalasbuh1hhjubjV)}(h h]h }(hj!hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdrmh]hdrm}(hj<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(h!struct drm_mode_create_dumb *argsh](jD)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjQubjV)}(h h]h }(hjbhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQubh)}(hhh]jm)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hjshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjumodnameN classnameNjj)}j]j"c.drm_gem_dma_dumb_create_internalasbuh1hhjQubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhjDhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj.hhhjDhKubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1j7hjDhKhj+hhubj)}(hhh]h)}(hcreate a dumb buffer objecth]hcreate a dumb buffer object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjDhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjnhNhNubj)}(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:367: ./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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjubj )}(hhh]h)}(h8DRM file-private structure to create the dumb buffer forh]h8DRM file-private structure to create the dumb buffer for}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKhj-ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj,hKhjubj)}(h&``struct drm_device *drm`` DRM device h](j)}(h``struct drm_device *drm``h]j)}(hjPh]hstruct drm_device *drm}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjJubj )}(hhh]h)}(h DRM deviceh]h DRM device}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehKhjfubah}(h]h ]h"]h$]h&]uh1j hjJubeh}(h]h ]h"]h$]h&]uh1jhjehKhjubj)}(h1``struct drm_mode_create_dumb *args`` IOCTL data h](j)}(h%``struct drm_mode_create_dumb *args``h]j)}(hjh]h!struct drm_mode_create_dumb *args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjubj )}(hhh]h)}(h IOCTL datah]h IOCTL data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(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:367: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.$drm_gem_dma_dumb_create (C function)c.drm_gem_dma_dumb_createhNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hsint drm_gem_dma_dumb_create (struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h]j>)}(hrint drm_gem_dma_dumb_create(struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h](jc)}(hinth]hint}(hjShhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjOhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMubjV)}(h h]h }(hjbhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjOhhhjahMubjg)}(hdrm_gem_dma_dumb_createh]jm)}(hdrm_gem_dma_dumb_createh]hdrm_gem_dma_dumb_create}(hjthhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhjahMubj)}(hW(struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h](j)}(hstruct drm_file *file_privh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjvsbc.drm_gem_dma_dumb_createasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h file_privh]h file_priv}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_device *drmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj"modnameN classnameNjj)}j]jc.drm_gem_dma_dumb_createasbuh1hhjubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdrmh]hdrm}(hjYhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!struct drm_mode_create_dumb *argsh](jD)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjnubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjnubh)}(hhh]jm)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dma_dumb_createasbuh1hhjnubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjKhhhjahMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1j7hjahMhjHhhubj)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1j2hhhjnhNhNubj)}(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:367: ./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)}(hj4h]hstruct drm_file *file_priv}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj.ubj )}(hhh]h)}(h8DRM file-private structure to create the dumb buffer forh]h8DRM file-private structure to create the dumb buffer for}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1j hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubj)}(h&``struct drm_device *drm`` DRM device h](j)}(h``struct drm_device *drm``h]j)}(hjmh]hstruct drm_device *drm}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjgubj )}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhj+ubj)}(h1``struct drm_mode_create_dumb *args`` IOCTL data h](j)}(h%``struct drm_mode_create_dumb *args``h]j)}(hjh]h!struct drm_mode_create_dumb *args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM hjubj )}(hhh]h)}(h IOCTL datah]h IOCTL data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj+ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./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.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM&hjubh)}(h **Return**h]j)}(hj:h]hReturn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM+hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.*drm_gem_dma_get_unmapped_area (C function)c.drm_gem_dma_get_unmapped_areahNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(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>)}(hunsigned long drm_gem_dma_get_unmapped_area(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)h](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj{hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMEubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj{hhhjhMEubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj{hhhjhMEubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj{hhhjhMEubjg)}(hdrm_gem_dma_get_unmapped_areah]jm)}(hdrm_gem_dma_get_unmapped_areah]hdrm_gem_dma_get_unmapped_area}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{hhhjhMEubj)}(hd(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)h](j)}(hstruct file *filph](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_dma_get_unmapped_areaasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfilph]hfilp}(hj1hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long addrh](jc)}(hunsignedh]hunsigned}(hjJhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjFubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjFubjc)}(hlongh]hlong}(hjfhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjFubjV)}(h h]h }(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjFubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long lenh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long pgoffh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hpgoffh]hpgoff}(hj$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](jc)}(hunsignedh]hunsigned}(hj=hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj9ubjV)}(h h]h }(hjKhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj9ubjc)}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj9ubjV)}(h h]h }(hjghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj9ubjm)}(hflagsh]hflags}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhjhMEubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjwhhhjhMEubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1j7hjhMEhjthhubj)}(hhh]h)}(h*propose address for mapping in noMMU casesh]h*propose address for mapping in noMMU cases}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMEhjhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjnhNhNubj)}(hX **Parameters** ``struct file *filp`` file object ``unsigned long addr`` memory address ``unsigned long len`` buffer size ``unsigned long pgoff`` page offset ``unsigned long flags`` memory flags **Description** This function is used in noMMU platforms to propose address mapping for a given buffer. It's intended to be used as a direct handler for the struct :c:type:`file_operations.get_unmapped_area ` operation. **Return** mapping address on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMIhjubj)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMFhjubj )}(hhh]h)}(h file objecth]h file object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMFhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjubj)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMGhjubj )}(hhh]h)}(hmemory addressh]hmemory address}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMGhj/ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj.hMGhjubj)}(h"``unsigned long len`` buffer size h](j)}(h``unsigned long len``h]j)}(hjRh]hunsigned long len}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMHhjLubj )}(hhh]h)}(h buffer sizeh]h buffer size}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMHhjhubah}(h]h ]h"]h$]h&]uh1j hjLubeh}(h]h ]h"]h$]h&]uh1jhjghMHhjubj)}(h$``unsigned long pgoff`` page offset h](j)}(h``unsigned long pgoff``h]j)}(hjh]hunsigned long pgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMIhjubj )}(hhh]h)}(h page offseth]h page offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjubj)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMJhjubj )}(hhh]h)}(h memory flagsh]h memory flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubeh}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMLhjubh)}(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}(hj!hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjfile_operationsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMKhjubh operation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj<hMKhjubh)}(h **Return**h]j)}(hjIh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMPhjubh)}(h?mapping address on success or a negative error code on failure.h]h?mapping address on success or a negative error code on failure.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMQhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_gem_dma_print_info (C function)c.drm_gem_dma_print_infohNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hrvoid drm_gem_dma_print_info (const struct drm_gem_dma_object *dma_obj, struct drm_printer *p, unsigned int indent)h]j>)}(hqvoid drm_gem_dma_print_info(const struct drm_gem_dma_object *dma_obj, struct drm_printer *p, unsigned int indent)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gem_dma_print_infoh]jm)}(hdrm_gem_dma_print_infoh]hdrm_gem_dma_print_info}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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](jD)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_dma_print_infoasbuh1hhjubjV)}(h h]h }(hj$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdma_objh]hdma_obj}(hj?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_printer *ph](jD)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjTubjV)}(h h]h }(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjTubh)}(hhh]jm)}(h drm_printerh]h drm_printer}(hjvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]j c.drm_gem_dma_print_infoasbuh1hhjTubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(hjh]hp}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int indenth](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hindenth]hindent}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(h3Print :c:type:`drm_gem_dma_object` info for debugfsh](hPrint }(hj)hhhNhNubh)}(h:c:type:`drm_gem_dma_object`h]j)}(hj3h]hdrm_gem_dma_object}(hj5hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j c.drm_gem_dma_print_infoasbjdrm_gem_dma_objectuh1hhjOhKuhj)ubh info for debugfs}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1j2hhhjnhNhNubj)}(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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjmubj)}(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)}(hjh]h(const 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:367: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hjh]hstruct drm_printer *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubj )}(hhh]h)}(h DRM printerh]h DRM printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubj )}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjmubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjmubh)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_gem_dma_get_sg_table (C function)c.drm_gem_dma_get_sg_tablehNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hOstruct sg_table * drm_gem_dma_get_sg_table (struct drm_gem_dma_object *dma_obj)h]j>)}(hMstruct sg_table *drm_gem_dma_get_sg_table(struct drm_gem_dma_object *dma_obj)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_gem_dma_get_sg_tablesbc.drm_gem_dma_get_sg_tableasbuh1hhjhhhjhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hdrm_gem_dma_get_sg_tableh]jm)}(hjh]hdrm_gem_dma_get_sg_table}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h$(struct drm_gem_dma_object *dma_obj)h]j)}(h"struct drm_gem_dma_object *dma_objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dma_get_sg_tableasbuh1hhjubjV)}(h h]h }(hj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdma_objh]hdma_obj}(hjUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj|hhhjhMubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjyhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj|hhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjnhNhNubj)}(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)}(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:367: ./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:367: ./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&]uh1j hjubeh}(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&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j..drm_gem_dma_prime_import_sg_table (C function)#c.drm_gem_dma_prime_import_sg_tablehNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(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]j>)}(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](jD)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjchhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMubjV)}(h h]h }(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjchhhjthMubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}j!drm_gem_dma_prime_import_sg_tablesb#c.drm_gem_dma_prime_import_sg_tableasbuh1hhjchhhjthMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjchhhjthMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjthMubjg)}(h!drm_gem_dma_prime_import_sg_tableh]jm)}(hjh]h!drm_gem_dma_prime_import_sg_table}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjthMubj)}(hQ(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j#c.drm_gem_dma_prime_import_sg_tableasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!struct dma_buf_attachment *attachh](jD)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjMubjV)}(h h]h }(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjMubh)}(hhh]jm)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjohhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjlubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjqmodnameN classnameNjj)}j]j#c.drm_gem_dma_prime_import_sg_tableasbuh1hhjMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(hattachh]hattach}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sg_table *sgth](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j#c.drm_gem_dma_prime_import_sg_tableasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsgth]hsgt}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjthMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj_hhhjthMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1j7hjthMhj\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}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj? hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjthMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZ jjZ jjjuh1j2hhhjnhNhNubj)}(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)}(hjd h]h Parameters}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj^ ubj)}(hhh](j)}(h1``struct drm_device *dev`` device to import into h](j)}(h``struct drm_device *dev``h]j)}(hj h]hstruct drm_device *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj} ubj )}(hhh]h)}(hdevice to import intoh]hdevice to import into}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j hj} ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjz ubj)}(h9``struct dma_buf_attachment *attach`` DMA-BUF attachment h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hj h]h!struct dma_buf_attachment *attach}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubj )}(hhh]h)}(hDMA-BUF attachmenth]hDMA-BUF attachment}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjz ubj)}(h>``struct sg_table *sgt`` scatter/gather table of pinned pages h](j)}(h``struct sg_table *sgt``h]j)}(hj h]hstruct sg_table *sgt}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubj )}(hhh]h)}(h$scatter/gather table of pinned pagesh]h$scatter/gather table of pinned pages}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjz ubeh}(h]h ]h"]h$]h&]uh1jhj^ ubh)}(h**Description**h]j)}(hj0 h]h Description}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj. ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj^ ubh)}(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 }(hjF hhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j)}(hjP h]h$drm_driver.gem_prime_import_sg_table}(hjR hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjN ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjF ubh callback.}(hjF hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjm hMhj^ ubh)}(h **Return**h]j)}(hjz h]hReturn}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj^ ubh)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj^ ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_dma_vmap (C function)c.drm_gem_dma_vmaphNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hPint drm_gem_dma_vmap (struct drm_gem_dma_object *dma_obj, struct iosys_map *map)h]j>)}(hOint drm_gem_dma_vmap(struct drm_gem_dma_object *dma_obj, struct iosys_map *map)h](jc)}(hinth]hint}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhj hMubjg)}(hdrm_gem_dma_vmaph]jm)}(hdrm_gem_dma_vmaph]hdrm_gem_dma_vmap}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(h;(struct drm_gem_dma_object *dma_obj, struct iosys_map *map)h](j)}(h"struct drm_gem_dma_object *dma_objh](jD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jj sbc.drm_gem_dma_vmapasbuh1hhj ubjV)}(h h]h }(hj: hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubj)}(hjh]h*}(hjH hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hdma_objh]hdma_obj}(hjU hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct iosys_map *maph](jD)}(hjh]hstruct}(hjn hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjj ubjV)}(h h]h }(hj{ hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjj ubh)}(hhh]jm)}(h iosys_maph]h iosys_map}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j6 c.drm_gem_dma_vmapasbuh1hhjj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj ubjm)}(hmaph]hmap}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj hMhj hhubj)}(hhh]h)}(hmap a DMA GEM object into the kernel’s virtual address space}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1j2hhhjnhNhNubj)}(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)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj 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)}(hj0 h]h"struct drm_gem_dma_object *dma_obj}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj. ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj* ubj )}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjE hMhjF ubah}(h]h ]h"]h$]h&]uh1j hj* ubeh}(h]h ]h"]h$]h&]uh1jhjE hMhj' ubj)}(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)}(hji h]hstruct iosys_map *map}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjc 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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubah}(h]h ]h"]h$]h&]uh1j hjc 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&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj 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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj 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&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_dma_mmap (C function)c.drm_gem_dma_mmaphNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(hUint drm_gem_dma_mmap (struct drm_gem_dma_object *dma_obj, struct vm_area_struct *vma)h]j>)}(hTint drm_gem_dma_mmap(struct drm_gem_dma_object *dma_obj, struct vm_area_struct *vma)h](jc)}(hinth]hint}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhj hMubjg)}(hdrm_gem_dma_mmaph]jm)}(hdrm_gem_dma_mmaph]hdrm_gem_dma_mmap}(hj2 hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj. ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(h@(struct drm_gem_dma_object *dma_obj, struct vm_area_struct *vma)h](j)}(h"struct drm_gem_dma_object *dma_objh](jD)}(hjh]hstruct}(hjN hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjJ ubjV)}(h h]h }(hj[ hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjJ ubh)}(hhh]jm)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjl hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhji ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjn modnameN classnameNjj)}j]j)}jj4 sbc.drm_gem_dma_mmapasbuh1hhjJ ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjJ ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubjm)}(hdma_objh]hdma_obj}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjJ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjF ubj)}(hstruct vm_area_struct *vmah](jD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j c.drm_gem_dma_mmapasbuh1hhj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjF ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj hMhj hhubj)}(hhh]h)}(h%memory-map an exported DMA GEM objecth]h%memory-map an exported DMA GEM object}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj>hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1j2hhhjnhNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj]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)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj|ubj )}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjyubj)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubj )}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjyubeh}(h]h ]h"]h$]h&]uh1jhj]ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj]ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj]ubh)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj]ubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.3drm_gem_dma_prime_import_sg_table_vmap (C function)(c.drm_gem_dma_prime_import_sg_table_vmaphNtauh1j!hjnhhhNhNubj3)}(hhh](j8)}(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]j>)}(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](jD)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj^hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM*ubjV)}(h h]h }(hjphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj^hhhjohM*ubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}j&drm_gem_dma_prime_import_sg_table_vmapsb(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhj^hhhjohM*ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj^hhhjohM*ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhjohM*ubjg)}(h&drm_gem_dma_prime_import_sg_table_vmaph]jm)}(hjh]h&drm_gem_dma_prime_import_sg_table_vmap}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhjohM*ubj)}(hQ(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hj3hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!struct dma_buf_attachment *attachh](jD)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjHubjV)}(h h]h }(hjYhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjHubh)}(hhh]jm)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjlmodnameN classnameNjj)}j]j(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhjHubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hattachh]hattach}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sg_table *sgth](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhjohM*ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjZhhhjohM*ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1j7hjohM*hjWhhubj)}(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}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM*hj:hhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjohM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1j2hhhjnhNhNubj)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct dma_buf_attachment *attach`` DMA-BUF attachment ``struct sg_table *sgt`` Scatter/gather table of pinned pages **Description** This function imports a scatter/gather table using drm_gem_dma_prime_import_sg_table() and uses dma_buf_vmap() to get the kernel virtual address. This ensures that a DMA GEM object always has its virtual address set. This address is released when the object is freed. This function can be used as the :c:type:`drm_driver.gem_prime_import_sg_table ` callback. The :c:type:`DRM_GEM_DMA_DRIVER_OPS_VMAP` macro provides a shortcut to set the necessary DRM driver operations. **Return** A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.h](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM.hjYubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj~h]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM,hjxubj )}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM,hjubah}(h]h ]h"]h$]h&]uh1j hjxubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjuubj)}(h9``struct dma_buf_attachment *attach`` DMA-BUF attachment h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hjh]h!struct dma_buf_attachment *attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM-hjubj )}(hhh]h)}(hDMA-BUF attachmenth]hDMA-BUF attachment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjuubj)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM.hjubj )}(hhh]h)}(h$Scatter/gather table of pinned pagesh]h$Scatter/gather table of pinned pages}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjuubeh}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM0hjYubh)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM/hjYubh)}(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 }(hjPhhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j)}(hjZh]h$drm_driver.gem_prime_import_sg_table}(hj\hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM4hjPubh callback. The }(hjPhhhNhNubh)}(h%:c:type:`DRM_GEM_DMA_DRIVER_OPS_VMAP`h]j)}(hj~h]hDRM_GEM_DMA_DRIVER_OPS_VMAP}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_GEM_DMA_DRIVER_OPS_VMAPuh1hhjwhM4hjPubhF macro provides a shortcut to set the necessary DRM driver operations.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhM4hjYubh)}(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:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM8hjYubh)}(h]A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.h]h]A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:367: ./drivers/gpu/drm/drm_gem_dma_helper.chM9hjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubeh}(h]"gem-dma-helper-functions-referenceah ]h"]"gem dma helper functions referenceah$]h&]uh1hhjzhhhhhMgubh)}(hhh](h)}(h#GEM SHMEM Helper Function Referenceh]h#GEM SHMEM Helper Function Reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMsubh)}(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:373: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_shmem_objectuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:373: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhjubh%. For GEM callback helpers in struct }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj)h]hdrm_gem_object}(hj+hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj"hKhjubh 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&]uh1hhj"hKhjhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_shmem_object (C struct)c.drm_gem_shmem_objecthNtauh1j!hjhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhNubj3)}(hhh](j8)}(hdrm_gem_shmem_objecth]j>)}(hstruct drm_gem_shmem_objecth](jD)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjfhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjfhhhjwhKubjg)}(hdrm_gem_shmem_objecth]jm)}(hjdh]hdrm_gem_shmem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhjwhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjbhhhjwhKubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1j7hjwhKhj_hhubj)}(hhh]h)}(hGEM object backed by shmemh]hGEM object backed by shmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjwhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhjhj^hNubj)}(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:376: ./include/drm/drm_gem_shmem_helper.hhKhjubjT)}(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&]jjuh1jSh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./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:376: ./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:376: ./include/drm/drm_gem_shmem_helper.hhKhjubj )}(hhh]h)}(hBase GEM objecth]hBase GEM object}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hKhj/ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj.hKhjubj)}(h``pages`` Page table h](j)}(h ``pages``h]j)}(hjRh]hpages}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjLubj )}(hhh]h)}(h Page tableh]h Page table}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKhjhubah}(h]h ]h"]h$]h&]uh1j hjLubeh}(h]h ]h"]h$]h&]uh1jhjghKhjubj)}(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)}(hjh]hpages_use_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhK%hjubj )}(hhh]h)}(hRReference count on the pages table. The pages are put when the count reaches zero.h]hRReference count on the pages table. The pages are put when the count reaches zero.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhK$hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhK%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:376: ./include/drm/drm_gem_shmem_helper.hhK0hjubj )}(hhh](h)}(h*Reference count on the pinned pages table.h]h*Reference count on the pinned pages table.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./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:376: ./include/drm/drm_gem_shmem_helper.hhK.hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhK;hjubj )}(hhh](h)}(hState for madviseh]hState for madvise}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhK7hj$ubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhK9hj$ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj#hK;hjubj)}(hd``madv_list`` List entry for madvise tracking Typically used by drivers to track purgeable objects h](j)}(h ``madv_list``h]j)}(hjWh]h madv_list}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKBhjQubj )}(hhh](h)}(hList entry for madvise trackingh]hList entry for madvise tracking}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhK@hjmubh)}(h4Typically used by drivers to track purgeable objectsh]h4Typically used by drivers to track purgeable objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKBhjmubeh}(h]h ]h"]h$]h&]uh1j hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhKBhjubj)}(h8``sgt`` Scatter/gather table for imported PRIME buffers 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:376: ./include/drm/drm_gem_shmem_helper.hhKGhjubj )}(hhh]h)}(h/Scatter/gather table for imported PRIME buffersh]h/Scatter/gather table for imported PRIME buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKGhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKGhjubj)}(h7``vaddr`` Kernel virtual address of the backing memory h](j)}(h ``vaddr``h]j)}(hjh]hvaddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./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&]uh1j hjubeh}(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:376: ./include/drm/drm_gem_shmem_helper.hhKRhj ubj )}(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.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKQhj'ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKRhjubj)}(hC``pages_mark_dirty_on_put`` Mark pages as dirty when they are put. h](j)}(h``pages_mark_dirty_on_put``h]j)}(hjKh]hpages_mark_dirty_on_put}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKYhjEubj )}(hhh]h)}(h&Mark pages as dirty when they are put.h]h&Mark pages as dirty when they are put.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKYhjaubah}(h]h ]h"]h$]h&]uh1j hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKYhjubj)}(hI``pages_mark_accessed_on_put`` Mark pages as accessed when they are put. h](j)}(h``pages_mark_accessed_on_put``h]j)}(hjh]hpages_mark_accessed_on_put}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK`hjubah}(h]h ]h"]h$]h&]uh1j hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhK`hjubj)}(hG``map_wc`` map object write-combined (instead of using shmem defaults).h](j)}(h ``map_wc``h]j)}(hjh]hmap_wc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKfhjubj )}(hhh]h)}(h)}(h:void drm_gem_shmem_object_free(struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKubjV)}(h h]h }(hj&hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj%hKubjg)}(hdrm_gem_shmem_object_freeh]jm)}(hdrm_gem_shmem_object_freeh]hdrm_gem_shmem_object_free}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj%hKubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjPubjV)}(h h]h }(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjPubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjrhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjtmodnameN classnameNjj)}j]j)}jj:sbc.drm_gem_shmem_object_freeasbuh1hhjPubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj%hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj%hKhj hhubj)}(hhh]h)}(h,GEM object function for drm_gem_shmem_free()h]h,GEM object function for drm_gem_shmem_free()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhj^hNubj)}(hX**Parameters** ``struct drm_gem_object *obj`` GEM object to free **Description** This 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](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:376: ./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:376: ./include/drm/drm_gem_shmem_helper.hhKhjubj )}(hhh]h)}(hGEM object to freeh]hGEM object to free}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKhj.ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj-hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./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 }(hjihhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j)}(hjsh]hdrm_gem_object_funcs.free}(hjuhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjiubh handler.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj^hNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.,drm_gem_shmem_object_print_info (C function)!c.drm_gem_shmem_object_print_infohNtauh1j!hjhhhj^hNubj3)}(hhh](j8)}(hsvoid drm_gem_shmem_object_print_info (struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h]j>)}(hrvoid drm_gem_shmem_object_print_info(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(hdrm_gem_shmem_object_print_infoh]jm)}(hdrm_gem_shmem_object_print_infoh]hdrm_gem_shmem_object_print_info}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(hN(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h](j)}(hstruct drm_printer *ph](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb!c.drm_gem_shmem_object_print_infoasbuh1hhjubjV)}(h h]h }(hj6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hjQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int indenth](jc)}(hunsignedh]hunsigned}(hjihhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjeubjV)}(h h]h }(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjeubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjeubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjeubjm)}(hindenth]hindent}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const struct drm_gem_object *objh](jD)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j2!c.drm_gem_shmem_object_print_infoasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hj,hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h)}(h5Print :c:type:`drm_gem_shmem_object` info for debugfsh](hPrint }(hjVhhhNhNubh)}(h:c:type:`drm_gem_shmem_object`h]j)}(hj`h]hdrm_gem_shmem_object}(hjbhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j2!c.drm_gem_shmem_object_print_infoasbjdrm_gem_shmem_objectuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjVubh info for debugfs}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjShhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhj^hNubj)}(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)}(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:376: ./include/drm/drm_gem_shmem_helper.hhKhjubj)}(hhh](j)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hjh]hstruct drm_printer *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjubj )}(hhh]h)}(h DRM printerh]h DRM printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h.``unsigned int indent`` Tab indentation level h](j)}(h``unsigned int indent``h]j)}(hjh]hunsigned int indent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h0``const struct drm_gem_object *obj`` GEM object h](j)}(h$``const struct drm_gem_object *obj``h]j)}(hj2h]h const struct drm_gem_object *obj}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhj,ubj )}(hhh]h)}(h GEM objecth]h GEM object}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhKhjHubah}(h]h ]h"]h$]h&]uh1j hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjubh)}(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 }(hjhhhNhNubh)}(h@:c:type:`drm_gem_object_funcs.print_info `h]j)}(hjh]hdrm_gem_object_funcs.print_info}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjubh handler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj^hNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_gem_shmem_object_pin (C function)c.drm_gem_shmem_object_pinhNtauh1j!hjhhhj^hNubj3)}(hhh](j8)}(h9int drm_gem_shmem_object_pin (struct drm_gem_object *obj)h]j>)}(h8int drm_gem_shmem_object_pin(struct drm_gem_object *obj)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(hdrm_gem_shmem_object_pinh]jm)}(hdrm_gem_shmem_object_pinh]hdrm_gem_shmem_object_pin}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj0hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj2modnameN classnameNjj)}j]j)}jjsbc.drm_gem_shmem_object_pinasbuh1hhjubjV)}(h h]h }(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjkhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h)}(h+GEM object function for drm_gem_shmem_pin()h]h+GEM object function for drm_gem_shmem_pin()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhj^hNubj)}(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)}(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:376: ./include/drm/drm_gem_shmem_helper.hhKhjubj)}(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:376: ./include/drm/drm_gem_shmem_helper.hhKhjubj )}(hhh]h)}(h GEM objecth]h GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:376: ./include/drm/drm_gem_shmem_helper.hhKhjubh)}(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)}(hj1h]hdrm_gem_object_funcs.pin}(hj3hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhj'ubh handler.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjNhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj^hNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_gem_shmem_object_unpin (C function)c.drm_gem_shmem_object_unpinhNtauh1j!hjhhhj^hNubj3)}(hhh](j8)}(h)}(h;void drm_gem_shmem_object_unpin(struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjuhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuhhhjhKubjg)}(hdrm_gem_shmem_object_unpinh]jm)}(hdrm_gem_shmem_object_unpinh]hdrm_gem_shmem_object_unpin}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhjhKubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_shmem_object_unpinasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjuhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjqhhhjhKubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjnhhubj)}(hhh]h)}(h-GEM object function for drm_gem_shmem_unpin()h]h-GEM object function for drm_gem_shmem_unpin()}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhj6hhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1j2hhhjhj^hNubj)}(h**Parameters** ``struct drm_gem_object *obj`` GEM object **Description** This 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](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjUubj)}(hhh]j)}(h*``struct drm_gem_object *obj`` GEM object h](j)}(h``struct drm_gem_object *obj``h]j)}(hjzh]hstruct drm_gem_object *obj}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjtubj )}(hhh]h)}(h GEM objecth]h GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjtubeh}(h]h ]h"]h$]h&]uh1jhjhKhjqubah}(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&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjUubh)}(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 }(hjhhhNhNubh)}(h;:c:type:`drm_gem_object_funcs.unpin `h]j)}(hjh]hdrm_gem_object_funcs.unpin}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjubh handler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj^hNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j..drm_gem_shmem_object_get_sg_table (C function)#c.drm_gem_shmem_object_get_sg_tablehNtauh1j!hjhhhj^hNubj3)}(hhh](j8)}(hPstruct sg_table * drm_gem_shmem_object_get_sg_table (struct drm_gem_object *obj)h]j>)}(hNstruct sg_table *drm_gem_shmem_object_get_sg_table(struct drm_gem_object *obj)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKubjV)}(h h]h }(hj+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj*hKubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hj<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>modnameN classnameNjj)}j]j)}j!drm_gem_shmem_object_get_sg_tablesb#c.drm_gem_shmem_object_get_sg_tableasbuh1hhjhhhj*hKubjV)}(h h]h }(hj]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj*hKubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj*hKubjg)}(h!drm_gem_shmem_object_get_sg_tableh]jm)}(hjZh]h!drm_gem_shmem_object_get_sg_table}(hj|hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj*hKubj)}(h(struct drm_gem_object *obj)h]j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jX#c.drm_gem_shmem_object_get_sg_tableasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj*hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj*hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj*hKhjhhubj)}(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:376: ./include/drm/drm_gem_shmem_helper.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0 jj0 jjjuh1j2hhhjhj^hNubj)}(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&]uh1jhj8 ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhj4 ubj)}(hhh]j)}(h*``struct drm_gem_object *obj`` GEM object h](j)}(h``struct drm_gem_object *obj``h]j)}(hjY h]hstruct drm_gem_object *obj}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhjS ubj )}(hhh]h)}(h GEM objecth]h GEM object}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn hKhjo ubah}(h]h ]h"]h$]h&]uh1j hjS ubeh}(h]h ]h"]h$]h&]uh1jhjn hKhjP ubah}(h]h ]h"]h$]h&]uh1jhj4 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:376: ./include/drm/drm_gem_shmem_helper.hhKhj4 ubh)}(hThis function wraps drm_gem_shmem_get_sg_table(). Drivers that employ the shmem helpers should use it as their :c:type:`drm_gem_object_funcs.get_sg_table ` handler.h](hoThis function wraps drm_gem_shmem_get_sg_table(). Drivers that employ the shmem helpers should use it as their }(hj hhhNhNubh)}(hB:c:type:`drm_gem_object_funcs.get_sg_table `h]j)}(hj h]h!drm_gem_object_funcs.get_sg_table}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhKhj ubh handler.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhj4 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:376: ./include/drm/drm_gem_shmem_helper.hhKhj4 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:376: ./include/drm/drm_gem_shmem_helper.hhKhj4 ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj^hNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.&drm_gem_shmem_object_mmap (C function)c.drm_gem_shmem_object_mmaphNtauh1j!hjhhhj^hNubj3)}(hhh](j8)}(hVint drm_gem_shmem_object_mmap (struct drm_gem_object *obj, struct vm_area_struct *vma)h]j>)}(hUint drm_gem_shmem_object_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)h](jc)}(hinth]hint}(hj#!hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj!hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhMubjV)}(h h]h }(hj2!hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj!hhhj1!hMubjg)}(hdrm_gem_shmem_object_mmaph]jm)}(hdrm_gem_shmem_object_mmaph]hdrm_gem_shmem_object_mmap}(hjD!hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhhj1!hMubj)}(h8(struct drm_gem_object *obj, struct vm_area_struct *vma)h](j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hj`!hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj\!ubjV)}(h h]h }(hjm!hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\!ubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj~!hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj{!ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj!modnameN classnameNjj)}j]j)}jjF!sbc.drm_gem_shmem_object_mmapasbuh1hhj\!ubjV)}(h h]h }(hj!hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\!ubjm)}(hobjh]hobj}(hj!hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj\!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjX!ubj)}(hstruct vm_area_struct *vmah](jD)}(hjh]hstruct}(hj!hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj!ubjV)}(h h]h }(hj!hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj!ubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hj!hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj!modnameN classnameNjj)}j]j!c.drm_gem_shmem_object_mmapasbuh1hhj!ubjV)}(h h]h }(hj"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj!ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hvmah]hvma}(hj)"hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjX!ubeh}(h]h ]h"]h$]h&]jjuh1jhj!hhhj1!hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj!hhhj1!hMubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1j7hj1!hMhj!hhubj)}(hhh]h)}(h,GEM object function for drm_gem_shmem_mmap()h]h,GEM object function for drm_gem_shmem_mmap()}(hjS"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhMhjP"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj1!hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjk"jjk"jjjuh1j2hhhjhj^hNubj)}(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)}(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:376: ./include/drm/drm_gem_shmem_helper.hhM hjo"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:376: ./include/drm/drm_gem_shmem_helper.hhMhj"ubj )}(hhh]h)}(h GEM objecth]h GEM object}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1j hj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhj"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:376: ./include/drm/drm_gem_shmem_helper.hhM hj"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"hM hj"ubah}(h]h ]h"]h$]h&]uh1j hj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM hj"ubeh}(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:376: ./include/drm/drm_gem_shmem_helper.hhM hjo"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 ](jjc-typeeh"]h$]h&]uh1jhj&#ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhM hj#ubh handler.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjE#hM hjo"ubh)}(h **Return**h]j)}(hjR#h]hReturn}(hjT#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP#ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhM hjo"ubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjh#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhMhjo"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhj^hNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."DRM_GEM_SHMEM_DRIVER_OPS (C macro)c.DRM_GEM_SHMEM_DRIVER_OPShNtauh1j!hjhhhj^hNubj3)}(hhh](j8)}(hDRM_GEM_SHMEM_DRIVER_OPSh]j>)}(hDRM_GEM_SHMEM_DRIVER_OPSh]jg)}(hDRM_GEM_SHMEM_DRIVER_OPSh]jm)}(hj#h]hDRM_GEM_SHMEM_DRIVER_OPS}(hj#hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./include/drm/drm_gem_shmem_helper.hhM&ubah}(h]h ]h"]h$]h&]jjjuh1j=jjhj#hhhj#hM&ubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1j7hj#hM&hj#hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj#hhhj#hM&ubeh}(h]h ](jmacroeh"]h$]h&]jjjj#jj#jjjuh1j2hhhjhj^hNubh)}(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:376: ./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:376: ./include/drm/drm_gem_shmem_helper.hhM&hj#ubah}(h]h ]h"]h$]h&]uh1j.hj#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:376: ./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 ](jjc-typeeh"]h$]h&]uh1jhj $ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:376: ./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&]uh1j.hj#hM&hjhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!drm_gem_shmem_create (C function)c.drm_gem_shmem_createhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hXstruct drm_gem_shmem_object * drm_gem_shmem_create (struct drm_device *dev, size_t size)h]j>)}(hVstruct drm_gem_shmem_object *drm_gem_shmem_create(struct drm_device *dev, size_t size)h](jD)}(hjh]hstruct}(hji$hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChje$hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKsubjV)}(h h]h }(hjw$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhje$hhhjv$hKsubh)}(hhh]jm)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$modnameN classnameNjj)}j]j)}jdrm_gem_shmem_createsbc.drm_gem_shmem_createasbuh1hhje$hhhjv$hKsubjV)}(h h]h }(hj$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhje$hhhjv$hKsubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje$hhhjv$hKsubjg)}(hdrm_gem_shmem_createh]jm)}(hj$h]hdrm_gem_shmem_create}(hj$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhje$hhhjv$hKsubj)}(h%(struct drm_device *dev, size_t size)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj$ubjV)}(h h]h }(hj$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj$ubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hj%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj%modnameN classnameNjj)}j]j$c.drm_gem_shmem_createasbuh1hhj$ubjV)}(h h]h }(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj$ubj)}(hjh]h*}(hj-%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(hdevh]hdev}(hj:%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjV%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjS%ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjX%modnameN classnameNjj)}j]j$c.drm_gem_shmem_createasbuh1hhjO%ubjV)}(h h]h }(hjt%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjO%ubjm)}(hsizeh]hsize}(hj%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjO%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubeh}(h]h ]h"]h$]h&]jjuh1jhje$hhhjv$hKsubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhja$hhhjv$hKsubah}(h]j\$ah ](jjeh"]h$]h&]jj)jhuh1j7hjv$hKshj^$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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKshj%hhubah}(h]h ]h"]h$]h&]uh1jhj^$hhhjv$hKsubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1j2hhhjhNhNubj)}(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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKwhj%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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKthj%ubj )}(hhh]h)}(h DRM deviceh]h DRM device}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKthj&ubah}(h]h ]h"]h$]h&]uh1j hj%ubeh}(h]h ]h"]h$]h&]uh1jhj&hKthj%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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKuhj &ubj )}(hhh]h)}(hSize of the object to allocateh]hSize of the object to allocate}(hj?&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;&hKuhj<&ubah}(h]h ]h"]h$]h&]uh1j hj &ubeh}(h]h ]h"]h$]h&]uh1jhj;&hKuhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%ubh)}(h**Description**h]j)}(hja&h]h Description}(hjc&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_&ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKwhj%ubh)}(h)This function creates a shmem GEM object.h]h)This function creates a shmem GEM object.}(hjw&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKvhj%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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKxhj%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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKyhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.*drm_gem_shmem_create_with_mnt (C function)c.drm_gem_shmem_create_with_mnthNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hystruct drm_gem_shmem_object * drm_gem_shmem_create_with_mnt (struct drm_device *dev, size_t size, struct vfsmount *gemfs)h]j>)}(hwstruct drm_gem_shmem_object *drm_gem_shmem_create_with_mnt(struct drm_device *dev, size_t size, struct vfsmount *gemfs)h](jD)}(hjh]hstruct}(hj&hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj&hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKubjV)}(h h]h }(hj&hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj&hhhj&hKubh)}(hhh]jm)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj&hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj&modnameN classnameNjj)}j]j)}jdrm_gem_shmem_create_with_mntsbc.drm_gem_shmem_create_with_mntasbuh1hhj&hhhj&hKubjV)}(h h]h }(hj 'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj&hhhj&hKubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj&hKubjg)}(hdrm_gem_shmem_create_with_mnth]jm)}(hj 'h]hdrm_gem_shmem_create_with_mnt}(hj,'hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj('ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhj&hKubj)}(h=(struct drm_device *dev, size_t size, struct vfsmount *gemfs)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjG'hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjC'ubjV)}(h h]h }(hjT'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjC'ubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hje'hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjb'ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjg'modnameN classnameNjj)}j]j'c.drm_gem_shmem_create_with_mntasbuh1hhjC'ubjV)}(h h]h }(hj'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjC'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC'ubjm)}(hdevh]hdev}(hj'hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjC'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?'ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj'hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj'modnameN classnameNjj)}j]j'c.drm_gem_shmem_create_with_mntasbuh1hhj'ubjV)}(h h]h }(hj'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj'ubjm)}(hsizeh]hsize}(hj'hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?'ubj)}(hstruct vfsmount *gemfsh](jD)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj'ubjV)}(h h]h }(hj (hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj'ubh)}(hhh]jm)}(hvfsmounth]hvfsmount}(hj(hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj(modnameN classnameNjj)}j]j'c.drm_gem_shmem_create_with_mntasbuh1hhj'ubjV)}(h h]h }(hj;(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj'ubj)}(hjh]h*}(hjI(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hgemfsh]hgemfs}(hjV(hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?'ubeh}(h]h ]h"]h$]h&]jjuh1jhj&hhhj&hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj&hhhj&hKubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1j7hj&hKhj&hhubj)}(hhh]h)}(h)}(h;void drm_gem_shmem_free(struct drm_gem_shmem_object *shmem)h](jc)}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj)hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKubjV)}(h h]h }(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj)hhhj)hKubjg)}(hdrm_gem_shmem_freeh]jm)}(hdrm_gem_shmem_freeh]hdrm_gem_shmem_free}(hj)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhj)hKubj)}(h$(struct drm_gem_shmem_object *shmem)h]j)}(h"struct drm_gem_shmem_object *shmemh](jD)}(hjh]hstruct}(hj*hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj*ubjV)}(h h]h }(hj$*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj*ubh)}(hhh]jm)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj5*hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj2*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj7*modnameN classnameNjj)}j]j)}jj)sbc.drm_gem_shmem_freeasbuh1hhj*ubjV)}(h h]h }(hjU*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj*ubj)}(hjh]h*}(hjc*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(hshmemh]hshmem}(hjp*hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubah}(h]h ]h"]h$]h&]jjuh1jhj)hhhj)hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj)hhhj)hKubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1j7hj)hKhj)hhubj)}(hhh]h)}(h1Free resources associated with a shmem GEM objecth]h1Free resources associated with a shmem GEM object}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj*hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1j2hhhjhNhNubj)}(h**Parameters** ``struct drm_gem_shmem_object *shmem`` shmem GEM object to free **Description** This function cleans up the GEM object state and frees the memory used to store the object itself.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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj*ubj)}(hhh]j)}(h@``struct drm_gem_shmem_object *shmem`` shmem GEM object to free 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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj*ubj )}(hhh]h)}(hshmem GEM object to freeh]hshmem GEM object to free}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKhj*ubah}(h]h ]h"]h$]h&]uh1j hj*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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj*ubh)}(hbThis function cleans up the GEM object state and frees the memory used to store the object itself.h]hbThis function cleans up the GEM object state and frees the memory used to store the object itself.}(hj,+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_shmem_pin (C function)c.drm_gem_shmem_pinhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h:int drm_gem_shmem_pin (struct drm_gem_shmem_object *shmem)h]j>)}(h9int drm_gem_shmem_pin(struct drm_gem_shmem_object *shmem)h](jc)}(hinth]hint}(hj[+hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjW+hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubjV)}(h h]h }(hjj+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjW+hhhji+hMubjg)}(hdrm_gem_shmem_pinh]jm)}(hdrm_gem_shmem_pinh]hdrm_gem_shmem_pin}(hj|+hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjx+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjW+hhhji+hMubj)}(h$(struct drm_gem_shmem_object *shmem)h]j)}(h"struct drm_gem_shmem_object *shmemh](jD)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj+ubjV)}(h h]h }(hj+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj+ubh)}(hhh]jm)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj+hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj+modnameN classnameNjj)}j]j)}jj~+sbc.drm_gem_shmem_pinasbuh1hhj+ubjV)}(h h]h }(hj+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(hshmemh]hshmem}(hj+hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubah}(h]h ]h"]h$]h&]jjuh1jhjW+hhhji+hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjS+hhhji+hMubah}(h]jN+ah ](jjeh"]h$]h&]jj)jhuh1j7hji+hMhjP+hhubj)}(hhh]h)}(h(Pin backing pages for a shmem GEM objecth]h(Pin backing pages for a shmem GEM object}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj,hhubah}(h]h ]h"]h$]h&]uh1jhjP+hhhji+hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3,jj3,jjjuh1j2hhhjhNhNubj)}(h**Parameters** ``struct drm_gem_shmem_object *shmem`` shmem GEM object **Description** This function makes sure the backing pages are pinned in memory while the buffer is exported. **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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj7,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&]uh1jhjZ,ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjV,ubj )}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hju,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq,hMhjr,ubah}(h]h ]h"]h$]h&]uh1j hjV,ubeh}(h]h ]h"]h$]h&]uh1jhjq,hMhjS,ubah}(h]h ]h"]h$]h&]uh1jhj7,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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj7,ubh)}(h]This function makes sure the backing pages are pinned in memory while the buffer is exported.h]h]This function makes sure the backing pages are pinned in memory while the buffer is exported.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj7,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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj7,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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj7,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gem_shmem_unpin (C function)c.drm_gem_shmem_unpinhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h=void drm_gem_shmem_unpin (struct drm_gem_shmem_object *shmem)h]j>)}(h)}(hoint drm_gem_shmem_dumb_create(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h](jc)}(hinth]hint}(hj.hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj.hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubjV)}(h h]h }(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj.hhhj.hMubjg)}(hdrm_gem_shmem_dumb_createh]jm)}(hdrm_gem_shmem_dumb_createh]hdrm_gem_shmem_dumb_create}(hj.hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj.hMubj)}(hR(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h](j)}(hstruct drm_file *fileh](jD)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj.ubjV)}(h h]h }(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj.ubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hj.hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj.modnameN classnameNjj)}j]j)}jj.sbc.drm_gem_shmem_dumb_createasbuh1hhj.ubjV)}(h h]h }(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj.ubj)}(hjh]h*}(hj /hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjm)}(hfileh]hfile}(hj/hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hj3/hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj//ubjV)}(h h]h }(hj@/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj//ubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjQ/hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjN/ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjS/modnameN classnameNjj)}j]j.c.drm_gem_shmem_dumb_createasbuh1hhj//ubjV)}(h h]h }(hjo/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj//ubj)}(hjh]h*}(hj}/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj//ubjm)}(hdevh]hdev}(hj/hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj//ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(h!struct drm_mode_create_dumb *argsh](jD)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj/ubjV)}(h h]h }(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/ubh)}(hhh]jm)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hj/hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj/modnameN classnameNjj)}j]j.c.drm_gem_shmem_dumb_createasbuh1hhj/ubjV)}(h h]h }(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hargsh]hargs}(hj/hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubeh}(h]h ]h"]h$]h&]jjuh1jhj.hhhj.hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj|.hhhj.hMubah}(h]jw.ah ](jjeh"]h$]h&]jj)jhuh1j7hj.hMhjy.hhubj)}(hhh]h)}(h!Create a dumb shmem buffer objecth]h!Create a dumb shmem buffer object}(hj$0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj!0hhubah}(h]h ]h"]h$]h&]uh1jhjy.hhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<0jj<0jjjuh1j2hhhjhNhNubj)}(hX**Parameters** ``struct drm_file *file`` DRM file structure to create the dumb buffer for ``struct drm_device *dev`` DRM device ``struct drm_mode_create_dumb *args`` IOCTL data **Description** This function computes the pitch of the dumb buffer and rounds it up to an integer number of bytes per pixel. Drivers for hardware that doesn't have any additional restrictions on the pitch can directly use this function as their :c:type:`drm_driver.dumb_create ` callback. For hardware with additional restrictions, drivers can adjust the fields set up by userspace before calling into this function. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjF0h]h Parameters}(hjH0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD0ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj@0ubj)}(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)}(hje0h]hstruct drm_file *file}(hjg0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc0ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj_0ubj )}(hhh]h)}(h0DRM file structure to create the dumb buffer forh]h0DRM file structure to create the dumb buffer for}(hj~0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz0hMhj{0ubah}(h]h ]h"]h$]h&]uh1j hj_0ubeh}(h]h ]h"]h$]h&]uh1jhjz0hMhj\0ubj)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj0h]hstruct drm_device *dev}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj0ubj )}(hhh]h)}(h DRM deviceh]h DRM device}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1j hj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj\0ubj)}(h1``struct drm_mode_create_dumb *args`` IOCTL data h](j)}(h%``struct drm_mode_create_dumb *args``h]j)}(hj0h]h!struct drm_mode_create_dumb *args}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj0ubj )}(hhh]h)}(h IOCTL datah]h IOCTL data}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1j hj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj\0ubeh}(h]h ]h"]h$]h&]uh1jhj@0ubh)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj@0ubh)}(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(1hhhNhNubh)}(h-:c:type:`drm_driver.dumb_create `h]j)}(hj21h]hdrm_driver.dumb_create}(hj41hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj01ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj(1ubh callback.}(hj(1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjO1hMhj@0ubh)}(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.}(hjZ1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj@0ubh)}(h **Return**h]j)}(hjk1h]hReturn}(hjm1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji1ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj@0ubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj@0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_shmem_mmap (C function)c.drm_gem_shmem_mmaphNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hWint drm_gem_shmem_mmap (struct drm_gem_shmem_object *shmem, struct vm_area_struct *vma)h]j>)}(hVint drm_gem_shmem_mmap(struct drm_gem_shmem_object *shmem, struct vm_area_struct *vma)h](jc)}(hinth]hint}(hj1hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj1hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMbubjV)}(h h]h }(hj1hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1hhhj1hMbubjg)}(hdrm_gem_shmem_mmaph]jm)}(hdrm_gem_shmem_mmaph]hdrm_gem_shmem_mmap}(hj1hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhj1hMbubj)}(h@(struct drm_gem_shmem_object *shmem, struct vm_area_struct *vma)h](j)}(h"struct drm_gem_shmem_object *shmemh](jD)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj1ubjV)}(h h]h }(hj1hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1ubh)}(hhh]jm)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj 2hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj 2modnameN classnameNjj)}j]j)}jj1sbc.drm_gem_shmem_mmapasbuh1hhj1ubjV)}(h h]h }(hj+2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1ubj)}(hjh]h*}(hj92hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hshmemh]hshmem}(hjF2hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hstruct vm_area_struct *vmah](jD)}(hjh]hstruct}(hj_2hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj[2ubjV)}(h h]h }(hjl2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj[2ubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hj}2hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjz2ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj2modnameN classnameNjj)}j]j'2c.drm_gem_shmem_mmapasbuh1hhj[2ubjV)}(h h]h }(hj2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj[2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[2ubjm)}(hvmah]hvma}(hj2hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj[2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhj1hMbubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj1hhhj1hMbubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1j7hj1hMbhj1hhubj)}(hhh]h)}(hMemory-map a shmem GEM objecth]hMemory-map a shmem GEM object}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMbhj2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1j2hhhjhNhNubj)}(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)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMfhj2ubj)}(hhh](j)}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](j)}(h&``struct drm_gem_shmem_object *shmem``h]j)}(hj!3h]h"struct drm_gem_shmem_object *shmem}(hj#3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMchj3ubj )}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hj:3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj63hMchj73ubah}(h]h ]h"]h$]h&]uh1j hj3ubeh}(h]h ]h"]h$]h&]uh1jhj63hMchj3ubj)}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](j)}(h``struct vm_area_struct *vma``h]j)}(hjZ3h]hstruct vm_area_struct *vma}(hj\3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX3ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMdhjT3ubj )}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjs3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo3hMdhjp3ubah}(h]h ]h"]h$]h&]uh1j hjT3ubeh}(h]h ]h"]h$]h&]uh1jhjo3hMdhj3ubeh}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMfhj2ubh)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMehj2ubh)}(h **Return**h]j)}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhhj2ubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMihj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_gem_shmem_print_info (C function)c.drm_gem_shmem_print_infohNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(htvoid drm_gem_shmem_print_info (const struct drm_gem_shmem_object *shmem, struct drm_printer *p, unsigned int indent)h]j>)}(hsvoid drm_gem_shmem_print_info(const struct drm_gem_shmem_object *shmem, struct drm_printer *p, unsigned int indent)h](jc)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj3hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubjV)}(h h]h }(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj3hhhj4hMubjg)}(hdrm_gem_shmem_print_infoh]jm)}(hdrm_gem_shmem_print_infoh]hdrm_gem_shmem_print_info}(hj"4hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhj4hMubj)}(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](jD)}(hj h]hconst}(hj>4hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj:4ubjV)}(h h]h }(hjK4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:4ubjD)}(hjh]hstruct}(hjY4hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj:4ubjV)}(h h]h }(hjf4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:4ubh)}(hhh]jm)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hjw4hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjt4ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjy4modnameN classnameNjj)}j]j)}jj$4sbc.drm_gem_shmem_print_infoasbuh1hhj:4ubjV)}(h h]h }(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:4ubjm)}(hshmemh]hshmem}(hj4hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj64ubj)}(hstruct drm_printer *ph](jD)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj4ubjV)}(h h]h }(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj4ubh)}(hhh]jm)}(h drm_printerh]h drm_printer}(hj4hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj4modnameN classnameNjj)}j]j4c.drm_gem_shmem_print_infoasbuh1hhj4ubjV)}(h h]h }(hj5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj4ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(hjh]hp}(hj"5hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj64ubj)}(hunsigned int indenth](jc)}(hunsignedh]hunsigned}(hj:5hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj65ubjV)}(h h]h }(hjH5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj65ubjc)}(hinth]hint}(hjV5hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj65ubjV)}(h h]h }(hjd5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj65ubjm)}(hindenth]hindent}(hjr5hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj65ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj64ubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhj4hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj3hhhj4hMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1j7hj4hMhj3hhubj)}(hhh]h)}(h5Print :c:type:`drm_gem_shmem_object` info for debugfsh](hPrint }(hj5hhhNhNubh)}(h:c:type:`drm_gem_shmem_object`h]j)}(hj5h]hdrm_gem_shmem_object}(hj5hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j4c.drm_gem_shmem_print_infoasbjdrm_gem_shmem_objectuh1hhjv$hKshj5ubh info for debugfs}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj5hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1j2hhhjhNhNubj)}(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)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj5ubj)}(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)}(hj6h]h(const struct drm_gem_shmem_object *shmem}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj5ubj )}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1j hj5ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubj)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hj>6h]hstruct drm_printer *p}(hj@6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<6ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj86ubj )}(hhh]h)}(h DRM printerh]h DRM printer}(hjW6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS6hMhjT6ubah}(h]h ]h"]h$]h&]uh1j hj86ubeh}(h]h ]h"]h$]h&]uh1jhjS6hMhj5ubj)}(h-``unsigned int indent`` Tab indentation levelh](j)}(h``unsigned int indent``h]j)}(hjw6h]hunsigned int indent}(hjy6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju6ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjq6ubj )}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj6ubah}(h]h ]h"]h$]h&]uh1j hjq6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_gem_shmem_get_sg_table (C function)c.drm_gem_shmem_get_sg_tablehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hQstruct sg_table * drm_gem_shmem_get_sg_table (struct drm_gem_shmem_object *shmem)h]j>)}(hOstruct sg_table *drm_gem_shmem_get_sg_table(struct drm_gem_shmem_object *shmem)h](jD)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj6hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubjV)}(h h]h }(hj6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj6hhhj6hMubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hj6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]j)}jdrm_gem_shmem_get_sg_tablesbc.drm_gem_shmem_get_sg_tableasbuh1hhj6hhhj6hMubjV)}(h h]h }(hj7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj6hhhj6hMubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hMubjg)}(hdrm_gem_shmem_get_sg_tableh]jm)}(hj7h]hdrm_gem_shmem_get_sg_table}(hj07hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj,7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhj6hMubj)}(h$(struct drm_gem_shmem_object *shmem)h]j)}(h"struct drm_gem_shmem_object *shmemh](jD)}(hjh]hstruct}(hjK7hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjG7ubjV)}(h h]h }(hjX7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjG7ubh)}(hhh]jm)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hji7hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjf7ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjk7modnameN classnameNjj)}j]j 7c.drm_gem_shmem_get_sg_tableasbuh1hhjG7ubjV)}(h h]h }(hj7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjG7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG7ubjm)}(hshmemh]hshmem}(hj7hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjG7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjC7ubah}(h]h ]h"]h$]h&]jjuh1jhj6hhhj6hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj6hhhj6hMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1j7hj6hMhj6hhubj)}(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}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj7hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1j2hhhjhNhNubj)}(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)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj7ubj)}(hhh]j)}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](j)}(h&``struct drm_gem_shmem_object *shmem``h]j)}(hj 8h]h"struct drm_gem_shmem_object *shmem}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 8ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj8ubj )}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hj&8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"8hMhj#8ubah}(h]h ]h"]h$]h&]uh1j hj8ubeh}(h]h ]h"]h$]h&]uh1jhj"8hMhj8ubah}(h]h ]h"]h$]h&]uh1jhj7ubh)}(h**Description**h]j)}(hjH8h]h Description}(hjJ8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF8ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj7ubh)}(hnThis function exports a scatter/gather table suitable for PRIME usage by calling the standard DMA mapping API.h]hnThis function exports a scatter/gather table suitable for PRIME usage by calling the standard DMA mapping API.}(hj^8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj7ubh)}(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.}(hjm8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj7ubh)}(h **Return**h]j)}(hj~8h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|8ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj7ubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.(drm_gem_shmem_get_pages_sgt (C function)c.drm_gem_shmem_get_pages_sgthNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hRstruct sg_table * drm_gem_shmem_get_pages_sgt (struct drm_gem_shmem_object *shmem)h]j>)}(hPstruct sg_table *drm_gem_shmem_get_pages_sgt(struct drm_gem_shmem_object *shmem)h](jD)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj8hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubjV)}(h h]h }(hj8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj8hhhj8hMubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8modnameN classnameNjj)}j]j)}jdrm_gem_shmem_get_pages_sgtsbc.drm_gem_shmem_get_pages_sgtasbuh1hhj8hhhj8hMubjV)}(h h]h }(hj9hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj8hhhj8hMubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj8hMubjg)}(hdrm_gem_shmem_get_pages_sgth]jm)}(hj9h]hdrm_gem_shmem_get_pages_sgt}(hj"9hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhj8hMubj)}(h$(struct drm_gem_shmem_object *shmem)h]j)}(h"struct drm_gem_shmem_object *shmemh](jD)}(hjh]hstruct}(hj=9hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj99ubjV)}(h h]h }(hjJ9hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj99ubh)}(hhh]jm)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj[9hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjX9ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj]9modnameN classnameNjj)}j]j8c.drm_gem_shmem_get_pages_sgtasbuh1hhj99ubjV)}(h h]h }(hjy9hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj99ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj99ubjm)}(hshmemh]hshmem}(hj9hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj99ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj59ubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj8hhhj8hMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1j7hj8hMhj8hhubj)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1j2hhhjhNhNubj)}(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)}(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:379: ./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)}(hj9h]h"struct drm_gem_shmem_object *shmem}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj9ubj )}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1j hj9ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hj::h]h Description}(hj<:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8:ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj9ubh)}(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.}(hjP:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj9ubh)}(hThis is the main function for drivers to get at backing storage, and it hides and difference between dma-buf imported and natively allocated objects. drm_gem_shmem_get_sg_table() should not be directly called by drivers.h]hThis is the main function for drivers to get at backing storage, and it hides and difference between dma-buf imported and natively allocated objects. drm_gem_shmem_get_sg_table() should not be directly called by drivers.}(hj_:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj9ubh)}(h **Return**h]j)}(hjp:h]hReturn}(hjr:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn:ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj9ubh)}(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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.0drm_gem_shmem_prime_import_sg_table (C function)%c.drm_gem_shmem_prime_import_sg_tablehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(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]j>)}(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](jD)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj:hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubjV)}(h h]h }(hj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:hhhj:hMubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:modnameN classnameNjj)}j]j)}j#drm_gem_shmem_prime_import_sg_tablesb%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhj:hhhj:hMubjV)}(h h]h }(hj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:hhhj:hMubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hMubjg)}(h#drm_gem_shmem_prime_import_sg_tableh]jm)}(hj:h]h#drm_gem_shmem_prime_import_sg_table}(hj;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhj:hMubj)}(hQ(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hj/;hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj+;ubjV)}(h h]h }(hj<;hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj+;ubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjM;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjJ;ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjO;modnameN classnameNjj)}j]j:%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhj+;ubjV)}(h h]h }(hjk;hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj+;ubj)}(hjh]h*}(hjy;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+;ubjm)}(hdevh]hdev}(hj;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj';ubj)}(h!struct dma_buf_attachment *attachh](jD)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj;ubjV)}(h h]h }(hj;hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;ubh)}(hhh]jm)}(hdma_buf_attachmenth]hdma_buf_attachment}(hj;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj;modnameN classnameNjj)}j]j:%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhj;ubjV)}(h h]h }(hj;hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjm)}(hattachh]hattach}(hj;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj';ubj)}(hstruct sg_table *sgth](jD)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj <ubjV)}(h h]h }(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj <ubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hj-<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj*<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj/<modnameN classnameNjj)}j]j:%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhj <ubjV)}(h h]h }(hjK<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj <ubj)}(hjh]h*}(hjY<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj <ubjm)}(hsgth]hsgt}(hjf<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj <ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj';ubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhj:hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj:hhhj:hMubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1j7hj:hMhj: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}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj<hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1j2hhhjhNhNubj)}(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)}(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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chM hj<ubj)}(hhh](j)}(h1``struct drm_device *dev`` Device to import into h](j)}(h``struct drm_device *dev``h]j)}(hj<h]hstruct drm_device *dev}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj<ubj )}(hhh]h)}(hDevice to import intoh]hDevice to import into}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1j hj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj<ubj)}(h9``struct dma_buf_attachment *attach`` DMA-BUF attachment h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hj =h]h!struct dma_buf_attachment *attach}(hj =hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj=ubj )}(hhh]h)}(hDMA-BUF attachmenth]hDMA-BUF attachment}(hj#=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj =ubah}(h]h ]h"]h$]h&]uh1j hj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj<ubj)}(h>``struct sg_table *sgt`` Scatter/gather table of pinned pages h](j)}(h``struct sg_table *sgt``h]j)}(hjC=h]hstruct sg_table *sgt}(hjE=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA=ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chM hj==ubj )}(hhh]h)}(h$Scatter/gather table of pinned pagesh]h$Scatter/gather table of pinned pages}(hj\=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX=hM hjY=ubah}(h]h ]h"]h$]h&]uh1j hj==ubeh}(h]h ]h"]h$]h&]uh1jhjX=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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chM hj<ubh)}(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 }(hj=hhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j)}(hj=h]h$drm_driver.gem_prime_import_sg_table}(hj=hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chM hj=ubh callback.}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj<ubh)}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j..drm_gem_shmem_prime_import_no_map (C function)#c.drm_gem_shmem_prime_import_no_maphNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hkstruct drm_gem_object * drm_gem_shmem_prime_import_no_map (struct drm_device *dev, struct dma_buf *dma_buf)h]j>)}(histruct drm_gem_object *drm_gem_shmem_prime_import_no_map(struct drm_device *dev, struct dma_buf *dma_buf)h](jD)}(hjh]hstruct}(hj >hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj >hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chM(ubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj >hhhj>hM(ubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj,>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj)>ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj.>modnameN classnameNjj)}j]j)}j!drm_gem_shmem_prime_import_no_mapsb#c.drm_gem_shmem_prime_import_no_mapasbuh1hhj >hhhj>hM(ubjV)}(h h]h }(hjM>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj >hhhj>hM(ubj)}(hjh]h*}(hj[>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj >hhhj>hM(ubjg)}(h!drm_gem_shmem_prime_import_no_maph]jm)}(hjJ>h]h!drm_gem_shmem_prime_import_no_map}(hjl>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjh>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj >hhhj>hM(ubj)}(h1(struct drm_device *dev, struct dma_buf *dma_buf)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj>ubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hj>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>modnameN classnameNjj)}j]jH>#c.drm_gem_shmem_prime_import_no_mapasbuh1hhj>ubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hdevh]hdev}(hj>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(hstruct dma_buf *dma_bufh](jD)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj>ubjV)}(h h]h }(hj?hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hj?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj?modnameN classnameNjj)}j]jH>#c.drm_gem_shmem_prime_import_no_mapasbuh1hhj>ubjV)}(h h]h }(hj3?hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubj)}(hjh]h*}(hjA?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hdma_bufh]hdma_buf}(hjN?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubeh}(h]h ]h"]h$]h&]jjuh1jhj >hhhj>hM(ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj>hhhj>hM(ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1j7hj>hM(hj>hhubj)}(hhh]h)}(h*Import dmabuf without mapping its sg_tableh]h*Import dmabuf without mapping its sg_table}(hjx?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chM(hju?hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj>hM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1j2hhhjhNhNubj)}(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)}(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:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chM,hj?ubj)}(hhh](j)}(h1``struct drm_device *dev`` Device to import into h](j)}(h``struct drm_device *dev``h]j)}(hj?h]hstruct drm_device *dev}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chM)hj?ubj )}(hhh]h)}(hDevice to import intoh]hDevice to import into}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hM)hj?ubah}(h]h ]h"]h$]h&]uh1j hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hM)hj?ubj)}(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&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chM*hj?ubj )}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hM*hj@ubah}(h]h ]h"]h$]h&]uh1j hj?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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chM,hj?ubh)}(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 }(hjC@hhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j)}(hjM@h]hdrm_driver.gem_prime_import}(hjO@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjK@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:379: ./drivers/gpu/drm/drm_gem_shmem_helper.chM+hjC@ubh implementation.}(hjC@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjj@hM+hj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]#gem-shmem-helper-function-referenceah ]h"]#gem shmem helper function referenceah$]h&]uh1hhjzhhhhhMsubh)}(hhh](h)}(h#GEM VRAM Helper Functions Referenceh]h#GEM VRAM Helper Functions Reference}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hhhhhMubh)}(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 }(hj@hhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j)}(hj@h]hstruct drm_gem_vram_object}(hj@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_vram_objectuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:385: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj@ubh (GEM VRAM), a GEM buffer object that is backed by video RAM (VRAM). It can be used for framebuffer devices with dedicated memory.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@hKhj@hhubh)}(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 }(hj@hhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hj@h]hstruct drm_vram_mm}(hj@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_vram_mmuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:385: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj@ubh 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.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@hKhj@hhubh)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:385: ./drivers/gpu/drm/drm_gem_vram_helper.chK$hj@hhubh)}(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:`DRM_VRAM_MM_FILE_OPERATIONS` to initialize :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 }(hjAhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjAh]hstruct drm_vram_mm}(hjAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_vram_mmuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:385: ./drivers/gpu/drm/drm_gem_vram_helper.chK.hjAubh in }(hjAhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hj6Ah]hstruct drm_device}(hj8AhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj4Aubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_deviceuh1hhj/AhK.hjAubh.vram_mm . Use }(hjAhhhNhNubh)}(h:c:type:`DRM_GEM_VRAM_DRIVER`h]j)}(hjYAh]hDRM_GEM_VRAM_DRIVER}(hj[AhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjWAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_GEM_VRAM_DRIVERuh1hhj/AhK.hjAubh to initialize }(hjAhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hj|Ah]hstruct drm_driver}(hj~AhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjzAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhj/AhK.hjAubh and }(hjAhhhNhNubh)}(h%:c:type:`DRM_VRAM_MM_FILE_OPERATIONS`h]j)}(hjAh]hDRM_VRAM_MM_FILE_OPERATIONS}(hjAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_VRAM_MM_FILE_OPERATIONSuh1hhj/AhK.hjAubh to initialize }hjAsbh)}(h2:c:type:`struct file_operations `h]j)}(hjAh]hstruct file_operations}(hjAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjfile_operationsuh1hhj/AhK.hjAubh; as illustrated below.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/AhK.hj@hhubjT)}(hXstruct file_operations fops ={ .owner = THIS_MODULE, DRM_VRAM_MM_FILE_OPERATION }; 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]hXstruct file_operations fops ={ .owner = THIS_MODULE, DRM_VRAM_MM_FILE_OPERATION }; 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; }}hjAsbah}(h]h ]h"]h$]h&]jjj~j~jj~}uh1jSha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:385: ./drivers/gpu/drm/drm_gem_vram_helper.chK4hj@hhubh)}(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 }(hjAhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjBh]hstruct drm_vram_mm}(hjBhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_vram_mmuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:385: ./drivers/gpu/drm/drm_gem_vram_helper.chKPhjAubh, 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.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj BhKPhj@hhubh)}(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+BhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:385: ./drivers/gpu/drm/drm_gem_vram_helper.chKVhj@hhubh)}(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:BhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:385: ./drivers/gpu/drm/drm_gem_vram_helper.chKZhj@hhubh)}(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.}(hjIBhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:385: ./drivers/gpu/drm/drm_gem_vram_helper.chK`hj@hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_vram_object (C struct)c.drm_gem_vram_objecthNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(hdrm_gem_vram_objecth]j>)}(hstruct drm_gem_vram_objecth](jD)}(hjh]hstruct}(hjqBhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjmBhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKubjV)}(h h]h }(hjBhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmBhhhj~BhKubjg)}(hdrm_gem_vram_objecth]jm)}(hjkBh]hdrm_gem_vram_object}(hjBhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmBhhhj~BhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjiBhhhj~BhKubah}(h]jdBah ](jjeh"]h$]h&]jj)jhuh1j7hj~BhKhjfBhhubj)}(hhh]h)}(hGEM object backed by VRAMh]hGEM object backed by VRAM}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK hjBhhubah}(h]h ]h"]h$]h&]uh1jhjfBhhhj~BhKubeh}(h]h ](jstructeh"]h$]h&]jjjjBjjBjjjuh1j2hhhj@hNhNubj)}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh:}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK$hjBubjT)}(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]; };}hjBsbah}(h]h ]h"]h$]h&]jjuh1jSh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK&hjBubh)}(h **Members**h]j)}(hjCh]hMembers}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK.hjBubj)}(hhh](j)}(h``bo`` TTM buffer object h](j)}(h``bo``h]j)}(hj Ch]hbo}(hj"ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK"hjCubj )}(hhh]h)}(hTTM buffer objecth]hTTM buffer object}(hj9ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ChK"hj6Cubah}(h]h ]h"]h$]h&]uh1j hjCubeh}(h]h ]h"]h$]h&]uh1jhj5ChK"hjCubj)}(h'``map`` Mapping information for **bo** h](j)}(h``map``h]j)}(hjYCh]hmap}(hj[ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWCubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK#hjSCubj )}(hhh]h)}(hMapping information for **bo**h](hMapping information for }(hjrChhhNhNubj)}(h**bo**h]hbo}(hjzChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrCubeh}(h]h ]h"]h$]h&]uh1hhjnChK#hjoCubah}(h]h ]h"]h$]h&]uh1j hjSCubeh}(h]h ]h"]h$]h&]uh1jhjnChK#hjCubj)}(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)}(hjCh]hvmap_use_count}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK:hjCubj )}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK9hjCubah}(h]h ]h"]h$]h&]uh1j hjCubeh}(h]h ]h"]h$]h&]uh1jhjChK:hjCubj)}(hh``placement`` TTM placement information. Supported placements are ``TTM_PL_VRAM`` and ``TTM_PL_SYSTEM`` h](j)}(h ``placement``h]j)}(hjCh]h placement}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK%hjCubj )}(hhh]h)}(hYTTM placement information. Supported placements are ``TTM_PL_VRAM`` and ``TTM_PL_SYSTEM``h](h4TTM placement information. Supported placements are }(hjChhhNhNubj)}(h``TTM_PL_VRAM``h]h TTM_PL_VRAM}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh and }(hjChhhNhNubj)}(h``TTM_PL_SYSTEM``h]h TTM_PL_SYSTEM}(hj DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK$hjCubah}(h]h ]h"]h$]h&]uh1j hjCubeh}(h]h ]h"]h$]h&]uh1jhjChK%hjCubj)}(h)``placements`` TTM placement information.h](j)}(h``placements``h]j)}(hj4Dh]h placements}(hj6DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Dubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK%hj.Dubj )}(hhh]h)}(hTTM placement information.h]hTTM placement information.}(hjMDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK&hjJDubah}(h]h ]h"]h$]h&]uh1j hj.Dubeh}(h]h ]h"]h$]h&]uh1jhjIDhK%hjCubeh}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hjwDh]h Description}(hjyDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuDubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK)hj@hhubh)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK&hj@hhubh)}(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().}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK+hj@hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_vram_of_bo (C function)c.drm_gem_vram_of_bohNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(hNstruct drm_gem_vram_object * drm_gem_vram_of_bo (struct ttm_buffer_object *bo)h]j>)}(hLstruct drm_gem_vram_object *drm_gem_vram_of_bo(struct ttm_buffer_object *bo)h](jD)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjDhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKEubjV)}(h h]h }(hjDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjDhhhjDhKEubh)}(hhh]jm)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjDhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjDmodnameN classnameNjj)}j]j)}jdrm_gem_vram_of_bosbc.drm_gem_vram_of_boasbuh1hhjDhhhjDhKEubjV)}(h h]h }(hjEhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjDhhhjDhKEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjDhKEubjg)}(hdrm_gem_vram_of_boh]jm)}(hjEh]hdrm_gem_vram_of_bo}(hj#EhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhhjDhKEubj)}(h(struct ttm_buffer_object *bo)h]j)}(hstruct ttm_buffer_object *boh](jD)}(hjh]hstruct}(hj>EhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj:EubjV)}(h h]h }(hjKEhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:Eubh)}(hhh]jm)}(httm_buffer_objecth]httm_buffer_object}(hj\EhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjYEubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^EmodnameN classnameNjj)}j]jDc.drm_gem_vram_of_boasbuh1hhj:EubjV)}(h h]h }(hjzEhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:Eubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Eubjm)}(hboh]hbo}(hjEhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:Eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6Eubah}(h]h ]h"]h$]h&]jjuh1jhjDhhhjDhKEubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjDhhhjDhKEubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1j7hjDhKEhjDhhubj)}(hhh]h)}(hfReturns the container of type :c:type:`struct drm_gem_vram_object ` for field bo.h](hReturns the container of type }(hjEhhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j)}(hjEh]hstruct drm_gem_vram_object}(hjEhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jDc.drm_gem_vram_of_boasbjdrm_gem_vram_objectuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjEubh for field bo.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKEhjEhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjDhKEubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1j2hhhj@hNhNubj)}(hu**Parameters** ``struct ttm_buffer_object *bo`` the VRAM buffer object **Return** The containing GEM VRAM objecth](h)}(h**Parameters**h]j)}(hj Fh]h Parameters}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKIhjFubj)}(hhh]j)}(h8``struct ttm_buffer_object *bo`` the VRAM buffer object h](j)}(h ``struct ttm_buffer_object *bo``h]j)}(hj)Fh]hstruct ttm_buffer_object *bo}(hj+FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Fubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKGhj#Fubj )}(hhh]h)}(hthe VRAM buffer objecth]hthe VRAM buffer object}(hjBFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>FhKGhj?Fubah}(h]h ]h"]h$]h&]uh1j hj#Fubeh}(h]h ]h"]h$]h&]uh1jhj>FhKGhj Fubah}(h]h ]h"]h$]h&]uh1jhjFubh)}(h **Return**h]j)}(hjdFh]hReturn}(hjfFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbFubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKIhjFubh)}(hThe containing GEM VRAM objecth]hThe containing GEM VRAM object}(hjzFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKHhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gem_vram_of_gem (C function)c.drm_gem_vram_of_gemhNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(hMstruct drm_gem_vram_object * drm_gem_vram_of_gem (struct drm_gem_object *gem)h]j>)}(hKstruct drm_gem_vram_object *drm_gem_vram_of_gem(struct drm_gem_object *gem)h](jD)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjFhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKQubjV)}(h h]h }(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjFhhhjFhKQubh)}(hhh]jm)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjFhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjFmodnameN classnameNjj)}j]j)}jdrm_gem_vram_of_gemsbc.drm_gem_vram_of_gemasbuh1hhjFhhhjFhKQubjV)}(h h]h }(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjFhhhjFhKQubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhKQubjg)}(hdrm_gem_vram_of_gemh]jm)}(hjFh]hdrm_gem_vram_of_gem}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjFhKQubj)}(h(struct drm_gem_object *gem)h]j)}(hstruct drm_gem_object *gemh](jD)}(hjh]hstruct}(hj#GhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjGubjV)}(h h]h }(hj0GhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjGubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjAGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>Gubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjCGmodnameN classnameNjj)}j]jFc.drm_gem_vram_of_gemasbuh1hhjGubjV)}(h h]h }(hj_GhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjGubj)}(hjh]h*}(hjmGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hgemh]hgem}(hjzGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubah}(h]h ]h"]h$]h&]jjuh1jhjFhhhjFhKQubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjFhhhjFhKQubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1j7hjFhKQhjFhhubj)}(hhh]h)}(hgReturns the container of type :c:type:`struct drm_gem_vram_object ` for field gem.h](hReturns the container of type }(hjGhhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j)}(hjGh]hstruct drm_gem_vram_object}(hjGhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jFc.drm_gem_vram_of_gemasbjdrm_gem_vram_objectuh1hhjEhKhjGubh for field gem.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKQhjGhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhKQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1j2hhhj@hNhNubj)}(hk**Parameters** ``struct drm_gem_object *gem`` the GEM object **Return** The containing GEM VRAM objecth](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKUhjGubj)}(hhh]j)}(h.``struct drm_gem_object *gem`` the GEM object h](j)}(h``struct drm_gem_object *gem``h]j)}(hj Hh]hstruct drm_gem_object *gem}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Hubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKShjHubj )}(hhh]h)}(hthe GEM objecth]hthe GEM object}(hj&HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"HhKShj#Hubah}(h]h ]h"]h$]h&]uh1j hjHubeh}(h]h ]h"]h$]h&]uh1jhj"HhKShjHubah}(h]h ]h"]h$]h&]uh1jhjGubh)}(h **Return**h]j)}(hjHHh]hReturn}(hjJHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFHubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKUhjGubh)}(hThe containing GEM VRAM objecth]hThe containing GEM VRAM object}(hj^HhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKThjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.)DRM_GEM_VRAM_PLANE_HELPER_FUNCS (C macro)!c.DRM_GEM_VRAM_PLANE_HELPER_FUNCShNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(hDRM_GEM_VRAM_PLANE_HELPER_FUNCSh]j>)}(hDRM_GEM_VRAM_PLANE_HELPER_FUNCSh]jg)}(hDRM_GEM_VRAM_PLANE_HELPER_FUNCSh]jm)}(hjHh]hDRM_GEM_VRAM_PLANE_HELPER_FUNCS}(hjHhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjHhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhK~ubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjHhhhjHhK~ubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1j7hjHhK~hjHhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjHhhhjHhK~ubeh}(h]h ](jmacroeh"]h$]h&]jjjjHjjHjjjuh1j2hhhj@hNhNubh)}(h#``DRM_GEM_VRAM_PLANE_HELPER_FUNCS``h]j)}(hjHh]hDRM_GEM_VRAM_PLANE_HELPER_FUNCS}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhj@hhubj.)}(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)}(hDRM_GEM_VRAM_DRIVERh]jg)}(hDRM_GEM_VRAM_DRIVERh]jm)}(hj6Ih]hDRM_GEM_VRAM_DRIVER}(hj@IhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj` **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 }(hjIhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjIh]hstruct drm_driver}(hjIhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjIubeh}(h]h ]h"]h$]h&]uh1hhjIhKhjIubah}(h]h ]h"]h$]h&]uh1j.hjIhKhjIubh)}(h**Description**h]j)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjIubh)}(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 }(hjIhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjIh]hstruct drm_driver}(hjIhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjIubh with default functions.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJhKhjIubeh}(h]h ]h"]h$]h&]uh1j.hjIhKhj@hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_vram_mm (C struct) c.drm_vram_mmhNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(h drm_vram_mmh]j>)}(hstruct drm_vram_mmh](jD)}(hjh]hstruct}(hj-JhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj)Jhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKubjV)}(h h]h }(hj;JhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj)Jhhhj:JhKubjg)}(h drm_vram_mmh]jm)}(hj'Jh]h drm_vram_mm}(hjMJhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjIJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)Jhhhj:JhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj%Jhhhj:JhKubah}(h]j Jah ](jjeh"]h$]h&]jj)jhuh1j7hj:JhKhj"Jhhubj)}(hhh]h)}(hAn instance of VRAM MMh]hAn instance of VRAM MM}(hjoJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjlJhhubah}(h]h ]h"]h$]h&]uh1jhj"Jhhhj:JhKubeh}(h]h ](jstructeh"]h$]h&]jjjjJjjJjjjuh1j2hhhj@hNhNubj)}(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}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh:}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjJubjT)}(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; };}hjJsbah}(h]h ]h"]h$]h&]jjuh1jSh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjJubh)}(h **Members**h]j)}(hjJh]hMembers}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjJubj)}(hhh](j)}(h7``vram_base`` Base address of the managed video memory h](j)}(h ``vram_base``h]j)}(hjJh]h vram_base}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjJubj )}(hhh]h)}(h(Base address of the managed video memoryh]h(Base address of the managed video memory}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKhjJubah}(h]h ]h"]h$]h&]uh1j hjJubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjJubj)}(h8``vram_size`` Size of the managed video memory in bytes h](j)}(h ``vram_size``h]j)}(hjKh]h vram_size}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjKubj )}(hhh]h)}(h)Size of the managed video memory in bytesh]h)Size of the managed video memory in bytes}(hj.KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*KhKhj+Kubah}(h]h ]h"]h$]h&]uh1j hjKubeh}(h]h ]h"]h$]h&]uh1jhj*KhKhjJubj)}(h``bdev`` The TTM BO device.h](j)}(h``bdev``h]j)}(hjNKh]hbdev}(hjPKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLKubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjHKubj )}(hhh]h)}(hThe TTM BO device.h]hThe TTM BO device.}(hjgKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjdKubah}(h]h ]h"]h$]h&]uh1j hjHKubeh}(h]h ]h"]h$]h&]uh1jhjcKhKhjJubeh}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(h**Description**h]j)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhj@hhubh)}(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 }(hjKhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjKh]hstruct drm_vram_mm}(hjKhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_vram_mmuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjKubh.vram_base and }(hjKhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjKh]hstruct drm_vram_mm}(hjKhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_vram_mmuh1hhjKhKhjKubhZ.vrm_size are managed by VRAM MM, but are available for public read access. Use the field }(hjKhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjKh]hstruct drm_vram_mm}(hjKhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_vram_mmuh1hhjKhKhjKubh".bdev to access the TTM BO device.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKhKhj@hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_vram_mm_of_bdev (C function)c.drm_vram_mm_of_bdevhNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(hBstruct drm_vram_mm * drm_vram_mm_of_bdev (struct ttm_device *bdev)h]j>)}(h@struct drm_vram_mm *drm_vram_mm_of_bdev(struct ttm_device *bdev)h](jD)}(hjh]hstruct}(hj8LhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj4Lhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKubjV)}(h h]h }(hjFLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj4LhhhjELhKubh)}(hhh]jm)}(h drm_vram_mmh]h drm_vram_mm}(hjWLhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTLubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjYLmodnameN classnameNjj)}j]j)}jdrm_vram_mm_of_bdevsbc.drm_vram_mm_of_bdevasbuh1hhj4LhhhjELhKubjV)}(h h]h }(hjxLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj4LhhhjELhKubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4LhhhjELhKubjg)}(hdrm_vram_mm_of_bdevh]jm)}(hjuLh]hdrm_vram_mm_of_bdev}(hjLhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4LhhhjELhKubj)}(h(struct ttm_device *bdev)h]j)}(hstruct ttm_device *bdevh](jD)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjLubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjLubh)}(hhh]jm)}(h ttm_deviceh]h ttm_device}(hjLhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjLmodnameN classnameNjj)}j]jsLc.drm_vram_mm_of_bdevasbuh1hhjLubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hbdevh]hbdev}(hj MhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(h]h ]h"]h$]h&]jjuh1jhj4LhhhjELhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj0LhhhjELhKubah}(h]j+Lah ](jjeh"]h$]h&]jj)jhuh1j7hjELhKhj-Lhhubj)}(hhh]h)}(hVReturns the container of type :c:type:`struct ttm_device ` for field bdev.h](hReturns the container of type }(hj3MhhhNhNubh)}(h(:c:type:`struct ttm_device `h]j)}(hj=Mh]hstruct ttm_device}(hj?MhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj;Mubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jsLc.drm_vram_mm_of_bdevasbj ttm_deviceuh1hhjEhKhj3Mubh for field bdev.}(hj3MhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhj0Mhhubah}(h]h ]h"]h$]h&]uh1jhj-LhhhjELhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsMjjsMjjjuh1j2hhhj@hNhNubj)}(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)}(hj}Mh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Mubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjwMubj)}(hhh]j)}(h.``struct ttm_device *bdev`` the TTM BO device h](j)}(h``struct ttm_device *bdev``h]j)}(hjMh]hstruct ttm_device *bdev}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjMubj )}(hhh]h)}(hthe TTM BO deviceh]hthe TTM BO device}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhKhjMubah}(h]h ]h"]h$]h&]uh1j hjMubeh}(h]h ]h"]h$]h&]uh1jhjMhKhjMubah}(h]h ]h"]h$]h&]uh1jhjwMubh)}(h **Return**h]j)}(hjMh]hReturn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjwMubh)}(hEThe containing instance of :c:type:`struct drm_vram_mm `h](hThe containing instance of }(hjMhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjMh]hstruct drm_vram_mm}(hjMhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_vram_mmuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:388: ./include/drm/drm_gem_vram_helper.hhKhjMubeh}(h]h ]h"]h$]h&]uh1hhjNhKhjwMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gem_vram_create (C function)c.drm_gem_vram_createhNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(hnstruct drm_gem_vram_object * drm_gem_vram_create (struct drm_device *dev, size_t size, unsigned long pg_align)h]j>)}(hlstruct drm_gem_vram_object *drm_gem_vram_create(struct drm_device *dev, size_t size, unsigned long pg_align)h](jD)}(hjh]hstruct}(hj;NhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj7Nhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKubjV)}(h h]h }(hjINhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj7NhhhjHNhKubh)}(hhh]jm)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjZNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjWNubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj\NmodnameN classnameNjj)}j]j)}jdrm_gem_vram_createsbc.drm_gem_vram_createasbuh1hhj7NhhhjHNhKubjV)}(h h]h }(hj{NhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj7NhhhjHNhKubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7NhhhjHNhKubjg)}(hdrm_gem_vram_createh]jm)}(hjxNh]hdrm_gem_vram_create}(hjNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7NhhhjHNhKubj)}(h=(struct drm_device *dev, size_t size, unsigned long pg_align)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjNubjV)}(h h]h }(hjNhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjNubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjNmodnameN classnameNjj)}j]jvNc.drm_gem_vram_createasbuh1hhjNubjV)}(h h]h }(hjNhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hdevh]hdev}(hj OhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj(OhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj%Oubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj*OmodnameN classnameNjj)}j]jvNc.drm_gem_vram_createasbuh1hhj!OubjV)}(h h]h }(hjFOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj!Oubjm)}(hsizeh]hsize}(hjTOhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj!Oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hunsigned long pg_alignh](jc)}(hunsignedh]hunsigned}(hjmOhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjiOubjV)}(h h]h }(hj{OhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjiOubjc)}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjiOubjV)}(h h]h }(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjiOubjm)}(hpg_alignh]hpg_align}(hjOhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjiOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhj7NhhhjHNhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj3NhhhjHNhKubah}(h]j.Nah ](jjeh"]h$]h&]jj)jhuh1j7hjHNhKhj0Nhhubj)}(hhh]h)}(h Creates a VRAM-backed GEM objecth]h Creates a VRAM-backed GEM object}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjOhhubah}(h]h ]h"]h$]h&]uh1jhj0NhhhjHNhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1j2hhhj@hNhNubj)}(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)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjOubj)}(hhh](j)}(h*``struct drm_device *dev`` the DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjPh]hstruct drm_device *dev}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj Pubj )}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hj)PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%PhKhj&Pubah}(h]h ]h"]h$]h&]uh1j hj Pubeh}(h]h ]h"]h$]h&]uh1jhj%PhKhjPubj)}(h)``size_t size`` the buffer size in bytes h](j)}(h``size_t size``h]j)}(hjIPh]h size_t size}(hjKPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGPubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjCPubj )}(hhh]h)}(hthe buffer size in bytesh]hthe buffer size in bytes}(hjbPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^PhKhj_Pubah}(h]h ]h"]h$]h&]uh1j hjCPubeh}(h]h ]h"]h$]h&]uh1jhj^PhKhjPubj)}(hP``unsigned long pg_align`` the buffer's alignment in multiples of the page size h](j)}(h``unsigned long pg_align``h]j)}(hjPh]hunsigned long pg_align}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj|Pubj )}(hhh]h)}(h4the buffer's alignment in multiples of the page sizeh]h6the buffer’s alignment in multiples of the page size}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhKhjPubah}(h]h ]h"]h$]h&]uh1j hj|Pubeh}(h]h ]h"]h$]h&]uh1jhjPhKhjPubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(h**Description**h]j)}(hjPh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjOubh)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjOubh)}(h **Return**h]j)}(hjPh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjOubh)}(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 }(hjPhhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j)}(hjQh]hstruct drm_gem_vram_object}(hjQhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_vram_objectuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjPubh: on success, or an ERR_PTR()-encoded error code otherwise.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!QhKhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_vram_put (C function)c.drm_gem_vram_puthNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(h7void drm_gem_vram_put (struct drm_gem_vram_object *gbo)h]j>)}(h6void drm_gem_vram_put(struct drm_gem_vram_object *gbo)h](jc)}(hvoidh]hvoid}(hjLQhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjHQhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKubjV)}(h h]h }(hj[QhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjHQhhhjZQhKubjg)}(hdrm_gem_vram_puth]jm)}(hdrm_gem_vram_puth]hdrm_gem_vram_put}(hjmQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjiQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjHQhhhjZQhKubj)}(h!(struct drm_gem_vram_object *gbo)h]j)}(hstruct drm_gem_vram_object *gboh](jD)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjQubjV)}(h h]h }(hjQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQubh)}(hhh]jm)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjQmodnameN classnameNjj)}j]j)}jjoQsbc.drm_gem_vram_putasbuh1hhjQubjV)}(h h]h }(hjQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(hgboh]hgbo}(hjQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubah}(h]h ]h"]h$]h&]jjuh1jhjHQhhhjZQhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjDQhhhjZQhKubah}(h]j?Qah ](jjeh"]h$]h&]jj)jhuh1j7hjZQhKhjAQhhubj)}(hhh]h)}(h0Releases a reference to a VRAM-backed GEM objecth]h0Releases a reference to a VRAM-backed GEM object}(hj RhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj Rhhubah}(h]h ]h"]h$]h&]uh1jhjAQhhhjZQhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$Rjj$Rjjjuh1j2hhhj@hNhNubj)}(h**Parameters** ``struct drm_gem_vram_object *gbo`` the GEM VRAM object **Description** See ttm_bo_put() for more information.h](h)}(h**Parameters**h]j)}(hj.Rh]h Parameters}(hj0RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,Rubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj(Rubj)}(hhh]j)}(h8``struct drm_gem_vram_object *gbo`` the GEM VRAM object h](j)}(h#``struct drm_gem_vram_object *gbo``h]j)}(hjMRh]hstruct drm_gem_vram_object *gbo}(hjORhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKRubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjGRubj )}(hhh]h)}(hthe GEM VRAM objecth]hthe GEM VRAM object}(hjfRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbRhKhjcRubah}(h]h ]h"]h$]h&]uh1j hjGRubeh}(h]h ]h"]h$]h&]uh1jhjbRhKhjDRubah}(h]h ]h"]h$]h&]uh1jhj(Rubh)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj(Rubh)}(h&See ttm_bo_put() for more information.h]h&See ttm_bo_put() for more information.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj(Rubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gem_vram_offset (C function)c.drm_gem_vram_offsethNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(h9s64 drm_gem_vram_offset (struct drm_gem_vram_object *gbo)h]j>)}(h8s64 drm_gem_vram_offset(struct drm_gem_vram_object *gbo)h](h)}(hhh]jm)}(hs64h]hs64}(hjRhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjRmodnameN classnameNjj)}j]j)}jdrm_gem_vram_offsetsbc.drm_gem_vram_offsetasbuh1hhjRhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMubjV)}(h h]h }(hjRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjRhhhjRhMubjg)}(hdrm_gem_vram_offseth]jm)}(hjRh]hdrm_gem_vram_offset}(hjShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjRhMubj)}(h!(struct drm_gem_vram_object *gbo)h]j)}(hstruct drm_gem_vram_object *gboh](jD)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjSubjV)}(h h]h }(hj,ShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjSubh)}(hhh]jm)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hj=ShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:Subah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj?SmodnameN classnameNjj)}j]jRc.drm_gem_vram_offsetasbuh1hhjSubjV)}(h h]h }(hj[ShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjSubj)}(hjh]h*}(hjiShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hgboh]hgbo}(hjvShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubah}(h]h ]h"]h$]h&]jjuh1jhjRhhhjRhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjRhhhjRhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1j7hjRhMhjRhhubj)}(hhh]h)}(h2Returns a GEM VRAM object's offset in video memoryh]h4Returns a GEM VRAM object’s offset in video memory}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjShhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1j2hhhj@hNhNubj)}(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)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjSubj)}(hhh]j)}(h8``struct drm_gem_vram_object *gbo`` the GEM VRAM object h](j)}(h#``struct drm_gem_vram_object *gbo``h]j)}(hjSh]hstruct drm_gem_vram_object *gbo}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjSubj )}(hhh]h)}(hthe GEM VRAM objecth]hthe GEM VRAM object}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1j hjSubeh}(h]h ]h"]h$]h&]uh1jhjShMhjSubah}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]j)}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjSubh)}(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 }(hj2ThhhNhNubj)}(h``TTM_PL_VRAM``h]h TTM_PL_VRAM}(hj:ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Tubh.}(hj2ThhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjSubh)}(h **Return**h]j)}(hjUTh]hReturn}(hjWThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSTubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjSubh)}(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.}(hjkThhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_vram_vmap (C function)c.drm_gem_vram_vmaphNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(hNint drm_gem_vram_vmap (struct drm_gem_vram_object *gbo, struct iosys_map *map)h]j>)}(hMint drm_gem_vram_vmap(struct drm_gem_vram_object *gbo, struct iosys_map *map)h](jc)}(hinth]hint}(hjThhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjThhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMMubjV)}(h h]h }(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjThhhjThMMubjg)}(hdrm_gem_vram_vmaph]jm)}(hdrm_gem_vram_vmaph]hdrm_gem_vram_vmap}(hjThhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjThMMubj)}(h8(struct drm_gem_vram_object *gbo, struct iosys_map *map)h](j)}(hstruct drm_gem_vram_object *gboh](jD)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjTubjV)}(h h]h }(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjTubh)}(hhh]jm)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjThhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTmodnameN classnameNjj)}j]j)}jjTsbc.drm_gem_vram_vmapasbuh1hhjTubjV)}(h h]h }(hjUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjTubj)}(hjh]h*}(hj#UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(hgboh]hgbo}(hj0UhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hstruct iosys_map *maph](jD)}(hjh]hstruct}(hjIUhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjEUubjV)}(h h]h }(hjVUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEUubh)}(hhh]jm)}(h iosys_maph]h iosys_map}(hjgUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjdUubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjiUmodnameN classnameNjj)}j]jUc.drm_gem_vram_vmapasbuh1hhjEUubjV)}(h h]h }(hjUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEUubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEUubjm)}(hmaph]hmap}(hjUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjEUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjThMMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjThhhjThMMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1j7hjThMMhjThhubj)}(hhh]h)}(h9Pins and maps a GEM VRAM object into kernel address spaceh]h9Pins and maps a GEM VRAM object into kernel address space}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMMhjUhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjThMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1j2hhhj@hNhNubj)}(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)}(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:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMQhjUubj)}(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 Vh]hstruct drm_gem_vram_object *gbo}(hj VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Vubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMOhjVubj )}(hhh]h)}(hThe GEM VRAM object to maph]hThe GEM VRAM object to map}(hj$VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj VhMOhj!Vubah}(h]h ]h"]h$]h&]uh1j hjVubeh}(h]h ]h"]h$]h&]uh1jhj VhMOhjVubj)}(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)}(hjDVh]hstruct iosys_map *map}(hjFVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBVubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMQhj>Vubj )}(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.}(hj]VhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMPhjZVubah}(h]h ]h"]h$]h&]uh1j hj>Vubeh}(h]h ]h"]h$]h&]uh1jhjYVhMQhjVubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Vubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMShjUubh)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMRhjUubh)}(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:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMXhjUubh)}(h10 on success, or a negative error code otherwise.h]h10 on success, or a negative error code otherwise.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMYhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gem_vram_vunmap (C function)c.drm_gem_vram_vunmaphNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(hQvoid drm_gem_vram_vunmap (struct drm_gem_vram_object *gbo, struct iosys_map *map)h]j>)}(hPvoid drm_gem_vram_vunmap(struct drm_gem_vram_object *gbo, struct iosys_map *map)h](jc)}(hvoidh]hvoid}(hjVhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjVhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMyubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVhhhjVhMyubjg)}(hdrm_gem_vram_vunmaph]jm)}(hdrm_gem_vram_vunmaph]hdrm_gem_vram_vunmap}(hj WhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj Wubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjVhMyubj)}(h8(struct drm_gem_vram_object *gbo, struct iosys_map *map)h](j)}(hstruct drm_gem_vram_object *gboh](jD)}(hjh]hstruct}(hj)WhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj%WubjV)}(h h]h }(hj6WhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj%Wubh)}(hhh]jm)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjGWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDWubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjIWmodnameN classnameNjj)}j]j)}jjWsbc.drm_gem_vram_vunmapasbuh1hhj%WubjV)}(h h]h }(hjgWhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj%Wubj)}(hjh]h*}(hjuWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Wubjm)}(hgboh]hgbo}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj%Wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!Wubj)}(hstruct iosys_map *maph](jD)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjWubjV)}(h h]h }(hjWhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjWubh)}(hhh]jm)}(h iosys_maph]h iosys_map}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjWmodnameN classnameNjj)}j]jcWc.drm_gem_vram_vunmapasbuh1hhjWubjV)}(h h]h }(hjWhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hmaph]hmap}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!Wubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjVhMyubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjVhhhjVhMyubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1j7hjVhMyhjVhhubj)}(hhh]h)}(h#Unmaps and unpins a GEM VRAM objecth]h#Unmaps and unpins a GEM VRAM object}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMyhjXhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjVhMyubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4Xjj4Xjjjuh1j2hhhj@hNhNubj)}(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)}(hj>Xh]h Parameters}(hj@XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)}(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](jc)}(hinth]hint}(hjYhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjYhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMubjV)}(h h]h }(hj%YhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYhhhj$YhMubjg)}(hdrm_gem_vram_fill_create_dumbh]jm)}(hdrm_gem_vram_fill_create_dumbh]hdrm_gem_vram_fill_create_dumb}(hj7YhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj3Yubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhj$YhMubj)}(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](jD)}(hjh]hstruct}(hjSYhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjOYubjV)}(h h]h }(hj`YhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjOYubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjqYhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjnYubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjsYmodnameN classnameNjj)}j]j)}jj9Ysbc.drm_gem_vram_fill_create_dumbasbuh1hhjOYubjV)}(h h]h }(hjYhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjOYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOYubjm)}(hfileh]hfile}(hjYhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjOYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKYubj)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjYubjV)}(h h]h }(hjYhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjYhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjYmodnameN classnameNjj)}j]jYc.drm_gem_vram_fill_create_dumbasbuh1hhjYubjV)}(h h]h }(hjZhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hdevh]hdev}(hjZhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKYubj)}(hunsigned long pg_alignh](jc)}(hunsignedh]hunsigned}(hj5ZhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj1ZubjV)}(h h]h }(hjCZhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1Zubjc)}(hlongh]hlong}(hjQZhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj1ZubjV)}(h h]h }(hj_ZhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1Zubjm)}(hpg_alignh]hpg_align}(hjmZhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1Zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKYubj)}(hunsigned long pitch_alignh](jc)}(hunsignedh]hunsigned}(hjZhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjZubjV)}(h h]h }(hjZhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjZubjc)}(hlongh]hlong}(hjZhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjZubjV)}(h h]h }(hjZhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjZubjm)}(h pitch_alignh]h pitch_align}(hjZhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKYubj)}(h!struct drm_mode_create_dumb *argsh](jD)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjZubjV)}(h h]h }(hjZhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjZubh)}(hhh]jm)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hjZhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjZmodnameN classnameNjj)}j]jYc.drm_gem_vram_fill_create_dumbasbuh1hhjZubjV)}(h h]h }(hj[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjZubj)}(hjh]h*}(hj![hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(hargsh]hargs}(hj.[hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKYubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhj$YhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjYhhhj$YhMubah}(h]j Yah ](jjeh"]h$]h&]jj)jhuh1j7hj$YhMhj Yhhubj)}(hhh]h)}(hLHelper for implementing :c:type:`struct drm_driver `.dumb_createh](hHelper for implementing }(hjX[hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjb[h]hstruct drm_driver}(hjd[hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj`[ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jYc.drm_gem_vram_fill_create_dumbasbj drm_driveruh1hhjHNhKhjX[ubh .dumb_create}(hjX[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjU[hhubah}(h]h ]h"]h$]h&]uh1jhj Yhhhj$YhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1j2hhhj@hNhNubj)}(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)}(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:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj[ubj)}(hhh](j)}(h'``struct drm_file *file`` the DRM file h](j)}(h``struct drm_file *file``h]j)}(hj[h]hstruct drm_file *file}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj[ubj )}(hhh]h)}(h the DRM fileh]h the DRM file}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMhj[ubah}(h]h ]h"]h$]h&]uh1j hj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj[ubj)}(h*``struct drm_device *dev`` the 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&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj[ubj )}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj\ubah}(h]h ]h"]h$]h&]uh1j hj[ubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj[ubj)}(hP``unsigned long pg_align`` the buffer's alignment in multiples of the page size h](j)}(h``unsigned long pg_align``h]j)}(hj3\h]hunsigned long pg_align}(hj5\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1\ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj-\ubj )}(hhh]h)}(h4the buffer's alignment in multiples of the page sizeh]h6the buffer’s alignment in multiples of the page size}(hjL\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH\hMhjI\ubah}(h]h ]h"]h$]h&]uh1j hj-\ubeh}(h]h ]h"]h$]h&]uh1jhjH\hMhj[ubj)}(hF``unsigned long pitch_align`` the scanline's alignment in powers of 2 h](j)}(h``unsigned long pitch_align``h]j)}(hjl\h]hunsigned long pitch_align}(hjn\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj\ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjf\ubj )}(hhh]h)}(h'the scanline's alignment in powers of 2h]h)the scanline’s alignment in powers of 2}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj\ubah}(h]h ]h"]h$]h&]uh1j hjf\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj[ubj)}(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)}(hj\h]h!struct drm_mode_create_dumb *args}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj\ubj )}(hhh]h)}(hQthe arguments as provided to :c:type:`struct drm_driver `.dumb_createh](hthe arguments as provided to }(hj\hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hj\h]hstruct drm_driver}(hj\hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj\ubh .dumb_create}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\hMhj\ubah}(h]h ]h"]h$]h&]uh1j hj\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&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj[ubh)}(hXThis helper function fills :c:type:`struct drm_mode_create_dumb `, which is used by :c:type:`struct drm_driver `.dumb_create. Implementations of this interface should forwards their arguments to this helper, plus the driver-specific parameters.h](hThis helper function fills }(hj]hhhNhNubh)}(h<:c:type:`struct drm_mode_create_dumb `h]j)}(hj$]h]hstruct drm_mode_create_dumb}(hj&]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj"]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_mode_create_dumbuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj]ubh, which is used by }(hj]hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjH]h]hstruct drm_driver}(hjJ]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjF]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhjA]hMhj]ubh.dumb_create. Implementations of this interface should forwards their arguments to this helper, plus the driver-specific parameters.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjA]hMhj[ubh)}(h **Return**h]j)}(hjq]h]hReturn}(hjs]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo]ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj[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:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.,drm_gem_vram_driver_dumb_create (C function)!c.drm_gem_vram_driver_dumb_createhNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(hvint drm_gem_vram_driver_dumb_create (struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h]j>)}(huint drm_gem_vram_driver_dumb_create(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h](jc)}(hinth]hint}(hj]hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj]hhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMubjV)}(h h]h }(hj]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj]hhhj]hMubjg)}(hdrm_gem_vram_driver_dumb_createh]jm)}(hdrm_gem_vram_driver_dumb_createh]hdrm_gem_vram_driver_dumb_create}(hj]hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj]hhhj]hMubj)}(hR(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h](j)}(hstruct drm_file *fileh](jD)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj]ubjV)}(h h]h }(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj]ubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hj^hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^modnameN classnameNjj)}j]j)}jj]sb!c.drm_gem_vram_driver_dumb_createasbuh1hhj]ubjV)}(h h]h }(hj1^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj]ubj)}(hjh]h*}(hj?^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjm)}(hfileh]hfile}(hjL^hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hje^hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChja^ubjV)}(h h]h }(hjr^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhja^ubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hj^hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^modnameN classnameNjj)}j]j-^!c.drm_gem_vram_driver_dumb_createasbuh1hhja^ubjV)}(h h]h }(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhja^ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja^ubjm)}(hdevh]hdev}(hj^hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhja^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(h!struct drm_mode_create_dumb *argsh](jD)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj^ubjV)}(h h]h }(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj^ubh)}(hhh]jm)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hj^hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^modnameN classnameNjj)}j]j-^!c.drm_gem_vram_driver_dumb_createasbuh1hhj^ubjV)}(h h]h }(hj_hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj^ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjm)}(hargsh]hargs}(hj,_hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubeh}(h]h ]h"]h$]h&]jjuh1jhj]hhhj]hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj]hhhj]hMubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1j7hj]hMhj]hhubj)}(hhh]h)}(h?Implements :c:type:`struct drm_driver `.dumb_createh](h Implements }(hjV_hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hj`_h]hstruct drm_driver}(hjb_hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj^_ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j-^!c.drm_gem_vram_driver_dumb_createasbj drm_driveruh1hhjHNhKhjV_ubh .dumb_create}(hjV_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjS_hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj]hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1j2hhhj@hNhNubj)}(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)}(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:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj_ubj)}(hhh](j)}(h'``struct drm_file *file`` the DRM file h](j)}(h``struct drm_file *file``h]j)}(hj_h]hstruct drm_file *file}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj_ubj )}(hhh]h)}(h the DRM fileh]h the DRM file}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1j hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMhj_ubj)}(h*``struct drm_device *dev`` the 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&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj_ubj )}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj `hMhj`ubah}(h]h ]h"]h$]h&]uh1j hj_ubeh}(h]h ]h"]h$]h&]uh1jhj `hMhj_ubj)}(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)}(hj1`h]h!struct drm_mode_create_dumb *args}(hj3`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/`ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj+`ubj )}(hhh]h)}(hQthe arguments as provided to :c:type:`struct drm_driver `.dumb_createh](hthe arguments as provided to }(hjJ`hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjT`h]hstruct drm_driver}(hjV`hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjR`ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjJ`ubh .dumb_create}(hjJ`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjq`hMhjG`ubah}(h]h ]h"]h$]h&]uh1j hj+`ubeh}(h]h ]h"]h$]h&]uh1jhjF`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&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj_ubh)}(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 }(hj`hhhNhNubj)}(h**drm_device.vram_mm**h]hdrm_device.vram_mm}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh for its instance of VRAM MM.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj_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:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj_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:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.1drm_gem_vram_plane_helper_prepare_fb (C function)&c.drm_gem_vram_plane_helper_prepare_fbhNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(heint drm_gem_vram_plane_helper_prepare_fb (struct drm_plane *plane, struct drm_plane_state *new_state)h]j>)}(hdint drm_gem_vram_plane_helper_prepare_fb(struct drm_plane *plane, struct drm_plane_state *new_state)h](jc)}(hinth]hint}(hjahhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj ahhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMBubjV)}(h h]h }(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ahhhjahMBubjg)}(h$drm_gem_vram_plane_helper_prepare_fbh]jm)}(h$drm_gem_vram_plane_helper_prepare_fbh]h$drm_gem_vram_plane_helper_prepare_fb}(hj/ahhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+aubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj ahhhjahMBubj)}(h<(struct drm_plane *plane, struct drm_plane_state *new_state)h](j)}(hstruct drm_plane *planeh](jD)}(hjh]hstruct}(hjKahhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjGaubjV)}(h h]h }(hjXahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjGaubh)}(hhh]jm)}(h drm_planeh]h drm_plane}(hjiahhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjfaubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjkamodnameN classnameNjj)}j]j)}jj1asb&c.drm_gem_vram_plane_helper_prepare_fbasbuh1hhjGaubjV)}(h h]h }(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjGaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGaubjm)}(hplaneh]hplane}(hjahhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCaubj)}(h!struct drm_plane_state *new_stateh](jD)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjaubjV)}(h h]h }(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjaubh)}(hhh]jm)}(hdrm_plane_stateh]hdrm_plane_state}(hjahhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjamodnameN classnameNjj)}j]ja&c.drm_gem_vram_plane_helper_prepare_fbasbuh1hhjaubjV)}(h h]h }(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjaubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(h new_stateh]h new_state}(hjbhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCaubeh}(h]h ]h"]h$]h&]jjuh1jhj ahhhjahMBubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjahhhjahMBubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1j7hjahMBhjahhubj)}(hhh]h)}(hVImplements :c:type:`struct drm_plane_helper_funcs `.prepare_fbh](h Implements }(hj>bhhhNhNubh)}(h@:c:type:`struct drm_plane_helper_funcs `h]j)}(hjHbh]hstruct drm_plane_helper_funcs}(hjJbhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjFbubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]ja&c.drm_gem_vram_plane_helper_prepare_fbasbjdrm_plane_helper_funcsuh1hhjHNhKhj>bubh .prepare_fb}(hj>bhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMBhj;bhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~bjj~bjjjuh1j2hhhj@hNhNubj)}(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)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMFhjbubj)}(hhh](j)}(h(``struct drm_plane *plane`` a DRM plane h](j)}(h``struct drm_plane *plane``h]j)}(hjbh]hstruct drm_plane *plane}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMDhjbubj )}(hhh]h)}(h a DRM planeh]h a DRM plane}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMDhjbubah}(h]h ]h"]h$]h&]uh1j hjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMDhjbubj)}(h<``struct drm_plane_state *new_state`` the plane's new state h](j)}(h%``struct drm_plane_state *new_state``h]j)}(hjbh]h!struct drm_plane_state *new_state}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMEhjbubj )}(hhh]h)}(hthe plane's new stateh]hthe plane’s new state}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMEhjbubah}(h]h ]h"]h$]h&]uh1j hjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMEhjbubeh}(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&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMGhjbubh)}(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.}(hj1chhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMFhjbubh)}(h **Return**h]j)}(hjBch]hReturn}(hjDchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@cubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMJhjbubh)}(h10 on success, or a negative errno code otherwise.h]h10 on success, or a negative errno code otherwise.}(hjXchhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMKhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.1drm_gem_vram_plane_helper_cleanup_fb (C function)&c.drm_gem_vram_plane_helper_cleanup_fbhNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(hfvoid drm_gem_vram_plane_helper_cleanup_fb (struct drm_plane *plane, struct drm_plane_state *old_state)h]j>)}(hevoid drm_gem_vram_plane_helper_cleanup_fb(struct drm_plane *plane, struct drm_plane_state *old_state)h](jc)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjchhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMuubjV)}(h h]h }(hjchhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjchhhjchMuubjg)}(h$drm_gem_vram_plane_helper_cleanup_fbh]jm)}(h$drm_gem_vram_plane_helper_cleanup_fbh]h$drm_gem_vram_plane_helper_cleanup_fb}(hjchhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjchMuubj)}(h<(struct drm_plane *plane, struct drm_plane_state *old_state)h](j)}(hstruct drm_plane *planeh](jD)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjcubjV)}(h h]h }(hjchhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjcubh)}(hhh]jm)}(h drm_planeh]h drm_plane}(hjchhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjcmodnameN classnameNjj)}j]j)}jjcsb&c.drm_gem_vram_plane_helper_cleanup_fbasbuh1hhjcubjV)}(h h]h }(hjdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjcubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hplaneh]hplane}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(h!struct drm_plane_state *old_stateh](jD)}(hjh]hstruct}(hj6dhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj2dubjV)}(h h]h }(hjCdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj2dubh)}(hhh]jm)}(hdrm_plane_stateh]hdrm_plane_state}(hjTdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQdubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVdmodnameN classnameNjj)}j]jc&c.drm_gem_vram_plane_helper_cleanup_fbasbuh1hhj2dubjV)}(h h]h }(hjrdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj2dubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2dubjm)}(h old_stateh]h old_state}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj2dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjchMuubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjchhhjchMuubah}(h]jzcah ](jjeh"]h$]h&]jj)jhuh1j7hjchMuhj|chhubj)}(hhh]h)}(hVImplements :c:type:`struct drm_plane_helper_funcs `.cleanup_fbh](h Implements }(hjdhhhNhNubh)}(h@:c:type:`struct drm_plane_helper_funcs `h]j)}(hjdh]hstruct drm_plane_helper_funcs}(hjdhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jc&c.drm_gem_vram_plane_helper_cleanup_fbasbjdrm_plane_helper_funcsuh1hhjHNhKhjdubh .cleanup_fb}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMuhjdhhubah}(h]h ]h"]h$]h&]uh1jhj|chhhjchMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1j2hhhj@hNhNubj)}(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)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMyhjdubj)}(hhh](j)}(h(``struct drm_plane *plane`` a DRM plane h](j)}(h``struct drm_plane *plane``h]j)}(hj eh]hstruct drm_plane *plane}(hj"ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMwhjeubj )}(hhh]h)}(h a DRM planeh]h a DRM plane}(hj9ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ehMwhj6eubah}(h]h ]h"]h$]h&]uh1j hjeubeh}(h]h ]h"]h$]h&]uh1jhj5ehMwhjeubj)}(h<``struct drm_plane_state *old_state`` the plane's old state h](j)}(h%``struct drm_plane_state *old_state``h]j)}(hjYeh]h!struct drm_plane_state *old_state}(hj[ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWeubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMxhjSeubj )}(hhh]h)}(hthe plane's old stateh]hthe plane’s old state}(hjrehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnehMxhjoeubah}(h]h ]h"]h$]h&]uh1j hjSeubeh}(h]h ]h"]h$]h&]uh1jhjnehMxhjeubeh}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]j)}(hjeh]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMzhjdubh)}(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().}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMyhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_vram_mm_debugfs_init (C function)c.drm_vram_mm_debugfs_inithNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(h7void drm_vram_mm_debugfs_init (struct drm_minor *minor)h]j>)}(h6void drm_vram_mm_debugfs_init(struct drm_minor *minor)h](jc)}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjehhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMGubjV)}(h h]h }(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjehhhjehMGubjg)}(hdrm_vram_mm_debugfs_inith]jm)}(hdrm_vram_mm_debugfs_inith]hdrm_vram_mm_debugfs_init}(hjehhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjehhhjehMGubj)}(h(struct drm_minor *minor)h]j)}(hstruct drm_minor *minorh](jD)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjfubjV)}(h h]h }(hj#fhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjfubh)}(hhh]jm)}(h drm_minorh]h drm_minor}(hj4fhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1fubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6fmodnameN classnameNjj)}j]j)}jjesbc.drm_vram_mm_debugfs_initasbuh1hhjfubjV)}(h h]h }(hjTfhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjfubj)}(hjh]h*}(hjbfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjm)}(hminorh]hminor}(hjofhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubah}(h]h ]h"]h$]h&]jjuh1jhjehhhjehMGubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjehhhjehMGubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1j7hjehMGhjehhubj)}(hhh]h)}(hRegister VRAM MM debugfs file.h]hRegister VRAM MM debugfs file.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMGhjfhhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehMGubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1j2hhhj@hNhNubj)}(h?**Parameters** ``struct drm_minor *minor`` drm minor device.h](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMKhjfubj)}(hhh]j)}(h-``struct drm_minor *minor`` drm minor device.h](j)}(h``struct drm_minor *minor``h]j)}(hjfh]hstruct drm_minor *minor}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMMhjfubj )}(hhh]h)}(hdrm minor device.h]hdrm minor device.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMIhjfubah}(h]h ]h"]h$]h&]uh1j hjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drmm_vram_helper_init (C function)c.drmm_vram_helper_inithNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(hXint drmm_vram_helper_init (struct drm_device *dev, uint64_t vram_base, size_t vram_size)h]j>)}(hWint drmm_vram_helper_init(struct drm_device *dev, uint64_t vram_base, size_t vram_size)h](jc)}(hinth]hint}(hj4ghhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj0ghhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMubjV)}(h h]h }(hjCghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj0ghhhjBghMubjg)}(hdrmm_vram_helper_inith]jm)}(hdrmm_vram_helper_inith]hdrmm_vram_helper_init}(hjUghhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0ghhhjBghMubj)}(h>(struct drm_device *dev, uint64_t vram_base, size_t vram_size)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjqghhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjmgubjV)}(h h]h }(hj~ghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmgubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjghhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjgmodnameN classnameNjj)}j]j)}jjWgsbc.drmm_vram_helper_initasbuh1hhjmgubjV)}(h h]h }(hjghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmgubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmgubjm)}(hdevh]hdev}(hjghhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjmgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjigubj)}(huint64_t vram_baseh](h)}(hhh]jm)}(huint64_th]huint64_t}(hjghhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjgmodnameN classnameNjj)}j]jgc.drmm_vram_helper_initasbuh1hhjgubjV)}(h h]h }(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjgubjm)}(h vram_baseh]h vram_base}(hjhhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjigubj)}(hsize_t vram_sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj.hhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+hubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj0hmodnameN classnameNjj)}j]jgc.drmm_vram_helper_initasbuh1hhj'hubjV)}(h h]h }(hjLhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj'hubjm)}(h vram_sizeh]h vram_size}(hjZhhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj'hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjigubeh}(h]h ]h"]h$]h&]jjuh1jhj0ghhhjBghMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj,ghhhjBghMubah}(h]j'gah ](jjeh"]h$]h&]jj)jhuh1j7hjBghMhj)ghhubj)}(hhh]h)}(hMInitializes a device's instance of :c:type:`struct drm_vram_mm `h](h%Initializes a device’s instance of }(hjhhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjhh]hstruct drm_vram_mm}(hjhhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jgc.drmm_vram_helper_initasbj drm_vram_mmuh1hhjHNhKhjhubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjhhhubah}(h]h ]h"]h$]h&]uh1jhj)ghhhjBghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1j2hhhj@hNhNubj)}(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)}(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:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjhubj)}(hhh](j)}(h*``struct drm_device *dev`` the DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjhh]hstruct drm_device *dev}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjhubj )}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1j hjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjhubj)}(h<``uint64_t vram_base`` the base address of the video memory h](j)}(h``uint64_t vram_base``h]j)}(hj"ih]huint64_t vram_base}(hj$ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj iubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjiubj )}(hhh]h)}(h$the base address of the video memoryh]h$the base address of the video memory}(hj;ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ihMhj8iubah}(h]h ]h"]h$]h&]uh1j hjiubeh}(h]h ]h"]h$]h&]uh1jhj7ihMhjhubj)}(h;``size_t vram_size`` the size of the video memory in bytes h](j)}(h``size_t vram_size``h]j)}(hj[ih]hsize_t vram_size}(hj]ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYiubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjUiubj )}(hhh]h)}(h%the size of the video memory in bytesh]h%the size of the video memory in bytes}(hjtihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpihMhjqiubah}(h]h ]h"]h$]h&]uh1j hjUiubeh}(h]h ]h"]h$]h&]uh1jhjpihMhjhubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjhubh)}(hXCreates a new instance of :c:type:`struct drm_vram_mm ` and stores it in struct :c:type:`drm_device.vram_mm `. The instance is auto-managed and cleaned up as part of device cleanup. Calling this function multiple times will generate an error message.h](hCreates a new instance of }(hjihhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j)}(hjih]hstruct drm_vram_mm}(hjihhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_vram_mmuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjiubh and stores it in struct }(hjihhhNhNubh)}(h):c:type:`drm_device.vram_mm `h]j)}(hjih]hdrm_device.vram_mm}(hjihhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_deviceuh1hhjihMhjiubh. The instance is auto-managed and cleaned up as part of device cleanup. Calling this function multiple times will generate an error message.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjihMhjhubh)}(h **Return**h]j)}(hjjh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjhubh)}(h10 on success, or a negative errno code otherwise.h]h10 on success, or a negative errno code otherwise.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_vram_helper_mode_valid (C function)c.drm_vram_helper_mode_validhNtauh1j!hj@hhhNhNubj3)}(hhh](j8)}(hmenum drm_mode_status drm_vram_helper_mode_valid (struct drm_device *dev, const struct drm_display_mode *mode)h]j>)}(hlenum drm_mode_status drm_vram_helper_mode_valid(struct drm_device *dev, const struct drm_display_mode *mode)h](jD)}(hjGh]henum}(hjHjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjDjhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMubjV)}(h h]h }(hjVjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjDjhhhjUjhMubh)}(hhh]jm)}(hdrm_mode_statush]hdrm_mode_status}(hjgjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjdjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjijmodnameN classnameNjj)}j]j)}jdrm_vram_helper_mode_validsbc.drm_vram_helper_mode_validasbuh1hhjDjhhhjUjhMubjV)}(h h]h }(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjDjhhhjUjhMubjg)}(hdrm_vram_helper_mode_validh]jm)}(hjjh]hdrm_vram_helper_mode_valid}(hjjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDjhhhjUjhMubj)}(h=(struct drm_device *dev, const struct drm_display_mode *mode)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjjubjV)}(h h]h }(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjjmodnameN classnameNjj)}j]jjc.drm_vram_helper_mode_validasbuh1hhjjubjV)}(h h]h }(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjm)}(hdevh]hdev}(hj khhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(h#const struct drm_display_mode *modeh](jD)}(hj h]hconst}(hj%khhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj!kubjV)}(h h]h }(hj2khhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj!kubjD)}(hjh]hstruct}(hj@khhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj!kubjV)}(h h]h }(hjMkhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj!kubh)}(hhh]jm)}(hdrm_display_modeh]hdrm_display_mode}(hj^khhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj[kubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj`kmodnameN classnameNjj)}j]jjc.drm_vram_helper_mode_validasbuh1hhj!kubjV)}(h h]h }(hj|khhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj!kubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!kubjm)}(hmodeh]hmode}(hjkhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj!kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhjDjhhhjUjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj@jhhhjUjhMubah}(h]j;jah ](jjeh"]h$]h&]jj)jhuh1j7hjUjhMhj=jhhubj)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjkhhubah}(h]h ]h"]h$]h&]uh1jhj=jhhhjUjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1j2hhhj@hNhNubj)}(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)}(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:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjkubj)}(hhh](j)}(h*``struct drm_device *dev`` the DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjlh]hstruct drm_device *dev}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjkubj )}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1j hjkubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjkubj)}(h9``const struct drm_display_mode *mode`` the mode to test h](j)}(h'``const struct drm_display_mode *mode``h]j)}(hj;lh]h#const struct drm_display_mode *mode}(hj=lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9lubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj5lubj )}(hhh]h)}(hthe mode to testh]hthe mode to test}(hjTlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPlhMhjQlubah}(h]h ]h"]h$]h&]uh1j hj5lubeh}(h]h ]h"]h$]h&]uh1jhjPlhMhjkubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h**Description**h]j)}(hjvlh]h Description}(hjxlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtlubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjkubh)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjkubh)}(h**Note**h]j)}(hjlh]hNote}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjkubh)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjkubh)}(h **Return**h]j)}(hjlh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjkubh)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:391: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubeh}(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}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhhhhhMubh)}(hEThis library provides helper functions for gem objects backed by ttm.h]hEThis library provides helper functions for gem objects backed by ttm.}(hj mhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:397: ./drivers/gpu/drm/drm_gem_ttm_helper.chK hjlhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_gem_ttm_print_info (C function)c.drm_gem_ttm_print_infohNtauh1j!hjlhhhNhNubj3)}(hhh](j8)}(hjvoid drm_gem_ttm_print_info (struct drm_printer *p, unsigned int indent, const struct drm_gem_object *gem)h]j>)}(hivoid drm_gem_ttm_print_info(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *gem)h](jc)}(hvoidh]hvoid}(hj1mhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj-mhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKubjV)}(h h]h }(hj@mhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj-mhhhj?mhKubjg)}(hdrm_gem_ttm_print_infoh]jm)}(hdrm_gem_ttm_print_infoh]hdrm_gem_ttm_print_info}(hjRmhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjNmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-mhhhj?mhKubj)}(hN(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *gem)h](j)}(hstruct drm_printer *ph](jD)}(hjh]hstruct}(hjnmhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjjmubjV)}(h h]h }(hj{mhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjmubh)}(hhh]jm)}(h drm_printerh]h drm_printer}(hjmhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmmodnameN classnameNjj)}j]j)}jjTmsbc.drm_gem_ttm_print_infoasbuh1hhjjmubjV)}(h h]h }(hjmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjmubjm)}(hjh]hp}(hjmhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfmubj)}(hunsigned int indenth](jc)}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjmubjV)}(h h]h }(hjmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmubjc)}(hinth]hint}(hjmhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjmubjV)}(h h]h }(hj nhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmubjm)}(hindenth]hindent}(hjnhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfmubj)}(h const struct drm_gem_object *gemh](jD)}(hj h]hconst}(hj0nhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj,nubjV)}(h h]h }(hj=nhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj,nubjD)}(hjh]hstruct}(hjKnhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj,nubjV)}(h h]h }(hjXnhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj,nubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjinhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjfnubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjknmodnameN classnameNjj)}j]jmc.drm_gem_ttm_print_infoasbuh1hhj,nubjV)}(h h]h }(hjnhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj,nubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,nubjm)}(hgemh]hgem}(hjnhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj,nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfmubeh}(h]h ]h"]h$]h&]jjuh1jhj-mhhhj?mhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj)mhhhj?mhKubah}(h]j$mah ](jjeh"]h$]h&]jj)jhuh1j7hj?mhKhj&mhhubj)}(hhh]h)}(h2Print :c:type:`ttm_buffer_object` info for debugfsh](hPrint }(hjnhhhNhNubh)}(h:c:type:`ttm_buffer_object`h]j)}(hjnh]httm_buffer_object}(hjnhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jmc.drm_gem_ttm_print_infoasbjttm_buffer_objectuh1hhj?mhKhjnubh info for debugfs}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjnhhubah}(h]h ]h"]h$]h&]uh1jhj&mhhhj?mhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj ojj ojjjuh1j2hhhjlhNhNubj)}(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)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjoubj)}(hhh](j)}(h&``struct drm_printer *p`` DRM printer h](j)}(h``struct drm_printer *p``h]j)}(hj5oh]hstruct drm_printer *p}(hj7ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3oubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhj/oubj )}(hhh]h)}(h DRM printerh]h DRM printer}(hjNohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJohKhjKoubah}(h]h ]h"]h$]h&]uh1j hj/oubeh}(h]h ]h"]h$]h&]uh1jhjJohKhj,oubj)}(h.``unsigned int indent`` Tab indentation level h](j)}(h``unsigned int indent``h]j)}(hjnoh]hunsigned int indent}(hjpohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjloubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjhoubj )}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohKhjoubah}(h]h ]h"]h$]h&]uh1j hjhoubeh}(h]h ]h"]h$]h&]uh1jhjohKhj,oubj)}(h0``const struct drm_gem_object *gem`` GEM object h](j)}(h$``const struct drm_gem_object *gem``h]j)}(hjoh]h const struct drm_gem_object *gem}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjoubj )}(hhh]h)}(h GEM objecth]h GEM object}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohKhjoubah}(h]h ]h"]h$]h&]uh1j hjoubeh}(h]h ]h"]h$]h&]uh1jhjohKhj,oubeh}(h]h ]h"]h$]h&]uh1jhjoubh)}(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:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjoubh)}(hgThis function can be used as :c:type:`drm_gem_object_funcs.print_info ` callback.h](hThis function can be used as }(hjohhhNhNubh)}(h@:c:type:`drm_gem_object_funcs.print_info `h]j)}(hjph]hdrm_gem_object_funcs.print_info}(hjphhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjoubh callback.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphKhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjlhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_ttm_vmap (C function)c.drm_gem_ttm_vmaphNtauh1j!hjlhhhNhNubj3)}(hhh](j8)}(hHint drm_gem_ttm_vmap (struct drm_gem_object *gem, struct iosys_map *map)h]j>)}(hGint drm_gem_ttm_vmap(struct drm_gem_object *gem, struct iosys_map *map)h](jc)}(hinth]hint}(hjJphhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjFphhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK8ubjV)}(h h]h }(hjYphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjFphhhjXphK8ubjg)}(hdrm_gem_ttm_vmaph]jm)}(hdrm_gem_ttm_vmaph]hdrm_gem_ttm_vmap}(hjkphhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFphhhjXphK8ubj)}(h3(struct drm_gem_object *gem, struct iosys_map *map)h](j)}(hstruct drm_gem_object *gemh](jD)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjpubjV)}(h h]h }(hjphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjpubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjphhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjpmodnameN classnameNjj)}j]j)}jjmpsbc.drm_gem_ttm_vmapasbuh1hhjpubjV)}(h h]h }(hjphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(hgemh]hgem}(hjphhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hstruct iosys_map *maph](jD)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjpubjV)}(h h]h }(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjpubh)}(hhh]jm)}(h iosys_maph]h iosys_map}(hjqhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjqubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjqmodnameN classnameNjj)}j]jpc.drm_gem_ttm_vmapasbuh1hhjpubjV)}(h h]h }(hj5qhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjpubj)}(hjh]h*}(hjCqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(hmaph]hmap}(hjPqhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhjFphhhjXphK8ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjBphhhjXphK8ubah}(h]j=pah ](jjeh"]h$]h&]jj)jhuh1j7hjXphK8hj?phhubj)}(hhh]h)}(h vmap :c:type:`ttm_buffer_object`h](hvmap }(hjzqhhhNhNubh)}(h:c:type:`ttm_buffer_object`h]j)}(hjqh]httm_buffer_object}(hjqhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jpc.drm_gem_ttm_vmapasbjttm_buffer_objectuh1hhj?mhKhjzqubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK8hjwqhhubah}(h]h ]h"]h$]h&]uh1jhj?phhhjXphK8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1j2hhhjlhNhNubj)}(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)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK` callback.h](hCMaps a GEM object with ttm_bo_vmap(). This function can be used as }(hjirhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.vmap `h]j)}(hjsrh]hdrm_gem_object_funcs.vmap}(hjurhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjqrubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK;hjirubh callback.}(hjirhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhK;hjqubh)}(h **Return**h]j)}(hjrh]hReturn}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK>hjqubh)}(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:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK?hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjlhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_ttm_vunmap (C function)c.drm_gem_ttm_vunmaphNtauh1j!hjlhhhNhNubj3)}(hhh](j8)}(hKvoid drm_gem_ttm_vunmap (struct drm_gem_object *gem, struct iosys_map *map)h]j>)}(hJvoid drm_gem_ttm_vunmap(struct drm_gem_object *gem, struct iosys_map *map)h](jc)}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjrhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKLubjV)}(h h]h }(hjrhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjrhhhjrhKLubjg)}(hdrm_gem_ttm_vunmaph]jm)}(hdrm_gem_ttm_vunmaph]hdrm_gem_ttm_vunmap}(hjshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhjrhKLubj)}(h3(struct drm_gem_object *gem, struct iosys_map *map)h](j)}(hstruct drm_gem_object *gemh](jD)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjsubjV)}(h h]h }(hj,shhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjsubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj=shhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:subah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj?smodnameN classnameNjj)}j]j)}jjssbc.drm_gem_ttm_vunmapasbuh1hhjsubjV)}(h h]h }(hj]shhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjsubj)}(hjh]h*}(hjkshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hgemh]hgem}(hjxshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hstruct iosys_map *maph](jD)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjsubjV)}(h h]h }(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjsubh)}(hhh]jm)}(h iosys_maph]h iosys_map}(hjshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjsmodnameN classnameNjj)}j]jYsc.drm_gem_ttm_vunmapasbuh1hhjsubjV)}(h h]h }(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hmaph]hmap}(hjshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjrhKLubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjrhhhjrhKLubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1j7hjrhKLhjrhhubj)}(hhh]h)}(h"vunmap :c:type:`ttm_buffer_object`h](hvunmap }(hjthhhNhNubh)}(h:c:type:`ttm_buffer_object`h]j)}(hjth]httm_buffer_object}(hjthhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jYsc.drm_gem_ttm_vunmapasbjttm_buffer_objectuh1hhj?mhKhjtubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKLhjthhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjrhKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNtjjNtjjjuh1j2hhhjlhNhNubj)}(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)}(hjXth]h Parameters}(hjZthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVtubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKPhjRtubj)}(hhh](j)}(h+``struct drm_gem_object *gem`` GEM object. h](j)}(h``struct drm_gem_object *gem``h]j)}(hjwth]hstruct drm_gem_object *gem}(hjythhhNhNubah}(h]h ]h"]h$]h&]uh1jhjutubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKMhjqtubj )}(hhh]h)}(h GEM object.h]h GEM object.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKMhjtubah}(h]h ]h"]h$]h&]uh1j hjqtubeh}(h]h ]h"]h$]h&]uh1jhjthKMhjntubj)}(h+``struct iosys_map *map`` dma-buf mapping. h](j)}(h``struct iosys_map *map``h]j)}(hjth]hstruct iosys_map *map}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKNhjtubj )}(hhh]h)}(hdma-buf mapping.h]hdma-buf mapping.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKNhjtubah}(h]h ]h"]h$]h&]uh1j hjtubeh}(h]h ]h"]h$]h&]uh1jhjthKNhjntubeh}(h]h ]h"]h$]h&]uh1jhjRtubh)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKPhjRtubh)}(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 }(hjuhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.vmap `h]j)}(hj uh]hdrm_gem_object_funcs.vmap}(hj uhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj uubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKOhjuubh callback.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj(uhKOhjRtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjlhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_ttm_mmap (C function)c.drm_gem_ttm_mmaphNtauh1j!hjlhhhNhNubj3)}(hhh](j8)}(hMint drm_gem_ttm_mmap (struct drm_gem_object *gem, struct vm_area_struct *vma)h]j>)}(hLint drm_gem_ttm_mmap(struct drm_gem_object *gem, struct vm_area_struct *vma)h](jc)}(hinth]hint}(hjSuhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjOuhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK]ubjV)}(h h]h }(hjbuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjOuhhhjauhK]ubjg)}(hdrm_gem_ttm_mmaph]jm)}(hdrm_gem_ttm_mmaph]hdrm_gem_ttm_mmap}(hjtuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjpuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOuhhhjauhK]ubj)}(h8(struct drm_gem_object *gem, struct vm_area_struct *vma)h](j)}(hstruct drm_gem_object *gemh](jD)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjuubjV)}(h h]h }(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjumodnameN classnameNjj)}j]j)}jjvusbc.drm_gem_ttm_mmapasbuh1hhjuubjV)}(h h]h }(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hgemh]hgem}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hstruct vm_area_struct *vmah](jD)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjuubjV)}(h h]h }(hjvhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hj vhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj"vmodnameN classnameNjj)}j]juc.drm_gem_ttm_mmapasbuh1hhjuubjV)}(h h]h }(hj>vhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubj)}(hjh]h*}(hjLvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hvmah]hvma}(hjYvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhjOuhhhjauhK]ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjKuhhhjauhK]ubah}(h]jFuah ](jjeh"]h$]h&]jj)jhuh1j7hjauhK]hjHuhhubj)}(hhh]h)}(h mmap :c:type:`ttm_buffer_object`h](hmmap }(hjvhhhNhNubh)}(h:c:type:`ttm_buffer_object`h]j)}(hjvh]httm_buffer_object}(hjvhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]juc.drm_gem_ttm_mmapasbjttm_buffer_objectuh1hhj?mhKhjvubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK]hjvhhubah}(h]h ]h"]h$]h&]uh1jhjHuhhhjauhK]ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1j2hhhjlhNhNubj)}(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)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKahjvubj)}(hhh](j)}(h+``struct drm_gem_object *gem`` GEM object. h](j)}(h``struct drm_gem_object *gem``h]j)}(hjvh]hstruct drm_gem_object *gem}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK^hjvubj )}(hhh]h)}(h GEM object.h]h GEM object.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhK^hjvubah}(h]h ]h"]h$]h&]uh1j hjvubeh}(h]h ]h"]h$]h&]uh1jhjvhK^hjvubj)}(h(``struct vm_area_struct *vma`` vm area. h](j)}(h``struct vm_area_struct *vma``h]j)}(hj!wh]hstruct vm_area_struct *vma}(hj#whhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK_hjwubj )}(hhh]h)}(hvm area.h]hvm area.}(hj:whhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6whK_hj7wubah}(h]h ]h"]h$]h&]uh1j hjwubeh}(h]h ]h"]h$]h&]uh1jhj6whK_hjvubeh}(h]h ]h"]h$]h&]uh1jhjvubh)}(h**Description**h]j)}(hj\wh]h Description}(hj^whhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZwubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKahjvubh)}(haThis function can be used as :c:type:`drm_gem_object_funcs.mmap ` callback.h](hThis function can be used as }(hjrwhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.mmap `h]j)}(hj|wh]hdrm_gem_object_funcs.mmap}(hj~whhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjzwubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK`hjrwubh callback.}(hjrwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhK`hjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjlhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.(drm_gem_ttm_dumb_map_offset (C function)c.drm_gem_ttm_dumb_map_offsethNtauh1j!hjlhhhNhNubj3)}(hhh](j8)}(hrint drm_gem_ttm_dumb_map_offset (struct drm_file *file, struct drm_device *dev, uint32_t handle, uint64_t *offset)h]j>)}(hqint drm_gem_ttm_dumb_map_offset(struct drm_file *file, struct drm_device *dev, uint32_t handle, uint64_t *offset)h](jc)}(hinth]hint}(hjwhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjwhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKyubjV)}(h h]h }(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjwhhhjwhKyubjg)}(hdrm_gem_ttm_dumb_map_offseth]jm)}(hdrm_gem_ttm_dumb_map_offseth]hdrm_gem_ttm_dumb_map_offset}(hjwhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhjwhKyubj)}(hR(struct drm_file *file, struct drm_device *dev, uint32_t handle, uint64_t *offset)h](j)}(hstruct drm_file *fileh](jD)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjwubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjwubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj!xmodnameN classnameNjj)}j]j)}jjwsbc.drm_gem_ttm_dumb_map_offsetasbuh1hhjwubjV)}(h h]h }(hj?xhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjwubj)}(hjh]h*}(hjMxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hfileh]hfile}(hjZxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjsxhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjoxubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoxubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]j;xc.drm_gem_ttm_dumb_map_offsetasbuh1hhjoxubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoxubjm)}(hdevh]hdev}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(huint32_t handleh](h)}(hhh]jm)}(huint32_th]huint32_t}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]j;xc.drm_gem_ttm_dumb_map_offsetasbuh1hhjxubjV)}(h h]h }(hjyhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjxubjm)}(hhandleh]hhandle}(hjyhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(huint64_t *offseth](h)}(hhh]jm)}(huint64_th]huint64_t}(hj.yhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+yubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj0ymodnameN classnameNjj)}j]j;xc.drm_gem_ttm_dumb_map_offsetasbuh1hhj'yubjV)}(h h]h }(hjLyhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj'yubj)}(hjh]h*}(hjZyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'yubjm)}(hoffseth]hoffset}(hjgyhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj'yubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjwhKyubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjwhhhjwhKyubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1j7hjwhKyhjwhhubj)}(hhh]h)}(hCImplements struct :c:type:`drm_driver.dumb_map_offset `h](hImplements struct }(hjyhhhNhNubh)}(h1:c:type:`drm_driver.dumb_map_offset `h]j)}(hjyh]hdrm_driver.dumb_map_offset}(hjyhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j;xc.drm_gem_ttm_dumb_map_offsetasbj drm_driveruh1hhj?mhKhjyubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKyhjyhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjwhKyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1j2hhhjlhNhNubj)}(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)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK}hjyubj)}(hhh](j)}(h,``struct drm_file *file`` DRM file pointer. h](j)}(h``struct drm_file *file``h]j)}(hjyh]hstruct drm_file *file}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKzhjyubj )}(hhh]h)}(hDRM file pointer.h]hDRM file pointer.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj zhKzhj zubah}(h]h ]h"]h$]h&]uh1j hjyubeh}(h]h ]h"]h$]h&]uh1jhj zhKzhjyubj)}(h'``struct drm_device *dev`` DRM device. h](j)}(h``struct drm_device *dev``h]j)}(hj/zh]hstruct drm_device *dev}(hj1zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-zubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK{hj)zubj )}(hhh]h)}(h DRM device.h]h DRM device.}(hjHzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDzhK{hjEzubah}(h]h ]h"]h$]h&]uh1j hj)zubeh}(h]h ]h"]h$]h&]uh1jhjDzhK{hjyubj)}(h``uint32_t handle`` GEM handle h](j)}(h``uint32_t handle``h]j)}(hjhzh]huint32_t handle}(hjjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfzubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK|hjbzubj )}(hhh]h)}(h GEM handleh]h GEM handle}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}zhK|hj~zubah}(h]h ]h"]h$]h&]uh1j hjbzubeh}(h]h ]h"]h$]h&]uh1jhj}zhK|hjyubj)}(hD``uint64_t *offset`` Returns the mapping's memory offset on success h](j)}(h``uint64_t *offset``h]j)}(hjzh]huint64_t *offset}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK}hjzubj )}(hhh]h)}(h.Returns the mapping's memory offset on successh]h0Returns the mapping’s memory offset on success}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhK}hjzubah}(h]h ]h"]h$]h&]uh1j hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhK}hjyubeh}(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&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjyubh)}(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 }(hjzhhhNhNubh)}(h1:c:type:`drm_driver.dumb_map_offset `h]j)}(hjzh]hdrm_driver.dumb_map_offset}(hjzhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chK~hjzubh for TTM-based GEM drivers. TTM allocates the offset internally and drm_gem_ttm_dumb_map_offset() returns it for dumb-buffer implementations.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{hK~hjyubh)}(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)}(hj.{h]hdrm_driver.dumb_map_offset}(hj0{hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj,{ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhj${ubh.}(hj${hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjK{hKhjyubh)}(h **Return**h]j)}(hjX{h]hReturn}(hjZ{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV{ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjyubh)}(h10 on success, or a negative errno code otherwise.h]h10 on success, or a negative errno code otherwise.}(hjn{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:400: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjlhhhNhNubeh}(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}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hhhhhMubh)}(hXThe vma-manager is responsible to map arbitrary driver-dependent memory regions into the linear user address-space. It provides offsets to the caller which can then be used on the address_space of the drm-device. It takes care to not overlap regions, size them appropriately and to not confuse mm-core by inconsistent fake vm_pgoff fields. Drivers shouldn't use this for object placement in VMEM. This manager should only be used to manage mappings into linear user-space VMs.h]hXThe vma-manager is responsible to map arbitrary driver-dependent memory regions into the linear user address-space. It provides offsets to the caller which can then be used on the address_space of the drm-device. It takes care to not overlap regions, size them appropriately and to not confuse mm-core by inconsistent fake vm_pgoff fields. Drivers shouldn’t use this for object placement in VMEM. This manager should only be used to manage mappings into linear user-space VMs.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:406: ./drivers/gpu/drm/drm_vma_manager.chK&hj{hhubh)}(hWe use drm_mm as backend to manage object allocations. But it is highly optimized for alloc/free calls, not lookups. Hence, we use an rb-tree to speed up offset lookups.h]hWe use drm_mm as backend to manage object allocations. But it is highly optimized for alloc/free calls, not lookups. Hence, we use an rb-tree to speed up offset lookups.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:406: ./drivers/gpu/drm/drm_vma_manager.chK.hj{hhubh)}(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:406: ./drivers/gpu/drm/drm_vma_manager.chK2hj{hhubh)}(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:406: ./drivers/gpu/drm/drm_vma_manager.chK6hj{hhubh)}(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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:406: ./drivers/gpu/drm/drm_vma_manager.chK=hj{hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j./drm_vma_offset_exact_lookup_locked (C function)$c.drm_vma_offset_exact_lookup_lockedhNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hstruct drm_vma_offset_node * drm_vma_offset_exact_lookup_locked (struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h]j>)}(hstruct drm_vma_offset_node *drm_vma_offset_exact_lookup_locked(struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h](jD)}(hjh]hstruct}(hj |hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj|hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKTubjV)}(h h]h }(hj|hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj|hhhj|hKTubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hj(|hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj%|ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj*|modnameN classnameNjj)}j]j)}j"drm_vma_offset_exact_lookup_lockedsb$c.drm_vma_offset_exact_lookup_lockedasbuh1hhj|hhhj|hKTubjV)}(h h]h }(hjI|hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj|hhhj|hKTubj)}(hjh]h*}(hjW|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj|hKTubjg)}(h"drm_vma_offset_exact_lookup_lockedh]jm)}(hjF|h]h"drm_vma_offset_exact_lookup_locked}(hjh|hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjd|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhj|hKTubj)}(hN(struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h](j)}(h"struct drm_vma_offset_manager *mgrh](jD)}(hjh]hstruct}(hj|hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj|ubjV)}(h h]h }(hj|hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj|ubh)}(hhh]jm)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hj|hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj|modnameN classnameNjj)}j]jD|$c.drm_vma_offset_exact_lookup_lockedasbuh1hhj|ubjV)}(h h]h }(hj|hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hmgrh]hmgr}(hj|hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{|ubj)}(hunsigned long starth](jc)}(hunsignedh]hunsigned}(hj|hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj|ubjV)}(h h]h }(hj}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj|ubjc)}(hlongh]hlong}(hj}hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj|ubjV)}(h h]h }(hj}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj|ubjm)}(hstarth]hstart}(hj+}hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{|ubj)}(hunsigned long pagesh](jc)}(hunsignedh]hunsigned}(hjD}hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj@}ubjV)}(h h]h }(hjR}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@}ubjc)}(hlongh]hlong}(hj`}hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj@}ubjV)}(h h]h }(hjn}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@}ubjm)}(hpagesh]hpages}(hj|}hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{|ubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhj|hKTubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj|hhhj|hKTubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1j7hj|hKThj{hhubj)}(hhh]h)}(hLook up node by exact addressh]hLook up node by exact address}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKThj}hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj|hKTubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1j2hhhj{hNhNubj)}(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:409: ./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)}(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:409: ./include/drm/drm_vma_manager.hhKUhj}ubj )}(hhh]h)}(hManager objecth]hManager object}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKUhj}ubah}(h]h ]h"]h$]h&]uh1j hj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hKUhj}ubj)}(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:409: ./include/drm/drm_vma_manager.hhKVhj~ubj )}(hhh]h)}(h*Start address (page-based, not byte-based)h]h*Start address (page-based, not byte-based)}(hj9~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5~hKVhj6~ubah}(h]h ]h"]h$]h&]uh1j hj~ubeh}(h]h ]h"]h$]h&]uh1jhj5~hKVhj}ubj)}(h4``unsigned long pages`` Size of object (page-based) h](j)}(h``unsigned long pages``h]j)}(hjY~h]hunsigned long pages}(hj[~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW~ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKWhjS~ubj )}(hhh]h)}(hSize of object (page-based)h]hSize of object (page-based)}(hjr~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn~hKWhjo~ubah}(h]h ]h"]h$]h&]uh1j hjS~ubeh}(h]h ]h"]h$]h&]uh1jhjn~hKWhj}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:409: ./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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKXhj}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:409: ./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:409: ./include/drm/drm_vma_manager.hhK\hj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_vma_offset_lock_lookup (C function)c.drm_vma_offset_lock_lookuphNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hDvoid drm_vma_offset_lock_lookup (struct drm_vma_offset_manager *mgr)h]j>)}(hCvoid drm_vma_offset_lock_lookup(struct drm_vma_offset_manager *mgr)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKkubjV)}(h h]h }(hj!hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj hKkubjg)}(hdrm_vma_offset_lock_lookuph]jm)}(hdrm_vma_offset_lock_lookuph]hdrm_vma_offset_lock_lookup}(hj3hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hKkubj)}(h$(struct drm_vma_offset_manager *mgr)h]j)}(h"struct drm_vma_offset_manager *mgrh](jD)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjKubjV)}(h h]h }(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKubh)}(hhh]jm)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjmhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjomodnameN classnameNjj)}j]j)}jj5sbc.drm_vma_offset_lock_lookupasbuh1hhjKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKkubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj hKkubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj hKkhjhhubj)}(hhh]h)}(h$Lock lookup for extended private useh]h$Lock lookup for extended private use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKkhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKkubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj{hNhNubj)}(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:409: ./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:409: ./include/drm/drm_vma_manager.hhKlhj ubj )}(hhh]h)}(hManager objecth]hManager object}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKlhj)ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj(hKlhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./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().}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./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:409: ./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:409: ./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:409: ./include/drm/drm_vma_manager.hhKxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.)drm_vma_offset_unlock_lookup (C function)c.drm_vma_offset_unlock_lookuphNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hFvoid drm_vma_offset_unlock_lookup (struct drm_vma_offset_manager *mgr)h]j>)}(hEvoid drm_vma_offset_unlock_lookup(struct drm_vma_offset_manager *mgr)h](jc)}(hvoidh]hvoid}(hj؀hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjԀhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjԀhhhjhKubjg)}(hdrm_vma_offset_unlock_lookuph]jm)}(hdrm_vma_offset_unlock_lookuph]hdrm_vma_offset_unlock_lookup}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjԀhhhjhKubj)}(h$(struct drm_vma_offset_manager *mgr)h]j)}(h"struct drm_vma_offset_manager *mgrh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hj3hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj5modnameN classnameNjj)}j]j)}jjsbc.drm_vma_offset_unlock_lookupasbuh1hhjubjV)}(h h]h }(hjShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmgrh]hmgr}(hjnhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjԀhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjЀhhhjhKubah}(h]jˀah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhj̀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:409: ./include/drm/drm_vma_manager.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj̀hhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj{hNhNubj)}(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:409: ./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:409: ./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&]uh1j hjӁ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:409: ./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:409: ./include/drm/drm_vma_manager.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_vma_node_reset (C function)c.drm_vma_node_resethNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(h:void drm_vma_node_reset (struct drm_vma_offset_node *node)h]j>)}(h9void drm_vma_node_reset(struct drm_vma_offset_node *node)h](jc)}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjUhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKubjV)}(h h]h }(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjUhhhjghKubjg)}(hdrm_vma_node_reseth]jm)}(hdrm_vma_node_reseth]hdrm_vma_node_reset}(hjzhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjghKubj)}(h"(struct drm_vma_offset_node *node)h]j)}(h struct drm_vma_offset_node *nodeh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj|sbc.drm_vma_node_resetasbuh1hhjubjV)}(h h]h }(hjԂhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjUhhhjghKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjQhhhjghKubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1j7hjghKhjNhhubj)}(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:409: ./include/drm/drm_vma_manager.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjghKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1j2hhhj{hNhNubj)}(hX**Parameters** ``struct drm_vma_offset_node *node`` Node to initialize or reset **Description** Reset a node to its initial state. This must be called before using it with any VMA offset manager. This must not be called on an already allocated node, or you will leak memory.h](h)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKhj5ubj)}(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)}(hjZh]h struct drm_vma_offset_node *node}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKhjTubj )}(hhh]h)}(hNode to initialize or reseth]hNode to initialize or reset}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohKhjpubah}(h]h ]h"]h$]h&]uh1j hjTubeh}(h]h ]h"]h$]h&]uh1jhjohKhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubh)}(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:409: ./include/drm/drm_vma_manager.hhKhj5ubh)}(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:409: ./include/drm/drm_vma_manager.hhKhj5ubh)}(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:409: ./include/drm/drm_vma_manager.hhKhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_vma_node_start (C function)c.drm_vma_node_starthNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hIunsigned long drm_vma_node_start (const struct drm_vma_offset_node *node)h]j>)}(hHunsigned long drm_vma_node_start(const struct drm_vma_offset_node *node)h](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhjhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(hdrm_vma_node_starth]jm)}(hdrm_vma_node_starth]hdrm_vma_node_start}(hj&hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h((const struct drm_vma_offset_node *node)h]j)}(h&const struct drm_vma_offset_node *nodeh](jD)}(hj h]hconst}(hjBhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj>ubjV)}(h h]h }(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubjD)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj>ubjV)}(h h]h }(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hj{hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj}modnameN classnameNjj)}j]j)}jj(sbc.drm_vma_node_startasbuh1hhj>ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]j܃ah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjރhhubj)}(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:409: ./include/drm/drm_vma_manager.hhKhj݄hhubah}(h]h ]h"]h$]h&]uh1jhjރhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj{hNhNubj)}(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:409: ./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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKhjubj )}(hhh]h)}(hNode to inspecth]hNode to inspect}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj7ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj6hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj\h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./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:409: ./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:409: ./include/drm/drm_vma_manager.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_vma_node_size (C function)c.drm_vma_node_sizehNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hBunsigned long drm_vma_node_size (struct drm_vma_offset_node *node)h]j>)}(hAunsigned long drm_vma_node_size(struct drm_vma_offset_node *node)h](jc)}(hunsignedh]hunsigned}(hjڅhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjօhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjօhhhjhKubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjօhhhjhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjօhhhjhKubjg)}(hdrm_vma_node_sizeh]jm)}(hdrm_vma_node_sizeh]hdrm_vma_node_size}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjօhhhjhKubj)}(h"(struct drm_vma_offset_node *node)h]j)}(h struct drm_vma_offset_node *nodeh](jD)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj/ubjV)}(h h]h }(hj@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/ubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjSmodnameN classnameNjj)}j]j)}jjsbc.drm_vma_node_sizeasbuh1hhj/ubjV)}(h h]h }(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubah}(h]h ]h"]h$]h&]jjuh1jhjօhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj҅hhhjhKubah}(h]jͅah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjυ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:409: ./include/drm/drm_vma_manager.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjυhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjΆjjΆjjjuh1j2hhhj{hNhNubj)}(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:409: ./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:409: ./include/drm/drm_vma_manager.hhKhjubj )}(hhh]h)}(hNode to inspecth]hNode to inspect}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubah}(h]h ]h"]h$]h&]uh1jhj҆ubh)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKhj҆ubh)}(h **Return**h]j)}(hjYh]hReturn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./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 }(hjohhhNhNubj)}(h**node**h]hnode}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubhE as number of pages. 0 if the node does not have an offset allocated.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKhj҆ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_vma_node_offset_addr (C function)c.drm_vma_node_offset_addrhNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hA__u64 drm_vma_node_offset_addr (struct drm_vma_offset_node *node)h]j>)}(h@__u64 drm_vma_node_offset_addr(struct drm_vma_offset_node *node)h](h)}(hhh]jm)}(h__u64h]h__u64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_vma_node_offset_addrsbc.drm_vma_node_offset_addrasbuh1hhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKubjV)}(h h]h }(hjՇhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjԇhKubjg)}(hdrm_vma_node_offset_addrh]jm)}(hjчh]hdrm_vma_node_offset_addr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjԇhKubj)}(h"(struct drm_vma_offset_node *node)h]j)}(h struct drm_vma_offset_node *nodeh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj"modnameN classnameNjj)}j]jχc.drm_vma_node_offset_addrasbuh1hhjubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hjYhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjԇhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjԇhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjԇ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:409: ./include/drm/drm_vma_manager.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjԇhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj{hNhNubj)}(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:409: ./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:409: ./include/drm/drm_vma_manager.hhKhjubj )}(hhh]h)}(hLinked offset nodeh]hLinked offset node}(hj݈hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjوhKhjڈubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:409: ./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:409: ./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:409: ./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}(hjDhhhNhNubah}(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:409: ./include/drm/drm_vma_manager.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_vma_node_unmap (C function)c.drm_vma_node_unmaphNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(h^void drm_vma_node_unmap (struct drm_vma_offset_node *node, struct address_space *file_mapping)h]j>)}(h]void drm_vma_node_unmap(struct drm_vma_offset_node *node, struct address_space *file_mapping)h](jc)}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjyhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjyhhhjhKubjg)}(hdrm_vma_node_unmaph]jm)}(hdrm_vma_node_unmaph]hdrm_vma_node_unmap}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyhhhjhKubj)}(hF(struct drm_vma_offset_node *node, struct address_space *file_mapping)h](j)}(h struct drm_vma_offset_node *nodeh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjljhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hj؉hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjՉubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjډmodnameN classnameNjj)}j]j)}jjsbc.drm_vma_node_unmapasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"struct address_space *file_mappingh](jD)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj(ubjV)}(h h]h }(hj9hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(ubh)}(hhh]jm)}(h address_spaceh]h address_space}(hjJhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjLmodnameN classnameNjj)}j]jc.drm_vma_node_unmapasbuh1hhj(ubjV)}(h h]h }(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(h file_mappingh]h file_mapping}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjuhhhjhKubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjrhhubj)}(hhh]h)}(hUnmap offset nodeh]hUnmap offset node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjŊjjŊjjjuh1j2hhhj{hNhNubj)}(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:409: ./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:409: ./include/drm/drm_vma_manager.hhKhjubj )}(hhh]h)}(h Offset nodeh]h Offset node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:409: ./include/drm/drm_vma_manager.hhKhj!ubj )}(hhh]h)}(h$Address space to unmap **node** fromh](hAddress space to unmap }(hj@hhhNhNubj)}(h**node**h]hnode}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh from}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj<hKhj=ubah}(h]h ]h"]h$]h&]uh1j hj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhjubeh}(h]h ]h"]h$]h&]uh1jhjɊubh)}(h**Description**h]j)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./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:409: ./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:409: ./include/drm/drm_vma_manager.hhKhjɊubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_vma_node_verify_access (C function)c.drm_vma_node_verify_accesshNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hWint drm_vma_node_verify_access (struct drm_vma_offset_node *node, struct drm_file *tag)h]j>)}(hVint drm_vma_node_verify_access(struct drm_vma_offset_node *node, struct drm_file *tag)h](jc)}(hinth]hint}(hjڋhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj֋hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj֋hhhjhKubjg)}(hdrm_vma_node_verify_accessh]jm)}(hdrm_vma_node_verify_accessh]hdrm_vma_node_verify_access}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj֋hhhjhKubj)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(h struct drm_vma_offset_node *nodeh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hj5hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj7modnameN classnameNjj)}j]j)}jjsbc.drm_vma_node_verify_accessasbuh1hhjubjV)}(h h]h }(hjUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hjphhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_file *tagh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jQc.drm_vma_node_verify_accessasbuh1hhjubjV)}(h h]h }(hjŌhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjӌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htagh]htag}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj֋hhhjhKubeh}(hZ]h ]h"]h$]h&]jjjuh1j=jjhjҋhhhjhKubah}(h]j͋ah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjϋhhubj)}(hhh]h)}(h"Access verification helper for TTMh]h"Access verification helper for TTM}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjϋhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1j2hhhj{hNhNubj)}(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)}(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:409: ./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)}(hjKh]h struct drm_vma_offset_node *node}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./include/drm/drm_vma_manager.hhKhjEubj )}(hhh]h)}(h Offset nodeh]h Offset node}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKhjaubah}(h]h ]h"]h$]h&]uh1j hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKhjBubj)}(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:409: ./include/drm/drm_vma_manager.hhKhj~ubj )}(hhh]h)}(hTag of file to checkh]hTag of file to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjBubeh}(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:409: ./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}(hjݍhhhNhNubah}(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:409: ./include/drm/drm_vma_manager.hhKhj&ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:409: ./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:409: ./include/drm/drm_vma_manager.hhKhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.(drm_vma_offset_manager_init (C function)c.drm_vma_offset_manager_inithNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(htvoid drm_vma_offset_manager_init (struct drm_vma_offset_manager *mgr, unsigned long page_offset, unsigned long size)h]j>)}(hsvoid drm_vma_offset_manager_init(struct drm_vma_offset_manager *mgr, unsigned long page_offset, unsigned long size)h](jc)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjKhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKHubjV)}(h h]h }(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKhhhj]hKHubjg)}(hdrm_vma_offset_manager_inith]jm)}(hdrm_vma_offset_manager_inith]hdrm_vma_offset_manager_init}(hjphhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhj]hKHubj)}(hS(struct drm_vma_offset_manager *mgr, unsigned long page_offset, unsigned long size)h](j)}(h"struct drm_vma_offset_manager *mgrh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjrsbc.drm_vma_offset_manager_initasbuh1hhjubjV)}(h h]h }(hjʎhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj؎hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long page_offseth](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hj(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h page_offseth]h page_offset}(hj6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long sizeh](jc)}(hunsignedh]hunsigned}(hjOhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjKubjV)}(h h]h }(hj]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKubjc)}(hlongh]hlong}(hjkhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjKubjV)}(h h]h }(hjyhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhj]hKHubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjGhhhj]hKHubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1j7hj]hKHhjDhhubj)}(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:412: ./drivers/gpu/drm/drm_vma_manager.chKHhjhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hKHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjɏjjɏjjjuh1j2hhhj{hNhNubj)}(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:412: ./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:412: ./drivers/gpu/drm/drm_vma_manager.chKIhjubj )}(hhh]h)}(hManager objecth]hManager object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKIhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKIhjubj)}(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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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)}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKJhjAubah}(h]h ]h"]h$]h&]uh1j hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKJhjubj)}(hJ``unsigned long size`` Size of available address space range (page-based) h](j)}(h``unsigned long size``h]j)}(hjdh]hunsigned long size}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKKhj^ubj )}(hhh]h)}(h2Size of available address space range (page-based)h]h2Size of available address space range (page-based)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKKhjzubah}(h]h ]h"]h$]h&]uh1j hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKKhjubeh}(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:412: ./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:412: ./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:412: ./drivers/gpu/drm/drm_vma_manager.chKPhj͏ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.+drm_vma_offset_manager_destroy (C function) c.drm_vma_offset_manager_destroyhNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hHvoid drm_vma_offset_manager_destroy (struct drm_vma_offset_manager *mgr)h]j>)}(hGvoid drm_vma_offset_manager_destroy(struct drm_vma_offset_manager *mgr)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chK_ubjV)}(h h]h }(hj&hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj%hK_ubjg)}(hdrm_vma_offset_manager_destroyh]jm)}(hdrm_vma_offset_manager_destroyh]hdrm_vma_offset_manager_destroy}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj%hK_ubj)}(h$(struct drm_vma_offset_manager *mgr)h]j)}(h"struct drm_vma_offset_manager *mgrh](jD)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjPubjV)}(h h]h }(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjPubh)}(hhh]jm)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjrhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjtmodnameN classnameNjj)}j]j)}jj:sb c.drm_vma_offset_manager_destroyasbuh1hhjPubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hK_ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj%hK_ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj%hK_hj hhubj)}(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:412: ./drivers/gpu/drm/drm_vma_manager.chK_hjԑhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj{hNhNubj)}(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:412: ./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:412: ./drivers/gpu/drm/drm_vma_manager.chK`hjubj )}(hhh]h)}(hManager objecth]hManager object}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hK`hj.ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj-hK`hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.)drm_vma_offset_lookup_locked (C function)c.drm_vma_offset_lookup_lockedhNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hstruct drm_vma_offset_node * drm_vma_offset_lookup_locked (struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h]j>)}(hstruct drm_vma_offset_node *drm_vma_offset_lookup_locked(struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKpubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKpubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjƒhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjÒubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjȒmodnameN classnameNjj)}j]j)}jdrm_vma_offset_lookup_lockedsbc.drm_vma_offset_lookup_lockedasbuh1hhjhhhjhKpubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKpubjg)}(hdrm_vma_offset_lookup_lockedh]jm)}(hjh]hdrm_vma_offset_lookup_locked}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKpubj)}(hN(struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h](j)}(h"struct drm_vma_offset_manager *mgrh](jD)}(hjh]hstruct}(hj!hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hj?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]jc.drm_vma_offset_lookup_lockedasbuh1hhjubjV)}(h h]h }(hj]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmgrh]hmgr}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long starth](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hstarth]hstart}(hjɓhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long pagesh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjޓubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjޓubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjޓubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjޓubjm)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjޓubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKpubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKphjhhubj)}(hhh]h)}(hFind node in offset spaceh]hFind node in offset space}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKphjAhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKpubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1j2hhhj{hNhNubj)}(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)}(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:412: ./drivers/gpu/drm/drm_vma_manager.chKthj`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:412: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKqhj|ubj)}(h>``unsigned long start`` Start address for object (page-based) h](j)}(h``unsigned long start``h]j)}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjӔhKrhj|ubj)}(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:412: ./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&]uh1hhj hKshj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj hKshj|ubeh}(h]h ]h"]h$]h&]uh1jhj`ubh)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKuhj`ubh)}(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, }(hjHhhhNhNubj)}(h **start**h]hstart}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh 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 }(hjHhhhNhNubj)}(h **pages**h]hpages}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh).}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKthj`ubh)}(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().}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKyhj`ubh)}(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:412: ./drivers/gpu/drm/drm_vma_manager.chK}hj`ubjT)}(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&]jjuh1jSh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKhj`ubh)}(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:412: ./drivers/gpu/drm/drm_vma_manager.chKhj`ubh)}(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:412: ./drivers/gpu/drm/drm_vma_manager.chKhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_vma_offset_add (C function)c.drm_vma_offset_addhNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hrint drm_vma_offset_add (struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node, unsigned long pages)h]j>)}(hqint drm_vma_offset_add(struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node, unsigned long pages)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(hdrm_vma_offset_addh]jm)}(hdrm_vma_offset_addh]hdrm_vma_offset_add}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(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](jD)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj1ubjV)}(h h]h }(hjBhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1ubh)}(hhh]jm)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjUmodnameN classnameNjj)}j]j)}jjsbc.drm_vma_offset_addasbuh1hhj1ubjV)}(h h]h }(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(h struct drm_vma_offset_node *nodeh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjŖhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj–ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjǖmodnameN classnameNjj)}j]joc.drm_vma_offset_addasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hunsigned long pagesh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hpagesh]hpages}(hjOhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h)}(hAdd offset node to managerh]hAdd offset node to manager}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKhjvhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj{hNhNubj)}(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:412: ./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:412: ./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&]uh1j hjubeh}(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:412: ./drivers/gpu/drm/drm_vma_manager.chKhjubj )}(hhh]h)}(hNode to be addedh]hNode to be added}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hS``unsigned long pages`` Allocation size visible to user-space (in number of pages) 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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKhjBubah}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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. }(hj}hhhNhNubj)}(h **pages**h]hpages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh 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.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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:412: ./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:412: ./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:412: ./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:412: ./drivers/gpu/drm/drm_vma_manager.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_vma_offset_remove (C function)c.drm_vma_offset_removehNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(havoid drm_vma_offset_remove (struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node)h]j>)}(h`void drm_vma_offset_remove(struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhjhKubjg)}(hdrm_vma_offset_removeh]jm)}(hdrm_vma_offset_removeh]hdrm_vma_offset_remove}(hj2hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhKubj)}(hF(struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node)h](j)}(h"struct drm_vma_offset_manager *mgrh](jD)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjJubjV)}(h h]h }(hj[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjJubh)}(hhh]jm)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjlhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjnmodnameN classnameNjj)}j]j)}jj4sbc.drm_vma_offset_removeasbuh1hhjJubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(h struct drm_vma_offset_node *nodeh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj͙hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjޙhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjۙubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_vma_offset_removeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h)}(hRemove offset node from managerh]hRemove offset node from manager}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKhj>hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1j2hhhj{hNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKhj]ubj)}(hhh](j)}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](j)}(h&``struct drm_vma_offset_manager *mgr``h]j)}(hjh]h"struct drm_vma_offset_manager *mgr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKhj|ubj )}(hhh]h)}(hManager objecth]hManager object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjyubj)}(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:412: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjКhKhjyubeh}(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:412: ./drivers/gpu/drm/drm_vma_manager.chKhj]ubh)}(hXDRemove a node from the offset manager. If the node wasn't added before, this does nothing. After this call returns, the offset and size will be 0 until a new offset is allocated via drm_vma_offset_add() again. Helper functions like drm_vma_node_start() and drm_vma_node_offset_addr() will return 0 if no offset is allocated.h]hXFRemove a node from the offset manager. If the node wasn’t added before, this does nothing. After this call returns, the offset and size will be 0 until a new offset is allocated via drm_vma_offset_add() again. Helper functions like drm_vma_node_start() and drm_vma_node_offset_addr() will return 0 if no offset is allocated.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chKhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_vma_node_allow (C function)c.drm_vma_node_allowhNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hOint drm_vma_node_allow (struct drm_vma_offset_node *node, struct drm_file *tag)h]j>)}(hNint drm_vma_node_allow(struct drm_vma_offset_node *node, struct drm_file *tag)h](jc)}(hinth]hint}(hj;hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj7hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chM'ubjV)}(h h]h }(hjJhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj7hhhjIhM'ubjg)}(hdrm_vma_node_allowh]jm)}(hdrm_vma_node_allowh]hdrm_vma_node_allow}(hj\hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhjIhM'ubj)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(h struct drm_vma_offset_node *nodeh](jD)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjtubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjtubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj^sbc.drm_vma_node_allowasbuh1hhjtubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjtubj)}(hjh]h*}(hjěhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hnodeh]hnode}(hjћhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hstruct drm_file *tagh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jc.drm_vma_node_allowasbuh1hhjubjV)}(h h]h }(hj&hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htagh]htag}(hjAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhjIhM'ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj3hhhjIhM'ubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1j7hjIhM'hj0hhubj)}(hhh]h)}(h&Add open-file to list of allowed usersh]h&Add open-file to list of allowed users}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chM'hjhhhubah}(h]h ]h"]h$]h&]uh1jhj0hhhjIhM'ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj{hNhNubj)}(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:412: ./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:412: ./drivers/gpu/drm/drm_vma_manager.chM(hjubj )}(hhh]h)}(hNode to modifyh]hNode to modify}(hjŜhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjœubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM(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:412: ./drivers/gpu/drm/drm_vma_manager.chM)hjߜubj )}(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&]uh1j hjߜubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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 }(hj6hhhNhNubj)}(h**tag**h]htag}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh5 to the list of allowed open-files for this node. If }(hj6hhhNhNubj)}(h**tag**h]htag}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh7 is already on this list, the ref-count is incremented.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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:412: ./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:412: ./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:412: ./drivers/gpu/drm/drm_vma_manager.chM7hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.$drm_vma_node_allow_once (C function)c.drm_vma_node_allow_oncehNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hTint drm_vma_node_allow_once (struct drm_vma_offset_node *node, struct drm_file *tag)h]j>)}(hSint drm_vma_node_allow_once(struct drm_vma_offset_node *node, struct drm_file *tag)h](jc)}(hinth]hint}(hjݝhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjٝhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMAubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjٝhhhjhMAubjg)}(hdrm_vma_node_allow_onceh]jm)}(hdrm_vma_node_allow_onceh]hdrm_vma_node_allow_once}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjٝhhhjhMAubj)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(h struct drm_vma_offset_node *nodeh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:modnameN classnameNjj)}j]j)}jjsbc.drm_vma_node_allow_onceasbuh1hhjubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hjshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_file *tagh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jTc.drm_vma_node_allow_onceasbuh1hhjubjV)}(h h]h }(hjȞhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj֞hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htagh]htag}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjٝhhhjhMAubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj՝hhhjhMAubah}(h]jНah ](jjeh"]h$]h&]jj)jhuh1j7hjhMAhjҝhhubj)}(hhh]h)}(h&Add open-file to list of allowed usersh]h&Add open-file to list of allowed users}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMAhj hhubah}(h]h ]h"]h$]h&]uh1jhjҝhhhjhMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1j2hhhj{hNhNubj)}(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)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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)}(hjNh]h struct drm_vma_offset_node *node}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMBhjHubj )}(hhh]h)}(hNode to modifyh]hNode to modify}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMBhjdubah}(h]h ]h"]h$]h&]uh1j hjHubeh}(h]h ]h"]h$]h&]uh1jhjchMBhjEubj)}(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:412: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjEubeh}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMEhj)ubh)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMPhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_vma_node_revoke (C function)c.drm_vma_node_revokehNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hQvoid drm_vma_node_revoke (struct drm_vma_offset_node *node, struct drm_file *tag)h]j>)}(hPvoid drm_vma_node_revoke(struct drm_vma_offset_node *node, struct drm_file *tag)h](jc)}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjihhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMZubjV)}(h h]h }(hj|hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjihhhj{hMZubjg)}(hdrm_vma_node_revokeh]jm)}(hdrm_vma_node_revokeh]hdrm_vma_node_revoke}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhhj{hMZubj)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(h struct drm_vma_offset_node *nodeh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjȠhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjŠubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjʠmodnameN classnameNjj)}j]j)}jjsbc.drm_vma_node_revokeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_file *tagh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hj:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj<modnameN classnameNjj)}j]jc.drm_vma_node_revokeasbuh1hhjubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htagh]htag}(hjshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjihhhj{hMZubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjehhhj{hMZubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1j7hj{hMZhjbhhubj)}(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:412: ./drivers/gpu/drm/drm_vma_manager.chMZhjhhubah}(h]h ]h"]h$]h&]uh1jhjbhhhj{hMZubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj{hNhNubj)}(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)}(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:412: ./drivers/gpu/drm/drm_vma_manager.chM^hjubj)}(hhh](j)}(h4``struct drm_vma_offset_node *node`` Node to modify h](j)}(h$``struct drm_vma_offset_node *node``h]j)}(hjޡh]h struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܡubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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&]uh1j hjء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:412: ./drivers/gpu/drm/drm_vma_manager.chM\hjubj )}(hhh]h)}(hTag of file to removeh]hTag of file to remove}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hM\hj-ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj,hM\hjաubeh}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./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 }(hjhhhhNhNubj)}(h**tag**h]htag}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh& in the list of allowed open-files on }(hjhhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh). If the ref-count drops to zero, remove }(hjhhhhNhNubj)}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubhJ from the list. You must call this once for every drm_vma_node_allow() on }(hjhhhhNhNubj)}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chM]hjubh)}(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:412: ./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:412: ./drivers/gpu/drm/drm_vma_manager.chMchjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.$drm_vma_node_is_allowed (C function)c.drm_vma_node_is_allowedhNtauh1j!hj{hhhNhNubj3)}(hhh](j8)}(hUbool drm_vma_node_is_allowed (struct drm_vma_offset_node *node, struct drm_file *tag)h]j>)}(hTbool drm_vma_node_is_allowed(struct drm_vma_offset_node *node, struct drm_file *tag)h](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhjhMubjg)}(hdrm_vma_node_is_allowedh]jm)}(hdrm_vma_node_is_allowedh]hdrm_vma_node_is_allowed}(hj/hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMubj)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](j)}(h struct drm_vma_offset_node *nodeh](jD)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjGubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjGubh)}(hhh]jm)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjihhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjkmodnameN classnameNjj)}j]j)}jj1sbc.drm_vma_node_is_allowedasbuh1hhjGubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hstruct drm_file *tagh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjʣhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjۣhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjأubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjݣmodnameN classnameNjj)}j]jc.drm_vma_node_is_allowedasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htagh]htag}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(h,Check whether an open-file is granted accessh]h,Check whether an open-file is granted access}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMhj;hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1j2hhhj{hNhNubj)}(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)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMhjZubj)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMhjyubj )}(hhh]h)}(h Node to checkh]h Node to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(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:412: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjͤhMhjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMhjZubh)}(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:412: ./drivers/gpu/drm/drm_vma_manager.chMhjZubh)}(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:412: ./drivers/gpu/drm/drm_vma_manager.chMhjZubh)}(h **Return**h]j)}(hjMh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMhjZubh)}(htrue if **filp** is on the listh](htrue if }(hjchhhNhNubj)}(h**filp**h]hfilp}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh is on the list}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:412: ./drivers/gpu/drm/drm_vma_manager.chMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubhtarget)}(h.. _prime_buffer_sharing:h]h}(h]h ]h"]h$]h&]refidprime-buffer-sharinguh1jhMhj{hhhhubeh}(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&]uh1hhjhhhhhMubh)}(hX-Similar to GEM global names, PRIME file descriptors are also used to share buffer objects across processes. They offer additional security: as file descriptors must be explicitly sent over UNIX domain sockets to be shared between applications, they can't be guessed like the globally unique GEM names.h]hX/Similar to GEM global names, PRIME file descriptors are also used to share buffer objects across processes. They offer additional security: as file descriptors must be explicitly sent over UNIX domain sockets to be shared between applications, they can’t be guessed like the globally unique GEM names.}(hjѥhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:427: ./drivers/gpu/drm/drm_prime.chK.hjhhubh)}(hXDrivers that support the PRIME API implement the drm_gem_object_funcs.export and :c:type:`drm_driver.gem_prime_import ` hooks. :c:type:`dma_buf_ops` implementations for drivers are all individually exported for drivers which need to overwrite or reimplement some of them.h](hQDrivers that support the PRIME API implement the drm_gem_object_funcs.export and }(hjhhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j)}(hjh]hdrm_driver.gem_prime_import}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:427: ./drivers/gpu/drm/drm_prime.chK4hjubh hooks. }(hjhhhNhNubh)}(h:c:type:`dma_buf_ops`h]j)}(hjh]h dma_buf_ops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_buf_opsuh1hhjhK4hjubh{ implementations for drivers are all individually exported for drivers which need to overwrite or reimplement some of them.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK4hjhhubh)}(hhh](h)}(h"Reference Counting for GEM Driversh]h"Reference Counting for GEM Drivers}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hNhNubh)}(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 }(hjFhhhNhNubh)}(h:c:type:`dma_buf`h]j)}(hjPh]hdma_buf}(hjRhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_bufuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:427: ./drivers/gpu/drm/drm_prime.chK`h]j)}(hjh]hdrm_gem_object_funcs.export}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhjmhK`h]j)}(hjh]h dma_buf.priv}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_bufuh1hhjmhK`h]j)}(hjh]hdma_buf_ops.release}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_buf_opsuh1hhjmhK 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 }(hjJhhhNhNubh)}(h :c:type:`drm_prime_file_private`h]j)}(hjTh]hdrm_prime_file_private}(hjVhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_prime_file_privateuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:427: ./drivers/gpu/drm/drm_prime.chKEhjJubh] only retain a weak reference, which is cleaned up when the corresponding object is released.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqhKEhj5ubh)}(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.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:427: ./drivers/gpu/drm/drm_prime.chKOhj5ubeh}(h]"reference-counting-for-gem-driversah ]h"]"reference counting for gem driversah$]h&]uh1hhjhhhNhNubeh}(h]overview-and-lifetime-rulesah ]h"]overview and lifetime rulesah$]h&]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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:433: ./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}(hjܧhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjاubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj 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)}(hjh]h!drm_gem_object_funcs.get_sg_table}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:433: ./drivers/gpu/drm/drm_prime.chM4hjubh. If }(hjhhhNhNubh)}(hB:c:type:`drm_gem_object_funcs.get_sg_table `h]j)}(hj@h]h!drm_gem_object_funcs.get_sg_table}(hjBhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhj9hM4hjubh< is unimplemented, exports into another device are rejected.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hM4hjubh)}(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().}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:433: ./drivers/gpu/drm/drm_prime.chM:hjubh)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:433: ./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:433: ./drivers/gpu/drm/drm_prime.chMBhjubeh}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:433: ./drivers/gpu/drm/drm_prime.chMGhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjԨhMGhjubh)}(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.}(hjߨhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:433: ./drivers/gpu/drm/drm_prime.chMJhjubeh}(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&]uh1hhjhhhhhMubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!drm_prime_file_private (C struct)c.drm_prime_file_privatehNtauh1j!hjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:439: ./include/drm/drm_prime.hhNubj3)}(hhh](j8)}(hdrm_prime_file_privateh]j>)}(hstruct drm_prime_file_privateh](jD)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj%hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:439: ./include/drm/drm_prime.hhKubjV)}(h h]h }(hj7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj%hhhj6hKubjg)}(hdrm_prime_file_privateh]jm)}(hj#h]hdrm_prime_file_private}(hjIhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj6hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj!hhhj6hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj6hKhjhhubj)}(hhh]h)}(hper-file tracking for PRIMEh]hper-file tracking for PRIME}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:439: ./include/drm/drm_prime.hhK(hjhhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhjhjhNubj)}(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:439: ./include/drm/drm_prime.hhK,hjubjT)}(h"struct drm_prime_file_private { };h]h"struct drm_prime_file_private { };}hjsbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:439: ./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:439: ./include/drm/drm_prime.hhK1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhjhNubh)}(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:439: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_bufuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:439: ./include/drm/drm_prime.hhK)hjubh and handle caches for each }(hjhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjh]hstruct drm_file}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_fileuh1hhjhK)hjubh used by the PRIME core code.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK)hjhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_gem_dmabuf_export (C function)c.drm_gem_dmabuf_exporthNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hestruct dma_buf * drm_gem_dmabuf_export (struct drm_device *dev, struct dma_buf_export_info *exp_info)h]j>)}(hcstruct dma_buf *drm_gem_dmabuf_export(struct drm_device *dev, struct dma_buf_export_info *exp_info)h](jD)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjXhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chKubjV)}(h h]h }(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjXhhhjihKubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hj{hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj}modnameN classnameNjj)}j]j)}jdrm_gem_dmabuf_exportsbc.drm_gem_dmabuf_exportasbuh1hhjXhhhjihKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjXhhhjihKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjihKubjg)}(hdrm_gem_dmabuf_exporth]jm)}(hjh]hdrm_gem_dmabuf_export}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXhhhjihKubj)}(h>(struct drm_device *dev, struct dma_buf_export_info *exp_info)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hj֪hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjҪubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjҪubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dmabuf_exportasbuh1hhjҪubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjҪubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҪubjm)}(hdevh]hdev}(hj-hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjҪubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjΪubj)}(h$struct dma_buf_export_info *exp_infoh](jD)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjBubjV)}(h h]h }(hjShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjBubh)}(hhh]jm)}(hdma_buf_export_infoh]hdma_buf_export_info}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfmodnameN classnameNjj)}j]jc.drm_gem_dmabuf_exportasbuh1hhjBubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjm)}(hexp_infoh]hexp_info}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjΪubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhjihKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjThhhjihKubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1j7hjihKhjQhhubj)}(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 ](jjc-typeeh"]h$]h&]uh1jhj˫ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jc.drm_gem_dmabuf_exportasbjdma_bufuh1hhjihKhjǫubh export implementation for GEM}(hjǫhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chKhjīhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjihKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(hX4**Parameters** ``struct drm_device *dev`` parent device for the exported dmabuf ``struct dma_buf_export_info *exp_info`` the export information used by dma_buf_export() **Description** This wraps dma_buf_export() for use by generic GEM drivers that are using drm_gem_dmabuf_release(). In addition to calling dma_buf_export(), we take a reference to the :c:type:`drm_device` and the exported :c:type:`drm_gem_object` (stored in :c:type:`dma_buf_export_info.priv `) which is released by drm_gem_dmabuf_release(). Returns the new dmabuf.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chKhjubj)}(hhh](j)}(hA``struct drm_device *dev`` parent device for the exported dmabuf 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:442: ./drivers/gpu/drm/drm_prime.chKhj&ubj )}(hhh]h)}(h%parent device for the exported dmabufh]h%parent device for the exported dmabuf}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKhjBubah}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj#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)}(hjeh]h$struct dma_buf_export_info *exp_info}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chKhj_ubj )}(hhh]h)}(h/the export information used by dma_buf_export()h]h/the export information used by dma_buf_export()}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKhj{ubah}(h]h ]h"]h$]h&]uh1j hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhKhj#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:442: ./drivers/gpu/drm/drm_prime.chKhjubh)}(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)}(hjh]h drm_device}(hj¬hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjݬhKhjubh (stored in }(hjhhhNhNubh)}(h8:c:type:`dma_buf_export_info.priv `h]j)}(hjh]hdma_buf_export_info.priv}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_buf_export_infouh1hhjݬhKhjubh0) which is released by drm_gem_dmabuf_release().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjݬhKhjubh)}(hReturns the new dmabuf.h]hReturns the new dmabuf.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_gem_dmabuf_release (C function)c.drm_gem_dmabuf_releasehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h5void drm_gem_dmabuf_release (struct dma_buf *dma_buf)h]j>)}(h4void drm_gem_dmabuf_release(struct dma_buf *dma_buf)h](jc)}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjYhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hjlhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYhhhjkhMubjg)}(hdrm_gem_dmabuf_releaseh]jm)}(hdrm_gem_dmabuf_releaseh]hdrm_gem_dmabuf_release}(hj~hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjkhMubj)}(h(struct dma_buf *dma_buf)h]j)}(hstruct dma_buf *dma_bufh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_dmabuf_releaseasbuh1hhjubjV)}(h h]h }(hjحhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjYhhhjkhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjUhhhjkhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1j7hjkhMhjRhhubj)}(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 ](jjc-typeeh"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jԭc.drm_gem_dmabuf_releaseasbjdma_bufuh1hhjihKhjubh release implementation for GEM}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjkhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1j2hhhjhNhNubj)}(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)}(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:442: ./drivers/gpu/drm/drm_prime.chM hj]ubj)}(hhh]j)}(h2``struct dma_buf *dma_buf`` buffer to be released h](j)}(h``struct dma_buf *dma_buf``h]j)}(hjh]hstruct dma_buf *dma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhj|ubj )}(hhh]h)}(hbuffer to be releasedh]hbuffer to be released}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjyubah}(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:442: ./drivers/gpu/drm/drm_prime.chMhj]ubh)}(hGeneric release function for dma_bufs exported as PRIME buffers. GEM drivers must use this in their :c:type:`dma_buf_ops` structure as the release callback. drm_gem_dmabuf_release() should be used in conjunction with drm_gem_dmabuf_export().h](hdGeneric release function for dma_bufs exported as PRIME buffers. GEM drivers must use this in their }(hjӮhhhNhNubh)}(h:c:type:`dma_buf_ops`h]j)}(hjݮh]h dma_buf_ops}(hj߮hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjۮubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./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&]uh1hhjhMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_gem_prime_fd_to_handle (C function)c.drm_gem_prime_fd_to_handlehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hsint drm_gem_prime_fd_to_handle (struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle)h]j>)}(hrint drm_gem_prime_fd_to_handle(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle)h](jc)}(hinth]hint}(hj%hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj!hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj!hhhj3hMubjg)}(hdrm_gem_prime_fd_to_handleh]jm)}(hdrm_gem_prime_fd_to_handleh]hdrm_gem_prime_fd_to_handle}(hjFhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhhj3hMubj)}(hT(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj^ubjV)}(h h]h }(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj^ubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjHsbc.drm_gem_prime_fd_to_handleasbuh1hhj^ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(hstruct drm_file *file_privh](jD)}(hjh]hstruct}(hjԯhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjЯubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjЯubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_prime_fd_to_handleasbuh1hhjЯubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjЯubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЯubjm)}(h file_privh]h file_priv}(hj+hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjЯubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(h int prime_fdh](jc)}(hinth]hint}(hjDhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj@ubjV)}(h h]h }(hjRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@ubjm)}(hprime_fdh]hprime_fd}(hj`hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(huint32_t *handleh](h)}(hhh]jm)}(huint32_th]huint32_t}(hj|hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj~modnameN classnameNjj)}j]jc.drm_gem_prime_fd_to_handleasbuh1hhjuubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubeh}(h]h ]h"]h$]h&]jjuh1jhj!hhhj3hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj3hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj3hMhjhhubj)}(hhh]h)}(h%PRIME import function for GEM driversh]h%PRIME import function for GEM drivers}(hj߰hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjܰhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:442: ./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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjubj )}(hhh]h)}(hdrm_device to import intoh]hdrm_device to import into}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(h:``struct drm_file *file_priv`` drm file-private structure h](j)}(h``struct drm_file *file_priv``h]j)}(hjYh]hstruct drm_file *file_priv}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjSubj )}(hhh]h)}(hdrm file-private structureh]hdrm file-private structure}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1j hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubj)}(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:442: ./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&]uh1j hjubeh}(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:442: ./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&]uh1j hjű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:442: ./drivers/gpu/drm/drm_prime.chM hjubh)}(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 }(hjhhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j)}(hj&h]hdrm_driver.gem_prime_import}(hj(hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjubh driver callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjChMhjubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.+drm_gem_prime_handle_to_dmabuf (C function) c.drm_gem_prime_handle_to_dmabufhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(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]j>)}(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](jD)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjyhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjyhhhjhMubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_gem_prime_handle_to_dmabufsb c.drm_gem_prime_handle_to_dmabufasbuh1hhjyhhhjhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjyhhhjhMubj)}(hjh]h*}(hj˲hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhMubjg)}(hdrm_gem_prime_handle_to_dmabufh]jm)}(hjh]hdrm_gem_prime_handle_to_dmabuf}(hjܲhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjزubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyhhhjhMubj)}(hU(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j c.drm_gem_prime_handle_to_dmabufasbuh1hhjubjV)}(h h]h }(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_file *file_privh](jD)}(hjh]hstruct}(hjg!hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjcubjV)}(h h]h }(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjcubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j c.drm_gem_prime_handle_to_dmabufasbuh1hhjcubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjcubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(h file_privh]h file_priv}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(huint32_t handleh](h)}(hhh]jm)}(huint32_th]huint32_t}(hjڳhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj׳ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjܳmodnameN classnameNjj)}j]j c.drm_gem_prime_handle_to_dmabufasbuh1hhjӳubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjӳubjm)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjӳubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(huint32_t flagsh](h)}(hhh]jm)}(huint32_th]huint32_t}(hj"hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$modnameN classnameNjj)}j]j c.drm_gem_prime_handle_to_dmabufasbuh1hhjubjV)}(h h]h }(hj@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hflagsh]hflags}(hjNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjrhhubj)}(hhh]h)}(h%PRIME export function for GEM driversh]h%PRIME export function for GEM drivers}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjuhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:442: ./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:442: ./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&]uh1j hjubeh}(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:442: ./drivers/gpu/drm/drm_prime.chMhjubj )}(hhh]h)}(hdrm file-private structureh]hdrm file-private structure}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMhj%ubj )}(hhh]h)}(hbuffer handle to exporth]hbuffer handle to export}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1j hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubj)}(h*``uint32_t flags`` flags like DRM_CLOEXEC h](j)}(h``uint32_t flags``h]j)}(hjdh]huint32_t flags}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhj^ubj )}(hhh]h)}(hflags like DRM_CLOEXECh]hflags like DRM_CLOEXEC}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1j hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./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)}(hjh]hdrm_gem_object_funcs.export}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjܵhMhjubh)}(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:442: ./drivers/gpu/drm/drm_prime.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_gem_prime_handle_to_fd (C function)c.drm_gem_prime_handle_to_fdhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(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>)}(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](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj$hMubjg)}(hdrm_gem_prime_handle_to_fdh]jm)}(hdrm_gem_prime_handle_to_fdh]hdrm_gem_prime_handle_to_fd}(hj7hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj$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](jD)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjOubjV)}(h h]h }(hj`hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjOubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjqhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjsmodnameN classnameNjj)}j]j)}jj9sbc.drm_gem_prime_handle_to_fdasbuh1hhjOubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hstruct drm_file *file_privh](jD)}(hjh]hstruct}(hjŶhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjҶhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_prime_handle_to_fdasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h file_privh]h file_priv}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(huint32_t handleh](h)}(hhh]jm)}(huint32_th]huint32_t}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:modnameN classnameNjj)}j]jc.drm_gem_prime_handle_to_fdasbuh1hhj1ubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1ubjm)}(hhandleh]hhandle}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(huint32_t flagsh](h)}(hhh]jm)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_prime_handle_to_fdasbuh1hhjyubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjyubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(h int *prime_fdh](jc)}(hinth]hint}(hjŷhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjӷhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hprime_fdh]hprime_fd}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj$hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj$hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj$hMhj hhubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1j2hhhjhNhNubj)}(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&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhj4ubj)}(hhh](j)}(h9``struct drm_device *dev`` dev to export the buffer from h](j)}(h``struct drm_device *dev``h]j)}(hjYh]hstruct drm_device *dev}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjSubj )}(hhh]h)}(hdev to export the buffer fromh]hdev to export the buffer from}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1j hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjPubj)}(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:442: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubj)}(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:442: ./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&]uh1j hjŸubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubj)}(h*``uint32_t flags`` flags like DRM_CLOEXEC h](j)}(h``uint32_t flags``h]j)}(hjh]huint32_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjubj )}(hhh]h)}(hflags like DRM_CLOEXECh]hflags like DRM_CLOEXEC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubj)}(hI``int *prime_fd`` pointer to storage for the fd id of the create dma-buf h](j)}(h``int *prime_fd``h]j)}(hj=h]h int *prime_fd}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhj7ubj )}(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}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjSubah}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjPubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(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:442: ./drivers/gpu/drm/drm_prime.chMhj4ubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_map_attach (C function)c.drm_gem_map_attachhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hSint drm_gem_map_attach (struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h]j>)}(hRint drm_gem_map_attach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjܹhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMRubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjܹhhhjhMRubjg)}(hdrm_gem_map_attachh]jm)}(hdrm_gem_map_attachh]hdrm_gem_map_attach}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjܹhhhjhMRubj)}(h<(struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h](j)}(hstruct dma_buf *dma_bufh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hj;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj=modnameN classnameNjj)}j]j)}jjsbc.drm_gem_map_attachasbuh1hhjubjV)}(h h]h }(hj[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdma_bufh]hdma_buf}(hjvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!struct dma_buf_attachment *attachh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jWc.drm_gem_map_attachasbuh1hhjubjV)}(h h]h }(hj˺hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjٺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hattachh]hattach}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjܹhhhjhMRubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjعhhhjhMRubah}(h]jӹah ](jjeh"]h$]h&]jj)jhuh1j7hjhMRhjչ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:442: ./drivers/gpu/drm/drm_prime.chMRhj hhubah}(h]h ]h"]h$]h&]uh1jhjչhhhjhMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1j2hhhjhNhNubj)}(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)}(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:442: ./drivers/gpu/drm/drm_prime.chMVhj,ubj)}(hhh](j)}(h7``struct dma_buf *dma_buf`` buffer to attach device to 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:442: ./drivers/gpu/drm/drm_prime.chMShjKubj )}(hhh]h)}(hbuffer to attach device toh]hbuffer to attach device to}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMShjgubah}(h]h ]h"]h$]h&]uh1j hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMShjHubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMThjubj )}(hhh]h)}(hbuffer attachment datah]hbuffer attachment data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjHubeh}(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:442: ./drivers/gpu/drm/drm_prime.chMVhj,ubh)}(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 }(hjۻhhhNhNubh)}(h9:c:type:`drm_gem_object_funcs.pin `h]j)}(hjh]hdrm_gem_object_funcs.pin}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMUhjۻubh7 for device specific handling. This can be used as the }(hjۻhhhNhNubh)}(h*:c:type:`dma_buf_ops.attach `h]j)}(hj h]hdma_buf_ops.attach}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_buf_opsuh1hhjhMUhjۻubh; callback. Must be used together with drm_gem_map_detach().}(hjۻhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMUhj,ubh)}(h5Returns 0 on success, negative error code on failure.h]h5Returns 0 on success, negative error code on failure.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMYhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_map_detach (C function)c.drm_gem_map_detachhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hTvoid drm_gem_map_detach (struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h]j>)}(hSvoid drm_gem_map_detach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h](jc)}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj[hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMxubjV)}(h h]h }(hjnhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj[hhhjmhMxubjg)}(hdrm_gem_map_detachh]jm)}(hdrm_gem_map_detachh]hdrm_gem_map_detach}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[hhhjmhMxubj)}(h<(struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h](j)}(hstruct dma_buf *dma_bufh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_map_detachasbuh1hhjubjV)}(h h]h }(hjڼhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!struct dma_buf_attachment *attachh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(hdma_buf_attachmenth]hdma_buf_attachment}(hj,hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj.modnameN classnameNjj)}j]jּc.drm_gem_map_detachasbuh1hhj ubjV)}(h h]h }(hjJhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hattachh]hattach}(hjehhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj[hhhjmhMxubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjWhhhjmhMxubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1j7hjmhMxhjThhubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMxhjhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjmhMxubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:442: ./drivers/gpu/drm/drm_prime.chM|hjubj)}(hhh](j)}(h2``struct dma_buf *dma_buf`` buffer to detach from 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:442: ./drivers/gpu/drm/drm_prime.chMyhjʽubj )}(hhh]h)}(hbuffer to detach fromh]hbuffer to detach from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMyhjubah}(h]h ]h"]h$]h&]uh1j hjʽubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjǽubj)}(h@``struct dma_buf_attachment *attach`` attachment to be detached h](j)}(h%``struct dma_buf_attachment *attach``h]j)}(hj h]h!struct dma_buf_attachment *attach}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMzhjubj )}(hhh]h)}(hattachment to be detachedh]hattachment to be detached}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMzhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMzhjǽubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM|hjubh)}(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 }(hjZhhhNhNubh)}(h9:c:type:`drm_gem_object_funcs.pin `h]j)}(hjdh]hdrm_gem_object_funcs.pin}(hjfhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM{hjZubh* for device specific handling. Cleans up }(hjZhhhNhNubh)}(h:c:type:`dma_buf_attachment`h]j)}(hjh]hdma_buf_attachment}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_buf_attachmentuh1hhjhM{hjZubh4 from drm_gem_map_attach(). This can be used as the }(hjZhhhNhNubh)}(h*:c:type:`dma_buf_ops.detach `h]j)}(hjh]hdma_buf_ops.detach}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_buf_opsuh1hhjhM{hjZubh callback.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM{hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gem_map_dma_buf (C function)c.drm_gem_map_dma_bufhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hfstruct sg_table * drm_gem_map_dma_buf (struct dma_buf_attachment *attach, enum dma_data_direction dir)h]j>)}(hdstruct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, enum dma_data_direction dir)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_gem_map_dma_bufsbc.drm_gem_map_dma_bufasbuh1hhjhhhjhMubjV)}(h h]h }(hj2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hdrm_gem_map_dma_bufh]jm)}(hj/h]hdrm_gem_map_dma_buf}(hjQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h@(struct dma_buf_attachment *attach, enum dma_data_direction dir)h](j)}(h!struct dma_buf_attachment *attachh](jD)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhubjV)}(h h]h }(hjyhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhubh)}(hhh]jm)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j-c.drm_gem_map_dma_bufasbuh1hhjhubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(hattachh]hattach}(hjÿhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(henum dma_data_direction dirh](jD)}(hjGh]henum}(hjܿhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjؿubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjؿubh)}(hhh]jm)}(hdma_data_directionh]hdma_data_direction}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j-c.drm_gem_map_dma_bufasbuh1hhjؿubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjؿubjm)}(hdirh]hdir}(hj&hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjؿubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(h"map_dma_buf implementation for GEMh]h"map_dma_buf implementation for GEM}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1j2hhhjhNhNubj)}(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)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjlubj)}(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:442: ./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&]uh1j hjubeh}(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:442: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjlubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjlubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./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)}(hjIh]hdma_buf_ops.map_dma_buf}(hjKhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_buf_opsuh1hhjBhMhjubh@ callback. Should be used together with drm_gem_unmap_dma_buf().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBhMhjlubh)}(h **Return**h]j)}(hjrh]hReturn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjlubh)}(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:442: ./drivers/gpu/drm/drm_prime.chMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_gem_unmap_dma_buf (C function)c.drm_gem_unmap_dma_bufhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hqvoid drm_gem_unmap_dma_buf (struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir)h]j>)}(hpvoid drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gem_unmap_dma_bufh]jm)}(hdrm_gem_unmap_dma_bufh]hdrm_gem_unmap_dma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hV(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir)h](j)}(h!struct dma_buf_attachment *attachh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_unmap_dma_bufasbuh1hhjubjV)}(h h]h }(hj2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hattachh]hattach}(hjMhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sg_table *sgth](jD)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjbubjV)}(h h]h }(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjbubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j.c.drm_gem_unmap_dma_bufasbuh1hhjbubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum dma_data_direction dirh](jD)}(hjGh]henum}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdma_data_directionh]hdma_data_direction}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j.c.drm_gem_unmap_dma_bufasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hdirh]hdir}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(h$unmap_dma_buf implementation for GEMh]h$unmap_dma_buf implementation for GEM}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1j2hhhjhNhNubj)}(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)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjfubj)}(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:442: ./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&]uh1j hjubeh}(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:442: ./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&]uh1j hjubeh}(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:442: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjfubh)}(h**Description**h]j)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjfubh)}(hSThis can be used as the :c:type:`dma_buf_ops.unmap_dma_buf ` callback.h](hThis can be used as the }(hjNhhhNhNubh)}(h1:c:type:`dma_buf_ops.unmap_dma_buf `h]j)}(hjXh]hdma_buf_ops.unmap_dma_buf}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjNubh callback.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjuhMhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gem_dmabuf_vmap (C function)c.drm_gem_dmabuf_vmaphNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hHint drm_gem_dmabuf_vmap (struct dma_buf *dma_buf, struct iosys_map *map)h]j>)}(hGint drm_gem_dmabuf_vmap(struct dma_buf *dma_buf, struct iosys_map *map)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gem_dmabuf_vmaph]jm)}(hdrm_gem_dmabuf_vmaph]hdrm_gem_dmabuf_vmap}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h0(struct dma_buf *dma_buf, struct iosys_map *map)h](j)}(hstruct dma_buf *dma_bufh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_dmabuf_vmapasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdma_bufh]hdma_buf}(hj6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct iosys_map *maph](jD)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjKubjV)}(h h]h }(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKubh)}(hhh]jm)}(h iosys_maph]h iosys_map}(hjmhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjomodnameN classnameNjj)}j]jc.drm_gem_dmabuf_vmapasbuh1hhjKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:442: ./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:442: ./drivers/gpu/drm/drm_prime.chMhj ubj )}(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&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjubj)}(h<``struct iosys_map *map`` the virtual address of the buffer h](j)}(h``struct iosys_map *map``h]j)}(hjJh]hstruct iosys_map *map}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjDubj )}(hhh]h)}(h!the virtual address of the bufferh]h!the virtual address of the buffer}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1j hjDubeh}(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:442: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_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:442: ./drivers/gpu/drm/drm_prime.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_gem_dmabuf_vunmap (C function)c.drm_gem_dmabuf_vunmaphNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hKvoid drm_gem_dmabuf_vunmap (struct dma_buf *dma_buf, struct iosys_map *map)h]j>)}(hJvoid drm_gem_dmabuf_vunmap(struct dma_buf *dma_buf, struct iosys_map *map)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj-hMubjg)}(hdrm_gem_dmabuf_vunmaph]jm)}(hdrm_gem_dmabuf_vunmaph]hdrm_gem_dmabuf_vunmap}(hj@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj-hMubj)}(h0(struct dma_buf *dma_buf, struct iosys_map *map)h](j)}(hstruct dma_buf *dma_bufh](jD)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjXubjV)}(h h]h }(hjihhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjXubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hjzhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj|modnameN classnameNjj)}j]j)}jjBsbc.drm_gem_dmabuf_vunmapasbuh1hhjXubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjm)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hstruct iosys_map *maph](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h iosys_maph]h iosys_map}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dmabuf_vunmapasbuh1hhjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmaph]hmap}(hj%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj-hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj-hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj-hMhjhhubj)}(hhh]h)}(h%dma_buf vunmap implementation for GEMh]h%dma_buf vunmap implementation for GEM}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1j2hhhjhNhNubj)}(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)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjkubj)}(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:442: ./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&]uh1j hjubeh}(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:442: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjkubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjubh callback. Calls into }(hjhhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.vunmap `h]j)}(hjHh]hdrm_gem_object_funcs.vunmap}(hjJhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhjAhMhjubh for device specific handling.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gem_prime_mmap (C function)c.drm_gem_prime_mmaphNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hOint drm_gem_prime_mmap (struct drm_gem_object *obj, struct vm_area_struct *vma)h]j>)}(hNint drm_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gem_prime_mmaph]jm)}(hdrm_gem_prime_mmaph]hdrm_gem_prime_mmap}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h8(struct drm_gem_object *obj, struct vm_area_struct *vma)h](j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gem_prime_mmapasbuh1hhjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hj%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct vm_area_struct *vmah](jD)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj:ubjV)}(h h]h }(hjKhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:ubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hj\hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^modnameN classnameNjj)}j]jc.drm_gem_prime_mmapasbuh1hhj:ubjV)}(h h]h }(hjzhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:442: ./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:442: ./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&]uh1j hjubeh}(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)}(hj9h]hstruct vm_area_struct *vma}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhj3ubj )}(hhh]h)}(hVirtual address rangeh]hVirtual address range}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjOubah}(h]h ]h"]h$]h&]uh1j hj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjubeh}(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:442: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./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&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gem_dmabuf_mmap (C function)c.drm_gem_dmabuf_mmaphNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hMint drm_gem_dmabuf_mmap (struct dma_buf *dma_buf, struct vm_area_struct *vma)h]j>)}(hLint drm_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM-ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM-ubjg)}(hdrm_gem_dmabuf_mmaph]jm)}(hdrm_gem_dmabuf_mmaph]hdrm_gem_dmabuf_mmap}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM-ubj)}(h5(struct dma_buf *dma_buf, struct vm_area_struct *vma)h](j)}(hstruct dma_buf *dma_bufh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj&hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hj7hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj9modnameN classnameNjj)}j]j)}jjsbc.drm_gem_dmabuf_mmapasbuh1hhjubjV)}(h h]h }(hjWhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdma_bufh]hdma_buf}(hjrhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct vm_area_struct *vmah](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jSc.drm_gem_dmabuf_mmapasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM-ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM-ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM-hjhhubj)}(hhh]h)}(h#dma_buf mmap implementation for GEMh]h#dma_buf mmap implementation for GEM}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM-hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1j2hhhjhNhNubj)}(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)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM1hj(ubj)}(hhh](j)}(h0``struct dma_buf *dma_buf`` buffer to be mapped h](j)}(h``struct dma_buf *dma_buf``h]j)}(hjMh]hstruct dma_buf *dma_buf}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM.hjGubj )}(hhh]h)}(hbuffer to be mappedh]hbuffer to be mapped}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM.hjcubah}(h]h ]h"]h$]h&]uh1j hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM.hjDubj)}(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:442: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjDubeh}(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:442: ./drivers/gpu/drm/drm_prime.chM1hj(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM0hjubh4 callback. It just forwards to drm_gem_prime_mmap().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM0hj(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:442: ./drivers/gpu/drm/drm_prime.chM3hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_prime_pages_to_sg (C function)c.drm_prime_pages_to_sghNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hlstruct sg_table * drm_prime_pages_to_sg (struct drm_device *dev, struct page **pages, unsigned int nr_pages)h]j>)}(hjstruct sg_table *drm_prime_pages_to_sg(struct drm_device *dev, struct page **pages, unsigned int nr_pages)h](jD)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj4hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMJubjV)}(h h]h }(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj4hhhjEhMJubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjYmodnameN classnameNjj)}j]j)}jdrm_prime_pages_to_sgsbc.drm_prime_pages_to_sgasbuh1hhj4hhhjEhMJubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj4hhhjEhMJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjEhMJubjg)}(hdrm_prime_pages_to_sgh]jm)}(hjuh]hdrm_prime_pages_to_sg}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhjEhMJubj)}(hD(struct drm_device *dev, struct page **pages, unsigned int nr_pages)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jsc.drm_prime_pages_to_sgasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct page **pagesh](jD)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hpageh]hpage}(hj@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjBmodnameN classnameNjj)}j]jsc.drm_prime_pages_to_sgasbuh1hhjubjV)}(h h]h }(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int nr_pagesh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj4hhhjEhMJubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj0hhhjEhMJubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1j7hjEhMJhj-hhubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMJhjhhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjEhMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMNhjubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjBh]hstruct drm_device *dev}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMKhj<ubj )}(hhh]h)}(h DRM deviceh]h DRM device}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMKhjXubah}(h]h ]h"]h$]h&]uh1j hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMKhj9ubj)}(hI``struct page **pages`` pointer to the array of page pointers to convert h](j)}(h``struct page **pages``h]j)}(hj{h]hstruct page **pages}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMLhjuubj )}(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&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1j hjuubeh}(h]h ]h"]h$]h&]uh1jhjhMLhj9ubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMMhjubj )}(hhh]h)}(hlength of the page vectorh]hlength of the page vector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhj9ubeh}(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:442: ./drivers/gpu/drm/drm_prime.chMOhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMNhjubh)}(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)}(hjh]h!drm_gem_object_funcs.get_sg_table}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMRhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;hMRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.*drm_prime_get_contiguous_size (C function)c.drm_prime_get_contiguous_sizehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hBunsigned long drm_prime_get_contiguous_size (struct sg_table *sgt)h]j>)}(hAunsigned long drm_prime_get_contiguous_size(struct sg_table *sgt)h](jc)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjbhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMpubjV)}(h h]h }(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjbhhhjthMpubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjbhhhjthMpubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjbhhhjthMpubjg)}(hdrm_prime_get_contiguous_sizeh]jm)}(hdrm_prime_get_contiguous_sizeh]hdrm_prime_get_contiguous_size}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjthMpubj)}(h(struct sg_table *sgt)h]j)}(hstruct sg_table *sgth](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_prime_get_contiguous_sizeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjbhhhjthMpubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj^hhhjthMpubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1j7hjthMphj[hhubj)}(hhh]h)}(h)returns the contiguous size of the bufferh]h)returns the contiguous size of the buffer}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMphj?hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhjthMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1j2hhhjhNhNubj)}(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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMthj^ubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMqhj}ubj )}(hhh]h)}(h'sg_table describing the buffer to checkh]h'sg_table describing the buffer to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1j hj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjzubah}(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:442: ./drivers/gpu/drm/drm_prime.chMshj^ubh)}(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:442: ./drivers/gpu/drm/drm_prime.chMrhj^ubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMuhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMuhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!drm_gem_prime_export (C function)c.drm_gem_prime_exporthNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hMstruct dma_buf * drm_gem_prime_export (struct drm_gem_object *obj, int flags)h]j>)}(hKstruct dma_buf *drm_gem_prime_export(struct drm_gem_object *obj, int flags)h](jD)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj1hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hjChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1hhhjBhMubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hjThhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVmodnameN classnameNjj)}j]j)}jdrm_gem_prime_exportsbc.drm_gem_prime_exportasbuh1hhj1hhhjBhMubjV)}(h h]h }(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1hhhjBhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjBhMubjg)}(hdrm_gem_prime_exporth]jm)}(hjrh]hdrm_gem_prime_export}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhjBhMubj)}(h'(struct drm_gem_object *obj, int flags)h](j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jpc.drm_gem_prime_exportasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hj-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hflagsh]hflags}(hj;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhjBhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj-hhhjBhMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1j7hjBhMhj*hhubj)}(hhh]h)}(h4helper library implementation of the export callbackh]h4helper library implementation of the export callback}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjbhhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1j2hhhjhNhNubj)}(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:442: ./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:442: ./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&]uh1j hjubeh}(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:442: ./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&]uh1j hjubeh}(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:442: ./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 }(hj0hhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.export `h]j)}(hj:h]hdrm_gem_object_funcs.export}(hj<hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhj0ubhn functions for GEM drivers using the PRIME helpers. It is used as the default in drm_gem_prime_handle_to_fd().}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j..drm_gem_is_prime_exported_dma_buf (C function)#c.drm_gem_is_prime_exported_dma_bufhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hXbool drm_gem_is_prime_exported_dma_buf (struct drm_device *dev, struct dma_buf *dma_buf)h]j>)}(hWbool drm_gem_is_prime_exported_dma_buf(struct drm_device *dev, struct dma_buf *dma_buf)h](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj~hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj~hhhjhMubjg)}(h!drm_gem_is_prime_exported_dma_bufh]jm)}(h!drm_gem_is_prime_exported_dma_bufh]h!drm_gem_is_prime_exported_dma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhjhMubj)}(h1(struct drm_device *dev, struct dma_buf *dma_buf)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb#c.drm_gem_is_prime_exported_dma_bufasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dma_buf *dma_bufh](jD)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj,ubjV)}(h h]h }(hj=hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj,ubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hjNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjPmodnameN classnameNjj)}j]j#c.drm_gem_is_prime_exported_dma_bufasbuh1hhj,ubjV)}(h h]h }(hjlhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj,ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjzhhhjhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjwhhubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:442: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjubj )}(hhh]h)}(hdrm_device to check againsth]hdrm_device to check against}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:442: ./drivers/gpu/drm/drm_prime.chMhj7ubj )}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjSubah}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjxh]hReturn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./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:442: ./drivers/gpu/drm/drm_prime.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_gem_prime_import_dev (C function)c.drm_gem_prime_import_devhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h}struct drm_gem_object * drm_gem_prime_import_dev (struct drm_device *dev, struct dma_buf *dma_buf, struct device *attach_dev)h]j>)}(h{struct drm_gem_object *drm_gem_prime_import_dev(struct drm_device *dev, struct dma_buf *dma_buf, struct device *attach_dev)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_gem_prime_import_devsbc.drm_gem_prime_import_devasbuh1hhjhhhjhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hdrm_gem_prime_import_devh]jm)}(hj h]hdrm_gem_prime_import_dev}(hj.hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hL(struct drm_device *dev, struct dma_buf *dma_buf, struct device *attach_dev)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjEubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjghhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjimodnameN classnameNjj)}j]j c.drm_gem_prime_import_devasbuh1hhjEubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hstruct dma_buf *dma_bufh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j c.drm_gem_prime_import_devasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hstruct device *attach_devh](jD)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj%ubjV)}(h h]h }(hj6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj%ubh)}(hhh]jm)}(hdeviceh]hdevice}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjImodnameN classnameNjj)}j]j c.drm_gem_prime_import_devasbuh1hhj%ubjV)}(h h]h }(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj%ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(h attach_devh]h attach_dev}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:442: ./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:442: ./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&]uh1j hjubeh}(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:442: ./drivers/gpu/drm/drm_prime.chMhjubj )}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(h>``struct device *attach_dev`` struct device to dma_buf attach h](j)}(h``struct device *attach_dev``h]j)}(hj]h]hstruct device *attach_dev}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjWubj )}(hhh]h)}(hstruct device to dma_buf attachh]hstruct device to dma_buf attach}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1j hjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjubeh}(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:442: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj 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)}(hj h]hdrm_gem_object_funcs.free}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhjubh hook when using this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj*hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!drm_gem_prime_import (C function)c.drm_gem_prime_importhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h^struct drm_gem_object * drm_gem_prime_import (struct drm_device *dev, struct dma_buf *dma_buf)h]j>)}(h\struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev, struct dma_buf *dma_buf)h](jD)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjQhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hjchhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQhhhjbhMubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjthhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjqubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjvmodnameN classnameNjj)}j]j)}jdrm_gem_prime_importsbc.drm_gem_prime_importasbuh1hhjQhhhjbhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQhhhjbhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjbhMubjg)}(hdrm_gem_prime_importh]jm)}(hjh]hdrm_gem_prime_import}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQhhhjbhMubj)}(h1(struct drm_device *dev, struct dma_buf *dma_buf)h](j)}(hstruct drm_device *devh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gem_prime_importasbuh1hhjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hj&hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dma_buf *dma_bufh](jD)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj;ubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;ubh)}(hhh]jm)}(hdma_bufh]hdma_buf}(hj]hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj_modnameN classnameNjj)}j]jc.drm_gem_prime_importasbuh1hhj;ubjV)}(h h]h }(hj{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjm)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjQhhhjbhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjMhhhjbhMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1j7hjbhMhjJhhubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:442: ./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:442: ./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&]uh1j hjubeh}(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&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhj4ubj )}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM hjubh hook when using this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_prime_sg_to_page_array (C function)c.drm_prime_sg_to_page_arrayhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h[int drm_prime_sg_to_page_array (struct sg_table *sgt, struct page **pages, int max_entries)h]j>)}(hZint drm_prime_sg_to_page_array(struct sg_table *sgt, struct page **pages, int max_entries)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhjhMubjg)}(hdrm_prime_sg_to_page_arrayh]jm)}(hdrm_prime_sg_to_page_arrayh]hdrm_prime_sg_to_page_array}(hj0hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMubj)}(h<(struct sg_table *sgt, struct page **pages, int max_entries)h](j)}(hstruct sg_table *sgth](jD)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjHubjV)}(h h]h }(hjYhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjHubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hjjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjlmodnameN classnameNjj)}j]j)}jj2sbc.drm_prime_sg_to_page_arrayasbuh1hhjHubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hstruct page **pagesh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_prime_sg_to_page_arrayasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpagesh]hpages}(hj"hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hint max_entriesh](jc)}(hinth]hint}(hj;hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj7ubjV)}(h h]h }(hjIhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj7ubjm)}(h max_entriesh]h max_entries}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:442: ./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:442: ./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&]uh1j hjubeh}(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:442: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``int max_entries`` size of the passed-in array h](j)}(h``int max_entries``h]j)}(hj4h]hint max_entries}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMhj.ubj )}(hhh]h)}(hsize of the passed-in arrayh]hsize of the passed-in array}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1j hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./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:442: ./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:442: ./drivers/gpu/drm/drm_prime.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.+drm_prime_sg_to_dma_addr_array (C function) c.drm_prime_sg_to_dma_addr_arrayhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h]int drm_prime_sg_to_dma_addr_array (struct sg_table *sgt, dma_addr_t *addrs, int max_entries)h]j>)}(h\int drm_prime_sg_to_dma_addr_array(struct sg_table *sgt, dma_addr_t *addrs, int max_entries)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM3ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM3ubjg)}(hdrm_prime_sg_to_dma_addr_arrayh]jm)}(hdrm_prime_sg_to_dma_addr_arrayh]hdrm_prime_sg_to_dma_addr_array}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM3ubj)}(h:(struct sg_table *sgt, dma_addr_t *addrs, int max_entries)h](j)}(hstruct sg_table *sgth](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jjsb c.drm_prime_sg_to_dma_addr_arrayasbuh1hhjubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsgth]hsgt}(hjYhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hdma_addr_t *addrsh](h)}(hhh]jm)}(h dma_addr_th]h dma_addr_t}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjwmodnameN classnameNjj)}j]j: c.drm_prime_sg_to_dma_addr_arrayasbuh1hhjnubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(haddrsh]haddrs}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint max_entriesh](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h max_entriesh]h max_entries}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM3ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM3hjhhubj)}(hhh]h)}(h)convert an sg table into a dma addr arrayh]h)convert an sg table into a dma addr array}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM3hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1j2hhhjhNhNubj)}(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)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM7hj)ubj)}(hhh](j)}(h9``struct sg_table *sgt`` scatter-gather table to convert h](j)}(h``struct sg_table *sgt``h]j)}(hjNh]hstruct sg_table *sgt}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM4hjHubj )}(hhh]h)}(hscatter-gather table to converth]hscatter-gather table to convert}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM4hjdubah}(h]h ]h"]h$]h&]uh1j hjHubeh}(h]h ]h"]h$]h&]uh1jhjchM4hjEubj)}(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:442: ./drivers/gpu/drm/drm_prime.chM5hjubj )}(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&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjEubj)}(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:442: ./drivers/gpu/drm/drm_prime.chM6hjubj )}(hhh]h)}(h!size of both the passed-in arraysh]h!size of both the passed-in arrays}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjEubeh}(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:442: ./drivers/gpu/drm/drm_prime.chM8hj)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:442: ./drivers/gpu/drm/drm_prime.chM7hj)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}(hj,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chM9hj ubh implementation.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhM9hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_prime_gem_destroy (C function)c.drm_prime_gem_destroyhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hLvoid drm_prime_gem_destroy (struct drm_gem_object *obj, struct sg_table *sg)h]j>)}(hKvoid drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg)h](jc)}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjnhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjnhhhjhMMubjg)}(hdrm_prime_gem_destroyh]jm)}(hdrm_prime_gem_destroyh]hdrm_prime_gem_destroy}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhjhMMubj)}(h1(struct drm_gem_object *obj, struct sg_table *sg)h](j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_prime_gem_destroyasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sg_table *sgh](jD)}(hjh]hstruct}(hj!hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hj?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]jc.drm_prime_gem_destroyasbuh1hhjubjV)}(h h]h }(hj]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsgh]hsg}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjnhhhjhMMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjjhhhjhMMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1j7hjhMMhjghhubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMMhjhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMQhjubj)}(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:442: ./drivers/gpu/drm/drm_prime.chMNhjubj )}(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&]uh1hhjhMNhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubj)}(hE``struct sg_table *sg`` the sg-table which was pinned at import time h](j)}(h``struct sg_table *sg``h]j)}(hjh]hstruct sg_table *sg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMOhjubj )}(hhh]h)}(h,the sg-table which was pinned at import timeh]h,the sg-table which was pinned at import time}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMOhj2ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj1hMOhjubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMQhjubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:442: ./drivers/gpu/drm/drm_prime.chMPhjubeh}(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:451: ./drivers/gpu/drm/drm_mm.chK6hjhhubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_mmuh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:451: ./drivers/gpu/drm/drm_mm.chK;hjubh, allocations are tracked in }(hjhhhNhNubh)}(h:c:type:`drm_mm_node`h]j)}(hjh]h drm_mm_node}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_mm_nodeuh1hhjhK;hjubh. 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK;hjhhubh)}(hXThe range allocator also supports reservation of preallocated blocks. This is useful for taking over initial mode setting configurations from the firmware, where an object needs to be created which exactly matches the firmware's scanout target. As long as the range is still free it can be inserted anytime after the allocator is initialized, which helps with avoiding looped dependencies in the driver load sequence.h]hXThe range allocator also supports reservation of preallocated blocks. This is useful for taking over initial mode setting configurations from the firmware, where an object needs to be created which exactly matches the firmware’s scanout target. As long as the range is still free it can be inserted anytime after the allocator is initialized, which helps with avoiding looped dependencies in the driver load sequence.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:451: ./drivers/gpu/drm/drm_mm.chKAhjhhubh)}(hXdrm_mm maintains a stack of most recently freed holes, which of all simplistic datastructures seems to be a fairly decent approach to clustering allocations and avoiding too much fragmentation. This means free space searches are O(num_holes). Given that all the fancy features drm_mm supports something better would be fairly complex and since gfx thrashing is a fairly steep cliff not a real concern. Removing a node again is O(1).h]hXdrm_mm maintains a stack of most recently freed holes, which of all simplistic datastructures seems to be a fairly decent approach to clustering allocations and avoiding too much fragmentation. This means free space searches are O(num_holes). Given that all the fancy features drm_mm supports something better would be fairly complex and since gfx thrashing is a fairly steep cliff not a real concern. Removing a node again is O(1).}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:451: ./drivers/gpu/drm/drm_mm.chKHhjhhubh)}(hXdrm_mm supports a few features: Alignment and range restrictions can be supplied. Furthermore every :c:type:`drm_mm_node` has a color value (which is just an opaque unsigned long) which in conjunction with a driver callback can be used to implement sophisticated placement restrictions. The i915 DRM driver uses this to implement guard pages between incompatible caching domains in the graphics TT.h](hddrm_mm supports a few features: Alignment and range restrictions can be supplied. Furthermore every }(hj<hhhNhNubh)}(h:c:type:`drm_mm_node`h]j)}(hjFh]h drm_mm_node}(hjHhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_mm_nodeuh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:451: ./drivers/gpu/drm/drm_mm.chKOhj<ubhX has a color value (which is just an opaque unsigned long) which in conjunction with a driver callback can be used to implement sophisticated placement restrictions. The i915 DRM driver uses this to implement guard pages between incompatible caching domains in the graphics TT.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchKOhjhhubh)}(hTwo behaviors are supported for searching and allocating: bottom-up and top-down. The default is bottom-up. Top-down allocation can be used if the memory area has different restrictions, or just to reduce fragmentation.h]hTwo behaviors are supported for searching and allocating: bottom-up and top-down. The default is bottom-up. Top-down allocation can be used if the memory area has different restrictions, or just to reduce fragmentation.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:451: ./drivers/gpu/drm/drm_mm.chKVhjhhubh)}(hyFinally iteration helpers to walk all nodes and all holes are provided as are some basic allocator dumpers for debugging.h]hyFinally iteration helpers to walk all nodes and all holes are provided as are some basic allocator dumpers for debugging.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:451: ./drivers/gpu/drm/drm_mm.chKZhjhhubh)}(hXNote that this range allocator is not thread-safe, drivers need to protect modifications with their own locking. The idea behind this is that for a full memory manager additional data needs to be protected anyway, hence internal locking would be fully redundant.h]hXNote that this range allocator is not thread-safe, drivers need to protect modifications with their own locking. The idea behind this is that for a full memory manager additional data needs to be protected anyway, hence internal locking would be fully redundant.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:451: ./drivers/gpu/drm/drm_mm.chK]hjhhubeh}(h]overviewah ]h"]h$]overviewah&]uh1hhjhhhhhM referencedKubh)}(hhh](h)}(hLRU Scan/Eviction Supporth]hLRU Scan/Eviction Support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hXVery often GPUs need to have continuous allocations for a given object. When evicting objects to make space for a new one it is therefore not most efficient when we simply start to select all objects from the tail of an LRU until there's a suitable hole: Especially for big objects or nodes that otherwise have special allocation constraints there's a good chance we evict lots of (smaller) objects unnecessarily.h]hXVery often GPUs need to have continuous allocations for a given object. When evicting objects to make space for a new one it is therefore not most efficient when we simply start to select all objects from the tail of an LRU until there’s a suitable hole: Especially for big objects or nodes that otherwise have special allocation constraints there’s a good chance we evict lots of (smaller) objects unnecessarily.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:457: ./drivers/gpu/drm/drm_mm.chMhjhhubh)}(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 :c:type:`struct drm_mm_scan `.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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_mm_scanuh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:457: ./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:457: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:457: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_insert_mode (C enum)c.drm_mm_insert_modehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hdrm_mm_insert_modeh]j>)}(henum drm_mm_insert_modeh](jD)}(hjGh]henum}(hjFhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjBhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKubjV)}(h h]h }(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjBhhhjShKubjg)}(hdrm_mm_insert_modeh]jm)}(hj@h]hdrm_mm_insert_mode}(hjfhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjShKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj>hhhjShKubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1j7hjShKhj;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:463: ./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:463: ./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:463: ./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:463: ./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&]uh1j hjubeh}(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:463: ./include/drm/drm_mm.hhKLhj ubj )}(hhh](h)}(hfSearch for the lowest hole (address closest to 0, within the search range) that fits the desired node.h]hfSearch for the lowest hole (address closest to 0, within the search range) that fits the desired node.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKLhj'ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(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)}(hjYh]hDRM_MM_INSERT_HIGH}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKThjSubj )}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKOhjoubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_mm_nodeuh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKRhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKRhjoubeh}(h]h ]h"]h$]h&]uh1j hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKThjubj)}(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:463: ./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:463: ./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&]uh1j hjubeh}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./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:463: ./include/drm/drm_mm.hhK_hj7ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj6hKbhjubj)}(h``DRM_MM_INSERT_HIGHEST`` Only check the highest hole (the hole with the largest address) and insert the node at the top of the hole or report -ENOSPC if unsuitable. Does not search all holes. h](j)}(h``DRM_MM_INSERT_HIGHEST``h]j)}(hj[h]hDRM_MM_INSERT_HIGHEST}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKihjUubj )}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKehjqubh)}(hDoes not search all holes.h]hDoes not search all holes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphKihjqubeh}(h]h ]h"]h$]h&]uh1j hjUubeh}(h]h ]h"]h$]h&]uh1jhjphKihjubj)}(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:463: ./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:463: ./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:463: ./include/drm/drm_mm.hhKphjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKohjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(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:463: ./include/drm/drm_mm.hhKrhjhhubh)}(hXThe :c:type:`struct drm_mm ` range manager supports finding a suitable modes using a number of search trees. These trees are oranised by size, by address and in most recent eviction order. This allows the user to find either the smallest hole to reuse, the lowest or highest address to reuse, or simply reuse the most recent eviction that fits. When allocating the :c:type:`drm_mm_node` from within the hole, the :c:type:`drm_mm_insert_mode` also dictate whether to allocate the lowest matching address or the highest.h](hThe }(hj hhhNhNubh)}(h :c:type:`struct drm_mm `h]j)}(hjh]h struct drm_mm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_mmuh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhK=hj ubhXQ range manager supports finding a suitable modes using a number of search trees. These trees are oranised by size, by address and in most recent eviction order. This allows the user to find either the smallest hole to reuse, the lowest or highest address to reuse, or simply reuse the most recent eviction that fits. When allocating the }(hj hhhNhNubh)}(h:c:type:`drm_mm_node`h]j)}(hj9h]h drm_mm_node}(hj;hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_mm_nodeuh1hhj2hK=hj ubh from within the hole, the }(hj hhhNhNubh)}(h:c:type:`drm_mm_insert_mode`h]j)}(hj\h]hdrm_mm_insert_mode}(hj^hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_mm_insert_modeuh1hhj2hK=hj ubhM also dictate whether to allocate the lowest matching address or the highest.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hK=hjhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_node (C struct) c.drm_mm_nodehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h drm_mm_nodeh]j>)}(hstruct drm_mm_nodeh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKHubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKHubjg)}(h drm_mm_nodeh]jm)}(hjh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKHubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKHubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKHhjhhubj)}(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:463: ./include/drm/drm_mm.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKHubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:463: ./include/drm/drm_mm.hhKhjubjT)}(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&]jjuh1jShP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjubh)}(h **Members**h]j)}(hj,h]hMembers}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjubj)}(hhh](j)}(h%``color`` Opaque driver-private tag. h](j)}(h ``color``h]j)}(hjKh]hcolor}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjEubj )}(hhh]h)}(hOpaque driver-private tag.h]hOpaque driver-private tag.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKhjaubah}(h]h ]h"]h$]h&]uh1j hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKhjBubj)}(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:463: ./include/drm/drm_mm.hhKhj~ubj )}(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&]uh1j hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjBubj)}(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:463: ./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:463: ./include/drm/drm_mm.hhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjBubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(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:463: ./include/drm/drm_mm.hhKhjhhubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_mmuh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./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&]uh1hhj=hKhjhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm (C struct)c.drm_mmhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hdrm_mmh]j>)}(h struct drm_mmh](jD)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj]hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKubjV)}(h h]h }(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj]hhhjnhKubjg)}(hdrm_mmh]jm)}(hj[h]hdrm_mm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj]hhhjnhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjYhhhjnhKubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1j7hjnhKhjVhhubj)}(hhh]h)}(h DRM allocatorh]h DRM allocator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjnhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:463: ./include/drm/drm_mm.hhKhjubjT)}(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&]jjuh1jShP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./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:463: ./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:463: ./include/drm/drm_mm.hhKhj ubj )}(hhh]h)}(hXXOptional driver callback to further apply restrictions on a hole. The node argument points at the node containing the hole from which the block would be allocated (see drm_mm_hole_follows() and friends). The other arguments are the size of the block to be allocated. The driver can adjust the start and end as needed to e.g. insert guard pages.h]hXXOptional driver callback to further apply restrictions on a hole. The node argument points at the node containing the hole from which the block would be allocated (see drm_mm_hole_follows() and friends). The other arguments are the size of the block to be allocated. The driver can adjust the start and end as needed to e.g. insert guard pages.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhj&ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjhhubh)}(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 }(hjihhhNhNubj)}(h**color_adjust**h]h color_adjust}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh 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.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_scan (C struct) c.drm_mm_scanhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h drm_mm_scanh]j>)}(hstruct drm_mm_scanh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(h drm_mm_scanh]jm)}(hjh]h drm_mm_scan}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(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:463: ./include/drm/drm_mm.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjubjT)}(hstruct drm_mm_scan { };h]hstruct drm_mm_scan { };}hj"sbah}(h]h ]h"]h$]h&]jjuh1jShP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjubh)}(h **Members**h]j)}(hj3h]hMembers}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(h**Description**h]j)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjhhubh)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_mm_node_allocated (C function)c.drm_mm_node_allocatedhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h;bool drm_mm_node_allocated (const struct drm_mm_node *node)h]j>)}(h:bool drm_mm_node_allocated(const struct drm_mm_node *node)h](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(hdrm_mm_node_allocatedh]jm)}(hdrm_mm_node_allocatedh]hdrm_mm_node_allocated}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h (const struct drm_mm_node *node)h]j)}(hconst struct drm_mm_node *nodeh](jD)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_mm_nodeh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_mm_node_allocatedasbuh1hhjubjV)}(h h]h }(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hj@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h)}(h"checks whether a node is allocatedh]h"checks whether a node is allocated}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjghhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:463: ./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:463: ./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&]uh1j hjubeh}(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:463: ./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:463: ./include/drm/drm_mm.hhKhjubh)}(hLDrivers should use this helper for proper encapsulation of drm_mm internals.h]hLDrivers should use this helper for proper encapsulation of drm_mm internals.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjubh)}(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:463: ./include/drm/drm_mm.hhKhjubh)}(h"True if the **node** is allocated.h](h True if the }(hj2hhhNhNubj)}(h**node**h]hnode}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh is allocated.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_initialized (C function)c.drm_mm_initializedhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h1bool drm_mm_initialized (const struct drm_mm *mm)h]j>)}(h0bool drm_mm_initialized(const struct drm_mm *mm)h](jc)}(hj h]hbool}(hjshhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjohhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjohhhjhMubjg)}(hdrm_mm_initializedh]jm)}(hdrm_mm_initializedh]hdrm_mm_initialized}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjhMubj)}(h(const struct drm_mm *mm)h]j)}(hconst struct drm_mm *mmh](jD)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_mmh]hdrm_mm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_mm_initializedasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmmh]hmm}(hj#hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjohhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhhubj)}(hhh]h)}(h*checks whether an allocator is initializedh]h*checks whether an allocator is initialized}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjJhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1j2hhhjhNhNubj)}(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)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhM hjiubj)}(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:463: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhM hjiubh)}(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:463: ./include/drm/drm_mm.hhM hjiubh)}(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:463: ./include/drm/drm_mm.hhM hjiubh)}(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:463: ./include/drm/drm_mm.hhMhjiubh)}(h"True if the **mm** is initialized.h](h True if the }(hjhhhNhNubj)}(h**mm**h]hmm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is initialized.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_mm_hole_follows (C function)c.drm_mm_hole_followshNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h9bool drm_mm_hole_follows (const struct drm_mm_node *node)h]j>)}(h8bool drm_mm_hole_follows(const struct drm_mm_node *node)h](jc)}(hj h]hbool}(hjVhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjRhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMubjV)}(h h]h }(hjdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjRhhhjchMubjg)}(hdrm_mm_hole_followsh]jm)}(hdrm_mm_hole_followsh]hdrm_mm_hole_follows}(hjvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjchMubj)}(h (const struct drm_mm_node *node)h]j)}(hconst struct drm_mm_node *nodeh](jD)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_mm_nodeh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjxsbc.drm_mm_hole_followsasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjRhhhjchMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjNhhhjchMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1j7hjchMhjKhhubj)}(hhh]h)}(h'checks whether a hole follows this nodeh]h'checks whether a hole follows this node}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhj-hhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjchMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1j2hhhjhNhNubj)}(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)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjLubj)}(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)}(hjqh]hconst struct drm_mm_node *node}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjkubj )}(hhh]h)}(hdrm_mm_node to checkh]hdrm_mm_node to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjLubh)}(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:463: ./include/drm/drm_mm.hhMhjLubh)}(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:463: ./include/drm/drm_mm.hhM!hjLubh)}(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:463: ./include/drm/drm_mm.hhM"hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_mm_hole_node_start (C function)c.drm_mm_hole_node_starthNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h@u64 drm_mm_hole_node_start (const struct drm_mm_node *hole_node)h]j>)}(h?u64 drm_mm_hole_node_start(const struct drm_mm_node *hole_node)h](h)}(hhh]jm)}(hu64h]hu64}(hj-hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj/modnameN classnameNjj)}j]j)}jdrm_mm_hole_node_startsbc.drm_mm_hole_node_startasbuh1hhj&hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhM0ubjV)}(h h]h }(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj&hhhjNhM0ubjg)}(hdrm_mm_hole_node_starth]jm)}(hjKh]hdrm_mm_hole_node_start}(hjahhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhjNhM0ubj)}(h%(const struct drm_mm_node *hole_node)h]j)}(h#const struct drm_mm_node *hole_nodeh](jD)}(hj h]hconst}(hj|hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjxubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjxubjD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjxubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjxubh)}(hhh]jm)}(h drm_mm_nodeh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jIc.drm_mm_hole_node_startasbuh1hhjxubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjm)}(h hole_nodeh]h hole_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubah}(h]h ]h"]h$]h&]jjuh1jhj&hhhjNhM0ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj"hhhjNhM0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjNhM0hjhhubj)}(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:463: ./include/drm/drm_mm.hhM0hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjNhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1j2hhhjhNhNubj)}(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)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhM4hjBubj)}(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)}(hjgh]h#const struct drm_mm_node *hole_node}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhM1hjaubj )}(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&]uh1hhj|hM1hj}ubah}(h]h ]h"]h$]h&]uh1j hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hM1hj^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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhM3hjBubh)}(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:463: ./include/drm/drm_mm.hhM2hjBubh)}(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:463: ./include/drm/drm_mm.hhM6hjBubh)}(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:463: ./include/drm/drm_mm.hhM7hjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!drm_mm_hole_node_end (C function)c.drm_mm_hole_node_endhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h>u64 drm_mm_hole_node_end (const struct drm_mm_node *hole_node)h]j>)}(h=u64 drm_mm_hole_node_end(const struct drm_mm_node *hole_node)h](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_mm_hole_node_endsbc.drm_mm_hole_node_endasbuh1hhj hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMFubjV)}(h h]h }(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhj2hMFubjg)}(hdrm_mm_hole_node_endh]jm)}(hj/h]hdrm_mm_hole_node_end}(hjEhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj2hMFubj)}(h%(const struct drm_mm_node *hole_node)h]j)}(h#const struct drm_mm_node *hole_nodeh](jD)}(hj h]hconst}(hj`hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj\ubjV)}(h h]h }(hjmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\ubjD)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj\ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\ubh)}(hhh]jm)}(h drm_mm_nodeh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j-c.drm_mm_hole_node_endasbuh1hhj\ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(h hole_nodeh]h hole_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj2hMFubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj2hMFubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj2hMFhjhhubj)}(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:463: ./include/drm/drm_mm.hhMFhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1j2hhhjhNhNubj)}(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)}(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:463: ./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)}(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:463: ./include/drm/drm_mm.hhMGhjEubj )}(hhh]h)}(h6drm_mm_node which implicitly tracks the following holeh]h6drm_mm_node which implicitly tracks the following hole}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMGhjaubah}(h]h ]h"]h$]h&]uh1j hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMGhjBubah}(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:463: ./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:463: ./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:463: ./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:463: ./include/drm/drm_mm.hhMMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_nodes (C macro)c.drm_mm_nodeshNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h drm_mm_nodesh]j>)}(h drm_mm_nodesh]jg)}(h drm_mm_nodesh]jm)}(hjh]h drm_mm_nodes}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMVubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj hMVubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj hMVhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hMVubeh}(h]h ](jmacroeh"]h$]h&]jjjj"jj"jjjuh1j2hhhjhNhNubh)}(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:463: ./include/drm/drm_mm.hhMXhjhhubj.)}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMVhj>ubah}(h]h ]h"]h$]h&]uh1j.hjPhMVhjhhubj)}(hXV**Parameters** ``mm`` the struct drm_mm range manager **Description** As the drm_mm range manager hides its node_list deep with its structure, extracting it looks painful and repetitive. This is not expected to be used outside of the drm_mm_for_each_node() macros and similar internal functions. **Return** The node list, may be empty.h](h)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMZhjWubj)}(hhh]j)}(h'``mm`` the struct drm_mm range manager h](j)}(h``mm``h]j)}(hj|h]hmm}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMWhjvubj )}(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&]uh1j hjvubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjsubah}(h]h ]h"]h$]h&]uh1jhjWubh)}(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:463: ./include/drm/drm_mm.hhMYhjWubh)}(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:463: ./include/drm/drm_mm.hhMXhjWubh)}(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:463: ./include/drm/drm_mm.hhM]hjWubh)}(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:463: ./include/drm/drm_mm.hhM^hjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_for_each_node (C macro)c.drm_mm_for_each_nodehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hdrm_mm_for_each_nodeh]j>)}(hdrm_mm_for_each_nodeh]jg)}(hdrm_mm_for_each_nodeh]jm)}(hjh]hdrm_mm_for_each_node}(hj'hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMdubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj:hMdubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj:hMdhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj:hMdubeh}(h]h ](jmacroeh"]h$]h&]jjjjSjjSjjjuh1j2hhhjhNhNubh)}(h$``drm_mm_for_each_node (entry, mm)``h]j)}(hjYh]h drm_mm_for_each_node (entry, mm)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMfhjhhubj.)}(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}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMdhjoubah}(h]h ]h"]h$]h&]uh1j.hjhMdhjhhubj)}(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:463: ./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:463: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_mm_nodeuh1hhjhMehjubh$ to assign to in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjubj)}(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:463: ./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 ](jjc-typeeh"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_mmuh1hhjhMfhjubh allocator to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_mm_for_each_node_safe (C macro)c.drm_mm_for_each_node_safehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hdrm_mm_for_each_node_safeh]j>)}(hdrm_mm_for_each_node_safeh]jg)}(hdrm_mm_for_each_node_safeh]jm)}(hjh]hdrm_mm_for_each_node_safe}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMoubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMoubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMohjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMoubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubh)}(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:463: ./include/drm/drm_mm.hhMqhjhhubj.)}(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:463: ./include/drm/drm_mm.hhMohjubah}(h]h ]h"]h$]h&]uh1j.hjhMohjhhubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./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)}(hj.h]hentry}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./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)}(hjMh]hstruct drm_mm_node}(hjOhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_mm_nodeuh1hhjChMphjGubh$ to assign to in each iteration step}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjChMphjDubah}(h]h ]h"]h$]h&]uh1j hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMphj%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:463: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_mm_nodeuh1hhjhMqhjubh to store the next step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:463: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_mmuh1hhjhMrhjubh allocator to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMrhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhj%ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMshj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_for_each_hole (C macro)c.drm_mm_for_each_holehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hdrm_mm_for_each_holeh]j>)}(hdrm_mm_for_each_holeh]jg)}(hdrm_mm_for_each_holeh]jm)}(hjwh]hdrm_mm_for_each_hole}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhM{ubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjuhhhjhM{ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1j7hjhM{hjrhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjrhhhjhM{ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubh)}(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:463: ./include/drm/drm_mm.hhM}hjhhubj.)}(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:463: ./include/drm/drm_mm.hhM{hjubah}(h]h ]h"]h$]h&]uh1j.hjhM{hjhhubj)}(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:463: ./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)}(hjh]hpos}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./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 ](jjc-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_mm_nodeuh1hhjhM|hj ubh" used internally to track progress}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM|hjubj)}(h*``mm`` :c:type:`drm_mm` allocator to walk h](j)}(h``mm``h]j)}(hj_h]hmm}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhM}hjYubj )}(hhh]h)}(h":c:type:`drm_mm` allocator to walkh](h)}(h:c:type:`drm_mm`h]j)}(hj~h]hdrm_mm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_mmuh1hhjthM}hjxubh allocator to walk}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjthM}hjuubah}(h]h ]h"]h$]h&]uh1j hjYubeh}(h]h ]h"]h$]h&]uh1jhjthM}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:463: ./include/drm/drm_mm.hhM~hjubj )}(hhh]h)}(h)}(hint drm_mm_insert_node_generic(struct drm_mm *mm, struct drm_mm_node *node, u64 size, u64 alignment, unsigned long color, enum drm_mm_insert_mode mode)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_mm_insert_node_generich]jm)}(hdrm_mm_insert_node_generich]hdrm_mm_insert_node_generic}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hy(struct drm_mm *mm, struct drm_mm_node *node, u64 size, u64 alignment, unsigned long color, enum drm_mm_insert_mode mode)h](j)}(hstruct drm_mm *mmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_mmh]hdrm_mm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_mm_insert_node_genericasbuh1hhjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmmh]hmm}(hj'hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_mm_node *nodeh](jD)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj<ubjV)}(h h]h }(hjMhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj<ubh)}(hhh]jm)}(h drm_mm_nodeh]h drm_mm_node}(hj^hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj`modnameN classnameNjj)}j]jc.drm_mm_insert_node_genericasbuh1hhj<ubjV)}(h h]h }(hj|hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj<ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjm)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 sizeh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_mm_insert_node_genericasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 alignmenth](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_mm_insert_node_genericasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h alignmenth]h alignment}(hj'hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long colorh](jc)}(hunsignedh]hunsigned}(hj@hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj<ubjV)}(h h]h }(hjNhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj<ubjc)}(hlongh]hlong}(hj\hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj<ubjV)}(h h]h }(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj<ubjm)}(hcolorh]hcolor}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum drm_mm_insert_mode modeh](jD)}(hjGh]henum}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_mm_insert_modeh]hdrm_mm_insert_mode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_mm_insert_node_genericasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(h$search for space and insert **node**h](hsearch for space and insert }(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:463: ./include/drm/drm_mm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1j2hhhjhNhNubj)}(hXF**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 ``u64 alignment`` alignment of the allocation ``unsigned long color`` opaque tag value to use for this node ``enum drm_mm_insert_mode mode`` fine-tune the allocation search and placement **Description** This is a simplified version of drm_mm_insert_node_in_range() with no range restrictions applied. 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)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./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)}(hjTh]hstruct drm_mm *mm}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjNubj )}(hhh]h)}(hdrm_mm to allocate fromh]hdrm_mm to allocate from}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1j hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjKubj)}(h8``struct drm_mm_node *node`` preallocate node to insert 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjubj )}(hhh]h)}(hpreallocate node to inserth]hpreallocate node to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjKubj)}(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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjubj )}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjKubj)}(h.``u64 alignment`` alignment of the allocation h](j)}(h``u64 alignment``h]j)}(hjh]h u64 alignment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjubj )}(hhh]h)}(halignment of the allocationh]halignment of the allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjKubj)}(h>``unsigned long color`` opaque tag value to use for this node h](j)}(h``unsigned long color``h]j)}(hj8h]hunsigned long color}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhj2ubj )}(hhh]h)}(h%opaque tag value to use for this nodeh]h%opaque tag value to use for this node}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1j hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjKubj)}(hO``enum drm_mm_insert_mode mode`` fine-tune the allocation search and placement h](j)}(h ``enum drm_mm_insert_mode mode``Dh]j)}(hjqh]henum drm_mm_insert_mode mode}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjkubj )}(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&]uh1j hjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjKubeh}(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:463: ./include/drm/drm_mm.hhMhj/ubh)}(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:463: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhj/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:463: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_insert_node (C function)c.drm_mm_insert_nodehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hNint drm_mm_insert_node (struct drm_mm *mm, struct drm_mm_node *node, u64 size)h]j>)}(hMint drm_mm_insert_node(struct drm_mm *mm, struct drm_mm_node *node, u64 size)h](jc)}(hinth]hint}(hj'hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj#hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMubjV)}(h h]h }(hj6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj#hhhj5hMubjg)}(hdrm_mm_insert_nodeh]jm)}(hdrm_mm_insert_nodeh]hdrm_mm_insert_node}(hjHhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj5hMubj)}(h7(struct drm_mm *mm, struct drm_mm_node *node, u64 size)h](j)}(hstruct drm_mm *mmh](jD)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj`ubjV)}(h h]h }(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj`ubh)}(hhh]jm)}(hdrm_mmh]hdrm_mm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjJsbc.drm_mm_insert_nodeasbuh1hhj`ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hstruct drm_mm_node *nodeh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_mm_nodeh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_mm_insert_nodeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hj-hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hu64 sizeh](h)}(hhh]jm)}(hu64h]hu64}(hjIhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjKmodnameN classnameNjj)}j]jc.drm_mm_insert_nodeasbuh1hhjBubjV)}(h h]h }(hjghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjBubjm)}(hsizeh]hsize}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhj#hhhj5hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj5hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj5hMhjhhubj)}(hhh]h)}(h$search for space and insert **node**h](hsearch for space and insert }(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:463: ./include/drm/drm_mm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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)}(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:463: ./include/drm/drm_mm.hhMhjubj)}(hhh](j)}(h.``struct drm_mm *mm`` drm_mm to allocate from 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:463: ./include/drm/drm_mm.hhMhjubj )}(hhh]h)}(hdrm_mm to allocate fromh]hdrm_mm to allocate from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:463: ./include/drm/drm_mm.hhMhj!ubj )}(hhh]h)}(hpreallocate node to inserth]hpreallocate node to insert}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj=ubah}(h]h ]h"]h$]h&]uh1j hj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubj)}(h$``u64 size`` size of the allocation h](j)}(h ``u64 size``h]j)}(hj`h]hu64 size}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjZubj )}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1j hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjubeh}(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:463: ./include/drm/drm_mm.hhMhjubh)}(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 }(hjhhhNhNubj)}(h **color**h]hcolor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh set to 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjubh)}(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:463: ./include/drm/drm_mm.hhMhjubh)}(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:463: ./include/drm/drm_mm.hhMhjubh)}(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:463: ./include/drm/drm_mm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_clean (C function)c.drm_mm_cleanhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h+bool drm_mm_clean (const struct drm_mm *mm)h]j>)}(h*bool drm_mm_clean(const struct drm_mm *mm)h](jc)}(hj h]hbool}(hj(hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj$hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMubjV)}(h h]h }(hj6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj$hhhj5hMubjg)}(h drm_mm_cleanh]jm)}(h drm_mm_cleanh]h drm_mm_clean}(hjHhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$hhhj5hMubj)}(h(const struct drm_mm *mm)h]j)}(hconst struct drm_mm *mmh](jD)}(hj h]hconst}(hjdhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj`ubjV)}(h h]h }(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj`ubjD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj`ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj`ubh)}(hhh]jm)}(hdrm_mmh]hdrm_mm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjJsbc.drm_mm_cleanasbuh1hhj`ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubah}(h]h ]h"]h$]h&]jjuh1jhj$hhhj5hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj5hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj5hMhjhhubj)}(hhh]h)}(h$checks whether an allocator is cleanh]h$checks whether an allocator is clean}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:463: ./include/drm/drm_mm.hhMhjubj)}(hhh]j)}(h6``const struct drm_mm *mm`` drm_mm allocator to check h](j)}(h``const struct drm_mm *mm``h]j)}(hjCh]hconst struct drm_mm *mm}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhj=ubj )}(hhh]h)}(hdrm_mm allocator to checkh]hdrm_mm allocator to check}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1j hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhj:ubah}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_mm_for_each_node_in_range (C macro)c.drm_mm_for_each_node_in_rangehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hdrm_mm_for_each_node_in_rangeh]j>)}(hdrm_mm_for_each_node_in_rangeh]jg)}(hdrm_mm_for_each_node_in_rangeh]jm)}(hjh]hdrm_mm_for_each_node_in_range}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubh)}(h@``drm_mm_for_each_node_in_range (node__, mm__, start__, end__)``h]j)}(hjh]h`, and may even continue indefinitely.h](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./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)}(hjMh]hnode__}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjGubj )}(hhh]h)}(h9drm_mm_node structure to assign to in each iteration steph]h9drm_mm_node structure to assign to in each iteration step}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1j hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjDubj)}(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:463: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubj)}(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:463: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubj)}(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:463: ./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)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjDubeh}(h]h ]h"]h$]h&]uh1jhj(ubh)}(h**Description**h]j)}(hj3 h]h Description}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1 ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./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 }(hjI hhhNhNubj)}(h **start**h]hstart}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI ubh and }(hjI hhhNhNubj)}(h**end**h]hend}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI ubh. 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 }(hjI hhhNhNubj)}(h**end**h]hend}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI ubh@ is within (or is the upper limit of) the drm_mm allocator. If [}(hjI hhhNhNubj)}(h **start**h]hstart}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI ubh, }(hjI hhhNhNubj)}(h**end**h]hend}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI ubh[] are beyond the range of the drm_mm, the iterator may walk over the special _unallocated_ }(hjI hhhNhNubh)}(h#:c:type:`drm_mm.head_node `h]j)}(hj h]hdrm_mm.head_node}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_mmuh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjI ubh%, and may even continue indefinitely.}(hjI hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_scan_init (C function)c.drm_mm_scan_inithNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(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>)}(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](jc)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhj hMubjg)}(hdrm_mm_scan_inith]jm)}(hdrm_mm_scan_inith]hdrm_mm_scan_init}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(hy(struct drm_mm_scan *scan, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color, enum drm_mm_insert_mode mode)h](j)}(hstruct drm_mm_scan *scanh](jD)}(hjh]hstruct}(hj2 hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj. ubjV)}(h h]h }(hj? hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj. ubh)}(hhh]jm)}(h drm_mm_scanh]h drm_mm_scan}(hjP hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjM ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjR modnameN classnameNjj)}j]j)}jj sbc.drm_mm_scan_initasbuh1hhj. ubjV)}(h h]h }(hjp hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj. ubj)}(hjh]h*}(hj~ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj. ubjm)}(hscanh]hscan}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj. ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj* ubj)}(hstruct drm_mm *mmh](jD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(hdrm_mmh]hdrm_mm}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jl c.drm_mm_scan_initasbuh1hhj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hmmh]hmm}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj* ubj)}(hu64 sizeh](h)}(hhh]jm)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jl c.drm_mm_scan_initasbuh1hhj ubjV)}(h h]h }(hj5 hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubjm)}(hsizeh]hsize}(hjC hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj* ubj)}(h u64 alignmenth](h)}(hhh]jm)}(hu64h]hu64}(hj_ hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj\ ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetja modnameN classnameNjj)}j]jl c.drm_mm_scan_initasbuh1hhjX ubjV)}(h h]h }(hj} hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjX ubjm)}(h alignmenth]h alignment}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjX ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj* ubj)}(hunsigned long colorh](jc)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubjc)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubjm)}(hcolorh]hcolor}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj* ubj)}(henum drm_mm_insert_mode modeh](jD)}(hjGh]henum}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(hdrm_mm_insert_modeh]hdrm_mm_insert_mode}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jl c.drm_mm_scan_initasbuh1hhj ubjV)}(h h]h }(hj1 hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubjm)}(hmodeh]hmode}(hj? hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj* ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj hMhj hhubj)}(hhh]h)}(hinitialize lru scanningh]hinitialize lru scanning}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjf hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1j2hhhjhNhNubj)}(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)}(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:463: ./include/drm/drm_mm.hhMhj 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhj ubj )}(hhh]h)}(h scan stateh]h scan state}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j hj 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhj 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&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(h$``u64 size`` size of the allocation h](j)}(h ``u64 size``h]j)}(hj h]hu64 size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhj ubj )}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1 hMhj2 ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj1 hMhj ubj)}(h.``u64 alignment`` alignment of the allocation h](j)}(h``u64 alignment``h]j)}(hjU h]h u64 alignment}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhjO ubj )}(hhh]h)}(halignment of the allocationh]halignment of the allocation}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj hMhjk ubah}(h]h ]h"]h$]h&]uh1j hjO ubeh}(h]h ]h"]h$]h&]uh1jhjj 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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhj 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&]uh1j hj 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhj 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&]uh1j hj ubeh}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhM hj ubh)}(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:463: ./include/drm/drm_mm.hhM hj ubh)}(hSThis simply sets up the scanning routines with the parameters for the desired hole.h]hSThis simply sets up the scanning routines with the parameters for the desired hole.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhM hj 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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:463: ./include/drm/drm_mm.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_mm_reserve_node (C function)c.drm_mm_reserve_nodehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hEint drm_mm_reserve_node (struct drm_mm *mm, struct drm_mm_node *node)h]j>)}(hDint drm_mm_reserve_node(struct drm_mm *mm, struct drm_mm_node *node)h](jc)}(hinth]hint}(hjehhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjahhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMubjV)}(h h]h }(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjahhhjshMubjg)}(hdrm_mm_reserve_nodeh]jm)}(hdrm_mm_reserve_nodeh]hdrm_mm_reserve_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjahhhjshMubj)}(h-(struct drm_mm *mm, struct drm_mm_node *node)h](j)}(hstruct drm_mm *mmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_mmh]hdrm_mm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_mm_reserve_nodeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_mm_node *nodeh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj!hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_mm_nodeh]h drm_mm_node}(hj2hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj4modnameN classnameNjj)}j]jc.drm_mm_reserve_nodeasbuh1hhjubjV)}(h h]h }(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hjkhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhjshMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj]hhhjshMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1j7hjshMhjZhhubj)}(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:466: ./drivers/gpu/drm/drm_mm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjshMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:466: ./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:466: ./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&]uh1j hjubeh}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./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&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj\h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./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 }(hjrhhhNhNubh)}(h:c:type:`drm_mm_node`h]j)}(hj|h]h drm_mm_node}(hj~hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_mm_nodeuh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjrubhX+ 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.}(hjrhhhNhNubeh}(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:466: ./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:466: ./drivers/gpu/drm/drm_mm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.(drm_mm_insert_node_in_range (C function)c.drm_mm_insert_node_in_rangehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(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>)}(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](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj hMubjg)}(hdrm_mm_insert_node_in_rangeh]jm)}(hdrm_mm_insert_node_in_rangeh]hdrm_mm_insert_node_in_range}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h(struct drm_mm *const mm, struct drm_mm_node *const node, u64 size, u64 alignment, unsigned long color, u64 range_start, u64 range_end, enum drm_mm_insert_mode mode)h](j)}(hstruct drm_mm *const mmh](jD)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj6ubjV)}(h h]h }(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj6ubh)}(hhh]jm)}(hdrm_mmh]hdrm_mm}(hjXhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjUubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjZmodnameN classnameNjj)}j]j)}jj sbc.drm_mm_insert_node_in_rangeasbuh1hhj6ubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjD)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj6ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj6ubjm)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hstruct drm_mm_node *const nodeh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_mm_nodeh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jtc.drm_mm_insert_node_in_rangeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjD)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hnodeh]hnode}(hj9hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hu64 sizeh](h)}(hhh]jm)}(hu64h]hu64}(hjUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjWmodnameN classnameNjj)}j]jtc.drm_mm_insert_node_in_rangeasbuh1hhjNubjV)}(h h]h }(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjNubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(h u64 alignmenth](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jtc.drm_mm_insert_node_in_rangeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h alignmenth]h alignment}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hunsigned long colorh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hcolorh]hcolor}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hu64 range_starth](h)}(hhh]jm)}(hu64h]hu64}(hj6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8modnameN classnameNjj)}j]jtc.drm_mm_insert_node_in_rangeasbuh1hhj/ubjV)}(h h]h }(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/ubjm)}(h range_starth]h range_start}(hjbhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(h u64 range_endh](h)}(hhh]jm)}(hu64h]hu64}(hj~hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jtc.drm_mm_insert_node_in_rangeasbuh1hhjwubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjwubjm)}(h range_endh]h range_end}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(henum drm_mm_insert_mode modeh](jD)}(hjGh]henum}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_mm_insert_modeh]hdrm_mm_insert_mode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jtc.drm_mm_insert_node_in_rangeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hmodeh]hmode}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj hMhjhhubj)}(hhh]h)}(h+ranged search for space and insert **node**h](h#ranged search for space and insert }(hj7hhhNhNubj)}(h**node**h]hnode}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhj4hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1j2hhhjhNhNubj)}(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)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjaubj)}(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:466: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubj)}(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:466: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubj)}(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:466: ./drivers/gpu/drm/drm_mm.chMhjubj )}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj}ubj)}(h.``u64 alignment`` alignment of the allocation h](j)}(h``u64 alignment``h]j)}(hj1h]h u64 alignment}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhj+ubj )}(hhh]h)}(halignment of the allocationh]halignment of the allocation}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1j hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj}ubj)}(h>``unsigned long color`` opaque tag value to use for this node h](j)}(h``unsigned long color``h]j)}(hjjh]hunsigned long color}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjdubj )}(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&]uh1j hjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubj)}(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:466: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubj)}(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:466: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}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)}(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:466: ./drivers/gpu/drm/drm_mm.chMhjubj )}(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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjaubh)}(h/The preallocated **node** must be cleared to 0.h](hThe preallocated }(hjfhhhNhNubj)}(h**node**h]hnode}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh must be cleared to 0.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjaubh)}(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:466: ./drivers/gpu/drm/drm_mm.chMhjaubh)}(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:466: ./drivers/gpu/drm/drm_mm.chMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_remove_node (C function)c.drm_mm_remove_nodehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h2void drm_mm_remove_node (struct drm_mm_node *node)h]j>)}(h1void drm_mm_remove_node(struct drm_mm_node *node)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMlubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMlubjg)}(hdrm_mm_remove_nodeh]jm)}(hdrm_mm_remove_nodeh]hdrm_mm_remove_node}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMlubj)}(h(struct drm_mm_node *node)h]j)}(hstruct drm_mm_node *nodeh](jD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_mm_nodeh]h drm_mm_node}(hj)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj+modnameN classnameNjj)}j]j)}jjsbc.drm_mm_remove_nodeasbuh1hhjubjV)}(h h]h }(hjIhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnodeh]hnode}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMlubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMlubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMlhjhhubj)}(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:466: ./drivers/gpu/drm/drm_mm.chMlhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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:466: ./drivers/gpu/drm/drm_mm.chMphjubj)}(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:466: ./drivers/gpu/drm/drm_mm.chMmhjubj )}(hhh]h)}(hdrm_mm_node to removeh]hdrm_mm_node to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubah}(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&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMohjubh)}(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:466: ./drivers/gpu/drm/drm_mm.chMnhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.(drm_mm_scan_init_with_range (C function)c.drm_mm_scan_init_with_rangehNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(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>)}(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](jc)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjKhhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMubjV)}(h h]h }(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKhhhj]hMubjg)}(hdrm_mm_scan_init_with_rangeh]jm)}(hdrm_mm_scan_init_with_rangeh]hdrm_mm_scan_init_with_range}(hjphhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhj]hMubj)}(h(struct drm_mm_scan *scan, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color, u64 start, u64 end, enum drm_mm_insert_mode mode)h](j)}(hstruct drm_mm_scan *scanh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_mm_scanh]h drm_mm_scan}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjrsbc.drm_mm_scan_init_with_rangeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hscanh]hscan}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_mm *mmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_mmh]hdrm_mm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_mm_scan_init_with_rangeasbuh1hhjubjV)}(h h]h }(hj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmmh]hmm}(hjUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 sizeh](h)}(hhh]jm)}(hu64h]hu64}(hjqhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjsmodnameN classnameNjj)}j]jc.drm_mm_scan_init_with_rangeasbuh1hhjjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 alignmenth](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_mm_scan_init_with_rangeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h alignmenth]h alignment}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long colorh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hj(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hcolorh]hcolor}(hj6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 starth](h)}(hhh]jm)}(hu64h]hu64}(hjRhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTmodnameN classnameNjj)}j]jc.drm_mm_scan_init_with_rangeasbuh1hhjKubjV)}(h h]h }(hjphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKubjm)}(hstarth]hstart}(hj~hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 endh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_mm_scan_init_with_rangeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hendh]hend}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum drm_mm_insert_mode modeh](jD)}(hjGh]henum}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_mm_insert_modeh]hdrm_mm_insert_mode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_mm_scan_init_with_rangeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hmodeh]hmode}(hj)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhj]hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjGhhhj]hMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1j7hj]hMhjDhhubj)}(hhh]h)}(h(initialize range-restricted lru scanningh]h(initialize range-restricted lru scanning}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1j2hhhjhNhNubj)}(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)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjoubj)}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjubj )}(hhh]h)}(h scan stateh]h scan state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjubj )}(hhh]h)}(hdrm_mm to scanh]hdrm_mm to scan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:466: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``u64 alignment`` alignment of the allocation h](j)}(h``u64 alignment``h]j)}(hj?h]h u64 alignment}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhj9ubj )}(hhh]h)}(halignment of the allocationh]halignment of the allocation}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1j hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjubj)}(hC``unsigned long color`` opaque tag value to use for the allocation h](j)}(h``unsigned long color``h]j)}(hjxh]hunsigned long color}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjrubj )}(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&]uh1j hjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``u64 start`` start of the allowed range for the allocation h](j)}(h ``u64 start``h]j)}(hjh]h u64 start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjubj )}(hhh]h)}(h-start of the allowed range for the allocationh]h-start of the allowed range for the allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h8``u64 end`` end of the allowed range for the allocation h](j)}(h ``u64 end``h]j)}(hjh]hu64 end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjubj )}(hhh]h)}(h+end of the allowed range for the allocationh]h+end of the allowed range for the allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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)}(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:466: ./drivers/gpu/drm/drm_mm.chMhjubj )}(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&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubeh}(h]h ]h"]h$]h&]uh1jhjoubh)}(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:466: ./drivers/gpu/drm/drm_mm.chMhjoubh)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjoubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_mm_scan_add_block (C function)c.drm_mm_scan_add_blockhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hObool drm_mm_scan_add_block (struct drm_mm_scan *scan, struct drm_mm_node *node)h]j>)}(hNbool drm_mm_scan_add_block(struct drm_mm_scan *scan, struct drm_mm_node *node)h](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_mm_scan_add_blockh]jm)}(hdrm_mm_scan_add_blockh]hdrm_mm_scan_add_block}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h4(struct drm_mm_scan *scan, struct drm_mm_node *node)h](j)}(hstruct drm_mm_scan *scanh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_mm_scanh]h drm_mm_scan}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_mm_scan_add_blockasbuh1hhjubjV)}(h h]h }(hj,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hscanh]hscan}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_mm_node *nodeh](jD)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj\ubjV)}(h h]h }(hjmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\ubh)}(hhh]jm)}(h drm_mm_nodeh]h drm_mm_node}(hj~hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j(c.drm_mm_scan_add_blockasbuh1hhj\ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(hadd a node to the scan listh]hadd a node to the scan list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhjhNhNubj)}(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)}(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:466: ./drivers/gpu/drm/drm_mm.chMhjubj)}(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:466: ./drivers/gpu/drm/drm_mm.chMhjubj )}(hhh]h)}(hthe active drm_mm scannerh]hthe active drm_mm scanner}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(h0``struct drm_mm_node *node`` drm_mm_node to add h](j)}(h``struct drm_mm_node *node``h]j)}(hj[h]hstruct drm_mm_node *node}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjUubj )}(hhh]h)}(hdrm_mm_node to addh]hdrm_mm_node to add}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1j hjUubeh}(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&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjubh)}(h/True if a hole has been found, false otherwise.h]h/True if a hole has been found, false otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_mm_scan_remove_block (C function)c.drm_mm_scan_remove_blockhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hRbool drm_mm_scan_remove_block (struct drm_mm_scan *scan, struct drm_mm_node *node)h]j>)}(hQbool drm_mm_scan_remove_block(struct drm_mm_scan *scan, struct drm_mm_node *node)h](jc)}(hj h]hbool}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chM2ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj hM2ubjg)}(hdrm_mm_scan_remove_blockh]jm)}(hdrm_mm_scan_remove_blockh]hdrm_mm_scan_remove_block}(hj" hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hM2ubj)}(h4(struct drm_mm_scan *scan, struct drm_mm_node *node)h](j)}(hstruct drm_mm_scan *scanh](jD)}(hjh]hstruct}(hj> hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj: ubjV)}(h h]h }(hjK hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj: ubh)}(hhh]jm)}(h drm_mm_scanh]h drm_mm_scan}(hj\ hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjY ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^ modnameN classnameNjj)}j]j)}jj$ sbc.drm_mm_scan_remove_blockasbuh1hhj: ubjV)}(h h]h }(hj| hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj: ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj: ubjm)}(hscanh]hscan}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj: ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6 ubj)}(hstruct drm_mm_node *nodeh](jD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(h drm_mm_nodeh]h drm_mm_node}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jx c.drm_mm_scan_remove_blockasbuh1hhj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnodeh]hnode}(hj!hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6 ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hM2ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj hM2ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj hM2hjhhubj)}(hhh]h)}(h remove a node from the scan listh]h remove a node from the scan list}(hj1!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chM2hj.!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjI!jjI!jjjuh1j2hhhjhNhNubj)}(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)}(hjS!h]h Parameters}(hjU!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ!ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chM6hjM!ubj)}(hhh](j)}(h7``struct drm_mm_scan *scan`` the active drm_mm scanner h](j)}(h``struct drm_mm_scan *scan``h]j)}(hjr!h]hstruct drm_mm_scan *scan}(hjt!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp!ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chM3hjl!ubj )}(hhh]h)}(hthe active drm_mm scannerh]hthe active drm_mm scanner}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM3hj!ubah}(h]h ]h"]h$]h&]uh1j hjl!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM3hji!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:466: ./drivers/gpu/drm/drm_mm.chM4hj!ubj )}(hhh]h)}(hdrm_mm_node to removeh]hdrm_mm_node to remove}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM4hj!ubah}(h]h ]h"]h$]h&]uh1j hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM4hji!ubeh}(h]h ]h"]h$]h&]uh1jhjM!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:466: ./drivers/gpu/drm/drm_mm.chM6hjM!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:466: ./drivers/gpu/drm/drm_mm.chM5hjM!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:466: ./drivers/gpu/drm/drm_mm.chM:hjM!ubh)}(h **Return**h]j)}(hj."h]hReturn}(hj0"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,"ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chM?hjM!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.}(hjD"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chM@hjM!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.$drm_mm_scan_color_evict (C function)c.drm_mm_scan_color_evicthNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hGstruct drm_mm_node * drm_mm_scan_color_evict (struct drm_mm_scan *scan)h]j>)}(hEstruct drm_mm_node *drm_mm_scan_color_evict(struct drm_mm_scan *scan)h](jD)}(hjh]hstruct}(hjs"hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjo"hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMcubjV)}(h h]h }(hj"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjo"hhhj"hMcubh)}(hhh]jm)}(h drm_mm_nodeh]h drm_mm_node}(hj"hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj"modnameN classnameNjj)}j]j)}jdrm_mm_scan_color_evictsbc.drm_mm_scan_color_evictasbuh1hhjo"hhhj"hMcubjV)}(h h]h }(hj"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjo"hhhj"hMcubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo"hhhj"hMcubjg)}(hdrm_mm_scan_color_evicth]jm)}(hj"h]hdrm_mm_scan_color_evict}(hj"hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjo"hhhj"hMcubj)}(h(struct drm_mm_scan *scan)h]j)}(hstruct drm_mm_scan *scanh](jD)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj"ubjV)}(h h]h }(hj"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj"ubh)}(hhh]jm)}(h drm_mm_scanh]h drm_mm_scan}(hj #hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj #modnameN classnameNjj)}j]j"c.drm_mm_scan_color_evictasbuh1hhj"ubjV)}(h h]h }(hj)#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj"ubj)}(hjh]h*}(hj7#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjm)}(hscanh]hscan}(hjD#hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubah}(h]h ]h"]h$]h&]jjuh1jhjo"hhhj"hMcubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjk"hhhj"hMcubah}(h]jf"ah ](jjeh"]h$]h&]jj)jhuh1j7hj"hMchjh"hhubj)}(hhh]h)}(h.evict overlapping nodes on either side of holeh]h.evict overlapping nodes on either side of hole}(hjn#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMchjk#hhubah}(h]h ]h"]h$]h&]uh1jhjh"hhhj"hMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1j2hhhjhNhNubj)}(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:466: ./drivers/gpu/drm/drm_mm.chMghj#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:466: ./drivers/gpu/drm/drm_mm.chMdhj#ubj )}(hhh]h)}(hdrm_mm scan with target holeh]hdrm_mm scan with target hole}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMdhj#ubah}(h]h ]h"]h$]h&]uh1j hj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMdhj#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:466: ./drivers/gpu/drm/drm_mm.chMfhj#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:466: ./drivers/gpu/drm/drm_mm.chMehj#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:466: ./drivers/gpu/drm/drm_mm.chMihj#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:466: ./drivers/gpu/drm/drm_mm.chMjhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_init (C function) c.drm_mm_inithNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h9void drm_mm_init (struct drm_mm *mm, u64 start, u64 size)h]j>)}(h8void drm_mm_init(struct drm_mm *mm, u64 start, u64 size)h](jc)}(hvoidh]hvoid}(hjV$hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjR$hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMubjV)}(h h]h }(hje$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjR$hhhjd$hMubjg)}(h drm_mm_inith]jm)}(h drm_mm_inith]h drm_mm_init}(hjw$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjs$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjR$hhhjd$hMubj)}(h((struct drm_mm *mm, u64 start, u64 size)h](j)}(hstruct drm_mm *mmh](jD)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj$ubjV)}(h h]h }(hj$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj$ubh)}(hhh]jm)}(hdrm_mmh]hdrm_mm}(hj$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$modnameN classnameNjj)}j]j)}jjy$sb c.drm_mm_initasbuh1hhj$ubjV)}(h h]h }(hj$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj$ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(hmmh]hmm}(hj$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(h u64 starth](h)}(hhh]jm)}(hu64h]hu64}(hj%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj %modnameN classnameNjj)}j]j$ c.drm_mm_initasbuh1hhj%ubjV)}(h h]h }(hj&%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj%ubjm)}(hstarth]hstart}(hj4%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hu64 sizeh](h)}(hhh]jm)}(hu64h]hu64}(hjP%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjM%ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjR%modnameN classnameNjj)}j]j$ c.drm_mm_initasbuh1hhjI%ubjV)}(h h]h }(hjn%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjI%ubjm)}(hsizeh]hsize}(hj|%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjI%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubeh}(h]h ]h"]h$]h&]jjuh1jhjR$hhhjd$hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjN$hhhjd$hMubah}(h]jI$ah ](jjeh"]h$]h&]jj)jhuh1j7hjd$hMhjK$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:466: ./drivers/gpu/drm/drm_mm.chMhj%hhubah}(h]h ]h"]h$]h&]uh1jhjK$hhhjd$hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1j2hhhjhNhNubj)}(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:466: ./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:466: ./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&]uh1j hj%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:466: ./drivers/gpu/drm/drm_mm.chMhj&ubj )}(hhh]h)}(h$start of the range managed by **mm**h](hstart of the range managed by }(hj9&hhhNhNubj)}(h**mm**h]hmm}(hjA&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9&ubeh}(h]h ]h"]h$]h&]uh1hhj5&hMhj6&ubah}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ]h"]h$]h&]uh1jhj5&hMhj%ubj)}(h0``u64 size`` end of the range managed by **mm** h](j)}(h ``u64 size``h]j)}(hjg&h]hu64 size}(hji&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje&ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhja&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&]uh1j hja&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:466: ./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:466: ./drivers/gpu/drm/drm_mm.chMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_takedown (C function)c.drm_mm_takedownhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(h(void drm_mm_takedown (struct drm_mm *mm)h]j>)}(h'void drm_mm_takedown(struct drm_mm *mm)h](jc)}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj'hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMubjV)}(h h]h }(hj'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj'hhhj'hMubjg)}(hdrm_mm_takedownh]jm)}(hdrm_mm_takedownh]hdrm_mm_takedown}(hj('hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj$'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj'hMubj)}(h(struct drm_mm *mm)h]j)}(hstruct drm_mm *mmh](jD)}(hjh]hstruct}(hjD'hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj@'ubjV)}(h h]h }(hjQ'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@'ubh)}(hhh]jm)}(hdrm_mmh]hdrm_mm}(hjb'hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj_'ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjd'modnameN classnameNjj)}j]j)}jj*'sbc.drm_mm_takedownasbuh1hhj@'ubjV)}(h h]h }(hj'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@'ubjm)}(hmmh]hmm}(hj'hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<'ubah}(h]h ]h"]h$]h&]jjuh1jhj'hhhj'hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj&hhhj'hMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1j7hj'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:466: ./drivers/gpu/drm/drm_mm.chMhj'hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1j2hhhjhNhNubj)}(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:466: ./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:466: ./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&]uh1j hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubh)}(h**Description**h]j)}(hjC(h]h Description}(hjE(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA(ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./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.}(hjY(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_mm_print (C function)c.drm_mm_printhNtauh1j!hjhhhNhNubj3)}(hhh](j8)}(hBvoid drm_mm_print (const struct drm_mm *mm, struct drm_printer *p)h]j>)}(hAvoid drm_mm_print(const struct drm_mm *mm, struct drm_printer *p)h](jc)}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj(hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMubjV)}(h h]h }(hj(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(hhhj(hMubjg)}(h drm_mm_printh]jm)}(h drm_mm_printh]h drm_mm_print}(hj(hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhj(hMubj)}(h0(const struct drm_mm *mm, struct drm_printer *p)h](j)}(hconst struct drm_mm *mmh](jD)}(hj h]hconst}(hj(hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj(ubjV)}(h h]h }(hj(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(ubjD)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj(ubjV)}(h h]h }(hj(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(ubh)}(hhh]jm)}(hdrm_mmh]hdrm_mm}(hj(hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj)modnameN classnameNjj)}j]j)}jj(sbc.drm_mm_printasbuh1hhj(ubjV)}(h h]h }(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(ubj)}(hjh]h*}(hj,)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(hmmh]hmm}(hj9)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hstruct drm_printer *ph](jD)}(hjh]hstruct}(hjR)hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjN)ubjV)}(h h]h }(hj_)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjN)ubh)}(hhh]jm)}(h drm_printerh]h drm_printer}(hjp)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjm)ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjr)modnameN classnameNjj)}j]j)c.drm_mm_printasbuh1hhjN)ubjV)}(h h]h }(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjN)ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN)ubjm)}(hjh]hp}(hj)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjN)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhj(hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj(hhhj(hMubah}(h]j{(ah ](jjeh"]h$]h&]jj)jhuh1j7hj(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:466: ./drivers/gpu/drm/drm_mm.chMhj)hhubah}(h]h ]h"]h$]h&]uh1jhj}(hhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1j2hhhjhNhNubj)}(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:466: ./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)}(hj*h]hconst struct 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:466: ./drivers/gpu/drm/drm_mm.chMhj *ubj )}(hhh]h)}(hdrm_mm allocator to printh]hdrm_mm allocator to print}(hj,*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(*hMhj)*ubah}(h]h ]h"]h$]h&]uh1j hj *ubeh}(h]h ]h"]h$]h&]uh1jhj(*hMhj *ubj)}(h,``struct drm_printer *p`` DRM printer to useh](j)}(h``struct drm_printer *p``h]j)}(hjL*h]hstruct drm_printer *p}(hjN*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ*ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjF*ubj )}(hhh]h)}(hDRM printer to useh]hDRM printer to use}(hje*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:466: ./drivers/gpu/drm/drm_mm.chMhjb*ubah}(h]h ]h"]h$]h&]uh1j hjF*ubeh}(h]h ]h"]h$]h&]uh1jhja*hMhj *ubeh}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(h.. _drm_gpuvm:h]h}(h]h ]h"]h$]h&]j drm-gpuvmuh1jhMhjhhhhubeh}(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}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hhhhhMubh)}(hhh](h)}(hOverviewh]hOverview}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hhhhhMubh)}(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 }(hj*hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj*h]h drm_gpuva}(hj*hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:477: ./drivers/gpu/drm/drm_gpuvm.chK#hj*ubh9 objects. It also keeps track of the mapping’s backing }(hj*hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj*h]hdrm_gem_object}(hj*hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj*hK#hj*ubh buffers.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj*hK#hj*hhubh)}(h:c:type:`drm_gem_object` buffers maintain a list of :c:type:`drm_gpuva` objects representing all existent GPU VA mappings using this :c:type:`drm_gem_object` as backing buffer.h](h)}(h:c:type:`drm_gem_object`h]j)}(hj%+h]hdrm_gem_object}(hj'+hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj#+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:477: ./drivers/gpu/drm/drm_gpuvm.chK(hj+ubh buffers maintain a list of }(hj+hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjI+h]h drm_gpuva}(hjK+hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjG+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjB+hK(hj+ubh> objects representing all existent GPU VA mappings using this }(hj+hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjl+h]hdrm_gem_object}(hjn+hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjB+hK(hj+ubh as backing buffer.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjB+hK(hj*hhubh)}(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’.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:477: ./drivers/gpu/drm/drm_gpuvm.chK+hj*hhubh)}(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 }(hj+hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj+h]h drm_gpuva}(hj+hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:477: ./drivers/gpu/drm/drm_gpuvm.chK.hj+ubh1 mappings within a GPU’s virtual address space.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hK.hj*hhubh)}(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 }(hj+hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj+h]h drm_gpuvm}(hj+hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:477: ./drivers/gpu/drm/drm_gpuvm.chK1hj+ubh structure contains a special }(hj+hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj,h]h drm_gpuva}(hj,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj+hK1hj+ubh 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.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hK1hj*hhubh)}(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),hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj3,h]h drm_gpuva}(hj5,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj1,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:477: ./drivers/gpu/drm/drm_gpuvm.chK6hj),ubh entries.}(hj),hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjP,hK6hj*hhubh)}(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[,hhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hje,h]h drm_gpuvas}(hjg,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjc,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:477: ./drivers/gpu/drm/drm_gpuvm.chK;hj[,ubh within the }(hj[,hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj,h]h drm_gpuvm}(hj,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj,hK;hj[,ubhE are contained within struct drm_gpuva already. Hence, for inserting }(hj[,hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj,h]h drm_gpuva}(hj,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj,hK;hj[,ubh] entries from within dma-fence signalling critical sections it is enough to pre-allocate the }(hj[,hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj,h]h drm_gpuva}(hj,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj,hK;hj[,ubh structures.}(hj[,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hK;hj*hhubh)}(hXR:c:type:`drm_gem_objects` which are private to a single VM can share a common :c:type:`dma_resv` in order to improve locking efficiency (e.g. with :c:type:`drm_exec`). For this purpose drivers must pass a :c:type:`drm_gem_object` to drm_gpuvm_init(), in the following called 'resv object', which serves as the container of the GPUVM's shared :c:type:`dma_resv`. This resv object can be a driver specific :c:type:`drm_gem_object`, such as the :c:type:`drm_gem_object` containing the root page table, but it can also be a 'dummy' object, which can be allocated with drm_gpuvm_resv_object_alloc().h](h)}(h:c:type:`drm_gem_objects`h]j)}(hj,h]hdrm_gem_objects}(hj,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:477: ./drivers/gpu/drm/drm_gpuvm.chK@hj,ubh5 which are private to a single VM can share a common }(hj,hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj -h]hdma_resv}(hj"-hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhj-hK@hj,ubh3 in order to improve locking efficiency (e.g. with }(hj,hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hjC-h]hdrm_exec}(hjE-hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjA-ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_execuh1hhj-hK@hj,ubh(). For this purpose drivers must pass a }(hj,hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjf-h]hdrm_gem_object}(hjh-hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjd-ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj-hK@hj,ubhw to drm_gpuvm_init(), in the following called ‘resv object’, which serves as the container of the GPUVM’s shared }(hj,hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj-h]hdma_resv}(hj-hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhj-hK@hj,ubh,. This resv object can be a driver specific }(hj,hhhNhNubh)}(h:c:type:`drm_gem_object`Kh]j)}(hj-h]hdrm_gem_object}(hj-hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj-hK@hj,ubh, such as the }(hj,hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj-h]hdrm_gem_object}(hj-hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj-hK@hj,ubh containing the root page table, but it can also be a ‘dummy’ object, which can be allocated with drm_gpuvm_resv_object_alloc().}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-hK@hj*hhubh)}(hIn order to connect a struct drm_gpuva its backing :c:type:`drm_gem_object` each :c:type:`drm_gem_object` maintains a list of :c:type:`drm_gpuvm_bo` structures, and each :c:type:`drm_gpuvm_bo` contains a list of :c:type:`drm_gpuva` structures.h](h3In order to connect a struct drm_gpuva its backing }(hj-hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj.h]hdrm_gem_object}(hj.hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:477: ./drivers/gpu/drm/drm_gpuvm.chKIhj-ubh each }(hj-hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj$.h]hdrm_gem_object}(hj&.hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj".ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj.hKIhj-ubh maintains a list of }(hj-hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjG.h]h drm_gpuvm_bo}(hjI.hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjE.ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhj.hKIhj-ubh structures, and each }(hj-hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjj.h]h drm_gpuvm_bo}(hjl.hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjh.ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhj.hKIhj-ubh contains a list of }(hj-hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj.h]h drm_gpuva}(hj.hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj.hKIhj-ubh structures.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj.hKIhj*hhubh)}(hXA :c:type:`drm_gpuvm_bo` is an abstraction that represents a combination of a :c:type:`drm_gpuvm` and a :c:type:`drm_gem_object`. Every such combination should be unique. This is ensured by the API through drm_gpuvm_bo_obtain() and drm_gpuvm_bo_obtain_prealloc() which first look into the corresponding :c:type:`drm_gem_object` list of :c:type:`drm_gpuvm_bos` for an existing instance of this particular combination. If not existent a new instance is created and linked to the :c:type:`drm_gem_object`.h](hA }(hj.hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj.h]h drm_gpuvm_bo}(hj.hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:477: ./drivers/gpu/drm/drm_gpuvm.chKMhj.ubh6 is an abstraction that represents a combination of a }(hj.hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj.h]h drm_gpuvm}(hj.hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj.hKMhj.ubh and a }(hj.hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj/h]hdrm_gem_object}(hj/hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj.hKMhj.ubh. Every such combination should be unique. This is ensured by the API through drm_gpuvm_bo_obtain() and drm_gpuvm_bo_obtain_prealloc() which first look into the corresponding }(hj.hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj(/h]hdrm_gem_object}(hj*/hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj&/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj.hKMhj.ubh list of }(hj.hhhNhNubh)}(h:c:type:`drm_gpuvm_bos`h]j)}(hjK/h]h drm_gpuvm_bos}(hjM/hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjI/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bosuh1hhj.hKMhj.ubhv for an existing instance of this particular combination. If not existent a new instance is created and linked to the }(hj.hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjn/h]hdrm_gem_object}(hjp/hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjl/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj.hKMhj.ubh.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj.hKMhj*hhubh)}(hXS:c:type:`drm_gpuvm_bo` structures, since unique for a given :c:type:`drm_gpuvm`, are also used as entry for the :c:type:`drm_gpuvm`'s lists of external and evicted objects. Those lists are maintained in order to accelerate locking of dma-resv locks and validation of evicted objects bound in a :c:type:`drm_gpuvm`. For instance, all :c:type:`drm_gem_object`'s :c:type:`dma_resv` of a given :c:type:`drm_gpuvm` can be locked by calling drm_gpuvm_exec_lock(). Once locked drivers can call drm_gpuvm_validate() in order to validate all evicted :c:type:`drm_gem_objects`. It is also possible to lock additional :c:type:`drm_gem_objects` by providing the corresponding parameters to drm_gpuvm_exec_lock() as well as open code the :c:type:`drm_exec` loop while making use of helper functions such as drm_gpuvm_prepare_range() or drm_gpuvm_prepare_objects().h](h)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj/h]h drm_gpuvm_bo}(hj/hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:477: ./drivers/gpu/drm/drm_gpuvm.chKUhj/ubh& structures, since unique for a given }(hj/hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj/h]h drm_gpuvm}(hj/hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj/hKUhj/ubh!, are also used as entry for the }(hj/hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj/h]h drm_gpuvm}(hj/hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj/hKUhj/ubh’s lists of external and evicted objects. Those lists are maintained in order to accelerate locking of dma-resv locks and validation of evicted objects bound in a }(hj/hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj0h]h drm_gpuvm}(hj0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj/hKUhj/ubh. For instance, all }(hj/hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj(0h]hdrm_gem_object}(hj*0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj&0ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj/hKUhj/ubh’s }(hj/hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjK0h]hdma_resv}(hjM0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjI0ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhj/hKUhj/ubh of a given }(hj/hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjn0h]h drm_gpuvm}(hjp0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjl0ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj/hKUhj/ubh can be locked by calling drm_gpuvm_exec_lock(). Once locked drivers can call drm_gpuvm_validate() in order to validate all evicted }(hj/hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hj0h]hdrm_gem_objects}(hj0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhj/hKUhj/ubh). It is also possible to lock additional }(hj/hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hj0h]hdrm_gem_objects}(hj0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhj/hKUhj/ubh] by providing the corresponding parameters to drm_gpuvm_exec_lock() as well as open code the }(hj/hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hj0h]hdrm_exec}(hj0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_execuh1hhj/hKUhj/ubhl loop while making use of helper functions such as drm_gpuvm_prepare_range() or drm_gpuvm_prepare_objects().}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/hKUhj*hhubh)}(hEvery bound :c:type:`drm_gem_object` is treated as external object when its :c:type:`dma_resv` structure is different than the :c:type:`drm_gpuvm`'s common :c:type:`dma_resv` structure.h](h Every bound }(hj0hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj1h]hdrm_gem_object}(hj 1hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:477: ./drivers/gpu/drm/drm_gpuvm.chKahj0ubh( is treated as external object when its }(hj0hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj,1h]hdma_resv}(hj.1hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj*1ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhj%1hKahj0ubh! structure is different than the }(hj0hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjO1h]h drm_gpuvm}(hjQ1hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjM1ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj%1hKahj0ubh ’s common }(hj0hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjr1h]hdma_resv}(hjt1hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjp1ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhj%1hKahj0ubh structure.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%1hKahj*hhubeh}(h]id3ah ]h"]h$]jah&]uh1hhj*hhhhhMjKubh)}(hhh](h)}(hSplit and Mergeh]hSplit and Merge}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hhhhhMubh)}(hBesides its capability to manage and represent a GPU VA space, the GPU VA manager also provides functions to let the :c:type:`drm_gpuvm` calculate a sequence of operations to satisfy a given map or unmap request.h](huBesides its capability to manage and represent a GPU VA space, the GPU VA manager also provides functions to let the }(hj1hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj1h]h drm_gpuvm}(hj1hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhhj1ubhL calculate a sequence of operations to satisfy a given map or unmap request.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1hKhhj1hhubh)}(hX8Therefore the DRM GPU VA manager provides an algorithm implementing splitting and merging of existent GPU VA mappings with the ones that are requested to be mapped or unmapped. This feature is required by the Vulkan API to implement Vulkan 'Sparse Memory Bindings' - drivers UAPIs often refer to this as VM BIND.h]hX<Therefore the DRM GPU VA manager provides an algorithm implementing splitting and merging of existent GPU VA mappings with the ones that are requested to be mapped or unmapped. This feature is required by the Vulkan API to implement Vulkan ‘Sparse Memory Bindings’ - drivers UAPIs often refer to this as VM BIND.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKlhj1hhubh)}(hX6Drivers can call drm_gpuvm_sm_map() to receive a sequence of callbacks containing map, unmap and remap operations for a given newly requested mapping. The sequence of callbacks represents the set of operations to execute in order to integrate the new mapping cleanly into the current state of the GPU VA space.h]hX6Drivers can call drm_gpuvm_sm_map() to receive a sequence of callbacks containing map, unmap and remap operations for a given newly requested mapping. The sequence of callbacks represents the set of operations to execute in order to integrate the new mapping cleanly into the current state of the GPU VA space.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKrhj1hhubh)}(hXDepending on how the new GPU VA mapping intersects with the existent mappings of the GPU VA space the :c:type:`drm_gpuvm_ops` callbacks contain an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The caller might receive no callback at all if no operation is required, e.g. if the requested mapping already exists in the exact same way.h](hfDepending on how the new GPU VA mapping intersects with the existent mappings of the GPU VA space the }(hj2hhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hj 2h]h drm_gpuvm_ops}(hj 2hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj 2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKxhj2ubhX callbacks contain an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The caller might receive no callback at all if no operation is required, e.g. if the requested mapping already exists in the exact same way.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj(2hKxhj1hhubh)}(hWThe single map operation represents the original map operation requested by the caller.h]hWThe single map operation represents the original map operation requested by the caller.}(hj32hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chK~hj1hhubh)}(hX:c:type:`drm_gpuva_op_unmap` contains a 'keep' field, which indicates whether the :c:type:`drm_gpuva` to unmap is physically contiguous with the original mapping request. Optionally, if 'keep' is set, drivers may keep the actual page table entries for this :c:type:`drm_gpuva`, adding the missing page table entries only and update the :c:type:`drm_gpuvm`'s view of things accordingly.h](h)}(h:c:type:`drm_gpuva_op_unmap`h]j)}(hjH2h]hdrm_gpuva_op_unmap}(hjJ2hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjF2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_op_unmapuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhjB2ubh: contains a ‘keep’ field, which indicates whether the }(hjB2hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjl2h]h drm_gpuva}(hjn2hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjj2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhje2hKhjB2ubh to unmap is physically contiguous with the original mapping request. Optionally, if ‘keep’ is set, drivers may keep the actual page table entries for this }(hjB2hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj2h]h drm_gpuva}(hj2hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhje2hKhjB2ubh<, adding the missing page table entries only and update the }(hjB2hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj2h]h drm_gpuvm}(hj2hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhje2hKhjB2ubh ’s view of things accordingly.}(hjB2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhje2hKhj1hhubh)}(hXDrivers may do the same optimization, namely delta page table updates, also for remap operations. This is possible since :c:type:`drm_gpuva_op_remap` consists of one unmap operation and one or two map operations, such that drivers can derive the page table update delta accordingly.h](hyDrivers may do the same optimization, namely delta page table updates, also for remap operations. This is possible since }(hj2hhhNhNubh)}(h:c:type:`drm_gpuva_op_remap`h]j)}(hj2h]hdrm_gpuva_op_remap}(hj2hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_op_remapuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj2ubh consists of one unmap operation and one or two map operations, such that drivers can derive the page table update delta accordingly.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3hKhj1hhubh)}(hNote that there can't be more than two existent mappings to split up, one at the beginning and one at the end of the new mapping, hence there is a maximum of two remap operations.h]hNote that there can’t be more than two existent mappings to split up, one at the beginning and one at the end of the new mapping, hence there is a maximum of two remap operations.}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj1hhubh)}(hXAnalogous to drm_gpuvm_sm_map() drm_gpuvm_sm_unmap() uses :c:type:`drm_gpuvm_ops` to call back into the driver in order to unmap a range of GPU VA space. The logic behind this function is way simpler though: For all existent mappings enclosed by the given range unmap operations are created. For mappings which are only partically located within the given range, remap operations are created such that those mappings are split up and re-mapped partically.h](h:Analogous to drm_gpuvm_sm_map() drm_gpuvm_sm_unmap() uses }(hj3hhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hj$3h]h drm_gpuvm_ops}(hj&3hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj"3ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj3ubhXv to call back into the driver in order to unmap a range of GPU VA space. The logic behind this function is way simpler though: For all existent mappings enclosed by the given range unmap operations are created. For mappings which are only partically located within the given range, remap operations are created such that those mappings are split up and re-mapped partically.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjA3hKhj1hhubh)}(hXAs an alternative to drm_gpuvm_sm_map() and drm_gpuvm_sm_unmap(), drm_gpuvm_sm_map_ops_create() and drm_gpuvm_sm_unmap_ops_create() can be used to directly obtain an instance of struct drm_gpuva_ops containing a list of :c:type:`drm_gpuva_op`, which can be iterated with drm_gpuva_for_each_op(). This list contains the :c:type:`drm_gpuva_ops` analogous to the callbacks one would receive when calling drm_gpuvm_sm_map() or drm_gpuvm_sm_unmap(). While this way requires more memory (to allocate the :c:type:`drm_gpuva_ops`), it provides drivers a way to iterate the :c:type:`drm_gpuva_op` multiple times, e.g. once in a context where memory allocations are possible (e.g. to allocate GPU page tables) and once in the dma-fence signalling critical path.h](hAs an alternative to drm_gpuvm_sm_map() and drm_gpuvm_sm_unmap(), drm_gpuvm_sm_map_ops_create() and drm_gpuvm_sm_unmap_ops_create() can be used to directly obtain an instance of struct drm_gpuva_ops containing a list of }(hjL3hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjV3h]h drm_gpuva_op}(hjX3hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjT3ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhjL3ubhM, which can be iterated with drm_gpuva_for_each_op(). This list contains the }(hjL3hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjz3h]h drm_gpuva_ops}(hj|3hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjx3ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhjs3hKhjL3ubh analogous to the callbacks one would receive when calling drm_gpuvm_sm_map() or drm_gpuvm_sm_unmap(). While this way requires more memory (to allocate the }(hjL3hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj3h]h drm_gpuva_ops}(hj3hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhjs3hKhjL3ubh,), it provides drivers a way to iterate the }(hjL3hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hj3h]h drm_gpuva_op}(hj3hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhjs3hKhjL3ubh multiple times, e.g. once in a context where memory allocations are possible (e.g. to allocate GPU page tables) and once in the dma-fence signalling critical path.}(hjL3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjs3hKhj1hhubh)}(hXTo update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert() and drm_gpuva_remove() may be used. These functions can safely be used from :c:type:`drm_gpuvm_ops` callbacks originating from drm_gpuvm_sm_map() or drm_gpuvm_sm_unmap(). However, it might be more convenient to use the provided helper functions drm_gpuva_map(), drm_gpuva_remap() and drm_gpuva_unmap() instead.h](hTo update the }(hj3hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj3h]h drm_gpuvm}(hj3hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj3ubh}’s view of the GPU VA space drm_gpuva_insert() and drm_gpuva_remove() may be used. These functions can safely be used from }(hj3hhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hj4h]h drm_gpuvm_ops}(hj4hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_opsuh1hhj4hKhj3ubh callbacks originating from drm_gpuvm_sm_map() or drm_gpuvm_sm_unmap(). However, it might be more convenient to use the provided helper functions drm_gpuva_map(), drm_gpuva_remap() and drm_gpuva_unmap() instead.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4hKhj1hhubh)}(hThe following diagram depicts the basic relationships of existent GPU VA mappings, a newly requested mapping and the resulting mappings as implemented by drm_gpuvm_sm_map() - it doesn't cover any arbitrary combinations of these.h]hThe following diagram depicts the basic relationships of existent GPU VA mappings, a newly requested mapping and the resulting mappings as implemented by drm_gpuvm_sm_map() - it doesn’t cover any arbitrary combinations of these.}(hj<4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj1hhubhenumerated_list)}(hhh](j{)}(hX Requested mapping is identical. Replace it, but indicate the backing PTEs could be kept. :: 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=n) 0 a 1 new: |-----------| (bo_offset=n) h](h)}(hXRequested mapping is identical. Replace it, but indicate the backing PTEs could be kept.h]hXRequested mapping is identical. Replace it, but indicate the backing PTEs could be kept.}(hjT4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhjP4ubjT)}(h 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=n) 0 a 1 new: |-----------| (bo_offset=n)h]h 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=n) 0 a 1 new: |-----------| (bo_offset=n)}hjc4sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhjP4ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hXRequested mapping is identical, except for the BO offset, hence replace the mapping. :: 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=m) 0 a 1 new: |-----------| (bo_offset=m) h](h)}(hTRequested mapping is identical, except for the BO offset, hence replace the mapping.h]hTRequested mapping is identical, except for the BO offset, hence replace the mapping.}(hj|4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhjx4ubjT)}(h 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=m) 0 a 1 new: |-----------| (bo_offset=m)h]h 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=m) 0 a 1 new: |-----------| (bo_offset=m)}hj4sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhjx4ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hXRequested mapping is identical, except for the backing BO, hence replace the mapping. :: 0 a 1 old: |-----------| (bo_offset=n) 0 b 1 req: |-----------| (bo_offset=n) 0 b 1 new: |-----------| (bo_offset=n) h](h)}(hURequested mapping is identical, except for the backing BO, hence replace the mapping.h]hURequested mapping is identical, except for the backing BO, hence replace the mapping.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj4ubjT)}(h 0 a 1 old: |-----------| (bo_offset=n) 0 b 1 req: |-----------| (bo_offset=n) 0 b 1 new: |-----------| (bo_offset=n)h]h 0 a 1 old: |-----------| (bo_offset=n) 0 b 1 req: |-----------| (bo_offset=n) 0 b 1 new: |-----------| (bo_offset=n)}hj4sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj4ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hXExistent mapping is a left aligned subset of the requested one, hence replace the existent one. :: 0 a 1 old: |-----| (bo_offset=n) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n) .. note:: We expect to see the same result for a request with a different BO and/or non-contiguous BO offset. h](h)}(h_Existent mapping is a left aligned subset of the requested one, hence replace the existent one.h]h_Existent mapping is a left aligned subset of the requested one, hence replace the existent one.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj4ubjT)}(h 0 a 1 old: |-----| (bo_offset=n) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n)h]h 0 a 1 old: |-----| (bo_offset=n) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n)}hj4sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj4ubhnote)}(hcWe expect to see the same result for a request with a different BO and/or non-contiguous BO offset.h]h)}(hcWe expect to see the same result for a request with a different BO and/or non-contiguous BO offset.h]hcWe expect to see the same result for a request with a different BO and/or non-contiguous BO offset.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj4ubah}(h]h ]h"]h$]h&]uh1j4hj4ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hXRequested mapping's range is a left aligned subset of the existent one, but backed by a different BO. Hence, map the requested mapping and split the existent one adjusting its BO offset. :: 0 a 2 old: |-----------| (bo_offset=n) 0 b 1 req: |-----| (bo_offset=n) 0 b 1 a' 2 new: |-----|-----| (b.bo_offset=n, a.bo_offset=n+1) .. note:: We expect to see the same result for a request with a different BO and/or non-contiguous BO offset. h](h)}(hRequested mapping's range is a left aligned subset of the existent one, but backed by a different BO. Hence, map the requested mapping and split the existent one adjusting its BO offset.h]hRequested mapping’s range is a left aligned subset of the existent one, but backed by a different BO. Hence, map the requested mapping and split the existent one adjusting its BO offset.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj 5ubjT)}(h 0 a 2 old: |-----------| (bo_offset=n) 0 b 1 req: |-----| (bo_offset=n) 0 b 1 a' 2 new: |-----|-----| (b.bo_offset=n, a.bo_offset=n+1)h]h 0 a 2 old: |-----------| (bo_offset=n) 0 b 1 req: |-----| (bo_offset=n) 0 b 1 a' 2 new: |-----|-----| (b.bo_offset=n, a.bo_offset=n+1)}hj5sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj 5ubj4)}(hcWe expect to see the same result for a request with a different BO and/or non-contiguous BO offset.h]h)}(hcWe expect to see the same result for a request with a different BO and/or non-contiguous BO offset.h]hcWe expect to see the same result for a request with a different BO and/or non-contiguous BO offset.}(hj15hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chKhj-5ubah}(h]h ]h"]h$]h&]uh1j4hj 5ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hX6Existent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept. :: 0 a 2 old: |-----------| (bo_offset=n) 0 a 1 req: |-----| (bo_offset=n) 0 a 1 a' 2 new: |-----|-----| (a.bo_offset=n, a'.bo_offset=n+1) h](h)}(hwExistent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept.h]hwExistent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept.}(hjP5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMhjL5ubjT)}(h 0 a 2 old: |-----------| (bo_offset=n) 0 a 1 req: |-----| (bo_offset=n) 0 a 1 a' 2 new: |-----|-----| (a.bo_offset=n, a'.bo_offset=n+1)h]h 0 a 2 old: |-----------| (bo_offset=n) 0 a 1 req: |-----| (bo_offset=n) 0 a 1 a' 2 new: |-----|-----| (a.bo_offset=n, a'.bo_offset=n+1)}hj_5sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMhjL5ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hXRequested mapping's range is a right aligned subset of the existent one, but backed by a different BO. Hence, map the requested mapping and split the existent one, without adjusting the BO offset. :: 0 a 2 old: |-----------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 new: |-----|-----| (a.bo_offset=n,b.bo_offset=m) h](h)}(hRequested mapping's range is a right aligned subset of the existent one, but backed by a different BO. Hence, map the requested mapping and split the existent one, without adjusting the BO offset.h]hRequested mapping’s range is a right aligned subset of the existent one, but backed by a different BO. Hence, map the requested mapping and split the existent one, without adjusting the BO offset.}(hjx5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMhjt5ubjT)}(h 0 a 2 old: |-----------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 new: |-----|-----| (a.bo_offset=n,b.bo_offset=m)h]h 0 a 2 old: |-----------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 new: |-----|-----| (a.bo_offset=n,b.bo_offset=m)}hj5sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMhjt5ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hX?Existent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept. :: 0 a 2 old: |-----------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 new: |-----|-----| (a'.bo_offset=n, a.bo_offset=n+1) h](h)}(hwExistent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept.h]hwExistent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chM hj5ubjT)}(h 0 a 2 old: |-----------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 new: |-----|-----| (a'.bo_offset=n, a.bo_offset=n+1)h]h 0 a 2 old: |-----------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 new: |-----|-----| (a'.bo_offset=n, a.bo_offset=n+1)}hj5sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chM%hj5ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hXExistent mapping is overlapped at the end by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existent one, without adjusting the BO offset. :: 0 a 2 old: |-----------| (bo_offset=n) 1 b 3 req: |-----------| (bo_offset=m) 0 a 1 b 3 new: |-----|-----------| (a.bo_offset=n,b.bo_offset=m) h](h)}(hExistent mapping is overlapped at the end by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existent one, without adjusting the BO offset.h]hExistent mapping is overlapped at the end by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existent one, without adjusting the BO offset.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chM/hj5ubjT)}(h 0 a 2 old: |-----------| (bo_offset=n) 1 b 3 req: |-----------| (bo_offset=m) 0 a 1 b 3 new: |-----|-----------| (a.bo_offset=n,b.bo_offset=m)h]h 0 a 2 old: |-----------| (bo_offset=n) 1 b 3 req: |-----------| (bo_offset=m) 0 a 1 b 3 new: |-----|-----------| (a.bo_offset=n,b.bo_offset=m)}hj5sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chM5hj5ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hXExistent mapping is overlapped by the requested mapping, both having the same backing BO with a contiguous offset. Indicate the backing PTEs of the old mapping could be kept. :: 0 a 2 old: |-----------| (bo_offset=n) 1 a 3 req: |-----------| (bo_offset=n+1) 0 a' 1 a 3 new: |-----|-----------| (a'.bo_offset=n, a.bo_offset=n+1) h](h)}(hExistent mapping is overlapped by the requested mapping, both having the same backing BO with a contiguous offset. Indicate the backing PTEs of the old mapping could be kept.h]hExistent mapping is overlapped by the requested mapping, both having the same backing BO with a contiguous offset. Indicate the backing PTEs of the old mapping could be kept.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chM?hj5ubjT)}(h 0 a 2 old: |-----------| (bo_offset=n) 1 a 3 req: |-----------| (bo_offset=n+1) 0 a' 1 a 3 new: |-----|-----------| (a'.bo_offset=n, a.bo_offset=n+1)h]h 0 a 2 old: |-----------| (bo_offset=n) 1 a 3 req: |-----------| (bo_offset=n+1) 0 a' 1 a 3 new: |-----|-----------| (a'.bo_offset=n, a.bo_offset=n+1)}hj5sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMEhj5ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hXRequested mapping's range is a centered subset of the existent one having a different backing BO. Hence, map the requested mapping and split up the existent one in two mappings, adjusting the BO offset of the right one accordingly. :: 0 a 3 old: |-----------------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 a' 3 new: |-----|-----|-----| (a.bo_offset=n,b.bo_offset=m,a'.bo_offset=n+2) h](h)}(hRequested mapping's range is a centered subset of the existent one having a different backing BO. Hence, map the requested mapping and split up the existent one in two mappings, adjusting the BO offset of the right one accordingly.h]hRequested mapping’s range is a centered subset of the existent one having a different backing BO. Hence, map the requested mapping and split up the existent one in two mappings, adjusting the BO offset of the right one accordingly.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMOhj6ubjT)}(h 0 a 3 old: |-----------------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 a' 3 new: |-----|-----|-----| (a.bo_offset=n,b.bo_offset=m,a'.bo_offset=n+2)h]h 0 a 3 old: |-----------------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 a' 3 new: |-----|-----|-----| (a.bo_offset=n,b.bo_offset=m,a'.bo_offset=n+2)}hj'6sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMVhj6ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hXtRequested mapping is a contiguous subset of the existent one. Split it up, but indicate that the backing PTEs could be kept. :: 0 a 3 old: |-----------------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 a'' 3 old: |-----|-----|-----| (a'.bo_offset=n, a.bo_offset=n+1, a''.bo_offset=n+2) h](h)}(h|Requested mapping is a contiguous subset of the existent one. Split it up, but indicate that the backing PTEs could be kept.h]h|Requested mapping is a contiguous subset of the existent one. Split it up, but indicate that the backing PTEs could be kept.}(hj@6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chM`hj<6ubjT)}(h 0 a 3 old: |-----------------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 a'' 3 old: |-----|-----|-----| (a'.bo_offset=n, a.bo_offset=n+1, a''.bo_offset=n+2)h]h 0 a 3 old: |-----------------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 a'' 3 old: |-----|-----|-----| (a'.bo_offset=n, a.bo_offset=n+1, a''.bo_offset=n+2)}hjO6sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMehj<6ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hXExistent mapping is a right aligned subset of the requested one, hence replace the existent one. :: 1 a 2 old: |-----| (bo_offset=n+1) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n) .. note:: We expect to see the same result for a request with a different bo and/or non-contiguous bo_offset. h](h)}(h`Existent mapping is a right aligned subset of the requested one, hence replace the existent one.h]h`Existent mapping is a right aligned subset of the requested one, hence replace the existent one.}(hjh6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMohjd6ubjT)}(h 1 a 2 old: |-----| (bo_offset=n+1) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n)h]h 1 a 2 old: |-----| (bo_offset=n+1) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n)}hjw6sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMthjd6ubj4)}(hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.h]h)}(hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.h]hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chM~hj6ubah}(h]h ]h"]h$]h&]uh1j4hjd6ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hXExistent mapping is a centered subset of the requested one, hence replace the existent one. :: 1 a 2 old: |-----| (bo_offset=n+1) 0 a 3 req: |----------------| (bo_offset=n) 0 a 3 new: |----------------| (bo_offset=n) .. note:: We expect to see the same result for a request with a different bo and/or non-contiguous bo_offset. h](h)}(h[Existent mapping is a centered subset of the requested one, hence replace the existent one.h]h[Existent mapping is a centered subset of the requested one, hence replace the existent one.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMhj6ubjT)}(h 1 a 2 old: |-----| (bo_offset=n+1) 0 a 3 req: |----------------| (bo_offset=n) 0 a 3 new: |----------------| (bo_offset=n)h]h 1 a 2 old: |-----| (bo_offset=n+1) 0 a 3 req: |----------------| (bo_offset=n) 0 a 3 new: |----------------| (bo_offset=n)}hj6sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMhj6ubj4)}(hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.h]h)}(hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.h]hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMhj6ubah}(h]h ]h"]h$]h&]uh1j4hj6ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubj{)}(hXExistent mappings is overlapped at the beginning by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existent one, adjusting its BO offset accordingly. :: 1 a 3 old: |-----------| (bo_offset=n) 0 b 2 req: |-----------| (bo_offset=m) 0 b 2 a' 3 new: |-----------|-----| (b.bo_offset=m,a.bo_offset=n+2) h](h)}(hExistent mappings is overlapped at the beginning by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existent one, adjusting its BO offset accordingly.h]hExistent mappings is overlapped at the beginning by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existent one, adjusting its BO offset accordingly.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMhj6ubjT)}(h 1 a 3 old: |-----------| (bo_offset=n) 0 b 2 req: |-----------| (bo_offset=m) 0 b 2 a' 3 new: |-----------|-----| (b.bo_offset=m,a.bo_offset=n+2)h]h 1 a 3 old: |-----------| (bo_offset=n) 0 b 2 req: |-----------| (bo_offset=m) 0 b 2 a' 3 new: |-----------|-----| (b.bo_offset=m,a.bo_offset=n+2)}hj6sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:483: ./drivers/gpu/drm/drm_gpuvm.chMhj6ubeh}(h]h ]h"]h$]h&]uh1j {hjM4ubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffixjuh1jK4hj1hhhNhNubj)}(h.. _drm_gpuvm_locking:h]h}(h]h ]h"]h$]h&]jdrm-gpuvm-lockinguh1jhMhj1hhhhubeh}(h]split-and-mergeah ]h"]split and mergeah$]h&]uh1hhj*hhhhhMubh)}(hhh](h)}(hLockingh]hLocking}(hj.7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+7hhhhhMubh)}(hXeIn terms of managing :c:type:`drm_gpuva` entries DRM GPUVM does not take care of locking itself, it is the drivers responsibility to take care about locking. Drivers might want to protect the following operations: inserting, removing and iterating :c:type:`drm_gpuva` objects as well as generating all kinds of operations, such as split / merge or prefetch.h](hIn terms of managing }(hj<7hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjF7h]h drm_gpuva}(hjH7hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjD7ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:491: ./drivers/gpu/drm/drm_gpuvm.chMhj<7ubh entries DRM GPUVM does not take care of locking itself, it is the drivers responsibility to take care about locking. Drivers might want to protect the following operations: inserting, removing and iterating }(hj<7hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjj7h]h drm_gpuva}(hjl7hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjh7ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjc7hMhj<7ubhZ objects as well as generating all kinds of operations, such as split / merge or prefetch.}(hj<7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjc7hMhj+7hhubh)}(hX\DRM GPUVM also does not take care of the locking of the backing :c:type:`drm_gem_object` buffers GPU VA lists and :c:type:`drm_gpuvm_bo` abstractions by itself; drivers are responsible to enforce mutual exclusion using either the GEMs dma_resv lock or alternatively a driver specific external lock. For the latter see also drm_gem_gpuva_set_lock().h](h@DRM GPUVM also does not take care of the locking of the backing }(hj7hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj7h]hdrm_gem_object}(hj7hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:491: ./drivers/gpu/drm/drm_gpuvm.chMhj7ubh buffers GPU VA lists and }(hj7hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj7h]h drm_gpuvm_bo}(hj7hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhj7hMhj7ubh abstractions by itself; drivers are responsible to enforce mutual exclusion using either the GEMs dma_resv lock or alternatively a driver specific external lock. For the latter see also drm_gem_gpuva_set_lock().}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj7hMhj+7hhubh)}(hXHowever, DRM GPUVM contains lockdep checks to ensure callers of its API hold the corresponding lock whenever the :c:type:`drm_gem_objects` GPU VA list is accessed by functions such as drm_gpuva_link() or drm_gpuva_unlink(), but also drm_gpuvm_bo_obtain() and drm_gpuvm_bo_put().h](hqHowever, DRM GPUVM contains lockdep checks to ensure callers of its API hold the corresponding lock whenever the }(hj7hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hj7h]hdrm_gem_objects}(hj7hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:491: ./drivers/gpu/drm/drm_gpuvm.chMhj7ubh GPU VA list is accessed by functions such as drm_gpuva_link() or drm_gpuva_unlink(), but also drm_gpuvm_bo_obtain() and drm_gpuvm_bo_put().}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj 8hMhj+7hhubh)}(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 }(hj8hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj"8h]h drm_gpuvm_bo}(hj$8hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj 8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:491: ./drivers/gpu/drm/drm_gpuvm.chMhj8ubh the }(hj8hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjF8h]h drm_gpuvm_bo}(hjH8hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjD8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhj?8hMhj8ubh is attached / removed from the }(hj8hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hji8h]hdrm_gem_objects}(hjk8hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjg8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhj?8hMhj8ubhD gpuva list. Subsequent calls to drm_gpuvm_bo_obtain() for the same }(hj8hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj8h]h drm_gpuvm}(hj8hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj?8hMhj8ubh and }(hj8hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj8h]hdrm_gem_object}(hj8hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj?8hMhj8ubh@ must be able to observe previous creations and destructions of }(hj8hhhNhNubh)}(h:c:type:`drm_gpuvm_bos`h]j)}(hj8h]h drm_gpuvm_bos}(hj8hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bosuh1hhj?8hMhj8ubh# in order to keep instances unique.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj?8hMhj+7hhubh)}(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 }(hj8hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj9h]h drm_gpuvm}(hj9hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:491: ./drivers/gpu/drm/drm_gpuvm.chMhj8ubh’s lists for keeping track of external and evicted objects are protected against concurrent insertion / removal and iteration internally.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj 9hMhj+7hhubh)}(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+9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:491: ./drivers/gpu/drm/drm_gpuvm.chMhj+7hhubh)}(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:9hhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j)}(hjD9h]hDRM_GPUVM_RESV_PROTECTED}(hjF9hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjB9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_GPUVM_RESV_PROTECTEDuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:491: ./drivers/gpu/drm/drm_gpuvm.chMhj:9ubh) flag to indicate that the corresponding }(hj:9hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjh9h]hdma_resv}(hjj9hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjf9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhja9hMhj:9ubh2 locks are held in order to protect the lists. If }(hj:9hhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j)}(hj9h]hDRM_GPUVM_RESV_PROTECTED}(hj9hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_GPUVM_RESV_PROTECTEDuh1hhja9hMhj:9ubh 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:9hhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj9h]hdma_resv}(hj9hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhja9hMhj:9ubh1 locks and hence do not require internal locking.}(hj:9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhja9hMhj+7hhubeh}(h](lockingj"7eh ]h"](lockingdrm_gpuvm_lockingeh$]h&]uh1hhj*hhhhhMj}j9j7sj}j"7j7subh)}(hhh](h)}(hExamplesh]hExamples}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hhhhhMubh)}(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 }(hj9hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hj9h]h drm_gpuva_op}(hj9hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:497: ./drivers/gpu/drm/drm_gpuvm.chMhj9ubhN in order to satisfy a given map or unmap request and how to make use of them.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:hMhj9hhubh)}(hXFThe below code is strictly limited to illustrate the generic usage pattern. To maintain simplicitly, it doesn't make use of any abstractions for common code, different (asyncronous) 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 simplicitly, it doesn’t make use of any abstractions for common code, different (asyncronous) 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:497: ./drivers/gpu/drm/drm_gpuvm.chMhj9hhubjL4)}(hhh](j{)}(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 embedd 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_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, addr, range, obj, offset); 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 }(hj9:hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjC:h]h drm_gpuva_op}(hjE:hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjA:ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:497: ./drivers/gpu/drm/drm_gpuvm.chMhj9:ubh to create a new mapping:}(hj9:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`:hMhj5:ubjT)}(hX= // Allocates a new &drm_gpuva. struct drm_gpuva * driver_gpuva_alloc(void); // Typically drivers would embedd 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_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, addr, range, obj, offset); 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 embedd 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_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, addr, range, obj, offset); 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; }}hjk:sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:497: ./drivers/gpu/drm/drm_gpuvm.chMhj5:ubeh}(h]h ]h"]h$]h&]uh1j {hj2:ubj{)}(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 embedd 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 ](jjc-typeeh"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:497: ./drivers/gpu/drm/drm_gpuvm.chM6hj:ubh to create a new mapping:}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:hM6hj:ubjT)}(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 embedd 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 embedd 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&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:497: ./drivers/gpu/drm/drm_gpuvm.chM8hj:ubeh}(h]h ]h"]h$]h&]uh1j {hj2:ubeh}(h]h ]h"]h$]h&]j7j7j7hj7juh1jK4hj9hhhNhNubeh}(h]examplesah ]h"]examplesah$]h&]uh1hhj*hhhhhMubh)}(hhh](h)}(hDRM GPUVM Function Referencesh]hDRM GPUVM Function References}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hhhhhMubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_flags (C enum)c.drm_gpuva_flagshNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_flagsh]j>)}(henum drm_gpuva_flagsh](jD)}(hjGh]henum}(hj;hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj:hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKubjV)}(h h]h }(hj;hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:hhhj;hKubjg)}(hdrm_gpuva_flagsh]jm)}(hj:h]hdrm_gpuva_flags}(hj#;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhj;hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj:hhhj;hKubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1j7hj;hKhj:hhubj)}(hhh]h)}(hflags for struct drm_gpuvah]hflags for struct drm_gpuva}(hjE;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhK*hjB;hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj;hKubeh}(h]h ](jenumeh"]h$]h&]jjjj];jj];jjjuh1j2hhhj: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)}(hjg;h]h Constants}(hji;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje;ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhK.hja;ubj)}(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)}(hj;h]hDRM_GPUVA_INVALIDATED}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhK1hj;ubj )}(hhh]h)}(hJFlag indicating that the :c:type:`drm_gpuva`'s backing GEM is invalidated.h](hFlag indicating that the }(hj;hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj;h]h drm_gpuva}(hj;hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj;hK1hj;ubh ’s backing GEM is invalidated.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;hK1hj;ubah}(h]h ]h"]h$]h&]uh1j hj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hK1hj};ubj)}(hW``DRM_GPUVA_SPARSE`` Flag indicating that the :c:type:`drm_gpuva` is a sparse mapping. h](j)}(h``DRM_GPUVA_SPARSE``h]j)}(hj;h]hDRM_GPUVA_SPARSE}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhK4hj;ubj )}(hhh]h)}(hAFlag indicating that the :c:type:`drm_gpuva` is a sparse mapping.h](hFlag indicating that the }(hj;hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj<h]h drm_gpuva}(hj<hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj;hK4hj;ubh is a sparse mapping.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;hK4hj;ubah}(h]h ]h"]h$]h&]uh1j hj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hK4hj};ubj)}(h(``DRM_GPUVA_USERBITS`` user defined bitsh](j)}(h``DRM_GPUVA_USERBITS``h]j)}(hj><h]hDRM_GPUVA_USERBITS}(hj@<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<<ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhK6hj8<ubj )}(hhh]h)}(huser defined bitsh]huser defined bits}(hjW<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhK7hjT<ubah}(h]h ]h"]h$]h&]uh1j hj8<ubeh}(h]h ]h"]h$]h&]uh1jhjS<hK6hj};ubeh}(h]h ]h"]h$]h&]uh1jhja;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva (C struct) c.drm_gpuvahNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h drm_gpuvah]j>)}(hstruct drm_gpuvah](jD)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj<hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhK``vm`` the :c:type:`drm_gpuvm` this object is associated with h](j)}(h``vm``h]j)}(hjG=h]hvm}(hjI=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE=ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKLhjA=ubj )}(hhh]h)}(h6the :c:type:`drm_gpuvm` this object is associated withh](hthe }(hj`=hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjj=h]h drm_gpuvm}(hjl=hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjh=ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj\=hKLhj`=ubh this object is associated with}(hj`=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\=hKLhj]=ubah}(h]h ]h"]h$]h&]uh1j hjA=ubeh}(h]h ]h"]h$]h&]uh1jhj\=hKLhj>=ubj)}(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)}(hj=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:503: ./include/drm/drm_gpuvm.hhKRhj=ubj )}(hhh]h)}(hNthe :c:type:`drm_gpuvm_bo` abstraction for the mapped :c:type:`drm_gem_object`h](hthe }(hj=hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj=h]h drm_gpuvm_bo}(hj=hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKQhj=ubh abstraction for the mapped }(hj=hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj=h]hdrm_gem_object}(hj=hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj=hKQhj=ubeh}(h]h ]h"]h$]h&]uh1hhj=hKQhj=ubah}(h]h ]h"]h$]h&]uh1j hj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hKRhj>=ubj)}(h9``flags`` the :c:type:`drm_gpuva_flags` for this mapping h](j)}(h ``flags``h]j)}(hj>h]hflags}(hj!>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKWhj>ubj )}(hhh]h)}(h.the :c:type:`drm_gpuva_flags` for this mappingh](hthe }(hj8>hhhNhNubh)}(h:c:type:`drm_gpuva_flags`h]j)}(hjB>h]hdrm_gpuva_flags}(hjD>hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj@>ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_flagsuh1hhj4>hKWhj8>ubh for this mapping}(hj8>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4>hKWhj5>ubah}(h]h ]h"]h$]h&]uh1j hj>ubeh}(h]h ]h"]h$]h&]uh1jhj4>hKWhj>=ubj)}(hM``va`` structure containing the address and range of the :c:type:`drm_gpuva` h](j)}(h``va``h]j)}(hj{>h]hva}(hj}>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy>ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhK\hju>ubj )}(hhh]h)}(hEstructure containing the address and range of the :c:type:`drm_gpuva`h](h2structure containing the address and range of the }(hj>hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj>h]h drm_gpuva}(hj>hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj>hK\hj>ubeh}(h]h ]h"]h$]h&]uh1hhj>hK\hj>ubah}(h]h ]h"]h$]h&]uh1j hju>ubeh}(h]h ]h"]h$]h&]uh1jhj>hK\hj>=ubj)}(h``va.addr`` the start address 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:503: ./include/drm/drm_gpuvm.hhK`hj>ubj )}(hhh]h)}(hthe start addressh]hthe start address}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hK`hj>ubah}(h]h ]h"]h$]h&]uh1j hj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hK`hj>=ubj)}(hJ``gem`` structure containing the :c:type:`drm_gem_object` and it's offset h](j)}(h``gem``h]j)}(hj ?h]hgem}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ?ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKkhj?ubj )}(hhh]h)}(hAstructure containing the :c:type:`drm_gem_object` and it's offseth](hstructure containing the }(hj%?hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj/?h]hdrm_gem_object}(hj1?hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj-?ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj!?hKkhj%?ubh and it’s offset}(hj%?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!?hKkhj"?ubah}(h]h ]h"]h$]h&]uh1j hj?ubeh}(h]h ]h"]h$]h&]uh1jhj!?hKkhj>=ubj)}(h>``gem.offset`` the offset within the :c:type:`drm_gem_object` h](j)}(h``gem.offset``h]j)}(hjh?h]h gem.offset}(hjj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf?ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKohjb?ubj )}(hhh]h)}(h.the offset within the :c:type:`drm_gem_object`h](hthe offset within the }(hj?hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj?h]hdrm_gem_object}(hj?hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj}?hKohj?ubeh}(h]h ]h"]h$]h&]uh1hhj}?hKohj~?ubah}(h]h ]h"]h$]h&]uh1j hjb?ubeh}(h]h ]h"]h$]h&]uh1jhj}?hKohj>=ubj)}(h0``gem.obj`` the mapped :c:type:`drm_gem_object` h](j)}(h ``gem.obj``h]j)}(hj?h]hgem.obj}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKthj?ubj )}(hhh]h)}(h#the mapped :c:type:`drm_gem_object`h](h the mapped }(hj?hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj?h]hdrm_gem_object}(hj?hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj?hKthj?ubeh}(h]h ]h"]h$]h&]uh1hhj?hKthj?ubah}(h]h ]h"]h$]h&]uh1j hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hKthj>=ubj)}(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)}(hj@h]h gem.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:503: ./include/drm/drm_gpuvm.hhKyhj@ubj )}(hhh]h)}(hIthe :c:type:`list_head` to attach this object to a :c:type:`drm_gpuvm_bo`h](hthe }(hj1@hhhNhNubh)}(h:c:type:`list_head`h]j)}(hj;@h]h list_head}(hj=@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj9@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhj-@hKyhj1@ubh to attach this object to a }(hj1@hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj^@h]h drm_gpuvm_bo}(hj`@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj\@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhj-@hKyhj1@ubeh}(h]h ]h"]h$]h&]uh1hhj-@hKyhj.@ubah}(h]h ]h"]h$]h&]uh1j hj@ubeh}(h]h ]h"]h$]h&]uh1jhj-@hKyhj>=ubj)}(hL``rb`` structure containing data to store :c:type:`drm_gpuvas` in a rb-tree h](j)}(h``rb``h]j)}(hj@h]hrb}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhj@ubj )}(hhh]h)}(hDstructure containing data to store :c:type:`drm_gpuvas` in a rb-treeh](h#structure containing data to store }(hj@hhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hj@h]h drm_gpuvas}(hj@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhj@hKhj@ubh in a rb-tree}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@hKhj@ubah}(h]h ]h"]h$]h&]uh1j hj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj>=ubj)}(h``rb.node`` the rb-tree node h](j)}(h ``rb.node``h]j)}(hj@h]hrb.node}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhj@ubj )}(hhh]h)}(hthe rb-tree nodeh]hthe rb-tree node}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKhjAubah}(h]h ]h"]h$]h&]uh1j hj@ubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj>=ubj)}(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(Ah]hrb.entry}(hj*AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Aubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhj"Aubj )}(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 }(hjAAhhhNhNubh)}(h:c:type:`list_head`h]j)}(hjKAh]h list_head}(hjMAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjIAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjAAubh to additionally connect }(hjAAhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjoAh]h drm_gpuvas}(hjqAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjmAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhjhAhKhjAAubhV in the same order they appear in the interval tree. This is useful to keep iterating }(hjAAhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjAh]h drm_gpuvas}(hjAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhjhAhKhjAAubh] from a start node found through the rb-tree while doing modifications on the rb-tree itself.}(hjAAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhAhKhj>Aubah}(h]h ]h"]h$]h&]uh1j hj"Aubeh}(h]h ]h"]h$]h&]uh1jhj=AhKhj>=ubj)}(hJ``rb.__subtree_last`` needed by the interval tree, holding last-in-subtreeh](j)}(h``rb.__subtree_last``h]j)}(hjAh]hrb.__subtree_last}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjAubj )}(hhh]h)}(h4needed by the interval tree, holding last-in-subtreeh]h4needed by the interval tree, holding last-in-subtree}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjAubah}(h]h ]h"]h$]h&]uh1j hjAubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj>=ubeh}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Bubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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$BhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj.Bh]h drm_gpuvm}(hj0BhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj,Bubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKChj$Bubh.}(hj$BhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKBhKChj:hhubh)}(hBTypically, this structure is embedded in bigger driver structures.h]hBTypically, this structure is embedded in bigger driver structures.}(hjVBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKFhj:hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!drm_gpuva_invalidate (C function)c.drm_gpuva_invalidatehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hAvoid drm_gpuva_invalidate (struct drm_gpuva *va, bool invalidate)h]j>)}(h@void drm_gpuva_invalidate(struct drm_gpuva *va, bool invalidate)h](jc)}(hvoidh]hvoid}(hj~BhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjzBhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKubjV)}(h h]h }(hjBhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjzBhhhjBhKubjg)}(hdrm_gpuva_invalidateh]jm)}(hdrm_gpuva_invalidateh]hdrm_gpuva_invalidate}(hjBhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjzBhhhjBhKubj)}(h'(struct drm_gpuva *va, bool invalidate)h](j)}(hstruct drm_gpuva *vah](jD)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjBubjV)}(h h]h }(hjBhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjBubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hjBhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjBubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjBmodnameN classnameNjj)}j]j)}jjBsbc.drm_gpuva_invalidateasbuh1hhjBubjV)}(h h]h }(hjBhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjBubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjm)}(hvah]hva}(hjChhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hbool invalidateh](jc)}(hj h]hbool}(hj-ChhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj)CubjV)}(h h]h }(hj:ChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj)Cubjm)}(h invalidateh]h invalidate}(hjHChhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj)Cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhjzBhhhjBhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjvBhhhjBhKubah}(h]jqBah ](jjeh"]h$]h&]jj)jhuh1j7hjBhKhjsBhhubj)}(hhh]h)}(hGsets whether the backing GEM of this :c:type:`drm_gpuva` is invalidatedh](h%sets whether the backing GEM of this }(hjrChhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj|Ch]h drm_gpuva}(hj~ChhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjzCubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jBc.drm_gpuva_invalidateasbj drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjrCubh is invalidated}(hjrChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjoChhubah}(h]h ]h"]h$]h&]uh1jhjsBhhhjBhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1j2hhhj: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)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjCubj)}(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)}(hjCh]hstruct drm_gpuva *va}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjCubj )}(hhh]h)}(h6the :c:type:`drm_gpuva` to set the invalidate flag forh](hthe }(hjChhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjCh]h drm_gpuva}(hjDhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjChKhjCubh to set the invalidate flag for}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjChKhjCubah}(h]h ]h"]h$]h&]uh1j hjCubeh}(h]h ]h"]h$]h&]uh1jhjChKhjCubj)}(hL``bool invalidate`` indicates whether the :c:type:`drm_gpuva` is invalidatedh](j)}(h``bool invalidate``h]j)}(hj8Dh]hbool invalidate}(hj:DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Dubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhj2Dubj )}(hhh]h)}(h8indicates whether the :c:type:`drm_gpuva` is invalidatedh](hindicates whether the }(hjQDhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj[Dh]h drm_gpuva}(hj]DhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjYDubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjQDubh is invalidated}(hjQDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxDhKhjNDubah}(h]h ]h"]h$]h&]uh1j hj2Dubeh}(h]h ]h"]h$]h&]uh1jhjMDhKhjCubeh}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_gpuva_invalidated (C function)c.drm_gpuva_invalidatedhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h1bool drm_gpuva_invalidated (struct drm_gpuva *va)h]j>)}(h0bool drm_gpuva_invalidated(struct drm_gpuva *va)h](jc)}(hj h]hbool}(hjDhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjDhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKubjV)}(h h]h }(hjDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjDhhhjDhKubjg)}(hdrm_gpuva_invalidatedh]jm)}(hdrm_gpuva_invalidatedh]hdrm_gpuva_invalidated}(hjDhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhhjDhKubj)}(h(struct drm_gpuva *va)h]j)}(hstruct drm_gpuva *vah](jD)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjDubjV)}(h h]h }(hjDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjDubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hjEhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj Eubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjEmodnameN classnameNjj)}j]j)}jjDsbc.drm_gpuva_invalidatedasbuh1hhjDubjV)}(h h]h }(hj/EhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjDubj)}(hjh]h*}(hj=EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hvah]hva}(hjJEhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubah}(h]h ]h"]h$]h&]jjuh1jhjDhhhjDhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjDhhhjDhKubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1j7hjDhKhjDhhubj)}(hhh]h)}(hKindicates whether the backing BO of this :c:type:`drm_gpuva` is invalidatedh](h)indicates whether the backing BO of this }(hjtEhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj~Eh]h drm_gpuva}(hjEhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj|Eubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j+Ec.drm_gpuva_invalidatedasbj drm_gpuvauh1hhjChKhjtEubh is invalidated}(hjtEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjqEhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjDhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1j2hhhj: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)}(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:503: ./include/drm/drm_gpuvm.hhKhjEubj)}(hhh]j)}(h:``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to check h](j)}(h``struct drm_gpuva *va``h]j)}(hjEh]hstruct drm_gpuva *va}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjEubj )}(hhh]h)}(h the :c:type:`drm_gpuva` to checkh](hthe }(hjEhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjFh]h drm_gpuva}(hjFhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjEhKhjEubh to check}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEhKhjEubah}(h]h ]h"]h$]h&]uh1j hjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhjEubah}(h]h ]h"]h$]h&]uh1jhjEubh)}(h **Return**h]j)}(hj;Fh]hReturn}(hj=FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Fubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjEubh)}(h:``true`` if the GPU VA is invalidated, ``false`` otherwiseh](j)}(h``true``h]htrue}(hjUFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQFubh if the GPU VA is invalidated, }(hjQFhhhNhNubj)}(h ``false``h]hfalse}(hjgFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQFubh otherwise}(hjQFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_flags (C enum)c.drm_gpuvm_flagshNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuvm_flagsh]j>)}(henum drm_gpuvm_flagsh](jD)}(hjGh]henum}(hjFhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjFhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKubjV)}(h h]h }(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjFhhhjFhKubjg)}(hdrm_gpuvm_flagsh]jm)}(hjFh]hdrm_gpuvm_flags}(hjFhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjFhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjFhhhjFhKubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1j7hjFhKhjFhhubj)}(hhh]h)}(hflags for struct drm_gpuvmh]hflags for struct drm_gpuvm}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjFhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhKubeh}(h]h ](jenumeh"]h$]h&]jjjjFjjFjjjuh1j2hhhj:hNhNubj)}(h**Constants** ``DRM_GPUVM_RESV_PROTECTED`` GPUVM is protected externally by the GPUVM's :c:type:`dma_resv` lock ``DRM_GPUVM_USERBITS`` user defined bitsh](h)}(h **Constants**h]j)}(hjGh]h Constants}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjFubj)}(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#Gh]hDRM_GPUVM_RESV_PROTECTED}(hj%GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Gubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjGubj )}(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)}(hstruct drm_gpuvmh](jD)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjGhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKubjV)}(h h]h }(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjGhhhjGhKubjg)}(h drm_gpuvmh]jm)}(hjGh]h drm_gpuvm}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjGhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjGhhhjGhKubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1j7hjGhKhjGhhubj)}(hhh]h)}(hDRM GPU VA Managerh]hDRM GPU VA Manager}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhjHhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhKubeh}(h]h ](jstructeh"]h$]h&]jjjj4Hjj4Hjjjuh1j2hhhj:hNhNubj)}(hX**Definition**:: struct drm_gpuvm { const char *name; enum drm_gpuvm_flags flags; struct drm_device *drm; u64 mm_start; u64 mm_range; struct { struct rb_root_cached tree; struct list_head list; } rb; struct kref kref; struct drm_gpuva kernel_alloc_node; const struct drm_gpuvm_ops *ops; struct drm_gem_object *r_obj; struct { struct list_head list; struct list_head *local_list; spinlock_t lock; } extobj; struct { struct list_head list; struct list_head *local_list; spinlock_t lock; } evict; }; **Members** ``name`` the name of the DRM GPU VA space ``flags`` the :c:type:`drm_gpuvm_flags` of this GPUVM ``drm`` the :c:type:`drm_device` this VM lives in ``mm_start`` start of the VA space ``mm_range`` length of the VA space ``rb`` structures to track :c:type:`drm_gpuva` entries ``rb.tree`` the rb-tree to track GPU VA mappings ``rb.list`` the :c:type:`list_head` to track GPU VA mappings ``kref`` reference count of this object ``kernel_alloc_node`` :c:type:`drm_gpuva` representing the address space cutout reserved for the kernel ``ops`` :c:type:`drm_gpuvm_ops` providing the split/merge steps to drivers ``r_obj`` Resv GEM object; representing the GPUVM's common :c:type:`dma_resv`. ``extobj`` structure holding the extobj list ``extobj.list`` :c:type:`list_head` storing :c:type:`drm_gpuvm_bos` serving as external object ``extobj.local_list`` pointer to the local list temporarily storing entries from the external object list ``extobj.lock`` spinlock to protect the extobj list ``evict`` structure holding the evict list and evict list lock ``evict.list`` :c:type:`list_head` storing :c:type:`drm_gpuvm_bos` currently being evicted ``evict.local_list`` pointer to the local list temporarily storing entries from the evicted object list ``evict.lock`` spinlock to protect the evict listh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj@HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj representing the address space cutout reserved for the kernel}(hj/KhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjRKhMhj,Kubah}(h]h ]h"]h$]h&]uh1j hjKubeh}(h]h ]h"]h$]h&]uh1jhj+KhMhjHubj)}(hK``ops`` :c:type:`drm_gpuvm_ops` providing the split/merge steps to drivers h](j)}(h``ops``h]j)}(hjoKh]hops}(hjqKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjiKubj )}(hhh]h)}(hB:c:type:`drm_gpuvm_ops` providing the split/merge steps to driversh](h)}(h:c:type:`drm_gpuvm_ops`h]j)}(hjKh]h drm_gpuvm_ops}(hjKhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_opsuh1hhjKhMhjKubh+ providing the split/merge steps to drivers}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1j hjiKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjHubj)}(hO``r_obj`` Resv GEM object; representing the GPUVM's common :c:type:`dma_resv`. h](j)}(h ``r_obj``h]j)}(hjKh]hr_obj}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjKubj )}(hhh]h)}(hDResv GEM object; representing the GPUVM's common :c:type:`dma_resv`.h](h3Resv GEM object; representing the GPUVM’s common }(hjKhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjKh]hdma_resv}(hjKhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhjKhMhjKubh.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1j hjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjHubj)}(h-``extobj`` structure holding the extobj list h](j)}(h ``extobj``h]j)}(hj#Lh]hextobj}(hj%LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Lubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM$hjLubj )}(hhh]h)}(h!structure holding the extobj listh]h!structure holding the extobj list}(hjhjMubh storing }(hjMhhhNhNubh)}(h:c:type:`drm_gpuvm_bos`h]j)}(hjMh]h drm_gpuvm_bos}(hjMhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bosuh1hhjMhM>hjMubh currently being evicted}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMhM>hjMubah}(h]h ]h"]h$]h&]uh1j hj~Mubeh}(h]h ]h"]h$]h&]uh1jhjMhM?hjHubj)}(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)}(hjNh]hevict.local_list}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMEhjMubj )}(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}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMDhjNubah}(h]h ]h"]h$]h&]uh1j hjMubeh}(h]h ]h"]h$]h&]uh1jhjNhMEhjHubj)}(h1``evict.lock`` spinlock to protect the evict listh](j)}(h``evict.lock``h]j)}(hj:Nh]h evict.lock}(hj)}(h8struct drm_gpuvm *drm_gpuvm_get(struct drm_gpuvm *gpuvm)h](jD)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjNhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMXubjV)}(h h]h }(hj OhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjNhhhj OhMXubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjOhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjOmodnameN classnameNjj)}j]j)}j drm_gpuvm_getsbc.drm_gpuvm_getasbuh1hhjNhhhj OhMXubjV)}(h h]h }(hj` pointerh](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:503: ./include/drm/drm_gpuvm.hhM\hjPubj)}(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)}(hj8Ph]hstruct drm_gpuvm *gpuvm}(hj:PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Pubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMYhj2Pubj )}(hhh]h)}(h3the :c:type:`drm_gpuvm` to acquire the reference ofh](hthe }(hjQPhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj[Ph]h drm_gpuvm}(hj]PhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjYPubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjMPhMYhjQPubh to acquire the reference of}(hjQPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMPhMYhjNPubah}(h]h ]h"]h$]h&]uh1j hj2Pubeh}(h]h ]h"]h$]h&]uh1jhjMPhMYhj/Pubah}(h]h ]h"]h$]h&]uh1jhjPubh)}(h**Description**h]j)}(hjPh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM[hjPubh)}(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 }(hjPhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubhT. It is illegal to call this without already holding a reference. No locks required.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMZhjPubh)}(h **Return**h]j)}(hjPh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM]hjPubh)}(h2the :c:type:`struct drm_gpuvm ` pointerh](hthe }(hjPhhhNhNubh)}(h&:c:type:`struct drm_gpuvm `h]j)}(hjPh]hstruct drm_gpuvm}(hjPhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM^hjPubh pointer}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj QhM^hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_gpuvm_resv_protected (C function)c.drm_gpuvm_resv_protectedhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h7bool drm_gpuvm_resv_protected (struct drm_gpuvm *gpuvm)h]j>)}(h6bool drm_gpuvm_resv_protected(struct drm_gpuvm *gpuvm)h](jc)}(hj h]hbool}(hj7QhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj3QhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMqubjV)}(h h]h }(hjEQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj3QhhhjDQhMqubjg)}(hdrm_gpuvm_resv_protectedh]jm)}(hdrm_gpuvm_resv_protectedh]hdrm_gpuvm_resv_protected}(hjWQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3QhhhjDQhMqubj)}(h(struct drm_gpuvm *gpuvm)h]j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjsQhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjoQubjV)}(h h]h }(hjQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoQubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjQmodnameN classnameNjj)}j]j)}jjYQsbc.drm_gpuvm_resv_protectedasbuh1hhjoQubjV)}(h h]h }(hjQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoQubjm)}(hgpuvmh]hgpuvm}(hjQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkQubah}(h]h ]h"]h$]h&]jjuh1jhj3QhhhjDQhMqubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj/QhhhjDQhMqubah}(h]j*Qah ](jjeh"]h$]h&]jj)jhuh1j7hjDQhMqhj,Qhhubj)}(hhh]h)}(h;indicates whether :c:type:`DRM_GPUVM_RESV_PROTECTED` is seth](hindicates whether }(hjQhhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j)}(hjRh]hDRM_GPUVM_RESV_PROTECTED}(hjRhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jQc.drm_gpuvm_resv_protectedasbjDRM_GPUVM_RESV_PROTECTEDuh1hhjChKhjQubh is set}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMqhjQhhubah}(h]h ]h"]h$]h&]uh1jhj,QhhhjDQhMqubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6Rjj6Rjjjuh1j2hhhj: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)}(hj@Rh]h Parameters}(hjBRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Rubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMuhj:Rubj)}(hhh]j)}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hj_Rh]hstruct drm_gpuvm *gpuvm}(hjaRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Rubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMshjYRubj )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjxRhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjRh]h drm_gpuvm}(hjRhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjtRhMshjxRubeh}(h]h ]h"]h$]h&]uh1hhjtRhMshjuRubah}(h]h ]h"]h$]h&]uh1j hjYRubeh}(h]h ]h"]h$]h&]uh1jhjtRhMshjVRubah}(h]h ]h"]h$]h&]uh1jhj:Rubh)}(h **Return**h]j)}(hjRh]hReturn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMuhj:Rubh)}(hCtrue if :c:type:`DRM_GPUVM_RESV_PROTECTED` is set, false otherwise.h](htrue if }(hjRhhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j)}(hjRh]hDRM_GPUVM_RESV_PROTECTED}(hjRhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_GPUVM_RESV_PROTECTEDuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMuhjRubh is set, false otherwise.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjRhMuhj:Rubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_resv (C macro)c.drm_gpuvm_resvhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuvm_resvh]j>)}(hdrm_gpuvm_resvh]jg)}(hdrm_gpuvm_resvh]jm)}(hjSh]hdrm_gpuvm_resv}(hj%ShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj!Subah}(h]h ](jjeh"]h$]h&]jjuh1jfhjShhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM~ubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjShhhj8ShM~ubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1j7hj8ShM~hjShhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjShhhj8ShM~ubeh}(h]h ](jmacroeh"]h$]h&]jjjjQSjjQSjjjuh1j2hhhj:hNhNubh)}(h``drm_gpuvm_resv (gpuvm__)``h]j)}(hjWSh]hdrm_gpuvm_resv (gpuvm__)}(hjYShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUSubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj:hhubj.)}(h5returns the :c:type:`drm_gpuvm`'s :c:type:`dma_resv` h]h)}(h4returns the :c:type:`drm_gpuvm`'s :c:type:`dma_resv`h](h returns the }(hjqShhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj{Sh]h drm_gpuvm}(hj}ShhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjySubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM~hjqSubh’s }(hjqShhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjSh]hdma_resv}(hjShhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhjShM~hjqSubeh}(h]h ]h"]h$]h&]uh1hhjShM~hjmSubah}(h]h ]h"]h$]h&]uh1j.hjShM~hj:hhubj)}(h**Parameters** ``gpuvm__`` the :c:type:`drm_gpuvm` **Return** a pointer to the :c:type:`drm_gpuvm`'s shared :c:type:`dma_resv`h](h)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjSubj)}(hhh]j)}(h$``gpuvm__`` the :c:type:`drm_gpuvm` h](j)}(h ``gpuvm__``h]j)}(hjSh]hgpuvm__}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjSubj )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjThhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjTh]h drm_gpuvm}(hjThhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjThMhjTubeh}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1j hjSubeh}(h]h ]h"]h$]h&]uh1jhjThMhjSubah}(h]h ]h"]h$]h&]uh1jhjSubh)}(h **Return**h]j)}(hjGTh]hReturn}(hjIThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjETubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjSubh)}(h@a pointer to the :c:type:`drm_gpuvm`'s shared :c:type:`dma_resv`h](ha pointer to the }(hj]ThhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjgTh]h drm_gpuvm}(hjiThhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjeTubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj]Tubh ’s shared }(hj]ThhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjTh]hdma_resv}(hjThhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhjThMhj]Tubeh}(h]h ]h"]h$]h&]uh1hhjThMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_resv_obj (C macro)c.drm_gpuvm_resv_objhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuvm_resv_objh]j>)}(hdrm_gpuvm_resv_objh]jg)}(hdrm_gpuvm_resv_objh]jm)}(hjTh]hdrm_gpuvm_resv_obj}(hjThhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjThhhjThMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1j7hjThMhjThhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjThhhjThMubeh}(h]h ](jmacroeh"]h$]h&]jjjjTjjTjjjuh1j2hhhj:hNhNubh)}(h ``drm_gpuvm_resv_obj (gpuvm__)``h]j)}(hjUh]hdrm_gpuvm_resv_obj (gpuvm__)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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 }(hjUhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj(Uh]hdrm_gem_object}(hj*UhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj&Uubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjUubh holding the }(hjUhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjLUh]h drm_gpuvm}(hjNUhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjJUubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjEUhMhjUubh’s }(hjUhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjoUh]hdma_resv}(hjqUhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjmUubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhjEUhMhjUubeh}(h]h ]h"]h$]h&]uh1hhjEUhMhjUubah}(h]h ]h"]h$]h&]uh1j.hjEUhMhj: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)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjUubj)}(hhh]j)}(h$``gpuvm__`` the :c:type:`drm_gpuvm` h](j)}(h ``gpuvm__``h]j)}(hjUh]hgpuvm__}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjUubj )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjUhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjUh]h drm_gpuvm}(hjUhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjUhMhjUubeh}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1j hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjUubah}(h]h ]h"]h$]h&]uh1jhjUubh)}(h **Return**h]j)}(hjVh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjUubh)}(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-VhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj7Vh]hdrm_gem_object}(hj9VhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj5Vubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj-Vubh holding the }(hj-VhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj[Vh]h drm_gpuvm}(hj]VhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjYVubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjTVhMhj-Vubh ’s shared }(hj-VhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hj~Vh]hdma_resv}(hjVhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj|Vubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhjTVhMhj-Vubeh}(h]h ]h"]h$]h&]uh1hhjTVhMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gpuvm_is_extobj (C function)c.drm_gpuvm_is_extobjhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hNbool drm_gpuvm_is_extobj (struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h]j>)}(hMbool drm_gpuvm_is_extobj(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](jc)}(hj h]hbool}(hjVhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjVhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVhhhjVhMubjg)}(hdrm_gpuvm_is_extobjh]jm)}(hdrm_gpuvm_is_extobjh]hdrm_gpuvm_is_extobj}(hjVhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjVhMubj)}(h5(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjVubjV)}(h h]h }(hj WhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjWmodnameN classnameNjj)}j]j)}jjVsbc.drm_gpuvm_is_extobjasbuh1hhjVubjV)}(h h]h }(hj;WhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVubj)}(hjh]h*}(hjIWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(hgpuvmh]hgpuvm}(hjVWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjoWhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjkWubjV)}(h h]h }(hj|WhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjkWubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjWmodnameN classnameNjj)}j]j7Wc.drm_gpuvm_is_extobjasbuh1hhjkWubjV)}(h h]h }(hjWhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjkWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkWubjm)}(hobjh]hobj}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjkWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjVhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjVhhhjVhMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1j7hjVhMhjVhhubj)}(hhh]h)}(hJindicates whether the given :c:type:`drm_gem_object` is an external objecth](hindicates whether the given }(hjWhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjWh]hdrm_gem_object}(hjWhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j7Wc.drm_gpuvm_is_extobjasbjdrm_gem_objectuh1hhjChKhjWubh is an external object}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjVhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0Xjj0Xjjjuh1j2hhhj: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:Xh]h Parameters}(hj)}(hdrm_gpuvm_for_each_va_rangeh]jg)}(hdrm_gpuvm_for_each_va_rangeh]jm)}(hjYh]hdrm_gpuvm_for_each_va_range}(hjYhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjYhhhjYhMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1j7hjYhMhjYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYhhhjYhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjZjjZjjjuh1j2hhhj:hNhNubh)}(h?``drm_gpuvm_for_each_va_range (va__, gpuvm__, start__, end__)``h]j)}(hjZh]h;drm_gpuvm_for_each_va_range (va__, gpuvm__, start__, end__)}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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 }(hj4ZhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hj>Zh]h drm_gpuvas}(hj@ZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj)}(h drm_gpuvm_for_each_va_range_safeh]jg)}(h drm_gpuvm_for_each_va_range_safeh]jm)}(hj ]h]h drm_gpuvm_for_each_va_range_safe}(hj]hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj ]hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhj ]hhhj(]hMubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1j7hj(]hMhj]hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj]hhhj(]hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjA]jjA]jjjuh1j2hhhj:hNhNubh)}(hL``drm_gpuvm_for_each_va_range_safe (va__, next__, gpuvm__, start__, end__)``h]j)}(hjG]h]hHdrm_gpuvm_for_each_va_range_safe (va__, next__, gpuvm__, start__, end__)}(hjI]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE]ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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 }(hja]hhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjk]h]h drm_gpuvas}(hjm]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhji]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhja]ubeh}(h]h ]h"]h$]h&]uh1hhj]hMhj]]ubah}(h]h ]h"]h$]h&]uh1j.hj]hMhj: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]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:503: ./include/drm/drm_gpuvm.hhMhj]ubj)}(hhh](j)}(hA``va__`` :c:type:`drm_gpuva` 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:503: ./include/drm/drm_gpuvm.hhMhj]ubj )}(hhh]h)}(h7:c:type:`drm_gpuva` to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j)}(hj]h]h drm_gpuva}(hj]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj]hMhj]ubh$ to assign to in each iteration step}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1j hj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubj)}(hC``next__`` another :c:type:`drm_gpuva` to use as temporary storage h](j)}(h ``next__``h]j)}(hj^h]hnext__}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj ^ubj )}(hhh]h)}(h7another :c:type:`drm_gpuva` to use as temporary storageh](hanother }(hj+^hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj5^h]h drm_gpuva}(hj7^hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj3^ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj'^hMhj+^ubh to use as temporary storage}(hj+^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj'^hMhj(^ubah}(h]h ]h"]h$]h&]uh1j hj ^ubeh}(h]h ]h"]h$]h&]uh1jhj'^hMhj]ubj)}(h-``gpuvm__`` :c:type:`drm_gpuvm` to walk over h](j)}(h ``gpuvm__``h]j)}(hjn^h]hgpuvm__}(hjp^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl^ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjh^ubj )}(hhh]h)}(h :c:type:`drm_gpuvm` to walk overh](h)}(h:c:type:`drm_gpuvm`h]j)}(hj^h]h drm_gpuvm}(hj^hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj^hMhj^ubh to walk over}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1j hjh^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj]ubj)}(h?``start__`` starting offset, the first gpuva will overlap this h](j)}(h ``start__``h]j)}(hj^h]hstart__}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj^ubj )}(hhh]h)}(h2starting offset, the first gpuva will overlap thish]h2starting offset, the first gpuva will overlap this}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1j hj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj]ubj)}(hQ``end__`` ending offset, the last gpuva will start before this (but may overlap) h](j)}(h ``end__``h]j)}(hj^h]hend__}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj^ubj )}(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)}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj_ubah}(h]h ]h"]h$]h&]uh1j hj^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&]uh1jhj9_ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj]ubh)}(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 }(hjQ_hhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hj[_h]h drm_gpuvas}(hj]_hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjY_ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjQ_ubh in the }(hjQ_hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj_h]h drm_gpuvm}(hj_hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj}_ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjx_hMhjQ_ubh that lie between }(hjQ_hhhNhNubj)}(h **start__**h]hstart__}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ_ubh and }(hjQ_hhhNhNubj)}(h **end__**h]hend__}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ_ubhH. It is implemented similarly to list_for_each_safe(), but is using the }(hjQ_hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj_h]h drm_gpuvm}(hj_hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjx_hMhjQ_ubhF’s internal interval tree to accelerate the search for the starting }(hjQ_hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj_h]h drm_gpuva}(hj_hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjx_hMhjQ_ubhA, and hence is safe against removal of elements. It assumes that }(hjQ_hhhNhNubj)}(h **end__**h]hend__}(hj `hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ_ubh* is within (or is the upper limit of) the }(hjQ_hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj`h]h drm_gpuvm}(hj `hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjx_hMhjQ_ubh'. This iterator does not skip over the }(hjQ_hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjA`h]h drm_gpuvm}(hjC`hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj?`ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjx_hMhjQ_ubh’s }(hjQ_hhhNhNubj)}(h**kernel_alloc_node**h]hkernel_alloc_node}(hjb`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ_ubh.}(hjQ_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjx_hMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_for_each_va (C macro)c.drm_gpuvm_for_each_vahNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuvm_for_each_vah]j>)}(hdrm_gpuvm_for_each_vah]jg)}(hdrm_gpuvm_for_each_vah]jm)}(hj`h]hdrm_gpuvm_for_each_va}(hj`hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhj`hhhj`hMubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1j7hj`hMhj`hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj`hhhj`hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj`jj`jjjuh1j2hhhj:hNhNubh)}(h)``drm_gpuvm_for_each_va (va__, gpuvm__)``h]j)}(hj`h]h%drm_gpuvm_for_each_va (va__, gpuvm__)}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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 }(hj`hhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hj`h]h drm_gpuvas}(hj`hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj`ubeh}(h]h ]h"]h$]h&]uh1hhjahMhj`ubah}(h]h ]h"]h$]h&]uh1j.hjahMhj: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)}(hj$ah]h Parameters}(hj&ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"aubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjaubj)}(hhh](j)}(hA``va__`` :c:type:`drm_gpuva` to assign to in each iteration step h](j)}(h``va__``h]j)}(hjCah]hva__}(hjEahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAaubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj=aubj )}(hhh]h)}(h7:c:type:`drm_gpuva` to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j)}(hjbah]h drm_gpuva}(hjdahhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj`aubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjXahMhj\aubh$ to assign to in each iteration step}(hj\ahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjXahMhjYaubah}(h]h ]h"]h$]h&]uh1j hj=aubeh}(h]h ]h"]h$]h&]uh1jhjXahMhj:aubj)}(h-``gpuvm__`` :c:type:`drm_gpuvm` to walk over h](j)}(h ``gpuvm__``h]j)}(hjah]hgpuvm__}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjaubj )}(hhh]h)}(h :c:type:`drm_gpuvm` to walk overh](h)}(h:c:type:`drm_gpuvm`h]j)}(hjah]h drm_gpuvm}(hjahhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjahMhjaubh to walk over}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1j hjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhj:aubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjaubh)}(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 bhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjbh]h drm_gpuva}(hjbhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj bubh& structures associated with the given }(hj bhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj9bh]h drm_gpuvm}(hj;bhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj7bubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj2bhMhj bubh.}(hj bhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2bhMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.$drm_gpuvm_for_each_va_safe (C macro)c.drm_gpuvm_for_each_va_safehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuvm_for_each_va_safeh]j>)}(hdrm_gpuvm_for_each_va_safeh]jg)}(hdrm_gpuvm_for_each_va_safeh]jm)}(hjzbh]hdrm_gpuvm_for_each_va_safe}(hjbhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|bhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjxbhhhjbhMubah}(h]jsbah ](jjeh"]h$]h&]jj)jhuh1j7hjbhMhjubhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjubhhhjbhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjbjjbjjjuh1j2hhhj:hNhNubh)}(h6``drm_gpuvm_for_each_va_safe (va__, next__, gpuvm__)``h]j)}(hjbh]h2drm_gpuvm_for_each_va_safe (va__, next__, gpuvm__)}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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 }(hjbhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjbh]h drm_gpuvas}(hjbhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjbubeh}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1j.hjbhMhj:hhubj)}(hX**Parameters** ``va__`` :c:type:`drm_gpuva` to assign to in each iteration step ``next__`` another :c:type:`drm_gpuva` to use as temporary storage ``gpuvm__`` :c:type:`drm_gpuvm` to walk over **Description** This iterator walks over all :c:type:`drm_gpuva` structures associated with the given :c:type:`drm_gpuvm`. It is implemented with list_for_each_entry_safe(), and hence safe against the removal of elements.h](h)}(h**Parameters**h]j)}(hj ch]h Parameters}(hj chhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjcubj)}(hhh](j)}(hA``va__`` :c:type:`drm_gpuva` to assign to in each iteration step h](j)}(h``va__``h]j)}(hj)ch]hva__}(hj+chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'cubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj#cubj )}(hhh]h)}(h7:c:type:`drm_gpuva` to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j)}(hjHch]h drm_gpuva}(hjJchhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjFcubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj>chMhjBcubh$ to assign to in each iteration step}(hjBchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj>chMhj?cubah}(h]h ]h"]h$]h&]uh1j hj#cubeh}(h]h ]h"]h$]h&]uh1jhj>chMhj cubj)}(hC``next__`` another :c:type:`drm_gpuva` to use as temporary storage h](j)}(h ``next__``h]j)}(hjch]hnext__}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj{cubj )}(hhh]h)}(h7another :c:type:`drm_gpuva` to use as temporary storageh](hanother }(hjchhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjch]h drm_gpuva}(hjchhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjchMhjcubh to use as temporary storage}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1j hj{cubeh}(h]h ]h"]h$]h&]uh1jhjchMhj cubj)}(h-``gpuvm__`` :c:type:`drm_gpuvm` to walk over h](j)}(h ``gpuvm__``h]j)}(hjch]hgpuvm__}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjcubj )}(hhh]h)}(h :c:type:`drm_gpuvm` to walk overh](h)}(h:c:type:`drm_gpuvm`h]j)}(hjch]h drm_gpuvm}(hjchhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjchMhjcubh to walk over}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1j hjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhj cubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(h**Description**h]j)}(hj7dh]h Description}(hj9dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5dubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjcubh)}(hThis iterator walks over all :c:type:`drm_gpuva` structures associated with the given :c:type:`drm_gpuvm`. It is implemented with list_for_each_entry_safe(), and hence safe against the removal of elements.h](hThis iterator walks over all }(hjMdhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjWdh]h drm_gpuva}(hjYdhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjUdubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjMdubh& structures associated with the given }(hjMdhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj{dh]h drm_gpuvm}(hj}dhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjydubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjtdhMhjMdubhd. It is implemented with list_for_each_entry_safe(), and hence safe against the removal of elements.}(hjMdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjtdhMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_exec (C struct)c.drm_gpuvm_exechNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuvm_exech]j>)}(hstruct drm_gpuvm_exech](jD)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjdhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubjV)}(h h]h }(hjdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjdhhhjdhMubjg)}(hdrm_gpuvm_exech]jm)}(hjdh]hdrm_gpuvm_exec}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjdhhhjdhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjdhhhjdhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1j7hjdhMhjdhhubj)}(hhh]h)}(h5:c:type:`drm_gpuvm` abstraction of :c:type:`drm_exec`h](h)}(h:c:type:`drm_gpuvm`h]j)}(hj eh]h drm_gpuvm}(hj ehhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j)}jjdsbc.drm_gpuvm_execasbj drm_gpuvmuh1hhjChKhjeubh abstraction of }(hjehhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hj4eh]hdrm_exec}(hj6ehhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj2eubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj&ejdrm_execuh1hhjChKhjeubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjehhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjdhMubeh}(h]h ](jstructeh"]h$]h&]jjjjaejjaejjjuh1j2hhhj:hNhNubj)}(hX0**Definition**:: struct drm_gpuvm_exec { struct drm_exec exec; u32 flags; struct drm_gpuvm *vm; unsigned int num_fences; struct { int (*fn)(struct drm_gpuvm_exec *vm_exec); void *priv; } extra; }; **Members** ``exec`` the :c:type:`drm_exec` structure ``flags`` the flags for the struct drm_exec ``vm`` the :c:type:`drm_gpuvm` to lock its DMA reservations ``num_fences`` the number of fences to reserve for the :c:type:`dma_resv` of the locked :c:type:`drm_gem_objects` ``extra`` Callback and corresponding private data for the driver to lock arbitrary additional :c:type:`drm_gem_objects`. ``extra.fn`` The driver callback to lock additional :c:type:`drm_gem_objects`. ``extra.priv`` driver private data for the **fn** callbackh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjmehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjieubh:}(hjiehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjeeubjT)}(hstruct drm_gpuvm_exec { struct drm_exec exec; u32 flags; struct drm_gpuvm *vm; unsigned int num_fences; struct { int (*fn)(struct drm_gpuvm_exec *vm_exec); void *priv; } extra; };h]hstruct drm_gpuvm_exec { struct drm_exec exec; u32 flags; struct drm_gpuvm *vm; unsigned int num_fences; struct { int (*fn)(struct drm_gpuvm_exec *vm_exec); void *priv; } extra; };}hjesbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjeeubh)}(h **Members**h]j)}(hjeh]hMembers}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM hjeeubj)}(hhh](j)}(h*``exec`` the :c:type:`drm_exec` structure h](j)}(h``exec``h]j)}(hjeh]hexec}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjeubj )}(hhh]h)}(h the :c:type:`drm_exec` structureh](hthe }(hjehhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hjeh]hdrm_exec}(hjehhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_execuh1hhjehMhjeubh structure}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjehMhjeubah}(h]h ]h"]h$]h&]uh1j hjeubeh}(h]h ]h"]h$]h&]uh1jhjehMhjeubj)}(h,``flags`` the flags for the struct drm_exec h](j)}(h ``flags``h]j)}(hjfh]hflags}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj fubj )}(hhh]h)}(h!the flags for the struct drm_exech]h!the flags for the struct drm_exec}(hj+fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'fhMhj(fubah}(h]h ]h"]h$]h&]uh1j hj fubeh}(h]h ]h"]h$]h&]uh1jhj'fhMhjeubj)}(h<``vm`` the :c:type:`drm_gpuvm` to lock its DMA reservations h](j)}(h``vm``h]j)}(hjKfh]hvm}(hjMfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIfubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM hjEfubj )}(hhh]h)}(h4the :c:type:`drm_gpuvm` to lock its DMA reservationsh](hthe }(hjdfhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjnfh]h drm_gpuvm}(hjpfhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjlfubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj`fhM hjdfubh to lock its DMA reservations}(hjdfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`fhM hjafubah}(h]h ]h"]h$]h&]uh1j hjEfubeh}(h]h ]h"]h$]h&]uh1jhj`fhM hjeubj)}(hr``num_fences`` the number of fences to reserve for the :c:type:`dma_resv` of the locked :c:type:`drm_gem_objects` h](j)}(h``num_fences``h]j)}(hjfh]h num_fences}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjfubj )}(hhh]h)}(hbthe number of fences to reserve for the :c:type:`dma_resv` of the locked :c:type:`drm_gem_objects`h](h(the number of fences to reserve for the }(hjfhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjfh]hdma_resv}(hjfhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjfubh of the locked }(hjfhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjfh]hdrm_gem_objects}(hjfhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhjfhMhjfubeh}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1j hjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjeubj)}(hy``extra`` Callback and corresponding private data for the driver to lock arbitrary additional :c:type:`drm_gem_objects`. h](j)}(h ``extra``h]j)}(hj#gh]hextra}(hj%ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!gubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjgubj )}(hhh]h)}(hnCallback and corresponding private data for the driver to lock arbitrary additional :c:type:`drm_gem_objects`.h](hTCallback and corresponding private data for the driver to lock arbitrary additional }(hj)}(h:void drm_gpuvm_exec_unlock(struct drm_gpuvm_exec *vm_exec)h](jc)}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM?ubjV)}(h h]h }(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhhjhhM?ubjg)}(hdrm_gpuvm_exec_unlockh]jm)}(hdrm_gpuvm_exec_unlockh]hdrm_gpuvm_exec_unlock}(hjhhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjhhM?ubj)}(h (struct drm_gpuvm_exec *vm_exec)h]j)}(hstruct drm_gpuvm_exec *vm_exech](jD)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjiubjV)}(h h]h }(hj!ihhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjiubh)}(hhh]jm)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hj2ihhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/iubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj4imodnameN classnameNjj)}j]j)}jjhsbc.drm_gpuvm_exec_unlockasbuh1hhjiubjV)}(h h]h }(hjRihhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjiubj)}(hjh]h*}(hj`ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hvm_exech]hvm_exec}(hjmihhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj iubah}(h]h ]h"]h$]h&]jjuh1jhjhhhhjhhM?ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhhjhhM?ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1j7hjhhM?hjhhhubj)}(hhh]h)}(h(lock all dma-resv of all assoiciated BOsh]h(lock all dma-resv of all assoiciated BOs}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM?hjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhhM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1j2hhhj:hNhNubj)}(hX&**Parameters** ``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper **Description** Releases all dma-resv locks of all :c:type:`drm_gem_objects` previously acquired through drm_gpuvm_exec_lock() or its variants. **Return** 0 on success, negative error code on failure.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:503: ./include/drm/drm_gpuvm.hhMChjiubj)}(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)}(hjih]hstruct drm_gpuvm_exec *vm_exec}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM@hjiubj )}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hjihhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j)}(hjih]hdrm_gpuvm_exec}(hjihhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_execuh1hhjihM@hjiubh wrapper}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjihM@hjiubah}(h]h ]h"]h$]h&]uh1j hjiubeh}(h]h ]h"]h$]h&]uh1jhjihM@hjiubah}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]j)}(hj6jh]h Description}(hj8jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4jubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMBhjiubh)}(hReleases all dma-resv locks of all :c:type:`drm_gem_objects` previously acquired through drm_gpuvm_exec_lock() or its variants.h](h#Releases all dma-resv locks of all }(hjLjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjVjh]hdrm_gem_objects}(hjXjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjTjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMAhjLjubhC previously acquired through drm_gpuvm_exec_lock() or its variants.}(hjLjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjsjhMAhjiubh)}(h **Return**h]j)}(hjjh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~jubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMDhjiubh)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMEhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.*drm_gpuvm_exec_resv_add_fence (C function)c.drm_gpuvm_exec_resv_add_fencehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hvoid drm_gpuvm_exec_resv_add_fence (struct drm_gpuvm_exec *vm_exec, struct dma_fence *fence, enum dma_resv_usage private_usage, enum dma_resv_usage extobj_usage)h]j>)}(hvoid drm_gpuvm_exec_resv_add_fence(struct drm_gpuvm_exec *vm_exec, struct dma_fence *fence, enum dma_resv_usage private_usage, enum dma_resv_usage extobj_usage)h](jc)}(hvoidh]hvoid}(hjjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMUubjV)}(h h]h }(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjhhhjjhMUubjg)}(hdrm_gpuvm_exec_resv_add_fenceh]jm)}(hdrm_gpuvm_exec_resv_add_fenceh]hdrm_gpuvm_exec_resv_add_fence}(hjjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhjjhMUubj)}(h~(struct drm_gpuvm_exec *vm_exec, struct dma_fence *fence, enum dma_resv_usage private_usage, enum dma_resv_usage extobj_usage)h](j)}(hstruct drm_gpuvm_exec *vm_exech](jD)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjjubjV)}(h h]h }(hjkhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjubh)}(hhh]jm)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hj khhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj"kmodnameN classnameNjj)}j]j)}jjjsbc.drm_gpuvm_exec_resv_add_fenceasbuh1hhjjubjV)}(h h]h }(hj@khhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjubj)}(hjh]h*}(hjNkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjm)}(hvm_exech]hvm_exec}(hj[khhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hstruct dma_fence *fenceh](jD)}(hjh]hstruct}(hjtkhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjpkubjV)}(h h]h }(hjkhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjpkubh)}(hhh]jm)}(h dma_fenceh]h dma_fence}(hjkhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjkmodnameN classnameNjj)}j]j)}(h;int drm_gpuvm_exec_validate(struct drm_gpuvm_exec *vm_exec)h](jc)}(hinth]hint}(hjJnhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjFnhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhubjV)}(h h]h }(hjYnhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjFnhhhjXnhMhubjg)}(hdrm_gpuvm_exec_validateh]jm)}(hdrm_gpuvm_exec_validateh]hdrm_gpuvm_exec_validate}(hjknhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFnhhhjXnhMhubj)}(h (struct drm_gpuvm_exec *vm_exec)h]j)}(hstruct drm_gpuvm_exec *vm_exech](jD)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjnubjV)}(h h]h }(hjnhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjnubh)}(hhh]jm)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjnhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjnmodnameN classnameNjj)}j]j)}jjmnsbc.drm_gpuvm_exec_validateasbuh1hhjnubjV)}(h h]h }(hjnhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(hvm_exech]hvm_exec}(hjnhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubah}(h]h ]h"]h$]h&]jjuh1jhjFnhhhjXnhMhubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjBnhhhjXnhMhubah}(h]j=nah ](jjeh"]h$]h&]jj)jhuh1j7hjXnhMhhj?nhhubj)}(hhh]h)}(h"validate all BOs marked as evictedh]h"validate all BOs marked as evicted}(hj ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhhjohhubah}(h]h ]h"]h$]h&]uh1jhj?nhhhjXnhMhubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"ojj"ojjjuh1j2hhhj:hNhNubj)}(h**Parameters** ``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper **Description** See drm_gpuvm_validate(). **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hj,oh]h Parameters}(hj.ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*oubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMlhj&oubj)}(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)}(hjKoh]hstruct drm_gpuvm_exec *vm_exec}(hjMohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIoubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMihjEoubj )}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hjdohhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j)}(hjnoh]hdrm_gpuvm_exec}(hjpohhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjloubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_execuh1hhj`ohMihjdoubh wrapper}(hjdohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`ohMihjaoubah}(h]h ]h"]h$]h&]uh1j hjEoubeh}(h]h ]h"]h$]h&]uh1jhj`ohMihjBoubah}(h]h ]h"]h$]h&]uh1jhj&oubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMkhj&oubh)}(hSee drm_gpuvm_validate().h]hSee drm_gpuvm_validate().}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMjhj&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:503: ./include/drm/drm_gpuvm.hhMlhj&oubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMmhj&oubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_bo (C struct)c.drm_gpuvm_bohNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h drm_gpuvm_boh]j>)}(hstruct drm_gpuvm_boh](jD)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjphhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMrubjV)}(h h]h }(hj#phhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjphhhj"phMrubjg)}(h drm_gpuvm_boh]jm)}(hjph]h drm_gpuvm_bo}(hj5phhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1pubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjphhhj"phMrubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj phhhj"phMrubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1j7hj"phMrhj phhubj)}(hhh]h)}(hUstructure representing a :c:type:`drm_gpuvm` and :c:type:`drm_gem_object` combinationh](hstructure representing a }(hjWphhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjaph]h drm_gpuvm}(hjcphhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj_pubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j)}jjpsbc.drm_gpuvm_boasbj drm_gpuvmuh1hhjChKhjWpubh and }(hjWphhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjph]hdrm_gem_object}(hjphhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj}pjdrm_gem_objectuh1hhjChKhjWpubh combination}(hjWphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMvhjTphhubah}(h]h ]h"]h$]h&]uh1jhj phhhj"phMrubeh}(h]h ](jstructeh"]h$]h&]jjjjpjjpjjjuh1j2hhhj: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; } 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.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh:}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMzhjpubjT)}(hX@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; } entry; } list; };h]hX@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; } entry; } list; };}hjpsbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM|hjpubh)}(h **Members**h]j)}(hjph]hMembers}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjpubj)}(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)}(hjqh]hvm}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj qubj )}(hhh]h)}(hVThe :c:type:`drm_gpuvm` the **obj** is mapped in. This is a reference counted pointer.h](hThe }(hj*qhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj4qh]h drm_gpuvm}(hj6qhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj2qubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj*qubh the }(hj*qhhhNhNubj)}(h**obj**h]hobj}(hjVqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*qubh3 is mapped in. This is a reference counted pointer.}(hj*qhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQqhMhj'qubah}(h]h ]h"]h$]h&]uh1j hj qubeh}(h]h ]h"]h$]h&]uh1jhj&qhMhjqubj)}(hb``obj`` The :c:type:`drm_gem_object` being mapped in **vm**. This is a reference counted pointer. h](j)}(h``obj``h]j)}(hjqh]hobj}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~qubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjzqubj )}(hhh]h)}(hYThe :c:type:`drm_gem_object` being mapped in **vm**. This is a reference counted pointer.h](hThe }(hjqhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjqh]hdrm_gem_object}(hjqhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjqubh being mapped in }(hjqhhhNhNubj)}(h**vm**h]hvm}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh&. This is a reference counted pointer.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqhMhjqubah}(h]h ]h"]h$]h&]uh1j hjzqubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjqubj)}(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)}(hjqh]hevicted}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjqubj )}(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 }(hjrhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjrh]hdrm_gem_object}(hjrhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjrubh$ is evicted; field protected by the }(hjrhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj6rh]hdrm_gem_object}(hj8rhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj4rubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj/rhMhjrubh’s dma-resv lock.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/rhMhjrubah}(h]h ]h"]h$]h&]uh1j hjqubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjqubj)}(h>``kref`` The reference count for this :c:type:`drm_gpuvm_bo`. h](j)}(h``kref``h]j)}(hjorh]hkref}(hjqrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmrubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjirubj )}(hhh]h)}(h4The reference count for this :c:type:`drm_gpuvm_bo`.h](hThe reference count for this }(hjrhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjrh]h drm_gpuvm_bo}(hjrhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjrhMhjrubh.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1j hjirubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjqubj)}(h8``list`` Structure containing all :c:type:`list_heads`. h](j)}(h``list``h]j)}(hjrh]hlist}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjrubj )}(hhh]h)}(h.Structure containing all :c:type:`list_heads`.h](hStructure containing all }(hjrhhhNhNubh)}(h:c:type:`list_heads`h]j)}(hjrh]h list_heads}(hjrhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headsuh1hhjrhMhjrubh.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1j hjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjqubj)}(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'sh]h list.gpuva}(hj)shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%subah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj!subj )}(hhh](h)}(h(The list of linked :c:type:`drm_gpuvas`.h](hThe list of linked }(hj@shhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjJsh]h drm_gpuvas}(hjLshhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjHsubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj@subh.}(hj@shhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjgshMhj=subh)}(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.}(hjrshhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj=subeh}(h]h ]h"]h$]h&]uh1j hj!subeh}(h]h ]h"]h$]h&]uh1jhjuhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj:uubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjthMwhjtubh backed by the same }(hjthhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj_uh]hdrm_gem_object}(hjauhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj]uubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjthMwhjtubh.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjthMwhj:hhubh)}(h_Furthermore it is used cache evicted GEM objects for a certain GPU-VM to accelerate validation.h]h_Furthermore it is used cache evicted GEM objects for a certain GPU-VM to accelerate validation.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM|hj:hhubh)}(hTypically, drivers want to create an instance of a struct drm_gpuvm_bo once a GEM object is mapped first in a GPU-VM and release the instance once the last mapping of the GEM object in this GPU-VM is unmapped.h]hTypically, drivers want to create an instance of a struct drm_gpuvm_bo once a GEM object is mapped first in a GPU-VM and release the instance once the last mapping of the GEM object in this GPU-VM is unmapped.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj:hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_bo_get (C function)c.drm_gpuvm_bo_gethNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hCstruct drm_gpuvm_bo * drm_gpuvm_bo_get (struct drm_gpuvm_bo *vm_bo)h]j>)}(hAstruct drm_gpuvm_bo *drm_gpuvm_bo_get(struct drm_gpuvm_bo *vm_bo)h](jD)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjuhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubjV)}(h h]h }(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuhhhjuhMubh)}(hhh]jm)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjumodnameN classnameNjj)}j]j)}jdrm_gpuvm_bo_getsbc.drm_gpuvm_bo_getasbuh1hhjuhhhjuhMubjV)}(h h]h }(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuhhhjuhMubj)}(hjh]h*}(hj vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjuhMubjg)}(hdrm_gpuvm_bo_geth]jm)}(hjuh]hdrm_gpuvm_bo_get}(hjvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhjuhMubj)}(h(struct drm_gpuvm_bo *vm_bo)h]j)}(hstruct drm_gpuvm_bo *vm_boh](jD)}(hjh]hstruct}(hj7vhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj3vubjV)}(h h]h }(hjDvhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj3vubh)}(hhh]jm)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjUvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjRvubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjWvmodnameN classnameNjj)}j]juc.drm_gpuvm_bo_getasbuh1hhj3vubjV)}(h h]h }(hjsvhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj3vubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3vubjm)}(hvm_boh]hvm_bo}(hjvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj3vubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/vubah}(h]h ]h"]h$]h&]jjuh1jhjuhhhjuhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjuhhhjuhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1j7hjuhMhjuhhubj)}(hhh]h)}(h'acquire a struct drm_gpuvm_bo referenceh]h'acquire a struct drm_gpuvm_bo reference}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjvhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1j2hhhj:hNhNubj)}(hXA**Parameters** ``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to acquire the reference of **Description** This function acquires an additional reference to **vm_bo**. It is illegal to call this without already holding a reference. No locks required. **Return** the :c:type:`struct vm_bo ` 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:503: ./include/drm/drm_gpuvm.hhMhjvubj)}(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)}(hjvh]hstruct drm_gpuvm_bo *vm_bo}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjvubj )}(hhh]h)}(h6the :c:type:`drm_gpuvm_bo` to acquire the reference ofh](hthe }(hjwhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjwh]h drm_gpuvm_bo}(hjwhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjwhMhjwubh to acquire the reference of}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhMhjwubah}(h]h ]h"]h$]h&]uh1j hjvubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjvubah}(h]h ]h"]h$]h&]uh1jhjvubh)}(h**Description**h]j)}(hjWwh]h Description}(hjYwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUwubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjvubh)}(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 }(hjmwhhhNhNubj)}(h **vm_bo**h]hvm_bo}(hjuwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmwubhT. It is illegal to call this without already holding a reference. No locks required.}(hjmwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjvubh)}(h **Return**h]j)}(hjwh]hReturn}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjvubh)}(h*the :c:type:`struct vm_bo ` pointerh](hthe }(hjwhhhNhNubh)}(h:c:type:`struct vm_bo `h]j)}(hjwh]h struct vm_bo}(hjwhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvm_bouh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjwubh pointer}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_gpuvm_bo_gem_evict (C function)c.drm_gpuvm_bo_gem_evicthNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hDvoid drm_gpuvm_bo_gem_evict (struct drm_gem_object *obj, bool evict)h]j>)}(hCvoid drm_gpuvm_bo_gem_evict(struct drm_gem_object *obj, bool evict)h](jc)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjwhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjwhhhjxhMubjg)}(hdrm_gpuvm_bo_gem_evicth]jm)}(hdrm_gpuvm_bo_gem_evicth]hdrm_gpuvm_bo_gem_evict}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhjxhMubj)}(h((struct drm_gem_object *obj, bool evict)h](j)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hj5xhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj1xubjV)}(h h]h }(hjBxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1xubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjSxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjPxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjUxmodnameN classnameNjj)}j]j)}jjxsbc.drm_gpuvm_bo_gem_evictasbuh1hhj1xubjV)}(h h]h }(hjsxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1xubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1xubjm)}(hobjh]hobj}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1xubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-xubj)}(h bool evicth](jc)}(hj h]hbool}(hjxhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjxubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjxubjm)}(hevicth]hevict}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-xubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjxhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjwhhhjxhMubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1j7hjxhMhjwhhubj)}(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 }(hjxhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjxh]h drm_gpuvm_bo}(hjxhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]joxc.drm_gpuvm_bo_gem_evictasbj drm_gpuvm_bouh1hhjChKhjxubh’s in the list to/from the }(hjxhhhNhNubh)}(h:c:type:`drm_gpuvms`h]j)}(hjyh]h drm_gpuvms}(hj yhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjyj drm_gpuvmsuh1hhjChKhjxubh evicted list}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjxhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOyjjOyjjjuh1j2hhhj: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)}(hjYyh]h Parameters}(hj[yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWyubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjSyubj)}(hhh](j)}(h<``struct drm_gem_object *obj`` the :c:type:`drm_gem_object` h](j)}(h``struct drm_gem_object *obj``h]j)}(hjxyh]hstruct drm_gem_object *obj}(hjzyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvyubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjryubj )}(hhh]h)}(hthe :c:type:`drm_gem_object`h](hthe }(hjyhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjyh]hdrm_gem_object}(hjyhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjyhMhjyubeh}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1j hjryubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjoyubj)}(h4``bool evict`` indicates whether **obj** is evicted h](j)}(h``bool evict``h]j)}(hjyh]h bool evict}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjyubj )}(hhh]h)}(h$indicates whether **obj** is evictedh](hindicates whether }(hjyhhhNhNubj)}(h**obj**h]hobj}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh is evicted}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1j hjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjoyubeh}(h]h ]h"]h$]h&]uh1jhjSyubh)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjSyubh)}(hSee drm_gpuvm_bo_evict().h]hSee drm_gpuvm_bo_evict().}(hj3zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjSyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_gpuvm_bo_for_each_va (C macro)c.drm_gpuvm_bo_for_each_vahNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuvm_bo_for_each_vah]j>)}(hdrm_gpuvm_bo_for_each_vah]jg)}(hdrm_gpuvm_bo_for_each_vah]jm)}(hj\zh]hdrm_gpuvm_bo_for_each_va}(hjfzhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjbzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^zhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjZzhhhjyzhMubah}(h]jUzah ](jjeh"]h$]h&]jj)jhuh1j7hjyzhMhjWzhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjWzhhhjyzhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjzjjzjjjuh1j2hhhj:hNhNubh)}(h,``drm_gpuvm_bo_for_each_va (va__, vm_bo__)``h]j)}(hjzh]h(drm_gpuvm_bo_for_each_va (va__, vm_bo__)}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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 }(hjzhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjzh]h drm_gpuva}(hjzhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjzubeh}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1j.hjzhMhj: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)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjzubj)}(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:503: ./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)}(hj*{h]h drm_gpuva}(hj,{hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj({ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj {hMhj${ubh. structure to assign to in each iteration step}(hj${hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj {hMhj!{ubah}(h]h ]h"]h$]h&]uh1j hj{ubeh}(h]h ]h"]h$]h&]uh1jhj {hMhj{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)}(hjc{h]hvm_bo__}(hje{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja{ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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 }(hj|{hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj{h]h drm_gpuvm_bo}(hj{hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjx{hMhj|{ubh the }(hj|{hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj{h]h drm_gpuva}(hj{hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjx{hMhj|{ubh to walk are associated with}(hj|{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjx{hMhjy{ubah}(h]h ]h"]h$]h&]uh1j hj]{ubeh}(h]h ]h"]h$]h&]uh1jhjx{hMhj{ubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(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:503: ./include/drm/drm_gpuvm.hhMhjzubh)}(hgThis iterator walks over all :c:type:`drm_gpuva` structures associated with the :c:type:`drm_gpuvm_bo`.h](hThis iterator walks over all }(hj{hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj|h]h drm_gpuva}(hj|hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj{ubh structures associated with the }(hj{hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj(|h]h drm_gpuvm_bo}(hj*|hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj&|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhj!|hMhj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!|hMhjzubh)}(h*The caller must hold the GEM's gpuva lock.h]h,The caller must hold the GEM’s gpuva lock.}(hjO|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_gpuvm_bo_for_each_va_safe (C macro)c.drm_gpuvm_bo_for_each_va_safehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuvm_bo_for_each_va_safeh]j>)}(hdrm_gpuvm_bo_for_each_va_safeh]jg)}(hdrm_gpuvm_bo_for_each_va_safeh]jm)}(hjx|h]hdrm_gpuvm_bo_for_each_va_safe}(hj|hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj~|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjz|hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjv|hhhj|hMubah}(h]jq|ah ](jjeh"]h$]h&]jj)jhuh1j7hj|hMhjs|hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjs|hhhj|hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj|jj|jjjuh1j2hhhj:hNhNubh)}(h9``drm_gpuvm_bo_for_each_va_safe (va__, next__, vm_bo__)``h]j)}(hj|h]h5drm_gpuvm_bo_for_each_va_safe (va__, next__, vm_bo__)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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 }(hj|hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj|h]h drm_gpuva}(hj|hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj|ubeh}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1j.hj|hMhj: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:503: ./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)}(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:503: ./include/drm/drm_gpuvm.hhM hj!}ubj )}(hhh]h)}(hA:c:type:`drm_gpuva` structure to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j)}(hjF}h]h drm_gpuva}(hjH}hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjD}ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj 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&]uh1j hj!}ubeh}(h]h ]h"]h$]h&]uh1jhj<}hM hj}ubj)}(hE``next__`` :c:type:`next` :c:type:`drm_gpuva` to store the next step h](j)}(h ``next__``h]j)}(hj}h]hnext__}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}}ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM hjy}ubj )}(hhh]h)}(h9:c:type:`next` :c:type:`drm_gpuva` to store the next steph](h)}(h:c:type:`next`h]j)}(hj}h]hnext}(hj}hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjnextuh1hhj}hM hj}ubh }(hj}hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj}h]h drm_gpuva}(hj}hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj}hM hj}ubh to store the next step}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}hM hj}ubah}(h]h ]h"]h$]h&]uh1j hjy}ubeh}(h]h ]h"]h$]h&]uh1jhj}hM hj}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)}(hj}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:503: ./include/drm/drm_gpuvm.hhM hj}ubj )}(hhh]h)}(hNthe :c:type:`drm_gpuvm_bo` the :c:type:`drm_gpuva` to walk are associated withh](hthe }(hj~hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj~h]h drm_gpuvm_bo}(hj~hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhj~hM hj~ubh the }(hj~hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj@~h]h drm_gpuva}(hjB~hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj>~ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj~hM hj~ubh to walk are associated with}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hM hj~ubah}(h]h ]h"]h$]h&]uh1j hj}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&]uh1jhjy~ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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)}(hj~h]h drm_gpuva}(hj~hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM hj~ubh structures associated with the }(hj~hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj~h]h drm_gpuvm_bo}(hj~hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhj~hM 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&]uh1hhj~hM hj}ubh)}(h*The caller must hold the GEM's gpuva lock.h]h,The caller must hold the GEM’s gpuva lock.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_op_type (C enum)c.drm_gpuva_op_typehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_op_typeh]j>)}(henum drm_gpuva_op_typeh](jD)}(hjGh]henum}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubjV)}(h h]h }(hj#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj"hMubjg)}(hdrm_gpuva_op_typeh]jm)}(hjh]hdrm_gpuva_op_type}(hj5hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj"hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj"hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj"hMhj hhubj)}(hhh]h)}(hGPU VA operation typeh]hGPU VA operation type}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjThhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMubeh}(h]h ](jenumeh"]h$]h&]jjjjojjojjjuh1j2hhhj: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)}(hjyh]h Constants}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjsubj)}(hhh](j)}(h%``DRM_GPUVA_OP_MAP`` the map op type h](j)}(h``DRM_GPUVA_OP_MAP``h]j)}(hjh]hDRM_GPUVA_OP_MAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubj )}(hhh]h)}(hthe map op typeh]hthe map op type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:503: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM$hjubj )}(hhh]h)}(hthe unmap op typeh]hthe unmap op type}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM$hj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubj)}(h/``DRM_GPUVA_OP_PREFETCH`` the prefetch op type h](j)}(h``DRM_GPUVA_OP_PREFETCH``h]j)}(hjCh]hDRM_GPUVA_OP_PREFETCH}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM'hj=ubj )}(hhh]h)}(hthe prefetch op typeh]hthe prefetch op type}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM'hjYubah}(h]h ]h"]h$]h&]uh1j hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhM'hjubj)}(h2``DRM_GPUVA_OP_DRIVER`` the driver defined op typeh](j)}(h``DRM_GPUVA_OP_DRIVER``h]j)}(hj|h]hDRM_GPUVA_OP_DRIVER}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM)hjvubj )}(hhh]h)}(hthe driver defined op typeh]hthe driver defined op type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM*hjubah}(h]h ]h"]h$]h&]uh1j hjvubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjubeh}(h]h ]h"]h$]h&]uh1jhjsubeh}(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:503: ./include/drm/drm_gpuvm.hhM,hj: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 }(hjՀhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj߀h]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj݀ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjՀubh.}(hjՀhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj:hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_op_map (C struct)c.drm_gpuva_op_maphNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_op_maph]j>)}(hstruct drm_gpuva_op_maph](jD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubjV)}(h h]h }(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj-hMubjg)}(hdrm_gpuva_op_maph]jm)}(hjh]hdrm_gpuva_op_map}(hj@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj-hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj-hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj-hMhjhhubj)}(hhh]h)}(hGPU VA map operationh]hGPU VA map operation}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM7hj_hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj-hMubeh}(h]h ](jstructeh"]h$]h&]jjjjzjjzjjjuh1j2hhhj:hNhNubj)}(hXB**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 it's 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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM;hj~ubjT)}(hstruct drm_gpuva_op_map { struct { u64 addr; u64 range; } va; struct { u64 offset; struct drm_gem_object *obj; } gem; };h]hstruct drm_gpuva_op_map { struct { u64 addr; u64 range; } va; struct { u64 offset; struct drm_gem_object *obj; } gem; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM=hj~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:503: ./include/drm/drm_gpuvm.hhMHhj~ubj)}(hhh](j)}(hA``va`` structure containing address and range of a map operation 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:503: ./include/drm/drm_gpuvm.hhM@hjɁubj )}(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:503: ./include/drm/drm_gpuvm.hhM?hjubah}(h]h ]h"]h$]h&]uh1j hjɁubeh}(h]h ]h"]h$]h&]uh1jhjhM@hjƁubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMDhjubj )}(hhh]h)}(h#the base address of the new mappingh]h#the base address of the new mapping}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjƁubj)}(h*``va.range`` the range of the new mapping h](j)}(h ``va.range``h]j)}(hjBh]hva.range}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMIhj<ubj )}(hhh]h)}(hthe range of the new mappingh]hthe range of the new mapping}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMIhjXubah}(h]h ]h"]h$]h&]uh1j hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMIhjƁubj)}(hJ``gem`` structure containing the :c:type:`drm_gem_object` and it's offset h](j)}(h``gem``h]j)}(hj{h]hgem}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMOhjuubj )}(hhh]h)}(hAstructure containing the :c:type:`drm_gem_object` and it's offseth](hstructure containing the }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhMOhjubh and it’s offset}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1j hjuubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjƁubj)}(h>``gem.offset`` the offset within the :c:type:`drm_gem_object` h](j)}(h``gem.offset``h]j)}(hjׂh]h gem.offset}(hjقhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՂubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMShjтubj )}(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)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhMShjubeh}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1j hjтubeh}(h]h ]h"]h$]h&]uh1jhjhMShjƁubj)}(h/``gem.obj`` the :c:type:`drm_gem_object` to maph](j)}(h ``gem.obj``h]j)}(hj/h]hgem.obj}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMWhj)ubj )}(hhh]h)}(h#the :c:type:`drm_gem_object` to maph](hthe }(hjHhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjRh]hdrm_gem_object}(hjThhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMXhjHubh to map}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjohMXhjEubah}(h]h ]h"]h$]h&]uh1j hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMWhjƁ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:503: ./include/drm/drm_gpuvm.hhM[hj:hhubh)}(hUThis structure represents a single map operation generated by the DRM GPU VA manager.h]hUThis structure represents a single map operation generated by the DRM GPU VA manager.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM8hj:hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_op_unmap (C struct)c.drm_gpuva_op_unmaphNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_op_unmaph]j>)}(hstruct drm_gpuva_op_unmaph](jD)}(hjh]hstruct}(hjӃhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjσhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM>ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjσhhhjhM>ubjg)}(hdrm_gpuva_op_unmaph]jm)}(hj̓h]hdrm_gpuva_op_unmap}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjσhhhjhM>ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj˃hhhjhM>ubah}(h]jƃah ](jjeh"]h$]h&]jj)jhuh1j7hjhM>hjȃhhubj)}(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:503: ./include/drm/drm_gpuvm.hhM^hjhhubah}(h]h ]h"]h$]h&]uh1jhjȃhhhjhM>ubeh}(h]h ](jstructeh"]h$]h&]jjjj-jj-jjjuh1j2hhhj: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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh:}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMbhj1ubjT)}(hGstruct drm_gpuva_op_unmap { struct drm_gpuva *va; bool keep; };h]hGstruct drm_gpuva_op_unmap { struct drm_gpuva *va; bool keep; };}hjRsbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMdhj1ubh)}(h **Members**h]j)}(hjch]hMembers}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMihj1ubj)}(hhh](j)}(h(``va`` the :c:type:`drm_gpuva` to unmap 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:503: ./include/drm/drm_gpuvm.hhMfhj|ubj )}(hhh]h)}(h the :c:type:`drm_gpuva` to unmaph](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjhMfhjubh to unmap}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1j hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjyubj)}(hX?``keep`` Indicates whether this :c:type:`drm_gpuva` is physically contiguous with the original mapping request. Optionally, if :c:type:`keep` is set, drivers may keep the actual page table mappings for this :c:type:`drm_gpuva`, adding the missing page table entries only and update the :c:type:`drm_gpuvm` accordingly.h](j)}(h``keep``h]j)}(hjބh]hkeep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܄ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMohj؄ubj )}(hhh](h)}(hfIndicates whether this :c:type:`drm_gpuva` is physically contiguous with the original mapping request.h](hIndicates whether this }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMkhjubh< is physically contiguous with the original mapping request.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMkhjubh)}(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 }(hj)hhhNhNubh)}(h:c:type:`keep`h]j)}(hj3h]hkeep}(hj5hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjkeepuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMnhj)ubhB is set, drivers may keep the actual page table mappings for this }(hj)hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjWh]h drm_gpuva}(hjYhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjPhMnhj)ubh<, adding the missing page table entries only and update the }(hj)hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjzh]h drm_gpuvm}(hj|hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjPhMnhj)ubh accordingly.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhMnhjubeh}(h]h ]h"]h$]h&]uh1j hj؄ubeh}(h]h ]h"]h$]h&]uh1jhjhMohjyubeh}(h]h ]h"]h$]h&]uh1jhj1ubeh}(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:503: ./include/drm/drm_gpuvm.hhMshj: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.}(hj҅hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM_hj:hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_op_remap (C struct)c.drm_gpuva_op_remaphNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_op_remaph]j>)}(hstruct drm_gpuva_op_remaph](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMeubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMeubjg)}(hdrm_gpuva_op_remaph]jm)}(hjh]hdrm_gpuva_op_remap}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMeubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMeubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMehjhhubj)}(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:503: ./include/drm/drm_gpuvm.hhMwhj9hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMeubeh}(h]h ](jstructeh"]h$]h&]jjjjTjjTjjjuh1j2hhhj: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:503: ./include/drm/drm_gpuvm.hhM{hjXubjT)}(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; };}hjysbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM}hjXubh)}(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:503: ./include/drm/drm_gpuvm.hhMhjXubj)}(hhh](j)}(h/``prev`` the preceding part of a split mapping h](j)}(h``prev``h]j)}(hjh]hprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.h(hMhjubj )}(hhh]h)}(h%the preceding part of a split mappingh]h%the preceding part of a split mapping}(hj†hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:503: ./include/drm/drm_gpuvm.hhMhj܆ubj )}(hhh]h)}(h&the subsequent part of a split mappingh]h&the subsequent part of a split mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hj܆ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``unmap`` the unmap operation for the original existing mappingh](j)}(h ``unmap``h]j)}(hjh]hunmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubj )}(hhh]h)}(h5the unmap operation for the original existing mappingh]h5the unmap operation for the original existing mapping}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj1ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubeh}(h]h ]h"]h$]h&]uh1jhjXubeh}(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:503: ./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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMxhj: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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMzhj: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 }(hjhhhNhNubj)}(h **unmap**h]hunmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA operation takes care of removing the original existing mapping. }(hjhhhNhNubj)}(h**prev**h]hprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh& is used to remap the preceding part, }(hjhhhNhNubj)}(h**next**h]hnext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh the subsequent part.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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 }(hjׇhhhNhNubj)}(h**prev**h]hprev}(hj߇hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjׇubh or }(hjׇhhhNhNubj)}(h**next**h]hnext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjׇubh is NULL.}(hjׇhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj ubhL structure which typically is embedded in larger driver specific structures.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1hMhj:hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gpuva_op_prefetch (C struct)c.drm_gpuva_op_prefetchhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_op_prefetchh]j>)}(hstruct drm_gpuva_op_prefetchh](jD)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjQhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubjV)}(h h]h }(hjchhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQhhhjbhMubjg)}(hdrm_gpuva_op_prefetchh]jm)}(hjOh]hdrm_gpuva_op_prefetch}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQhhhjbhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjMhhhjbhMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1j7hjbhMhjJhhubj)}(hhh]h)}(hGPU VA prefetch operationh]hGPU VA prefetch operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjbhMubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhj: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:503: ./include/drm/drm_gpuvm.hhMhjubjT)}(h;struct drm_gpuva_op_prefetch { struct drm_gpuva *va; };h]h;struct drm_gpuva_op_prefetch { struct drm_gpuva *va; };}hjԈsbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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:503: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]j)}(h*``va`` the :c:type:`drm_gpuva` to prefetchh](j)}(h``va``h]j)}(hjh]hva}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubj )}(hhh]h)}(h#the :c:type:`drm_gpuva` to prefetchh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj'h]h drm_gpuva}(hj)hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh to prefetch}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjDhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj:hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_op (C struct)c.drm_gpuva_ophNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h drm_gpuva_oph]j>)}(hstruct drm_gpuva_oph](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(h drm_gpuva_oph]jm)}(hjh]h drm_gpuva_op}(hjȉhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjĉubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(hGPU VA operationh]hGPU VA operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubj)}(hX}**Definition**:: struct drm_gpuva_op { struct list_head entry; enum drm_gpuva_op_type op; union { struct drm_gpuva_op_map map; struct drm_gpuva_op_remap remap; struct drm_gpuva_op_unmap unmap; struct drm_gpuva_op_prefetch prefetch; }; }; **Members** ``entry`` The :c:type:`list_head` used to distribute instances of this struct within :c:type:`drm_gpuva_ops`. ``op`` the type of the operation ``{unnamed_union}`` anonymous ``map`` the map operation ``remap`` the remap operation ``unmap`` the unmap operation ``prefetch`` the prefetch operationh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubjT)}(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; }; };}hj'sbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh)}(h **Members**h]j)}(hj8h]hMembers}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh](j)}(hn``entry`` The :c:type:`list_head` used to distribute instances of this struct within :c:type:`drm_gpuva_ops`. h](j)}(h ``entry``h]j)}(hjWh]hentry}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjQubj )}(hhh]h)}(hcThe :c:type:`list_head` used to distribute instances of this struct within :c:type:`drm_gpuva_ops`.h](hThe }(hjphhhNhNubh)}(h:c:type:`list_head`h]j)}(hjzh]h list_head}(hj|hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjpubh4 used to distribute instances of this struct within }(hjphhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhjhMhjpubh.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjmubah}(h]h ]h"]h$]h&]uh1j hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjNubj)}(h!``op`` the type of the operation 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:503: ./include/drm/drm_gpuvm.hhMhjъubj )}(hhh]h)}(hthe type of the operationh]hthe type of the operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjъubeh}(h]h ]h"]h$]h&]uh1jhjhMhjNubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhKhj ubj )}(hhh]h)}(h anonymoush]h anonymous}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hKhj&ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjNubj)}(h``map`` the map operation h](j)}(h``map``h]j)}(hjIh]hmap}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjCubj )}(hhh]h)}(hthe map operationh]hthe map operation}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1j hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhjNubj)}(h``remap`` the remap operation h](j)}(h ``remap``h]j)}(hjh]hremap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj|ubj )}(hhh]h)}(hthe remap operationh]hthe remap operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjNubj)}(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:503: ./include/drm/drm_gpuvm.hhMhjubj )}(hhh]h)}(hthe unmap operationh]hthe unmap operation}(hjԋhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjЋhMhjыubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjЋhMhjNubj)}(h#``prefetch`` the prefetch operationh](j)}(h ``prefetch``h]j)}(hjh]hprefetch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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:503: ./include/drm/drm_gpuvm.hhMhj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjNubeh}(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:503: ./include/drm/drm_gpuvm.hhMhj:hhubh)}(h5This structure represents a single generic operation.h]h5This structure represents a single generic operation.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj:hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_ops (C struct)c.drm_gpuva_opshNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h drm_gpuva_opsh]j>)}(hstruct drm_gpuva_opsh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(h drm_gpuva_opsh]jm)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(h&wraps a list of :c:type:`drm_gpuva_op`h](hwraps a list of }(hj،hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j)}jjsbc.drm_gpuva_opsasbj drm_gpuva_opuh1hhjChKhj،ubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjՌhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubj)}(h}**Definition**:: struct drm_gpuva_ops { struct list_head list; }; **Members** ``list`` the :c:type:`list_head`h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubjT)}(h4struct drm_gpuva_ops { struct list_head list; };h]h4struct drm_gpuva_ops { struct list_head list; };}hj;sbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh)}(h **Members**h]j)}(hjLh]hMembers}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh]j)}(h ``list`` the :c:type:`list_head`h](j)}(h``list``h]j)}(hjkh]hlist}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjeubj )}(hhh]h)}(hthe :c:type:`list_head`h](hthe }(hjhhhNhNubh)}(h:c:type:`list_head`h]j)}(hjh]h list_head}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_for_each_op (C macro)c.drm_gpuva_for_each_ophNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_for_each_oph]j>)}(hdrm_gpuva_for_each_oph]jg)}(hdrm_gpuva_for_each_oph]jm)}(hjލh]hdrm_gpuva_for_each_op}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhj܍hhhjhMubah}(h]j׍ah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjٍhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjٍhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhj: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:503: ./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 }(hj4hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj>h]h drm_gpuva_ops}(hj@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj4ubeh}(h]h ]h"]h$]h&]uh1hhj[hMhj0ubah}(h]h ]h"]h$]h&]uh1j.hj[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)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjhubj)}(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:503: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhjhMhjubh! to assign in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:503: ./include/drm/drm_gpuvm.hhMhjߎubj )}(hhh]h)}(h:c:type:`drm_gpuva_ops` to walkh](h)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhjhMhjubh to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjߎubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjhubh)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.$drm_gpuva_for_each_op_safe (C macro)c.drm_gpuva_for_each_op_safehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_for_each_op_safeh]j>)}(hdrm_gpuva_for_each_op_safeh]jg)}(hdrm_gpuva_for_each_op_safeh]jm)}(hj~h]hdrm_gpuva_for_each_op_safe}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhj|hhhjhMubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjyhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjyhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhj: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:503: ./include/drm/drm_gpuvm.hhMhj: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 }(hjԏhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjޏh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj܏ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjԏubeh}(h]h ]h"]h$]h&]uh1hhjhMhjЏubah}(h]h ]h"]h$]h&]uh1j.hjhMhj:hhubj)}(hXl**Parameters** ``op`` :c:type:`drm_gpuva_op` to assign in each iteration step ``next`` :c:type:`next` :c:type:`drm_gpuva_op` to store the next step ``ops`` :c:type:`drm_gpuva_ops` to walk **Description** This iterator walks over all ops within a given list of operations. It is implemented with list_for_each_safe(), so save against removal of elements.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh](j)}(h?``op`` :c:type:`drm_gpuva_op` to assign in each iteration step h](j)}(h``op``h]j)}(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:503: ./include/drm/drm_gpuvm.hhMhj'ubj )}(hhh]h)}(h7:c:type:`drm_gpuva_op` to assign in each iteration steph](h)}(h:c:type:`drm_gpuva_op`h]j)}(hjLh]h drm_gpuva_op}(hjNhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhjBhMhjFubh! to assign in each iteration step}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1j hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhj$ubj)}(hF``next`` :c:type:`next` :c:type:`drm_gpuva_op` 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubj )}(hhh]h)}(h<:c:type:`next` :c:type:`drm_gpuva_op` to store the next steph](h)}(h:c:type:`next`h]j)}(hjh]hnext}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjnextuh1hhjhMhjubh }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjǐh]h drm_gpuva_op}(hjɐhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjŐubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhjhMhjubh to store the next step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj$ubj)}(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:503: ./include/drm/drm_gpuvm.hhMhjubj )}(hhh]h)}(h:c:type:`drm_gpuva_ops` to walkh](h)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hj!hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhjhMhjubh to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj$ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh)}(hThis iterator walks over all ops within a given list of operations. It is implemented with list_for_each_safe(), so save against removal of elements.h]hThis iterator walks over all ops within a given list of operations. It is implemented with list_for_each_safe(), so save against removal of elements.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.,drm_gpuva_for_each_op_from_reverse (C macro)$c.drm_gpuva_for_each_op_from_reversehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h"drm_gpuva_for_each_op_from_reverseh]j>)}(h"drm_gpuva_for_each_op_from_reverseh]jg)}(h"drm_gpuva_for_each_op_from_reverseh]jm)}(hjh]h"drm_gpuva_for_each_op_from_reverse}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjϑjjϑjjjuh1j2hhhj:hNhNubh)}(h0``drm_gpuva_for_each_op_from_reverse (op, ops)``h]j)}(hjՑh]h,drm_gpuva_for_each_op_from_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:503: ./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:503: ./include/drm/drm_gpuvm.hhMhjubah}(h]h ]h"]h$]h&]uh1j.hjhMhj: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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh](j)}(h?``op`` :c:type:`drm_gpuva_op` to assign in each iteration step h](j)}(h``op``h]j)}(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:503: ./include/drm/drm_gpuvm.hhMhj#ubj )}(hhh]h)}(h7:c:type:`drm_gpuva_op` to assign in each iteration steph](h)}(h:c:type:`drm_gpuva_op`h]j)}(hjHh]h drm_gpuva_op}(hjJhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhj>hMhjBubh! to assign in each iteration step}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1j hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj ubj)}(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:503: ./include/drm/drm_gpuvm.hhMhj{ubj )}(hhh]h)}(h:c:type:`drm_gpuva_ops` to walkh](h)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhjhMhjubh to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjےh]h Description}(hjݒhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjْubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh)}(hwThis iterator walks over all ops within a given list of operations beginning from the given operation in reverse order.h]hwThis iterator walks over all ops within a given list of operations beginning from the given operation in reverse order.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_gpuva_for_each_op_reverse (C macro)c.drm_gpuva_for_each_op_reversehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_for_each_op_reverseh]j>)}(hdrm_gpuva_for_each_op_reverseh]jg)}(hdrm_gpuva_for_each_op_reverseh]jm)}(hjh]hdrm_gpuva_for_each_op_reverse}(hj$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj7hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj7hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj7hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjPjjPjjjuh1j2hhhj:hNhNubh)}(h+``drm_gpuva_for_each_op_reverse (op, ops)``h]j)}(hjVh]h'drm_gpuva_for_each_op_reverse (op, ops)}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj: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 }(hjphhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjzh]h drm_gpuva_ops}(hj|hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjpubh in reverse}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjlubah}(h]h ]h"]h$]h&]uh1j.hjhMhj:hhubj)}(h**Parameters** ``op`` :c:type:`drm_gpuva_op` to assign in each iteration step ``ops`` :c:type:`drm_gpuva_ops` to walk **Description** This iterator walks over all ops within a given list of operations in reverseh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubj)}(hhh](j)}(h?``op`` :c:type:`drm_gpuva_op` to assign in each iteration step h](j)}(h``op``h]j)}(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:503: ./include/drm/drm_gpuvm.hhMhjǓubj )}(hhh]h)}(h7:c:type:`drm_gpuva_op` to assign in each iteration steph](h)}(h:c:type:`drm_gpuva_op`h]j)}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhjhMhjubh! to assign in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjǓubeh}(h]h ]h"]h$]h&]uh1jhjhMhjēubj)}(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:503: ./include/drm/drm_gpuvm.hhMhjubj )}(hhh]h)}(h:c:type:`drm_gpuva_ops` to walkh](h)}(h:c:type:`drm_gpuva_ops`h]j)}(hjDh]h drm_gpuva_ops}(hjFhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhj:hMhj>ubh to walk}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjēubeh}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh)}(hMThis iterator walks over all ops within a given list of operations in reverseh]hMThis iterator walks over all ops within a given list of operations in reverse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_first_op (C macro)c.drm_gpuva_first_ophNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_first_oph]j>)}(hdrm_gpuva_first_oph]jg)}(hdrm_gpuva_first_oph]jm)}(hjh]hdrm_gpuva_first_op}(hjȔhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjĔubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM ubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj۔hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj۔hM hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj۔hM ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubh)}(h``drm_gpuva_first_op (ops)``h]j)}(hjh]hdrm_gpuva_first_op (ops)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj:hhubj.)}(hFreturns the first :c:type:`drm_gpuva_op` from :c:type:`drm_gpuva_ops` h]h)}(hEreturns the first :c:type:`drm_gpuva_op` from :c:type:`drm_gpuva_ops`h](hreturns the first }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjh]h drm_gpuva_op}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM hjubh from }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjBh]h drm_gpuva_ops}(hjDhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhj;hM hjubeh}(h]h ]h"]h$]h&]uh1hhj;hM hjubah}(h]h ]h"]h$]h&]uh1j.hj;hM hj:hhubj)}(ha**Parameters** ``ops`` the :c:type:`drm_gpuva_ops` to get the fist :c:type:`drm_gpuva_op` fromh](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjkubj)}(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)}(hjh]hops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubj )}(hhh]h)}(hGthe :c:type:`drm_gpuva_ops` to get the fist :c:type:`drm_gpuva_op` fromh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM hjubh to get the fist }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjוh]h drm_gpuva_op}(hjٕhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjՕubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhjЕhM hjubh from}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjЕhM hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_last_op (C macro)c.drm_gpuva_last_ophNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_last_oph]j>)}(hdrm_gpuva_last_oph]jg)}(hdrm_gpuva_last_oph]jm)}(hj*h]hdrm_gpuva_last_op}(hj4hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhj(hhhjGhMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1j7hjGhMhj%hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj%hhhjGhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj`jj`jjjuh1j2hhhj:hNhNubh)}(h``drm_gpuva_last_op (ops)``h]j)}(hjfh]hdrm_gpuva_last_op (ops)}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj: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 }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh from }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhj|ubah}(h]h ]h"]h$]h&]uh1j.hjhMhj:hhubj)}(ha**Parameters** ``ops`` the :c:type:`drm_gpuva_ops` to get the last :c:type:`drm_gpuva_op` fromh](h)}(h**Parameters**h]j)}(hjݖh]h Parameters}(hjߖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۖubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjזubj)}(hhh]j)}(hO``ops`` the :c:type:`drm_gpuva_ops` to get the last :c:type:`drm_gpuva_op` fromh](j)}(h``ops``h]j)}(hjh]hops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubj )}(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}(hj!hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh to get the last }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjCh]h drm_gpuva_op}(hjEhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhj<hMhjubh from}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj<hMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjזubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_prev_op (C macro)c.drm_gpuva_prev_ophNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_prev_oph]j>)}(hdrm_gpuva_prev_oph]jg)}(hdrm_gpuva_prev_oph]jm)}(hjh]hdrm_gpuva_prev_op}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj̗jj̗jjjuh1j2hhhj:hNhNubh)}(h``drm_gpuva_prev_op (op)``h]j)}(hjҗh]hdrm_gpuva_prev_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:503: ./include/drm/drm_gpuvm.hhMhj: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)}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh in the list}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j.hjhMhj:hhubj)}(h;**Parameters** ``op`` the current :c:type:`drm_gpuva_op`h](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj$ubj)}(hhh]j)}(h)``op`` the current :c:type:`drm_gpuva_op`h](j)}(h``op``h]j)}(hjIh]hop}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM hjCubj )}(hhh]h)}(h"the current :c:type:`drm_gpuva_op`h](h the current }(hjbhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjlh]h drm_gpuva_op}(hjnhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjbubeh}(h]h ]h"]h$]h&]uh1hhjhMhj_ubah}(h]h ]h"]h$]h&]uh1j hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_next_op (C macro)c.drm_gpuva_next_ophNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdrm_gpuva_next_oph]j>)}(hdrm_gpuva_next_oph]jg)}(hdrm_gpuva_next_oph]jm)}(hjh]hdrm_gpuva_next_op}(hjƘhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj˜ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM ubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj٘hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj٘hM hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj٘hM ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubh)}(h``drm_gpuva_next_op (op)``h]j)}(hjh]hdrm_gpuva_next_op (op)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM"hj:hhubj.)}(h(next :c:type:`drm_gpuva_op` in the list h]h)}(h'next :c:type:`drm_gpuva_op` in the listh](hnext }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM hjubh in the list}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hM hjubah}(h]h ]h"]h$]h&]uh1j.hj9hM hj:hhubj)}(h;**Parameters** ``op`` the current :c:type:`drm_gpuva_op`h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM$hjJubj)}(hhh]j)}(h)``op`` the current :c:type:`drm_gpuva_op`h](j)}(h``op``h]j)}(hjoh]hop}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM&hjiubj )}(hhh]h)}(h"the current :c:type:`drm_gpuva_op`h](h the current }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM!hjubeh}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1j hjiubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_ops (C struct)c.drm_gpuvm_opshNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h drm_gpuvm_opsh]j>)}(hstruct drm_gpuvm_opsh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM&ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM&ubjg)}(h drm_gpuvm_opsh]jm)}(hjh]h drm_gpuvm_ops}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM&ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM&ubah}(h]jۙah ](jjeh"]h$]h&]jj)jhuh1j7hjhM&hjݙhhubj)}(hhh]h)}(hcallbacks for split/merge stepsh]hcallbacks for split/merge steps}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM?hj'hhubah}(h]h ]h"]h$]h&]uh1jhjݙhhhjhM&ubeh}(h]h ](jstructeh"]h$]h&]jjjjBjjBjjjuh1j2hhhj: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 existent mapping This callback is called when existent mapping needs to be unmapped. This is the case when either a newly requested mapping encloses an existent mapping or an 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](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh:}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMChjFubjT)}(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); };}hjgsbah}(h]h ]h"]h$]h&]jjuh1jShS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMEhjFubh)}(h **Members**h]j)}(hjxh]hMembers}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMQhjFubj)}(hhh](j)}(hi``vm_free`` called when the last reference of a struct drm_gpuvm is dropped This callback is mandatory. h](j)}(h ``vm_free``h]j)}(hjh]hvm_free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMKhjubj )}(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:503: ./include/drm/drm_gpuvm.hhMHhjubh)}(hThis callback is mandatory.h]hThis callback is mandatory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjubj)}(hX ``op_alloc`` called when the :c:type:`drm_gpuvm` allocates a struct drm_gpuva_op Some drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can allocate memory accordingly. This callback is optional. h](j)}(h ``op_alloc``h]j)}(hjߚh]hop_alloc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݚubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMWhjٚubj )}(hhh](h)}(hCcalled when the :c:type:`drm_gpuvm` allocates a struct drm_gpuva_oph](hcalled when the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMPhjubh allocates a struct drm_gpuva_op}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMPhjubh)}(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.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMShjubh)}(hThis callback is optional.h]hThis callback is optional.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubeh}(h]h ]h"]h$]h&]uh1j hjٚubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjubj)}(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)}(hjYh]hop_free}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMchjSubj )}(hhh](h)}(h?called when the :c:type:`drm_gpuvm` frees a struct drm_gpuva_oph](hcalled when the }(hjrhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj|h]h drm_gpuvm}(hj~hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM\hjrubh frees a struct drm_gpuva_op}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM\hjoubh)}(hSome drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly.h]hSome drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM_hjoubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMchjoubeh}(h]h ]h"]h$]h&]uh1j hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMchjubj)}(hX ``vm_bo_alloc`` called when the :c:type:`drm_gpuvm` allocates a struct drm_gpuvm_bo Some drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can allocate memory accordingly. This callback is optional. h](j)}(h``vm_bo_alloc``h]j)}(hjӛh]h vm_bo_alloc}(hj՛hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjћubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMohj͛ubj )}(hhh](h)}(hCcalled when the :c:type:`drm_gpuvm` allocates a struct drm_gpuvm_boh](hcalled when the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhhjubh allocates a struct drm_gpuvm_bo}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhhjubh)}(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:503: ./include/drm/drm_gpuvm.hhMkhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubeh}(h]h ]h"]h$]h&]uh1j hj͛ubeh}(h]h ]h"]h$]h&]uh1jhjhMohjubj)}(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)}(hjMh]h vm_bo_free}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM{hjGubj )}(hhh](h)}(h?called when the :c:type:`drm_gpuvm` frees a struct drm_gpuvm_boh](hcalled when the }(hjfhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjph]h drm_gpuvm}(hjrhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMthjfubh frees a struct drm_gpuvm_bo}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMthjcubh)}(hSome drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly.h]hSome drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMwhjcubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM{hjcubeh}(h]h ]h"]h$]h&]uh1j hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM{hjubj)}(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)}(hjǜh]hvm_bo_validate}(hjɜhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŜubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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:503: ./include/drm/drm_gpuvm.hhMhjݜubh)}(hDrivers receive this callback for every evicted :c:type:`drm_gem_object` being mapped in the corresponding :c:type:`drm_gpuvm`.h](h0Drivers receive this callback for every evicted }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh# being mapped in the corresponding }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjݜubh)}(hkTypically, drivers would call their driver specific variant of ttm_bo_validate() from within this callback.h]hkTypically, drivers would call their driver specific variant of ttm_bo_validate() from within this callback.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjݜubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjܜhMhjubj)}(hX;``sm_step_map`` called from :c:type:`drm_gpuvm_sm_map` to finally insert the mapping once all previous steps were completed The :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively. Can be NULL if :c:type:`drm_gpuvm_sm_map` is used. h](j)}(h``sm_step_map``h]j)}(hjeh]h sm_step_map}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj_ubj )}(hhh](h)}(hkcalled from :c:type:`drm_gpuvm_sm_map` to finally insert the mapping once all previous steps were completedh](h called from }(hj~hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjh]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj~ubhE to finally insert the mapping once all previous steps were completed}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj{ubh)}(hThe :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively.h](hThe }(hjhhhNhNubh)}(h:c:type:`priv`h]j)}(hjh]hpriv}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjprivuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh. pointer matches the one the driver passed to }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjޝh]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjܝubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_mapuh1hhjםhMhjubh or }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_unmapuh1hhjםhMhjubh, respectively.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjםhMhj{ubh)}(h2Can be NULL if :c:type:`drm_gpuvm_sm_map` is used.h](hCan be NULL if }(hj(hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hj2h]hdrm_gpuvm_sm_map}(hj4hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_mapuh1hhjzhMhj(ubh is used.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubeh}(h]h ]h"]h$]h&]uh1j hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjubj)}(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)}(hjkh]h sm_step_remap}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjeubj )}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjh]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_unmapuh1hhjhMhjubh to split up an existent mapping}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(hThis callback is called when existent mapping needs to be split up. This is the case when either a newly requested mapping overlaps or is enclosed by an existent mapping or a partial unmap of an existent mapping is requested.h]hThis callback is called when existent mapping needs to be split up. This is the case when either a newly requested mapping overlaps or is enclosed by an existent mapping or a partial unmap of an existent mapping is requested.}(hjٞhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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)}(hjh]hpriv}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjprivuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_mapuh1hhjhMhjubh or }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hj9h]hdrm_gpuvm_sm_unmap}(hj;hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_unmapuh1hhjhMhjubh, respectively.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(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 }(hj`hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjjh]hdrm_gpuvm_sm_map}(hjlhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj`ubh nor }(hj`hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_unmapuh1hhjhMhj`ubh is used.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hX(``sm_step_unmap`` called from :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to unmap an existent mapping This callback is called when existent mapping needs to be unmapped. This is the case when either a newly requested mapping encloses an existent mapping or an 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_unmap``h]j)}(hjǟh]h sm_step_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:503: ./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 existent mappingh](h called from }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjh]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_unmapuh1hhjhMhjubh to unmap an existent mapping}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjݟubh)}(hThis callback is called when existent mapping needs to be unmapped. This is the case when either a newly requested mapping encloses an existent mapping or an unmap of an existent mapping is requested.h]hThis callback is called when existent mapping needs to be unmapped. This is the case when either a newly requested mapping encloses an existent mapping or an unmap of an existent mapping is requested.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjݟubh)}(hThe :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively.h](hThe }(hjDhhhNhNubh)}(h:c:type:`priv`h]j)}(hjNh]hpriv}(hjPhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjprivuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjDubh. pointer matches the one the driver passed to }(hjDhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjrh]hdrm_gpuvm_sm_map}(hjthhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_mapuh1hhjkhMhjDubh or }(hjDhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_unmapuh1hhjkhMhjDubh, respectively.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhMhjݟubh)}(h[Can be NULL if neither :c:type:`drm_gpuvm_sm_map` nor :c:type:`drm_gpuvm_sm_unmap` is used.h](hCan be NULL if neither }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjƠh]hdrm_gpuvm_sm_map}(hjȠhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjĠubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_mapuh1hhjܟhMhjubh nor }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_unmapuh1hhjܟhMhjubh is used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjܟhMhjݟubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjܟhMhjubeh}(h]h ]h"]h$]h&]uh1jhjFubeh}(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:503: ./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 }(hjAhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjKh]hdrm_gpuvm_sm_map}(hjMhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhM@hjAubh and }(hjAhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjoh]hdrm_gpuvm_sm_unmap}(hjqhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_unmapuh1hhjhhM@hjAubhJ to provide the split/merge steps for map and unmap operations to drivers.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhhM@hj:hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j..drm_gpuva_op_remap_to_unmap_range (C function)#c.drm_gpuva_op_remap_to_unmap_rangehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hivoid drm_gpuva_op_remap_to_unmap_range (const struct drm_gpuva_op_remap *op, u64 *start_addr, u64 *range)h]j>)}(hhvoid drm_gpuva_op_remap_to_unmap_range(const struct drm_gpuva_op_remap *op, u64 *start_addr, u64 *range)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(h!drm_gpuva_op_remap_to_unmap_rangeh]jm)}(h!drm_gpuva_op_remap_to_unmap_rangeh]h!drm_gpuva_op_remap_to_unmap_range}(hjСhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj̡ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hB(const struct drm_gpuva_op_remap *op, u64 *start_addr, u64 *range)h](j)}(h#const struct drm_gpuva_op_remap *oph](jD)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpuva_op_remaph]hdrm_gpuva_op_remap}(hj%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj'modnameN classnameNjj)}j]j)}jjҡsb#c.drm_gpuva_op_remap_to_unmap_rangeasbuh1hhjubjV)}(h h]h }(hjEhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hoph]hop}(hj`hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 *start_addrh](h)}(hhh]jm)}(hu64h]hu64}(hj|hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj~modnameN classnameNjj)}j]jA#c.drm_gpuva_op_remap_to_unmap_rangeasbuh1hhjuubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(h start_addrh]h start_addr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 *rangeh](h)}(hhh]jm)}(hu64h]hu64}(hjѢhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj΢ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjӢmodnameN classnameNjj)}j]jA#c.drm_gpuva_op_remap_to_unmap_rangeasbuh1hhjʢubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjʢubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʢubjm)}(hrangeh]hrange}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjʢubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhj1hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1j2hhhj: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)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjPubj)}(hhh](j)}(h2``const struct drm_gpuva_op_remap *op`` Remap op. h](j)}(h'``const struct drm_gpuva_op_remap *op``h]j)}(hjuh]h#const struct drm_gpuva_op_remap *op}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjoubj )}(hhh]h)}(h Remap op.h]h Remap op.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubj)}(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:503: ./include/drm/drm_gpuvm.hhMhjubj )}(hhh]h)}(h3Output pointer for the start of the required unmap.h]h3Output pointer for the start of the required unmap.}(hjǣhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjãhMhjģubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjãhMhjlubj)}(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:503: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubeh}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjPubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:503: ./include/drm/drm_gpuvm.hhMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_gpuvm_range_valid (C function)c.drm_gpuvm_range_validhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hIbool drm_gpuvm_range_valid (struct drm_gpuvm *gpuvm, u64 addr, u64 range)h]j>)}(hHbool drm_gpuvm_range_valid(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jc)}(hj h]hbool}(hjghhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjchhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjchhhjthMubjg)}(hdrm_gpuvm_range_validh]jm)}(hdrm_gpuvm_range_validh]hdrm_gpuvm_range_valid}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjthMubj)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjämodnameN classnameNjj)}j]j)}jjsbc.drm_gpuvm_range_validasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 addrh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jݤc.drm_gpuvm_range_validasbuh1hhjubjV)}(h h]h }(hj6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(haddrh]haddr}(hjDhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 rangeh](h)}(hhh]jm)}(hu64h]hu64}(hj`hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjbmodnameN classnameNjj)}j]jݤc.drm_gpuvm_range_validasbuh1hhjYubjV)}(h h]h }(hj~hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYubjm)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjthMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj_hhhjthMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1j7hjthMhj\hhubj)}(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}(hj¥hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jݤc.drm_gpuvm_range_validasbj drm_gpuvmuh1hhjthMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjthMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubj)}(hX3**Parameters** ``struct drm_gpuvm *gpuvm`` the GPUVM to check the range for ``u64 addr`` the base address ``u64 range`` the range starting from the base address **Description** Checks whether the range is within the GPUVM's managed boundaries. **Return** true for a valid range, false otherwiseh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(h=``struct drm_gpuvm *gpuvm`` the GPUVM to check the range for h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h the GPUVM to check the range forh]h the GPUVM to check the range for}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(h``u64 addr`` the base address h](j)}(h ``u64 addr``h]j)}(hjTh]hu64 addr}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjNubj )}(hhh]h)}(hthe base addressh]hthe base address}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1j hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjubj)}(h7``u64 range`` the range starting from the base address h](j)}(h ``u64 range``h]j)}(hjh]h u64 range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h(the range starting from the base addressh]h(the range starting from the base address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjȦh]h Description}(hjʦhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƦubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hBChecks whether the range is within the GPUVM's managed boundaries.h]hDChecks whether the range is within the GPUVM’s managed boundaries.}(hjަhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h'true for a valid range, false otherwiseh]h'true for a valid range, false otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.(drm_gpuvm_resv_object_alloc (C function)c.drm_gpuvm_resv_object_allochNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hLstruct drm_gem_object * drm_gpuvm_resv_object_alloc (struct drm_device *drm)h]j>)}(hJstruct drm_gem_object *drm_gpuvm_resv_object_alloc(struct drm_device *drm)h](jD)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj0hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjBhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj0hhhjAhMubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjUmodnameN classnameNjj)}j]j)}jdrm_gpuvm_resv_object_allocsbc.drm_gpuvm_resv_object_allocasbuh1hhj0hhhjAhMubjV)}(h h]h }(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj0hhhjAhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjAhMubjg)}(hdrm_gpuvm_resv_object_alloch]jm)}(hjqh]hdrm_gpuvm_resv_object_alloc}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhjAhMubj)}(h(struct drm_device *drm)h]j)}(hstruct drm_device *drmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hj̧hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjɧubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjΧmodnameN classnameNjj)}j]joc.drm_gpuvm_resv_object_allocasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj0hhhjAhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj,hhhjAhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1j7hjAhMhj)hhubj)}(hhh]h)}(h)allocate a dummy :c:type:`drm_gem_object`h](hallocate a dummy }(hj/hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj9h]hdrm_gem_object}(hj;hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]joc.drm_gpuvm_resv_object_allocasbjdrm_gem_objectuh1hhjthMhj/ubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj,hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1j2hhhj: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)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjoubj)}(hhh]j)}(h<``struct drm_device *drm`` the drivers :c:type:`drm_device` h](j)}(h``struct drm_device *drm``h]j)}(hjh]hstruct drm_device *drm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h the drivers :c:type:`drm_device`h](h the drivers }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_deviceuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjoubh)}(hAllocates a dummy :c:type:`drm_gem_object` which can be passed to drm_gpuvm_init() in order to serve as root GEM object providing the :c:type:`drm_resv` shared across :c:type:`drm_gem_objects` local to a single GPUVM.h](hAllocates a dummy }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh\ which can be passed to drm_gpuvm_init() in order to serve as root GEM object providing the }(hjhhhNhNubh)}(h:c:type:`drm_resv`h]j)}(hj2h]hdrm_resv}(hj4hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_resvuh1hhj+hMhjubh shared across }(hjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjUh]hdrm_gem_objects}(hjWhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhj+hMhjubh local to a single GPUVM.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hMhjoubh)}(h **Return**h]j)}(hj~h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjoubh)}(h8the :c:type:`drm_gem_object` on success, NULL on failureh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh on success, NULL on failure}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_init (C function)c.drm_gpuvm_inithNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(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>)}(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](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gpuvm_inith]jm)}(hdrm_gpuvm_inith]hdrm_gpuvm_init}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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](jD)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjCmodnameN classnameNjj)}j]j)}jj sbc.drm_gpuvm_initasbuh1hhjubjV)}(h h]h }(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hj|hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](jD)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj̪hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hj٪hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum drm_gpuvm_flags flagsh](jD)}(hjGh]henum}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpuvm_flagsh]hdrm_gpuvm_flags}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j]c.drm_gpuvm_initasbuh1hhjubjV)}(h h]h }(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hflagsh]hflags}(hj<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_device *drmh](jD)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjQubjV)}(h h]h }(hjbhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQubh)}(hhh]jm)}(h drm_deviceh]h drm_device}(hjshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjumodnameN classnameNjj)}j]j]c.drm_gpuvm_initasbuh1hhjQubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *r_objh](jD)}(hjh]hstruct}(hjūhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjҫhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j]c.drm_gpuvm_initasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hr_objh]hr_obj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 start_offseth](h)}(hhh]jm)}(hu64h]hu64}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:modnameN classnameNjj)}j]j]c.drm_gpuvm_initasbuh1hhj1ubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1ubjm)}(h start_offseth]h start_offset}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 rangeh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j]c.drm_gpuvm_initasbuh1hhjyubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjyubjm)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 reserve_offseth](h)}(hhh]jm)}(hu64h]hu64}(hjȬhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjŬubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjʬmodnameN classnameNjj)}j]j]c.drm_gpuvm_initasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hreserve_offseth]hreserve_offset}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 reserve_rangeh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j]c.drm_gpuvm_initasbuh1hhj ubjV)}(h h]h }(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubjm)}(h reserve_rangeh]h reserve_range}(hj<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct drm_gpuvm_ops *opsh](jD)}(hj h]hconst}(hjUhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjQubjV)}(h h]h }(hjbhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQubjD)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjQubjV)}(h h]h }(hj}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQubh)}(hhh]jm)}(h drm_gpuvm_opsh]h drm_gpuvm_ops}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j]c.drm_gpuvm_initasbuh1hhjQubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(hopsh]hops}(hjǭhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjީhhhjhMubah}(h]j٩ah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhj۩hhubj)}(hhh]h)}(h initialize a :c:type:`drm_gpuvm`h](h initialize a }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j]c.drm_gpuvm_initasbj drm_gpuvmuh1hhjthMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj۩hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1j2hhhj: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)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj1ubj)}(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)}(hjVh]hstruct drm_gpuvm *gpuvm}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjPubj )}(hhh]h)}(h0pointer to the :c:type:`drm_gpuvm` to initializeh](hpointer to the }(hjohhhNh+Nubh)}(h:c:type:`drm_gpuvm`h]j)}(hjyh]h drm_gpuvm}(hj{hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjkhMhjoubh to initialize}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1j hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjMubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(hthe name of the GPU VA spaceh]hthe name of the GPU VA space}(hjˮhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjǮhMhjȮubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjǮhMhjMubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h,the :c:type:`drm_gpuvm_flags` for this GPUVMh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_flags`h]j)}(hjh]hdrm_gpuvm_flags}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_flagsuh1hhjhMhjubh for this GPUVM}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjMubj)}(hG``struct drm_device *drm`` the :c:type:`drm_device` this VM resides in h](j)}(h``struct drm_device *drm``h]j)}(hjGh]hstruct drm_device *drm}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjAubj )}(hhh]h)}(h+the :c:type:`drm_device` this VM resides inh](hthe }(hj`hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjjh]h drm_device}(hjlhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_deviceuh1hhj\hMhj`ubh this VM resides in}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1j hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjMubj)}(hs``struct drm_gem_object *r_obj`` the resv :c:type:`drm_gem_object` providing the GPUVM's common :c:type:`dma_resv` h](j)}(h ``struct drm_gem_object *r_obj``h]j)}(hjh]hstruct drm_gem_object *r_obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(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)}(hjƯh]hdrm_gem_object}(hjȯhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjįubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhMhjubh providing the GPUVM’s common }(hjhhhNhNubh)}(h:c:type:`dma_resv`h]j)}(hjh]hdma_resv}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_resvuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjMubj)}(h:``u64 start_offset`` the start offset of the GPU VA space h](j)}(h``u64 start_offset``h]j)}(hjh]hu64 start_offset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h$the start offset of the GPU VA spaceh]h$the start offset of the GPU VA space}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjMubj)}(h+``u64 range`` the size of the GPU VA space h](j)}(h ``u64 range``h]j)}(hjWh]h u64 range}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjQubj )}(hhh]h)}(hthe size of the GPU VA spaceh]hthe size of the GPU VA space}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1j hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjMubj)}(hD``u64 reserve_offset`` the start of the kernel reserved GPU VA area h](j)}(h``u64 reserve_offset``h]j)}(hjh]hu64 reserve_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjMubj)}(hB``u64 reserve_range`` the size of the kernel reserved GPU VA area h](j)}(h``u64 reserve_range``h]j)}(hjɰh]hu64 reserve_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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjðubj )}(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&]uh1hhjްhMhj߰ubah}(h]h ]h"]h$]h&]uh1j hjðubeh}(h]h ]h"]h$]h&]uh1jhjްhMhjMubj)}(h``const struct drm_gpuvm_ops *ops`` :c:type:`drm_gpuvm_ops` called on :c:type:`drm_gpuvm_sm_map` / :c:type:`drm_gpuvm_sm_unmap` h](j)}(h#``const struct drm_gpuvm_ops *ops``h]j)}(hjh]hconst struct drm_gpuvm_ops *ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(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)}(hj!h]h drm_gpuvm_ops}(hj#hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_opsuh1hhjhMhjubh called on }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjDh]hdrm_gpuvm_sm_map}(hjFhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_mapuh1hhjhMhjubh / }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j)}(hjgh]hdrm_gpuvm_sm_unmap}(hjihhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_unmapuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjMubeh}(h]h ]h"]h$]h&]uh1jhj1ubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj1ubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh3 must be initialized with this function before use.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj۱hMhj1ubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> must be cleared to 0 before calling this function. The given }(hjhhhNhNubh)}(h:c:type:`name`h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjnameuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh@ is expected to be managed by the surrounding driver structures.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_put (C function)c.drm_gpuvm_puthNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h,void drm_gpuvm_put (struct drm_gpuvm *gpuvm)h]j>)}(h+void drm_gpuvm_put(struct drm_gpuvm *gpuvm)h](jc)}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjFhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM2ubjV)}(h h]h }(hjYhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjFhhhjXhM2ubjg)}(h drm_gpuvm_puth]jm)}(h drm_gpuvm_puth]h drm_gpuvm_put}(hjkhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjXhM2ubj)}(h(struct drm_gpuvm *gpuvm)h]j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjmsbc.drm_gpuvm_putasbuh1hhjubjV)}(h h]h }(hjŲhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjӲhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjFhhhjXhM2ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjBhhhjXhM2ubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1j7hjXhM2hj?hhubj)}(hhh]h)}(h!drop a struct drm_gpuvm referenceh]h!drop a struct drm_gpuvm reference}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM2hjhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjXhM2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1j2hhhj: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)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM6hj&ubj)}(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)}(hjKh]hstruct drm_gpuvm *gpuvm}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM3hjEubj )}(hhh]h)}(h3the :c:type:`drm_gpuvm` to release the reference ofh](hthe }(hjdhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjnh]h drm_gpuvm}(hjphhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj`hM3hjdubh to release the reference of}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`hM3hjaubah}(h]h ]h"]h$]h&]uh1j hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hM3hjBubah}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM5hj&ubh)}(h'This releases a reference to **gpuvm**.h](hThis releases a reference to }(hjhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjdzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM4hj&ubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM6hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!drm_gpuvm_prepare_vm (C function)c.drm_gpuvm_prepare_vmhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hbint drm_gpuvm_prepare_vm (struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h]j>)}(haint drm_gpuvm_prepare_vm(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMJubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhjhMJubjg)}(hdrm_gpuvm_prepare_vmh]jm)}(hdrm_gpuvm_prepare_vmh]hdrm_gpuvm_prepare_vm}(hj0hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMJubj)}(hI(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjHubjV)}(h h]h }(hjYhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjHubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjlmodnameN classnameNjj)}j]j)}jj2sbc.drm_gpuvm_prepare_vmasbuh1hhjHubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj˴hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hjܴhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjٴubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj޴modnameN classnameNjj)}j]jc.drm_gpuvm_prepare_vmasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunsigned int num_fencesh](jc)}(hunsignedh]hunsigned}(hj.hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj*ubjV)}(h h]h }(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj*ubjc)}(hinth]hint}(hjJhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj*ubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj*ubjm)}(h num_fencesh]h num_fences}(hjfhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMJubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMJhjhhubj)}(hhh]h)}(h"prepare the GPUVMs common dma-resvh]h"prepare the GPUVMs common dma-resv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMJhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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:506: ./drivers/gpu/drm/drm_gpuvm.chMNhjubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMKhj˵ubj )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMKhjubeh}(h]h ]h"]h$]h&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1j hj˵ubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjȵubj)}(h9``struct drm_exec *exec`` the :c:type:`drm_exec` context h](j)}(h``struct drm_exec *exec``h]j)}(hj)h]hstruct drm_exec *exec}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMLhj#ubj )}(hhh]h)}(hthe :c:type:`drm_exec` contexth](hthe }(hjBhhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hjLh]hdrm_exec}(hjNhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_execuh1hhj>hMLhjBubh context}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj>hMLhj?ubah}(h]h ]h"]h$]h&]uh1j hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMLhjȵ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:506: ./drivers/gpu/drm/drm_gpuvm.chMMhjubj )}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_fencesuh1hhjhMMhjubh to reserve}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjȵ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:506: ./drivers/gpu/drm/drm_gpuvm.chMOhjubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMNhjubh; if }(hjhhhNhNubj)}(h**num_fences**h]h num_fences}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ is zero drm_exec_lock_obj() is called instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMNhjubh)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMQhjubh)}(h **Return**h]j)}(hjNh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMThjubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMUhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.&drm_gpuvm_prepare_objects (C function)c.drm_gpuvm_prepare_objectshNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hgint drm_gpuvm_prepare_objects (struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h]j>)}(hfint drm_gpuvm_prepare_objects(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gpuvm_prepare_objectsh]jm)}(hdrm_gpuvm_prepare_objectsh]hdrm_gpuvm_prepare_objects}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hI(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjзhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj̷ubjV)}(h h]h }(hjݷhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj̷ubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gpuvm_prepare_objectsasbuh1hhj̷ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj̷ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̷ubjm)}(hgpuvmh]hgpuvm}(hj)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj̷ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjȷubj)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj>ubjV)}(h h]h }(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hj`hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjbmodnameN classnameNjj)}j]j c.drm_gpuvm_prepare_objectsasbuh1hhj>ubjV)}(h h]h }(hj~hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjȷubj)}(hunsigned int num_fencesh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hinth]hint}(hjθhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjܸhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h num_fencesh]h num_fences}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjȷubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(hprepare all assoiciated BOsh]hprepare all assoiciated BOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1j2hhhj: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)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj0ubj)}(hhh](j)}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjUh]hstruct drm_gpuvm *gpuvm}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjOubj )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjnhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjxh]h drm_gpuvm}(hjzhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjjhMhjnubeh}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1j hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjLubj)}(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:506: ./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)}(hjйh]hdrm_exec}(hjҹhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjιubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_execuh1hhj¹hMhjƹubh locking context}(hjƹhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj¹hMhjùubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj¹hMhjLubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h-the amount of :c:type:`dma_fences` to reserveh](hthe amount of }(hj"hhhNhNubh)}(h:c:type:`dma_fences`h]j)}(hj,h]h dma_fences}(hj.hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_fencesuh1hhjhMhj"ubh to reserve}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjLubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj0ubh)}(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 }(hj}hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj}ubh the given }(hj}hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMhj}ubh contains mappings of; if }(hj}hhhNhNubj)}(h**num_fences**h]h num_fences}(hj̺hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh/ is zero drm_exec_lock_obj() is called instead.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj0ubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj0ubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj0ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj0ubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj0ubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj0ubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.$drm_gpuvm_prepare_range (C function)c.drm_gpuvm_prepare_rangehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hzint drm_gpuvm_prepare_range (struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 addr, u64 range, unsigned int num_fences)h]j>)}(hyint drm_gpuvm_prepare_range(struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 addr, u64 range, unsigned int num_fences)h](jc)}(hinth]hint}(hjphhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjlhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjlhhhj~hMubjg)}(hdrm_gpuvm_prepare_rangeh]jm)}(hdrm_gpuvm_prepare_rangeh]hdrm_gpuvm_prepare_range}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjlhhhj~hMubj)}(h^(struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 addr, u64 range, unsigned int num_fences)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hj˻hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjȻubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjͻmodnameN classnameNjj)}j]j)}jjsbc.drm_gpuvm_prepare_rangeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hj=hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj?modnameN classnameNjj)}j]jc.drm_gpuvm_prepare_rangeasbuh1hhjubjV)}(h h]h }(hj[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hexech]hexec}(hjvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 addrh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_prepare_rangeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 rangeh](h)}(hhh]jm)}(hu64h]hu64}(hjڼhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj׼ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjܼmodnameN classnameNjj)}j]jc.drm_gpuvm_prepare_rangeasbuh1hhjӼubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjӼubjm)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjӼubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_fencesh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hj-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hinth]hint}(hj;hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjIhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h num_fencesh]h num_fences}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjlhhhj~hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhhj~hMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1j7hj~hMhjehhubj)}(hhh]h)}(h+prepare all BOs mapped within a given rangeh]h+prepare all BOs mapped within a given range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubj)}(hXE**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` ``struct drm_exec *exec`` the :c:type:`drm_exec` locking context ``u64 addr`` the start address within the VA space ``u64 range`` the range to iterate within the VA space ``unsigned int num_fences`` the amount of :c:type:`dma_fences` to reserve **Description** Calls drm_exec_prepare_obj() for all :c:type:`drm_gem_objects` mapped between **addr** and **addr** + **range**; if **num_fences** is zero drm_exec_lock_obj() is called instead. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hj۽hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj׽hMhj۽ubeh}(h]h ]h"]h$]h&]uh1hhj׽hMhjؽubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj׽hMhjubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h&the :c:type:`drm_exec` locking contexth](hthe }(hj3hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hj=h]hdrm_exec}(hj?hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_execuh1hhj/hMhj3ubh locking context}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubj)}(h3``u64 addr`` the start address within the VA space h](j)}(h ``u64 addr``h]j)}(hjvh]hu64 addr}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjpubj )}(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&]uh1j hjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:506: ./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}(hjȾhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjľhMhjžubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjľhMhjubj)}(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:506: ./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)}(hj h]h dma_fences}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_fencesuh1hhjhMhjubh to reserve}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hCalls drm_exec_prepare_obj() for all :c:type:`drm_gem_objects` mapped between **addr** and **addr** + **range**; if **num_fences** is zero drm_exec_lock_obj() is called instead.h](h%Calls drm_exec_prepare_obj() for all }(hj\hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjfh]hdrm_gem_objects}(hjhhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj\ubh mapped between }(hj\hhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh and }(hj\hhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh + }(hj\hhhNhNubj)}(h **range**h]hrange}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh; if }(hj\hhhNhNubj)}(h**num_fences**h]h num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh/ is zero drm_exec_lock_obj() is called instead.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(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:506: ./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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gpuvm_exec_lock (C function)c.drm_gpuvm_exec_lockhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h8int drm_gpuvm_exec_lock (struct drm_gpuvm_exec *vm_exec)h]j>)}(h7int drm_gpuvm_exec_lock(struct drm_gpuvm_exec *vm_exec)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hj,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj+hMubjg)}(hdrm_gpuvm_exec_lockh]jm)}(hdrm_gpuvm_exec_lockh]hdrm_gpuvm_exec_lock}(hj>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj+hMubj)}(h (struct drm_gpuvm_exec *vm_exec)h]j)}(hstruct drm_gpuvm_exec *vm_exech](jD)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjVubjV)}(h h]h }(hjghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVubh)}(hhh]jm)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjzmodnameN classnameNjj)}j]j)}jj@sbc.drm_gpuvm_exec_lockasbuh1hhjVubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(hvm_exech]hvm_exec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj+hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj+hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj+hMhjhhubj)}(hhh]h)}(h(lock all dma-resv of all assoiciated BOsh]h(lock all dma-resv of all assoiciated BOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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. Addionally, 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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hj7hhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j)}(hjAh]hdrm_gpuvm_exec}(hjChhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_execuh1hhj3hMhj7ubh wrapper}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hpAcquires all dma-resv locks of all :c:type:`drm_gem_objects` the given :c:type:`drm_gpuvm` contains mappings of.h](h#Acquires all dma-resv locks of all }(hjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMhjubh contains mappings of.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(hX%Addionally, 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](hqAddionally, 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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_execuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubhZ instance. Typically, drivers would call drm_exec_prepare_obj() from within this callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhjubh)}(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:506: ./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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.&drm_gpuvm_exec_lock_array (C function)c.drm_gpuvm_exec_lock_arrayhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hsint drm_gpuvm_exec_lock_array (struct drm_gpuvm_exec *vm_exec, struct drm_gem_object **objs, unsigned int num_objs)h]j>)}(hrint drm_gpuvm_exec_lock_array(struct drm_gpuvm_exec *vm_exec, struct drm_gem_object **objs, unsigned int num_objs)h](jc)}(hinth]hint}(hjrhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjnhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjnhhhjhMubjg)}(hdrm_gpuvm_exec_lock_arrayh]jm)}(hdrm_gpuvm_exec_lock_arrayh]hdrm_gpuvm_exec_lock_array}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhjhMubj)}(hU(struct drm_gpuvm_exec *vm_exec, struct drm_gem_object **objs, unsigned int num_objs)h](j)}(hstruct drm_gpuvm_exec *vm_exech](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gpuvm_exec_lock_arrayasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvm_exech]hvm_exec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object **objsh](jD)}(hjh]hstruct}(hj!hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]jc.drm_gpuvm_exec_lock_arrayasbuh1hhjubjV)}(h h]h }(hj]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjsh]hobjs}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_objsh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hnum_objsh]hnum_objs}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjnhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjjhhhjhMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjghhubj)}(hhh]h)}(h(lock all dma-resv of all assoiciated BOsh]h(lock all dma-resv of all assoiciated BOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(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)}(hjAh]hstruct drm_gpuvm_exec *vm_exec}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj;ubj )}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hjZhhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j)}(hjdh]hdrm_gpuvm_exec}(hjfhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_execuh1hhjVhMhjZubh wrapper}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1j hj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj8ubj)}(hN``struct drm_gem_object **objs`` additional :c:type:`drm_gem_objects` to lock h](j)}(h ``struct drm_gem_object **objs``h]j)}(hjh]hstruct drm_gem_object **objs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhjhMhjubh to lock}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhjhMhjubh to lock}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(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 }(hjmhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjwh]hdrm_gem_objects}(hjyhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjmubh the given }(hjmhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMhjmubh3 contains mappings of, plus the ones given through }(hjmhhhNhNubj)}(h**objs**h]hobjs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh.}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.&drm_gpuvm_exec_lock_range (C function)c.drm_gpuvm_exec_lock_rangehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hSint drm_gpuvm_exec_lock_range (struct drm_gpuvm_exec *vm_exec, u64 addr, u64 range)h]j>)}(hRint drm_gpuvm_exec_lock_range(struct drm_gpuvm_exec *vm_exec, u64 addr, u64 range)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM/ubjV)}(h h]h }(hj*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj)hM/ubjg)}(hdrm_gpuvm_exec_lock_rangeh]jm)}(hdrm_gpuvm_exec_lock_rangeh]hdrm_gpuvm_exec_lock_range}(hj<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj)hM/ubj)}(h5(struct drm_gpuvm_exec *vm_exec, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm_exec *vm_exech](jD)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjTubjV)}(h h]h }(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjTubh)}(hhh]jm)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]j)}jj>sbc.drm_gpuvm_exec_lock_rangeasbuh1hhjTubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(hvm_exech]hvm_exec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hu64 addrh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_exec_lock_rangeasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(h u64 rangeh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_exec_lock_rangeasbuh1hhjubjV)}(h h]h }(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hrangeh]hrange}(hjAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj)hM/ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj)hM/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj)hM/hjhhubj)}(hhh]h)}(h+prepare all BOs mapped within a given rangeh]h+prepare all BOs mapped within a given range}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM/hjhhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubj)}(hX**Parameters** ``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper ``u64 addr`` the start address within the VA space ``u64 range`` the range to iterate within the VA space **Description** Acquires all dma-resv locks of all :c:type:`drm_gem_objects` mapped between **addr** and **addr** + **range**. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM3hjubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM0hjubj )}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_execuh1hhjhM0hjubh wrapper}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubj)}(h3``u64 addr`` the start address within the VA space h](j)}(h ``u64 addr``h]j)}(hjh]hu64 addr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM1hjubj )}(hhh]h)}(h%the start address within the VA spaceh]h%the start address within the VA space}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubj)}(h7``u64 range`` the range to iterate within the VA space h](j)}(h ``u64 range``h]j)}(hjAh]h u64 range}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM2hj;ubj )}(hhh]h)}(h(the range to iterate within the VA spaceh]h(the range to iterate within the VA space}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhM2hjWubah}(h]h ]h"]h$]h&]uh1j hj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhM2hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM4hjubh)}(hnAcquires all dma-resv locks of all :c:type:`drm_gem_objects` mapped between **addr** and **addr** + **range**.h](h#Acquires all dma-resv locks of all }(hjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j)}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM3hjubh mapped between }(hjhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h **range**h]hrange}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM3hjubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM6hjubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM7hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_validate (C function)c.drm_gpuvm_validatehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hGint drm_gpuvm_validate (struct drm_gpuvm *gpuvm, struct drm_exec *exec)h]j>)}(hFint drm_gpuvm_validate(struct drm_gpuvm *gpuvm, struct drm_exec *exec)h](jc)}(hinth]hint}(hjAhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj=hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj=hhhjOhMubjg)}(hdrm_gpuvm_validateh]jm)}(hdrm_gpuvm_validateh]hdrm_gpuvm_validate}(hjbhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjOhMubj)}(h0(struct drm_gpuvm *gpuvm, struct drm_exec *exec)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjzubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjzubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjdsbc.drm_gpuvm_validateasbuh1hhjzubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_validateasbuh1hhjubjV)}(h h]h }(hj,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hexech]hexec}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj9hhhjOhMubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1j7hjOhMhj6hhubj)}(hhh]h)}(h"validate all BOs marked as evictedh]h"validate all BOs marked as evicted}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjnhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to validate evicted BOs ``struct drm_exec *exec`` the :c:type:`drm_exec` instance used for locking the GPUVM **Description** Calls the :c:type:`drm_gpuvm_ops`::vm_bo_validate callback for all evicted buffer objects being mapped in the given :c:type:`drm_gpuvm`. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(hL``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to validate evicted BOs h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMhjubh to validate evicted BOs}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h:the :c:type:`drm_exec` instance used for locking the GPUVMh](hthe }(hj'hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hj1h]hdrm_exec}(hj3hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_execuh1hhj#hMhj'ubh$ instance used for locking the GPUVM}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hCalls the :c:type:`drm_gpuvm_ops`::vm_bo_validate callback for all evicted buffer objects being mapped in the given :c:type:`drm_gpuvm`.h](h Calls the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hjh]h drm_gpuvm_ops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubhS::vm_bo_validate callback for all evicted buffer objects being mapped in the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMhjubh.}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_gpuvm_resv_add_fence (C function)c.drm_gpuvm_resv_add_fencehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(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>)}(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](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hj-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj,hMubjg)}(hdrm_gpuvm_resv_add_fenceh]jm)}(hdrm_gpuvm_resv_add_fenceh]hdrm_gpuvm_resv_add_fence}(hj?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj,hMubj)}(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](jD)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjWubjV)}(h h]h }(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjWubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjyhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj{modnameN classnameNjj)}j]j)}jjAsbc.drm_gpuvm_resv_add_fenceasbuh1hhjWubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_resv_add_fenceasbuh1hhjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hexech]hexec}(hj$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hstruct dma_fence *fenceh](jD)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj9ubjV)}(h h]h }(hjJhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj9ubh)}(hhh]jm)}(h dma_fenceh]h dma_fence}(hj[hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjXubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj]modnameN classnameNjj)}j]jc.drm_gpuvm_resv_add_fenceasbuh1hhj9ubjV)}(h h]h }(hjyhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(hfenceh]hfence}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(h!enum dma_resv_usage private_usageh](jD)}(hjGh]henum}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdma_resv_usageh]hdma_resv_usage}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_resv_add_fenceasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h private_usageh]h private_usage}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(h enum dma_resv_usage extobj_usageh](jD)}(hjGh]henum}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(hdma_resv_usageh]hdma_resv_usage}(hj.hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj0modnameN classnameNjj)}j]jc.drm_gpuvm_resv_add_fenceasbuh1hhj ubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubjm)}(h extobj_usageh]h extobj_usage}(hjZhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj,hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj,hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj,hMhjhhubj)}(hhh]h)}(h,add fence to private and all extobj dma-resvh]h,add fence to private and all extobj dma-resv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubj)}(hXE**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to add a fence to ``struct drm_exec *exec`` the :c:type:`drm_exec` locking context ``struct dma_fence *fence`` fence to add ``enum dma_resv_usage private_usage`` private dma-resv usage ``enum dma_resv_usage extobj_usage`` extobj dma-resv usageh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(hF``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to add a fence to h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMhjubh to add a fence to}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``struct drm_exec *exec`` the :c:type:`drm_exec` locking context h](j)}(h``struct drm_exec *exec``h]j)}(hj!h]hstruct drm_exec *exec}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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)}(hjDh]hdrm_exec}(hjFhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_execuh1hhj6hMhj:ubh locking context}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(h)``struct dma_fence *fence`` fence to add h](j)}(h``struct dma_fence *fence``h]j)}(hj}h]hstruct dma_fence *fence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjwubj )}(hhh]h)}(h fence to addh]h fence to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h=``enum dma_resv_usage private_usage`` private dma-resv usage h](j)}(h%``enum dma_resv_usage private_usage``h]j)}(hjh]h!enum dma_resv_usage private_usage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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&]uh1j hjubeh}(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:506: ./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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gpuvm_bo_create (C function)c.drm_gpuvm_bo_createhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h_struct drm_gpuvm_bo * drm_gpuvm_bo_create (struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h]j>)}(h]struct drm_gpuvm_bo *drm_gpuvm_bo_create(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](jD)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjEhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjWhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEhhhjVhMubh)}(hhh]jm)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjjmodnameN classnameNjj)}j]j)}jdrm_gpuvm_bo_createsbc.drm_gpuvm_bo_createasbuh1hhjEhhhjVhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEhhhjVhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjVhMubjg)}(hdrm_gpuvm_bo_createh]jm)}(hjh]hdrm_gpuvm_bo_create}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhjVhMubj)}(h5(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_bo_createasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj/ubjV)}(h h]h }(hj@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/ubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjSmodnameN classnameNjj)}j]jc.drm_gpuvm_bo_createasbuh1hhj/ubjV)}(h h]h }(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj/ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhjVhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjAhhhjVhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1j7hjVhMhj>hhubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjVhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(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:506: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj hMhjubh the }(hjhhhNhNubj)}(h**obj**h]hobj}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is mapped in.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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)}(hjch]hstruct drm_gem_object *obj}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj]ubj )}(hhh]h)}(h;The :c:type:`drm_gem_object` being mapped in the **gpuvm**.h](hThe }(hj|hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjxhMhj|ubh being mapped in the }(hj|hhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1j hj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjubeh}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh$ vm_bo_alloc() callback to allocate.}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hCa pointer to the :c:type:`drm_gpuvm_bo` on success, NULL on failureh](ha pointer to the }(hj3hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj=h]h drm_gpuvm_bo}(hj?hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj3ubh on success, NULL on failure}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_bo_put (C function)c.drm_gpuvm_bo_puthNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h2bool drm_gpuvm_bo_put (struct drm_gpuvm_bo *vm_bo)h]j>)}(h1bool drm_gpuvm_bo_put(struct drm_gpuvm_bo *vm_bo)h](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gpuvm_bo_puth]jm)}(hdrm_gpuvm_bo_puth]hdrm_gpuvm_bo_put}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct drm_gpuvm_bo *vm_bo)h]j)}(hstruct drm_gpuvm_bo *vm_boh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gpuvm_bo_putasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvm_boh]hvm_bo}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj}hhhjhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjzhhubj)}(hhh]h)}(h$drop a struct drm_gpuvm_bo referenceh]h$drop a struct drm_gpuvm_bo reference}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1j2hhhj:hNhNubj)}(hX4**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 dma-resv or driver specific GEM gpuva lock. 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)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj`ubj)}(hhh]j)}(hV``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to release the reference of h](j)}(h``struct drm_gpuvm_bo *vm_bo``h]j)}(hjh]hstruct drm_gpuvm_bo *vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h6the :c:type:`drm_gpuvm_bo` to release the reference ofh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjhMhjubh to release the reference of}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj|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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj`ubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj`ubh)}(hXIf 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 dma-resv or driver specific GEM gpuva lock.h](h*If the reference count drops to zero, the }(hjhhhNhNubh)}(h:c:type:`gpuvm_bo`h]j)}(hj$h]hgpuvm_bo}(hj&hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjgpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh 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 dma-resv or driver specific GEM gpuva lock.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhMhj`ubh)}(h9This function may only be called from non-atomic context.h]h9This function may only be called from non-atomic context.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj`ubh)}(h-true if vm_bo was destroyed, false otherwise.h]h-true if vm_bo was destroyed, false otherwise.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_bo_find (C function)c.drm_gpuvm_bo_findhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h]struct drm_gpuvm_bo * drm_gpuvm_bo_find (struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h]j>)}(h[struct drm_gpuvm_bo *drm_gpuvm_bo_find(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM!ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM!ubh)}(hhh]jm)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_gpuvm_bo_findsbc.drm_gpuvm_bo_findasbuh1hhjhhhjhM!ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM!ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM!ubjg)}(hdrm_gpuvm_bo_findh]jm)}(hjh]hdrm_gpuvm_bo_find}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM!ubj)}(h5(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hj:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj<modnameN classnameNjj)}j]jc.drm_gpuvm_bo_findasbuh1hhjubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hjshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_bo_findasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM!ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM!hjhhubj)}(hhh]h)}(h^find the :c:type:`drm_gpuvm_bo` for the given :c:type:`drm_gpuvm` and :c:type:`drm_gem_object`h](h find the }(hj hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jc.drm_gpuvm_bo_findasbj drm_gpuvm_bouh1hhjthMhj ubh for the given }(hj hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj?h]h drm_gpuvm}(hjAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj3j drm_gpuvmuh1hhjthMhj ubh and }(hj hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjbh]hdrm_gem_object}(hjdhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj3jdrm_gem_objectuh1hhjthMhj ubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM!hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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. **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:506: ./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:506: ./drivers/gpu/drm/drm_gpuvm.chM#hjubj )}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhM#hjubh the }(hjhhhNhNubj)}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is mapped in.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjubj)}(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)}(hj&h]hstruct drm_gem_object *obj}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM$hj ubj )}(hhh]h)}(h;The :c:type:`drm_gem_object` being mapped in the **gpuvm**.h](hThe }(hj?hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjIh]hdrm_gem_object}(hjKhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj;hM$hj?ubh being mapped in the }(hj?hhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;hM$hj<ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hM$hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM&hjubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhM%hjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhM%hjubh1. If found, increases the reference count of the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj h]h drm_gpuvm_bo}(hj"hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjhM%hjubh accordingly.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM%hjubh)}(h **Return**h]j)}(hjIh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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)}(hjih]h drm_gpuvm_bo}(hjkhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM*hj_ubh on success, NULL on failure}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM*hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gpuvm_bo_obtain (C function)c.drm_gpuvm_bo_obtainhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h_struct drm_gpuvm_bo * drm_gpuvm_bo_obtain (struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h]j>)}(h]struct drm_gpuvm_bo *drm_gpuvm_bo_obtain(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM7ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM7ubh)}(hhh]jm)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_gpuvm_bo_obtainsbc.drm_gpuvm_bo_obtainasbuh1hhjhhhjhM7ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM7ubjg)}(hdrm_gpuvm_bo_obtainh]jm)}(hjh]hdrm_gpuvm_bo_obtain}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM7ubj)}(h5(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj'ubjV)}(h h]h }(hj8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj'ubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjIhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjKmodnameN classnameNjj)}j]jc.drm_gpuvm_bo_obtainasbuh1hhj'ubjV)}(h h]h }(hjghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj'ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_bo_obtainasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM7ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM7hjhhubj)}(hhh]h)}(hqobtains and instance of the :c:type:`drm_gpuvm_bo` for the given :c:type:`drm_gpuvm` and :c:type:`drm_gem_object`h](hobtains and instance of the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj&h]h drm_gpuvm_bo}(hj(hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jc.drm_gpuvm_bo_obtainasbj drm_gpuvm_bouh1hhjthMhjubh for the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjNh]h drm_gpuvm}(hjPhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjBj drm_gpuvmuh1hhjthMhjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjqh]hdrm_gem_object}(hjshhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjBjdrm_gem_objectuh1hhjthMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM7hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubj)}(hXj**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`. 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)}(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:506: ./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:506: ./drivers/gpu/drm/drm_gpuvm.chM9hjubj )}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhM9hjubh the }(hjhhhNhNubj)}(h**obj**h]hobj}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is mapped in.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjubj)}(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)}(hj5h]hstruct drm_gem_object *obj}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM:hj/ubj )}(hhh]h)}(h;The :c:type:`drm_gem_object` being mapped in the **gpuvm**.h](hThe }(hjNhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjXh]hdrm_gem_object}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjJhM:hjNubh being mapped in the }(hjNhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJhM:hjKubah}(h]h ]h"]h$]h&]uh1j hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM:hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM<hjubh)}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhM;hjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj h]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhM;hjubh1. If found, increases the reference count of the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj/h]h drm_gpuvm_bo}(hj1hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjhM;hjubh, accordingly. If not found, allocates a new }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjRh]h drm_gpuvm_bo}(hjThhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjhM;hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM;hjubh)}(h=A new :c:type:`drm_gpuvm_bo` is added to the GEMs gpuva list.h](hA new }(hjyhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM@hjyubh! is added to the GEMs gpuva list.}(hjyhhhNhNubeh}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMBhjubh)}(hIa pointer to the :c:type:`drm_gpuvm_bo` on success, an ERR_PTR on failureh](ha pointer to the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMChjubh" on success, an ERR_PTR on failure}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMChjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.)drm_gpuvm_bo_obtain_prealloc (C function)c.drm_gpuvm_bo_obtain_preallochNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hQstruct drm_gpuvm_bo * drm_gpuvm_bo_obtain_prealloc (struct drm_gpuvm_bo *__vm_bo)h]j>)}(hOstruct drm_gpuvm_bo *drm_gpuvm_bo_obtain_prealloc(struct drm_gpuvm_bo *__vm_bo)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM[ubjV)}(h h]h }(hj#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj"hM[ubh)}(hhh]jm)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hj4hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]j)}jdrm_gpuvm_bo_obtain_preallocsbc.drm_gpuvm_bo_obtain_preallocasbuh1hhjhhhj"hM[ubjV)}(h h]h }(hjUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj"hM[ubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hM[ubjg)}(hdrm_gpuvm_bo_obtain_prealloch]jm)}(hjRh]hdrm_gpuvm_bo_obtain_prealloc}(hjthhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj"hM[ubj)}(h(struct drm_gpuvm_bo *__vm_bo)h]j)}(hstruct drm_gpuvm_bo *__vm_boh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jPc.drm_gpuvm_bo_obtain_preallocasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h__vm_boh]h__vm_bo}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj"hM[ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj"hM[ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj"hM[hj hhubj)}(hhh]h)}(hqobtains and instance of the :c:type:`drm_gpuvm_bo` for the given :c:type:`drm_gpuvm` and :c:type:`drm_gem_object`h](hobtains and instance of the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jPc.drm_gpuvm_bo_obtain_preallocasbj drm_gpuvm_bouh1hhjthMhjubh for the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjBh]h drm_gpuvm}(hjDhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj6j drm_gpuvmuh1hhjthMhjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjeh]hdrm_gem_object}(hjghhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj6jdrm_gem_objectuh1hhjthMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM[hj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hM[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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. 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:506: ./drivers/gpu/drm/drm_gpuvm.chM_hjubj)}(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)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM]hjubj )}(hhh]h)}(h$A pre-allocated struct drm_gpuvm_bo.h]h$A pre-allocated struct drm_gpuvm_bo.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM_hjubh)}(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 }(hj hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM^hj ubh+ representing the combination of the given }(hj hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj:h]h drm_gpuvm}(hj<hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj3hM^hj ubh and }(hj hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj]h]hdrm_gem_object}(hj_hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj3hM^hj ubh7. If found, increases the reference count of the found }(hj hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhj3hM^hj ubh accordingly, while the }(hj hhhNhNubj)}(h **__vm_bo**h]h__vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, reference count is decreased. If not found }(hj hhhNhNubj)}(h **__vm_bo**h]h__vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh= is returned without further increase of the reference count.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3hM^hjubh)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMdhjubh! is added to the GEMs gpuva list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMdhjubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMfhjubh)}(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}(hj!hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMghjubh or }(hjhhhNhNubj)}(h **__vm_bo**h]h__vm_bo}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if no existing }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjUh]h drm_gpuvm_bo}(hjWhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhj<hMghjubh was found}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj<hMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.$drm_gpuvm_bo_extobj_add (C function)c.drm_gpuvm_bo_extobj_addhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h9void drm_gpuvm_bo_extobj_add (struct drm_gpuvm_bo *vm_bo)h]j>)}(h8void drm_gpuvm_bo_extobj_add(struct drm_gpuvm_bo *vm_bo)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gpuvm_bo_extobj_addh]jm)}(hdrm_gpuvm_bo_extobj_addh]hdrm_gpuvm_bo_extobj_add}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct drm_gpuvm_bo *vm_bo)h]j)}(hstruct drm_gpuvm_bo *vm_boh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gpuvm_bo_extobj_addasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvm_boh]hvm_bo}(hj2hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(hHadds the :c:type:`drm_gpuvm_bo` to its :c:type:`drm_gpuvm`'s extobj listh](h adds the }(hj\hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjfh]h drm_gpuvm_bo}(hjhhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jc.drm_gpuvm_bo_extobj_addasbj drm_gpuvm_bouh1hhjthMhj\ubh to its }(hj\hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjthMhj\ubh’s extobj list}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]j)}(ho``struct drm_gpuvm_bo *vm_bo`` The :c:type:`drm_gpuvm_bo` to add to its :c:type:`drm_gpuvm`'s the extobj list. h](j)}(h``struct drm_gpuvm_bo *vm_bo``h]j)}(hjh]hstruct drm_gpuvm_bo *vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(hOThe :c:type:`drm_gpuvm_bo` to add to its :c:type:`drm_gpuvm`'s the extobj list.h](hThe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj h]h drm_gpuvm_bo}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjhMhjubh to add to its }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj.h]h drm_gpuvm}(hj0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMhjubh’s the extobj list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(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)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhMhjubh! is an external object, actually.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_bo_evict (C function)c.drm_gpuvm_bo_evicthNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h@void drm_gpuvm_bo_evict (struct drm_gpuvm_bo *vm_bo, bool evict)h]j>)}(h?void drm_gpuvm_bo_evict(struct drm_gpuvm_bo *vm_bo, bool evict)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gpuvm_bo_evicth]jm)}(hdrm_gpuvm_bo_evicth]hdrm_gpuvm_bo_evict}(hj'hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h((struct drm_gpuvm_bo *vm_bo, bool evict)h](j)}(hstruct drm_gpuvm_bo *vm_boh](jD)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj?ubjV)}(h h]h }(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj?ubh)}(hhh]jm)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjahhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjcmodnameN classnameNjj)}j]j)}jj)sbc.drm_gpuvm_bo_evictasbuh1hhj?ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj?ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjm)}(hvm_boh]hvm_bo}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(h bool evicth](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hevicth]hevict}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j}c.drm_gpuvm_bo_evictasbj drm_gpuvm_bouh1hhjthMhjubh to / from the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvms`h]j)}(hj,h]h drm_gpuvms}(hj.hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj j drm_gpuvmsuh1hhjthMhjubh evicted list}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1j2hhhj: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_gpuvms` evicted list.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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjaubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h+the :c:type:`drm_gpuvm_bo` to add or removeh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjhMhjubh to add or remove}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubj)}(h7``bool evict`` indicates whether the object is evicted h](j)}(h``bool evict``h]j)}(hjh]h bool evict}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h'indicates whether the object is evictedh]h'indicates whether the object is evicted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjaubh)}(hZAdds a :c:type:`drm_gpuvm_bo` to or removes it from the :c:type:`drm_gpuvms` evicted list.h](hAdds a }(hj3hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj=h]h drm_gpuvm_bo}(hj?hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj3ubh to or removes it from the }(hj3hhhNhNubh)}(h:c:type:`drm_gpuvms`h]j)}(hjah]h drm_gpuvms}(hjchhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmsuh1hhjZhMhj3ubh evicted list.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_insert (C function)c.drm_gpuva_inserthNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hDint drm_gpuva_insert (struct drm_gpuvm *gpuvm, struct drm_gpuva *va)h]j>)}(hCint drm_gpuva_insert(struct drm_gpuvm *gpuvm, struct drm_gpuva *va)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gpuva_inserth]jm)}(hdrm_gpuva_inserth]hdrm_gpuva_insert}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h/(struct drm_gpuvm *gpuvm, struct drm_gpuva *va)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gpuva_insertasbuh1hhjubjV)}(h h]h }(hj#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hj>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gpuva *vah](jD)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjSubjV)}(h h]h }(hjdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjSubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjwmodnameN classnameNjj)}j]jc.drm_gpuva_insertasbuh1hhjSubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hvah]hva}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(hinsert a :c:type:`drm_gpuva`h](h insert a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jc.drm_gpuva_insertasbj drm_gpuvauh1hhjthMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj7ubj )}(hhh]h)}(h)}(h+void drm_gpuva_remove(struct drm_gpuva *va)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gpuva_removeh]jm)}(hdrm_gpuva_removeh]hdrm_gpuva_remove}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct drm_gpuva *va)h]j)}(hstruct drm_gpuva *vah](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hj6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8modnameN classnameNjj)}j]j)}jjsbc.drm_gpuva_removeasbuh1hhjubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvah]hva}(hjqhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(hremove a :c:type:`drm_gpuva`h](h remove a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jRc.drm_gpuva_removeasbj drm_gpuvauh1hhjthMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubj)}(hXB**Parameters** ``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to remove **Description** This removes the given :c:type:`va` from the underlaying tree. 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().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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh]j)}(h;``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to remove 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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h!the :c:type:`drm_gpuva` to removeh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj#h]h drm_gpuva}(hj%hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjhMhjubh to remove}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h>This removes the given :c:type:`va` from the underlaying tree.h](hThis removes the given }(hjthhhNhNubh)}(h :c:type:`va`h]j)}(hj~h]hva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjtubh from the underlaying tree.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(hIt 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().h]hIt 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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_link (C function)c.drm_gpuva_linkhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hFvoid drm_gpuva_link (struct drm_gpuva *va, struct drm_gpuvm_bo *vm_bo)h]j>)}(hEvoid drm_gpuva_link(struct drm_gpuva *va, struct drm_gpuvm_bo *vm_bo)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gpuva_linkh]jm)}(hdrm_gpuva_linkh]hdrm_gpuva_link}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h2(struct drm_gpuva *va, struct drm_gpuvm_bo *vm_bo)h](j)}(hstruct drm_gpuva *vah](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hj0hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj2modnameN classnameNjj)}j]j)}jjsbc.drm_gpuva_linkasbuh1hhjubjV)}(h h]h }(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvah]hva}(hjkhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct drm_gpuvm_bo *vm_boh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jLc.drm_gpuva_linkasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvm_boh]hvm_bo}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(hlink a :c:type:`drm_gpuva`h](hlink a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jLc.drm_gpuva_linkasbj drm_gpuvauh1hhjthMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1j2hhhj:hNhNubj)}(hX**Parameters** ``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to link ``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to add the :c:type:`drm_gpuva` to **Description** This adds the given :c:type:`va` to the GPU VA list of the :c:type:`drm_gpuvm_bo` and the :c:type:`drm_gpuvm_bo` to the :c:type:`drm_gem_object` it is associated with. For every :c:type:`drm_gpuva` entry added to the :c:type:`drm_gpuvm_bo` an additional reference of the latter is taken. This function expects the caller to protect the GEM's GPUVA list against concurrent access using either the GEMs dma_resv lock or a driver specific lock set through drm_gem_gpuva_set_lock().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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjEubj)}(hhh](j)}(h9``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to link h](j)}(h``struct drm_gpuva *va``h]j)}(hjjh]hstruct drm_gpuva *va}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjdubj )}(hhh]h)}(hthe :c:type:`drm_gpuva` to linkh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjhMhjubh to link}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubj)}(h\``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to add the :c:type:`drm_gpuva` to 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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h)}(h+void drm_gpuva_unlink(struct drm_gpuva *va)h](jc)}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjxhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM9ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjxhhhjhM9ubjg)}(hdrm_gpuva_unlinkh]jm)}(hdrm_gpuva_unlinkh]hdrm_gpuva_unlink}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjhM9ubj)}(h(struct drm_gpuva *va)h]j)}(hstruct drm_gpuva *vah](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gpuva_unlinkasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvah]hva}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhM9ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjthhhjhM9ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1j7hjhM9hjqhhubj)}(hhh]h)}(hunlink a :c:type:`drm_gpuva`h](h unlink a }(hj<hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjFh]h drm_gpuva}(hjHhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jc.drm_gpuva_unlinkasbj drm_gpuvauh1hhjthMhj<ubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM9hj9hhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1j2hhhj:hNhNubj)}(hX**Parameters** ``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to unlink **Description** This removes the given :c:type:`va` from the GPU VA list of the :c:type:`drm_gem_object` it is associated with. This removes the given :c:type:`va` from the GPU VA list of the :c:type:`drm_gpuvm_bo` and the :c:type:`drm_gpuvm_bo` from the :c:type:`drm_gem_object` it is associated with in case this call unlinks the last :c:type:`drm_gpuva` from the :c:type:`drm_gpuvm_bo`. For every :c:type:`drm_gpuva` entry removed from the :c:type:`drm_gpuvm_bo` a reference of the latter is dropped. This function expects the caller to protect the GEM's GPUVA list against concurrent access using either the GEMs dma_resv lock or a driver specific lock set through 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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM=hj|ubj)}(hhh]j)}(h;``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to unlink h](j)}(h``struct drm_gpuva *va``h]j)}(hjh]hstruct drm_gpuva *va}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM:hjubj )}(hhh]h)}(h!the :c:type:`drm_gpuva` to unlinkh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjhM:hjubh to unlink}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjubah}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM<hj|ubh)}(hoThis removes the given :c:type:`va` from the GPU VA list of the :c:type:`drm_gem_object` it is associated with.h](hThis removes the given }(hjhhhNhNubh)}(h :c:type:`va`h]j)}(hjh]hva}(hj!hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM;hjubh from the GPU VA list of the }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjCh]hdrm_gem_object}(hjEhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj<hM;hjubh it is associated with.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj<hM;hj|ubh)}(hXThis removes the given :c:type:`va` from the GPU VA list of the :c:type:`drm_gpuvm_bo` and the :c:type:`drm_gpuvm_bo` from the :c:type:`drm_gem_object` it is associated with in case this call unlinks the last :c:type:`drm_gpuva` from the :c:type:`drm_gpuvm_bo`.h](hThis removes the given }(hjjhhhNhNubh)}(h :c:type:`va`h]j)}(hjth]hva}(hjvhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM>hjjubh from the GPU VA list of the }(hjjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjhM>hjjubh and the }(hjjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjhM>hjjubh from the }(hjjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhM>hjjubh: it is associated with in case this call unlinks the last }(hjjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjhM>hjjubh from the }hjjsbh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj$h]h drm_gpuvm_bo}(hj&hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjhM>hjjubh.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM>hj|ubh)}(hqFor every :c:type:`drm_gpuva` entry removed from the :c:type:`drm_gpuvm_bo` a reference of the latter is dropped.h](h For every }(hjKhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjUh]h drm_gpuva}(hjWhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMBhjKubh entry removed from the }(hjKhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hjyh]h drm_gpuvm_bo}(hj{hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhjrhMBhjKubh& a reference of the latter is dropped.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhMBhj|ubh)}(hThis function expects the caller to protect the GEM's GPUVA list against concurrent access using either the GEMs dma_resv lock or a driver specific lock set through drm_gem_gpuva_set_lock().h]hThis function expects the caller to protect the GEM’s GPUVA list against concurrent access using either the GEMs dma_resv lock or a driver specific lock set through drm_gem_gpuva_set_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMEhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!drm_gpuva_find_first (C function)c.drm_gpuva_find_firsthNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hVstruct drm_gpuva * drm_gpuva_find_first (struct drm_gpuvm *gpuvm, u64 addr, u64 range)h]j>)}(hTstruct drm_gpuva *drm_gpuva_find_first(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM\ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM\ubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_gpuva_find_firstsbc.drm_gpuva_find_firstasbuh1hhjhhhjhM\ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM\ubjg)}(hdrm_gpuva_find_firsth]jm)}(hj h]hdrm_gpuva_find_first}(hj.hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM\ubj)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjEubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjghhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjimodnameN classnameNjj)}j]j c.drm_gpuva_find_firstasbuh1hhjEubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hu64 addrh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j c.drm_gpuva_find_firstasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(h u64 rangeh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j c.drm_gpuva_find_firstasbuh1hhjubjV)}(h h]h }(hj"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hrangeh]hrange}(hj0hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM\ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM\ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM\hjhhubj)}(hhh]h)}(h5find the first :c:type:`drm_gpuva` in the given rangeh](hfind the first }(hjZhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjdh]h drm_gpuva}(hjfhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j c.drm_gpuva_find_firstasbj drm_gpuvauh1hhjthMhjZubh in the given range}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM\hjWhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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:506: ./drivers/gpu/drm/drm_gpuvm.chM`hjubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM]hjubj )}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhM]hjubh to search in}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjubj)}(h.``u64 addr`` the :c:type:`drm_gpuvas` address h](j)}(h ``u64 addr``h]j)}(hjh]hu64 addr}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM^hjubj )}(hhh]h)}(h the :c:type:`drm_gpuvas` addressh](hthe }(hj8hhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjBh]h drm_gpuvas}(hjDhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhj4hM^hj8ubh address}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4hM^hj5ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj4hM^hjubj)}(h-``u64 range`` the :c:type:`drm_gpuvas` range h](j)}(h ``u64 range``h]j)}(hj{h]h u64 range}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM_hjuubj )}(hhh]h)}(hthe :c:type:`drm_gpuvas` rangeh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hjh]h drm_gpuvas}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhjhM_hjubh range}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM_hjubah}(h]h ]h"]h$]h&]uh1j hjuubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMahjubh)}(h4the first :c:type:`drm_gpuva` within the given rangeh](h the first }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMahjubh within the given range}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMahjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_find (C function)c.drm_gpuva_findhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hPstruct drm_gpuva * drm_gpuva_find (struct drm_gpuvm *gpuvm, u64 addr, u64 range)h]j>)}(hNstruct drm_gpuva *drm_gpuva_find(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jD)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj=hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMnubjV)}(h h]h }(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj=hhhjNhMnubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hj`hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjbmodnameN classnameNjj)}j]j)}jdrm_gpuva_findsbc.drm_gpuva_findasbuh1hhj=hhhjNhMnubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj=hhhjNhMnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhjNhMnubjg)}(hdrm_gpuva_findh]jm)}(hj~h]hdrm_gpuva_find}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjNhMnubj)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j|c.drm_gpuva_findasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 addrh](h)}(hhh]jm)}(hu64h]hu64}(hj.hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj0modnameN classnameNjj)}j]j|c.drm_gpuva_findasbuh1hhj'ubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj'ubjm)}(haddrh]haddr}(hjZhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 rangeh](h)}(hhh]jm)}(hu64h]hu64}(hjvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]j|c.drm_gpuva_findasbuh1hhjoubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoubjm)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj=hhhjNhMnubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj9hhhjNhMnubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1j7hjNhMnhj6hhubj)}(hhh]h)}(hfind a :c:type:`drm_gpuva`h](hfind a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j|c.drm_gpuva_findasbj drm_gpuvauh1hhjthMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMnhjhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjNhMnubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubj)}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to search in ``u64 addr`` the :c:type:`drm_gpuvas` address ``u64 range`` the :c:type:`drm_gpuvas` range **Return** the :c:type:`drm_gpuva` at a given :c:type:`addr` and with a given :c:type:`range`h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMrhj 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)}(hj1h]hstruct drm_gpuvm *gpuvm}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMohj+ubj )}(hhh]h)}(h$the :c:type:`drm_gpuvm` to search inh](hthe }(hjJhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjTh]h drm_gpuvm}(hjVhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjFhMohjJubh to search in}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjFhMohjGubah}(h]h ]h"]h$]h&]uh1j hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMohj(ubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMphjubj )}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhjhMphjubh address}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMphjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMphj(ubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMqhjubj )}(hhh]h)}(hthe :c:type:`drm_gpuvas` rangeh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j)}(hj h]h drm_gpuvas}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvasuh1hhjhMqhjubh range}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhj(ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h **Return**h]j)}(hjGh]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMshj ubh)}(hRthe :c:type:`drm_gpuva` at a given :c:type:`addr` and with a given :c:type:`range`h](hthe }(hj]hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjgh]h drm_gpuva}(hjihhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMshj]ubh at a given }(hj]hhhNhNubh)}(h:c:type:`addr`h]j)}(hjh]haddr}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjaddruh1hhjhMshj]ubh and with a given }(hj]hhhNhNubh)}(h:c:type:`range`h]j)}(hjh]hrange}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjrangeuh1hhjhMshj]ubeh}(h]h ]h"]h$]h&]uh1hhjhMshj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gpuva_find_prev (C function)c.drm_gpuva_find_prevhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hKstruct drm_gpuva * drm_gpuva_find_prev (struct drm_gpuvm *gpuvm, u64 start)h]j>)}(hIstruct drm_gpuva *drm_gpuva_find_prev(struct drm_gpuvm *gpuvm, u64 start)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_gpuva_find_prevsbc.drm_gpuva_find_prevasbuh1hhjhhhjhMubjV)}(h h]h }(hj1hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hdrm_gpuva_find_prevh]jm)}(hj.h]hdrm_gpuva_find_prev}(hjPhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h$(struct drm_gpuvm *gpuvm, u64 start)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjgubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjgubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j,c.drm_gpuva_find_prevasbuh1hhjgubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(h u64 starth](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j,c.drm_gpuva_find_prevasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(h5find the :c:type:`drm_gpuva` before the given addressh](h find the }(hj4hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj>h]h drm_gpuva}(hj@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j,c.drm_gpuva_find_prevasbj drm_gpuvauh1hhjthMhj4ubh before the given address}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj1hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1j2hhhj: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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjxubj)}(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:506: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMhjubh to search in}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``u64 start`` the given GPU VA's start address h](j)}(h ``u64 start``h]j)}(hjh]h u64 start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h the given GPU VA's start addressh]h"the given GPU VA’s start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjxubh)}(h[Find the adjacent :c:type:`drm_gpuva` before the GPU VA with given :c:type:`start` address.h](hFind the adjacent }(hjJhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjTh]h drm_gpuva}(hjVhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjJubh before the GPU VA with given }(hjJhhhNhNubh)}(h:c:type:`start`h]j)}(hjxh]hstart}(hjzhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjstartuh1hhjqhMhjJubh address.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqhMhjxubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjxubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjxubh)}(hDa pointer to the found :c:type:`drm_gpuva` or NULL if none was foundh](ha pointer to the found }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh or NULL if none was found}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_gpuva_find_next (C function)c.drm_gpuva_find_nexthNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hIstruct drm_gpuva * drm_gpuva_find_next (struct drm_gpuvm *gpuvm, u64 end)h]j>)}(hGstruct drm_gpuva *drm_gpuva_find_next(struct drm_gpuvm *gpuvm, u64 end)h](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hj&hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj%hMubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hj7hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj9modnameN classnameNjj)}j]j)}jdrm_gpuva_find_nextsbc.drm_gpuva_find_nextasbuh1hhjhhhj%hMubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj%hMubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj%hMubjg)}(hdrm_gpuva_find_nexth]jm)}(hjUh]hdrm_gpuva_find_next}(hjwhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj%hMubj)}(h"(struct drm_gpuvm *gpuvm, u64 end)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jSc.drm_gpuva_find_nextasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 endh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jSc.drm_gpuva_find_nextasbuh1hhjubjV)}(h h]h }(hj#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hendh]hend}(hj1hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhj%hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj%hMhj hhubj)}(hhh]h)}(h4find the :c:type:`drm_gpuva` after the given addressh](h find the }(hj[hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjeh]h drm_gpuva}(hjghhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jSc.drm_gpuva_find_nextasbj drm_gpuvauh1hhjthMhj[ubh after the given address}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjXhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(hA``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to search in h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMhjubh to search in}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``u64 end`` the given GPU VA's end address h](j)}(h ``u64 end``h]j)}(hj h]hu64 end}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(hthe given GPU VA's end addressh]h the given GPU VA’s end address}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubeh}(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:506: ./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 }(hjqhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj{h]h drm_gpuva}(hj}hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjqubh after the GPU VA with given }(hjqhhhNhNubh)}(h :c:type:`end`h]j)}(hjh]hend}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjenduh1hhjhMhjqubh address.}(hjqhhhNhNubeh}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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:506: ./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 }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh or NULL if none was found}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_gpuvm_interval_empty (C function)c.drm_gpuvm_interval_emptyhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hLbool drm_gpuvm_interval_empty (struct drm_gpuvm *gpuvm, u64 addr, u64 range)h]j>)}(hKbool drm_gpuvm_interval_empty(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jc)}(hj h]hbool}(hj?hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj;hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjMhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;hhhjLhMubjg)}(hdrm_gpuvm_interval_emptyh]jm)}(hdrm_gpuvm_interval_emptyh]hdrm_gpuvm_interval_empty}(hj_hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;hhhjLhMubj)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjwubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjwubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjasbc.drm_gpuvm_interval_emptyasbuh1hhjwubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjwubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hu64 addrh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_interval_emptyasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(h u64 rangeh](h)}(hhh]jm)}(hu64h]hu64}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:modnameN classnameNjj)}j]jc.drm_gpuvm_interval_emptyasbuh1hhj1ubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1ubjm)}(hrangeh]hrange}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj7hhhjLhMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1j7hjLhMhj4hhubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj4hhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(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)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h.the :c:type:`drm_gpuvm` to check the range forh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMhjubh to check the range for}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``u64 addr`` the start address of the range 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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj%ubj )}(hhh]h)}(hthe start address of the rangeh]hthe start address of the range}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1j hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubj)}(h(``u64 range`` the range of the interval h](j)}(h ``u64 range``h]j)}(hjdh]h u64 range}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj^ubj )}(hhh]h)}(hthe range of the intervalh]hthe range of the interval}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1j hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_map (C function)c.drm_gpuva_maphNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h_void drm_gpuva_map (struct drm_gpuvm *gpuvm, struct drm_gpuva *va, struct drm_gpuva_op_map *op)h]j>)}(h^void drm_gpuva_map(struct drm_gpuvm *gpuvm, struct drm_gpuva *va, struct drm_gpuva_op_map *op)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(h drm_gpuva_maph]jm)}(h drm_gpuva_maph]h drm_gpuva_map}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hL(struct drm_gpuvm *gpuvm, struct drm_gpuva *va, struct drm_gpuva_op_map *op)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hj!hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hj?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]j)}jjsbc.drm_gpuva_mapasbuh1hhjubjV)}(h h]h }(hj_hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hjzhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gpuva *vah](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j[c.drm_gpuva_mapasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvah]hva}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gpuva_op_map *oph](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpuva_op_maph]hdrm_gpuva_op_map}(hj!hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj#modnameN classnameNjj)}j]j[c.drm_gpuva_mapasbuh1hhjubjV)}(h h]h }(hj?hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hoph]hop}(hjZhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j[c.drm_gpuva_mapasbj drm_gpuvauh1hhjthMhjubh according to a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op_map`h]j)}(hjh]hdrm_gpuva_op_map}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_op_mapuh1hhjthMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj:hNhNubj)}(hXA**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` ``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to insert ``struct drm_gpuva_op_map *op`` the :c:type:`drm_gpuva_op_map` to initialize **va** with **Description** Initializes the **va** from the **op** and inserts it into the given **gpuvm**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hj%hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj/h]h drm_gpuvm}(hj1hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj!hMhj%ubeh}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(h;``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to insert h](j)}(h``struct drm_gpuva *va``h]j)}(hjdh]hstruct drm_gpuva *va}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj^ubj )}(hhh]h)}(h!the :c:type:`drm_gpuva` to inserth](hthe }(hj}hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjyhMhj}ubh to insert}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1j hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubj)}(hY``struct drm_gpuva_op_map *op`` the :c:type:`drm_gpuva_op_map` to initialize **va** with h](j)}(h``struct drm_gpuva_op_map *op``h]j)}(hjh]hstruct drm_gpuva_op_map *op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(hhh]h)}(h8the :c:type:`drm_gpuva_op_map` to initialize **va** withh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op_map`h]j)}(hjh]hdrm_gpuva_op_map}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_op_mapuh1hhjhMhjubh to initialize }(hjhhhNhNubj)}(h**va**h]hva}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh with}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hOInitializes the **va** from the **op** and inserts it into the given **gpuvm**.h](hInitializes the }(hjFhhhNhNubj)}(h**va**h]hva}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh from the }(hjFhhhNhNubj)}(h**op**h]hop}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh and inserts it into the given }(hjFhhhNhNubj)}(h **gpuvm**h]hgpuvm}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_remap (C function)c.drm_gpuva_remaphNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hdvoid drm_gpuva_remap (struct drm_gpuva *prev, struct drm_gpuva *next, struct drm_gpuva_op_remap *op)h]j>)}(hcvoid drm_gpuva_remap(struct drm_gpuva *prev, struct drm_gpuva *next, struct drm_gpuva_op_remap *op)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gpuva_remaph]jm)}(hdrm_gpuva_remaph]hdrm_gpuva_remap}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hO(struct drm_gpuva *prev, struct drm_gpuva *next, struct drm_gpuva_op_remap *op)h](j)}(hstruct drm_gpuva *prevh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gpuva_remapasbuh1h hjubjV)}(h h]h }(hj&hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hprevh]hprev}(hjAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gpuva *nexth](jD)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjVubjV)}(h h]h }(hjghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVubh)}(hhh]jm)}(h drm_gpuvah]h drm_gpuva}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjzmodnameN classnameNjj)}j]j"c.drm_gpuva_remapasbuh1hhjVubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(hnexth]hnext}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gpuva_op_remap *oph](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpuva_op_remaph]hdrm_gpuva_op_remap}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j"c.drm_gpuva_remapasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hoph]hop}(hj!hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(hQhelper to remap a :c:type:`drm_gpuva` according to a :c:type:`drm_gpuva_op_remap`h](hhelper to remap a }(hjKhhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjUh]h drm_gpuva}(hjWhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j"c.drm_gpuva_remapasbj drm_gpuvauh1hhjthMhjKubh according to a }(hjKhhhNhNubh)}(h:c:type:`drm_gpuva_op_remap`h]j)}(hj}h]hdrm_gpuva_op_remap}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjqjdrm_gpuva_op_remapuh1hhjthMhjKubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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 ``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)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj)}(hhh](j)}(h```struct drm_gpuva *prev`` the :c:type:`drm_gpuva` to remap when keeping the start of a mapping h](j)}(h``struct drm_gpuva *prev``h]j)}(hjh]hstruct drm_gpuva *prev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubj )}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjhMhjubh- to remap when keeping the start of a mapping}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(hj/ h]hstruct drm_gpuva *next}(hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj- ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj) ubj )}(hhh]h)}(hBthe :c:type:`drm_gpuva` to remap when keeping the end of a mappingh](hthe }(hjH hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjR h]h drm_gpuva}(hjT hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjP ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhjD hMhjH ubh+ to remap when keeping the end of a mapping}(hjH hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjD hMhjE ubah}(h]h ]h"]h$]h&]uh1j hj) ubeh}(h]h ]h"]h$]h&]uh1jhjD hMhjubj)}(hl``struct drm_gpuva_op_remap *op`` the :c:type:`drm_gpuva_op_remap` to initialize **prev** and **next** with h](j)}(h!``struct drm_gpuva_op_remap *op``h]j)}(hj h]hstruct 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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj ubj )}(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)}(hj h]hdrm_gpuva_op_remap}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_op_remapuh1hhj hMhj ubh to initialize }(hj hhhNhNubj)}(h**prev**h]hprev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh and }(hj hhhNhNubj)}(h**next**h]hnext}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh with}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h^Removes the currently mapped :c:type:`drm_gpuva` and remaps it using **prev** and/or **next**.h](hRemoves the currently mapped }(hj# hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj- h]h drm_gpuva}(hj/ hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj+ ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj# ubh and remaps it using }(hj# hhhNhNubj)}(h**prev**h]hprev}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj# ubh and/or }(hj# hhhNhNubj)}(h**next**h]hnext}(hja hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj# ubh.}(hj# hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJ hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_unmap (C function)c.drm_gpuva_unmaphNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(h4void drm_gpuva_unmap (struct drm_gpuva_op_unmap *op)h]j>)}(h3void drm_gpuva_unmap(struct drm_gpuva_op_unmap *op)h](jc)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhj hMubjg)}(hdrm_gpuva_unmaph]jm)}(hdrm_gpuva_unmaph]hdrm_gpuva_unmap}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(h(struct drm_gpuva_op_unmap *op)h]j)}(hstruct drm_gpuva_op_unmap *oph](jD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(hdrm_gpuva_op_unmaph]hdrm_gpuva_op_unmap}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jj sbc.drm_gpuva_unmapasbuh1hhj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubj)}(hjh]h*}(hj" hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hoph]hop}(hj/ hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj hMhj 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 }(hjY hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hjc h]h drm_gpuva}(hje hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhja ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j c.drm_gpuva_unmapasbj drm_gpuvauh1hhjthMhjY ubh according to a }(hjY hhhNhNubh)}(h:c:type:`drm_gpuva_op_unmap`h]j)}(hj h]hdrm_gpuva_op_unmap}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj jdrm_gpuva_op_unmapuh1hhjthMhjY ubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjV hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1j2hhhj:hNhNubj)}(h**Parameters** ``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)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj ubj)}(hhh]j)}(hp``struct drm_gpuva_op_unmap *op`` the :c:type:`drm_gpuva_op_unmap` specifying the :c:type:`drm_gpuva` to remove h](j)}(h!``struct drm_gpuva_op_unmap *op``h]j)}(hj h]hstruct drm_gpuva_op_unmap *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:506: ./drivers/gpu/drm/drm_gpuvm.chMhj ubj )}(hhh]h)}(hMthe :c:type:`drm_gpuva_op_unmap` specifying the :c:type:`drm_gpuva` to removeh](hthe }(hj hhhNhNubh)}(h:c:type:`drm_gpuva_op_unmap`h]j)}(hj h]hdrm_gpuva_op_unmap}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_op_unmapuh1hhj hMhj ubh specifying the }(hj hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj' h]h drm_gpuva}(hj) hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj% ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhj hMhj ubh to remove}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjb h]h Description}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj` ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj ubh)}(hQRemoves the :c:type:`drm_gpuva` associated with the :c:type:`drm_gpuva_op_unmap`.h](h Removes the }(hjx hhhNhNubh)}(h:c:type:`drm_gpuva`h]j)}(hj h]h drm_gpuva}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhjx ubh associated with the }(hjx hhhNhNubh)}(h:c:type:`drm_gpuva_op_unmap`h]j)}(hj h]hdrm_gpuva_op_unmap}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_op_unmapuh1hhj hMhjx ubh.}(hjx hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_sm_map (C function)c.drm_gpuvm_sm_maphNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hint drm_gpuvm_sm_map (struct drm_gpuvm *gpuvm, void *priv, u64 req_addr, u64 req_range, struct drm_gem_object *req_obj, u64 req_offset)h]j>)}(hint drm_gpuvm_sm_map(struct drm_gpuvm *gpuvm, void *priv, u64 req_addr, u64 req_range, struct drm_gem_object *req_obj, u64 req_offset)h](jc)}(hinth]hint}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhj hMubjg)}(hdrm_gpuvm_sm_maph]jm)}(hdrm_gpuvm_sm_maph]hdrm_gpuvm_sm_map}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(hr(struct drm_gpuvm *gpuvm, void *priv, u64 req_addr, u64 req_range, struct drm_gem_object *req_obj, u64 req_offset)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hj* hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj& ubjV)}(h h]h }(hj7 hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj& ubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjH hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjE ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjJ modnameN classnameNjj)}j]j)}jj sbc.drm_gpuvm_sm_mapasbuh1hhj& ubjV)}(h h]h }(hjh hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj& ubj)}(hjh]h*}(hjv hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj& ubjm)}(hgpuvmh]hgpuvm}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj& ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj" ubj)}(h void *privh](jc)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hprivh]hpriv}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj" ubj)}(h u64 req_addrh](h)}(hhh]jm)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jd c.drm_gpuvm_sm_mapasbuh1hhj ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubjm)}(hreq_addrh]hreq_addr}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj" ubj)}(h u64 req_rangeh](h)}(hhh]jm)}(hu64h]hu64}(hj)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj+modnameN classnameNjj)}j]jd c.drm_gpuvm_sm_mapasbuh1hhj"ubjV)}(h h]h }(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj"ubjm)}(h req_rangeh]h req_range}(hjUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj" ubj)}(hstruct drm_gem_object *req_objh](jD)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjjubjV)}(h h]h }(hj{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jd c.drm_gpuvm_sm_mapasbuh1hhjjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjm)}(hreq_objh]hreq_obj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj" ubj)}(hu64 req_offseth](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jd c.drm_gpuvm_sm_mapasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h req_offseth]h req_offset}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj" ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j7hj hMhj hhubj)}(hhh]h)}(h2calls the :c:type:`drm_gpuva_op` split/merge stepsh](h calls the }(hj7hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j)}(hjAh]h drm_gpuva_op}(hjChhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jd c.drm_gpuvm_sm_mapasbj drm_gpuva_opuh1hhjthMhj7ubh split/merge steps}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMhj4hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1j2hhhj: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 new mapping ``u64 req_range`` the range of the new mapping ``struct drm_gem_object *req_obj`` the :c:type:`drm_gem_object` to map ``u64 req_offset`` the offset within the :c:type:`drm_gem_object` **Description** This function iterates the given range of the GPU VA space. It utilizes the :c:type:`drm_gpuvm_ops` to call back into the driver providing the split and merge steps. Drivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor :c:type:`drm_gpuvm_sm_unmap` is allowed to be called before the :c:type:`drm_gpuvm`'s view of the GPU VA space was updated with the previous set of operations. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used. A sequence of callbacks can contain map, unmap and remap operations, but the sequence of callbacks might also be empty if no operation is required, e.g. if the requested mapping already exists in the exact same way. There can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller. **Return** 0 on success or a negative error codeh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM 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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhM hjubh representing the GPU VA space}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM 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:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubj )}(hhh]h)}(h*pointer to a driver private data structureh]h*pointer to a driver private data structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h6``u64 req_addr`` the start address of the new mapping h](j)}(h``u64 req_addr``h]j)}(hj5h]h u64 req_addr}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj/ubj )}(hhh]h)}(h$the start address of the new mappingh]h$the start address of the new mapping}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhM hjKubah}(h]h ]h"]h$]h&]uh1j hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM hjubj)}(h/``u64 req_range`` the range of the new mapping h](j)}(h``u64 req_range``h]j)}(hjnh]h u64 req_range}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjhubj )}(hhh]h)}(hthe range of the new mappingh]hthe range of the new mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j hjhubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hG``struct drm_gem_object *req_obj`` the :c:type:`drm_gem_object` to map h](j)}(h"``struct drm_gem_object *req_obj``h]j)}(hjh]hstruct drm_gem_object *req_obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubj )}(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}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhM hjubh to map}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hB``u64 req_offset`` the offset within the :c:type:`drm_gem_object` h](j)}(h``u64 req_offset``h]j)}(hjh]hu64 req_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubj )}(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)}(hj&h]hdrm_gem_object}(hj(hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhM hjubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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 split and merge steps.h](hLThis function iterates the given range of the GPU VA space. It utilizes the }(hjshhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hj}h]h drm_gpuvm_ops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjsubhB to call back into the driver providing the split and merge steps.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM 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_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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_unmapuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubh$ is allowed to be called before the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhM 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}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhM 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&]uh1hhjhM hj{ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj{ubh)}(hThere can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller.h]hThere can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj{ubh)}(h **Return**h]j)}(hj=h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuvm_sm_unmap (C function)c.drm_gpuvm_sm_unmaphNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hYint drm_gpuvm_sm_unmap (struct drm_gpuvm *gpuvm, void *priv, u64 req_addr, u64 req_range)h]j>)}(hXint drm_gpuvm_sm_unmap(struct drm_gpuvm *gpuvm, void *priv, u64 req_addr, u64 req_range)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj~hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM1 ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj~hhhjhM1 ubjg)}(hdrm_gpuvm_sm_unmaph]jm)}(hdrm_gpuvm_sm_unmaph]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhjhM1 ubj)}(hB(struct drm_gpuvm *gpuvm, void *priv, u64 req_addr, u64 req_range)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gpuvm_sm_unmapasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *privh](jc)}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj-ubjV)}(h h]h }(hj?hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj-ubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hprivh]hpriv}(hjZhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 req_addrh](h)}(hhh]jm)}(hu64h]hu64}(hjvhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]jc.drm_gpuvm_sm_unmapasbuh1hhjoubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoubjm)}(hreq_addrh]hreq_addr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 req_rangeh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_sm_unmapasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h req_rangeh]h req_range}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhM1 ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjzhhhjhM1 ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1j7hjhM1 hjwhhubj)}(hhh]h)}(h3calls the :c:type:`drm_gpuva_ops` to split on unmaph](h calls the }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjh]h drm_gpuva_ops}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jc.drm_gpuvm_sm_unmapasbj drm_gpuva_opsuh1hhjthMhjubh to split on unmap}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM1 hjhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhM1 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1j2hhhj: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 existent mappings. Drivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor :c:type:`drm_gpuvm_sm_map` is allowed to be called before the :c:type:`drm_gpuvm`'s view of the GPU VA space was updated with the previous set of operations. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used. A sequence of callbacks can contain unmap and remap operations, depending on whether there are actual overlapping mappings to split. There can be an arbitrary amount of unmap operations and a maximum of two remap operations. **Return** 0 on success or a negative error codeh](h)}(h**Parameters**h]j)}(hj^h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM5 hjXubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM2 hjwubj )}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhM2 hjubh representing the GPU VA space}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM2 hjubah}(h]h ]h"]h$]h&]uh1j hjwubeh}(h]h ]h"]h$]h&]uh1jhjhM2 hjtubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM3 hjubj )}(hhh]h)}(h*pointer to a driver private data structureh]h*pointer to a driver private data structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM3 hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM3 hjtubj)}(h9``u64 req_addr`` the start address of the range to unmap h](j)}(h``u64 req_addr``h]j)}(hjh]h u64 req_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM4 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'hM4 hj(ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hM4 hjtubj)}(h5``u64 req_range`` the range of the mappings to unmap h](j)}(h``u64 req_range``h]j)}(hjKh]h u64 req_range}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM5 hjEubj )}(hhh]h)}(h"the range of the mappings to unmaph]h"the range of the mappings to unmap}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hM5 hjaubah}(h]h ]h"]h$]h&]uh1j hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hM5 hjtubeh}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM7 hjXubh)}(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 existent mappings.h](hLThis function iterates the given range of the GPU VA space. It utilizes the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j)}(hjh]h drm_gpuvm_ops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM6 hjubhj to call back into the driver providing the operations to unmap and, if required, split existent mappings.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM6 hjXubh)}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j)}(hjh]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuvm_sm_mapuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM: hjubh$ is allowed to be called before the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhM: 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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhM: 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&]uh1hhjhM: hjXubh)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMB hjXubh)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chME hjXubh)}(h **Return**h]j)}(hjfh]hReturn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMH hjXubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMI hjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_gpuvm_sm_map_exec_lock (C function)c.drm_gpuvm_sm_map_exec_lockhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hint drm_gpuvm_sm_map_exec_lock (struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences, u64 req_addr, u64 req_range, struct drm_gem_object *req_obj, u64 req_offset)h]j>)}(hint drm_gpuvm_sm_map_exec_lock(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences, u64 req_addr, u64 req_range, struct drm_gem_object *req_obj, u64 req_offset)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMt ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMt ubjg)}(hdrm_gpuvm_sm_map_exec_lockh]jm)}(hdrm_gpuvm_sm_map_exec_lockh]hdrm_gpuvm_sm_map_exec_lock}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMt ubj)}(h(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences, u64 req_addr, u64 req_range, struct drm_gem_object *req_obj, u64 req_offset)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_gpuvm_sm_map_exec_lockasbuh1hhjubjV)}(h h]h }(hj&hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hjAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjVubjV)}(h h]h }(hjghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjzmodnameN classnameNjj)}j]j"c.drm_gpuvm_sm_map_exec_lockasbuh1hhjVubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_fencesh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h num_fencesh]h num_fences}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 req_addrh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j"c.drm_gpuvm_sm_map_exec_lockasbuh1hhjubjV)}(h h]h }(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hreq_addrh]hreq_addr}(hjJhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 req_rangeh](h)}(hhh]jm)}(hu64h]hu64}(hjfhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjhmodnameN classnameNjj)}j]j"c.drm_gpuvm_sm_map_exec_lockasbuh1hhj_ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj_ubjm)}(h req_rangeh]h req_range}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *req_objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j"c.drm_gpuvm_sm_map_exec_lockasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hreq_objh]hreq_obj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 req_offseth](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j"c.drm_gpuvm_sm_map_exec_lockasbuh1hhjubjV)}(h h]h }(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h req_offseth]h req_offset}(hjJhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMt ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMt ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMt hjhhubj)}(hhh]h)}(h1locks the objects touched by a drm_gpuvm_sm_map()h]h1locks the objects touched by a drm_gpuvm_sm_map()}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMt hjqhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMt ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj: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 ``u64 req_addr`` the start address of the range to unmap ``u64 req_range`` the range of the mappings to unmap ``struct drm_gem_object *req_obj`` the :c:type:`drm_gem_object` to map ``u64 req_offset`` the offset within the :c:type:`drm_gem_object` **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(:c:type:`exec`, IGNORE_DUPLICATES | INTERRUPTIBLE_WAIT, 0); drm_exec_until_all_locked (:c:type:`exec`) { for_each_vm_bind_operation { switch (op->op) { case DRIVER_OP_UNMAP: ret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, :c:type:`exec`, op->addr, op->range); break; case DRIVER_OP_MAP: ret = drm_gpuvm_sm_map_exec_lock(gpuvm, :c:type:`exec`, num_fences, op->addr, op->range, obj, op->obj_offset); break; } drm_exec_retry_on_contention(:c:type:`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 codech](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:506: ./drivers/gpu/drm/drm_gpuvm.chMx hjubj)}(hhh](j)}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](j)}(h``struct drm_gpuvm *gpuvm``h]j)}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMu 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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjhMu hjubh representing the GPU VA space}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMu hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMu hjubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chMv hj ubj )}(hhh]h)}(h&the :c:type:`drm_exec` locking contexth](hthe }(hj*hhhNhNubh)}(h:c:type:`drm_exec`h]j)}(hj4h]hdrm_exec}(hj6hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_execuh1hhj&hMv hj*ubh locking context}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&hMv hj'ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMv hjubj)}(hQ``unsigned int num_fences`` for newly mapped objects, the # of fences to reserve h](j)}(h``unsigned int num_fences``h]j)}(hjmh]hunsigned int num_fences}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMw hjgubj )}(hhh]h)}(h4for newly mapped objects, the # of fences to reserveh]h4for newly mapped objects, the # of fences to reserve}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMw hjubah}(h]h ]h"]h$]h&]uh1j hjgubeh}(h]h ]h"]h$]h&]uh1jhjhMw hjubj)}(h9``u64 req_addr`` the start address of the range to unmap h](j)}(h``u64 req_addr``h]j)}(hjh]h u64 req_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMx hjubj )}(hhh]h)}(h'the start address of the range to unmaph]h'the start address of the range to unmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMx hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMx hjubj)}(h5``u64 req_range`` the range of the mappings to unmap h](j)}(h``u64 req_range``h]j)}(hjh]h u64 req_range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMy hjubj )}(hhh]h)}(h"the range of the mappings to unmaph]h"the range of the mappings to unmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMy hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMy hjubj)}(hG``struct drm_gem_object *req_obj`` the :c:type:`drm_gem_object` to map h](j)}(h"``struct drm_gem_object *req_obj``h]j)}(hjh]hstruct drm_gem_object *req_obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMz hjubj )}(hhh]h)}(h#the :c:type:`drm_gem_object` to maph](hthe }(hj1hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj;h]hdrm_gem_object}(hj=hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj-hMz hj1ubh to map}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-hMz hj.ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj-hMz hjubj)}(hB``u64 req_offset`` the offset within the :c:type:`drm_gem_object` h](j)}(h``u64 req_offset``h]j)}(hjth]hu64 req_offset}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM{ hjnubj )}(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)}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjhM{ hjubeh}(h]h ]h"]h$]h&]uh1hhjhM{ hjubah}(h]h ]h"]h$]h&]uh1j hjnubeh}(h]h ]h"]h$]h&]uh1jhjhM{ hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM} hjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM| hjubh)}(hThe expected usage is:h]hThe expected usage is:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubj.)}(hXnvm_bind { struct drm_exec exec; // IGNORE_DUPLICATES is required, INTERRUPTIBLE_WAIT is recommended: drm_exec_init(:c:type:`exec`, IGNORE_DUPLICATES | INTERRUPTIBLE_WAIT, 0); drm_exec_until_all_locked (:c:type:`exec`) { for_each_vm_bind_operation { switch (op->op) { case DRIVER_OP_UNMAP: ret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, :c:type:`exec`, op->addr, op->range); break; case DRIVER_OP_MAP: ret = drm_gpuvm_sm_map_exec_lock(gpuvm, :c:type:`exec`, num_fences, op->addr, op->range, obj, op->obj_offset); break; } drm_exec_retry_on_contention(:c:type:`exec`); if (ret) return ret; } } } h](j)}(hhh]j)}(hXvm_bind { struct drm_exec exec; // IGNORE_DUPLICATES is required, INTERRUPTIBLE_WAIT is recommended: drm_exec_init(:c:type:`exec`, IGNORE_DUPLICATES | INTERRUPTIBLE_WAIT, 0); drm_exec_until_all_locked (:c:type:`exec`) { for_each_vm_bind_operation { switch (op->op) { case DRIVER_OP_UNMAP: ret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, :c:type:`exec`, op->addr, op->range); break; case DRIVER_OP_MAP: ret = drm_gpuvm_sm_map_exec_lock(gpuvm, :c:type:`exec`, num_fences, op->addr, op->range, obj, op->obj_offset); break; } drm_exec_retry_on_contention(:c:type:`exec`); if (ret) return ret; } }h](j)}(h vm_bind {h]h vm_bind {}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj ubj )}(hhh](h)}(hstruct drm_exec exec;h]hstruct drm_exec exec;}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubh)}(h// IGNORE_DUPLICATES is required, INTERRUPTIBLE_WAIT is recommended: drm_exec_init(:c:type:`exec`, IGNORE_DUPLICATES | INTERRUPTIBLE_WAIT, 0);h](hS// IGNORE_DUPLICATES is required, INTERRUPTIBLE_WAIT is recommended: drm_exec_init(}(hj.hhhNhNubh)}(h:c:type:`exec`h]j)}(hj8h]hexec}(hj:hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjexecuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj.ubh-, IGNORE_DUPLICATES | INTERRUPTIBLE_WAIT, 0);}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjUhM hjubj)}(hhh]j)}(hX,drm_exec_until_all_locked (:c:type:`exec`) { for_each_vm_bind_operation { switch (op->op) { case DRIVER_OP_UNMAP: ret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, :c:type:`exec`, op->addr, op->range); break; case DRIVER_OP_MAP: ret = drm_gpuvm_sm_map_exec_lock(gpuvm, :c:type:`exec`, num_fences, op->addr, op->range, obj, op->obj_offset); break; } drm_exec_retry_on_contention(:c:type:`exec`); if (ret) return ret; }h](j)}(h,drm_exec_until_all_locked (:c:type:`exec`) {h](hdrm_exec_until_all_locked (}(hjghhhNhNubh)}(h:c:type:`exec`h]j)}(hjqh]hexec}(hjshhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjexecuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjgubh) {}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhM hjcubj )}(hhh](j)}(hhh]j)}(hXfor_each_vm_bind_operation { switch (op->op) { case DRIVER_OP_UNMAP: ret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, :c:type:`exec`, op->addr, op->range); break; case DRIVER_OP_MAP: ret = drm_gpuvm_sm_map_exec_lock(gpuvm, :c:type:`exec`, num_fences, op->addr, op->range, obj, op->obj_offset); break; } drm_exec_retry_on_contention(:c:type:`exec`); if (ret) return ret;h](j)}(hfor_each_vm_bind_operation {h]hfor_each_vm_bind_operation {}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubj )}(hhh](h)}(h'switch (op->op) { case DRIVER_OP_UNMAP:h]h'switch (op->op) { case DRIVER_OP_UNMAP:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubj.)}(hVret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, :c:type:`exec`, op->addr, op->range); break;h]h)}(hVret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, :c:type:`exec`, op->addr, op->range); break;h](h*ret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, }(hjhhhNhNubh)}(h:c:type:`exec`h]j)}(hjh]hexec}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjexecuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubh, op->addr, op->range); break;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j.hjhM hjubj)}(hhh]j)}(hcase DRIVER_OP_MAP: ret = drm_gpuvm_sm_map_exec_lock(gpuvm, :c:type:`exec`, num_fences, op->addr, op->range, obj, op->obj_offset); break;h](j)}(hcase DRIVER_OP_MAP:h]hcase DRIVER_OP_MAP:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubj )}(hhh](j)}(hhh]j)}(hnret = drm_gpuvm_sm_map_exec_lock(gpuvm, :c:type:`exec`, num_fences, op->addr, op->range, obj, op->obj_offset);h](j)}(hCret = drm_gpuvm_sm_map_exec_lock(gpuvm, :c:type:`exec`, num_fences,h](h(ret = drm_gpuvm_sm_map_exec_lock(gpuvm, }(hj hhhNhNubh)}(h:c:type:`exec`h]j)}(hj*h]hexec}(hj,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjexecuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj ubh , num_fences,}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjGhM hjubj )}(hhh]h)}(h*op->addr, op->range, obj, op->obj_offset);h]h*op->addr, op->range, obj, op->obj_offset);}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM hjRubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjGhM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hbreak;h]hbreak;}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h}h]h}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubh)}(h6drm_exec_retry_on_contention(:c:type:`exec`); if (ret)h](hdrm_exec_retry_on_contention(}(hjhhhNhNubh)}(h:c:type:`exec`h]j)}(hjh]hexec}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjexecuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubh ); if (ret)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubj.)}(h return ret;h]h)}(hjh]h return ret;}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j.hjhM hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hjh]h}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubeh}(h]h ]h"]h$]h&]uh1j hjcubeh}(h]h ]h"]h$]h&]uh1jhjhM hj`ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hjh]h}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hjh]h}}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubeh}(h]h ]h"]h$]h&]uh1j.hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubh)}(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:}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubjL4)}(hhh](j{)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjfubah}(h]h ]h"]h$]h&]uh1j {hjcubj{)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubah}(h]h ]h"]h$]h&]uh1j {hjcubeh}(h]h ]h"]h$]h&]j7j7j7hj7juh1jK4hjubh)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubh)}(h&0 on success or a negative error codech]h&0 on success or a negative error codec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.)drm_gpuvm_sm_unmap_exec_lock (C function)c.drm_gpuvm_sm_unmap_exec_lockhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hnint drm_gpuvm_sm_unmap_exec_lock (struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 req_addr, u64 req_range)h]j>)}(hmint drm_gpuvm_sm_unmap_exec_lock(struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 req_addr, u64 req_range)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM ubjg)}(hdrm_gpuvm_sm_unmap_exec_lockh]jm)}(hdrm_gpuvm_sm_unmap_exec_lockh]hdrm_gpuvm_sm_unmap_exec_lock}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(hM(struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 req_addr, u64 req_range)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hj@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjBmodnameN classnameNjj)}j]j)}jjsbc.drm_gpuvm_sm_unmap_exec_lockasbuh1hhjubjV)}(h h]h }(hj`hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hgpuvmh]hgpuvm}(hj{hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j\c.drm_gpuvm_sm_unmap_exec_lockasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 req_addrh](h)}(hhh]jm)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j\c.drm_gpuvm_sm_unmap_exec_lockasbuh1hhj ubjV)}(h h]h }(hj% hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubjm)}(hreq_addrh]hreq_addr}(hj3 hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 req_rangeh](h)}(hhh]jm)}(hu64h]hu64}(hjO hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjL ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjQ modnameN classnameNjj)}j]j\c.drm_gpuvm_sm_unmap_exec_lockasbuh1hhjH ubjV)}(h h]h }(hjm hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjH ubjm)}(h req_rangeh]h req_range}(hj{ hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjH ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM hjhhubj)}(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:506: ./drivers/gpu/drm/drm_gpuvm.chM hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1j2hhhj: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:506: ./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:506: ./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 ](jjc-typeeh"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj 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&]uh1j hj 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:506: ./drivers/gpu/drm/drm_gpuvm.chM hj)}(hstruct drm_gpuva_ops *drm_gpuvm_sm_map_ops_create(struct drm_gpuvm *gpuvm, u64 req_addr, u64 req_range, struct drm_gem_object *req_obj, u64 req_offset)h](jD)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj"hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM4 ubjV)}(h h]h }(hj"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj"hhhj"hM4 ubh)}(hhh]jm)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj"hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj"modnameN classnameNjj)}j]j)}jdrm_gpuvm_sm_map_ops_createsbc.drm_gpuvm_sm_map_ops_createasbuh1hhj"hhhj"hM4 ubjV)}(h h]h }(hj"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj"hhhj"hM4 ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhj"hM4 ubjg)}(hdrm_gpuvm_sm_map_ops_createh]jm)}(hj"h]hdrm_gpuvm_sm_map_ops_create}(hj"hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"hhhj"hM4 ubj)}(hf(struct drm_gpuvm *gpuvm, u64 req_addr, u64 req_range, struct drm_gem_object *req_obj, u64 req_offset)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj#ubjV)}(h h]h }(hj#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj#ubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hj%#hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"#ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj'#modnameN classnameNjj)}j]j"c.drm_gpuvm_sm_map_ops_createasbuh1hhj#ubjV)}(h h]h }(hjC#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj#ubj)}(hjh]h*}(hjQ#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjm)}(hgpuvmh]hgpuvm}(hj^#hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubj)}(h u64 req_addrh](h)}(hhh]jm)}(hu64h]hu64}(hjz#hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjw#ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj|#modnameN classnameNjj)}j]j"c.drm_gpuvm_sm_map_ops_createasbuh1hhjs#ubjV)}(h h]h }(hj#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjs#ubjm)}(hreq_addrh]hreq_addr}(hj#hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjs#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubj)}(h u64 req_rangeh](h)}(hhh]jm)}(hu64h]hu64}(hj#hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj#modnameN classnameNjj)}j]j"c.drm_gpuvm_sm_map_ops_createasbuh1hhj#ubjV)}(h h]h }(hj#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj#ubjm)}(h req_rangeh]h req_range}(hj#hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubj)}(hstruct drm_gem_object *req_objh](jD)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj$ubjV)}(h h]h }(hj$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj$ubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj%$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"$ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj'$modnameN classnameNjj)}j]j"c.drm_gpuvm_sm_map_ops_createasbuh1hhj$ubjV)}(h h]h }(hjC$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj$ubj)}(hjh]h*}(hjQ$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(hreq_objh]hreq_obj}(hj^$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubj)}(hu64 req_offseth](h)}(hhh]jm)}(hu64h]hu64}(hjz$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjw$ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj|$modnameN classnameNjj)}j]j"c.drm_gpuvm_sm_map_ops_createasbuh1hhjs$ubjV)}(h h]h }(hj$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjs$ubjm)}(h req_offseth]h req_offset}(hj$hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjs$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhj"hM4 ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj"hhhj"hM4 ubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1j7hj"hM4 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 ](jjc-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j"c.drm_gpuvm_sm_map_ops_createasbj drm_gpuva_opsuh1hhjthMhj$ubh to split and merge}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM4 hj$hhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj"hM4 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1j2hhhj: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 new mapping ``u64 req_range`` the range of the new mapping ``struct drm_gem_object *req_obj`` the :c:type:`drm_gem_object` to map ``u64 req_offset`` the offset within the :c:type:`drm_gem_object` **Description** This function creates a list of operations to perform splitting and merging of existent 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 is 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:506: ./drivers/gpu/drm/drm_gpuvm.chM8 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)}(hj9%h]hstruct drm_gpuvm *gpuvm}(hj;%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7%ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM5 hj3%ubj )}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hjR%hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj\%h]h drm_gpuvm}(hj^%hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjZ%ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjN%hM5 hjR%ubh representing the GPU VA space}(hjR%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjN%hM5 hjO%ubah}(h]h ]h"]h$]h&]uh1j hj3%ubeh}(h]h ]h"]h$]h&]uh1jhjN%hM5 hj0%ubj)}(h6``u64 req_addr`` the start address of the new mapping 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:506: ./drivers/gpu/drm/drm_gpuvm.chM6 hj%ubj )}(hhh]h)}(h$the start address of the new mappingh]h$the start address of the new mapping}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hM6 hj%ubah}(h]h ]h"]h$]h&]uh1j hj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hM6 hj0%ubj)}(h/``u64 req_range`` the range of the new mapping 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:506: ./drivers/gpu/drm/drm_gpuvm.chM7 hj%ubj )}(hhh]h)}(hthe range of the new mappingh]hthe range of the new mapping}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hM7 hj%ubah}(h]h ]h"]h$]h&]uh1j hj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hM7 hj0%ubj)}(hG``struct drm_gem_object *req_obj`` the :c:type:`drm_gem_object` to map h](j)}(h"``struct drm_gem_object *req_obj``h]j)}(hj&h]hstruct drm_gem_object *req_obj}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM8 hj&ubj )}(hhh]h)}(h#the :c:type:`drm_gem_object` to maph](hthe }(hj &hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj*&h]hdrm_gem_object}(hj,&hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj(&ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhj&hM8 hj &ubh to map}(hj &hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&hM8 hj&ubah}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM8 hj0%ubj)}(hB``u64 req_offset`` the offset within the :c:type:`drm_gem_object` h](j)}(h``u64 req_offset``h]j)}(hjc&h]hu64 req_offset}(hje&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja&ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM9 hj]&ubj )}(hhh]h)}(h.the offset within the :c:type:`drm_gem_object`h](hthe offset within the }(hj|&hhhNhNubh)}(h:c:type:`drm_gem_object`h]j)}(hj&h]hdrm_gem_object}(hj&hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gem_objectuh1hhjx&hM9 hj|&ubeh}(h]h ]h"]h$]h&]uh1hhjx&hM9 hjy&ubah}(h]h ]h"]h$]h&]uh1j hj]&ubeh}(h]h ]h"]h$]h&]uh1jhjx&hM9 hj0%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:506: ./drivers/gpu/drm/drm_gpuvm.chM; hj%ubh)}(hThis function creates a list of operations to perform splitting and merging of existent mapping(s) with the newly requested one.h]hThis function creates a list of operations to perform splitting and merging of existent mapping(s) with the newly requested one.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM: hj%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 is the exact same way.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 ](jjc-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM= hj&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 is the exact same way.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj 'hM= hj%ubh)}(hThere can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller.h]hThere can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMB hj%ubh)}(hXNote that before calling this function again with another mapping request it is necessary to update the :c:type:`drm_gpuvm`'s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.h](hhNote that before calling this function again with another mapping request it is necessary to update the }(hj#'hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj-'h]h drm_gpuvm}(hj/'hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj+'ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMF hj#'ubhw’s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the }(hj#'hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjQ'h]h drm_gpuvm}(hjS'hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjO'ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjJ'hMF 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&]uh1hhjJ'hMF 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 }(hjx'hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj'h]h drm_gpuva_ops}(hj'hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMM hjx'ubh, they must be freed with }(hjx'hhhNhNubh)}(h:c:type:`drm_gpuva_ops_free`h]j)}(hj'h]hdrm_gpuva_ops_free}(hj'hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_ops_freeuh1hhj'hMM hjx'ubh.}(hjx'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj'hMM 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:506: ./drivers/gpu/drm/drm_gpuvm.chMP hj%ubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hj'hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj'h]h drm_gpuva_ops}(hj'hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMQ hj'ubh" on success, an ERR_PTR on failure}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj (hMQ hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.*drm_gpuvm_sm_unmap_ops_create (C function)c.drm_gpuvm_sm_unmap_ops_createhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hkstruct drm_gpuva_ops * drm_gpuvm_sm_unmap_ops_create (struct drm_gpuvm *gpuvm, u64 req_addr, u64 req_range)h]j>)}(histruct drm_gpuva_ops *drm_gpuvm_sm_unmap_ops_create(struct drm_gpuvm *gpuvm, u64 req_addr, u64 req_range)h](jD)}(hjh]hstruct}(hj7(hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj3(hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMw ubjV)}(h h]h }(hjE(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj3(hhhjD(hMw ubh)}(hhh]jm)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hjV(hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjS(ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjX(modnameN classnameNjj)}j]j)}jdrm_gpuvm_sm_unmap_ops_createsbc.drm_gpuvm_sm_unmap_ops_createasbuh1hhj3(hhhjD(hMw ubjV)}(h h]h }(hjw(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj3(hhhjD(hMw ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3(hhhjD(hMw ubjg)}(hdrm_gpuvm_sm_unmap_ops_createh]jm)}(hjt(h]hdrm_gpuvm_sm_unmap_ops_create}(hj(hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3(hhhjD(hMw ubj)}(h6(struct drm_gpuvm *gpuvm, u64 req_addr, u64 req_range)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj(ubjV)}(h h]h }(hj(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(ubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hj(hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj(modnameN classnameNjj)}j]jr(c.drm_gpuvm_sm_unmap_ops_createasbuh1hhj(ubjV)}(h h]h }(hj(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(hgpuvmh]hgpuvm}(hj)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(h u64 req_addrh](h)}(hhh]jm)}(hu64h]hu64}(hj$)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj!)ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj&)modnameN classnameNjj)}j]jr(c.drm_gpuvm_sm_unmap_ops_createasbuh1hhj)ubjV)}(h h]h }(hjB)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj)ubjm)}(hreq_addrh]hreq_addr}(hjP)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(h u64 req_rangeh](h)}(hhh]jm)}(hu64h]hu64}(hjl)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhji)ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjn)modnameN classnameNjj)}j]jr(c.drm_gpuvm_sm_unmap_ops_createasbuh1hhje)ubjV)}(h h]h }(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhje)ubjm)}(h req_rangeh]h req_range}(hj)hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhje)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubeh}(h]h ]h"]h$]h&]jjuh1jhj3(hhhjD(hMw ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj/(hhhjD(hMw ubah}(h]j*(ah ](jjeh"]h$]h&]jj)jhuh1j7hjD(hMw hj,(hhubj)}(hhh]h)}(h5creates the :c:type:`drm_gpuva_ops` to split on unmaph](h creates the }(hj)hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj)h]h drm_gpuva_ops}(hj)hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]jr(c.drm_gpuvm_sm_unmap_ops_createasbj drm_gpuva_opsuh1hhjthMhj)ubh to split on unmap}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chMw hj)hhubah}(h]h ]h"]h$]h&]uh1jhj,(hhhjD(hMw ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1j2hhhj: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)}(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:506: ./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:506: ./drivers/gpu/drm/drm_gpuvm.chMy hj%*ubj )}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hjD*hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjN*h]h drm_gpuvm}(hjP*hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjL*ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj@*hMy hjD*ubh representing the GPU VA space}(hjD*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@*hMy hjA*ubah}(h]h ]h"]h$]h&]uh1j hj%*ubeh}(h]h ]h"]h$]h&]uh1jhj@*hMy 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:506: ./drivers/gpu/drm/drm_gpuvm.chMz 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*hMz hj*ubah}(h]h ]h"]h$]h&]uh1j hj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMz 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:506: ./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&]uh1j hj*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:506: ./drivers/gpu/drm/drm_gpuvm.chM} hj*ubh)}(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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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 unmap and remap operations, depending on whether there are actual overlapping mappings to split.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 ](jjc-typeeh"]h$]h&]uh1jhj(+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj +ubh 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.}(hj +hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjG+hM 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.}(hjR+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj*ubh)}(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 }(hja+hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hjk+h]h drm_gpuvm}(hjm+hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhji+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hja+ubhp’s view of the GPU VA space. The previously obtained operations must be processed or abandoned. To update the }(hja+hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj+h]h drm_gpuvm}(hj+hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj+hM hja+ubh’s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hja+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 ](jjc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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 ](jjc-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_ops_freeuh1hhj+hM hj+ubh.}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj*ubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hj#,hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj-,h]h drm_gpuva_ops}(hj/,hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj+,ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj#,ubh" on success, an ERR_PTR on failure}(hj#,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJ,hM hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.*drm_gpuvm_prefetch_ops_create (C function)c.drm_gpuvm_prefetch_ops_createhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hcstruct drm_gpuva_ops * drm_gpuvm_prefetch_ops_create (struct drm_gpuvm *gpuvm, u64 addr, u64 range)h]j>)}(hastruct drm_gpuva_ops *drm_gpuvm_prefetch_ops_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jD)}(hjh]hstruct}(hju,hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjq,hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM ubjV)}(h h]h }(hj,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjq,hhhj,hM ubh)}(hhh]jm)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj,hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj,modnameN classnameNjj)}j]j)}jdrm_gpuvm_prefetch_ops_createsbc.drm_gpuvm_prefetch_ops_createasbuh1hhjq,hhhj,hM ubjV)}(h h]h }(hj,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjq,hhhj,hM ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq,hhhj,hM ubjg)}(hdrm_gpuvm_prefetch_ops_createh]jm)}(hj,h]hdrm_gpuvm_prefetch_ops_create}(hj,hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjq,hhhj,hM ubj)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj,ubjV)}(h h]h }(hj,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj,ubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hj -hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj -ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj-modnameN classnameNjj)}j]j,c.drm_gpuvm_prefetch_ops_createasbuh1hhj,ubjV)}(h h]h }(hj+-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj,ubj)}(hjh]h*}(hj9-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(hgpuvmh]hgpuvm}(hjF-hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hu64 addrh](h)}(hhh]jm)}(hu64h]hu64}(hjb-hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj_-ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjd-modnameN classnameNjj)}j]j,c.drm_gpuvm_prefetch_ops_createasbuh1hhj[-ubjV)}(h h]h }(hj-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj[-ubjm)}(haddrh]haddr}(hj-hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj[-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(h u64 rangeh](h)}(hhh]jm)}(hu64h]hu64}(hj-hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj-modnameN classnameNjj)}j]j,c.drm_gpuvm_prefetch_ops_createasbuh1hhj-ubjV)}(h h]h }(hj-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj-ubjm)}(hrangeh]hrange}(hj-hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhjq,hhhj,hM ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjm,hhhj,hM ubah}(h]jh,ah ](jjeh"]h$]h&]jj)jhuh1j7hj,hM hjj,hhubj)}(hhh]h)}(h/creates the :c:type:`drm_gpuva_ops` to prefetchh](h creates the }(hj.hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj .h]h drm_gpuva_ops}(hj .hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j,c.drm_gpuvm_prefetch_ops_createasbj drm_gpuva_opsuh1hhjthMhj.ubh to prefetch}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj-hhubah}(h]h ]h"]h$]h&]uh1jhjj,hhhj,hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@.jj@.jjjuh1j2hhhj: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)}(hjJ.h]h Parameters}(hjL.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH.ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.c:hM hjD.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)}(hji.h]hstruct drm_gpuvm *gpuvm}(hjk.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjc.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 ](jjc-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj 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&]uh1j hjc.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:506: ./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}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hM hj.ubah}(h]h ]h"]h$]h&]uh1j hj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hM hj`.ubj)}(h4``u64 range`` the range of the mappings to prefetch 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:506: ./drivers/gpu/drm/drm_gpuvm.chM hj.ubj )}(hhh]h)}(h%the range of the mappings to prefetchh]h%the range of the mappings to prefetch}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hM hj/ubah}(h]h ]h"]h$]h&]uh1j hj.ubeh}(h]h ]h"]h$]h&]uh1jhj/hM hj`.ubeh}(h]h ]h"]h$]h&]uh1jhjD.ubh)}(h**Description**h]j)}(hj9/h]h Description}(hj;/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7/ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjD.ubh)}(hBThis function creates a list of operations to perform prefetching.h]hBThis function creates a list of operations to perform prefetching.}(hjO/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjD.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)}(hjh/h]hdrm_gpuva_for_each_op}(hjj/hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjf/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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 hjD.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:506: ./drivers/gpu/drm/drm_gpuvm.chM hjD.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 ](jjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./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 ](jjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_ops_freeuh1hhj/hM hj/ubh.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/hM hjD.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:506: ./drivers/gpu/drm/drm_gpuvm.chM hjD.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)}(hj0h]h drm_gpuva_ops}(hj0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj 0ubh" on success, an ERR_PTR on failure}(hj 0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj30hM hjD.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.*drm_gpuvm_bo_unmap_ops_create (C function)c.drm_gpuvm_bo_unmap_ops_createhNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hQstruct drm_gpuva_ops * drm_gpuvm_bo_unmap_ops_create (struct drm_gpuvm_bo *vm_bo)h]j>)}(hOstruct drm_gpuva_ops *drm_gpuvm_bo_unmap_ops_create(struct drm_gpuvm_bo *vm_bo)h](jD)}(hjh]hstruct}(hj^0hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjZ0hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM ubjV)}(h h]h }(hjl0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjZ0hhhjk0hM ubh)}(hhh]jm)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj}0hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjz0ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj0modnameN classnameNjj)}j]j)}jdrm_gpuvm_bo_unmap_ops_createsbc.drm_gpuvm_bo_unmap_ops_createasbuh1hhjZ0hhhjk0hM ubjV)}(h h]h }(hj0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjZ0hhhjk0hM ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ0hhhjk0hM ubjg)}(hdrm_gpuvm_bo_unmap_ops_createh]jm)}(hj0h]hdrm_gpuvm_bo_unmap_ops_create}(hj0hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZ0hhhjk0hM ubj)}(h(struct drm_gpuvm_bo *vm_bo)h]j)}(hstruct drm_gpuvm_bo *vm_boh](jD)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj0ubjV)}(h h]h }(hj0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj0ubh)}(hhh]jm)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hj0hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj0modnameN classnameNjj)}j]j0c.drm_gpuvm_bo_unmap_ops_createasbuh1hhj0ubjV)}(h h]h }(hj1hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj0ubj)}(hjh]h*}(hj"1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(hvm_boh]hvm_bo}(hj/1hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubah}(h]h ]h"]h$]h&]jjuh1jhjZ0hhhjk0hM ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjV0hhhjk0hM ubah}(h]jQ0ah ](jjeh"]h$]h&]jj)jhuh1j7hjk0hM hjS0hhubj)}(hhh]h)}(h2creates the :c:type:`drm_gpuva_ops` to unmap a GEMh](h creates the }(hjY1hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjc1h]h drm_gpuva_ops}(hje1hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhja1ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j0c.drm_gpuvm_bo_unmap_ops_createasbj drm_gpuva_opsuh1hhjthMhjY1ubh to unmap a GEM}(hjY1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjV1hhubah}(h]h ]h"]h$]h&]uh1jhjS0hhhjk0hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1j2hhhj: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`. It is the callers responsibility to protect the GEMs GPUVA list against concurrent access using the GEMs dma_resv lock. **Return** a pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj1ubj)}(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)}(hj1h]hstruct drm_gpuvm_bo *vm_bo}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj1ubj )}(hhh]h)}(h&the :c:type:`drm_gpuvm_bo` abstractionh](hthe }(hj1hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j)}(hj1h]h drm_gpuvm_bo}(hj1hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvm_bouh1hhj1hM hj1ubh abstraction}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1hM hj1ubah}(h]h ]h"]h$]h&]uh1j hj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]j)}(hj 2h]h Description}(hj"2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj1ubh)}(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.}(hj62hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj1ubh)}(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 }(hjE2hhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j)}(hjO2h]hdrm_gpuva_for_each_op}(hjQ2hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjM2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjE2ubh= and consists out of an arbitrary amount of unmap operations.}(hjE2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjl2hM hj1ubh)}(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 }(hjw2hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj2h]h drm_gpuva_ops}(hj2hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hjw2ubh, they must be freed with }(hjw2hhhNhNubh)}(h:c:type:`drm_gpuva_ops_free`h]j)}(hj2h]hdrm_gpuva_ops_free}(hj2hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpuva_ops_freeuh1hhj2hM hjw2ubh.}(hjw2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hM hj1ubh)}(hwIt is the callers responsibility to protect the GEMs GPUVA list against concurrent access using the GEMs dma_resv lock.h]hwIt is the callers responsibility to protect the GEMs GPUVA list against concurrent access using the GEMs dma_resv lock.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj1ubh)}(h **Return**h]j)}(hj2h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj1ubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hj2hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj2h]h drm_gpuva_ops}(hj2hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM hj2ubh" on success, an ERR_PTR on failure}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3hM hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpuva_ops_free (C function)c.drm_gpuva_ops_freehNtauh1j!hj:hhhNhNubj3)}(hhh](j8)}(hLvoid drm_gpuva_ops_free (struct drm_gpuvm *gpuvm, struct drm_gpuva_ops *ops)h]j>)}(hKvoid drm_gpuva_ops_free(struct drm_gpuvm *gpuvm, struct drm_gpuva_ops *ops)h](jc)}(hvoidh]hvoid}(hjE3hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjA3hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM! ubjV)}(h h]h }(hjT3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjA3hhhjS3hM! ubjg)}(hdrm_gpuva_ops_freeh]jm)}(hdrm_gpuva_ops_freeh]hdrm_gpuva_ops_free}(hjf3hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjb3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjA3hhhjS3hM! ubj)}(h4(struct drm_gpuvm *gpuvm, struct drm_gpuva_ops *ops)h](j)}(hstruct drm_gpuvm *gpuvmh](jD)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj~3ubjV)}(h h]h }(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj~3ubh)}(hhh]jm)}(h drm_gpuvmh]h drm_gpuvm}(hj3hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj3modnameN classnameNjj)}j]j)}jjh3sbc.drm_gpuva_ops_freeasbuh1hhj~3ubjV)}(h h]h }(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj~3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~3ubjm)}(hgpuvmh]hgpuvm}(hj3hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj~3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjz3ubj)}(hstruct drm_gpuva_ops *opsh](jD)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj3ubjV)}(h h]h }(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj3ubh)}(hhh]jm)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj4hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj4modnameN classnameNjj)}j]j3c.drm_gpuva_ops_freeasbuh1hhj3ubjV)}(h h]h }(hj04hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj3ubj)}(hjh]h*}(hj>4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hopsh]hops}(hjK4hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjz3ubeh}(h]h ]h"]h$]h&]jjuh1jhjA3hhhjS3hM! ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj=3hhhjS3hM! ubah}(h]j83ah ](jjeh"]h$]h&]jj)jhuh1j7hjS3hM! hj:3hhubj)}(hhh]h)}(h&free the given :c:type:`drm_gpuva_ops`h](hfree the given }(hju4hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj4h]h drm_gpuva_ops}(hj4hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj}4ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjj)}j]j3c.drm_gpuva_ops_freeasbj drm_gpuva_opsuh1hhjthMhju4ubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM! hjr4hhubah}(h]h ]h"]h$]h&]uh1jhj:3hhhjS3hM! ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1j2hhhj: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)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM% hj4ubj)}(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)}(hj4h]hstruct drm_gpuvm *gpuvm}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM" hj4ubj )}(hhh]h)}(h0the :c:type:`drm_gpuvm` the ops were created forh](hthe }(hj4hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j)}(hj4h]h drm_gpuvm}(hj4hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhj4hM" hj4ubh the ops were created for}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4hM" hj4ubah}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM" hj4ubj)}(hB``struct drm_gpuva_ops *ops`` the :c:type:`drm_gpuva_ops` to free h](j)}(h``struct drm_gpuva_ops *ops``h]j)}(hj65h]hstruct drm_gpuva_ops *ops}(hj85hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj45ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM# hj05ubj )}(hhh]h)}(h#the :c:type:`drm_gpuva_ops` to freeh](hthe }(hjO5hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hjY5h]h drm_gpuva_ops}(hj[5hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjW5ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhjK5hM# hjO5ubh to free}(hjO5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjK5hM# hjL5ubah}(h]h ]h"]h$]h&]uh1j hj05ubeh}(h]h ]h"]h$]h&]uh1jhjK5hM# hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM% hj4ubh)}(h[Frees the given :c:type:`drm_gpuva_ops` structure including all the ops associated with it.h](hFrees the given }(hj5hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j)}(hj5h]h drm_gpuva_ops}(hj5hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.chM$ hj5ubh4 structure including all the ops associated with it.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5hM$ hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubeh}(h]drm-gpuvm-function-referencesah ]h"]drm gpuvm function referencesah$]h&]uh1hhj*hhhhhMubeh}(h](j*id2eh ]h"]( drm gpuvm drm_gpuvmeh$]h&]uh1hhhhhhhhMj}j5j*sj}j*j*subh)}(hhh](h)}(hDRM Buddy Allocatorh]hDRM Buddy Allocator}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hhhhhMubh)}(hhh](h)}(hDRM Buddy Function Referencesh]hDRM Buddy Function References}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hhhhhMubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_buddy_init (C function)c.drm_buddy_inithNtauh1j!hj6hhhNhNubj3)}(hhh](j8)}(hCint drm_buddy_init (struct drm_buddy *mm, u64 size, u64 chunk_size)h]j>)}(hBint drm_buddy_init(struct drm_buddy *mm, u64 size, u64 chunk_size)h](jc)}(hinth]hint}(hj16hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj-6hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chKubjV)}(h h]h }(hj@6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj-6hhhj?6hKubjg)}(hdrm_buddy_inith]jm)}(hdrm_buddy_inith]hdrm_buddy_init}(hjR6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjN6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-6hhhj?6hKubj)}(h0(struct drm_buddy *mm, u64 size, u64 chunk_size)h](j)}(hstruct drm_buddy *mmh](jD)}(hjh]hstruct}(hjn6hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjj6ubjV)}(h h]h }(hj{6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjj6ubh)}(hhh]jm)}(h drm_buddyh]h drm_buddy}(hj6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]j)}jjT6sbc.drm_buddy_initasbuh1hhjj6ubjV)}(h h]h }(hj6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjj6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj6ubjm)}(hmmh]hmm}(hj6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjf6ubj)}(hu64 sizeh](h)}(hhh]jm)}(hu64h]hu64}(hj6hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]j6c.drm_buddy_initasbuh1hhj6ubjV)}(h h]h }(hj7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj6ubjm)}(hsizeh]hsize}(hj7hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjf6ubj)}(hu64 chunk_sizeh](h)}(hhh]jm)}(hu64h]hu64}(hj+7hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj(7ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj-7modnameN classnameNjj)}j]j6c.drm_buddy_initasbuh1hhj$7ubjV)}(h h]h }(hjI7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj$7ubjm)}(h chunk_sizeh]h chunk_size}(hjW7hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj$7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjf6ubeh}(h]h ]h"]h$]h&]jjuh1jhj-6hhhj?6hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj)6hhhj?6hKubah}(h]j$6ah ](jjeh"]h$]h&]jj)jhuh1j7hj?6hKhj&6hhubj)}(hhh]h)}(hinit memory managerh]hinit memory manager}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chKhj~7hhubah}(h]h ]h"]h$]h&]uh1jhj&6hhhj?6hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1j2hhhj6hNhNubj)}(hX-**Parameters** ``struct drm_buddy *mm`` DRM 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)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chKhj7ubj)}(hhh](j)}(h9``struct drm_buddy *mm`` DRM buddy manager to initialize h](j)}(h``struct drm_buddy *mm``h]j)}(hj7h]hstruct drm_buddy *mm}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chKhj7ubj )}(hhh]h)}(hDRM buddy manager to initializeh]hDRM buddy manager to initialize}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hKhj7ubah}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj7ubj)}(h%``u64 size`` size in bytes to manage h](j)}(h ``u64 size``h]j)}(hj7h]hu64 size}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chKhj7ubj )}(hhh]h)}(hsize in bytes to manageh]hsize in bytes to manage}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhj7ubj)}(hB``u64 chunk_size`` minimum page size in bytes for our allocations h](j)}(h``u64 chunk_size``h]j)}(hj48h]hu64 chunk_size}(hj68hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj28ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chKhj.8ubj )}(hhh]h)}(h.minimum page size in bytes for our allocationsh]h.minimum page size in bytes for our allocations}(hjM8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI8hKhjJ8ubah}(h]h ]h"]h$]h&]uh1j hj.8ubeh}(h]h ]h"]h$]h&]uh1jhjI8hKhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubh)}(h**Description**h]j)}(hjo8h]h Description}(hjq8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm8ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chKhj7ubh)}(h1Initializes the memory manager and its resources.h]h1Initializes the memory manager and its resources.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chKhj7ubh)}(h **Return**h]j)}(hj8h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chKhj7ubh)}(h$0 on success, error code on failure.h]h$0 on success, error code on failure.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chKhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_buddy_fini (C function)c.drm_buddy_finihNtauh1j!hj6hhhNhNubj3)}(hhh](j8)}(h*void drm_buddy_fini (struct drm_buddy *mm)h]j>)}(h)void drm_buddy_fini(struct drm_buddy *mm)h](jc)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj8hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMBubjV)}(h h]h }(hj8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj8hhhj8hMBubjg)}(hdrm_buddy_finih]jm)}(hdrm_buddy_finih]hdrm_buddy_fini}(hj8hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhj8hMBubj)}(h(struct drm_buddy *mm)h]j)}(hstruct drm_buddy *mmh](jD)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj9ubjV)}(h h]h }(hj%9hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj9ubh)}(hhh]jm)}(h drm_buddyh]h drm_buddy}(hj69hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj39ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj89modnameN classnameNjj)}j]j)}jj8sbc.drm_buddy_finiasbuh1hhj9ubjV)}(h h]h }(hjV9hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj9ubj)}(hjh]h*}(hjd9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(hmmh]hmm}(hjq9hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hMBubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj8hhhj8hMBubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1j7hj8hMBhj8hhubj)}(hhh]h)}(htear down the memory managerh]htear down the memory manager}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMBhj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1j2hhhj6hNhNubj)}(h**Parameters** ``struct drm_buddy *mm`` DRM buddy manager to free **Description** Cleanup memory manager resources and the freelisth](h)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMFhj9ubj)}(hhh]j)}(h3``struct drm_buddy *mm`` DRM buddy manager to free h](j)}(h``struct drm_buddy *mm``h]j)}(hj9h]hstruct drm_buddy *mm}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMDhj9ubj )}(hhh]h)}(hDRM buddy manager to freeh]hDRM buddy manager to free}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMDhj9ubah}(h]h ]h"]h$]h&]uh1j hj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMDhj9ubah}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMFhj9ubh)}(h1Cleanup memory manager resources and the freelisth]h1Cleanup memory manager resources and the freelist}(hj-:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMEhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_get_buddy (C function)c.drm_get_buddyhNtauh1j!hj6hhhNhNubj3)}(hhh](j8)}(hFstruct drm_buddy_block * drm_get_buddy (struct drm_buddy_block *block)h]j>)}(hDstruct drm_buddy_block *drm_get_buddy(struct drm_buddy_block *block)h](jD)}(hjh]hstruct}(hj\:hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjX:hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMubjV)}(h h]h }(hjj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjX:hhhji:hMubh)}(hhh]jm)}(hdrm_buddy_blockh]hdrm_buddy_block}(hj{:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjx:ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj}:modnameN classnameNjj)}j]j)}j drm_get_buddysbc.drm_get_buddyasbuh1hhjX:hhhji:hMubjV)}(h h]h }(hj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjX:hhhji:hMubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX:hhhji:hMubjg)}(h drm_get_buddyh]jm)}(hj:h]h drm_get_buddy}(hj:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjX:hhhji:hMubj)}(h(struct drm_buddy_block *block)h]j)}(hstruct drm_buddy_block *blockh](jD)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj:ubjV)}(h h]h }(hj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:ubh)}(hhh]jm)}(hdrm_buddy_blockh]hdrm_buddy_block}(hj:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:modnameN classnameNjj)}j]j:c.drm_get_buddyasbuh1hhj:ubjV)}(h h]h }(hj;hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:ubj)}(hjh]h*}(hj ;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hblockh]hblock}(hj-;hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubah}(h]h ]h"]h$]h&]jjuh1jhjX:hhhji:hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjT:hhhji:hMubah}(h]jO:ah ](jjeh"]h$]h&]jj)jhuh1j7hji:hMhjQ:hhubj)}(hhh]h)}(hget buddy addressh]hget buddy address}(hjW;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjT;hhubah}(h]h ]h"]h$]h&]uh1jhjQ:hhhji:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjo;jjo;jjjuh1j2hhhj6hNhNubj)}(hX%**Parameters** ``struct drm_buddy_block *block`` DRM buddy block **Description** Returns the corresponding buddy block for **block**, or NULL if this is a root block and can't be merged further. Requires some kind of locking to protect against any concurrent allocate and free operations.h](h)}(h**Parameters**h]j)}(hjy;h]h Parameters}(hj{;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw;ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjs;ubj)}(hhh]j)}(h2``struct drm_buddy_block *block`` DRM buddy block h](j)}(h!``struct drm_buddy_block *block``h]j)}(hj;h]hstruct drm_buddy_block *block}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhj;ubj )}(hhh]h)}(hDRM buddy blockh]hDRM buddy block}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1j hj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jhjs;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:515: ./drivers/gpu/drm/drm_buddy.chMhjs;ubh)}(hReturns the corresponding buddy block for **block**, or NULL if this is a root block and can't be merged further. Requires some kind of locking to protect against any concurrent allocate and free operations.h](h*Returns the corresponding buddy block for }(hj;hhhNhNubj)}(h **block**h]hblock}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh, or NULL if this is a root block and can’t be merged further. Requires some kind of locking to protect against any concurrent allocate and free operations.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjs;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_buddy_reset_clear (C function)c.drm_buddy_reset_clearhNtauh1j!hj6hhhNhNubj3)}(hhh](j8)}(h@void drm_buddy_reset_clear (struct drm_buddy *mm, bool is_clear)h]j>)}(h?void drm_buddy_reset_clear(struct drm_buddy *mm, bool is_clear)h](jc)}(hvoidh]hvoid}(hj*<hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj&<hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMubjV)}(h h]h }(hj9<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj&<hhhj8<hMubjg)}(hdrm_buddy_reset_clearh]jm)}(hdrm_buddy_reset_clearh]hdrm_buddy_reset_clear}(hjK<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjG<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&<hhhj8<hMubj)}(h%(struct drm_buddy *mm, bool is_clear)h](j)}(hstruct drm_buddy *mmh](jD)}(hjh]hstruct}(hjg<hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjc<ubjV)}(h h]h }(hjt<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjc<ubh)}(hhh]jm)}(h drm_buddyh]h drm_buddy}(hj<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj<modnameN classnameNjj)}j]j)}jjM<sbc.drm_buddy_reset_clearasbuh1hhjc<ubjV)}(h h]h }(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjc<ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc<ubjm)}(hmmh]hmm}(hj<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjc<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_<ubj)}(h bool is_clearh](jc)}(hj h]hbool}(hj<hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj<ubjV)}(h h]h }(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj<ubjm)}(his_clearh]his_clear}(hj<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_<ubeh}(h]h ]h"]h$]h&]jjuh1jhj&<hhhj8<hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj"<hhhj8<hMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1j7hj8<hMhj<hhubj)}(hhh]h)}(hreset blocks clear stateh]hreset blocks clear state}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhj8<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6=jj6=jjjuh1j2hhhj6hNhNubj)}(h**Parameters** ``struct drm_buddy *mm`` DRM buddy manager ``bool is_clear`` blocks clear state **Description** Reset the clear state based on **is_clear** value for each block in the freelist.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:515: ./drivers/gpu/drm/drm_buddy.chMhj:=ubj)}(hhh](j)}(h+``struct drm_buddy *mm`` DRM buddy manager h](j)}(h``struct drm_buddy *mm``h]j)}(hj_=h]hstruct drm_buddy *mm}(hja=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]=ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjY=ubj )}(hhh]h)}(hDRM buddy managerh]hDRM buddy manager}(hjx=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt=hMhju=ubah}(h]h ]h"]h$]h&]uh1j hjY=ubeh}(h]h ]h"]h$]h&]uh1jhjt=hMhjV=ubj)}(h%``bool is_clear`` blocks clear state h](j)}(h``bool is_clear``h]j)}(hj=h]h bool is_clear}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhj=ubj )}(hhh]h)}(hblocks clear stateh]hblocks clear state}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1j hj=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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhj:=ubh)}(hQReset the clear state based on **is_clear** value for each block in the freelist.h](hReset the clear state based on }(hj=hhhNhNubj)}(h **is_clear**h]his_clear}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh& value for each block in the freelist.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhj:=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!drm_buddy_free_block (C function)c.drm_buddy_free_blockhNtauh1j!hj6hhhNhNubj3)}(hhh](j8)}(hOvoid drm_buddy_free_block (struct drm_buddy *mm, struct drm_buddy_block *block)h]j>)}(hNvoid drm_buddy_free_block(struct drm_buddy *mm, struct drm_buddy_block *block)h](jc)}(hvoidh]hvoid}(hj*>hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj&>hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMubjV)}(h h]h }(hj9>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj&>hhhj8>hMubjg)}(hdrm_buddy_free_blockh]jm)}(hdrm_buddy_free_blockh]hdrm_buddy_free_block}(hjK>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjG>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&>hhhj8>hMubj)}(h5(struct drm_buddy *mm, struct drm_buddy_block *block)h](j)}(hstruct drm_buddy *mmh](jD)}(hjh]hstruct}(hjg>hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjc>ubjV)}(h h]h }(hjt>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjc>ubh)}(hhh]jm)}(h drm_buddyh]h drm_buddy}(hj>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>modnameN classnameNjj)}j]j)}jjM>sbc.drm_buddy_free_blockasbuh1hhjc>ubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjc>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc>ubjm)}(hmmh]hmm}(hj>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjc>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_>ubj)}(hstruct drm_buddy_block *blockh](jD)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj>ubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubh)}(hhh]jm)}(hdrm_buddy_blockh]hdrm_buddy_block}(hj>hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>modnameN classnameNjj)}j]j>c.drm_buddy_free_blockasbuh1hhj>ubjV)}(h h]h }(hj?hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>ubj)}(hjh]h*}(hj#?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hblockh]hblock}(hj0?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_>ubeh}(h]h ]h"]h$]h&]jjuh1jhj&>hhhj8>hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj">hhhj8>hMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1j7hj8>hMhj>hhubj)}(hhh]h)}(h free a blockh]h free a block}(hjZ?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjW?hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj8>hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjr?jjr?jjjuh1j2hhhj6hNhNubj)}(hs**Parameters** ``struct drm_buddy *mm`` DRM buddy manager ``struct drm_buddy_block *block`` block to be freedh](h)}(h**Parameters**h]j)}(hj|?h]h Parameters}(hj~?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz?ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjv?ubj)}(hhh](j)}(h+``struct drm_buddy *mm`` DRM buddy manager h](j)}(h``struct drm_buddy *mm``h]j)}(hj?h]hstruct drm_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:515: ./drivers/gpu/drm/drm_buddy.chMhj?ubj )}(hhh]h)}(hDRM buddy managerh]hDRM buddy manager}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1j hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhj?ubj)}(h3``struct drm_buddy_block *block`` block to be freedh](j)}(h!``struct drm_buddy_block *block``h]j)}(hj?h]hstruct drm_buddy_block *block}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhj?ubj )}(hhh]h)}(hblock to be freedh]hblock to be freed}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhj?ubah}(h]h ]h"]h$]h&]uh1j hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhj?ubeh}(h]h ]h"]h$]h&]uh1jhjv?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_buddy_free_list (C function)c.drm_buddy_free_listhNtauh1j!hj6hhhNhNubj3)}(hhh](j8)}(h^void drm_buddy_free_list (struct drm_buddy *mm, struct list_head *objects, unsigned int flags)h]j>)}(h]void drm_buddy_free_list(struct drm_buddy *mm, struct list_head *objects, unsigned int flags)h](jc)}(hvoidh]hvoid}(hj.@hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj*@hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMubjV)}(h h]h }(hj=@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj*@hhhj<@hMubjg)}(hdrm_buddy_free_listh]jm)}(hdrm_buddy_free_listh]hdrm_buddy_free_list}(hjO@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjK@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*@hhhj<@hMubj)}(hE(struct drm_buddy *mm, struct list_head *objects, unsigned int flags)h](j)}(hstruct drm_buddy *mmh](jD)}(hjh]hstruct}(hjk@hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjg@ubjV)}(h h]h }(hjx@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjg@ubh)}(hhh]jm)}(h drm_buddyh]h drm_buddy}(hj@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj@modnameN classnameNjj)}j]j)}jjQ@sbc.drm_buddy_free_listasbuh1hhjg@ubjV)}(h h]h }(hj@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjg@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg@ubjm)}(hmmh]hmm}(hj@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjg@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc@ubj)}(hstruct list_head *objectsh](jD)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj@ubjV)}(h h]h }(hj@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@ubh)}(hhh]jm)}(h list_headh]h list_head}(hj@hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj@modnameN classnameNjj)}j]j@c.drm_buddy_free_listasbuh1hhj@ubjV)}(h h]h }(hjAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@ubj)}(hjh]h*}(hj'AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hobjectsh]hobjects}(hj4AhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc@ubj)}(hunsigned int flagsh](jc)}(hunsignedh]hunsigned}(hjMAhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjIAubjV)}(h h]h }(hj[AhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjIAubjc)}(hinth]hint}(hjiAhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjIAubjV)}(h h]h }(hjwAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjIAubjm)}(hflagsh]hflags}(hjAhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjIAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc@ubeh}(h]h ]h"]h$]h&]jjuh1jhj*@hhhj<@hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj&@hhhj<@hMubah}(h]j!@ah ](jjeh"]h$]h&]jj)jhuh1j7hj<@hMhj#@hhubj)}(hhh]h)}(h free blocksh]h free blocks}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhj#@hhhj<@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1j2hhhj6hNhNubj)}(h**Parameters** ``struct drm_buddy *mm`` DRM buddy manager ``struct list_head *objects`` input list head to free blocks ``unsigned int flags`` optional flags like DRM_BUDDY_CLEAREDh](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:515: ./drivers/gpu/drm/drm_buddy.chMhjAubj)}(hhh](j)}(h+``struct drm_buddy *mm`` DRM buddy manager h](j)}(h``struct drm_buddy *mm``h]j)}(hjAh]hstruct drm_buddy *mm}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjAubj )}(hhh]h)}(hDRM buddy managerh]hDRM buddy manager}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjBubah}(h]h ]h"]h$]h&]uh1j hjAubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjAubj)}(h=``struct list_head *objects`` input list head to free blocks h](j)}(h``struct list_head *objects``h]j)}(hj)Bh]hstruct list_head *objects}(hj+BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Bubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhj#Bubj )}(hhh]h)}(hinput list head to free blocksh]hinput list head to free blocks}(hjBBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>BhMhj?Bubah}(h]h ]h"]h$]h&]uh1j hj#Bubeh}(h]h ]h"]h$]h&]uh1jhj>BhMhjAubj)}(h<``unsigned int flags`` optional flags like DRM_BUDDY_CLEAREDh](j)}(h``unsigned int flags``h]j)}(hjbBh]hunsigned int flags}(hjdBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Bubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhj\Bubj )}(hhh]h)}(h%optional flags like DRM_BUDDY_CLEAREDh]h%optional flags like DRM_BUDDY_CLEARED}(hj{BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjxBubah}(h]h ]h"]h$]h&]uh1j hj\Bubeh}(h]h ]h"]h$]h&]uh1jhjwBhMhjAubeh}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!drm_buddy_block_trim (C function)c.drm_buddy_block_trimhNtauh1j!hj6hhhNhNubj3)}(hhh](j8)}(hcint drm_buddy_block_trim (struct drm_buddy *mm, u64 *start, u64 new_size, struct list_head *blocks)h]j>)}(hbint drm_buddy_block_trim(struct drm_buddy *mm, u64 *start, u64 new_size, struct list_head *blocks)h](jc)}(hinth]hint}(hjBhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjBhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMubjV)}(h h]h }(hjBhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjBhhhjBhMubjg)}(hdrm_buddy_block_trimh]jm)}(hdrm_buddy_block_trimh]hdrm_buddy_block_trim}(hjBhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjBhMubj)}(hJ(struct drm_buddy *mm, u64 *start, u64 new_size, struct list_head *blocks)h](j)}(hstruct drm_buddy *mmh](jD)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjBubjV)}(h h]h }(hjChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjBubh)}(hhh]jm)}(h drm_buddyh]h drm_buddy}(hjChhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjCmodnameN classnameNjj)}j]j)}jjBsbc.drm_buddy_block_trimasbuh1hhjBubjV)}(h h]h }(hj7ChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjBubj)}(hjh]h*}(hjEChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjm)}(hmmh]hmm}(hjRChhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(h u64 *starth](h)}(hhh]jm)}(hu64h]hu64}(hjnChhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjkCubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjpCmodnameN classnameNjj)}j]j3Cc.drm_buddy_block_trimasbuh1hhjgCubjV)}(h h]h }(hjChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjgCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgCubjm)}(hstarth]hstart}(hjChhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(h u64 new_sizeh](h)}(hhh]jm)}(hu64h]hu64}(hjChhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjCmodnameN classnameNjj)}j]j3Cc.drm_buddy_block_trimasbuh1hhjCubjV)}(h h]h }(hjChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjCubjm)}(hnew_sizeh]hnew_size}(hjChhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hstruct list_head *blocksh](jD)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjDubjV)}(h h]h }(hjDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjDubh)}(hhh]jm)}(h list_headh]h list_head}(hj&DhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj#Dubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj(DmodnameN classnameNjj)}j]j3Cc.drm_buddy_block_trimasbuh1hhjDubjV)}(h h]h }(hjDDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjDubj)}(hjh]h*}(hjRDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hblocksh]hblocks}(hj_DhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjBhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjBhhhjBhMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1j7hjBhMhjBhhubj)}(hhh]h)}(hfree unused pagesh]hfree unused pages}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1j2hhhj6hNhNubj)}(hX**Parameters** ``struct drm_buddy *mm`` DRM buddy manager ``u64 *start`` start address to begin the trimming. ``u64 new_size`` original size requested ``struct list_head *blocks`` Input and output list of allocated blocks. MUST contain single block as input to be trimmed. On success will contain the newly allocated blocks making up the **new_size**. Blocks always appear in ascending order **Description** For contiguous allocation, we round up the size to the nearest power of two value, drivers consume *actual* size, so remaining portions are unused and can be optionally freed with this function **Return** 0 on success, error code on failure.h](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjDubj)}(hhh](j)}(h+``struct drm_buddy *mm`` DRM buddy manager h](j)}(h``struct drm_buddy *mm``h]j)}(hjDh]hstruct drm_buddy *mm}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjDubj )}(hhh]h)}(hDRM buddy managerh]hDRM buddy manager}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1j hjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjDubj)}(h4``u64 *start`` start address to begin the trimming. h](j)}(h``u64 *start``h]j)}(hjEh]h u64 *start}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjDubj )}(hhh]h)}(h$start address to begin the trimming.h]h$start address to begin the trimming.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjEubah}(h]h ]h"]h$]h&]uh1j hjDubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjDubj)}(h)``u64 new_size`` original size requested h](j)}(h``u64 new_size``h]j)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Eubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhj6Eubj )}(hhh]h)}(horiginal size requestedh]horiginal size requested}(hjUEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQEhMhjREubah}(h]h ]h"]h$]h&]uh1j hj6Eubeh}(h]h ]h"]h$]h&]uh1jhjQEhMhjDubj)}(h``struct list_head *blocks`` Input and output list of allocated blocks. MUST contain single block as input to be trimmed. On success will contain the newly allocated blocks making up the **new_size**. Blocks always appear in ascending order h](j)}(h``struct list_head *blocks``h]j)}(hjuEh]hstruct list_head *blocks}(hjwEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjoEubj )}(hhh]h)}(hInput and output list of allocated blocks. MUST contain single block as input to be trimmed. On success will contain the newly allocated blocks making up the **new_size**. Blocks always appear in ascending orderh](hInput and output list of allocated blocks. MUST contain single block as input to be trimmed. On success will contain the newly allocated blocks making up the }(hjEhhhNhNubj)}(h **new_size**h]hnew_size}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh). Blocks always appear in ascending order}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjEubah}(h]h ]h"]h$]h&]uh1j hjoEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjDubeh}(h]h ]h"]h$]h&]uh1jhjDubh)}(h**Description**h]j)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjDubh)}(hFor contiguous allocation, we round up the size to the nearest power of two value, drivers consume *actual* size, so remaining portions are unused and can be optionally freed with this functionh](hcFor contiguous allocation, we round up the size to the nearest power of two value, drivers consume }(hjEhhhNhNubj)}(h*actual*h]hactual}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubhV size, so remaining portions are unused and can be optionally freed with this function}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjDubh)}(h **Return**h]j)}(hjEh]hReturn}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjDubh)}(h$0 on success, error code on failure.h]h$0 on success, error code on failure.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_buddy_alloc_blocks (C function)c.drm_buddy_alloc_blockshNtauh1j!hj6hhhNhNubj3)}(hhh](j8)}(hint drm_buddy_alloc_blocks (struct drm_buddy *mm, u64 start, u64 end, u64 size, u64 min_block_size, struct list_head *blocks, unsigned long flags)h]j>)}(hint drm_buddy_alloc_blocks(struct drm_buddy *mm, u64 start, u64 end, u64 size, u64 min_block_size, struct list_head *blocks, unsigned long flags)h](jc)}(hinth]hint}(hjAFhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj=FhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMubjV)}(h h]h }(hjPFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj=FhhhjOFhMubjg)}(hdrm_buddy_alloc_blocksh]jm)}(hdrm_buddy_alloc_blocksh]hdrm_buddy_alloc_blocks}(hjbFhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^Fubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=FhhhjOFhMubj)}(hw(struct drm_buddy *mm, u64 start, u64 end, u64 size, u64 min_block_size, struct list_head *blocks, unsigned long flags)h](j)}(hstruct drm_buddy *mmh](jD)}(hjh]hstruct}(hj~FhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjzFubjV)}(h h]h }(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjzFubh)}(hhh]jm)}(h drm_buddyh]h drm_buddy}(hjFhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjFmodnameN classnameNjj)}j]j)}jjdFsbc.drm_buddy_alloc_blocksasbuh1hhjzFubjV)}(h h]h }(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjzFubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzFubjm)}(hmmh]hmm}(hjFhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjzFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvFubj)}(h u64 starth](h)}(hhh]jm)}(hu64h]hu64}(hjFhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjFmodnameN classnameNjj)}j]jFc.drm_buddy_alloc_blocksasbuh1hhjFubjV)}(h h]h }(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjFubjm)}(hstarth]hstart}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvFubj)}(hu64 endh](h)}(hhh]jm)}(hu64h]hu64}(hj;GhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj8Gubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj=GmodnameN classnameNjj)}j]jFc.drm_buddy_alloc_blocksasbuh1hhj4GubjV)}(h h]h }(hjYGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj4Gubjm)}(hendh]hend}(hjgGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj4Gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvFubj)}(hu64 sizeh](h)}(hhh]jm)}(hu64h]hu64}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjGmodnameN classnameNjj)}j]jFc.drm_buddy_alloc_blocksasbuh1hhj|GubjV)}(h h]h }(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj|Gubjm)}(hsizeh]hsize}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj|Gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvFubj)}(hu64 min_block_sizeh](h)}(hhh]jm)}(hu64h]hu64}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjGmodnameN classnameNjj)}j]jFc.drm_buddy_alloc_blocksasbuh1hhjGubjV)}(h h]h }(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjGubjm)}(hmin_block_sizeh]hmin_block_size}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvFubj)}(hstruct list_head *blocksh](jD)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj HubjV)}(h h]h }(hjHhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj Hubh)}(hhh]jm)}(h list_headh]h list_head}(hj.HhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj+Hubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj0HmodnameN classnameNjj)}j]jFc.drm_buddy_alloc_blocksasbuh1hhj HubjV)}(h h]h }(hjLHhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj Hubj)}(hjh]h*}(hjZHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Hubjm)}(hblocksh]hblocks}(hjgHhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvFubj)}(hunsigned long flagsh](jc)}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj|HubjV)}(h h]h }(hjHhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj|Hubjc)}(hlongh]hlong}(hjHhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj|HubjV)}(h h]h }(hjHhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj|Hubjm)}(hflagsh]hflags}(hjHhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj|Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvFubeh}(h]h ]h"]h$]h&]jjuh1jhj=FhhhjOFhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj9FhhhjOFhMubah}(h]j4Fah ](jjeh"]h$]h&]jj)jhuh1j7hjOFhMhj6Fhhubj)}(hhh]h)}(hallocate power-of-two blocksh]hallocate power-of-two blocks}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhj6FhhhjOFhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1j2hhhj6hNhNubj)}(hX**Parameters** ``struct drm_buddy *mm`` DRM buddy manager to allocate from ``u64 start`` start of the allowed range for this block ``u64 end`` end of the allowed range for this block ``u64 size`` size of the allocation in bytes ``u64 min_block_size`` alignment of the allocation ``struct list_head *blocks`` output list head to add allocated blocks ``unsigned long flags`` DRM_BUDDY_*_ALLOCATION flags **Description** alloc_range_bias() called on range limitations, which traverses the tree and returns the desired block. alloc_from_freelist() called when *no* range restrictions are enforced, which picks the block from the freelist. **Return** 0 on success, error code on failure.h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjHubj)}(hhh](j)}(h<``struct drm_buddy *mm`` DRM buddy manager to allocate from h](j)}(h``struct drm_buddy *mm``h]j)}(hj#Ih]hstruct drm_buddy *mm}(hj%IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Iubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjIubj )}(hhh]h)}(h"DRM buddy manager to allocate fromh]h"DRM buddy manager to allocate from}(hjJubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhj:Jubj )}(hhh]h)}(h(output list head to add allocated blocksh]h(output list head to add allocated blocks}(hjYJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUJhMhjVJubah}(h]h ]h"]h$]h&]uh1j hj:Jubeh}(h]h ]h"]h$]h&]uh1jhjUJhMhjIubj)}(h5``unsigned long flags`` DRM_BUDDY_*_ALLOCATION flags h](j)}(h``unsigned long flags``h]j)}(hjyJh]hunsigned long flags}(hj{JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwJubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjsJubj )}(hhh]h)}(hDRM_BUDDY_*_ALLOCATION flagsh]hDRM_BUDDY_*_ALLOCATION flags}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1j hjsJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjIubeh}(h]h ]h"]h$]h&]uh1jhjHubh)}(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:515: ./drivers/gpu/drm/drm_buddy.chMhjHubh)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjHubh)}(hpalloc_from_freelist() called when *no* range restrictions are enforced, which picks the block from the freelist.h](h"alloc_from_freelist() called when }(hjJhhhNhNubj)}(h*no*h]hno}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubhJ range restrictions are enforced, which picks the block from the freelist.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjHubh)}(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:515: ./drivers/gpu/drm/drm_buddy.chMhjHubh)}(h$0 on success, error code on failure.h]h$0 on success, error code on failure.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_buddy_block_print (C function)c.drm_buddy_block_printhNtauh1j!hj6hhhNhNubj3)}(hhh](j8)}(hgvoid drm_buddy_block_print (struct drm_buddy *mm, struct drm_buddy_block *block, struct drm_printer *p)h]j>)}(hfvoid drm_buddy_block_print(struct drm_buddy *mm, struct drm_buddy_block *block, struct drm_printer *p)h](jc)}(hvoidh]hvoid}(hjAKhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj=KhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMubjV)}(h h]h }(hjPKhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj=KhhhjOKhMubjg)}(hdrm_buddy_block_printh]jm)}(hdrm_buddy_block_printh]hdrm_buddy_block_print}(hjbKhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj^Kubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=KhhhjOKhMubj)}(hL(struct drm_buddy *mm, struct drm_buddy_block *block, struct drm_printer *p)h](j)}(hstruct drm_buddy *mmh](jD)}(hjh]hstruct}(hj~KhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjzKubjV)}(h h]h }(hjKhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjzKubh)}(hhh]jm)}(h drm_buddyh]h drm_buddy}(hjKhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjKmodnameN classnameNjj)}j]j)}jjdKsbc.drm_buddy_block_printasbuh1hhjzKubjV)}(h h]h }(hjKhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjzKubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzKubjm)}(hmmh]hmm}(hjKhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjzKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvKubj)}(hstruct drm_buddy_block *blockh](jD)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjKubjV)}(h h]h }(hjKhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKubh)}(hhh]jm)}(hdrm_buddy_blockh]hdrm_buddy_block}(hjLhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj Lubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjLmodnameN classnameNjj)}j]jKc.drm_buddy_block_printasbuh1hhjKubjV)}(h h]h }(hj,LhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKubj)}(hjh]h*}(hj:LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(hblockh]hblock}(hjGLhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvKubj)}(hstruct drm_printer *ph](jD)}(hjh]hstruct}(hj`LhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj\LubjV)}(h h]h }(hjmLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\Lubh)}(hhh]jm)}(h drm_printerh]h drm_printer}(hj~LhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj{Lubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjLmodnameN classnameNjj)}j]jKc.drm_buddy_block_printasbuh1hhj\LubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj\Lubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Lubjm)}(hjh]hp}(hjLhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj\Lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvKubeh}(h]h ]h"]h$]h&]jjuh1jhj=KhhhjOKhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj9KhhhjOKhMubah}(h]j4Kah ](jjeh"]h$]h&]jj)jhuh1j7hjOKhMhj6Khhubj)}(hhh]h)}(hprint block informationh]hprint block information}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhj6KhhhjOKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1j2hhhj6hNhNubj)}(h**Parameters** ``struct drm_buddy *mm`` DRM buddy manager ``struct drm_buddy_block *block`` DRM buddy block ``struct drm_printer *p`` DRM printer to useh](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjLubj)}(hhh](j)}(h+``struct drm_buddy *mm`` DRM buddy manager h](j)}(h``struct drm_buddy *mm``h]j)}(hj!Mh]hstruct drm_buddy *mm}(hj#MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjMubj )}(hhh]h)}(hDRM buddy managerh]hDRM buddy manager}(hj:MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6MhMhj7Mubah}(h]h ]h"]h$]h&]uh1j hjMubeh}(h]h ]h"]h$]h&]uh1jhj6MhMhjMubj)}(h2``struct drm_buddy_block *block`` DRM buddy block h](j)}(h!``struct drm_buddy_block *block``h]j)}(hjZMh]hstruct drm_buddy_block *block}(hj\MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjTMubj )}(hhh]h)}(hDRM buddy blockh]hDRM buddy block}(hjsMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoMhMhjpMubah}(h]h ]h"]h$]h&]uh1j hjTMubeh}(h]h ]h"]h$]h&]uh1jhjoMhMhjMubj)}(h,``struct drm_printer *p`` DRM printer to useh](j)}(h``struct drm_printer *p``h]j)}(hjMh]hstruct drm_printer *p}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjMubj )}(hhh]h)}(hDRM printer to useh]hDRM printer to use}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjMubah}(h]h ]h"]h$]h&]uh1j hjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubeh}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_buddy_print (C function)c.drm_buddy_printhNtauh1j!hj6hhhNhNubj3)}(hhh](j8)}(hBvoid drm_buddy_print (struct drm_buddy *mm, struct drm_printer *p)h]j>)}(hAvoid drm_buddy_print(struct drm_buddy *mm, struct drm_printer *p)h](jc)}(hvoidh]hvoid}(hjMhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjMhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMubjV)}(h h]h }(hjMhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjMhhhjMhMubjg)}(hdrm_buddy_printh]jm)}(hdrm_buddy_printh]hdrm_buddy_print}(hjNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj Nubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhjMhMubj)}(h-(struct drm_buddy *mm, struct drm_printer *p)h](j)}(hstruct drm_buddy *mmh](jD)}(hjh]hstruct}(hj*NhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj&NubjV)}(h h]h }(hj7NhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj&Nubh)}(hhh]jm)}(h drm_buddyh]h drm_buddy}(hjHNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjENubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjJNmodnameN classnameNjj)}j]j)}jjNsbc.drm_buddy_printasbuh1hhj&NubjV)}(h h]h }(hjhNhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj&Nubj)}(hjh]h*}(hjvNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Nubjm)}(hmmh]hmm}(hjNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj&Nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"Nubj)}(hstruct drm_printer *ph](jD)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjNubjV)}(h h]h }(hjNhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjNubh)}(hhh]jm)}(h drm_printerh]h drm_printer}(hjNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjNmodnameN classnameNjj)}j]jdNc.drm_buddy_printasbuh1hhjNubjV)}(h h]h }(hjNhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hjh]hp}(hjNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"Nubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhjMhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjMhhhjMhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1j7hjMhMhjMhhubj)}(hhh]h)}(hprint allocator stateh]hprint allocator state}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:515: ./drivers/gpu/drm/drm_buddy.chMhjOhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4Ojj4Ojjjuh1j2hhhj6hNhNubj)}(hl**Parameters** ``struct drm_buddy *mm`` DRM buddy manager ``struct drm_printer *p`` DRM printer to useh](h)}(h**Parameters**h]j)}(hj>Oh]h Parameters}(hj@OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)}(hEvoid drm_clflush_pages(struct page *pages[], unsigned long num_pages)h](jc)}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj PhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKOubjV)}(h h]h }(hj PhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj PhhhjPhKOubjg)}(hdrm_clflush_pagesh]jm)}(hdrm_clflush_pagesh]hdrm_clflush_pages}(hj2PhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj.Pubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj PhhhjPhKOubj)}(h/(struct page *pages[], unsigned long num_pages)h](j)}(hstruct page *pages[]h](jD)}(hjh]hstruct}(hjNPhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjJPubjV)}(h h]h }(hj[PhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjJPubh)}(hhh]jm)}(hpageh]hpage}(hjlPhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjiPubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjnPmodnameN classnameNjj)}j]j)}jj4Psbc.drm_clflush_pagesasbuh1hhjJPubjV)}(h h]h }(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjJPubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJPubjm)}(hpagesh]hpages}(hjPhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjJPubj)}(h[h]h[}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJPubj)}(h]h]h]}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFPubj)}(hunsigned long num_pagesh](jc)}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjPubjV)}(h h]h }(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjPubjc)}(hlongh]hlong}(hjPhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjPubjV)}(h h]h }(hjQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjPubjm)}(h num_pagesh]h num_pages}(hjQhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFPubeh}(h]h ]h"]h$]h&]jjuh1jhj PhhhjPhKOubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj PhhhjPhKOubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1j7hjPhKOhjPhhubj)}(hhh]h)}(h%Flush dcache lines of a set of pages.h]h%Flush dcache lines of a set of pages.}(hj>QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKOhj;Qhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhKOubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVQjjVQjjjuh1j2hhhjOhNhNubj)}(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`Qh]h Parameters}(hjbQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Qubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKShjZQubj)}(hhh](j)}(h6``struct page *pages[]`` List of pages to be flushed. h](j)}(h``struct page *pages[]``h]j)}(hjQh]hstruct page *pages[]}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Qubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKPhjyQubj )}(hhh]h)}(hList of pages to be flushed.h]hList of pages to be flushed.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKPhjQubah}(h]h ]h"]h$]h&]uh1j hjyQubeh}(h]h ]h"]h$]h&]uh1jhjQhKPhjvQubj)}(h:``unsigned long num_pages`` Number of pages in the array. h](j)}(h``unsigned long num_pages``h]j)}(hjQh]hunsigned long num_pages}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKQhjQubj )}(hhh]h)}(hNumber of pages in the array.h]hNumber of pages in the array.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKQhjQubah}(h]h ]h"]h$]h&]uh1j hjQubeh}(h]h ]h"]h$]h&]uh1jhjQhKQhjvQubeh}(h]h ]h"]h$]h&]uh1jhjZQubh)}(h**Description**h]j)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKShjZQubh)}(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 RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKRhjZQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjOhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_clflush_sg (C function)c.drm_clflush_sghNtauh1j!hjOhhhNhNubj3)}(hhh](j8)}(h)void drm_clflush_sg (struct sg_table *st)h]j>)}(h(void drm_clflush_sg(struct sg_table *st)h](jc)}(hvoidh]hvoid}(hj8RhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj4RhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKxubjV)}(h h]h }(hjGRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj4RhhhjFRhKxubjg)}(hdrm_clflush_sgh]jm)}(hdrm_clflush_sgh]hdrm_clflush_sg}(hjYRhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjURubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4RhhhjFRhKxubj)}(h(struct sg_table *st)h]j)}(hstruct sg_table *sth](jD)}(hjh]hstruct}(hjuRhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjqRubjV)}(h h]h }(hjRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjqRubh)}(hhh]jm)}(hsg_tableh]hsg_table}(hjRhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjRmodnameN classnameNjj)}j]j)}jj[Rsbc.drm_clflush_sgasbuh1hhjqRubjV)}(h h]h }(hjRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjqRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqRubjm)}(hsth]hst}(hjRhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjqRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmRubah}(h]h ]h"]h$]h&]jjuh1jhj4RhhhjFRhKxubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj0RhhhjFRhKxubah}(h]j+Rah ](jjeh"]h$]h&]jj)jhuh1j7hjFRhKxhj-Rhhubj)}(hhh]h)}(h0Flush dcache lines pointing to a scather-gather.h]h0Flush dcache lines pointing to a scather-gather.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKxhjRhhubah}(h]h ]h"]h$]h&]uh1jhj-RhhhjFRhKxubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1j2hhhjOhNhNubj)}(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)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chK|hjSubj)}(hhh]j)}(h)``struct sg_table *st`` struct sg_table. h](j)}(h``struct sg_table *st``h]j)}(hj9Sh]hstruct sg_table *st}(hj;ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Subah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKyhj3Subj )}(hhh]h)}(hstruct sg_table.h]hstruct sg_table.}(hjRShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNShKyhjOSubah}(h]h ]h"]h$]h&]uh1j hj3Subeh}(h]h ]h"]h$]h&]uh1jhjNShKyhj0Subah}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]j)}(hjtSh]h Description}(hjvShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrSubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chK{hjSubh)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKzhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjOhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_clflush_virt_range (C function)c.drm_clflush_virt_rangehNtauh1j!hjOhhhNhNubj3)}(hhh](j8)}(h>void drm_clflush_virt_range (void *addr, unsigned long length)h]j>)}(h=void drm_clflush_virt_range(void *addr, unsigned long length)h](jc)}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjShhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKubjV)}(h h]h }(hjShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjShhhjShKubjg)}(hdrm_clflush_virt_rangeh]jm)}(hdrm_clflush_virt_rangeh]hdrm_clflush_virt_range}(hjShhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjShhhjShKubj)}(h"(void *addr, unsigned long length)h](j)}(h void *addrh](jc)}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjSubjV)}(h h]h }(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjSubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(haddrh]haddr}(hjThhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hunsigned long lengthh](jc)}(hunsignedh]hunsigned}(hj8ThhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj4TubjV)}(h h]h }(hjFThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj4Tubjc)}(hlongh]hlong}(hjTThhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj4TubjV)}(h h]h }(hjbThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj4Tubjm)}(hlengthh]hlength}(hjpThhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj4Tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjShhhjShKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjShhhjShKubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1j7hjShKhjShhubj)}(hhh]h)}(hFlush dcache lines of a regionh]hFlush dcache lines of a region}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKhjThhubah}(h]h ]h"]h$]h&]uh1jhjShhhjShKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1j2hhhjOhNhNubj)}(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)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKhjTubj)}(hhh](j)}(h.``void *addr`` Initial kernel memory address. h](j)}(h``void *addr``h]j)}(hjTh]h void *addr}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKhjTubj )}(hhh]h)}(hInitial kernel memory address.h]hInitial kernel memory address.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKhjTubah}(h]h ]h"]h$]h&]uh1j hjTubeh}(h]h ]h"]h$]h&]uh1jhjThKhjTubj)}(h&``unsigned long length`` Region size. h](j)}(h``unsigned long length``h]j)}(hjUh]hunsigned long length}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKhjUubj )}(hhh]h)}(h Region size.h]h Region size.}(hj-UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)UhKhj*Uubah}(h]h ]h"]h$]h&]uh1j hjUubeh}(h]h ]h"]h$]h&]uh1jhj)UhKhjTubeh}(h]h ]h"]h$]h&]uh1jhjTubh)}(h**Description**h]j)}(hjOUh]h Description}(hjQUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMUubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKhjTubh)}(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.}(hjeUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chKhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjOhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_memcpy_from_wc (C function)c.drm_memcpy_from_wchNtauh1j!hjOhhhNhNubj3)}(hhh](j8)}(h_void drm_memcpy_from_wc (struct iosys_map *dst, const struct iosys_map *src, unsigned long len)h]j>)}(h^void drm_memcpy_from_wc(struct iosys_map *dst, const struct iosys_map *src, unsigned long len)h](jc)}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjUhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chM%ubjV)}(h h]h }(hjUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjUhhhjUhM%ubjg)}(hdrm_memcpy_from_wch]jm)}(hdrm_memcpy_from_wch]hdrm_memcpy_from_wc}(hjUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjUhM%ubj)}(hG(struct iosys_map *dst, const struct iosys_map *src, unsigned long len)h](j)}(hstruct iosys_map *dsth](jD)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjUubjV)}(h h]h }(hjUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjUubh)}(hhh]jm)}(h iosys_maph]h iosys_map}(hjUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjUubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjUmodnameN classnameNjj)}j]j)}jjUsbc.drm_memcpy_from_wcasbuh1hhjUubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjUubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hdsth]hdst}(hj*VhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(hconst struct iosys_map *srch](jD)}(hj h]hconst}(hjCVhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj?VubjV)}(h h]h }(hjPVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj?VubjD)}(hjh]hstruct}(hj^VhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj?VubjV)}(h h]h }(hjkVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj?Vubh)}(hhh]jm)}(h iosys_maph]h iosys_map}(hj|VhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjyVubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj~VmodnameN classnameNjj)}j]j Vc.drm_memcpy_from_wcasbuh1hhj?VubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj?Vubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Vubjm)}(hsrch]hsrc}(hjVhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj?Vubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(hunsigned long lenh](jc)}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjVubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVubjc)}(hlongh]hlong}(hjVhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjVubjV)}(h h]h }(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjVubjm)}(hlenh]hlen}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhM%ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjUhhhjUhM%ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1j7hjUhM%hjUhhubj)}(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.}(hj0WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chM%hj-Whhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhM%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHWjjHWjjjuh1j2hhhjOhNhNubj)}(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)}(hjRWh]h Parameters}(hjTWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPWubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chM)hjLWubj)}(hhh](j)}(h2``struct iosys_map *dst`` The destination pointer h](j)}(h``struct iosys_map *dst``h]j)}(hjqWh]hstruct iosys_map *dst}(hjsWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoWubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chM'hjkWubj )}(hhh]h)}(hThe destination pointerh]hThe destination pointer}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM'hjWubah}(h]h ]h"]h$]h&]uh1j hjkWubeh}(h]h ]h"]h$]h&]uh1jhjWhM'hjhWubj)}(h3``const struct iosys_map *src`` The source pointer h](j)}(h``const struct iosys_map *src``h]j)}(hjWh]hconst struct iosys_map *src}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chM(hjWubj )}(hhh]h)}(hThe source pointerh]hThe source pointer}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM(hjWubah}(h]h ]h"]h$]h&]uh1j hjWubeh}(h]h ]h"]h$]h&]uh1jhjWhM(hjhWubj)}(h?``unsigned long len`` The size of the area o transfer in bytes h](j)}(h``unsigned long len``h]j)}(hjWh]hunsigned long len}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chM)hjWubj )}(hhh]h)}(h(The size of the area o transfer in bytesh]h(The size of the area o transfer in bytes}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM)hjWubah}(h]h ]h"]h$]h&]uh1j hjWubeh}(h]h ]h"]h$]h&]uh1jhjWhM)hjhWubeh}(h]h ]h"]h$]h&]uh1jhjLWubh)}(h**Description**h]j)}(hjXh]h Description}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chM+hjLWubh)}(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.}(hj4XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:521: ./drivers/gpu/drm/drm_cache.chM*hjLWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjOhhhNhNubj)}(h.. _drm_sync_objects:h]h}(h]h ]h"]h$]h&]jdrm-sync-objectsuh1jhM hjOhhhhubeh}(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`XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]XhhhhhMubh)}(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 }(hjnXhhhNhNubh)}(h:c:type:`drm_syncobj`h]j)}(hjxXh]h drm_syncobj}(hjzXhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjvXubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_syncobjuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKhjnXubhX_) 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:}(hjnXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjXhKhj]Xhhubj.)}(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]j {)}(hhh](j{)}(h$Creation and destruction of syncobjsh]h)}(hjXh]h$Creation and destruction of syncobjs}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK%hjXubah}(h]h ]h"]h$]h&]uh1j {hjXubj{)}(h?Import and export of syncobjs to/from a syncobj file descriptorh]h)}(hjXh]h?Import and export of syncobjs to/from a syncobj file descriptor}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK&hjXubah}(h]h ]h"]h$]h&]uh1j {hjXubj{)}(hBImport and export a syncobj's underlying fence to/from a sync fileh]h)}(hjXh]hDImport and export a syncobj’s underlying fence to/from a sync file}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK'hjXubah}(h]h ]h"]h$]h&]uh1j {hjXubj{)}(h'Reset a syncobj (set its fence to NULL)h]h)}(hjXh]h'Reset a syncobj (set its fence to NULL)}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK(hjXubah}(h]h ]h"]h$]h&]uh1j {hjXubj{)}(h1Signal a syncobj (set a trivially signaled fence)h]h)}(hj Yh]h1Signal a syncobj (set a trivially signaled fence)}(hj YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK)hjYubah}(h]h ]h"]h$]h&]uh1j {hjXubj{)}(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#YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK*hjYubah}(h]h ]h"]h$]h&]uh1j {hjXubeh}(h]h ]h"]h$]h&]j[{j\{uh1j{hjXhK%hjXubah}(h]h ]h"]h$]h&]uh1j.hjXhK%hj]Xhhubh)}(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 }(hjDYhhhNhNubh)}(h:c:type:`dma_fence_chain`h]j)}(hjNYh]hdma_fence_chain}(hjPYhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjLYubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_fence_chainuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK,hjDYubh rather than a single struct }(hjDYhhhNhNubh)}(h:c:type:`dma_fence`h]j)}(hjrYh]h dma_fence}(hjtYhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjpYubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_fenceuh1hhjkYhK,hjDYubh#, through the following operations:}(hjDYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkYhK,hj]Xhhubj.)}(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]j {)}(hhh](j{)}(h$Signal a given point on the timelineh]h)}(hjYh]h$Signal a given point on the timeline}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK0hjYubah}(h]h ]h"]h$]h&]uh1j {hjYubj{)}(h3Wait for a given point to appear and/or be signaledh]h)}(hjYh]h3Wait for a given point to appear and/or be signaled}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK1hjYubah}(h]h ]h"]h$]h&]uh1j {hjYubj{)}(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}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK2hjYubah}(h]h ]h"]h$]h&]uh1j {hjYubeh}(h]h ]h"]h$]h&]j[{j\{uh1j{hjYhK0hjYubah}(h]h ]h"]h$]h&]uh1j.hjYhK0hj]Xhhubh)}(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 }(hjYhhhNhNubh)}(h:c:type:`dma_fence`h]j)}(hjYh]h dma_fence}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_fenceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK4hjYubh 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 }(hjYhhhNhNubh)}(h%:c:type:`DRM_SYNCOBJ_CREATE_SIGNALED`h]j)}(hj#Zh]hDRM_SYNCOBJ_CREATE_SIGNALED}(hj%ZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj!Zubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_SYNCOBJ_CREATE_SIGNALEDuh1hhjZhK4hjYubh flag is passed to }(hjYhhhNhNubh)}(h":c:type:`DRM_IOCTL_SYNCOBJ_CREATE`h]j)}(hjFZh]hDRM_IOCTL_SYNCOBJ_CREATE}(hjHZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjDZubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_IOCTL_SYNCOBJ_CREATEuh1hhjZhK4hjYubh.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhK4hj]Xhhubh)}(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 }(hjmZhhhNhNubh)}(h:c:type:`dma_fence_chain`h]j)}(hjwZh]hdma_fence_chain}(hjyZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjuZubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_fence_chainuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK;hjmZubhv pointing to the DRM driver’s fence and also pointing to the previous fence that was in the syncobj. The new struct }(hjmZhhhNhNubh)}(h:c:type:`dma_fence_chain`h]j)}(hjZh]hdma_fence_chain}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_fence_chainuh1hhjZhK;hjmZubh 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.}(hjmZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhK;hj]Xhhubh)}(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 :}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKGhj]Xhhubj.)}(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]j {)}(hhh](j{)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKKhjZubah}(h]h ]h"]h$]h&]uh1j {hjZubj{)}(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 }(hjZhhhNhNubh)}(h:c:type:`dma_fence`h]j)}(hjZh]h dma_fence}(hj[hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_fenceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKMhjZubhT associated with a given point if the syncobj is considered as a timeline primitive.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj[hKMhjZubah}(h]h ]h"]h$]h&]uh1j {hjZubeh}(h]h ]h"]h$]h&]j[{j\{uh1j{hjZhKKhjZubah}(h]h ]h"]h$]h&]uh1j.hjZhKKhj]Xhhubh)}(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.}(hj9[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKPhj]Xhhubh)}(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. }(hjH[hhhNhNubh)}(h!:c:type:`DRM_IOCTL_SYNCOBJ_RESET`h]j)}(hjR[h]hDRM_IOCTL_SYNCOBJ_RESET}(hjT[hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjP[ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_IOCTL_SYNCOBJ_RESETuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKShjH[ubh and }(hjH[hhhNhNubh)}(h":c:type:`DRM_IOCTL_SYNCOBJ_SIGNAL`h]j)}(hjv[h]hDRM_IOCTL_SYNCOBJ_SIGNAL}(hjx[hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjt[ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_IOCTL_SYNCOBJ_SIGNALuh1hhjo[hKShjH[ubh 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.}(hjH[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjo[hKShj]Xhhubh)}(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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK[hj]Xhhubh)}(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).}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chK`hj]Xhhubh)}(hhh](h)}(hHost-side wait on syncobjsh]hHost-side wait on syncobjs}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hNhNubh)}(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)}(hj[h]hDRM_IOCTL_SYNCOBJ_WAIT}(hj[hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_IOCTL_SYNCOBJ_WAITuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKlhj[ubhm takes an array of syncobj handles and does a host-side wait on all of the syncobj fences simultaneously. If }(hj[hhhNhNubh)}(h):c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL`h]j)}(hj[h]hDRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL}(hj[hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALLuh1hhj[hKlhj[ubh 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.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj[hKlhj[ubh)}(hXUnlike the enqueued GPU work dependencies which fail if they see a NULL fence in a syncobj, if :c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT` is set, the host-side wait will first wait for the syncobj to receive a non-NULL fence and then wait on that fence. If :c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT` is not set and any one of the syncobjs in the array has a NULL fence, -EINVAL will be returned. Assuming the syncobj starts off with a NULL fence, this allows a client to do a host wait in one thread (or process) which waits on GPU work submitted in another thread (or process) without having to manually synchronize between the two. This requirement is inherited from the Vulkan fence API.h](h_Unlike the enqueued GPU work dependencies which fail if they see a NULL fence in a syncobj, if }(hj\hhhNhNubh)}(h0:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT`h]j)}(hj'\h]h&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT}(hj)\hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj%\ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMITuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKshj\ubhx is set, the host-side wait will first wait for the syncobj to receive a non-NULL fence and then wait on that fence. If }(hj\hhhNhNubh)}(h0:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT`h]j)}(hjK\h]h&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT}(hjM\hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjI\ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMITuh1hhjD\hKshj\ubhX is not set and any one of the syncobjs in the array has a NULL fence, -EINVAL will be returned. Assuming the syncobj starts off with a NULL fence, this allows a client to do a host wait in one thread (or process) which waits on GPU work submitted in another thread (or process) without having to manually synchronize between the two. This requirement is inherited from the Vulkan fence API.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjD\hKshj[ubh)}(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 }(hjr\hhhNhNubh)}(h.:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE`h]j)}(hj|\h]h$DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE}(hj~\hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjz\ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj$DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINEuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKhjr\ubh 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 }(hjr\hhhNhNubh)}(h:c:type:`CLOCK_MONOTONIC`h]j)}(hj\h]hCLOCK_MONOTONIC}(hj\hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjCLOCK_MONOTONICuh1hhj\hKhjr\ubh value in units of ns.}(hjr\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\hKhj[ubh)}(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, }(hj\hhhNhNubh)}(h):c:type:`DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT`h]j)}(hj\h]hDRM_IOCTL_SYNCOBJ_TIMELINE_WAIT}(hj\hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_IOCTL_SYNCOBJ_TIMELINE_WAITuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKhj\ubh 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.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\hKhj[ubh)}(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)}(hj\h]hDRM_IOCTL_SYNCOBJ_TIMELINE_WAIT}(hj]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_IOCTL_SYNCOBJ_TIMELINE_WAITuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKhj\ubh 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 }(hj\hhhNhNubh)}(h/:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE`h]j)}(hj#]h]h%DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE}(hj%]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj!]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj%DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLEuh1hhj]hKhj\ubhx flag. This requirement is inherited from the wait-before-signal behavior required by the Vulkan timeline semaphore API.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hKhj[ubh)}(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, }(hjJ]hhhNhNubh)}(h#:c:type:`DRM_IOCTL_SYNCOBJ_EVENTFD`h]j)}(hjT]h]hDRM_IOCTL_SYNCOBJ_EVENTFD}(hjV]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjR]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_IOCTL_SYNCOBJ_EVENTFDuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKhjJ]ubh 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.}(hjJ]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjq]hKhj[ubeh}(h]host-side-wait-on-syncobjsah ]h"]host-side wait on syncobjsah$]h&]uh1hhj]XhhhNhNubh)}(hhh](h)}(hImport/export of syncobjsh]hImport/export of syncobjs}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hNhNubh)}(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)}(hj]h]hDRM_IOCTL_SYNCOBJ_FD_TO_HANDLE}(hj]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_IOCTL_SYNCOBJ_FD_TO_HANDLEuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKhj]ubh and }(hj]hhhNhNubh)}(h(:c:type:`DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD`h]j)}(hj]h]hDRM_IOCTL_SYNCOBJ_HANDLE_TO_FD}(hj]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_IOCTL_SYNCOBJ_HANDLE_TO_FDuh1hhj]hKhj]ubh6 provide two mechanisms for import/export of syncobjs.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hKhj]ubh)}(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 }(hj]hhhNhNubh)}(h:c:type:`drm_syncobj`h]j)}(hj]h]h drm_syncobj}(hj]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_syncobjuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKhj]ubhXy 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.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj ^hKhj]ubh)}(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 }(hj^hhhNhNubh)}(h9:c:type:`DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE`h]j)}(hj"^h]h/DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE}(hj$^hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj ^ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj/DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILEuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKhj^ubh or }(hj^hhhNhNubh)}(h9:c:type:`DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE`h]j)}(hjF^h]h/DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE}(hjH^hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjD^ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj/DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILEuh1hhj?^hKhj^ubhG lets the client import/export the syncobj’s current fence from/to a }(hj^hhhNhNubh)}(h:c:type:`sync_file`h]j)}(hji^h]h sync_file}(hjk^hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjg^ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj sync_fileuh1hhj?^hKhj^ubhX. 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.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj?^hKhj]ubeh}(h]import-export-of-syncobjsah ]h"]import/export of syncobjsah$]h&]uh1hhj]XhhhNhNubh)}(hhh](h)}(h5Import/export of timeline points in timeline syncobjsh]h5Import/export of timeline points in timeline syncobjs}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hNhNubh)}(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)}(hj^h]hDRM_IOCTL_SYNCOBJ_TRANSFER}(hj^hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjDRM_IOCTL_SYNCOBJ_TRANSFERuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKhj^ubh+ provides a mechanism to transfer a struct }(hj^hhhNhNubh)}(h:c:type:`dma_fence_chain`h]j)}(hj^h]hdma_fence_chain}(hj^hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_fence_chainuh1hhj^hKhj^ubhM of a syncobj at a given u64 point to another u64 point into another syncobj.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hKhj^ubh)}(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 }(hj^hhhNhNubh)}(h:c:type:`dma_fence_chain`h]j)}(hj_h]hdma_fence_chain}(hj_hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdma_fence_chainuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:529: ./drivers/gpu/drm/drm_syncobj.chKhj^ubh 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.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!_hKhj^ubeh}(h]5import-export-of-timeline-points-in-timeline-syncobjsah ]h"]5import/export of timeline points in timeline syncobjsah$]h&]uh1hhj]XhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_syncobj (C struct) c.drm_syncobjhNtauh1j!hj]XhhhNhNubj3)}(hhh](j8)}(h drm_syncobjh]j>)}(hstruct drm_syncobjh](jD)}(hjh]hstruct}(hjM_hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjI_hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKubjV)}(h h]h }(hj[_hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjI_hhhjZ_hKubjg)}(h drm_syncobjh]jm)}(hjG_h]h drm_syncobj}(hjm_hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhji_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjI_hhhjZ_hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjE_hhhjZ_hKubah}(h]j@_ah ](jjeh"]h$]h&]jj)jhuh1j7hjZ_hKhjB_hhubj)}(hhh]h)}(h sync object.h]h sync object.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK#hj_hhubah}(h]h ]h"]h$]h&]uh1jhjB_hhhjZ_hKubeh}(h]h ](jstructeh"]h$]h&]jjjj_jj_jjjuh1j2hhhj]XhNhNubj)}(hX**Definition**:: struct drm_syncobj { struct kref refcount; struct dma_fence __rcu *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}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh:}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK'hj_ubjT)}(hstruct drm_syncobj { struct kref refcount; struct dma_fence __rcu *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 __rcu *fence; struct list_head cb_list; struct list_head ev_fd_list; spinlock_t lock; struct file *file; };}hj_sbah}(h]h ]h"]h$]h&]jjuh1jShU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK)hj_ubh)}(h **Members**h]j)}(hj_h]hMembers}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK2hj_ubj)}(hhh](j)}(h-``refcount`` Reference count of this object. h](j)}(h ``refcount``h]j)}(hj_h]hrefcount}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK*hj_ubj )}(hhh]h)}(hReference count of this object.h]hReference count of this object.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hK*hj`ubah}(h]h ]h"]h$]h&]uh1j hj_ubeh}(h]h ]h"]h$]h&]uh1jhj`hK*hj_ubj)}(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)}(hj5`h]hfence}(hj7`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3`ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK1hj/`ubj )}(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.}(hjN`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK.hjK`ubh)}(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]`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK0hjK`ubeh}(h]h ]h"]h$]h&]uh1j hj/`ubeh}(h]h ]h"]h$]h&]uh1jhjJ`hK1hj_ubj)}(hN``cb_list`` List of callbacks to call when the :c:type:`fence` gets replaced. h](j)}(h ``cb_list``h]j)}(hj~`h]hcb_list}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|`ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK6hjx`ubj )}(hhh]h)}(hAList of callbacks to call when the :c:type:`fence` gets replaced.h](h#List of callbacks to call when the }(hj`hhhNhNubh)}(h:c:type:`fence`h]j)}(hj`h]hfence}(hj`hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjfenceuh1hhj`hK6hj`ubh gets replaced.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`hK6hj`ubah}(h]h ]h"]h$]h&]uh1j hjx`ubeh}(h]h ]h"]h$]h&]uh1jhj`hK6hj_ubj)}(h+``ev_fd_list`` List of registered eventfd. h](j)}(h``ev_fd_list``h]j)}(hj`h]h ev_fd_list}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK:hj`ubj )}(hhh]h)}(hList of registered eventfd.h]hList of registered eventfd.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hK:hj`ubah}(h]h ]h"]h$]h&]uh1j hj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hK:hj_ubj)}(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)}(hjah]hlock}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK>hj aubj )}(hhh]h)}(hUProtects :c:type:`cb_list` and :c:type:`ev_fd_list`, and write-locks :c:type:`fence`.h](h Protects }(hj,ahhhNhNubh)}(h:c:type:`cb_list`h]j)}(hj6ah]hcb_list}(hj8ahhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj4aubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjcb_listuh1hhj(ahK>hj,aubh and }(hj,ahhhNhNubh)}(h:c:type:`ev_fd_list`h]j)}(hjYah]h ev_fd_list}(hj[ahhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjWaubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj ev_fd_listuh1hhj(ahK>hj,aubh, and write-locks }(hj,ahhhNhNubh)}(h:c:type:`fence`h]j)}(hj|ah]hfence}(hj~ahhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjzaubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjfenceuh1hhj(ahK>hj,aubh.}(hj,ahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj(ahK>hj)aubah}(h]h ]h"]h$]h&]uh1j hj aubeh}(h]h ]h"]h$]h&]uh1jhj(ahK>hj_ubj)}(h)``file`` A file backing for this syncobj.h](j)}(h``file``h]j)}(hjah]hfile}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKAhjaubj )}(hhh]h)}(h A file backing for this syncobj.h]h A file backing for this syncobj.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKBhjaubah}(h]h ]h"]h$]h&]uh1j hjaubeh}(h]h ]h"]h$]h&]uh1jhjahKAhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]XhhhNhNubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKEhj]Xhhubh)}(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 }(hjbhhhNhNubh)}(h:c:type:`dma_fence`h]j)}(hjbh]h dma_fence}(hjbhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj dma_fenceuh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK$hjbubh.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5bhK$hj]Xhhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_syncobj_get (C function)c.drm_syncobj_gethNtauh1j!hj]XhhhNhNubj3)}(hhh](j8)}(h.void drm_syncobj_get (struct drm_syncobj *obj)h]j>)}(h-void drm_syncobj_get(struct drm_syncobj *obj)h](jc)}(hvoidh]hvoid}(hjYbhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjUbhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKIubjV)}(h h]h }(hjhbhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjUbhhhjgbhKIubjg)}(hdrm_syncobj_geth]jm)}(hdrm_syncobj_geth]hdrm_syncobj_get}(hjzbhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjvbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUbhhhjgbhKIubj)}(h(struct drm_syncobj *obj)h]j)}(hstruct drm_syncobj *objh](jD)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjbubjV)}(h h]h }(hjbhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjbubh)}(hhh]jm)}(h drm_syncobjh]h drm_syncobj}(hjbhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjbubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjbmodnameN classnameNjj)}j]j)}jj|bsbc.drm_syncobj_getasbuh1hhjbubjV)}(h h]h }(hjbhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hobjh]hobj}(hjbhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubah}(h]h ]h"]h$]h&]jjuh1jhjUbhhhjgbhKIubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjQbhhhjgbhKIubah}(h]jLbah ](jjeh"]h$]h&]jj)jhuh1j7hjgbhKIhjNbhhubj)}(hhh]h)}(hacquire a syncobj referenceh]hacquire a syncobj reference}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKIhjchhubah}(h]h ]h"]h$]h&]uh1jhjNbhhhjgbhKIubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1cjj1cjjjuh1j2hhhj]XhNhNubj)}(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;ch]h Parameters}(hj=chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9cubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKMhj5cubj)}(hhh]j)}(h(``struct drm_syncobj *obj`` sync object h](j)}(h``struct drm_syncobj *obj``h]j)}(hjZch]hstruct drm_syncobj *obj}(hj\chhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXcubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKJhjTcubj )}(hhh]h)}(h sync objecth]h sync object}(hjschhhNhNubah}(h]h ]h"]h$]h&]uh1hhjochKJhjpcubah}(h]h ]h"]h$]h&]uh1j hjTcubeh}(h]h ]h"]h$]h&]uh1jhjochKJhjQcubah}(h]h ]h"]h$]h&]uh1jhj5cubh)}(h**Description**h]j)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKLhj5cubh)}(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 }(hjchhhNhNubj)}(h**obj**h]hobj}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubhT. It is illegal to call this without already holding a reference. No locks required.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKKhj5cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]XhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_syncobj_put (C function)c.drm_syncobj_puthNtauh1j!hj]XhhhNhNubj3)}(hhh](j8)}(h.void drm_syncobj_put (struct drm_syncobj *obj)h]j>)}(h-void drm_syncobj_put(struct drm_syncobj *obj)h](jc)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjchhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKVubjV)}(h h]h }(hjchhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjchhhjchKVubjg)}(hdrm_syncobj_puth]jm)}(hdrm_syncobj_puth]hdrm_syncobj_put}(hj dhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj dubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjchKVubj)}(h(struct drm_syncobj *obj)h]j)}(hstruct drm_syncobj *objh](jD)}(hjh]hstruct}(hj)dhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj%dubjV)}(h h]h }(hj6dhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj%dubh)}(hhh]jm)}(h drm_syncobjh]h drm_syncobj}(hjGdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDdubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjIdmodnameN classnameNjj)}j]j)}jjdsbc.drm_syncobj_putasbuh1hhj%dubjV)}(h h]h }(hjgdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj%dubj)}(hjh]h*}(hjudhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%dubjm)}(hobjh]hobj}(hjdhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj%dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!dubah}(h]h ]h"]h$]h&]jjuh1jhjchhhjchKVubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjchhhjchKVubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1j7hjchKVhjchhubj)}(hhh]h)}(h%release a reference to a sync object.h]h%release a reference to a sync object.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKVhjdhhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchKVubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1j2hhhj]XhNhNubj)}(h:**Parameters** ``struct drm_syncobj *obj`` sync object.h](h)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKZhjdubj)}(hhh]j)}(h(``struct drm_syncobj *obj`` sync object.h](j)}(h``struct drm_syncobj *obj``h]j)}(hjdh]hstruct drm_syncobj *obj}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK\hjdubj )}(hhh]h)}(h sync object.h]h sync object.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKWhjeubah}(h]h ]h"]h$]h&]uh1j hjdubeh}(h]h ]h"]h$]h&]uh1jhjehK\hjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]XhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_syncobj_fence_get (C function)c.drm_syncobj_fence_gethNtauh1j!hj]XhhhNhNubj3)}(hhh](j8)}(hFstruct dma_fence * drm_syncobj_fence_get (struct drm_syncobj *syncobj)h]j>)}(hDstruct dma_fence *drm_syncobj_fence_get(struct drm_syncobj *syncobj)h](jD)}(hjh]hstruct}(hjGehhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjCehhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhK`ubjV)}(h h]h }(hjUehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjCehhhjTehK`ubh)}(hhh]jm)}(h dma_fenceh]h dma_fence}(hjfehhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjceubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjhemodnameN classnameNjj)}j]j)}jdrm_syncobj_fence_getsbc.drm_syncobj_fence_getasbuh1hhjCehhhjTehK`ubjV)}(h h]h }(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjCehhhjTehK`ubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCehhhjTehK`ubjg)}(hdrm_syncobj_fence_geth]jm)}(hjeh]hdrm_syncobj_fence_get}(hjehhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjCehhhjTehK`ubj)}(h(struct drm_syncobj *syncobj)h]j)}(hstruct drm_syncobj *syncobjh](jD)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjeubjV)}(h h]h }(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjeubh)}(hhh]jm)}(h drm_syncobjh]h drm_syncobj}(hjehhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjemodnameN classnameNjj)}j]jec.drm_syncobj_fence_getasbuh1hhjeubjV)}(h h]h }(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjeubj)}(hjh]h*}(hj fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hsyncobjh]hsyncobj}(hjfhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubah}(h]h ]h"]h$]h&]jjuh1jhjCehhhjTehK`ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj?ehhhjTehK`ubah}(h]j:eah ](jjeh"]h$]h&]jj)jhuh1j7hjTehK`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)}(hjdfh]h Parameters}(hjffhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbfubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKdhj^fubj)}(hhh]j)}(h-``struct drm_syncobj *syncobj`` sync object. h](j)}(h``struct drm_syncobj *syncobj``h]j)}(hjfh]hstruct drm_syncobj *syncobj}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKahj}fubj )}(hhh]h)}(h sync object.h]h sync object.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKahjfubah}(h]h ]h"]h$]h&]uh1j hj}fubeh}(h]h ]h"]h$]h&]uh1jhjfhKahjzfubah}(h]h ]h"]h$]h&]uh1jhj^fubh)}(h**Description**h]j)}(hjfh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKchj^fubh)}(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 }(hjfhhhNhNubh)}(h):c:type:`drm_syncobj.fence `h]j)}(hjfh]hdrm_syncobj.fence}(hjfhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_syncobjuh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKbhjfubh contained in }(hjfhhhNhNubj)}(h**obj**h]hobj}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubha, if not NULL. It is illegal to call this without already holding a reference. No locks required.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjfhKbhj^fubh)}(h **Return**h]j)}(hjgh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKfhj^fubh)}(h4Either the fence of **obj** or NULL if there's none.h](hEither the fence of }(hj0ghhhNhNubj)}(h**obj**h]hobj}(hj8ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0gubh or NULL if there’s none.}(hj0ghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:532: ./include/drm/drm_syncobj.hhKghj^fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]XhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_syncobj_find (C function)c.drm_syncobj_findhNtauh1j!hj]XhhhNhNubj3)}(hhh](j8)}(hQstruct drm_syncobj * drm_syncobj_find (struct drm_file *file_private, u32 handle)h]j>)}(hOstruct drm_syncobj *drm_syncobj_find(struct drm_file *file_private, u32 handle)h](jD)}(hjh]hstruct}(hjqghhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjmghhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chKubjV)}(h h]h }(hjghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmghhhj~ghKubh)}(hhh]jm)}(h drm_syncobjh]h drm_syncobj}(hjghhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjgmodnameN classnameNjj)}j]j)}jdrm_syncobj_findsbc.drm_syncobj_findasbuh1hhjmghhhj~ghKubjV)}(h h]h }(hjghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmghhhj~ghKubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmghhhj~ghKubjg)}(hdrm_syncobj_findh]jm)}(hjgh]hdrm_syncobj_find}(hjghhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmghhhj~ghKubj)}(h+(struct drm_file *file_private, u32 handle)h](j)}(hstruct drm_file *file_privateh](jD)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjgubjV)}(h h]h }(hjghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjgubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hj hhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj hmodnameN classnameNjj)}j]jgc.drm_syncobj_findasbuh1hhjgubjV)}(h h]h }(hj'hhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjgubj)}(hjh]h*}(hj5hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(h file_privateh]h file_private}(hjBhhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(h u32 handleh](h)}(hhh]jm)}(hu32h]hu32}(hj^hhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj[hubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj`hmodnameN classnameNjj)}j]jgc.drm_syncobj_findasbuh1hhjWhubjV)}(h h]h }(hj|hhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjWhubjm)}(hhandleh]hhandle}(hjhhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjWhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhjmghhhj~ghKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjighhhj~ghKubah}(h]jdgah ](jjeh"]h$]h&]jj)jhuh1j7hj~ghKhjfghhubj)}(hhh]h)}(h#lookup and reference a sync object.h]h#lookup and reference a sync object.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chKhjhhhubah}(h]h ]h"]h$]h&]uh1jhjfghhhj~ghKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1j2hhhj]XhNhNubj)}(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)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chKhjhubj)}(hhh](j)}(h;``struct drm_file *file_private`` drm file private pointer h](j)}(h!``struct drm_file *file_private``h]j)}(hjhh]hstruct drm_file *file_private}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chKhjhubj )}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ihKhj iubah}(h]h ]h"]h$]h&]uh1j hjhubeh}(h]h ]h"]h$]h&]uh1jhj ihKhjhubj)}(h-``u32 handle`` sync object handle to lookup. h](j)}(h``u32 handle``h]j)}(hj.ih]h u32 handle}(hj0ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,iubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chKhj(iubj )}(hhh]h)}(hsync object handle to lookup.h]hsync object handle to lookup.}(hjGihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCihKhjDiubah}(h]h ]h"]h$]h&]uh1j hj(iubeh}(h]h ]h"]h$]h&]uh1jhjCihKhjhubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hjiih]h Description}(hjkihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgiubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chKhjhubh)}(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().}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chKhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]XhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_syncobj_add_point (C function)c.drm_syncobj_add_pointhNtauh1j!hj]XhhhNhNubj3)}(hhh](j8)}(hvoid drm_syncobj_add_point (struct drm_syncobj *syncobj, struct dma_fence_chain *chain, struct dma_fence *fence, uint64_t point)h]j>)}(hvoid drm_syncobj_add_point(struct drm_syncobj *syncobj, struct dma_fence_chain *chain, struct dma_fence *fence, uint64_t point)h](jc)}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjihhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMEubjV)}(h h]h }(hjihhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjihhhjihMEubjg)}(hdrm_syncobj_add_pointh]jm)}(hdrm_syncobj_add_pointh]hdrm_syncobj_add_point}(hjihhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhhjihMEubj)}(he(struct drm_syncobj *syncobj, struct dma_fence_chain *chain, struct dma_fence *fence, uint64_t point)h](j)}(hstruct drm_syncobj *syncobjh](jD)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjiubjV)}(h h]h }(hjihhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjiubh)}(hhh]jm)}(h drm_syncobjh]h drm_syncobj}(hj jhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj jmodnameN classnameNjj)}j]j)}jjisbc.drm_syncobj_add_pointasbuh1hhjiubjV)}(h h]h }(hj)jhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjiubj)}(hjh]h*}(hj7jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hsyncobjh]hsyncobj}(hjDjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hstruct dma_fence_chain *chainh](jD)}(hjh]hstruct}(hj]jhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjYjubjV)}(h h]h }(hjjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYjubh)}(hhh]jm)}(hdma_fence_chainh]hdma_fence_chain}(hj{jhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj}jmodnameN classnameNjj)}j]j%jc.drm_syncobj_add_pointasbuh1hhjYjubjV)}(h h]h }(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYjubjm)}(hchainh]hchain}(hjjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjYjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hstruct dma_fence *fenceh](jD)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjjubjV)}(h h]h }(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjubh)}(hhh]jm)}(h dma_fenceh]h dma_fence}(hjjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjjmodnameN classnameNjj)}j]j%jc.drm_syncobj_add_pointasbuh1hhjjubjV)}(h h]h }(hj khhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjm)}(hfenceh]hfence}(hj$khhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(huint64_t pointh](h)}(hhh]jm)}(huint64_th]huint64_t}(hj@khhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj=kubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjBkmodnameN classnameNjj)}j]j%jc.drm_syncobj_add_pointasbuh1hhj9kubjV)}(h h]h }(hj^khhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj9kubjm)}(hpointh]hpoint}(hjlkhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj9kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhjihhhjihMEubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjihhhjihMEubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1j7hjihMEhjihhubj)}(hhh]h)}(h%add new timeline point to the syncobjh]h%add new timeline point to the syncobj}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMEhjkhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1j2hhhj]XhNhNubj)}(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)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMIhjkubj)}(hhh](j)}(hE``struct drm_syncobj *syncobj`` sync object to add timeline point do h](j)}(h``struct drm_syncobj *syncobj``h]j)}(hjkh]hstruct drm_syncobj *syncobj}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMFhjkubj )}(hhh]h)}(h$sync object to add timeline point doh]h$sync object to add timeline point do}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMFhjkubah}(h]h ]h"]h$]h&]uh1j hjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMFhjkubj)}(hE``struct dma_fence_chain *chain`` chain node to use to add the point h](j)}(h!``struct dma_fence_chain *chain``h]j)}(hjlh]hstruct dma_fence_chain *chain}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMGhj lubj )}(hhh]h)}(h"chain node to use to add the pointh]h"chain node to use to add the point}(hj)lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%lhMGhj&lubah}(h]h ]h"]h$]h&]uh1j hj lubeh}(h]h ]h"]h$]h&]uh1jhj%lhMGhjkubj)}(hC``struct dma_fence *fence`` fence to encapsulate in the chain node h](j)}(h``struct dma_fence *fence``h]j)}(hjIlh]hstruct dma_fence *fence}(hjKlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGlubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMHhjClubj )}(hhh]h)}(h&fence to encapsulate in the chain nodeh]h&fence to encapsulate in the chain node}(hjblhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^lhMHhj_lubah}(h]h ]h"]h$]h&]uh1j hjClubeh}(h]h ]h"]h$]h&]uh1jhj^lhMHhjkubj)}(h8``uint64_t point`` sequence number to use for the point h](j)}(h``uint64_t point``h]j)}(hjlh]huint64_t point}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMIhj|lubj )}(hhh]h)}(h$sequence number to use for the pointh]h$sequence number to use for the point}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMIhjlubah}(h]h ]h"]h$]h&]uh1j hj|lubeh}(h]h ]h"]h$]h&]uh1jhjlhMIhjkubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h**Description**h]j)}(hjlh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMKhjkubh)}(h8Add the chain node as new timeline point to the syncobj.h]h8Add the chain node as new timeline point to the syncobj.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMJhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]XhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.&drm_syncobj_replace_fence (C function)c.drm_syncobj_replace_fencehNtauh1j!hj]XhhhNhNubj3)}(hhh](j8)}(hUvoid drm_syncobj_replace_fence (struct drm_syncobj *syncobj, struct dma_fence *fence)h]j>)}(hTvoid drm_syncobj_replace_fence(struct drm_syncobj *syncobj, struct dma_fence *fence)h](jc)}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjlhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMnubjV)}(h h]h }(hjmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjlhhhjmhMnubjg)}(hdrm_syncobj_replace_fenceh]jm)}(hdrm_syncobj_replace_fenceh]hdrm_syncobj_replace_fence}(hj#mhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjlhhhjmhMnubj)}(h6(struct drm_syncobj *syncobj, struct dma_fence *fence)h](j)}(hstruct drm_syncobj *syncobjh](jD)}(hjh]hstruct}(hj?mhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj;mubjV)}(h h]h }(hjLmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;mubh)}(hhh]jm)}(h drm_syncobjh]h drm_syncobj}(hj]mhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZmubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj_mmodnameN classnameNjj)}j]j)}jj%msbc.drm_syncobj_replace_fenceasbuh1hhj;mubjV)}(h h]h }(hj}mhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;mubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;mubjm)}(hsyncobjh]hsyncobj}(hjmhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj;mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7mubj)}(hstruct dma_fence *fenceh](jD)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjmubjV)}(h h]h }(hjmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmubh)}(hhh]jm)}(h dma_fenceh]h dma_fence}(hjmhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmmodnameN classnameNjj)}j]jymc.drm_syncobj_replace_fenceasbuh1hhjmubjV)}(h h]h }(hjmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hfenceh]hfence}(hjnhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7mubeh}(h]h ]h"]h$]h&]jjuh1jhjlhhhjmhMnubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjlhhhjmhMnubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1j7hjmhMnhjlhhubj)}(hhh]h)}(hreplace fence in a sync object.h]hreplace fence in a sync object.}(hj2nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMnhj/nhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjmhMnubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJnjjJnjjjuh1j2hhhj]XhNhNubj)}(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)}(hjTnh]h Parameters}(hjVnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRnubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMrhjNnubj)}(hhh](j)}(h@``struct drm_syncobj *syncobj`` Sync object to replace fence in h](j)}(h``struct drm_syncobj *syncobj``h]j)}(hjsnh]hstruct drm_syncobj *syncobj}(hjunhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqnubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMohjmnubj )}(hhh]h)}(hSync object to replace fence inh]hSync object to replace fence in}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMohjnubah}(h]h ]h"]h$]h&]uh1j hjmnubeh}(h]h ]h"]h$]h&]uh1jhjnhMohjjnubj)}(h;``struct dma_fence *fence`` fence to install in sync file. h](j)}(h``struct dma_fence *fence``h]j)}(hjnh]hstruct dma_fence *fence}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMphjnubj )}(hhh]h)}(hfence to install in sync file.h]hfence to install in sync file.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMphjnubah}(h]h ]h"]h$]h&]uh1j hjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMphjjnubeh}(h]h ]h"]h$]h&]uh1jhjNnubh)}(h**Description**h]j)}(hjnh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMrhjNnubh)}(h)This replaces the fence on a sync object.h]h)This replaces the fence on a sync object.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMqhjNnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]XhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_syncobj_find_fence (C function)c.drm_syncobj_find_fencehNtauh1j!hj]XhhhNhNubj3)}(hhh](j8)}(hvint drm_syncobj_find_fence (struct drm_file *file_private, u32 handle, u64 point, u64 flags, struct dma_fence **fence)h]j>)}(huint drm_syncobj_find_fence(struct drm_file *file_private, u32 handle, u64 point, u64 flags, struct dma_fence **fence)h](jc)}(hinth]hint}(hj,ohhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj(ohhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMubjV)}(h h]h }(hj;ohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(ohhhj:ohMubjg)}(hdrm_syncobj_find_fenceh]jm)}(hdrm_syncobj_find_fenceh]hdrm_syncobj_find_fence}(hjMohhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjIoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(ohhhj:ohMubj)}(h[(struct drm_file *file_private, u32 handle, u64 point, u64 flags, struct dma_fence **fence)h](j)}(hstruct drm_file *file_privateh](jD)}(hjh]hstruct}(hjiohhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjeoubjV)}(h h]h }(hjvohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjeoubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjohhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjomodnameN classnameNjj)}j]j)}jjOosbc.drm_syncobj_find_fenceasbuh1hhjeoubjV)}(h h]h }(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjeoubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeoubjm)}(h file_privateh]h file_private}(hjohhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjeoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaoubj)}(h u32 handleh](h)}(hhh]jm)}(hu32h]hu32}(hjohhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjomodnameN classnameNjj)}j]joc.drm_syncobj_find_fenceasbuh1hhjoubjV)}(h h]h }(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjoubjm)}(hhandleh]hhandle}(hj phhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaoubj)}(h u64 pointh](h)}(hhh]jm)}(hu64h]hu64}(hj&phhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj#pubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj(pmodnameN classnameNjj)}j]joc.drm_syncobj_find_fenceasbuh1hhjpubjV)}(h h]h }(hjDphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjpubjm)}(hpointh]hpoint}(hjRphhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaoubj)}(h u64 flagsh](h)}(hhh]jm)}(hu64h]hu64}(hjnphhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjkpubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjppmodnameN classnameNjj)}j]joc.drm_syncobj_find_fenceasbuh1hhjgpubjV)}(h h]h }(hjphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjgpubjm)}(hflagsh]hflags}(hjphhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjgpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaoubj)}(hstruct dma_fence **fenceh](jD)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjpubjV)}(h h]h }(hjphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjpubh)}(hhh]jm)}(h dma_fenceh]h dma_fence}(hjphhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjpmodnameN classnameNjj)}j]joc.drm_syncobj_find_fenceasbuh1hhjpubjV)}(h h]h }(hjphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hj qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(hfenceh]hfence}(hjqhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaoubeh}(h]h ]h"]h$]h&]jjuh1jhj(ohhhj:ohMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj$ohhhj:ohMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1j7hj:ohMhj!ohhubj)}(hhh]h)}(h/lookup and reference the fence in a sync objecth]h/lookup and reference the fence in a sync object}(hjAqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhj>qhhubah}(h]h ]h"]h$]h&]uh1jhj!ohhhj:ohMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYqjjYqjjjuh1j2hhhj]XhNhNubj)}(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)}(hjcqh]h Parameters}(hjeqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaqubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhj]qubj)}(hhh](j)}(h;``struct drm_file *file_private`` drm file private pointer h](j)}(h!``struct drm_file *file_private``h]j)}(hjqh]hstruct drm_file *file_private}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhj|qubj )}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjqubah}(h]h ]h"]h$]h&]uh1j hj|qubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjyqubj)}(h-``u32 handle`` sync object handle to lookup. h](j)}(h``u32 handle``h]j)}(hjqh]h u32 handle}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhjqubj )}(hhh]h)}(hsync object handle to lookup.h]hsync object handle to lookup.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjqubah}(h]h ]h"]h$]h&]uh1j hjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjyqubj)}(h``u64 point`` timeline point h](j)}(h ``u64 point``h]j)}(hjqh]h u64 point}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhjqubj )}(hhh]h)}(htimeline pointh]htimeline point}(hj rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj rhMhj rubah}(h]h ]h"]h$]h&]uh1j hjqubeh}(h]h ]h"]h$]h&]uh1jhj rhMhjyqubj)}(h<``u64 flags`` DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or not h](j)}(h ``u64 flags``h]j)}(hj-rh]h u64 flags}(hj/rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+rubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhj'rubj )}(hhh]h)}(h-DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or noth]h-DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or not}(hjFrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBrhMhjCrubah}(h]h ]h"]h$]h&]uh1j hj'rubeh}(h]h ]h"]h$]h&]uh1jhjBrhMhjyqubj)}(h9``struct dma_fence **fence`` out parameter for the fence h](j)}(h``struct dma_fence **fence``h]j)}(hjfrh]hstruct dma_fence **fence}(hjhrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdrubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhj`rubj )}(hhh]h)}(hout parameter for the fenceh]hout parameter for the fence}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{rhMhj|rubah}(h]h ]h"]h$]h&]uh1j hj`rubeh}(h]h ]h"]h$]h&]uh1jhj{rhMhjyqubeh}(h]h ]h"]h$]h&]uh1jhj]qubh)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhj]qubh)}(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().}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhj]qubh)}(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 }(hjrhhhNhNubj)}(h **fence**h]hfence}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubhV contains a reference to the fence, which must be released by calling dma_fence_put().}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhj]qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]XhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_syncobj_free (C function)c.drm_syncobj_freehNtauh1j!hj]XhhhNhNubj3)}(hhh](j8)}(h)void drm_syncobj_free (struct kref *kref)h]j>)}(h(void drm_syncobj_free(struct kref *kref)h](jc)}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjshhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chM ubjV)}(h h]h }(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjshhhjshM ubjg)}(hdrm_syncobj_freeh]jm)}(hdrm_syncobj_freeh]hdrm_syncobj_free}(hj(shhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj$subah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjshM ubj)}(h(struct kref *kref)h]j)}(hstruct kref *krefh](jD)}(hjh]hstruct}(hjDshhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj@subjV)}(h h]h }(hjQshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@subh)}(hhh]jm)}(hkrefh]hkref}(hjbshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj_subah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjdsmodnameN classnameNjj)}j]j)}jj*ssbc.drm_syncobj_freeasbuh1hhj@subjV)}(h h]h }(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@subj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@subjm)}(hkrefh]hkref}(hjshhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@subeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)}(haint drm_syncobj_create(struct drm_syncobj **out_syncobj, uint32_t flags, struct dma_fence *fence)h](jc)}(hinth]hint}(hjthhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjthhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMubjV)}(h h]h }(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjthhhjthMubjg)}(hdrm_syncobj_createh]jm)}(hdrm_syncobj_createh]hdrm_syncobj_create}(hjthhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhjthMubj)}(hK(struct drm_syncobj **out_syncobj, uint32_t flags, struct dma_fence *fence)h](j)}(h struct drm_syncobj **out_syncobjh](jD)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjtubjV)}(h h]h }(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjtubh)}(hhh]jm)}(h drm_syncobjh]h drm_syncobj}(hjthhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjtmodnameN classnameNjj)}j]j)}jjtsbc.drm_syncobj_createasbuh1hhjtubjV)}(h h]h }(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjtubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(h out_syncobjh]h out_syncobj}(hj+uhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(huint32_t flagsh](h)}(hhh]jm)}(huint32_th]huint32_t}(hjGuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDuubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjIumodnameN classnameNjj)}j]jtc.drm_syncobj_createasbuh1hhj@uubjV)}(h h]h }(hjeuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj@uubjm)}(hflagsh]hflags}(hjsuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj@uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hstruct dma_fence *fenceh](jD)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjuubjV)}(h h]h }(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubh)}(hhh]jm)}(h dma_fenceh]h dma_fence}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjumodnameN classnameNjj)}j]jtc.drm_syncobj_createasbuh1hhjuubjV)}(h h]h }(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hfenceh]hfence}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhjthhhjthMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjthhhjthMubah}(h]j{tah ](jjeh"]h$]h&]jj)jhuh1j7hjthMhj}thhubj)}(hhh]h)}(hcreate a new syncobjh]hcreate a new syncobj}(hj vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhj vhhubah}(h]h ]h"]h$]h&]uh1jhj}thhhjthMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%vjj%vjjjuh1j2hhhj]XhNhNubj)}(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/vh]h Parameters}(hj1vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-vubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chM#hj)vubj)}(hhh](j)}(h6``struct drm_syncobj **out_syncobj`` returned syncobj h](j)}(h$``struct drm_syncobj **out_syncobj``h]j)}(hjNvh]h struct drm_syncobj **out_syncobj}(hjPvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chM hjHvubj )}(hhh]h)}(hreturned syncobjh]hreturned syncobj}(hjgvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcvhM hjdvubah}(h]h ]h"]h$]h&]uh1j hjHvubeh}(h]h ]h"]h$]h&]uh1jhjcvhM hjEvubj)}(h'``uint32_t flags`` DRM_SYNCOBJ_* flags h](j)}(h``uint32_t flags``h]j)}(hjvh]huint32_t flags}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chM!hjvubj )}(hhh]h)}(hDRM_SYNCOBJ_* flagsh]hDRM_SYNCOBJ_* flags}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM!hjvubah}(h]h ]h"]h$]h&]uh1j hjvubeh}(h]h ]h"]h$]h&]uh1jhjvhM!hjEvubj)}(hO``struct dma_fence *fence`` if non-NULL, the syncobj will represent this fence h](j)}(h``struct dma_fence *fence``h]j)}(hjvh]hstruct dma_fence *fence}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chM"hjvubj )}(hhh]h)}(h2if non-NULL, the syncobj will represent this fenceh]h2if non-NULL, the syncobj will represent this fence}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM"hjvubah}(h]h ]h"]h$]h&]uh1j hjvubeh}(h]h ]h"]h$]h&]uh1jhjvhM"hjEvubeh}(h]h ]h"]h$]h&]uh1jhj)vubh)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chM$hj)vubh)}(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().}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chM#hj)vubh)}(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 whhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chM'hj)vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]XhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_syncobj_get_handle (C function)c.drm_syncobj_get_handlehNtauh1j!hj]XhhhNhNubj3)}(hhh](j8)}(hdint drm_syncobj_get_handle (struct drm_file *file_private, struct drm_syncobj *syncobj, u32 *handle)h]j>)}(hcint drm_syncobj_get_handle(struct drm_file *file_private, struct drm_syncobj *syncobj, u32 *handle)h](jc)}(hinth]hint}(hjOwhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjKwhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMJubjV)}(h h]h }(hj^whhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKwhhhj]whMJubjg)}(hdrm_syncobj_get_handleh]jm)}(hdrm_syncobj_get_handleh]hdrm_syncobj_get_handle}(hjpwhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjlwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKwhhhj]whMJubj)}(hI(struct drm_file *file_private, struct drm_syncobj *syncobj, u32 *handle)h](j)}(hstruct drm_file *file_privateh](jD)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjwubjV)}(h h]h }(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjwubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjwhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjwmodnameN classnameNjj)}j]j)}jjrwsbc.drm_syncobj_get_handleasbuh1hhjwubjV)}(h h]h }(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjwubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(h file_privateh]h file_private}(hjwhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(hstruct drm_syncobj *syncobjh](jD)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjwubjV)}(h h]h }(hj xhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjwubh)}(hhh]jm)}(h drm_syncobjh]h drm_syncobj}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]jwc.drm_syncobj_get_handleasbuh1hhjwubjV)}(h h]h }(hj:xhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjwubj)}(hjh]h*}(hjHxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hsyncobjh]hsyncobj}(hjUxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(h u32 *handleh](h)}(hhh]jm)}(hu32h]hu32}(hjqxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjnxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjsxmodnameN classnameNjj)}j]jwc.drm_syncobj_get_handleasbuh1hhjjxubjV)}(h h]h }(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjxubjm)}(hhandleh]hhandle}(hjxhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhjKwhhhj]whMJubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjGwhhhj]whMJubah}(h]jBwah ](jjeh"]h$]h&]jj)jhuh1j7hj]whMJhjDwhhubj)}(hhh]h)}(hget a handle from a syncobjh]hget a handle from a syncobj}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMJhjxhhubah}(h]h ]h"]h$]h&]uh1jhjDwhhhj]whMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1j2hhhj]XhNhNubj)}(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)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMNhjxubj)}(hhh](j)}(h;``struct drm_file *file_private`` drm file private pointer h](j)}(h!``struct drm_file *file_private``h]j)}(hjyh]hstruct drm_file *file_private}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMKhjyubj )}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hj.yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*yhMKhj+yubah}(h]h ]h"]h$]h&]uh1j hjyubeh}(h]h ]h"]h$]h&]uh1jhj*yhMKhj yubj)}(h6``struct drm_syncobj *syncobj`` Sync object to export h](j)}(h``struct drm_syncobj *syncobj``h]j)}(hjNyh]hstruct drm_syncobj *syncobj}(hjPyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMLhjHyubj )}(hhh]h)}(hSync object to exporth]hSync object to export}(hjgyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcyhMLhjdyubah}(h]h ]h"]h$]h&]uh1j hjHyubeh}(h]h ]h"]h$]h&]uh1jhjcyhMLhj yubj)}(h2``u32 *handle`` out parameter with the new handle h](j)}(h``u32 *handle``h]j)}(hjyh]h u32 *handle}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMMhjyubj )}(hhh]h)}(h!out parameter with the new handleh]h!out parameter with the new handle}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMMhjyubah}(h]h ]h"]h$]h&]uh1j hjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMMhj yubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(h**Description**h]j)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMOhjxubh)}(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 }(hjyhhhNhNubj)}(h**file_private**h]h file_private}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh to userspace.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMNhjxubh)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMQhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]XhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_syncobj_get_fd (C function)c.drm_syncobj_get_fdhNtauh1j!hj]XhhhNhNubj3)}(hhh](j8)}(h?int drm_syncobj_get_fd (struct drm_syncobj *syncobj, int *p_fd)h]j>)}(h>int drm_syncobj_get_fd(struct drm_syncobj *syncobj, int *p_fd)h](jc)}(hinth]hint}(hj(zhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj$zhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMubjV)}(h h]h }(hj7zhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj$zhhhj6zhMubjg)}(hdrm_syncobj_get_fdh]jm)}(hdrm_syncobj_get_fdh]hdrm_syncobj_get_fd}(hjIzhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjEzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$zhhhj6zhMubj)}(h((struct drm_syncobj *syncobj, int *p_fd)h](j)}(hstruct drm_syncobj *syncobjh](jD)}(hjh]hstruct}(hjezhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjazubjV)}(h h]h }(hjrzhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjazubh)}(hhh]jm)}(h drm_syncobjh]h drm_syncobj}(hjzhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjzubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjzmodnameN classnameNjj)}j]j)}jjKzsbc.drm_syncobj_get_fdasbuh1hhjazubjV)}(h h]h }(hjzhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjazubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjazubjm)}(hsyncobjh]hsyncobj}(hjzhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjazubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]zubj)}(h int *p_fdh](jc)}(hinth]hint}(hjzhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjzubjV)}(h h]h }(hjzhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjzubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(hp_fdh]hp_fd}(hj{hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]zubeh}(h]h ]h"]h$]h&]jjuh1jhj$zhhhj6zhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj zhhhj6zhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1j7hj6zhMhjzhhubj)}(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:535: ./drivers/gpu/drm/drm_syncobj.chMhj'{hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhj6zhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjB{jjB{jjjuh1j2hhhj]XhNhNubj)}(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)}(hjL{h]h Parameters}(hjN{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ{ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhjF{ubj)}(hhh](j)}(h6``struct drm_syncobj *syncobj`` Sync object to export h](j)}(h``struct drm_syncobj *syncobj``h]j)}(hjk{h]hstruct drm_syncobj *syncobj}(hjm{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji{ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhje{ubj )}(hhh]h)}(hSync object to exporth]hSync object to export}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj{ubah}(h]h ]h"]h$]h&]uh1j hje{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjb{ubj)}(h9``int *p_fd`` out parameter with the new file descriptor h](j)}(h ``int *p_fd``h]j)}(hj{h]h int *p_fd}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhj{ubj )}(hhh]h)}(h*out parameter with the new file descriptorh]h*out parameter with the new file descriptor}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj{ubah}(h]h ]h"]h$]h&]uh1j hj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjb{ubeh}(h]h ]h"]h$]h&]uh1jhjF{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:535: ./drivers/gpu/drm/drm_syncobj.chMhjF{ubh)}(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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhjF{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:535: ./drivers/gpu/drm/drm_syncobj.chMhjF{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]XhhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.'drm_timeout_abs_to_jiffies (C function)c.drm_timeout_abs_to_jiffieshNtauh1j!hj]XhhhNhNubj3)}(hhh](j8)}(h=signed long drm_timeout_abs_to_jiffies (int64_t timeout_nsec)h]j>)}(h}ubah}(h]h ]h"]h$]h&]uh1j hj"}ubeh}(h]h ]h"]h$]h&]uh1jhj=}hMhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubh)}(h**Description**h]j)}(hjc}h]h Description}(hje}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja}ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhj}ubh)}(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.}(hjy}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:535: ./drivers/gpu/drm/drm_syncobj.chMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]XhhhNhNubeh}(h](jTXid4eh ]h"](drm sync objectsdrm_sync_objectseh$]h&]uh1hhhhhhhhMj}j}jJXsj}jTXjJXsubh)}(hhh](h)}(hDRM Execution contexth]hDRM Execution context}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hhhhhMubh)}(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..).}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:541: ./drivers/gpu/drm/drm_exec.chK hj}hhubh)}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:541: ./drivers/gpu/drm/drm_exec.chKhj}hhubh)}(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:541: ./drivers/gpu/drm/drm_exec.chKhj}hhubh)}(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:541: ./drivers/gpu/drm/drm_exec.chKhj}hhubjT)}(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);}hj}sbah}(h]h ]h"]h$]h&]jjuh1jShV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:541: ./drivers/gpu/drm/drm_exec.chKhj}hhubh)}(h%See struct dma_exec for more details.h]h%See struct dma_exec for more details.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:541: ./drivers/gpu/drm/drm_exec.chK/hj}hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_exec (C struct) c.drm_exechNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(hdrm_exech]j>)}(hstruct drm_exech](jD)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj~hhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKubjV)}(h h]h }(hj,~hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj~hhhj+~hKubjg)}(hdrm_exech]jm)}(hj~h]hdrm_exec}(hj>~hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhj+~hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj~hhhj+~hKubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1j7hj+~hKhj~hhubj)}(hhh]h)}(hExecution contexth]hExecution context}(hj`~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKhj]~hhubah}(h]h ]h"]h$]h&]uh1jhj~hhhj+~hKubeh}(h]h ](jstructeh"]h$]h&]jjjjx~jjx~jjjuh1j2hhhj}hNhNubj)}(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}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh:}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKhj|~ubjT)}(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; };}hj~sbah}(h]h ]h"]h$]h&]jjuh1jShR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKhj|~ubh)}(h **Members**h]j)}(hj~h]hMembers}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./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:544: ./include/drm/drm_exec.hhKhj~ubj )}(hhh]h)}(h!Flags to control locking behaviorh]h!Flags to control locking behavior}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKhj~ubah}(h]h ]h"]h$]h&]uh1j hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hKhj~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:544: ./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&]uh1j hjubeh}(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:544: ./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&]uh1j hj9ubeh}(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:544: ./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&]uh1j hjrubeh}(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:544: ./include/drm/drm_exec.hhK(hjubj )}(hhh]h)}(harray of the locked objectsh]harray of the locked objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK(hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhK(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:544: ./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&]uh1j hjubeh}(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:544: ./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:544: ./include/drm/drm_exec.hhK2hj9ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj8hK1hj~ubeh}(h]h ]h"]h$]h&]uh1jhj|~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_exec_obj (C function)c.drm_exec_objhNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(hQstruct drm_gem_object * drm_exec_obj (struct drm_exec *exec, unsigned long index)h]j>)}(hOstruct drm_gem_object *drm_exec_obj(struct drm_exec *exec, unsigned long index)h](jD)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjyhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhK7ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjyhhhjhK7ubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}j drm_exec_objsbc.drm_exec_objasbuh1hhjyhhhjhK7ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjyhhhjhK7ubj)}(hjh]h*}(hjˀhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhK7ubjg)}(h drm_exec_objh]jm)}(hjh]h drm_exec_obj}(hj܀hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj؀ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyhhhjhK7ubj)}(h,(struct drm_exec *exec, unsigned long index)h](j)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_exec_objasbuh1hhjubjV)}(h h]h }(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hexech]hexec}(hjNhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjghhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjcubjV)}(h h]h }(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjcubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjcubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjcubjm)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhK7ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjuhhhjhK7ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1j7hjhK7hjrhhubj)}(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:544: ./include/drm/drm_exec.hhK7hjƁhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhK7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj}hNhNubj)}(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:544: ./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:544: ./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&]uh1j hjubeh}(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:544: ./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&]uh1j hj=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:544: ./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:544: ./include/drm/drm_exec.hhK;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.)drm_exec_for_each_locked_object (C macro)!c.drm_exec_for_each_locked_objecthNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(hdrm_exec_for_each_locked_objecth]j>)}(hdrm_exec_for_each_locked_objecth]jg)}(hdrm_exec_for_each_locked_objecth]jm)}(hjςh]hdrm_exec_for_each_locked_object}(hjقhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjՂubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjтhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKEubah}(h]h ]h"]h$]h&]jjjuh1j=jjhj͂hhhjhKEubah}(h]jȂah ](jjeh"]h$]h&]jj)jhuh1j7hjhKEhjʂhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjʂhhhjhKEubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhj}hNhNubh)}(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:544: ./include/drm/drm_exec.hhKGhj}hhubj.)}(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:544: ./include/drm/drm_exec.hhKEhj!ubah}(h]h ]h"]h$]h&]uh1j.hj3hKEhj}hhubj)}(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:544: ./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:544: ./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&]uh1j hjYubeh}(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:544: ./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&]uh1j hjubeh}(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:544: ./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&]uh1j hj˃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:544: ./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:544: ./include/drm/drm_exec.hhKIhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.1drm_exec_for_each_locked_object_reverse (C macro))c.drm_exec_for_each_locked_object_reversehNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(h'drm_exec_for_each_locked_object_reverseh]j>)}(h'drm_exec_for_each_locked_object_reverseh]jg)}(h'drm_exec_for_each_locked_object_reverseh]jm)}(hjKh]h'drm_exec_for_each_locked_object_reverse}(hjUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKPubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjIhhhjhhKPubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1j7hjhhKPhjFhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjFhhhjhhKPubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhj}hNhNubh)}(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:544: ./include/drm/drm_exec.hhKRhj}hhubj.)}(h=iterate over all the locked objects in reverse locking order h]h)}(h)}(hdrm_exec_until_all_lockedh]jg)}(hdrm_exec_until_all_lockedh]jm)}(hjمh]hdrm_exec_until_all_locked}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj߅ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjۅhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhK_ubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjׅhhhjhK_ubah}(h]j҅ah ](jjeh"]h$]h&]jj)jhuh1j7hjhK_hjԅhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjԅhhhjhK_ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhj}hNhNubh)}(h$``drm_exec_until_all_locked (exec)``h]j)}(hjh]h drm_exec_until_all_locked (exec)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKahj}hhubj.)}(h&loop until all GEM objects are locked h]h)}(h%loop until all GEM objects are lockedh]h%loop until all GEM objects are locked}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhK_hj+ubah}(h]h ]h"]h$]h&]uh1j.hj=hK_hj}hhubj)}(hX**Parameters** ``exec`` drm_exec object **Description** Core functionality of the drm_exec object. Loops until all GEM objects are locked and no more contention exists. At the beginning of the loop it is guaranteed that no GEM object is locked. Since labels can't be defined local to the loops body we use a jump pointer to make sure that the retry is only used from within the loops body.h](h)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKchjDubj)}(hhh]j)}(h``exec`` drm_exec object h](j)}(h``exec``h]j)}(hjih]hexec}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhK`hjcubj )}(hhh]h)}(hdrm_exec objecth]hdrm_exec object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hK`hjubah}(h]h ]h"]h$]h&]uh1j hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hK`hj`ubah}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKbhjDubh)}(hCore functionality of the drm_exec object. Loops until all GEM objects are locked and no more contention exists. At the beginning of the loop it is guaranteed that no GEM object is locked.h]hCore functionality of the drm_exec object. Loops until all GEM objects are locked and no more contention exists. At the beginning of the loop it is guaranteed that no GEM object is locked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKahjDubh)}(hSince labels can't be defined local to the loops body we use a jump pointer to make sure that the retry is only used from within the loops body.h]hSince labels can’t be defined local to the loops body we use a jump pointer to make sure that the retry is only used from within the loops body.}(hjɆhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKehjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.&drm_exec_retry_on_contention (C macro)c.drm_exec_retry_on_contentionhNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(hdrm_exec_retry_on_contentionh]j>)}(hdrm_exec_retry_on_contentionh]jg)}(hdrm_exec_retry_on_contentionh]jm)}(hjh]hdrm_exec_retry_on_contention}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKrubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKrubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKrhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKrubeh}(h]h ](jmacroeh"]h$]h&]jjjj(jj(jjjuh1j2hhhj}hNhNubh)}(h'``drm_exec_retry_on_contention (exec)``h]j)}(hj.h]h#drm_exec_retry_on_contention (exec)}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKthj}hhubj.)}(h#restart the loop to grap all locks h]h)}(h"restart the loop to grap all locksh]h"restart the loop to grap all locks}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKrhjDubah}(h]h ]h"]h$]h&]uh1j.hjVhKrhj}hhubj)}(h**Parameters** ``exec`` drm_exec object **Description** Control flow helper to continue when a contention was detected and we need to clean up and re-start the loop to prepare all GEM objects.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKvhj]ubj)}(hhh]j)}(h``exec`` drm_exec object h](j)}(h``exec``h]j)}(hjh]hexec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKshj|ubj )}(hhh]h)}(hdrm_exec objecth]hdrm_exec object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKshjubah}(h]h ]h"]h$]h&]uh1j hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKshjyubah}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKuhj]ubh)}(hControl flow helper to continue when a contention was detected and we need to clean up and re-start the loop to prepare all GEM objects.h]hControl flow helper to continue when a contention was detected and we need to clean up and re-start the loop to prepare all GEM objects.}(hjӇhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKthj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_exec_is_contended (C function)c.drm_exec_is_contendedhNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(h2bool drm_exec_is_contended (struct drm_exec *exec)h]j>)}(h1bool drm_exec_is_contended(struct drm_exec *exec)h](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(hdrm_exec_is_contendedh]jm)}(hdrm_exec_is_contendedh]hdrm_exec_is_contended}(hj"hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct drm_exec *exec)h]j)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj:ubjV)}(h h]h }(hjKhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:ubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hj\hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^modnameN classnameNjj)}j]j)}jj$sbc.drm_exec_is_contendedasbuh1hhj:ubjV)}(h h]h }(hj|hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(hhh]h)}(hcheck for contentionh]hcheck for contention}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:544: ./include/drm/drm_exec.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjوjjوjjjuh1j2hhhj}hNhNubj)}(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:544: ./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:544: ./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&]uh1j hjubeh}(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:544: ./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:544: ./include/drm/drm_exec.hhKhj݈ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_exec_init (C function)c.drm_exec_inithNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(hBvoid drm_exec_init (struct drm_exec *exec, u32 flags, unsigned nr)h]j>)}(hAvoid drm_exec_init(struct drm_exec *exec, u32 flags, unsigned nr)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj~hhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:547: ./drivers/gpu/drm/drm_exec.chKGubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj~hhhjhKGubjg)}(h drm_exec_inith]jm)}(h drm_exec_inith]h drm_exec_init}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhjhKGubj)}(h/(struct drm_exec *exec, u32 flags, unsigned nr)h](j)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj̉hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hj݉hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjډubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj߉modnameN classnameNjj)}j]j)}jjsbc.drm_exec_initasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 flagsh](h)}(hhh]jm)}(hu32h]hu32}(hj4hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]jc.drm_exec_initasbuh1hhj-ubjV)}(h h]h }(hjRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj-ubjm)}(hflagsh]hflags}(hj`hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h unsigned nrh](jc)}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjuubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhKGubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjzhhhjhKGubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1j7hjhKGhjwhhubj)}(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:547: ./drivers/gpu/drm/drm_exec.chKGhjhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhKGubeh}(h]h ](jfunctioneh"]h$]h&]jjjj׊jj׊jjjuh1j2hhhj}hNhNubj)}(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:547: ./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:547: ./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&]uh1j hjubeh}(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:547: ./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&]uh1j hj3ubeh}(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:547: ./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&]uh1j hjlubeh}(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:547: ./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:547: ./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:547: ./drivers/gpu/drm/drm_exec.chKMhjۊubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_exec_fini (C function)c.drm_exec_finihNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(h*void drm_exec_fini (struct drm_exec *exec)h]j>)}(h)void drm_exec_fini(struct drm_exec *exec)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:547: ./drivers/gpu/drm/drm_exec.chKbubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKbubjg)}(h drm_exec_finih]jm)}(h drm_exec_finih]h drm_exec_fini}(hj"hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKbubj)}(h(struct drm_exec *exec)h]j)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj:ubjV)}(h h]h }(hjKhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:ubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hj\hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^modnameN classnameNjj)}j]j)}jj$sbc.drm_exec_finiasbuh1hhj:ubjV)}(h h]h }(hj|hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKbubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKbhjhhubj)}(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:547: ./drivers/gpu/drm/drm_exec.chKbhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjٌjjٌjjjuh1j2hhhj}hNhNubj)}(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:547: ./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:547: ./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&]uh1j hjubeh}(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:547: ./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:547: ./drivers/gpu/drm/drm_exec.chKdhj݌ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_exec_cleanup (C function)c.drm_exec_cleanuphNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(h-bool drm_exec_cleanup (struct drm_exec *exec)h]j>)}(h,bool drm_exec_cleanup(struct drm_exec *exec)h](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj~hhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:547: ./drivers/gpu/drm/drm_exec.chKtubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj~hhhjhKtubjg)}(hdrm_exec_cleanuph]jm)}(hdrm_exec_cleanuph]hdrm_exec_cleanup}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhjhKtubj)}(h(struct drm_exec *exec)h]j)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjˍhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hj܍hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjٍubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjލmodnameN classnameNjj)}j]j)}jjsbc.drm_exec_cleanupasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhKtubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjzhhhjhKtubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1j7hjhKthjwhhubj)}(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:547: ./drivers/gpu/drm/drm_exec.chKthj>hhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhKtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1j2hhhj}hNhNubj)}(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:547: ./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:547: ./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&]uh1j hj|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:547: ./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:547: ./drivers/gpu/drm/drm_exec.chKvhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_exec_lock_obj (C function)c.drm_exec_lock_objhNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(hIint drm_exec_lock_obj (struct drm_exec *exec, struct drm_gem_object *obj)h]j>)}(hHint drm_exec_lock_obj(struct drm_exec *exec, struct drm_gem_object *obj)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:547: ./drivers/gpu/drm/drm_exec.chKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKubjg)}(hdrm_exec_lock_objh]jm)}(hdrm_exec_lock_objh]hdrm_exec_lock_obj}(hj#hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h3(struct drm_exec *exec, struct drm_gem_object *obj)h](j)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj;ubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;ubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hj]hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj_modnameN classnameNjj)}j]j)}jj%sbc.drm_exec_lock_objasbuh1hhj;ubjV)}(h h]h }(hj}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjm)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjϏhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj̏ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjяmodnameN classnameNjj)}j]jyc.drm_exec_lock_objasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjhhubj)}(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:547: ./drivers/gpu/drm/drm_exec.chKhj/hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1j2hhhj}hNhNubj)}(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:547: ./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:547: ./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&]uh1j hjmubeh}(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:547: ./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&]uh1j hjubeh}(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:547: ./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:547: ./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:547: ./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:547: ./drivers/gpu/drm/drm_exec.chKhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_exec_unlock_obj (C function)c.drm_exec_unlock_objhNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(hLvoid drm_exec_unlock_obj (struct drm_exec *exec, struct drm_gem_object *obj)h]j>)}(hKvoid drm_exec_unlock_obj(struct drm_exec *exec, struct drm_gem_object *obj)h](jc)}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjOhhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:547: ./drivers/gpu/drm/drm_exec.chKubjV)}(h h]h }(hjbhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjOhhhjahKubjg)}(hdrm_exec_unlock_objh]jm)}(hdrm_exec_unlock_objh]hdrm_exec_unlock_obj}(hjthhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhjahKubj)}(h3(struct drm_exec *exec, struct drm_gem_object *obj)h](j)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjvsbc.drm_exec_unlock_objasbuh1hhjubjV)}(h h]h }(hjΑhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjܑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj"modnameN classnameNjj)}j]jʑc.drm_exec_unlock_objasbuh1hhjubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjYhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjKhhhjahKubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1j7hjahKhjHhhubj)}(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:547: ./drivers/gpu/drm/drm_exec.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj}hNhNubj)}(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:547: ./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:547: ./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&]uh1j hjubeh}(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:547: ./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&]uh1j hjubeh}(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:547: ./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:547: ./drivers/gpu/drm/drm_exec.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.!drm_exec_prepare_obj (C function)c.drm_exec_prepare_objhNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(heint drm_exec_prepare_obj (struct drm_exec *exec, struct drm_gem_object *obj, unsigned int num_fences)h]j>)}(hdint drm_exec_prepare_obj(struct drm_exec *exec, struct drm_gem_object *obj, unsigned int num_fences)h](jc)}(hinth]hint}(hj}hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjyhhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:547: ./drivers/gpu/drm/drm_exec.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjyhhhjhMubjg)}(hdrm_exec_prepare_objh]jm)}(hdrm_exec_prepare_objh]hdrm_exec_prepare_obj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyhhhjhMubj)}(hL(struct drm_exec *exec, struct drm_gem_object *obj, unsigned int num_fences)h](j)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjǓhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hjؓhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjՓubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjړmodnameN classnameNjj)}j]j)}jjsbc.drm_exec_prepare_objasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj(ubjV)}(h h]h }(hj9hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(ubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjJhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjLmodnameN classnameNjj)}j]jc.drm_exec_prepare_objasbuh1hhj(ubjV)}(h h]h }(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_fencesh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjƔhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h num_fencesh]h num_fences}(hjԔhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjrhhubj)}(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:547: ./drivers/gpu/drm/drm_exec.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj}hNhNubj)}(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:547: ./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:547: ./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&]uh1j hj9ubeh}(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:547: ./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&]uh1j hjrubeh}(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:547: ./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&]uh1j hjubeh}(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:547: ./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:547: ./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:547: ./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:547: ./drivers/gpu/drm/drm_exec.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_exec_prepare_array (C function)c.drm_exec_prepare_arrayhNtauh1j!hj}hhhNhNubj3)}(hhh](j8)}(hint drm_exec_prepare_array (struct drm_exec *exec, struct drm_gem_object **objects, unsigned int num_objects, unsigned int num_fences)h]j>)}(hint drm_exec_prepare_array(struct drm_exec *exec, struct drm_gem_object **objects, unsigned int num_objects, unsigned int num_fences)h](jc)}(hinth]hint}(hjXhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjThhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:547: ./drivers/gpu/drm/drm_exec.chM7ubjV)}(h h]h }(hjghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjThhhjfhM7ubjg)}(hdrm_exec_prepare_array(h]jm)}(hdrm_exec_prepare_arrayh]hdrm_exec_prepare_array}(hjyhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjfhM7ubj)}(hk(struct drm_exec *exec, struct drm_gem_object **objects, unsigned int num_objects, unsigned int num_fences)h](j)}(hstruct drm_exec *exech](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj{sbc.drm_exec_prepare_arrayasbuh1hhjubjV)}(h h]h }(hjӖhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object **objectsh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hj%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj'modnameN classnameNjj)}j]jϖc.drm_exec_prepare_arrayasbuh1hhjubjV)}(h h]h }(hjChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjectsh]hobjects}(hjkhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_objectsh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h num_objectsh]h num_objects}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_fencesh](jc)}(hunsignedh]hunsigned}(hj՗hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjїubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjїubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjїubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjїubjm)}(h num_fencesh]h num_fences}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjїubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjfhM7ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjPhhhjfhM7ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1j7hjfhM7hjMhhubj)}(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:547: ./drivers/gpu/drm/drm_exec.chM7hj4hhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhM7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1j2hhhj}hNhNubj)}(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:547: ./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:547: ./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&]uh1j hjrubeh}(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:547: ./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&]uh1j hjubeh}(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:547: ./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&]uh1j hjubeh}(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:547: ./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&]uh1j hjubeh}(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:547: ./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:547: ./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:547: ./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:547: ./drivers/gpu/drm/drm_exec.chM@hjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}hhhNhNubeh}(h]drm-execution-contextah ]h"]drm execution contextah$]h&]uh1hhhhhhhhMubh)}(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ܙhhhhhM*ubh)}(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:556: ./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:556: ./drivers/gpu/drm/scheduler/sched_main.chK!hjܙhhubjL4)}(hhh](j{)}(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:556: ./drivers/gpu/drm/scheduler/sched_main.chK#hjubah}(h]h ]h"]h$]h&]uh1j {hj ubj{)}(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:556: ./drivers/gpu/drm/scheduler/sched_main.chK$hj&ubah}(h]h ]h"]h$]h&]uh1j {hj ubj{)}(h)}(hDRM_SCHED_FENCE_DONT_PIPELINEh]jg)}(hDRM_SCHED_FENCE_DONT_PIPELINEh]jm)}(hjNh]hDRM_SCHED_FENCE_DONT_PIPELINE}(hjXhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhK$ubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjLhhhjkhK$ubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1j7hjkhK$hjIhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjIhhhjkhK$ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j2hhhj*hNhNubh)}(h!``DRM_SCHED_FENCE_DONT_PIPELINE``h]j)}(hjh]hDRM_SCHED_FENCE_DONT_PIPELINE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhK&hj*hhubj.)}(h Prevent dependency pipelining **Description** Setting this flag on a scheduler fence prevents pipelining of jobs depending on this fence. In other words we always insert a full CPU round trip before dependent jobs are pushed to the hw queue. h](j.)}(hPrevent dependency pipelining h]h)}(hPrevent dependency pipeliningh]hPrevent dependency pipelining}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhK$hjubah}(h]h ]h"]h$]h&]uh1j.hjhK$hjubh)}(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:568: ./include/drm/gpu_scheduler.hhK&hjubh)}(hSetting this flag on a scheduler fence prevents pipelining of jobs depending on this fence. In other words we always insert a full CPU round trip before dependent jobs are pushed to the hw queue.h]hSetting this flag on a scheduler fence prevents pipelining of jobs depending on this fence. In other words we always insert a full CPU round trip before dependent jobs are pushed to the hw queue.}(hj՛hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhK%hjubeh}(h]h ]h"]h$]h&]uh1j.hjhK$hj*hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j./DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BIT (C macro)'c.DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BIThNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h%DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BITh]j>)}(h%DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BITh]jg)}(h%DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BITh]jm)}(hjh]h%DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BIT}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhK-ubah}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhK-ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhK-hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK-ubeh}(h]h ](jmacroeh"]h$]h&]jjjj3jj3jjjuh1j2hhhj*hNhNubh)}(h)``DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BIT``h]j)}(hj9h]h%DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BIT}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhK/hj*hhubj.)}(h A fence deadline hint has been set **Description** Because we could have a deadline hint can be set before the backing hw fence is created, we need to keep track of whether a deadline has already been set. h](j.)}(h#A fence deadline hint has been set h]h)}(h"A fence deadline hint has been seth]h"A fence deadline hint has been set}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhK-hjSubah}(h]h ]h"]h$]h&]uh1j.hjehK-hjOubh)}(h**Description**h]j)}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhK/hjOubh)}(hBecause we could have a deadline hint can be set before the backing hw fence is created, we need to keep track of whether a deadline has already been set.h]hBecause we could have a deadline hint can be set before the backing hw fence is created, we need to keep track of whether a deadline has already been set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhK.hjOubeh}(h]h ]h"]h$]h&]uh1j.hjehK-hj*hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_sched_entity (C struct)c.drm_sched_entityhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hdrm_sched_entityh]j>)}(hstruct drm_sched_entityh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhK5ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhK5ubjg)}(hdrm_sched_entityh]jm)}(hjh]hdrm_sched_entity}(hjҜhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjΜubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK5ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhK5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhK5hjhhubj)}(hhh]h)}(hGA wrapper around a job queue (typically attached to the DRM file_priv).h]hGA wrapper around a job queue (typically attached to the DRM file_priv).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhKKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK5ubeh}(h]h ](jstructeh"]h$]h&]jjjj jj jjjuh1j2hhhj*hNhNubj)}(hX **Definition**:: struct 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 __rcu *last_scheduled; struct task_struct *last_user; bool stopped; struct completion entity_idle; ktime_t oldest_job_waiting; struct rb_node rb_tree_node; }; **Members** ``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**. ``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:568: ./include/drm/gpu_scheduler.hhKOhjubjT)}(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 __rcu *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 __rcu *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&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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:568: ./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:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_sched_rquh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhjƝubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj 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&]uh1j hj[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:568: ./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:568: ./include/drm/gpu_scheduler.hhK_hj)ubah}(h]h ]h"]h$]h&]uh1j hj 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:568: ./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:568: ./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:568: ./include/drm/gpu_scheduler.hhKihjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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:568: ./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:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjnum_sched_listuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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:568: ./include/drm/gpu_scheduler.hhK|hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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&]uh1j hjubeh}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhKhjubah}(h]h ]h"]h$]h&]uh1j hjџ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:568: ./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&]uh1j hjubeh}(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:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_fenceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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:568: ./include/drm/gpu_scheduler.hhKhjrubeh}(h]h ]h"]h$]h&]uh1j hjVubeh}(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:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_fenceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_fenceuh1hhjhKhjubh uses fence_context + 1.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjޠubah}(h]h ]h"]h$]h&]uh1j hj 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:568: ./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&]uh1j hjBubeh}(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:568: ./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&]uh1j hj{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:568: ./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&]uh1j hjubeh}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhKhj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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&]uh1j hj'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:568: ./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:568: ./include/drm/gpu_scheduler.hhKhj|ubah}(h]h ]h"]h$]h&]uh1j hj`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:568: ./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:568: ./include/drm/gpu_scheduler.hhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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&]uh1j hjԢ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:568: ./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:568: ./include/drm/gpu_scheduler.hhKhj)ubah}(h]h ]h"]h$]h&]uh1j hj 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:568: ./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:568: ./include/drm/gpu_scheduler.hhKLhj*hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_sched_rq (C struct)c.drm_sched_rqhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h drm_sched_rqh]j>)}(hstruct drm_sched_rqh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhKSubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhKSubjg)}(h drm_sched_rqh]jm)}(hjh]h drm_sched_rq}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKSubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhKSubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhKShjhhubj)}(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:568: ./include/drm/gpu_scheduler.hhKhjӣhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKSubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhj*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:568: ./include/drm/gpu_scheduler.hhKhjubjT)}(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&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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:568: ./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:568: ./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&]uh1j hj=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:568: ./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&]uh1j hjvubeh}(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:568: ./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&]uh1j hjubeh}(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:568: ./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&]uh1j hjubeh}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhKhjsubah}(h]h ]h"]h$]h&]uh1j hjWubeh}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhKhj*hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_sched_fence (C struct)c.drm_sched_fencehNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hdrm_sched_fenceh]j>)}(hstruct drm_sched_fenceh](jD)}(hjh]hstruct}(hjޥhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjڥhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjڥhhhjhKubjg)}(hdrm_sched_fenceh]jm)}(hjإh]hdrm_sched_fence}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjڥhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj֥hhhjhKubah}(h]jѥah ](jjeh"]h$]h&]jj)jhuh1j7hjhKhjӥ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:568: ./include/drm/gpu_scheduler.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjӥhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjj8jj8jjjuh1j2hhhj*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:568: ./include/drm/gpu_scheduler.hhM hj<ubjT)}(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&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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:568: ./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:568: ./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:568: ./include/drm/gpu_scheduler.hhM hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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:568: ./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:568: ./include/drm/gpu_scheduler.hhMhjݦubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_fenceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_fenceuh1hhjPhMhj)ubeh}(h]h ]h"]h$]h&]uh1hhjPhMhj&ubah}(h]h ]h"]h$]h&]uh1j hj 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:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_backend_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhjѧubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_fenceuh1hhj̧hM#hjubh fence once parent is signalled.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj̧hM#hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhM)hj"ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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&]uh1j hj@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:568: ./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&]uh1j hjyubeh}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhM7hjΨubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjͨhM6hjubeh}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_sched_job (C struct)c.drm_sched_jobhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h drm_sched_jobh]j>)}(hstruct drm_sched_jobh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM=ubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM=ubjg)}(h drm_sched_jobh]jm)}(hj h]h drm_sched_job}(hj2hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM=ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhjhM=ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM=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:568: ./include/drm/gpu_scheduler.hhM@hjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM=ubeh}(h]h ](jstructeh"]h$]h&]jjjjljjljjjuh1j2hhhj*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:568: ./include/drm/gpu_scheduler.hhMDhjpubjT)}(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&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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:568: ./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:568: ./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&]uh1j hjubeh}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhM^hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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&]uh1j hj.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:568: ./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&]uh1j hjgubeh}(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:568: ./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&]uh1j hjubeh}(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:568: ./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&]uh1j hj٪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:568: ./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&]uh1j hjubeh}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhMJhjyubah}(h]h ]h"]h$]h&]uh1j hj]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:568: ./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&]uh1j hjubeh}(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:568: ./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&]uh1j hjЫ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:568: ./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&]uh1j hj 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:568: ./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&]uh1j hjBubeh}(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:568: ./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&]uh1j hj{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:568: ./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&]uh1j hjubeh}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhM~hj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhMOhj*hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpu_sched_stat (C enum)c.drm_gpu_sched_stathNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hdrm_gpu_sched_stath]j>)}(henum drm_gpu_sched_stath](jD)}(hjGh]henum}(hjthhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjphhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhMVubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjphhhjhMVubjg)}(hdrm_gpu_sched_stath]jm)}(hjnh]hdrm_gpu_sched_stat}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjphhhjhMVubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjlhhhjhMVubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1j7hjhMVhjihhubj)}(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:568: ./include/drm/gpu_scheduler.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjhMVubeh}(h]h ](jenumeh"]h$]h&]jjjjέjjέjjjuh1j2hhhj*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:568: ./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:568: ./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&]uh1j hjubeh}(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:568: ./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&]uh1j hj*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:568: ./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&]uh1j hjcubeh}(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:568: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjҭubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_sched_backend_ops (C struct)c.drm_sched_backend_opshNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hdrm_sched_backend_opsh]j>)}(hstruct drm_sched_backend_opsh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhMubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_sched_backend_opsh]jm)}(hjh]hdrm_sched_backend_ops}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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:568: ./include/drm/gpu_scheduler.hhMhj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjjUjjUjjjuh1j2hhhj*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:568: ./include/drm/gpu_scheduler.hhMhjYubjT)}(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&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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:568: ./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:568: ./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:568: ./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:568: ./include/drm/gpu_scheduler.hhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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:568: ./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:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_backend_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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:568: ./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:568: ./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:568: ./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:568: ./include/drm/gpu_scheduler.hhMhj ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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:568: ./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:568: ./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:568: ./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:568: ./include/drm/gpu_scheduler.hhMhjΰubjL4)}(hhh](j{)}(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:568: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1j {hjubj{)}(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:568: ./include/drm/gpu_scheduler.hhMhj7ubah}(h]h ]h"]h$]h&]uh1j {hjubj{)}(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:568: ./include/drm/gpu_scheduler.hhMhjPubah}(h]h ]h"]h$]h&]uh1j {hjubeh}(h]h ]h"]h$]h&]j7j7j7hj7jvuh1jK4hjΰ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:568: ./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:568: ./include/drm/gpu_scheduler.hhMhjΰubjL4)}(hhh](j{)}(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:568: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1j {hjubj{)}(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:568: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1j {hjubj{)}(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:568: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1j {hjubj{)}(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:568: ./include/drm/gpu_scheduler.hhMhjرubah}(h]h ]h"]h$]h&]uh1j {hjubj{)}(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:568: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1j {hjubeh}(h]h ]h"]h$]h&]j7j7j7hj7jvuh1jK4hjΰ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:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpu_sched_statuh1hhjͰhMhj1ubeh}(h]h ]h"]h$]h&]uh1hhjͰhMhjΰubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1j hjjubeh}(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:568: ./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().}(hjòhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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 }(hjҲhhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjܲh]hstruct drm_sched_backend_ops}(hj޲hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjڲubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_backend_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM hjҲubh3.run_job by the time drm_sched_fini() gets invoked.}(hjҲhhhNhNubeh}(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:568: ./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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_backend_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhMhjubh .free_job.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhMhj*hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_gpu_scheduler (C struct)c.drm_gpu_schedulerhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hdrm_gpu_schedulerh]j>)}(hstruct drm_gpu_schedulerh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_gpu_schedulerh]jm)}(hjh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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:568: ./include/drm/gpu_scheduler.hhMhjݳhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhj*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_do_release** 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:568: ./include/drm/gpu_scheduler.hhMhjubjT)}(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&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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:568: ./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:568: ./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&]uh1j hjGubeh}(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:568: ./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&]uh1j hjubeh}(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:568: ./include/drm/gpu_scheduler.hhM hjubj )}(hhh]h)}(h*the current credit count of this schedulerh]h*the current credit count of this scheduler}(hjشhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԴhM hjմubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjԴhM 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:568: ./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&]uh1j hjubeh}(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:568: ./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&]uh1j hj+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:568: ./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:568: ./include/drm/gpu_scheduler.hhM#hjubah}(h]h ]h"]h$]h&]uh1j hjdubeh}(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:568: ./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}(hjŵhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjDubj)}(h``job_scheduled`` once **drm_sched_entity_do_release** 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:568: ./include/drm/gpu_scheduler.hhM(hjubj )}(hhh]h)}(honce **drm_sched_entity_do_release** is called the scheduler waits on this wait queue until all the scheduled jobs are finished.h](honce }(hjhhhNhNubj)}(h**drm_sched_entity_do_release**h]hdrm_sched_entity_do_release}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh\ is called the scheduler waits on this wait queue until all the scheduled jobs are finished.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM&hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM)hj5ubj )}(hhh]h)}(h)used to assign unique id to the each job.h]h)used to assign unique id to the each job.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhM)hjQubah}(h]h ]h"]h$]h&]uh1j hj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhM)hjDubj)}(hM``submit_wq`` workqueue used to queue **work_run_job** and **work_free_job** h](j)}(h ``submit_wq``h]j)}(hjth]h submit_wq}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM*hjnubj )}(hhh]h)}(h>workqueue used to queue **work_run_job** and **work_free_job**h](hworkqueue used to queue }(hjhhhNhNubj)}(h**work_run_job**h]h work_run_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**work_free_job**h]h work_free_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1j hjnubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjDubj)}(h4``timeout_wq`` workqueue used to queue **work_tdr** h](j)}(h``timeout_wq``h]j)}(hjͶh]h timeout_wq}(hj϶hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˶ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM+hjǶubj )}(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&]uh1j hjǶubeh}(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:568: ./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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM,hj*ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj)hM,hjDubj)}(hB``work_free_job`` work which calls free_job op of each scheduler. h](j)}(h``work_free_job``h]j)}(hjMh]h work_free_job}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM-hjGubj )}(hhh]h)}(h/work which calls free_job op of each scheduler.h]h/work which calls free_job op of each scheduler.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM-hjcubah}(h]h ]h"]h$]h&]uh1j hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM-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)}(hjh]hwork_tdr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM/hjubj )}(hhh]h)}(hZschedules a delayed call to **drm_sched_job_timedout** after the timeout interval is over.h](hschedules a delayed call to }(hjhhhNhNubj)}(h**drm_sched_job_timedout**h]hdrm_sched_job_timedout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ after the timeout interval is over.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM.hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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)}(hjҷh]h pending_list}(hjԷhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjзubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM0hj̷ubj )}(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&]uh1j hj̷ubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjDubj)}(h4``job_list_lock`` lock to protect the pending_list. h](j)}(h``job_list_lock``h]j)}(hj h]h job_list_lock}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM1hjubj )}(hhh]h)}(h!lock to protect the pending_list.h]h!lock to protect the pending_list.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM1hj!ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj hM1hjDubj)}(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)}(hjDh]h hang_limit}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM2hjZubah}(h]h ]h"]h$]h&]uh1j hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM3hjDubj)}(h7``score`` score to help loadbalancer pick a idle sched h](j)}(h ``score``h]j)}(hj~h]hscore}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM4hjxubj )}(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&]uh1j hjxubeh}(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:568: ./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}(hjиhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̸hM5hj͸ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj̸hM5hjDubj)}(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:568: ./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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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)}(hj)h]h free_guilty}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM7hj#ubj )}(hhh]h)}(h1A hit to time out handler to free the guilty job.h]h1A hit to time out handler to free the guilty job.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hM7hj?ubah}(h]h ]h"]h$]h&]uh1j hj#ubeh}(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)}(hjbh]h pause_submit}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM8hj\ubj )}(hhh]h)}(h2pause queuing of **work_run_job** on **submit_wq**h](hpause queuing of }(hj{hhhNhNubj)}(h**work_run_job**h]h work_run_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh on }(hj{hhhNhNubj)}(h **submit_wq**h]h submit_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1hhjwhM8hjxubah}(h]h ]h"]h$]h&]uh1j hj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhM8hjDubj)}(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:568: ./include/drm/gpu_scheduler.hhM9hjubj )}(hhh]h)}(h*scheduler owns allocation of **submit_wq**h](hscheduler owns allocation of }(hjԹhhhNhNubj)}(h **submit_wq**h]h submit_wq}(hjܹhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԹubeh}(h]h ]h"]h$]h&]uh1hhjйhM9hjѹubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjйhM9hjDubj)}(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:568: ./include/drm/gpu_scheduler.hhM9hjubj )}(hhh]h)}(h'system :c:type:`struct device `h](hsystem }(hjhhhNhNubh)}(h :c:type:`struct device `h]j)}(hj%h]h struct device}(hj'hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdeviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM:hjubeh}(h]h ]h"]h$]h&]uh1hhjBhM:hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjDubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM=hj*hhubh)}(h4One scheduler is implemented for each hardware ring.h]h4One scheduler is implemented for each hardware ring.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM:hj*hhubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_sched_init_args (C struct)c.drm_sched_init_argshNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hdrm_sched_init_argsh]j>)}(hstruct drm_sched_init_argsh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM?ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM?ubjg)}(hdrm_sched_init_argsh]jm)}(hjh]hdrm_sched_init_args}(hjºhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM?ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM?ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM?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:568: ./include/drm/gpu_scheduler.hhMYhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM?ubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j2hhhj*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:568: ./include/drm/gpu_scheduler.hhM]hjubjT)}(hX6struct drm_sched_init_args { const struct drm_sched_backend_ops *ops; struct workqueue_struct *submit_wq; struct workqueue_struct *timeout_wq; u32 num_rqs; u32 credit_limit; unsigned int hang_limit; long timeout; atomic_t *score; const char *name; struct device *dev; };h]hX6struct drm_sched_init_args { const struct drm_sched_backend_ops *ops; struct workqueue_struct *submit_wq; struct workqueue_struct *timeout_wq; u32 num_rqs; u32 credit_limit; unsigned int hang_limit; long timeout; atomic_t *score; const char *name; struct device *dev; };}hj!sbah}(h]h ]h"]h$]h&]jjuh1jShW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM_hjubh)}(h **Members**h]j)}(hj2h]hMembers}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhMlhjubj)}(hhh](j)}(h2``ops`` backend operations provided by the driver h](j)}(h``ops``h]j)}(hjQh]hops}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM\hjKubj )}(hhh]h)}(h)backend operations provided by the driverh]h)backend operations provided by the driver}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhM\hjgubah}(h]h ]h"]h$]h&]uh1j hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhM\hjHubj)}(h]``submit_wq`` workqueue to use for submission. If NULL, an ordered wq is allocated and used. h](j)}(h ``submit_wq``h]j)}(hjh]h submit_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM^hjubj )}(hhh]h)}(hNworkqueue to use for submission. If NULL, an ordered wq is allocated and used.h]hNworkqueue to use for submission. If NULL, an ordered wq is allocated and used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhM]hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjHubj)}(hR``timeout_wq`` workqueue to use for timeout work. If NULL, the system_wq is used. h](j)}(h``timeout_wq``h]j)}(hjĻh]h timeout_wq}(hjƻhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj»ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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.}(hjݻhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjٻhMehjڻubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjٻhMehjHubj)}(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:568: ./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:568: ./include/drm/gpu_scheduler.hhM_hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjHubj)}(hM``credit_limit`` the number of credits this scheduler can hold from all jobs h](j)}(h``credit_limit``h]j)}(hj7h]h credit_limit}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhMahj1ubj )}(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}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMahjMubah}(h]h ]h"]h$]h&]uh1j hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMahjHubj)}(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)}(hjph]h hang_limit}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhMchjjubj )}(hhh]h)}(henumber of times to allow a job to hang before dropping it. This mechanism is DEPRECATED. Set it to 0.h]henumber of times to allow a job to hang before dropping it. This mechanism is DEPRECATED. Set it to 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhMbhjubah}(h]h ]h"]h$]h&]uh1j hjjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjHubj)}(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:568: ./include/drm/gpu_scheduler.hhMdhjubj )}(hhh]h)}(h,timeout value in jiffies for submitted jobs.h]h,timeout value in jiffies for submitted jobs.}(hjühhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjHubj)}(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:568: ./include/drm/gpu_scheduler.hhMfhjݼubj )}(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&]uh1j hjݼubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjHubj)}(h@``name`` name (typically the driver's name). Used for debugging h](j)}(h``name``h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMghj2ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj1hMghjHubj)}(h-``dev`` associated device. Used for debuggingh](j)}(h``dev``h]j)}(hjUh]hdev}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhMghjOubj )}(hhh]h)}(h%associated device. Used for debuggingh]h%associated device. Used for debugging}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:568: ./include/drm/gpu_scheduler.hhMhhjkubah}(h]h ]h"]h$]h&]uh1j hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMghjHubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.$drm_sched_tdr_queue_imm (C function)c.drm_sched_tdr_queue_immhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h>void drm_sched_tdr_queue_imm (struct drm_gpu_scheduler *sched)h]j>)}(h=void drm_sched_tdr_queue_imm(struct drm_gpu_scheduler *sched)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_sched_tdr_queue_immh]jm)}(hdrm_sched_tdr_queue_immh]hdrm_sched_tdr_queue_imm}(hjнhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj̽ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h!(struct drm_gpu_scheduler *sched)h]j)}(hstruct drm_gpu_scheduler *schedh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jjҽsbc.drm_sched_tdr_queue_immasbuh1hhjubjV)}(h h]h }(hj*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hschedh]hsched}(hjEhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]j {)}(hhh]j{)}(h%immediately start job timeout handlerh]h)}(hjth]h%immediately start job timeout handler}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjrubah}(h]h ]h"]h$]h&]uh1j {hjohhhjhNubah}(h]h ]h"]h$]h&]j[{j\{uh1j{hjhMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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:571: ./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)}(hj¾h]hstruct drm_gpu_scheduler *sched}(hjľhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(h;scheduler for which the timeout handling should be started.h]h;scheduler for which the timeout handling should be started.}(hj۾hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj׾hMhjؾubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_sched_fault (C function)c.drm_sched_faulthNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h6void drm_sched_fault (struct drm_gpu_scheduler *sched)h]j>)}(h5void drm_sched_fault(struct drm_gpu_scheduler *sched)h](jc)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj>hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hjQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>hhhjPhMubjg)}(hdrm_sched_faulth]jm)}(hdrm_sched_faulth]hdrm_sched_fault}(hjchhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>hhhjPhMubj)}(h!(struct drm_gpu_scheduler *sched)h]j)}(hstruct drm_gpu_scheduler *schedh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj{ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj{ubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjesbc.drm_sched_faultasbuh1hhj{ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj{ubj)}(hjh]h*}(hj˿hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjm)}(hschedh]hsched}(hjؿhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubah}(h]h ]h"]h$]h&]jjuh1jhj>hhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj:hhhjPhMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1j7hjPhMhj7hhubj)}(hhh]h)}(h!immediately start timeout handlerh]h!immediately start timeout handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj7hhhjPhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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)}(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:571: ./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)}(hjCh]hstruct drm_gpu_scheduler *sched}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj=ubj )}(hhh]h)}(h7scheduler where the timeout handling should be started.h]h7scheduler where the timeout handling should be started.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1j hj=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:571: ./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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.&drm_sched_suspend_timeout (C function)c.drm_sched_suspend_timeouthNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hIunsigned long drm_sched_suspend_timeout (struct drm_gpu_scheduler *sched)h]j>)}(hHunsigned long drm_sched_suspend_timeout(struct drm_gpu_scheduler *sched)h](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhjhMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_sched_suspend_timeouth]jm)}(hdrm_sched_suspend_timeouth]hdrm_sched_suspend_timeout}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h!(struct drm_gpu_scheduler *sched)h]j)}(hstruct drm_gpu_scheduler *schedh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj:hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj<modnameN classnameNjj)}j]j)}jjsbc.drm_sched_suspend_timeoutasbuh1hhjubjV)}(h h]h }(hjZhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hschedh]hsched}(hjuhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(h3scheduler instance for which to suspend the timeouth]h3scheduler instance for which to suspend the timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hReturns the timeout remainingh]hReturns the timeout remaining}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_sched_resume_timeout (C function)c.drm_sched_resume_timeouthNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hXvoid drm_sched_resume_timeout (struct drm_gpu_scheduler *sched, unsigned long remaining)h]j>)}(hWvoid drm_sched_resume_timeout(struct drm_gpu_scheduler *sched, unsigned long remaining)h](jc)}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjkhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hj~hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjkhhhj}hMubjg)}(hdrm_sched_resume_timeouth]jm)}(hdrm_sched_resume_timeouth]hdrm_sched_resume_timeout}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkhhhj}hMubj)}(h:(struct drm_gpu_scheduler *sched, unsigned long remaining)h](j)}(hstruct drm_gpu_scheduler *schedh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_sched_resume_timeoutasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long remainingh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hj,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjc)}(hlongh]hlong}(hj:hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjHhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h remainingh]h remaining}(hjVhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjkhhhj}hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjghhhj}hMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1j7hj}hMhjdhhubj)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj}hhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj}hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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:571: ./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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(h2scheduler instance for which to resume the timeouth]h2scheduler instance for which to resume the timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``unsigned long remaining`` remaining timeout h](j)}(h``unsigned long remaining``h]j)}(hjh]hunsigned long remaining}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(hremaining timeouth]hremaining timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj5h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(h2Resume the delayed work timeout for the scheduler.h]h2Resume the delayed work timeout for the scheduler.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_sched_stop (C function)c.drm_sched_stophNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hPvoid drm_sched_stop (struct drm_gpu_scheduler *sched, struct drm_sched_job *bad)h]j>)}(hOvoid drm_sched_stop(struct drm_gpu_scheduler *sched, struct drm_sched_job *bad)h](jc)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjvhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMZubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjvhhhjhMZubjg)}(hdrm_sched_stoph]jm)}(hdrm_sched_stoph]hdrm_sched_stop}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvhhhjhMZubj)}(h<(struct drm_gpu_scheduler *sched, struct drm_sched_job *bad)h](j)}(hstruct drm_gpu_scheduler *schedh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_sched_stopasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_sched_job *badh](jD)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj%ubjV)}(h h]h }(hj6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj%ubh)}(hhh]jm)}(h drm_sched_jobh]h drm_sched_job}(hjGhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjImodnameN classnameNjj)}j]jc.drm_sched_stopasbuh1hhj%ubjV)}(h h]h }(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj%ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hbadh]hbad}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjvhhhjhMZubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjrhhhjhMZubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1j7hjhMZhjohhubj)}(hhh]h)}(hstop the schedulerh]hstop the scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMZhjhhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhMZubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chM^hjubj)}(hhh](j)}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjubj)}(h<``struct drm_sched_job *bad`` job which caused the time out h](j)}(h``struct drm_sched_job *bad``h]j)}(hj$h]hstruct drm_sched_job *bad}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM]hjubj )}(hhh]h)}(hjob which caused the time outh]hjob which caused the time out}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hM]hj:ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj9hM]hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM_hjubh)}(hAStop the scheduler and also removes and frees all completed jobs.h]hAStop the scheduler and also removes and frees all completed jobs.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM^hjubh)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chM`hjubh)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chM`hjubh)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMdhjubh)}(hXAs it's only used for reset recovery, drivers must not call this function in their :c:type:`struct drm_sched_backend_ops `.timedout_job callback when they skip a reset using :c:type:`enum drm_gpu_sched_stat `.DRM_GPU_SCHED_STAT_NO_HANG.h](hUAs it’s only used for reset recovery, drivers must not call this function in their }(hjhhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjh]hstruct drm_sched_backend_ops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_backend_opsuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhhjubh4.timedout_job callback when they skip a reset using }(hjhhhNhNubh)}(h6:c:type:`enum drm_gpu_sched_stat `h]j)}(hjh]henum drm_gpu_sched_stat}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpu_sched_statuh1hhjhMhhjubh.DRM_GPU_SCHED_STAT_NO_HANG.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_sched_start (C function)c.drm_sched_starthNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hAvoid drm_sched_start (struct drm_gpu_scheduler *sched, int errno)h]j>)}(h@void drm_sched_start(struct drm_gpu_scheduler *sched, int errno)h](jc)}(hvoidh]hvoid}(hj/hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj+hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj+hhhj=hMubjg)}(hdrm_sched_starth]jm)}(hdrm_sched_starth]hdrm_sched_start}(hjPhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+hhhj=hMubj)}(h,(struct drm_gpu_scheduler *sched, int errno)h](j)}(hstruct drm_gpu_scheduler *schedh](jD)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjhubjV)}(h h]h }(hjyhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjRsbc.drm_sched_startasbuh1hhjhubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(h int errnoh](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(herrnoh]herrno}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhj+hhhj=hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj'hhhj=hMubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1j7hj=hMhj$hhubj)}(hhh]h)}(hrecover jobs after a reseth]hrecover jobs after a reset}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj!hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj=hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1j2hhhj*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)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./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)}(hjeh]hstruct drm_gpu_scheduler *sched}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj_ubj )}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1j hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj\ubj)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(h"error to set on the pending fencesh]h"error to set on the pending fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj@ubh)}(hThis function is typically used for reset recovery (see the docu of drm_sched_backend_ops.timedout_job() for details). Do not call it for scheduler startup. The scheduler itself is fully operational after drm_sched_init() succeeded.h]hThis function is typically used for reset recovery (see the docu of drm_sched_backend_ops.timedout_job() for details). Do not call it for scheduler startup. The scheduler itself is fully operational after drm_sched_init() succeeded.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj@ubh)}(hXAs it's only used for reset recovery, drivers must not call this function in their :c:type:`struct drm_sched_backend_ops `.timedout_job callback when they skip a reset using :c:type:`enum drm_gpu_sched_stat `.DRM_GPU_SCHED_STAT_NO_HANG.h](hUAs it’s only used for reset recovery, drivers must not call this function in their }(hjhhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjh]hstruct drm_sched_backend_ops}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_backend_opsuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh4.timedout_job callback when they skip a reset using }(hjhhhNhNubh)}(h6:c:type:`enum drm_gpu_sched_stat `h]j)}(hj,h]henum drm_gpu_sched_stat}(hj.hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_gpu_sched_statuh1hhj%hMhjubh.DRM_GPU_SCHED_STAT_NO_HANG.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%hMhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.$drm_sched_resubmit_jobs (C function)c.drm_sched_resubmit_jobshNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h>void drm_sched_resubmit_jobs (struct drm_gpu_scheduler *sched)h]j>)}(h=void drm_sched_resubmit_jobs(struct drm_gpu_scheduler *sched)h](jc)}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjohhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjohhhjhMubjg)}(hdrm_sched_resubmit_jobsh]jm)}(hdrm_sched_resubmit_jobsh]hdrm_sched_resubmit_jobs}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjhMubj)}(h!(struct drm_gpu_scheduler *sched)h]j)}(hstruct drm_gpu_scheduler *schedh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_sched_resubmit_jobsasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hschedh]hsched}(hj hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjohhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhhubj)}(hhh]h)}(h"Deprecated, don't use in new code!h]h$Deprecated, don’t use in new code!}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1j2hhhj*hNhNubj)}(hXx**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.h](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjOubj)}(hhh]j)}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjth]hstruct drm_gpu_scheduler *sched}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjnubj )}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjkubah}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjOubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjOubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjOubh)}(hDrivers 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.h]hDrivers 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_sched_job_init (C function)c.drm_sched_job_inithNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(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>)}(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](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hj!hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhj hMubjg)}(hdrm_sched_job_inith]jm)}(hdrm_sched_job_inith]hdrm_sched_job_init}(hj3hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(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](jD)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjKubjV)}(h h]h }(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKubh)}(hhh]jm)}(h drm_sched_jobh]h drm_sched_job}(hjmhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjomodnameN classnameNjj)}j]j)}jj5sbc.drm_sched_job_initasbuh1hhjKubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct drm_sched_entity *entityh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_sched_job_initasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(h u32 creditsh](h)}(hhh]jm)}(hu32h]hu32}(hj4hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]jc.drm_sched_job_initasbuh1hhj-ubjV)}(h h]h }(hjRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj-ubjm)}(hcreditsh]hcredits}(hj`hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(h void *ownerh](jc)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjuubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hownerh]howner}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(huint64_t drm_client_idh](h)}(hhh]jm)}(huint64_th]huint64_t}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_sched_job_initasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(h drm_client_idh]h drm_client_id}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj hMhjhhubj)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1j2hhhj*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)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj0ubj)}(hhh](j)}(h4``struct drm_sched_job *job`` scheduler job to init h](j)}(h``struct drm_sched_job *job``h]j)}(hjUh]hstruct drm_sched_job *job}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjOubj )}(hhh]h)}(hscheduler job to inith]hscheduler job to init}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1j hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjLubj)}(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:571: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjLubj)}(hZ``u32 credits`` the number of credits this job contributes to the schedulers credit limit h](j)}(h``u32 credits``h]j)}(hjh]h u32 credits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjLubj)}(h(``void *owner`` job owner for debugging h](j)}(h``void *owner``h]j)}(hjh]h void *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(hjob owner for debuggingh]hjob owner for debugging}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjLubj)}(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)}(hj:h]huint64_t drm_client_id}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj4ubj )}(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)}(hjYh]hstruct drm_file}(hj[hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_fileuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjSubh..client_id of the owner (used by trace events)}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjvhMhjPubah}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjLubeh}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM!hj0ubh)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chM hj0ubh)}(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 }(hjhhhNhNubj)}(h**job**h]hjob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh1 is aborted before drm_sched_job_arm() is called.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM#hj0ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM&hj0ubh)}(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 }(hjhhhNhNubh)}(h%:c:type:`drm_sched.ready `h]j)}(hjh]hdrm_sched.ready}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_scheduh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM*hjubh] to signal when the hardware has died, which can mean that there’s no valid runqueue for a }(hjhhhNhNubj)}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhn. This function returns -ENOENT in this case (which probably should be -EIO as a more meanigful return value).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM*hj0ubh)}(h5Returns 0 for success, negative error code otherwise.h]h5Returns 0 for success, negative error code otherwise.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM/hj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_sched_job_arm (C function)c.drm_sched_job_armhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h2void drm_sched_job_arm (struct drm_sched_job *job)h]j>)}(h1void drm_sched_job_arm(struct drm_sched_job *job)h](jc)}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjYhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM\ubjV)}(h h]h }(hjlhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjYhhhjkhM\ubjg)}(hdrm_sched_job_armh]jm)}(hdrm_sched_job_armh]hdrm_sched_job_arm}(hj~hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjkhM\ubj)}(h(struct drm_sched_job *job)h]j)}(hstruct drm_sched_job *jobh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_sched_job_armasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjYhhhjkhM\ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjUhhhjkhM\ubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1j7hjkhM\hjRhhubj)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chM\hjhhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjkhM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1j2hhhj*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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chM`hj9ubj)}(hhh]j)}(h3``struct drm_sched_job *job`` scheduler job to arm h](j)}(h``struct drm_sched_job *job``h]j)}(hj^h]hstruct drm_sched_job *job}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM]hjXubj )}(hhh]h)}(hscheduler job to armh]hscheduler job to arm}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM]hjtubah}(h]h ]h"]h$]h&]uh1j hjXubeh}(h]h ]h"]h$]h&]uh1jhjshM]hjUubah}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chM_hj9ubh)}(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 }(hjhhhNhNubh)}(h/:c:type:`drm_sched_job.s_fence `h]j)}(hjh]hdrm_sched_job.s_fence}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj drm_sched_jobuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM^hjubh of }(hjhhhNhNubj)}(h**job**h]hjob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM^hj9ubh)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMchj9ubh)}(hZOnce this function was called, you *must* submit **job** with drm_sched_entity_push_job().h](h#Once this function was called, you }(hjhhhNhNubj)}(h*must*h]hmust}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh submit }(hjhhhNhNubj)}(h**job**h]hjob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" with drm_sched_entity_push_job().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMfhj9ubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMihj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.)drm_sched_job_add_dependency (C function)c.drm_sched_job_add_dependencyhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hUint drm_sched_job_add_dependency (struct drm_sched_job *job, struct dma_fence *fence)h]j>)}(hTint drm_sched_job_add_dependency(struct drm_sched_job *job, struct dma_fence *fence)h](jc)}(hinth]hint}(hjdhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj`hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM}ubjV)}(h h]h }(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj`hhhjrhM}ubjg)}(hdrm_sched_job_add_dependencyh]jm)}(hdrm_sched_job_add_dependencyh]hdrm_sched_job_add_dependency}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`hhhjrhM}ubj)}(h4(struct drm_sched_job *job, struct dma_fence *fence)h](j)}(hstruct drm_sched_job *jobh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_sched_job_add_dependencyasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dma_fence *fenceh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h dma_fenceh]h dma_fence}(hj1hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj3modnameN classnameNjj)}j]jc.drm_sched_job_add_dependencyasbuh1hhjubjV)}(h h]h }(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfenceh]hfence}(hjjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj`hhhjrhM}ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj\hhhjrhM}ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1j7hjrhM}hjYhhubj)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chM}hjhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjrhM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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)}(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:571: ./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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chM~hjubj )}(hhh]h)}(h(scheduler job to add the dependencies toh]h(scheduler job to add the dependencies to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM~hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(h1the dma_fence to add to the list of dependencies.h]h1the dma_fence to add to the list of dependencies.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hDNote that **fence** is consumed in both the success and error cases.h](h Note that }(hj_hhhNhNubj)}(h **fence**h]hfence}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh1 is consumed in both the success and error cases.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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:571: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.1drm_sched_job_add_syncobj_dependency (C function)&c.drm_sched_job_add_syncobj_dependencyhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hrint drm_sched_job_add_syncobj_dependency (struct drm_sched_job *job, struct drm_file *file, u32 handle, u32 point)h]j>)}(hqint drm_sched_job_add_syncobj_dependency(struct drm_sched_job *job, struct drm_file *file, u32 handle, u32 point)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(h$drm_sched_job_add_syncobj_dependencyh]jm)}(h$drm_sched_job_add_syncobj_dependencyh]h$drm_sched_job_add_syncobj_dependency}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hI(struct drm_sched_job *job, struct drm_file *file, u32 handle, u32 point)h](j)}(hstruct drm_sched_job *jobh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_sched_jobh]h drm_sched_job}(hj"hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$modnameN classnameNjj)}j]j)}jjsb&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjubjV)}(h h]h }(hjBhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjobh]hjob}(hj]hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_file *fileh](jD)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjrubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjrubh)}(hhh]jm)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j>&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjrubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 handleh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j>&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 pointh](h)}(hhh]jm)}(hu32h]hu32}(hj1hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj3modnameN classnameNjj)}j]j>&c.drm_sched_job_add_syncobj_dependencyasbuh1hhj*ubjV)}(h h]h }(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj*ubjm)}(hpointh]hpoint}(hj]hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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:571: ./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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(h(scheduler job to add the dependencies toh]h(scheduler job to add the dependencies to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``struct drm_file *file`` drm file private pointer h](j)}(h``struct drm_file *file``h]j)}(hjh]hstruct drm_file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``u32 handle`` syncobj handle to lookup h](j)}(h``u32 handle``h]j)}(hj:h]h u32 handle}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj4ubj )}(hhh]h)}(hsyncobj handle to lookuph]hsyncobj handle to lookup}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjubj)}(h``u32 point`` timeline point h](j)}(h ``u32 point``h]j)}(hjsh]h u32 point}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjmubj )}(hhh]h)}(htimeline pointh]htimeline point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjmubeh}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./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 }(hjhhhNhNubj)}(h**job**h]hjob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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:571: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.0drm_sched_job_add_resv_dependencies (C function)%c.drm_sched_job_add_resv_dependencieshNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(huint drm_sched_job_add_resv_dependencies (struct drm_sched_job *job, struct dma_resv *resv, enum dma_resv_usage usage)h]j>)}(htint drm_sched_job_add_resv_dependencies(struct drm_sched_job *job, struct dma_resv *resv, enum dma_resv_usage usage)h](jc)}(hinth]hint}(hj,hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj(hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hj;hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj(hhhj:hMubjg)}(h#drm_sched_job_add_resv_dependenciesh]jm)}(h#drm_sched_job_add_resv_dependenciesh]h#drm_sched_job_add_resv_dependencies}(hjMhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhj:hMubj)}(hM(struct drm_sched_job *job, struct dma_resv *resv, enum dma_resv_usage usage)h](j)}(hstruct drm_sched_job *jobh](jD)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjeubjV)}(h h]h }(hjvhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjeubh)}(hhh]jm)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjOsb%c.drm_sched_job_add_resv_dependenciesasbuh1hhjeubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hstruct dma_resv *resvh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdma_resvh]hdma_resv}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j%c.drm_sched_job_add_resv_dependenciesasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hresvh]hresv}(hj2hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(henum dma_resv_usage usageh](jD)}(hjGh]henum}(hjKhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjGubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjGubh)}(hhh]jm)}(hdma_resv_usageh]hdma_resv_usage}(hjihhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjkmodnameN classnameNjj)}j]j%c.drm_sched_job_add_resv_dependenciesasbuh1hhjGubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjGubjm)}(husageh]husage}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhj:hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj$hhhj:hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj:hMhj!hhubj)}(hhh]h)}(h'add all fences from the resv to the jobh]h'add all fences from the resv to the job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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)}(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:571: ./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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(h(scheduler job to add the dependencies toh]h(scheduler job to add the dependencies to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hE``struct dma_resv *resv`` the dma_resv object to get the fences from h](j)}(h``struct dma_resv *resv``h]j)}(hj9h]hstruct dma_resv *resv}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj3ubj )}(hhh]h)}(h*the dma_resv object to get the fences fromh]h*the dma_resv object to get the fences from}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjOubah}(h]h ]h"]h$]h&]uh1j hj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjubj)}(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)}(hjrh]henum dma_resv_usage usage}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjlubj )}(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&]uh1j hjlubeh}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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 }(hjhhhNhNubj)}(h**resv**h]hresv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h**job**h]hjob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. Must be called with the }(hjhhhNhNubj)}(h**resv**h]hresv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh lock held.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.4drm_sched_job_add_implicit_dependencies (C function))c.drm_sched_job_add_implicit_dependencieshNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hoint drm_sched_job_add_implicit_dependencies (struct drm_sched_job *job, struct drm_gem_object *obj, bool write)h]j>)}(hnint drm_sched_job_add_implicit_dependencies(struct drm_sched_job *job, struct drm_gem_object *obj, bool write)h](jc)}(hinth]hint}(hjOhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjKhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjKhhhj]hMubjg)}(h'drm_sched_job_add_implicit_dependenciesh]jm)}(h'drm_sched_job_add_implicit_dependenciesh]h'drm_sched_job_add_implicit_dependencies}(hjphhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhj]hMubj)}(hC(struct drm_sched_job *job, struct drm_gem_object *obj, bool write)h](j)}(hstruct drm_sched_job *jobh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjrsb)c.drm_sched_job_add_implicit_dependenciesasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct drm_gem_object *objh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)c.drm_sched_job_add_implicit_dependenciesasbuh1hhjubjV)}(h h]h }(hj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hobjh]hobj}(hjUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool writeh](jc)}(hj h]hbool}(hjnhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjjubjV)}(h h]h }(hj{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjubjm)}(hwriteh]hwrite}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhj]hMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjGhhhj]hMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1j7hj]hMhjDhhubj)}(hhh]h)}(h.adds implicit dependencies as job dependenciesh]h.adds implicit dependencies as job dependencies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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)}(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:571: ./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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(h(scheduler job to add the dependencies toh]h(scheduler job to add the dependencies to}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hL``struct drm_gem_object *obj`` the gem object to add new dependencies from. 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&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj'ubj )}(hhh]h)}(h,the gem object to add new dependencies from.h]h,the gem object to add new dependencies from.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1j hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubj)}(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)}(hjfh]h bool write}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj`ubj )}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj|ubah}(h]h ]h"]h$]h&]uh1j hj`ubeh}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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:571: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.)drm_sched_job_has_dependency (C function)c.drm_sched_job_has_dependencyhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hVbool drm_sched_job_has_dependency (struct drm_sched_job *job, struct dma_fence *fence)h]j>)}(hUbool drm_sched_job_has_dependency(struct drm_sched_job *job, struct dma_fence *fence)h](jc)}(hj h]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj hhhjhMubjg)}(hdrm_sched_job_has_dependencyh]jm)}(hdrm_sched_job_has_dependencyh]hdrm_sched_job_has_dependency}(hj.hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMubj)}(h4(struct drm_sched_job *job, struct dma_fence *fence)h](j)}(hstruct drm_sched_job *jobh](jD)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjFubjV)}(h h]h }(hjWhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjFubh)}(hhh]jm)}(h drm_sched_jobh]h drm_sched_job}(hjhhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjjmodnameN classnameNjj)}j]j)}jj0sbc.drm_sched_job_has_dependencyasbuh1hhjFubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjm)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hstruct dma_fence *fenceh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h dma_fenceh]h dma_fence}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_sched_job_has_dependencyasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfenceh]hfence}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(h+check whether fence is the job's dependencyh]h-check whether fence is the job’s dependency}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1j2hhhj*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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjYubj)}(hhh](j)}(h5``struct drm_sched_job *job`` scheduler job to check h](j)}(h``struct drm_sched_job *job``h]j)}(hj~h]hstruct drm_sched_job *job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjxubj )}(hhh]h)}(hscheduler job to checkh]hscheduler job to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubj)}(h.``struct dma_fence *fence`` fence to look for 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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(hfence to look forh]hfence to look for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubeh}(h]h ]h"]h$]h&]uh1jhjYubh)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjYubh)}(hMTrue if **fence** is found within the job's dependencies, or otherwise false.h](hTrue if }(hjhhhNhNubj)}(h **fence**h]hfence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> is found within the job’s dependencies, or otherwise false.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_sched_job_cleanup (C function)c.drm_sched_job_cleanuphNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h6void drm_sched_job_cleanup (struct drm_sched_job *job)h]j>)}(h5void drm_sched_job_cleanup(struct drm_sched_job *job)h](jc)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjEhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEhhhjWhMubjg)}(hdrm_sched_job_cleanuph]jm)}(hdrm_sched_job_cleanuph]hdrm_sched_job_cleanup}(hjjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhjWhMubj)}(h(struct drm_sched_job *job)h]j)}(hstruct drm_sched_job *jobh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjlsbc.drm_sched_job_cleanupasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubah}(h]h ]h"]h$]h&]jjuh1jhjEhhhjWhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjAhhhjWhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1j7hjWhMhj>hhubj)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1j2hhhj*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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj%ubj)}(hhh]j)}(h8``struct drm_sched_job *job`` scheduler job to clean up h](j)}(h``struct drm_sched_job *job``h]j)}(hjJh]hstruct drm_sched_job *job}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjDubj )}(hhh]h)}(hscheduler job to clean uph]hscheduler job to clean up}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1j hjDubeh}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj%ubh)}(h` callback.h](h&This function should be called in the }(hjhhhNhNubh)}(h@:c:type:`drm_sched_backend_ops.free_job `h]j)}(hjh]hdrm_sched_backend_ops.free_job}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_backend_opsuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM%hjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM%hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j. drm_sched_pick_best (C function)c.drm_sched_pick_besthNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hsstruct drm_gpu_scheduler * drm_sched_pick_best (struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h]j>)}(hqstruct drm_gpu_scheduler *drm_sched_pick_best(struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h](jD)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj:hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:hhhjKhMubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj]hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj_modnameN classnameNjj)}j]j)}jdrm_sched_pick_bestsbc.drm_sched_pick_bestasbuh1hhj:hhhjKhMubjV)}(h h]h }(hj~hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj:hhhjKhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjKhMubjg)}(hdrm_sched_pick_besth]jm)}(hj{h]hdrm_sched_pick_best}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhjKhMubj)}(hD(struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h](j)}(h%struct drm_gpu_scheduler **sched_listh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jyc.drm_sched_pick_bestasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h sched_listh]h sched_list}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_sched_listh](jc)}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj1ubjV)}(h h]h }(hjChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1ubjc)}(hinth]hint}(hjQhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj1ubjV)}(h h]h }(hj_hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj1ubjm)}(hnum_sched_listh]hnum_sched_list}(hjmhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj6hhhjKhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1j7hjKhMhj3hhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj)}(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)}(hjh]h%struct drm_gpu_scheduler **sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(hlist of drm_gpu_schedulersh]hlist of drm_gpu_schedulers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:571: ./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}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1j hj 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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_sched_init (C function)c.drm_sched_inithNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h\int drm_sched_init (struct drm_gpu_scheduler *sched, const struct drm_sched_init_args *args)h]j>)}(h[int drm_sched_init(struct drm_gpu_scheduler *sched, const struct drm_sched_init_args *args)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM ubjg)}(hdrm_sched_inith]jm)}(hdrm_sched_inith]hdrm_sched_init}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(hI(struct drm_gpu_scheduler *sched, const struct drm_sched_init_args *args)h](j)}(hstruct drm_gpu_scheduler *schedh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_sched_initasbuh1hhjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hschedh]hsched}(hj'hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h&const struct drm_sched_init_args *argsh](jD)}(hj h]hconst}(hj@hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj<ubjV)}(h h]h }(hjMhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj<ubjD)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj<ubjV)}(h h]h }(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj<ubh)}(hhh]jm)}(hdrm_sched_init_argsh]hdrm_sched_init_args}(hjyhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj{modnameN classnameNjj)}j]jc.drm_sched_initasbuh1hhj<ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj<ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjm)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM hjhhubj)}(hhh]h)}(hInit a gpu scheduler instanceh]hInit a gpu scheduler instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chM$hjubj)}(hhh](j)}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](j)}(h#``struct drm_gpu_scheduler *sched``h]j)}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM"hjubj )}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM"hj3ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj2hM"hjubj)}(hN``const struct drm_sched_init_args *args`` scheduler initialization arguments h](j)}(h*``const struct drm_sched_init_args *args``h]j)}(hjVh]h&const struct drm_sched_init_args *args}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM#hjPubj )}(hhh]h)}(h"scheduler initialization argumentsh]h"scheduler initialization arguments}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM#hjlubah}(h]h ]h"]h$]h&]uh1j hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM#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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM%hjubh)}(h*Return 0 on success, otherwise error code.h]h*Return 0 on success, otherwise error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chM$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.drm_sched_fini (C function)c.drm_sched_finihNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h5void drm_sched_fini (struct drm_gpu_scheduler *sched)h]j>)}(h4void drm_sched_fini(struct drm_gpu_scheduler *sched)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_sched_finih]jm)}(hdrm_sched_finih]hdrm_sched_fini}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h!(struct drm_gpu_scheduler *sched)h]j)}(hstruct drm_gpu_scheduler *schedh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj1hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj3modnameN classnameNjj)}j]j)}jjsbc.drm_sched_finiasbuh1hhjubjV)}(h h]h }(hjQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hschedh]hsched}(hjlhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(hDestroy a gpu schedulerh]hDestroy a gpu scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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)}(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:571: ./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:571: ./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&]uh1j hjubeh}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(h'Tears down and cleans up the scheduler.h]h'Tears down and cleans up the scheduler.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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 }(hj7hhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjAh]hstruct drm_sched_backend_ops}(hjChhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_backend_opsuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhj7ubh .run_job. If }(hj7hhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjeh]hstruct drm_sched_backend_ops}(hjghhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_backend_opsuh1hhj^hMhj7ubhc.cancel_job is implemented, all jobs will be canceled through it and afterwards cleaned up through }(hj7hhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j)}(hjh]hstruct drm_sched_backend_ops}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjjdrm_sched_backend_opsuh1hhj^hMhj7ubh?.free_job. If cancel_job is not implemented, memory could leak.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_sched_increase_karma (C function)c.drm_sched_increase_karmahNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h9void drm_sched_increase_karma (struct drm_sched_job *bad)h]j>)}(h8void drm_sched_increase_karma(struct drm_sched_job *bad)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_sched_increase_karmah]jm)}(hdrm_sched_increase_karmah]hdrm_sched_increase_karma}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct drm_sched_job *bad)h]j)}(hstruct drm_sched_job *badh](jD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(h drm_sched_jobh]h drm_sched_job}(hj*hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj,modnameN classnameNjj)}j]j)}jjsbc.drm_sched_increase_karmaasbuh1hhjubjV)}(h h]h }(hjJhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbadh]hbad}(hjehhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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)}(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:571: ./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)}(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:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubj )}(hhh]h)}(hThe job guilty of time outh]hThe job guilty of time out}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:571: ./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}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_sched_wqueue_ready (C function)c.drm_sched_wqueue_readyhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h=bool drm_sched_wqueue_ready (struct drm_gpu_scheduler *sched)h]j>)}(h)}(h;void drm_sched_wqueue_stop(struct drm_gpu_scheduler *sched)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMubjg)}(hdrm_sched_wqueue_stoph]jm)}(hdrm_sched_wqueue_stoph]hdrm_sched_wqueue_stop}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h!(struct drm_gpu_scheduler *sched)h]j)}(hstruct drm_gpu_scheduler *schedh](jD)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj+hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj-modnameN classnameNjj)}j]j)}jjsbc.drm_sched_wqueue_stopasbuh1hhj ubjV)}(h h]h }(hjKhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hschedh]hsched}(hjfhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMhjhhubj)}(hhh]h)}(hstop scheduler submissionh]hstop scheduler submission}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*hNhNubj)}(h**Parameters** ``struct drm_gpu_scheduler *sched`` scheduler instance **Description** Stops the scheduler from pulling new jobs from entities. It also stops freeing jobs automatically through drm_sched_backend_ops.free_job().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:571: ./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:571: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(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:571: ./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().}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:571: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_sched_wqueue_start (C function)c.drm_sched_wqueue_starthNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h=void drm_sched_wqueue_start (struct drm_gpu_scheduler *sched)h]j>)}(h)}(hint drm_sched_entity_init(struct drm_sched_entity *entity, enum drm_sched_priority priority, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list, atomic_t *guilty)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK$ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhK$ubjg)}(hdrm_sched_entity_inith]jm)}(hdrm_sched_entity_inith]hdrm_sched_entity_init}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK$ubj)}(h(struct drm_sched_entity *entity, enum drm_sched_priority priority, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list, atomic_t *guilty)h](j)}(hstruct drm_sched_entity *entityh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hj+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_sched_entityh]hdrm_sched_entity}(hj<hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>modnameN classnameNjj)}j]j)}jjsbc.drm_sched_entity_initasbuh1hhjubjV)}(h h]h }(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hentityh]hentity}(hjwhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h enum drm_sched_priority priorityh](jD)}(hjGh]henum}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_sched_priorityh]hdrm_sched_priority}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jXc.drm_sched_entity_initasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubjm)}(hpriorityh]hpriority}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h%struct drm_gpu_scheduler **sched_listh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jXc.drm_sched_entity_initasbuh1hhjubjV)}(h h]h }(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h sched_listh]h sched_list}(hjWhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int num_sched_listh](jc)}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjlubjV)}(h h]h }(hj~hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjlubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjlubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjlubjm)}(hnum_sched_listh]hnum_sched_list}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hatomic_t *guiltyh](h)}(hhh]jm)}(hatomic_th]hatomic_t}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jXc.drm_sched_entity_initasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hguiltyh]hguilty}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK$ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhK$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhK$hjhhubj)}(hhh]h)}(h?Init a context entity used by scheduler when submit to HW ring.h]h?Init a context entity used by scheduler when submit to HW ring.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK$hj$hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1j2hhhj*hNhNubj)}(hXt**Parameters** ``struct drm_sched_entity *entity`` scheduler entity to init ``enum drm_sched_priority priority`` priority of the entity ``struct drm_gpu_scheduler **sched_list`` the list of drm scheds on which jobs from this entity can be submitted ``unsigned int num_sched_list`` number of drm sched in sched_list ``atomic_t *guilty`` atomic_t set to 1 when a job on this queue is found to be guilty causing a timeout **Description** Note that the :c:type:`sched_list` must have at least one element to schedule the entity. For changing **priority** later on at runtime see drm_sched_entity_set_priority(). For changing the set of schedulers **sched_list** at runtime see drm_sched_entity_modify_sched(). An entity is cleaned up by calling drm_sched_entity_fini(). See also drm_sched_entity_destroy(). Returns 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK(hjCubj)}(hhh](j)}(h=``struct drm_sched_entity *entity`` scheduler entity to init h](j)}(h#``struct drm_sched_entity *entity``h]j)}(hjhh]hstruct drm_sched_entity *entity}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK'hjbubj )}(hhh]h)}(hscheduler entity to inith]hscheduler entity to init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hK'hj~ubah}(h]h ]h"]h$]h&]uh1j hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hK'hj_ubj)}(h<``enum drm_sched_priority priority`` priority of the entity 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:574: ./drivers/gpu/drm/scheduler/sched_entity.chK(hjubj )}(hhh]h)}(hpriority of the entityh]hpriority of the entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK(hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhK(hj_ubj)}(hq``struct drm_gpu_scheduler **sched_list`` the list of drm scheds on which jobs from this entity can be submitted h](j)}(h)``struct drm_gpu_scheduler **sched_list``h]j)}(hjh]h%struct drm_gpu_scheduler **sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK*hjubj )}(hhh]h)}(hFthe list of drm scheds on which jobs from this entity can be submittedh]hFthe list of drm scheds on which jobs from this entity can be submitted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK)hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhK*hj_ubj)}(hB``unsigned int num_sched_list`` number of drm sched in sched_list h](j)}(h``unsigned int num_sched_list``h]j)}(hjh]hunsigned int num_sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hK+hj*ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj)hK+hj_ubj)}(hh``atomic_t *guilty`` atomic_t set to 1 when a job on this queue is found to be guilty causing a timeout h](j)}(h``atomic_t *guilty``h]j)}(hjMh]hatomic_t *guilty}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK-hjGubj )}(hhh]h)}(hRatomic_t set to 1 when a job on this queue is found to be guilty causing a timeouth]hRatomic_t set to 1 when a job on this queue is found to be guilty causing a timeout}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK,hjcubah}(h]h ]h"]h$]h&]uh1j hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhK-hj_ubeh}(h]h ]h"]h$]h&]uh1jhjCubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK/hjCubh)}(hYNote that the :c:type:`sched_list` must have at least one element to schedule the entity.h](hNote that the }(hjhhhNhNubh)}(h:c:type:`sched_list`h]j)}(hjh]h sched_list}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj sched_listuh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK.hjubh7 must have at least one element to schedule the entity.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK.hjCubh)}(hFor changing **priority** later on at runtime see drm_sched_entity_set_priority(). For changing the set of schedulers **sched_list** at runtime see drm_sched_entity_modify_sched().h](h For changing }(hjhhhNhNubj)}(h **priority**h]hpriority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh] later on at runtime see drm_sched_entity_set_priority(). For changing the set of schedulers }(hjhhhNhNubj)}(h**sched_list**h]h sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0 at runtime see drm_sched_entity_modify_sched().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK0hjCubh)}(h`An entity is cleaned up by calling drm_sched_entity_fini(). See also drm_sched_entity_destroy().h]h`An entity is cleaned up by calling drm_sched_entity_fini(). See also drm_sched_entity_destroy().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK4hjCubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK7hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.*drm_sched_entity_modify_sched (C function)c.drm_sched_entity_modify_schedhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hvoid drm_sched_entity_modify_sched (struct drm_sched_entity *entity, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h]j>)}(hvoid drm_sched_entity_modify_sched(struct drm_sched_entity *entity, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h](jc)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj>hhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chKvubjV)}(h h]h }(hjQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj>hhhjPhKvubjg)}(hdrm_sched_entity_modify_schedh]jm)}(hdrm_sched_entity_modify_schedh]hdrm_sched_entity_modify_sched}(hjchhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>hhhjPhKvubj)}(he(struct drm_sched_entity *entity, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h](j)}(hstruct drm_sched_entity *entityh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj{ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj{ubh)}(hhh]jm)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjesbc.drm_sched_entity_modify_schedasbuh1hhj{ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjm)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(h%struct drm_gpu_scheduler **sched_listh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.drm_sched_entity_modify_schedasbuh1hhjubjV)}(h h]h }(hj-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h sched_listh]h sched_list}(hjUhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(hunsigned int num_sched_listh](jc)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjjubjV)}(h h]h }(hj|hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjjubjm)}(hnum_sched_listh]hnum_sched_list}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhj>hhhjPhKvubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj:hhhjPhKvubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1j7hjPhKvhj7hhubj)}(hhh]h)}(hModify sched of an entityh]hModify sched of an entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chKvhjhhubah}(h]h ]h"]h$]h&]uh1jhj7hhhjPhKvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*hNhNubj)}(hX**Parameters** ``struct drm_sched_entity *entity`` scheduler entity to init ``struct drm_gpu_scheduler **sched_list`` the list of new drm scheds which will replace existing entity->sched_list ``unsigned int num_sched_list`` number of drm sched in sched_list **Description** Note that this must be called under the same common lock for **entity** as drm_sched_job_arm() and drm_sched_entity_push_job(), or the driver needs to guarantee through some other means that this is never called while new jobs can be pushed to **entity**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chKzhjubj)}(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:574: ./drivers/gpu/drm/scheduler/sched_entity.chKwhj ubj )}(hhh]h)}(hscheduler entity to inith]hscheduler entity to init}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKwhj'ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKwhjubj)}(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)}(hjJh]h%struct drm_gpu_scheduler **sched_list}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chKyhjDubj )}(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}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chKxhj`ubah}(h]h ]h"]h$]h&]uh1j hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hKyhjubj)}(hB``unsigned int num_sched_list`` number of drm sched in sched_list h](j)}(h``unsigned int num_sched_list``h]j)}(hjh]hunsigned int num_sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chKzhj~ubj )}(hhh]h)}(h!number of drm sched in sched_listh]h!number of drm sched in sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKzhjubah}(h]h ]h"]h$]h&]uh1j hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKzhjubeh}(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&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK|hjubh)}(hNote that this must be called under the same common lock for **entity** as drm_sched_job_arm() and drm_sched_entity_push_job(), or the driver needs to guarantee through some other means that this is never called while new jobs can be pushed to **entity**.h](h=Note that this must be called under the same common lock for }(hjhhhNhNubj)}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh as drm_sched_job_arm() and drm_sched_entity_push_job(), or the driver needs to guarantee through some other means that this is never called while new jobs can be pushed to }(hjhhhNhNubj)}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chK{hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_sched_entity_error (C function)c.drm_sched_entity_errorhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h)}(h;int drm_sched_entity_error(struct drm_sched_entity *entity)h](jc)}(hinth]hint}(hj(hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj$hhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chKubjV)}(h h]h }(hj7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj$hhhj6hKubjg)}(hdrm_sched_entity_errorh]jm)}(hdrm_sched_entity_errorh]hdrm_sched_entity_error}(hjIhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$hhhj6hKubj)}(h!(struct drm_sched_entity *entity)h]j)}(hstruct drm_sched_entity *entityh](jD)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjaubjV)}(h h]h }(hjrhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjaubh)}(hhh]jm)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjKsbc.drm_sched_entity_errorasbuh1hhjaubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubah}(h]h ]h"]h$]h&]jjuh1jhj$hhhj6hKubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhj hhhj6hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hj6hKhjhhubj)}(hhh]h)}(h"return error of last scheduled jobh]h"return error of last scheduled job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*hNhNubj)}(h**Parameters** ``struct drm_sched_entity *entity`` scheduler entity to check **Description** Opportunistically return the error of the last scheduled job. Result can change any time when new jobs are pushed to the hw.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chKhjubj)}(hhh]j)}(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:574: ./drivers/gpu/drm/scheduler/sched_entity.chKhj#ubj )}(hhh]h)}(hscheduler entity to checkh]hscheduler entity to check}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hKhj?ubah}(h]h ]h"]h$]h&]uh1j hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chKhjubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.#drm_sched_entity_flush (C function)c.drm_sched_entity_flushhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hKlong drm_sched_entity_flush (struct drm_sched_entity *entity, long timeout)h]j>)}(hJlong drm_sched_entity_flush(struct drm_sched_entity *entity, long timeout)h](jc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM ubjg)}(hdrm_sched_entity_flushh]jm)}(hdrm_sched_entity_flushh]hdrm_sched_entity_flush}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h/(struct drm_sched_entity *entity, long timeout)h](j)}(hstruct drm_sched_entity *entityh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_sched_entity_flushasbuh1hhjubjV)}(h h]h }(hj$hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hentityh]hentity}(hj?hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h long timeouth](jc)}(hlongh]hlong}(hjXhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjTubjV)}(h h]h }(hjfhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjTubjm)}(htimeouth]htimeout}(hjthhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM hjhhubj)}(hhh]h)}(hFlush a context entityh]hFlush a context entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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)}(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:574: ./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:574: ./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&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hC``long timeout`` time to wait in for Q to become empty in jiffies. h](j)}(h``long timeout``h]j)}(hjh]h long timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chMhjubj )}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjubeh}(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&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chMhjubh)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chMhjubh)}(hAReturns the remaining time in jiffies left from the input timeouth]hAReturns the remaining time in jiffies left from the input timeout}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j."drm_sched_entity_fini (C function)c.drm_sched_entity_finihNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h)}(h;void drm_sched_entity_fini(struct drm_sched_entity *entity)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM:ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM:ubjg)}(hdrm_sched_entity_finih]jm)}(hdrm_sched_entity_finih]hdrm_sched_entity_fini}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM:ubj)}(h!(struct drm_sched_entity *entity)h]j)}(hstruct drm_sched_entity *entityh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_sched_entity_finiasbuh1hhjubjV)}(h h]h }(hj"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hentityh]hentity}(hj=hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM:ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM:ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM:hjhhubj)}(hhh]h)}(hDestroy a context entityh]hDestroy a context entity}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM:hjdhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM:ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*hNhNubj)}(hX**Parameters** ``struct drm_sched_entity *entity`` scheduler entity **Description** Cleanups up **entity** which has been initialized by drm_sched_entity_init(). If there are potentially job still in flight or getting newly queued drm_sched_entity_flush() must be called first. This function then goes over the entity and signals all jobs with an error code if the process was killed.h](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:574: ./drivers/gpu/drm/scheduler/sched_entity.chM>hjubj)}(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:574: ./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&]uh1j hjubeh}(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&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM>hjubh)}(hMCleanups up **entity** which has been initialized by drm_sched_entity_init().h](h Cleanups up }(hjhhhNhNubj)}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh7 which has been initialized by drm_sched_entity_init().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM=hjubh)}(hIf there are potentially job still in flight or getting newly queued drm_sched_entity_flush() must be called first. This function then goes over the entity and signals all jobs with an error code if the process was killed.h]hIf there are potentially job still in flight or getting newly queued drm_sched_entity_flush() must be called first. This function then goes over the entity and signals all jobs with an error code if the process was killed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM?hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.%drm_sched_entity_destroy (C function)c.drm_sched_entity_destroyhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h?void drm_sched_entity_destroy (struct drm_sched_entity *entity)h]j>)}(h>void drm_sched_entity_destroy(struct drm_sched_entity *entity)h](jc)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjEhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chMYubjV)}(h h]h }(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjEhhhjWhMYubjg)}(hdrm_sched_entity_destroyh]jm)}(hdrm_sched_entity_destroyh]hdrm_sched_entity_destroy}(hjjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhjWhMYubj)}(h!(struct drm_sched_entity *entity)h]j)}(hstruct drm_sched_entity *entityh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjlsbc.drm_sched_entity_destroyasbuh1hhjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubah}(h]h ]h"]h$]h&]jjuh1jhjEhhhjWhMYubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjAhhhjWhMYubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1j7hjWhMYhj>hhubj)}(hhh]h)}(hDestroy a context entityh]hDestroy a context entity}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chMYhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1j2hhhj*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)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM]hj%ubj)}(hhh]j)}(h5``struct drm_sched_entity *entity`` scheduler entity h](j)}(h#``struct drm_sched_entity *entity``h]j)}(hjJh]hstruct drm_sched_entity *entity}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chMZhjDubj )}(hhh]h)}(hscheduler entityh]hscheduler entity}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMZhj`ubah}(h]h ]h"]h$]h&]uh1j hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMZhjAubah}(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&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM\hj%ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM[hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.*drm_sched_entity_set_priority (C function)c.drm_sched_entity_set_priorityhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(hfvoid drm_sched_entity_set_priority (struct drm_sched_entity *entity, enum drm_sched_priority priority)h]j>)}(hevoid drm_sched_entity_set_priority(struct drm_sched_entity *entity, enum drm_sched_priority priority)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chMvubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhMvubjg)}(hdrm_sched_entity_set_priorityh]jm)}(hdrm_sched_entity_set_priorityh]hdrm_sched_entity_set_priority}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMvubj)}(hC(struct drm_sched_entity *entity, enum drm_sched_priority priority)h](j)}(hstruct drm_sched_entity *entityh](jD)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubh)}(hhh]jm)}(hdrm_sched_entityh]hdrm_sched_entity}(hj%hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj'modnameN classnameNjj)}j]j)}jjsbc.drm_sched_entity_set_priorityasbuh1hhjubjV)}(h h]h }(hjEhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hentityh]hentity}(hj`hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h enum drm_sched_priority priorityh](jD)}(hjGh]henum}(hjyhhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChjuubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubh)}(hhh]jm)}(hdrm_sched_priorityh]hdrm_sched_priority}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jAc.drm_sched_entity_set_priorityasbuh1hhjuubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjuubjm)}(hpriorityh]hpriority}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMvubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhMvubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhMvhjhhubj)}(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:574: ./drivers/gpu/drm/scheduler/sched_entity.chMvhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chMzhj ubj)}(hhh](j)}(h5``struct drm_sched_entity *entity`` scheduler entity h](j)}(h#``struct drm_sched_entity *entity``h]j)}(hj.h]hstruct drm_sched_entity *entity}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chMxhj(ubj )}(hhh]h)}(hscheduler entityh]hscheduler entity}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMxhjDubah}(h]h ]h"]h$]h&]uh1j hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMxhj%ubj)}(h8``enum drm_sched_priority priority`` scheduler priority h](j)}(h$``enum drm_sched_priority priority``h]j)}(hjgh]h enum drm_sched_priority priority}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chMyhjaubj )}(hhh]h)}(hscheduler priorityh]hscheduler priority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMyhj}ubah}(h]h ]h"]h$]h&]uh1j hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMyhj%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&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM{hj ubh)}(h5Update the priority of runqueues used for the entity.h]h5Update the priority of runqueues used for the entity.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chMzhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubj")}(hhh]h}(h]h ]h"]h$]h&]entries](j.&drm_sched_entity_push_job (C function)c.drm_sched_entity_push_jobhNtauh1j!hj*hhhNhNubj3)}(hhh](j8)}(h@void drm_sched_entity_push_job (struct drm_sched_job *sched_job)h]j>)}(h?void drm_sched_entity_push_job(struct drm_sched_job *sched_job)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM/ubjV)}(h h]h }(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhjhhhjhM/ubjg)}(hdrm_sched_entity_push_jobh]jm)}(hdrm_sched_entity_push_jobh]hdrm_sched_entity_push_job}(hjhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM/ubj)}(h!(struct drm_sched_job *sched_job)h]j)}(hstruct drm_sched_job *sched_jobh](jD)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jPah"]h$]h&]uh1jChj ubjV)}(h h]h }(hj1hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubh)}(hhh]jm)}(h drm_sched_jobh]h drm_sched_job}(hjBhhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjDmodnameN classnameNjj)}j]j)}jj sbc.drm_sched_entity_push_jobasbuh1hhj ubjV)}(h h]h }(hjbhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jUhj ubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(h sched_jobh]h sched_job}(hj}hhhNhNubah}(h]h ]jxah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM/ubeh}(h]h ]h"]h$]h&]jjjuh1j=jjhjhhhjhM/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j7hjhM/hjhhubj)}(hhh]h)}(h&Submit a job to the entity's job queueh]h(Submit a job to the entity’s job queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM/hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j2hhhj*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)}(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:574: ./drivers/gpu/drm/scheduler/sched_entity.chM3hjubj)}(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:574: ./drivers/gpu/drm/scheduler/sched_entity.chM0hjubj )}(hhh]h)}(h job to submith]h job to submit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Note**h]j)}(hj#h]hNote}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM2hjubh)}(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 }(hj9hhhNhNubj)}(h **sched_job**h]h sched_job}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh in drm_sched_job_init().}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:574: ./drivers/gpu/drm/scheduler/sched_entity.chM2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubeh}(h]scheduler-function-referencesah ]h"]scheduler function referencesah$]h&]uh1hhj˙hhhhhM6ubeh}(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_handlerjerror_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]jaj*]j*aj"7]j7ajTX]jJXaunameids}(jvjsjzjzjjjVjSjFjFj/jj,jjzjzj{j{j{j{j|j|j-}j*}j}j}jjj.j+jUjRjkjhjjj@j~@jljlj{j{jjjjjjjjjjjjjjjjjjj*j*overviewNjjj*j*j5j*j5j5j(7j%7j9j"7j9j9j:j:j5j5jOjOjOjOjZXjWXj}jTXj}j}j]j~]j^j^j1_j._jșjřjnjkj'j$jfjcu nametypes}(jvjzjjVjFj/jjzj{j{j|j-}j}jj.jUjkjj@jlj{jjjjjjjjjj*jjj*j5j5j(7j9j9j:j5jOjOjZXj}j}j]j^j1_jșjnj'jfuh}(jshjzhj0j9jjjjjFjKjUjZjjjSjj6j<jjjFjYjvj{jjjjjjj jjjjjjdjij j j)"j."j$j$j(j(j~)j)j]+jb+j,j,jg.jl.j/j/j-1j21jW3j\3j4j5j7j7j:j:j<j<j4>j9>j(@j-@jDjDj,jjFjFjFjJjJjLjLjMjMjKOjPOjPjPjRjRjVjVjXj Xj!Zj&Zj[j[jf^jk^j`j`jbjbjRcjWcj)fj.fjhjhjzj2jjOjjTjjuljzljbnjgnj\qjaqjsjsjvjvjyxj~xj{jzj{jy{j|j{j*}j|j}j0}jj}j+j jRj1jhjXjujzjjj҆j׆j߈jjBjGjjjsjxjj jjjjjjjjj>jCjKjPjӟj؟j<jAjjjjjjj'j,jjjjjjjhjmj+j0j0j5jj jjjjj jjjj0j5jjj2j7jjj[j`jjjjjjjjj jjjjjnjjjjj|jjjjjjjjojtjsjxjjjjj5j:jjj)j.jFjKjrjwjjjwj|jZj_j j j j jUjZj~@jj\jbj jjjjjjljqjjj!j!j#j#j\$ja$j&j&j)j)jN+jS+j,j,jw.j|.j1j1j3j3j6j6j8j8j:j:j>j>jlj@jdBjiBjDjDjFjFjHjHj/Ij4Ij Jj%Jj+Lj0Lj.Nj3Nj?QjDQjRjRjTjTjVjVj YjYj]j]jajajzcjcjejej'gj,gj;jj@jj{jlj$mj)mj=pjBpjrjrjFujKujwjwjj{j{j|jj jˀjЀjLjQj܃jjͅj҅jjjpjuj͋jҋjBjGj jjjjjjj j.j3jНj՝j`jejjjjjjjjjj5jjjjjjjjjj!jOjTjPjUjjjpjuj jjӹjعjRjWjjjjjjjjjjjjj+j0jYj^j(j-jujzjjjHjMjjjjjejjj*jjjjjj*jj9j>jjjTjYjjjjjfjkjIjNjj"jjjjjjjjjpjujjjjjj jjj j jXj]jjjjjBjGjjjjjf"jk"jI$jN$j&j&j{(j(j*j*j5j*j1j*j%7j1j"7j+7j9j+7j:j9j5j:j:j:j<j<jqBjvBjDjDjFjFjGjGjNjNj*Qj/QjSjSjTjTjVjVjYjYj]j ]j`j`jsbjxbjdjdjhjhjjjjj=njBnjpj pjujujwjwjUzjZzjq|jv|jj jjjƃj˃jjjHjMjjjjj׍j܍jwj|jjjjjjj#j(jjjjjۙjjjjZj_j'j,j٩jީj=jBjjjjjcjhjjjejjjjj4j9jjj<jAjxj}jjjjjj jjjjjjjjjjjojtjjj4j9jjj jj2j7jjjjj j j j jujzjjjjj"j"j*(j/(jh,jm,jQ0jV0j83j=3jOj5jOj6j$6j)6j8j8jO:jT:j<j"<j>j">j!@j&@jBjBj4Fj9Fj4Kj9KjMjMjWXjOjPj Pj+Rj0RjSjSjUjUjTXj]Xj}j]Xj~]j[j^j]j._j^j@_jE_jLbjQbjcjcj:ej?ejdgjigjijijljljoj$ojrjrj{tjtjBwjGwjzj zj&|j+|jřj}j~j~jpjujȂj͂jDjIj҅jׅjjjjjujzjjjujzjjjFjKjpjujKjPjkj˙jjܙj$jjcj*jGjLjjjjjjjѥj֥jj jgjljjjjjjjjj5j:jjjbjgjmjrj"j'jfjkjj jPjUjWj\jjjj$jBjGjjj<jAj1j6jjjjjjjCjHjjjDjIjjj5j:jj jjjjj<jAjjjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jKsRparse_messages](hsystem_message)}(hhh]h)}(h+Duplicate implicit target name: "overview".h]h/Duplicate implicit target name: “overview”.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]j1alevelKtypeINFOsourcehlineMuh1jhj*hhhhhMubj)}(hhh]h)}(hUnexpected indentation.h]hUnexpected indentation.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!ubah}(h]h ]h"]h$]h&]levelKtypeERRORsourcejlineM uh1jhjubj)}(hhh]h)}(h;Block quote ends without a blank line; unexpected unindent.h]h;Block quote ends without a blank line; unexpected unindent.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]levelKtypeWARNINGlineM sourceW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:506: ./drivers/gpu/drm/drm_gpuvm.cuh1jhjubj)}(hhh]h)}(h?Definition list ends without a blank line; unexpected unindent.h]h?Definition list ends without a blank line; unexpected unindent.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]levelKtypejVlineM sourcejuh1jhjubj)}(hhh]h)}(h?Definition list ends without a blank line; unexpected unindent.h]h?Definition list ends without a blank line; unexpected unindent.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&]levelKtypejVlineM sourcejuh1jhjubj)}(hhh]h)}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejlineM sourcejuh1jhjubj)}(hhh]h)}(hUnexpected indentation.h]hUnexpected indentation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypej:sourcejlineM uh1jhjubj)}(hhh]h)}(h?Definition list ends without a blank line; unexpected unindent.h]h?Definition list ends without a blank line; unexpected unindent.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejVlineM sourcejuh1jhjubj)}(hhh]h)}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejlineM sourcejuh1jhjubj)}(hhh]h)}(h?Definition list ends without a blank line; unexpected unindent.h]h?Definition list ends without a blank line; unexpected unindent.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejVlineM sourcej,uh1jhjubj)}(hhh]h)}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejlineM sourcej,uh1jhjubj)}(hhh]h)}(h?Definition list ends without a blank line; unexpected unindent.h]h?Definition list ends without a blank line; unexpected unindent.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&]levelKtypejVlineM sourcejLuh1jhjubj)}(hhh]h)}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&]levelKtypejlineM sourcejLuh1jhjubj)}(hhh]h)}(h+Duplicate implicit target name: "overview".h]h/Duplicate implicit target name: “overview”.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&]jalevelKtypejsourcehlineM*uh1jhjܙhhhhhM*ubetransform_messages](j)}(hhh]h)}(hhh]h:Hyperlink target "prime-buffer-sharing" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejsourcehlineMuh1jubj)}(hhh]h)}(hhh]h/Hyperlink target "drm-gpuvm" is not referenced.}hjsbahr}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejsourcehlineMuh1jubj)}(hhh]h)}(hhh]h7Hyperlink target "drm-gpuvm-locking" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejsourcehlineMuh1jubj)}(hhh]h)}(hhh]h6Hyperlink target "drm-sync-objects" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejsourcehlineM uh1jube transformerN include_log] decorationNhhub.