<sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget/translations/zh_CN/gpu/drm-mmmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/zh_TW/gpu/drm-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/it_IT/gpu/drm-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/ja_JP/gpu/drm-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/ko_KR/gpu/drm-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/pt_BR/gpu/drm-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/sp_SP/gpu/drm-mmmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hDRM Memory Managementh]hDRM Memory Management}(hhhhhNhNubah}(h]h ]h"]h$]h&]refidid6uh1hhhhhh8/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&]uh1hhhhKhhhhubhtopic)}(h Contents h](h)}(hContentsh]hContents}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhKubh bullet_list)}(hhh]h list_item)}(hhh](h)}(hhh]h reference)}(hhh]hDRM Memory Management}(hjhhhNhNubah}(h]hah ]h"]h$]h&]refiddrm-memory-managementuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubj)}(hhh](j)}(hhh](h)}(hhh]j)}(hhh]h#The Translation Table Manager (TTM)}(hj:hhhNhNubah}(h]id7ah ]h"]h$]h&]refid!the-translation-table-manager-ttmuh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhj4ubj)}(hhh](j)}(hhh]h)}(hhh]j)}(hhh]hTTM device object reference}(hjYhhhNhNubah}(h]id8ah ]h"]h$]h&]refidttm-device-object-referenceuh1jhjVubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(hhh]h)}(hhh]j)}(hhh]h TTM resource placement reference}(hj{hhhNhNubah}(h]id9ah ]h"]h$]h&]refid ttm-resource-placement-referenceuh1jhjxubah}(h]h ]h"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(hhh]h)}(hhh]j)}(hhh]hTTM resource object reference}(hjhhhNhNubah}(h]id10ah ]h"]h$]h&]refidttm-resource-object-referenceuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(hhh]h)}(hhh]j)}(hhh]hTTM TT object reference}(hjhhhNhNubah}(h]id11ah ]h"]h$]h&]refidttm-tt-object-referenceuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(hhh]h)}(hhh]j)}(hhh]hTTM page pool reference}(hjhhhNhNubah}(h]id12ah ]h"]h$]h&]refidttm-page-pool-referenceuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh](h)}(hhh]j)}(hhh]h$The Graphics Execution Manager (GEM)}(hjhhhNhNubah}(h]id13ah ]h"]h$]h&]refid"the-graphics-execution-manager-gemuh1jhj ubah}(h]h ]h"]h$]h&]uh1hhj ubj)}(hhh](j)}(hhh]h)}(hhh]j)}(hhh]hGEM Initialization}(hj.hhhNhNubah}(h]id14ah ]h"]h$]h&]refidgem-initializationuh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(hhh]j)}(hhh]hGEM Objects Creation}(hjPhhhNhNubah}(h]id15ah ]h"]h$]h&]refidgem-objects-creationuh1jhjMubah}(h]h ]h"]h$]h&]uh1hhjJubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(hhh]j)}(hhh]hGEM Objects Lifetime}(hjrhhhNhNubah}(h]id16ah ]h"]h$]h&]refidgem-objects-lifetimeuh1jhjoubah}(h]h ]h"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(hhh]j)}(hhh]hGEM Objects Naming}(hjhhhNhNubah}(h]id17ah ]h"]h$]h&]refidgem-objects-naminguh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(hhh]j)}(hhh]hGEM Objects Mapping}(hjhhhNhNubah}(h]id18ah ]h"]h$]h&]refidgem-objects-mappinguh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(hhh]j)}(hhh]hMemory Coherency}(hjhhhNhNubah}(h]id19ah ]h"]h$]h&]refidmemory-coherencyuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(hhh]j)}(hhh]hCommand Execution}(hjhhhNhNubah}(h]id20ah ]h"]h$]h&]refidcommand-executionuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(hhh]j)}(hhh]hGEM Function Reference}(hjhhhNhNubah}(h]id21ah ]h"]h$]h&]refidgem-function-referenceuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(hhh]j)}(hhh]h"GEM DMA Helper Functions Reference}(hj>hhhNhNubah}(h]id22ah ]h"]h$]h&]refid"gem-dma-helper-functions-referenceuh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(hhh]j)}(hhh]h#GEM SHMEM Helper Function Reference}(hj`hhhNhNubah}(h]id23ah ]h"]h$]h&]refid#gem-shmem-helper-function-referenceuh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(hhh]j)}(hhh]h#GEM VRAM Helper Functions Reference}(hjhhhNhNubah}(h]id24ah ]h"]h$]h&]refid#gem-vram-helper-functions-referenceuh1jhjubah}(h]h ]h"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(hhh]j)}(hhh]h"GEM TTM Helper Functions Reference}(hjhhhNhNubah}(h]id25ah ]h"]h$]h&]refid"gem-ttm-helper-functions-referenceuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh]h)}(hhh]j)}(hhh]hVMA Offset Manager}(hjhhhNhNubah}(h]id26ah ]h"]h$]h&]refidvma-offset-manageruh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh](h)}(hhh]j)}(hhh]hPRIME Buffer Sharing}(hjhhhNhNubah}(h]id27ah ]h"]h$]h&]refidprime-buffer-sharinguh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubj)}(hhh](j)}(hhh](h)}(hhh]j)}(hhh]hOverview and Lifetime Rules}(hjhhhNhNubah}(h]id28ah ]h"]h$]h&]refidoverview-and-lifetime-rulesuh1jhjubah}(h]h ]h"]h$]h&]uh1hhj ubj)}(hhh]j)}(hhh]h)}(hhh]j)}(hhh]h"Reference Counting for GEM Drivers}(hj2hhhNhNubah}(h]id29ah ]h"]h$]h&]refid"reference-counting-for-gem-driversuh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh](h)}(hhh]j)}(hhh]hPRIME Helper Functions}(hj`hhhNhNubah}(h]id30ah ]h"]h$]h&]refidprime-helper-functionsuh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhjZubj)}(hhh](j)}(hhh]h)}(hhh]j)}(hhh]hExporting buffers}(hjhhhNhNubah}(h]id31ah ]h"]h$]h&]refidexporting-buffersuh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&]uh1jhjvubj)}(hhh]h)}(hhh]j)}(hhh]hImporting buffers}(hjhhhNhNubah}(h]id32ah ]h"]h$]h&]refidimporting-buffersuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1j hjZubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hhh]j)}(hhh]hPRIME Function References}(hjhhhNhNubah}(h]id33ah ]h"]h$]h&]refidprime-function-referencesuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh](h)}(hhh]j)}(hhh]hDRM MM Range Allocator}(hjhhhNhNubah}(h]id34ah ]h"]h$]h&]refiddrm-mm-range-allocatoruh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubj)}(hhh](j)}(hhh]h)}(hhh]j)}(hhh]hOverview}(hjhhhNhNubah}(h]id35ah ]h"]h$]h&]refidoverviewuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hhh]j)}(hhh]hLRU Scan/Eviction Support}(hj>hhhNhNubah}(h]id36ah ]h"]h$]h&]refidlru-scan-eviction-supportuh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hhh]j)}(hhh]h*DRM MM Range Allocator Function References}(hj`hhhNhNubah}(h]id37ah ]h"]h$]h&]refid*drm-mm-range-allocator-function-referencesuh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh](h)}(hhh]j)}(hhh]h DRM GPUVM}(hjhhhNhNubah}(h]id38ah ]h"]h$]h&]refid drm-gpuvmuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubj)}(hhh](j)}(hhh]h)}(hhh]j)}(hhh]hOverview}(hjhhhNhNubah}(h]id39ah ]h"]h$]h&]refidid3uh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hhh]j)}(hhh]hSplit and Merge}(hjhhhNhNubah}(h]id40ah ]h"]h$]h&]refidsplit-and-mergeuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hhh]j)}(hhh]hLocking}(hjhhhNhNubah}(h]id41ah ]h"]h$]h&]refidlockinguh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hhh]j)}(hhh]hExamples}(hjhhhNhNubah}(h]id42ah ]h"]h$]h&]refidexamplesuh1jhjubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hhh]j)}(hhh]hDRM GPUVM Function References}(hj5hhhNhNubah}(h]id43ah ]h"]h$]h&]refiddrm-gpuvm-function-referencesuh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh](h)}(hhh]j)}(hhh]hDRM Buddy Allocator}(hjchhhNhNubah}(h]id44ah ]h"]h$]h&]refiddrm-buddy-allocatoruh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhj]ubj)}(hhh](j)}(hhh]h)}(hhh]j)}(hhh]h/Buddy Allocator Function References (GPU buddy)}(hjhhhNhNubah}(h]id45ah ]h"]h$]h&]refid-buddy-allocator-function-references-gpu-buddyuh1jhjubah}(h]h ]h"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&]uh1jhjyubj)}(hhh]h)}(hhh]j)}(hhh]h.DRM Buddy Specific Logging Function References}(hjhhhNhNubah}(h]id46ah ]h"]h$]h&]refid.drm-buddy-specific-logging-function-referencesuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1j hj]ubeh}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh]h)}(hhh]j)}(hhh]h'DRM Cache Handling and Fast WC memcpy()}(hjhhhNhNubah}(h]id47ah ]h"]h$]h&]refid%drm-cache-handling-and-fast-wc-memcpyuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh](h)}(hhh]j)}(hhh]hDRM Sync Objects}(hjhhhNhNubah}(h]id48ah ]h"]h$]h&]refiddrm-sync-objectsuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubj)}(hhh](j)}(hhh]h)}(hhh]j)}(hhh]hHost-side wait on syncobjs}(hjhhhNhNubah}(h]id49ah ]h"]h$]h&]refidhost-side-wait-on-syncobjsuh1jhjubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hhh]j)}(hhh]hImport/export of syncobjs}(hj5hhhNhNubah}(h]id50ah ]h"]h$]h&]refidimport-export-of-syncobjsuh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hhh]j)}(hhh]h5Import/export of timeline points in timeline syncobjs}(hjWhhhNhNubah}(h]id51ah ]h"]h$]h&]refid5import-export-of-timeline-points-in-timeline-syncobjsuh1jhjTubah}(h]h ]h"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh]h)}(hhh]j)}(hhh]hDRM Execution context}(hjhhhNhNubah}(h]id52ah ]h"]h$]h&]refiddrm-execution-contextuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh](h)}(hhh]j)}(hhh]h GPU Scheduler}(hjhhhNhNubah}(h]id53ah ]h"]h$]h&]refid gpu-scheduleruh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubj)}(hhh](j)}(hhh]h)}(hhh]j)}(hhh]hOverview}(hjhhhNhNubah}(h]id54ah ]h"]h$]h&]refidid5uh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hhh]j)}(hhh]h Flow Control}(hjhhhNhNubah}(h]id55ah ]h"]h$]h&]refid flow-controluh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hhh]j)}(hhh]hScheduler Function References}(hj hhhNhNubah}(h]id56ah ]h"]h$]h&]refidscheduler-function-referencesuh1jhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j hhhhhNhNubeh}(h]contentsah ]contentsah"]contentsah$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(h#The Translation Table Manager (TTM)h]h#The Translation Table Manager (TTM)}(hjPhhhNhNubah}(h]h ]h"]h$]h&]hjCuh1hhjMhhhhhKubh)}(hFTTM is a memory manager for accelerator devices with dedicated memory.h]hFTTM is a memory manager for accelerator devices with dedicated memory.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:33: ./drivers/gpu/drm/ttm/ttm_module.chK+hjMhhubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:33: ./drivers/gpu/drm/ttm/ttm_module.chK-hjMhhubh)}(h6TODO: Add more design background and information here.h]h6TODO: Add more design background and information here.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:33: ./drivers/gpu/drm/ttm/ttm_module.chK1hjMhhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlettm_caching (C enum) c.ttm_cachinghNtauh1jhjMhhhNhNubhdesc)}(hhh](hdesc_signature)}(h ttm_cachingh]hdesc_signature_line)}(henum ttm_cachingh](hdesc_sig_keyword)}(henumh]henum}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:36: ./include/drm/ttm/ttm_caching.hhKubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhjhKubh desc_name)}(h ttm_cachingh]h desc_sig_name)}(hjh]h ttm_caching}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1jsphinx_line_type declaratorhjhhhjhKubah}(h]jah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jhjhKhjhhubh desc_content)}(hhh]h)}(h&CPU caching and BUS snooping behavior.h]h&CPU caching and BUS snooping behavior.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:36: ./include/drm/ttm/ttm_caching.hhK!hj hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](cenumeh"]h$]h&]domainj! objtypej" desctypej" noindex noindexentrynocontentsentryuh1jhhhjMhNhNubh 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)}(hj4 h]h Constants}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj2 ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:36: ./include/drm/ttm/ttm_caching.hhK%hj. ubhdefinition_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)}(hj[ h]h ttm_uncached}(hj_ hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjY ubah}(h]h ]h"]h$]h&]uh1jW hX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:36: ./include/drm/ttm/ttm_caching.hhK)hjS ubh 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.}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:36: ./include/drm/ttm/ttm_caching.hhK(hju ubah}(h]h ]h"]h$]h&]uh1js hjS ubeh}(h]h ]h"]h$]h&]uh1jQ hjr hK)hjN ubjR )}(h\``ttm_write_combined`` Don't cache read accesses, but allow at least writes to be combined. h](jX )}(h``ttm_write_combined``h]j^ )}(hj h]httm_write_combined}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:36: ./include/drm/ttm/ttm_caching.hhK-hj ubjt )}(hhh]h)}(hDDon't cache read accesses, but allow at least writes to be combined.h]hFDon’t cache read accesses, but allow at least writes to be combined.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:36: ./include/drm/ttm/ttm_caching.hhK,hj ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj hK-hjN ubjR )}(hm``ttm_cached`` Fully cached like normal system memory, requires that devices snoop the CPU cache on accesses.h](jX )}(h``ttm_cached``h]j^ )}(hj h]h ttm_cached}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hX/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:36: ./include/drm/ttm/ttm_caching.hhK0hj ubjt )}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK0hj ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj hK0hjN ubeh}(h]h ]h"]h$]h&]uh1jL hj. ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjMhhhNhNubh)}(hhh](h)}(hTTM device object referenceh]hTTM device object reference}(hj hhhNhNubah}(h]h ]h"]h$]h&]hjbuh1hhj hhhhhK(ubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_global (C struct) c.ttm_globalhNtauh1jhj hhhNhNubj)}(hhh](j)}(h ttm_globalh]j)}(hstruct ttm_globalh](j)}(hstructh]hstruct}(hj= hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9 hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhKubj)}(h h]h }(hjL hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9 hhhjK hKubj)}(h ttm_globalh]j)}(hj7 h]h ttm_global}(hj^ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj9 hhhjK hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5 hhhjK hKubah}(h]j0 ah ](jjeh"]h$]h&]j j )j huh1jhjK hKhj2 hhubj )}(hhh]h)}(h!Buffer object driver global data.h]h!Buffer object driver global data.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhK(hj} hhubah}(h]h ]h"]h$]h&]uh1j hj2 hhhjK hKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhj hNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhK,hj ubh 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; };}hj sbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhK.hj ubh)}(h **Members**h]j7 )}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhK4hj ubjM )}(hhh](jR )}(hq``dummy_read_page`` Pointer to a dummy page used for mapping requests of unpopulated pages. Constant after init. h](jX )}(h``dummy_read_page``h]j^ )}(hj h]hdummy_read_page}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhK/hj ubjt )}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhK.hj ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj hK/hj ubjR )}(hN``device_list`` List of buffer object devices. Protected by ttm_global_mutex. h](jX )}(h``device_list``h]j^ )}(hj) h]h device_list}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj' ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhK5hj# ubjt )}(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.}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhK4hj? ubah}(h]h ]h"]h$]h&]uh1js hj# ubeh}(h]h ]h"]h$]h&]uh1jQ hj> hK5hj ubjR )}(h;``bo_count`` Number of buffer objects allocated by devices.h](jX )}(h ``bo_count``h]j^ )}(hjc h]hbo_count}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hja ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhK9hj] ubjt )}(hhh]h)}(h.Number of buffer objects allocated by devices.h]h.Number of buffer objects allocated by devices.}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhK:hjy ubah}(h]h ]h"]h$]h&]uh1js hj] ubeh}(h]h ]h"]h$]h&]uh1jQ hjx hK9hj ubeh}(h]h ]h"]h$]h&]uh1jL hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_device (C struct) c.ttm_devicehNtauh1jhj hhhNhNubj)}(hhh](j)}(h ttm_deviceh]j)}(hstruct ttm_deviceh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhK@ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hK@ubj)}(h ttm_deviceh]j)}(hj h]h ttm_device}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhj hK@ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hK@ubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj hK@hj hhubj )}(hhh]h)}(h*Buffer object driver device-specific data.h]h*Buffer object driver device-specific data.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhKhj hhubah}(h]h ]h"]h$]h&]uh1j hj hhhj hK@ubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhj hNhNubj- )}(hX,**Definition**:: struct ttm_device { struct list_head device_list; unsigned int alloc_flags; const struct ttm_device_funcs *funcs; struct ttm_resource_manager sysman; struct ttm_resource_manager *man_drv[TTM_NUM_MEM_TYPES]; struct drm_vma_offset_manager *vma_manager; struct ttm_pool pool; spinlock_t lru_lock; struct list_head unevictable; struct address_space *dev_mapping; struct workqueue_struct *wq; }; **Members** ``device_list`` Our entry in the global device list. Constant after bo device init ``alloc_flags`` TTM_ALLOCATION_* flags. ``funcs`` Function table for the device. Constant after bo device init ``sysman`` Resource manager for the system domain. Access via ttm_manager_type. ``man_drv`` An array of resource_managers, one per resource type. ``vma_manager`` Address space manager for finding BOs to mmap. ``pool`` page pool for the device. ``lru_lock`` Protection for the per manager LRU and ddestroy lists. ``unevictable`` Buffer objects which are pinned or swapped and as such not on an LRU list. ``dev_mapping`` A pointer to the struct address_space for invalidating CPU mappings on buffer move. Protected by load/unload sync. ``wq`` Work queue structure for the delayed delete workqueue.h](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhKhj ubj )}(hXstruct ttm_device { struct list_head device_list; unsigned int alloc_flags; const struct ttm_device_funcs *funcs; struct ttm_resource_manager sysman; struct ttm_resource_manager *man_drv[TTM_NUM_MEM_TYPES]; struct drm_vma_offset_manager *vma_manager; struct ttm_pool pool; spinlock_t lru_lock; struct list_head unevictable; struct address_space *dev_mapping; struct workqueue_struct *wq; };h]hXstruct ttm_device { struct list_head device_list; unsigned int alloc_flags; const struct ttm_device_funcs *funcs; struct ttm_resource_manager sysman; struct ttm_resource_manager *man_drv[TTM_NUM_MEM_TYPES]; struct drm_vma_offset_manager *vma_manager; struct ttm_pool pool; spinlock_t lru_lock; struct list_head unevictable; struct address_space *dev_mapping; struct workqueue_struct *wq; };}hj< sbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhKhj ubh)}(h **Members**h]j7 )}(hjM h]hMembers}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjK ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhKhj ubjM )}(hhh](jR )}(hS``device_list`` Our entry in the global device list. Constant after bo device init h](jX )}(h``device_list``h]j^ )}(hjl h]h device_list}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjj ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhKhjf ubjt )}(hhh]h)}(hBOur entry in the global device list. Constant after bo device inith]hBOur entry in the global device list. Constant after bo device init}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhKhj ubah}(h]h ]h"]h$]h&]uh1js hjf ubeh}(h]h ]h"]h$]h&]uh1jQ hj hKhjc ubjR )}(h(``alloc_flags`` TTM_ALLOCATION_* flags. h](jX )}(h``alloc_flags``h]j^ )}(hj h]h alloc_flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhKhj ubjt )}(hhh]h)}(hTTM_ALLOCATION_* flags.h]hTTM_ALLOCATION_* flags.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj hKhjc ubjR )}(hG``funcs`` Function table for the device. Constant after bo device init h](jX )}(h ``funcs``h]j^ )}(hj h]hfuncs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:42: ./include/drm/ttm/ttm_device.hhKhj ubjt )}(hhh]h)}(h)}(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, unsigned int alloc_flags)h](jD)}(hstruct ttm_device *bdevh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h ttm_deviceh]h ttm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.ttm_device_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbdevh]hbdev}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h$const struct ttm_device_funcs *funcsh](j)}(hconsth]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hj? h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j)}(httm_device_funcsh]httm_device_funcs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.ttm_device_initasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hfuncsh]hfuncs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct device *devh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.ttm_device_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct address_space *mappingh](j)}(hj? h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j)}(h address_spaceh]h address_space}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjdmodnameN classnameNjj)}j]jc.ttm_device_initasbuh1hhj@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h*struct drm_vma_offset_manager *vma_managerh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.ttm_device_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h vma_managerh]h vma_manager}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned int alloc_flagsh](j)}(hunsignedh]hunsigned}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hinth]hint}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h alloc_flagsh]h alloc_flags}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj hNhNubj- )}(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. ``unsigned int alloc_flags`` TTM_ALLOCATION_* flags. **Description** Initializes a struct ttm_device: **Return** !0: Failure.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:45: ./drivers/gpu/drm/ttm/ttm_device.chKhjubjM )}(hhh](jR )}(hL``struct ttm_device *bdev`` A pointer to a struct ttm_device to initialize. h](jX )}(h``struct ttm_device *bdev``h]j^ )}(hjh]hstruct ttm_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:45: ./drivers/gpu/drm/ttm/ttm_device.chKhjubjt )}(hhh]h)}(h/A pointer to a struct ttm_device to initialize.h]h/A pointer to a struct ttm_device to initialize.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(hH``const struct ttm_device_funcs *funcs`` Function table for the device. h](jX )}(h(``const struct ttm_device_funcs *funcs``h]j^ )}(hjh]h$const struct ttm_device_funcs *funcs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:45: ./drivers/gpu/drm/ttm/ttm_device.chKhjubjt )}(hhh]h)}(hFunction table for the device.h]hFunction table for the device.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(hX``struct device *dev`` The core kernel device pointer for DMA mappings and allocations. h](jX )}(h``struct device *dev``h]j^ )}(hj*h]hstruct device *dev}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj(ubah}(h]h ]h"]h$]h&]uh1jW h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:45: ./drivers/gpu/drm/ttm/ttm_device.chKhj$ubjt )}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hKhj@ubah}(h]h ]h"]h$]h&]uh1js hj$ubeh}(h]h ]h"]h$]h&]uh1jQ hj?hKhjubjR )}(hH``struct address_space *mapping`` The address space to use for this bo. h](jX )}(h!``struct address_space *mapping``h]j^ )}(hjch]hstruct address_space *mapping}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]uh1jW h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:45: ./drivers/gpu/drm/ttm/ttm_device.chKhj]ubjt )}(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&]uh1hhjxhKhjyubah}(h]h ]h"]h$]h&]uh1js hj]ubeh}(h]h ]h"]h$]h&]uh1jQ hjxhKhjubjR )}(hK``struct drm_vma_offset_manager *vma_manager`` A pointer to a vma manager. h](jX )}(h.``struct drm_vma_offset_manager *vma_manager``h]j^ )}(hjh]h*struct drm_vma_offset_manager *vma_manager}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:45: ./drivers/gpu/drm/ttm/ttm_device.chKhjubjt )}(hhh]h)}(hA pointer to a vma manager.h]hA pointer to a vma manager.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h5``unsigned int alloc_flags`` TTM_ALLOCATION_* flags. h](jX )}(h``unsigned int alloc_flags``h]j^ )}(hjh]hunsigned int alloc_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:45: ./drivers/gpu/drm/ttm/ttm_device.chKhjubjt )}(hhh]h)}(hTTM_ALLOCATION_* flags.h]hTTM_ALLOCATION_* flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:45: ./drivers/gpu/drm/ttm/ttm_device.chKhjubh)}(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:45: ./drivers/gpu/drm/ttm/ttm_device.chKhjubh)}(h **Return**h]j7 )}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj5ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:45: ./drivers/gpu/drm/ttm/ttm_device.chKhjubh)}(h !0: Failure.h]h !0: Failure.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:45: ./drivers/gpu/drm/ttm/ttm_device.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj hhhNhNubeh}(h]jhah ]h"]ttm device object referenceah$]h&]uh1hhjMhhhhhK(ubh)}(hhh](h)}(h TTM resource placement referenceh]h TTM resource placement reference}(hjmhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjjhhhhhK1ubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_place (C struct) c.ttm_placehNtauh1jhjjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:51: ./include/drm/ttm/ttm_placement.hhNubj)}(hhh](j)}(h ttm_placeh]j)}(hstruct ttm_placeh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:51: ./include/drm/ttm/ttm_placement.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(h ttm_placeh]j)}(hjh]h ttm_place}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjjhjhNubj- )}(hX**Definition**:: struct ttm_place { uint64_t fpfn; uint64_t 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](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:51: ./include/drm/ttm/ttm_placement.hhKNhjubj )}(hfstruct ttm_place { uint64_t fpfn; uint64_t lpfn; uint32_t mem_type; uint32_t flags; };h]hfstruct ttm_place { uint64_t fpfn; uint64_t lpfn; uint32_t mem_type; uint32_t flags; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:51: ./include/drm/ttm/ttm_placement.hhKPhjubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:51: ./include/drm/ttm/ttm_placement.hhKWhjubjM )}(hhh](jR )}(h9``fpfn`` first valid page frame number to put the object h](jX )}(h``fpfn``h]j^ )}(hj5h]hfpfn}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj3ubah}(h]h ]h"]h$]h&]uh1jW hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:51: ./include/drm/ttm/ttm_placement.hhKMhj/ubjt )}(hhh]h)}(h/first valid page frame number to put the objecth]h/first valid page frame number to put the object}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKMhjKubah}(h]h ]h"]h$]h&]uh1js hj/ubeh}(h]h ]h"]h$]h&]uh1jQ hjJhKMhj,ubjR )}(h8``lpfn`` last valid page frame number to put the object h](jX )}(h``lpfn``h]j^ )}(hjnh]hlpfn}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:51: ./include/drm/ttm/ttm_placement.hhKNhjhubjt )}(hhh]h)}(h.last valid page frame number to put the objecth]h.last valid page frame number to put the object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1js hjhubeh}(h]h ]h"]h$]h&]uh1jQ hjhKNhj,ubjR )}(hJ``mem_type`` One of TTM_PL_* where the resource should be allocated from. h](jX )}(h ``mem_type``h]j^ )}(hjh]hmem_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:51: ./include/drm/ttm/ttm_placement.hhKOhjubjt )}(hhh]h)}(hubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhK:hj!ubh)}(hPipelined evictions can be spread on multiple entities. This is the max number of entities that can be used by the driver for that purpose.h]hPipelined evictions can be spread on multiple entities. This is the max number of entities that can be used by the driver for that purpose.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhK9hj!ubeh}(h]h ]h"]h$]h&]uh1jhj7hK8hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_lru_item_type (C enum)c.ttm_lru_item_typehNtauh1jhjhhhNhNubj)}(hhh](j)}(httm_lru_item_typeh]j)}(henum ttm_lru_item_typeh](j)}(hjh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhK@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK@ubj)}(httm_lru_item_typeh]j)}(hj~h]httm_lru_item_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhK@ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhK@ubah}(h]jwah ](jjeh"]h$]h&]j j )j huh1jhjhK@hjyhhubj )}(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:57: ./include/drm/ttm/ttm_resource.hhKAhjhhubah}(h]h ]h"]h$]h&]uh1j hjyhhhjhK@ubeh}(h]h ](j! enumeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(hl**Constants** ``TTM_LRU_RESOURCE`` The resource subclass ``TTM_LRU_HITCH`` The iterator hitch subclassh](h)}(h **Constants**h]j7 )}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKEhjubjM )}(hhh](jR )}(h+``TTM_LRU_RESOURCE`` The resource subclass h](jX )}(h``TTM_LRU_RESOURCE``h]j^ )}(hjh]hTTM_LRU_RESOURCE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKHhjubjt )}(hhh]h)}(hThe resource subclassh]hThe resource subclass}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKHhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKHhjubjR )}(h-``TTM_LRU_HITCH`` The iterator hitch subclassh](jX )}(h``TTM_LRU_HITCH``h]j^ )}(hj@h]h TTM_LRU_HITCH}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj>ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKJhj:ubjt )}(hhh]h)}(hThe iterator hitch subclassh]hThe iterator hitch subclass}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKKhjVubah}(h]h ]h"]h$]h&]uh1js hj:ubeh}(h]h ]h"]h$]h&]uh1jQ hjUhKJhjubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_lru_item (C struct)c.ttm_lru_itemhNtauh1jhjhhhNhNubj)}(hhh](j)}(h ttm_lru_itemh]j)}(hstruct ttm_lru_itemh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKPubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKPubj)}(h ttm_lru_itemh]j)}(hjh]h ttm_lru_item}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKPubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKPubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKPhjhhubj )}(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:57: ./include/drm/ttm/ttm_resource.hhKKhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKPubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKOhjubj )}(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&]jjuh1j hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKQhjubh)}(h **Members**h]j7 )}(hj*h]hMembers}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj(ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKVhjubjM )}(hhh](jR )}(h``link`` The list link h](jX )}(h``link``h]j^ )}(hjIh]hlink}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKMhjCubjt )}(hhh]h)}(h The list linkh]h The list link}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hKMhj_ubah}(h]h ]h"]h$]h&]uh1js hjCubeh}(h]h ]h"]h$]h&]uh1jQ hj^hKMhj@ubjR )}(h``type`` The subclass typeh](jX )}(h``type``h]j^ )}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKMhj|ubjt )}(hhh]h)}(hThe subclass typeh]hThe subclass type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKNhjubah}(h]h ]h"]h$]h&]uh1js hj|ubeh}(h]h ]h"]h$]h&]uh1jQ hjhKMhj@ubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_lru_item_init (C function)c.ttm_lru_item_inithNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKUubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKUubj)}(httm_lru_item_inith]j)}(httm_lru_item_inith]httm_lru_item_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKUubj>)}(h8(struct ttm_lru_item *item, enum ttm_lru_item_type type)h](jD)}(hstruct ttm_lru_item *itemh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h ttm_lru_itemh]h ttm_lru_item}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj9modnameN classnameNjj)}j]j)}j}jsbc.ttm_lru_item_initasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hitemh]hitem}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(henum ttm_lru_item_type typeh](j)}(hjh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(httm_lru_item_typeh]httm_lru_item_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jSc.ttm_lru_item_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKUubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKUhjhhubj )}(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:57: ./include/drm/ttm/ttm_resource.hhKUhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKUubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(h{**Parameters** ``struct ttm_lru_item *item`` The item to initialize ``enum ttm_lru_item_type type`` The subclass typeh](h)}(h**Parameters**h]j7 )}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKYhjubjM )}(hhh](jR )}(h5``struct ttm_lru_item *item`` The item to initialize h](jX )}(h``struct ttm_lru_item *item``h]j^ )}(hj@h]hstruct ttm_lru_item *item}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj>ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKVhj:ubjt )}(hhh]h)}(hThe item to initializeh]hThe item to initialize}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhKVhjVubah}(h]h ]h"]h$]h&]uh1js hj:ubeh}(h]h ]h"]h$]h&]uh1jQ hjUhKVhj7ubjR )}(h1``enum ttm_lru_item_type type`` The subclass typeh](jX )}(h``enum ttm_lru_item_type type``h]j^ )}(hjyh]henum ttm_lru_item_type type}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjwubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKXhjsubjt )}(hhh]h)}(hThe subclass typeh]hThe subclass type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKWhjubah}(h]h ]h"]h$]h&]uh1js hjsubeh}(h]h ]h"]h$]h&]uh1jQ hjhKXhj7ubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_resource_manager (C struct)c.ttm_resource_managerhNtauh1jhjhhhNhNubj)}(hhh](j)}(httm_resource_managerh]j)}(hstruct ttm_resource_managerh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhK\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK\ubj)}(httm_resource_managerh]j)}(hjh]httm_resource_manager}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhK\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK\ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhK\hjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjhK\ubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(hX**Definition**:: struct ttm_resource_manager { bool use_type; bool use_tt; struct ttm_device *bdev; uint64_t size; const struct ttm_resource_manager_func *func; spinlock_t eviction_lock; struct dma_fence *eviction_fences[TTM_NUM_MOVE_FENCES]; struct list_head lru[TTM_MAX_BO_PRIORITY]; uint64_t usage; struct dmem_cgroup_region *cg; }; **Members** ``use_type`` The memory type is enabled. ``use_tt`` If a TT object should be used for the backing store. ``bdev`` ttm device this manager belongs to ``size`` Size of the managed region. ``func`` structure pointer implementing the range manager. See above ``eviction_lock`` lock for eviction fences ``eviction_fences`` The fences of the last pipelined move operation. ``lru`` The lru list for this memory type. ``usage`` How much of the resources are used, protected by the bdev->lru_lock. ``cg`` :c:type:`dmem_cgroup_region` used for memory accounting, if not NULL.h](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj&ubh:}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhj"ubj )}(hXfstruct ttm_resource_manager { bool use_type; bool use_tt; struct ttm_device *bdev; uint64_t size; const struct ttm_resource_manager_func *func; spinlock_t eviction_lock; struct dma_fence *eviction_fences[TTM_NUM_MOVE_FENCES]; struct list_head lru[TTM_MAX_BO_PRIORITY]; uint64_t usage; struct dmem_cgroup_region *cg; };h]hXfstruct ttm_resource_manager { bool use_type; bool use_tt; struct ttm_device *bdev; uint64_t size; const struct ttm_resource_manager_func *func; spinlock_t eviction_lock; struct dma_fence *eviction_fences[TTM_NUM_MOVE_FENCES]; struct list_head lru[TTM_MAX_BO_PRIORITY]; uint64_t usage; struct dmem_cgroup_region *cg; };}hjCsbah}(h]h ]h"]h$]h&]jjuh1j hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhj"ubh)}(h **Members**h]j7 )}(hjTh]hMembers}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjRubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhj"ubjM )}(hhh](jR )}(h)``use_type`` The memory type is enabled. h](jX )}(h ``use_type``h]j^ )}(hjsh]huse_type}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjqubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjmubjt )}(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&]uh1js hjmubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjjubjR )}(h@``use_tt`` If a TT object should be used for the backing store. h](jX )}(h ``use_tt``h]j^ )}(hjh]huse_tt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjjubjR )}(h,``bdev`` ttm device this manager belongs to h](jX )}(h``bdev``h]j^ )}(hjh]hbdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjjubjR )}(h%``size`` Size of the managed region. h](jX )}(h``size``h]j^ )}(hjh]hsize}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjubjt )}(hhh]h)}(hSize of the managed region.h]hSize of the managed region.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKhj4ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj3hKhjjubjR )}(hE``func`` structure pointer implementing the range manager. See above h](jX )}(h``func``h]j^ )}(hjWh]hfunc}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjUubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjQubjt )}(hhh]h)}(h;structure pointer implementing the range manager. See aboveh]h;structure pointer implementing the range manager. See above}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKhjmubah}(h]h ]h"]h$]h&]uh1js hjQubeh}(h]h ]h"]h$]h&]uh1jQ hjlhKhjjubjR )}(h+``eviction_lock`` lock for eviction fences h](jX )}(h``eviction_lock``h]j^ )}(hjh]h eviction_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjubjt )}(hhh]h)}(hlock for eviction fencesh]hlock for eviction fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjjubjR )}(hE``eviction_fences`` The fences of the last pipelined move operation. h](jX )}(h``eviction_fences``h]j^ )}(hjh]heviction_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjubjt )}(hhh]h)}(h0The fences of the last pipelined move operation.h]h0The fences of the last pipelined move operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjjubjR )}(h+``lru`` The lru list for this memory type. h](jX )}(h``lru``h]j^ )}(hj h]hlru}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjubjt )}(hhh]h)}(h"The lru list for this memory type.h]h"The lru list for this memory type.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hKhjjubjR )}(hO``usage`` How much of the resources are used, protected by the bdev->lru_lock. h](jX )}(h ``usage``h]j^ )}(hj; h]husage}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj9 ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhj5 ubjt )}(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.}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjQ ubah}(h]h ]h"]h$]h&]uh1js hj5 ubeh}(h]h ]h"]h$]h&]uh1jQ hjP hKhjjubjR )}(hL``cg`` :c:type:`dmem_cgroup_region` used for memory accounting, if not NULL.h](jX )}(h``cg``h]j^ )}(hju h]hcg}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjs ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjo ubjt )}(hhh]h)}(hE:c:type:`dmem_cgroup_region` used for memory accounting, if not NULL.h](h)}(h:c:type:`dmem_cgroup_region`h]j^ )}(hj h]hdmem_cgroup_region}(hj hhhNhNubah}(h]h ](xrefj! c-typeeh"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]refdoc gpu/drm-mm refdomainj! reftypetype refexplicitrefwarnjj)}j]sb reftargetdmem_cgroup_regionuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhj ubh) used for memory accounting, if not NULL.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1js hjo ubeh}(h]h ]h"]h$]h&]uh1jQ hj hKhjjubeh}(h]h ]h"]h$]h&]uh1jL hj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjhhubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_bus_placement (C struct)c.ttm_bus_placementhNtauh1jhjhhhNhNubj)}(hhh](j)}(httm_bus_placementh]j)}(hstruct ttm_bus_placementh](j)}(hj? h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKubj)}(h h]h }(hj)!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj(!hKubj)}(httm_bus_placementh]j)}(hj!h]httm_bus_placement}(hj;!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7!ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj!hhhj(!hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj(!hKubah}(h]j!ah ](jjeh"]h$]h&]j j )j huh1jhj(!hKhj!hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj!hhhj(!hKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jf!j( jf!j) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjr!hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjn!ubh:}(hjn!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjj!ubj )}(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; };}hj!sbah}(h]h ]h"]h$]h&]jjuh1j hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjj!ubh)}(h **Members**h]j7 )}(hj!h]hMembers}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj!ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjj!ubjM )}(hhh](jR )}(h ``addr`` mapped virtual address h](jX )}(h``addr``h]j^ )}(hj!h]haddr}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj!ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhj!ubjt )}(hhh]h)}(hmapped virtual addressh]hmapped virtual address}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hKhj!ubah}(h]h ]h"]h$]h&]uh1js hj!ubeh}(h]h ]h"]h$]h&]uh1jQ hj!hKhj!ubjR )}(h``offset`` physical addr h](jX )}(h ``offset``h]j^ )}(hj!h]hoffset}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj!ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhj!ubjt )}(hhh]h)}(h physical addrh]h physical addr}(hj "hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj "hKhj "ubah}(h]h ]h"]h$]h&]uh1js hj!ubeh}(h]h ]h"]h$]h&]uh1jQ hj "hKhj!ubjR )}(h!``is_iomem`` is this io memory ? h](jX )}(h ``is_iomem``h]j^ )}(hj-"h]his_iomem}(hj/"hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj+"ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhj'"ubjt )}(hhh]h)}(his this io memory ?h]his this io memory ?}(hjF"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB"hKhjC"ubah}(h]h ]h"]h$]h&]uh1js hj'"ubeh}(h]h ]h"]h$]h&]uh1jQ hjB"hKhj!ubjR )}(h ``caching`` See enum ttm_cachingh](jX )}(h ``caching``h]j^ )}(hjf"h]hcaching}(hjh"hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjd"ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhj`"ubjt )}(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:57: ./include/drm/ttm/ttm_resource.hhKhj|"ubah}(h]h ]h"]h$]h&]uh1js hj`"ubeh}(h]h ]h"]h$]h&]uh1jQ hj{"hKhj!ubeh}(h]h ]h"]h$]h&]uh1jL hjj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj"ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjhhubh)}(h4Structure indicating the bus placement of an object.h]h4Structure indicating the bus placement of an object.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_resource (C struct)c.ttm_resourcehNtauh1jhjhhhNhNubj)}(hhh](j)}(h ttm_resourceh]j)}(hstruct ttm_resourceh](j)}(hj? h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhj"hKubj)}(h ttm_resourceh]j)}(hj"h]h ttm_resource}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj"hhhj"hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj"hKubah}(h]j"ah ](jjeh"]h$]h&]j j )j huh1jhj"hKhj"hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj"hhhj"hKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j2#j( j2#j) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hj>#hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj:#ubh:}(hj:#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhj6#ubj )}(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; };}hjW#sbah}(h]h ]h"]h$]h&]jjuh1j hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj6#ubh)}(h **Members**h]j7 )}(hjh#h]hMembers}(hjj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjf#ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM hj6#ubjM )}(hhh](jR )}(h#``start`` Start of the allocation. h](jX )}(h ``start``h]j^ )}(hj#h]hstart}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhj#ubjt )}(hhh]h)}(hStart of the allocation.h]hStart of the allocation.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj#ubah}(h]h ]h"]h$]h&]uh1js hj#ubeh}(h]h ]h"]h$]h&]uh1jQ hj#hKhj~#ubjR )}(h+``size`` Actual size of resource in bytes. h](jX )}(h``size``h]j^ )}(hj#h]hsize}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhj#ubjt )}(hhh]h)}(h!Actual size of resource in bytes.h]h!Actual size of resource in bytes.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj#ubah}(h]h ]h"]h$]h&]uh1js hj#ubeh}(h]h ]h"]h$]h&]uh1jQ hj#hKhj~#ubjR )}(h.``mem_type`` Resource type of the allocation. h](jX )}(h ``mem_type``h]j^ )}(hj#h]hmem_type}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj#ubjt )}(hhh]h)}(h Resource type of the allocation.h]h Resource type of the allocation.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1js hj#ubeh}(h]h ]h"]h$]h&]uh1jQ hj$hMhj~#ubjR )}(h``placement`` Placement flags. h](jX )}(h ``placement``h]j^ )}(hj2$h]h placement}(hj4$hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj0$ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj,$ubjt )}(hhh]h)}(hPlacement flags.h]hPlacement flags.}(hjK$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG$hMhjH$ubah}(h]h ]h"]h$]h&]uh1js hj,$ubeh}(h]h ]h"]h$]h&]uh1jQ hjG$hMhj~#ubjR )}(h2``bus`` Placement on io bus accessible to the CPU h](jX )}(h``bus``h]j^ )}(hjk$h]hbus}(hjm$hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hji$ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhje$ubjt )}(hhh]h)}(h)Placement on io bus accessible to the CPUh]h)Placement on io bus accessible to the CPU}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1js hje$ubeh}(h]h ]h"]h$]h&]uh1jQ hj$hMhj~#ubjR )}(hC``bo`` weak reference to the BO, protected by ttm_device::lru_lock h](jX )}(h``bo``h]j^ )}(hj$h]hbo}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj$ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj$ubjt )}(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}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1js hj$ubeh}(h]h ]h"]h$]h&]uh1jQ hj$hMhj~#ubjR )}(h1``css`` cgroup state this resource is charged to h](jX )}(h``css``h]j^ )}(hj$h]hcss}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj$ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj$ubjt )}(hhh]h)}(h(cgroup state this resource is charged toh]h(cgroup state this resource is charged to}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1js hj$ubeh}(h]h ]h"]h$]h&]uh1jQ hj$hMhj~#ubjR )}(h_``lru`` Least recently used list, see :c:type:`ttm_resource_manager.lru `h](jX )}(h``lru``h]j^ )}(hj%h]hlru}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj%ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj%ubjt )}(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^ )}(hj9%h]httm_resource_manager.lru}(hj;%hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj7%ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j ttm_resource_manageruh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj/%ubeh}(h]h ]h"]h$]h&]uh1hhjV%hMhj,%ubah}(h]h ]h"]h$]h&]uh1js hj%ubeh}(h]h ]h"]h$]h&]uh1jQ hj+%hMhj~#ubeh}(h]h ]h"]h$]h&]uh1jL hj6#ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hjx%h]h Description}(hjz%hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjv%ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhjhhubh)}(hOStructure indicating the placement and space resources used by a buffer object.h]hOStructure indicating the placement and space resources used by a buffer object.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j ttm_lru_item_to_res (C function)c.ttm_lru_item_to_reshNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj%hMubh)}(hhh]j)}(h ttm_resourceh]h ttm_resource}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj%modnameN classnameNjj)}j]j)}j}ttm_lru_item_to_ressbc.ttm_lru_item_to_resasbuh1hhj%hhhj%hMubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj%hMubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj%hMubj)}(httm_lru_item_to_resh]j)}(hj%h]httm_lru_item_to_res}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj%hhhj%hMubj>)}(h(struct ttm_lru_item *item)h]jD)}(hstruct ttm_lru_item *itemh](j)}(hj? h]hstruct}(hj0&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,&ubj)}(h h]h }(hj=&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,&ubh)}(hhh]j)}(h ttm_lru_itemh]h ttm_lru_item}(hjN&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK&ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjP&modnameN classnameNjj)}j]j%c.ttm_lru_item_to_resasbuh1hhj,&ubj)}(h h]h }(hjl&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,&ubj)}(hjh]h*}(hjz&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,&ubj)}(hitemh]hitem}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj(&ubah}(h]h ]h"]h$]h&]jjuh1j=hj%hhhj%hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj%hMubah}(h]j%ah ](jjeh"]h$]h&]j j )j huh1jhj%hMhj%hhubj )}(hhh]h)}(h7Downcast a struct ttm_lru_item to a struct ttm_resourceh]h7Downcast a struct ttm_lru_item to a struct ttm_resource}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj&hhubah}(h]h ]h"]h$]h&]uh1j hj%hhhj%hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j&j( j&j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj&ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj&ubjM )}(hhh]jR )}(hB``struct ttm_lru_item *item`` The struct ttm_lru_item to downcast h](jX )}(h``struct ttm_lru_item *item``h]j^ )}(hj&h]hstruct ttm_lru_item *item}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj&ubjt )}(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&]uh1hhj'hMhj'ubah}(h]h ]h"]h$]h&]uh1js hj&ubeh}(h]h ]h"]h$]h&]uh1jQ hj'hMhj&ubah}(h]h ]h"]h$]h&]uh1jL hj&ubh)}(h **Return**h]j7 )}(hj-'h]hReturn}(hj/'hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj+'ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj&ubh)}(h,Pointer to the embedding struct ttm_resourceh]h,Pointer to the embedding struct ttm_resource}(hjC'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j ttm_lru_bulk_move_pos (C struct)c.ttm_lru_bulk_move_poshNtauh1jhjhhhNhNubj)}(hhh](j)}(httm_lru_bulk_move_posh]j)}(hstruct ttm_lru_bulk_move_posh](j)}(hj? h]hstruct}(hjr'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn'hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM!ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn'hhhj'hM!ubj)}(httm_lru_bulk_move_posh]j)}(hjl'h]httm_lru_bulk_move_pos}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjn'hhhj'hM!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjj'hhhj'hM!ubah}(h]je'ah ](jjeh"]h$]h&]j j )j huh1jhj'hM!hjg'hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjg'hhhj'hM!ubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j'j( j'j) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj'ubh:}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM)hj'ubj )}(h`struct ttm_lru_bulk_move_pos { struct ttm_resource *first; struct ttm_resource *last; };h]h`struct ttm_lru_bulk_move_pos { struct ttm_resource *first; struct ttm_resource *last; };}hj'sbah}(h]h ]h"]h$]h&]jjuh1j hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM+hj'ubh)}(h **Members**h]j7 )}(hj'h]hMembers}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj'ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM0hj'ubjM )}(hhh](jR )}(h+``first`` first res in the bulk move range h](jX )}(h ``first``h]j^ )}(hj(h]hfirst}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj(ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM(hj (ubjt )}(hhh]h)}(h first res in the bulk move rangeh]h first res in the bulk move range}(hj+(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'(hM(hj((ubah}(h]h ]h"]h$]h&]uh1js hj (ubeh}(h]h ]h"]h$]h&]uh1jQ hj'(hM(hj (ubjR )}(h(``last`` last res in the bulk move rangeh](jX )}(h``last``h]j^ )}(hjK(h]hlast}(hjM(hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjI(ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM(hjE(ubjt )}(hhh]h)}(hlast res in the bulk move rangeh]hlast res in the bulk move range}(hjd(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM)hja(ubah}(h]h ]h"]h$]h&]uh1js hjE(ubeh}(h]h ]h"]h$]h&]uh1jQ hj`(hM(hj (ubeh}(h]h ]h"]h$]h&]uh1jL hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj(ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM,hjhhubh)}(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:57: ./include/drm/ttm/ttm_resource.hhM&hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_lru_bulk_move (C struct)c.ttm_lru_bulk_movehNtauh1jhjhhhNhNubj)}(hhh](j)}(httm_lru_bulk_moveh]j)}(hstruct ttm_lru_bulk_moveh](j)}(hj? h]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM+ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj(hM+ubj)}(httm_lru_bulk_moveh]j)}(hj(h]httm_lru_bulk_move}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj(hhhj(hM+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj(hM+ubah}(h]j(ah ](jjeh"]h$]h&]j j )j huh1jhj(hM+hj(hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj(hhhj(hM+ubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j)j( j)j) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hj#)hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj)ubh:}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM6hj)ubj )}(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&]jjuh1j hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM8hj)ubh)}(h **Members**h]j7 )}(hjM)h]hMembers}(hjO)hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjK)ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM=hj)ubjM )}(hhh](jR )}(hG``pos`` first/last lru entry for resources in the each domain/priority h](jX )}(h``pos``h]j^ )}(hjl)h]hpos}(hjn)hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjj)ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM4hjf)ubjt )}(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)hM4hj)ubah}(h]h ]h"]h$]h&]uh1js hjf)ubeh}(h]h ]h"]h$]h&]uh1jQ hj)hM4hjc)ubjR )}(h``cursor_list`` The list of cursors currently traversing any of the sublists of **pos**. Protected by the ttm device's lru_lock.h](jX )}(h``cursor_list``h]j^ )}(hj)h]h cursor_list}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj)ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM5hj)ubjt )}(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)hhhNhNubj7 )}(h**pos**h]hpos}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj)ubh+. Protected by the ttm device’s lru_lock.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj)hM5hj)ubah}(h]h ]h"]h$]h&]uh1js hj)ubeh}(h]h ]h"]h$]h&]uh1jQ hj)hM5hjc)ubeh}(h]h ]h"]h$]h&]uh1jL hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj)ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM9hjhhubh)}(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:57: ./include/drm/ttm/ttm_resource.hhM6hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_resource_cursor (C struct)c.ttm_resource_cursorhNtauh1jhjhhhNhNubj)}(hhh](j)}(httm_resource_cursorh]j)}(hstruct ttm_resource_cursorh](j)}(hj? h]hstruct}(hj7*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3*hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM?ubj)}(h h]h }(hjE*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3*hhhjD*hM?ubj)}(httm_resource_cursorh]j)}(hj1*h]httm_resource_cursor}(hjW*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS*ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj3*hhhjD*hM?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/*hhhjD*hM?ubah}(h]j**ah ](jjeh"]h$]h&]j j )j huh1jhjD*hM?hj,*hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj,*hhhjD*hM?ubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j*j( j*j) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj*ubh:}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMGhj*ubj )}(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&]jjuh1j hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMIhj*ubh)}(h **Members**h]j7 )}(hj*h]hMembers}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj*ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMRhj*ubjM )}(hhh](jR )}(h;``man`` The resource manager currently being iterated over h](jX )}(h``man``h]j^ )}(hj*h]hman}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj*ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMEhj*ubjt )}(hhh]h)}(h2The resource manager currently being iterated overh]h2The resource manager currently being iterated over}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMEhj*ubah}(h]h ]h"]h$]h&]uh1js hj*ubeh}(h]h ]h"]h$]h&]uh1jQ hj*hMEhj*ubjR )}(hO``hitch`` A hitch list node inserted before the next resource to iterate over. h](jX )}(h ``hitch``h]j^ )}(hj+h]hhitch}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj+ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMGhj +ubjt )}(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:57: ./include/drm/ttm/ttm_resource.hhMFhj&+ubah}(h]h ]h"]h$]h&]uh1js hj +ubeh}(h]h ]h"]h$]h&]uh1jQ hj%+hMGhj*ubjR )}(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](jX )}(h ``bulk_link``h]j^ )}(hjJ+h]h bulk_link}(hjL+hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjH+ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMIhjD+ubjt )}(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 }(hjc+hhhNhNubj7 )}(h**bulk**h]hbulk}(hjk+hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjc+ubh+. Protected by the ttm device’s lru_lock.}(hjc+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMHhj`+ubah}(h]h ]h"]h$]h&]uh1js hjD+ubeh}(h]h ]h"]h$]h&]uh1jQ hj_+hMIhj*ubjR )}(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](jX )}(h``bulk``h]j^ )}(hj+h]hbulk}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj+ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMMhj+ubjt )}(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+hhhNhNubj7 )}(h **hitch**h]hhitch}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj+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:57: ./include/drm/ttm/ttm_resource.hhMJhj+ubah}(h]h ]h"]h$]h&]uh1js hj+ubeh}(h]h ]h"]h$]h&]uh1jQ hj+hMMhj*ubjR )}(hh``mem_type`` The memory type of the LRU list being traversed. This field is valid iff **bulk** != NULL. h](jX )}(h ``mem_type``h]j^ )}(hj+h]hmem_type}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj+ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMOhj+ubjt )}(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+hhhNhNubj7 )}(h**bulk**h]hbulk}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj+ubh != NULL.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMNhj+ubah}(h]h ]h"]h$]h&]uh1js hj+ubeh}(h]h ]h"]h$]h&]uh1jQ hj+hMOhj*ubjR )}(h!``priority`` the current priorityh](jX )}(h ``priority``h]j^ )}(hj.,h]hpriority}(hj0,hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj,,ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMOhj(,ubjt )}(hhh]h)}(hthe current priorityh]hthe current priority}(hjG,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMPhjD,ubah}(h]h ]h"]h$]h&]uh1js hj(,ubeh}(h]h ]h"]h$]h&]uh1jQ hjC,hMOhj*ubeh}(h]h ]h"]h$]h&]uh1jL hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hjq,h]h Description}(hjs,hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjo,ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMShjhhubh)}(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:57: ./include/drm/ttm/ttm_resource.hhMPhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_kmap_iter_iomap (C struct)c.ttm_kmap_iter_iomaphNtauh1jhjhhhNhNubj)}(hhh](j)}(httm_kmap_iter_iomaph]j)}(hstruct ttm_kmap_iter_iomaph](j)}(hj? h]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMUubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj,hMUubj)}(httm_kmap_iter_iomaph]j)}(hj,h]httm_kmap_iter_iomap}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj,hhhj,hMUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhj,hMUubah}(h]j,ah ](jjeh"]h$]h&]j j )j huh1jhj,hMUhj,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:57: ./include/drm/ttm/ttm_resource.hhMbhj,hhubah}(h]h ]h"]h$]h&]uh1j hj,hhhj,hMUubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j -j( j -j) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj-ubh:}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMfhj -ubj )}(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&]jjuh1j hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhhj -ubh)}(h **Members**h]j7 )}(hj?-h]hMembers}(hjA-hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj=-ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMuhj -ubjM )}(hhh](jR )}(hF``base`` Embedded struct ttm_kmap_iter providing the usage interface. h](jX )}(h``base``h]j^ )}(hj^-h]hbase}(hj`-hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj\-ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMehjX-ubjt )}(hhh]h)}(hsgl) - **start** == 0 for **iomap** start. h](jX )}(h ``start``h]j^ )}(hj.h]hstart}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj.ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMihj.ubjt )}(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 }(hj4.hhhNhNubj7 )}(h**st**h]hst}(hj<.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj4.ubh# to make sg_dma_address(st->sgl) - }(hj4.hhhNhNubj7 )}(h **start**h]hstart}(hjN.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj4.ubh == 0 for }(hj4.hhhNhNubj7 )}(h **iomap**h]hiomap}(hj`.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj4.ubh start.}(hj4.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhhj1.ubah}(h]h ]h"]h$]h&]uh1js hj.ubeh}(h]h ]h"]h$]h&]uh1jQ hj0.hMihjU-ubjR )}(h8``cache`` Scatterlist traversal cache for fast lookups. h](jX )}(h ``cache``h]j^ )}(hj.h]hcache}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj.ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMjhj.ubjt )}(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.hMjhj.ubah}(h]h ]h"]h$]h&]uh1js hj.ubeh}(h]h ]h"]h$]h&]uh1jQ hj.hMjhjU-ubjR )}(hB``cache.sg`` Pointer to the currently cached scatterlist segment. h](jX )}(h ``cache.sg``h]j^ )}(hj.h]hcache.sg}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj.ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMkhj.ubjt )}(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.hMkhj.ubah}(h]h ]h"]h$]h&]uh1js hj.ubeh}(h]h ]h"]h$]h&]uh1jQ hj.hMkhjU-ubjR )}(h:``cache.i`` First index of **sg**. PAGE_SIZE granularity. h](jX )}(h ``cache.i``h]j^ )}(hj.h]hcache.i}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj.ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMlhj.ubjt )}(hhh]h)}(h-First index of **sg**. PAGE_SIZE granularity.h](hFirst index of }(hj/hhhNhNubj7 )}(h**sg**h]hsg}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj/ubh. PAGE_SIZE granularity.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/hMlhj/ubah}(h]h ]h"]h$]h&]uh1js hj.ubeh}(h]h ]h"]h$]h&]uh1jQ hj/hMlhjU-ubjR )}(h?``cache.end`` Last index + 1 of **sg**. PAGE_SIZE granularity. h](jX )}(h ``cache.end``h]j^ )}(hjH/h]h cache.end}(hjJ/hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjF/ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMmhjB/ubjt )}(hhh]h)}(h0Last index + 1 of **sg**. PAGE_SIZE granularity.h](hLast index + 1 of }(hja/hhhNhNubj7 )}(h**sg**h]hsg}(hji/hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hja/ubh. PAGE_SIZE granularity.}(hja/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]/hMmhj^/ubah}(h]h ]h"]h$]h&]uh1js hjB/ubeh}(h]h ]h"]h$]h&]uh1jQ hj]/hMmhjU-ubjR )}(hL``cache.offs`` First offset into **iomap** of **sg**. PAGE_SIZE granularity.h](jX )}(h``cache.offs``h]j^ )}(hj/h]h cache.offs}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj/ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMmhj/ubjt )}(hhh]h)}(h=First offset into **iomap** of **sg**. PAGE_SIZE granularity.h](hFirst offset into }(hj/hhhNhNubj7 )}(h **iomap**h]hiomap}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj/ubh of }(hj/hhhNhNubj7 )}(h**sg**h]hsg}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj/ubh. PAGE_SIZE granularity.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMnhj/ubah}(h]h ]h"]h$]h&]uh1js hj/ubeh}(h]h ]h"]h$]h&]uh1jQ hj/hMmhjU-ubeh}(h]h ]h"]h$]h&]uh1jL hj -ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"ttm_kmap_iter_linear_io (C struct)c.ttm_kmap_iter_linear_iohNtauh1jhjhhhNhNubj)}(hhh](j)}(httm_kmap_iter_linear_ioh]j)}(hstruct ttm_kmap_iter_linear_ioh](j)}(hj? h]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 0hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMtubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 0hhhj0hMtubj)}(httm_kmap_iter_linear_ioh]j)}(hj 0h]httm_kmap_iter_linear_io}(hj10hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-0ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj 0hhhj0hMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj 0hhhj0hMtubah}(h]j0ah ](jjeh"]h$]h&]j j )j huh1jhj0hMthj0hhubj )}(hhh]h)}(h%Iterator specialization for linear ioh]h%Iterator specialization for linear io}(hjS0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhM}hjP0hhubah}(h]h ]h"]h$]h&]uh1j hj0hhhj0hMtubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jk0j( jk0j) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjw0hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjs0ubh:}(hjs0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhjo0ubj )}(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; };}hj0sbah}(h]h ]h"]h$]h&]jjuh1j hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhjo0ubh)}(h **Members**h]j7 )}(hj0h]hMembers}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj0ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhjo0ubjM )}(hhh](jR )}(h``base`` The base iterator h](jX )}(h``base``h]j^ )}(hj0h]hbase}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj0ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj0ubjt )}(hhh]h)}(hThe base iteratorh]hThe base iterator}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1js hj0ubeh}(h]h ]h"]h$]h&]uh1jQ hj0hMhj0ubjR )}(h6``dmap`` Points to the starting address of the region h](jX )}(h``dmap``h]j^ )}(hj0h]hdmap}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj0ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj0ubjt )}(hhh]h)}(h,Points to the starting address of the regionh]h,Points to the starting address of the region}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1js hj0ubeh}(h]h ]h"]h$]h&]uh1jQ hj1hMhj0ubjR )}(h0``needs_unmap`` Whether we need to unmap on finih](jX )}(h``needs_unmap``h]j^ )}(hj21h]h needs_unmap}(hj41hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj01ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj,1ubjt )}(hhh]h)}(h Whether we need to unmap on finih]h Whether we need to unmap on fini}(hjK1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhjH1ubah}(h]h ]h"]h$]h&]uh1js hj,1ubeh}(h]h ]h"]h$]h&]uh1jQ hjG1hMhj0ubeh}(h]h ]h"]h$]h&]uh1jL hjo0ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*ttm_resource_manager_set_used (C function)c.ttm_resource_manager_set_usedhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hMubj)}(httm_resource_manager_set_usedh]j)}(httm_resource_manager_set_usedh]httm_resource_manager_set_used}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj1hhhj1hMubj>)}(h-(struct ttm_resource_manager *man, bool used)h](jD)}(h struct ttm_resource_manager *manh](j)}(hj? h]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj1modnameN classnameNjj)}j]j)}j}j1sbc.ttm_resource_manager_set_usedasbuh1hhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hmanh]hman}(hj"2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj1ubjD)}(h bool usedh](j)}(hboolh]hbool}(hj;2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj72ubj)}(h h]h }(hjI2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj72ubj)}(husedh]hused}(hjW2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj72ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj1ubeh}(h]h ]h"]h$]h&]jjuh1j=hj1hhhj1hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj1hMubah}(h]j1ah ](jjeh"]h$]h&]j j )j huh1jhj1hMhj1hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj1hhhj1hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j2j( j2j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj2ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj2ubjM )}(hhh](jR )}(h>``struct ttm_resource_manager *man`` A memory manager object. h](jX )}(h$``struct ttm_resource_manager *man``h]j^ )}(hj2h]h struct ttm_resource_manager *man}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj2ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj2ubjt )}(hhh]h)}(hA memory manager object.h]hA memory manager object.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1js hj2ubeh}(h]h ]h"]h$]h&]uh1jQ hj2hMhj2ubjR )}(h"``bool used`` usage state to set. h](jX )}(h ``bool used``h]j^ )}(hj2h]h bool used}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj2ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj2ubjt )}(hhh]h)}(husage state to set.h]husage state to set.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1js hj2ubeh}(h]h ]h"]h$]h&]uh1jQ hj3hMhj2ubeh}(h]h ]h"]h$]h&]uh1jL hj2ubh)}(h**Description**h]j7 )}(hj'3h]h Description}(hj)3hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj%3ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj2ubh)}(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=3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&ttm_resource_manager_used (C function)c.ttm_resource_manager_usedhNtauh1jhjhhhNhNubj)}(hhh](j)}(hAbool ttm_resource_manager_used (struct ttm_resource_manager *man)h]j)}(h@bool ttm_resource_manager_used(struct ttm_resource_manager *man)h](j)}(hj=2h]hbool}(hjl3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh3hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMubj)}(h h]h }(hjz3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh3hhhjy3hMubj)}(httm_resource_manager_usedh]j)}(httm_resource_manager_usedh]httm_resource_manager_used}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjh3hhhjy3hMubj>)}(h"(struct ttm_resource_manager *man)h]jD)}(h struct ttm_resource_manager *manh](j)}(hj? h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj3modnameN classnameNjj)}j]j)}j}j3sbc.ttm_resource_manager_usedasbuh1hhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hmanh]hman}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj3ubah}(h]h ]h"]h$]h&]jjuh1j=hjh3hhhjy3hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjd3hhhjy3hMubah}(h]j_3ah ](jjeh"]h$]h&]j j )j huh1jhjy3hMhja3hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hja3hhhjy3hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j44j( j44j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj>4h]h Parameters}(hj@4hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj<4ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj84ubjM )}(hhh]jR )}(hC``struct ttm_resource_manager *man`` Manager to get used state for h](jX )}(h$``struct ttm_resource_manager *man``h]j^ )}(hj]4h]h struct ttm_resource_manager *man}(hj_4hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj[4ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhjW4ubjt )}(hhh]h)}(hManager to get used state forh]hManager to get used state for}(hjv4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr4hMhjs4ubah}(h]h ]h"]h$]h&]uh1js hjW4ubeh}(h]h ]h"]h$]h&]uh1jQ hjr4hMhjT4ubah}(h]h ]h"]h$]h&]uh1jL hj84ubh)}(h**Description**h]j7 )}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj4ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj84ubh)}(h"Get the in use flag for a manager.h]h"Get the in use flag for a manager.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj84ubh)}(h **Return**h]j7 )}(hj4h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj4ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj84ubh)}(htrue is used, false if not.h]htrue is used, false if not.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj84ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)ttm_resource_manager_cleanup (C function)c.ttm_resource_manager_cleanuphNtauh1jhjhhhNhNubj)}(hhh](j)}(hDvoid ttm_resource_manager_cleanup (struct ttm_resource_manager *man)h]j)}(hCvoid ttm_resource_manager_cleanup(struct ttm_resource_manager *man)h](j)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhj5hMubj)}(httm_resource_manager_cleanuph]j)}(httm_resource_manager_cleanuph]httm_resource_manager_cleanup}(hj%5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!5ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj5hhhj5hMubj>)}(h"(struct ttm_resource_manager *man)h]jD)}(h struct ttm_resource_manager *manh](j)}(hj? h]hstruct}(hjA5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=5ubj)}(h h]h }(hjN5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=5ubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hj_5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\5ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetja5modnameN classnameNjj)}j]j)}j}j'5sbc.ttm_resource_manager_cleanupasbuh1hhj=5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=5ubj)}(hmanh]hman}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj95ubah}(h]h ]h"]h$]h&]jjuh1j=hj5hhhj5hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhj5hMubah}(h]j4ah ](jjeh"]h$]h&]j j )j huh1jhj5hMhj4hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj4hhhj5hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j5j( j5j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj5ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj5ubjM )}(hhh]jR )}(h>``struct ttm_resource_manager *man`` A memory manager object. h](jX )}(h$``struct ttm_resource_manager *man``h]j^ )}(hj5h]h struct ttm_resource_manager *man}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj5ubjt )}(hhh]h)}(hA memory manager object.h]hA memory manager object.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 6hMhj 6ubah}(h]h ]h"]h$]h&]uh1js hj5ubeh}(h]h ]h"]h$]h&]uh1jQ hj 6hMhj5ubah}(h]h ]h"]h$]h&]uh1jL hj5ubh)}(h**Description**h]j7 )}(hj16h]h Description}(hj36hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj/6ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj5ubh)}(h7Cleanup the move fences from the memory manager object.h]h7Cleanup the move fences from the memory manager object.}(hjG6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j+ttm_resource_manager_for_each_res (C macro)#c.ttm_resource_manager_for_each_reshNtauh1jhjhhhNhNubj)}(hhh](j)}(h!ttm_resource_manager_for_each_resh]j)}(h!ttm_resource_manager_for_each_resh]j)}(h!ttm_resource_manager_for_each_resh]j)}(hjp6h]h!ttm_resource_manager_for_each_res}(hjz6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv6ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjr6hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjn6hhhj6hMubah}(h]ji6ah ](jjeh"]h$]h&]j j )j huh1jhj6hMhjk6hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjk6hhhj6hMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' j6j( j6j) j* j+ uh1jhhhjhNhNubh)}(h3``ttm_resource_manager_for_each_res (cursor, res)``h]j^ )}(hj6h]h/ttm_resource_manager_for_each_res (cursor, res)}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj6ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhjhhubj )}(hiterate over all resources h]h)}(hiterate over all resourcesh]hiterate over all resources}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6hMhjhhubj- )}(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]j7 )}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj6ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj6ubjM )}(hhh](jR )}(h?``cursor`` struct ttm_resource_cursor for the current position h](jX )}(h ``cursor``h]j^ )}(hj7h]hcursor}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj6ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj6ubjt )}(hhh]h)}(h3struct ttm_resource_cursor for the current positionh]h3struct ttm_resource_cursor for the current position}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1js hj6ubeh}(h]h ]h"]h$]h&]uh1jQ hj7hMhj6ubjR )}(h``res`` the current resource h](jX )}(h``res``h]j^ )}(hj97h]hres}(hj;7hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj77ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj37ubjt )}(hhh]h)}(hthe current resourceh]hthe current resource}(hjR7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN7hMhjO7ubah}(h]h ]h"]h$]h&]uh1js hj37ubeh}(h]h ]h"]h$]h&]uh1jQ hjN7hMhj6ubeh}(h]h ]h"]h$]h&]uh1jL hj6ubh)}(h**Description**h]j7 )}(hjt7h]h Description}(hjv7hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjr7ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj6ubh)}(h?Iterate over all the evictable resources in a resource manager.h]h?Iterate over all the evictable resources in a resource manager.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:57: ./include/drm/ttm/ttm_resource.hhMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#ttm_lru_bulk_move_init (C function)c.ttm_lru_bulk_move_inithNtauh1jhjhhhNhNubj)}(hhh](j)}(h)}(h (struct ttm_lru_bulk_move *bulk)h]jD)}(hstruct ttm_lru_bulk_move *bulkh](j)}(hj? h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(httm_lru_bulk_moveh]httm_lru_bulk_move}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj8modnameN classnameNjj)}j]j)}j}j7sbc.ttm_lru_bulk_move_initasbuh1hhj7ubj)}(h h]h }(hj48hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjB8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hbulkh]hbulk}(hjO8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj7ubah}(h]h ]h"]h$]h&]jjuh1j=hj7hhhj7hKxubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hKxubah}(h]j7ah ](jjeh"]h$]h&]j j )j huh1jhj7hKxhj7hhubj )}(hhh]h)}(h initialize a bulk move structureh]h initialize a bulk move structure}(hjy8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKxhjv8hhubah}(h]h ]h"]h$]h&]uh1j hj7hhhj7hKxubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j8j( j8j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj8ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chK|hj8ubjM )}(hhh]jR )}(h9``struct ttm_lru_bulk_move *bulk`` the structure to init h](jX )}(h"``struct ttm_lru_bulk_move *bulk``h]j^ )}(hj8h]hstruct ttm_lru_bulk_move *bulk}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj8ubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKyhj8ubjt )}(hhh]h)}(hthe structure to inith]hthe structure to init}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKyhj8ubah}(h]h ]h"]h$]h&]uh1js hj8ubeh}(h]h ]h"]h$]h&]uh1jQ hj8hKyhj8ubah}(h]h ]h"]h$]h&]uh1jL hj8ubh)}(h**Description**h]j7 )}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj8ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chK{hj8ubh)}(h*For now just memset the structure to zero.h]h*For now just memset the structure to zero.}(hj 9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKzhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#ttm_lru_bulk_move_fini (C function)c.ttm_lru_bulk_move_finihNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj:9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj69hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKubj)}(h h]h }(hjI9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj69hhhjH9hKubj)}(httm_lru_bulk_move_finih]j)}(httm_lru_bulk_move_finih]httm_lru_bulk_move_fini}(hj[9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW9ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj69hhhjH9hKubj>)}(h9(struct ttm_device *bdev, struct ttm_lru_bulk_move *bulk)h](jD)}(hstruct ttm_device *bdevh](j)}(hj? h]hstruct}(hjw9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs9ubh)}(hhh]j)}(h ttm_deviceh]h ttm_device}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj9modnameN classnameNjj)}j]j)}j}j]9sbc.ttm_lru_bulk_move_finiasbuh1hhjs9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs9ubj)}(hbdevh]hbdev}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjo9ubjD)}(hstruct ttm_lru_bulk_move *bulkh](j)}(hj? h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(httm_lru_bulk_moveh]httm_lru_bulk_move}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj :modnameN classnameNjj)}j]j9c.ttm_lru_bulk_move_finiasbuh1hhj9ubj)}(h h]h }(hj%:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hj3:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hbulkh]hbulk}(hj@:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjo9ubeh}(h]h ]h"]h$]h&]jjuh1j=hj69hhhjH9hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj29hhhjH9hKubah}(h]j-9ah ](jjeh"]h$]h&]j j )j huh1jhjH9hKhj/9hhubj )}(hhh]h)}(hfinalize a bulk move structureh]hfinalize a bulk move structure}(hjj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKhjg:hhubah}(h]h ]h"]h$]h&]uh1j hj/9hhhjH9hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j:j( j:j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj:ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKhj:ubjM )}(hhh](jR )}(h2``struct ttm_device *bdev`` The struct ttm_device h](jX )}(h``struct ttm_device *bdev``h]j^ )}(hj:h]hstruct ttm_device *bdev}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj:ubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKhj:ubjt )}(hhh]h)}(hThe struct ttm_deviceh]hThe struct ttm_device}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKhj:ubah}(h]h ]h"]h$]h&]uh1js hj:ubeh}(h]h ]h"]h$]h&]uh1jQ hj:hKhj:ubjR )}(h=``struct ttm_lru_bulk_move *bulk`` the structure to finalize h](jX )}(h"``struct ttm_lru_bulk_move *bulk``h]j^ )}(hj:h]hstruct ttm_lru_bulk_move *bulk}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj:ubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKhj:ubjt )}(hhh]h)}(hthe structure to finalizeh]hthe structure to finalize}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKhj:ubah}(h]h ]h"]h$]h&]uh1js hj:ubeh}(h]h ]h"]h$]h&]uh1jQ hj:hKhj:ubeh}(h]h ]h"]h$]h&]uh1jL hj:ubh)}(h**Description**h]j7 )}(hj;h]h Description}(hj!;hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj;ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKhj:ubh)}(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.}(hj5;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#ttm_lru_bulk_move_tail (C function)c.ttm_lru_bulk_move_tailhNtauh1jhjhhhNhNubj)}(hhh](j)}(h)}(h (struct ttm_lru_bulk_move *bulk)h]jD)}(hstruct ttm_lru_bulk_move *bulkh](j)}(hj? h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]j)}(httm_lru_bulk_moveh]httm_lru_bulk_move}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj;modnameN classnameNjj)}j]j)}j}j;sbc.ttm_lru_bulk_move_tailasbuh1hhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hbulkh]hbulk}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj;ubah}(h]h ]h"]h$]h&]jjuh1j=hj`;hhhjr;hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\;hhhjr;hKubah}(h]jW;ah ](jjeh"]h$]h&]j j )j huh1jhjr;hKhjY;hhubj )}(hhh]h)}(h-bulk move range of resources to the LRU tail.h]h-bulk move range of resources to the LRU tail.}(hj$<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKhj!<hhubah}(h]h ]h"]h$]h&]uh1j hjY;hhhjr;hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j<<j( j<<j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjF<h]h Parameters}(hjH<hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjD<ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKhj@<ubjM )}(hhh]jR )}(h7``struct ttm_lru_bulk_move *bulk`` bulk move structure h](jX )}(h"``struct ttm_lru_bulk_move *bulk``h]j^ )}(hje<h]hstruct ttm_lru_bulk_move *bulk}(hjg<hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjc<ubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKhj_<ubjt )}(hhh]h)}(hbulk move structureh]hbulk move structure}(hj~<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz<hKhj{<ubah}(h]h ]h"]h$]h&]uh1js hj_<ubeh}(h]h ]h"]h$]h&]uh1jQ hjz<hKhj\<ubah}(h]h ]h"]h$]h&]uh1jL hj@<ubh)}(h**Description**h]j7 )}(hj<h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj<ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKhj@<ubh)}(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 }(hj<hhhNhNubh)}(h*:c:type:`ttm_device.lru_lock `h]j^ )}(hj<h]httm_device.lru_lock}(hj<hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj<ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j ttm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chKhj<ubh held.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj<hKhj@<ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_resource_init (C function)c.ttm_resource_inithNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMMubj)}(httm_resource_inith]j)}(httm_resource_inith]httm_resource_init}(hj)=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%=ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj=hhhj=hMMubj>)}(hW(struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource *res)h](jD)}(hstruct ttm_buffer_object *boh](j)}(hj? h]hstruct}(hjE=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA=ubj)}(h h]h }(hjR=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA=ubh)}(hhh]j)}(httm_buffer_objecth]httm_buffer_object}(hjc=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`=ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetje=modnameN classnameNjj)}j]j)}j}j+=sbc.ttm_resource_initasbuh1hhjA=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA=ubj)}(hboh]hbo}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj==ubjD)}(hconst struct ttm_place *placeh](j)}(hjJh]hconst}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hj? h]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]j)}(h ttm_placeh]h ttm_place}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj=modnameN classnameNjj)}j]j=c.ttm_resource_initasbuh1hhj=ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hplaceh]hplace}(hj)>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj==ubjD)}(hstruct ttm_resource *resh](j)}(hj? h]hstruct}(hjB>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>>ubj)}(h h]h }(hjO>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>>ubh)}(hhh]j)}(h ttm_resourceh]h ttm_resource}(hj`>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]>ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjb>modnameN classnameNjj)}j]j=c.ttm_resource_initasbuh1hhj>>ubj)}(h h]h }(hj~>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>>ubj)}(hresh]hres}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj==ubeh}(h]h ]h"]h$]h&]jjuh1j=hj=hhhj=1hMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhj=hMMubah}(h]j<ah ](jjeh"]h$]h&]j j )j huh1jhj=hMMhj<hhubj )}(hhh]h)}(hresource object constructorh]hresource object constructor}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMMhj>hhubah}(h]h ]h"]h$]h&]uh1j hj<hhhj=hMMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j>j( j>j) j* j+ uh1jhhhjhNhNubj- )}(hX8**Parameters** ``struct ttm_buffer_object *bo`` buffer object this resource is allocated for ``const struct ttm_place *place`` placement of the resource ``struct ttm_resource *res`` the resource object to initialize **Description** Initialize a new resource object. Counterpart of ttm_resource_fini().h](h)}(h**Parameters**h]j7 )}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj>ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMQhj>ubjM )}(hhh](jR )}(hN``struct ttm_buffer_object *bo`` buffer object this resource is allocated for h](jX )}(h ``struct ttm_buffer_object *bo``h]j^ )}(hj?h]hstruct ttm_buffer_object *bo}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj?ubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMNhj>ubjt )}(hhh]h)}(h,buffer object this resource is allocated forh]h,buffer object this resource is allocated for}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMNhj?ubah}(h]h ]h"]h$]h&]uh1js hj>ubeh}(h]h ]h"]h$]h&]uh1jQ hj?hMNhj>ubjR )}(h<``const struct ttm_place *place`` placement of the resource h](jX )}(h!``const struct ttm_place *place``h]j^ )}(hj=?h]hconst struct ttm_place *place}(hj??hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj;?ubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMOhj7?ubjt )}(hhh]h)}(hplacement of the resourceh]hplacement of the resource}(hjV?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR?hMOhjS?ubah}(h]h ]h"]h$]h&]uh1js hj7?ubeh}(h]h ]h"]h$]h&]uh1jQ hjR?hMOhj>ubjR )}(h?``struct ttm_resource *res`` the resource object to initialize h](jX )}(h``struct ttm_resource *res``h]j^ )}(hjv?h]hstruct ttm_resource *res}(hjx?hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjt?ubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMPhjp?ubjt )}(hhh]h)}(h!the resource object to initializeh]h!the resource object to initialize}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMPhj?ubah}(h]h ]h"]h$]h&]uh1js hjp?ubeh}(h]h ]h"]h$]h&]uh1jQ hj?hMPhj>ubeh}(h]h ]h"]h$]h&]uh1jL hj>ubh)}(h**Description**h]j7 )}(hj?h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj?ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMRhj>ubh)}(hEInitialize a new resource object. Counterpart of ttm_resource_fini().h]hEInitialize a new resource object. Counterpart of ttm_resource_fini().}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMQhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_resource_fini (C function)c.ttm_resource_finihNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMpubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhj@hMpubj)}(httm_resource_finih]j)}(httm_resource_finih]httm_resource_fini}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj?hhhj@hMpubj>)}(h<(struct ttm_resource_manager *man, struct ttm_resource *res)h](jD)}(h struct ttm_resource_manager *manh](j)}(hj? h]hstruct}(hj3@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/@ubj)}(h h]h }(hj@@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/@ubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hjQ@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN@ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjS@modnameN classnameNjj)}j]j)}j}j@sbc.ttm_resource_finiasbuh1hhj/@ubj)}(h h]h }(hjq@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/@ubj)}(hmanh]hman}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj+@ubjD)}(hstruct ttm_resource *resh](j)}(hj? h]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j)}(h ttm_resourceh]h ttm_resource}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj@modnameN classnameNjj)}j]jm@c.ttm_resource_finiasbuh1hhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hresh]hres}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj+@ubeh}(h]h ]h"]h$]h&]jjuh1j=hj?hhhj@hMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhj@hMpubah}(h]j?ah ](jjeh"]h$]h&]j j )j huh1jhj@hMphj?hhubj )}(hhh]h)}(hresource destructorh]hresource destructor}(hj&AhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMphj#Ahhubah}(h]h ]h"]h$]h&]uh1j hj?hhhj@hMpubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j>Aj( j>Aj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjHAh]h Parameters}(hjJAhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjFAubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMthjBAubjM )}(hhh](jR )}(hS``struct ttm_resource_manager *man`` the resource manager this resource belongs to h](jX )}(h$``struct ttm_resource_manager *man``h]j^ )}(hjgAh]h struct ttm_resource_manager *man}(hjiAhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjeAubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMqhjaAubjt )}(hhh]h)}(h-the resource manager this resource belongs toh]h-the resource manager this resource belongs to}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|AhMqhj}Aubah}(h]h ]h"]h$]h&]uh1js hjaAubeh}(h]h ]h"]h$]h&]uh1jQ hj|AhMqhj^AubjR )}(h6``struct ttm_resource *res`` the resource to clean up h](jX )}(h``struct ttm_resource *res``h]j^ )}(hjAh]hstruct ttm_resource *res}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjAubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMrhjAubjt )}(hhh]h)}(hthe resource to clean uph]hthe resource to clean up}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMrhjAubah}(h]h ]h"]h$]h&]uh1js hjAubeh}(h]h ]h"]h$]h&]uh1jQ hjAhMrhj^Aubeh}(h]h ]h"]h$]h&]uh1jL hjBAubh)}(h**Description**h]j7 )}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjAubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMthjBAubh)}(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().}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMshjBAubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&ttm_resource_manager_init (C function)c.ttm_resource_manager_inithNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM!ubj)}(h h]h }(hj/BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhj.BhM!ubj)}(httm_resource_manager_inith]j)}(httm_resource_manager_inith]httm_resource_manager_init}(hjABhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Bubah}(h]h ](jjeh"]h$]h&]jjuh1jhjBhhhj.BhM!ubj>)}(hJ(struct ttm_resource_manager *man, struct ttm_device *bdev, uint64_t size)h](jD)}(h struct ttm_resource_manager *manh](j)}(hj? h]hstruct}(hj]BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYBubj)}(h h]h }(hjjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYBubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hj{BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxBubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj}BmodnameN classnameNjj)}j]j)}j}jCBsbc.ttm_resource_manager_initasbuh1hhjYBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYBubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYBubj)}(hmanh]hman}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYBubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjUBubjD)}(hstruct ttm_device *bdevh](j)}(hj? h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(h ttm_deviceh]h ttm_device}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjBmodnameN classnameNjj)}j]jBc.ttm_resource_manager_initasbuh1hhjBubj)}(h h]h }(hj ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hbdevh]hbdev}(hj&ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjUBubjD)}(h uint64_t sizeh](h)}(hhh]j)}(huint64_th]huint64_t}(hjBChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Cubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjDCmodnameN classnameNjj)}j]jBc.ttm_resource_manager_initasbuh1hhj;Cubj)}(h h]h }(hj`ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Cubj)}(hsizeh]hsize}(hjnChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Cubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjUBubeh}(h]h ]h"]h$]h&]jjuh1j=hjBhhhj.BhM!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhj.BhM!ubah}(h]jBah ](jjeh"]h$]h&]j j )j huh1jhj.BhM!hjBhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjBhhhj.BhM!ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jCj( jCj) j* j+ uh1jhhhjhNhNubj- )}(hX**Parameters** ``struct ttm_resource_manager *man`` memory manager object to init ``struct ttm_device *bdev`` ttm device this manager belongs to ``uint64_t size`` size of managed resources in arbitrary units **Description** Initialize core parts of a manager object.h](h)}(h**Parameters**h]j7 )}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjCubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM%hjCubjM )}(hhh](jR )}(hC``struct ttm_resource_manager *man`` memory manager object to init h](jX )}(h$``struct ttm_resource_manager *man``h]j^ )}(hjCh]h struct ttm_resource_manager *man}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjCubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM#hjCubjt )}(hhh]h)}(hmemory manager object to inith]hmemory manager object to init}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChM#hjCubah}(h]h ]h"]h$]h&]uh1js hjCubeh}(h]h ]h"]h$]h&]uh1jQ hjChM#hjCubjR )}(h?``struct ttm_device *bdev`` ttm device this manager belongs to h](jX )}(h``struct ttm_device *bdev``h]j^ )}(hjDh]hstruct ttm_device *bdev}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjDubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM$hjCubjt )}(hhh]h)}(h"ttm device this manager belongs toh]h"ttm device this manager belongs to}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM$hjDubah}(h]h ]h"]h$]h&]uh1js hjCubeh}(h]h ]h"]h$]h&]uh1jQ hjDhM$hjCubjR )}(h?``uint64_t size`` size of managed resources in arbitrary units h](jX )}(h``uint64_t size``h]j^ )}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj:Dubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM%hj6Dubjt )}(hhh]h)}(h,size of managed resources in arbitrary unitsh]h,size of managed resources in arbitrary units}(hjUDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQDhM%hjRDubah}(h]h ]h"]h$]h&]uh1js hj6Dubeh}(h]h ]h"]h$]h&]uh1jQ hjQDhM%hjCubeh}(h]h ]h"]h$]h&]uh1jL hjCubh)}(h**Description**h]j7 )}(hjwDh]h Description}(hjyDhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjuDubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM'hjCubh)}(h*Initialize core parts of a manager object.h]h*Initialize core parts of a manager object.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM"hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'ttm_resource_manager_usage (C function)c.ttm_resource_manager_usagehNtauh1jhjhhhNhNubj)}(hhh](j)}(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]j)}(huint64_th]huint64_t}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjDmodnameN classnameNjj)}j]j)}j}ttm_resource_manager_usagesbc.ttm_resource_manager_usageasbuh1hhjDhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMiubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjDhMiubj)}(httm_resource_manager_usageh]j)}(hjDh]httm_resource_manager_usage}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jhjDhhhjDhMiubj>)}(h"(struct ttm_resource_manager *man)h]jD)}(h struct ttm_resource_manager *manh](j)}(hj? h]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Eubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Eubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hj,EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Eubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj.EmodnameN classnameNjj)}j]jDc.ttm_resource_manager_usageasbuh1hhj Eubj)}(h h]h }(hjJEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Eubj)}(hjh]h*}(hjXEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Eubj)}(hmanh]hman}(hjeEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Eubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjEubah}(h]h ]h"]h$]h&]jjuh1j=hjDhhhjDhMiubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjDhMiubah}(h]jDah ](jjeh"]h$]h&]j j )j huh1jhjDhMihjDhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjDhhhjDhMiubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jEj( jEj) j* j+ uh1jhhhjhNhNubj- )}(h**Parameters** ``struct ttm_resource_manager *man`` A memory manager object. **Description** Return how many resources are currently used.h](h)}(h**Parameters**h]j7 )}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjEubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMmhjEubjM )}(hhh]jR )}(h>``struct ttm_resource_manager *man`` A memory manager object. h](jX )}(h$``struct ttm_resource_manager *man``h]j^ )}(hjEh]h struct ttm_resource_manager *man}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjEubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMkhjEubjt )}(hhh]h)}(hA memory manager object.h]hA memory manager object.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMkhjEubah}(h]h ]h"]h$]h&]uh1js hjEubeh}(h]h ]h"]h$]h&]uh1jQ hjEhMkhjEubah}(h]h ]h"]h$]h&]uh1jL hjEubh)}(h**Description**h]j7 )}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjEubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMmhjEubh)}(h-Return how many resources are currently used.h]h-Return how many resources are currently used.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMjhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'ttm_resource_manager_debug (C function)c.ttm_resource_manager_debughNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjAFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Fhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM~ubj)}(h h]h }(hjPFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=FhhhjOFhM~ubj)}(httm_resource_manager_debugh]j)}(httm_resource_manager_debugh]httm_resource_manager_debug}(hjbFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Fubah}(h]h ](jjeh"]h$]h&]jjuh1jhj=FhhhjOFhM~ubj>)}(h9(struct ttm_resource_manager *man, struct drm_printer *p)h](jD)}(h struct ttm_resource_manager *manh](j)}(hj? h]hstruct}(hj~FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzFubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjFmodnameN classnameNjj)}j]j)}j}jdFsbc.ttm_resource_manager_debugasbuh1hhjzFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzFubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzFubj)}(hmanh]hman}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzFubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjvFubjD)}(hstruct drm_printer *ph](j)}(hj? h]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Gubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjGmodnameN classnameNjj)}j]jFc.ttm_resource_manager_debugasbuh1hhjFubj)}(h h]h }(hj,GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hjh]h*}(hj:GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hjh]hp}(hjGGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjvFubeh}(h]h ]h"]h$]h&]jjuh1j=hj=FhhhjOFhM~ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9FhhhjOFhM~ubah}(h]j4Fah ](jjeh"]h$]h&]j j )j huh1jhjOFhM~hj6Fhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj6FhhhjOFhM~ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jyGj( jyGj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjGubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhj}GubjM )}(hhh](jR )}(h;``struct ttm_resource_manager *man`` manager type to dump. h](jX )}(h$``struct ttm_resource_manager *man``h]j^ )}(hjGh]h struct ttm_resource_manager *man}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjGubjt )}(hhh]h)}(hmanager type to dump.h]hmanager type to dump.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjGubah}(h]h ]h"]h$]h&]uh1js hjGubeh}(h]h ]h"]h$]h&]uh1jQ hjGhMhjGubjR )}(h3``struct drm_printer *p`` printer to use for debug.h](jX )}(h``struct drm_printer *p``h]j^ )}(hjGh]hstruct drm_printer *p}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjGubjt )}(hhh]h)}(hprinter to use for debug.h]hprinter to use for debug.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjGubah}(h]h ]h"]h$]h&]uh1js hjGubeh}(h]h ]h"]h$]h&]uh1jQ hjGhMhjGubeh}(h]h ]h"]h$]h&]uh1jL hj}Gubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%ttm_kmap_iter_iomap_init (C function)c.ttm_kmap_iter_iomap_inithNtauh1jhjhhhNhNubj)}(hhh](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]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](j)}(hj? h]hstruct}(hj5HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Hhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMubj)}(h h]h }(hjCHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1HhhhjBHhMubh)}(hhh]j)}(h ttm_kmap_iterh]h ttm_kmap_iter}(hjTHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQHubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjVHmodnameN classnameNjj)}j]j)}j}ttm_kmap_iter_iomap_initsbc.ttm_kmap_iter_iomap_initasbuh1hhj1HhhhjBHhMubj)}(h h]h }(hjuHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1HhhhjBHhMubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1HhhhjBHhMubj)}(httm_kmap_iter_iomap_inith]j)}(hjrHh]httm_kmap_iter_iomap_init}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jhj1HhhhjBHhMubj>)}(hk(struct ttm_kmap_iter_iomap *iter_io, struct io_mapping *iomap, struct sg_table *st, resource_size_t start)h](jD)}(h#struct ttm_kmap_iter_iomap *iter_ioh](j)}(hj? h]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]j)}(httm_kmap_iter_iomaph]httm_kmap_iter_iomap}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjHmodnameN classnameNjj)}j]jpHc.ttm_kmap_iter_iomap_initasbuh1hhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hiter_ioh]hiter_io}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjHubjD)}(hstruct io_mapping *iomaph](j)}(hj? h]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hj,IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j)}(h io_mappingh]h io_mapping}(hj=IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Iubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj?ImodnameN classnameNjj)}j]jpHc.ttm_kmap_iter_iomap_initasbuh1hhjIubj)}(h h]h }(hj[IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjiIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hiomaph]hiomap}(hjvIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjHubjD)}(hstruct sg_table *sth](j)}(hj? h]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjImodnameN classnameNjj)}j]jpHc.ttm_kmap_iter_iomap_initasbuh1hhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hsth]hst}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjHubjD)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjJmodnameN classnameNjj)}j]jpHc.ttm_kmap_iter_iomap_initasbuh1hhjIubj)}(h h]h }(hj JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hstarth]hstart}(hj.JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjHubeh}(h]h ]h"]h$]h&]jjuh1j=hj1HhhhjBHhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-HhhhjBHhMubah}(h]j(Hah ](jjeh"]h$]h&]j j )j huh1jhjBHhMhj*Hhhubj )}(hhh]h)}(h'Initialize a struct ttm_kmap_iter_iomaph]h'Initialize a struct ttm_kmap_iter_iomap}(hjXJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjUJhhubah}(h]h ]h"]h$]h&]uh1j hj*HhhhjBHhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jpJj( jpJj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjzJh]h Parameters}(hj|JhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjxJubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM#hjtJubjM )}(hhh](jR )}(hV``struct ttm_kmap_iter_iomap *iter_io`` The struct ttm_kmap_iter_iomap to initialize. h](jX )}(h'``struct ttm_kmap_iter_iomap *iter_io``h]j^ )}(hjJh]h#struct ttm_kmap_iter_iomap *iter_io}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjJubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM hjJubjt )}(hhh]h)}(h-The struct ttm_kmap_iter_iomap to initialize.h]h-The struct ttm_kmap_iter_iomap to initialize.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhM hjJubah}(h]h ]h"]h$]h&]uh1js hjJubeh}(h]h ]h"]h$]h&]uh1jQ hjJhM hjJubjR )}(ha``struct io_mapping *iomap`` The struct io_mapping representing the underlying linear io_memory. h](jX )}(h``struct io_mapping *iomap``h]j^ )}(hjJh]hstruct io_mapping *iomap}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjJubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM!hjJubjt )}(hhh]h)}(hCThe struct io_mapping representing the underlying linear io_memory.h]hCThe struct io_mapping representing the underlying linear io_memory.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhM!hjJubah}(h]h ]h"]h$]h&]uh1js hjJubeh}(h]h ]h"]h$]h&]uh1jQ hjJhM!hjJubjR )}(he``struct sg_table *st`` sg_table into **iomap**, representing the memory of the struct ttm_resource. h](jX )}(h``struct sg_table *st``h]j^ )}(hj Kh]hstruct sg_table *st}(hj KhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj Kubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM#hjKubjt )}(hhh]h)}(hLsg_table into **iomap**, representing the memory of the struct ttm_resource.h](hsg_table into }(hj$KhhhNhNubj7 )}(h **iomap**h]hiomap}(hj,KhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj$Kubh5, representing the memory of the struct ttm_resource.}(hj$KhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM"hj!Kubah}(h]h ]h"]h$]h&]uh1js hjKubeh}(h]h ]h"]h$]h&]uh1jQ hj KhM#hjJubjR )}(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](jX )}(h``resource_size_t start``h]j^ )}(hjWKh]hresource_size_t start}(hjYKhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjUKubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM%hjQKubjt )}(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 }(hjpKhhhNhNubj7 )}(h**st**h]hst}(hjxKhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjpKubh# to make sg_dma_address(st->sgl) - }(hjpKhhhNhNubj7 )}(h **start**h]hstart}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjpKubh == 0 for }(hjpKhhhNhNubj7 )}(h **iomap**h]hiomap}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjpKubh start.}(hjpKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM$hjmKubah}(h]h ]h"]h$]h&]uh1js hjQKubeh}(h]h ]h"]h$]h&]uh1jQ hjlKhM%hjJubeh}(h]h ]h"]h$]h&]uh1jL hjtJubh)}(h **Return**h]j7 )}(hjKh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjKubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM'hjtJubh)}(h-Pointer to the embedded struct ttm_kmap_iter.h]h-Pointer to the embedded struct ttm_kmap_iter.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chM'hjtJubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j0ttm_resource_manager_create_debugfs (C function)%c.ttm_resource_manager_create_debugfshNtauh1jhjhhhNhNubj)}(hhh](j)}(htvoid 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](j)}(hvoidh]hvoid}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Lhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj LhhhjLhMubj)}(h#ttm_resource_manager_create_debugfsh]j)}(h#ttm_resource_manager_create_debugfsh]h#ttm_resource_manager_create_debugfs}(hj/LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Lubah}(h]h ](jjeh"]h$]h&]jjuh1jhj LhhhjLhMubj>)}(hK(struct ttm_resource_manager *man, struct dentry *parent, const char *name)h](jD)}(h struct ttm_resource_manager *manh](j)}(hj? h]hstruct}(hjKLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGLubj)}(h h]h }(hjXLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGLubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hjiLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfLubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjkLmodnameN classnameNjj)}j]j)}j}j1Lsb%c.ttm_resource_manager_create_debugfsasbuh1hhjGLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGLubj)}(hmanh]hman}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGLubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjCLubjD)}(hstruct dentry *parenth](j)}(hj? h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]j)}(hdentryh]hdentry}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjLmodnameN classnameNjj)}j]jL%c.ttm_resource_manager_create_debugfsasbuh1hhjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hparenth]hparent}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjCLubjD)}(hconst char *nameh](j)}(hjJh]hconst}(hj-MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Mubj)}(h h]h }(hj:MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Mubj)}(hcharh]hchar}(hjHMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Mubj)}(h h]h }(hjVMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Mubj)}(hjh]h*}(hjdMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Mubj)}(hnameh]hname}(hjqMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjCLubeh}(h]h ]h"]h$]h&]jjuh1j=hj LhhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjLhMubah}(h]jLah ](jjeh"]h$]h&]j j )j huh1jhjLhMhjLhhubj )}(hhh]h)}(h4Create debugfs entry for specified resource manager.h]h4Create debugfs entry for specified resource manager.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjMhhubah}(h]h ]h"]h$]h&]uh1j hjLhhhjLhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jMj( jMj) j* j+ uh1jhhhjhNhNubj- )}(hX**Parameters** ``struct ttm_resource_manager *man`` The TTM resource manager for which the debugfs stats file to be created ``struct dentry *parent`` debugfs directory in which the file will reside ``const char *name`` The filename to create. **Description** This function sets up a debugfs file that can be used to look at debug statistics of the specified ttm_resource_manager.h](h)}(h**Parameters**h]j7 )}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjMubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjMubjM )}(hhh](jR )}(hm``struct ttm_resource_manager *man`` The TTM resource manager for which the debugfs stats file to be created h](jX )}(h$``struct ttm_resource_manager *man``h]j^ )}(hjMh]h struct ttm_resource_manager *man}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjMubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjMubjt )}(hhh]h)}(hGThe TTM resource manager for which the debugfs stats file to be createdh]hGThe TTM resource manager for which the debugfs stats file to be created}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1js hjMubeh}(h]h ]h"]h$]h&]uh1jQ hjMhMhjMubjR )}(hJ``struct dentry *parent`` debugfs directory in which the file will reside h](jX )}(h``struct dentry *parent``h]j^ )}(hjNh]hstruct dentry *parent}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjNubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjNubjt )}(hhh]h)}(h/debugfs directory in which the file will resideh]h/debugfs directory in which the file will reside}(hj.NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*NhMhj+Nubah}(h]h ]h"]h$]h&]uh1js hjNubeh}(h]h ]h"]h$]h&]uh1jQ hj*NhMhjMubjR )}(h-``const char *name`` The filename to create. h](jX )}(h``const char *name``h]j^ )}(hjNNh]hconst char *name}(hjPNhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjLNubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjHNubjt )}(hhh]h)}(hThe filename to create.h]hThe filename to create.}(hjgNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcNhMhjdNubah}(h]h ]h"]h$]h&]uh1js hjHNubeh}(h]h ]h"]h$]h&]uh1jQ hjcNhMhjMubeh}(h]h ]h"]h$]h&]uh1jL hjMubh)}(h**Description**h]j7 )}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjMubh)}(hxThis function sets up a debugfs file that can be used to look at debug statistics of the specified ttm_resource_manager.h]hxThis function sets up a debugfs file that can be used to look at debug statistics of the specified ttm_resource_manager.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j.ttm_resource_manager_dmem_reclaim (C function)#c.ttm_resource_manager_dmem_reclaimhNtauh1jhjhhhNhNubj)}(hhh](j)}(hiint ttm_resource_manager_dmem_reclaim (struct dmem_cgroup_pool_state *pool, u64 target_bytes, void *priv)h]j)}(hhint ttm_resource_manager_dmem_reclaim(struct dmem_cgroup_pool_state *pool, u64 target_bytes, void *priv)h](j)}(hinth]hint}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhMubj)}(h!ttm_resource_manager_dmem_reclaimh]j)}(h!ttm_resource_manager_dmem_reclaimh]h!ttm_resource_manager_dmem_reclaim}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jhjNhhhjNhMubj>)}(hC(struct dmem_cgroup_pool_state *pool, u64 target_bytes, void *priv)h](jD)}(h#struct dmem_cgroup_pool_state *poolh](j)}(hj? h]hstruct}(hj OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(hdmem_cgroup_pool_stateh]hdmem_cgroup_pool_state}(hj)OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Oubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj+OmodnameN classnameNjj)}j]j)}j}jNsb#c.ttm_resource_manager_dmem_reclaimasbuh1hhjOubj)}(h h]h }(hjIOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjWOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hpoolh]hpool}(hjdOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubjD)}(hu64 target_bytesh](h)}(hhh]j)}(hu64h]hu64}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Oubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjOmodnameN classnameNjj)}j]jEO#c.ttm_resource_manager_dmem_reclaimasbuh1hhjyOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyOubj)}(h target_bytesh]h target_bytes}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyOubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubjD)}(h void *privh](j)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hprivh]hpriv}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubeh}(h]h ]h"]h$]h&]jjuh1j=hjNhhhjNhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjNhMubah}(h]jNah ](jjeh"]h$]h&]j j )j huh1jhjNhMhjNhhubj )}(hhh]h)}(h7dmem cgroup reclaim callback for TTM resource managers.h]h7dmem cgroup reclaim callback for TTM resource managers.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjPhhubah}(h]h ]h"]h$]h&]uh1j hjNhhhjNhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j0Pj( j0Pj) j* j+ uh1jhhhjhNhNubj- )}(hXu**Parameters** ``struct dmem_cgroup_pool_state *pool`` The dmem cgroup pool state for the cgroup being reclaimed. ``u64 target_bytes`` Number of bytes to try to free. ``void *priv`` The :c:type:`ttm_resource_manager` pointer, passed as **init.reclaim_priv** to dmem_cgroup_register_region(). **Description** Drivers should use this as the **reclaim** member of their own :c:type:`struct dmem_cgroup_ops `, with the :c:type:`ttm_resource_manager` pointer as **init.reclaim_priv**. **Return** 0 if some memory was freed, -ENOSPC if nothing was freed, or another negative error code on fatal failure.h](h)}(h**Parameters**h]j7 )}(hj:Ph]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj:Qubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhj4Pubh)}(hDrivers should use this as the **reclaim** member of their own :c:type:`struct dmem_cgroup_ops `, with the :c:type:`ttm_resource_manager` pointer as **init.reclaim_priv**.h](hDrivers should use this as the }(hjRQhhhNhNubj7 )}(h **reclaim**h]hreclaim}(hjZQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjRQubh member of their own }(hjRQhhhNhNubh)}(h2:c:type:`struct dmem_cgroup_ops `h]j^ )}(hjnQh]hstruct dmem_cgroup_ops}(hjpQhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjlQubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dmem_cgroup_opsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjRQubh , with the }(hjRQhhhNhNubh)}(h:c:type:`ttm_resource_manager`h]j^ )}(hjQh]httm_resource_manager}(hjQhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjQubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j ttm_resource_manageruh1hhjQhMhjRQubh pointer as }(hjRQhhhNhNubj7 )}(h**init.reclaim_priv**h]hinit.reclaim_priv}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjRQubh.}(hjRQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQhMhj4Pubh)}(h **Return**h]j7 )}(hjQh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjQubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhj4Pubh)}(hj0 if some memory was freed, -ENOSPC if nothing was freed, or another negative error code on fatal failure.h]hj0 if some memory was freed, -ENOSPC if nothing was freed, or another negative error code on fatal failure.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhj4Pubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j1ttm_resource_manager_set_dmem_region (C function)&c.ttm_resource_manager_set_dmem_regionhNtauh1jhjhhhNhNubj)}(hhh](j)}(hovoid ttm_resource_manager_set_dmem_region (struct ttm_resource_manager *man, struct dmem_cgroup_region *region)h]j)}(hnvoid ttm_resource_manager_set_dmem_region(struct ttm_resource_manager *man, struct dmem_cgroup_region *region)h](j)}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMubj)}(h h]h }(hj!RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhj RhMubj)}(h$ttm_resource_manager_set_dmem_regionh]j)}(h$ttm_resource_manager_set_dmem_regionh]h$ttm_resource_manager_set_dmem_region}(hj3RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Rubah}(h]h ](jjeh"]h$]h&]jjuh1jhjRhhhj RhMubj>)}(hE(struct ttm_resource_manager *man, struct dmem_cgroup_region *region)h](jD)}(h struct ttm_resource_manager *manh](j)}(hj? h]hstruct}(hjORhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKRubj)}(h h]h }(hj\RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKRubh)}(hhh]j)}(httm_resource_managerh]httm_resource_manager}(hjmRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjRubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjoRmodnameN classnameNjj)}j]j)}j}j5Rsb&c.ttm_resource_manager_set_dmem_regionasbuh1hhjKRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKRubj)}(hmanh]hman}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKRubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjGRubjD)}(h!struct dmem_cgroup_region *regionh](j)}(hj? h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j)}(hdmem_cgroup_regionh]hdmem_cgroup_region}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjRmodnameN classnameNjj)}j]jR&c.ttm_resource_manager_set_dmem_regionasbuh1hhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hj ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hregionh]hregion}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjGRubeh}(h]h ]h"]h$]h&]jjuh1j=hjRhhhj RhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj Rhhhj RhMubah}(h]jRah ](jjeh"]h$]h&]j j )j huh1jhj RhMhjRhhubj )}(hhh]h)}(h7Associate a dmem cgroup region with a resource manager.h]h7Associate a dmem cgroup region with a resource manager.}(hjBShhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhj?Shhubah}(h]h ]h"]h$]h&]uh1j hjRhhhj RhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jZSj( jZSj) j* j+ uh1jhhhjhNhNubj- )}(hX**Parameters** ``struct ttm_resource_manager *man`` The resource manager. ``struct dmem_cgroup_region *region`` The dmem cgroup region to associate, may be NULL or IS_ERR(). **Description** When **region** is valid, stores it in **man->cg** so that TTM can look up the associated pool during charging and eviction-target selection. When **region** is ``NULL``, clears **man->cg** to detach the region before teardown. An IS_ERR() **region** is ignored, leaving **man->cg** unchanged. The reclaim callback must be wired up using ttm_resource_manager_dmem_reclaim() in the driver's own :c:type:`struct dmem_cgroup_ops `, with the manager pointer as **init.reclaim_priv**.h](h)}(h**Parameters**h]j7 )}(hjdSh]h Parameters}(hjfShhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjbSubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhj^SubjM )}(hhh](jR )}(h;``struct ttm_resource_manager *man`` The resource manager. h](jX )}(h$``struct ttm_resource_manager *man``h]j^ )}(hjSh]h struct ttm_resource_manager *man}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjSubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhj}Subjt )}(hhh]h)}(hThe resource manager.h]hThe resource manager.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1js hj}Subeh}(h]h ]h"]h$]h&]uh1jQ hjShMhjzSubjR )}(hd``struct dmem_cgroup_region *region`` The dmem cgroup region to associate, may be NULL or IS_ERR(). h](jX )}(h%``struct dmem_cgroup_region *region``h]j^ )}(hjSh]h!struct dmem_cgroup_region *region}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjSubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhjSubjt )}(hhh]h)}(h=The dmem cgroup region to associate, may be NULL or IS_ERR().h]h=The dmem cgroup region to associate, may be NULL or IS_ERR().}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1js hjSubeh}(h]h ]h"]h$]h&]uh1jQ hjShMhjzSubeh}(h]h ]h"]h$]h&]uh1jL hj^Subh)}(h**Description**h]j7 )}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjSubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhj^Subh)}(hXWhen **region** is valid, stores it in **man->cg** so that TTM can look up the associated pool during charging and eviction-target selection. When **region** is ``NULL``, clears **man->cg** to detach the region before teardown. An IS_ERR() **region** is ignored, leaving **man->cg** unchanged. The reclaim callback must be wired up using ttm_resource_manager_dmem_reclaim() in the driver's own :c:type:`struct dmem_cgroup_ops `, with the manager pointer as **init.reclaim_priv**.h](hWhen }(hj ThhhNhNubj7 )}(h **region**h]hregion}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj Tubh is valid, stores it in }(hj ThhhNhNubj7 )}(h **man->cg**h]hman->cg}(hj'ThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj Tubhb so that TTM can look up the associated pool during charging and eviction-target selection. When }(hj ThhhNhNubj7 )}(h **region**h]hregion}(hj9ThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj Tubh is }(hj ThhhNhNubj^ )}(h``NULL``h]hNULL}(hjKThhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj Tubh , clears }(hj ThhhNhNubj7 )}(h **man->cg**h]hman->cg}(hj]ThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj Tubh3 to detach the region before teardown. An IS_ERR() }(hj ThhhNhNubj7 )}(h **region**h]hregion}(hjoThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj Tubh is ignored, leaving }(hj ThhhNhNubj7 )}(h **man->cg**h]hman->cg}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj Tubhr unchanged. The reclaim callback must be wired up using ttm_resource_manager_dmem_reclaim() in the driver’s own }(hj ThhhNhNubh)}(h2:c:type:`struct dmem_cgroup_ops `h]j^ )}(hjTh]hstruct dmem_cgroup_ops}(hjThhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjTubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dmem_cgroup_opsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:60: ./drivers/gpu/drm/ttm/ttm_resource.chMhj Tubh, with the manager pointer as }(hj ThhhNhNubj7 )}(h**init.reclaim_priv**h]hinit.reclaim_priv}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj Tubh.}(hj ThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjThMhj^Subeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubeh}(h]jah ]h"]ttm resource object referenceah$]h&]uh1hhjMhhhhhK7ubh)}(hhh](h)}(hTTM TT object referenceh]hTTM TT object reference}(hjThhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjThhhhhK@ubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_tt (C struct)c.ttm_tthNtauh1jhjThhhNhNubj)}(hhh](j)}(httm_tth]j)}(h struct ttm_tth](j)}(hj? h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhjUhKubj)}(httm_tth]j)}(hjUh]httm_tt}(hj'UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Uubah}(h]h ](jjeh"]h$]h&]jjuh1jhjUhhhjUhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjUhKubah}(h]jTah ](jjeh"]h$]h&]j j )j huh1jhjUhKhjThhubj )}(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.}(hjIUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK,hjFUhhubah}(h]h ]h"]h$]h&]uh1j hjThhhjUhKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jaUj( jaUj) j* j+ uh1jhhhjThNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjmUhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjiUubh:}(hjiUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK0hjeUubj )}(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; };}hjUsbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK2hjeUubh)}(h **Members**h]j7 )}(hjUh]hMembers}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjUubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKEhjeUubjM )}(hhh](jR )}(h+``pages`` Array of pages backing the data. h](jX )}(h ``pages``h]j^ )}(hjUh]hpages}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjUubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK2hjUubjt )}(hhh]h)}(h Array of pages backing the data.h]h Array of pages backing the data.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhK2hjUubah}(h]h ]h"]h$]h&]uh1js hjUubeh}(h]h ]h"]h$]h&]uh1jQ hjUhK2hjUubjR )}(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](jX )}(h``page_flags``h]j^ )}(hjUh]h page_flags}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjUubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK`hjUubjt )}(hhh](h)}(hThe page flags.h]hThe page flags.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK5hjVubh)}(hSupported values:h]hSupported values:}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK7hjVubh)}(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.}(hj&VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK9hjVubh)}(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.}(hj5VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK>hjVubh)}(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.}(hjDVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKAhjVubh)}(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.}(hjSVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKFhjVubh)}(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).}(hjbVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKIhjVubh)}(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:}(hjqVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKOhjVubj )}(hPpage_flags = TTM_TT_FLAG_EXTERNAL | TTM_TT_FLAG_EXTERNAL_MAPPABLE; h]jM )}(hhh]jR )}(hCpage_flags = TTM_TT_FLAG_EXTERNAL | TTM_TT_FLAG_EXTERNAL_MAPPABLE; h](jX )}(h#page_flags = TTM_TT_FLAG_EXTERNAL |h]h#page_flags = TTM_TT_FLAG_EXTERNAL |}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKShjVubjt )}(hhh]h)}(hTTM_TT_FLAG_EXTERNAL_MAPPABLE;h]hTTM_TT_FLAG_EXTERNAL_MAPPABLE;}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKShjVubah}(h]h ]h"]h$]h&]uh1js hjVubeh}(h]h ]h"]h$]h&]uh1jQ hjVhKShjVubah}(h]h ]h"]h$]h&]uh1jL hjVubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKRhjVubh)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKUhjVubh)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK[hjVubh)}(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().}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK^hjVubeh}(h]h ]h"]h$]h&]uh1js hjUubeh}(h]h ]h"]h$]h&]uh1jQ hjVhK`hjUubjR )}(h1``num_pages`` Number of pages in the page array. h](jX )}(h ``num_pages``h]j^ )}(hjWh]h num_pages}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjWubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKlhjVubjt )}(hhh]h)}(h"Number of pages in the page array.h]h"Number of pages in the page array.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKlhjWubah}(h]h ]h"]h$]h&]uh1js hjVubeh}(h]h ]h"]h$]h&]uh1jQ hjWhKlhjUubjR )}(h#``sg`` for SG objects via dma-buf. h](jX )}(h``sg``h]j^ )}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj:Wubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKnhj6Wubjt )}(hhh]h)}(hfor SG objects via dma-buf.h]hfor SG objects via dma-buf.}(hjUWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQWhKnhjRWubah}(h]h ]h"]h$]h&]uh1js hj6Wubeh}(h]h ]h"]h$]h&]uh1jQ hjQWhKnhjUubjR )}(h6``dma_address`` The DMA (bus) addresses of the pages. h](jX )}(h``dma_address``h]j^ )}(hjuWh]h dma_address}(hjwWhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjsWubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKphjoWubjt )}(hhh]h)}(h%The DMA (bus) addresses of the pages.h]h%The DMA (bus) addresses of the pages.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKphjWubah}(h]h ]h"]h$]h&]uh1js hjoWubeh}(h]h ]h"]h$]h&]uh1jQ hjWhKphjUubjR )}(h@``swap_storage`` Pointer to shmem struct file for swap storage. h](jX )}(h``swap_storage``h]j^ )}(hjWh]h swap_storage}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjWubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKrhjWubjt )}(hhh]h)}(h.Pointer to shmem struct file for swap storage.h]h.Pointer to shmem struct file for swap storage.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKrhjWubah}(h]h ]h"]h$]h&]uh1js hjWubeh}(h]h ]h"]h$]h&]uh1jQ hjWhKrhjUubjR )}(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](jX )}(h ``backup``h]j^ )}(hjWh]hbackup}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjWubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKxhjWubjt )}(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 }(hjXhhhNhNubj7 )}(h**swap_storage**h]h swap_storage}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjXubh]. Meanwhile, the driver’s ttm_tt_create() callback is responsible for assigning this field.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKuhjWubah}(h]h ]h"]h$]h&]uh1js hjWubeh}(h]h ]h"]h$]h&]uh1jQ hjWhKxhjUubjR )}(hJ``caching`` The current caching state of the pages, see enum ttm_caching. h](jX )}(h ``caching``h]j^ )}(hj3Xh]hcaching}(hj5XhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj1Xubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK}hj-Xubjt )}(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.}(hjLXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhK|hjIXubah}(h]h ]h"]h$]h&]uh1js hj-Xubeh}(h]h ]h"]h$]h&]uh1jQ hjHXhK}hjUubjR )}(h>``restore`` Partial restoration from backup state. TTM privateh](jX )}(h ``restore``h]j^ )}(hjmXh]hrestore}(hjoXhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjkXubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjgXubjt )}(hhh]h)}(h2Partial restoration from backup state. TTM privateh]h2Partial restoration from backup state. TTM private}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjXubah}(h]h ]h"]h$]h&]uh1js hjgXubeh}(h]h ]h"]h$]h&]uh1jQ hjXhKhjUubeh}(h]h ]h"]h$]h&]uh1jL hjeUubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_kmap_iter_tt (C struct)c.ttm_kmap_iter_tthNtauh1jhjThhhNhNubj)}(hhh](j)}(httm_kmap_iter_tth]j)}(hstruct ttm_kmap_iter_tth](j)}(hj? h]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjXhKubj)}(httm_kmap_iter_tth]j)}(hjXh]httm_kmap_iter_tt}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jhjXhhhjXhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjXhKubah}(h]jXah ](jjeh"]h$]h&]j j )j huh1jhjXhKhjXhhubj )}(hhh]h)}(h-Specialization of a mappig iterator for a tt.h]h-Specialization of a mappig iterator for a tt.}(hj YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjYhhubah}(h]h ]h"]h$]h&]uh1j hjXhhhjXhKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j!Yj( j!Yj) j* j+ uh1jhhhjThNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hj-YhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj)Yubh:}(hj)YhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj%Yubj )}(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; };}hjFYsbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj%Yubh)}(h **Members**h]j7 )}(hjWYh]hMembers}(hjYYhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjUYubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj%YubjM )}(hhh](jR )}(hE``base`` Embedded struct ttm_kmap_iter providing the usage interface h](jX )}(h``base``h]j^ )}(hjvYh]hbase}(hjxYhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjtYubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjpYubjt )}(hhh]h)}(h;Embedded struct ttm_kmap_iter providing the usage interfaceh]h;Embedded struct ttm_kmap_iter providing the usage interface}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjYubah}(h]h ]h"]h$]h&]uh1js hjpYubeh}(h]h ]h"]h$]h&]uh1jQ hjYhKhjmYubjR )}(h``tt`` Cached struct ttm_tt. h](jX )}(h``tt``h]j^ )}(hjYh]htt}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjYubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjYubjt )}(hhh]h)}(hCached struct ttm_tt.h]hCached struct ttm_tt.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjYubah}(h]h ]h"]h$]h&]uh1js hjYubeh}(h]h ]h"]h$]h&]uh1jQ hjYhKhjmYubjR )}(h,``prot`` Cached page protection for mapping.h](jX )}(h``prot``h]j^ )}(hjYh]hprot}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjYubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjYubjt )}(hhh]h)}(h#Cached page protection for mapping.h]h#Cached page protection for mapping.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjYubah}(h]h ]h"]h$]h&]uh1js hjYubeh}(h]h ]h"]h$]h&]uh1jQ hjYhKhjmYubeh}(h]h ]h"]h$]h&]uh1jL hj%Yubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_tt_is_swapped (C function)c.ttm_tt_is_swappedhNtauh1jhjThhhNhNubj)}(hhh](j)}(h0bool ttm_tt_is_swapped (const struct ttm_tt *tt)h]j)}(h/bool ttm_tt_is_swapped(const struct ttm_tt *tt)h](j)}(hj=2h]hbool}(hjBZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ZhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKubj)}(h h]h }(hjPZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ZhhhjOZhKubj)}(httm_tt_is_swappedh]j)}(httm_tt_is_swappedh]httm_tt_is_swapped}(hjbZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Zubah}(h]h ](jjeh"]h$]h&]jjuh1jhj>ZhhhjOZhKubj>)}(h(const struct ttm_tt *tt)h]jD)}(hconst struct ttm_tt *tth](j)}(hjJh]hconst}(hj~ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzZubj)}(hj? h]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzZubh)}(hhh]j)}(httm_tth]httm_tt}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjZmodnameN classnameNjj)}j]j)}j}jdZsbc.ttm_tt_is_swappedasbuh1hhjzZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzZubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzZubj)}(htth]htt}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzZubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjvZubah}(h]h ]h"]h$]h&]jjuh1j=hj>ZhhhjOZhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:ZhhhjOZhKubah}(h]j5Zah ](jjeh"]h$]h&]j j )j huh1jhjOZhKhj7Zhhubj )}(hhh]h)}(h.Whether the ttm_tt is swapped out or backed uph]h.Whether the ttm_tt is swapped out or backed up}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj[hhubah}(h]h ]h"]h$]h&]uh1j hj7ZhhhjOZhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j4[j( j4[j) j* j+ uh1jhhhjThNhNubj- )}(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]j7 )}(hj>[h]h Parameters}(hj@[hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj<[ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj8[ubjM )}(hhh]jR )}(h/``const struct ttm_tt *tt`` The struct ttm_tt. h](jX )}(h``const struct ttm_tt *tt``h]j^ )}(hj][h]hconst struct ttm_tt *tt}(hj_[hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj[[ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjW[ubjt )}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hjv[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr[hKhjs[ubah}(h]h ]h"]h$]h&]uh1js hjW[ubeh}(h]h ]h"]h$]h&]uh1jQ hjr[hKhjT[ubah}(h]h ]h"]h$]h&]uh1jL hj8[ubh)}(h **Return**h]j7 )}(hj[h]hReturn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj[ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj8[ubh)}(h.true if swapped or backed up, false otherwise.h]h.true if swapped or backed up, false otherwise.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj8[ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j ttm_tt_is_backed_up (C function)c.ttm_tt_is_backed_uphNtauh1jhjThhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhj[hKubj)}(httm_tt_is_backed_uph]j)}(httm_tt_is_backed_uph]httm_tt_is_backed_up}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj[hhhj[hKubj>)}(h(const struct ttm_tt *tt)h]jD)}(hconst struct ttm_tt *tth](j)}(hjJh]hconst}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hj&\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hj? h]hstruct}(hj4\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjA\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hhh]j)}(httm_tth]httm_tt}(hjR\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO\ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjT\modnameN classnameNjj)}j]j)}j}j[sbc.ttm_tt_is_backed_upasbuh1hhj\ubj)}(h h]h }(hjr\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(htth]htt}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj\ubah}(h]h ]h"]h$]h&]jjuh1j=hj[hhhj[hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhj[hKubah}(h]j[ah ](jjeh"]h$]h&]j j )j huh1jhj[hKhj[hhubj )}(hhh]h)}(hWhether the ttm_tt backed uph]hWhether the ttm_tt backed up}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj\hhubah}(h]h ]h"]h$]h&]uh1j hj[hhhj[hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j\j( j\j) j* j+ uh1jhhhjThNhNubj- )}(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]j7 )}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj\ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj\ubjM )}(hhh]jR )}(h/``const struct ttm_tt *tt`` The struct ttm_tt. h](jX )}(h``const struct ttm_tt *tt``h]j^ )}(hj\h]hconst struct ttm_tt *tt}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj\ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj\ubjt )}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ]hKhj]ubah}(h]h ]h"]h$]h&]uh1js hj\ubeh}(h]h ]h"]h$]h&]uh1jQ hj ]hKhj\ubah}(h]h ]h"]h$]h&]uh1jL hj\ubh)}(h **Return**h]j7 )}(hj3]h]hReturn}(hj5]hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj1]ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj\ubh)}(h.true if swapped or backed up, false otherwise.h]h.true if swapped or backed up, false otherwise.}(hjI]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#ttm_tt_clear_backed_up (C function)c.ttm_tt_clear_backed_uphNtauh1jhjThhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjx]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt]hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt]hhhj]hKubj)}(httm_tt_clear_backed_uph]j)}(httm_tt_clear_backed_uph]httm_tt_clear_backed_up}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjt]hhhj]hKubj>)}(h(struct ttm_tt *tt)h]jD)}(hstruct ttm_tt *tth](j)}(hj? h]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hhh]j)}(httm_tth]httm_tt}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj]modnameN classnameNjj)}j]j)}j}j]sbc.ttm_tt_clear_backed_upasbuh1hhj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(htth]htt}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj]ubah}(h]h ]h"]h$]h&]jjuh1j=hjt]hhhj]hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjp]hhhj]hKubah}(h]jk]ah ](jjeh"]h$]h&]j j )j huh1jhj]hKhjm]hhubj )}(hhh]h)}(h!Clear the ttm_tt backed-up statush]h!Clear the ttm_tt backed-up status}(hj8^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj5^hhubah}(h]h ]h"]h$]h&]uh1j hjm]hhhj]hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jP^j( jP^j) j* j+ uh1jhhhjThNhNubj- )}(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]j7 )}(hjZ^h]h Parameters}(hj\^hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjX^ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjT^ubjM )}(hhh]jR )}(h)``struct ttm_tt *tt`` The struct ttm_tt. h](jX )}(h``struct ttm_tt *tt``h]j^ )}(hjy^h]hstruct ttm_tt *tt}(hj{^hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjw^ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjs^ubjt )}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hKhj^ubah}(h]h ]h"]h$]h&]uh1js hjs^ubeh}(h]h ]h"]h$]h&]uh1jQ hj^hKhjp^ubah}(h]h ]h"]h$]h&]uh1jL hjT^ubh)}(h**Description**h]j7 )}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj^ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjT^ubh)}(hwDrivers can use this functionto clear the backed-up status, for example before destroying or re-validating a purged tt.h]hwDrivers can use this functionto clear the backed-up status, for example before destroying or re-validating a purged tt.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjT^ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_tt_create (C function)c.ttm_tt_createhNtauh1jhjThhhNhNubj)}(hhh](j)}(hAint ttm_tt_create (struct ttm_buffer_object *bo, bool zero_alloc)h]j)}(h@int ttm_tt_create(struct ttm_buffer_object *bo, bool zero_alloc)h](j)}(hinth]hint}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj_hKubj)}(h ttm_tt_createh]j)}(h ttm_tt_createh]h ttm_tt_create}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj^hhhj_hKubj>)}(h/(struct ttm_buffer_object *bo, bool zero_alloc)h](jD)}(hstruct ttm_buffer_object *boh](j)}(hj? h]hstruct}(hj6_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2_ubj)}(h h]h }(hjC_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2_ubh)}(hhh]j)}(httm_buffer_objecth]httm_buffer_object}(hjT_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ_ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjV_modnameN classnameNjj)}j]j)}j}j_sbc.ttm_tt_createasbuh1hhj2_ubj)}(h h]h }(hjt_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2_ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2_ubj)}(hboh]hbo}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj._ubjD)}(hbool zero_alloch](j)}(hj=2h]hbool}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h zero_alloch]h zero_alloc}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj._ubeh}(h]h ]h"]h$]h&]jjuh1j=hj^hhhj_hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhj_hKubah}(h]j^ah ](jjeh"]h$]h&]j j )j huh1jhj_hKhj^hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj^hhhj_hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j_j( j_j) j* j+ uh1jhhhjThNhNubj- )}(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]j7 )}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj_ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj_ubjM )}(hhh](jR )}(hG``struct ttm_buffer_object *bo`` pointer to a struct ttm_buffer_object h](jX )}(h ``struct ttm_buffer_object *bo``h]j^ )}(hj`h]hstruct ttm_buffer_object *bo}(hj!`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj`ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj`ubjt )}(hhh]h)}(h%pointer to a struct ttm_buffer_objecth]h%pointer to a struct ttm_buffer_object}(hj8`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4`hKhj5`ubah}(h]h ]h"]h$]h&]uh1js hj`ubeh}(h]h ]h"]h$]h&]uh1jQ hj4`hKhj`ubjR )}(h?``bool zero_alloc`` true if allocated pages needs to be zeroed h](jX )}(h``bool zero_alloc``h]j^ )}(hjX`h]hbool zero_alloc}(hjZ`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjV`ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjR`ubjt )}(hhh]h)}(h*true if allocated pages needs to be zeroedh]h*true if allocated pages needs to be zeroed}(hjq`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm`hKhjn`ubah}(h]h ]h"]h$]h&]uh1js hjR`ubeh}(h]h ]h"]h$]h&]uh1jQ hjm`hKhj`ubeh}(h]h ]h"]h$]h&]uh1jL hj_ubh)}(h**Description**h]j7 )}(hj`h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj`ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj_ubh)}(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.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_tt_init (C function) c.ttm_tt_inithNtauh1jhjThhhNhNubj)}(hhh](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]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](j)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hKubj)}(h ttm_tt_inith]j)}(h ttm_tt_inith]h ttm_tt_init}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj`hhhj`hKubj>)}(h|(struct ttm_tt *ttm, struct ttm_buffer_object *bo, uint32_t page_flags, enum ttm_caching caching, unsigned long extra_pages)h](jD)}(hstruct ttm_tt *ttmh](j)}(hj? h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hj"ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j)}(httm_tth]httm_tt}(hj3ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0aubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj5amodnameN classnameNjj)}j]j)}j}j`sb c.ttm_tt_initasbuh1hhjaubj)}(h h]h }(hjSahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjaahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(httmh]httm}(hjnahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj aubjD)}(hstruct ttm_buffer_object *boh](j)}(hj? h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j)}(httm_buffer_objecth]httm_buffer_object}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjamodnameN classnameNjj)}j]jOa c.ttm_tt_initasbuh1hhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hboh]hbo}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj aubjD)}(huint32_t page_flagsh](h)}(hhh]j)}(huint32_th]huint32_t}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjamodnameN classnameNjj)}j]jOa c.ttm_tt_initasbuh1hhjaubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h page_flagsh]h page_flags}(hj&bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj aubjD)}(henum ttm_caching cachingh](j)}(hjh]henum}(hj?bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;bubj)}(h h]h }(hjLbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;bubh)}(hhh]j)}(h ttm_cachingh]h ttm_caching}(hj]bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZbubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj_bmodnameN classnameNjj)}j]jOa c.ttm_tt_initasbuh1hhj;bubj)}(h h]h }(hj{bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;bubj)}(hcachingh]hcaching}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;bubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj aubjD)}(hunsigned long extra_pagesh](j)}(hunsignedh]hunsigned}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hlongh]hlong}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h extra_pagesh]h extra_pages}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj aubeh}(h]h ]h"]h$]h&]jjuh1j=hj`hhhj`hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhj`hKubah}(h]j`ah ](jjeh"]h$]h&]j j )j huh1jhj`hKhj`hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj`hhhj`hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j cj( j cj) j* j+ uh1jhhhjThNhNubj- )}(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]j7 )}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjcubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjcubjM )}(hhh](jR )}(h*``struct ttm_tt *ttm`` The struct ttm_tt. h](jX )}(h``struct ttm_tt *ttm``h]j^ )}(hj6ch]hstruct ttm_tt *ttm}(hj8chhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj4cubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj0cubjt )}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hjOchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKchKhjLcubah}(h]h ]h"]h$]h&]uh1js hj0cubeh}(h]h ]h"]h$]h&]uh1jQ hjKchKhj-cubjR )}(hJ``struct ttm_buffer_object *bo`` The buffer object we create the ttm for. h](jX )}(h ``struct ttm_buffer_object *bo``h]j^ )}(hjoch]hstruct ttm_buffer_object *bo}(hjqchhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjmcubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjicubjt )}(hhh]h)}(h(The buffer object we create the ttm for.h]h(The buffer object we create the ttm for.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKhjcubah}(h]h ]h"]h$]h&]uh1js hjicubeh}(h]h ]h"]h$]h&]uh1jQ hjchKhj-cubjR )}(hJ``uint32_t page_flags`` Page flags as identified by TTM_TT_FLAG_XX flags. h](jX )}(h``uint32_t page_flags``h]j^ )}(hjch]huint32_t page_flags}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjcubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjcubjt )}(hhh]h)}(h1Page flags as identified by TTM_TT_FLAG_XX flags.h]h1Page flags as identified by TTM_TT_FLAG_XX flags.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKhjcubah}(h]h ]h"]h$]h&]uh1js hjcubeh}(h]h ]h"]h$]h&]uh1jQ hjchKhj-cubjR )}(hD``enum ttm_caching caching`` the desired caching state of the pages h](jX )}(h``enum ttm_caching caching``h]j^ )}(hjch]henum ttm_caching caching}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjcubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjcubjt )}(hhh]h)}(h&the desired caching state of the pagesh]h&the desired caching state of the pages}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKhjcubah}(h]h ]h"]h$]h&]uh1js hjcubeh}(h]h ]h"]h$]h&]uh1jQ hjchKhj-cubjR )}(hA``unsigned long extra_pages`` Extra pages needed for the driver. h](jX )}(h``unsigned long extra_pages``h]j^ )}(hjdh]hunsigned long extra_pages}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjdubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjdubjt )}(hhh]h)}(h"Extra pages needed for the driver.h]h"Extra pages needed for the driver.}(hj3dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/dhKhj0dubah}(h]h ]h"]h$]h&]uh1js hjdubeh}(h]h ]h"]h$]h&]uh1jQ hj/dhKhj-cubeh}(h]h ]h"]h$]h&]uh1jL hjcubh)}(h**Description**h]j7 )}(hjUdh]h Description}(hjWdhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjSdubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjcubh)}(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.}(hjkdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjcubh)}(h **Return**h]j7 )}(hj|dh]hReturn}(hj~dhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjzdubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjcubh)}(hNULL: Out of memory.h]hNULL: Out of memory.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_tt_fini (C function) c.ttm_tt_finihNtauh1jhjThhhNhNubj)}(hhh](j)}(h%void ttm_tt_fini (struct ttm_tt *ttm)h]j)}(h$void ttm_tt_fini(struct ttm_tt *ttm)h](j)}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhKubj)}(h ttm_tt_finih]j)}(h ttm_tt_finih]h ttm_tt_fini}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jhjdhhhjdhKubj>)}(h(struct ttm_tt *ttm)h]jD)}(hstruct ttm_tt *ttmh](j)}(hj? h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hj ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j)}(httm_tth]httm_tt}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjemodnameN classnameNjj)}j]j)}j}jdsb c.ttm_tt_finiasbuh1hhjdubj)}(h h]h }(hj)}(h-(struct ttm_device *bdev, struct ttm_tt *ttm)h](jD)}(hstruct ttm_device *bdevh](j)}(hj? h]hstruct}(hjpfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlfubj)}(h h]h }(hj}fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlfubh)}(hhh]j)}(h ttm_deviceh]h ttm_device}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjfmodnameN classnameNjj)}j]j)}j}jVfsbc.ttm_tt_destroyasbuh1hhjlfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlfubj)}(hbdevh]hbdev}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlfubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjhfubjD)}(hstruct ttm_tt *ttmh](j)}(hj? h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j)}(httm_tth]httm_tt}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjgmodnameN classnameNjj)}j]jfc.ttm_tt_destroyasbuh1hhjfubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hjh]h*}(hj,ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(httmh]httm}(hj9ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjhfubeh}(h]h ]h"]h$]h&]jjuh1j=hj/fhhhjAfhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj+fhhhjAfhKubah}(h]j&fah ](jjeh"]h$]h&]j j )j huh1jhjAfhKhj(fhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj(fhhhjAfhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jlgj( jlgj) j* j+ uh1jhhhjThNhNubj- )}(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]j7 )}(hjvgh]h Parameters}(hjxghhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjtgubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjpgubjM )}(hhh](jR )}(hB``struct ttm_device *bdev`` the ttm_device this object belongs to h](jX )}(h``struct ttm_device *bdev``h]j^ )}(hjgh]hstruct ttm_device *bdev}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjgubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjgubjt )}(hhh]h)}(h%the ttm_device this object belongs toh]h%the ttm_device this object belongs to}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKhjgubah}(h]h ]h"]h$]h&]uh1js hjgubeh}(h]h ]h"]h$]h&]uh1jQ hjghKhjgubjR )}(h*``struct ttm_tt *ttm`` The struct ttm_tt. h](jX )}(h``struct ttm_tt *ttm``h]j^ )}(hjgh]hstruct ttm_tt *ttm}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjgubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjgubjt )}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKhjgubah}(h]h ]h"]h$]h&]uh1js hjgubeh}(h]h ]h"]h$]h&]uh1jQ hjghKhjgubeh}(h]h ]h"]h$]h&]uh1jL hjpgubh)}(h**Description**h]j7 )}(hj hh]h Description}(hj hhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjhubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjpgubh)}(h4Unbind, unpopulate and destroy common struct ttm_tt.h]h4Unbind, unpopulate and destroy common struct ttm_tt.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjpgubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_tt_swapin (C function)c.ttm_tt_swapinhNtauh1jhjThhhNhNubj)}(hhh](j)}(h&int ttm_tt_swapin (struct ttm_tt *ttm)h]j)}(h%int ttm_tt_swapin(struct ttm_tt *ttm)h](j)}(hinth]hint}(hjNhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKubj)}(h h]h }(hj]hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhhj\hhKubj)}(h ttm_tt_swapinh]j)}(h ttm_tt_swapinh]h ttm_tt_swapin}(hjohhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhubah}(h]h ](jjeh"]h$]h&]jjuh1jhjJhhhhj\hhKubj>)}(h(struct ttm_tt *ttm)h]jD)}(hstruct ttm_tt *ttmh](j)}(hj? h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]j)}(httm_tth]httm_tt}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjhmodnameN classnameNjj)}j]j)}j}jqhsbc.ttm_tt_swapinasbuh1hhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(httmh]httm}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjhubah}(h]h ]h"]h$]h&]jjuh1j=hjJhhhhj\hhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhhj\hhKubah}(h]jAhah ](jjeh"]h$]h&]j j )j huh1jhj\hhKhjChhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjChhhhj\hhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jij( jij) j* j+ uh1jhhhjThNhNubj- )}(hs**Parameters** ``struct ttm_tt *ttm`` The struct ttm_tt. **Description** Swap in a previously swap out ttm_tt.h](h)}(h**Parameters**h]j7 )}(hj!ih]h Parameters}(hj#ihhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjiubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjiubjM )}(hhh]jR )}(h*``struct ttm_tt *ttm`` The struct ttm_tt. h](jX )}(h``struct ttm_tt *ttm``h]j^ )}(hj@ih]hstruct ttm_tt *ttm}(hjBihhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj>iubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj:iubjt )}(hhh]h)}(hThe struct ttm_tt.h]hThe struct ttm_tt.}(hjYihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUihKhjViubah}(h]h ]h"]h$]h&]uh1js hj:iubeh}(h]h ]h"]h$]h&]uh1jQ hjUihKhj7iubah}(h]h ]h"]h$]h&]uh1jL hjiubh)}(h**Description**h]j7 )}(hj{ih]h Description}(hj}ihhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjyiubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjiubh)}(h%Swap in a previously swap out ttm_tt.h]h%Swap in a previously swap out ttm_tt.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_tt_populate (C function)c.ttm_tt_populatehNtauh1jhjThhhNhNubj)}(hhh](j)}(h`int ttm_tt_populate (struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_operation_ctx *ctx)h]j)}(h_int ttm_tt_populate(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_operation_ctx *ctx)h](j)}(hinth]hint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjihKubj)}(httm_tt_populateh]j)}(httm_tt_populateh]httm_tt_populate}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jhjihhhjihKubj>)}(hL(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_operation_ctx *ctx)h](jD)}(hstruct ttm_device *bdevh](j)}(hj? h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hj jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hhh]j)}(h ttm_deviceh]h ttm_device}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjjmodnameN classnameNjj)}j]j)}j}jisbc.ttm_tt_populateasbuh1hhjiubj)}(h h]h }(hj;jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjIjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hbdevh]hbdev}(hjVjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjiubjD)}(hstruct ttm_tt *ttmh](j)}(hj? h]hstruct}(hjojhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkjubj)}(h h]h }(hj|jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkjubh)}(hhh]j)}(httm_tth]httm_tt}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjjmodnameN classnameNjj)}j]j7jc.ttm_tt_populateasbuh1hhjkjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkjubj)}(httmh]httm}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjiubjD)}(hstruct ttm_operation_ctx *ctxh](j)}(hj? h]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j)}(httm_operation_ctxh]httm_operation_ctx}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjjmodnameN classnameNjj)}j]j7jc.ttm_tt_populateasbuh1hhjjubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hjh]h*}(hj)khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hctxh]hctx}(hj6khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjiubeh}(h]h ]h"]h$]h&]jjuh1j=hjihhhjihKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjihKubah}(h]jiah ](jjeh"]h$]h&]j j )j huh1jhjihKhjihhubj )}(hhh]h)}(hallocate pages for a ttmh]hallocate pages for a ttm}(hj`khhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj]khhubah}(h]h ]h"]h$]h&]uh1j hjihhhjihKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jxkj( jxkj) j* j+ uh1jhhhjThNhNubj- )}(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]j7 )}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjkubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj|kubjM )}(hhh](jR )}(hB``struct ttm_device *bdev`` the ttm_device this object belongs to h](jX )}(h``struct ttm_device *bdev``h]j^ )}(hjkh]hstruct ttm_device *bdev}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjkubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjkubjt )}(hhh]h)}(h%the ttm_device this object belongs toh]h%the ttm_device this object belongs to}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKhjkubah}(h]h ]h"]h$]h&]uh1js hjkubeh}(h]h ]h"]h$]h&]uh1jQ hjkhKhjkubjR )}(h7``struct ttm_tt *ttm`` Pointer to the ttm_tt structure h](jX )}(h``struct ttm_tt *ttm``h]j^ )}(hjkh]hstruct ttm_tt *ttm}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjkubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhjkubjt )}(hhh]h)}(hPointer to the ttm_tt structureh]hPointer to the ttm_tt structure}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKhjkubah}(h]h ]h"]h$]h&]uh1js hjkubeh}(h]h ]h"]h$]h&]uh1jQ hjkhKhjkubjR )}(hR``struct ttm_operation_ctx *ctx`` operation context for populating the tt object. h](jX )}(h!``struct ttm_operation_ctx *ctx``h]j^ )}(hjlh]hstruct ttm_operation_ctx *ctx}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj lubjt )}(hhh]h)}(h/operation context for populating the tt object.h]h/operation context for populating the tt object.}(hj,lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(lhKhj)lubah}(h]h ]h"]h$]h&]uh1js hj lubeh}(h]h ]h"]h$]h&]uh1jQ hj(lhKhjkubeh}(h]h ]h"]h$]h&]uh1jL hj|kubh)}(h**Description**h]j7 )}(hjNlh]h Description}(hjPlhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjLlubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj|kubh)}(h3Calls the driver method to allocate pages for a ttmh]h3Calls the driver method to allocate pages for a ttm}(hjdlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhKhj|kubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_tt_unpopulate (C function)c.ttm_tt_unpopulatehNtauh1jhjThhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhMubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhjlhMubj)}(httm_tt_unpopulateh]j)}(httm_tt_unpopulateh]httm_tt_unpopulate}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jhjlhhhjlhMubj>)}(h-(struct ttm_device *bdev, struct ttm_tt *ttm)h](jD)}(hstruct ttm_device *bdevh](j)}(hj? h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j)}(h ttm_deviceh]h ttm_device}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjlmodnameN classnameNjj)}j]j)}j}jlsbc.ttm_tt_unpopulateasbuh1hhjlubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hbdevh]hbdev}(hj)mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjlubjD)}(hstruct ttm_tt *ttmh](j)}(hj? h]hstruct}(hjBmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>mubj)}(h h]h }(hjOmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>mubh)}(hhh]j)}(httm_tth]httm_tt}(hj`mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]mubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjbmmodnameN classnameNjj)}j]j mc.ttm_tt_unpopulateasbuh1hhj>mubj)}(h h]h }(hj~mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>mubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>mubj)}(httmh]httm}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>mubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjlubeh}(h]h ]h"]h$]h&]jjuh1j=hjlhhhjlhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjlhMubah}(h]jlah ](jjeh"]h$]h&]j j )j huh1jhjlhMhjlhhubj )}(hhh]h)}(hfree pages from a ttmh]hfree pages from a ttm}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhMhjmhhubah}(h]h ]h"]h$]h&]uh1j hjlhhhjlhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jmj( jmj) j* j+ uh1jhhhjThNhNubj- )}(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]j7 )}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjmubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhMhjmubjM )}(hhh](jR )}(hB``struct ttm_device *bdev`` the ttm_device this object belongs to h](jX )}(h``struct ttm_device *bdev``h]j^ )}(hjnh]hstruct ttm_device *bdev}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjnubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhMhjmubjt )}(hhh]h)}(h%the ttm_device this object belongs toh]h%the ttm_device this object belongs to}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1js hjmubeh}(h]h ]h"]h$]h&]uh1jQ hjnhMhjmubjR )}(h7``struct ttm_tt *ttm`` Pointer to the ttm_tt structure h](jX )}(h``struct ttm_tt *ttm``h]j^ )}(hj=nh]hstruct ttm_tt *ttm}(hj?nhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj;nubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhMhj7nubjt )}(hhh]h)}(hPointer to the ttm_tt structureh]hPointer to the ttm_tt structure}(hjVnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRnhMhjSnubah}(h]h ]h"]h$]h&]uh1js hj7nubeh}(h]h ]h"]h$]h&]uh1jQ hjRnhMhjmubeh}(h]h ]h"]h$]h&]uh1jL hjmubh)}(h**Description**h]j7 )}(hjxnh]h Description}(hjznhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjvnubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhMhjmubh)}(h4Calls the driver method to free all pages from a ttmh]h4Calls the driver method to free all pages from a ttm}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"ttm_tt_mark_for_clear (C function)c.ttm_tt_mark_for_clearhNtauh1jhjThhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhM ubj)}(httm_tt_mark_for_clearh]j)}(httm_tt_mark_for_clearh]httm_tt_mark_for_clear}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jhjnhhhjnhM ubj>)}(h(struct ttm_tt *ttm)h]jD)}(hstruct ttm_tt *ttmh](j)}(hj? h]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j)}(httm_tth]httm_tt}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjomodnameN classnameNjj)}j]j)}j}jnsbc.ttm_tt_mark_for_clearasbuh1hhjnubj)}(h h]h }(hj8ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hjFohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(httmh]httm}(hjSohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjnubah}(h]h ]h"]h$]h&]jjuh1j=hjnhhhjnhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjnhM ubah}(h]jnah ](jjeh"]h$]h&]j j )j huh1jhjnhM hjnhhubj )}(hhh]h)}(h$Mark pages for clearing on populate.h]h$Mark pages for clearing on populate.}(hj}ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM hjzohhubah}(h]h ]h"]h$]h&]uh1j hjnhhhjnhM ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' joj( joj) j* j+ uh1jhhhjThNhNubj- )}(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]j7 )}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjoubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhMhjoubjM )}(hhh]jR )}(h7``struct ttm_tt *ttm`` Pointer to the ttm_tt structure h](jX )}(h``struct ttm_tt *ttm``h]j^ )}(hjoh]hstruct ttm_tt *ttm}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjoubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM hjoubjt )}(hhh]h)}(hPointer to the ttm_tt structureh]hPointer to the ttm_tt structure}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohM hjoubah}(h]h ]h"]h$]h&]uh1js hjoubeh}(h]h ]h"]h$]h&]uh1jQ hjohM hjoubah}(h]h ]h"]h$]h&]uh1jL hjoubh)}(h**Description**h]j7 )}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjoubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhMhjoubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM hjoubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_backup_flags (C struct)c.ttm_backup_flagshNtauh1jhjThhhNhNubj)}(hhh](j)}(httm_backup_flagsh]j)}(hstruct ttm_backup_flagsh](j)}(hj? h]hstruct}(hj>phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:phhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhMubj)}(h h]h }(hjLphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:phhhjKphMubj)}(httm_backup_flagsh]j)}(hj8ph]httm_backup_flags}(hj^phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZpubah}(h]h ](jjeh"]h$]h&]jjuh1jhj:phhhjKphMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6phhhjKphMubah}(h]j1pah ](jjeh"]h$]h&]j j )j huh1jhjKphMhj3phhubj )}(hhh]h)}(h!Flags to govern backup behaviour.h]h!Flags to govern backup behaviour.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhMhj}phhubah}(h]h ]h"]h$]h&]uh1j hj3phhhjKphMubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jpj( jpj) j* j+ uh1jhhhjThNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjpubh:}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM!hjpubj )}(hFstruct ttm_backup_flags { u32 purge : 1; u32 writeback : 1; };h]hFstruct ttm_backup_flags { u32 purge : 1; u32 writeback : 1; };}hjpsbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM#hjpubh)}(h **Members**h]j7 )}(hjph]hMembers}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjpubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM(hjpubjM )}(hhh](jR )}(h7``purge`` Free pages without backing up. Bypass pools. h](jX )}(h ``purge``h]j^ )}(hjph]hpurge}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjpubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhMhjpubjt )}(hhh]h)}(h,Free pages without backing up. Bypass pools.h]h,Free pages without backing up. Bypass pools.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjqubah}(h]h ]h"]h$]h&]uh1js hjpubeh}(h]h ]h"]h$]h&]uh1jQ hjqhMhjpubjR )}(hx``writeback`` Attempt to copy contents directly to swap space, even if that means blocking on writes to external memory.h](jX )}(h ``writeback``h]j^ )}(hj&qh]h writeback}(hj(qhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj$qubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM hj qubjt )}(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.}(hj?qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;qhM hj)}(hS(struct ttm_buffer_object *bo, struct agp_bridge_data *bridge, uint32_t page_flags)h](jD)}(hstruct ttm_buffer_object *boh](j)}(hj? h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]j)}(httm_buffer_objecth]httm_buffer_object}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjrmodnameN classnameNjj)}j]jqc.ttm_agp_tt_createasbuh1hhjqubj)}(h h]h }(hj5rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hjh]h*}(hjCrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hboh]hbo}(hjPrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjqubjD)}(hstruct agp_bridge_data *bridgeh](j)}(hj? h]hstruct}(hjirhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjerubj)}(h h]h }(hjvrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjerubh)}(hhh]j)}(hagp_bridge_datah]hagp_bridge_data}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjrmodnameN classnameNjj)}j]jqc.ttm_agp_tt_createasbuh1hhjerubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjerubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjerubj)}(hbridgeh]hbridge}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjerubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjqubjD)}(huint32_t page_flagsh](h)}(hhh]j)}(huint32_th]huint32_t}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjrmodnameN classnameNjj)}j]jqc.ttm_agp_tt_createasbuh1hhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h page_flagsh]h page_flags}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjqubeh}(h]h ]h"]h$]h&]jjuh1j=hj{qhhhjqhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwqhhhjqhM3ubah}(h]jrqah ](jjeh"]h$]h&]j j )j huh1jhjqhM3hjtqhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjtqhhhjqhM3ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j;sj( j;sj) j* j+ uh1jhhhjThNhNubj- )}(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]j7 )}(hjEsh]h Parameters}(hjGshhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjCsubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM7hj?subjM )}(hhh](jR )}(hH``struct ttm_buffer_object *bo`` Buffer object we allocate the ttm for. h](jX )}(h ``struct ttm_buffer_object *bo``h]j^ )}(hjdsh]hstruct ttm_buffer_object *bo}(hjfshhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjbsubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM5hj^subjt )}(hhh]h)}(h&Buffer object we allocate the ttm for.h]h&Buffer object we allocate the ttm for.}(hj}shhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyshM5hjzsubah}(h]h ]h"]h$]h&]uh1js hj^subeh}(h]h ]h"]h$]h&]uh1jQ hjyshM5hj[subjR )}(hM``struct agp_bridge_data *bridge`` The agp bridge this device is sitting on. h](jX )}(h"``struct agp_bridge_data *bridge``h]j^ )}(hjsh]hstruct agp_bridge_data *bridge}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM6hjsubjt )}(hhh]h)}(h)The agp bridge this device is sitting on.h]h)The agp bridge this device is sitting on.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM6hjsubah}(h]h ]h"]h$]h&]uh1js hjsubeh}(h]h ]h"]h$]h&]uh1jQ hjshM6hj[subjR )}(hJ``uint32_t page_flags`` Page flags as identified by TTM_TT_FLAG_XX flags. h](jX )}(h``uint32_t page_flags``h]j^ )}(hjsh]huint32_t page_flags}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM7hjsubjt )}(hhh]h)}(h1Page flags as identified by TTM_TT_FLAG_XX flags.h]h1Page flags as identified by TTM_TT_FLAG_XX flags.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM7hjsubah}(h]h ]h"]h$]h&]uh1js hjsubeh}(h]h ]h"]h$]h&]uh1jQ hjshM7hj[subeh}(h]h ]h"]h$]h&]uh1jL hj?subh)}(h**Description**h]j7 )}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjtubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM9hj?subh)}(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.}(hj'thhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:66: ./include/drm/ttm/ttm_tt.hhM4hj?subeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"ttm_kmap_iter_tt_init (C function)c.ttm_kmap_iter_tt_inithNtauh1jhjThhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjVthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRthhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:69: ./drivers/gpu/drm/ttm/ttm_tt.chMubj)}(h h]h }(hjdthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRthhhjcthMubh)}(hhh]j)}(h ttm_kmap_iterh]h ttm_kmap_iter}(hjuthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrtubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjwtmodnameN classnameNjj)}j]j)}j}ttm_kmap_iter_tt_initsbc.ttm_kmap_iter_tt_initasbuh1hhjRthhhjcthMubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRthhhjcthMubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRthhhjcthMubj)}(httm_kmap_iter_tt_inith]j)}(hjth]httm_kmap_iter_tt_init}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jhjRthhhjcthMubj>)}(h5(struct ttm_kmap_iter_tt *iter_tt, struct ttm_tt *tt)h](jD)}(h struct ttm_kmap_iter_tt *iter_tth](j)}(hj? h]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j)}(httm_kmap_iter_tth]httm_kmap_iter_tt}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjtmodnameN classnameNjj)}j]jtc.ttm_kmap_iter_tt_initasbuh1hhjtubj)}(h h]h }(hj uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hiter_tth]hiter_tt}(hj'uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjtubjD)}(hstruct ttm_tt *tth](j)}(hj? h]hstruct}(hj@uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)}(h(struct ttm_tt *tt)h]jD)}(hstruct ttm_tt *tth](j)}(hj? h]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j)}(httm_tth]httm_tt}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjwmodnameN classnameNjj)}j]j)}j}jvsbc.ttm_tt_setup_backupasbuh1hhjvubj)}(h h]h }(hj6whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjDwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(htth]htt}(hjQwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjvubah}(h]h ]h"]h$]h&]jjuh1j=hjvhhhjvhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjvhMubah}(h]jvah ](jjeh"]h$]h&]j j )j huh1jhjvhMhjvhhubj )}(hhh]h)}(h3Allocate and assign a backup structure for a ttm_tth]h3Allocate and assign a backup structure for a ttm_tt}(hj{whhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:69: ./drivers/gpu/drm/ttm/ttm_tt.chMhjxwhhubah}(h]h ]h"]h$]h&]uh1j hjvhhhjvhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jwj( jwj) j* j+ uh1jhhhjThNhNubj- )}(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]j7 )}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjwubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:69: ./drivers/gpu/drm/ttm/ttm_tt.chMhjwubjM )}(hhh]jR )}(hU``struct ttm_tt *tt`` The ttm_tt for wich to allocate and assign a backup structure. h](jX )}(h``struct ttm_tt *tt``h]j^ )}(hjwh]hstruct ttm_tt *tt}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjwubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:69: ./drivers/gpu/drm/ttm/ttm_tt.chMhjwubjt )}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjwubah}(h]h ]h"]h$]h&]uh1js hjwubeh}(h]h ]h"]h$]h&]uh1jQ hjwhMhjwubah}(h]h ]h"]h$]h&]uh1jL hjwubh)}(h**Description**h]j7 )}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjwubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:69: ./drivers/gpu/drm/ttm/ttm_tt.chMhjwubh)}(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.}(hj xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:69: ./drivers/gpu/drm/ttm/ttm_tt.chMhjwubh)}(h **Return**h]j7 )}(hjxh]hReturn}(hj xhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjxubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:69: ./drivers/gpu/drm/ttm/ttm_tt.chM!hjwubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hj4xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:69: ./drivers/gpu/drm/ttm/ttm_tt.chM"hjwubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjThhhNhNubeh}(h]jah ]h"]ttm tt object referenceah$]h&]uh1hhjMhhhhhK@ubh)}(hhh](h)}(hTTM page pool referenceh]hTTM page pool reference}(hjTxhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjQxhhhhhKIubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_pool_type (C struct)c.ttm_pool_typehNtauh1jhjQxhhhNhNubj)}(hhh](j)}(h ttm_pool_typeh]j)}(hstruct ttm_pool_typeh](j)}(hj? h]hstruct}(hj{xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwxhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhKubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwxhhhjxhKubj)}(h ttm_pool_typeh]j)}(hjuxh]h ttm_pool_type}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jhjwxhhhjxhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjsxhhhjxhKubah}(h]jnxah ](jjeh"]h$]h&]j j )j huh1jhjxhKhjpxhhubj )}(hhh]h)}(hPool for a certain memory typeh]hPool for a certain memory type}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhK+hjxhhubah}(h]h ]h"]h$]h&]uh1j hjpxhhhjxhKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jxj( jxj) j* j+ uh1jhhhjQxhNhNubj- )}(hX**Definition**:: struct ttm_pool_type { struct ttm_pool *pool; unsigned int order; enum ttm_caching caching; struct list_head shrinker_list; struct list_lru pages; }; **Members** ``pool`` the pool we belong to, might be NULL for the global ones ``order`` the allocation order our pages have ``caching`` the caching type our pages have ``shrinker_list`` our place on the global shrinker list ``pages`` the lru_list of pages in the poolh](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjxubh:}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhK/hjxubj )}(hstruct ttm_pool_type { struct ttm_pool *pool; unsigned int order; enum ttm_caching caching; struct list_head shrinker_list; struct list_lru pages; };h]hstruct ttm_pool_type { struct ttm_pool *pool; unsigned int order; enum ttm_caching caching; struct list_head shrinker_list; struct list_lru pages; };}hjxsbah}(h]h ]h"]h$]h&]jjuh1j hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhK1hjxubh)}(h **Members**h]j7 )}(hj yh]hMembers}(hj yhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj yubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhK9hjxubjM )}(hhh](jR )}(hB``pool`` the pool we belong to, might be NULL for the global ones h](jX )}(h``pool``h]j^ )}(hj*yh]hpool}(hj,yhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj(yubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhK.hj$yubjt )}(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}(hjCyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?yhK.hj@yubah}(h]h ]h"]h$]h&]uh1js hj$yubeh}(h]h ]h"]h$]h&]uh1jQ hj?yhK.hj!yubjR )}(h.``order`` the allocation order our pages have h](jX )}(h ``order``h]j^ )}(hjcyh]horder}(hjeyhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjayubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhK/hj]yubjt )}(hhh]h)}(h#the allocation order our pages haveh]h#the allocation order our pages have}(hj|yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxyhK/hjyyubah}(h]h ]h"]h$]h&]uh1js hj]yubeh}(h]h ]h"]h$]h&]uh1jQ hjxyhK/hj!yubjR )}(h,``caching`` the caching type our pages have h](jX )}(h ``caching``h]j^ )}(hjyh]hcaching}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjyubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhK0hjyubjt )}(hhh]h)}(hthe caching type our pages haveh]hthe caching type our pages have}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhK0hjyubah}(h]h ]h"]h$]h&]uh1js hjyubeh}(h]h ]h"]h$]h&]uh1jQ hjyhK0hj!yubjR )}(h8``shrinker_list`` our place on the global shrinker list h](jX )}(h``shrinker_list``h]j^ )}(hjyh]h shrinker_list}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjyubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhK1hjyubjt )}(hhh]h)}(h%our place on the global shrinker listh]h%our place on the global shrinker list}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhK1hjyubah}(h]h ]h"]h$]h&]uh1js hjyubeh}(h]h ]h"]h$]h&]uh1jQ hjyhK1hj!yubjR )}(h+``pages`` the lru_list of pages in the poolh](jX )}(h ``pages``h]j^ )}(hjzh]hpages}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj zubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhK1hjzubjt )}(hhh]h)}(h!the lru_list of pages in the poolh]h!the lru_list of pages in the pool}(hj'zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhK2hj$zubah}(h]h ]h"]h$]h&]uh1js hjzubeh}(h]h ]h"]h$]h&]uh1jQ hj#zhK1hj!yubeh}(h]h ]h"]h$]h&]uh1jL hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjQxhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_pool (C struct) c.ttm_poolhNtauh1jhjQxhhhNhNubj)}(hhh](j)}(httm_poolh]j)}(hstruct ttm_poolh](j)}(hj? h]hstruct}(hjhzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdzhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhK8ubj)}(h h]h }(hjvzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdzhhhjuzhK8ubj)}(httm_poolh]j)}(hjbzh]httm_pool}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jhjdzhhhjuzhK8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`zhhhjuzhK8ubah}(h]j[zah ](jjeh"]h$]h&]j j )j huh1jhjuzhK8hj]zhhubj )}(hhh]h)}(hPool for all caching and ordersh]hPool for all caching and orders}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhK>hjzhhubah}(h]h ]h"]h$]h&]uh1j hj]zhhhjuzhK8ubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jzj( jzj) j* j+ uh1jhhhjQxhNhNubj- )}(hX**Definition**:: struct ttm_pool { struct device *dev; int nid; unsigned int alloc_flags; struct { struct ttm_pool_type orders[NR_PAGE_ORDERS]; } caching[TTM_NUM_CACHING_TYPES]; }; **Members** ``dev`` the device we allocate pages for ``nid`` which numa node to use ``alloc_flags`` TTM_ALLOCATION_POOL_* flags ``caching`` pools for each caching/orderh](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjzubh:}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhKBhjzubj )}(hstruct ttm_pool { struct device *dev; int nid; unsigned int alloc_flags; struct { struct ttm_pool_type orders[NR_PAGE_ORDERS]; } caching[TTM_NUM_CACHING_TYPES]; };h]hstruct ttm_pool { struct device *dev; int nid; unsigned int alloc_flags; struct { struct ttm_pool_type orders[NR_PAGE_ORDERS]; } caching[TTM_NUM_CACHING_TYPES]; };}hjzsbah}(h]h ]h"]h$]h&]jjuh1j hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhKDhjzubh)}(h **Members**h]j7 )}(hjzh]hMembers}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjzubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhKMhjzubjM )}(hhh](jR )}(h)``dev`` the device we allocate pages for h](jX )}(h``dev``h]j^ )}(hj{h]hdev}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj{ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhKAhj{ubjt )}(hhh]h)}(h the device we allocate pages forh]h the device we allocate pages for}(hj0{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,{hKAhj-{ubah}(h]h ]h"]h$]h&]uh1js hj{ubeh}(h]h ]h"]h$]h&]uh1jQ hj,{hKAhj{ubjR )}(h``nid`` which numa node to use h](jX )}(h``nid``h]j^ )}(hjP{h]hnid}(hjR{hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjN{ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhKBhjJ{ubjt )}(hhh]h)}(hwhich numa node to useh]hwhich numa node to use}(hji{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje{hKBhjf{ubah}(h]h ]h"]h$]h&]uh1js hjJ{ubeh}(h]h ]h"]h$]h&]uh1jQ hje{hKBhj{ubjR )}(h,``alloc_flags`` TTM_ALLOCATION_POOL_* flags h](jX )}(h``alloc_flags``h]j^ )}(hj{h]h alloc_flags}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj{ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhKChj{ubjt )}(hhh]h)}(hTTM_ALLOCATION_POOL_* flagsh]hTTM_ALLOCATION_POOL_* flags}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hKChj{ubah}(h]h ]h"]h$]h&]uh1js hj{ubeh}(h]h ]h"]h$]h&]uh1jQ hj{hKChj{ubjR )}(h(``caching`` pools for each caching/orderh](jX )}(h ``caching``h]j^ )}(hj{h]hcaching}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj{ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhKChj{ubjt )}(hhh]h)}(hpools for each caching/orderh]hpools for each caching/order}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:75: ./include/drm/ttm/ttm_pool.hhKDhj{ubah}(h]h ]h"]h$]h&]uh1js hj{ubeh}(h]h ]h"]h$]h&]uh1jQ hj{hKChj{ubeh}(h]h ]h"]h$]h&]uh1jL hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjQxhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_pool_alloc (C function)c.ttm_pool_allochNtauh1jhjQxhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMrubj)}(h h]h }(hj+|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj*|hMrubj)}(httm_pool_alloch]j)}(httm_pool_alloch]httm_pool_alloc}(hj=|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9|ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj|hhhj*|hMrubj>)}(hI(struct ttm_pool *pool, struct ttm_tt *tt, struct ttm_operation_ctx *ctx)h](jD)}(hstruct ttm_pool *poolh](j)}(hj? h]hstruct}(hjY|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU|ubj)}(h h]h }(hjf|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU|ubh)}(hhh]j)}(httm_poolh]httm_pool}(hjw|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt|ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjy|modnameN classnameNjj)}j]j)}j}j?|sbc.ttm_pool_allocasbuh1hhjU|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU|ubj)}(hpoolh]hpool}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjQ|ubjD)}(hstruct ttm_tt *tth](j)}(hj? h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]j)}(httm_tth]httm_tt}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj|modnameN classnameNjj)}j]j|c.ttm_pool_allocasbuh1hhj|ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(htth]htt}(hj"}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjQ|ubjD)}(hstruct ttm_operation_ctx *ctxh](j)}(hj? h]hstruct}(hj;}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7}ubj)}(h h]h }(hjH}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7}ubh)}(hhh]j)}(httm_operation_ctxh]httm_operation_ctx}(hjY}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV}ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj[}modnameN classnameNjj)}j]j|c.ttm_pool_allocasbuh1hhj7}ubj)}(h h]h }(hjw}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7}ubj)}(hctxh]hctx}(hj}hhhNhNubah}(h]h E]jah"]h$]h&]uh1jhj7}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjQ|ubeh}(h]h ]h"]h$]h&]jjuh1j=hj|hhhj*|hMrubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj*|hMrubah}(h]j|ah ](jjeh"]h$]h&]j j )j huh1jhj*|hMrhj|hhubj )}(hhh]h)}(hFill a ttm_tt objecth]hFill a ttm_tt object}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMrhj}hhubah}(h]h ]h"]h$]h&]uh1j hj|hhhj*|hMrubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j}j( j}j) j* j+ uh1jhhhjQxhNhNubj- )}(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]j7 )}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj}ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMvhj}ubjM )}(hhh](jR )}(h*``struct ttm_pool *pool`` ttm_pool to use h](jX )}(h``struct ttm_pool *pool``h]j^ )}(hj}h]hstruct ttm_pool *pool}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj}ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMthj}ubjt )}(hhh]h)}(httm_pool to useh]httm_pool to use}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMthj~ubah}(h]h ]h"]h$]h&]uh1js hj}ubeh}(h]h ]h"]h$]h&]uh1jQ hj~hMthj}ubjR )}(h,``struct ttm_tt *tt`` ttm_tt object to fill h](jX )}(h``struct ttm_tt *tt``h]j^ )}(hj6~h]hstruct ttm_tt *tt}(hj8~hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj4~ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMuhj0~ubjt )}(hhh]h)}(httm_tt object to fillh]httm_tt object to fill}(hjO~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK~hMuhjL~ubah}(h]h ]h"]h$]h&]uh1js hj0~ubeh}(h]h ]h"]h$]h&]uh1jQ hjK~hMuhj}ubjR )}(h4``struct ttm_operation_ctx *ctx`` operation context h](jX )}(h!``struct ttm_operation_ctx *ctx``h]j^ )}(hjo~h]hstruct ttm_operation_ctx *ctx}(hjq~hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjm~ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMvhji~ubjt )}(hhh]h)}(hoperation contexth]hoperation context}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMvhj~ubah}(h]h ]h"]h$]h&]uh1js hji~ubeh}(h]h ]h"]h$]h&]uh1jQ hj~hMvhj}ubeh}(h]h ]h"]h$]h&]uh1jL hj}ubh)}(h**Description**h]j7 )}(hj~h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj~ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMxhj}ubh)}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMwhj}ubh)}(h **Return**h]j7 )}(hj~h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj~ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMzhj}ubh)}(h-0 on successe, negative error code otherwise.h]h-0 on successe, negative error code otherwise.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chM{hj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjQxhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_pool_free (C function)c.ttm_pool_freehNtauh1jhjQxhhhNhNubj)}(hhh](j)}(h=void ttm_pool_free (struct ttm_pool *pool, struct ttm_tt *tt)h]j)}(h)}(h*(struct ttm_pool *pool, struct ttm_tt *tt)h](jD)}(hstruct ttm_pool *poolh](j)}(hj? h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(httm_poolh]httm_pool}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjsmodnameN classnameNjj)}j]j)}j}j9sbc.ttm_pool_freeasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjKubjD)}(hstruct ttm_tt *tth](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(httm_tth]httm_tt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.ttm_pool_freeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htth]htt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjKubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj$hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj$hMubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj$hMhj hhubj )}(hhh]h)}(h+Free the backing pages from a ttm_tt objecth]h+Free the backing pages from a ttm_tt object}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjChhubah}(h]h ]h"]h$]h&]uh1j hj hhhj$hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j^j( j^j) j* j+ uh1jhhhjQxhNhNubj- )}(h**Parameters** ``struct ttm_pool *pool`` Pool to give pages back to. ``struct ttm_tt *tt`` ttm_tt object to unpopulate **Description** Give the packing pages back to a pool or free themh](h)}(h**Parameters**h]j7 )}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjfubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjbubjM )}(hhh](jR )}(h6``struct ttm_pool *pool`` Pool to give pages back to. h](jX )}(h``struct ttm_pool *pool``h]j^ )}(hjh]hstruct ttm_pool *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjubjt )}(hhh]h)}(hPool to give pages back to.h]hPool to give pages back to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj~ubjR )}(h2``struct ttm_tt *tt`` ttm_tt object to unpopulate h](jX )}(h``struct ttm_tt *tt``h]j^ )}(hjh]hstruct ttm_tt *tt}(hj€hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjubjt )}(hhh]h)}(httm_tt object to unpopulateh]httm_tt object to unpopulate}(hjـhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjՀhMhjրubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjՀhMhj~ubeh}(h]h ]h"]h$]h&]uh1jL hjbubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjbubh)}(h2Give the packing pages back to a pool or free themh]h2Give the packing pages back to a pool or free them}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjQxhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_pool_init (C function)c.ttm_pool_inithNtauh1jhjQxhhhNhNubj)}(hhh](j)}(havoid ttm_pool_init (struct ttm_pool *pool, struct device *dev, int nid, unsigned int alloc_flags)h]j)}(h`void ttm_pool_init(struct ttm_pool *pool, struct device *dev, int nid, unsigned int alloc_flags)h](j)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhjNhMubj)}(h ttm_pool_inith]j)}(h ttm_pool_inith]h ttm_pool_init}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj<hhhjNhMubj>)}(hN(struct ttm_pool *pool, struct device *dev, int nid, unsigned int alloc_flags)h](jD)}(hstruct ttm_pool *poolh](j)}(hj? h]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j)}(httm_poolh]httm_pool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jcsbc.ttm_pool_initasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hjh]h*}(hjɁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hpoolh]hpool}(hjցhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjuubjD)}(hstruct device *devh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.ttm_pool_initasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjuubjD)}(hint nidh](j)}(hinth]hint}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hnidh]hnid}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjuubjD)}(hunsigned int alloc_flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h alloc_flagsh]h alloc_flags}(hĵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjuubeh}(h]h ]h"]h$]h&]jjuh1j=hj<hhhjNhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjNhMubah}(h]j3ah ](jjeh"]h$]h&]j j )j huh1jhjNhMhj5hhubj )}(hhh]h)}(hInitialize a poolh]hInitialize a pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj5hhhjNhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjQxhNhNubj- )}(hX***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 ``unsigned int alloc_flags`` TTM_ALLOCATION_POOL_* flags **Description** Initialize the pool and its pool types.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjubjM )}(hhh](jR )}(h1``struct ttm_pool *pool`` the pool to initialize h](jX )}(h``struct ttm_pool *pool``h]j^ )}(hj7h]hstruct ttm_pool *pool}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhj1ubjt )}(hhh]h)}(hthe pool to initializeh]hthe pool to initialize}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1js hj1ubeh}(h]h ]h"]h$]h&]uh1jQ hjLhMhj.ubjR )}(h?``struct device *dev`` device for DMA allocations and mappings h](jX )}(h``struct device *dev``h]j^ )}(hjph]hstruct device *dev}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjnubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjjubjt )}(hhh]h)}(h'device for DMA allocations and mappingsh]h'device for DMA allocations and mappings}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj.ubjR )}(h-``int nid`` NUMA node to use for allocations h](jX )}(h ``int nid``h]j^ )}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjubjt )}(hhh]h)}(h NUMA node to use for allocationsh]h NUMA node to use for allocations}(hjƒhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj.ubjR )}(h9``unsigned int alloc_flags`` TTM_ALLOCATION_POOL_* flags h](jX )}(h``unsigned int alloc_flags``h]j^ )}(hjh]hunsigned int alloc_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhj܃ubjt )}(hhh]h)}(hTTM_ALLOCATION_POOL_* flagsh]hTTM_ALLOCATION_POOL_* flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hj܃ubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj.ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjubh)}(h'Initialize the pool and its pool types.h]h'Initialize the pool and its pool types.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjQxhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_pool_fini (C function)c.ttm_pool_finihNtauh1jhjQxhhhNhNubj)}(hhh](j)}(h*void ttm_pool_fini (struct ttm_pool *pool)h]j)}(h)void ttm_pool_fini(struct ttm_pool *pool)h](j)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhjphMubj)}(h ttm_pool_finih]j)}(h ttm_pool_finih]h ttm_pool_fini}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj^hhhjphMubj>)}(h(struct ttm_pool *pool)h]jD)}(hstruct ttm_pool *poolh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(httm_poolh]httm_pool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.ttm_pool_finiasbuh1hhjubj)}(h h]h }(hj݄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hj^hhhjphMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjphMubah}(h]jUah ](jjeh"]h$]h&]j j )j huh1jhjphMhjWhhubj )}(hhh]h)}(hCleanup a poolh]hCleanup a pool}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjWhhhjphMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j:j( j:j) j* j+ uh1jhhhjQxhNhNubj- )}(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]j7 )}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjBubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhj>ubjM )}(hhh]jR )}(h/``struct ttm_pool *pool`` the pool to clean up h](jX )}(h``struct ttm_pool *pool``h]j^ )}(hjch]hstruct ttm_pool *pool}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhj]ubjt )}(hhh]h)}(hthe pool to clean uph]hthe pool to clean up}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1js hj]ubeh}(h]h ]h"]h$]h&]uh1jQ hjxhMhjZubah}(h]h ]h"]h$]h&]uh1jL hj>ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhj>ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjQxhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jttm_pool_debugfs (C function)c.ttm_pool_debugfshNtauh1jhjQxhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߅hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߅hhhjhMqubj)}(httm_pool_debugfsh]j)}(httm_pool_debugfsh]httm_pool_debugfs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj߅hhhjhMqubj>)}(h+(struct ttm_pool *pool, struct seq_file *m)h](jD)}(hstruct ttm_pool *poolh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(httm_poolh]httm_pool}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj@modnameN classnameNjj)}j]j)}j}jsbc.ttm_pool_debugfsasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpoolh]hpool}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct seq_file *mh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hseq_fileh]hseq_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jZc.ttm_pool_debugfsasbuh1hhjubj)}(h h]h }(hjΆhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj܆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmh]hm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hj߅hhhjhMqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjۅhhhjhMqubah}(h]jօah ](jjeh"]h$]h&]j j )j huh1jhjhMqhj؅hhubj )}(hhh]h)}(h Debugfs dump function for a poolh]h Debugfs dump function for a pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMqhjhhubah}(h]h ]h"]h$]h&]uh1j hj؅hhhjhMqubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j+j( j+j) j* j+ uh1jhhhjQxhNhNubj- )}(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]j7 )}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj3ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMuhj/ubjM )}(hhh](jR )}(h?``struct ttm_pool *pool`` the pool to dump the information for h](jX )}(h``struct ttm_pool *pool``h]j^ )}(hjTh]hstruct ttm_pool *pool}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjRubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMshjNubjt )}(hhh]h)}(h$the pool to dump the information forh]h$the pool to dump the information for}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMshjjubah}(h]h ]h"]h$]h&]uh1js hjNubeh}(h]h ]h"]h$]h&]uh1jQ hjihMshjKubjR )}(h+``struct seq_file *m`` seq_file to dump to h](jX )}(h``struct seq_file *m``h]j^ )}(hjh]hstruct seq_file *m}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMthjubjt )}(hhh]h)}(hseq_file to dump toh]hseq_file to dump to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMthjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMthjKubeh}(h]h ]h"]h$]h&]uh1jL hj/ubh)}(h**Description**h]j7 )}(hjȇh]h Description}(hjʇhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjƇubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMvhj/ubh)}(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.}(hjއhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:78: ./drivers/gpu/drm/ttm/ttm_pool.chMuhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjQxhhhNhNubeh}(h]jah ]h"]ttm page pool referenceah$]h&]uh1hhjMhhhhhKIubeh}(h]jIah ]h"]#the translation table manager (ttm)ah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h$The Graphics Execution Manager (GEM)h]h$The Graphics Execution Manager (GEM)}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhKRubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKThjhhubh)}(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 }(hj!hhhNhNubj)}(hJ`GEM - the Graphics Execution Manager `__h]h$GEM - the Graphics Execution Manager}(hj)hhhNhNubah}(h]h ]h"]h$]h&]name$GEM - the Graphics Execution Managerrefurihttp://lwn.net/Articles/283798/uh1jhj!ubh 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.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK[hjhhubh)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKbhjhhubh)}(h8On a fundamental level, GEM involves several operations:h]h8On a fundamental level, GEM involves several operations:}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhjhhubj)}(hhh](j)}(hMemory allocation and freeingh]h)}(hjfh]hMemory allocation and freeing}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKjhjdubah}(h]h ]h"]h$]h&]uh1jhjahhhhhNubj)}(hCommand executionh]h)}(hj}h]hCommand execution}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKkhj{ubah}(h]h ]h"]h$]h&]uh1jhjahhhhhNubj)}(h.Aperture management at command execution time h]h)}(h-Aperture management at command execution timeh]h-Aperture management at command execution time}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKlhjubah}(h]h ]h"]h$]h&]uh1jhjahhhhhNubeh}(h]h ]h"]h$]h&]bullet-uh1j hhhKjhjhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKnhjhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKrhjhhubh)}(hhh](h)}(hGEM Initializationh]hGEM Initialization}(hjшhhhNhNubah}(h]h ]h"]h$]h&]hj7uh1hhjΈhhhhhKwubh)}(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^ )}(hjh]hstruct drm_driver}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhhhKyhj߈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&]uh1hhhhKyhjΈ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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjΈhhubeh}(h]j=ah ]h"]gem initializationah$]h&]uh1hhjhhhhhKwubh)}(hhh](h)}(hGEM Objects Creationh]hGEM Objects Creation}(hj(hhhNhNubah}(h]h ]h"]h$]h&]hjYuh1hhj%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.}(hj6hhhNhNubah}(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 }(hjDhhhNhNubh)}(h0:c:type:`struct drm_gem_object `h]j^ )}(hjNh]hstruct drm_gem_object}(hjPhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjLubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhhhKhjDubh. 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 }(hjDhhhNhNubh)}(h0:c:type:`struct drm_gem_object `h]j^ )}(hjqh]hstruct drm_gem_object}(hjshhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjoubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhhhKhjDubh.}(hjDhhhNhNubeh}(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 }(hjhhhNhNubh)}(h0:c:type:`struct drm_gem_object `h]j^ )}(hjh]hstruct drm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhhhKhjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj%hhubh)}(hXxGEM uses shmem to allocate anonymous pageable memory. drm_gem_object_init() will create an shmfs file of the requested size and store it into the struct :c:type:`struct drm_gem_object ` filp field. The memory is used as either main storage for the object when the graphics hardware uses system memory directly or as a backing store otherwise. Drivers can call drm_gem_huge_mnt_create() to create, mount and use a huge shmem mountpoint instead of the default one ('shm_mnt'). For builds with CONFIG_TRANSPARENT_HUGEPAGE enabled, further calls to drm_gem_object_init() will let shmem allocate huge pages when possible.h](hGEM uses shmem to allocate anonymous pageable memory. drm_gem_object_init() will create an shmfs file of the requested size and store it into the struct }(hjɉhhhNhNubh)}(h0:c:type:`struct drm_gem_object `h]j^ )}(hjӉh]hstruct drm_gem_object}(hjՉhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjщubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhhhKhjɉubhX filp field. The memory is used as either main storage for the object when the graphics hardware uses system memory directly or as a backing store otherwise. Drivers can call drm_gem_huge_mnt_create() to create, mount and use a huge shmem mountpoint instead of the default one (‘shm_mnt’). For builds with CONFIG_TRANSPARENT_HUGEPAGE enabled, further calls to drm_gem_object_init() will let shmem allocate huge pages when possible.}(hjɉhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj%hhubh)}(hXDrivers are responsible for the actual physical pages allocation by calling shmem_read_mapping_page_gfp() for each page. Note that they can decide to allocate pages when initializing the GEM object, or to delay allocation until the memory is needed (for instance when a page fault occurs as a result of a userspace memory access or when the driver needs to start a DMA transfer involving the memory).h]hXDrivers are responsible for the actual physical pages allocation by calling shmem_read_mapping_page_gfp() for each page. Note that they can decide to allocate pages when initializing the GEM object, or to delay allocation until the memory is needed (for instance when a page fault occurs as a result of a userspace memory access or when the driver needs to start a DMA transfer involving the memory).}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj%hhubeh}(h]j_ah ]h"]gem objects creationah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hGEM Objects Lifetimeh]hGEM Objects Lifetime}(hj hhhNhNubah}(h]h ]h"]h$]h&]hj{uh1hhjhhhhhKubh)}(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&]uh1hhhhKhjhhubh)}(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^ )}(hjFh]hstruct drm_gem_object_funcs}(hjHhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjDubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j gem_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&]uh1hhhhKhjhhubh)}(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().}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]jah ]h"]gem objects lifetimeah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hGEM Objects Namingh]hGEM Objects Naming}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhKubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(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.}(hjˊhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(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&]uh1hhhhKhjhhubeh}(h]jah ]h"]gem objects namingah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hGEM Objects Mappingh]hGEM Objects Mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhKubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(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&]uh1hhhhKhjhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hOnce allocated, the fake offset value must be passed to the application in a driver-specific way and can then be used as the mmap offset argument.h]hOnce allocated, the fake offset value must be passed to the application in a driver-specific way and can then be used as the mmap offset argument.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjhhubh)}(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 }(hj7hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j^ )}(hjAh]hstruct drm_driver}(hjChhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj?ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhhhMhj7ubh 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.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(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 }(hjhhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j^ )}(hjrh]hstruct drm_driver}(hjthhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjpubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhhhMhjhubh2 gem_vm_ops field with a pointer to VM operations.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(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 }(hjhhhNhNubh)}(h<:c:type:`struct vm_operations_struct `h]j^ )}(hjh]hstruct vm_operations_struct}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j vm_operations_structuh1hhhhMhjubh< made up of several fields, the more interesting ones being:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj )}(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); };}hjʋsbah}(h]h ]h"]h$]h&]jjforcelanguagej! highlight_args}uh1j hhhMhjhhubh)}(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(hjhhubh)}(hXThe fault operation handler is responsible for mapping pages to userspace when a page fault occurs. Depending on the memory allocation scheme, drivers can allocate pages at fault time, or can decide to allocate memory for the GEM object at the time the object is created.h]hXThe fault operation handler is responsible for mapping pages to userspace when a page fault occurs. Depending on the memory allocation scheme, drivers can allocate pages at fault time, or can decide to allocate memory for the GEM object at the time the object is created.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM,hjhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM1hjhhubh)}(hX3In order to reduce page table overhead, if the internal shmem mountpoint "shm_mnt" is configured to use transparent huge pages (for builds with CONFIG_TRANSPARENT_HUGEPAGE enabled) and if the shmem backing store managed to allocate a huge page for a faulty address, the fault handler will first attempt to insert that huge page into the VMA before falling back to individual page insertion. mmap() user address alignment for GEM objects is handled by providing a custom get_unmapped_area file operation which forwards to the shmem backing store. For most drivers, which don't create a huge mountpoint by default or through a module parameter, transparent huge pages can be enabled by either setting the "transparent_hugepage_shmem" kernel parameter or the "/sys/kernel/mm/transparent_hugepage/shmem_enabled" sysfs knob.h]hXAIn order to reduce page table overhead, if the internal shmem mountpoint “shm_mnt” is configured to use transparent huge pages (for builds with CONFIG_TRANSPARENT_HUGEPAGE enabled) and if the shmem backing store managed to allocate a huge page for a faulty address, the fault handler will first attempt to insert that huge page into the VMA before falling back to individual page insertion. mmap() user address alignment for GEM objects is handled by providing a custom get_unmapped_area file operation which forwards to the shmem backing store. For most drivers, which don’t create a huge mountpoint by default or through a module parameter, transparent huge pages can be enabled by either setting the “transparent_hugepage_shmem” kernel parameter or the “/sys/kernel/mm/transparent_hugepage/shmem_enabled” sysfs knob.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM4hjhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMAhjhhubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hj*ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j file_operationsuh1hhhhMEhj"ubhK get_unmapped_area field with a pointer on drm_gem_dma_get_unmapped_area().}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMEhjhhubh)}(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}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMIhjhhubeh}(h]jah ]h"]gem objects mappingah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hMemory Coherencyh]hMemory Coherency}(hjkhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhhMMubh)}(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).}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMOhjhhhubeh}(h]jah ]h"]memory coherencyah$]h&]uh1hhjhhhhhMMubh)}(hhh](h)}(hCommand Executionh]hCommand Execution}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhM]ubh)}(hX,Perhaps the most important GEM function for GPU devices is providing a command execution interface to clients. Client programs construct command buffers containing references to previously allocated memory objects, and then submit them to GEM. At that point, GEM takes care to bind all the objects into the GTT, execute the buffer, and provide necessary synchronization between clients accessing the same buffers. This often involves evicting some objects from the GTT and re-binding others (a fairly expensive operation), and providing relocation support which hides fixed GTT offsets from clients. Clients must take care not to submit command buffers that reference more objects than can fit in the GTT; otherwise, GEM will reject them and no rendering will occur. Similarly, if several objects in the buffer require fence registers to be allocated for correct rendering (e.g. 2D blits on pre-965 chips), care must be taken not to require more fence registers than are available to the client. Such resource management should be abstracted from the client in libdrm.h]hX,Perhaps the most important GEM function for GPU devices is providing a command execution interface to clients. Client programs construct command buffers containing references to previously allocated memory objects, and then submit them to GEM. At that point, GEM takes care to bind all the objects into the GTT, execute the buffer, and provide necessary synchronization between clients accessing the same buffers. This often involves evicting some objects from the GTT and re-binding others (a fairly expensive operation), and providing relocation support which hides fixed GTT offsets from clients. Clients must take care not to submit command buffers that reference more objects than can fit in the GTT; otherwise, GEM will reject them and no rendering will occur. Similarly, if several objects in the buffer require fence registers to be allocated for correct rendering (e.g. 2D blits on pre-965 chips), care must be taken not to require more fence registers than are available to the client. Such resource management should be abstracted from the client in libdrm.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM_hjhhubeh}(h]j ah ]h"]command executionah$]h&]uh1hhjhhhhhM]ubh)}(hhh](h)}(hGEM Function Referenceh]hGEM Function Reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]hj%uh1hhjhhhhhMqubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_object_status (C enum)c.drm_gem_object_statushNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_gem_object_statush]j)}(henum drm_gem_object_statush](j)}(hjh]henum}(hjތhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڌhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڌhhhjhKubj)}(hdrm_gem_object_statush]j)}(hj،h]hdrm_gem_object_status}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjڌhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj֌hhhjhKubah}(h]jьah ](jjeh"]h$]h&]j j )j huh1jhjhKhjӌhhubj )}(hhh]h)}(h,bitmask of object state for fdinfo reportingh]h,bitmask of object state for fdinfo reporting}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhK4hjhhubah}(h]h ]h"]h$]h&]uh1j hjӌhhhjhKubeh}(h]h ](j! enumeh"]h$]h&]j& j! j' j8j( j8j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjBh]h Constants}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj@ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhK8hj<ubjM )}(hhh](jR )}(hL``DRM_GEM_OBJECT_RESIDENT`` object is resident in memory (ie. not unpinned) h](jX )}(h``DRM_GEM_OBJECT_RESIDENT``h]j^ )}(hjah]hDRM_GEM_OBJECT_RESIDENT}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj_ubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhK;hj[ubjt )}(hhh]h)}(h/object is resident in memory (ie. not unpinned)h]h/object is resident in memory (ie. not unpinned)}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhK;hjwubah}(h]h ]h"]h$]h&]uh1js hj[ubeh}(h]h ]h"]h$]h&]uh1jQ hjvhK;hjXubjR )}(hE``DRM_GEM_OBJECT_PURGEABLE`` object marked as purgeable by userspace h](jX )}(h``DRM_GEM_OBJECT_PURGEABLE``h]j^ )}(hjh]hDRM_GEM_OBJECT_PURGEABLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhK>hjubjt )}(hhh]h)}(h'object marked as purgeable by userspaceh]h'object marked as purgeable by userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK>hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhK>hjXubjR )}(hJ``DRM_GEM_OBJECT_ACTIVE`` object is currently used by an active submissionh](jX )}(h``DRM_GEM_OBJECT_ACTIVE``h]j^ )}(hjӍh]hDRM_GEM_OBJECT_ACTIVE}(hjՍhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjэubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhK@hj͍ubjt )}(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:371: ./include/drm/drm_gem.hhKAhjubah}(h]h ]h"]h$]h&]uh1js hj͍ubeh}(h]h ]h"]h$]h&]uh1jQ hjhK@hjXubeh}(h]h ]h"]h$]h&]uh1jL hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKChjhhubh)}(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^ )}(hj6h]hdrm_gem_object_funcs.status}(hj8hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj4ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhK8hj,ubhX and drm_show_fdinfo(). Note that an object can report DRM_GEM_OBJECT_PURGEABLE and be active or not resident, in which case drm_show_fdinfo() will not account for it as purgeable. So drivers do not need to check if the buffer is idle and resident to return this bit, i.e. userspace can mark a buffer as purgeable even while it is still busy on the GPU. It will not get reported in the puregeable stats until it becomes idle. The status gem object func does not need to consider this.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjShK8hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_object_funcs (C struct)c.drm_gem_object_funcshNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_gem_object_funcsh]j)}(hstruct drm_gem_object_funcsh](j)}(hj? h]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjhKDubj)}(hdrm_gem_object_funcsh]j)}(hjqh]hdrm_gem_object_funcs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjshhhjhKDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhKDubah}(h]jjah ](jjeh"]h$]h&]j j )j huh1jhjhKDhjlhhubj )}(hhh]h)}(hGEM object functionsh]hGEM object functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKIhjhhubah}(h]h ]h"]h$]h&]uh1j hjlhhhjhKDubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jюj( jюj) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjݎhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjَubh:}(hjَhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKMhjՎubj )}(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&]jjuh1j hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKOhjՎubh)}(h **Members**h]j7 )}(hjh]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKahjՎubjM )}(hhh](jR )}(hI``free`` Deconstructor for drm_gem_objects. This callback is mandatory. h](jX )}(h``free``h]j^ )}(hj&h]hfree}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj$ubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKPhj ubjt )}(hhh](h)}(h"Deconstructor for drm_gem_objects.h]h"Deconstructor for drm_gem_objects.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKNhj<ubh)}(hThis callback is mandatory.h]hThis callback is mandatory.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hKPhj<ubeh}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj;hKPhjubjR )}(hF``open`` Called upon GEM handle creation. This callback is optional. h](jX )}(h``open``h]j^ )}(hjnh]hopen}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKYhjhubjt )}(hhh](h)}(h Called upon GEM handle creation.h]h Called upon GEM handle creation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKWhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKYhjubeh}(h]h ]h"]h$]h&]uh1js hjhubeh}(h]h ]h"]h$]h&]uh1jQ hjhKYhjubjR )}(hF``close`` Called upon GEM handle release. This callback is optional. h](jX )}(h ``close``h]j^ )}(hjh]hclose}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKbhjubjt )}(hhh](h)}(hCalled upon GEM handle release.h]hCalled upon GEM handle release.}(hjϏhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhK`hj̏ubh)}(hThis callback is optional.h]hThis callback is optional.}(hjޏhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjˏhKbhj̏ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjˏhKbhjubjR )}(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](jX )}(h``print_info``h]j^ )}(hjh]h print_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKqhjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKihjubhS, it can implement this optional hook for printing additional driver specific info.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj>hKihjubh)}(hRdrm_printf_indent() should be used in the callback passing it the indent argument.h]hRdrm_printf_indent() should be used in the callback passing it the indent argument.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKlhjubh)}(h2This callback is called from drm_gem_print_info().h]h2This callback is called from drm_gem_print_info().}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKohjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKqhjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKqhjubjR )}(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](jX )}(h ``export``h]j^ )}(hjh]hexport}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhK|hjubjt )}(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 }(hjhhhNhNubh)}(h:c:type:`dma_buf`h]j^ )}(hjh]hdma_buf}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_bufuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKyhjubh4. If this is not set drm_gem_prime_export() is used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjǐhKyhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjҐhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK|hjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhK|hjubjR )}(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](jX )}(h``pin``h]j^ )}(hjh]hpin}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjubjt )}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(he``unpin`` Unpin backing buffer. Used by the drm_gem_map_detach() helper. This callback is optional. h](jX )}(h ``unpin``h]j^ )}(hj:h]hunpin}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj8ubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhj4ubjt )}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjPubh)}(hThis callback is optional.h]hThis callback is optional.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhKhjPubeh}(h]h ]h"]h$]h&]uh1js hj4ubeh}(h]h ]h"]h$]h&]uh1jQ hjOhKhjubjR )}(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](jX )}(h``get_sg_table``h]j^ )}(hjh]h get_sg_table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhj|ubjt )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjubh)}(h!See also drm_prime_pages_to_sg().h]h!See also drm_prime_pages_to_sg().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1js hj|ubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(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](jX )}(h``vmap``h]j^ )}(hjʑh]hvmap}(hj̑hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjȑubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjđubjt )}(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:371: ./include/drm/drm_gem.hhKhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjߑhKhjubeh}(h]h ]h"]h$]h&]uh1js hjđubeh}(h]h ]h"]h$]h&]uh1jQ hjߑhKhjubjR )}(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](jX )}(h ``vunmap``h]j^ )}(hjh]hvunmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhj ubjt )}(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+hhhNhNubj7 )}(h**vmap**h]hvmap}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj+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:371: ./include/drm/drm_gem.hhKhj(ubh)}(hThis callback is optional.h]hThis callback is optional.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hKhj(ubeh}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj'hKhjubjR )}(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](jX )}(h``mmap``h]j^ )}(hjlh]hmmap}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjfubjt )}(hhh](h)}(h7Handle mmap() of the gem object, setup vma accordingly.h]h7Handle mmap() of the gem object, setup vma accordingly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjubh)}(hThe callback is used by both drm_gem_mmap_obj() and drm_gem_prime_mmap(). When **mmap** is present **vm_ops** is not used, the **mmap** callback must set vma->vm_ops instead.h](hPThe callback is used by both drm_gem_mmap_obj() and drm_gem_prime_mmap(). When }(hjhhhNhNubj7 )}(h**mmap**h]hmmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh is present }(hjhhhNhNubj7 )}(h **vm_ops**h]hvm_ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh is not used, the }(hjhhhNhNubj7 )}(h**mmap**h]hmmap}(hjϒhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh' callback must set vma->vm_ops instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjubeh}(h]h ]h"]h$]h&]uh1js hjfubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(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](jX )}(h ``evict``h]j^ )}(hjh]hevict}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjubjt )}(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:371: ./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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(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](jX )}(h ``status``h]j^ )}(hjBh]hstatus}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhj<ubjt )}(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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjXubh)}(h"Called by drm_show_memory_stats().h]h"Called by drm_show_memory_stats().}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKhjXubeh}(h]h ]h"]h$]h&]uh1js hj<ubeh}(h]h ]h"]h$]h&]uh1jQ hjWhKhjubjR )}(hc``rss`` Return resident size of the object in physical memory. Called by drm_show_memory_stats(). h](jX )}(h``rss``h]j^ )}(hjh]hrss}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjubjt )}(hhh](h)}(h6Return resident size of the object in physical memory.h]h6Return resident size of the object in physical memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(hf``vm_ops`` Virtual memory operations used with mmap. This is optional but necessary for mmap support.h](jX )}(h ``vm_ops``h]j^ )}(hjғh]hvm_ops}(hjԓhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjГubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhj̓ubjt )}(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:371: ./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:371: ./include/drm/drm_gem.hhKhjubeh}(h]h ]h"]h$]h&]uh1js hj̓ubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubeh}(h]h ]h"]h$]h&]uh1jL hjՎubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_lru (C struct) c.drm_gem_lruhNtauh1jhjhhhNhNubj)}(hhh](j)}(h drm_gem_lruh]j)}(hstruct drm_gem_lruh](j)}(hj? h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhjHhKubj)}(h drm_gem_lruh]j)}(hj5h]h drm_gem_lru}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jhj7hhhjHhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhjHhKubah}(h]j.ah ](jjeh"]h$]h&]j j )j huh1jhjHhKhj0hhubj )}(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:371: ./include/drm/drm_gem.hhKhjzhhubah}(h]h ]h"]h$]h&]uh1j hj0hhhjHhKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(h**Definition**:: struct drm_gem_lru { long count; struct list_head list; }; **Members** ``count`` The total number of backing pages of the GEM objects in this LRU. ``list`` The LRU list.h](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjubj )}(hBstruct drm_gem_lru { long count; struct list_head list; };h]hBstruct drm_gem_lru { long count; struct list_head list; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjubh)}(h **Members**h]j7 )}(hj˔h]hMembers}(hj͔hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjɔubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjubjM )}(hhh](jR )}(hL``count`` The total number of backing pages of the GEM objects in this LRU. h](jX )}(h ``count``h]j^ )}(hjh]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjt )}(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:371: ./include/drm/drm_gem.hhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h``list`` The LRU list.h](jX )}(h``list``h]j^ )}(hj$h]hlist}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj"ubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjt )}(hhh]h)}(h The LRU list.h]h The LRU list.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhj:ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj9hMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjeubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM hjhhubh)}(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^ )}(hjh]hshrinker.count_objects}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j shrinkeruh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_lru_scanuh1hhjhKhj}ubh for driver’s }(hj}hhhNhNubh)}(h*:c:type:`shrinker.scan_objects `h]j^ )}(hjΕh]hshrinker.scan_objects}(hjЕhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj̕ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j shrinkeruh1hhjhKhj}ubh implementation.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjhhubh)}(hSAny access to this kind of object must be done with drm_device::gem_lru_mutex held.h]hSAny access to this kind of object must be done with drm_device::gem_lru_mutex held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_object (C struct)c.drm_gem_objecthNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_gem_objecth]j)}(hstruct drm_gem_objecth](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhKubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj*hKubj)}(hdrm_gem_objecth]j)}(hjh]hdrm_gem_object}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj*hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj*hKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj*hKhjhhubj )}(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:371: ./include/drm/drm_gem.hhMhj\hhubah}(h]h ]h"]h$]h&]uh1j hjhhhj*hKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jwj( jwj) j* j+ uh1jhhhjhNhNubj- )}(hX**Definition**:: struct drm_gem_object { struct kref refcount; unsigned handle_count; struct drm_device *dev; struct file *filp; struct drm_vma_offset_node vma_node; size_t size; int name; struct dma_buf *dma_buf; struct dma_buf_attachment *import_attach; struct dma_resv *resv; struct dma_resv _resv; struct { struct list_head list; struct mutex lock; } gpuva; const struct drm_gem_object_funcs *funcs; struct list_head lru_node; struct drm_gem_lru *lru; }; **Members** ``refcount`` Reference count of this object Please use drm_gem_object_get() to acquire and drm_gem_object_put_locked() or drm_gem_object_put() to release a reference to a GEM buffer object. ``handle_count`` This is the GEM file_priv handle count of this object. Each handle also holds a reference. Note that when the handle_count drops to 0 any global names (e.g. the id in the flink namespace) will be cleared. Protected by :c:type:`drm_device.object_name_lock `. ``dev`` DRM dev this object belongs to. ``filp`` SHMEM file node used as backing storage for swappable buffer objects. GEM also supports driver private objects with driver-specific backing storage (contiguous DMA memory, special reserved blocks). In this case **filp** is NULL. ``vma_node`` Mapping info for this object to support mmap. Drivers are supposed to allocate the mmap offset using drm_gem_create_mmap_offset(). The offset itself can be retrieved using drm_vma_node_offset_addr(). Memory mapping itself is handled by drm_gem_mmap(), which also checks that userspace is allowed to access the object. ``size`` Size of the object, in bytes. Immutable over the object's lifetime. ``name`` Global name for this object, starts at 1. 0 means unnamed. Access is covered by :c:type:`drm_device.object_name_lock `. This is used by the GEM_FLINK and GEM_OPEN ioctls. ``dma_buf`` dma-buf associated with this GEM object. Pointer to the dma-buf associated with this gem object (either through importing or exporting). We break the resulting reference loop when the last gem handle for this object is released. Protected by :c:type:`drm_device.object_name_lock `. ``import_attach`` dma-buf attachment backing this object. Any foreign dma_buf imported as a gem object has this set to the attachment point for the device. This is invariant over the lifetime of a gem object. The :c:type:`drm_gem_object_funcs.free ` callback is responsible for cleaning up the dma_buf attachment and references acquired at import time. Note that the drm gem/prime core does not depend upon drivers setting this field any more. So for drivers where this doesn't make sense (e.g. virtual devices or a displaylink behind an usb bus) they can simply leave it as NULL. ``resv`` Pointer to reservation object associated with the this GEM object. Normally (**resv** == &**_resv**) except for imported GEM objects. ``_resv`` A reservation object for this GEM object. This is unused for imported GEM objects. ``gpuva`` Fields used by GPUVM to manage mappings pointing to this GEM object. When DRM_GPUVM_IMMEDIATE_MODE is set, this list is protected by the mutex. Otherwise, the list is protected by the GEMs :c:type:`dma_resv` lock. Note that all entries in this list must agree on whether DRM_GPUVM_IMMEDIATE_MODE is set. ``gpuva.list`` list of GPUVM mappings attached to this GEM object. Drivers should lock list accesses with either the GEMs :c:type:`dma_resv` lock (:c:type:`drm_gem_object.resv `) or the :c:type:`drm_gem_object.gpuva `.lock mutex. ``gpuva.lock`` lock protecting access to :c:type:`drm_gem_object.gpuva `.list when DRM_GPUVM_IMMEDIATE_MODE is used. Only used when DRM_GPUVM_IMMEDIATE_MODE is set. It should be safe to take this mutex during the fence signalling path, so do not allocate memory while holding this lock. Otherwise, the :c:type:`dma_resv` lock should be used. ``funcs`` Optional GEM object functions. If this is set, it will be used instead of the corresponding :c:type:`drm_driver` GEM callbacks. New drivers should use this. ``lru_node`` List node in a :c:type:`drm_gem_lru`. ``lru`` The current LRU list that the GEM object is on. Access to this field must be done with drm_device::gem_lru_mutex held.h](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhj{ubj )}(hX struct drm_gem_object { struct kref refcount; unsigned handle_count; struct drm_device *dev; struct file *filp; struct drm_vma_offset_node vma_node; size_t size; int name; struct dma_buf *dma_buf; struct dma_buf_attachment *import_attach; struct dma_resv *resv; struct dma_resv _resv; struct { struct list_head list; struct mutex lock; } gpuva; const struct drm_gem_object_funcs *funcs; struct list_head lru_node; struct drm_gem_lru *lru; };h]hX struct drm_gem_object { struct kref refcount; unsigned handle_count; struct drm_device *dev; struct file *filp; struct drm_vma_offset_node vma_node; size_t size; int name; struct dma_buf *dma_buf; struct dma_buf_attachment *import_attach; struct dma_resv *resv; struct dma_resv _resv; struct { struct list_head list; struct mutex lock; } gpuva; const struct drm_gem_object_funcs *funcs; struct list_head lru_node; struct drm_gem_lru *lru; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhj{ubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM)hj{ubjM )}(hhh](jR )}(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](jX )}(h ``refcount``h]j^ )}(hj̖h]hrefcount}(hjΖhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjʖubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjƖubjt )}(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:371: ./include/drm/drm_gem.hhMhjubh)}(hPlease use drm_gem_object_get() to acquire and drm_gem_object_put_locked() or drm_gem_object_put() to release a reference to a GEM buffer object.h]hPlease use drm_gem_object_get() to acquire and drm_gem_object_put_locked() or drm_gem_object_put() to release a reference to a GEM buffer object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubeh}(h]h ]h"]h$]h&]uh1js hjƖubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjÖubjR )}(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](jX )}(h``handle_count``h]j^ )}(hjh]h handle_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM)hjubjt )}(hhh](h)}(h6This is the GEM file_priv handle count of this object.h]h6This is the GEM file_priv handle count of this object.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM#hj+ubh)}(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:371: ./include/drm/drm_gem.hhM%hj+ubh)}(h@Protected by :c:type:`drm_device.object_name_lock `.h](h Protected by }(hjLhhhNhNubh)}(h2:c:type:`drm_device.object_name_lock `h]j^ )}(hjVh]hdrm_device.object_name_lock}(hjXhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjTubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_deviceuh1hhj*hM)hjLubh.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj*hM)hj+ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj*hM)hjÖubjR )}(h(``dev`` DRM dev this object belongs to. h](jX )}(h``dev``h]j^ )}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM0hjubjt )}(hhh]h)}(hDRM dev this object belongs to.h]hDRM dev this object belongs to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM0hjÖubjR )}(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](jX )}(h``filp``h]j^ )}(hjȗh]hfilp}(hjʗhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjƗubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM8hj—ubjt )}(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 }(hjhhhNhNubj7 )}(h**filp**h]hfilp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh is NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM5hjޗubah}(h]h ]h"]h$]h&]uh1js hj—ubeh}(h]h ]h"]h$]h&]uh1jQ hjݗhM8hjÖubjR )}(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](jX )}(h ``vma_node``h]j^ )}(hjh]hvma_node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMDhjubjt )}(hhh](h)}(hMapping info for this object to support mmap. Drivers are supposed to allocate the mmap offset using drm_gem_create_mmap_offset(). The offset itself can be retrieved using drm_vma_node_offset_addr().h]hMapping info for this object to support mmap. Drivers are supposed to allocate the mmap offset using drm_gem_create_mmap_offset(). The offset itself can be retrieved using drm_vma_node_offset_addr().}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM?hj*ubh)}(huMemory mapping itself is handled by drm_gem_mmap(), which also checks that userspace is allowed to access the object.h]huMemory mapping itself is handled by drm_gem_mmap(), which also checks that userspace is allowed to access the object.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMChj*ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj)hMDhjÖubjR )}(hN``size`` Size of the object, in bytes. Immutable over the object's lifetime. h](jX )}(h``size``h]j^ )}(hj]h]hsize}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj[ubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMLhjWubjt )}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMKhjsubah}(h]h ]h"]h$]h&]uh1js hjWubeh}(h]h ]h"]h$]h&]uh1jQ hjrhMLhjÖubjR )}(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](jX )}(h``name``h]j^ )}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMUhjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_deviceuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMShjubh4. This is used by the GEM_FLINK and GEM_OPEN ioctls.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjטhMShjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMUhjÖubjR )}(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](jX )}(h ``dma_buf``h]j^ )}(hjh]hdma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMbhjubjt )}(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:371: ./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:371: ./include/drm/drm_gem.hhM^hj ubh)}(h@Protected by :c:type:`drm_device.object_name_lock `.h](h Protected by }(hj+hhhNhNubh)}(h2:c:type:`drm_device.object_name_lock `h]j^ )}(hj5h]hdrm_device.object_name_lock}(hj7hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj3ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_deviceuh1hhj hMbhj+ubh.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMbhj ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hMbhjÖubjR )}(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](jX )}(h``import_attach``h]j^ )}(hjnh]h import_attach}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMvhjhubjt )}(hhh](h)}(h'dma-buf attachment backing this object.h]h'dma-buf attachment backing this object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMihjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMkhjubh)}(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 }(hjhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j^ )}(hjh]hdrm_gem_object_funcs.free}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMohjubhg callback is responsible for cleaning up the dma_buf attachment and references acquired at import time.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj̙hMohjubh)}(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.}(hjיhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMshjubeh}(h]h ]h"]h$]h&]uh1js hjhubeh}(h]h ]h"]h$]h&]uh1jQ hjhMvhjÖubjR )}(h``resv`` Pointer to reservation object associated with the this GEM object. Normally (**resv** == &**_resv**) except for imported GEM objects. h](jX )}(h``resv``h]j^ )}(hjh]hresv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjt )}(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:371: ./include/drm/drm_gem.hhM}hjubh)}(hBNormally (**resv** == &**_resv**) except for imported GEM objects.h](h Normally (}(hj hhhNhNubj7 )}(h**resv**h]hresv}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubh0 == &**_resv**) except for imported GEM objects.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhjÖubjR )}(h^``_resv`` A reservation object for this GEM object. This is unused for imported GEM objects. h](jX )}(h ``_resv``h]j^ )}(hjRh]h_resv}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjPubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjLubjt )}(hhh](h)}(h)A reservation object for this GEM object.h]h)A reservation object for this GEM object.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjhubh)}(h(This is unused for imported GEM objects.h]h(This is unused for imported GEM objects.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjhubeh}(h]h ]h"]h$]h&]uh1js hjLubeh}(h]h ]h"]h$]h&]uh1jQ hjghMhjÖubjR )}(hX<``gpuva`` Fields used by GPUVM to manage mappings pointing to this GEM object. When DRM_GPUVM_IMMEDIATE_MODE is set, this list is protected by the mutex. Otherwise, the list is protected by the GEMs :c:type:`dma_resv` lock. Note that all entries in this list must agree on whether DRM_GPUVM_IMMEDIATE_MODE is set. h](jX )}(h ``gpuva``h]j^ )}(hjh]hgpuva}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjt )}(hhh](h)}(hDFields used by GPUVM to manage mappings pointing to this GEM object.h]hDFields used by GPUVM to manage mappings pointing to this GEM object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubh)}(hWhen DRM_GPUVM_IMMEDIATE_MODE is set, this list is protected by the mutex. Otherwise, the list is protected by the GEMs :c:type:`dma_resv` lock.h](hxWhen DRM_GPUVM_IMMEDIATE_MODE is set, this list is protected by the mutex. Otherwise, the list is protected by the GEMs }(hjšhhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hj̚h]hdma_resv}(hjΚhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjʚubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjšubh lock.}(hjšhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(hYNote that all entries in this list must agree on whether DRM_GPUVM_IMMEDIATE_MODE is set.h]hYNote that all entries in this list must agree on whether DRM_GPUVM_IMMEDIATE_MODE is set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjÖubjR )}(hX``gpuva.list`` list of GPUVM mappings attached to this GEM object. Drivers should lock list accesses with either the GEMs :c:type:`dma_resv` lock (:c:type:`drm_gem_object.resv `) or the :c:type:`drm_gem_object.gpuva `.lock mutex. h](jX )}(h``gpuva.list``h]j^ )}(hjh]h gpuva.list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjt )}(hhh](h)}(h3list of GPUVM mappings attached to this GEM object.h]h3list of GPUVM mappings attached to this GEM object.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhj+ubh)}(hDrivers should lock list accesses with either the GEMs :c:type:`dma_resv` lock (:c:type:`drm_gem_object.resv `) or the :c:type:`drm_gem_object.gpuva `.lock mutex.h](h7Drivers should lock list accesses with either the GEMs }(hj=hhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjGh]hdma_resv}(hjIhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjEubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhj=ubh lock (}(hj=hhhNhNubh)}(h.:c:type:`drm_gem_object.resv `h]j^ )}(hjkh]hdrm_gem_object.resv}(hjmhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjiubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjdhMhj=ubh ) or the }(hj=hhhNhNubh)}(h/:c:type:`drm_gem_object.gpuva `h]j^ )}(hjh]hdrm_gem_object.gpuva}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjdhMhj=ubh .lock mutex.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjdhMhj+ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj*hMhjÖubjR )}(hXg``gpuva.lock`` lock protecting access to :c:type:`drm_gem_object.gpuva `.list when DRM_GPUVM_IMMEDIATE_MODE is used. Only used when DRM_GPUVM_IMMEDIATE_MODE is set. It should be safe to take this mutex during the fence signalling path, so do not allocate memory while holding this lock. Otherwise, the :c:type:`dma_resv` lock should be used. h](jX )}(h``gpuva.lock``h]j^ )}(hjǛh]h gpuva.lock}(hjɛhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjśubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjt )}(hhh](h)}(hulock protecting access to :c:type:`drm_gem_object.gpuva `.list when DRM_GPUVM_IMMEDIATE_MODE is used.h](hlock protecting access to }(hjhhhNhNubh)}(h/:c:type:`drm_gem_object.gpuva `h]j^ )}(hjh]hdrm_gem_object.gpuva}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubh,.list when DRM_GPUVM_IMMEDIATE_MODE is used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjݛubh)}(hOnly used when DRM_GPUVM_IMMEDIATE_MODE is set. It should be safe to take this mutex during the fence signalling path, so do not allocate memory while holding this lock. Otherwise, the :c:type:`dma_resv` lock should be used.h](hOnly used when DRM_GPUVM_IMMEDIATE_MODE is set. It should be safe to take this mutex during the fence signalling path, so do not allocate memory while holding this lock. Otherwise, the }(hjhhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjh]hdma_resv}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubh lock should be used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hMhjݛubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjܛhMhjÖubjR )}(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](jX )}(h ``funcs``h]j^ )}(hjVh]hfuncs}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjTubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjPubjt )}(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 }(hjohhhNhNubh)}(h:c:type:`drm_driver`h]j^ )}(hjyh]h drm_driver}(hj{hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjwubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjoubh GEM callbacks.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjlubh)}(hNew drivers should use this.h]hNew drivers should use this.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubeh}(h]h ]h"]h$]h&]uh1js hjPubeh}(h]h ]h"]h$]h&]uh1jQ hjkhMhjÖubjR )}(h3``lru_node`` List node in a :c:type:`drm_gem_lru`. h](jX )}(h ``lru_node``h]j^ )}(hjh]hlru_node}(hjÜhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_lruuh1hhj֜hMhjڜubh.}(hjڜhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj֜hMhjלubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj֜hMhjÖubjR )}(h``lru`` The current LRU list that the GEM object is on. Access to this field must be done with drm_device::gem_lru_mutex held.h](jX )}(h``lru``h]j^ )}(hjh]hlru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjt )}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhj3ubh)}(hFAccess to this field must be done with drm_device::gem_lru_mutex held.h]hFAccess to this field must be done with drm_device::gem_lru_mutex held.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj2hMhjÖubeh}(h]h ]h"]h$]h&]uh1jL hj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjlubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjhhubh)}(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:371: ./include/drm/drm_gem.hhMhjhhubh)}(h+Buffer objects are often abbreviated to BO.h]h+Buffer objects are often abbreviated to BO.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_GEM_FOPS (C macro)c.DRM_GEM_FOPShNtauh1jhjhhhNhNubj)}(hhh](j)}(h DRM_GEM_FOPSh]j)}(h DRM_GEM_FOPSh]j)}(h DRM_GEM_FOPSh]j)}(hjh]h DRM_GEM_FOPS}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjҝhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjҝhMhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjҝhMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubh)}(h``DRM_GEM_FOPS``h]j^ )}(hjh]h DRM_GEM_FOPS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjhhubj )}(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:371: ./include/drm/drm_gem.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhjhMhjubh)}(h**Description**h]j7 )}(hj&h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj$ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./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^ )}(hjFh]hfile_operations}(hjHhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjDubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j file_operationsuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./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&]uh1hhjchMhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDEFINE_DRM_GEM_FOPS (C macro)c.DEFINE_DRM_GEM_FOPShNtauh1jhjhhhNhNubj)}(hhh](j)}(hDEFINE_DRM_GEM_FOPSh]j)}(hDEFINE_DRM_GEM_FOPSh]j)}(hDEFINE_DRM_GEM_FOPSh]j)}(hjh]hDEFINE_DRM_GEM_FOPS}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubh)}(h``DEFINE_DRM_GEM_FOPS (name)``h]j^ )}(hjÞh]hDEFINE_DRM_GEM_FOPS (name)}(hjŞhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjhhubj )}(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}(hjݞhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjٞubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjM )}(hhh]jR )}(h*``name`` name for the generated structure h](jX )}(h``name``h]j^ )}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjt )}(hhh]h)}(h name for the generated structureh]h name for the generated structure}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj,hMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjPubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./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 }(hjhhhhNhNubh)}(h2:c:type:`struct file_operations `h]j^ )}(hjrh]hstruct file_operations}(hjthhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjpubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j file_operationsuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjhubh1 for GEM based drivers, which can be assigned to }(hjhhhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j^ )}(hjh]hdrm_driver.fops}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhjhMhjhubh. Note that this structure cannot be shared between drivers, because it contains a reference to the current module using THIS_MODULE.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_gem_get_huge_mnt (C function)c.drm_gem_get_huge_mnthNtauh1jhjhhhNhNubj)}(hhh](j)}(h?struct vfsmount * drm_gem_get_huge_mnt (struct drm_device *dev)h]j)}(h=struct vfsmount *drm_gem_get_huge_mnt(struct drm_device *dev)h](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(hvfsmounth]hvfsmount}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}drm_gem_get_huge_mntsbc.drm_gem_get_huge_mntasbuh1hhjhhhjhMubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_get_huge_mnth]j)}(hj)h]hdrm_gem_get_huge_mnt}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h(struct drm_device *dev)h]jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j'c.drm_gem_get_huge_mntasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj^ubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jߟah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h2Get the huge tmpfs mountpoint used by a DRM deviceh]h2Get the huge tmpfs mountpoint used by a DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(hXh**Parameters** ``struct drm_device *dev`` DRM device **Description** This function gets the huge tmpfs mountpoint used by DRM device **dev**. A huge tmpfs mountpoint is used instead of `shm_mnt` after a successful call to drm_gem_huge_mnt_create() when CONFIG_TRANSPARENT_HUGEPAGE is enabled. **Return** The huge tmpfs mountpoint in use, NULL otherwise.h](h)}(h**Parameters**h]j7 )}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjM )}(hhh]jR )}(h&``struct drm_device *dev`` DRM device h](jX )}(h``struct drm_device *dev``h]j^ )}(hj(h]hstruct drm_device *dev}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhj"ubjt )}(hhh]h)}(h DRM deviceh]h DRM device}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1js hj"ubeh}(h]h ]h"]h$]h&]uh1jQ hj=hMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjaubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubh)}(hThis function gets the huge tmpfs mountpoint used by DRM device **dev**. A huge tmpfs mountpoint is used instead of `shm_mnt` after a successful call to drm_gem_huge_mnt_create() when CONFIG_TRANSPARENT_HUGEPAGE is enabled.h](h@This function gets the huge tmpfs mountpoint used by DRM device }(hjyhhhNhNubj7 )}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjyubh-. A huge tmpfs mountpoint is used instead of }(hjyhhhNhNubhtitle_reference)}(h `shm_mnt`h]hshm_mnt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubhb after a successful call to drm_gem_huge_mnt_create() when CONFIG_TRANSPARENT_HUGEPAGE is enabled.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubh)}(h1The huge tmpfs mountpoint in use, NULL otherwise.h]h1The huge tmpfs mountpoint in use, NULL otherwise.}(hjơhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_object_get (C function)c.drm_gem_object_gethNtauh1jhjhhhNhNubj)}(hhh](j)}(h4void drm_gem_object_get (struct drm_gem_object *obj)h]j)}(h3void drm_gem_object_get(struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM#ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM#ubj)}(hdrm_gem_object_geth]j)}(hdrm_gem_object_geth]hdrm_gem_object_get}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM#ubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjRmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_object_getasbuh1hhj.ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj*ubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM#ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM#hjhhubj )}(hhh]h)}(h%acquire a GEM buffer object referenceh]h%acquire a GEM buffer object reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM#hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM#ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j͢j( j͢j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjעh]h Parameters}(hj٢hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjբubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM'hjѢubjM )}(hhh]jR )}(h1``struct drm_gem_object *obj`` GEM buffer object h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM$hjubjt )}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM$hj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hM$hjubah}(h]h ]h"]h$]h&]uh1jL hjѢubh)}(h**Description**h]j7 )}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj/ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM&hjѢ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 }(hjGhhhNhNubj7 )}(h**obj**h]hobj}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjGubhT. It is illegal to call this without already holding a reference. No locks required.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM%hjѢubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_object_put (C function)c.drm_gem_object_puthNtauh1jhjhhhNhNubj)}(hhh](j)}(h4void drm_gem_object_put (struct drm_gem_object *obj)h]j)}(h3void drm_gem_object_put(struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM6ubj)}(hdrm_gem_object_puth]j)}(hdrm_gem_object_puth]hdrm_gem_object_put}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM6ubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjţhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjңhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_object_putasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM6ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM6ubah}(h]j{ah ](jjeh"]h$]h&]j j )j huh1jhjhM6hj}hhubj )}(hhh]h)}(h"drop a GEM buffer object referenceh]h"drop a GEM buffer object reference}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM6hjEhhubah}(h]h ]h"]h$]h&]uh1j hj}hhhjhM6ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j`j( j`j) j* j+ uh1jhhhjhNhNubj- )}(hz**Parameters** ``struct drm_gem_object *obj`` GEM buffer object **Description** This releases a reference to **obj**.h](h)}(h**Parameters**h]j7 )}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjhubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM:hjdubjM )}(hhh]jR )}(h1``struct drm_gem_object *obj`` GEM buffer object h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM7hjubjt )}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM7hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM7hjubah}(h]h ]h"]h$]h&]uh1jL hjdubh)}(h**Description**h]j7 )}(hjĤh]h Description}(hjƤhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj¤ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM9hjdubh)}(h%This releases a reference to **obj**.h](hThis releases a reference to }(hjڤhhhNhNubj7 )}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjڤubh.}(hjڤhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM8hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j6drm_gem_object_is_shared_for_memory_stats (C function)+c.drm_gem_object_is_shared_for_memory_statshNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMqubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj(hMqubj)}(h)drm_gem_object_is_shared_for_memory_statsh]j)}(h)drm_gem_object_is_shared_for_memory_statsh]h)drm_gem_object_is_shared_for_memory_stats}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj(hMqubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjwmodnameN classnameNjj)}j]j)}j}j=sb+c.drm_gem_object_is_shared_for_memory_statsasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhj(hMqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj(hMqubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj(hMqhjhhubj )}(hhh]h)}(hhelper for shared memory statsh]hhelper for shared memory stats}(hjڥhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMqhjץhhubah}(h]h ]h"]h$]h&]uh1j hjhhhj(hMqubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMuhjubjM )}(hhh]jR )}(h/``struct drm_gem_object *obj`` obj in question h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMvhjubjt )}(hhh]h)}(hobj in questionh]hobj in question}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMvhj1ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj0hMvhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjTubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMxhjubh)}(hfThis helper should only be used for fdinfo shared memory stats to determine if a GEM object is shared.h]hfThis helper should only be used for fdinfo shared memory stats to determine if a GEM object is shared.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMrhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gem_is_imported (C function)c.drm_gem_is_importedhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM~ubj)}(hdrm_gem_is_importedh]j)}(hdrm_gem_is_importedh]hdrm_gem_is_imported}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM~ubj>)}(h"(const struct drm_gem_object *obj)h]jD)}(h const struct drm_gem_object *objh](j)}(hjJh]hconst}(hjצhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӦubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӦubj)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӦubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӦubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_is_importedasbuh1hhjӦubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӦubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӦubj)}(hobjh]hobj}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӦubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjϦubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM~ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM~ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM~hjhhubj )}(hhh]h)}(h.Tests if GEM object's buffer has been importedh]h0Tests if GEM object’s buffer has been imported}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhM~hjrhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM~ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjM )}(hhh]jR )}(h4``const struct drm_gem_object *obj`` the GEM object h](jX )}(h$``const struct drm_gem_object *obj``h]j^ )}(hjh]h const struct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjt )}(hhh]h)}(hthe GEM objecth]hthe GEM object}(hjϧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj˧hMhj̧ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj˧hMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubh)}(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:371: ./include/drm/drm_gem.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_gpuva_init (C function)c.drm_gem_gpuva_inithNtauh1jhjhhhNhNubj)}(hhh](j)}(h4void drm_gem_gpuva_init (struct drm_gem_object *obj)h]j)}(h3void drm_gem_gpuva_init(struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjDhMubj)}(hdrm_gem_gpuva_inith]j)}(hdrm_gem_gpuva_inith]hdrm_gem_gpuva_init}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jhj2hhhjDhMubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jYsbc.drm_gem_gpuva_initasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hobjh]hobj}(hj̨hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjkubah}(h]h ]h"]h$]h&]jjuh1j=hj2hhhjDhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjDhMubah}(h]j)ah ](jjeh"]h$]h&]j j )j huh1jhjDhMhj+hhubj )}(hhh]h)}(h)initialize the gpuva list of a GEM objecth]h)initialize the gpuva list of a GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j hj+hhhjDhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(h**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. See also drm_gem_gpuva_set_lock().h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjM )}(hhh]jR )}(h<``struct drm_gem_object *obj`` the :c:type:`drm_gem_object` h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hj7h]hstruct drm_gem_object *obj}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhj1ubjt )}(hhh]h)}(hthe :c:type:`drm_gem_object`h](hthe }(hjPhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjZh]hdrm_gem_object}(hj\hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjXubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjLhMhjPubeh}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1js hj1ubeh}(h]h ]h"]h$]h&]uh1jQ hjLhMhj.ubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubh’s }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjթh]h drm_gpuvm_bo}(hjשhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjөubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjΩhMhjubh list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjΩhMhjubh)}(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:371: ./include/drm/drm_gem.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_gem_for_each_gpuvm_bo (C macro)c.drm_gem_for_each_gpuvm_bohNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_gem_for_each_gpuvm_boh]j)}(hdrm_gem_for_each_gpuvm_boh]j)}(hdrm_gem_for_each_gpuvm_boh]j)}(hj%h]hdrm_gem_for_each_gpuvm_bo}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj'hhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhjBhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjBhMhj hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj hhhjBhMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' j[j( j[j) j* j+ uh1jhhhjhNhNubh)}(h.``drm_gem_for_each_gpuvm_bo (entry__, obj__)``h]j^ )}(hjah]h*drm_gem_for_each_gpuvm_bo (entry__, obj__)}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj_ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjhhubj )}(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 }(hj{hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhj{ubeh}(h]h ]h"]h$]h&]uh1hhjhMhjwubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjM )}(hhh](jR )}(hQ``entry__`` :c:type:`drm_gpuvm_bo` structure to assign to in each iteration step h](jX )}(h ``entry__``h]j^ )}(hjԪh]hentry__}(hj֪hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjҪubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjΪubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhMhjubh. structure to assign to in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjΪubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj˪ubjR )}(h^``obj__`` the :c:type:`drm_gem_object` the :c:type:`drm_gpuvm_bo` to walk are associated with h](jX )}(h ``obj__``h]j^ )}(hj,h]hobj__}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj*ubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhj&ubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjMubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjAhMhjEubh the }(hjEhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjrh]h drm_gpuvm_bo}(hjthhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjpubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjAhMhjEubh to walk are associated with}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1js hj&ubeh}(h]h ]h"]h$]h&]uh1jQ hjAhMhj˪ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubh)}(hlThis iterator walks over all :c:type:`drm_gpuvm_bo` structures associated with the :c:type:`drm_gem_object`.h](hThis iterator walks over all }(hjëhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjͫh]h drm_gpuvm_bo}(hjϫhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj˫ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjëubh structures associated with the }(hjëhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjhMhjëubh.}(hjëhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(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_safehNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_gem_for_each_gpuvm_bo_safeh]j)}(hdrm_gem_for_each_gpuvm_bo_safeh]j)}(hdrm_gem_for_each_gpuvm_bo_safeh]j)}(hj2h]hdrm_gem_for_each_gpuvm_bo_safe}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj4hhhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjOhMubah}(h]j+ah ](jjeh"]h$]h&]j j )j huh1jhjOhMhj-hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj-hhhjOhMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jhj( jhj) j* j+ uh1jhhhjhNhNubh)}(h;``drm_gem_for_each_gpuvm_bo_safe (entry__, next__, obj__)``h]j^ )}(hjnh]h7drm_gem_for_each_gpuvm_bo_safe (entry__, next__, obj__)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjhhubj )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj- )}(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]j7 )}(hj¬h]h Parameters}(hjĬhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjM )}(hhh](jR )}(hP``entry__`` :c:type:`drm_gpuvm_bostructure` to assign to in each iteration step h](jX )}(h ``entry__``h]j^ )}(hjh]hentry__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj߬ubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhj۬ubjt )}(hhh]h)}(hC:c:type:`drm_gpuvm_bostructure` to assign to in each iteration steph](h)}(h:c:type:`drm_gpuvm_bostructure`h]j^ )}(hjh]hdrm_gpuvm_bostructure}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bostructureuh1hhjhMhjubh$ to assign to in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hj۬ubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjجubjR )}(hH``next__`` :c:type:`next` :c:type:`drm_gpuvm_bo` to store the next step h](jX )}(h ``next__``h]j^ )}(hj9h]hnext__}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj7ubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhj3ubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjVubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j nextuh1hhjNhMhjRubh }(hjRhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hj{h]h drm_gpuvm_bo}(hj}hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjyubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjNhMhjRubh to store the next step}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjNhMhjOubah}(h]h ]h"]h$]h&]uh1js hj3ubeh}(h]h ]h"]h$]h&]uh1jQ hjNhMhjجubjR )}(h^``obj__`` the :c:type:`drm_gem_object` the :c:type:`drm_gpuvm_bo` to walk are associated with h](jX )}(h ``obj__``h]j^ )}(hjh]hobj__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubjt )}(hhh]h)}(hSthe :c:type:`drm_gem_object` the :c:type:`drm_gpuvm_bo` to walk are associated withh](hthe }(hjͭhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hj׭h]hdrm_gem_object}(hj٭hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjխubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjɭhMhjͭubh the }(hjͭhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjɭhMhjͭubh to walk are associated with}(hjͭhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjɭhMhjʭubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjɭhMhjجubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj5h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj3ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjubh)}(hThis iterator walks over all :c:type:`drm_gpuvm_bo` structures associated with the :c:type:`drm_gem_object`. It is implemented with list_for_each_entry_safe(), hence it is save against removal of elements.h](hThis iterator walks over all }(hjKhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjUh]h drm_gpuvm_bo}(hjWhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjSubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhQ/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:371: ./include/drm/drm_gem.hhMhjKubh structures associated with the }(hjKhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjyh]hdrm_gem_object}(hj{hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjwubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjrhMhjKubhb. It is implemented with list_for_each_entry_safe(), hence it is save against removal of elements.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_gem_huge_mnt_create (C function)c.drm_gem_huge_mnt_createhNtauh1jhjhhhNhNubj)}(hhh](j)}(hGint drm_gem_huge_mnt_create (struct drm_device *dev, const char *value)h]j)}(hFint drm_gem_huge_mnt_create(struct drm_device *dev, const char *value)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chK_ubj)}(h h]h }(hjϮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjήhK_ubj)}(hdrm_gem_huge_mnt_createh]j)}(hdrm_gem_huge_mnt_createh]hdrm_gem_huge_mnt_create}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݮubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjήhK_ubj>)}(h+(struct drm_device *dev, const char *value)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_huge_mnt_createasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hconst char *valueh](j)}(hjJh]hconst}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjήhK_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjήhK_ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjήhK_hjhhubj )}(hhh]h)}(h-Create, mount and use a huge tmpfs mountpointh]h-Create, mount and use a huge tmpfs mountpoint}(hjݯhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chK_hjگhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjήhK_ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(hX**Parameters** ``struct drm_device *dev`` DRM device that will use the huge tmpfs mountpoint ``const char *value`` huge tmpfs mount option value **Description** This function creates and mounts a dedicated huge tmpfs mountpoint for the lifetime of the DRM device **dev** which is used at GEM object initialization with drm_gem_object_init(). The most common option for **value** is "within_size" which only allocates huge pages if the page will be fully within the GEM object size. "always", "advise" and "never" are supported too but the latter would just create a mountpoint similar to the default one (`shm_mnt`). See shmemfs and Transparent Hugepage for more information. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKchjubjM )}(hhh](jR )}(hN``struct drm_device *dev`` DRM device that will use the huge tmpfs mountpoint h](jX )}(h``struct drm_device *dev``h]j^ )}(hjh]hstruct drm_device *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chK`hjubjt )}(hhh]h)}(h2DRM device that will use the huge tmpfs mountpointh]h2DRM device that will use the huge tmpfs mountpoint}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hK`hj4ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj3hK`hjubjR )}(h4``const char *value`` huge tmpfs mount option value h](jX )}(h``const char *value``h]j^ )}(hjWh]hconst char *value}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjUubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKahjQubjt )}(hhh]h)}(hhuge tmpfs mount option valueh]hhuge tmpfs mount option value}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKahjmubah}(h]h ]h"]h$]h&]uh1js hjQubeh}(h]h ]h"]h$]h&]uh1jQ hjlhKahjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKchjubh)}(hThis function creates and mounts a dedicated huge tmpfs mountpoint for the lifetime of the DRM device **dev** which is used at GEM object initialization with drm_gem_object_init().h](hfThis function creates and mounts a dedicated huge tmpfs mountpoint for the lifetime of the DRM device }(hjhhhNhNubj7 )}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubhG which is used at GEM object initialization with drm_gem_object_init().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKbhjubh)}(hXMThe most common option for **value** is "within_size" which only allocates huge pages if the page will be fully within the GEM object size. "always", "advise" and "never" are supported too but the latter would just create a mountpoint similar to the default one (`shm_mnt`). See shmemfs and Transparent Hugepage for more information.h](hThe most common option for }(hjɰhhhNhNubj7 )}(h **value**h]hvalue}(hjѰhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjɰubh is “within_size” which only allocates huge pages if the page will be fully within the GEM object size. “always”, “advise” and “never” are supported too but the latter would just create a mountpoint similar to the default one (}(hjɰhhhNhNubj)}(h `shm_mnt`h]hshm_mnt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɰubh=). See shmemfs and Transparent Hugepage for more information.}(hjɰhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKfhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKlhjubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKmhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gem_object_init (C function)c.drm_gem_object_inithNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhKubj)}(hdrm_gem_object_inith]j)}(hdrm_gem_object_inith]hdrm_gem_object_init}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj?hhhjQhKubj>)}(hA(struct drm_device *dev, struct drm_gem_object *obj, size_t size)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jfsbc.drm_gem_object_initasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hj̱hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hdevh]hdev}(hjٱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjxubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_object_initasbuh1hhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjxubjD)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjgmodnameN classnameNjj)}j]jc.drm_gem_object_initasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjxubeh}(h]h ]h"]h$]h&]jjuh1j=hj?hhhjQhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjQhKubah}(h]j6ah ](jjeh"]h$]h&]j j )j huh1jhjQhKhj8hhubj )}(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:374: ./drivers/gpu/drm/drm_gem.chKhjhhubah}(h]h ]h"]h$]h&]uh1j hj8hhhjQhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jӲj( jӲj) j* j+ uh1jhhhjhNhNubj- )}(hXv**Parameters** ``struct drm_device *dev`` drm_device the object should be initialized for ``struct drm_gem_object *obj`` drm_gem_object to initialize ``size_t size`` object size **Description** Initialize an already allocated GEM object of the specified size with shmfs backing store. A huge mountpoint can be used by calling drm_gem_huge_mnt_create() beforehand.h](h)}(h**Parameters**h]j7 )}(hjݲh]h Parameters}(hj߲hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj۲ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjײubjM )}(hhh](jR )}(hK``struct drm_device *dev`` drm_device the object should be initialized for h](jX )}(h``struct drm_device *dev``h]j^ )}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h<``struct drm_gem_object *obj`` drm_gem_object to initialize h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hj5h]hstruct drm_gem_object *obj}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj3ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhj/ubjt )}(hhh]h)}(hdrm_gem_object to initializeh]hdrm_gem_object to initialize}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKhjKubah}(h]h ]h"]h$]h&]uh1js hj/ubeh}(h]h ]h"]h$]h&]uh1jQ hjJhKhjubjR )}(h``size_t size`` object size h](jX )}(h``size_t size``h]j^ )}(hjnh]h size_t size}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjhubjt )}(hhh]h)}(h object sizeh]h object size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjhubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubeh}(h]h ]h"]h$]h&]uh1jL hjײubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjײubh)}(hInitialize an already allocated GEM object of the specified size with shmfs backing store. A huge mountpoint can be used by calling drm_gem_huge_mnt_create() beforehand.h]hInitialize an already allocated GEM object of the specified size with shmfs backing store. A huge mountpoint can be used by calling drm_gem_huge_mnt_create() beforehand.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjײubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_gem_private_object_init (C function)c.drm_gem_private_object_inithNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_gem_private_object_inith]j)}(hdrm_gem_private_object_inith]hdrm_gem_private_object_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubj>)}(hA(struct drm_device *dev, struct drm_gem_object *obj, size_t size)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjKmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_private_object_initasbuh1hhj'ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj#ubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jec.drm_gem_private_object_initasbuh1hhjubj)}(h h]h }(hjٴhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj#ubjD)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jec.drm_gem_private_object_initasbuh1hhj ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hsizeh]hsize}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj#ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h)}(h*initialize an allocated private GEM objecth]h*initialize an allocated private GEM object}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjchhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j~j( j~j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjubjM )}(hhh](jR )}(hK``struct drm_device *dev`` drm_device the object should be initialized for h](jX )}(h``struct drm_device *dev``h]j^ )}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h<``struct drm_gem_object *obj`` drm_gem_object to initialize h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj޵ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjڵubjt )}(hhh]h)}(hdrm_gem_object to initializeh]hdrm_gem_object to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjڵubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h``size_t size`` object size h](jX )}(h``size_t size``h]j^ )}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjubjt )}(hhh]h)}(h object sizeh]h object size}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hKhj/ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj.hKhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjRubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_gem_private_object_fini (C function)c.drm_gem_private_object_finihNtauh1jhjhhhNhNubj)}(hhh](j)}(h=void drm_gem_private_object_fini (struct drm_gem_object *obj)h]j)}(h)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjֶhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҶubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҶubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_private_object_finiasbuh1hhjҶubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҶubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҶubj)}(hobjh]hobj}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҶubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjζubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h)}(h Finalize a failed drm_gem_objecth]h Finalize a failed drm_gem_object}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjVhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jqj( jqj) j* j+ uh1jhhhjhNhNubj- )}(h**Parameters** ``struct drm_gem_object *obj`` drm_gem_object **Description** Uninitialize an already allocated GEM object when it initialized failedh](h)}(h**Parameters**h]j7 )}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjyubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjuubjM )}(hhh]jR )}(h.``struct drm_gem_object *obj`` drm_gem_object h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjubjt )}(hhh]h)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubah}(h]h ]h"]h$]h&]uh1jL hjuubh)}(h**Description**h]j7 )}(hjշh]h Description}(hj׷hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjӷubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjuubh)}(hGUninitialize an already allocated GEM object when it initialized failedh]hGUninitialize an already allocated GEM object when it initialized failed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chKhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_gem_handle_delete (C function)c.drm_gem_handle_deletehNtauh1jhjhhhNhNubj)}(hhh](j)}(h=int drm_gem_handle_delete (struct drm_file *filp, u32 handle)h]j)}(h)}(h#(struct drm_file *filp, u32 handle)h](jD)}(hstruct drm_file *filph](j)}(hj? h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjwmodnameN classnameNjj)}j]j)}j}j=sbc.drm_gem_handle_deleteasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubjD)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hj̸hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɸubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjθmodnameN classnameNjj)}j]jc.drm_gem_handle_deleteasbuh1hhjŸubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŸubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŸubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj(hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj(hMubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj(hMhjhhubj )}(hhh]h)}(h%deletes the given file-private handleh]h%deletes the given file-private handle}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhj(hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j:j( j:j) j* j+ uh1jhhhjhNhNubj- )}(hXW**Parameters** ``struct drm_file *filp`` drm file-private structure to use for the handle look up ``u32 handle`` userspace handle to delete **Description** Removes the GEM handle from the **filp** lookup table which has been added with drm_gem_handle_create(). If this is the last handle also cleans up linked resources like GEM names.h](h)}(h**Parameters**h]j7 )}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjBubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhj>ubjM )}(hhh](jR )}(hS``struct drm_file *filp`` drm file-private structure to use for the handle look up h](jX )}(h``struct drm_file *filp``h]j^ )}(hjch]hstruct drm_file *filp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhj]ubjt )}(hhh]h)}(h8drm file-private structure to use for the handle look uph]h8drm file-private structure to use for the handle look up}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1js hj]ubeh}(h]h ]h"]h$]h&]uh1jQ hjxhMhjZubjR )}(h*``u32 handle`` userspace handle to delete h](jX )}(h``u32 handle``h]j^ )}(hjh]h u32 handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(hhh]h)}(huserspace handle to deleteh]huserspace handle to delete}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjZubeh}(h]h ]h"]h$]h&]uh1jL hj>ubh)}(h**Description**h]j7 )}(hj׹h]h Description}(hjٹhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjչubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhj>ubh)}(hRemoves the GEM handle from the **filp** lookup table which has been added with drm_gem_handle_create(). If this is the last handle also cleans up linked resources like GEM names.h](h Removes the GEM handle from the }(hjhhhNhNubj7 )}(h**filp**h]hfilp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh lookup table which has been added with drm_gem_handle_create(). If this is the last handle also cleans up linked resources like GEM names.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_gem_dumb_map_offset (C function)c.drm_gem_dumb_map_offsethNtauh1jhjhhhNhNubj)}(hhh](j)}(hdint drm_gem_dumb_map_offset (struct drm_file *file, struct drm_device *dev, u32 handle, u64 *offset)h]j)}(hcint drm_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev, u32 handle, u64 *offset)h](j)}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hMubj)}(hdrm_gem_dumb_map_offseth]j)}(hdrm_gem_dumb_map_offseth]hdrm_gem_dumb_map_offset}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jhj*hhhj<hMubj>)}(hH(struct drm_file *file, struct drm_device *dev, u32 handle, u64 *offset)h](jD)}(hstruct drm_file *fileh](j)}(hj? h]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jQsbc.drm_gem_dumb_map_offsetasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hfileh]hfile}(hjĺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjcubjD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjݺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٺubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٺubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dumb_map_offsetasbuh1hhjٺubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٺubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٺubj)}(hdevh]hdev}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٺubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjcubjD)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjRmodnameN classnameNjj)}j]jc.drm_gem_dumb_map_offsetasbuh1hhjIubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hhandleh]hhandle}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjcubjD)}(h u64 *offseth](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dumb_map_offsetasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjĻhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hoffseth]hoffset}(hjѻhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjcubeh}(h]h ]h"]h$]h&]jjuh1j=hj*hhhj<hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhj<hMubah}(h]j!ah ](jjeh"]h$]h&]j j )j huh1jhj<hMhj#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:374: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj#hhhj<hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjM )}(hhh](jR )}(hO``struct drm_file *file`` drm file-private structure containing the gem object h](jX )}(h``struct drm_file *file``h]j^ )}(hj<h]hstruct drm_file *file}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj:ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhj6ubjt )}(hhh]h)}(h4drm file-private structure containing the gem objecth]h4drm file-private structure containing the gem object}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1js hj6ubeh}(h]h ]h"]h$]h&]uh1jQ hjQhMhj3ubjR )}(h4``struct drm_device *dev`` corresponding drm_device h](jX )}(h``struct drm_device *dev``h]j^ )}(hjuh]hstruct drm_device *dev}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjoubjt )}(hhh]h)}(hcorresponding drm_deviceh]hcorresponding drm_device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjoubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj3ubjR )}(h!``u32 handle`` gem object handle h](jX )}(h``u32 handle``h]j^ )}(hjh]h u32 handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(hhh]h)}(hgem object handleh]hgem object handle}(hjǼhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjühMhjļubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjühMhj3ubjR )}(h9``u64 *offset`` return location for the fake mmap offset h](jX )}(h``u64 *offset``h]j^ )}(hjh]h u64 *offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(hhh]h)}(h(return location for the fake mmap offseth]h(return location for the fake mmap offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj3ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj"h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./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 }(hj8hhhNhNubh)}(h1:c:type:`drm_driver.dumb_map_offset `h]j^ )}(hjBh]hdrm_driver.dumb_map_offset}(hjDhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhj8ubhO kms driver callback for drivers which use gem to manage their backing storage.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_hMhjubh)}(h **Return**h]j7 )}(hjlh]hReturn}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./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:374: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_gem_handle_create (C function)c.drm_gem_handle_createhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_handle_createh]j)}(hdrm_gem_handle_createh]hdrm_gem_handle_create}(hjҽhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjνubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(hF(struct drm_file *file_priv, struct drm_gem_object *obj, u32 *handlep)h](jD)}(hstruct drm_file *file_privh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jԽsbc.drm_gem_handle_createasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h file_privh]h file_priv}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j(c.drm_gem_handle_createasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u32 *handleph](h)}(hhh]j)}(hu32h]hu32}(hjӾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjоubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjվmodnameN classnameNjj)}j]j(c.drm_gem_handle_createasbuh1hhj̾ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̾ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̾ubj)}(hhandleph]hhandlep}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̾ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h!create a gem handle for an objecth]h!create a gem handle for an object}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhj3hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jNj( jNj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjVubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjRubjM )}(hhh](jR )}(hU``struct drm_file *file_priv`` drm file-private structure to register the handle for h](jX )}(h``struct drm_file *file_priv``h]j^ )}(hjwh]hstruct drm_file *file_priv}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjuubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjqubjt )}(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&]uh1js hjqubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjnubjR )}(h2``struct drm_gem_object *obj`` object to register h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(hhh]h)}(hobject to registerh]hobject to register}(hjɿhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjſhMhjƿubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjſhMhjnubjR )}(hD``u32 *handlep`` pointer to return the created handle to the caller h](jX )}(h``u32 *handlep``h]j^ )}(hjh]h u32 *handlep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjnubeh}(h]h ]h"]h$]h&]uh1jL hjRubh)}(h**Description**h]j7 )}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj"ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM hjRubh)}(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:374: ./drivers/gpu/drm/drm_gem.chMhjRubh)}(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 }(hjIhhhNhNubj7 )}(h**obj**h]hobj}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjIubh{ to userspace it must be fully set up by this point, drivers must call this last in their buffer object creation callbacks.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM#hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_gem_free_mmap_offset (C function)c.drm_gem_free_mmap_offsethNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM3ubj)}(hdrm_gem_free_mmap_offseth]j)}(hdrm_gem_free_mmap_offseth]hdrm_gem_free_mmap_offset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM3ubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_free_mmap_offsetasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM3ubah}(h]j}ah ](jjeh"]h$]h&]j j )j huh1jhjhM3hjhhubj )}(hhh]h)}(h(release a fake mmap offset for an objecth]h(release a fake mmap offset for an object}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM3hjGhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM3ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jbj( jbj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM7hjfubjM )}(hhh]jR )}(h/``struct drm_gem_object *obj`` obj in question h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM4hjubjt )}(hhh]h)}(hobj in questionh]hobj in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM4hjubah}(h]h ]h"]h$]h&]uh1jL hjfubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM6hjfubh)}(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:374: ./drivers/gpu/drm/drm_gem.chM5hjfubh)}(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:374: ./drivers/gpu/drm/drm_gem.chM7hjfubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j,drm_gem_create_mmap_offset_size (C function)!c.drm_gem_create_mmap_offset_sizehNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMFubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj(hMFubj)}(hdrm_gem_create_mmap_offset_sizeh]j)}(hdrm_gem_create_mmap_offset_sizeh]hdrm_gem_create_mmap_offset_size}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj(hMFubj>)}(h)(struct drm_gem_object *obj, size_t size)h](jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjwmodnameN classnameNjj)}j]j)}j}j=sb!c.drm_gem_create_mmap_offset_sizeasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubjD)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j!c.drm_gem_create_mmap_offset_sizeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj(hMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj(hMFubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj(hMFhjhhubj )}(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:374: ./drivers/gpu/drm/drm_gem.chMFhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhj(hMFubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j:j( j:j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjBubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMJhj>ubjM )}(hhh](jR )}(h/``struct drm_gem_object *obj`` obj in question h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjch]hstruct drm_gem_object *obj}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMGhj]ubjt )}(hhh]h)}(hobj in questionh]hobj in question}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMGhjyubah}(h]h ]h"]h$]h&]uh1js hj]ubeh}(h]h ]h"]h$]h&]uh1jQ hjxhMGhjZubjR )}(h!``size_t size`` the virtual size h](jX )}(h``size_t size``h]j^ )}(hjh]h size_t size}(hjhh hNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMHhjubjt )}(hhh]h)}(hthe virtual sizeh]hthe virtual size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMHhjZubeh}(h]h ]h"]h$]h&]uh1jL hj>ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMJhj>ubh)}(hGEM memory mapping works by handing back to userspace a fake mmap offset it can use in a subsequent mmap(2) call. The DRM core code then looks up the object based on the offset and sets up the various memory mapping structures.h]hGEM memory mapping works by handing back to userspace a fake mmap offset it can use in a subsequent mmap(2) call. The DRM core code then looks up the object based on the offset and sets up the various memory mapping structures.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMIhj>ubh)}(hThis routine allocates and attaches a fake offset for **obj**, in cases where the virtual size differs from the physical size (ie. :c:type:`drm_gem_object.size `). Otherwise just use drm_gem_create_mmap_offset().h](h6This routine allocates and attaches a fake offset for }(hjhhhNhNubj7 )}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubhF, in cases where the virtual size differs from the physical size (ie. }(hjhhhNhNubh)}(h.:c:type:`drm_gem_object.size `h]j^ )}(hjh]hdrm_gem_object.size}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMNhjubh3). Otherwise just use drm_gem_create_mmap_offset().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5hMNhj>ubh)}(hThis function is idempotent and handles an already allocated mmap offset transparently. Drivers do not need to check for this case.h]hThis function is idempotent and handles an already allocated mmap offset transparently. Drivers do not need to check for this case.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMRhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'drm_gem_create_mmap_offset (C function)c.drm_gem_create_mmap_offsethNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMaubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhj}hMaubj)}(hdrm_gem_create_mmap_offseth]j)}(hdrm_gem_create_mmap_offseth]hdrm_gem_create_mmap_offset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjkhhhj}hMaubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_create_mmap_offsetasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjkhhhj}hMaubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhj}hMaubah}(h]jbah ](jjeh"]h$]h&]j j )j huh1jhj}hMahjdhhubj )}(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:374: ./drivers/gpu/drm/drm_gem.chMahj,hhubah}(h]h ]h"]h$]h&]uh1j hjdhhhj}hMaubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jGj( jGj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjOubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMehjKubjM )}(hhh]jR )}(h/``struct drm_gem_object *obj`` obj in question h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjph]hstruct drm_gem_object *obj}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjnubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMbhjjubjt )}(hhh]h)}(hobj in questionh]hobj in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMbhjubah}(h]h ]h"]h$]h&]uh1js hjjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMbhjgubah}(h]h ]h"]h$]h&]uh1jL hjKubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMdhjKubh)}(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:374: ./drivers/gpu/drm/drm_gem.chMchjKubh)}(h>This routine allocates and attaches a fake offset for **obj**.h](h6This routine allocates and attaches a fake offset for }(hjhhhNhNubj7 )}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhhjKubh)}(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 }(hjhhhNhNubj7 )}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh" to release the fake offset again.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMjhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_get_pages (C function)c.drm_gem_get_pageshNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj?hMubh)}(hhh]j)}(hpageh]hpage}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjSmodnameN classnameNjj)}j]j)}j}drm_gem_get_pagessbc.drm_gem_get_pagesasbuh1hhj.hhhj?hMubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj?hMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj?hMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj?hMubj)}(hdrm_gem_get_pagesh]j)}(hjoh]hdrm_gem_get_pages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj.hhhj?hMubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jmc.drm_gem_get_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hj.hhhj?hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj?hMubah}(h]j%ah ](jjeh"]h$]h&]j j )j huh1jhj?hMhj'hhubj )}(hhh]h)}(h)}(hL(struct drm_gem_object *obj, struct page **pages, bool dirty, bool accessed)h](jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jZsbc.drm_gem_put_pagesasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjlubjD)}(hstruct page **pagesh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_put_pagesasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpagesh]hpages}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjlubjD)}(h bool dirtyh](j)}(hj=2h]hbool}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hdirtyh]hdirty}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjlubjD)}(h bool accessedh](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haccessedh]haccessed}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjlubeh}(h]h ]h"]h$]h&]jjuh1j=hj3hhhjEhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhjEhMubah}(h]j*ah ](jjeh"]h$]h&]j j )j huh1jhjEhMhj,hhubj )}(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:374: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj,hhhjEhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjM )}(hhh](jR )}(h/``struct drm_gem_object *obj`` obj in question h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(hhh]h)}(hobj in questionh]hobj in question}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj2hMhjubjR )}(h&``struct page **pages`` pages to free h](jX )}(h``struct page **pages``h]j^ )}(hjVh]hstruct page **pages}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjTubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjPubjt )}(hhh]h)}(h pages to freeh]h pages to free}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1js hjPubeh}(h]h ]h"]h$]h&]uh1jQ hjkhMhjubjR )}(h6``bool dirty`` if true, pages will be marked as dirty h](jX )}(h``bool dirty``h]j^ )}(hjh]h bool dirty}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h?``bool accessed`` if true, the pages will be marked as accessedh](jX )}(h``bool accessed``h]j^ )}(hjh]h bool accessed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(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:374: ./drivers/gpu/drm/drm_gem.chMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_gem_objects_lookup (C function)c.drm_gem_objects_lookuphNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM.ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj0hM.ubj)}(hdrm_gem_objects_lookuph]j)}(hdrm_gem_objects_lookuph]hdrm_gem_objects_lookup}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj0hM.ubj>)}(h^(struct drm_file *filp, void __user *bo_handles, int count, struct drm_gem_object ***objs_out)h](jD)}(hstruct drm_file *filph](j)}(hj? h]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jEsbc.drm_gem_objects_lookupasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjWubjD)}(hvoid __user *bo_handlesh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h bo_handlesh]h bo_handles}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjWubjD)}(h int counth](j)}(hinth]hint}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hcounth]hcount}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjWubjD)}(h!struct drm_gem_object ***objs_outh](j)}(hj? h]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjzmodnameN classnameNjj)}j]jc.drm_gem_objects_lookupasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hobjs_outh]hobjs_out}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjWubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj0hM.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj0hM.ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj0hM.hjhhubj )}(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:374: ./drivers/gpu/drm/drm_gem.chM.hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhj0hM.ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhjhNhNubj- )}(hX**Parameters** ``struct drm_file *filp`` DRM file private date ``void __user *bo_handles`` user pointer to array of userspace handle ``int count`` size of handle array ``struct drm_gem_object ***objs_out`` returned pointer to array of drm_gem_object pointers **Description** Takes an array of userspace handles and returns a newly allocated array of GEM objects. After a successful lookup GEM objects need to be released using drm_gem_object_put() and the array returned in **objs_out** must be freed using kvfree(). For a single handle lookup, use drm_gem_object_lookup(). **Return** Zero on success or a negative error code.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM2hjubjM )}(hhh](jR )}(h0``struct drm_file *filp`` DRM file private date h](jX )}(h``struct drm_file *filp``h]j^ )}(hj6h]hstruct drm_file *filp}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj4ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM/hj0ubjt )}(hhh]h)}(hDRM file private dateh]hDRM file private date}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhM/hjLubah}(h]h ]h"]h$]h&]uh1js hj0ubeh}(h]h ]h"]h$]h&]uh1jQ hjKhM/hj-ubjR )}(hF``void __user *bo_handles`` user pointer to array of userspace handle h](jX )}(h``void __user *bo_handles``h]j^ )}(hjoh]hvoid __user *bo_handles}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjmubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM0hjiubjt )}(hhh]h)}(h)user pointer to array of userspace handleh]h)user pointer to array of userspace handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1js hjiubeh}(h]h ]h"]h$]h&]uh1jQ hjhM0hj-ubjR )}(h#``int count`` size of handle array h](jX )}(h ``int count``h]j^ )}(hjh]h int count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM1hjubjt )}(hhh]h)}(hsize of handle arrayh]hsize of handle array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM1hj-ubjR )}(h[``struct drm_gem_object ***objs_out`` returned pointer to array of drm_gem_object pointers h](jX )}(h%``struct drm_gem_object ***objs_out``h]j^ )}(hjh]h!struct drm_gem_object ***objs_out}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM2hjubjt )}(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&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM2hj-ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM4hjubh)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM3hjubh)}(hAfter a successful lookup GEM objects need to be released using drm_gem_object_put() and the array returned in **objs_out** must be freed using kvfree().h](hoAfter a successful lookup GEM objects need to be released using drm_gem_object_put() and the array returned in }(hjAhhhNhNubj7 )}(h **objs_out**h]hobjs_out}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjAubh must be freed using kvfree().}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM6hjubh)}(h8For a single handle lookup, use drm_gem_object_lookup().h]h8For a single handle lookup, use drm_gem_object_lookup().}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM:hjubh)}(h **Return**h]j7 )}(hjsh]hReturn}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjqubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM<hjubh)}(h)Zero on success or a negative error code.h]h)Zero on success or a negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM=hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_gem_object_lookup (C function)c.drm_gem_object_lookuphNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMgubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_gem_object_lookupsbc.drm_gem_object_lookupasbuh1hhjhhhjhMgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMgubj)}(hdrm_gem_object_lookuph]j)}(hjh]hdrm_gem_object_lookup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMgubj>)}(h#(struct drm_file *filp, u32 handle)h](jD)}(hstruct drm_file *filph](j)}(hj? h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjRmodnameN classnameNjj)}j]jc.drm_gem_object_lookupasbuh1hhj.ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj*ubjD)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_object_lookupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj*ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMgubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMghjhhubj )}(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:374: ./drivers/gpu/drm/drm_gem.chMghjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMgubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMkhjubjM )}(hhh](jR )}(h0``struct drm_file *filp`` DRM file private date h](jX )}(h``struct drm_file *filp``h]j^ )}(hj<h]hstruct drm_file *filp}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj:ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhhj6ubjt )}(hhh]h)}(hDRM file private dateh]hDRM file private date}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhhjRubah}(h]h ]h"]h$]h&]uh1js hj6ubeh}(h]h ]h"]h$]h&]uh1jQ hjQhMhhj3ubjR )}(h ``u32 handle`` userspace handle h](jX )}(h``u32 handle``h]j^ )}(hjuh]h u32 handle}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMihjoubjt )}(hhh]h)}(huserspace handleh]huserspace handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMihjubah}(h]h ]h"]h$]h&]uh1js hjoubeh}(h]h ]h"]h$]h&]uh1jQ hjhMihj3ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMkhjubh)}(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:374: ./drivers/gpu/drm/drm_gem.chMjhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMlhjubh)}(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 }(hjhhhNhNubj7 )}(h**filp**h]hfilp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh, NULL otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMmhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_gem_dma_resv_wait (C function)c.drm_gem_dma_resv_waithNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM|ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hM|ubj)}(hdrm_gem_dma_resv_waith]j)}(hdrm_gem_dma_resv_waith]hdrm_gem_dma_resv_wait}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jhj*hhhj<hM|ubj>)}(hJ(struct drm_file *filep, u32 handle, bool wait_all, unsigned long timeout)h](jD)}(hstruct drm_file *fileph](j)}(hj? h]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jQsbc.drm_gem_dma_resv_waitasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hfileph]hfilep}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjcubjD)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dma_resv_waitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hhandleh]hhandle}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjcubjD)}(h bool wait_allh](j)}(hj=2h]hbool}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hwait_allh]hwait_all}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjcubjD)}(hunsigned long timeouth](j)}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(htimeouth]htimeout}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjcubeh}(h]h ]h"]h$]h&]jjuh1j=hj*hhhj<hM|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhj<hM|ubah}(h]j!ah ](jjeh"]h$]h&]j j )j huh1jhj<hM|hj#hhubj )}(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:374: ./drivers/gpu/drm/drm_gem.chM|hjhhubah}(h]h ]h"]h$]h&]uh1j hj#hhhj<hM|ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjM )}(hhh](jR )}(h1``struct drm_file *filep`` DRM file private date h](jX )}(h``struct drm_file *filep``h]j^ )}(hjh]hstruct drm_file *filep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM~hjubjt )}(hhh]h)}(hDRM file private dateh]hDRM file private date}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM~hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM~hjubjR )}(h ``u32 handle`` userspace handle h](jX )}(h``u32 handle``h]j^ )}(hj5h]h u32 handle}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj3ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhj/ubjt )}(hhh]h)}(huserspace handleh]huserspace handle}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1js hj/ubeh}(h]h ]h"]h$]h&]uh1jQ hjJhMhjubjR )}(hQ``bool wait_all`` if true, wait on all fences, else wait on just exclusive fence h](jX )}(h``bool wait_all``h]j^ )}(hjnh]h bool wait_all}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjhubjt )}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjhubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hQ``unsigned long timeout`` timeout value in jiffies or zero to return immediately h](jX )}(h``unsigned long timeout``h]j^ )}(hjh]hunsigned long timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(hhh]h)}(h6timeout value in jiffies or zero to return immediatelyh]h6timeout value in jiffies or zero to return immediately}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubh)}(h[Returns -ERESTARTSYS if interrupted, 0 if the wait timed out, or greater than 0 on success.h]h[Returns -ERESTARTSYS if interrupted, 0 if the wait timed out, or greater than 0 on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_gem_object_release (C function)c.drm_gem_object_releasehNtauh1jhjhhhNhNubj)}(hhh](j)}(h8void drm_gem_object_release (struct drm_gem_object *obj)h]j)}(h7void drm_gem_object_release(struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj5hMhubj)}(hdrm_gem_object_releaseh]j)}(hdrm_gem_object_releaseh]hdrm_gem_object_release}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jhj#hhhj5hMhubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jJsbc.drm_gem_object_releaseasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj\ubah}(h]h ]h"]h$]h&]jjuh1j=hj#hhhj5hMhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj5hMhubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj5hMhhjhhubj )}(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:374: ./drivers/gpu/drm/drm_gem.chMhhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhj5hMhubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMlhjubjM )}(hhh]jR )}(h1``struct drm_gem_object *obj`` GEM buffer object h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hj(h]hstruct drm_gem_object *obj}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMihj"ubjt )}(hhh]h)}(hGEM buffer objecth]hGEM buffer object}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMihj>ubah}(h]h ]h"]h$]h&]uh1js hj"ubeh}(h]h ]h"]h$]h&]uh1jQ hj=hMihjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjaubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMkhjubh)}(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 }(hjyhhhNhNubj7 )}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjyubh- and is the inverse of drm_gem_object_init().}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMjhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gem_object_free (C function)c.drm_gem_object_freehNtauh1jhjhhhNhNubj)}(hhh](j)}(h,void drm_gem_object_free (struct kref *kref)h]j)}(h+void drm_gem_object_free(struct kref *kref)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM|ubj)}(hdrm_gem_object_freeh]j)}(hdrm_gem_object_freeh]hdrm_gem_object_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM|ubj>)}(h(struct kref *kref)h]jD)}(hstruct kref *krefh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_object_freeasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkrefh]hkref}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM|ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM|hjhhubj )}(hhh]h)}(hfree a GEM objecth]hfree a GEM object}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM|hjwhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM|ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjM )}(hhh]jR )}(h1``struct kref *kref`` kref of the object to free h](jX )}(h``struct kref *kref``h]j^ )}(hjh]hstruct kref *kref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM}hjubjt )}(hhh]h)}(hkref of the object to freeh]hkref of the object to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM}hjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubh)}(h)}(h(struct vm_area_struct *vma)h]jD)}(hstruct vm_area_struct *vmah](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jmsbc.drm_gem_vm_openasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjFhhhjXhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjXhMubah}(h]j=ah ](jjeh"]h$]h&]j j )j huh1jhjXhMhj?hhubj )}(hhh]h)}(h%vma->ops->open implementation for GEMh]h%vma->ops->open implementation for GEM}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj?hhhjXhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j"j( j"j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj*ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhj&ubjM )}(hhh]jR )}(h1``struct vm_area_struct *vma`` VM area structure h](jX )}(h``struct vm_area_struct *vma``h]j^ )}(hjKh]hstruct vm_area_struct *vma}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjEubjt )}(hhh]h)}(hVM area structureh]hVM area structure}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1js hjEubeh}(h]h ]h"]h$]h&]uh1jQ hj`hMhjBubah}(h]h ]h"]h$]h&]uh1jL hj&ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhj&ubh)}(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:374: ./drivers/gpu/drm/drm_gem.chMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_vm_close (C function)c.drm_gem_vm_closehNtauh1jhjhhhNhNubj)}(hhh](j)}(h2void drm_gem_vm_close (struct vm_area_struct *vma)h]j)}(h1void drm_gem_vm_close(struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_vm_closeh]j)}(hdrm_gem_vm_closeh]hdrm_gem_vm_close}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h(struct vm_area_struct *vma)h]jD)}(hstruct vm_area_struct *vmah](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj(modnameN classnameNjj)}j]j)}j}jsbc.drm_gem_vm_closeasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvmah]hvma}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h&vma->ops->close implementation for GEMh]h&vma->ops->close implementation for GEM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjM )}(hhh]jR )}(h1``struct vm_area_struct *vma`` VM area structure h](jX )}(h``struct vm_area_struct *vma``h]j^ )}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(hhh]h)}(hVM area structureh]hVM area structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hThis function implements the #vm_operations_struct close() callback for GEM drivers. This must be used together with drm_gem_vm_open().h]hThis function implements the #vm_operations_struct close() callback for GEM drivers. This must be used together with drm_gem_vm_open().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_mmap_obj (C function)c.drm_gem_mmap_objhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjZhMubj)}(hdrm_gem_mmap_objh]j)}(hdrm_gem_mmap_objh]hdrm_gem_mmap_obj}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jhjHhhhjZhMubj>)}(hP(struct drm_gem_object *obj, unsigned long obj_size, struct vm_area_struct *vma)h](jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}josbc.drm_gem_mmap_objasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned long obj_sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobj_sizeh]hobj_size}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct vm_area_struct *vmah](j)}(hj? h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjlmodnameN classnameNjj)}j]jc.drm_gem_mmap_objasbuh1hhjHubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjHhhhjZhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjZhMubah}(h]j?ah ](jjeh"]h$]h&]j j )j huh1jhjZhMhjAhhubj )}(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:374: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjAhhhjZhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjM )}(hhh](jR )}(h5``struct drm_gem_object *obj`` the GEM object to map h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(hhh]h)}(hthe GEM object to maph]hthe GEM object to map}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj#hMhjubjR )}(hB``unsigned long obj_size`` the object size to be mapped, in bytes h](jX )}(h``unsigned long obj_size``h]j^ )}(hjGh]hunsigned long obj_size}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjEubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjAubjt )}(hhh]h)}(h&the object size to be mapped, in bytesh]h&the object size to be mapped, in bytes}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1js hjAubeh}(h]h ]h"]h$]h&]uh1jQ hj\hMhjubjR )}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](jX )}(h``struct vm_area_struct *vma``h]j^ )}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj~ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjzubjt )}(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&]uh1js hjzubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hXSet up the VMA to prepare mapping of the GEM object using the GEM object's vm_ops. Depending on their requirements, GEM objects can either provide a fault handler in their vm_ops (in which case any accesses to the object will be trapped, to perform migration, GTT binding, surface register allocation, or performance monitoring), or mmap the buffer memory synchronously after calling drm_gem_mmap_obj.h]hXSet up the VMA to prepare mapping of the GEM object using the GEM object’s vm_ops. Depending on their requirements, GEM objects can either provide a fault handler in their vm_ops (in which case any accesses to the object will be trapped, to perform migration, GTT binding, surface register allocation, or performance monitoring), or mmap the buffer memory synchronously after calling drm_gem_mmap_obj.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hThis function is mainly intended to implement the DMABUF mmap operation, when the GEM object is not looked up based on its fake offset. To implement the DRM mmap operation, drivers should use the drm_gem_mmap() function.h]hThis function is mainly intended to implement the DMABUF mmap operation, when the GEM object is not looked up based on its fake offset. To implement the DRM mmap operation, drivers should use the drm_gem_mmap() function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hdrm_gem_mmap_obj() assumes the user is granted access to the buffer while drm_gem_mmap() prevents unprivileged users from mapping random objects. So callers must verify access restrictions before calling this helper.h]hdrm_gem_mmap_obj() assumes the user is granted access to the buffer while drm_gem_mmap() prevents unprivileged users from mapping random objects. So callers must verify access restrictions before calling this helper.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hmReturn 0 or success or -EINVAL if the object size is smaller than the VMA size, or if no vm_ops are provided.h]hmReturn 0 or success or -EINVAL if the object size is smaller than the VMA size, or if no vm_ops are provided.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drm_gem_get_unmapped_area (C function)c.drm_gem_get_unmapped_areahNtauh1jhjhhhNhNubj)}(hhh](j)}(hunsigned long drm_gem_get_unmapped_area (struct file *filp, unsigned long uaddr, unsigned long len, unsigned long pgoff, unsigned long flags)h]j)}(hunsigned long drm_gem_get_unmapped_area(struct file *filp, unsigned long uaddr, unsigned long len, unsigned long pgoff, unsigned long flags)h](j)}(hunsignedh]hunsigned}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM%ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj;hM%ubj)}(hlongh]hlong}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj;hM%ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj;hM%ubj)}(hdrm_gem_get_unmapped_areah]j)}(hdrm_gem_get_unmapped_areah]hdrm_gem_get_unmapped_area}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jhj)hhhj;hM%ubj>)}(he(struct file *filp, unsigned long uaddr, unsigned long len, unsigned long pgoff, unsigned long flags)h](jD)}(hstruct file *filph](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jlsbc.drm_gem_get_unmapped_areaasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj~ubjD)}(hunsigned long uaddrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(huaddrh]huaddr}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj~ubjD)}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hlongh]hlong}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj~ubjD)}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpgoffh]hpgoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj~ubjD)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj~ubeh}(h]h ]h"]h$]h&]jjuh1j=hj)hhhj;hM%ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj;hM%ubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj;hM%hj"hhubj )}(hhh]h)}(h1get memory mapping region routine for GEM objectsh]h1get memory mapping region routine for GEM objects}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM%hjJhhubah}(h]h ]h"]h$]h&]uh1j hj"hhhj;hM%ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jej( jej) j* j+ uh1jhhhjhNhNubj- )}(hX**Parameters** ``struct file *filp`` DRM file pointer ``unsigned long uaddr`` User address hint ``unsigned long len`` Mapping length ``unsigned long pgoff`` Offset (in pages) ``unsigned long flags`` Mapping flags **Description** If a driver supports GEM object mapping, before ending up in drm_gem_mmap(), mmap calls on the DRM file descriptor will first try to find a free linear address space large enough for a mapping. Since GEM objects are backed by shmem buffers, this should preferably be handled by the shmem virtual memory filesystem which can appropriately align addresses to huge page sizes when needed. Look up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created) and call shmem_get_unmapped_area() with the right file pointer. If a GEM object is not available at the given offset or if the caller is not granted access to it, fall back to mm_get_unmapped_area().h](h)}(h**Parameters**h]j7 )}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjmubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM)hjiubjM )}(hhh](jR )}(h'``struct file *filp`` DRM file pointer h](jX )}(h``struct file *filp``h]j^ )}(hjh]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM&hjubjt )}(hhh]h)}(hDRM file pointerh]hDRM file pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM&hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM&hjubjR )}(h*``unsigned long uaddr`` User address hint h](jX )}(h``unsigned long uaddr``h]j^ )}(hjh]hunsigned long uaddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM'hjubjt )}(hhh]h)}(hUser address hinth]hUser address hint}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM'hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM'hjubjR )}(h%``unsigned long len`` Mapping length h](jX )}(h``unsigned long len``h]j^ )}(hjh]hunsigned long len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM(hjubjt )}(hhh]h)}(hMapping lengthh]hMapping length}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM(hjubjR )}(h*``unsigned long pgoff`` Offset (in pages) h](jX )}(h``unsigned long pgoff``h]j^ )}(hj9h]hunsigned long pgoff}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj7ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM)hj3ubjt )}(hhh]h)}(hOffset (in pages)h]hOffset (in pages)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhM)hjOubah}(h]h ]h"]h$]h&]uh1js hj3ubeh}(h]h ]h"]h$]h&]uh1jQ hjNhM)hjubjR )}(h&``unsigned long flags`` Mapping flags h](jX )}(h``unsigned long flags``h]j^ )}(hjrh]hunsigned long flags}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjpubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM*hjlubjt )}(hhh]h)}(h Mapping flagsh]h Mapping flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1js hjlubeh}(h]h ]h"]h$]h&]uh1jQ hjhM*hjubeh}(h]h ]h"]h$]h&]uh1jL hjiubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM,hjiubh)}(hXIf a driver supports GEM object mapping, before ending up in drm_gem_mmap(), mmap calls on the DRM file descriptor will first try to find a free linear address space large enough for a mapping. Since GEM objects are backed by shmem buffers, this should preferably be handled by the shmem virtual memory filesystem which can appropriately align addresses to huge page sizes when needed.h]hXIf a driver supports GEM object mapping, before ending up in drm_gem_mmap(), mmap calls on the DRM file descriptor will first try to find a free linear address space large enough for a mapping. Since GEM objects are backed by shmem buffers, this should preferably be handled by the shmem virtual memory filesystem which can appropriately align addresses to huge page sizes when needed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM+hjiubh)}(hLook up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created) and call shmem_get_unmapped_area() with the right file pointer.h]hLook up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created) and call shmem_get_unmapped_area() with the right file pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM2hjiubh)}(hIf a GEM object is not available at the given offset or if the caller is not granted access to it, fall back to mm_get_unmapped_area().h]hIf a GEM object is not available at the given offset or if the caller is not granted access to it, fall back to mm_get_unmapped_area().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM6hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_mmap (C function)c.drm_gem_mmaphNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMRubj)}(h drm_gem_mmaph]j)}(h drm_gem_mmaph]h drm_gem_mmap}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhjhMRubj>)}(h/(struct file *filp, struct vm_area_struct *vma)h](jD)}(hstruct file *filph](j)}(hj? h]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j)}(hfileh]hfile}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmmodnameN classnameNjj)}j]j)}j}j3sbc.drm_gem_mmapasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjEubjD)}(hstruct vm_area_struct *vmah](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_mmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjEubeh}(h]h ]h"]h$]h&]jjuh1j=hj hhhjhMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMRubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMRhjhhubj )}(hhh]h)}(h"memory map routine for GEM objectsh]h"memory map routine for GEM objects}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMRhj=hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMRubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jXj( jXj) j* j+ uh1jhhhjhNhNubj- )}(hX**Parameters** ``struct file *filp`` DRM file pointer ``struct vm_area_struct *vma`` VMA for the area to be mapped **Description** If a driver supports GEM object mapping, mmap calls on the DRM file descriptor will end up here. Look up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created) and map it with a call to drm_gem_mmap_obj(). If the caller is not granted access to the buffer object, the mmap will fail with EACCES. Please see the vma manager for more information.h](h)}(h**Parameters**h]j7 )}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj`ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMVhj\ubjM )}(hhh](jR )}(h'``struct file *filp`` DRM file pointer h](jX )}(h``struct file *filp``h]j^ )}(hjh]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMShj{ubjt )}(hhh]h)}(hDRM file pointerh]hDRM file pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1js hj{ubeh}(h]h ]h"]h$]h&]uh1jQ hjhMShjxubjR )}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](jX )}(h``struct vm_area_struct *vma``h]j^ )}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMThjubjt )}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMThjxubeh}(h]h ]h"]h$]h&]uh1jL hj\ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMVhj\ubh)}(h`If a driver supports GEM object mapping, mmap calls on the DRM file descriptor will end up here.h]h`If a driver supports GEM object mapping, mmap calls on the DRM file descriptor will end up here.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMUhj\ubh)}(hLook up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created) and map it with a call to drm_gem_mmap_obj().h]hLook up the GEM object based on the offset passed in (vma->vm_pgoff will contain the fake offset we created) and map it with a call to drm_gem_mmap_obj().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMXhj\ubh)}(hIf the caller is not granted access to the buffer object, the mmap will fail with EACCES. Please see the vma manager for more information.h]hIf the caller is not granted access to the buffer object, the mmap will fail with EACCES. Please see the vma manager for more information.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM\hj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drm_gem_lock_reservations (C function)c.drm_gem_lock_reservationshNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjfhMubj)}(hdrm_gem_lock_reservationsh]j)}(hdrm_gem_lock_reservationsh]hdrm_gem_lock_reservations}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jhjThhhjfhMubj>)}(hM(struct drm_gem_object **objs, int count, struct ww_acquire_ctx *acquire_ctx)h](jD)}(hstruct drm_gem_object **objsh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}j{sbc.drm_gem_lock_reservationsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjsh]hobjs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h int counth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcounth]hcount}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h"struct ww_acquire_ctx *acquire_ctxh](j)}(hj? h]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(hww_acquire_ctxh]hww_acquire_ctx}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjimodnameN classnameNjj)}j]jc.drm_gem_lock_reservationsasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h acquire_ctxh]h acquire_ctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjThhhjfhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjfhMubah}(h]jKah ](jjeh"]h$]h&]j j )j huh1jhjfhMhjMhhubj )}(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:374: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjMhhhjfhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjM )}(hhh](jR )}(h9``struct drm_gem_object **objs`` drm_gem_objects to lock h](jX )}(h ``struct drm_gem_object **objs``h]j^ )}(hj h]hstruct drm_gem_object **objs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(hhh]h)}(hdrm_gem_objects to lockh]hdrm_gem_objects to lock}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj!ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhjubjR )}(h,``int count`` Number of objects in **objs** h](jX )}(h ``int count``h]j^ )}(hjDh]h int count}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjBubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhj>ubjt )}(hhh]h)}(hNumber of objects in **objs**h](hNumber of objects in }(hj]hhhNhNubj7 )}(h**objs**h]hobjs}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj]ubeh}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1js hj>ubeh}(h]h ]h"]h$]h&]uh1jQ hjYhMhjubjR )}(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](jX )}(h&``struct ww_acquire_ctx *acquire_ctx``h]j^ )}(hjh]h"struct ww_acquire_ctx *acquire_ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(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:374: ./drivers/gpu/drm/drm_gem.chMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubh)}(hOnce you've locked your reservations, you'll want to set up space for your shared fences (if applicable), submit your job, then drm_gem_unlock_reservations().h]hOnce you’ve locked your reservations, you’ll want to set up space for your shared fences (if applicable), submit your job, then drm_gem_unlock_reservations().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_lru_init (C function)c.drm_gem_lru_inithNtauh1jhjhhhNhNubj)}(hhh](j)}(h/void drm_gem_lru_init (struct drm_gem_lru *lru)h]j)}(h.void drm_gem_lru_init(struct drm_gem_lru *lru)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_lru_inith]j)}(hdrm_gem_lru_inith]hdrm_gem_lru_init}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h(struct drm_gem_lru *lru)h]jD)}(hstruct drm_gem_lru *lruh](j)}(hj? h]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(h drm_gem_lruh]h drm_gem_lru}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjimodnameN classnameNjj)}j]j)}j}j/sbc.drm_gem_lru_initasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hlruh]hlru}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjAubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(hinitialize a LRUh]hinitialize a LRU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(hC**Parameters** ``struct drm_gem_lru *lru`` The LRU to initializeh](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjM )}(hhh]jR )}(h1``struct drm_gem_lru *lru`` The LRU to initializeh](jX )}(h``struct drm_gem_lru *lru``h]j^ )}(hj h]hstruct drm_gem_lru *lru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(hhh]h)}(hThe LRU to initializeh]hThe LRU to initialize}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhj#ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj"hMhjubah}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_lru_remove (C function)c.drm_gem_lru_removehNtauh1jhjhhhNhNubj)}(hhh](j)}(h4void drm_gem_lru_remove (struct drm_gem_object *obj)h]j)}(h3void drm_gem_lru_remove(struct drm_gem_object *obj)h](j)}(hvoidh]hvoid}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM+ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjuhM+ubj)}(hdrm_gem_lru_removeh]j)}(hdrm_gem_lru_removeh]hdrm_gem_lru_remove}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjchhhjuhM+ubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_lru_removeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjchhhjuhM+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhjuhM+ubah}(h]jZah ](jjeh"]h$]h&]j j )j huh1jhjuhM+hj\hhubj )}(hhh]h)}(h(remove object from whatever LRU it is inh]h(remove object from whatever LRU it is in}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM+hj$hhubah}(h]h ]h"]h$]h&]uh1j hj\hhhjuhM+ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j?j( j?j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjGubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM/hjCubjM )}(hhh]jR )}(hI``struct drm_gem_object *obj`` The GEM object to remove from current LRU h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjhh]hstruct drm_gem_object *obj}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjfubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM/hjbubjt )}(hhh]h)}(h)The GEM object to remove from current LRUh]h)The GEM object to remove from current LRU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hM/hj~ubah}(h]h ]h"]h$]h&]uh1js hjbubeh}(h]h ]h"]h$]h&]uh1jQ hj}hM/hj_ubah}(h]h ]h"]h$]h&]uh1jL hjCubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM1hjCubh)}(h1If the object is currently in any LRU, remove it.h]h1If the object is currently in any LRU, remove it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM,hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)drm_gem_lru_move_tail_locked (C function)c.drm_gem_lru_move_tail_lockedhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM<ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM<ubj)}(hdrm_gem_lru_move_tail_lockedh]j)}(hdrm_gem_lru_move_tail_lockedh]hdrm_gem_lru_move_tail_locked}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM<ubj>)}(h5(struct drm_gem_lru *lru, struct drm_gem_object *obj)h](jD)}(hstruct drm_gem_lru *lruh](j)}(hj? h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hhh]j)}(h drm_gem_lruh]h drm_gem_lru}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjEmodnameN classnameNjj)}j]j)}j}j sbc.drm_gem_lru_move_tail_lockedasbuh1hhj!ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hlruh]hlru}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j_c.drm_gem_lru_move_tail_lockedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM<ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM<ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM<hjhhubj )}(hhh]h)}(h&move the object to the tail of the LRUh]h&move the object to the tail of the LRU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM<hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM<ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j0j( j0j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj8ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM@hj4ubjM )}(hhh](jR )}(h=``struct drm_gem_lru *lru`` The LRU to move the object into. h](jX )}(h``struct drm_gem_lru *lru``h]j^ )}(hjYh]hstruct drm_gem_lru *lru}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjWubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM@hjSubjt )}(hhh]h)}(h The LRU to move the object into.h]h The LRU to move the object into.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM@hjoubah}(h]h ]h"]h$]h&]uh1js hjSubeh}(h]h ]h"]h$]h&]uh1jQ hjnhM@hjPubjR )}(hD``struct drm_gem_object *obj`` The GEM object to move into this LRU h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMAhjubjt )}(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&]uh1hhjhMAhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMAhjPubeh}(h]h ]h"]h$]h&]uh1jL hj4ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMChj4ubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_lru_move_tailuh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM=hjubh but lru lock must be held}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hM=hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_gem_lru_move_tail (C function)c.drm_gem_lru_move_tailhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMRubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjChMRubj)}(hdrm_gem_lru_move_tailh]j)}(hdrm_gem_lru_move_tailh]hdrm_gem_lru_move_tail}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jhj1hhhjChMRubj>)}(h5(struct drm_gem_lru *lru, struct drm_gem_object *obj)h](jD)}(hstruct drm_gem_lru *lruh](j)}(hj? h]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j)}(h drm_gem_lruh]h drm_gem_lru}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jXsbc.drm_gem_lru_move_tailasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hlruh]hlru}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjjubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_lru_move_tailasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjjubeh}(h]h ]h"]h$]h&]jjuh1j=hj1hhhjChMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjChMRubah}(h]j(ah ](jjeh"]h$]h&]j j )j huh1jhjChMRhj*hhubj )}(hhh]h)}(h&move the object to the tail of the LRUh]h&move the object to the tail of the LRU}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMRhjbhhubah}(h]h ]h"]h$]h&]uh1j hj*hhhjChMRubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j}j( j}j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMVhjubjM )}(hhh](jR )}(h=``struct drm_gem_lru *lru`` The LRU to move the object into. h](jX )}(h``struct drm_gem_lru *lru``h]j^ )}(hjh]hstruct drm_gem_lru *lru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMXhjubjt )}(hhh]h)}(h The LRU to move the object into.h]h The LRU to move the object into.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMXhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMXhjubjR )}(hD``struct drm_gem_object *obj`` The GEM object to move into this LRU h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMYhjubjt )}(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&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMYhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chM[hjubh)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMShjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_lru_scan (C function)c.drm_gem_lru_scanhNtauh1jhjhhhNhNubj)}(hhh](j)}(hunsigned long drm_gem_lru_scan (struct drm_device *dev, struct drm_gem_lru *lru, unsigned int nr_to_scan, unsigned long *remaining, bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket), struct ww_acquire_ctx *ticket)h]j)}(hunsigned long drm_gem_lru_scan(struct drm_device *dev, struct drm_gem_lru *lru, unsigned int nr_to_scan, unsigned long *remaining, bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket), struct ww_acquire_ctx *ticket)h](j)}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMeubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhjmhMeubj)}(hlongh]hlong}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhjmhMeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhjmhMeubj)}(hdrm_gem_lru_scanh]j)}(hdrm_gem_lru_scanh]hdrm_gem_lru_scan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj[hhhjmhMeubj>)}(h(struct drm_device *dev, struct drm_gem_lru *lru, unsigned int nr_to_scan, unsigned long *remaining, bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket), struct ww_acquire_ctx *ticket)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_lru_scanasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_gem_lru *lruh](j)}(hj? h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]j)}(h drm_gem_lruh]h drm_gem_lru}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjJmodnameN classnameNjj)}j]jc.drm_gem_lru_scanasbuh1hhj&ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hlruh]hlru}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned int nr_to_scanh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h nr_to_scanh]h nr_to_scan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned long *remainingh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h remainingh]h remaining}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hIbool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)h](j)}(hj=2h]hbool}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h(h]h(}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hshrinkh]hshrink}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h)h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hjfh]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_lru_scanasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h,h]h,}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hj? h]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(hww_acquire_ctxh]hww_acquire_ctx}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjImodnameN classnameNjj)}j]jc.drm_gem_lru_scanasbuh1hhjEubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hticketh]hticket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hjh]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct ww_acquire_ctx *ticketh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hww_acquire_ctxh]hww_acquire_ctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_lru_scanasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hticketh]hticket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hj[hhhjmhMeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjmhMeubah}(h]jRah ](jjeh"]h$]h&]j j )j huh1jhjmhMehjThhubj )}(hhh]h)}(h)helper to implement shrinker.scan_objectsh]h)helper to implement shrinker.scan_objects}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMehj$hhubah}(h]h ]h"]h$]h&]uh1j hjThhhjmhMeubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j?j( j?j) j* j+ uh1jhhhjhNhNubj- )}(hX0**Parameters** ``struct drm_device *dev`` DRM device the LRU belongs to ``struct drm_gem_lru *lru`` The LRU to scan ``unsigned int nr_to_scan`` The number of pages to try to reclaim ``unsigned long *remaining`` The number of pages left to reclaim, should be initialized by caller ``bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)`` Callback to try to shrink/reclaim the object. ``struct ww_acquire_ctx *ticket`` Optional ww_acquire_ctx context to use for locking **Description** If the shrink callback succeeds, it is expected that the driver move the object out of this LRU. If the LRU possibly contain active buffers, it is the responsibility of the shrink callback to check for this (ie. dma_resv_test_signaled()) or if necessary block until the buffer becomes idle.h](h)}(h**Parameters**h]j7 )}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjGubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMihjCubjM )}(hhh](jR )}(h9``struct drm_device *dev`` DRM device the LRU belongs to h](jX )}(h``struct drm_device *dev``h]j^ )}(hjhh]hstruct drm_device *dev}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjfubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMnhjbubjt )}(hhh]h)}(hDRM device the LRU belongs toh]hDRM device the LRU belongs to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMnhj~ubah}(h]h ]h"]h$]h&]uh1js hjbubeh}(h]h ]h"]h$]h&]uh1jQ hj}hMnhj_ubjR )}(h,``struct drm_gem_lru *lru`` The LRU to scan h](jX )}(h``struct drm_gem_lru *lru``h]j^ )}(hjh]hstruct drm_gem_lru *lru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMohjubjt )}(hhh]h)}(hThe LRU to scanh]hThe LRU to scan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMohj_ubjR )}(hB``unsigned int nr_to_scan`` The number of pages to try to reclaim h](jX )}(h``unsigned int nr_to_scan``h]j^ )}(hjh]hunsigned int nr_to_scan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMphjubjt )}(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&]uh1hhjhMphjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMphj_ubjR )}(hb``unsigned long *remaining`` The number of pages left to reclaim, should be initialized by caller h](jX )}(h``unsigned long *remaining``h]j^ )}(hjh]hunsigned long *remaining}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMqhj ubjt )}(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&]uh1hhj(hMqhj)ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj(hMqhj_ubjR )}(h|``bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)`` Callback to try to shrink/reclaim the object. h](jX )}(hM``bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)``h]j^ )}(hjLh]hIbool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket)}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjJubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMrhjFubjt )}(hhh]h)}(h-Callback to try to shrink/reclaim the object.h]h-Callback to try to shrink/reclaim the object.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMrhjbubah}(h]h ]h"]h$]h&]uh1js hjFubeh}(h]h ]h"]h$]h&]uh1jQ hjahMrhj_ubjR )}(hU``struct ww_acquire_ctx *ticket`` Optional ww_acquire_ctx context to use for locking h](jX )}(h!``struct ww_acquire_ctx *ticket``h]j^ )}(hjh]hstruct ww_acquire_ctx *ticket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMshjubjt )}(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&]uh1hhjhMshjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMshj_ubeh}(h]h ]h"]h$]h&]uh1jL hjCubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMuhjCubh)}(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:374: ./drivers/gpu/drm/drm_gem.chMfhjCubh)}(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:374: ./drivers/gpu/drm/drm_gem.chMihjCubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_gem_evict_locked (C function)c.drm_gem_evict_lockedhNtauh1jhjhhhNhNubj)}(hhh](j)}(h5int drm_gem_evict_locked (struct drm_gem_object *obj)h]j)}(h4int drm_gem_evict_locked(struct drm_gem_object *obj)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hMubj)}(hdrm_gem_evict_lockedh]j)}(hdrm_gem_evict_lockedh]hdrm_gem_evict_locked}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj"hMubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjqmodnameN classnameNjj)}j]j)}j}j7sbc.drm_gem_evict_lockedasbuh1hhjMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjIubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhj"hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj"hMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj"hMhj hhubj )}(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:374: ./drivers/gpu/drm/drm_gem.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj hhhj"hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(h@**Parameters** ``struct drm_gem_object *obj`` obj in questionh](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjM )}(hhh]jR )}(h.``struct drm_gem_object *obj`` obj in questionh](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:374: ./drivers/gpu/drm/drm_gem.chMhjubjt )}(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:374: ./drivers/gpu/drm/drm_gem.chMhj+ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj*hMhj ubah}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubeh}(h]j+ah ]h"]gem function referenceah$]h&]uh1hhjhhhhhMqubh)}(hhh](h)}(h"GEM DMA Helper Functions Referenceh]h"GEM DMA Helper Functions Reference}(hj`hhhNhNubah}(h]h ]h"]h$]h&]hjGuh1hhj]hhhhhMzubh)}(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).}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:380: ./drivers/gpu/drm/drm_gem_dma_helper.chKhj]hhubh)}(hXFor devices that access the memory bus through an (external) IOMMU then the buffer objects are allocated using a traditional page-based allocator and may be scattered through physical memory. However they are contiguous in the IOVA space so appear contiguous to devices using them.h]hXFor devices that access the memory bus through an (external) IOMMU then the buffer objects are allocated using a traditional page-based allocator and may be scattered through physical memory. However they are contiguous in the IOVA space so appear contiguous to devices using them.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:380: ./drivers/gpu/drm/drm_gem_dma_helper.chK"hj]hhubh)}(hrFor other devices then the helpers rely on CMA to provide buffer objects that are physically contiguous in memory.h]hrFor other devices then the helpers rely on CMA to provide buffer objects that are physically contiguous in memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:380: ./drivers/gpu/drm/drm_gem_dma_helper.chK(hj]hhubh)}(hFor GEM callback helpers in struct :c:type:`drm_gem_object` functions, see likewise named functions with an _object_ infix (e.g., drm_gem_dma_object_vmap() wraps drm_gem_dma_vmap()). These helpers perform the necessary type conversion.h](h#For GEM callback helpers in struct }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:380: ./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+hj]hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_dma_object (C struct)c.drm_gem_dma_objecthNtauh1jhj]hhhNhNubj)}(hhh](j)}(hdrm_gem_dma_objecth]j)}(hstruct drm_gem_dma_objecth](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_gem_dma_objecth]j)}(hjh]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h)}(h+GEM object backed by DMA memory allocationsh]h+GEM object backed by DMA memory allocations}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhK hj%hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j@j( j@j) j* j+ uh1jhhhj]hNhNubj- )}(hXB**Definition**:: struct drm_gem_dma_object { struct drm_gem_object base; dma_addr_t dma_addr; struct sg_table *sgt; void *vaddr; bool map_noncoherent; }; **Members** ``base`` base GEM object ``dma_addr`` DMA address of the backing memory ``sgt`` scatter/gather table for imported PRIME buffers. The table can have more than one entry but they are guaranteed to have contiguous DMA addresses. ``vaddr`` kernel virtual address of the backing memory ``map_noncoherent`` if true, the GEM object is backed by non-coherent memoryh](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjHubh:}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjDubj )}(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; };}hjesbah}(h]h ]h"]h$]h&]jjuh1j h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjDubh)}(h **Members**h]j7 )}(hjvh]hMembers}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjtubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjDubjM )}(hhh](jR )}(h``base`` base GEM object h](jX )}(h``base``h]j^ )}(hjh]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubjt )}(hhh]h)}(hbase GEM objecth]hbase GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h/``dma_addr`` DMA address of the backing memory h](jX )}(h ``dma_addr``h]j^ )}(hjh]hdma_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(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](jX )}(h``sgt``h]j^ )}(hjh]hsgt}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubjt )}(hhh]h)}(hscatter/gather table for imported PRIME buffers. The table can have more than one entry but they are guaranteed to have contiguous DMA addresses.h]hscatter/gather table for imported PRIME buffers. The table can have more than one entry but they are guaranteed to have contiguous DMA addresses.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h7``vaddr`` kernel virtual address of the backing memory h](jX )}(h ``vaddr``h]j^ )}(hjAh]hvaddr}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj?ubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhj;ubjt )}(hhh]h)}(h,kernel virtual address of the backing memoryh]h,kernel virtual address of the backing memory}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKhjWubah}(h]h ]h"]h$]h&]uh1js hj;ubeh}(h]h ]h"]h$]h&]uh1jQ hjVhKhjubjR )}(hL``map_noncoherent`` if true, the GEM object is backed by non-coherent memoryh](jX )}(h``map_noncoherent``h]j^ )}(hjzh]hmap_noncoherent}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjxubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjtubjt )}(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:383: ./include/drm/drm_gem_dma_helper.hhKhjubah}(h]h ]h"]h$]h&]uh1js hjtubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubeh}(h]h ]h"]h$]h&]uh1jL hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_gem_dma_object_free (C function)c.drm_gem_dma_object_freehNtauh1jhj]hhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhK4ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK4ubj)}(hdrm_gem_dma_object_freeh]j)}(hdrm_gem_dma_object_freeh]hdrm_gem_dma_object_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhK4ubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj1modnameN classnameNjj)}j]j)}j}jsbc.drm_gem_dma_object_freeasbuh1hhj ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hobjh]hobj}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhK4ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK4ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhK4hjhhubj )}(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:383: ./include/drm/drm_gem_dma_helper.hhK4hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhK4ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj]hNhNubj- )}(hX**Parameters** ``struct drm_gem_object *obj`` GEM object to free **Description** This function wraps drm_gem_dma_free_object(). Drivers that employ the DMA helpers should use it as their :c:type:`drm_gem_object_funcs.free ` handler.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhK8hjubjM )}(hhh]jR )}(h2``struct drm_gem_object *obj`` GEM object to free h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhK5hjubjt )}(hhh]h)}(hGEM object to freeh]hGEM object to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhK5hjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./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 }(hj&hhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j^ )}(hj0h]hdrm_gem_object_funcs.free}(hj2hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj.ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhK6hj&ubh handler.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMhK6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_gem_dma_object_print_info (C function)c.drm_gem_dma_object_print_infohNtauh1jhj]hhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKBubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjhKBubj)}(hdrm_gem_dma_object_print_infoh]j)}(hdrm_gem_dma_object_print_infoh]hdrm_gem_dma_object_print_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjthhhjhKBubj>)}(hN(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h](jD)}(hstruct drm_printer *ph](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_dma_object_print_infoasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned int indenth](j)}(hunsignedh]hunsigned}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hinth]hint}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hindenth]hindent}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h const struct drm_gem_object *objh](j)}(hjJh]hconst}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dma_object_print_infoasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjthhhjhKBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjhKBubah}(h]jkah ](jjeh"]h$]h&]j j )j huh1jhjhKBhjmhhubj )}(hhh]h)}(h3Print :c:type:`drm_gem_dma_object` info for debugfsh](hPrint }(hjhhhNhNubh)}(h:c:type:`drm_gem_dma_object`h]j^ )}(hjh]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gem_dma_object_print_infoasbj drm_gem_dma_objectuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubh info for debugfs}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKBhjhhubah}(h]h ]h"]h$]h&]uh1j hjmhhhjhKBubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jTj( jTj) j* j+ uh1jhhhj]hNhNubj- )}(hXk**Parameters** ``struct drm_printer *p`` DRM printer ``unsigned int indent`` Tab indentation level ``const struct drm_gem_object *obj`` GEM object **Description** This function wraps drm_gem_dma_print_info(). Drivers that employ the DMA helpers should use this function as their :c:type:`drm_gem_object_funcs.print_info ` handler.h](h)}(h**Parameters**h]j7 )}(hj^h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj\ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKFhjXubjM )}(hhh](jR )}(h&``struct drm_printer *p`` DRM printer h](jX )}(h``struct drm_printer *p``h]j^ )}(hj}h]hstruct drm_printer *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj{ubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKChjwubjt )}(hhh]h)}(h DRM printerh]h DRM printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKChjubah}(h]h ]h"]h$]h&]uh1js hjwubeh}(h]h ]h"]h$]h&]uh1jQ hjhKChjtubjR )}(h.``unsigned int indent`` Tab indentation level h](jX )}(h``unsigned int indent``h]j^ )}(hjh]hunsigned int indent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKDhjubjt )}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKDhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKDhjtubjR )}(h0``const struct drm_gem_object *obj`` GEM object h](jX )}(h$``const struct drm_gem_object *obj``h]j^ )}(hjh]h const struct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKEhjubjt )}(hhh]h)}(h GEM objecth]h GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKEhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKEhjtubeh}(h]h ]h"]h$]h&]uh1jL hjXubh)}(h**Description**h]j7 )}(hj*h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj(ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKGhjXubh)}(hThis function wraps drm_gem_dma_print_info(). Drivers that employ the DMA helpers should use this function as their :c:type:`drm_gem_object_funcs.print_info ` handler.h](htThis function wraps drm_gem_dma_print_info(). Drivers that employ the DMA helpers should use this function as their }(hj@hhhNhNubh)}(h@:c:type:`drm_gem_object_funcs.print_info `h]j^ )}(hjJh]hdrm_gem_object_funcs.print_info}(hjLhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjHubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKFhj@ubh handler.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjghKFhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(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_tablehNtauh1jhj]hhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKSubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_gem_dma_object_get_sg_tablesb!c.drm_gem_dma_object_get_sg_tableasbuh1hhjhhhjhKSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKSubj)}(hdrm_gem_dma_object_get_sg_tableh]j)}(hjh]hdrm_gem_dma_object_get_sg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKSubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj,modnameN classnameNjj)}j]j!c.drm_gem_dma_object_get_sg_tableasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKSubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKShjhhubj )}(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:383: ./include/drm/drm_gem_dma_helper.hhKShjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKSubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj]hNhNubj- )}(hX[**Parameters** ``struct drm_gem_object *obj`` GEM object **Description** This function wraps drm_gem_dma_get_sg_table(). Drivers that employ the DMA helpers should use it as their :c:type:`drm_gem_object_funcs.get_sg_table ` handler. **Return** A pointer to the scatter/gather table of pinned pages or NULL on failure.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKWhjubjM )}(hhh]jR )}(h*``struct drm_gem_object *obj`` GEM object h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKThjubjt )}(hhh]h)}(h GEM objecth]h GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKThjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKThjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./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 }(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 ](j j! c-typeeh"]h$]h&]uh1j] hj'ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKUhjubh handler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjFhKUhjubh)}(h **Return**h]j7 )}(hjSh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjQubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_gem_dma_object_mmap (C function)c.drm_gem_dma_object_mmaphNtauh1jhj]hhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKwubj)}(hdrm_gem_dma_object_mmaph]j)}(hdrm_gem_dma_object_mmaph]hdrm_gem_dma_object_mmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKwubj>)}(h8(struct drm_gem_object *obj, struct vm_area_struct *vma)h](jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_dma_object_mmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct vm_area_struct *vmah](j)}(hj? h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjgmodnameN classnameNjj)}j]jc.drm_gem_dma_object_mmapasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKwubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKwhjhhubj )}(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:383: ./include/drm/drm_gem_dma_helper.hhKwhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKwubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj]hNhNubj- )}(hXs**Parameters** ``struct drm_gem_object *obj`` GEM object ``struct vm_area_struct *vma`` VMA for the area to be mapped **Description** This function wraps drm_gem_dma_mmap(). Drivers that employ the dma helpers should use it as their :c:type:`drm_gem_object_funcs.mmap ` handler. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhK{hjubjM )}(hhh](jR )}(h*``struct drm_gem_object *obj`` GEM object h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hj h]hstruct drm_gem_object *obj}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKxhjubjt )}(hhh]h)}(h GEM objecth]h GEM object}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKxhjubjR )}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](jX )}(h``struct vm_area_struct *vma``h]j^ )}(hjBh]hstruct vm_area_struct *vma}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKyhj<ubjt )}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKyhjXubah}(h]h ]h"]h$]h&]uh1js hj<ubeh}(h]h ]h"]h$]h&]uh1jQ hjWhKyhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj{ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKzhjubh handler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKzhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./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:383: ./include/drm/drm_gem_dma_helper.hhK~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j1DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE (C macro))c.DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATEhNtauh1jhj]hhhNhNubj)}(hhh](j)}(h'DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATEh]j)}(h'DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATEh]j)}(h'DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATEh]j)}(hjh]h'DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj#hKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj#hKhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhj#hKubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' j<j( j<j) j* j+ uh1jhhhj]hNhNubh)}(h>``DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE (dumb_create_func)``h]j^ )}(hjBh]h:DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE (dumb_create_func)}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhj]hhubj )}(hDMA GEM driver operations h]h)}(hDMA GEM driver operationsh]hDMA GEM driver operations}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjXubah}(h]h ]h"]h$]h&]uh1jhjjhKhj]hhubj- )}(hX **Parameters** ``dumb_create_func`` callback function for .dumb_create **Description** This macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure. This macro is a variant of DRM_GEM_DMA_DRIVER_OPS for drivers that override the default implementation of :c:type:`struct rm_driver `.dumb_create. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE() instead.h](h)}(h**Parameters**h]j7 )}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjuubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjqubjM )}(hhh]jR )}(h8``dumb_create_func`` callback function for .dumb_create h](jX )}(h``dumb_create_func``h]j^ )}(hjh]hdumb_create_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubah}(h]h ]h"]h$]h&]uh1jL hjqubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjqubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubh structure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjqubh)}(hXCThis macro is a variant of DRM_GEM_DMA_DRIVER_OPS for drivers that override the default implementation of :c:type:`struct rm_driver `.dumb_create. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE() instead.h](hjThis macro is a variant of DRM_GEM_DMA_DRIVER_OPS for drivers that override the default implementation of }(hjhhhNhNubh)}(h&:c:type:`struct rm_driver `h]j^ )}(hj#h]hstruct rm_driver}(hj%hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj!ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j rm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubh.dumb_create. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE() instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@hKhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j DRM_GEM_DMA_DRIVER_OPS (C macro)c.DRM_GEM_DMA_DRIVER_OPShNtauh1jhj]hhhNhNubj)}(hhh](j)}(hDRM_GEM_DMA_DRIVER_OPSh]j)}(hDRM_GEM_DMA_DRIVER_OPSh]j)}(hDRM_GEM_DMA_DRIVER_OPSh]j)}(hjeh]hDRM_GEM_DMA_DRIVER_OPS}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jhjghhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjhKubah}(h]j^ah ](jjeh"]h$]h&]j j )j huh1jhjhKhj`hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj`hhhjhKubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj]hNhNubh)}(h``DRM_GEM_DMA_DRIVER_OPS``h]j^ )}(hjh]hDRM_GEM_DMA_DRIVER_OPS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhj]hhubj )}(hX DMA GEM driver operations **Description** This macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure. Drivers that come with their own implementation of :c:type:`struct drm_driver `.dumb_create should use DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE() instead. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP instead. h](j )}(hDMA GEM driver operations h]h)}(hDMA GEM driver operationsh]hDMA GEM driver operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubh structure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(hX8Drivers that come with their own implementation of :c:type:`struct drm_driver `.dumb_create should use DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE() instead. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP instead.h](h3Drivers that come with their own implementation of }(hjhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j^ )}(hj(h]hstruct drm_driver}(hj*hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubh.dumb_create should use DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE() instead. Use DRM_GEM_DMA_DRIVER_OPS if possible. Drivers that require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_VMAP instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj]hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j6DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE (C macro).c.DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATEhNtauh1jhj]hhhNhNubj)}(hhh](j)}(h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATEh]j)}(h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATEh]j)}(h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATEh]j)}(hjih]h,DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jhjkhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjhKubah}(h]jbah ](jjeh"]h$]h&]j j )j huh1jhjhKhjdhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjdhhhjhKubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj]hNhNubh)}(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&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhj]hhubj )}(hCDMA GEM driver operations ensuring a virtual address on the buffer h]h)}(hBDMA GEM driver operations ensuring a virtual address on the bufferh]hBDMA GEM driver operations ensuring a virtual address on the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj]hhubj- )}(hX^**Parameters** ``dumb_create_func`` callback function for .dumb_create **Description** This macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure for drivers that need the virtual address also on imported buffers. This macro is a variant of DRM_GEM_DMA_DRIVER_OPS_VMAP for drivers that override the default implementation of :c:type:`struct drm_driver `.dumb_create. Use DRM_GEM_DMA_DRIVER_OPS_VMAP if possible. Drivers that do not require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE() instead.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubjM )}(hhh]jR )}(h8``dumb_create_func`` callback function for .dumb_create h](jX )}(h``dumb_create_func``h]j^ )}(hjh]hdumb_create_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj2ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./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 }(hjJhhhNhNubh)}(h:c:type:`drm_driver`h]j^ )}(hjTh]h drm_driver}(hjVhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjRubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjJubhN structure for drivers that need the virtual address also on imported buffers.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqhKhjubh)}(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 }(hj|hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j^ )}(hjh]hstruct drm_driver}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhj|ubh.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.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%DRM_GEM_DMA_DRIVER_OPS_VMAP (C macro)c.DRM_GEM_DMA_DRIVER_OPS_VMAPhNtauh1jhj]hhhNhNubj)}(hhh](j)}(hDRM_GEM_DMA_DRIVER_OPS_VMAPh]j)}(hDRM_GEM_DMA_DRIVER_OPS_VMAPh]j)}(hDRM_GEM_DMA_DRIVER_OPS_VMAPh]j)}(hjh]hDRM_GEM_DMA_DRIVER_OPS_VMAP}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj]hNhNubh)}(h``DRM_GEM_DMA_DRIVER_OPS_VMAP``h]j^ )}(hjh]hDRM_GEM_DMA_DRIVER_OPS_VMAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhj]hhubj )}(hXM DMA GEM driver operations ensuring a virtual address on the buffer **Description** This macro provides a shortcut for setting the default GEM operations in the :c:type:`drm_driver` structure for drivers that need the virtual address also on imported buffers. Drivers that come with their own implementation of :c:type:`struct drm_driver `.dumb_create should use DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE() instead. Use DRM_GEM_DMA_DRIVER_OPS_VMAP if possible. Drivers that do not require a virtual address on imported buffers should use DRM_GEM_DMA_DRIVER_OPS instead. h](j )}(hCDMA GEM driver operations ensuring a virtual address on the buffer h]h)}(hBDMA GEM driver operations ensuring a virtual address on the bufferh]hBDMA GEM driver operations ensuring a virtual address on the buffer}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj0hKhjubh)}(h**Description**h]j7 )}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj7ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./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 }(hjOhhhNhNubh)}(h:c:type:`drm_driver`h]j^ )}(hjYh]h drm_driver}(hj[hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjWubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjOubhN structure for drivers that need the virtual address also on imported buffers.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjvhKhjubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./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&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhj0hKhj]hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!DEFINE_DRM_GEM_DMA_FOPS (C macro)c.DEFINE_DRM_GEM_DMA_FOPShNtauh1jhj]hhhNhNubj)}(hhh](j)}(hDEFINE_DRM_GEM_DMA_FOPSh]j)}(hDEFINE_DRM_GEM_DMA_FOPSh]j)}(hDEFINE_DRM_GEM_DMA_FOPSh]j)}(hjh]hDEFINE_DRM_GEM_DMA_FOPS}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj]hNhNubh)}(h"``DEFINE_DRM_GEM_DMA_FOPS (name)``h]j^ )}(hjh]hDEFINE_DRM_GEM_DMA_FOPS (name)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhj]hhubj )}(h2macro to generate file operations for DMA drivers h]h)}(h1macro to generate file operations for DMA driversh]h1macro to generate file operations for DMA drivers}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj0hKhj]hhubj- )}(hX7**Parameters** ``name`` name for the generated structure **Description** This macro autogenerates a suitable :c:type:`struct file_operations ` for DMA based drivers, which can be assigned to :c:type:`drm_driver.fops `. Note that this structure cannot be shared between drivers, because it contains a reference to the current module using THIS_MODULE. Note that the declaration is already marked as static - if you need a non-static version of this you're probably doing it wrong and will break the THIS_MODULE reference by accident.h](h)}(h**Parameters**h]j7 )}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj;ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhj7ubjM )}(hhh]jR )}(h*``name`` name for the generated structure h](jX )}(h``name``h]j^ )}(hj\h]hname}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjZubah}(h]h ]h"]h$]h&]uh1jW h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhjVubjt )}(hhh]h)}(h name for the generated structureh]h name for the generated structure}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhKhjrubah}(h]h ]h"]h$]h&]uh1js hjVubeh}(h]h ]h"]h$]h&]uh1jQ hjqhKhjSubah}(h]h ]h"]h$]h&]uh1jL hj7ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./include/drm/drm_gem_dma_helper.hhKhj7ubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j file_operationsuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:383: ./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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j 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&]uh1hhjhKhj7ubh)}(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:383: ./include/drm/drm_gem_dma_helper.hhKhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_dma_create (C function)c.drm_gem_dma_createhNtauh1jhj]hhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chKwubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj>hKwubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjRmodnameN classnameNjj)}j]j)}j}drm_gem_dma_createsbc.drm_gem_dma_createasbuh1hhj-hhhj>hKwubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj>hKwubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj>hKwubj)}(hdrm_gem_dma_createh]j)}(hjnh]hdrm_gem_dma_create}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj-hhhj>hKwubj>)}(h%(struct drm_device *drm, size_t size)h](jD)}(hstruct drm_device *drmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jlc.drm_gem_dma_createasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]jlc.drm_gem_dma_createasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hj-hhhj>hKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj>hKwubah}(h]j$ah ](jjeh"]h$]h&]j j )j huh1jhj>hKwhj&hhubj )}(hhh]h)}(h&allocate an object with the given sizeh]h&allocate an object with the given size}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chKwhjqhhubah}(h]h ]h"]h$]h&]uh1j hj&hhhj>hKwubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj]hNhNubj- )}(hX**Parameters** ``struct drm_device *drm`` DRM device ``size_t size`` size of the object to allocate **Description** This function creates a DMA GEM object and allocates memory as backing store. The allocated memory will occupy a contiguous chunk of bus address space. For devices that are directly connected to the memory bus then the allocated memory will be physically contiguous. For devices that access through an IOMMU, then the allocated memory is not expected to be physically contiguous because having contiguous IOVAs is sufficient to meet a devices DMA requirements. **Return** A struct drm_gem_dma_object * on success or an ERR_PTR()-encoded negative error code on failure.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chK{hjubjM )}(hhh](jR )}(h&``struct drm_device *drm`` DRM device h](jX )}(h``struct drm_device *drm``h]j^ )}(hjh]hstruct drm_device *drm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chKxhjubjt )}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKxhjubjR )}(h/``size_t size`` size of the object to allocate h](jX )}(h``size_t size``h]j^ )}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chKyhjubjt )}(hhh]h)}(hsize of the object to allocateh]hsize of the object to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKyhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKyhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj'ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chK{hjubh)}(hThis function creates a DMA GEM object and allocates memory as backing store. The allocated memory will occupy a contiguous chunk of bus address space.h]hThis function creates a DMA GEM object and allocates memory as backing store. The allocated memory will occupy a contiguous chunk of bus address space.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chKzhjubh)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chK}hjubh)}(h **Return**h]j7 )}(hj_h]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj]ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_dma_free (C function)c.drm_gem_dma_freehNtauh1jhj]hhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_gem_dma_freeh]j)}(hdrm_gem_dma_freeh]hdrm_gem_dma_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubj>)}(h$(struct drm_gem_dma_object *dma_obj)h]jD)}(h"struct drm_gem_dma_object *dma_objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}jsbc.drm_gem_dma_freeasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj- hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdma_objh]hdma_obj}(hj: hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h)}(h/free resources associated with a DMA GEM objecth]h/free resources associated with a DMA GEM object}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chKhja hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j| j( j| j) j* j+ uh1jhhhj]hNhNubj- )}(hX>**Parameters** ``struct drm_gem_dma_object *dma_obj`` DMA GEM object to free **Description** This function frees the backing memory of the DMA GEM object, cleans up the GEM object state and frees the memory used to store the object itself. If the buffer is imported and the virtual address is set, it is released.h](h)}(h**Parameters**h]j7 )}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chKhj ubjM )}(hhh]jR )}(h>``struct drm_gem_dma_object *dma_obj`` DMA GEM object to free h](jX )}(h&``struct drm_gem_dma_object *dma_obj``h]j^ )}(hj h]h"struct drm_gem_dma_object *dma_obj}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chKhj ubjt )}(hhh]h)}(hDMA GEM object to freeh]hDMA GEM object to free}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj hKhj ubah}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chKhj ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j-drm_gem_dma_dumb_create_internal (C function)"c.drm_gem_dma_dumb_create_internalhNtauh1jhj]hhhNhNubj)}(hhh](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]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](j)}(hinth]hint}(hj% hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj! hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMubj)}(h h]h }(hj4 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj! hhhj3 hMubj)}(h drm_gem_dma_dumb_create_internalh]j)}(h drm_gem_dma_dumb_create_internalh]h drm_gem_dma_dumb_create_internal}(hjF hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj! hhhj3 hMubj>)}(hW(struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h](jD)}(hstruct drm_file *file_privh](j)}(hj? h]hstruct}(hjb hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ ubj)}(h h]h }(hjo hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj} ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}jH sb"c.drm_gem_dma_dumb_create_internalasbuh1hhj^ ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ ubj)}(h file_privh]h file_priv}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjZ ubjD)}(hstruct drm_device *drmh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j "c.drm_gem_dma_dumb_create_internalasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hdrmh]hdrm}(hj+ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjZ ubjD)}(h!struct drm_mode_create_dumb *argsh](j)}(hj? h]hstruct}(hjD hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ ubj)}(h h]h }(hjQ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ ubh)}(hhh]j)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hjb hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjd modnameN classnameNjj)}j]j "c.drm_gem_dma_dumb_create_internalasbuh1hhj@ ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ ubj)}(hargsh]hargs}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjZ ubeh}(h]h ]h"]h$]h&]jjuh1j=hj! hhhj3 hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj3 hMubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj3 hMhj hhubj )}(hhh]h)}(hcreate a dumb buffer objecth]hcreate a dumb buffer object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj hhubah}(h]h ]h"]h$]h&]uh1j hj hhhj3 hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhj]hNhNubj- )}(hX7**Parameters** ``struct drm_file *file_priv`` DRM file-private structure to create the dumb buffer for ``struct drm_device *drm`` DRM device ``struct drm_mode_create_dumb *args`` IOCTL data **Description** This aligns the pitch and size arguments to the minimum required. This is an internal helper that can be wrapped by a driver to account for hardware with more specific alignment requirements. It should not be used directly as their :c:type:`drm_driver.dumb_create ` callback. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j7 )}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubjM )}(hhh](jR )}(hX``struct drm_file *file_priv`` DRM file-private structure to create the dumb buffer for h](jX )}(h``struct drm_file *file_priv``h]j^ )}(hj h]hstruct drm_file *file_priv}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubjt )}(hhh]h)}(h8DRM file-private structure to create the dumb buffer forh]h8DRM file-private structure to create the dumb buffer for}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhj ubjR )}(h&``struct drm_device *drm`` DRM device h](jX )}(h``struct drm_device *drm``h]j^ )}(hj? h]hstruct drm_device *drm}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj= ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj9 ubjt )}(hhh]h)}(h DRM deviceh]h DRM device}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT hMhjU ubah}(h]h ]h"]h$]h&]uh1js hj9 ubeh}(h]h ]h"]h$]h&]uh1jQ hjT hMhj ubjR )}(h1``struct drm_mode_create_dumb *args`` IOCTL data h](jX )}(h%``struct drm_mode_create_dumb *args``h]j^ )}(hjx h]h!struct drm_mode_create_dumb *args}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjv ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjr ubjt )}(hhh]h)}(h IOCTL datah]h IOCTL data}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1js hjr ubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhj ubeh}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubh)}(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 }(hj hhhNhNubh)}(h-:c:type:`drm_driver.dumb_create `h]j^ )}(hj h]hdrm_driver.dumb_create}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubh callback.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubh)}(h **Return**h]j7 )}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM hj ubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_gem_dma_dumb_create (C function)c.drm_gem_dma_dumb_createhNtauh1jhj]hhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjB hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj> hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM"ubj)}(h h]h }(hjQ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj> hhhjP hM"ubj)}(hdrm_gem_dma_dumb_createh]j)}(hdrm_gem_dma_dumb_createh]hdrm_gem_dma_dumb_create}(hjc hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj> hhhjP hM"ubj>)}(hW(struct drm_file *file_priv, struct drm_device *drm, struct drm_mode_create_dumb *args)h](jD)}(hstruct drm_file *file_privh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}je sbc.drm_gem_dma_dumb_createasbuh1hhj{ ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ ubj)}(h file_privh]h file_priv}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjw ubjD)}(hstruct drm_device *drmh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j c.drm_gem_dma_dumb_createasbuh1hhj ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hdrmh]hdrm}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjw ubjD)}(h!struct drm_mode_create_dumb *argsh](j)}(hj? h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hhh]j)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j c.drm_gem_dma_dumb_createasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjw ubeh}(h]h ]h"]h$]h&]jjuh1j=hj> hhhjP hM"ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj: hhhjP hM"ubah}(h]j5 ah ](jjeh"]h$]h&]j j )j huh1jhjP hM"hj7 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:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM"hjhhubah}(h]h ]h"]h$]h&]uh1j hj7 hhhjP hM"ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj]hNhNubj- )}(hX**Parameters** ``struct drm_file *file_priv`` DRM file-private structure to create the dumb buffer for ``struct drm_device *drm`` DRM device ``struct drm_mode_create_dumb *args`` IOCTL data **Description** This function computes the pitch of the dumb buffer and rounds it up to an integer number of bytes per pixel. Drivers for hardware that doesn't have any additional restrictions on the pitch can directly use this function as their :c:type:`drm_driver.dumb_create ` callback. For hardware with additional restrictions, drivers can adjust the fields set up by userspace and pass the IOCTL data along to the drm_gem_dma_dumb_create_internal() function. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM&hjubjM )}(hhh](jR )}(hX``struct drm_file *file_priv`` DRM file-private structure to create the dumb buffer for h](jX )}(h``struct drm_file *file_priv``h]j^ )}(hj#h]hstruct drm_file *file_priv}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj!ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM#hjubjt )}(hhh]h)}(h8DRM file-private structure to create the dumb buffer forh]h8DRM file-private structure to create the dumb buffer for}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM#hj9ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj8hM#hjubjR )}(h&``struct drm_device *drm`` DRM device h](jX )}(h``struct drm_device *drm``h]j^ )}(hj\h]hstruct drm_device *drm}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjZubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM$hjVubjt )}(hhh]h)}(h DRM deviceh]h DRM device}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM$hjrubah}(h]h ]h"]h$]h&]uh1js hjVubeh}(h]h ]h"]h$]h&]uh1jQ hjqhM$hjubjR )}(h1``struct drm_mode_create_dumb *args`` IOCTL data h](jX )}(h%``struct drm_mode_create_dumb *args``h]j^ )}(hjh]h!struct drm_mode_create_dumb *args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM%hjubjt )}(hhh]h)}(h IOCTL datah]h IOCTL data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM%hjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM&hjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hM&hjubh)}(hFor hardware with additional restrictions, drivers can adjust the fields set up by userspace and pass the IOCTL data along to the drm_gem_dma_dumb_create_internal() function.h]hFor hardware with additional restrictions, drivers can adjust the fields set up by userspace and pass the IOCTL data along to the drm_gem_dma_dumb_create_internal() function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM+hjubh)}(h **Return**h]j7 )}(hj)h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj'ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM/hjubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_gem_dma_get_unmapped_area (C function)c.drm_gem_dma_get_unmapped_areahNtauh1jhj]hhhNhNubj)}(hhh](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]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](j)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMLubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhj|hMLubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhj|hMLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhj|hMLubj)}(hdrm_gem_dma_get_unmapped_areah]j)}(hdrm_gem_dma_get_unmapped_areah]hdrm_gem_dma_get_unmapped_area}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjjhhhj|hMLubj>)}(hd(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)h](jD)}(hstruct file *filph](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_dma_get_unmapped_areaasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfilph]hfilp}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(haddrh]haddr}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpgoffh]hpgoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hlongh]hlong}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hflagsh]hflags}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjjhhhj|hMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhj|hMLubah}(h]jaah ](jjeh"]h$]h&]j j )j huh1jhj|hMLhjchhubj )}(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:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMLhjhhubah}(h]h ]h"]h$]h&]uh1j hjchhhj|hMLubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj]hNhNubj- )}(hX **Parameters** ``struct file *filp`` file object ``unsigned long addr`` memory address ``unsigned long len`` buffer size ``unsigned long pgoff`` page offset ``unsigned long flags`` memory flags **Description** This function is used in noMMU platforms to propose address mapping for a given buffer. It's intended to be used as a direct handler for the struct :c:type:`file_operations.get_unmapped_area ` operation. **Return** mapping address on success or a negative error code on failure.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMPhjubjM )}(hhh](jR )}(h"``struct file *filp`` file object h](jX )}(h``struct file *filp``h]j^ )}(hjh]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMMhjubjt )}(hhh]h)}(h file objecth]h file object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMMhjubjR )}(h&``unsigned long addr`` memory address h](jX )}(h``unsigned long addr``h]j^ )}(hjh]hunsigned long addr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMNhjubjt )}(hhh]h)}(hmemory addressh]hmemory address}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMNhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMNhjubjR )}(h"``unsigned long len`` buffer size h](jX )}(h``unsigned long len``h]j^ )}(hjAh]hunsigned long len}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj?ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMOhj;ubjt )}(hhh]h)}(h buffer sizeh]h buffer size}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMOhjWubah}(h]h ]h"]h$]h&]uh1js hj;ubeh}(h]h ]h"]h$]h&]uh1jQ hjVhMOhjubjR )}(h$``unsigned long pgoff`` page offset h](jX )}(h``unsigned long pgoff``h]j^ )}(hjzh]hunsigned long pgoff}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjxubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMPhjtubjt )}(hhh]h)}(h page offseth]h page offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1js hjtubeh}(h]h ]h"]h$]h&]uh1jQ hjhMPhjubjR )}(h%``unsigned long flags`` memory flags h](jX )}(h``unsigned long flags``h]j^ )}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMQhjubjt )}(hhh]h)}(h memory flagsh]h memory flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMQhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMQhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMShjubh)}(hThis function is used in noMMU platforms to propose address mapping for a given buffer. It's intended to be used as a direct handler for the struct :c:type:`file_operations.get_unmapped_area ` operation.h](hThis function is used in noMMU platforms to propose address mapping for a given buffer. It’s intended to be used as a direct handler for the struct }(hjhhhNhNubh)}(h=:c:type:`file_operations.get_unmapped_area `h]j^ )}(hjh]h!file_operations.get_unmapped_area}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j file_operationsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMRhjubh operation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hMRhjubh)}(h **Return**h]j7 )}(hj8h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj6ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMWhjubh)}(h?mapping address on success or a negative error code on failure.h]h?mapping address on success or a negative error code on failure.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_gem_dma_print_info (C function)c.drm_gem_dma_print_infohNtauh1jhj]hhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhMubj)}(hdrm_gem_dma_print_infoh]j)}(hdrm_gem_dma_print_infoh]hdrm_gem_dma_print_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjyhhhjhMubj>)}(hV(const struct drm_gem_dma_object *dma_obj, struct drm_printer *p, unsigned int indent)h](jD)}(h(const struct drm_gem_dma_object *dma_objh]( j)}(hjJh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_dma_print_infoasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdma_objh]hdma_obj}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_printer *ph](j)}(hj? h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjgmodnameN classnameNjj)}j]jc.drm_gem_dma_print_infoasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned int indenth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindenth]hindent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjyhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]j j )j huh1jhjhMhjrhhubj )}(hhh]h)}(h3Print :c:type:`drm_gem_dma_object` info for debugfsh](hPrint }(hjhhhNhNubh)}(h:c:type:`drm_gem_dma_object`h]j^ )}(hj"h]hdrm_gem_dma_object}(hj$hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gem_dma_print_infoasbj drm_gem_dma_objectuh1hhj>hKwhjubh info for debugfs}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjrhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jXj( jXj) j* j+ uh1jhhhj]hNhNubj- )}(hX**Parameters** ``const struct drm_gem_dma_object *dma_obj`` DMA GEM object ``struct drm_printer *p`` DRM printer ``unsigned int indent`` Tab indentation level **Description** This function prints dma_addr and vaddr for use in e.g. debugfs output.h](h)}(h**Parameters**h]j7 )}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj`ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj\ubjM )}(hhh](jR )}(h<``const struct drm_gem_dma_object *dma_obj`` DMA GEM object h](jX )}(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&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj{ubjt )}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hj{ubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjxubjR )}(h&``struct drm_printer *p`` DRM printer h](jX )}(h``struct drm_printer *p``h]j^ )}(hjh]hstruct drm_printer *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubjt )}(hhh]h)}(h DRM printerh]h DRM printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjxubjR )}(h.``unsigned int indent`` Tab indentation level h](jX )}(h``unsigned int indent``h]j^ )}(hjh]hunsigned int indent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubjt )}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjxubeh}(h]h ]h"]h$]h&]uh1jL hj\ubh)}(h**Description**h]j7 )}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj,ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj\ubh)}(hGThis function prints dma_addr and vaddr for use in e.g. debugfs output.h]hGThis function prints dma_addr and vaddr for use in e.g. debugfs output.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_gem_dma_get_sg_table (C function)c.drm_gem_dma_get_sg_tablehNtauh1jhj]hhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhMubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_gem_dma_get_sg_tablesbc.drm_gem_dma_get_sg_tableasbuh1hhjohhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhMubj)}(hdrm_gem_dma_get_sg_tableh]j)}(hjh]hdrm_gem_dma_get_sg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjohhhjhMubj>)}(h$(struct drm_gem_dma_object *dma_obj)h]jD)}(h"struct drm_gem_dma_object *dma_objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]jc.drm_gem_dma_get_sg_tableasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdma_objh]hdma_obj}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjohhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhhubj )}(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}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjkhhubah}(h]h ]h"]h$]h&]uh1j hjhhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj]hNhNubj- )}(hX**Parameters** ``struct drm_gem_dma_object *dma_obj`` DMA GEM object **Description** This function exports a scatter/gather table by calling the standard DMA mapping API. **Return** A pointer to the scatter/gather table of pinned pages or NULL on failure.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubjM )}(hhh]jR )}(h6``struct drm_gem_dma_object *dma_obj`` DMA GEM object h](jX )}(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&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubjt )}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./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:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(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_tablehNtauh1jhj]hhhNhNubj)}(hhh](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]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](j)}(hj? h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjchMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjwmodnameN classnameNjj)}j]j)}j}!drm_gem_dma_prime_import_sg_tablesb#c.drm_gem_dma_prime_import_sg_tableasbuh1hhjRhhhjchMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjchMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjchMubj)}(h!drm_gem_dma_prime_import_sg_tableh]j)}(hjh]h!drm_gem_dma_prime_import_sg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjRhhhjchMubj>)}(hQ(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j#c.drm_gem_dma_prime_import_sg_tableasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h!struct dma_buf_attachment *attachh](j)}(hj? h]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj`modnameN classnameNjj)}j]j#c.drm_gem_dma_prime_import_sg_tableasbuh1hhj<ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hattachh]hattach}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct sg_table *sgth](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j#c.drm_gem_dma_prime_import_sg_tableasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjRhhhjchMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjchMubah}(h]jIah ](jjeh"]h$]h&]j j )j huh1jhjchMhjKhhubj )}(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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj.hhubah}(h]h ]h"]h$]h&]uh1j hjKhhhjchMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jIj( jIj) j* j+ uh1jhhhj]hNhNubj- )}(hX**Parameters** ``struct drm_device *dev`` device to import into ``struct dma_buf_attachment *attach`` DMA-BUF attachment ``struct sg_table *sgt`` scatter/gather table of pinned pages **Description** This function imports a scatter/gather table exported via DMA-BUF by another driver. Imported buffers must be physically contiguous in memory (i.e. the scatter/gather table must contain a single entry). Drivers that use the DMA helpers should set this as their :c:type:`drm_driver.gem_prime_import_sg_table ` callback. **Return** A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.h](h)}(h**Parameters**h]j7 )}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjQubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjMubjM )}(hhh](jR )}(h1``struct drm_device *dev`` device to import into h](jX )}(h``struct drm_device *dev``h]j^ )}(hjrh]hstruct drm_device *dev}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjpubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjlubjt )}(hhh]h)}(hdevice to import intoh]hdevice to import into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjlubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjiubjR )}(h9``struct dma_buf_attachment *attach`` DMA-BUF attachment h](jX )}(h%``struct dma_buf_attachment *attach``h]j^ )}(hjh]h!struct dma_buf_attachment *attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubjt )}(hhh]h)}(hDMA-BUF attachmenth]hDMA-BUF attachment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjiubjR )}(h>``struct sg_table *sgt`` scatter/gather table of pinned pages h](jX )}(h``struct sg_table *sgt``h]j^ )}(hjh]hstruct sg_table *sgt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubjt )}(hhh]h)}(h$scatter/gather table of pinned pagesh]h$scatter/gather table of pinned pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjiubeh}(h]h ]h"]h$]h&]uh1jL hjMubh)}(h**Description**h]j7 )}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjMubh)}(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 }(hj5hhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j^ )}(hj?h]h$drm_driver.gem_prime_import_sg_table}(hjAhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj=ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj5ubh callback.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\hMhjMubh)}(h **Return**h]j7 )}(hjih]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjgubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjMubh)}(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:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_dma_vmap (C function)c.drm_gem_dma_vmaphNtauh1jhj]hhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_dma_vmaph]j)}(hdrm_gem_dma_vmaph]hdrm_gem_dma_vmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h;(struct drm_gem_dma_object *dma_obj, struct iosys_map *map)h](jD)}(h"struct drm_gem_dma_object *dma_objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}jsbc.drm_gem_dma_vmapasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdma_objh]hdma_obj}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct iosys_map *maph](j)}(hj? h]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj}modnameN classnameNjj)}j]j%c.drm_gem_dma_vmapasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(hmap a DMA GEM object into the kernel’s virtual address space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj]hNhNubj- )}(hX**Parameters** ``struct drm_gem_dma_object *dma_obj`` DMA GEM object ``struct iosys_map *map`` Returns the kernel virtual address of the DMA GEM object's backing store. **Description** This function maps a buffer into the kernel's virtual address space. Since the DMA buffers are already mapped into the kernel virtual address space this simply returns the cached virtual address. **Return** 0 on success, or a negative error code otherwise.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubjM )}(hhh](jR )}(h6``struct drm_gem_dma_object *dma_obj`` DMA GEM object h](jX )}(h&``struct drm_gem_dma_object *dma_obj``h]j^ )}(hjh]h"struct drm_gem_dma_object *dma_obj}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubjt )}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj4hMhjubjR )}(hd``struct iosys_map *map`` Returns the kernel virtual address of the DMA GEM object's backing store. h](jX )}(h``struct iosys_map *map``h]j^ )}(hjXh]hstruct iosys_map *map}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjVubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjRubjt )}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjnubah}(h]h ]h"]h$]h&]uh1js hjRubeh}(h]h ]h"]h$]h&]uh1jQ hjmhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh)}(hThis function maps a buffer into the kernel's virtual address space. Since the DMA buffers are already mapped into the kernel virtual address space this simply returns the cached virtual address.h]hThis function maps a buffer into the kernel’s virtual address space. Since the DMA buffers are already mapped into the kernel virtual address space this simply returns the cached virtual address.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubh)}(h10 on success, or a negative error code otherwise.h]h10 on success, or a negative error code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_dma_mmap (C function)c.drm_gem_dma_mmaphNtauh1jhj]hhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_dma_mmaph]j)}(hdrm_gem_dma_mmaph]hdrm_gem_dma_mmap}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h@(struct drm_gem_dma_object *dma_obj, struct vm_area_struct *vma)h](jD)}(h"struct drm_gem_dma_object *dma_objh](j)}(hj? h]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(hdrm_gem_dma_objecth]hdrm_gem_dma_object}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj]modnameN classnameNjj)}j]j)}j}j#sbc.drm_gem_dma_mmapasbuh1hhj9ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hdma_objh]hdma_obj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj5ubjD)}(hstruct vm_area_struct *vmah](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jwc.drm_gem_dma_mmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvmah]hvma}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj5ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h%memory-map an exported DMA GEM objecth]h%memory-map an exported DMA GEM object}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj- hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jH j( jH j) j* j+ uh1jhhhj]hNhNubj- )}(hX**Parameters** ``struct drm_gem_dma_object *dma_obj`` DMA GEM object ``struct vm_area_struct *vma`` VMA for the area to be mapped **Description** This function maps a buffer into a userspace process's address space. In addition to the usual GEM VMA setup it immediately faults in the entire object instead of using on-demand faulting. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j7 )}(hjR h]h Parameters}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjP ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM hjL ubjM )}(hhh](jR )}(h6``struct drm_gem_dma_object *dma_obj`` DMA GEM object h](jX )}(h&``struct drm_gem_dma_object *dma_obj``h]j^ )}(hjq h]h"struct drm_gem_dma_object *dma_obj}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjo ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjk ubjt )}(hhh]h)}(hDMA GEM objecth]hDMA GEM object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1js hjk ubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhjh ubjR )}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](jX )}(h``struct vm_area_struct *vma``h]j^ )}(hj h]hstruct vm_area_struct *vma}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhj ubjt )}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhjh ubeh}(h]h ]h"]h$]h&]uh1jL hjL ubh)}(h**Description**h]j7 )}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM hjL 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:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM hjL ubh)}(h **Return**h]j7 )}(hj !h]hReturn}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj !ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM hjL ubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj"!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chMhjL ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j3drm_gem_dma_prime_import_sg_table_vmap (C function)(c.drm_gem_dma_prime_import_sg_table_vmaphNtauh1jhj]hhhNhNubj)}(hhh](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]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](j)}(hj? h]hstruct}(hjQ!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM!hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM1ubj)}(h h]h }(hj_!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM!hhhj^!hM1ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjp!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm!ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjr!modnameN classnameNjj)}j]j)}j}&drm_gem_dma_prime_import_sg_table_vmapsb(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhjM!hhhj^!hM1ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM!hhhj^!hM1ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM!hhhj^!hM1ubj)}(h&drm_gem_dma_prime_import_sg_table_vmaph]j)}(hj!h]h&drm_gem_dma_prime_import_sg_table_vmap}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjM!hhhj^!hM1ubj>)}(hQ(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj!modnameN classnameNjj)}j]j!(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhj!ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hdevh]hdev}(hj""hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj!ubjD)}(h!struct dma_buf_attachment *attachh](j)}(hj? h]hstruct}(hj;"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7"ubj)}(h h]h }(hjH"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7"ubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjY"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV"ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj["modnameN classnameNjj)}j]j!(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhj7"ubj)}(h h]h }(hjw"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7"ubj)}(hattachh]hattach}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj!ubjD)}(hstruct sg_table *sgth](j)}(hj? h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj"modnameN classnameNjj)}j]j!(c.drm_gem_dma_prime_import_sg_table_vmapasbuh1hhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hsgth]hsgt}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj!ubeh}(h]h ]h"]h$]h&]jjuh1j=hjM!hhhj^!hM1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjI!hhhj^!hM1ubah}(h]jD!ah ](jjeh"]h$]h&]j j )j huh1jhj^!hM1hjF!hhubj )}(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:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM1hj)#hhubah}(h]h ]h"]h$]h&]uh1j hjF!hhhj^!hM1ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jD#j( jD#j) j* j+ uh1jhhhj]hNhNubj- )}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct dma_buf_attachment *attach`` DMA-BUF attachment ``struct sg_table *sgt`` Scatter/gather table of pinned pages **Description** This function imports a scatter/gather table using drm_gem_dma_prime_import_sg_table() and uses dma_buf_vmap() to get the kernel virtual address. This ensures that a DMA GEM object always has its virtual address set. This address is released when the object is freed. This function can be used as the :c:type:`drm_driver.gem_prime_import_sg_table ` callback. The :c:type:`DRM_GEM_DMA_DRIVER_OPS_VMAP` macro provides a shortcut to set the necessary DRM driver operations. **Return** A pointer to a newly created GEM object or an ERR_PTR-encoded negative error code on failure.h](h)}(h**Parameters**h]j7 )}(hjN#h]h Parameters}(hjP#hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjL#ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM5hjH#ubjM )}(hhh](jR )}(h&``struct drm_device *dev`` DRM device h](jX )}(h``struct drm_device *dev``h]j^ )}(hjm#h]hstruct drm_device *dev}(hjo#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjk#ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM3hjg#ubjt )}(hhh]h)}(h DRM deviceh]h DRM device}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM3hj#ubah}(h]h ]h"]h$]h&]uh1js hjg#ubeh}(h]h ]h"]h$]h&]uh1jQ hj#hM3hjd#ubjR )}(h9``struct dma_buf_attachment *attach`` DMA-BUF attachment h](jX )}(h%``struct dma_buf_attachment *attach``h]j^ )}(hj#h]h!struct dma_buf_attachment *attach}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM4hj#ubjt )}(hhh]h)}(hDMA-BUF attachmenth]hDMA-BUF attachment}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM4hj#ubah}(h]h ]h"]h$]h&]uh1js hj#ubeh}(h]h ]h"]h$]h&]uh1jQ hj#hM4hjd#ubjR )}(h>``struct sg_table *sgt`` Scatter/gather table of pinned pages h](jX )}(h``struct sg_table *sgt``h]j^ )}(hj#h]hstruct sg_table *sgt}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM5hj#ubjt )}(hhh]h)}(h$Scatter/gather table of pinned pagesh]h$Scatter/gather table of pinned pages}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM5hj#ubah}(h]h ]h"]h$]h&]uh1js hj#ubeh}(h]h ]h"]h$]h&]uh1jQ hj#hM5hjd#ubeh}(h]h ]h"]h$]h&]uh1jL hjH#ubh)}(h**Description**h]j7 )}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj$ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM7hjH#ubh)}(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.}(hj0$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM6hjH#ubh)}(hThis function can be used as the :c:type:`drm_driver.gem_prime_import_sg_table ` callback. The :c:type:`DRM_GEM_DMA_DRIVER_OPS_VMAP` macro provides a shortcut to set the necessary DRM driver operations.h](h!This function can be used as the }(hj?$hhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j^ )}(hjI$h]h$drm_driver.gem_prime_import_sg_table}(hjK$hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjG$ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM;hj?$ubh callback. The }(hj?$hhhNhNubh)}(h%:c:type:`DRM_GEM_DMA_DRIVER_OPS_VMAP`h]j^ )}(hjm$h]hDRM_GEM_DMA_DRIVER_OPS_VMAP}(hjo$hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjk$ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_GEM_DMA_DRIVER_OPS_VMAPuh1hhjf$hM;hj?$ubhF macro provides a shortcut to set the necessary DRM driver operations.}(hj?$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjf$hM;hjH#ubh)}(h **Return**h]j7 )}(hj$h]hReturn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj$ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM?hjH#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:386: ./drivers/gpu/drm/drm_gem_dma_helper.chM@hjH#ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj]hhhNhNubeh}(h]jMah ]h"]"gem dma helper functions referenceah$]h&]uh1hhjhhhhhMzubh)}(hhh](h)}(h#GEM SHMEM Helper Function Referenceh]h#GEM SHMEM Helper Function Reference}(hj$hhhNhNubah}(h]h ]h"]h$]h&]hjiuh1hhj$hhhhhMubh)}(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.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:392: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj$hhubh)}(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 }(hj$hhhNhNubh)}(h:c:type:`drm_gem_shmem_object`h]j^ )}(hj$h]hdrm_gem_shmem_object}(hj$hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj$ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_shmem_objectuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:392: ./drivers/gpu/drm/drm_gem_shmem_helper.chK"hj$ubh%. For GEM callback helpers in struct }(hj$hhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hj%h]hdrm_gem_object}(hj%hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj%ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhj%hK"hj$ubh 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.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%hK"hj$hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_shmem_object (C struct)c.drm_gem_shmem_objecthNtauh1jhj$hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhNubj)}(hhh](j)}(hdrm_gem_shmem_objecth]j)}(hstruct drm_gem_shmem_objecth](j)}(hj? h]hstruct}(hjX%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT%hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKubj)}(h h]h }(hjf%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT%hhhje%hKubj)}(hdrm_gem_shmem_objecth]j)}(hjR%h]hdrm_gem_shmem_object}(hjx%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt%ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjT%hhhje%hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjP%hhhje%hKubah}(h]jJ%ah ](jjeh"]h$]h&]j j )j huh1jhje%hKhjM%hhubj )}(hhh]h)}(hGEM object backed by shmemh]hGEM object backed by shmem}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj%hhubah}(h]h ]h"]h$]h&]uh1j hjM%hhhje%hKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j%j( j%j) j* j+ uh1jhhhj$hjL%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](j7 )}(h**Definition**h]h Definition}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj%ubh:}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj%ubj )}(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; };}hj%sbah}(h]h ]h"]h$]h&]jjuh1j h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj%ubh)}(h **Members**h]j7 )}(hj%h]hMembers}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj%ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhK*hj%ubjM )}(hhh](jR )}(h``base`` Base GEM object h](jX )}(h``base``h]j^ )}(hj&h]hbase}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj&ubjt )}(hhh]h)}(hBase GEM objecth]hBase GEM object}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKhj&ubah}(h]h ]h"]h$]h&]uh1js hj&ubeh}(h]h ]h"]h$]h&]uh1jQ hj&hKhj%ubjR )}(h``pages`` Page table h](jX )}(h ``pages``h]j^ )}(hj@&h]hpages}(hjB&hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj>&ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj:&ubjt )}(hhh]h)}(h Page tableh]h Page table}(hjY&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU&hKhjV&ubah}(h]h ]h"]h$]h&]uh1js hj:&ubeh}(h]h ]h"]h$]h&]uh1jQ hjU&hKhj%ubjR )}(hg``pages_use_count`` Reference count on the pages table. The pages are put when the count reaches zero. h](jX )}(h``pages_use_count``h]j^ )}(hjy&h]hpages_use_count}(hj{&hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjw&ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhK%hjs&ubjt )}(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.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhK$hj&ubah}(h]h ]h"]h$]h&]uh1js hjs&ubeh}(h]h ]h"]h$]h&]uh1jQ hj&hK%hj%ubjR )}(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](jX )}(h``pages_pin_count``h]j^ )}(hj&h]hpages_pin_count}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhK0hj&ubjt )}(hhh](h)}(h*Reference count on the pinned pages table.h]h*Reference count on the pinned pages table.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhK,hj&ubh)}(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.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhK.hj&ubeh}(h]h ]h"]h$]h&]uh1js hj&ubeh}(h]h ]h"]h$]h&]uh1jQ hj&hK0hj%ubjR )}(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](jX )}(h``madv``h]j^ )}(hj&h]hmadv}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhK;hj&ubjt )}(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:395: ./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.}(hj$'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhK9hj'ubeh}(h]h ]h"]h$]h&]uh1js hj&ubeh}(h]h ]h"]h$]h&]uh1jQ hj'hK;hj%ubjR )}(hd``madv_list`` List entry for madvise tracking Typically used by drivers to track purgeable objects h](jX )}(h ``madv_list``h]j^ )}(hjE'h]h madv_list}(hjG'hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjC'ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKBhj?'ubjt )}(hhh](h)}(hList entry for madvise trackingh]hList entry for madvise tracking}(hj^'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhK@hj['ubh)}(h4Typically used by drivers to track purgeable objectsh]h4Typically used by drivers to track purgeable objects}(hjm'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ'hKBhj['ubeh}(h]h ]h"]h$]h&]uh1js hj?'ubeh}(h]h ]h"]h$]h&]uh1jQ hjZ'hKBhj%ubjR )}(h8``sgt`` Scatter/gather table for imported PRIME buffers h](jX )}(h``sgt``h]j^ )}(hj'h]hsgt}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj'ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKGhj'ubjt )}(hhh]h)}(h/Scatter/gather table for imported PRIME buffersh]h/Scatter/gather table for imported PRIME buffers}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hKGhj'ubah}(h]h ]h"]h$]h&]uh1js hj'ubeh}(h]h ]h"]h$]h&]uh1jQ hj'hKGhj%ubjR )}(h7``vaddr`` Kernel virtual address of the backing memory h](jX )}(h ``vaddr``h]j^ )}(hj'h]hvaddr}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj'ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKLhj'ubjt )}(hhh]h)}(h,Kernel virtual address of the backing memoryh]h,Kernel virtual address of the backing memory}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hKLhj'ubah}(h]h ]h"]h$]h&]uh1js hj'ubeh}(h]h ]h"]h$]h&]uh1jQ hj'hKLhj%ubjR )}(hr``vmap_use_count`` Reference count on the virtual address. The address are un-mapped when the count reaches zero. h](jX )}(h``vmap_use_count``h]j^ )}(hj'h]hvmap_use_count}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj'ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKRhj'ubjt )}(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:395: ./include/drm/drm_gem_shmem_helper.hhKQhj(ubah}(h]h ]h"]h$]h&]uh1js hj'ubeh}(h]h ]h"]h$]h&]uh1jQ hj(hKRhj%ubjR )}(hC``pages_mark_dirty_on_put`` Mark pages as dirty when they are put. h](jX )}(h``pages_mark_dirty_on_put``h]j^ )}(hj9(h]hpages_mark_dirty_on_put}(hj;(hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj7(ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKYhj3(ubjt )}(hhh]h)}(h&Mark pages as dirty when they are put.h]h&Mark pages as dirty when they are put.}(hjR(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN(hKYhjO(ubah}(h]h ]h"]h$]h&]uh1js hj3(ubeh}(h]h ]h"]h$]h&]uh1jQ hjN(hKYhj%ubjR )}(hI``pages_mark_accessed_on_put`` Mark pages as accessed when they are put. h](jX )}(h``pages_mark_accessed_on_put``h]j^ )}(hjr(h]hpages_mark_accessed_on_put}(hjt(hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjp(ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhK`hjl(ubjt )}(hhh]h)}(h)Mark pages as accessed when they are put.h]h)Mark pages as accessed when they are put.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hK`hj(ubah}(h]h ]h"]h$]h&]uh1js hjl(ubeh}(h]h ]h"]h$]h&]uh1jQ hj(hK`hj%ubjR )}(hG``map_wc`` map object write-combined (instead of using shmem defaults).h](jX )}(h ``map_wc``h]j^ )}(hj(h]hmap_wc}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj(ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKfhj(ubjt )}(hhh]h)}(h)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjB)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>)ubj)}(h h]h }(hjO)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>)ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj`)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj])ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjb)modnameN classnameNjj)}j]j)}j}j()sbc.drm_gem_shmem_object_freeasbuh1hhj>)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>)ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>)ubj)}(hobjh]hobj}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj:)ubah}(h]h ]h"]h$]h&]jjuh1j=hj)hhhj)hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj)hKubah}(h]j(ah ](jjeh"]h$]h&]j j )j huh1jhj)hKhj(hhubj )}(hhh]h)}(h,GEM object function for drm_gem_shmem_free()h]h,GEM object function for drm_gem_shmem_free()}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj)hhubah}(h]h ]h"]h$]h&]uh1j hj(hhhj)hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j)j( j)j) j* j+ uh1jhhhj$hjL%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]j7 )}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj)ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj)ubjM )}(hhh]jR )}(h2``struct drm_gem_object *obj`` GEM object to free h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hj*h]hstruct drm_gem_object *obj}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj*ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj*ubjt )}(hhh]h)}(hGEM object to freeh]hGEM object to free}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKhj*ubah}(h]h ]h"]h$]h&]uh1js hj*ubeh}(h]h ]h"]h$]h&]uh1jQ hj*hKhj)ubah}(h]h ]h"]h$]h&]uh1jL hj)ubh)}(h**Description**h]j7 )}(hjA*h]h Description}(hjC*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj?*ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj)ubh)}(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 }(hjW*hhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j^ )}(hja*h]hdrm_gem_object_funcs.free}(hjc*hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj_*ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhjW*ubh handler.}(hjW*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~*hKhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhjL%hNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j,drm_gem_shmem_object_print_info (C function)!c.drm_gem_shmem_object_print_infohNtauh1jhj$hhhjL%hNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj*hKubj)}(hdrm_gem_shmem_object_print_infoh]j)}(hdrm_gem_shmem_object_print_infoh]hdrm_gem_shmem_object_print_info}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj*hhhj*hKubj>)}(hN(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *obj)h](jD)}(hstruct drm_printer *ph](j)}(hj? h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj+modnameN classnameNjj)}j]j)}j}j*sb!c.drm_gem_shmem_object_print_infoasbuh1hhj*ubj)}(h h]h }(hj$+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hj2+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hjh]hp}(hj?+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj*ubjD)}(hunsigned int indenth](j)}(hunsignedh]hunsigned}(hjW+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS+ubj)}(h h]h }(hje+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS+ubj)}(hinth]hint}(hjs+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS+ubj)}(hindenth]hindent}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj*ubjD)}(h const struct drm_gem_object *objh](j)}(hjJh]hconst}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hj? h]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj+modnameN classnameNjj)}j]j +!c.drm_gem_shmem_object_print_infoasbuh1hhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hj ,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hobjh]hobj}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj*ubeh}(h]h ]h"]h$]h&]jjuh1j=hj*hhhj*hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj*hKubah}(h]j*ah ](jjeh"]h$]h&]j j )j huh1jhj*hKhj*hhubj )}(hhh]h)}(h5Print :c:type:`drm_gem_shmem_object` info for debugfsh](hPrint }(hjD,hhhNhNubh)}(h:c:type:`drm_gem_shmem_object`h]j^ )}(hjN,h]hdrm_gem_shmem_object}(hjP,hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjL,ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j +!c.drm_gem_shmem_object_print_infoasbj drm_gem_shmem_objectuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhjD,ubh info for debugfs}(hjD,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhjA,hhubah}(h]h ]h"]h$]h&]uh1j hj*hhhj*hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j,j( j,j) j* j+ uh1jhhhj$hjL%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]j7 )}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj,ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj,ubjM )}(hhh](jR )}(h&``struct drm_printer *p`` DRM printer h](jX )}(h``struct drm_printer *p``h]j^ )}(hj,h]hstruct drm_printer *p}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj,ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj,ubjt )}(hhh]h)}(h DRM printerh]h DRM printer}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKhj,ubah}(h]h ]h"]h$]h&]uh1js hj,ubeh}(h]h ]h"]h$]h&]uh1jQ hj,hKhj,ubjR )}(h.``unsigned int indent`` Tab indentation level h](jX )}(h``unsigned int indent``h]j^ )}(hj,h]hunsigned int indent}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj,ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj,ubjt )}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKhj,ubah}(h]h ]h"]h$]h&]uh1js hj,ubeh}(h]h ]h"]h$]h&]uh1jQ hj,hKhj,ubjR )}(h0``const struct drm_gem_object *obj`` GEM object h](jX )}(h$``const struct drm_gem_object *obj``h]j^ )}(hj -h]h const struct drm_gem_object *obj}(hj"-hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj-ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj-ubjt )}(hhh]h)}(h GEM objecth]h GEM object}(hj9-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5-hKhj6-ubah}(h]h ]h"]h$]h&]uh1js hj-ubeh}(h]h ]h"]h$]h&]uh1jQ hj5-hKhj,ubeh}(h]h ]h"]h$]h&]uh1jL hj,ubh)}(h**Description**h]j7 )}(hj[-h]h Description}(hj]-hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjY-ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj,ubh)}(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 }(hjq-hhhNhNubh)}(h@:c:type:`drm_gem_object_funcs.print_info `h]j^ )}(hj{-h]hdrm_gem_object_funcs.print_info}(hj}-hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjy-ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhjq-ubh handler.}(hjq-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-hKhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhjL%hNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_gem_shmem_object_pin (C function)c.drm_gem_shmem_object_pinhNtauh1jhj$hhhjL%hNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj-hKubj)}(hdrm_gem_shmem_object_pinh]j)}(hdrm_gem_shmem_object_pinh]hdrm_gem_shmem_object_pin}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj-hhhj-hKubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj .hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj .modnameN classnameNjj)}j]j)}j}j-sbc.drm_gem_shmem_object_pinasbuh1hhj-ubj)}(h h]h }(hj>.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hjL.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hobjh]hobj}(hjY.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj-ubah}(h]h ]h"]h$]h&]jjuh1j=hj-hhhj-hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhj-hKubah}(h]j-ah ](jjeh"]h$]h&]j j )j huh1jhj-hKhj-hhubj )}(hhh]h)}(h+GEM object function for drm_gem_shmem_pin()h]h+GEM object function for drm_gem_shmem_pin()}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj.hhubah}(h]h ]h"]h$]h&]uh1j hj-hhhj-hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j.j( j.j) j* j+ uh1jhhhj$hjL%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]j7 )}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj.ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj.ubjM )}(hhh]jR )}(h*``struct drm_gem_object *obj`` GEM object h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hj.h]hstruct drm_gem_object *obj}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj.ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj.ubjt )}(hhh]h)}(h GEM objecth]h GEM object}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hKhj.ubah}(h]h ]h"]h$]h&]uh1js hj.ubeh}(h]h ]h"]h$]h&]uh1jQ hj.hKhj.ubah}(h]h ]h"]h$]h&]uh1jL hj.ubh)}(h**Description**h]j7 )}(hj.h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj.ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj.ubh)}(hThis function wraps drm_gem_shmem_pin(). Drivers that employ the shmem helpers should use it as their :c:type:`drm_gem_object_funcs.pin ` handler.h](hfThis function wraps drm_gem_shmem_pin(). Drivers that employ the shmem helpers should use it as their }(hj/hhhNhNubh)}(h9:c:type:`drm_gem_object_funcs.pin `h]j^ )}(hj/h]hdrm_gem_object_funcs.pin}(hj!/hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj/ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj/ubh handler.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj/modnameN classnameNjj)}j]j)}j}j/sbc.drm_gem_shmem_object_unpinasbuh1hhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hobjh]hobj}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj/ubah}(h]h ]h"]h$]h&]jjuh1j=hjc/hhhju/hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_/hhhju/hKubah}(h]jZ/ah ](jjeh"]h$]h&]j j )j huh1jhju/hKhj\/hhubj )}(hhh]h)}(h-GEM object function for drm_gem_shmem_unpin()h]h-GEM object function for drm_gem_shmem_unpin()}(hj'0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj$0hhubah}(h]h ]h"]h$]h&]uh1j hj\/hhhju/hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j?0j( j?0j) j* j+ uh1jhhhj$hjL%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]j7 )}(hjI0h]h Parameters}(hjK0hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjG0ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhjC0ubjM )}(hhh]jR )}(h*``struct drm_gem_object *obj`` GEM object h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh0h]hstruct drm_gem_object *obj}(hjj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjf0ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhjb0ubjt )}(hhh]h)}(h GEM objecth]h GEM object}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}0hKhj~0ubah}(h]h ]h"]h$]h&]uh1js hjb0ubeh}(h]h ]h"]h$]h&]uh1jQ hj}0hKhj_0ubah}(h]h ]h"]h$]h&]uh1jL hjC0ubh)}(h**Description**h]j7 )}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj0ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhjC0ubh)}(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 }(hj0hhhNhNubh)}(h;:c:type:`drm_gem_object_funcs.unpin `h]j^ )}(hj0h]hdrm_gem_object_funcs.unpin}(hj0hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj0ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj0ubh handler.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0hKhjC0ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhjL%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_tablehNtauh1jhj$hhhjL%hNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hj 1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hKubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj*1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'1ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj,1modnameN classnameNjj)}j]j)}j}!drm_gem_shmem_object_get_sg_tablesb#c.drm_gem_shmem_object_get_sg_tableasbuh1hhj1hhhj1hKubj)}(h h]h }(hjK1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hKubj)}(hjh]h*}(hjY1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hKubj)}(h!drm_gem_shmem_object_get_sg_tableh]j)}(hjH1h]h!drm_gem_shmem_object_get_sg_table}(hjj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf1ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj1hhhj1hKubj>)}(h(struct drm_gem_object *obj)h]jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj1modnameN classnameNjj)}j]jF1#c.drm_gem_shmem_object_get_sg_tableasbuh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hobjh]hobj}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj}1ubah}(h]h ]h"]h$]h&]jjuh1j=hj1hhhj1hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj1hKubah}(h]j0ah ](jjeh"]h$]h&]j j )j huh1jhj1hKhj1hhubj )}(hhh]h)}(h4GEM object function for drm_gem_shmem_get_sg_table()h]h4GEM object function for drm_gem_shmem_get_sg_table()}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj2hhubah}(h]h ]h"]h$]h&]uh1j hj1hhhj1hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j2j( j2j) j* j+ uh1jhhhj$hjL%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]j7 )}(hj(2h]h Parameters}(hj*2hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj&2ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj"2ubjM )}(hhh]jR )}(h*``struct drm_gem_object *obj`` GEM object h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjG2h]hstruct drm_gem_object *obj}(hjI2hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjE2ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhjA2ubjt )}(hhh]h)}(h GEM objecth]h GEM object}(hj`2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\2hKhj]2ubah}(h]h ]h"]h$]h&]uh1js hjA2ubeh}(h]h ]h"]h$]h&]uh1jQ hj\2hKhj>2ubah}(h]h ]h"]h$]h&]uh1jL hj"2ubh)}(h**Description**h]j7 )}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj2ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj"2ubh)}(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 }(hj2hhhNhNubh)}(hB:c:type:`drm_gem_object_funcs.get_sg_table `h]j^ )}(hj2h]h!drm_gem_object_funcs.get_sg_table}(hj2hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj2ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj2ubh handler.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hKhj"2ubh)}(h **Return**h]j7 )}(hj2h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj2ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj"2ubh)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhKhj"2ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhjL%hNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drm_gem_shmem_object_mmap (C function)c.drm_gem_shmem_object_mmaphNtauh1jhj$hhhjL%hNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 3hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhM ubj)}(h h]h }(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 3hhhj3hM ubj)}(hdrm_gem_shmem_object_mmaph]j)}(hdrm_gem_shmem_object_mmaph]hdrm_gem_shmem_object_mmap}(hj23hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.3ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj 3hhhj3hM ubj>)}(h8(struct drm_gem_object *obj, struct vm_area_struct *vma)h](jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjN3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ3ubj)}(h h]h }(hj[3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ3ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjl3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji3ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjn3modnameN classnameNjj)}j]j)}j}j43sbc.drm_gem_shmem_object_mmapasbuh1hhjJ3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ3ubj)}(hobjh]hobj}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjF3ubjD)}(hstruct vm_area_struct *vmah](j)}(hj? h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj3modnameN classnameNjj)}j]j3c.drm_gem_shmem_object_mmapasbuh1hhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj 4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hvmah]hvma}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjF3ubeh}(h]h ]h"]h$]h&]jjuh1j=hj 3hhhj3hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj 3hhhj3hM ubah}(h]j3ah ](jjeh"]h$]h&]j j )j huh1jhj3hM hj3hhubj )}(hhh]h)}(h,GEM object function for drm_gem_shmem_mmap()h]h,GEM object function for drm_gem_shmem_mmap()}(hjA4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhM hj>4hhubah}(h]h ]h"]h$]h&]uh1j hj3hhhj3hM ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jY4j( jY4j) j* j+ uh1jhhhj$hjL%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]j7 )}(hjc4h]h Parameters}(hje4hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hja4ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhMhj]4ubjM )}(hhh](jR )}(h*``struct drm_gem_object *obj`` GEM object h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hj4h]hstruct drm_gem_object *obj}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj4ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhM hj|4ubjt )}(hhh]h)}(h GEM objecth]h GEM object}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1js hj|4ubeh}(h]h ]h"]h$]h&]uh1jQ hj4hM hjy4ubjR )}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](jX )}(h``struct vm_area_struct *vma``h]j^ )}(hj4h]hstruct vm_area_struct *vma}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj4ubah}(h]h ]h"]h$]h&]uh1jW h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhM hj4ubjt )}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1js hj4ubeh}(h]h ]h"]h$]h&]uh1jQ hj4hM hjy4ubeh}(h]h ]h"]h$]h&]uh1jL hj]4ubh)}(h**Description**h]j7 )}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj4ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhMhj]4ubh)}(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 5hhhNhNubh)}(h::c:type:`drm_gem_object_funcs.mmap `h]j^ )}(hj5h]hdrm_gem_object_funcs.mmap}(hj5hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhMhj 5ubh handler.}(hj 5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj35hMhj]4ubh)}(h **Return**h]j7 )}(hj@5h]hReturn}(hjB5hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj>5ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhMhj]4ubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjV5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhMhj]4ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhjL%hNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"DRM_GEM_SHMEM_DRIVER_OPS (C macro)c.DRM_GEM_SHMEM_DRIVER_OPShNtauh1jhj$hhhjL%hNubj)}(hhh](j)}(hDRM_GEM_SHMEM_DRIVER_OPSh]j)}(hDRM_GEM_SHMEM_DRIVER_OPSh]j)}(hDRM_GEM_SHMEM_DRIVER_OPSh]j)}(hj5h]hDRM_GEM_SHMEM_DRIVER_OPS}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj5hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhM*ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj}5hhhj5hM*ubah}(h]jx5ah ](jjeh"]h$]h&]j j )j huh1jhj5hM*hjz5hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjz5hhhj5hM*ubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' j5j( j5j) j* j+ uh1jhhhj$hjL%hNubh)}(h``DRM_GEM_SHMEM_DRIVER_OPS``h]j^ )}(hj5h]hDRM_GEM_SHMEM_DRIVER_OPS}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhM,hj$hhubj )}(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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhM*hj5ubah}(h]h ]h"]h$]h&]uh1jhj5hM*hj5ubh)}(h**Description**h]j7 )}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj5ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhM,hj5ubh)}(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 }(hj6hhhNhNubh)}(h:c:type:`drm_driver`h]j^ )}(hj6h]h drm_driver}(hj6hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj6ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:395: ./include/drm/drm_gem_shmem_helper.hhM+hj6ubhZ structure. Drivers that do not require an s/g table for imported buffers should use this.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-6hM+hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM*hj$hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_shmem_init (C function)c.drm_gem_shmem_inithNtauh1jhj$hhhNhNubj)}(hhh](j)}(h`int drm_gem_shmem_init (struct drm_device *dev, struct drm_gem_shmem_object *shmem, size_t size)h]j)}(h_int drm_gem_shmem_init(struct drm_device *dev, struct drm_gem_shmem_object *shmem, size_t size)h](j)}(hinth]hint}(hjW6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS6hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKcubj)}(h h]h }(hjf6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS6hhhje6hKcubj)}(hdrm_gem_shmem_inith]j)}(hdrm_gem_shmem_inith]hdrm_gem_shmem_init}(hjx6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt6ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjS6hhhje6hKcubj>)}(hI(struct drm_device *dev, struct drm_gem_shmem_object *shmem, size_t size)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj6modnameN classnameNjj)}j]j)}j}jz6sbc.drm_gem_shmem_initasbuh1hhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hdevh]hdev}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj6ubjD)}(h"struct drm_gem_shmem_object *shmemh](j)}(hj? h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj$7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!7ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj&7modnameN classnameNjj)}j]j6c.drm_gem_shmem_initasbuh1hhj7ubj)}(h h]h }(hjB7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjP7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hshmemh]hshmem}(hj]7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj6ubjD)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjy7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv7ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj{7modnameN classnameNjj)}j]j6c.drm_gem_shmem_initasbuh1hhjr7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr7ubj)}(hsizeh]hsize}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj6ubeh}(h]h ]h"]h$]h&]jjuh1j=hjS6hhhje6hKcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjO6hhhje6hKcubah}(h]jJ6ah ](jjeh"]h$]h&]j j )j huh1jhje6hKchjL6hhubj )}(hhh]h)}(hInitialize an allocated object.h]hInitialize an allocated object.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKchj7hhubah}(h]h ]h"]h$]h&]uh1j hjL6hhhje6hKcubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j7j( j7j) j* j+ uh1jhhhj$hNhNubj- )}(hX3**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_gem_shmem_object *shmem`` shmem GEM object to initialize ``size_t size`` Buffer size in bytes **Description** This function initializes an allocated shmem GEM object. **Return** 0 on success, or a negative error code on failure.h](h)}(h**Parameters**h]j7 )}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj7ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKghj7ubjM )}(hhh](jR )}(h&``struct drm_device *dev`` DRM device h](jX )}(h``struct drm_device *dev``h]j^ )}(hj8h]hstruct drm_device *dev}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj8ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKdhj 8ubjt )}(hhh]h)}(h DRM deviceh]h DRM device}(hj)8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%8hKdhj&8ubah}(h]h ]h"]h$]h&]uh1js hj 8ubeh}(h]h ]h"]h$]h&]uh1jQ hj%8hKdhj8ubjR )}(hF``struct drm_gem_shmem_object *shmem`` shmem GEM object to initialize h](jX )}(h&``struct drm_gem_shmem_object *shmem``h]j^ )}(hjI8h]h"struct drm_gem_shmem_object *shmem}(hjK8hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjG8ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKehjC8ubjt )}(hhh]h)}(hshmem GEM object to initializeh]hshmem GEM object to initialize}(hjb8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^8hKehj_8ubah}(h]h ]h"]h$]h&]uh1js hjC8ubeh}(h]h ]h"]h$]h&]uh1jQ hj^8hKehj8ubjR )}(h%``size_t size`` Buffer size in bytes h](jX )}(h``size_t size``h]j^ )}(hj8h]h size_t size}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj8ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKfhj|8ubjt )}(hhh]h)}(hBuffer size in bytesh]hBuffer size in bytes}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKfhj8ubah}(h]h ]h"]h$]h&]uh1js hj|8ubeh}(h]h ]h"]h$]h&]uh1jQ hj8hKfhj8ubeh}(h]h ]h"]h$]h&]uh1jL hj7ubh)}(h**Description**h]j7 )}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj8ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhhj7ubh)}(h8This function initializes an allocated shmem GEM object.h]h8This function initializes an allocated shmem GEM object.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKghj7ubh)}(h **Return**h]j7 )}(hj8h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj8ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKihj7ubh)}(h20 on success, or a negative error code on failure.h]h20 on success, or a negative error code on failure.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKjhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_gem_shmem_create (C function)c.drm_gem_shmem_createhNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hj)9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%9hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKubj)}(h h]h }(hj79hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%9hhhj69hKubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hjH9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE9ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjJ9modnameN classnameNjj)}j]j)}j}drm_gem_shmem_createsbc.drm_gem_shmem_createasbuh1hhj%9hhhj69hKubj)}(h h]h }(hji9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%9hhhj69hKubj)}(hjh]h*}(hjw9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%9hhhj69hKubj)}(hdrm_gem_shmem_createh]j)}(hjf9h]hdrm_gem_shmem_create}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj%9hhhj69hKubj>)}(h%(struct drm_device *dev, size_t size)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj9modnameN classnameNjj)}j]jd9c.drm_gem_shmem_createasbuh1hhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hdevh]hdev}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj9ubjD)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj:modnameN classnameNjj)}j]jd9c.drm_gem_shmem_createasbuh1hhj:ubj)}(h h]h }(hj4:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hsizeh]hsize}(hjB:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj9ubeh}(h]h ]h"]h$]h&]jjuh1j=hj%9hhhj69hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!9hhhj69hKubah}(h]j9ah ](jjeh"]h$]h&]j j )j huh1jhj69hKhj9hhubj )}(hhh]h)}(h&Allocate an object with the given sizeh]h&Allocate an object with the given size}(hjl:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhji:hhubah}(h]h ]h"]h$]h&]uh1j hj9hhhj69hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j:j( j:j) j* j+ uh1jhhhj$hNhNubj- )}(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]j7 )}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj:ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj:ubjM )}(hhh](jR )}(h&``struct drm_device *dev`` DRM device h](jX )}(h``struct drm_device *dev``h]j^ )}(hj:h]hstruct drm_device *dev}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj:ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj:ubjt )}(hhh]h)}(h DRM deviceh]h DRM device}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKhj:ubah}(h]h ]h"]h$]h&]uh1js hj:ubeh}(h]h ]h"]h$]h&]uh1jQ hj:hKhj:ubjR )}(h/``size_t size`` Size of the object to allocate h](jX )}(h``size_t size``h]j^ )}(hj:h]h size_t size}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj:ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj:ubjt )}(hhh]h)}(hSize of the object to allocateh]hSize of the object to allocate}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKhj:ubah}(h]h ]h"]h$]h&]uh1js hj:ubeh}(h]h ]h"]h$]h&]uh1jQ hj:hKhj:ubeh}(h]h ]h"]h$]h&]uh1jL hj:ubh)}(h**Description**h]j7 )}(hj!;h]h Description}(hj#;hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj;ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj:ubh)}(h)This function creates a shmem GEM object.h]h)This function creates a shmem GEM object.}(hj7;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj:ubh)}(h **Return**h]j7 )}(hjH;h]hReturn}(hjJ;hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjF;ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj: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:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_gem_shmem_release (C function)c.drm_gem_shmem_releasehNtauh1jhj$hhhNhNubj)}(hhh](j)}(h?void drm_gem_shmem_release (struct drm_gem_shmem_object *shmem)h]j)}(h>void drm_gem_shmem_release(struct drm_gem_shmem_object *shmem)h](j)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhj;hKubj)}(hdrm_gem_shmem_releaseh]j)}(hdrm_gem_shmem_releaseh]hdrm_gem_shmem_release}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj;hhhj;hKubj>)}(h$(struct drm_gem_shmem_object *shmem)h]jD)}(h"struct drm_gem_shmem_object *shmemh](j)}(hj? h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj;modnameN classnameNjj)}j]j)}j}j;sbc.drm_gem_shmem_releaseasbuh1hhj;ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hshmemh]hshmem}(hj#<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj;ubah}(h]h ]h"]h$]h&]jjuh1j=hj;hhhj;hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhj;hKubah}(h]j;ah ](jjeh"]h$]h&]j j )j huh1jhj;hKhj;hhubj )}(hhh]h)}(h5Release resources associated with a shmem GEM object.h]h5Release resources associated with a shmem GEM object.}(hjM<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhjJ<hhubah}(h]h ]h"]h$]h&]uh1j hj;hhhj;hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' je<j( je<j) j* j+ uh1jhhhj$hNhNubj- )}(hX**Parameters** ``struct drm_gem_shmem_object *shmem`` shmem GEM object **Description** This function cleans up the GEM object state, but does not free the memory used to store the object itself. This function is meant to be a dedicated helper for the Rust GEM bindings.h](h)}(h**Parameters**h]j7 )}(hjo<h]h Parameters}(hjq<hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjm<ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhji<ubjM )}(hhh]jR )}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](jX )}(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&]uh1j] hj<ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj<ubjt )}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1js hj<ubeh}(h]h ]h"]h$]h&]uh1jQ hj<hKhj<ubah}(h]h ]h"]h$]h&]uh1jL hji<ubh)}(h**Description**h]j7 )}(hj<h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj<ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhji<ubh)}(hThis function cleans up the GEM object state, but does not free the memory used to store the object itself. This function is meant to be a dedicated helper for the Rust GEM bindings.h]hThis function cleans up the GEM object state, but does not free the memory used to store the object itself. This function is meant to be a dedicated helper for the Rust GEM bindings.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhji<ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_shmem_free (C function)c.drm_gem_shmem_freehNtauh1jhj$hhhNhNubj)}(hhh](j)}(h)}(h$(struct drm_gem_shmem_object *shmem)h]jD)}(h"struct drm_gem_shmem_object *shmemh](j)}(hj? h]hstruct}(hjK=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG=ubj)}(h h]h }(hjX=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG=ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hji=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf=ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjk=modnameN classnameNjj)}j]j)}j}j1=sbc.drm_gem_shmem_freeasbuh1hhjG=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG=ubj)}(hshmemh]hshmem}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjC=ubah}(h]h ]h"]h$]h&]jjuh1j=hj =hhhj=hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhj=hKubah}(h]j=ah ](jjeh"]h$]h&]j j )j huh1jhj=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:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj=hhubah}(h]h ]h"]h$]h&]uh1j hj=hhhj=hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j=j( j=j) j* j+ uh1jhhhj$hNhNubj- )}(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]j7 )}(hj=h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj=ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj=ubjM )}(hhh]jR )}(h@``struct drm_gem_shmem_object *shmem`` shmem GEM object to free h](jX )}(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&]uh1j] hj >ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj >ubjt )}(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&]uh1js hj >ubeh}(h]h ]h"]h$]h&]uh1jQ hj$>hKhj>ubah}(h]h ]h"]h$]h&]uh1jL hj=ubh)}(h**Description**h]j7 )}(hjJ>h]h Description}(hjL>hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjH>ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./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:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chKhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_shmem_pin (C function)c.drm_gem_shmem_pinhNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMCubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hMCubj)}(hdrm_gem_shmem_pinh]j)}(hdrm_gem_shmem_pinh]hdrm_gem_shmem_pin}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj>hhhj>hMCubj>)}(h$(struct drm_gem_shmem_object *shmem)h]jD)}(h"struct drm_gem_shmem_object *shmemh](j)}(hj? h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj>modnameN classnameNjj)}j]j)}j}j>sbc.drm_gem_shmem_pinasbuh1hhj>ubj)}(h h]h }(hj ?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hshmemh]hshmem}(hj%?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj>ubah}(h]h ]h"]h$]h&]jjuh1j=hj>hhhj>hMCubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhj>hMCubah}(h]j>ah ](jjeh"]h$]h&]j j )j huh1jhj>hMChj>hhubj )}(hhh]h)}(h(Pin backing pages for a shmem GEM objecth]h(Pin backing pages for a shmem GEM object}(hjO?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMChjL?hhubah}(h]h ]h"]h$]h&]uh1j hj>hhhj>hMCubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jg?j( jg?j) j* j+ uh1jhhhj$hNhNubj- )}(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]j7 )}(hjq?h]h Parameters}(hjs?hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjo?ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMGhjk?ubjM )}(hhh]jR )}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](jX )}(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&]uh1j] hj?ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMDhj?ubjt )}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMDhj?ubah}(h]h ]h"]h$]h&]uh1js hj?ubeh}(h]h ]h"]h$]h&]uh1jQ hj?hMDhj?ubah}(h]h ]h"]h$]h&]uh1jL hjk?ubh)}(h**Description**h]j7 )}(hj?h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj?ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMFhjk?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:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMEhjk?ubh)}(h **Return**h]j7 )}(hj?h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj?ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMHhjk?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:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMIhjk?ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gem_shmem_unpin (C function)c.drm_gem_shmem_unpinhNtauh1jhj$hhhNhNubj)}(hhh](j)}(h=void drm_gem_shmem_unpin (struct drm_gem_shmem_object *shmem)h]j)}(h)}(h$(struct drm_gem_shmem_object *shmem)h]jD)}(h"struct drm_gem_shmem_object *shmemh](j)}(hj? h]hstruct}(hjt@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp@ubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj@modnameN classnameNjj)}j]j)}j}jZ@sbc.drm_gem_shmem_unpinasbuh1hhjp@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp@ubj)}(hshmemh]hshmem}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjl@ubah}(h]h ]h"]h$]h&]jjuh1j=hj3@hhhjE@hMaubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/@hhhjE@hMaubah}(h]j*@ah ](jjeh"]h$]h&]j j )j huh1jhjE@hMahj,@hhubj )}(hhh]h)}(h*Unpin backing pages for a shmem GEM objecth]h*Unpin backing pages for a shmem GEM object}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMahj@hhubah}(h]h ]h"]h$]h&]uh1j hj,@hhhjE@hMaubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jAj( jAj) j* j+ uh1jhhhj$hNhNubj- )}(h**Parameters** ``struct drm_gem_shmem_object *shmem`` shmem GEM object **Description** This function removes the requirement that the backing pages are pinned in memory.h](h)}(h**Parameters**h]j7 )}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjAubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMehjAubjM )}(hhh]jR )}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](jX )}(h&``struct drm_gem_shmem_object *shmem``h]j^ )}(hj8Ah]h"struct drm_gem_shmem_object *shmem}(hj:AhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj6Aubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMbhj2Aubjt )}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hjQAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMAhMbhjNAubah}(h]h ]h"]h$]h&]uh1js hj2Aubeh}(h]h ]h"]h$]h&]uh1jQ hjMAhMbhj/Aubah}(h]h ]h"]h$]h&]uh1jL hjAubh)}(h**Description**h]j7 )}(hjsAh]h Description}(hjuAhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjqAubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMdhjAubh)}(hRThis function removes the requirement that the backing pages are pinned in memory.h]hRThis function removes the requirement that the backing pages are pinned in memory.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMchjAubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j-drm_gem_shmem_create_with_handle (C function)"c.drm_gem_shmem_create_with_handlehNtauh1jhj$hhhNhNubj)}(hhh](j)}(hxint drm_gem_shmem_create_with_handle (struct drm_file *file_priv, struct drm_device *dev, size_t size, uint32_t *handle)h]j)}(hwint drm_gem_shmem_create_with_handle(struct drm_file *file_priv, struct drm_device *dev, size_t size, uint32_t *handle)h](j)}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjAhMubj)}(h drm_gem_shmem_create_with_handleh]j)}(h drm_gem_shmem_create_with_handleh]h drm_gem_shmem_create_with_handle}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jhjAhhhjAhMubj>)}(hS(struct drm_file *file_priv, struct drm_device *dev, size_t size, uint32_t *handle)h](jD)}(hstruct drm_file *file_privh](j)}(hj? h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjBmodnameN classnameNjj)}j]j)}j}jAsb"c.drm_gem_shmem_create_with_handleasbuh1hhjAubj)}(h h]h }(hj3BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjABhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h file_privh]h file_priv}(hjNBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjAubjD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjgBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcBubj)}(h h]h }(hjtBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcBubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjBmodnameN classnameNjj)}j]j/B"c.drm_gem_shmem_create_with_handleasbuh1hhjcBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcBubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcBubj)}(hdevh]hdev}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcBubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjAubjD)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjBmodnameN classnameNjj)}j]j/B"c.drm_gem_shmem_create_with_handleasbuh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hsizeh]hsize}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjAubjD)}(huint32_t *handleh](h)}(hhh]j)}(huint32_th]huint32_t}(hj"ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj$CmodnameN classnameNjj)}j]j/B"c.drm_gem_shmem_create_with_handleasbuh1hhjCubj)}(h h]h }(hj@ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjNChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hhandleh]hhandle}(hj[ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjAubeh}(h]h ]h"]h$]h&]jjuh1j=hjAhhhjAhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjAhMubah}(h]jAah ](jjeh"]h$]h&]j j )j huh1jhjAhMhjAhhubj )}(hhh]h)}(h?Allocate an object with the given size and returns a GEM handleh]h?Allocate an object with the given size and returns a GEM handle}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjChhubah}(h]h ]h"]h$]h&]uh1j hjAhhhjAhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jCj( jCj) j* j+ uh1jhhhj$hNhNubj- )}(hX**Parameters** ``struct drm_file *file_priv`` DRM file structure to create the dumb buffer for ``struct drm_device *dev`` DRM device ``size_t size`` Size of the object to allocate ``uint32_t *handle`` Returns the GEM handle on success **Description** Allocates an shmem GEM buffer using drm_gem_shmem_create() and returns a GEM handle to it. **Return** Zero on success, or an error code otherwise.h](h)}(h**Parameters**h]j7 )}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjCubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjCubjM )}(hhh](jR )}(hP``struct drm_file *file_priv`` DRM file structure to create the dumb buffer for h](jX )}(h``struct drm_file *file_priv``h]j^ )}(hjCh]hstruct drm_file *file_priv}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjCubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjCubjt )}(hhh]h)}(h0DRM file structure to create the dumb buffer forh]h0DRM file structure to create the dumb buffer for}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjCubah}(h]h ]h"]h$]h&]uh1js hjCubeh}(h]h ]h"]h$]h&]uh1jQ hjChMhjCubjR )}(h&``struct drm_device *dev`` DRM device h](jX )}(h``struct drm_device *dev``h]j^ )}(hjCh]hstruct drm_device *dev}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjCubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjCubjt )}(hhh]h)}(h DRM deviceh]h DRM device}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1js hjCubeh}(h]h ]h"]h$]h&]uh1jQ hjDhMhjCubjR )}(h/``size_t size`` Size of the object to allocate h](jX )}(h``size_t size``h]j^ )}(hj8Dh]h size_t size}(hj:DhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj6Dubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj2Dubjt )}(hhh]h)}(hSize of the object to allocateh]hSize of the object to allocate}(hjQDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMDhMhjNDubah}(h]h ]h"]h$]h&]uh1js hj2Dubeh}(h]h ]h"]h$]h&]uh1jQ hjMDhMhjCubjR )}(h7``uint32_t *handle`` Returns the GEM handle on success h](jX )}(h``uint32_t *handle``h]j^ )}(hjqDh]huint32_t *handle}(hjsDhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjoDubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjkDubjt )}(hhh]h)}(h!Returns the GEM handle on successh]h!Returns the GEM handle on success}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1js hjkDubeh}(h]h ]h"]h$]h&]uh1jQ hjDhMhjCubeh}(h]h ]h"]h$]h&]uh1jL hjCubh)}(h**Description**h]j7 )}(hjDh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjDubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjCubh)}(hZAllocates an shmem GEM buffer using drm_gem_shmem_create() and returns a GEM handle to it.h]hZAllocates an shmem GEM buffer using drm_gem_shmem_create() and returns a GEM handle to it.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjCubh)}(h **Return**h]j7 )}(hjDh]hReturn}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjDubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjCubh)}(h,Zero on success, or an error code otherwise.h]h,Zero on success, or an error code otherwise.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drm_gem_shmem_dumb_create (C function)c.drm_gem_shmem_dumb_createhNtauh1jhj$hhhNhNubj)}(hhh](j)}(hpint drm_gem_shmem_dumb_create (struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h]j)}(hoint drm_gem_shmem_dumb_create(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h](j)}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM2ubj)}(h h]h }(hj'EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhj&EhM2ubj)}(hdrm_gem_shmem_dumb_createh]j)}(hdrm_gem_shmem_dumb_createh]hdrm_gem_shmem_dumb_create}(hj9EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Eubah}(h]h ](jjeh"]h$]h&]jjuh1jhjEhhhj&EhM2ubj>)}(hR(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h](jD)}(hstruct drm_file *fileh](j)}(hj? h]hstruct}(hjUEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQEubj)}(h h]h }(hjbEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQEubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjsEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpEubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjuEmodnameN classnameNjj)}j]j)}j}j;Esbc.drm_gem_shmem_dumb_createasbuh1hhjQEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQEubj)}(hfileh]hfile}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQEubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjMEubjD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjEmodnameN classnameNjj)}j]jEc.drm_gem_shmem_dumb_createasbuh1hhjEubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hdevh]hdev}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjMEubjD)}(h!struct drm_mode_create_dumb *argsh](j)}(hj? h]hstruct}(hj7FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Fubj)}(h h]h }(hjDFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Fubh)}(hhh]j)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hjUFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRFubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjWFmodnameN classnameNjj)}j]jEc.drm_gem_shmem_dumb_createasbuh1hhj3Fubj)}(h h]h }(hjsFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Fubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Fubj)}(hargsh]hargs}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Fubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjMEubeh}(h]h ]h"]h$]h&]jjuh1j=hjEhhhj&EhM2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhj&EhM2ubah}(h]j Eah ](jjeh"]h$]h&]j j )j huh1jhj&EhM2hj Ehhubj )}(hhh]h)}(h!Create a dumb shmem buffer objecth]h!Create a dumb shmem buffer object}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM2hjFhhubah}(h]h ]h"]h$]h&]uh1j hj Ehhhj&EhM2ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jFj( jFj) j* j+ uh1jhhhj$hNhNubj- )}(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]j7 )}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjFubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM6hjFubjM )}(hhh](jR )}(hK``struct drm_file *file`` DRM file structure to create the dumb buffer for h](jX )}(h``struct drm_file *file``h]j^ )}(hjFh]hstruct drm_file *file}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM3hjFubjt )}(hhh]h)}(h0DRM file structure to create the dumb buffer forh]h0DRM file structure to create the dumb buffer for}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM3hjGubah}(h]h ]h"]h$]h&]uh1js hjFubeh}(h]h ]h"]h$]h&]uh1jQ hjGhM3hjFubjR )}(h&``struct drm_device *dev`` DRM device h](jX )}(h``struct drm_device *dev``h]j^ )}(hj2Gh]hstruct drm_device *dev}(hj4GhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj0Gubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM4hj,Gubjt )}(hhh]h)}(h DRM deviceh]h DRM device}(hjKGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGGhM4hjHGubah}(h]h ]h"]h$]h&]uh1js hj,Gubeh}(h]h ]h"]h$]h&]uh1jQ hjGGhM4hjFubjR )}(h1``struct drm_mode_create_dumb *args`` IOCTL data h](jX )}(h%``struct drm_mode_create_dumb *args``h]j^ )}(hjkGh]h!struct drm_mode_create_dumb *args}(hjmGhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjiGubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM5hjeGubjt )}(hhh]h)}(h IOCTL datah]h IOCTL data}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM5hjGubah}(h]h ]h"]h$]h&]uh1js hjeGubeh}(h]h ]h"]h$]h&]uh1jQ hjGhM5hjFubeh}(h]h ]h"]h$]h&]uh1jL hjFubh)}(h**Description**h]j7 )}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjGubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM7hjFubh)}(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 }(hjGhhhNhNubh)}(h-:c:type:`drm_driver.dumb_create `h]j^ )}(hjGh]hdrm_driver.dumb_create}(hjGhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM6hjGubh callback.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhM6hjFubh)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM;hjFubh)}(h **Return**h]j7 )}(hjGh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjGubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM>hjFubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM?hjFubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_shmem_mmap (C function)c.drm_gem_shmem_mmaphNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjDHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Hhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubj)}(h h]h }(hjSHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@HhhhjRHhMubj)}(hdrm_gem_shmem_mmaph]j)}(hdrm_gem_shmem_mmaph]hdrm_gem_shmem_mmap}(hjeHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaHubah}(h]h ](jjeh"]h$]h&]jjuh1jhj@HhhhjRHhMubj>)}(h@(struct drm_gem_shmem_object *shmem, struct vm_area_struct *vma)h](jD)}(h"struct drm_gem_shmem_object *shmemh](j)}(hj? h]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Hubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Hubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjHmodnameN classnameNjj)}j]j)}j}jgHsbc.drm_gem_shmem_mmapasbuh1hhj}Hubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Hubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Hubj)}(hshmemh]hshmem}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjyHubjD)}(hstruct vm_area_struct *vmah](j)}(hj? h]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjImodnameN classnameNjj)}j]jHc.drm_gem_shmem_mmapasbuh1hhjHubj)}(h h]h }(hj/IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hj=IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hvmah]hvma}(hjJIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjyHubeh}(h]h ]h"]h$]h&]jjuh1j=hj@HhhhjRHhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj**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]j7 )}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjIubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjIubjM )}(hhh](jR )}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](jX )}(h&``struct drm_gem_shmem_object *shmem``h]j^ )}(hjIh]h"struct drm_gem_shmem_object *shmem}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjIubjt )}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1js hjIubeh}(h]h ]h"]h$]h&]uh1jQ hjIhMhjIubjR )}(h=``struct vm_area_struct *vma`` VMA for the area to be mapped h](jX )}(h``struct vm_area_struct *vma``h]j^ )}(hjIh]hstruct vm_area_struct *vma}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjIubjt )}(hhh]h)}(hVMA for the area to be mappedh]hVMA for the area to be mapped}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1js hjIubeh}(h]h ]h"]h$]h&]uh1jQ hjJhMhjIubeh}(h]h ]h"]h$]h&]uh1jL hjIubh)}(h**Description**h]j7 )}(hj)Jh]h Description}(hj+JhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj'Jubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjIubh)}(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.}(hj?JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjIubh)}(h **Return**h]j7 )}(hjPJh]hReturn}(hjRJhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjNJubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjIubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjfJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_gem_shmem_print_info (C function)c.drm_gem_shmem_print_infohNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhjJhMubj)}(hdrm_gem_shmem_print_infoh]j)}(hdrm_gem_shmem_print_infoh]hdrm_gem_shmem_print_info}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jhjJhhhjJhMubj>)}(hV(const struct drm_gem_shmem_object *shmem, struct drm_printer *p, unsigned int indent)h](jD)}(h(const struct drm_gem_shmem_object *shmemh](j)}(hjJh]hconst}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hj? h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hj KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj KmodnameN classnameNjj)}j]j)}j}jJsbc.drm_gem_shmem_print_infoasbuh1hhjJubj)}(h h]h }(hj+KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hj9KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hshmemh]hshmem}(hjFKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjJubjD)}(hstruct drm_printer *ph](j)}(hj? h]hstruct}(hj_KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Kubj)}(h h]h }(hjlKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Kubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj}KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzKubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjKmodnameN classnameNjj)}j]j'Kc.drm_gem_shmem_print_infoasbuh1hhj[Kubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Kubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Kubj)}(hjh]hp}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Kubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjJubjD)}(hunsigned int indenth](j)}(hunsignedh]hunsigned}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hinth]hint}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hindenth]hindent}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjJubeh}(h]h ]h"]h$]h&]jjuh1j=hjJhhhjJhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhjJhMubah}(h]jJah ](jjeh"]h$]h&]j j )j huh1jhjJhMhjJhhubj )}(hhh]h)}(h5Print :c:type:`drm_gem_shmem_object` info for debugfsh](hPrint }(hj0LhhhNhNubh)}(h:c:type:`drm_gem_shmem_object`h]j^ )}(hj:Lh]hdrm_gem_shmem_object}(hj``const struct drm_gem_shmem_object *shmem`` shmem GEM object h](jX )}(h,``const struct drm_gem_shmem_object *shmem``h]j^ )}(hjLh]h(const struct drm_gem_shmem_object *shmem}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjLubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjLubjt )}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1js hjLubeh}(h]h ]h"]h$]h&]uh1jQ hjLhMhjLubjR )}(h&``struct drm_printer *p`` DRM printer h](jX )}(h``struct drm_printer *p``h]j^ )}(hjLh]hstruct drm_printer *p}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjLubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjLubjt )}(hhh]h)}(h DRM printerh]h DRM printer}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1js hjLubeh}(h]h ]h"]h$]h&]uh1jQ hjLhMhjLubjR )}(h-``unsigned int indent`` Tab indentation levelh](jX )}(h``unsigned int indent``h]j^ )}(hj Mh]hunsigned int indent}(hj MhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj Mubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjMubjt )}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hj$MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj!Mubah}(h]h ]h"]h$]h&]uh1js hjMubeh}(h]h ]h"]h$]h&]uh1jQ hj MhMhjLubeh}(h]h ]h"]h$]h&]uh1jL hjtLubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'drm_gem_shmem_get_sg_table (C function)c.drm_gem_shmem_get_sg_tablehNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjeMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaMhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM-ubj)}(h h]h }(hjsMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaMhhhjrMhM-ubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjMmodnameN classnameNjj)}j]j)}j}drm_gem_shmem_get_sg_tablesbc.drm_gem_shmem_get_sg_tableasbuh1hhjaMhhhjrMhM-ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaMhhhjrMhM-ubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaMhhhjrMhM-ubj)}(hdrm_gem_shmem_get_sg_tableh]j)}(hjMh]hdrm_gem_shmem_get_sg_table}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jhjaMhhhjrMhM-ubj>)}(h$(struct drm_gem_shmem_object *shmem)h]jD)}(h"struct drm_gem_shmem_object *shmemh](j)}(hj? h]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjMmodnameN classnameNjj)}j]jMc.drm_gem_shmem_get_sg_tableasbuh1hhjMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hj)NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hshmemh]hshmem}(hj6NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjMubah}(h]h ]h"]h$]h&]jjuh1j=hjaMhhhjrMhM-ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]MhhhjrMhM-ubah}(h]jXMah ](jjeh"]h$]h&]j j )j huh1jhjrMhM-hjZMhhubj )}(hhh]h)}(hEProvide a scatter/gather table of pinned pages for a shmem GEM objecth]hEProvide a scatter/gather table of pinned pages for a shmem GEM object}(hj`NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM-hj]Nhhubah}(h]h ]h"]h$]h&]uh1j hjZMhhhjrMhM-ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jxNj( jxNj) j* j+ uh1jhhhj$hNhNubj- )}(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]j7 )}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM1hj|NubjM )}(hhh]jR )}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](jX )}(h&``struct drm_gem_shmem_object *shmem``h]j^ )}(hjNh]h"struct drm_gem_shmem_object *shmem}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjNubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM/hjNubjt )}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhM/hjNubah}(h]h ]h"]h$]h&]uh1js hjNubeh}(h]h ]h"]h$]h&]uh1jQ hjNhM/hjNubah}(h]h ]h"]h$]h&]uh1jL hj|Nubh)}(h**Description**h]j7 )}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM1hj|Nubh)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM0hj|Nubh)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM3hj|Nubh)}(h **Return**h]j7 )}(hjOh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjOubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM6hj|Nubh)}(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(OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chM7hj|Nubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_gem_shmem_get_pages_sgt (C function)c.drm_gem_shmem_get_pages_sgthNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjWOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSOhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMjubj)}(h h]h }(hjeOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSOhhhjdOhMjubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjvOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsOubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjxOmodnameN classnameNjj)}j]j)}j}drm_gem_shmem_get_pages_sgtsbc.drm_gem_shmem_get_pages_sgtasbuh1hhjSOhhhjdOhMjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSOhhhjdOhMjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSOhhhjdOhMjubj)}(hdrm_gem_shmem_get_pages_sgth]j)}(hjOh]hdrm_gem_shmem_get_pages_sgt}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jhjSOhhhjdOhMjubj>)}(h$(struct drm_gem_shmem_object *shmem)h]jD)}(h"struct drm_gem_shmem_object *shmemh](j)}(hj? h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(hdrm_gem_shmem_objecth]hdrm_gem_shmem_object}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjOmodnameN classnameNjj)}j]jOc.drm_gem_shmem_get_pages_sgtasbuh1hhjOubj)}(h h]h }(hj PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hshmemh]hshmem}(hj(PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubah}(h]h ]h"]h$]h&]jjuh1j=hjSOhhhjdOhMjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOOhhhjdOhMjubah}(h]jJOah ](jjeh"]h$]h&]j j )j huh1jhjdOhMjhjLOhhubj )}(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.}(hjRPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMjhjOPhhubah}(h]h ]h"]h$]h&]uh1j hjLOhhhjdOhMjubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jjPj( jjPj) j* j+ uh1jhhhj$hNhNubj- )}(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]j7 )}(hjtPh]h Parameters}(hjvPhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjrPubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMnhjnPubjM )}(hhh]jR )}(h8``struct drm_gem_shmem_object *shmem`` shmem GEM object h](jX )}(h&``struct drm_gem_shmem_object *shmem``h]j^ )}(hjPh]h"struct drm_gem_shmem_object *shmem}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjPubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMlhjPubjt )}(hhh]h)}(hshmem GEM objecth]hshmem GEM object}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMlhjPubah}(h]h ]h"]h$]h&]uh1js hjPubeh}(h]h ]h"]h$]h&]uh1jQ hjPhMlhjPubah}(h]h ]h"]h$]h&]uh1jL hjnPubh)}(h**Description**h]j7 )}(hjPh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjPubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMnhjnPubh)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMmhjnPubh)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMqhjnPubh)}(h **Return**h]j7 )}(hjQh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjQubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMuhjnPubh)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMvhjnPubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j0drm_gem_shmem_prime_import_sg_table (C function)%c.drm_gem_shmem_prime_import_sg_tablehNtauh1jhj$hhhNhNubj)}(hhh](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]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](j)}(hj? h]hstruct}(hjIQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEQhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubj)}(h h]h }(hjWQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEQhhhjVQhMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeQubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjjQmodnameN classnameNjj)}j]j)}j}#drm_gem_shmem_prime_import_sg_tablesb%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhjEQhhhjVQhMubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEQhhhjVQhMubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEQhhhjVQhMubj)}(h#drm_gem_shmem_prime_import_sg_tableh]j)}(hjQh]h#drm_gem_shmem_prime_import_sg_table}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jhjEQhhhjVQhMubj>)}(hQ(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjQmodnameN classnameNjj)}j]jQ%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hjh]h*}(hj RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hdevh]hdev}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjQubjD)}(h!struct dma_buf_attachment *attachh](j)}(hj? h]hstruct}(hj3RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Rubj)}(h h]h }(hj@RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Rubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjQRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNRubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjSRmodnameN classnameNjj)}j]jQ%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhj/Rubj)}(h h]h }(hjoRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Rubj)}(hjh]h*}(hj}RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Rubj)}(hattachh]hattach}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Rubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjQubjD)}(hstruct sg_table *sgth](j)}(hj? h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjRmodnameN classnameNjj)}j]jQ%c.drm_gem_shmem_prime_import_sg_tableasbuh1hhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hsgth]hsgt}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjQubeh}(h]h ]h"]h$]h&]jjuh1j=hjEQhhhjVQhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAQhhhjVQhMubah}(h]jQhhubj )}(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$ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj!Shhubah}(h]h ]h"]h$]h&]uh1j hj>QhhhjVQhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j` 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]j7 )}(hjFSh]h Parameters}(hjHShhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjDSubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj@SubjM )}(hhh](jR )}(h1``struct drm_device *dev`` Device to import into h](jX )}(h``struct drm_device *dev``h]j^ )}(hjeSh]hstruct drm_device *dev}(hjgShhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjcSubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj_Subjt )}(hhh]h)}(hDevice to import intoh]hDevice to import into}(hj~ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzShMhj{Subah}(h]h ]h"]h$]h&]uh1js hj_Subeh}(h]h ]h"]h$]h&]uh1jQ hjzShMhj\SubjR )}(h9``struct dma_buf_attachment *attach`` DMA-BUF attachment h](jX )}(h%``struct dma_buf_attachment *attach``h]j^ )}(hjSh]h!struct dma_buf_attachment *attach}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjSubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjSubjt )}(hhh]h)}(hDMA-BUF attachmenth]hDMA-BUF attachment}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1js hjSubeh}(h]h ]h"]h$]h&]uh1jQ hjShMhj\SubjR )}(h>``struct sg_table *sgt`` Scatter/gather table of pinned pages h](jX )}(h``struct sg_table *sgt``h]j^ )}(hjSh]hstruct sg_table *sgt}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjSubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjSubjt )}(hhh]h)}(h$Scatter/gather table of pinned pagesh]h$Scatter/gather table of pinned pages}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1js hjSubeh}(h]h ]h"]h$]h&]uh1jQ hjShMhj\Subeh}(h]h ]h"]h$]h&]uh1jL hj@Subh)}(h**Description**h]j7 )}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjTubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj@Subh)}(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(ThhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j^ )}(hj2Th]h$drm_driver.gem_prime_import_sg_table}(hj4ThhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj0Tubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj(Tubh callback.}(hj(ThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOThMhj@Subh)}(h **Return**h]j7 )}(hj\Th]hReturn}(hj^ThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjZTubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj@Subh)}(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.}(hjrThhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj@Subeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(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_maphNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjTmodnameN classnameNjj)}j]j)}j}!drm_gem_shmem_prime_import_no_mapsb#c.drm_gem_shmem_prime_import_no_mapasbuh1hhjThhhjThMubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThMubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThMubj)}(h!drm_gem_shmem_prime_import_no_maph]j)}(hjTh]h!drm_gem_shmem_prime_import_no_map}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jhjThhhjThMubj>)}(h1(struct drm_device *dev, struct dma_buf *dma_buf)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hj(UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj9UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Uubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj;UmodnameN classnameNjj)}j]jT#c.drm_gem_shmem_prime_import_no_mapasbuh1hhjUubj)}(h h]h }(hjWUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjeUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hdevh]hdev}(hjrUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjUubjD)}(hstruct dma_buf *dma_bufh](j)}(hj? h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjUmodnameN classnameNjj)}j]jT#c.drm_gem_shmem_prime_import_no_mapasbuh1hhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hdma_bufh]hdma_buf}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjUubeh}(h]h ]h"]h$]h&]jjuh1j=hjThhhjThMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjThMubah}(h]jTah ](jjeh"]h$]h&]j j )j huh1jhjThMhjThhubj )}(hhh]h)}(h*Import dmabuf without mapping its sg_tableh]h*Import dmabuf without mapping its sg_table}(hj VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj Vhhubah}(h]h ]h"]h$]h&]uh1j hjThhhjThMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j$Vj( j$Vj) j* j+ uh1jhhhj$hNhNubj- )}(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]j7 )}(hj.Vh]h Parameters}(hj0VhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj,Vubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj(VubjM )}(hhh](jR )}(h1``struct drm_device *dev`` Device to import into h](jX )}(h``struct drm_device *dev``h]j^ )}(hjMVh]hstruct drm_device *dev}(hjOVhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjKVubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjGVubjt )}(hhh]h)}(hDevice to import intoh]hDevice to import into}(hjfVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbVhMhjcVubah}(h]h ]h"]h$]h&]uh1js hjGVubeh}(h]h ]h"]h$]h&]uh1jQ hjbVhMhjDVubjR )}(h5``struct dma_buf *dma_buf`` dma-buf object to import h](jX )}(h``struct dma_buf *dma_buf``h]j^ )}(hjVh]hstruct dma_buf *dma_buf}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjVubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjVubjt )}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjVubah}(h]h ]h"]h$]h&]uh1js hjVubeh}(h]h ]h"]h$]h&]uh1jQ hjVhMhjDVubeh}(h]h ]h"]h$]h&]uh1jL hj(Vubh)}(h**Description**h]j7 )}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjVubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhj(Vubh)}(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 }(hjVhhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j^ )}(hjVh]hdrm_driver.gem_prime_import}(hjVhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjVubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:398: ./drivers/gpu/drm/drm_gem_shmem_helper.chMhjVubh implementation.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjVhMhj(Vubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubeh}(h]joah ]h"]#gem shmem helper function referenceah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h#GEM VRAM Helper Functions Referenceh]h#GEM VRAM Helper Functions Reference}(hjWhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjWhhhhhMubh)}(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(WhhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j^ )}(hj2Wh]hstruct drm_gem_vram_object}(hj4WhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj0Wubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_vram_objectuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:404: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj(Wubh (GEM VRAM), a GEM buffer object that is backed by video RAM (VRAM). It can be used for framebuffer devices with dedicated memory.}(hj(WhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOWhKhjWhhubh)}(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 }(hjZWhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j^ )}(hjdWh]hstruct drm_vram_mm}(hjfWhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjbWubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_vram_mmuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:404: ./drivers/gpu/drm/drm_gem_vram_helper.chK hjZWubh 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.}(hjZWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWhK hjWhhubh)}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:404: ./drivers/gpu/drm/drm_gem_vram_helper.chK%hjWhhubh)}(hXTo initialize the VRAM helper library call drmm_vram_helper_init(). The function allocates and initializes an instance of :c:type:`struct drm_vram_mm ` in :c:type:`struct drm_device `.vram_mm . Use :c:type:`DRM_GEM_VRAM_DRIVER` to initialize :c:type:`struct drm_driver ` and :c:type:`DEFINE_DRM_GEM_FOPS` to define :c:type:`struct file_operations `; as illustrated below.h](hzTo initialize the VRAM helper library call drmm_vram_helper_init(). The function allocates and initializes an instance of }(hjWhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j^ )}(hjWh]hstruct drm_vram_mm}(hjWhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjWubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_vram_mmuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:404: ./drivers/gpu/drm/drm_gem_vram_helper.chK/hjWubh in }(hjWhhhNhNubh)}(h(:c:type:`struct drm_device `h]j^ )}(hjWh]hstruct drm_device}(hjWhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjWubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_deviceuh1hhjWhK/hjWubh.vram_mm . Use }(hjWhhhNhNubh)}(h:c:type:`DRM_GEM_VRAM_DRIVER`h]j^ )}(hjWh]hDRM_GEM_VRAM_DRIVER}(hjWhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjWubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_GEM_VRAM_DRIVERuh1hhjWhK/hjWubh to initialize }(hjWhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j^ )}(hjXh]hstruct drm_driver}(hjXhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj Xubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhjWhK/hjWubh and }(hjWhhhNhNubh)}(h:c:type:`DEFINE_DRM_GEM_FOPS`h]j^ )}(hj2Xh]hDEFINE_DRM_GEM_FOPS}(hj4XhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj0Xubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DEFINE_DRM_GEM_FOPSuh1hhjWhK/hjWubh to define }(hjWhhhNhNubh)}(h2:c:type:`struct file_operations `h]j^ )}(hjUXh]hstruct file_operations}(hjWXhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjSXubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j file_operationsuh1hhjWhK/hjWubh; as illustrated below.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWhK/hjWhhubj )}(hXDEFINE_DRM_GEM_FOPS(fops); struct drm_driver drv = { .driver_feature = DRM_ ... , .fops = &fops, DRM_GEM_VRAM_DRIVER }; int init_drm_driver() { struct drm_device *dev; uint64_t vram_base; unsigned long vram_size; int ret; // setup device, vram base and size // ... ret = drmm_vram_helper_init(dev, vram_base, vram_size); if (ret) return ret; return 0; }h]hXDEFINE_DRM_GEM_FOPS(fops); struct drm_driver drv = { .driver_feature = DRM_ ... , .fops = &fops, DRM_GEM_VRAM_DRIVER }; int init_drm_driver() { struct drm_device *dev; uint64_t vram_base; unsigned long vram_size; int ret; // setup device, vram base and size // ... ret = drmm_vram_helper_init(dev, vram_base, vram_size); if (ret) return ret; return 0; }}hj|Xsbah}(h]h ]h"]h$]h&]jjj؋jًj! jڋ}uh1j ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:404: ./drivers/gpu/drm/drm_gem_vram_helper.chK5hjWhhubh)}(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 }(hjXhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j^ )}(hjXh]hstruct drm_vram_mm}(hjXhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjXubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_vram_mmuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:404: ./drivers/gpu/drm/drm_gem_vram_helper.chKNhjXubh, 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.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjXhKNhjWhhubh)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:404: ./drivers/gpu/drm/drm_gem_vram_helper.chKThjWhhubh)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:404: ./drivers/gpu/drm/drm_gem_vram_helper.chKXhjWhhubh)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:404: ./drivers/gpu/drm/drm_gem_vram_helper.chK^hjWhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_vram_object (C struct)c.drm_gem_vram_objecthNtauh1jhjWhhhNhNubj)}(hhh](j)}(hdrm_gem_vram_objecth]j)}(hstruct drm_gem_vram_objecth](j)}(hj? h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjYhKubj)}(hdrm_gem_vram_objecth]j)}(hjXh]hdrm_gem_vram_object}(hj$YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Yubah}(h]h ](jjeh"]h$]h&]jjuh1jhjYhhhjYhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjYhKubah}(h]jXah ](jjeh"]h$]h&]j j )j huh1jhjYhKhjXhhubj )}(hhh]h)}(hGEM object backed by VRAMh]hGEM object backed by VRAM}(hjFYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK hjCYhhubah}(h]h ]h"]h$]h&]uh1j hjXhhhjYhKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j^Yj( j^Yj) j* j+ uh1jhhhjWhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjfYubh:}(hjfYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK$hjbYubj )}(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]; };}hjYsbah}(h]h ]h"]h$]h&]jjuh1j h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK&hjbYubh)}(h **Members**h]j7 )}(hjYh]hMembers}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjYubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK.hjbYubjM )}(hhh](jR )}(h``bo`` TTM buffer object h](jX )}(h``bo``h]j^ )}(hjYh]hbo}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjYubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK"hjYubjt )}(hhh]h)}(hTTM buffer objecth]hTTM buffer object}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhK"hjYubah}(h]h ]h"]h$]h&]uh1js hjYubeh}(h]h ]h"]h$]h&]uh1jQ hjYhK"hjYubjR )}(h'``map`` Mapping information for **bo** h](jX )}(h``map``h]j^ )}(hjYh]hmap}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjYubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK#hjYubjt )}(hhh]h)}(hMapping information for **bo**h](hMapping information for }(hjZhhhNhNubj7 )}(h**bo**h]hbo}(hj ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjZubeh}(h]h ]h"]h$]h&]uh1hhjZhK#hjZubah}(h]h ]h"]h$]h&]uh1js hjYubeh}(h]h ]h"]h$]h&]uh1jQ hjZhK#hjYubjR )}(hr``vmap_use_count`` Reference count on the virtual address. The address are un-mapped when the count reaches zero. h](jX )}(h``vmap_use_count``h]j^ )}(hj3Zh]hvmap_use_count}(hj5ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj1Zubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK:hj-Zubjt )}(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.}(hjLZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK9hjIZubah}(h]h ]h"]h$]h&]uh1js hj-Zubeh}(h]h ]h"]h$]h&]uh1jQ hjHZhK:hjYubjR )}(hh``placement`` TTM placement information. Supported placements are ``TTM_PL_VRAM`` and ``TTM_PL_SYSTEM`` h](jX )}(h ``placement``h]j^ )}(hjmZh]h placement}(hjoZhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjkZubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK%hjgZubjt )}(hhh]h)}(hYTTM placement information. Supported placements are ``TTM_PL_VRAM`` and ``TTM_PL_SYSTEM``h](h4TTM placement information. Supported placements are }(hjZhhhNhNubj^ )}(h``TTM_PL_VRAM``h]h TTM_PL_VRAM}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjZubh and }(hjZhhhNhNubj^ )}(h``TTM_PL_SYSTEM``h]h TTM_PL_SYSTEM}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjZubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK$hjZubah}(h]h ]h"]h$]h&]uh1js hjgZubeh}(h]h ]h"]h$]h&]uh1jQ hjZhK%hjYubjR )}(h)``placements`` TTM placement information.h](jX )}(h``placements``h]j^ )}(hjZh]h placements}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjZubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK%hjZubjt )}(hhh]h)}(hTTM placement information.h]hTTM placement information.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK&hjZubah}(h]h ]h"]h$]h&]uh1js hjZubeh}(h]h ]h"]h$]h&]uh1jQ hjZhK%hjYubeh}(h]h ]h"]h$]h&]uh1jL hjbYubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubh)}(h**Description**h]j7 )}(hj [h]h Description}(hj [hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj[ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK)hjWhhubh)}(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.}(hj [hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK&hjWhhubh)}(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().}(hj/[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK+hjWhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_vram_of_bo (C function)c.drm_gem_vram_of_bohNtauh1jhjWhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjW[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS[hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKEubj)}(h h]h }(hje[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS[hhhjd[hKEubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjv[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs[ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjx[modnameN classnameNjj)}j]j)}j}drm_gem_vram_of_bosbc.drm_gem_vram_of_boasbuh1hhjS[hhhjd[hKEubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS[hhhjd[hKEubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS[hhhjd[hKEubj)}(hdrm_gem_vram_of_boh]j)}(hj[h]hdrm_gem_vram_of_bo}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjS[hhhjd[hKEubj>)}(h(struct ttm_buffer_object *bo)h]jD)}(hstruct ttm_buffer_object *boh](j)}(hj? h]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubh)}(hhh]j)}(httm_buffer_objecth]httm_buffer_object}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj[modnameN classnameNjj)}j]j[c.drm_gem_vram_of_boasbuh1hhj[ubj)}(h h]h }(hj \hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hboh]hbo}(hj(\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj[ubah}(h]h ]h"]h$]h&]jjuh1j=hjS[hhhjd[hKEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjO[hhhjd[hKEubah}(h]jJ[ah ](jjeh"]h$]h&]j j )j huh1jhjd[hKEhjL[hhubj )}(hhh]h)}(hfReturns the container of type :c:type:`struct drm_gem_vram_object ` for field bo.h](hReturns the container of type }(hjR\hhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j^ )}(hj\\h]hstruct drm_gem_vram_object}(hj^\hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjZ\ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j[c.drm_gem_vram_of_boasbj drm_gem_vram_objectuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjR\ubh for field bo.}(hjR\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKEhjO\hhubah}(h]h ]h"]h$]h&]uh1j hjL[hhhjd[hKEubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j\j( j\j) j* j+ uh1jhhhjWhNhNubj- )}(hu**Parameters** ``struct ttm_buffer_object *bo`` the VRAM buffer object **Return** The containing GEM VRAM objecth](h)}(h**Parameters**h]j7 )}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj\ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKIhj\ubjM )}(hhh]jR )}(h8``struct ttm_buffer_object *bo`` the VRAM buffer object h](jX )}(h ``struct ttm_buffer_object *bo``h]j^ )}(hj\h]hstruct ttm_buffer_object *bo}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj\ubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKGhj\ubjt )}(hhh]h)}(hthe VRAM buffer objecth]hthe VRAM buffer object}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKGhj\ubah}(h]h ]h"]h$]h&]uh1js hj\ubeh}(h]h ]h"]h$]h&]uh1jQ hj\hKGhj\ubah}(h]h ]h"]h$]h&]uh1jL hj\ubh)}(h **Return**h]j7 )}(hj\h]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj\ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKIhj\ubh)}(hThe containing GEM VRAM objecth]hThe containing GEM VRAM object}(hj ]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKHhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gem_vram_of_gem (C function)c.drm_gem_vram_of_gemhNtauh1jhjWhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hj<]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8]hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKQubj)}(h h]h }(hjJ]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8]hhhjI]hKQubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hj[]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX]ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj]]modnameN classnameNjj)}j]j)}j}drm_gem_vram_of_gemsbc.drm_gem_vram_of_gemasbuh1hhj8]hhhjI]hKQubj)}(h h]h }(hj|]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8]hhhjI]hKQubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8]hhhjI]hKQubj)}(hdrm_gem_vram_of_gemh]j)}(hjy]h]hdrm_gem_vram_of_gem}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj8]hhhjI]hKQubj>)}(h(struct drm_gem_object *gem)h]jD)}(hstruct drm_gem_object *gemh](j)}(hj? h]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj]modnameN classnameNjj)}j]jw]c.drm_gem_vram_of_gemasbuh1hhj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hgemh]hgem}(hj ^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj]ubah}(h]h ]h"]h$]h&]jjuh1j=hj8]hhhjI]hKQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4]hhhjI]hKQubah}(h]j/]ah ](jjeh"]h$]h&]j j )j huh1jhjI]hKQhj1]hhubj )}(hhh]h)}(hgReturns the container of type :c:type:`struct drm_gem_vram_object ` for field gem.h](hReturns the container of type }(hj7^hhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j^ )}(hjA^h]hstruct drm_gem_vram_object}(hjC^hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj?^ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jw]c.drm_gem_vram_of_gemasbj drm_gem_vram_objectuh1hhj~\hKhj7^ubh for field gem.}(hj7^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKQhj4^hhubah}(h]h ]h"]h$]h&]uh1j hj1]hhhjI]hKQubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jw^j( jw^j) j* j+ uh1jhhhjWhNhNubj- )}(hk**Parameters** ``struct drm_gem_object *gem`` the GEM object **Return** The containing GEM VRAM objecth](h)}(h**Parameters**h]j7 )}(hj^h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj^ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKUhj{^ubjM )}(hhh]jR )}(h.``struct drm_gem_object *gem`` the GEM object h](jX )}(h``struct drm_gem_object *gem``h]j^ )}(hj^h]hstruct drm_gem_object *gem}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj^ubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKShj^ubjt )}(hhh]h)}(hthe GEM objecth]hthe GEM object}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hKShj^ubah}(h]h ]h"]h$]h&]uh1js hj^ubeh}(h]h ]h"]h$]h&]uh1jQ hj^hKShj^ubah}(h]h ]h"]h$]h&]uh1jL hj{^ubh)}(h **Return**h]j7 )}(hj^h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj^ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKUhj{^ubh)}(hThe containing GEM VRAM objecth]hThe containing GEM VRAM object}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKThj{^ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)DRM_GEM_VRAM_PLANE_HELPER_FUNCS (C macro)!c.DRM_GEM_VRAM_PLANE_HELPER_FUNCShNtauh1jhjWhhhNhNubj)}(hhh](j)}(hDRM_GEM_VRAM_PLANE_HELPER_FUNCSh]j)}(hDRM_GEM_VRAM_PLANE_HELPER_FUNCSh]j)}(hDRM_GEM_VRAM_PLANE_HELPER_FUNCSh]j)}(hj_h]hDRM_GEM_VRAM_PLANE_HELPER_FUNCS}(hj$_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj _ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj_hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhK~ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhj7_hK~ubah}(h]j_ah ](jjeh"]h$]h&]j j )j huh1jhj7_hK~hj_hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj_hhhj7_hK~ubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jP_j( jP_j) j* j+ uh1jhhhjWhNhNubh)}(h#``DRM_GEM_VRAM_PLANE_HELPER_FUNCS``h]j^ )}(hjV_h]hDRM_GEM_VRAM_PLANE_HELPER_FUNCS}(hjX_hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjT_ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjWhhubj )}(h Initializes struct drm_plane_helper_funcs for VRAM handling **Description** Drivers may use GEM BOs as VRAM helpers for the framebuffer memory. This macro initializes struct drm_plane_helper_funcs to use the respective helper functions. h](j )}(h` **Description** Drivers that use VRAM MM and GEM VRAM can use this macro to initialize :c:type:`struct drm_driver ` with default functions. h](j )}(hHdefault callback functions for :c:type:`struct drm_driver ` h]h)}(hGdefault callback functions for :c:type:`struct drm_driver `h](hdefault callback functions for }(hj#`hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j^ )}(hj-`h]hstruct drm_driver}(hj/`hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj+`ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhj#`ubeh}(h]h ]h"]h$]h&]uh1hhjJ`hKhj`ubah}(h]h ]h"]h$]h&]uh1jhjJ`hKhj`ubh)}(h**Description**h]j7 )}(hjY`h]h Description}(hj[`hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjW`ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhj`ubh)}(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 }(hjo`hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j^ )}(hjy`h]hstruct drm_driver}(hj{`hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjw`ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjo`ubh with default functions.}(hjo`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`hKhj`ubeh}(h]h ]h"]h$]h&]uh1jhjJ`hKhjWhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_vram_mm (C struct) c.drm_vram_mmhNtauh1jhjWhhhNhNubj)}(hhh](j)}(h drm_vram_mmh]j)}(hstruct drm_vram_mmh](j)}(hj? h]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hKubj)}(h drm_vram_mmh]j)}(hj`h]h drm_vram_mm}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj`hhhj`hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhj`hKubah}(h]j`ah ](jjeh"]h$]h&]j j )j huh1jhj`hKhj`hhubj )}(hhh]h)}(hAn instance of VRAM MMh]hAn instance of VRAM MM}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhj`hhubah}(h]h ]h"]h$]h&]uh1j hj`hhhj`hKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jaj( jaj) j* j+ uh1jhhhjWhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hj&ahhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj"aubh:}(hj"ahhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjaubj )}(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; };}hj?asbah}(h]h ]h"]h$]h&]jjuh1j h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjaubh)}(h **Members**h]j7 )}(hjPah]hMembers}(hjRahhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjNaubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjaubjM )}(hhh](jR )}(h7``vram_base`` Base address of the managed video memory h](jX )}(h ``vram_base``h]j^ )}(hjoah]h vram_base}(hjqahhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjmaubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjiaubjt )}(hhh]h)}(h(Base address of the managed video memoryh]h(Base address of the managed video memory}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKhjaubah}(h]h ]h"]h$]h&]uh1js hjiaubeh}(h]h ]h"]h$]h&]uh1jQ hjahKhjfaubjR )}(h8``vram_size`` Size of the managed video memory in bytes h](jX )}(h ``vram_size``h]j^ )}(hjah]h vram_size}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjaubjt )}(hhh]h)}(h)Size of the managed video memory in bytesh]h)Size of the managed video memory in bytes}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKhjaubah}(h]h ]h"]h$]h&]uh1js hjaubeh}(h]h ]h"]h$]h&]uh1jQ hjahKhjfaubjR )}(h``bdev`` The TTM BO device.h](jX )}(h``bdev``h]j^ )}(hjah]hbdev}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjaubjt )}(hhh]h)}(hThe TTM BO device.h]hThe TTM BO device.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjaubah}(h]h ]h"]h$]h&]uh1js hjaubeh}(h]h ]h"]h$]h&]uh1jQ hjahKhjfaubeh}(h]h ]h"]h$]h&]uh1jL hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubh)}(h**Description**h]j7 )}(hj$bh]h Description}(hj&bhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj"bubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjWhhubh)}(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 }(hj:bhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j^ )}(hjDbh]hstruct drm_vram_mm}(hjFbhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjBbubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_vram_mmuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhj:bubh.vram_base and }(hj:bhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j^ )}(hjhbh]hstruct drm_vram_mm}(hjjbhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjfbubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_vram_mmuh1hhjabhKhj:bubhZ.vrm_size are managed by VRAM MM, but are available for public read access. Use the field }(hj:bhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j^ )}(hjbh]hstruct drm_vram_mm}(hjbhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjbubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_vram_mmuh1hhjabhKhj:bubh".bdev to access the TTM BO device.}(hj:bhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjabhKhjWhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_vram_mm_of_bdev (C function)c.drm_vram_mm_of_bdevhNtauh1jhjWhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhKubh)}(hhh]j)}(h drm_vram_mmh]h drm_vram_mm}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjbmodnameN classnameNjj)}j]j)}j}drm_vram_mm_of_bdevsbc.drm_vram_mm_of_bdevasbuh1hhjbhhhjbhKubj)}(h h]h }(hj chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhKubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhKubj)}(hdrm_vram_mm_of_bdevh]j)}(hjch]hdrm_vram_mm_of_bdev}(hj*chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&cubah}(h]h ](jjeh"]h$]h&]jjuh1jhjbhhhjbhKubj>)}(h(struct ttm_device *bdev)h]jD)}(hstruct ttm_device *bdevh](j)}(hj? h]hstruct}(hjEchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAcubj)}(h h]h }(hjRchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAcubh)}(hhh]j)}(h ttm_deviceh]h ttm_device}(hjcchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`cubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjecmodnameN classnameNjj)}j]jcc.drm_vram_mm_of_bdevasbuh1hhjAcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAcubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAcubj)}(hbdevh]hbdev}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAcubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj=cubah}(h]h ]h"]h$]h&]jjuh1j=hjbhhhjbhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjbhKubah}(h]jbah ](jjeh"]h$]h&]j j )j huh1jhjbhKhjbhhubj )}(hhh]h)}(hVReturns the container of type :c:type:`struct ttm_device ` for field bdev.h](hReturns the container of type }(hjchhhNhNubh)}(h(:c:type:`struct ttm_device `h]j^ )}(hjch]hstruct ttm_device}(hjchhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjcubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jcc.drm_vram_mm_of_bdevasbj ttm_deviceuh1hhj~\hKhjcubh for field bdev.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjchhubah}(h]h ]h"]h$]h&]uh1j hjbhhhjbhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jdj( jdj) j* j+ uh1jhhhjWhNhNubj- )}(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]j7 )}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjdubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhj dubjM )}(hhh]jR )}(h.``struct ttm_device *bdev`` the TTM BO device h](jX )}(h``struct ttm_device *bdev``h]j^ )}(hj/dh]hstruct ttm_device *bdev}(hj1dhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj-dubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhj)dubjt )}(hhh]h)}(hthe TTM BO deviceh]hthe TTM BO device}(hjHdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDdhKhjEdubah}(h]h ]h"]h$]h&]uh1js hj)dubeh}(h]h ]h"]h$]h&]uh1jQ hjDdhKhj&dubah}(h]h ]h"]h$]h&]uh1jL hj dubh)}(h **Return**h]j7 )}(hjjdh]hReturn}(hjldhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjhdubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhj dubh)}(hEThe containing instance of :c:type:`struct drm_vram_mm `h](hThe containing instance of }(hjdhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j^ )}(hjdh]hstruct drm_vram_mm}(hjdhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjdubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_vram_mmuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:407: ./include/drm/drm_gem_vram_helper.hhKhjdubeh}(h]h ]h"]h$]h&]uh1hhjdhKhj dubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gem_vram_create (C function)c.drm_gem_vram_createhNtauh1jhjWhhhNhNubj)u}(hhh](j)}(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](j)}(hj? h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhKubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjdmodnameN classnameNjj)}j]j)}j}drm_gem_vram_createsbc.drm_gem_vram_createasbuh1hhjdhhhjdhKubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhKubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhKubj)}(hdrm_gem_vram_createh]j)}(hj eh]hdrm_gem_vram_create}(hj-ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)eubah}(h]h ](jjeh"]h$]h&]jjuh1jhjdhhhjdhKubj>)}(h=(struct drm_device *dev, size_t size, unsigned long pg_align)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjHehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDeubj)}(h h]h }(hjUehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDeubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjfehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjceubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjhemodnameN classnameNjj)}j]j ec.drm_gem_vram_createasbuh1hhjDeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDeubj)}(hdevh]hdev}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDeubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj@eubjD)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjemodnameN classnameNjj)}j]j ec.drm_gem_vram_createasbuh1hhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hsizeh]hsize}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj@eubjD)}(hunsigned long pg_alignh](j)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hlongh]hlong}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hj*fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hpg_alignh]hpg_align}(hj8fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj@eubeh}(h]h ]h"]h$]h&]jjuh1j=hjdhhhjdhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjdhKubah}(h]jdah ](jjeh"]h$]h&]j j )j huh1jhjdhKhjdhhubj )}(hhh]h)}(h Creates a VRAM-backed GEM objecth]h Creates a VRAM-backed GEM object}(hjbfhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj_fhhubah}(h]h ]h"]h$]h&]uh1j hjdhhhjdhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jzfj( jzfj) j* j+ uh1jhhhjWhNhNubj- )}(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]j7 )}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjfubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj~fubjM )}(hhh](jR )}(h*``struct drm_device *dev`` the DRM device h](jX )}(h``struct drm_device *dev``h]j^ )}(hjfh]hstruct drm_device *dev}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjfubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjfubjt )}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjfubah}(h]h ]h"]h$]h&]uh1js hjfubeh}(h]h ]h"]h$]h&]uh1jQ hjfhKhjfubjR )}(h)``size_t size`` the buffer size in bytes h](jX )}(h``size_t size``h]j^ )}(hjfh]h size_t size}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjfubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjfubjt )}(hhh]h)}(hthe buffer size in bytesh]hthe buffer size in bytes}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjfubah}(h]h ]h"]h$]h&]uh1js hjfubeh}(h]h ]h"]h$]h&]uh1jQ hjfhKhjfubjR )}(hP``unsigned long pg_align`` the buffer's alignment in multiples of the page size h](jX )}(h``unsigned long pg_align``h]j^ )}(hjgh]hunsigned long pg_align}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjgubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjgubjt )}(hhh]h)}(h4the buffer's alignment in multiples of the page sizeh]h6the buffer’s alignment in multiples of the page size}(hj.ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ghKhj+gubah}(h]h ]h"]h$]h&]uh1js hjgubeh}(h]h ]h"]h$]h&]uh1jQ hj*ghKhjfubeh}(h]h ]h"]h$]h&]uh1jL hj~fubh)}(h**Description**h]j7 )}(hjPgh]h Description}(hjRghhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjNgubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj~fubh)}(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.}(hjfghhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj~fubh)}(h **Return**h]j7 )}(hjwgh]hReturn}(hjyghhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjugubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj~fubh)}(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 }(hjghhhNhNubh)}(h::c:type:`struct drm_gem_vram_object `h]j^ )}(hjgh]hstruct drm_gem_vram_object}(hjghhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjgubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_vram_objectuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjgubh: on success, or an ERR_PTR()-encoded error code otherwise.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjghKhj~fubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_vram_put (C function)c.drm_gem_vram_puthNtauh1jhjWhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjghKubj)}(hdrm_gem_vram_puth]j)}(hdrm_gem_vram_puth]hdrm_gem_vram_put}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jhjghhhjghKubj>)}(h!(struct drm_gem_vram_object *gbo)h]jD)}(hstruct drm_gem_vram_object *gboh](j)}(hj? h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hj)hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hj:hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj)}(h!(struct drm_gem_vram_object *gbo)h]jD)}(hstruct drm_gem_vram_object *gboh](j)}(hj? h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjimodnameN classnameNjj)}j]jic.drm_gem_vram_offsetasbuh1hhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hgboh]hgbo}(hj jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjiubah}(h]h ]h"]h$]h&]jjuh1j=hj\ihhhjihKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXihhhjihKubah}(h]jSiah ](jjeh"]h$]h&]j j )j huh1jhjihKhjUihhubj )}(hhh]h)}(h2Returns a GEM VRAM object's offset in video memoryh]h4Returns a GEM VRAM object’s offset in video memory}(hj3jhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKhj0jhhubah}(h]h ]h"]h$]h&]uh1j hjUihhhjihKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jKjj( jKjj) j* j+ uh1jhhhjWhNhNubj- )}(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]j7 )}(hjUjh]h Parameters}(hjWjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjSjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjOjubjM )}(hhh]jR )}(h8``struct drm_gem_vram_object *gbo`` the GEM VRAM object h](jX )}(h#``struct drm_gem_vram_object *gbo``h]j^ )}(hjtjh]hstruct drm_gem_vram_object *gbo}(hjvjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjrjubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chKhjnjubjt )}(hhh]h)}(hthe GEM VRAM objecth]hthe GEM VRAM object}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKhjjubah}(h]h ]h"]h$]h&]uh1js hjnjubeh}(h]h ]h"]h$]h&]uh1jQ hjjhKhjkjubah}(h]h ]h"]h$]h&]uh1jL hjOjubh)}(h**Description**h]j7 )}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjOjubh)}(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 }(hjjhhhNhNubj^ )}(h``TTM_PL_VRAM``h]h TTM_PL_VRAM}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjjubh.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjOjubh)}(h **Return**h]j7 )}(hjjh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjOjubh)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjOjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_vram_vmap (C function)c.drm_gem_vram_vmaphNtauh1jhjWhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj-khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)khhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMKubj)}(h h]h }(hj)}(h8(struct drm_gem_vram_object *gbo, struct iosys_map *map)h](jD)}(hstruct drm_gem_vram_object *gboh](j)}(hj? h]hstruct}(hjjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfkubj)}(h h]h }(hjwkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfkubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjkmodnameN classnameNjj)}j]j)}j}jPksbc.drm_gem_vram_vmapasbuh1hhjfkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfkubj)}(hgboh]hgbo}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfkubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjbkubjD)}(hstruct iosys_map *maph](j)}(hj? h]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjkmodnameN classnameNjj)}j]jkc.drm_gem_vram_vmapasbuh1hhjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hj&lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hmaph]hmap}(hj3lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjbkubeh}(h]h ]h"]h$]h&]jjuh1j=hj)khhhj;khMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%khhhj;khMKubah}(h]j kah ](jjeh"]h$]h&]j j )j huh1jhj;khMKhj"khhubj )}(hhh]h)}(h9Pins and maps a GEM VRAM object into kernel address spaceh]h9Pins and maps a GEM VRAM object into kernel address space}(hj]lhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMKhjZlhhubah}(h]h ]h"]h$]h&]uh1j hj"khhhj;khMKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' julj( julj) j* j+ uh1jhhhjWhNhNubj- )}(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]j7 )}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj}lubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMOhjylubjM )}(hhh](jR )}(h?``struct drm_gem_vram_object *gbo`` The GEM VRAM object to map h](jX )}(h#``struct drm_gem_vram_object *gbo``h]j^ )}(hjlh]hstruct drm_gem_vram_object *gbo}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMMhjlubjt )}(hhh]h)}(hThe GEM VRAM object to maph]hThe GEM VRAM object to map}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMMhjlubah}(h]h ]h"]h$]h&]uh1js hjlubeh}(h]h ]h"]h$]h&]uh1jQ hjlhMMhjlubjR )}(he``struct iosys_map *map`` Returns the kernel virtual address of the VRAM GEM object's backing store. h](jX )}(h``struct iosys_map *map``h]j^ )}(hjlh]hstruct iosys_map *map}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMOhjlubjt )}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMNhjlubah}(h]h ]h"]h$]h&]uh1js hjlubeh}(h]h ]h"]h$]h&]uh1jQ hjlhMOhjlubeh}(h]h ]h"]h$]h&]uh1jL hjylubh)}(h**Description**h]j7 )}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjmubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMQhjylubh)}(hX@The vmap function pins a GEM VRAM object to its current location, either system or video memory, and maps its buffer into kernel address space. As pinned object cannot be relocated, you should avoid pinning objects permanently. Call drm_gem_vram_vunmap() with the returned address to unmap and unpin the GEM VRAM object.h]hX@The vmap function pins a GEM VRAM object to its current location, either system or video memory, and maps its buffer into kernel address space. As pinned object cannot be relocated, you should avoid pinning objects permanently. Call drm_gem_vram_vunmap() with the returned address to unmap and unpin the GEM VRAM object.}(hj)mhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMPhjylubh)}(h **Return**h]j7 )}(hj:mh]hReturn}(hj)}(h8(struct drm_gem_vram_object *gbo, struct iosys_map *map)h](jD)}(hstruct drm_gem_vram_object *gboh](j)}(hj? h]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hhh]j)}(hdrm_gem_vram_objecth]hdrm_gem_vram_object}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmmodnameN classnameNjj)}j]j)}j}jmsbc.drm_gem_vram_vunmapasbuh1hhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hgboh]hgbo}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjmubjD)}(hstruct iosys_map *maph](j)}(hj? h]hstruct}(hj.nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*nubj)}(h h]h }(hj;nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*nubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjLnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjInubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjNnmodnameN classnameNjj)}j]jmc.drm_gem_vram_vunmapasbuh1hhj*nubj)}(h h]h }(hjjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*nubj)}(hjh]h*}(hjxnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*nubj)}(hmaph]hmap}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*nubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjmubeh}(h]h ]h"]h$]h&]jjuh1j=hj{mhhhjmhMwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwmhhhjmhMwubah}(h]jrmah ](jjeh"]h$]h&]j j )j huh1jhjmhMwhjtmhhubj )}(hhh]h)}(h#Unmaps and unpins a GEM VRAM objecth]h#Unmaps and unpins a GEM VRAM object}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMwhjnhhubah}(h]h ]h"]h$]h&]uh1j hjtmhhhjmhMwubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jnj( jnj) j* j+ uh1jhhhjWhNhNubj- )}(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]j7 )}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjnubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chM{hjnubjM )}(hhh](jR )}(hA``struct drm_gem_vram_object *gbo`` The GEM VRAM object to unmap h](jX )}(h#``struct drm_gem_vram_object *gbo``h]j^ )}(hjnh]hstruct drm_gem_vram_object *gbo}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjnubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMxhjnubjt )}(hhh]h)}(hThe GEM VRAM object to unmaph]hThe GEM VRAM object to unmap}(hj ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMxhjoubah}(h]h ]h"]h$]h&]uh1js hjnubeh}(h]h ]h"]h$]h&]uh1jQ hjohMxhjnubjR )}(hV``struct iosys_map *map`` Kernel virtual address where the VRAM GEM object was mapped h](jX )}(h``struct iosys_map *map``h]j^ )}(hj)oh]hstruct iosys_map *map}(hj+ohhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj'oubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMyhj#oubjt )}(hhh]h)}(h;Kernel virtual address where the VRAM GEM object was mappedh]h;Kernel virtual address where the VRAM GEM object was mapped}(hjBohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>ohMyhj?oubah}(h]h ]h"]h$]h&]uh1js hj#oubeh}(h]h ]h"]h$]h&]uh1jQ hj>ohMyhjnubeh}(h]h ]h"]h$]h&]uh1jL hjnubh)}(h**Description**h]j7 )}(hjdoh]h Description}(hjfohhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjboubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chM{hjnubh)}(hA call to drm_gem_vram_vunmap() unmaps and unpins a GEM VRAM buffer. See the documentation for drm_gem_vram_vmap() for more information.h]hA call to drm_gem_vram_vunmap() unmaps and unpins a GEM VRAM buffer. See the documentation for drm_gem_vram_vmap() for more information.}(hjzohhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMzhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_gem_vram_fill_create_dumb (C function)c.drm_gem_vram_fill_create_dumbhNtauh1jhjWhhhNhNubj)}(hhh](j)}(hint drm_gem_vram_fill_create_dumb (struct drm_file *file, struct drm_device *dev, unsigned long pg_align, unsigned long pitch_align, struct drm_mode_create_dumb *args)h]j)}(hint drm_gem_vram_fill_create_dumb(struct drm_file *file, struct drm_device *dev, unsigned long pg_align, unsigned long pitch_align, struct drm_mode_create_dumb *args)h](j)}(hinth]hint}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjohMubj)}(hdrm_gem_vram_fill_create_dumbh]j)}(hdrm_gem_vram_fill_create_dumbh]hdrm_gem_vram_fill_create_dumb}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jhjohhhjohMubj>)}(h(struct drm_file *file, struct drm_device *dev, unsigned long pg_align, unsigned long pitch_align, struct drm_mode_create_dumb *args)h](jD)}(hstruct drm_file *fileh](j)}(hj? h]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjpmodnameN classnameNjj)}j]j)}j}josbc.drm_gem_vram_fill_create_dumbasbuh1hhjoubj)}(h h]h }(hj$phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hj2phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hfileh]hfile}(hj?phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjoubjD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjXphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTpubj)}(h h]h }(hjephhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTpubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjvphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjspubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjxpmodnameN classnameNjj)}j]j pc.drm_gem_vram_fill_create_dumbasbuh1hhjTpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTpubj)}(hdevh]hdev}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTpubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjoubjD)}(hunsigned long pg_alignh](j)}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hlongh]hlong}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hpg_alignh]hpg_align}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjoubjD)}(hunsigned long pitch_alignh](j)}(hunsignedh]hunsigned}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hj'qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hlongh]hlong}(hj5qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjCqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h pitch_alignh]h pitch_align}(hjQqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjoubjD)}(h!struct drm_mode_create_dumb *argsh](j)}(hj? h]hstruct}(hjjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfqubj)}(h h]h }(hjwqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfqubh)}(hhh]j)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjqmodnameN classnameNjj)}j]j pc.drm_gem_vram_fill_create_dumbasbuh1hhjfqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfqubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfqubj)}(hargsh]hargs}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfqubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjoubeh}(h]h ]h"]h$]h&]jjuh1j=hjohhhjohMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohMubah}(h]joah ](jjeh"]h$]h&]j j )j huh1jhjohMhjohhubj )}(hhh]h)}(hLHelper for implementing :c:type:`struct drm_driver `.dumb_createh](hHelper for implementing }(hjqhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j^ )}(hjqh]hstruct drm_driver}(hjqhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjqubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j pc.drm_gem_vram_fill_create_dumbasbj drm_driveruh1hhjdhKhjqubh .dumb_create}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjqhhubah}(h]h ]h"]h$]h&]uh1j hjohhhjohMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j+rj( j+rj) j* j+ uh1jhhhjWhNhNubj- )}(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]j7 )}(hj5rh]h Parameters}(hj7rhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj3rubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj/rubjM )}(hhh](jR )}(h'``struct drm_file *file`` the DRM file h](jX )}(h``struct drm_file *file``h]j^ )}(hjTrh]hstruct drm_file *file}(hjVrhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjRrubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjNrubjt )}(hhh]h)}(h the DRM fileh]h the DRM file}(hjmrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjirhMhjjrubah}(h]h ]h"]h$]h&]uh1js hjNrubeh}(h]h ]h"]h$]h&]uh1jQ hjirhMhjKrubjR )}(h*``struct drm_device *dev`` the DRM device h](jX )}(h``struct drm_device *dev``h]j^ )}(hjrh]hstruct drm_device *dev}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjrubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjrubjt )}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1js hjrubeh}(h]h ]h"]h$]h&]uh1jQ hjrhMhjKrubjR )}(hP``unsigned long pg_align`` the buffer's alignment in multiples of the page size h](jX )}(h``unsigned long pg_align``h]j^ )}(hjrh]hunsigned long pg_align}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjrubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjrubjt )}(hhh]h)}(h4the buffer's alignment in multiples of the page sizeh]h6the buffer’s alignment in multiples of the page size}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1js hjrubeh}(h]h ]h"]h$]h&]uh1jQ hjrhMhjKrubjR )}(hF``unsigned long pitch_align`` the scanline's alignment in powers of 2 h](jX )}(h``unsigned long pitch_align``h]j^ )}(hjrh]hunsigned long pitch_align}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjrubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjrubjt )}(hhh]h)}(h'the scanline's alignment in powers of 2h]h)the scanline’s alignment in powers of 2}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1js hjrubeh}(h]h ]h"]h$]h&]uh1jQ hjshMhjKrubjR )}(hx``struct drm_mode_create_dumb *args`` the arguments as provided to :c:type:`struct drm_driver `.dumb_create h](jX )}(h%``struct drm_mode_create_dumb *args``h]j^ )}(hj8sh]h!struct drm_mode_create_dumb *args}(hj:shhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj6subah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj2subjt )}(hhh]h)}(hQthe arguments as provided to :c:type:`struct drm_driver `.dumb_createh](hthe arguments as provided to }(hjQshhhNhNubh)}(h(:c:type:`struct drm_driver `h]j^ )}(hj[sh]hstruct drm_driver}(hj]shhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjYsubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjQsubh .dumb_create}(hjQshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxshMhjNsubah}(h]h ]h"]h$]h&]uh1js hj2subeh}(h]h ]h"]h$]h&]uh1jQ hjMshMhjKrubeh}(h]h ]h"]h$]h&]uh1jL hj/rubh)}(h**Description**h]j7 )}(hjsh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjsubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj/rubh)}(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 }(hjshhhNhNubh)}(h<:c:type:`struct drm_mode_create_dumb `h]j^ )}(hjsh]hstruct drm_mode_create_dumb}(hjshhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mode_create_dumbuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjsubh, which is used by }(hjshhhNhNubh)}(h(:c:type:`struct drm_driver `h]j^ )}(hjsh]hstruct drm_driver}(hjshhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhjshMhjsubh.dumb_create. Implementations of this interface should forwards their arguments to this helper, plus the driver-specific parameters.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjshMhj/rubh)}(h **Return**h]j7 )}(hjth]hReturn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjtubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj/rubh)}(h10 on success, or a negative error code otherwise.h]h10 on success, or a negative error code otherwise.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj/rubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j,drm_gem_vram_driver_dumb_create (C function)!c.drm_gem_vram_driver_dumb_createhNtauh1jhjWhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjIthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEthhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMubj)}(h h]h }(hjXthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEthhhjWthMubj)}(hdrm_gem_vram_driver_dumb_createh]j)}(hdrm_gem_vram_driver_dumb_createh]hdrm_gem_vram_driver_dumb_create}(hjjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjftubah}(h]h ](jjeh"]h$]h&]jjuh1jhjEthhhjWthMubj>)}(hR(struct drm_file *file, struct drm_device *dev, struct drm_mode_create_dumb *args)h](jD)}(hstruct drm_file *fileh](j)}(hj? h]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjtmodnameN classnameNjj)}j]j)}j}jltsb!c.drm_gem_vram_driver_dumb_createasbuh1hhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hfileh]hfile}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj~tubjD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjumodnameN classnameNjj)}j]jt!c.drm_gem_vram_driver_dumb_createasbuh1hhjtubj)}(h h]h }(hj4uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjBuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hdevh]hdev}(hjOuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj~tubjD)}(h!struct drm_mode_create_dumb *argsh](j)}(hj? h]hstruct}(hjhuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjduubj)}(h h]h }(hjuuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjduubh)}(hhh]j)}(hdrm_mode_create_dumbh]hdrm_mode_create_dumb}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjumodnameN classnameNjj)}j]jt!c.drm_gem_vram_driver_dumb_createasbuh1hhjduubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjduubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjduubj)}(hargsh]hargs}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjduubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj~tubeh}(h]h ]h"]h$]h&]jjuh1j=hjEthhhjWthMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAthhhjWthMubah}(h]jthhubj )}(hhh]h)}(h?Implements :c:type:`struct drm_driver `.dumb_createh](h Implements }(hjuhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j^ )}(hjuh]hstruct drm_driver}(hjuhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjuubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jt!c.drm_gem_vram_driver_dumb_createasbj drm_driveruh1hhjdhKhjuubh .dumb_create}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjuhhubah}(h]h ]h"]h$]h&]uh1j hj>thhhjWthMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j)vj( j)vj) j* j+ uh1jhhhjWhNhNubj- )}(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]j7 )}(hj3vh]h Parameters}(hj5vhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj1vubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj-vubjM )}(hhh](jR )}(h'``struct drm_file *file`` the DRM file h](jX )}(h``struct drm_file *file``h]j^ )}(hjRvh]hstruct drm_file *file}(hjTvhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjPvubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjLvubjt )}(hhh]h)}(h the DRM fileh]h the DRM file}(hjkvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgvhMhjhvubah}(h]h ]h"]h$]h&]uh1js hjLvubeh}(h]h ]h"]h$]h&]uh1jQ hjgvhMhjIvubjR )}(h*``struct drm_device *dev`` the DRM device h](jX )}(h``struct drm_device *dev``h]j^ )}(hjvh]hstruct drm_device *dev}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjvubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjvubjt )}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjvubah}(h]h ]h"]h$]h&]uh1js hjvubeh}(h]h ]h"]h$]h&]uh1jQ hjvhMhjIvubjR )}(hx``struct drm_mode_create_dumb *args`` the arguments as provided to :c:type:`struct drm_driver `.dumb_create h](jX )}(h%``struct drm_mode_create_dumb *args``h]j^ )}(hjvh]h!struct drm_mode_create_dumb *args}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjvubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjvubjt )}(hhh]h)}(hQthe arguments as provided to :c:type:`struct drm_driver `.dumb_createh](hthe arguments as provided to }(hjvhhhNhNubh)}(h(:c:type:`struct drm_driver `h]j^ )}(hjvh]hstruct drm_driver}(hjvhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjvubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjvubh .dumb_create}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhMhjvubah}(h]h ]h"]h$]h&]uh1js hjvubeh}(h]h ]h"]h$]h&]uh1jQ hjvhMhjIvubeh}(h]h ]h"]h$]h&]uh1jL hj-vubh)}(h**Description**h]j7 )}(hj#wh]h Description}(hj%whhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj!wubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj-vubh)}(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 }(hj9whhhNhNubj7 )}(h**drm_device.vram_mm**h]hdrm_device.vram_mm}(hjAwhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj9wubh for its instance of VRAM MM.}(hj9whhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj-vubh)}(h **Return**h]j7 )}(hj\wh]hReturn}(hj^whhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjZwubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj-vubh)}(h10 on success, or a negative error code otherwise.h]h10 on success, or a negative error code otherwise.}(hjrwhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj-vubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j1drm_gem_vram_plane_helper_prepare_fb (C function)&c.drm_gem_vram_plane_helper_prepare_fbhNtauh1jhjWhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chM@ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjwhM@ubj)}(h$drm_gem_vram_plane_helper_prepare_fbh]j)}(h$drm_gem_vram_plane_helper_prepare_fbh]h$drm_gem_vram_plane_helper_prepare_fb}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jhjwhhhjwhM@ubj>)}(h<(struct drm_plane *plane, struct drm_plane_state *new_state)h](jD)}(hstruct drm_plane *planeh](j)}(hj? h]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]j)}(h drm_planeh]h drm_plane}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjwmodnameN classnameNjj)}j]j)}j}jwsb&c.drm_gem_vram_plane_helper_prepare_fbasbuh1hhjwubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hjh]h*}(hj*xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hplaneh]hplane}(hj7xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjwubjD)}(h!struct drm_plane_state *new_stateh](j)}(hj? h]hstruct}(hjPxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLxubj)}(h h]h }(hj]xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLxubh)}(hhh]j)}(hdrm_plane_stateh]hdrm_plane_state}(hjnxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkxubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjpxmodnameN classnameNjj)}j]jx&c.drm_gem_vram_plane_helper_prepare_fbasbuh1hhjLxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLxubj)}(h new_stateh]h new_state}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLxubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjwubeh}(h]h ]h"]h$]h&]jjuh1j=hjwhhhjwhM@ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjwhM@ubah}(h]jwah ](jjeh"]h$]h&]j j )j huh1jhjwhM@hjwhhubj )}(hhh]h)}(hVImplements :c:type:`struct drm_plane_helper_funcs `.prepare_fbh](h Implements }(hjxhhhNhNubh)}(h@:c:type:`struct drm_plane_helper_funcs `h]j^ )}(hjxh]hstruct drm_plane_helper_funcs}(hjxhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjxubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jx&c.drm_gem_vram_plane_helper_prepare_fbasbj drm_plane_helper_funcsuh1hhjdhKhjxubh .prepare_fb}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chM@hjxhhubah}(h]h ]h"]h$]h&]uh1j hjwhhhjwhM@ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jyj( jyj) j* j+ uh1jhhhjWhNhNubj- )}(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]j7 )}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjyubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMDhjyubjM )}(hhh](jR )}(h(``struct drm_plane *plane`` a DRM plane h](jX )}(h``struct drm_plane *plane``h]j^ )}(hj:yh]hstruct drm_plane *plane}(hj)}(h<(struct drm_plane *plane, struct drm_plane_state *old_state)h](jD)}(hstruct drm_plane *planeh](j)}(hj? h]hstruct}(hjWzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSzubj)}(h h]h }(hjdzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSzubh)}(hhh]j)}(h drm_planeh]h drm_plane}(hjuzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrzubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjwzmodnameN classnameNjj)}j]j)}j}j=zsb&c.drm_gem_vram_plane_helper_cleanup_fbasbuh1hhjSzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSzubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSzubj)}(hplaneh]hplane}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSzubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOzubjD)}(h!struct drm_plane_state *old_stateh](j)}(hj? h]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hhh]j)}(hdrm_plane_stateh]hdrm_plane_state}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjzmodnameN classnameNjj)}j]jz&c.drm_gem_vram_plane_helper_cleanup_fbasbuh1hhjzubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h old_stateh]h old_state}(hj {hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOzubeh}(h]h ]h"]h$]h&]jjuh1j=hjzhhhj(zhMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhj(zhMsubah}(h]j zah ](jjeh"]h$]h&]j j )j huh1jhj(zhMshjzhhubj )}(hhh]h)}(hVImplements :c:type:`struct drm_plane_helper_funcs `.cleanup_fbh](h Implements }(hjJ{hhhNhNubh)}(h@:c:type:`struct drm_plane_helper_funcs `h]j^ )}(hjT{h]hstruct drm_plane_helper_funcs}(hjV{hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjR{ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jz&c.drm_gem_vram_plane_helper_cleanup_fbasbj drm_plane_helper_funcsuh1hhjdhKhjJ{ubh .cleanup_fb}(hjJ{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMshjG{hhubah}(h]h ]h"]h$]h&]uh1j hjzhhhj(zhMsubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j{j( j{j) j* j+ uh1jhhhjWhNhNubj- )}(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]j7 )}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj{ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMwhj{ubjM )}(hhh](jR )}(h(``struct drm_plane *plane`` a DRM plane h](jX )}(h``struct drm_plane *plane``h]j^ )}(hj{h]hstruct drm_plane *plane}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj{ubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMuhj{ubjt )}(hhh]h)}(h a DRM planeh]h a DRM plane}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMuhj{ubah}(h]h ]h"]h$]h&]uh1js hj{ubeh}(h]h ]h"]h$]h&]uh1jQ hj{hMuhj{ubjR )}(h<``struct drm_plane_state *old_state`` the plane's old state h](jX )}(h%``struct drm_plane_state *old_state``h]j^ )}(hj{h]h!struct drm_plane_state *old_state}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj{ubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMvhj{ubjt )}(hhh]h)}(hthe plane's old stateh]hthe plane’s old state}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMvhj|ubah}(h]h ]h"]h$]h&]uh1js hj{ubeh}(h]h ]h"]h$]h&]uh1jQ hj|hMvhj{ubeh}(h]h ]h"]h$]h&]uh1jL hj{ubh)}(h**Description**h]j7 )}(hj'|h]h Description}(hj)|hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj%|ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMxhj{ubh)}(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().}(hj=|hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMwhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_vram_mm_debugfs_init (C function)c.drm_vram_mm_debugfs_inithNtauh1jhjWhhhNhNubj)}(hhh](j)}(h7void drm_vram_mm_debugfs_init (struct drm_minor *minor)h]j)}(h6void drm_vram_mm_debugfs_init(struct drm_minor *minor)h](j)}(hvoidh]hvoid}(hjl|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh|hhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMEubj)}(h h]h }(hj{|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh|hhhjz|hMEubj)}(hdrm_vram_mm_debugfs_inith]j)}(hdrm_vram_mm_debugfs_inith]hdrm_vram_mm_debugfs_init}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjh|hhhjz|hMEubj>)}(h(struct drm_minor *minor)h]jD)}(hstruct drm_minor *minorh](j)}(hj? h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]j)}(h drm_minorh]h drm_minor}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj|modnameN classnameNjj)}j]j)}j}j|sbc.drm_vram_mm_debugfs_initasbuh1hhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hminorh]hminor}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj|ubah}(h]h ]h"]h$]h&]jjuh1j=hjh|hhhjz|hMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjd|hhhjz|hMEubah}(h]j_|ah ](jjeh"]h$]h&]j j )j huh1jhjz|hMEhja|hhubj )}(hhh]h)}(hRegister VRAM MM debugfs file.h]hRegister VRAM MM debugfs file.}(hj,}hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMEhj)}hhubah}(h]h ]h"]h$]h&]uh1j hja|hhhjz|hMEubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jD}j( jD}j) j* j+ uh1jhhhjWhNhNubj- )}(h?**Parameters** ``struct drm_minor *minor`` drm minor device.h](h)}(h**Parameters**h]j7 )}(hjN}h]h Parameters}(hjP}hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjL}ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMIhjH}ubjM )}(hhh]jR )}(h-``struct drm_minor *minor`` drm minor device.h](jX )}(h``struct drm_minor *minor``h]j^ )}(hjm}h]hstruct drm_minor *minor}(hjo}hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjk}ubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMKhjg}ubjt )}(hhh]h)}(hdrm minor device.h]hdrm minor device.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMGhj}ubah}(h]h ]h"]h$]h&]uh1js hjg}ubeh}(h]h ]h"]h$]h&]uh1jQ hj}hMKhjd}ubah}(h]h ]h"]h$]h&]uh1jL hjH}ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drmm_vram_helper_init (C function)c.drmm_vram_helper_inithNtauh1jhjWhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhj}hMubj)}(hdrmm_vram_helper_inith]j)}(hdrmm_vram_helper_inith]hdrmm_vram_helper_init}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj}hhhj}hMubj>)}(h>(struct drm_device *dev, uint64_t vram_base, size_t vram_size)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj"~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj$~modnameN classnameNjj)}j]j)}j}j}sbc.drmm_vram_helper_initasbuh1hhj~ubj)}(h h]h }(hjB~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hjh]h*}(hjP~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hdevh]hdev}(hj]~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj}ubjD)}(huint64_t vram_baseh](h)}(hhh]j)}(huint64_th]huint64_t}(hjy~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv~ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj{~modnameN classnameNjj)}j]j>~c.drmm_vram_helper_initasbuh1hhjr~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr~ubj)}(h vram_baseh]h vram_base}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj}ubjD)}(hsize_t vram_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj~modnameN classnameNjj)}j]j>~c.drmm_vram_helper_initasbuh1hhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h vram_sizeh]h vram_size}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj}ubeh}(h]h ]h"]h$]h&]jjuh1j=hj}hhhj}hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhj}hMubah}(h]j}ah ](jjeh"]h$]h&]j j )j huh1jhj}hMhj}hhubj )}(hhh]h)}(hMInitializes a device's instance of :c:type:`struct drm_vram_mm `h](h%Initializes a device’s instance of }(hjhhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j^ )}(hj!h]hstruct drm_vram_mm}(hj#hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j>~c.drmm_vram_helper_initasbj drm_vram_mmuh1hhjdhKhjubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj}hhhj}hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jSj( jSj) j* j+ uh1jhhhjWhNhNubj- )}(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]j7 )}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj[ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjWubjM )}(hhh](jR )}(h*``struct drm_device *dev`` the DRM device h](jX )}(h``struct drm_device *dev``h]j^ )}(hj|h]hstruct drm_device *dev}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjzubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjvubjt )}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjvubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjsubjR )}(h<``uint64_t vram_base`` the base address of the video memory h](jX )}(h``uint64_t vram_base``h]j^ )}(hjh]huint64_t vram_base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjubjt )}(hhh]h)}(h$the base address of the video memoryh]h$the base address of the video memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjsubjR )}(h;``size_t vram_size`` the size of the video memory in bytes h](jX )}(h``size_t vram_size``h]j^ )}(hjh]hsize_t vram_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjubjt )}(hhh]h)}(h%the size of the video memory in bytesh]h%the size of the video memory in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjsubeh}(h]h ]h"]h$]h&]uh1jL hjWubh)}(h**Description**h]j7 )}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj'ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjWubh)}(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 }(hj?hhhNhNubh)}(h*:c:type:`struct drm_vram_mm `h]j^ )}(hjIh]hstruct drm_vram_mm}(hjKhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_vram_mmuh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhj?ubh and stores it in struct }(hj?hhhNhNubh)}(h):c:type:`drm_device.vram_mm `h]j^ )}(hjmh]hdrm_device.vram_mm}(hjohhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjkubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_deviceuh1hhjfhMhj?ubh. The instance is auto-managed and cleaned up as part of device cleanup. Calling this function multiple times will generate an error message.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjfhMhjWubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjWubh)}(h10 on success, or a negative errno code otherwise.h]h10 on success, or a negative errno code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'drm_vram_helper_mode_valid (C function)c.drm_vram_helper_mode_validhNtauh1jhjWhhhNhNubj)}(hhh](j)}(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](j)}(hjh]henum}(hjۀhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׀hhha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׀hhhjhMubh)}(hhh]j)}(hdrm_mode_statush]hdrm_mode_status}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_vram_helper_mode_validsbc.drm_vram_helper_mode_validasbuh1hhj׀hhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׀hhhjhMubj)}(hdrm_vram_helper_mode_validh]j)}(hjh]hdrm_vram_helper_mode_valid}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj׀hhhjhMubj>)}(h=(struct drm_device *dev, const struct drm_display_mode *mode)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjhmodnameN classnameNjj)}j]jc.drm_vram_helper_mode_validasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj@ubjD)}(h#const struct drm_display_mode *modeh](j)}(hjJh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjŁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj? h]hstruct}(hjӁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_display_modeh]hdrm_display_mode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_vram_helper_mode_validasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmodeh]hmode}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj@ubeh}(h]h ]h"]h$]h&]jjuh1j=hj׀hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjӀhhhjhMubah}(h]j΀ah ](jjeh"]h$]h&]j j )j huh1jhjhMhjЀhhubj )}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjQhhubah}(h]h ]h"]h$]h&]uh1j hjЀhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jlj( jlj) j* j+ uh1jhhhjWhNhNubj- )}(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]j7 )}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjtubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjpubjM )}(hhh](jR )}(h*``struct drm_device *dev`` the DRM device h](jX )}(h``struct drm_device *dev``h]j^ )}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjubjt )}(hhh]h)}(hthe DRM deviceh]hthe DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h9``const struct drm_display_mode *mode`` the mode to test h](jX )}(h'``const struct drm_display_mode *mode``h]j^ )}(hj΂h]h#const struct drm_display_mode *mode}(hjЂhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hĵubah}(h]h ]h"]h$]h&]uh1jW ha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjȂubjt )}(hhh]h)}(hthe mode to testh]hthe mode to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjȂubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjpubh)}(h**Description**h]j7 )}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjpubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjpubh)}(h**Note**h]j7 )}(hj0h]hNote}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj.ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjpubh)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjpubh)}(h **Return**h]j7 )}(hjWh]hReturn}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjUubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjpubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:410: ./drivers/gpu/drm/drm_gem_vram_helper.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWhhhNhNubeh}(h]jah ]h"]#gem vram helper functions referenceah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h"GEM TTM Helper Functions Referenceh]h"GEM TTM Helper Functions Reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhMubh)}(hEThis library provides helper functions for gem objects backed by ttm.h]hEThis library provides helper functions for gem objects backed by ttm.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:416: ./drivers/gpu/drm/drm_gem_ttm_helper.chK hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_gem_ttm_print_info (C function)c.drm_gem_ttm_print_infohNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjÃhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKubj)}(h h]h }(hj҃hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjуhKubj)}(hdrm_gem_ttm_print_infoh]j)}(hdrm_gem_ttm_print_infoh]hdrm_gem_ttm_print_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjуhKubj>)}(hN(struct drm_printer *p, unsigned int indent, const struct drm_gem_object *gem)h](jD)}(hstruct drm_printer *ph](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}jsbc.drm_gem_ttm_print_infoasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned int indenth](j)}(hunsignedh]hunsigned}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hindenth]hindent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h const struct drm_gem_object *gemh](j)}(hjJh]hconst}(hj„hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjτhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj? h]hstruct}(hj݄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j:c.drm_gem_ttm_print_infoasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgemh]hgem}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjуhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjуhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjуhKhjhhubj )}(hhh]h)}(h2Print :c:type:`ttm_buffer_object` info for debugfsh](hPrint }(hj^hhhNhNubh)}(h:c:type:`ttm_buffer_object`h]j^ )}(hjhh]httm_buffer_object}(hjjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjfubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j:c.drm_gem_ttm_print_infoasbj ttm_buffer_objectuh1hhjуhKhj^ubh info for debugfs}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhj[hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjуhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjubjM )}(hhh](jR )}(h&``struct drm_printer *p`` DRM printer h](jX )}(h``struct drm_printer *p``h]j^ )}(hjDžh]hstruct drm_printer *p}(hjɅhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjŅubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjubjt )}(hhh]h)}(h DRM printerh]h DRM printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj܅hKhj݅ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj܅hKhjubjR )}(h.``unsigned int indent`` Tab indentation level h](jX )}(h``unsigned int indent``h]j^ )}(hjh]hunsigned int indent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjubjt )}(hhh]h)}(hTab indentation levelh]hTab indentation level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h0``const struct drm_gem_object *gem`` GEM object h](jX )}(h$``const struct drm_gem_object *gem``h]j^ )}(hj9h]h const struct drm_gem_object *gem}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj7ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhj3ubjt )}(hhh]h)}(h GEM objecth]h GEM object}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhKhjOubah}(h]h ]h"]h$]h&]uh1js hj3ubeh}(h]h ]h"]h$]h&]uh1jQ hjNhKhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjrubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjubh)}(hgThis function can be used as :c:type:`drm_gem_object_funcs.print_info ` callback.h](hThis function can be used as }(hjhhhNhNubh)}(h@:c:type:`drm_gem_object_funcs.print_info `h]j^ )}(hjh]hdrm_gem_object_funcs.print_info}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_ttm_vmap (C function)c.drm_gem_ttm_vmaphNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj܆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؆hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK9ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؆hhhjhK9ubj)}(hdrm_gem_ttm_vmaph]j)}(hdrm_gem_ttm_vmaph]hdrm_gem_ttm_vmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj؆hhhjhK9ubj>)}(h3(struct drm_gem_object *gem, struct iosys_map *map)h](jD)}(hstruct drm_gem_object *gemh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj9modnameN classnameNjj)}j]j)}j}jsbc.drm_gem_ttm_vmapasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgemh]hgem}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct iosys_map *maph](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jSc.drm_gem_ttm_vmapasbuh1hhjubj)}(h h]h }(hjLJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjՇhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hj؆hhhjhK9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjԆhhhjhK9ubah}(h]jφah ](jjeh"]h$]h&]j j )j huh1jhjhK9hjцhhubj )}(hhh]h)}(h vmap :c:type:`ttm_buffer_object`h](hvmap }(hj hhhNhNubh)}(h:c:type:`ttm_buffer_object`h]j^ )}(hjh]httm_buffer_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jSc.drm_gem_ttm_vmapasbj ttm_buffer_objectuh1hhjуhKhj ubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK9hj hhubah}(h]h ]h"]h$]h&]uh1j hjцhhhjhK9ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jHj( jHj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjPubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK=hjLubjM )}(hhh](jR )}(h+``struct drm_gem_object *gem`` GEM object. h](jX )}(h``struct drm_gem_object *gem``h]j^ )}(hjqh]hstruct drm_gem_object *gem}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjoubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK:hjkubjt )}(hhh]h)}(h GEM object.h]h GEM object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK:hjubah}(h]h ]h"]h$]h&]uh1js hjkubeh}(h]h ]h"]h$]h&]uh1jQ hjhK:hjhubjR )}(h=``struct iosys_map *map`` [out] returns the dma-buf mapping. h](jX )}(h``struct iosys_map *map``h]j^ )}(hjh]hstruct iosys_map *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK;hjubjt )}(hhh]h)}(h"[out] returns the dma-buf mapping.h]h"[out] returns the dma-buf mapping.}(hjÈhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK;hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhK;hjhubeh}(h]h ]h"]h$]h&]uh1jL hjLubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK=hjLubh)}(hMaps a GEM object with ttm_bo_vmap(). This function can be used as :c:type:`drm_gem_object_funcs.vmap ` callback.h](hCMaps a GEM object with ttm_bo_vmap(). This function can be used as }(hjhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.vmap `h]j^ )}(hjh]hdrm_gem_object_funcs.vmap}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK)}(h3(struct drm_gem_object *gem, struct iosys_map *map)h](jD)}(hstruct drm_gem_object *gemh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjωhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̉ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjщmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_ttm_vunmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgemh]hgem}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct iosys_map *maph](j)}(hj? h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjCmodnameN classnameNjj)}j]jc.drm_gem_ttm_vunmapasbuh1hhjubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmaph]hmap}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjphhhjhKMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjhKMubah}(h]jgah ](jjeh"]h$]h&]j j )j huh1jhjhKMhjihhubj )}(hhh]h)}(h"vunmap :c:type:`ttm_buffer_object`h](hvunmap }(hjhhhNhNubh)}(h:c:type:`ttm_buffer_object`h]j^ )}(hjh]httm_buffer_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gem_ttm_vunmapasbj ttm_buffer_objectuh1hhjуhKhjubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKMhjhhubah}(h]h ]h"]h$]h&]uh1j hjihhhjhKMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKQhjubjM )}(hhh](jR )}(h+``struct drm_gem_object *gem`` GEM object. h](jX )}(h``struct drm_gem_object *gem``h]j^ )}(hj h]hstruct drm_gem_object *gem}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKNhjubjt )}(hhh]h)}(h GEM object.h]h GEM object.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKNhjubjR )}(h+``struct iosys_map *map`` dma-buf mapping. h](jX )}(h``struct iosys_map *map``h]j^ )}(hjBh]hstruct iosys_map *map}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKOhj<ubjt )}(hhh]h)}(hdma-buf mapping.h]hdma-buf mapping.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKOhjXubah}(h]h ]h"]h$]h&]uh1js hj<ubeh}(h]h ]h"]h$]h&]uh1jQ hjWhKOhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj{ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKQhjubh)}(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 }(hjhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.vmap `h]j^ )}(hjh]hdrm_gem_object_funcs.vmap}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKPhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_ttm_mmap (C function)c.drm_gem_ttm_mmaphNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK^ubj)}(hdrm_gem_ttm_mmaph]j)}(hdrm_gem_ttm_mmaph]hdrm_gem_ttm_mmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhK^ubj>)}(h8(struct drm_gem_object *gem, struct vm_area_struct *vma)h](jD)}(hstruct drm_gem_object *gemh](j)}(hj? h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjBmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_ttm_mmapasbuh1hhjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgemh]hgem}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct vm_area_struct *vmah](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j\c.drm_gem_ttm_mmapasbuh1hhjubj)}(h h]h }(hjЌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjތhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhK^ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj݋hhhjhK^ubah}(h]j؋ah ](jjeh"]h$]h&]j j )j huh1jhjhK^hjڋhhubj )}(hhh]h)}(h mmap :c:type:`ttm_buffer_object`h](hmmap }(hjhhhNhNubh)}(h:c:type:`ttm_buffer_object`h]j^ )}(hjh]httm_buffer_object}(hj!hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j\c.drm_gem_ttm_mmapasbj ttm_buffer_objectuh1hhjуhKhjubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK^hjhhubah}(h]h ]h"]h$]h&]uh1j hjڋhhhjhK^ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jQj( jQj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjYubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKbhjUubjM )}(hhh](jR )}(h+``struct drm_gem_object *gem`` GEM object. h](jX )}(h``struct drm_gem_object *gem``h]j^ )}(hjzh]hstruct drm_gem_object *gem}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjxubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK_hjtubjt )}(hhh]h)}(h GEM object.h]h GEM object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK_hjubah}(h]h ]h"]h$]h&]uh1js hjtubeh}(h]h ]h"]h$]h&]uh1jQ hjhK_hjqubjR )}(h(``struct vm_area_struct *vma`` vm area. h](jX )}(h``struct vm_area_struct *vma``h]j^ )}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK`hjubjt )}(hhh]h)}(hvm area.h]hvm area.}(hj̍hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȍhK`hjɍubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjȍhK`hjqubeh}(h]h ]h"]h$]h&]uh1jL hjUubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKbhjUubh)}(haThis function can be used as :c:type:`drm_gem_object_funcs.mmap ` callback.h](hThis function can be used as }(hjhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.mmap `h]j^ )}(hjh]hdrm_gem_object_funcs.mmap}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKahjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hKahjUubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_gem_ttm_dumb_map_offset (C function)c.drm_gem_ttm_dumb_map_offsethNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKzubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjdhKzubj)}(hdrm_gem_ttm_dumb_map_offseth]j)}(hdrm_gem_ttm_dumb_map_offseth]hdrm_gem_ttm_dumb_map_offset}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jhjRhhhjdhKzubj>)}(hR(struct drm_file *file, struct drm_device *dev, uint32_t handle, uint64_t *offset)h](jD)}(hstruct drm_file *fileh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jysbc.drm_gem_ttm_dumb_map_offsetasbuh1hhjubj)}(h h]h }(hjюhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjߎhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj%modnameN classnameNjj)}j]j͎c.drm_gem_ttm_dumb_map_offsetasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(huint32_t handleh](h)}(hhh]j)}(huint32_th]huint32_t}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjzmodnameN classnameNjj)}j]j͎c.drm_gem_ttm_dumb_map_offsetasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(huint64_t *offseth](h)}(hhh]j)}(huint64_th]huint64_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j͎c.drm_gem_ttm_dumb_map_offsetasbuh1hhjubj)}(h h]h }(hjޏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjRhhhjdhKzubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjdhKzubah}(h]jIah ](jjeh"]h$]h&]j j )j huh1jhjdhKzhjKhhubj )}(hhh]h)}(hCImplements struct :c:type:`drm_driver.dumb_map_offset `h](hImplements struct }(hj#hhhNhNubh)}(h1:c:type:`drm_driver.dumb_map_offset `h]j^ )}(hj-h]hdrm_driver.dumb_map_offset}(hj/hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj+ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j͎c.drm_gem_ttm_dumb_map_offsetasbj drm_driveruh1hhjуhKhj#ubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKzhj hhubah}(h]h ]h"]h$]h&]uh1j hjKhhhjdhKzubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j_j( j_j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjgubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK~hjcubjM )}(hhh](jR )}(h,``struct drm_file *file`` DRM file pointer. h](jX )}(h``struct drm_file *file``h]j^ )}(hjh]hstruct drm_file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK{hjubjt )}(hhh]h)}(hDRM file pointer.h]hDRM file pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK{hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhK{hjubjR )}(h'``struct drm_device *dev`` DRM device. h](jX )}(h``struct drm_device *dev``h]j^ )}(hjh]hstruct drm_device *dev}(hjÐhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK|hjubjt )}(hhh]h)}(h DRM device.h]h DRM device.}(hjڐhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj֐hK|hjאubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj֐hK|hjubjR )}(h``uint32_t handle`` GEM handle h](jX )}(h``uint32_t handle``h]j^ )}(hjh]huint32_t handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK}hjubjt )}(hhh]h)}(h GEM handleh]h GEM handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK}hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhK}hjubjR )}(hD``uint64_t *offset`` Returns the mapping's memory offset on success h](jX )}(h``uint64_t *offset``h]j^ )}(hj3h]huint64_t *offset}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj1ubah}(h]h ]h"]h$]h&]uh1jW h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chK~hj-ubjt )}(hhh]h)}(h.Returns the mapping's memory offset on successh]h0Returns the mapping’s memory offset on success}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhK~hjIubah}(h]h ]h"]h$]h&]uh1js hj-ubeh}(h]h ]h"]h$]h&]uh1jQ hjHhK~hjubeh}(h]h ]h"]h$]h&]uh1jL hjcubh)}(h**Description**h]j7 )}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjlubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjcubh)}(hProvides an implementation of struct :c:type:`drm_driver.dumb_map_offset ` for TTM-based GEM drivers. TTM allocates the offset internally and drm_gem_ttm_dumb_map_offset() returns it for dumb-buffer implementations.h](h%Provides an implementation of struct }(hjhhhNhNubh)}(h1:c:type:`drm_driver.dumb_map_offset `h]j^ )}(hjh]hdrm_driver.dumb_map_offset}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjubh for TTM-based GEM drivers. TTM allocates the offset internally and drm_gem_ttm_dumb_map_offset() returns it for dumb-buffer implementations.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjcubh)}(h=See struct :c:type:`drm_driver.dumb_map_offset `.h](h See struct }(hjhhhNhNubh)}(h1:c:type:`drm_driver.dumb_map_offset `h]j^ )}(hjh]hdrm_driver.dumb_map_offset}(hj‘hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjݑhKhjcubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjcubh)}(h10 on success, or a negative errno code otherwise.h]h10 on success, or a negative errno code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:419: ./drivers/gpu/drm/drm_gem_ttm_helper.chKhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubeh}(h]jah ]h"]"gem ttm helper functions referenceah$]h&]uh1hhjhhhhhMubeh}(h]jah ]h"]$the graphics execution manager (gem)ah$]h&]uh1hhhhhhhhKRubh)}(hhh](h)}(hVMA Offset Managerh]hVMA Offset Manager}(hj'hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj$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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:425: ./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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:425: ./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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:425: ./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().}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:425: ./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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:425: ./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_lockedhNtauh1jhj$hhhNhNubj)}(hhh](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]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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKTubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}"drm_vma_offset_exact_lookup_lockedsb$c.drm_vma_offset_exact_lookup_lockedasbuh1hhjhhhjhKTubj)}(h h]h }(hjْhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKTubj)}(h"drm_vma_offset_exact_lookup_lockedh]j)}(hj֒h]h"drm_vma_offset_exact_lookup_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKTubj>)}(hN(struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h](jD)}(h"struct drm_vma_offset_manager *mgrh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj3modnameN classnameNjj)}j]jԒ$c.drm_vma_offset_exact_lookup_lockedasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmgrh]hmgr}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubjD)}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubjD)}(hunsigned long pagesh](j)}(hunsignedh]hunsigned}(hjԓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjГubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjГubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjГubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjГubj)}(hpagesh]hpages}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjГubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKTubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKTubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKThjhhubj )}(hhh]h)}(hLook up node by exact addressh]hLook up node by exact address}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKThj3hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKTubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jNj( jNj) j* j+ uh1jhhhj$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]j7 )}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjVubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKXhjRubjM )}(hhh](jR )}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](jX )}(h&``struct drm_vma_offset_manager *mgr``h]j^ )}(hjwh]h"struct drm_vma_offset_manager *mgr}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjuubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKUhjqubjt )}(hhh]h)}(hManager objecth]hManager object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKUhjubah}(h]h ]h"]h$]h&]uh1js hjqubeh}(h]h ]h"]h$]h&]uh1jQ hjhKUhjnubjR )}(hC``unsigned long start`` Start address (page-based, not byte-based) h](jX )}(h``unsigned long start``h]j^ )}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKVhjubjt )}(hhh]h)}(h*Start address (page-based, not byte-based)h]h*Start address (page-based, not byte-based)}(hjɔhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŔhKVhjƔubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjŔhKVhjnubjR )}(h4``unsigned long pages`` Size of object (page-based) h](jX )}(h``unsigned long pages``h]j^ )}(hjh]hunsigned long pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKWhjubjt )}(hhh]h)}(hSize of object (page-based)h]hSize of object (page-based)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKWhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKWhjnubeh}(h]h ]h"]h$]h&]uh1jL hjRubh)}(h**Description**h]j7 )}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj"ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKYhjRubh)}(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:428: ./include/drm/drm_vma_manager.hhKXhjRubh)}(h **Return**h]j7 )}(hjKh]hReturn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjIubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhK[hjRubh)}(h&Node at exact start address **start**.h](hNode at exact start address }(hjahhhNhNubj7 )}(h **start**h]hstart}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjaubh.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhK\hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'drm_vma_offset_lock_lookup (C function)c.drm_vma_offset_lock_lookuphNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKkubj)}(hdrm_vma_offset_lock_lookuph]j)}(hdrm_vma_offset_lock_lookuph]hdrm_vma_offset_lock_lookup}(hjÕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKkubj>)}(h$(struct drm_vma_offset_manager *mgr)h]jD)}(h"struct drm_vma_offset_manager *mgrh](j)}(hj? h]hstruct}(hjߕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjەubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjەubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jŕsbc.drm_vma_offset_lock_lookupasbuh1hhjەubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjەubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjەubj)}(hmgrh]hmgr}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjەubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjוubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKkubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKkubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKkhjhhubj )}(hhh]h)}(h$Lock lookup for extended private useh]h$Lock lookup for extended private use}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKkhj_hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKkubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jzj( jzj) j* j+ uh1jhhhj$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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKohj~ubjM )}(hhh]jR )}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](jX )}(h&``struct drm_vma_offset_manager *mgr``h]j^ )}(hjh]h"struct drm_vma_offset_manager *mgr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKlhjubjt )}(hhh]h)}(hManager objecth]hManager object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKlhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKlhjubah}(h]h ]h"]h$]h&]uh1jL hj~ubh)}(h**Description**h]j7 )}(hjޖh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjܖubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKnhj~ubh)}(hLock VMA manager for extended lookups. Only locked VMA function calls are allowed while holding this lock. All other contexts are blocked from VMA until the lock is released via drm_vma_offset_unlock_lookup().h]hLock VMA manager for extended lookups. Only locked VMA function calls are allowed while holding this lock. All other contexts are blocked from VMA until the lock is released via drm_vma_offset_unlock_lookup().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKmhj~ubh)}(hUse this if you need to take a reference to the objects returned by drm_vma_offset_lookup_locked() before releasing this lock again.h]hUse this if you need to take a reference to the objects returned by drm_vma_offset_lookup_locked() before releasing this lock again.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKqhj~ubh)}(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:428: ./include/drm/drm_vma_manager.hhKthj~ubh)}(h**Note**h]j7 )}(hj#h]hNote}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj!ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKwhj~ubh)}(h1You're in atomic-context while holding this lock!h]h3You’re in atomic-context while holding this lock!}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKxhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)drm_vma_offset_unlock_lookup (C function)c.drm_vma_offset_unlock_lookuphNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjvhKubj)}(hdrm_vma_offset_unlock_lookuph]j)}(hdrm_vma_offset_unlock_lookuph]hdrm_vma_offset_unlock_lookup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjdhhhjvhKubj>)}(h$(struct drm_vma_offset_manager *mgr)h]jD)}(h"struct drm_vma_offset_manager *mgrh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hj×hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjŗmodnameN classnameNjj)}j]j)}j}jsbc.drm_vma_offset_unlock_lookupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjdhhhjvhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjvhKubah}(h]j[ah ](jjeh"]h$]h&]j j )j huh1jhjvhKhj]hhubj )}(hhh]h)}(h&Unlock lookup for extended private useh]h&Unlock lookup for extended private use}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhj%hhubah}(h]h ]h"]h$]h&]uh1j hj]hhhjvhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j@j( j@j) j* j+ uh1jhhhj$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]j7 )}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjHubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjDubjM )}(hhh]jR )}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](jX )}(h&``struct drm_vma_offset_manager *mgr``h]j^ )}(hjih]h"struct drm_vma_offset_manager *mgr}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjgubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjcubjt )}(hhh]h)}(hManager objecth]hManager object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKhjubah}(h]h ]h"]h$]h&]uh1js hjcubeh}(h]h ]h"]h$]h&]uh1jQ hj~hKhj`ubah}(h]h ]h"]h$]h&]uh1jL hjDubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjDubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_vma_node_reset (C function)c.drm_vma_node_resethNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_vma_node_reseth]j)}(hdrm_vma_node_reseth]hdrm_vma_node_reset}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubj>)}(h"(struct drm_vma_offset_node *node)h]jD)}(h struct drm_vma_offset_node *nodeh](j)}(hj? h]hstruct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjFmodnameN classnameNjj)}j]j)}j}j sbc.drm_vma_node_resetasbuh1hhj"ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jܘah ](jjeh"]h$]h&]j j )j huh1jhjhKhjޘhhubj )}(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:428: ./include/drm/drm_vma_manager.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j hjޘhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj$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]j7 )}(hj˙h]h Parameters}(hj͙hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjəubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjřubjM )}(hhh]jR )}(hA``struct drm_vma_offset_node *node`` Node to initialize or reset h](jX )}(h$``struct drm_vma_offset_node *node``h]j^ )}(hjh]h struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubjt )}(hhh]h)}(hNode to initialize or reseth]hNode to initialize or reset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubah}(h]h ]h"]h$]h&]uh1jL hjřubh)}(h**Description**h]j7 )}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj#ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjřubh)}(hcReset a node to its initial state. This must be called before using it with any VMA offset manager.h]hcReset a node to its initial state. This must be called before using it with any VMA offset manager.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjřubh)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjřubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_vma_node_start (C function)c.drm_vma_node_starthNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhKubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhKubj)}(hdrm_vma_node_starth]j)}(hdrm_vma_node_starth]hdrm_vma_node_start}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjuhhhjhKubj>)}(h((const struct drm_vma_offset_node *node)h]jD)}(h&const struct drm_vma_offset_node *nodeh](j)}(hjJh]hconst}(hjҚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΚubj)}(h h]h }(hjߚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΚubj)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΚubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΚubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}jsbc.drm_vma_node_startasbuh1hhjΚubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΚubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΚubj)}(hnodeh]hnode}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΚubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjʚubah}(h]h ]h"]h$]h&]jjuh1j=hjuhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhKubah}(h]jlah ](jjeh"]h$]h&]j j )j huh1jhjhKhjnhhubj )}(hhh]h)}(h.Return start address for page-based addressingh]h.Return start address for page-based addressing}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjmhhubah}(h]h ]h"]h$]h&]uh1j hjnhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj$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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubjM )}(hhh]jR )}(h;``const struct drm_vma_offset_node *node`` Node to inspect h](jX )}(h*``const struct drm_vma_offset_node *node``h]j^ )}(hjh]h&const struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubjt )}(hhh]h)}(hNode to inspecth]hNode to inspect}(hjʛhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƛhKhjǛubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjƛhKhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubh)}(hXPReturn the start address of the given node. This can be used as offset into the linear VM space that is provided by the VMA offset manager. Note that this can only be used for page-based addressing. If you need a proper offset for user-space mappings, you must apply "<< PAGE_SHIFT" or use the drm_vma_node_offset_addr() helper instead.h]hXTReturn the start address of the given node. This can be used as offset into the linear VM space that is provided by the VMA offset manager. Note that this can only be used for page-based addressing. If you need a proper offset for user-space mappings, you must apply “<< PAGE_SHIFT” or use the drm_vma_node_offset_addr() helper instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./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 }(hj)hhhNhNubj7 )}(h**node**h]hnode}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj)ubhL for page-based addressing. 0 if the node does not have an offset allocated.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_vma_node_size (C function)c.drm_vma_node_sizehNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjxhKubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjxhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjxhKubj)}(hdrm_vma_node_sizeh]j)}(hdrm_vma_node_sizeh]hdrm_vma_node_size}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjfhhhjxhKubj>)}(h"(struct drm_vma_offset_node *node)h]jD)}(h struct drm_vma_offset_node *nodeh](j)}(hj? h]hstruct}(hjÜhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjМhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޜubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_vma_node_sizeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjfhhhjxhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhKubah}(h]j]ah ](jjeh"]h$]h&]j j )j huh1jhjxhKhj_hhubj )}(hhh]h)}(hReturn size (page-based)h]hReturn size (page-based)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjChhubah}(h]h ]h"]h$]h&]uh1j hj_hhhjxhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j^j( j^j) j* j+ uh1jhhhj$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]j7 )}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjfubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjbubjM )}(hhh]jR )}(h5``struct drm_vma_offset_node *node`` Node to inspect h](jX )}(h$``struct drm_vma_offset_node *node``h]j^ )}(hjh]h struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubjt )}(hhh]h)}(hNode to inspecth]hNode to inspect}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhj~ubah}(h]h ]h"]h$]h&]uh1jL hjbubh)}(h**Description**h]j7 )}(hjh]h Description}(hjĝhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjbubh)}(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.}(hj؝hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjbubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjbubh)}(hUSize of **node** as number of pages. 0 if the node does not have an offset allocated.h](hSize of }(hjhhhNhNubj7 )}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubhE as number of pages. 0 if the node does not have an offset allocated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_vma_node_offset_addr (C function)c.drm_vma_node_offset_addrhNtauh1jhj$hhhNhNubj)}(hhh](j)}(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]j)}(h__u64h]h__u64}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjEmodnameN classnameNjj)}j]j)}j}drm_vma_node_offset_addrsbc.drm_vma_node_offset_addrasbuh1hhj<hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhjdhKubj)}(hdrm_vma_node_offset_addrh]j)}(hjah]hdrm_vma_node_offset_addr}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jhj<hhhjdhKubj>)}(h"(struct drm_vma_offset_node *node)h]jD)}(h struct drm_vma_offset_node *nodeh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j_c.drm_vma_node_offset_addrasbuh1hhjubj)}(h h]h }(hjΞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjܞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hj<hhhjdhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjdhKubah}(h]j3ah ](jjeh"]h$]h&]j j )j huh1jhjdhKhj5hhubj )}(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:428: ./include/drm/drm_vma_manager.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j hj5hhhjdhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j+j( j+j) j* j+ uh1jhhhj$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]j7 )}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj3ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhj/ubjM )}(hhh]jR )}(h8``struct drm_vma_offset_node *node`` Linked offset node h](jX )}(h$``struct drm_vma_offset_node *node``h]j^ )}(hjTh]h struct drm_vma_offset_node *node}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjRubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjNubjt )}(hhh]h)}(hLinked offset nodeh]hLinked offset node}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjjubah}(h]h ]h"]h$]h&]uh1js hjNubeh}(h]h ]h"]h$]h&]uh1jQ hjihKhjKubah}(h]h ]h"]h$]h&]uh1jL hj/ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhj/ubh)}(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:428: ./include/drm/drm_vma_manager.hhKhj/ubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhj/ubh)}(h^Offset of **node** for byte-based addressing. 0 if the node does not have an object allocated.h](h Offset of }(hj̟hhhNhNubj7 )}(h**node**h]hnode}(hjԟhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj̟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:428: ./include/drm/drm_vma_manager.hhKhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_vma_node_unmap (C function)c.drm_vma_node_unmaphNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhKubj)}(hdrm_vma_node_unmaph]j)}(hdrm_vma_node_unmaph]hdrm_vma_node_unmap}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhjhKubj>)}(hF(struct drm_vma_offset_node *node, struct address_space *file_mapping)h](jD)}(h struct drm_vma_offset_node *nodeh](j)}(hj? h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjjmodnameN classnameNjj)}j]j)}j}j0sbc.drm_vma_node_unmapasbuh1hhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjBubjD)}(h"struct address_space *file_mappingh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjɠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h address_spaceh]h address_space}(hjڠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjנubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjܠmodnameN classnameNjj)}j]jc.drm_vma_node_unmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h file_mappingh]h file_mapping}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjBubeh}(h]h ]h"]h$]h&]jjuh1j=hj hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h)}(hUnmap offset nodeh]hUnmap offset node}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhj:hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jUj( jUj) j* j+ uh1jhhhj$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]j7 )}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj]ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjYubjM )}(hhh](jR )}(h1``struct drm_vma_offset_node *node`` Offset node h](jX )}(h$``struct drm_vma_offset_node *node``h]j^ )}(hj~h]h struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj|ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjxubjt )}(hhh]h)}(h Offset nodeh]h Offset node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjxubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjuubjR )}(hL``struct address_space *file_mapping`` Address space to unmap **node** from h](jX )}(h&``struct address_space *file_mapping``h]j^ )}(hjh]h"struct address_space *file_mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubjt )}(hhh]h)}(h$Address space to unmap **node** fromh](hAddress space to unmap }(hjСhhhNhNubj7 )}(h**node**h]hnode}(hjءhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjСubh from}(hjСhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj̡hKhj͡ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj̡hKhjuubeh}(h]h ]h"]h$]h&]uh1jL hjYubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjYubh)}(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 }(hjhhhNhNubj7 )}(h**file_mapping**h]h file_mapping}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh4 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:428: ./include/drm/drm_vma_manager.hhKhjYubh)}(hvThis call is unlocked. The caller must guarantee that drm_vma_offset_remove() is not called on this node concurrently.h]hvThis call is unlocked. The caller must guarantee that drm_vma_offset_remove() is not called on this node concurrently.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'drm_vma_node_verify_access (C function)c.drm_vma_node_verify_accesshNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjxhKubj)}(hdrm_vma_node_verify_accessh]j)}(hdrm_vma_node_verify_accessh]hdrm_vma_node_verify_access}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjfhhhjxhKubj>)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](jD)}(h struct drm_vma_offset_node *nodeh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjŢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¢ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjǢmodnameN classnameNjj)}j]j)}j}jsbc.drm_vma_node_verify_accessasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_file *tagh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj9modnameN classnameNjj)}j]jc.drm_vma_node_verify_accessasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htagh]htag}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjfhhhjxhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhKubah}(h]j]ah ](jjeh"]h$]h&]j j )j huh1jhjxhKhj_hhubj )}(hhh]h)}(h"Access verification helper for TTMh]h"Access verification helper for TTM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j hj_hhhjxhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj$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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubjM )}(hhh](jR )}(h1``struct drm_vma_offset_node *node`` Offset node h](jX )}(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&]uh1j] hj٣ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjգubjt )}(hhh]h)}(h Offset nodeh]h Offset node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjգubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjңubjR )}(h.``struct drm_file *tag`` Tag of file to check h](jX )}(h``struct drm_file *tag``h]j^ )}(hjh]hstruct drm_file *tag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubjt )}(hhh]h)}(hTag of file to checkh]hTag of file to check}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKhj*ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj)hKhjңubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjMubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubh)}(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 }(hjehhhNhNubj7 )}(h**tag**h]htag}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjeubh is granted access to }(hjehhhNhNubj7 )}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjeubho. It is the same as drm_vma_node_is_allowed() but suitable as drop-in helper for TTM verify_access() callbacks.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubh)}(h*0 if access is granted, -EACCES otherwise.h]h*0 if access is granted, -EACCES otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:428: ./include/drm/drm_vma_manager.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_vma_offset_manager_init (C function)c.drm_vma_offset_manager_inithNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjߤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۤhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKHubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۤhhhjhKHubj)}(hdrm_vma_offset_manager_inith]j)}(hdrm_vma_offset_manager_inith]hdrm_vma_offset_manager_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjۤhhhjhKHubj>)}(hS(struct drm_vma_offset_manager *mgr, unsigned long page_offset, unsigned long size)h](jD)}(h"struct drm_vma_offset_manager *mgrh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj<modnameN classnameNjj)}j]j)}j}jsbc.drm_vma_offset_manager_initasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmgrh]hmgr}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned long page_offseth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h page_offseth]h page_offset}(hjƥhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjߥhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۥubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۥubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۥubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۥubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۥubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjۤhhhjhKHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjפhhhjhKHubah}(h]jҤah ](jjeh"]h$]h&]j j )j huh1jhjhKHhjԤhhubj )}(hhh]h)}(hInitialize new offset-managerh]hInitialize new offset-manager}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKHhj>hhubah}(h]h ]h"]h$]h&]uh1j hjԤhhhjhKHubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jYj( jYj) j* j+ uh1jhhhj$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]j7 )}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjaubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKLhj]ubjM )}(hhh](jR )}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](jX )}(h&``struct drm_vma_offset_manager *mgr``h]j^ )}(hjh]h"struct drm_vma_offset_manager *mgr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKIhj|ubjt )}(hhh]h)}(hManager objecth]hManager object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKIhjubah}(h]h ]h"]h$]h&]uh1js hj|ubeh}(h]h ]h"]h$]h&]uh1jQ hjhKIhjyubjR )}(hK``unsigned long page_offset`` Offset of available memory area (page-based) h](jX )}(h``unsigned long page_offset``h]j^ )}(hjh]hunsigned long page_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKJhjubjt )}(hhh]h)}(h,Offset of available memory area (page-based)h]h,Offset of available memory area (page-based)}(hjԦhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjЦhKJhjѦubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjЦhKJhjyubjR )}(hJ``unsigned long size`` Size of available address space range (page-based) h](jX )}(h``unsigned long size``h]j^ )}(hjh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKKhjubjt )}(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&]uh1hhj hKKhj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hKKhjyubeh}(h]h ]h"]h$]h&]uh1jL hj]ubh)}(h**Description**h]j7 )}(hj/h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj-ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./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 }(hjEhhhNhNubj7 )}(h**page_offset**h]h page_offset}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjEubh and }(hjEhhhNhNubj7 )}(h**size**h]hsize}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjEubh2. Both are interpreted as page-numbers, not bytes.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKPhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j+drm_vma_offset_manager_destroy (C function) c.drm_vma_offset_manager_destroyhNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chK_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK_ubj)}(hdrm_vma_offset_manager_destroyh]j)}(hdrm_vma_offset_manager_destroyh]hdrm_vma_offset_manager_destroy}(hjȧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjħubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhK_ubj>)}(h$(struct drm_vma_offset_manager *mgr)h]jD)}(h"struct drm_vma_offset_manager *mgrh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jʧsb c.drm_vma_offset_manager_destroyasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmgrh]hmgr}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjܧubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhK_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK_ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhK_hjhhubj )}(hhh]h)}(hDestroy offset managerh]hDestroy offset manager}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chK_hjdhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhK_ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj$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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKchjubjM )}(hhh]jR )}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](jX )}(h&``struct drm_vma_offset_manager *mgr``h]j^ )}(hjh]h"struct drm_vma_offset_manager *mgr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chK`hjubjt )}(hhh]h)}(hManager objecth]hManager object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK`hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhK`hjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKbhjubh)}(hDestroy an object manager which was previously created via drm_vma_offset_manager_init(). The caller must remove all allocated nodes before destroying the manager. Otherwise, drm_mm will refuse to free the requested resources.h]hDestroy an object manager which was previously created via drm_vma_offset_manager_init(). The caller must remove all allocated nodes before destroying the manager. Otherwise, drm_mm will refuse to free the requested resources.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKahjubh)}(h?The manager must not be accessed after this function is called.h]h?The manager must not be accessed after this function is called.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)drm_vma_offset_lookup_locked (C function)c.drm_vma_offset_lookup_lockedhNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKpubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhjDhKpubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjXmodnameN classnameNjj)}j]j)}j}drm_vma_offset_lookup_lockedsbc.drm_vma_offset_lookup_lockedasbuh1hhj3hhhjDhKpubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhjDhKpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhjDhKpubj)}(hdrm_vma_offset_lookup_lockedh]j)}(hjth]hdrm_vma_offset_lookup_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj3hhhjDhKpubj>)}(hN(struct drm_vma_offset_manager *mgr, unsigned long start, unsigned long pages)h](jD)}(h"struct drm_vma_offset_manager *mgrh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjϩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̩ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjѩmodnameN classnameNjj)}j]jrc.drm_vma_offset_lookup_lockedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned long pagesh](j)}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hj3hhhjDhKpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhjDhKpubah}(h]j*ah ](jjeh"]h$]h&]j j )j huh1jhjDhKphj,hhubj )}(hhh]h)}(hFind node in offset spaceh]hFind node in offset space}(hjԪhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKphjѪhhubah}(h]h ]h"]h$]h&]uh1j hj,hhhjDhKpubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj$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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKthjubjM )}(hhh](jR )}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](jX )}(h&``struct drm_vma_offset_manager *mgr``h]j^ )}(hjh]h"struct drm_vma_offset_manager *mgr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKqhjubjt )}(hhh]h)}(hManager objecth]hManager object}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKqhj+ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj*hKqhj ubjR )}(h>``unsigned long start`` Start address for object (page-based) h](jX )}(h``unsigned long start``h]j^ )}(hjNh]hunsigned long start}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjLubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKrhjHubjt )}(hhh]h)}(h%Start address for object (page-based)h]h%Start address for object (page-based)}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKrhjdubah}(h]h ]h"]h$]h&]uh1js hjHubeh}(h]h ]h"]h$]h&]uh1jQ hjchKrhj ubjR )}(h4``unsigned long pages`` Size of object (page-based) h](jX )}(h``unsigned long pages``h]j^ )}(hjh]hunsigned long pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKshjubjt )}(hhh]h)}(hSize of object (page-based)h]hSize of object (page-based)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKshjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKshj ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj«h]h Description}(hjīhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKuhjubh)}(hX)Find a node given a start address and object size. This returns the _best_ match for the given node. That is, **start** may point somewhere into a valid region and the given node will be returned, as long as the node spans the whole requested area (given the size in number of pages as **pages**).h](hnFind a node given a start address and object size. This returns the _best_ match for the given node. That is, }(hjثhhhNhNubj7 )}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjثubh 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 }(hjثhhhNhNubj7 )}(h **pages**h]hpages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjثubh).}(hjثhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKthjubh)}(hNote that before lookup the vma offset manager lookup lock must be acquired with drm_vma_offset_lock_lookup(). See there for an example. This can then be used to implement weakly referenced lookups using kref_get_unless_zero().h]hNote that before lookup the vma offset manager lookup lock must be acquired with drm_vma_offset_lock_lookup(). See there for an example. This can then be used to implement weakly referenced lookups using kref_get_unless_zero().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKyhjubh)}(h **Example**h]j7 )}(hjh]hExample}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chK}hjubj )}(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);}hj2sbah}(h]h ]h"]h$]h&]jjuh1j h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhjubh)}(h **Return**h]j7 )}(hjCh]hReturn}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjAubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhjubh)}(hReturns NULL if no suitable node can be found. Otherwise, the best match is returned. It's the caller's responsibility to make sure the node doesn't get destroyed before the caller can access it.h]hReturns NULL if no suitable node can be found. Otherwise, the best match is returned. It’s the caller’s responsibility to make sure the node doesn’t get destroyed before the caller can access it.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_vma_offset_add (C function)c.drm_vma_offset_addhNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_vma_offset_addh]j)}(hdrm_vma_offset_addh]hdrm_vma_offset_add}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubj>)}(h[(struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node, unsigned long pages)h](jD)}(h"struct drm_vma_offset_manager *mgrh](j)}(hj? h]hstruct}(hjŬhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjҬhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_vma_offset_addasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmgrh]hmgr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h struct drm_vma_offset_node *nodeh](j)}(hj? h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjWmodnameN classnameNjj)}j]jc.drm_vma_offset_addasbuh1hhj3ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned long pagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjíhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjѭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpagesh]hpages}(hj߭hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]j{ah ](jjeh"]h$]h&]j j )j huh1jhjhKhj}hhubj )}(hhh]h)}(hAdd offset node to managerh]hAdd offset node to manager}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhjhhubah}(h]h ]h"]h$]h&]uh1j hj}hhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j!j( j!j) j* j+ uh1jhhhj$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]j7 )}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj)ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhj%ubjM )}(hhh](jR )}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](jX )}(h&``struct drm_vma_offset_manager *mgr``h]j^ )}(hjJh]h"struct drm_vma_offset_manager *mgr}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjHubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhjDubjt )}(hhh]h)}(hManager objecth]hManager object}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKhj`ubah}(h]h ]h"]h$]h&]uh1js hjDubeh}(h]h ]h"]h$]h&]uh1jQ hj_hKhjAubjR )}(h6``struct drm_vma_offset_node *node`` Node to be added h](jX )}(h$``struct drm_vma_offset_node *node``h]j^ )}(hjh]h struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhj}ubjt )}(hhh]h)}(hNode to be addedh]hNode to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hj}ubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjAubjR )}(hS``unsigned long pages`` Allocation size visible to user-space (in number of pages) h](jX )}(h``unsigned long pages``h]j^ )}(hjh]hunsigned long pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhjubjt )}(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)}(hjծhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѮhKhjҮubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjѮhKhjAubeh}(h]h ]h"]h$]h&]uh1jL hj%ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhj%ubh)}(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 hhhNhNubj7 )}(h **pages**h]hpages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj 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:431: ./drivers/gpu/drm/drm_vma_manager.chKhj%ubh)}(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.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhj%ubh)}(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](j7 )}(h **pages**h]hpages}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj=ubh is not required to be the same size as the underlying memory object that you want to map. It only limits the size that user-space can map into their address space.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhj%ubh)}(h **Return**h]j7 )}(hj\h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjZubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhj%ubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_vma_offset_remove (C function)c.drm_vma_offset_removehNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_vma_offset_removeh]j)}(hdrm_vma_offset_removeh]hdrm_vma_offset_remove}(hj¯hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubj>)}(hF(struct drm_vma_offset_manager *mgr, struct drm_vma_offset_node *node)h](jD)}(h"struct drm_vma_offset_manager *mgrh](j)}(hj? h]hstruct}(hjޯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjگubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjگubh)}(hhh]j)}(hdrm_vma_offset_managerh]hdrm_vma_offset_manager}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jįsbc.drm_vma_offset_removeasbuh1hhjگubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjگubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjگubj)}(hmgrh]hmgr}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjگubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj֯ubjD)}(h struct drm_vma_offset_node *nodeh](j)}(hj? h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjpmodnameN classnameNjj)}j]jc.drm_vma_offset_removeasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj֯ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h)}(hRemove offset node from managerh]hRemove offset node from manager}(hjѰhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhjΰhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj$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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhjubjM )}(hhh](jR )}(h6``struct drm_vma_offset_manager *mgr`` Manager object h](jX )}(h&``struct drm_vma_offset_manager *mgr``h]j^ )}(hjh]h"struct drm_vma_offset_manager *mgr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhj ubjt )}(hhh]h)}(hManager objecth]hManager object}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hKhj(ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj'hKhj ubjR )}(h8``struct drm_vma_offset_node *node`` Node to be removed h](jX )}(h$``struct drm_vma_offset_node *node``h]j^ )}(hjKh]h struct drm_vma_offset_node *node}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhjEubjt )}(hhh]h)}(hNode to be removedh]hNode to be removed}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKhjaubah}(h]h ]h"]h$]h&]uh1js hjEubeh}(h]h ]h"]h$]h&]uh1jQ hj`hKhj ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhjubh)}(hXDRemove a node from the offset manager. If the node wasn't added before, this does nothing. After this call returns, the offset and size will be 0 until a new offset is allocated via drm_vma_offset_add() again. Helper functions like drm_vma_node_start() and drm_vma_node_offset_addr() will return 0 if no offset is allocated.h]hXFRemove a node from the offset manager. If the node wasn’t added before, this does nothing. After this call returns, the offset and size will be 0 until a new offset is allocated via drm_vma_offset_add() again. Helper functions like drm_vma_node_start() and drm_vma_node_offset_addr() will return 0 if no offset is allocated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_vma_node_allow (C function)c.drm_vma_node_allowhNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj˱hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDZhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM'ubj)}(h h]h }(hjڱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDZhhhjٱhM'ubj)}(hdrm_vma_node_allowh]j)}(hdrm_vma_node_allowh]hdrm_vma_node_allow}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjDZhhhjٱhM'ubj>)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](jD)}(h struct drm_vma_offset_node *nodeh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj(modnameN classnameNjj)}j]j)}j}jsbc.drm_vma_node_allowasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_file *tagh](j)}(hj? h]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jBc.drm_vma_node_allowasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjIJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(htagh]htag}(hjѲhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjDZhhhjٱhM'ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjñhhhjٱhM'ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjٱhM'hjhhubj )}(hhh]h)}(h&Add open-file to list of allowed usersh]h&Add open-file to list of allowed users}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM'hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjٱhM'ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj$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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM+hjubjM )}(hhh](jR )}(h4``struct drm_vma_offset_node *node`` Node to modify h](jX )}(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&]uh1j] hj:ubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM(hj6ubjt )}(hhh]h)}(hNode to modifyh]hNode to modify}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM(hjRubah}(h]h ]h"]h$]h&]uh1js hj6ubeh}(h]h ]h"]h$]h&]uh1jQ hjQhM(hj3ubjR )}(h/``struct drm_file *tag`` Tag of file to remove h](jX )}(h``struct drm_file *tag``h]j^ )}(hjuh]hstruct drm_file *tag}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM)hjoubjt )}(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&]uh1js hjoubeh}(h]h ]h"]h$]h&]uh1jQ hjhM)hj3ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM+hjubh)}(h~Add **tag** to the list of allowed open-files for this node. If **tag** is already on this list, the ref-count is incremented.h](hAdd }(hjƳhhhNhNubj7 )}(h**tag**h]htag}(hjγhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjƳubh5 to the list of allowed open-files for this node. If }(hjƳhhhNhNubj7 )}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjƳubh7 is already on this list, the ref-count is incremented.}(hjƳhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM*hjubh)}(hThe list of allowed-users is preserved across drm_vma_offset_add() and drm_vma_offset_remove() calls. You may even call it if the node is currently not added to any offset-manager.h]hThe list of allowed-users is preserved across drm_vma_offset_add() and drm_vma_offset_remove() calls. You may even call it if the node is currently not added to any offset-manager.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM-hjubh)}(hYou must remove all open-files the same number of times as you added them before destroying the node. Otherwise, you will leak memory.h]hYou must remove all open-files the same number of times as you added them before destroying the node. Otherwise, you will leak memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./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:431: ./drivers/gpu/drm/drm_vma_manager.chM4hjubh)}(h **Return**h]j7 )}(hj(h]hReturn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj&ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM6hjubh)}(hB0 on success, negative error code on internal failure (out-of-mem)h]hB0 on success, negative error code on internal failure (out-of-mem)}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM7hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_vma_node_allow_once (C function)c.drm_vma_node_allow_oncehNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMAubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj{hMAubj)}(hdrm_vma_node_allow_onceh]j)}(hdrm_vma_node_allow_onceh]hdrm_vma_node_allow_once}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjihhhj{hMAubj>)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](jD)}(h struct drm_vma_offset_node *nodeh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjȴhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŴubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjʴmodnameN classnameNjj)}j]j)}j}jsbc.drm_vma_node_allow_onceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_file *tagh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj<modnameN classnameNjj)}j]jc.drm_vma_node_allow_onceasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htagh]htag}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjihhhj{hMAubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhj{hMAubah}(h]j`ah ](jjeh"]h$]h&]j j )j huh1jhj{hMAhjbhhubj )}(hhh]h)}(h&Add open-file to list of allowed usersh]h&Add open-file to list of allowed users}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMAhjhhubah}(h]h ]h"]h$]h&]uh1j hjbhhhj{hMAubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj$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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMEhjubjM )}(hhh](jR )}(h4``struct drm_vma_offset_node *node`` Node to modify h](jX )}(h$``struct drm_vma_offset_node *node``h]j^ )}(hj޵h]h struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjܵubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMBhjصubjt )}(hhh]h)}(hNode to modifyh]hNode to modify}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1js hjصubeh}(h]h ]h"]h$]h&]uh1jQ hjhMBhjյubjR )}(h/``struct drm_file *tag`` Tag of file to remove h](jX )}(h``struct drm_file *tag``h]j^ )}(hjh]hstruct drm_file *tag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMChjubjt )}(hhch]h)}(hTag of file to removeh]hTag of file to remove}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMChj-ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj,hMChjյubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjPubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMEhjubh)}(h)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](jD)}(h struct drm_vma_offset_node *nodeh](j)}(hj? h]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjZmodnameN classnameNjj)}j]j)}j}j sbc.drm_vma_node_revokeasbuh1hhj6ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj2ubjD)}(hstruct drm_file *tagh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjʷhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǷubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj̷modnameN classnameNjj)}j]jtc.drm_vma_node_revokeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htagh]htag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj2ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj hMZubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMZubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj hMZhjhhubj )}(hhh]h)}(h+Remove open-file from list of allowed usersh]h+Remove open-file from list of allowed users}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMZhj*hhubah}(h]h ]h"]h$]h&]uh1j hjhhhj hMZubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jEj( jEj) j* j+ uh1jhhhj$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]j7 )}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjMubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM^hjIubjM )}(hhh](jR )}(h4``struct drm_vma_offset_node *node`` Node to modify h](jX )}(h$``struct drm_vma_offset_node *node``h]j^ )}(hjnh]h struct drm_vma_offset_node *node}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM[hjhubjt )}(hhh]h)}(hNode to modifyh]hNode to modify}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1js hjhubeh}(h]h ]h"]h$]h&]uh1jQ hjhM[hjeubjR )}(h/``struct drm_file *tag`` Tag of file to remove h](jX )}(h``struct drm_file *tag``h]j^ )}(hjh]hstruct drm_file *tag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM\hjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM\hjeubeh}(h]h ]h"]h$]h&]uh1jL hjIubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM^hjIubh)}(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 }(hjhhhNhNubj7 )}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh& in the list of allowed open-files on }(hjhhhNhNubj7 )}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh). If the ref-count drops to zero, remove }(hjhhhNhNubj7 )}(h**tag**h]htag}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubhJ from the list. You must call this once for every drm_vma_node_allow() on }(hjhhhNhNubj7 )}(h**tag**h]htag}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chM]hjIubh)}(h4This is locked against concurrent access internally.h]h4This is locked against concurrent access internally.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMahjIubh)}(h/If **tag** is not on the list, nothing is done.h](hIf }(hj^hhhNhNubj7 )}(h**tag**h]htag}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj^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:431: ./drivers/gpu/drm/drm_vma_manager.chMchjIubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_vma_node_is_allowed (C function)c.drm_vma_node_is_allowedhNtauh1jhj$hhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_vma_node_is_allowedh]j)}(hdrm_vma_node_is_allowedh]hdrm_vma_node_is_allowed}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h8(struct drm_vma_offset_node *node, struct drm_file *tag)h](jD)}(h struct drm_vma_offset_node *nodeh](j)}(hj? h]hstruct}(hj۹hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׹ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׹ubh)}(hhh]j)}(hdrm_vma_offset_nodeh]hdrm_vma_offset_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_vma_node_is_allowedasbuh1hhj׹ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׹ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׹ubj)}(hnodeh]hnode}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׹ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjӹubjD)}(hstruct drm_file *tagh](j)}(hj? h]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmmodnameN classnameNjj)}j]jc.drm_vma_node_is_allowedasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(htagh]htag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjӹubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(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:431: ./drivers/gpu/drm/drm_vma_manager.chMhj˺hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhj$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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMhjubjM )}(hhh](jR )}(h3``struct drm_vma_offset_node *node`` Node to check h](jX )}(h$``struct drm_vma_offset_node *node``h]j^ )}(hjh]h struct drm_vma_offset_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMhj ubjt )}(hhh]h)}(h Node to checkh]h Node to check}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj$hMhjubjR )}(h/``struct drm_file *tag`` Tag of file to remove h](jX )}(h``struct drm_file *tag``h]j^ )}(hjHh]hstruct drm_file *tag}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]uh1jW h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMhjBubjt )}(hhh]h)}(hTag of file to removeh]hTag of file to remove}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1js hjBubeh}(h]h ]h"]h$]h&]uh1jQ hj]hMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMhjubh)}(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 }(hjhhhNhNubj7 )}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh whether }(hjhhhNhNubj7 )}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubhK is currently on the list of allowed open-files (see drm_vma_node_allow()).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMhjubh)}(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:431: ./drivers/gpu/drm/drm_vma_manager.chMhjubh)}(h **Return**h]j7 )}(hjݻh]hReturn}(hj߻hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjۻubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMhjubh)}(htrue if **filp** is on the listh](htrue if }(hjhhhNhNubj7 )}(h**filp**h]hfilp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh is on the list}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:431: ./drivers/gpu/drm/drm_vma_manager.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj$hhhNhNubhtarget)}(h.. _prime_buffer_sharing:h]h}(h]h ]h"]h$]h&]hjuh1jhMhj$hhhhubeh}(h]jah ]h"]vma offset managerah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hPRIME Buffer Sharingh]hPRIME Buffer Sharing}(hj1hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj.hhhhhMubh)}(hPRIME is the cross device buffer sharing framework in drm, originally created for the OPTIMUS range of multi-gpu platforms. To userspace PRIME buffers are dma-buf based file descriptors.h]hPRIME is the cross device buffer sharing framework in drm, originally created for the OPTIMUS range of multi-gpu platforms. To userspace PRIME buffers are dma-buf based file descriptors.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.hhubh)}(hhh](h)}(hOverview and Lifetime Rulesh]hOverview and Lifetime Rules}(hjPhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjMhhhhhMubh)}(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:446: ./drivers/gpu/drm/drm_prime.chK/hjMhhubh)}(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 }(hjmhhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j^ )}(hjwh]hdrm_driver.gem_prime_import}(hjyhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjuubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:446: ./drivers/gpu/drm/drm_prime.chK5hjmubh hooks. }(hjmhhhNhNubh)}(h:c:type:`dma_buf_ops`h]j^ )}(hjh]h dma_buf_ops}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_buf_opsuh1hhjhK5hjmubh{ implementations for drivers are all individually exported for drivers which need to overwrite or reimplement some of them.}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK5hjMhhubh)}(hhh](h)}(h"Reference Counting for GEM Driversh]h"Reference Counting for GEM Drivers}(hjżhhhNhNubah}(h]h ]h"]h$]h&]hj;uh1hhj¼hNhNubh)}(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 }(hjӼhhhNhNubh)}(h:c:type:`dma_buf`h]j^ )}(hjݼh]hdma_buf}(hj߼hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjۼubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_bufuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:446: ./drivers/gpu/drm/drm_prime.chK=hjӼubh< holds a reference to the exported buffer object, usually a }(hjӼhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjhK=hjӼubhO. It takes this reference in the PRIME_HANDLE_TO_FD IOCTL, when it first calls }(hjӼhhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.export `h]j^ )}(hj$h]hdrm_gem_object_funcs.export}(hj&hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj"ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhjhK=hjӼubh, and stores the exporting GEM object in the }(hjӼhhhNhNubh)}(h :c:type:`dma_buf.priv `h]j^ )}(hjGh]h dma_buf.priv}(hjIhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjEubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_bufuh1hhjhK=hjӼubhL field. This reference needs to be released when the final reference to the }(hjӼhhhNhNubh)}(h:c:type:`dma_buf`h]j^ )}(hjjh]hdma_buf}(hjlhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjhubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_bufuh1hhjhK=hjӼubh itself is dropped and its }(hjӼhhhNhNubh)}(h+:c:type:`dma_buf_ops.release `h]j^ )}(hjh]hdma_buf_ops.release}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_buf_opsuh1hhjhK=hjӼubh1 function is called. For GEM-based drivers, the }(hjӼhhhNhNubh)}(h:c:type:`dma_buf`h]j^ )}(hjh]hdma_buf}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_bufuh1hhjhK=hjӼubh` should be exported using drm_gem_dmabuf_export() and then released by drm_gem_dmabuf_release().}(hjӼhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK=hj¼ubh)}(hXtThus the chain of references always flows in one direction, avoiding loops: importing GEM object -> dma-buf -> exported GEM bo. A further complication are the lookup caches for import and export. These are required to guarantee that any given object will always have only one unique userspace handle. This is required to allow userspace to detect duplicated imports, since some GEM drivers do fail command submissions if a given buffer object is listed more than once. These import and export caches in :c:type:`drm_prime_file_private` only retain a weak reference, which is cleaned up when the corresponding object is released.h](hXThus the chain of references always flows in one direction, avoiding loops: importing GEM object -> dma-buf -> exported GEM bo. A further complication are the lookup caches for import and export. These are required to guarantee that any given object will always have only one unique userspace handle. This is required to allow userspace to detect duplicated imports, since some GEM drivers do fail command submissions if a given buffer object is listed more than once. These import and export caches in }(hj׽hhhNhNubh)}(h :c:type:`drm_prime_file_private`h]j^ )}(hjh]hdrm_prime_file_private}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj߽ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_prime_file_privateuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:446: ./drivers/gpu/drm/drm_prime.chKFhj׽ubh] only retain a weak reference, which is cleaned up when the corresponding object is released.}(hj׽hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKFhj¼ubh)}(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:446: ./drivers/gpu/drm/drm_prime.chKPhj¼ubeh}(h]jAah ]h"]"reference counting for gem driversah$]h&]uh1hhjMhhhNhNubeh}(h]j"ah ]h"]overview and lifetime rulesah$]h&]uh1hhj.hhhhhMubh)}(hhh](h)}(hPRIME Helper Functionsh]hPRIME Helper Functions}(hj)hhhNhNubah}(h]h ]h"]h$]h&]hjiuh1hhj&hhhhhMubh)}(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 }(hj7hhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.export `h]j^ )}(hjAh]hdrm_gem_object_funcs.export}(hjChhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj?ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:452: ./drivers/gpu/drm/drm_prime.chM(hj7ubh and }(hj7hhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j^ )}(hjeh]hdrm_driver.gem_prime_import}(hjghhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjcubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhj^hM(hj7ubh 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:}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hM(hj&hhubh)}(hhh](h)}(hExporting buffersh]hExporting buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhNhNubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:452: ./drivers/gpu/drm/drm_prime.chM1hjubh. If }(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 ](j j! c-typeeh"]h$]h&]uh1j] hjɾubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhjľhM1hjubh< is unimplemented, exports into another device are rejected.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjľhM1hjubh)}(hFor kernel-internal access there's drm_gem_dmabuf_vmap() and drm_gem_dmabuf_vunmap(). Userspace mmap support is provided by drm_gem_dmabuf_mmap().h]hFor kernel-internal access there’s drm_gem_dmabuf_vmap() and drm_gem_dmabuf_vunmap(). Userspace mmap support is provided by drm_gem_dmabuf_mmap().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:452: ./drivers/gpu/drm/drm_prime.chM7hjubh)}(hNote that these export helpers can only be used if the underlying backing storage is fully coherent and either permanently pinned, or it is safe to pin it indefinitely.h]hNote that these export helpers can only be used if the underlying backing storage is fully coherent and either permanently pinned, or it is safe to pin it indefinitely.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:452: ./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:452: ./drivers/gpu/drm/drm_prime.chM?hjubeh}(h]jah ]h"]exporting buffersah$]h&]uh1hhj&hhhNhNubh)}(hhh](h)}(hImporting buffersh]hImporting buffers}(hj)hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj&hNhNubh)}(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 }(hj7hhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j^ )}(hjAh]h$drm_driver.gem_prime_import_sg_table}(hjChhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj?ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:452: ./drivers/gpu/drm/drm_prime.chMDhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hMDhj&ubh)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:452: ./drivers/gpu/drm/drm_prime.chMGhj&ubeh}(h]jah ]h"]importing buffersah$]h&]uh1hhj&hhhNhNubeh}(h]joah ]h"]prime helper functionsah$]h&]uh1hhj.hhhhhMubh)}(hhh](h)}(hPRIME Function Referencesh]hPRIME Function References}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhMubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_prime_file_private (C struct)c.drm_prime_file_privatehNtauh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:458: ./include/drm/drm_prime.hhNubj)}(hhh](j)}(hdrm_prime_file_privateh]j)}(hstruct drm_prime_file_privateh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:458: ./include/drm/drm_prime.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_prime_file_privateh]j)}(hjh]hdrm_prime_file_private}(hjѿhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͿubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h)}(hper-file tracking for PRIMEh]hper-file tracking for PRIME}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:458: ./include/drm/drm_prime.hhK(hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhjhjhNubj- )}(hE**Definition**:: struct drm_prime_file_private { }; **Members**h](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:458: ./include/drm/drm_prime.hhK,hjubj )}(h"struct drm_prime_file_private { };h]h"struct drm_prime_file_private { };}hj0sbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:458: ./include/drm/drm_prime.hhK.hjubh)}(h **Members**h]j7 )}(hjAh]hMembers}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj?ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:458: ./include/drm/drm_prime.hhK1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhjhNubh)}(h**Description**h]j7 )}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj^ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:458: ./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 }(hjvhhhNhNubh)}(h":c:type:`struct dma_buf `h]j^ )}(hjh]hstruct dma_buf}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj~ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_bufuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:458: ./include/drm/drm_prime.hhK)hjvubh and handle caches for each }(hjvhhhNhNubh)}(h$:c:type:`struct drm_file `h]j^ )}(hjh]hstruct drm_file}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_fileuh1hhjhK)hjvubh used by the PRIME core code.}(hjvhhhNhNubeh}(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_exporthNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_gem_dmabuf_exportsbc.drm_gem_dmabuf_exportasbuh1hhjhhhjhKubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_gem_dmabuf_exporth]j)}(hj!h]hdrm_gem_dmabuf_export}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubj>)}(h>(struct drm_device *dev, struct dma_buf_export_info *exp_info)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj~modnameN classnameNjj)}j]jc.drm_gem_dmabuf_exportasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjVubjD)}(h$struct dma_buf_export_info *exp_infoh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_buf_export_infoh]hdma_buf_export_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dmabuf_exportasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hexp_infoh]hexp_info}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjVubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h)}(h/:c:type:`dma_buf` export implementation for GEMh](h)}(h:c:type:`dma_buf`h]j^ )}(hjUh]hdma_buf}(hjWhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjSubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gem_dmabuf_exportasbj dma_bufuh1hhjhKhjOubh export implementation for GEM}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chKhjLhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chKhjubjM )}(hhh](jR )}(hA``struct drm_device *dev`` parent device for the exported dmabuf h](jX )}(h``struct drm_device *dev``h]j^ )}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chKhjubjt )}(hhh]h)}(h%parent device for the exported dmabufh]h%parent device for the exported dmabuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(hY``struct dma_buf_export_info *exp_info`` the export information used by dma_buf_export() h](jX )}(h(``struct dma_buf_export_info *exp_info``h]j^ )}(hjh]h$struct dma_buf_export_info *exp_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chKhjubjt )}(hhh]h)}(h/the export information used by dma_buf_export()h]h/the export information used by dma_buf_export()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj(h]h Description}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./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 }(hj>hhhNhNubh)}(h:c:type:`drm_device`h]j^ )}(hjHh]h drm_device}(hjJhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chKhj>ubh and the exported }(hj>hhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjlh]hdrm_gem_object}(hjnhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjehKhj>ubh (stored in }(hj>hhhNhNubh)}(h8:c:type:`dma_buf_export_info.priv `h]j^ )}(hjh]hdma_buf_export_info.priv}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_buf_export_infouh1hhjehKhj>ubh0) which is released by drm_gem_dmabuf_release().}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjehKhjubh)}(hReturns the new dmabuf.h]hReturns the new dmabuf.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_gem_dmabuf_release (C function)c.drm_gem_dmabuf_releasehNtauh1jhjhhhNhNubj)}(hhh](j)}(h5void drm_gem_dmabuf_release (struct dma_buf *dma_buf)h]j)}(h4void drm_gem_dmabuf_release(struct dma_buf *dma_buf)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_dmabuf_releaseh]j)}(hdrm_gem_dmabuf_releaseh]hdrm_gem_dmabuf_release}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h(struct dma_buf *dma_buf)h]jD)}(hstruct dma_buf *dma_bufh](j)}(hj? h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjBmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_dmabuf_releaseasbuh1hhjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdma_bufh]hdma_buf}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h0:c:type:`dma_buf` release implementation for GEMh](h)}(h:c:type:`dma_buf`h]j^ )}(hjh]hdma_buf}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j\c.drm_gem_dmabuf_releaseasbj dma_bufuh1hhjhKhjubh release implementation for GEM}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjM )}(hhh]jR )}(h2``struct dma_buf *dma_buf`` buffer to be released h](jX )}(h``struct dma_buf *dma_buf``h]j^ )}(hj h]hstruct dma_buf *dma_buf}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hbuffer to be releasedh]hbuffer to be released}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjCubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh)}(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^ )}(hjeh]h dma_buf_ops}(hjghhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjcubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./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&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'drm_gem_prime_fd_to_handle (C function)c.drm_gem_prime_fd_to_handlehNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_prime_fd_to_handleh]j)}(hdrm_gem_prime_fd_to_handleh]hdrm_gem_prime_fd_to_handle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(hT(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}jsbc.drm_gem_prime_fd_to_handleasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_file *file_privh](j)}(hj? h]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj|modnameN classnameNjj)}j]j$c.drm_gem_prime_fd_to_handleasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h file_privh]h file_priv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h int prime_fdh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprime_fdh]hprime_fd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(huint32_t *handleh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j$c.drm_gem_prime_fd_to_handleasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hhandleh]hhandle}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h%PRIME import function for GEM driversh]h%PRIME import function for GEM drivers}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjdhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjM )}(hhh](jR )}(h5``struct drm_device *dev`` drm_device to import into h](jX )}(h``struct drm_device *dev``h]j^ )}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hdrm_device to import intoh]hdrm_device to import into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h:``struct drm_file *file_priv`` drm file-private structure h](jX )}(h``struct drm_file *file_priv``h]j^ )}(hjh]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hdrm file-private structureh]hdrm file-private structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h?``int prime_fd`` fd id of the dma-buf which should be imported h](jX )}(h``int prime_fd``h]j^ )}(hjh]h int prime_fd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(h-fd id of the dma-buf which should be importedh]h-fd id of the dma-buf which should be imported}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj/hMhjubjR )}(hU``uint32_t *handle`` pointer to storage for the handle of the imported buffer object h](jX )}(h``uint32_t *handle``h]j^ )}(hjSh]huint32_t *handle}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjQubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjMubjt )}(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}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1js hjMubeh}(h]h ]h"]h$]h&]uh1jQ hjhhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hXThis is the PRIME import function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual importing of GEM object from the dma-buf is done through the :c:type:`drm_driver.gem_prime_import ` driver callback.h](hThis is the PRIME import function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual importing of GEM object from the dma-buf is done through the }(hjhhhNhNubh)}(h2:c:type:`drm_driver.gem_prime_import `h]j^ )}(hjh]hdrm_driver.gem_prime_import}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh driver callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j+drm_gem_prime_handle_to_dmabuf (C function) c.drm_gem_prime_handle_to_dmabufhNtauh1jhjhhhNhNubj)}(hhh](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]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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj&modnameN classnameNjj)}j]j)}j}drm_gem_prime_handle_to_dmabufsb c.drm_gem_prime_handle_to_dmabufasbuh1hhjhhhjhMubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_prime_handle_to_dmabufh]j)}(hjBh]hdrm_gem_prime_handle_to_dmabuf}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(hU(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j@ c.drm_gem_prime_handle_to_dmabufasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjwubjD)}(hstruct drm_file *file_privh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j@ c.drm_gem_prime_handle_to_dmabufasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h file_privh]h file_priv}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjwubjD)}(huint32_t handleh](h)}(hhh]j)}(huint32_th]huint32_t}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjdmodnameN classnameNjj)}j]j@ c.drm_gem_prime_handle_to_dmabufasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjwubjD)}(huint32_t flagsh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j@ c.drm_gem_prime_handle_to_dmabufasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjwubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(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:461: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjM )}(hhh](jR )}(h9``struct drm_device *dev`` dev to export the buffer from h](jX )}(h``struct drm_device *dev``h]j^ )}(hjAh]hstruct drm_device *dev}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj?ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj;ubjt )}(hhh]h)}(hdev to export the buffer fromh]hdev to export the buffer from}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1js hj;ubeh}(h]h ]h"]h$]h&]uh1jQ hjVhMhj8ubjR )}(h:``struct drm_file *file_priv`` drm file-private structure h](jX )}(h``struct drm_file *file_priv``h]j^ )}(hjzh]hstruct drm_file *file_priv}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjxubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjtubjt )}(hhh]h)}(hdrm file-private structureh]hdrm file-private structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjtubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj8ubjR )}(h,``uint32_t handle`` buffer handle to export h](jX )}(h``uint32_t handle``h]j^ )}(hjh]huint32_t handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hbuffer handle to exporth]hbuffer handle to export}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj8ubjR )}(h*``uint32_t flags`` flags like DRM_CLOEXEC h](jX )}(h``uint32_t flags``h]j^ )}(hjh]huint32_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hflags like DRM_CLOEXECh]hflags like DRM_CLOEXEC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj8ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj%ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hX This is the PRIME export function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual exporting from GEM object to a dma-buf is done through the :c:type:`drm_gem_object_funcs.export ` callback.h](hThis is the PRIME export function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual exporting from GEM object to a dma-buf is done through the }(hj=hhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.export `h]j^ )}(hjGh]hdrm_gem_object_funcs.export}(hjIhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjEubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj=ubh callback.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjdhMhjubh)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'drm_gem_prime_handle_to_fd (C function)c.drm_gem_prime_handle_to_fdhNtauh1jhjhhhNhNubj)}(hhh](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]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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_prime_handle_to_fdh]j)}(hdrm_gem_prime_handle_to_fdh]hdrm_gem_prime_handle_to_fd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(hd(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_prime_handle_to_fdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_file *file_privh](j)}(hj? h]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmmodnameN classnameNjj)}j]jc.drm_gem_prime_handle_to_fdasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h file_privh]h file_priv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(huint32_t handleh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_prime_handle_to_fdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(huint32_t flagsh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]jc.drm_gem_prime_handle_to_fdasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h int *prime_fdh](j)}(hinth]hint}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hprime_fdh]hprime_fd}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(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:461: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjM )}(hhh](jR )}(h9``struct drm_device *dev`` dev to export the buffer from h](jX )}(h``struct drm_device *dev``h]j^ )}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hdev to export the buffer fromh]hdev to export the buffer from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h:``struct drm_file *file_priv`` drm file-private structure h](jX )}(h``struct drm_file *file_priv``h]j^ )}(hjh]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hdrm file-private structureh]hdrm file-private structure}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj/hMhjubjR )}(h,``uint32_t handle`` buffer handle to export h](jX )}(h``uint32_t handle``h]j^ )}(hjSh]huint32_t handle}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjQubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjMubjt )}(hhh]h)}(hbuffer handle to exporth]hbuffer handle to export}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1js hjMubeh}(h]h ]h"]h$]h&]uh1jQ hjhhMhjubjR )}(h*``uint32_t flags`` flags like DRM_CLOEXEC h](jX )}(h``uint32_t flags``h]j^ )}(hjh]huint32_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hflags like DRM_CLOEXECh]hflags like DRM_CLOEXEC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hI``int *prime_fd`` pointer to storage for the fd id of the create dma-buf h](jX )}(h``int *prime_fd``h]j^ )}(hjh]h int *prime_fd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hX This is the PRIME export function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual exporting from GEM object to a dma-buf is done through the :c:type:`drm_gem_object_funcs.export ` callback.h](hThis is the PRIME export function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual exporting from GEM object to a dma-buf is done through the }(hjhhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.export `h]j^ )}(hj h]hdrm_gem_object_funcs.export}(hj"hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj=hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_map_attach (C function)c.drm_gem_map_attachhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMOubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjvhMOubj)}(hdrm_gem_map_attachh]j)}(hdrm_gem_map_attachh]hdrm_gem_map_attach}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjdhhhjvhMOubj>)}(h<(struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h](jD)}(hstruct dma_buf *dma_bufh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_map_attachasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h!struct dma_buf_attachment *attachh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj7modnameN classnameNjj)}j]jc.drm_gem_map_attachasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hattachh]hattach}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjdhhhjvhMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjvhMOubah}(h]j[ah ](jjeh"]h$]h&]j j )j huh1jhjvhMOhj]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:461: ./drivers/gpu/drm/drm_prime.chMOhjhhubah}(h]h ]h"]h$]h&]uh1j hj]hhhjvhMOubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMShjubjM )}(hhh](jR )}(h7``struct dma_buf *dma_buf`` buffer to attach device to h](jX )}(h``struct dma_buf *dma_buf``h]j^ )}(hjh]hstruct dma_buf *dma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMPhjubjt )}(hhh]h)}(hbuffer to attach device toh]hbuffer to attach device to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMPhjubjR )}(h=``struct dma_buf_attachment *attach`` buffer attachment data h](jX )}(h%``struct dma_buf_attachment *attach``h]j^ )}(hjh]h!struct dma_buf_attachment *attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMQhj ubjt )}(hhh]h)}(hbuffer attachment datah]hbuffer attachment data}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMQhj(ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj'hMQhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjKubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMShjubh)}(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 }(hjchhhNhNubh)}(h9:c:type:`drm_gem_object_funcs.pin `h]j^ )}(hjmh]hdrm_gem_object_funcs.pin}(hjohhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjkubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMRhjcubh7 for device specific handling. This can be used as the }(hjchhhNhNubh)}(h*:c:type:`dma_buf_ops.attach `h]j^ )}(hjh]hdma_buf_ops.attach}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_buf_opsuh1hhjhMRhjcubh; callback. Must be used together with drm_gem_map_detach().}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMRhjubh)}(h5Returns 0 on success, negative error code on failure.h]h5Returns 0 on success, negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMVhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_map_detach (C function)c.drm_gem_map_detachhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMuubj)}(hdrm_gem_map_detachh]j)}(hdrm_gem_map_detachh]hdrm_gem_map_detach}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMuubj>)}(h<(struct dma_buf *dma_buf, struct dma_buf_attachment *attach)h](jD)}(hstruct dma_buf *dma_bufh](j)}(hj? h]hstruct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjDmodnameN classnameNjj)}j]j)}j}j sbc.drm_gem_map_detachasbuh1hhj ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hdma_bufh]hdma_buf}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h!struct dma_buf_attachment *attachh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j^c.drm_gem_map_detachasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hattachh]hattach}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMuubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMuhjhhubj )}(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:461: ./drivers/gpu/drm/drm_prime.chMuhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMuubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j/j( j/j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj7ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMyhj3ubjM )}(hhh](jR )}(h2``struct dma_buf *dma_buf`` buffer to detach from h](jX )}(h``struct dma_buf *dma_buf``h]j^ )}(hjXh]hstruct dma_buf *dma_buf}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjVubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMvhjRubjt )}(hhh]h)}(hbuffer to detach fromh]hbuffer to detach from}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMvhjnubah}(h]h ]h"]h$]h&]uh1js hjRubeh}(h]h ]h"]h$]h&]uh1jQ hjmhMvhjOubjR )}(h@``struct dma_buf_attachment *attach`` attachment to be detached h](jX )}(h%``struct dma_buf_attachment *attach``h]j^ )}(hjh]h!struct dma_buf_attachment *attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMwhjubjt )}(hhh]h)}(hattachment to be detachedh]hattachment to be detached}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMwhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMwhjOubeh}(h]h ]h"]h$]h&]uh1jL hj3ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMyhj3ubh)}(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 }(hjhhhNhNubh)}(h9:c:type:`drm_gem_object_funcs.pin `h]j^ )}(hjh]hdrm_gem_object_funcs.pin}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMxhjubh* for device specific handling. Cleans up }(hjhhhNhNubh)}(h:c:type:`dma_buf_attachment`h]j^ )}(hjh]hdma_buf_attachment}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_buf_attachmentuh1hhj hMxhjubh4 from drm_gem_map_attach(). This can be used as the }(hjhhhNhNubh)}(h*:c:type:`dma_buf_ops.detach `h]j^ )}(hj3h]hdma_buf_ops.detach}(hj5hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj1ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_buf_opsuh1hhj hMxhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMxhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gem_map_dma_buf (C function)c.drm_gem_map_dma_bufhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjhMubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_gem_map_dma_bufsbc.drm_gem_map_dma_bufasbuh1hhjvhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjhMubj)}(hdrm_gem_map_dma_bufh]j)}(hjh]hdrm_gem_map_dma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjvhhhjhMubj>)}(h@(struct dma_buf_attachment *attach, enum dma_data_direction dir)h](jD)}(h!struct dma_buf_attachment *attachh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_map_dma_bufasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hattachh]hattach}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(henum dma_data_direction dirh](j)}(hjh]henum}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]j)}(hdma_data_directionh]hdma_data_direction}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_map_dma_bufasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjvhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjhMubah}(h]jmah ](jjeh"]h$]h&]j j )j huh1jhjhMhjohhubj )}(hhh]h)}(h"map_dma_buf implementation for GEMh]h"map_dma_buf implementation for GEM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjohhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjM )}(hhh](jR )}(hU``struct dma_buf_attachment *attach`` attachment whose scatterlist is to be returned h](jX )}(h%``struct dma_buf_attachment *attach``h]j^ )}(hjh]h!struct dma_buf_attachment *attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(h.attachment whose scatterlist is to be returnedh]h.attachment whose scatterlist is to be returned}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj.hMhjubjR )}(h:``enum dma_data_direction dir`` direction of DMA transfer h](jX )}(h``enum dma_data_direction dir``h]j^ )}(hjRh]henum dma_data_direction dir}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjPubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjLubjt )}(hhh]h)}(hdirection of DMA transferh]hdirection of DMA transfer}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1js hjLubeh}(h]h ]h"]h$]h&]uh1jQ hjghMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hCalls :c:type:`drm_gem_object_funcs.get_sg_table ` and then maps the scatterlist. This can be used as the :c:type:`dma_buf_ops.map_dma_buf ` callback. Should be used together with drm_gem_unmap_dma_buf().h](hCalls }(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./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^ )}(hjh]hdma_buf_ops.map_dma_buf}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_buf_opsuh1hhjhMhjubh@ callback. Should be used together with drm_gem_unmap_dma_buf().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hsg_table containing the scatterlist to be returned; returns ERR_PTR on error. May return -EINTR if it is interrupted by a signal.h]hsg_table containing the scatterlist to be returned; returns ERR_PTR on error. May return -EINTR if it is interrupted by a signal.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_gem_unmap_dma_buf (C function)c.drm_gem_unmap_dma_bufhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhMubj)}(hdrm_gem_unmap_dma_bufh]j)}(hdrm_gem_unmap_dma_bufh]hdrm_gem_unmap_dma_buf}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj;hhhjMhMubj>)}(hV(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir)h](jD)}(h!struct dma_buf_attachment *attachh](j)}(hj? h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]j)}(hdma_buf_attachmenth]hdma_buf_attachment}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jbsbc.drm_gem_unmap_dma_bufasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hattachh]hattach}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjtubjD)}(hstruct sg_table *sgth](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_unmap_dma_bufasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsgth]hsgt}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjtubjD)}(henum dma_data_direction dirh](j)}(hjh]henum}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j)}(hdma_data_directionh]hdma_data_direction}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj~modnameN classnameNjj)}j]jc.drm_gem_unmap_dma_bufasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjtubeh}(h]h ]h"]h$]h&]jjuh1j=hj;hhhjMhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhjMhMubah}(h]j2ah ](jjeh"]h$]h&]j j )j huh1jhjMhMhj4hhubj )}(hhh]h)}(h$unmap_dma_buf implementation for GEMh]h$unmap_dma_buf implementation for GEM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj4hhhjMhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjM )}(hhh](jR )}(hF``struct dma_buf_attachment *attach`` attachment to unmap buffer from h](jX )}(h%``struct dma_buf_attachment *attach``h]j^ )}(hjh]h!struct dma_buf_attachment *attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj ubjt )}(hhh]h)}(hattachment to unmap buffer fromh]hattachment to unmap buffer from}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMhj)ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj(hMhj ubjR )}(hA``struct sg_table *sgt`` scatterlist info of the buffer to unmap h](jX )}(h``struct sg_table *sgt``h]j^ )}(hjLh]hstruct sg_table *sgt}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjJubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjFubjt )}(hhh]h)}(h'scatterlist info of the buffer to unmaph]h'scatterlist info of the buffer to unmap}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjbubah}(h]h ]h"]h$]h&]uh1js hjFubeh}(h]h ]h"]h$]h&]uh1jQ hjahMhj ubjR )}(h:``enum dma_data_direction dir`` direction of DMA transfer h](jX )}(h``enum dma_data_direction dir``h]j^ )}(hjh]henum dma_data_direction dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hdirection of DMA transferh]hdirection of DMA transfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hSThis can be used as the :c:type:`dma_buf_ops.unmap_dma_buf ` callback.h](hThis can be used as the }(hjhhhNhNubh)}(h1:c:type:`dma_buf_ops.unmap_dma_buf `h]j^ )}(hjh]hdma_buf_ops.unmap_dma_buf}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gem_dmabuf_vmap (C function)c.drm_gem_dmabuf_vmaphNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj6hMubj)}(hdrm_gem_dmabuf_vmaph]j)}(hdrm_gem_dmabuf_vmaph]hdrm_gem_dmabuf_vmap}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jhj$hhhj6hMubj>)}(h0(struct dma_buf *dma_buf, struct iosys_map *map)h](jD)}(hstruct dma_buf *dma_bufh](j)}(hj? h]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jKsbc.drm_gem_dmabuf_vmapasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj]ubjD)}(hstruct iosys_map *maph](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_dmabuf_vmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmaph]hmap}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj]ubeh}(h]h ]h"]h$]h&]jjuh1j=hj$hhhj6hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj6hMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj6hMhjhhubj )}(hhh]h)}(h#dma_buf vmap implementation for GEMh]h#dma_buf vmap implementation for GEM}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjUhhubah}(h]h ]h"]h$]h&]uh1j hjhhhj6hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jpj( jpj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjxubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjtubjM )}(hhh](jR )}(h0``struct dma_buf *dma_buf`` buffer to be mapped h](jX )}(h``struct dma_buf *dma_buf``h]j^ )}(hjh]hstruct dma_buf *dma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hbuffer to be mappedh]hbuffer to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h<``struct iosys_map *map`` the virtual address of the buffer h](jX )}(h``struct iosys_map *map``h]j^ )}(hjh]hstruct iosys_map *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjtubh)}(h**Description**h]j7 )}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjtubh)}(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 }(hj#hhhNhNubh)}(h(:c:type:`dma_buf_ops.vmap `h]j^ )}(hj-h]hdma_buf_ops.vmap}(hj/hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj+ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj#ubh callback. Calls into }(hj#hhhNhNubh)}(h::c:type:`drm_gem_object_funcs.vmap `h]j^ )}(hjQh]hdrm_gem_object_funcs.vmap}(hjShhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjOubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhjJhMhj#ubhM for device specific handling. The kernel virtual address is returned in map.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJhMhjtubh)}(h8Returns 0 on success or a negative errno code otherwise.h]h8Returns 0 on success or a negative errno code otherwise.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_gem_dmabuf_vunmap (C function)c.drm_gem_dmabuf_vunmaphNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_dmabuf_vunmaph]j)}(hdrm_gem_dmabuf_vunmaph]hdrm_gem_dmabuf_vunmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h0(struct dma_buf *dma_buf, struct iosys_map *map)h](jD)}(hstruct dma_buf *dma_bufh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_dmabuf_vunmapasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdma_bufh]hdma_buf}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct iosys_map *maph](j)}(hj? h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjvmodnameN classnameNjj)}j]jc.drm_gem_dmabuf_vunmapasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h%dma_buf vunmap implementation for GEMh]h%dma_buf vunmap implementation for GEM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjM )}(hhh](jR )}(h2``struct dma_buf *dma_buf`` buffer to be unmapped h](jX )}(h``struct dma_buf *dma_buf``h]j^ )}(hjh]hstruct dma_buf *dma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hbuffer to be unmappedh]hbuffer to be unmapped}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj-hMhjubjR )}(h<``struct iosys_map *map`` the virtual address of the buffer h](jX )}(h``struct iosys_map *map``h]j^ )}(hjQh]hstruct iosys_map *map}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjOubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjKubjt )}(hhh]h)}(h!the virtual address of the bufferh]h!the virtual address of the buffer}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1js hjKubeh}(h]h ]h"]h$]h&]uh1jQ hjfhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh)}(hReleases a kernel virtual mapping. This can be used as the :c:type:`dma_buf_ops.vunmap ` callback. Calls into :c:type:`drm_gem_object_funcs.vunmap ` for device specific handling.h](h;Releases a kernel virtual mapping. This can be used as the }(hjhhhNhNubh)}(h*:c:type:`dma_buf_ops.vunmap `h]j^ )}(hjh]hdma_buf_ops.vunmap}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh callback. Calls into }(hjhhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.vunmap `h]j^ )}(hjh]hdrm_gem_object_funcs.vunmap}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhjhMhjubh for device specific handling.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gem_prime_mmap (C function)c.drm_gem_prime_mmaphNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj%hMubj)}(hdrm_gem_prime_mmaph]j)}(hdrm_gem_prime_mmaph]hdrm_gem_prime_mmap}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj%hMubj>)}(h8(struct drm_gem_object *obj, struct vm_area_struct *vma)h](jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjtmodnameN classnameNjj)}j]j)}j}j:sbc.drm_gem_prime_mmapasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjLubjD)}(hstruct vm_area_struct *vmah](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_prime_mmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjLubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj%hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj%hMubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj%hMhj hhubj )}(hhh]h)}(h#PRIME mmap function for GEM driversh]h#PRIME mmap function for GEM drivers}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjDhhubah}(h]h ]h"]h$]h&]uh1j hj hhhj%hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j_j( j_j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjgubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjcubjM )}(hhh](jR )}(h*``struct drm_gem_object *obj`` GEM object h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(h GEM objecth]h GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h5``struct vm_area_struct *vma`` Virtual address range h](jX )}(h``struct vm_area_struct *vma``h]j^ )}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hVirtual address rangeh]hVirtual address range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjcubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjcubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh'->mmap is called to set up the mapping.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gem_dmabuf_mmap (C function)c.drm_gem_dmabuf_mmaphNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM*ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhjrhM*ubj)}(hdrm_gem_dmabuf_mmaph]j)}(hdrm_gem_dmabuf_mmaph]hdrm_gem_dmabuf_mmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj`hhhjrhM*ubj>)}(h5(struct dma_buf *dma_buf, struct vm_area_struct *vma)h](jD)}(hstruct dma_buf *dma_bufh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gem_dmabuf_mmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct vm_area_struct *vmah](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj3modnameN classnameNjj)}j]jc.drm_gem_dmabuf_mmapasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvmah]hvma}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hj`hhhjrhM*ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\hhhjrhM*ubah}(h]jWah ](jjeh"]h$]h&]j j )j huh1jhjrhM*hjYhhubj )}(hhh]h)}(h#dma_buf mmap implementation for GEMh]h#dma_buf mmap implementation for GEM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM*hjhhubah}(h]h ]h"]h$]h&]uh1j hjYhhhjrhM*ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM.hjubjM )}(hhh](jR )}(h0``struct dma_buf *dma_buf`` buffer to be mapped h](jX )}(h``struct dma_buf *dma_buf``h]j^ )}(hjh]hstruct dma_buf *dma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM+hjubjt )}(hhh]h)}(hbuffer to be mappedh]hbuffer to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM+hjubjR )}(h5``struct vm_area_struct *vma`` virtual address range h](jX )}(h``struct vm_area_struct *vma``h]j^ )}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM,hjubjt )}(hhh]h)}(hvirtual address rangeh]hvirtual address range}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM,hj$ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj#hM,hjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjGubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM.hjubh)}(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 }(hj_hhhNhNubh)}(h(:c:type:`dma_buf_ops.mmap `h]j^ )}(hjih]hdma_buf_ops.mmap}(hjkhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjgubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_buf_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM-hj_ubh4 callback. It just forwards to drm_gem_prime_mmap().}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM-hjubh)}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_prime_pages_to_sg (C function)c.drm_prime_pages_to_sghNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMGubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_prime_pages_to_sgsbc.drm_prime_pages_to_sgasbuh1hhjhhhjhMGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMGubj)}(hdrm_prime_pages_to_sgh]j)}(hjh]hdrm_prime_pages_to_sg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMGubj>)}(hD(struct drm_device *dev, struct page **pages, unsigned int nr_pages)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjZmodnameN classnameNjj)}j]jc.drm_prime_pages_to_sgasbuh1hhj6ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj2ubjD)}(hstruct page **pagesh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_prime_pages_to_sgasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj2ubjD)}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hnr_pagesh]hnr_pages}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj2ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMGubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMGubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMGhjhhubj )}(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:461: ./drivers/gpu/drm/drm_prime.chMGhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMGubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMKhjubjM )}(hhh](jR )}(h&``struct drm_device *dev`` DRM device h](jX )}(h``struct drm_device *dev``h]j^ )}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMHhjubjt )}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMHhjubjR )}(hI``struct page **pages`` pointer to the array of page pointers to convert h](jX )}(h``struct page **pages``h]j^ )}(hjh]hstruct page **pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMIhjubjt )}(hhh]h)}(h0pointer to the array of page pointers to converth]h0pointer to the array of page pointers to convert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMIhjubjR )}(h4``unsigned int nr_pages`` length of the page vector h](jX )}(h``unsigned int nr_pages``h]j^ )}(hj<h]hunsigned int nr_pages}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj:ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMJhj6ubjt )}(hhh]h)}(hlength of the page vectorh]hlength of the page vector}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMJhjRubah}(h]h ]h"]h$]h&]uh1js hj6ubeh}(h]h ]h"]h$]h&]uh1jQ hjQhMJhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjuubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMLhjubh)}(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:461: ./drivers/gpu/drm/drm_prime.chMKhjubh)}(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}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMOhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMOhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_prime_get_contiguous_size (C function)c.drm_prime_get_contiguous_sizehNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMmubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMmubj)}(hdrm_prime_get_contiguous_sizeh]j)}(hdrm_prime_get_contiguous_sizeh]hdrm_prime_get_contiguous_size}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMmubj>)}(h(struct sg_table *sgt)h]jD)}(hstruct sg_table *sgth](j)}(hj? h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjgmodnameN classnameNjj)}j]j)}j}j-sbc.drm_prime_get_contiguous_sizeasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj?ubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMmubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMmhjhhubj )}(hhh]h)}(h)returns the contiguous size of the bufferh]h)returns the contiguous size of the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMmhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMmubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMqhjubjM )}(hhh]jR )}(hA``struct sg_table *sgt`` sg_table describing the buffer to check h](jX )}(h``struct sg_table *sgt``h]j^ )}(hj h]hstruct sg_table *sgt}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMnhjubjt )}(hhh]h)}(h'sg_table describing the buffer to checkh]h'sg_table describing the buffer to check}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMnhj!ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hMnhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjDubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMphjubh)}(huThis helper calculates the contiguous size in the DMA address space of the buffer described by the provided sg_table.h]huThis helper calculates the contiguous size in the DMA address space of the buffer described by the provided sg_table.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMohjubh)}(hpThis is useful for implementing :c:type:`drm_gem_object_funcs.gem_prime_import_sg_table `.h](h This is useful for implementing }(hjkhhhNhNubh)}(hO:c:type:`drm_gem_object_funcs.gem_prime_import_sg_table `h]j^ )}(hjuh]h.drm_gem_object_funcs.gem_prime_import_sg_table}(hjwhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMrhjkubh.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMrhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_gem_prime_export (C function)c.drm_gem_prime_exporthNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_gem_prime_exportsbc.drm_gem_prime_exportasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_prime_exporth]j)}(hjh]hdrm_gem_prime_export}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h'(struct drm_gem_object *obj, int flags)h](jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjWmodnameN classnameNjj)}j]jc.drm_gem_prime_exportasbuh1hhj3ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj/ubjD)}(h int flagsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj/ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h4helper library implementation of the export callbackh]h4helper library implementation of the export callback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj ubjM )}(hhh](jR )}(h4``struct drm_gem_object *obj`` GEM object to export h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hj.h]hstruct drm_gem_object *obj}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj,ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj(ubjt )}(hhh]h)}(hGEM object to exporth]hGEM object to export}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1js hj(ubeh}(h]h ]h"]h$]h&]uh1jQ hjChMhj%ubjR )}(h2``int flags`` flags like DRM_CLOEXEC and DRM_RDWR h](jX )}(h ``int flags``h]j^ )}(hjgh]h int flags}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjeubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjaubjt )}(hhh]h)}(h#flags like DRM_CLOEXEC and DRM_RDWRh]h#flags like DRM_CLOEXEC and DRM_RDWR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1js hjaubeh}(h]h ]h"]h$]h&]uh1jQ hj|hMhj%ubeh}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj ubh)}(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 }(hjhhhNhNubh)}(h<:c:type:`drm_gem_object_funcs.export `h]j^ )}(hjh]hdrm_gem_object_funcs.export}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubhn functions for GEM drivers using the PRIME helpers. It is used as the default in drm_gem_prime_handle_to_fd().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(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_bufhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h!drm_gem_is_prime_exported_dma_bufh]j)}(h!drm_gem_is_prime_exported_dma_bufh]h!drm_gem_is_prime_exported_dma_buf}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h1(struct drm_device *dev, struct dma_buf *dma_buf)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjfmodnameN classnameNjj)}j]j)}j}j,sb#c.drm_gem_is_prime_exported_dma_bufasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj>ubjD)}(hstruct dma_buf *dma_bufh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j#c.drm_gem_is_prime_exported_dma_bufasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj>ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(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 }(hj9hhhNhNubj7 )}(h**dev**h]hdev}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj9ubh.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj6hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jcj( jcj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjkubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjgubjM )}(hhh](jR )}(h7``struct drm_device *dev`` drm_device to check against h](jX )}(h``struct drm_device *dev``h]j^ )}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hdrm_device to check againsth]hdrm_device to check against}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h5``struct dma_buf *dma_buf`` dma-buf object to import h](jX )}(h``struct dma_buf *dma_buf``h]j^ )}(hjh]hstruct dma_buf *dma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjgubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjgubh)}(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 }(hjhhhNhNubj7 )}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh, false otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_gem_prime_import_dev (C function)c.drm_gem_prime_import_devhNtauh1jhjhhhNhNubj)}(hhh](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]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](j)}(hj? h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjdhMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjxmodnameN classnameNjj)}j]j)}j}drm_gem_prime_import_devsbc.drm_gem_prime_import_devasbuh1hhjShhhjdhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjdhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjdhMubj)}(hdrm_gem_prime_import_devh]j)}(hjh]hdrm_gem_prime_import_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjShhhjdhMubj>)}(hL(struct drm_device *dev, struct dma_buf *dma_buf, struct device *attach_dev)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_prime_import_devasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct dma_buf *dma_bufh](j)}(hj? h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjamodnameN classnameNjj)}j]jc.drm_gem_prime_import_devasbuh1hhj=ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct device *attach_devh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_prime_import_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h attach_devh]h attach_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjShhhjdhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhjdhMubah}(h]jJah ](jjeh"]h$]h&]j j )j huh1jhjdhMhjLhhubj )}(hhh]h)}(h*core implementation of the import callbackh]h*core implementation of the import callback}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj/hhubah}(h]h ]h"]h$]h&]uh1j hjLhhhjdhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jJj( jJj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjRubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjNubjM )}(hhh](jR )}(h5``struct drm_device *dev`` drm_device to import into h](jX )}(h``struct drm_device *dev``h]j^ )}(hjsh]hstruct drm_device *dev}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjqubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjmubjt )}(hhh]h)}(hdrm_device to import intoh]hdrm_device to import into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjmubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjjubjR )}(h5``struct dma_buf *dma_buf`` dma-buf object to import h](jX )}(h``struct dma_buf *dma_buf``h]j^ )}(hjh]hstruct dma_buf *dma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjjubjR )}(h>``struct device *attach_dev`` struct device to dma_buf attach h](jX )}(h``struct device *attach_dev``h]j^ )}(hjh]hstruct device *attach_dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hstruct device to dma_buf attachh]hstruct device to dma_buf attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjjubeh}(h]h ]h"]h$]h&]uh1jL hjNubh)}(h**Description**h]j7 )}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjNubh)}(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 }(hj6hhhNhNubh)}(h%:c:type:`drm_device.dev `h]j^ )}(hj@h]hdrm_device.dev}(hjBhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj>ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj6ubh0 for attaching via dma_buf. This function calls }(hj6hhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j^ )}(hjdh]h$drm_driver.gem_prime_import_sg_table}(hjfhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjbubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhj]hMhj6ubh internally.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hMhjNubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubh hook when using this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_gem_prime_import (C function)c.drm_gem_prime_importhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_gem_prime_importsbc.drm_gem_prime_importasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gem_prime_importh]j)}(hjh]hdrm_gem_prime_import}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h1(struct drm_device *dev, struct dma_buf *dma_buf)h](jD)}(hstruct drm_device *devh](j)}(hj? h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjwmodnameN classnameNjj)}j]jc.drm_gem_prime_importasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubjD)}(hstruct dma_buf *dma_bufh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gem_prime_importasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdma_bufh]hdma_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h4helper library implementation of the import callbackh]h4helper library implementation of the import callback}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjEhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j`j( j`j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjhubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjdubjM )}(hhh](jR )}(h5``struct drm_device *dev`` drm_device to import into h](jX )}(h``struct drm_device *dev``h]j^ )}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hdrm_device to import intoh]hdrm_device to import into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h5``struct dma_buf *dma_buf`` dma-buf object to import h](jX )}(h``struct dma_buf *dma_buf``h]j^ )}(hjh]hstruct dma_buf *dma_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hdma-buf object to importh]hdma-buf object to import}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjdubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjdubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./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&]uh1hhj:hMhjdubh)}(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 }(hjEhhhNhNubh)}(h::c:type:`drm_gem_object_funcs.free `h]j^ )}(hjOh]hdrm_gem_object_funcs.free}(hjQhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjMubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_object_funcsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjEubh hook when using this function.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'drm_prime_sg_to_page_array (C function)c.drm_prime_sg_to_page_arrayhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_prime_sg_to_page_arrayh]j)}(hdrm_prime_sg_to_page_arrayh]hdrm_prime_sg_to_page_array}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h<(struct sg_table *sgt, struct page **pages, int max_entries)h](jD)}(hstruct sg_table *sgth](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_prime_sg_to_page_arrayasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsgth]hsgt}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct page **pagesh](j)}(hj? h]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(hpageh]hpage}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjfmodnameN classnameNjj)}j]jc.drm_prime_sg_to_page_arrayasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hint max_entriesh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h max_entriesh]h max_entries}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h%convert an sg table into a page arrayh]h%convert an sg table into a page array}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j!j( j!j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj)ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj%ubjM )}(hhh](jR )}(h9``struct sg_table *sgt`` scatter-gather table to convert h](jX )}(h``struct sg_table *sgt``h]j^ )}(hjJh]hstruct sg_table *sgt}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjHubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjDubjt )}(hhh]h)}(hscatter-gather table to converth]hscatter-gather table to convert}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1js hjDubeh}(h]h ]h"]h$]h&]uh1jQ hj_hMhjAubjR )}(hE``struct page **pages`` array of page pointers to store the pages in h](jX )}(h``struct page **pages``h]j^ )}(hjh]hstruct page **pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj}ubjt )}(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&]uh1js hj}ubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjAubjR )}(h0``int max_entries`` size of the passed-in array h](jX )}(h``int max_entries``h]j^ )}(hjh]hint max_entries}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhjubjt )}(hhh]h)}(hsize of the passed-in arrayh]hsize of the passed-in array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjAubeh}(h]h ]h"]h$]h&]uh1jL hj%ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj%ubh)}(h+Exports an sg table into an array of pages.h]h+Exports an sg table into an array of pages.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMhj%ubh)}(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:461: ./drivers/gpu/drm/drm_prime.chMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(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_arrayhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM0ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjYhM0ubj)}(hdrm_prime_sg_to_dma_addr_arrayh]j)}(hdrm_prime_sg_to_dma_addr_arrayh]hdrm_prime_sg_to_dma_addr_array}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jhjGhhhjYhM0ubj>)}(h:(struct sg_table *sgt, dma_addr_t *addrs, int max_entries)h](jD)}(hstruct sg_table *sgth](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jnsb c.drm_prime_sg_to_dma_addr_arrayasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hdma_addr_t *addrsh](h)}(hhh]j)}(h dma_addr_th]h dma_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j c.drm_prime_sg_to_dma_addr_arrayasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrsh]haddrs}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hint max_entriesh](j)}(hinth]hint}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h max_entriesh]h max_entries}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjGhhhjYhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjYhM0ubah}(h]j>ah ](jjeh"]h$]h&]j j )j huh1jhjYhM0hj@hhubj )}(hhh]h)}(h)convert an sg table into a dma addr arrayh]h)convert an sg table into a dma addr array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM0hjhhubah}(h]h ]h"]h$]h&]uh1j hj@hhhjYhM0ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM4hjubjM )}(hhh](jR )}(h9``struct sg_table *sgt`` scatter-gather table to convert h](jX )}(h``struct sg_table *sgt``h]j^ )}(hjh]hstruct sg_table *sgt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM1hjubjt )}(hhh]h)}(hscatter-gather table to converth]hscatter-gather table to convert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM1hjubjR )}(hF``dma_addr_t *addrs`` array to store the dma bus address of each page h](jX )}(h``dma_addr_t *addrs``h]j^ )}(hjh]hdma_addr_t *addrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM2hj ubjt )}(hhh]h)}(h/array to store the dma bus address of each pageh]h/array to store the dma bus address of each page}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hM2hj%ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj$hM2hjubjR )}(h6``int max_entries`` size of both the passed-in arrays h](jX )}(h``int max_entries``h]j^ )}(hjHh]hint max_entries}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM3hjBubjt )}(hhh]h)}(h!size of both the passed-in arraysh]h!size of both the passed-in arrays}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM3hj^ubah}(h]h ]h"]h$]h&]uh1js hjBubeh}(h]h ]h"]h$]h&]uh1jQ hj]hM3hjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM5hjubh)}(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:461: ./drivers/gpu/drm/drm_prime.chM4hjubh)}(hlDrivers should use this in their :c:type:`drm_driver.gem_prime_import_sg_table ` implementation.h](h!Drivers should use this in their }(hjhhhNhNubh)}(h;:c:type:`drm_driver.gem_prime_import_sg_table `h]j^ )}(hjh]h$drm_driver.gem_prime_import_sg_table}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chM6hjubh implementation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_prime_gem_destroy (C function)c.drm_prime_gem_destroyhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMJubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMJubj)}(hdrm_prime_gem_destroyh]j)}(hdrm_prime_gem_destroyh]hdrm_prime_gem_destroy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMJubj>)}(h1(struct drm_gem_object *obj, struct sg_table *sg)h](jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjWmodnameN classnameNjj)}j]j)}j}jsbc.drm_prime_gem_destroyasbuh1hhj3ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj/ubjD)}(hstruct sg_table *sgh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jqc.drm_prime_gem_destroyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsgh]hsg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj/ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMJubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMJhjhhubj )}(hhh]h)}(h.helper to clean up a PRIME-imported GEM objecth]h.helper to clean up a PRIME-imported GEM object}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMJhj'hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMJubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jBj( jBj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjJubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMNhjFubjM )}(hhh](jR )}(hK``struct drm_gem_object *obj`` GEM object which was created from a dma-buf h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjkh]hstruct drm_gem_object *obj}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjiubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMKhjeubjt )}(hhh]h)}(h+GEM object which was created from a dma-bufh]h+GEM object which was created from a dma-buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1js hjeubeh}(h]h ]h"]h$]h&]uh1jQ hjhMKhjbubjR )}(hE``struct sg_table *sg`` the sg-table which was pinned at import time h](jX )}(h``struct sg_table *sg``h]j^ )}(hjh]hstruct sg_table *sg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMLhjubjt )}(hhh]h)}(h,the sg-table which was pinned at import timeh]h,the sg-table which was pinned at import time}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMLhjbubeh}(h]h ]h"]h$]h&]uh1jL hjFubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMNhjFubh)}(hThis is the cleanup functions which GEM drivers need to call when they use drm_gem_prime_import() or drm_gem_prime_import_dev() to import dma-bufs.h]hThis is the cleanup functions which GEM drivers need to call when they use drm_gem_prime_import() or drm_gem_prime_import_dev() to import dma-bufs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:461: ./drivers/gpu/drm/drm_prime.chMMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubeh}(h]jah ]h"]prime function referencesah$]h&]uh1hhj.hhhhhMubeh}(h](jid1eh ]h"](prime buffer sharingprime_buffer_sharingeh$]h&]uh1hhhhhhhhMexpect_referenced_by_name}jjsexpect_referenced_by_id}jjsubh)}(hhh](h)}(hDRM MM Range Allocatorh]hDRM MM Range Allocator}(hj"hhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhMubh)}(hhh](h)}(hOverviewh]hOverview}(hj3hhhNhNubah}(h]h ]h"]h$]h&]hj%uh1hhj0hhhhhMubh)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:470: ./drivers/gpu/drm/drm_mm.chK7hj0hhubh)}(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 }(hjPhhhNhNubh)}(h:c:type:`drm_mm`h]j^ )}(hjZh]hdrm_mm}(hj\hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjXubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mmuh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:470: ./drivers/gpu/drm/drm_mm.chK`.h](hXThe DRM range allocator supports this use-case through the scanning interfaces. First a scan operation needs to be initialized with drm_mm_scan_init() or drm_mm_scan_init_with_range(). The driver adds objects to the roster, probably by walking an LRU list, but this can be freely implemented. Eviction candidates are added using drm_mm_scan_add_block() until a suitable hole is found or there are no further evictable objects. Eviction roster metadata is tracked in }(hjJhhhNhNubh)}(h*:c:type:`struct drm_mm_scan `h]j^ )}(hjTh]hstruct drm_mm_scan}(hjVhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjRubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mm_scanuh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:476: ./drivers/gpu/drm/drm_mm.chMhjJubh.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqhMhj*hhubh)}(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.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:476: ./drivers/gpu/drm/drm_mm.chMhj*hhubh)}(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:476: ./drivers/gpu/drm/drm_mm.chMhj*hhubeh}(h]jMah ]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&]hjiuh1hhjhhhhhMubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_insert_mode (C enum)c.drm_mm_insert_modehNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_mm_insert_modeh]j)}(henum drm_mm_insert_modeh](j)}(hjh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_mm_insert_modeh]j)}(hjh]hdrm_mm_insert_mode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h)}(h'control search and allocation behaviourh]h'control search and allocation behaviour}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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]j7 )}(hj/h]h Constants}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj-ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhK@hj)ubjM )}(hhh](jR )}(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](jX )}(h``DRM_MM_INSERT_BEST``h]j^ )}(hjNh]hDRM_MM_INSERT_BEST}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjLubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKFhjHubjt )}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKChjdubh)}(h5Allocates the node from the bottom of the found hole.h]h5Allocates the node from the bottom of the found hole.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKFhjdubeh}(h]h ]h"]h$]h&]uh1js hjHubeh}(h]h ]h"]h$]h&]uh1jQ hjchKFhjEubjR )}(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](jX )}(h``DRM_MM_INSERT_LOW``h]j^ )}(hjh]hDRM_MM_INSERT_LOW}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKLhjubjt )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKIhjubh)}(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&]uh1hhjhKLhjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKLhjEubjR )}(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](jX )}(h``DRM_MM_INSERT_HIGH``h]j^ )}(hjh]hDRM_MM_INSERT_HIGH}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKThjubjt )}(hhh](h)}(hmSearch for the highest hole (address closest to U64_MAX, within the search range) that fits the desired node.h]hmSearch for the highest hole (address closest to U64_MAX, within the search range) that fits the desired node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKOhjubh)}(hAllocates the node from the *top* of the found hole. The specified alignment for the node is applied to the base of the node (:c:type:`drm_mm_node.start `).h](hAllocates the node from the }(hjhhhNhNubhemphasis)}(h*top*h]htop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh] of the found hole. The specified alignment for the node is applied to the base of the node (}(hjhhhNhNubh)}(h):c:type:`drm_mm_node.start `h]j^ )}(hj$h]hdrm_mm_node.start}(hj&hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj"ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mm_nodeuh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKRhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhKRhjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKThjEubjR )}(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](jX )}(h``DRM_MM_INSERT_EVICT``h]j^ )}(hj^h]hDRM_MM_INSERT_EVICT}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj\ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhK\hjXubjt )}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKWhjtubh)}(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&]uh1hhjshK\hjtubeh}(h]h ]h"]h$]h&]uh1js hjXubeh}(h]h ]h"]h$]h&]uh1jQ hjshK\hjEubjR )}(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](jX )}(h``DRM_MM_INSERT_ONCE``h]j^ )}(hjh]hDRM_MM_INSERT_ONCE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKbhjubjt )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhK_hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKbhjEubjR )}(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](jX )}(h``DRM_MM_INSERT_HIGHEST``h]j^ )}(hjh]hDRM_MM_INSERT_HIGHEST}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKihjubjt )}(hhh](h)}(hOnly check the highest hole (the hole with the largest address) and insert the node at the top of the hole or report -ENOSPC if unsuitable.h]hOnly check the highest hole (the hole with the largest address) and insert the node at the top of the hole or report -ENOSPC if unsuitable.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKehjubh)}(hDoes not search all holes.h]hDoes not search all holes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKihjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKihjEubjR )}(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](jX )}(h``DRM_MM_INSERT_LOWEST``h]j^ )}(hj(h]hDRM_MM_INSERT_LOWEST}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKohj"ubjt )}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKlhj>ubh)}(hDoes not search all holes.h]hDoes not search all holes.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKphj>ubeh}(h]h ]h"]h$]h&]uh1js hj"ubeh}(h]h ]h"]h$]h&]uh1jQ hj=hKohjEubeh}(h]h ]h"]h$]h&]uh1jL hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hjzh]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjxubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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 }(hjhhhNhNubh)}(h :c:type:`struct drm_mm `h]j^ )}(hjh]h struct drm_mm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mmuh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhK=hjubhXQ range manager supports finding a suitable modes using a number of search trees. These trees are oranised by size, by address and in most recent eviction order. This allows the user to find either the smallest hole to reuse, the lowest or highest address to reuse, or simply reuse the most recent eviction that fits. When allocating the }(hjhhhNhNubh)}(h:c:type:`drm_mm_node`h]j^ )}(hjh]h drm_mm_node}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mm_nodeuh1hhjhK=hjubh from within the hole, the }(hjhhhNhNubh)}(h:c:type:`drm_mm_insert_mode`h]j^ )}(hjh]hdrm_mm_insert_mode}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mm_insert_modeuh1hhjhK=hjubhM also dictate whether to allocate the lowest matching address or the highest.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK=hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_node (C struct) c.drm_mm_nodehNtauh1jhjhhhNhNubj)}(hhh](j)}(h drm_mm_nodeh]j)}(hstruct drm_mm_nodeh](j)}(hj? h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKHubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj.hKHubj)}(h drm_mm_nodeh]j)}(hjh]h drm_mm_node}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj.hKHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj.hKHubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj.hKHhjhhubj )}(hhh]h)}(h$allocated block in the DRM allocatorh]h$allocated block in the DRM allocator}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhj`hhubah}(h]h ]h"]h$]h&]uh1j hjhhhj.hKHubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j{j( j{j) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjubj )}(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&]jjuh1j hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjubjM )}(hhh](jR )}(h%``color`` Opaque driver-private tag. h](jX )}(h ``color``h]j^ )}(hjh]hcolor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjubjt )}(hhh]h)}(hOpaque driver-private tag.h]hOpaque driver-private tag.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h0``start`` Start address of the allocated block. h](jX )}(h ``start``h]j^ )}(hj h]hstart}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjubjt )}(hhh]h)}(h%Start address of the allocated block.h]h%Start address of the allocated block.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h%``size`` Size of the allocated block.h](jX )}(h``size``h]j^ )}(hjBh]hsize}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhj<ubjt )}(hhh]h)}(hSize of the allocated block.h]hSize of the allocated block.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjXubah}(h]h ]h"]h$]h&]uh1js hj<ubeh}(h]h ]h"]h$]h&]uh1jQ hjWhKhjubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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^ )}(hjh]hdrm_mm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mmuh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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&]uh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm (C struct)c.drm_mmhNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_mmh]j)}(h struct drm_mmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_mmh]j)}(hjh]hdrm_mm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h)}(h DRM allocatorh]h DRM allocator}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhj%hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j@j( j@j) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjHubh:}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjDubj )}(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); };}hjesbah}(h]h ]h"]h$]h&]jjuh1j hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjDubh)}(h **Members**h]j7 )}(hjvh]hMembers}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjtubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjDubjM )}(hhh]jR )}(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](jX )}(h``color_adjust``h]j^ )}(hjh]h color_adjust}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjubjt )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubah}(h]h ]h"]h$]h&]uh1jL hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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 }(hjhhhNhNubj7 )}(h**color_adjust**h]h color_adjust}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh callback the structure is entirely opaque and should only be accessed through the provided functions and macros. This structure can be embedded into larger driver structures.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_scan (C struct) c.drm_mm_scanhNtauh1jhjhhhNhNubj)}(hhh](j)}(h drm_mm_scanh]j)}(hstruct drm_mm_scanh](j)}(hj? h]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj5hKubj)}(h drm_mm_scanh]j)}(hj"h]h drm_mm_scan}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jhj$hhhj5hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj5hKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj5hKhjhhubj )}(hhh]h)}(h#DRM allocator eviction roaster datah]h#DRM allocator eviction roaster data}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjghhubah}(h]h ]h"]h$]h&]uh1j hjhhhj5hKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(h:**Definition**:: struct drm_mm_scan { }; **Members**h](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjubj )}(hstruct drm_mm_scan { };h]hstruct drm_mm_scan { };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_mm_node_allocated (C function)c.drm_mm_node_allocatedhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hKubj)}(hdrm_mm_node_allocatedh]j)}(hdrm_mm_node_allocatedh]hdrm_mm_node_allocated}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj"hKubj>)}(h (const struct drm_mm_node *node)h]jD)}(hconst struct drm_mm_node *nodeh](j)}(hjJh]hconst}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hj? h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}j7sbc.drm_mm_node_allocatedasbuh1hhjMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjIubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhj"hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj"hKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj"hKhj hhubj )}(hhh]h)}(h"checks whether a node is allocatedh]h"checks whether a node is allocated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j hj hhhj"hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhj ubjM )}(hhh]jR )}(h8``const struct drm_mm_node *node`` drm_mm_node to check h](jX )}(h"``const struct drm_mm_node *node``h]j^ )}(hj0h]hconst struct drm_mm_node *node}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj.ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhj*ubjt )}(hhh]h)}(hdrm_mm_node to checkh]hdrm_mm_node to check}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjFubah}(h]h ]h"]h$]h&]uh1js hj*ubeh}(h]h ]h"]h$]h&]uh1jQ hjEhKhj'ubah}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjiubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhj ubh)}(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:482: ./include/drm/drm_mm.hhKhj ubh)}(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:482: ./include/drm/drm_mm.hhKhj ubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhj ubh)}(h"True if the **node** is allocated.h](h True if the }(hjhhhNhNubj7 )}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh is allocated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_initialized (C function)c.drm_mm_initializedhNtauh1jhjhhhNhNubj)}(hhh](j)}(h1bool drm_mm_initialized (const struct drm_mm *mm)h]j)}(h0bool drm_mm_initialized(const struct drm_mm *mm)h](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_mm_initializedh]j)}(hdrm_mm_initializedh]hdrm_mm_initialized}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h(const struct drm_mm *mm)h]jD)}(hconst struct drm_mm *mmh](j)}(hjJh]hconst}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hj? h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjomodnameN classnameNjj)}j]j)}j}jsbc.drm_mm_initializedasbuh1hhj0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj,ubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h*checks whether an allocator is initializedh]h*checks whether an allocator is initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM hjubjM )}(hhh]jR )}(h,``const struct drm_mm *mm`` drm_mm to check h](jX )}(h``const struct drm_mm *mm``h]j^ )}(hjh]hconst struct drm_mm *mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM hj ubjt )}(hhh]h)}(hdrm_mm to checkh]hdrm_mm to check}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hM hj)ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj(hM hj ubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjLubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM hjubh)}(haDrivers should clear the struct drm_mm prior to initialisation if they want to use this function.h]haDrivers should clear the struct drm_mm prior to initialisation if they want to use this function.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM hjubh)}(hLDrivers should use this helper for proper encapsulation of drm_mm internals.h]hLDrivers should use this helper for proper encapsulation of drm_mm internals.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM hjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubh)}(h"True if the **mm** is initialized.h](h True if the }(hjhhhNhNubj7 )}(h**mm**h]hmm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh is initialized.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_mm_hole_follows (C function)c.drm_mm_hole_followshNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_mm_hole_followsh]j)}(hdrm_mm_hole_followsh]hdrm_mm_hole_follows}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h (const struct drm_mm_node *node)h]jD)}(hconst struct drm_mm_node *nodeh](j)}(hjJh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj$ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hj? h]hstruct}(hj2 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj? hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hjP hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjR modnameN classnameNjj)}j]j)}j}jsbc.drm_mm_hole_followsasbuh1hhj ubj)}(h h]h }(hjp hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj~ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hnodeh]hnode}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h'checks whether a hole follows this nodeh]h'checks whether a hole follows this node}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj ubjM )}(hhh]jR )}(h8``const struct drm_mm_node *node`` drm_mm_node to check h](jX )}(h"``const struct drm_mm_node *node``h]j^ )}(hj h]hconst struct drm_mm_node *node}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj ubjt )}(hhh]h)}(hdrm_mm_node to checkh]hdrm_mm_node to check}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhj ubah}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hj1 h]h Description}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj/ ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj ubh)}(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().}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj ubh)}(h **Return**h]j7 )}(hjX h]hReturn}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjV ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM!hj ubh)}(h$True if a hole follows the **node**.h](hTrue if a hole follows the }(hjn hhhNhNubj7 )}(h**node**h]hnode}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjn ubh.}(hjn hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM"hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_mm_hole_node_start (C function)c.drm_mm_hole_node_starthNtauh1jhjhhhNhNubj)}(hhh](j)}(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]j)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}drm_mm_hole_node_startsbc.drm_mm_hole_node_startasbuh1hhj hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM0ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hM0ubj)}(hdrm_mm_hole_node_starth]j)}(hj h]hdrm_mm_hole_node_start}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhj hM0ubj>)}(h%(const struct drm_mm_node *hole_node)h]jD)}(h#const struct drm_mm_node *hole_nodeh](j)}(hjJh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj) hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hj: hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7 ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj< modnameN classnameNjj)}j]j c.drm_mm_hole_node_startasbuh1hhj ubj)}(h h]h }(hjX hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjf hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h hole_nodeh]h hole_node}(hjs hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubah}(h]h ]h"]h$]h&]jjuh1j=hj hhhj hM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM0ubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj hM0hj hhubj )}(hhh]h)}(h1computes the start of the hole following **node**h](h)computes the start of the hole following }(hj hhhNhNubj7 )}(h**node**h]hnode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM0hj hhubah}(h]h ]h"]h$]h&]uh1j hj hhhj hM0ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM4hj ubjM )}(hhh]jR )}(h_``const struct drm_mm_node *hole_node`` drm_mm_node which implicitly tracks the following hole h](jX )}(h'``const struct drm_mm_node *hole_node``h]j^ )}(hj h]h#const struct drm_mm_node *hole_node}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM1hj ubjt )}(hhh]h)}(h6drm_mm_node which implicitly tracks the following holeh]h6drm_mm_node which implicitly tracks the following hole}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM1hj ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj hM1hj ubah}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hj' h]h Description}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj% ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM3hj 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()}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM2hj ubh)}(h **Return**h]j7 )}(hjN h]hReturn}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjL ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM6hj ubh)}(hStart of the subsequent hole.h]hStart of the subsequent hole.}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM7hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_mm_hole_node_end (C function)c.drm_mm_hole_node_endhNtauh1jhjhhhNhNubj)}(hhh](j)}(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]j)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}drm_mm_hole_node_endsbc.drm_mm_hole_node_endasbuh1hhj hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMFubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMFubj)}(hdrm_mm_hole_node_endh]j)}(hj h]hdrm_mm_hole_node_end}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhj hMFubj>)}(h%(const struct drm_mm_node *hole_node)h]jD)}(h#const struct drm_mm_node *hole_nodeh](j)}(hjJh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j c.drm_mm_hole_node_endasbuh1hhj ubj)}(h h]h }(hj< hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjJ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h hole_nodeh]h hole_node}(hjW hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubah}(h]h ]h"]h$]h&]jjuh1j=hj hhhj hMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMFubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj hMFhj hhubj )}(hhh]h)}(h/computes the end of the hole following **node**h](h'computes the end of the hole following }(hj hhhNhNubj7 )}(h**node**h]hnode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMFhj~ hhubah}(h]h ]h"]h$]h&]uh1j hj hhhj hMFubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMJhj ubjM )}(hhh]jR )}(h_``const struct drm_mm_node *hole_node`` drm_mm_node which implicitly tracks the following hole h](jX )}(h'``const struct drm_mm_node *hole_node``h]j^ )}(hj h]h#const struct drm_mm_node *hole_node}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMGhj ubjt )}(hhh]h)}(h6drm_mm_node which implicitly tracks the following holeh]h6drm_mm_node which implicitly tracks the following hole}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMGhj ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj hMGhj ubah}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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().}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMHhj ubh)}(h **Return**h]j7 )}(hj2h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj0ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMLhj ubh)}(hEnd of the subsequent hole.h]hEnd of the subsequent hole.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_nodes (C macro)c.drm_mm_nodeshNtauh1jhjhhhNhNubj)}(hhh](j)}(h drm_mm_nodesh]j)}(h drm_mm_nodesh]j)}(h drm_mm_nodesh]j)}(hjqh]h drm_mm_nodes}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jhjshhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMVubah}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhMVubah}(h]jjah ](jjeh"]h$]h&]j j )j huh1jhjhMVhjlhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjlhhhjhMVubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubh)}(h``drm_mm_nodes (mm)``h]j^ )}(hjh]hdrm_mm_nodes (mm)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMVhjubah}(h]h ]h"]h$]h&]uh1jhjhMVhjhhubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMZhjubjM )}(hhh]jR )}(h'``mm`` the struct drm_mm range manager h](jX )}(h``mm``h]j^ )}(hjh]hmm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMWhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMWhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj:ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMYhjubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMXhjubh)}(h **Return**h]j7 )}(hjch]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjaubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM]hjubh)}(hThe node list, may be empty.h]hThe node list, may be empty.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM^hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_for_each_node (C macro)c.drm_mm_for_each_nodehNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_mm_for_each_nodeh]j)}(hdrm_mm_for_each_nodeh]j)}(hdrm_mm_for_each_nodeh]j)}(hjh]hdrm_mm_for_each_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMdubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMdubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMdhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjhMdubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubh)}(h$``drm_mm_for_each_node (entry, mm)``h]j^ )}(hjh]h drm_mm_for_each_node (entry, mm)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMdhjubah}(h]h ]h"]h$]h&]uh1jhjhMdhjhhubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhhj ubjM )}(hhh](jR )}(hY``entry`` :c:type:`struct drm_mm_node ` to assign to in each iteration step h](jX )}(h ``entry``h]j^ )}(hj2h]hentry}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj0ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMehj,ubjt )}(hhh]h)}(hN:c:type:`struct drm_mm_node ` to assign to in each iteration steph](h)}(h*:c:type:`struct drm_mm_node `h]j^ )}(hjQh]hstruct drm_mm_node}(hjShhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjOubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mm_nodeuh1hhjGhMehjKubh$ to assign to in each iteration step}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhMehjHubah}(h]h ]h"]h$]h&]uh1js hj,ubeh}(h]h ]h"]h$]h&]uh1jQ hjGhMehj)ubjR )}(h*``mm`` :c:type:`drm_mm` allocator to walk h](jX )}(h``mm``h]j^ )}(hjh]hmm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMfhjubjt )}(hhh]h)}(h":c:type:`drm_mm` allocator to walkh](h)}(h:c:type:`drm_mm`h]j^ )}(hjh]hdrm_mm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mmuh1hhjhMfhjubh allocator to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMfhj)ubeh}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhhj ubh)}(hThis iterator walks over all nodes in the range allocator. It is implemented with list_for_each(), so not save against removal of elements.h]hThis iterator walks over all nodes in the range allocator. It is implemented with list_for_each(), so not save against removal of elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMghj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_mm_for_each_node_safe (C macro)c.drm_mm_for_each_node_safehNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_mm_for_each_node_safeh]j)}(hdrm_mm_for_each_node_safeh]j)}(hdrm_mm_for_each_node_safeh]j)}(hj#h]hdrm_mm_for_each_node_safe}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj%hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMoubah}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj@hMoubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj@hMohjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhj@hMoubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jYj( jYj) j* j+ uh1jhhhjhNhNubh)}(h/``drm_mm_for_each_node_safe (entry, next, mm)``h]j^ )}(hj_h]h+drm_mm_for_each_node_safe (entry, next, mm)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj]ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMohjuubah}(h]h ]h"]h$]h&]uh1jhjhMohjhhubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMshjubjM )}(hhh](jR )}(hY``entry`` :c:type:`struct drm_mm_node ` to assign to in each iteration step h](jX )}(h ``entry``h]j^ )}(hjh]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMphjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mm_nodeuh1hhjhMphjubh$ to assign to in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMphjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMphjubjR )}(hK``next`` :c:type:`struct drm_mm_node ` to store the next step h](jX )}(h``next``h]j^ )}(hj h]hnext}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMqhjubjt )}(hhh]h)}(hA:c:type:`struct drm_mm_node ` to store the next steph](h)}(h*:c:type:`struct drm_mm_node `h]j^ )}(hj*h]hstruct drm_mm_node}(hj,hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj(ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mm_nodeuh1hhj hMqhj$ubh to store the next step}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMqhj!ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hMqhjubjR )}(h*``mm`` :c:type:`drm_mm` allocator to walk h](jX )}(h``mm``h]j^ )}(hjch]hmm}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMrhj]ubjt )}(hhh]h)}(h":c:type:`drm_mm` allocator to walkh](h)}(h:c:type:`drm_mm`h]j^ )}(hjh]hdrm_mm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mmuh1hhjxhMrhj|ubh allocator to walk}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxhMrhjyubah}(h]h ]h"]h$]h&]uh1js hj]ubeh}(h]h ]h"]h$]h&]uh1jQ hjxhMrhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMthjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMshjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_for_each_hole (C macro)c.drm_mm_for_each_holehNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_mm_for_each_holeh]j)}(hdrm_mm_for_each_holeh]j)}(hdrm_mm_for_each_holeh]j)}(hjh]hdrm_mm_for_each_hole}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM{ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM{ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM{hjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjhM{ubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' j2j( j2j) j* j+ uh1jhhhjhNhNubh)}(h8``drm_mm_for_each_hole (pos, mm, hole_start, hole_end)``h]j^ )}(hj8h]h4drm_mm_for_each_hole (pos, mm, hole_start, hole_end)}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj6ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM{hjNubah}(h]h ]h"]h$]h&]uh1jhj`hM{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]j7 )}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjkubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjgubjM )}(hhh](jR )}(h@``pos`` :c:type:`drm_mm_node` used internally to track progress h](jX )}(h``pos``h]j^ )}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM|hjubjt )}(hhh]h)}(h7:c:type:`drm_mm_node` used internally to track progressh](h)}(h:c:type:`drm_mm_node`h]j^ )}(hjh]h drm_mm_node}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mm_nodeuh1hhjhM|hjubh" used internally to track progress}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM|hjubjR )}(h*``mm`` :c:type:`drm_mm` allocator to walk h](jX )}(h``mm``h]j^ )}(hjh]hmm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM}hjubjt )}(hhh]h)}(h":c:type:`drm_mm` allocator to walkh](h)}(h:c:type:`drm_mm`h]j^ )}(hjh]hdrm_mm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mmuh1hhjhM}hjubh allocator to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM}hjubjR )}(hL``hole_start`` ulong variable to assign the hole start to on each iteration h](jX )}(h``hole_start``h]j^ )}(hj<h]h hole_start}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj:ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhM~hj6ubjt )}(hhh]h)}(h)}(hy(struct drm_mm *mm, struct drm_mm_node *node, u64 size, u64 alignment, unsigned long color, enum drm_mm_insert_mode mode)h](jD)}(hstruct drm_mm *mmh](j)}(hj? h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjsmodnameN classnameNjj)}j]j)}j}j9sbc.drm_mm_insert_node_genericasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjKubjD)}(hstruct drm_mm_node *nodeh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_mm_insert_node_genericasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjKubjD)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj:modnameN classnameNjj)}j]jc.drm_mm_insert_node_genericasbuh1hhj1ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hsizeh]hsize}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjKubjD)}(h u64 alignmenth](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_mm_insert_node_genericasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h alignmenth]h alignment}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjKubjD)}(hunsigned long colorh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcolorh]hcolor}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjKubjD)}(henum drm_mm_insert_mode modeh](j)}(hjh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_mm_insert_modeh]hdrm_mm_insert_mode}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj6modnameN classnameNjj)}j]jc.drm_mm_insert_node_genericasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmodeh]hmode}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjKubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj$hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj$hMubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj$hMhj hhubj )}(hhh]h)}(h$search for space and insert **node**h](hsearch for space and insert }(hjhhhNhNubj7 )}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j hj hhhj$hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubjM )}(hhh](jR )}(h.``struct drm_mm *mm`` drm_mm to allocate from h](jX )}(h``struct drm_mm *mm``h]j^ )}(hjh]hstruct drm_mm *mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubjt )}(hhh]h)}(hdrm_mm to allocate fromh]hdrm_mm to allocate from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h8``struct drm_mm_node *node`` preallocate node to insert h](jX )}(h``struct drm_mm_node *node``h]j^ )}(hjh]hstruct drm_mm_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj ubjt )}(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&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj'hMhjubjR )}(h$``u64 size`` size of the allocation h](jX )}(h ``u64 size``h]j^ )}(hjKh]hu64 size}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjEubjt )}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1js hjEubeh}(h]h ]h"]h$]h&]uh1jQ hj`hMhjubjR )}(h.``u64 alignment`` alignment of the allocation h](jX )}(h``u64 alignment``h]j^ )}(hjh]h u64 alignment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj~ubjt )}(hhh]h)}(halignment of the allocationh]halignment of the allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hj~ubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h>``unsigned long color`` opaque tag value to use for this node h](jX )}(h``unsigned long color``h]j^ )}(hjh]hunsigned long color}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hO``enum drm_mm_insert_mode mode`` fine-tune the allocation search and placement h](jX )}(h ``enum drm_mm_insert_mode mode``h]j^ )}(hjh]henum drm_mm_insert_mode mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubjt )}(hhh]h)}(h-fine-tune the allocation search and placementh]h-fine-tune the allocation search and placement}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj/ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubh)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubh)}(h+The preallocated node must be cleared to 0.h]h+The preallocated node must be cleared to 0.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubh)}(h **Return**h]j7 )}(hjgh]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjeubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_insert_node (C function)c.drm_mm_insert_nodehNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_mm_insert_nodeh]j)}(hdrm_mm_insert_nodeh]hdrm_mm_insert_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h7(struct drm_mm *mm, struct drm_mm_node *node, u64 size)h](jD)}(hstruct drm_mm *mmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}jsbc.drm_mm_insert_nodeasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmmh]hmm}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_mm_node *nodeh](j)}(hj? h]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj{modnameN classnameNjj)}j]j#c.drm_mm_insert_nodeasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j#c.drm_mm_insert_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h$search for space and insert **node**h](hsearch for space and insert }(hj$hhhNhNubj7 )}(h**node**h]hnode}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj$ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj!hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jJj( jJj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjRubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjNubjM )}(hhh](jR )}(h.``struct drm_mm *mm`` drm_mm to allocate from h](jX )}(h``struct drm_mm *mm``h]j^ )}(hjsh]hstruct drm_mm *mm}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjqubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjmubjt )}(hhh]h)}(hdrm_mm to allocate fromh]hdrm_mm to allocate from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjmubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjjubjR )}(h8``struct drm_mm_node *node`` preallocate node to insert h](jX )}(h``struct drm_mm_node *node``h]j^ )}(hjh]hstruct drm_mm_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubjt )}(hhh]h)}(hpreallocate node to inserth]hpreallocate node to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjjubjR )}(h$``u64 size`` size of the allocation h](jX )}(h ``u64 size``h]j^ )}(hjh]hu64 size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubjt )}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjjubeh}(h]h ]h"]h$]h&]uh1jL hjNubh)}(h**Description**h]j7 )}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjNubh)}(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 }(hj6hhhNhNubj7 )}(h **color**h]hcolor}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj6ubh set to 0.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjNubh)}(h+The preallocated node must be cleared to 0.h]h+The preallocated node must be cleared to 0.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjNubh)}(h **Return**h]j7 )}(hjhh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjfubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjNubh)}(h20 on success, -ENOSPC if there's no suitable hole.h]h40 on success, -ENOSPC if there’s no suitable hole.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_clean (C function)c.drm_mm_cleanhNtauh1jhjhhhNhNubj)}(hhh](j)}(h+bool drm_mm_clean (const struct drm_mm *mm)h]j)}(h*bool drm_mm_clean(const struct drm_mm *mm)h](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h drm_mm_cleanh]j)}(h drm_mm_cleanh]h drm_mm_clean}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h(const struct drm_mm *mm)h]jD)}(hconst struct drm_mm *mmh](j)}(hjJh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj$modnameN classnameNjj)}j]j)}j}jsbc.drm_mm_cleanasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmmh]hmm}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(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:482: ./include/drm/drm_mm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubjM )}(hhh]jR )}(h6``const struct drm_mm *mm`` drm_mm allocator to check h](jX )}(h``const struct drm_mm *mm``h]j^ )}(hjh]hconst struct drm_mm *mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubjt )}(hhh]h)}(hdrm_mm allocator to checkh]hdrm_mm allocator to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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:482: ./include/drm/drm_mm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(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_rangehNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_mm_for_each_node_in_rangeh]j)}(hdrm_mm_for_each_node_in_rangeh]j)}(hdrm_mm_for_each_node_in_rangeh]j)}(hjBh]hdrm_mm_for_each_node_in_range}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jhjDhhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhj_hMubah}(h]j;ah ](jjeh"]h$]h&]j j )j huh1jhj_hMhj=hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj=hhhj_hMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jxj( jxj) j* j+ uh1jhhhjhNhNubh)}(h@``drm_mm_for_each_node_in_range (node__, mm__, start__, end__)``h]j^ )}(hj~h]h`, and may even continue indefinitely.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubjM )}(hhh](jR )}(hE``node__`` drm_mm_node structure to assign to in each iteration step h](jX )}(h ``node__``h]j^ )}(hjh]hnode__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubjt )}(hhh]h)}(h9drm_mm_node structure to assign to in each iteration steph]h9drm_mm_node structure to assign to in each iteration step}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h"``mm__`` drm_mm allocator to walk h](jX )}(h``mm__``h]j^ )}(hj h]hmm__}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubjt )}(hhh]h)}(hdrm_mm allocator to walkh]hdrm_mm allocator to walk}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj!ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhjubjR )}(h>``start__`` starting offset, the first node will overlap this h](jX )}(h ``start__``h]j^ )}(hjDh]hstart__}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjBubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj>ubjt )}(hhh]h)}(h1starting offset, the first node will overlap thish]h1starting offset, the first node will overlap this}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1js hj>ubeh}(h]h ]h"]h$]h&]uh1jQ hjYhMhjubjR )}(hP``end__`` ending offset, the last node will start before this (but may overlap) h](jX )}(h ``end__``h]j^ )}(hj}h]hend__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj{ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjwubjt )}(hhh]h)}(hEending offset, the last node will start before this (but may overlap)h]hEending offset, the last node will start before this (but may overlap)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjwubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubh)}(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 }(hjhhhNhNubj7 )}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh and }(hjhhhNhNubj7 )}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh. 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 }(hjhhhNhNubj7 )}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh@ is within (or is the upper limit of) the drm_mm allocator. If [}(hjhhhNhNubj7 )}(h **start**h]hstart}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh, }(hjhhhNhNubj7 )}(h**end**h]hend}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh[] are beyond the range of the drm_mm, the iterator may walk over the special _unallocated_ }(hjhhhNhNubh)}(h#:c:type:`drm_mm.head_node `h]j^ )}(hj2 h]hdrm_mm.head_node}(hj4 hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj0 ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mmuh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjubh%, and may even continue indefinitely.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjO hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_scan_init (C function)c.drm_mm_scan_inithNtauh1jhjhhhNhNubj)}(hhh](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]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](j)}(hvoidh]hvoid}(hjz hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv hhhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv hhhj hMubj)}(hdrm_mm_scan_inith]j)}(hdrm_mm_scan_inith]hdrm_mm_scan_init}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjv 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](jD)}(hstruct drm_mm_scan *scanh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_mm_scanh]h drm_mm_scan}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}j sbc.drm_mm_scan_initasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hscanh]hscan}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubjD)}(hstruct drm_mm *mmh](j)}(hj? h]hstruct}(hj)!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%!ubj)}(h h]h }(hj6!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%!ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hjG!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD!ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjI!modnameN classnameNjj)}j]j c.drm_mm_scan_initasbuh1hhj%!ubj)}(h h]h }(hje!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%!ubj)}(hjh]h*}(hjs!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%!ubj)}(hmmh]hmm}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubjD)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj!modnameN classnameNjj)}j]j c.drm_mm_scan_initasbuh1hhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hsizeh]hsize}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubjD)}(h u64 alignmenth](h)}(hhh]j)}(hu64h]hu64}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj!modnameN classnameNjj)}j]j c.drm_mm_scan_initasbuh1hhj!ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h alignmenth]h alignment}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubjD)}(hunsigned long colorh](j)}(hunsignedh]hunsigned}(hj)"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%"ubj)}(h h]h }(hj7"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%"ubj)}(hlongh]hlong}(hjE"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%"ubj)}(h h]h }(hjS"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%"ubj)}(hcolorh]hcolor}(hja"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubjD)}(henum drm_mm_insert_mode modeh](j)}(hjh]henum}(hjz"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv"ubh)}(hhh]j)}(hdrm_mm_insert_modeh]hdrm_mm_insert_mode}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj"modnameN classnameNjj)}j]j c.drm_mm_scan_initasbuh1hhjv"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv"ubj)}(hmodeh]hmode}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubeh}(h]h ]h"]h$]h&]jjuh1j=hjv hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjr hhhj hMubah}(h]jm ah ](jjeh"]h$]h&]j j )j huh1jhj hMhjo hhubj )}(hhh]h)}(hinitialize lru scanningh]hinitialize lru scanning}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj"hhubah}(h]h ]h"]h$]h&]uh1j hjo hhhj hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j#j( j#j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj#ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj #ubjM )}(hhh](jR )}(h(``struct drm_mm_scan *scan`` scan state h](jX )}(h``struct drm_mm_scan *scan``h]j^ )}(hj/#h]hstruct drm_mm_scan *scan}(hj1#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj-#ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj)#ubjt )}(hhh]h)}(h scan stateh]h scan state}(hjH#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD#hMhjE#ubah}(h]h ]h"]h$]h&]uh1js hj)#ubeh}(h]h ]h"]h$]h&]uh1jQ hjD#hMhj&#ubjR )}(h%``struct drm_mm *mm`` drm_mm to scan h](jX )}(h``struct drm_mm *mm``h]j^ )}(hjh#h]hstruct drm_mm *mm}(hjj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjf#ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjb#ubjt )}(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&]uh1js hjb#ubeh}(h]h ]h"]h$]h&]uh1jQ hj}#hMhj&#ubjR )}(h$``u64 size`` size of the allocation h](jX )}(h ``u64 size``h]j^ )}(hj#h]hu64 size}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj#ubjt )}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1js hj#ubeh}(h]h ]h"]h$]h&]uh1jQ hj#hMhj&#ubjR )}(h.``u64 alignment`` alignment of the allocation h](jX )}(h``u64 alignment``h]j^ )}(hj#h]h u64 alignment}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj#ubjt )}(hhh]h)}(halignment of the allocationh]halignment of the allocation}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1js hj#ubeh}(h]h ]h"]h$]h&]uh1jQ hj#hMhj&#ubjR )}(hC``unsigned long color`` opaque tag value to use for the allocation h](jX )}(h``unsigned long color``h]j^ )}(hj$h]hunsigned long color}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj$ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj $ubjt )}(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&]uh1js hj $ubeh}(h]h ]h"]h$]h&]uh1jQ hj($hMhj&#ubjR )}(hO``enum drm_mm_insert_mode mode`` fine-tune the allocation search and placement h](jX )}(h ``enum drm_mm_insert_mode mode``h]j^ )}(hjL$h]henum drm_mm_insert_mode mode}(hjN$hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjJ$ubah}(h]h ]h"]h$]h&]uh1jW hP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhjF$ubjt )}(hhh]h)}(h-fine-tune the allocation search and placementh]h-fine-tune the allocation search and placement}(hje$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja$hMhjb$ubah}(h]h ]h"]h$]h&]uh1js hjF$ubeh}(h]h ]h"]h$]h&]uh1jQ hja$hMhj&#ubeh}(h]h ]h"]h$]h&]uh1jL hj #ubh)}(h**Description**h]j7 )}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj$ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./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:482: ./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.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:482: ./include/drm/drm_mm.hhMhj #ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_mm_reserve_node (C function)c.drm_mm_reserve_nodehNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj$hMubj)}(hdrm_mm_reserve_nodeh]j)}(hdrm_mm_reserve_nodeh]hdrm_mm_reserve_node}(hj %hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj$hhhj$hMubj>)}(h-(struct drm_mm *mm, struct drm_mm_node *node)h](jD)}(hstruct drm_mm *mmh](j)}(hj? h]hstruct}(hj'%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#%ubj)}(h h]h }(hj4%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#%ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hjE%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB%ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjG%modnameN classnameNjj)}j]j)}j}j %sbc.drm_mm_reserve_nodeasbuh1hhj#%ubj)}(h h]h }(hje%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#%ubj)}(hjh]h*}(hjs%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#%ubj)}(hmmh]hmm}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj%ubjD)}(hstruct drm_mm_node *nodeh](j)}(hj? h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj%modnameN classnameNjj)}j]ja%c.drm_mm_reserve_nodeasbuh1hhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hnodeh]hnode}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj%ubeh}(h]h ]h"]h$]h&]jjuh1j=hj$hhhj$hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhj$hMubah}(h]j$ah ](jjeh"]h$]h&]j j )j huh1jhj$hMhj$hhubj )}(hhh]h)}(hinsert an pre-initialized nodeh]hinsert an pre-initialized node}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj&hhubah}(h]h ]h"]h$]h&]uh1j hj$hhhj$hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j2&j( j2&j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj<&h]h Parameters}(hj>&hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj:&ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj6&ubjM )}(hhh](jR )}(h?``struct drm_mm *mm`` drm_mm allocator to insert **node** into h](jX )}(h``struct drm_mm *mm``h]j^ )}(hj[&h]hstruct drm_mm *mm}(hj]&hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjY&ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjU&ubjt )}(hhh]h)}(h(drm_mm allocator to insert **node** intoh](hdrm_mm allocator to insert }(hjt&hhhNhNubj7 )}(h**node**h]hnode}(hj|&hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjt&ubh into}(hjt&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjp&hMhjq&ubah}(h]h ]h"]h$]h&]uh1js hjU&ubeh}(h]h ]h"]h$]h&]uh1jQ hjp&hMhjR&ubjR )}(h3``struct drm_mm_node *node`` drm_mm_node to insert h](jX )}(h``struct drm_mm_node *node``h]j^ )}(hj&h]hstruct drm_mm_node *node}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj&ubjt )}(hhh]h)}(hdrm_mm_node to inserth]hdrm_mm_node to insert}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1js hj&ubeh}(h]h ]h"]h$]h&]uh1jQ hj&hMhjR&ubeh}(h]h ]h"]h$]h&]uh1jL hj6&ubh)}(h**Description**h]j7 )}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj&ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj6&ubh)}(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 }(hj&hhhNhNubh)}(h:c:type:`drm_mm_node`h]j^ )}(hj'h]h drm_mm_node}(hj'hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_mm_nodeuh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj&ubhX+ 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.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj'hMhj6&ubh)}(h **Return**h]j7 )}(hj+'h]hReturn}(hj-'hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj)'ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj6&ubh)}(h;0 on success, -ENOSPC if there's no hole where **node** is.h](h10 on success, -ENOSPC if there’s no hole where }(hjA'hhhNhNubj7 )}(h**node**h]hnode}(hjI'hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjA'ubh is.}(hjA'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj6&ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_mm_insert_node_in_range (C function)c.drm_mm_insert_node_in_rangehNtauh1jhjhhhNhNubj)}(hhh](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]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](j)}(hinth]hint}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~'hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~'hhhj'hMubj)}(hdrm_mm_insert_node_in_rangeh]j)}(hdrm_mm_insert_node_in_rangeh]hdrm_mm_insert_node_in_range}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj~'hhhj'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](jD)}(hstruct drm_mm *const mmh](j)}(hj? h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj'modnameN classnameNjj)}j]j)}j}j'sbc.drm_mm_insert_node_in_rangeasbuh1hhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hj (hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjJh]hconst}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj%(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hmmh]hmm}(hj3(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj'ubjD)}(hstruct drm_mm_node *const nodeh](j)}(hj? h]hstruct}(hjL(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH(ubj)}(h h]h }(hjY(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH(ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hjj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg(ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjl(modnameN classnameNjj)}j]j'c.drm_mm_insert_node_in_rangeasbuh1hhjH(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH(ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH(ubj)}(hjJh]hconst}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH(ubj)}(hnodeh]hnode}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj'ubjD)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj(modnameN classnameNjj)}j]j'c.drm_mm_insert_node_in_rangeasbuh1hhj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hsizeh]hsize}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj'ubjD)}(h u64 alignmenth](h)}(hhh]j)}(hu64h]hu64}(hj")hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj$)modnameN classnameNjj)}j]j'c.drm_mm_insert_node_in_rangeasbuh1hhj)ubj)}(h h]h }(hj@)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h alignmenth]h alignment}(hjN)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj'ubjD)}(hunsigned long colorh](j)}(hunsignedh]hunsigned}(hjg)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc)ubj)}(h h]h }(hju)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc)ubj)}(hlongh]hlong}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc)ubj)}(hcolorh]hcolor}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj'ubjD)}(hu64 range_starth](h)}(hhh]j)}(hu64h]hu64}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj)modnameN classnameNjj)}j]j'c.drm_mm_insert_node_in_rangeasbuh1hhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h range_starth]h range_start}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj'ubjD)}(h u64 range_endh](h)}(hhh]j)}(hu64h]hu64}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj*modnameN classnameNjj)}j]j'c.drm_mm_insert_node_in_rangeasbuh1hhj)ubj)}(h h]h }(hj!*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h range_endh]h range_end}(hj/*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj'ubjD)}(henum drm_mm_insert_mode modeh](j)}(hjh]henum}(hjH*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD*ubj)}(h h]h }(hjU*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD*ubh)}(hhh]j)}(hdrm_mm_insert_modeh]hdrm_mm_insert_mode}(hjf*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc*ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjh*modnameN classnameNjj)}j]j'c.drm_mm_insert_node_in_rangeasbuh1hhjD*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD*ubj)}(hmodeh]hmode}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj'ubeh}(h]h ]h"]h$]h&]jjuh1j=hj~'hhhj'hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjz'hhhj'hMubah}(h]ju'ah ](jjeh"]h$]h&]j j )j huh1jhj'hMhjw'hhubj )}(hhh]h)}(h+ranged search for space and insert **node**h](h#ranged search for space and insert }(hj*hhhNhNubj7 )}(h**node**h]hnode}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj*ubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj*hhubah}(h]h ]h"]h$]h&]uh1j hjw'hhhj'hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j*j( j*j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj*ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj*ubjM )}(hhh](jR )}(h5``struct drm_mm * const mm`` drm_mm to allocate from h](jX )}(h``struct drm_mm * const mm``h]j^ )}(hj +h]hstruct drm_mm * const mm}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj +ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj+ubjt )}(hhh]h)}(hdrm_mm to allocate fromh]hdrm_mm to allocate from}(hj$+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj +hMhj!+ubah}(h]h ]h"]h$]h&]uh1js hj+ubeh}(h]h ]h"]h$]h&]uh1jQ hj +hMhj+ubjR )}(h?``struct drm_mm_node * const node`` preallocate node to insert h](jX )}(h#``struct drm_mm_node * const node``h]j^ )}(hjD+h]hstruct drm_mm_node * const node}(hjF+hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjB+ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj>+ubjt )}(hhh]h)}(hpreallocate node to inserth]hpreallocate node to insert}(hj]+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY+hMhjZ+ubah}(h]h ]h"]h$]h&]uh1js hj>+ubeh}(h]h ]h"]h$]h&]uh1jQ hjY+hMhj+ubjR )}(h$``u64 size`` size of the allocation h](jX )}(h ``u64 size``h]j^ )}(hj}+h]hu64 size}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj{+ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjw+ubjt )}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj+ubah}(h]h ]h"]h$]h&]uh1js hjw+ubeh}(h]h ]h"]h$]h&]uh1jQ hj+hMhj+ubjR )}(h.``u64 alignment`` alignment of the allocation h](jX )}(h``u64 alignment``h]j^ )}(hj+h]h u64 alignment}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj+ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj+ubjt )}(hhh]h)}(halignment of the allocationh]halignment of the allocation}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj+ubah}(h]h ]h"]h$]h&]uh1js hj+ubeh}(h]h ]h"]h$]h&]uh1jQ hj+hMhj+ubjR )}(h>``unsigned long color`` opaque tag value to use for this node h](jX )}(h``unsigned long color``h]j^ )}(hj+h]hunsigned long color}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj+ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj+ubjt )}(hhh]h)}(h%opaque tag value to use for this nodeh]h%opaque tag value to use for this node}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1js hj+ubeh}(h]h ]h"]h$]h&]uh1jQ hj,hMhj+ubjR )}(h=``u64 range_start`` start of the allowed range for this node h](jX )}(h``u64 range_start``h]j^ )}(hj(,h]hu64 range_start}(hj*,hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj&,ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj",ubjt )}(hhh]h)}(h(start of the allowed range for this nodeh]h(start of the allowed range for this node}(hjA,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=,hMhj>,ubah}(h]h ]h"]h$]h&]uh1js hj",ubeh}(h]h ]h"]h$]h&]uh1jQ hj=,hMhj+ubjR )}(h9``u64 range_end`` end of the allowed range for this node h](jX )}(h``u64 range_end``h]j^ )}(hja,h]h u64 range_end}(hjc,hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj_,ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj[,ubjt )}(hhh]h)}(h&end of the allowed range for this nodeh]h&end of the allowed range for this node}(hjz,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv,hMhjw,ubah}(h]h ]h"]h$]h&]uh1js hj[,ubeh}(h]h ]h"]h$]h&]uh1jQ hjv,hMhj+ubjR )}(hO``enum drm_mm_insert_mode mode`` fine-tune the allocation search and placement h](jX )}(h ``enum drm_mm_insert_mode mode``h]j^ )}(hj,h]henum drm_mm_insert_mode mode}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj,ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj,ubjt )}(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&]uh1js hj,ubeh}(h]h ]h"]h$]h&]uh1jQ hj,hMhj+ubeh}(h]h ]h"]h$]h&]uh1jL hj*ubh)}(h**Description**h]j7 )}(hj,h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj,ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj*ubh)}(h/The preallocated **node** must be cleared to 0.h](hThe preallocated }(hj,hhhNhNubj7 )}(h**node**h]hnode}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj,ubh must be cleared to 0.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj*ubh)}(h **Return**h]j7 )}(hj-h]hReturn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj -ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj*ubh)}(h20 on success, -ENOSPC if there's no suitable hole.h]h40 on success, -ENOSPC if there’s no suitable hole.}(hj$-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_remove_node (C function)c.drm_mm_remove_nodehNtauh1jhjhhhNhNubj)}(hhh](j)}(h2void drm_mm_remove_node (struct drm_mm_node *node)h]j)}(h1void drm_mm_remove_node(struct drm_mm_node *node)h](j)}(hvoidh]hvoid}(hjS-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO-hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMmubj)}(h h]h }(hjb-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO-hhhja-hMmubj)}(hdrm_mm_remove_nodeh]j)}(hdrm_mm_remove_nodeh]hdrm_mm_remove_node}(hjt-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp-ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjO-hhhja-hMmubj>)}(h(struct drm_mm_node *node)h]jD)}(hstruct drm_mm_node *nodeh](j)}(hj? h]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj-modnameN classnameNjj)}j]j)}j}jv-sbc.drm_mm_remove_nodeasbuh1hhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hnodeh]hnode}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj-ubah}(h]h ]h"]h$]h&]jjuh1j=hjO-hhhja-hMmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjK-hhhja-hMmubah}(h]jF-ah ](jjeh"]h$]h&]j j )j huh1jhja-hMmhjH-hhubj )}(hhh]h)}(h(Remove a memory node from the allocator.h]h(Remove a memory node from the allocator.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMmhj.hhubah}(h]h ]h"]h$]h&]uh1j hjH-hhhja-hMmubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j+.j( j+.j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj5.h]h Parameters}(hj7.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj3.ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMqhj/.ubjM )}(hhh]jR )}(h3``struct drm_mm_node *node`` drm_mm_node to remove h](jX )}(h``struct drm_mm_node *node``h]j^ )}(hjT.h]hstruct drm_mm_node *node}(hjV.hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjR.ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMnhjN.ubjt )}(hhh]h)}(hdrm_mm_node to removeh]hdrm_mm_node to remove}(hjm.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji.hMnhjj.ubah}(h]h ]h"]h$]h&]uh1js hjN.ubeh}(h]h ]h"]h$]h&]uh1jQ hji.hMnhjK.ubah}(h]h ]h"]h$]h&]uh1jL hj/.ubh)}(h**Description**h]j7 )}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj.ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMphj/.ubh)}(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:485: ./drivers/gpu/drm/drm_mm.chMohj/.ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_mm_scan_init_with_range (C function)c.drm_mm_scan_init_with_rangehNtauh1jhjhhhNhNubj)}(hhh](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]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](j)}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj.hMubj)}(hdrm_mm_scan_init_with_rangeh]j)}(hdrm_mm_scan_init_with_rangeh]hdrm_mm_scan_init_with_range}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj.hhhj.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](jD)}(hstruct drm_mm_scan *scanh](j)}(hj? h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj /ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj /ubh)}(hhh]j)}(h drm_mm_scanh]h drm_mm_scan}(hj//hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,/ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj1/modnameN classnameNjj)}j]j)}j}j.sbc.drm_mm_scan_init_with_rangeasbuh1hhj /ubj)}(h h]h }(hjO/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj /ubj)}(hjh]h*}(hj]/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj /ubj)}(hscanh]hscan}(hjj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj /ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj /ubjD)}(hstruct drm_mm *mmh](j)}(hj? h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj/modnameN classnameNjj)}j]jK/c.drm_mm_scan_init_with_rangeasbuh1hhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hmmh]hmm}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj /ubjD)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj/modnameN classnameNjj)}j]jK/c.drm_mm_scan_init_with_rangeasbuh1hhj/ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hsizeh]hsize}(hj"0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj /ubjD)}(h u64 alignmenth](h)}(hhh]j)}(hu64h]hu64}(hj>0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;0ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj@0modnameN classnameNjj)}j]jK/c.drm_mm_scan_init_with_rangeasbuh1hhj70ubj)}(h h]h }(hj\0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj70ubj)}(h alignmenth]h alignment}(hjj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj70ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj /ubjD)}(hunsigned long colorh](j)}(hunsignedh]hunsigned}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hlongh]hlong}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hcolorh]hcolor}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj /ubjD)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj0modnameN classnameNjj)}j]jK/c.drm_mm_scan_init_with_rangeasbuh1hhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hstarth]hstart}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj /ubjD)}(hu64 endh](h)}(hhh]j)}(hu64h]hu64}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj!1modnameN classnameNjj)}j]jK/c.drm_mm_scan_init_with_rangeasbuh1hhj1ubj)}(h h]h }(hj=1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hendh]hend}(hjK1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj /ubjD)}(henum drm_mm_insert_mode modeh](j)}(hjh]henum}(hjd1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`1ubj)}(h h]h }(hjq1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`1ubh)}(hhh]j)}(hdrm_mm_insert_modeh]hdrm_mm_insert_mode}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj1modnameN classnameNjj)}j]jK/c.drm_mm_scan_init_with_rangeasbuh1hhj`1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`1ubj)}(hmodeh]hmode}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj /ubeh}(h]h ]h"]h$]h&]jjuh1j=hj.hhhj.hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhj.hMubah}(h]j.ah ](jjeh"]h$]h&]j j )j huh1jhj.hMhj.hhubj )}(hhh]h)}(h(initialize range-restricted lru scanningh]h(initialize range-restricted lru scanning}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj1hhubah}(h]h ]h"]h$]h&]uh1j hj.hhhj.hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j1j( j1j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj1ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj1ubjM )}(hhh](jR )}(h(``struct drm_mm_scan *scan`` scan state h](jX )}(h``struct drm_mm_scan *scan``h]j^ )}(hj2h]hstruct drm_mm_scan *scan}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj2ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj2ubjt )}(hhh]h)}(h scan stateh]h scan state}(hj22hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.2hMhj/2ubah}(h]h ]h"]h$]h&]uh1js hj2ubeh}(h]h ]h"]h$]h&]uh1jQ hj.2hMhj2ubjR )}(h%``struct drm_mm *mm`` drm_mm to scan h](jX )}(h``struct drm_mm *mm``h]j^ )}(hjR2h]hstruct drm_mm *mm}(hjT2hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjP2ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjL2ubjt )}(hhh]h)}(hdrm_mm to scanh]hdrm_mm to scan}(hjk2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg2hMhjh2ubah}(h]h ]h"]h$]h&]uh1js hjL2ubeh}(h]h ]h"]h$]h&]uh1jQ hjg2hMhj2ubjR )}(h$``u64 size`` size of the allocation h](jX )}(h ``u64 size``h]j^ )}(hj2h]hu64 size}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj2ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj2ubjt )}(hhh]h)}(hsize of the allocationh]hsize of the allocation}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1js hj2ubeh}(h]h ]h"]h$]h&]uh1jQ hj2hMhj2ubjR )}(h.``u64 alignment`` alignment of the allocation h](jX )}(h``u64 alignment``h]j^ )}(hj2h]h u64 alignment}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj2ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj2ubjt )}(hhh]h)}(halignment of the allocationh]halignment of the allocation}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1js hj2ubeh}(h]h ]h"]h$]h&]uh1jQ hj2hMhj2ubjR )}(hC``unsigned long color`` opaque tag value to use for the allocation h](jX )}(h``unsigned long color``h]j^ )}(hj2h]hunsigned long color}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj2ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj2ubjt )}(hhh]h)}(h*opaque tag value to use for the allocationh]h*opaque tag value to use for the allocation}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1js hj2ubeh}(h]h ]h"]h$]h&]uh1jQ hj3hMhj2ubjR )}(h<``u64 start`` start of the allowed range for the allocation h](jX )}(h ``u64 start``h]j^ )}(hj63h]h u64 start}(hj83hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj43ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj03ubjt )}(hhh]h)}(h-start of the allowed range for the allocationh]h-start of the allowed range for the allocation}(hjO3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK3hMhjL3ubah}(h]h ]h"]h$]h&]uh1js hj03ubeh}(h]h ]h"]h$]h&]uh1jQ hjK3hMhj2ubjR )}(h8``u64 end`` end of the allowed range for the allocation h](jX )}(h ``u64 end``h]j^ )}(hjo3h]hu64 end}(hjq3hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjm3ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhji3ubjt )}(hhh]h)}(h+end of the allowed range for the allocationh]h+end of the allowed range for the allocation}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1js hji3ubeh}(h]h ]h"]h$]h&]uh1jQ hj3hMhj2ubjR )}(hO``enum drm_mm_insert_mode mode`` fine-tune the allocation search and placement h](jX )}(h ``enum drm_mm_insert_mode mode``h]j^ )}(hj3h]henum drm_mm_insert_mode mode}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj3ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj3ubjt )}(hhh]h)}(h-fine-tune the allocation search and placementh]h-fine-tune the allocation search and placement}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1js hj3ubeh}(h]h ]h"]h$]h&]uh1jQ hj3hMhj2ubeh}(h]h ]h"]h$]h&]uh1jL hj1ubh)}(h**Description**h]j7 )}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj3ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj1ubh)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj1ubh)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_mm_scan_add_block (C function)c.drm_mm_scan_add_blockhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hj74hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj34hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMubj)}(h h]h }(hjE4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj34hhhjD4hMubj)}(hdrm_mm_scan_add_blockh]j)}(hdrm_mm_scan_add_blockh]hdrm_mm_scan_add_block}(hjW4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS4ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj34hhhjD4hMubj>)}(h4(struct drm_mm_scan *scan, struct drm_mm_node *node)h](jD)}(hstruct drm_mm_scan *scanh](j)}(hj? h]hstruct}(hjs4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo4ubh)}(hhh]j)}(h drm_mm_scanh]h drm_mm_scan}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj4modnameN classnameNjj)}j]j)}j}jY4sbc.drm_mm_scan_add_blockasbuh1hhjo4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo4ubj)}(hscanh]hscan}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjk4ubjD)}(hstruct drm_mm_node *nodeh](j)}(hj? h]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj5modnameN classnameNjj)}j]j4c.drm_mm_scan_add_blockasbuh1hhj4ubj)}(h h]h }(hj!5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hj/5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hnodeh]hnode}(hj<5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjk4ubeh}(h]h ]h"]h$]h&]jjuh1j=hj34hhhjD4hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/4hhhjD4hMubah}(h]j*4ah ](jjeh"]h$]h&]j j )j huh1jhjD4hMhj,4hhubj )}(hhh]h)}(hadd a node to the scan listh]hadd a node to the scan list}(hjf5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjc5hhubah}(h]h ]h"]h$]h&]uh1j hj,4hhhjD4hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j~5j( j~5j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj5ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj5ubjM )}(hhh](jR )}(h7``struct drm_mm_scan *scan`` the active drm_mm scanner h](jX )}(h``struct drm_mm_scan *scan``h]j^ )}(hj5h]hstruct drm_mm_scan *scan}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj5ubjt )}(hhh]h)}(hthe active drm_mm scannerh]hthe active drm_mm scanner}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1js hj5ubeh}(h]h ]h"]h$]h&]uh1jQ hj5hMhj5ubjR )}(h0``struct drm_mm_node *node`` drm_mm_node to add h](jX )}(h``struct drm_mm_node *node``h]j^ )}(hj5h]hstruct drm_mm_node *node}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj5ubjt )}(hhh]h)}(hdrm_mm_node to addh]hdrm_mm_node to add}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1js hj5ubeh}(h]h ]h"]h$]h&]uh1jQ hj5hMhj5ubeh}(h]h ]h"]h$]h&]uh1jL hj5ubh)}(h**Description**h]j7 )}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj6ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj5ubh)}(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.}(hj16hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj5ubh)}(h **Return**h]j7 )}(hjB6h]hReturn}(hjD6hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj@6ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj5ubh)}(h/True if a hole has been found, false otherwise.h]h/True if a hole has been found, false otherwise.}(hjX6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_mm_scan_remove_block (C function)c.drm_mm_scan_remove_blockhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chM3ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hM3ubj)}(hdrm_mm_scan_remove_blockh]j)}(hdrm_mm_scan_remove_blockh]hdrm_mm_scan_remove_block}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj6hhhj6hM3ubj>)}(h4(struct drm_mm_scan *scan, struct drm_mm_node *node)h](jD)}(hstruct drm_mm_scan *scanh](j)}(hj? h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j)}(h drm_mm_scanh]h drm_mm_scan}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj6modnameN classnameNjj)}j]j)}j}j6sbc.drm_mm_scan_remove_blockasbuh1hhj6ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hscanh]hscan}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj6ubjD)}(hstruct drm_mm_node *nodeh](j)}(hj? h]hstruct}(hj57hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj17ubj)}(h h]h }(hjB7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj17ubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hjS7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP7ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjU7modnameN classnameNjj)}j]j6c.drm_mm_scan_remove_blockasbuh1hhj17ubj)}(h h]h }(hjq7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj17ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj17ubj)}(hnodeh]hnode}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj17ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj6ubeh}(h]h ]h"]h$]h&]jjuh1j=hj6hhhj6hM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhj6hM3ubah}(h]jz6ah ](jjeh"]h$]h&]j j )j huh1jhj6hM3hj|6hhubj )}(hhh]h)}(h remove a node from the scan listh]h remove a node from the scan list}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chM3hj7hhubah}(h]h ]h"]h$]h&]uh1j hj|6hhhj6hM3ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j7j( j7j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj7ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chM7hj7ubjM )}(hhh](jR )}(h7``struct drm_mm_scan *scan`` the active drm_mm scanner h](jX )}(h``struct drm_mm_scan *scan``h]j^ )}(hj7h]hstruct drm_mm_scan *scan}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj7ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chM4hj7ubjt )}(hhh]h)}(hthe active drm_mm scannerh]hthe active drm_mm scanner}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 8hM4hj 8ubah}(h]h ]h"]h$]h&]uh1js hj7ubeh}(h]h ]h"]h$]h&]uh1jQ hj 8hM4hj7ubjR )}(h3``struct drm_mm_node *node`` drm_mm_node to remove h](jX )}(h``struct drm_mm_node *node``h]j^ )}(hj08h]hstruct drm_mm_node *node}(hj28hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj.8ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chM5hj*8ubjt )}(hhh]h)}(hdrm_mm_node to removeh]hdrm_mm_node to remove}(hjI8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjE8hM5hjF8ubah}(h]h ]h"]h$]h&]uh1js hj*8ubeh}(h]h ]h"]h$]h&]uh1jQ hjE8hM5hj7ubeh}(h]h ]h"]h$]h&]uh1jL hj7ubh)}(h**Description**h]j7 )}(hjk8h]h Description}(hjm8hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hji8ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chM7hj7ubh)}(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 }(hj8hhhNhNubj7 )}(h**must**h]hmust}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj8ubh 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.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chM6hj7ubh)}(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).}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chM;hj7ubh)}(h **Return**h]j7 )}(hj8h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj8ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chM@hj7ubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMAhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_mm_scan_color_evict (C function)c.drm_mm_scan_color_evicthNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMdubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj9hMdubh)}(hhh]j)}(h drm_mm_nodeh]h drm_mm_node}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj9modnameN classnameNjj)}j]j)}j}drm_mm_scan_color_evictsbc.drm_mm_scan_color_evictasbuh1hhj8hhhj9hMdubj)}(h h]h }(hj89hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj9hMdubj)}(hjh]h*}(hjF9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj9hMdubj)}(hdrm_mm_scan_color_evicth]j)}(hj59h]hdrm_mm_scan_color_evict}(hjW9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS9ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj8hhhj9hMdubj>)}(h(struct drm_mm_scan *scan)h]jD)}(hstruct drm_mm_scan *scanh](j)}(hj? h]hstruct}(hjr9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn9ubh)}(hhh]j)}(h drm_mm_scanh]h drm_mm_scan}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj9modnameN classnameNjj)}j]j39c.drm_mm_scan_color_evictasbuh1hhjn9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn9ubj)}(hscanh]hscan}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjj9ubah}(h]h ]h"]h$]h&]jjuh1j=hj8hhhj9hMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj9hMdubah}(h]j8ah ](jjeh"]h$]h&]j j )j huh1jhj9hMdhj8hhubj )}(hhh]h)}(h.evict overlapping nodes on either side of holeh]h.evict overlapping nodes on either side of hole}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMdhj9hhubah}(h]h ]h"]h$]h&]uh1j hj8hhhj9hMdubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j :j( j :j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj:ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhhj:ubjM )}(hhh]jR )}(h:``struct drm_mm_scan *scan`` drm_mm scan with target hole h](jX )}(h``struct drm_mm_scan *scan``h]j^ )}(hj4:h]hstruct drm_mm_scan *scan}(hj6:hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj2:ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMehj.:ubjt )}(hhh]h)}(hdrm_mm scan with target holeh]hdrm_mm scan with target hole}(hjM:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI:hMehjJ:ubah}(h]h ]h"]h$]h&]uh1js hj.:ubeh}(h]h ]h"]h$]h&]uh1jQ hjI:hMehj+:ubah}(h]h ]h"]h$]h&]uh1jL hj:ubh)}(h**Description**h]j7 )}(hjo:h]h Description}(hjq:hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjm:ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMghj:ubh)}(hAfter completing an eviction scan and removing the selected nodes, we may need to remove a few more nodes from either side of the target hole if mm.color_adjust is being used.h]hAfter completing an eviction scan and removing the selected nodes, we may need to remove a few more nodes from either side of the target hole if mm.color_adjust is being used.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMfhj:ubh)}(h **Return**h]j7 )}(hj:h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj:ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMjhj:ubh)}(h;A node to evict, or NULL if there are no overlapping nodes.h]h;A node to evict, or NULL if there are no overlapping nodes.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMkhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_init (C function) c.drm_mm_inithNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hMubj)}(h drm_mm_inith]j)}(h drm_mm_inith]h drm_mm_init}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj:hhhj:hMubj>)}(h((struct drm_mm *mm, u64 start, u64 size)h](jD)}(hstruct drm_mm *mmh](j)}(hj? h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hj%;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj6;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3;ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj8;modnameN classnameNjj)}j]j)}j}j:sb c.drm_mm_initasbuh1hhj;ubj)}(h h]h }(hjV;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hjd;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hmmh]hmm}(hjq;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj;ubjD)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj;modnameN classnameNjj)}j]jR; c.drm_mm_initasbuh1hhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hstarth]hstart}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj;ubjD)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj;modnameN classnameNjj)}j]jR; c.drm_mm_initasbuh1hhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hsizeh]hsize}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj;ubeh}(h]h ]h"]h$]h&]jjuh1j=hj:hhhj:hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:hhhj:hMubah}(h]j:ah ](jjeh"]h$]h&]j j )j huh1jhj:hMhj: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:485: ./drivers/gpu/drm/drm_mm.chMhj(<hhubah}(h]h ]h"]h$]h&]uh1j hj:hhhj:hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jC<j( jC<j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjM<h]h Parameters}(hjO<hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjK<ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjG<ubjM )}(hhh](jR )}(h9``struct drm_mm *mm`` the drm_mm structure to initialize h](jX )}(h``struct drm_mm *mm``h]j^ )}(hjl<h]hstruct drm_mm *mm}(hjn<hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjj<ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjf<ubjt )}(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&]uh1js hjf<ubeh}(h]h ]h"]h$]h&]uh1jQ hj<hMhjc<ubjR )}(h3``u64 start`` start of the range managed by **mm** h](jX )}(h ``u64 start``h]j^ )}(hj<h]h u64 start}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj<ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj<ubjt )}(hhh]h)}(h$start of the range managed by **mm**h](hstart of the range managed by }(hj<hhhNhNubj7 )}(h**mm**h]hmm}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj<ubeh}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1js hj<ubeh}(h]h ]h"]h$]h&]uh1jQ hj<hMhjc<ubjR )}(h0``u64 size`` end of the range managed by **mm** h](jX )}(h ``u64 size``h]j^ )}(hj<h]hu64 size}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj<ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj<ubjt )}(hhh]h)}(h"end of the range managed by **mm**h](hend of the range managed by }(hj=hhhNhNubj7 )}(h**mm**h]hmm}(hj =hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj=ubeh}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1js hj<ubeh}(h]h ]h"]h$]h&]uh1jQ hj=hMhjc<ubeh}(h]h ]h"]h$]h&]uh1jL hjG<ubh)}(h**Description**h]j7 )}(hj5=h]h Description}(hj7=hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj3=ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjG<ubh)}(hCNote that **mm** must be cleared to 0 before calling this function.h](h Note that }(hjK=hhhNhNubj7 )}(h**mm**h]hmm}(hjS=hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjK=ubh3 must be cleared to 0 before calling this function.}(hjK=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjG<ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_takedown (C function)c.drm_mm_takedownhNtauh1jhjhhhNhNubj)}(hhh](j)}(h(void drm_mm_takedown (struct drm_mm *mm)h]j)}(h'void drm_mm_takedown(struct drm_mm *mm)h](j)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMubj)}(hdrm_mm_takedownh]j)}(hdrm_mm_takedownh]hdrm_mm_takedown}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj=hhhj=hMubj>)}(h(struct drm_mm *mm)h]jD)}(hstruct drm_mm *mmh](j)}(hj? h]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj=modnameN classnameNjj)}j]j)}j}j=sbc.drm_mm_takedownasbuh1hhj=ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hmmh]hmm}(hj">hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj=ubah}(h]h ]h"]h$]h&]jjuh1j=hj=hhhj=hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhj=hMubah}(h]j=ah ](jjeh"]h$]h&]j j )j huh1jhj=hMhj=hhubj )}(hhh]h)}(hclean up a drm_mm allocatorh]hclean up a drm_mm allocator}(hjL>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjI>hhubah}(h]h ]h"]h$]h&]uh1j hj=hhhj=hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jd>j( jd>j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjn>h]h Parameters}(hjp>hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjl>ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjh>ubjM )}(hhh]jR )}(h3``struct drm_mm *mm`` drm_mm allocator to clean up h](jX )}(h``struct drm_mm *mm``h]j^ )}(hj>h]hstruct drm_mm *mm}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj>ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj>ubjt )}(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&]uh1js hj>ubeh}(h]h ]h"]h$]h&]uh1jQ hj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jL hjh>ubh)}(h**Description**h]j7 )}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj>ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjh>ubh)}(hONote that it is a bug to call this function on an allocator which is not clean.h]hONote that it is a bug to call this function on an allocator which is not clean.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjh>ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_mm_print (C function)c.drm_mm_printhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj ?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ?hhhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ?hhhj?hMubj)}(h drm_mm_printh]j)}(h drm_mm_printh]h drm_mm_print}(hj.?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*?ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj ?hhhj?hMubj>)}(h0(const struct drm_mm *mm, struct drm_printer *p)h](jD)}(hconst struct drm_mm *mmh](j)}(hjJh]hconst}(hjJ?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF?ubj)}(h h]h }(hjW?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF?ubj)}(hj? h]hstruct}(hje?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF?ubj)}(h h]h }(hjr?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF?ubh)}(hhh]j)}(hdrm_mmh]hdrm_mm}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj?modnameN classnameNjj)}j]j)}j}j0?sbc.drm_mm_printasbuh1hhjF?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF?ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF?ubj)}(hmmh]hmm}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjB?ubjD)}(hstruct drm_printer *ph](j)}(hj? h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj?modnameN classnameNjj)}j]j?c.drm_mm_printasbuh1hhj?ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hjh]h*}(hj!@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hjh]hp}(hj.@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjB?ubeh}(h]h ]h"]h$]h&]jjuh1j=hj ?hhhj?hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhj?hMubah}(h]j?ah ](jjeh"]h$]h&]j j )j huh1jhj?hMhj?hhubj )}(hhh]h)}(hprint allocator stateh]hprint allocator state}(hjW@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjT@hhubah}(h]h ]h"]h$]h&]uh1j hj?hhhj?hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jo@j( jo@j) j* j+ uh1jhhhjhNhNubj- )}(hw**Parameters** ``const struct drm_mm *mm`` drm_mm allocator to print ``struct drm_printer *p`` DRM printer to useh](h)}(h**Parameters**h]j7 )}(hjy@h]h Parameters}(hj{@hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjw@ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhjs@ubjM )}(hhh](jR )}(h6``const struct drm_mm *mm`` drm_mm allocator to print h](jX )}(h``const struct drm_mm *mm``h]j^ )}(hj@h]hconst struct drm_mm *mm}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj@ubjt )}(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&]uh1js hj@ubeh}(h]h ]h"]h$]h&]uh1jQ hj@hMhj@ubjR )}(h,``struct drm_printer *p`` DRM printer to useh](jX )}(h``struct drm_printer *p``h]j^ )}(hj@h]hstruct drm_printer *p}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]uh1jW hT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj@ubjt )}(hhh]h)}(hDRM printer to useh]hDRM printer to use}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:485: ./drivers/gpu/drm/drm_mm.chMhj@ubah}(h]h ]h"]h$]h&]uh1js hj@ubeh}(h]h ]h"]h$]h&]uh1jQ hj@hMhj@ubeh}(h]h ]h"]h$]h&]uh1jL hjs@ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(h.. _drm_gpuvm:h]h}(h]h ]h"]h$]h&]hjuh1jhMhjhhhhubeh}(h]joah ]h"]*drm mm range allocator function referencesah$]h&]uh1hhjhhhhhMubeh}(h]j ah ]h"]drm mm range allocatorah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h DRM GPUVMh]h DRM GPUVM}(hj-AhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj*AhhhhhMubh)}(hhh](h)}(hOverviewh]hOverview}(hj>AhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj;AhhhhhMubh)}(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 }(hjLAhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjVAh]h drm_gpuva}(hjXAhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjTAubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:496: ./drivers/gpu/drm/drm_gpuvm.chK%hjLAubh9 objects. It also keeps track of the mapping’s backing }(hjLAhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjzAh]hdrm_gem_object}(hj|AhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjxAubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjsAhK%hjLAubh buffers.}(hjLAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjsAhK%hj;Ahhubh)}(h:c:type:`drm_gem_object` buffers maintain a list of :c:type:`drm_gpuva` objects representing all existing GPU VA mappings using this :c:type:`drm_gem_object` as backing buffer.h](h)}(h:c:type:`drm_gem_object`h]j^ )}(hjAh]hdrm_gem_object}(hjAhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjAubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:496: ./drivers/gpu/drm/drm_gpuvm.chK*hjAubh buffers maintain a list of }(hjAhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjAh]h drm_gpuva}(hjAhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjAubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjAhK*hjAubh> objects representing all existing GPU VA mappings using this }(hjAhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjAh]hdrm_gem_object}(hjAhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjAubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjAhK*hjAubh as backing buffer.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhK*hj;Ahhubh)}(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’.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:496: ./drivers/gpu/drm/drm_gpuvm.chK-hj;Ahhubh)}(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$BhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj.Bh]h drm_gpuva}(hj0BhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj,Bubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:496: ./drivers/gpu/drm/drm_gpuvm.chK0hj$Bubh1 mappings within a GPU’s virtual address space.}(hj$BhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKBhK0hj;Ahhubh)}(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 }(hjVBhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj`Bh]h drm_gpuvm}(hjbBhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj^Bubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:496: ./drivers/gpu/drm/drm_gpuvm.chK3hjVBubh structure contains a special }(hjVBhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjBh]h drm_gpuva}(hjBhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjBubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhj}BhK3hjVBubh 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.}(hjVBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}BhK3hj;Ahhubh)}(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 }(hjBhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjBh]h drm_gpuva}(hjBhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjBubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:496: ./drivers/gpu/drm/drm_gpuvm.chK8hjBubh entries.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBhK8hj;Ahhubh)}(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 }(hjBhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j^ )}(hjBh]h drm_gpuvas}(hjBhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjBubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvasuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:496: ./drivers/gpu/drm/drm_gpuvm.chK=hjBubh within the }(hjBhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj Ch]h drm_gpuvm}(hj ChhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj Cubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjChK=hjBubhE are contained within struct drm_gpuva already. Hence, for inserting }(hjBhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj.Ch]h drm_gpuva}(hj0ChhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj,Cubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjChK=hjBubh] entries from within dma-fence signalling critical sections it is enough to pre-allocate the }(hjBhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjQCh]h drm_gpuva}(hjSChhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjOCubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjChK=hjBubh structures.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjChK=hj;Ahhubh)}(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~Ch]hdrm_gem_objects}(hjChhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj|Cubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:496: ./drivers/gpu/drm/drm_gpuvm.chKBhjxCubh5 which are private to a single VM can share a common }(hjxChhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjCh]hdma_resv}(hjChhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjCubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhjChKBhjxCubh3 in order to improve locking efficiency (e.g. with }(hjxChhhNhNubh)}(h:c:type:`drm_exec`h]j^ )}(hjCh]hdrm_exec}(hjChhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjCubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_execuh1hhjChKBhjxCubh(). For this purpose drivers must pass a }(hjxChhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjCh]hdrm_gem_object}(hjChhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjCubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjChKBhjxCubhw to drm_gpuvm_init(), in the following called ‘resv object’, which serves as the container of the GPUVM’s shared }(hjxChhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hj Dh]hdma_resv}(hj DhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj Dubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhjChKBhjxCubh,. This resv object can be a driver specific }(hjxChhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hj.Dh]hdrm_gem_object}(hj0DhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj,Dubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjChKBhjxCubh, such as the }(hjxChhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjQDh]hdrm_gem_object}(hjSDhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjODubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjChKBhjxCubh containing the root page table, but it can also be a ‘dummy’ object, which can be allocated with drm_gpuvm_resv_object_alloc().}(hjxChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjChKBhj;Ahhubh)}(hIn order to connect a struct drm_gpuva to 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](h6In order to connect a struct drm_gpuva to its backing }(hjxDhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjDh]hdrm_gem_object}(hjDhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjDubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:496: ./drivers/gpu/drm/drm_gpuvm.chKKhjxDubh each }(hjxDhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjDh]hdrm_gem_object}(hjDhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjDubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjDhKKhjxDubh maintains a list of }(hjxDhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjDh]h drm_gpuvm_bo}(hjDhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjDubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjDhKKhjxDubh structures, and each }(hjxDhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjDh]h drm_gpuvm_bo}(hjDhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjDubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjDhKKhjxDubh contains a list of }(hjxDhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjEh]h drm_gpuva}(hjEhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj Eubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjDhKKhjxDubh structures.}(hjxDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjDhKKhj;Ahhubh)}(hXA :c:type:`drm_gpuvm_bo` is an abstraction that represents a combination of a :c:type:`drm_gpuvm` and a :c:type:`drm_gem_object`. Every such combination should be unique. This is ensured by the API through drm_gpuvm_bo_obtain() and drm_gpuvm_bo_obtain_prealloc() which first look into the corresponding :c:type:`drm_gem_object` list of :c:type:`drm_gpuvm_bos` for an existing instance of this particular combination. If not present, a new instance is created and linked to the :c:type:`drm_gem_object`.h](hA }(hj6EhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hj@Eh]h drm_gpuvm_bo}(hjBEhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj>Eubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:496: ./drivers/gpu/drm/drm_gpuvm.chKOhj6Eubh6 is an abstraction that represents a combination of a }(hj6EhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjdEh]h drm_gpuvm}(hjfEhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjbEubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj]EhKOhj6Eubh and a }(hj6EhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjEh]hdrm_gem_object}(hjEhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjEubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhj]EhKOhj6Eubh. 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 }(hj6EhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjEh]hdrm_gem_object}(hjEhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjEubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhj]EhKOhj6Eubh list of }(hj6EhhhNhNubh)}(h:c:type:`drm_gpuvm_bos`h]j^ )}(hjEh]h drm_gpuvm_bos}(hjEhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjEubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bosuh1hhj]EhKOhj6Eubhv for an existing instance of this particular combination. If not present, a new instance is created and linked to the }(hj6EhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjEh]hdrm_gem_object}(hjEhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjEubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhj]EhKOhj6Eubh.}(hj6EhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]EhKOhj;Ahhubh)}(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^ )}(hjFh]h drm_gpuvm_bo}(hjFhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:496: ./drivers/gpu/drm/drm_gpuvm.chKWhjFubh& structures, since unique for a given }(hjFhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjAFh]h drm_gpuvm}(hjCFhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj?Fubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj:FhKWhjFubh!, are also used as entry for the }(hjFhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjdFh]h drm_gpuvm}(hjfFhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjbFubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj:FhKWhjFubh’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 }(hjFhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjFh]h drm_gpuvm}(hjFhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj:FhKWhjFubh. For instance, all }(hjFhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjFh]hdrm_gem_object}(hjFhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhj:FhKWhjFubh’s }(hjFhhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjFh]hdma_resv}(hjFhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhj:FhKWhjFubh of a given }(hjFhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjFh]h drm_gpuvm}(hjFhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj:FhKWhjFubh can be locked by calling drm_gpuvm_exec_lock(). Once locked drivers can call drm_gpuvm_validate() in order to validate all evicted }(hjFhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j^ )}(hjGh]hdrm_gem_objects}(hjGhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhj:FhKWhjFubh). It is also possible to lock additional }(hjFhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j^ )}(hj6Gh]hdrm_gem_objects}(hj8GhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj4Gubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhj:FhKWhjFubh] by providing the corresponding parameters to drm_gpuvm_exec_lock() as well as open code the }(hjFhhhNhNubh)}(h:c:type:`drm_exec`h]j^ )}(hjYGh]hdrm_exec}(hj[GhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjWGubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_execuh1hhj:FhKWhjFubhl loop while making use of helper functions such as drm_gpuvm_prepare_range() or drm_gpuvm_prepare_objects().}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:FhKWhj;Ahhubh)}(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 }(hjGhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjGh]hdrm_gem_object}(hjGhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:496: ./drivers/gpu/drm/drm_gpuvm.chKchjGubh( is treated as external object when its }(hjGhhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjGh]hdma_resv}(hjGhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhjGhKchjGubh! structure is different than the }(hjGhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjGh]h drm_gpuvm}(hjGhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjGhKchjGubh ’s common }(hjGhhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjGh]hdma_resv}(hjGhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhjGhKchjGubh structure.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhKchj;Ahhubeh}(h]jah ]h"]h$]j'ah&]uh1hhj*AhhhhhMj)Kubh)}(hhh](h)}(hSplit and Mergeh]hSplit and Merge}(hj$HhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj!HhhhhhMubh)}(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 }(hj2HhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjHhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj:Hubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKjhj2HubhL calculate a sequence of operations to satisfy a given map or unmap request.}(hj2HhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjYHhKjhj!Hhhubh)}(hX8Therefore the DRM GPU VA manager provides an algorithm implementing splitting and merging of existing GPU VA mappings with the ones that are requested to be mapped or unmapped. This feature is required by the Vulkan API to implement Vulkan 'Sparse Memory Bindings' - drivers UAPIs often refer to this as VM BIND.h]hX<Therefore the DRM GPU VA manager provides an algorithm implementing splitting and merging of existing GPU VA mappings with the ones that are requested to be mapped or unmapped. This feature is required by the Vulkan API to implement Vulkan ‘Sparse Memory Bindings’ - drivers UAPIs often refer to this as VM BIND.}(hjdHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKnhj!Hhhubh)}(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.}(hjsHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKthj!Hhhubh)}(hXDepending on how the new GPU VA mapping intersects with the existing mappings of the GPU VA space the :c:type:`drm_gpuvm_ops` callbacks contain an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The caller might receive no callback at all if no operation is required, e.g. if the requested mapping already exists in the exact same way.h](hfDepending on how the new GPU VA mapping intersects with the existing mappings of the GPU VA space the }(hjHhhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j^ )}(hjHh]h drm_gpuvm_ops}(hjHhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjHubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKzhjHubhX 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.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjHhKzhj!Hhhubh)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhj!Hhhubh)}(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^ )}(hjHh]hdrm_gpuva_op_unmap}(hjHhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjHubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_op_unmapuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjHubh: contains a ‘keep’ field, which indicates whether the }(hjHhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjHh]h drm_gpuva}(hjHhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjHubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjHhKhjHubh 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 }(hjHhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjIh]h drm_gpuva}(hjIhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjHhKhjHubh<, adding the missing page table entries only and update the }(hjHhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj3Ih]h drm_gpuvm}(hj5IhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj1Iubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjHhKhjHubh ’s view of things accordingly.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjHhKhj!Hhhubh)}(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 }(hjZIhhhNhNubh)}(h:c:type:`drm_gpuva_op_remap`h]j^ )}(hjdIh]hdrm_gpuva_op_remap}(hjfIhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjbIubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_op_remapuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjZIubh consists of one unmap operation and one or two map operations, such that drivers can derive the page table update delta accordingly.}(hjZIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhKhj!Hhhubh)}(hNote that there can't be more than two existing mappings to split up, one at the beginning and one at the end of the new mapping, hence there is a maximum of two remap operations.h]hNote that there can’t be more than two existing mappings to split up, one at the beginning and one at the end of the new mapping, hence there is a maximum of two remap operations.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhj!Hhhubh)}(hXAnalogous to drm_gpuvm_sm_map() drm_gpuvm_sm_unmap() uses :c:type:`drm_gpuvm_ops` to call back into the driver in order to unmap a range of GPU VA space. The logic behind this function is way simpler though: For all existing mappings enclosed by the given range unmap operations are created. For mappings which are only partially located within the given range, remap operations are created such that those mappings are split up and re-mapped partially.h](h:Analogous to drm_gpuvm_sm_map() drm_gpuvm_sm_unmap() uses }(hjIhhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j^ )}(hjIh]h drm_gpuvm_ops}(hjIhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjIubhXt to call back into the driver in order to unmap a range of GPU VA space. The logic behind this function is way simpler though: For all existing mappings enclosed by the given range unmap operations are created. For mappings which are only partially located within the given range, remap operations are created such that those mappings are split up and re-mapped partially.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhKhj!Hhhubh)}(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 }(hjIhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hjIh]h drm_gpuva_op}(hjIhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjIubhM, which can be iterated with drm_gpuva_for_each_op(). This list contains the }(hjIhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjIh]h drm_gpuva_ops}(hjIhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhjIhKhjIubh 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 }(hjIhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjJh]h drm_gpuva_ops}(hj JhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjJubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhjIhKhjIubh,), it provides drivers a way to iterate the }(hjIhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hjAJh]h drm_gpuva_op}(hjCJhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj?Jubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhjIhKhjIubh 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.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhKhj!Hhhubh)}(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 }(hjhJhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjrJh]h drm_gpuvm}(hjtJhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjpJubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjhJubh}’s view of the GPU VA space drm_gpuva_insert() and drm_gpuva_remove() may be used. These functions can safely be used from }(hjhJhhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j^ )}(hjJh]h drm_gpuvm_ops}(hjJhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjJubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_opsuh1hhjJhKhjhJubh 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.}(hjhJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJhKhj!Hhhubh)}(hThe following diagram depicts the basic relationships of existing GPU VA mappings, a newly requested mapping and the resulting mappings as implemented by drm_gpuvm_sm_map() - it doesn't cover any arbitrary combinations of these.h]hThe following diagram depicts the basic relationships of existing GPU VA mappings, a newly requested mapping and the resulting mappings as implemented by drm_gpuvm_sm_map() - it doesn’t cover any arbitrary combinations of these.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhj!Hhhubhenumerated_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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjJubj )}(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)}hjJsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjJubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjJubj )}(h 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=m) 0 a 1 new: |-----------| (bo_offset=m)h]h 0 a 1 old: |-----------| (bo_offset=n) 0 a 1 req: |-----------| (bo_offset=m) 0 a 1 new: |-----------| (bo_offset=m)}hj Ksbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjJubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(hXRequested mapping is identical, except for the backing BO, hence replace the mapping. :: 0 a 1 old: |-----------| (bo_offset=n) 0 b 1 req: |-----------| (bo_offset=n) 0 b 1 new: |-----------| (bo_offset=n) h](h)}(hURequested mapping is identical, except for the backing BO, hence replace the mapping.h]hURequested mapping is identical, except for the backing BO, hence replace the mapping.}(hj%KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhj!Kubj )}(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)}hj4Ksbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhj!Kubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(hXExistent mapping is a left aligned subset of the requested one, hence replace the existing one. :: 0 a 1 old: |-----| (bo_offset=n) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n) .. note:: We expect to see the same result for a request with a different BO and/or non-contiguous BO offset. h](h)}(h_Existent mapping is a left aligned subset of the requested one, hence replace the existing one.h]h_Existent mapping is a left aligned subset of the requested one, hence replace the existing one.}(hjMKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjIKubj )}(h 0 a 1 old: |-----| (bo_offset=n) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n)h]h 0 a 1 old: |-----| (bo_offset=n) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n)}hj\Ksbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjIKubhnote)}(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.}(hjqKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjmKubah}(h]h ]h"]h$]h&]uh1jkKhjIKubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(hXRequested mapping's range is a left aligned subset of the existing one, but backed by a different BO. Hence, map the requested mapping and split the existing one adjusting its BO offset. :: 0 a 2 old: |-----------| (bo_offset=n) 0 b 1 req: |-----| (bo_offset=n) 0 b 1 a' 2 new: |-----|-----| (b.bo_offset=n, a.bo_offset=n+1) .. note:: We expect to see the same result for a request with a different BO and/or non-contiguous BO offset. h](h)}(hRequested mapping's range is a left aligned subset of the existing one, but backed by a different BO. Hence, map the requested mapping and split the existing one adjusting its BO offset.h]hRequested mapping’s range is a left aligned subset of the existing one, but backed by a different BO. Hence, map the requested mapping and split the existing one adjusting its BO offset.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjKubj )}(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)}hjKsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjKubjlK)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chKhjKubah}(h]h ]h"]h$]h&]uh1jkKhjKubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMhjKubj )}(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)}hjKsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMhjKubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(hXRequested mapping's range is a right aligned subset of the existing one, but backed by a different BO. Hence, map the requested mapping and split the existing one, without adjusting the BO offset. :: 0 a 2 old: |-----------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 new: |-----|-----| (a.bo_offset=n,b.bo_offset=m) h](h)}(hRequested mapping's range is a right aligned subset of the existing one, but backed by a different BO. Hence, map the requested mapping and split the existing one, without adjusting the BO offset.h]hRequested mapping’s range is a right aligned subset of the existing one, but backed by a different BO. Hence, map the requested mapping and split the existing one, without adjusting the BO offset.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMhjKubj )}(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)}hjLsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMhjKubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(hX?Existent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept. :: 0 a 2 old: |-----------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 new: |-----|-----| (a'.bo_offset=n, a.bo_offset=n+1) h](h)}(hwExistent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept.h]hwExistent mapping is a superset of the requested mapping. Split it up, but indicate that the backing PTEs could be kept.}(hj!LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chM"hjLubj )}(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)}hj0Lsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chM'hjLubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(hXExistent mapping is overlapped at the end by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existing one, without adjusting the BO offset. :: 0 a 2 old: |-----------| (bo_offset=n) 1 b 3 req: |-----------| (bo_offset=m) 0 a 1 b 3 new: |-----|-----------| (a.bo_offset=n,b.bo_offset=m) h](h)}(hExistent mapping is overlapped at the end by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existing one, without adjusting the BO offset.h]hExistent mapping is overlapped at the end by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existing one, without adjusting the BO offset.}(hjILhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chM1hjELubj )}(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)}hjXLsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chM7hjELubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(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.}(hjqLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMAhjmLubj )}(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)}hjLsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMGhjmLubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(hXRequested mapping's range is a centered subset of the existing one having a different backing BO. Hence, map the requested mapping and split up the existing one in two mappings, adjusting the BO offset of the right one accordingly. :: 0 a 3 old: |-----------------| (bo_offset=n) 1 b 2 req: |-----| (bo_offset=m) 0 a 1 b 2 a' 3 new: |-----|-----|-----| (a.bo_offset=n,b.bo_offset=m,a'.bo_offset=n+2) h](h)}(hRequested mapping's range is a centered subset of the existing one having a different backing BO. Hence, map the requested mapping and split up the existing one in two mappings, adjusting the BO offset of the right one accordingly.h]hRequested mapping’s range is a centered subset of the existing one having a different backing BO. Hence, map the requested mapping and split up the existing one in two mappings, adjusting the BO offset of the right one accordingly.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMQhjLubj )}(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)}hjLsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMXhjLubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(hXtRequested mapping is a contiguous subset of the existing one. Split it up, but indicate that the backing PTEs could be kept. :: 0 a 3 old: |-----------------| (bo_offset=n) 1 a 2 req: |-----| (bo_offset=n+1) 0 a' 1 a 2 a'' 3 old: |-----|-----|-----| (a'.bo_offset=n, a.bo_offset=n+1, a''.bo_offset=n+2) h](h)}(h|Requested mapping is a contiguous subset of the existing one. Split it up, but indicate that the backing PTEs could be kept.h]h|Requested mapping is a contiguous subset of the existing one. Split it up, but indicate that the backing PTEs could be kept.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMbhjLubj )}(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)}hjLsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMghjLubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(hXExistent mapping is a right aligned subset of the requested one, hence replace the existing one. :: 1 a 2 old: |-----| (bo_offset=n+1) 0 a 2 req: |-----------| (bo_offset=n) 0 a 2 new: |-----------| (bo_offset=n) .. note:: We expect to see the same result for a request with a different bo and/or non-contiguous bo_offset. h](h)}(h`Existent mapping is a right aligned subset of the requested one, hence replace the existing one.h]h`Existent mapping is a right aligned subset of the requested one, hence replace the existing one.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMqhjLubj )}(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)}hjLsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMvhjLubjlK)}(hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.h]h)}(hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.h]hcWe expect to see the same result for a request with a different bo and/or non-contiguous bo_offset.}(hj MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMhjMubah}(h]h ]h"]h$]h&]uh1jkKhjLubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(hXExistent mapping is a centered subset of the requested one, hence replace the existing one. :: 1 a 2 old: |-----| (bo_offset=n+1) 0 a 3 req: |----------------| (bo_offset=n) 0 a 3 new: |----------------| (bo_offset=n) .. note:: We expect to see the same result for a request with a different bo and/or non-contiguous bo_offset. h](h)}(h[Existent mapping is a centered subset of the requested one, hence replace the existing one.h]h[Existent mapping is a centered subset of the requested one, hence replace the existing one.}(hj*MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMhj&Mubj )}(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)}hj9Msbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMhj&MubjlK)}(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.}(hjLMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMhjHMubah}(h]h ]h"]h$]h&]uh1jkKhj&Mubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(hXExistent mappings is overlapped at the beginning by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existing one, adjusting its BO offset accordingly. :: 1 a 3 old: |-----------| (bo_offset=n) 0 b 2 req: |-----------| (bo_offset=m) 0 b 2 a' 3 new: |-----------|-----| (b.bo_offset=m,a.bo_offset=n+2) h](h)}(hExistent mappings is overlapped at the beginning by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existing one, adjusting its BO offset accordingly.h]hExistent mappings is overlapped at the beginning by the requested mapping backed by a different BO. Hence, map the requested mapping and split up the existing one, adjusting its BO offset accordingly.}(hjkMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMhjgMubj )}(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)}hjzMsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:502: ./drivers/gpu/drm/drm_gpuvm.chMhjgMubeh}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffixjuh1jJhj!HhhhNhNubj)}(h.. _drm_gpuvm_locking:h]h}(h]h ]h"]h$]h&]hʌdrm-gpuvm-lockinguh1jhMhj!Hhhhhubeh}(h]jah ]h"]split and mergeah$]h&]uh1hhj*AhhhhhMubh)}(hhh](h)}(hLockingh]hLocking}(hjMhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjMhhhhhMubh)}(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 }(hjMhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjMh]h drm_gpuva}(hjMhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjMubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:510: ./drivers/gpu/drm/drm_gpuvm.chMhjMubh 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 }(hjMhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjMh]h drm_gpuva}(hjMhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjMubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjMhMhjMubhZ objects as well as generating all kinds of operations, such as split / merge or prefetch.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMhMhjMhhubh)}(hXDRM GPUVM also does not take care of the locking of the backing :c:type:`drm_gem_object` buffers GPU VA lists and :c:type:`drm_gpuvm_bo` abstractions by itself; drivers are responsible to enforce mutual exclusion using either the GEMs dma_resv lock or the GEMs gpuva.lock mutex.h](h@DRM GPUVM also does not take care of the locking of the backing }(hjNhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjNh]hdrm_gem_object}(hjNhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjNubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:510: ./drivers/gpu/drm/drm_gpuvm.chMhjNubh buffers GPU VA lists and }(hjNhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hj?Nh]h drm_gpuvm_bo}(hjANhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj=Nubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhj8NhMhjNubh abstractions by itself; drivers are responsible to enforce mutual exclusion using either the GEMs dma_resv lock or the GEMs gpuva.lock mutex.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj8NhMhjMhhubh)}(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 }(hjfNhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j^ )}(hjpNh]hdrm_gem_objects}(hjrNhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjnNubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:510: ./drivers/gpu/drm/drm_gpuvm.chMhjfNubh 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().}(hjfNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjNhMhjMhhubh)}(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 }(hjNhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjNh]h drm_gpuvm_bo}(hjNhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjNubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:510: ./drivers/gpu/drm/drm_gpuvm.chMhjNubh the }(hjNhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjNh]h drm_gpuvm_bo}(hjNhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjNubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjNhMhjNubh is attached / removed from the }(hjNhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j^ )}(hjNh]hdrm_gem_objects}(hjNhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjNubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhjNhMhjNubhD gpuva list. Subsequent calls to drm_gpuvm_bo_obtain() for the same }(hjNhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj Oh]h drm_gpuvm}(hjOhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj Oubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjNhMhjNubh and }(hjNhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hj/Oh]hdrm_gem_object}(hj1OhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj-Oubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjNhMhjNubh@ must be able to observe previous creations and destructions of }(hjNhhhNhNubh)}(h:c:type:`drm_gpuvm_bos`h]j^ )}(hjROh]h drm_gpuvm_bos}(hjTOhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjPOubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bosuh1hhjNhMhjNubh# in order to keep instances unique.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjNhMhjMhhubh)}(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 }(hjyOhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjOh]h drm_gpuvm}(hjOhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjOubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:510: ./drivers/gpu/drm/drm_gpuvm.chMhjyOubh’s lists for keeping track of external and evicted objects are protected against concurrent insertion / removal and iteration internally.}(hjyOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhMhjMhhubh)}(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().}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:510: ./drivers/gpu/drm/drm_gpuvm.chMhjMhhubh)}(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 }(hjOhhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j^ )}(hjOh]hDRM_GPUVM_RESV_PROTECTED}(hjOhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjOubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_GPUVM_RESV_PROTECTEDuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:510: ./drivers/gpu/drm/drm_gpuvm.chMhjOubh) flag to indicate that the corresponding }(hjOhhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjOh]hdma_resv}(hjOhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjOubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhjOhMhjOubh2 locks are held in order to protect the lists. If }(hjOhhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j^ )}(hj Ph]hDRM_GPUVM_RESV_PROTECTED}(hj PhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj Pubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_GPUVM_RESV_PROTECTEDuh1hhjOhMhjOubh 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 }(hjOhhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hj.Ph]hdma_resv}(hj0PhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj,Pubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhjOhMhjOubh1 locks and hence do not require internal locking.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhMhjMhhubeh}(h](jjMeh ]h"](lockingdrm_gpuvm_lockingeh$]h&]uh1hhj*AhhhhhMj}jZPjMsj}jMjMsubh)}(hhh](h)}(hExamplesh]hExamples}(hjbPhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj_PhhhhhMubh)}(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 }(hjpPhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hjzPh]h drm_gpuva_op}(hj|PhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjxPubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:516: ./drivers/gpu/drm/drm_gpuvm.chMhjpPubhN in order to satisfy a given map or unmap request and how to make use of them.}(hjpPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhMhj_Phhubh)}(hXFThe below code is strictly limited to illustrate the generic usage pattern. To maintain simplicity, it doesn't make use of any abstractions for common code, different (asynchronous) stages with fence signalling critical paths, any other helpers or error handling in terms of freeing memory and dropping previously taken locks.h]hXHThe below code is strictly limited to illustrate the generic usage pattern. To maintain simplicity, it doesn’t make use of any abstractions for common code, different (asynchronous) stages with fence signalling critical paths, any other helpers or error handling in terms of freeing memory and dropping previously taken locks.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:516: ./drivers/gpu/drm/drm_gpuvm.chMhj_PhhubjJ)}(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 embed the &drm_gpuvm and &drm_gpuva // structure in individual driver structures and lock the dma-resv with // drm_exec or similar helpers. int driver_mapping_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range, struct drm_gem_object *obj, u64 offset) { struct drm_gpuvm_map_req map_req = { .map.va.addr = addr, .map.va.range = range, .map.gem.obj = obj, .map.gem.offset = offset, }; struct drm_gpuva_ops *ops; struct drm_gpuva_op *op struct drm_gpuvm_bo *vm_bo; driver_lock_va_space(); ops = drm_gpuvm_sm_map_ops_create(gpuvm, &map_req); if (IS_ERR(ops)) return PTR_ERR(ops); vm_bo = drm_gpuvm_bo_obtain(gpuvm, obj); if (IS_ERR(vm_bo)) return PTR_ERR(vm_bo); drm_gpuva_for_each_op(op, ops) { struct drm_gpuva *va; switch (op->op) { case DRM_GPUVA_OP_MAP: va = driver_gpuva_alloc(); if (!va) ; // unwind previous VA space updates, // free memory and unlock driver_vm_map(); drm_gpuva_map(gpuvm, va, &op->map); drm_gpuva_link(va, vm_bo); break; case DRM_GPUVA_OP_REMAP: { struct drm_gpuva *prev = NULL, *next = NULL; va = op->remap.unmap->va; if (op->remap.prev) { prev = driver_gpuva_alloc(); if (!prev) ; // unwind previous VA space // updates, free memory and // unlock } if (op->remap.next) { next = driver_gpuva_alloc(); if (!next) ; // unwind previous VA space // updates, free memory and // unlock } driver_vm_remap(); drm_gpuva_remap(prev, next, &op->remap); if (prev) drm_gpuva_link(prev, va->vm_bo); if (next) drm_gpuva_link(next, va->vm_bo); drm_gpuva_unlink(va); break; } case DRM_GPUVA_OP_UNMAP: va = op->unmap->va; driver_vm_unmap(); drm_gpuva_unlink(va); drm_gpuva_unmap(&op->unmap); break; default: break; } } drm_gpuvm_bo_put(vm_bo); driver_unlock_va_space(); return 0; } h](h)}(hAObtain a list of :c:type:`drm_gpuva_op` to create a new mapping::h](hObtain a list of }(hjPhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hjPh]h drm_gpuva_op}(hjPhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjPubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:516: ./drivers/gpu/drm/drm_gpuvm.chMhjPubh to create a new mapping:}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhMhjPubj )}(hX // Allocates a new &drm_gpuva. struct drm_gpuva * driver_gpuva_alloc(void); // Typically drivers would embed the &drm_gpuvm and &drm_gpuva // structure in individual driver structures and lock the dma-resv with // drm_exec or similar helpers. int driver_mapping_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range, struct drm_gem_object *obj, u64 offset) { struct drm_gpuvm_map_req map_req = { .map.va.addr = addr, .map.va.range = range, .map.gem.obj = obj, .map.gem.offset = offset, }; struct drm_gpuva_ops *ops; struct drm_gpuva_op *op struct drm_gpuvm_bo *vm_bo; driver_lock_va_space(); ops = drm_gpuvm_sm_map_ops_create(gpuvm, &map_req); if (IS_ERR(ops)) return PTR_ERR(ops); vm_bo = drm_gpuvm_bo_obtain(gpuvm, obj); if (IS_ERR(vm_bo)) return PTR_ERR(vm_bo); drm_gpuva_for_each_op(op, ops) { struct drm_gpuva *va; switch (op->op) { case DRM_GPUVA_OP_MAP: va = driver_gpuva_alloc(); if (!va) ; // unwind previous VA space updates, // free memory and unlock driver_vm_map(); drm_gpuva_map(gpuvm, va, &op->map); drm_gpuva_link(va, vm_bo); break; case DRM_GPUVA_OP_REMAP: { struct drm_gpuva *prev = NULL, *next = NULL; va = op->remap.unmap->va; if (op->remap.prev) { prev = driver_gpuva_alloc(); if (!prev) ; // unwind previous VA space // updates, free memory and // unlock } if (op->remap.next) { next = driver_gpuva_alloc(); if (!next) ; // unwind previous VA space // updates, free memory and // unlock } driver_vm_remap(); drm_gpuva_remap(prev, next, &op->remap); if (prev) drm_gpuva_link(prev, va->vm_bo); if (next) drm_gpuva_link(next, va->vm_bo); drm_gpuva_unlink(va); break; } case DRM_GPUVA_OP_UNMAP: va = op->unmap->va; driver_vm_unmap(); drm_gpuva_unlink(va); drm_gpuva_unmap(&op->unmap); break; default: break; } } drm_gpuvm_bo_put(vm_bo); driver_unlock_va_space(); return 0; }h]hX // Allocates a new &drm_gpuva. struct drm_gpuva * driver_gpuva_alloc(void); // Typically drivers would embed the &drm_gpuvm and &drm_gpuva // structure in individual driver structures and lock the dma-resv with // drm_exec or similar helpers. int driver_mapping_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range, struct drm_gem_object *obj, u64 offset) { struct drm_gpuvm_map_req map_req = { .map.va.addr = addr, .map.va.range = range, .map.gem.obj = obj, .map.gem.offset = offset, }; struct drm_gpuva_ops *ops; struct drm_gpuva_op *op struct drm_gpuvm_bo *vm_bo; driver_lock_va_space(); ops = drm_gpuvm_sm_map_ops_create(gpuvm, &map_req); if (IS_ERR(ops)) return PTR_ERR(ops); vm_bo = drm_gpuvm_bo_obtain(gpuvm, obj); if (IS_ERR(vm_bo)) return PTR_ERR(vm_bo); drm_gpuva_for_each_op(op, ops) { struct drm_gpuva *va; switch (op->op) { case DRM_GPUVA_OP_MAP: va = driver_gpuva_alloc(); if (!va) ; // unwind previous VA space updates, // free memory and unlock driver_vm_map(); drm_gpuva_map(gpuvm, va, &op->map); drm_gpuva_link(va, vm_bo); break; case DRM_GPUVA_OP_REMAP: { struct drm_gpuva *prev = NULL, *next = NULL; va = op->remap.unmap->va; if (op->remap.prev) { prev = driver_gpuva_alloc(); if (!prev) ; // unwind previous VA space // updates, free memory and // unlock } if (op->remap.next) { next = driver_gpuva_alloc(); if (!next) ; // unwind previous VA space // updates, free memory and // unlock } driver_vm_remap(); drm_gpuva_remap(prev, next, &op->remap); if (prev) drm_gpuva_link(prev, va->vm_bo); if (next) drm_gpuva_link(next, va->vm_bo); drm_gpuva_unlink(va); break; } case DRM_GPUVA_OP_UNMAP: va = op->unmap->va; driver_vm_unmap(); drm_gpuva_unlink(va); drm_gpuva_unmap(&op->unmap); break; default: break; } } drm_gpuvm_bo_put(vm_bo); driver_unlock_va_space(); return 0; }}hjPsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:516: ./drivers/gpu/drm/drm_gpuvm.chMhjPubeh}(h]h ]h"]h$]h&]uh1jhjPubj)}(hX Receive a callback for each :c:type:`drm_gpuva_op` to create a new mapping:: struct driver_context { struct drm_gpuvm *gpuvm; struct drm_gpuvm_bo *vm_bo; struct drm_gpuva *new_va; struct drm_gpuva *prev_va; struct drm_gpuva *next_va; }; // ops to pass to drm_gpuvm_init() static const struct drm_gpuvm_ops driver_gpuvm_ops = { .sm_step_map = driver_gpuva_map, .sm_step_remap = driver_gpuva_remap, .sm_step_unmap = driver_gpuva_unmap, }; // Typically drivers would embed the &drm_gpuvm and &drm_gpuva // structure in individual driver structures and lock the dma-resv with // drm_exec or similar helpers. int driver_mapping_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range, struct drm_gem_object *obj, u64 offset) { struct driver_context ctx; struct drm_gpuvm_bo *vm_bo; struct drm_gpuva_ops *ops; struct drm_gpuva_op *op; int ret = 0; ctx.gpuvm = gpuvm; ctx.new_va = kzalloc(sizeof(*ctx.new_va), GFP_KERNEL); ctx.prev_va = kzalloc(sizeof(*ctx.prev_va), GFP_KERNEL); ctx.next_va = kzalloc(sizeof(*ctx.next_va), GFP_KERNEL); ctx.vm_bo = drm_gpuvm_bo_create(gpuvm, obj); if (!ctx.new_va || !ctx.prev_va || !ctx.next_va || !vm_bo) { ret = -ENOMEM; goto out; } // Typically protected with a driver specific GEM gpuva lock // used in the fence signaling path for drm_gpuva_link() and // drm_gpuva_unlink(), hence pre-allocate. ctx.vm_bo = drm_gpuvm_bo_obtain_prealloc(ctx.vm_bo); driver_lock_va_space(); ret = drm_gpuvm_sm_map(gpuvm, &ctx, addr, range, obj, offset); driver_unlock_va_space(); out: drm_gpuvm_bo_put(ctx.vm_bo); kfree(ctx.new_va); kfree(ctx.prev_va); kfree(ctx.next_va); return ret; } int driver_gpuva_map(struct drm_gpuva_op *op, void *__ctx) { struct driver_context *ctx = __ctx; drm_gpuva_map(ctx->vm, ctx->new_va, &op->map); drm_gpuva_link(ctx->new_va, ctx->vm_bo); // prevent the new GPUVA from being freed in // driver_mapping_create() ctx->new_va = NULL; return 0; } int driver_gpuva_remap(struct drm_gpuva_op *op, void *__ctx) { struct driver_context *ctx = __ctx; struct drm_gpuva *va = op->remap.unmap->va; drm_gpuva_remap(ctx->prev_va, ctx->next_va, &op->remap); if (op->remap.prev) { drm_gpuva_link(ctx->prev_va, va->vm_bo); ctx->prev_va = NULL; } if (op->remap.next) { drm_gpuva_link(ctx->next_va, va->vm_bo); ctx->next_va = NULL; } drm_gpuva_unlink(va); kfree(va); return 0; } int driver_gpuva_unmap(struct drm_gpuva_op *op, void *__ctx) { drm_gpuva_unlink(op->unmap.va); drm_gpuva_unmap(&op->unmap); kfree(op->unmap.va); return 0; } h](h)}(hLReceive a callback for each :c:type:`drm_gpuva_op` to create a new mapping::h](hReceive a callback for each }(hjQhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hj Qh]h drm_gpuva_op}(hjQhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj Qubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:516: ./drivers/gpu/drm/drm_gpuvm.chM}hjQubh to create a new mapping:}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj*QhM}hjPubj )}(hX struct driver_context { struct drm_gpuvm *gpuvm; struct drm_gpuvm_bo *vm_bo; struct drm_gpuva *new_va; struct drm_gpuva *prev_va; struct drm_gpuva *next_va; }; // ops to pass to drm_gpuvm_init() static const struct drm_gpuvm_ops driver_gpuvm_ops = { .sm_step_map = driver_gpuva_map, .sm_step_remap = driver_gpuva_remap, .sm_step_unmap = driver_gpuva_unmap, }; // Typically drivers would embed the &drm_gpuvm and &drm_gpuva // structure in individual driver structures and lock the dma-resv with // drm_exec or similar helpers. int driver_mapping_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range, struct drm_gem_object *obj, u64 offset) { struct driver_context ctx; struct drm_gpuvm_bo *vm_bo; struct drm_gpuva_ops *ops; struct drm_gpuva_op *op; int ret = 0; ctx.gpuvm = gpuvm; ctx.new_va = kzalloc(sizeof(*ctx.new_va), GFP_KERNEL); ctx.prev_va = kzalloc(sizeof(*ctx.prev_va), GFP_KERNEL); ctx.next_va = kzalloc(sizeof(*ctx.next_va), GFP_KERNEL); ctx.vm_bo = drm_gpuvm_bo_create(gpuvm, obj); if (!ctx.new_va || !ctx.prev_va || !ctx.next_va || !vm_bo) { ret = -ENOMEM; goto out; } // Typically protected with a driver specific GEM gpuva lock // used in the fence signaling path for drm_gpuva_link() and // drm_gpuva_unlink(), hence pre-allocate. ctx.vm_bo = drm_gpuvm_bo_obtain_prealloc(ctx.vm_bo); driver_lock_va_space(); ret = drm_gpuvm_sm_map(gpuvm, &ctx, addr, range, obj, offset); driver_unlock_va_space(); out: drm_gpuvm_bo_put(ctx.vm_bo); kfree(ctx.new_va); kfree(ctx.prev_va); kfree(ctx.next_va); return ret; } int driver_gpuva_map(struct drm_gpuva_op *op, void *__ctx) { struct driver_context *ctx = __ctx; drm_gpuva_map(ctx->vm, ctx->new_va, &op->map); drm_gpuva_link(ctx->new_va, ctx->vm_bo); // prevent the new GPUVA from being freed in // driver_mapping_create() ctx->new_va = NULL; return 0; } int driver_gpuva_remap(struct drm_gpuva_op *op, void *__ctx) { struct driver_context *ctx = __ctx; struct drm_gpuva *va = op->remap.unmap->va; drm_gpuva_remap(ctx->prev_va, ctx->next_va, &op->remap); if (op->remap.prev) { drm_gpuva_link(ctx->prev_va, va->vm_bo); ctx->prev_va = NULL; } if (op->remap.next) { drm_gpuva_link(ctx->next_va, va->vm_bo); ctx->next_va = NULL; } drm_gpuva_unlink(va); kfree(va); return 0; } int driver_gpuva_unmap(struct drm_gpuva_op *op, void *__ctx) { drm_gpuva_unlink(op->unmap.va); drm_gpuva_unmap(&op->unmap); kfree(op->unmap.va); return 0; }h]hX struct driver_context { struct drm_gpuvm *gpuvm; struct drm_gpuvm_bo *vm_bo; struct drm_gpuva *new_va; struct drm_gpuva *prev_va; struct drm_gpuva *next_va; }; // ops to pass to drm_gpuvm_init() static const struct drm_gpuvm_ops driver_gpuvm_ops = { .sm_step_map = driver_gpuva_map, .sm_step_remap = driver_gpuva_remap, .sm_step_unmap = driver_gpuva_unmap, }; // Typically drivers would embed the &drm_gpuvm and &drm_gpuva // structure in individual driver structures and lock the dma-resv with // drm_exec or similar helpers. int driver_mapping_create(struct drm_gpuvm *gpuvm, u64 addr, u64 range, struct drm_gem_object *obj, u64 offset) { struct driver_context ctx; struct drm_gpuvm_bo *vm_bo; struct drm_gpuva_ops *ops; struct drm_gpuva_op *op; int ret = 0; ctx.gpuvm = gpuvm; ctx.new_va = kzalloc(sizeof(*ctx.new_va), GFP_KERNEL); ctx.prev_va = kzalloc(sizeof(*ctx.prev_va), GFP_KERNEL); ctx.next_va = kzalloc(sizeof(*ctx.next_va), GFP_KERNEL); ctx.vm_bo = drm_gpuvm_bo_create(gpuvm, obj); if (!ctx.new_va || !ctx.prev_va || !ctx.next_va || !vm_bo) { ret = -ENOMEM; goto out; } // Typically protected with a driver specific GEM gpuva lock // used in the fence signaling path for drm_gpuva_link() and // drm_gpuva_unlink(), hence pre-allocate. ctx.vm_bo = drm_gpuvm_bo_obtain_prealloc(ctx.vm_bo); driver_lock_va_space(); ret = drm_gpuvm_sm_map(gpuvm, &ctx, addr, range, obj, offset); driver_unlock_va_space(); out: drm_gpuvm_bo_put(ctx.vm_bo); kfree(ctx.new_va); kfree(ctx.prev_va); kfree(ctx.next_va); return ret; } int driver_gpuva_map(struct drm_gpuva_op *op, void *__ctx) { struct driver_context *ctx = __ctx; drm_gpuva_map(ctx->vm, ctx->new_va, &op->map); drm_gpuva_link(ctx->new_va, ctx->vm_bo); // prevent the new GPUVA from being freed in // driver_mapping_create() ctx->new_va = NULL; return 0; } int driver_gpuva_remap(struct drm_gpuva_op *op, void *__ctx) { struct driver_context *ctx = __ctx; struct drm_gpuva *va = op->remap.unmap->va; drm_gpuva_remap(ctx->prev_va, ctx->next_va, &op->remap); if (op->remap.prev) { drm_gpuva_link(ctx->prev_va, va->vm_bo); ctx->prev_va = NULL; } if (op->remap.next) { drm_gpuva_link(ctx->next_va, va->vm_bo); ctx->next_va = NULL; } drm_gpuva_unlink(va); kfree(va); return 0; } int driver_gpuva_unmap(struct drm_gpuva_op *op, void *__ctx) { drm_gpuva_unlink(op->unmap.va); drm_gpuva_unmap(&op->unmap); kfree(op->unmap.va); return 0; }}hj5Qsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:516: ./drivers/gpu/drm/drm_gpuvm.chMhjPubeh}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]jMjMjMhjMjuh1jJhj_PhhhNhNubeh}(h]j"ah ]h"]examplesah$]h&]uh1hhj*AhhhhhMubh)}(hhh](h)}(hDRM GPUVM Function Referencesh]hDRM GPUVM Function References}(hjZQhhhNhNubah}(h]h ]h"]h$]h&]hj>uh1hhjWQhhhhhMubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_flags (C enum)c.drm_gpuva_flagshNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_flagsh]j)}(henum drm_gpuva_flagsh](j)}(hjh]henum}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}QhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}QhhhjQhKubj)}(hdrm_gpuva_flagsh]j)}(hj{Qh]hdrm_gpuva_flags}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jhj}QhhhjQhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyQhhhjQhKubah}(h]jtQah ](jjeh"]h$]h&]j j )j huh1jhjQhKhjvQhhubj )}(hhh]h)}(hflags for struct drm_gpuvah]hflags for struct drm_gpuva}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhK+hjQhhubah}(h]h ]h"]h$]h&]uh1j hjvQhhhjQhKubeh}(h]h ](j! enumeh"]h$]h&]j& j! j' jQj( jQj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjQh]h Constants}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjQubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhK/hjQubjM )}(hhh](jR )}(he``DRM_GPUVA_INVALIDATED`` Flag indicating that the :c:type:`drm_gpuva`'s backing GEM is invalidated. h](jX )}(h``DRM_GPUVA_INVALIDATED``h]j^ )}(hjRh]hDRM_GPUVA_INVALIDATED}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjRubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhK2hjQubjt )}(hhh]h)}(hJFlag indicating that the :c:type:`drm_gpuva`'s backing GEM is invalidated.h](hFlag indicating that the }(hjRhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj'Rh]h drm_gpuva}(hj)RhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj%Rubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjRhK2hjRubh ’s backing GEM is invalidated.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjRhK2hjRubah}(h]h ]h"]h$]h&]uh1js hjQubeh}(h]h ]h"]h$]h&]uh1jQ hjRhK2hjQubjR )}(hW``DRM_GPUVA_SPARSE`` Flag indicating that the :c:type:`drm_gpuva` is a sparse mapping. h](jX )}(h``DRM_GPUVA_SPARSE``h]j^ )}(hj`Rh]hDRM_GPUVA_SPARSE}(hjbRhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj^Rubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhK5hjZRubjt )}(hhh]h)}(hAFlag indicating that the :c:type:`drm_gpuva` is a sparse mapping.h](hFlag indicating that the }(hjyRhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjRh]h drm_gpuva}(hjRhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjRubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjuRhK5hjyRubh is a sparse mapping.}(hjyRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjuRhK5hjvRubah}(h]h ]h"]h$]h&]uh1js hjZRubeh}(h]h ]h"]h$]h&]uh1jQ hjuRhK5hjQubjR )}(h(``DRM_GPUVA_USERBITS`` user defined bitsh](jX )}(h``DRM_GPUVA_USERBITS``h]j^ )}(hjRh]hDRM_GPUVA_USERBITS}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjRubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhK7hjRubjt )}(hhh]h)}(huser defined bitsh]huser defined bits}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhK8hjRubah}(h]h ]h"]h$]h&]uh1js hjRubeh}(h]h ]h"]h$]h&]uh1jQ hjRhK7hjQubeh}(h]h ]h"]h$]h&]uh1jL hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva (C struct) c.drm_gpuvahNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h drm_gpuvah]j)}(hstruct drm_gpuvah](j)}(hj? h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhK=ubj)}(h h]h }(hj$ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhj#ShK=ubj)}(h drm_gpuvah]j)}(hjSh]h drm_gpuva}(hj6ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Subah}(h]h ](jjeh"]h$]h&]jjuh1jhjShhhj#ShK=ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhj#ShK=ubah}(h]j Sah ](jjeh"]h$]h&]j j )j huh1jhj#ShK=hj Shhubj )}(hhh]h)}(h#structure to track a GPU VA mappingh]h#structure to track a GPU VA mapping}(hjXShhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKChjUShhubah}(h]h ]h"]h$]h&]uh1j hj Shhhj#ShK=ubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jpSj( jpSj) j* j+ uh1jhhhjWQhNhNubj- )}(hX**Definition**:: struct drm_gpuva { struct drm_gpuvm *vm; struct drm_gpuvm_bo *vm_bo; enum drm_gpuva_flags flags; struct { u64 addr; u64 range; } va; struct { u64 offset; struct drm_gem_object *obj; struct list_head entry; } gem; struct { struct rb_node node; struct list_head entry; u64 __subtree_last; } rb; }; **Members** ``vm`` the :c:type:`drm_gpuvm` this object is associated with ``vm_bo`` the :c:type:`drm_gpuvm_bo` abstraction for the mapped :c:type:`drm_gem_object` ``flags`` the :c:type:`drm_gpuva_flags` for this mapping ``va`` structure containing the address and range of the :c:type:`drm_gpuva` ``va.addr`` the start address ``gem`` structure containing the :c:type:`drm_gem_object` and its offset ``gem.offset`` the offset within the :c:type:`drm_gem_object` ``gem.obj`` the mapped :c:type:`drm_gem_object` ``gem.entry`` the :c:type:`list_head` to attach this object to a :c:type:`drm_gpuvm_bo` ``rb`` structure containing data to store :c:type:`drm_gpuvas` in a rb-tree ``rb.node`` the rb-tree node ``rb.entry`` The :c:type:`list_head` to additionally connect :c:type:`drm_gpuvas` in the same order they appear in the interval tree. This is useful to keep iterating :c:type:`drm_gpuvas` from a start node found through the rb-tree while doing modifications on the rb-tree itself. ``rb.__subtree_last`` needed by the interval tree, holding last-in-subtreeh](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hj|ShhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjxSubh:}(hjxShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKGhjtSubj )}(hXstruct drm_gpuva { struct drm_gpuvm *vm; struct drm_gpuvm_bo *vm_bo; enum drm_gpuva_flags flags; struct { u64 addr; u64 range; } va; struct { u64 offset; struct drm_gem_object *obj; struct list_head entry; } gem; struct { struct rb_node node; struct list_head entry; u64 __subtree_last; } rb; };h]hXstruct drm_gpuva { struct drm_gpuvm *vm; struct drm_gpuvm_bo *vm_bo; enum drm_gpuva_flags flags; struct { u64 addr; u64 range; } va; struct { u64 offset; struct drm_gem_object *obj; struct list_head entry; } gem; struct { struct rb_node node; struct list_head entry; u64 __subtree_last; } rb; };}hjSsbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKIhjtSubh)}(h **Members**h]j7 )}(hjSh]hMembers}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjSubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhK]hjtSubjM )}(hhh](jR )}(h>``vm`` the :c:type:`drm_gpuvm` this object is associated with h](jX )}(h``vm``h]j^ )}(hjSh]hvm}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjSubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKMhjSubjt )}(hhh]h)}(h6the :c:type:`drm_gpuvm` this object is associated withh](hthe }(hjShhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjSh]h drm_gpuvm}(hjShhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjSubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjShKMhjSubh this object is associated with}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjShKMhjSubah}(h]h ]h"]h$]h&]uh1js hjSubeh}(h]h ]h"]h$]h&]uh1jQ hjShKMhjSubjR )}(hY``vm_bo`` the :c:type:`drm_gpuvm_bo` abstraction for the mapped :c:type:`drm_gem_object` h](jX )}(h ``vm_bo``h]j^ )}(hj!Th]hvm_bo}(hj#ThhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjTubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKShjTubjt )}(hhh]h)}(hNthe :c:type:`drm_gpuvm_bo` abstraction for the mapped :c:type:`drm_gem_object`h](hthe }(hj:ThhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjDTh]h drm_gpuvm_bo}(hjFThhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjBTubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKRhj:Tubh abstraction for the mapped }(hj:ThhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjhTh]hdrm_gem_object}(hjjThhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjfTubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjaThKRhj:Tubeh}(h]h ]h"]h$]h&]uh1hhjaThKRhj7Tubah}(h]h ]h"]h$]h&]uh1js hjTubeh}(h]h ]h"]h$]h&]uh1jQ hj6ThKShjSubjR )}(h9``flags`` the :c:type:`drm_gpuva_flags` for this mapping h](jX )}(h ``flags``h]j^ )}(hjTh]hflags}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjTubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKXhjTubjt )}(hhh]h)}(h.the :c:type:`drm_gpuva_flags` for this mappingh](hthe }(hjThhhNhNubh)}(h:c:type:`drm_gpuva_flags`h]j^ )}(hjTh]hdrm_gpuva_flags}(hjThhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjTubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_flagsuh1hhjThKXhjTubh for this mapping}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjThKXhjTubah}(h]h ]h"]h$]h&]uh1js hjTubeh}(h]h ]h"]h$]h&]uh1jQ hjThKXhjSubjR )}(hM``va`` structure containing the address and range of the :c:type:`drm_gpuva` h](jX )}(h``va``h]j^ )}(hjTh]hva}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjTubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhK]hjTubjt )}(hhh]h)}(hEstructure containing the address and range of the :c:type:`drm_gpuva`h](h2structure containing the address and range of the }(hjUhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjUh]h drm_gpuva}(hjUhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjUubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjUhK]hjUubeh}(h]h ]h"]h$]h&]uh1hhjUhK]hjUubah}(h]h ]h"]h$]h&]uh1js hjTubeh}(h]h ]h"]h$]h&]uh1jQ hjUhK]hjSubjR )}(h``va.addr`` the start address h](jX )}(h ``va.addr``h]j^ )}(hjQUh]hva.addr}(hjSUhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjOUubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKahjKUubjt )}(hhh]h)}(hthe start addressh]hthe start address}(hjjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfUhKahjgUubah}(h]h ]h"]h$]h&]uh1js hjKUubeh}(h]h ]h"]h$]h&]uh1jQ hjfUhKahjSubjR )}(hI``gem`` structure containing the :c:type:`drm_gem_object` and its offset h](jX )}(h``gem``h]j^ )}(hjUh]hgem}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjUubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKlhjUubjt )}(hhh]h)}(h@structure containing the :c:type:`drm_gem_object` and its offseth](hstructure containing the }(hjUhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjUh]hdrm_gem_object}(hjUhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjUubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjUhKlhjUubh and its offset}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjUhKlhjUubah}(h]h ]h"]h$]h&]uh1js hjUubeh}(h]h ]h"]h$]h&]uh1jQ hjUhKlhjSubjR )}(h>``gem.offset`` the offset within the :c:type:`drm_gem_object` h](jX )}(h``gem.offset``h]j^ )}(hjUh]h gem.offset}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjUubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKphjUubjt )}(hhh]h)}(h.the offset within the :c:type:`drm_gem_object`h](hthe offset within the }(hjUhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hj Vh]hdrm_gem_object}(hj VhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjVubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjUhKphjUubeh}(h]h ]h"]h$]h&]uh1hhjUhKphjUubah}(h]h ]h"]h$]h&]uh1js hjUubeh}(h]h ]h"]h$]h&]uh1jQ hjUhKphjSubjR )}(h0``gem.obj`` the mapped :c:type:`drm_gem_object` h](jX )}(h ``gem.obj``h]j^ )}(hj>Vh]hgem.obj}(hj@VhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj)}(h'(struct drm_gpuva *va, bool invalidate)h](jD)}(hstruct drm_gpuva *vah](j)}(hj? h]hstruct}(hj9YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Yubj)}(h h]h }(hjFYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Yubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hjWYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTYubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjYYmodnameN classnameNjj)}j]j)}j}jYsbc.drm_gpuva_invalidateasbuh1hhj5Yubj)}(h h]h }(hjwYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Yubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Yubj)}(hvah]hva}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Yubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj1YubjD)}(hbool invalidateh](j)}(hj=2h]hbool}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h invalidateh]h invalidate}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj1Yubeh}(h]h ]h"]h$]h&]jjuh1j=hjXhhhj YhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhj YhKubah}(h]jXah ](jjeh"]h$]h&]j j )j huh1jhj YhKhjXhhubj )}(hhh]h)}(hGsets whether the backing GEM of this :c:type:`drm_gpuva` is invalidatedh](h%sets whether the backing GEM of this }(hjYhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjYh]h drm_gpuva}(hjYhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjYubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jsYc.drm_gpuva_invalidateasbj drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhjYubh is invalidated}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhjYhhubah}(h]h ]h"]h$]h&]uh1j hjXhhhj YhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j1Zj( j1Zj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hj;Zh]h Parameters}(hj=ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj9Zubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj5ZubjM )}(hhh](jR )}(hP``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to set the invalidate flag for h](jX )}(h``struct drm_gpuva *va``h]j^ )}(hjZZh]hstruct drm_gpuva *va}(hj\ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjXZubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhjTZubjt )}(hhh]h)}(h6the :c:type:`drm_gpuva` to set the invalidate flag forh](hthe }(hjsZhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj}Zh]h drm_gpuva}(hjZhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj{Zubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjoZhKhjsZubh to set the invalidate flag for}(hjsZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjoZhKhjpZubah}(h]h ]h"]h$]h&]uh1js hjTZubeh}(h]h ]h"]h$]h&]uh1jQ hjoZhKhjQZubjR )}(hL``bool invalidate`` indicates whether the :c:type:`drm_gpuva` is invalidatedh](jX )}(h``bool invalidate``h]j^ )}(hjZh]hbool invalidate}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjZubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhjZubjt )}(hhh]h)}(h8indicates whether the :c:type:`drm_gpuva` is invalidatedh](hindicates whether the }(hjZhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjZh]h drm_gpuva}(hjZhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjZubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhjZubh is invalidated}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhKhjZubah}(h]h ]h"]h$]h&]uh1js hjZubeh}(h]h ]h"]h$]h&]uh1jQ hjZhKhjQZubeh}(h]h ]h"]h$]h&]uh1jL hj5Zubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_gpuva_invalidated (C function)c.drm_gpuva_invalidatedhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h1bool drm_gpuva_invalidated (struct drm_gpuva *va)h]j)}(h0bool drm_gpuva_invalidated(struct drm_gpuva *va)h](j)}(hj=2h]hbool}(hj3[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/[hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKubj)}(h h]h }(hjA[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/[hhhj@[hKubj)}(hdrm_gpuva_invalidatedh]j)}(hdrm_gpuva_invalidatedh]hdrm_gpuva_invalidated}(hjS[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO[ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj/[hhhj@[hKubj>)}(h(struct drm_gpuva *va)h]jD)}(hstruct drm_gpuva *vah](j)}(hj? h]hstruct}(hjo[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk[ubj)}(h h]h }(hj|[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk[ubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj[modnameN classnameNjj)}j]j)}j}jU[sbc.drm_gpuva_invalidatedasbuh1hhjk[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk[ubj)}(hvah]hva}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjg[ubah}(h]h ]h"]h$]h&]jjuh1j=hj/[hhhj@[hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj+[hhhj@[hKubah}(h]j&[ah ](jjeh"]h$]h&]j j )j huh1jhj@[hKhj([hhubj )}(hhh]h)}(hKindicates whether the backing BO of this :c:type:`drm_gpuva` is invalidatedh](h)indicates whether the backing BO of this }(hj[hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj[h]h drm_gpuva}(hj[hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj[ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j[c.drm_gpuva_invalidatedasbj drm_gpuvauh1hhjZhKhj[ubh is invalidated}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj[hhubah}(h]h ]h"]h$]h&]uh1j hj([hhhj@[hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j2\j( j2\j) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hj<\h]h Parameters}(hj>\hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj:\ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj6\ubjM )}(hhh]jR )}(h:``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to check h](jX )}(h``struct drm_gpuva *va``h]j^ )}(hj[\h]hstruct drm_gpuva *va}(hj]\hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjY\ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhjU\ubjt )}(hhh]h)}(h the :c:type:`drm_gpuva` to checkh](hthe }(hjt\hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj~\h]h drm_gpuva}(hj\hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj|\ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjp\hKhjt\ubh to check}(hjt\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjp\hKhjq\ubah}(h]h ]h"]h$]h&]uh1js hjU\ubeh}(h]h ]h"]h$]h&]uh1jQ hjp\hKhjR\ubah}(h]h ]h"]h$]h&]uh1jL hj6\ubh)}(h **Return**h]j7 )}(hj\h]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj\ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj6\ubh)}(h:``true`` if the GPU VA is invalidated, ``false`` otherwiseh](j^ )}(h``true``h]htrue}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj\ubh if the GPU VA is invalidated, }(hj\hhhNhNubj^ )}(h ``false``h]hfalse}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj\ubh otherwise}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj6\ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_flags (C enum)c.drm_gpuvm_flagshNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuvm_flagsh]j)}(henum drm_gpuvm_flagsh](j)}(hjh]henum}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKubj)}(h h]h }(hj,]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj+]hKubj)}(hdrm_gpuvm_flagsh]j)}(hj]h]hdrm_gpuvm_flags}(hj>]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:]ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj]hhhj+]hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhj+]hKubah}(h]j]ah ](jjeh"]h$]h&]j j )j huh1jhj+]hKhj]hhubj )}(hhh]h)}(hflags for struct drm_gpuvmh]hflags for struct drm_gpuvm}(hj`]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj]]hhubah}(h]h ]h"]h$]h&]uh1j hj]hhhj+]hKubeh}(h]h ](j! enumeh"]h$]h&]j& j! j' jx]j( jx]j) j* j+ uh1jhhhjWQhNhNubj- )}(hX**Constants** ``DRM_GPUVM_RESV_PROTECTED`` GPUVM is protected externally by the GPUVM's :c:type:`dma_resv` lock ``DRM_GPUVM_IMMEDIATE_MODE`` use the locking scheme for GEMs designed for modifying the GPUVM during the fence signalling path When set, gpuva.lock is used to protect gpuva.list in all GEM objects associated with this GPUVM. Otherwise, the GEMs dma-resv is used. ``DRM_GPUVM_USERBITS`` user defined bitsh](h)}(h **Constants**h]j7 )}(hj]h]h Constants}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj]ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj|]ubjM )}(hhh](jR )}(hb``DRM_GPUVM_RESV_PROTECTED`` GPUVM is protected externally by the GPUVM's :c:type:`dma_resv` lock h](jX )}(h``DRM_GPUVM_RESV_PROTECTED``h]j^ )}(hj]h]hDRM_GPUVM_RESV_PROTECTED}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj]ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj]ubjt )}(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]hhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hj]h]hdma_resv}(hj]hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj]ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj]ubh lock}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hKhj]ubah}(h]h ]h"]h$]h&]uh1js hj]ubeh}(h]h ]h"]h$]h&]uh1jQ hj]hKhj]ubjR )}(hX``DRM_GPUVM_IMMEDIATE_MODE`` use the locking scheme for GEMs designed for modifying the GPUVM during the fence signalling path When set, gpuva.lock is used to protect gpuva.list in all GEM objects associated with this GPUVM. Otherwise, the GEMs dma-resv is used. h](jX )}(h``DRM_GPUVM_IMMEDIATE_MODE``h]j^ )}(hj]h]hDRM_GPUVM_IMMEDIATE_MODE}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj]ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj]ubjt )}(hhh](h)}(hause the locking scheme for GEMs designed for modifying the GPUVM during the fence signalling pathh]hause the locking scheme for GEMs designed for modifying the GPUVM during the fence signalling path}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj^ubh)}(hWhen set, gpuva.lock is used to protect gpuva.list in all GEM objects associated with this GPUVM. Otherwise, the GEMs dma-resv is used.h]hWhen set, gpuva.lock is used to protect gpuva.list in all GEM objects associated with this GPUVM. Otherwise, the GEMs dma-resv is used.}(hj&^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj^ubeh}(h]h ]h"]h$]h&]uh1js hj]ubeh}(h]h ]h"]h$]h&]uh1jQ hj^hKhj]ubjR )}(h(``DRM_GPUVM_USERBITS`` user defined bitsh](jX )}(h``DRM_GPUVM_USERBITS``h]j^ )}(hjG^h]hDRM_GPUVM_USERBITS}(hjI^hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjE^ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhjA^ubjt )}(hhh]h)}(huser defined bitsh]huser defined bits}(hj`^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj]^ubah}(h]h ]h"]h$]h&]uh1js hjA^ubeh}(h]h ]h"]h$]h&]uh1jQ hj\^hKhj]ubeh}(h]h ]h"]h$]h&]uh1jL hj|]ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm (C struct) c.drm_gpuvmhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h drm_gpuvmh]j)}(hstruct drm_gpuvmh](j)}(hj? h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj^hKubj)}(h drm_gpuvmh]j)}(hj^h]h drm_gpuvm}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj^hhhj^hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhj^hKubah}(h]j^ah ](jjeh"]h$]h&]j j )j huh1jhj^hKhj^hhubj )}(hhh]h)}(hDRM GPU VA Managerh]hDRM GPU VA Manager}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj^hhubah}(h]h ]h"]h$]h&]uh1j hj^hhhj^hKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j^j( j^j) j* j+ uh1jhhhjWQhNhNubj- )}(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; struct llist_head bo_defer; }; **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 list ``bo_defer`` structure holding vm_bos that need to be destroyedh](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj_ubh:}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj^ubj )}(hX{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; struct llist_head bo_defer; };h]hX{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; struct llist_head bo_defer; };}hj _sbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj^ubh)}(h **Members**h]j7 )}(hj1_h]hMembers}(hj3_hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj/_ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj^ubjM )}(hhh](jR )}(h*``name`` the name of the DRM GPU VA space h](jX )}(h``name``h]j^ )}(hjP_h]hname}(hjR_hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjN_ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhjJ_ubjt )}(hhh]h)}(h the name of the DRM GPU VA spaceh]h the name of the DRM GPU VA space}(hji_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje_hKhjf_ubah}(h]h ]h"]h$]h&]uh1js hjJ_ubeh}(h]h ]h"]h$]h&]uh1jQ hje_hKhjG_ubjR )}(h6``flags`` the :c:type:`drm_gpuvm_flags` of this GPUVM h](jX )}(h ``flags``h]j^ )}(hj_h]hflags}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj_ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj_ubjt )}(hhh]h)}(h+the :c:type:`drm_gpuvm_flags` of this GPUVMh](hthe }(hj_hhhNhNubh)}(h:c:type:`drm_gpuvm_flags`h]j^ )}(hj_h]hdrm_gpuvm_flags}(hj_hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj_ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_flagsuh1hhj_hKhj_ubh of this GPUVM}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_hKhj_ubah}(h]h ]h"]h$]h&]uh1js hj_ubeh}(h]h ]h"]h$]h&]uh1jQ hj_hKhjG_ubjR )}(h2``drm`` the :c:type:`drm_device` this VM lives in h](jX )}(h``drm``h]j^ )}(hj_h]hdrm}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj_ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj_ubjt )}(hhh]h)}(h)the :c:type:`drm_device` this VM lives inh](hthe }(hj_hhhNhNubh)}(h:c:type:`drm_device`h]j^ )}(hj`h]h drm_device}(hj `hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj`ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_deviceuh1hhj_hKhj_ubh this VM lives in}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_hKhj_ubah}(h]h ]h"]h$]h&]uh1js hj_ubeh}(h]h ]h"]h$]h&]uh1jQ hj_hKhjG_ubjR )}(h#``mm_start`` start of the VA space h](jX )}(h ``mm_start``h]j^ )}(hjA`h]hmm_start}(hjC`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj?`ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj;`ubjt )}(hhh]h)}(hstart of the VA spaceh]hstart of the VA space}(hjZ`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV`hKhjW`ubah}(h]h ]h"]h$]h&]uh1js hj;`ubeh}(h]h ]h"]h$]h&]uh1jQ hjV`hKhjG_ubjR )}(h$``mm_range`` length of the VA space h](jX )}(h ``mm_range``h]j^ )}(hjz`h]hmm_range}(hj|`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjx`ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhjt`ubjt )}(hhh]h)}(hlength of the VA spaceh]hlength of the VA space}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKhj`ubah}(h]h ]h"]h$]h&]uh1js hjt`ubeh}(h]h ]h"]h$]h&]uh1jQ hj`hKhjG_ubjR )}(h7``rb`` structures to track :c:type:`drm_gpuva` entries h](jX )}(h``rb``h]j^ )}(hj`h]hrb}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj`ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhj`ubjt )}(hhh]h)}(h/structures to track :c:type:`drm_gpuva` entriesh](hstructures to track }(hj`hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj`h]h drm_gpuva}(hj`hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj`ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhj`hKhj`ubh entries}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`hKhj`ubah}(h]h ]h"]h$]h&]uh1js hj`ubeh}(h]h ]h"]h$]h&]uh1jQ hj`hKhjG_ubjR )}(h1``rb.tree`` the rb-tree to track GPU VA mappings h](jX )}(h ``rb.tree``h]j^ )}(hjah]hrb.tree}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj aubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj aubjt )}(hhh]h)}(h$the rb-tree to track GPU VA mappingsh]h$the rb-tree to track GPU VA mappings}(hj(ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ahMhj%aubah}(h]h ]h"]h$]h&]uh1js hj aubeh}(h]h ]h"]h$]h&]uh1jQ hj$ahMhjG_ubjR )}(h=``rb.list`` the :c:type:`list_head` to track GPU VA mappings h](jX )}(h ``rb.list``h]j^ )}(hjHah]hrb.list}(hjJahhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjFaubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjBaubjt )}(hhh]h)}(h0the :c:type:`list_head` to track GPU VA mappingsh](hthe }(hjaahhhNhNubh)}(h:c:type:`list_head`h]j^ )}(hjkah]h list_head}(hjmahhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjiaubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j list_headuh1hhj]ahMhjaaubh to track GPU VA mappings}(hjaahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]ahMhj^aubah}(h]h ]h"]h$]h&]uh1js hjBaubeh}(h]h ]h"]h$]h&]uh1jQ hj]ahMhjG_ubjR )}(h(``kref`` reference count of this object h](jX )}(h``kref``h]j^ )}(hjah]hkref}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjaubjt )}(hhh]h)}(hreference count of this objecth]hreference count of this object}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1js hjaubeh}(h]h ]h"]h$]h&]uh1jQ hjahMhjG_ubjR )}(hh``kernel_alloc_node`` :c:type:`drm_gpuva` representing the address space cutout reserved for the kernel h](jX )}(h``kernel_alloc_node``h]j^ )}(hjah]hkernel_alloc_node}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjaubjt )}(hhh]h)}(hQ:c:type:`drm_gpuva` representing the address space cutout reserved for the kernelh](h)}(h:c:type:`drm_gpuva`h]j^ )}(hjah]h drm_gpuva}(hjahhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjaubh> representing the address space cutout reserved for the kernel}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbhMhjaubah}(h]h ]h"]h$]h&]uh1js hjaubeh}(h]h ]h"]h$]h&]uh1jQ hjahMhjG_ubjR )}(hK``ops`` :c:type:`drm_gpuvm_ops` providing the split/merge steps to drivers h](jX )}(h``ops``h]j^ )}(hj6bh]hops}(hj8bhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj4bubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj0bubjt )}(hhh]h)}(hB:c:type:`drm_gpuvm_ops` providing the split/merge steps to driversh](h)}(h:c:type:`drm_gpuvm_ops`h]j^ )}(hjUbh]h drm_gpuvm_ops}(hjWbhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjSbubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_opsuh1hhjKbhMhjObubh+ providing the split/merge steps to drivers}(hjObhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKbhMhjLbubah}(h]h ]h"]h$]h&]uh1js hj0bubeh}(h]h ]h"]h$]h&]uh1jQ hjKbhMhjG_ubjR )}(hO``r_obj`` Resv GEM object; representing the GPUVM's common :c:type:`dma_resv`. h](jX )}(h ``r_obj``h]j^ )}(hjbh]hr_obj}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjbubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM hjbubjt )}(hhh]h)}(hDResv GEM object; representing the GPUVM's common :c:type:`dma_resv`.h](h3Resv GEM object; representing the GPUVM’s common }(hjbhhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjbh]hdma_resv}(hjbhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjbubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhjbhM hjbubh.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbhM hjbubah}(h]h ]h"]h$]h&]uh1js hjbubeh}(h]h ]h"]h$]h&]uh1jQ hjbhM hjG_ubjR )}(h-``extobj`` structure holding the extobj list h](jX )}(h ``extobj``h]j^ )}(hjbh]hextobj}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjbubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM%hjbubjt )}(hhh]h)}(h!structure holding the extobj listh]h!structure holding the extobj list}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM%hjcubah}(h]h ]h"]h$]h&]uh1js hjbubeh}(h]h ]h"]h$]h&]uh1jQ hjbhM%hjG_ubjR )}(h_``extobj.list`` :c:type:`list_head` storing :c:type:`drm_gpuvm_bos` serving as external object h](jX )}(h``extobj.list``h]j^ )}(hj#ch]h extobj.list}(hj%chhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj!cubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM*hjcubjt )}(hhh]h)}(hN:c:type:`list_head` storing :c:type:`drm_gpuvm_bos` serving as external objecth](h)}(h:c:type:`list_head`h]j^ )}(hjBch]h list_head}(hjDchhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj@cubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM)hj)}(h(struct drm_gpuvm *gpuvm)h]jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjvfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrfubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjfmodnameN classnameNjj)}j]j7fc.drm_gpuvm_getasbuh1hhjrfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrfubj)}(hgpuvmh]hgpuvm}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrfubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjnfubah}(h]h ]h"]h$]h&]jjuh1j=hjehhhj fhM^ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhj fhM^ubah}(h]jeah ](jjeh"]h$]h&]j j )j huh1jhj fhM^hjehhubj )}(hhh]h)}(h$acquire a struct drm_gpuvm referenceh]h$acquire a struct drm_gpuvm reference}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM^hjfhhubah}(h]h ]h"]h$]h&]uh1j hjehhhj fhM^ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jgj( jgj) j* j+ uh1jhhhjWQhNhNubj- )}(hXC**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to acquire the reference of **Description** This function acquires an additional reference to **gpuvm**. It is illegal to call this without already holding a reference. No locks required. **Return** the :c:type:`struct drm_gpuvm ` pointerh](h)}(h**Parameters**h]j7 )}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjgubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMbhjgubjM )}(hhh]jR )}(hP``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to acquire the reference of h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj8gh]hstruct drm_gpuvm *gpuvm}(hj:ghhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj6gubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM_hj2gubjt )}(hhh]h)}(h3the :c:type:`drm_gpuvm` to acquire the reference ofh](hthe }(hjQghhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj[gh]h drm_gpuvm}(hj]ghhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjYgubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjMghM_hjQgubh to acquire the reference of}(hjQghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMghM_hjNgubah}(h]h ]h"]h$]h&]uh1js hj2gubeh}(h]h ]h"]h$]h&]uh1jQ hjMghM_hj/gubah}(h]h ]h"]h$]h&]uh1jL hjgubh)}(h**Description**h]j7 )}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjgubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMahjgubh)}(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 }(hjghhhNhNubj7 )}(h **gpuvm**h]hgpuvm}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjgubhT. It is illegal to call this without already holding a reference. No locks required.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM`hjgubh)}(h **Return**h]j7 )}(hjgh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjgubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMchjgubh)}(h2the :c:type:`struct drm_gpuvm ` pointerh](hthe }(hjghhhNhNubh)}(h&:c:type:`struct drm_gpuvm `h]j^ )}(hjgh]hstruct drm_gpuvm}(hjghhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjgubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMdhjgubh pointer}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hhMdhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_gpuvm_resv_protected (C function)c.drm_gpuvm_resv_protectedhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h7bool drm_gpuvm_resv_protected (struct drm_gpuvm *gpuvm)h]j)}(h6bool drm_gpuvm_resv_protected(struct drm_gpuvm *gpuvm)h](j)}(hj=2h]hbool}(hj7hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMwubj)}(h h]h }(hjEhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhhjDhhMwubj)}(hdrm_gpuvm_resv_protectedh]j)}(hdrm_gpuvm_resv_protectedh]hdrm_gpuvm_resv_protected}(hjWhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShubah}(h]h ](jjeh"]h$]h&]jjuh1jhj3hhhhjDhhMwubj>)}(h(struct drm_gpuvm *gpuvm)h]jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjshhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjhmodnameN classnameNjj)}j]j)}j}jYhsbc.drm_gpuvm_resv_protectedasbuh1hhjohubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohubj)}(hgpuvmh]hgpuvm}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjkhubah}(h]h ]h"]h$]h&]jjuh1j=hj3hhhhjDhhMwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhhjDhhMwubah}(h]j*hah ](jjeh"]h$]h&]j j )j huh1jhjDhhMwhj,hhhubj )}(hhh]h)}(h;indicates whether :c:type:`DRM_GPUVM_RESV_PROTECTED` is seth](hindicates whether }(hjhhhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j^ )}(hjih]hDRM_GPUVM_RESV_PROTECTED}(hjihhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjhubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jhc.drm_gpuvm_resv_protectedasbj DRM_GPUVM_RESV_PROTECTEDuh1hhjZhKhjhubh is set}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMwhjhhhubah}(h]h ]h"]h$]h&]uh1j hj,hhhhjDhhMwubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j6ij( j6ij) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hj@ih]h Parameters}(hjBihhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj>iubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM{hj:iubjM )}(hhh]jR )}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj_ih]hstruct drm_gpuvm *gpuvm}(hjaihhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj]iubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMyhjYiubjt )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjxihhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjih]h drm_gpuvm}(hjihhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjiubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjtihMyhjxiubeh}(h]h ]h"]h$]h&]uh1hhjtihMyhjuiubah}(h]h ]h"]h$]h&]uh1js hjYiubeh}(h]h ]h"]h$]h&]uh1jQ hjtihMyhjViubah}(h]h ]h"]h$]h&]uh1jL hj:iubh)}(h **Return**h]j7 )}(hjih]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjiubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM{hj:iubh)}(hCtrue if :c:type:`DRM_GPUVM_RESV_PROTECTED` is set, false otherwise.h](htrue if }(hjihhhNhNubh)}(h":c:type:`DRM_GPUVM_RESV_PROTECTED`h]j^ )}(hjih]hDRM_GPUVM_RESV_PROTECTED}(hjihhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjiubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_GPUVM_RESV_PROTECTEDuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM{hjiubh is set, false otherwise.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjihM{hj:iubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_gpuvm_immediate_mode (C function)c.drm_gpuvm_immediate_modehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h7bool drm_gpuvm_immediate_mode (struct drm_gpuvm *gpuvm)h]j)}(h6bool drm_gpuvm_immediate_mode(struct drm_gpuvm *gpuvm)h](j)}(hj=2h]hbool}(hj!jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubj)}(h h]h }(hj/jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhj.jhMubj)}(hdrm_gpuvm_immediate_modeh]j)}(hdrm_gpuvm_immediate_modeh]hdrm_gpuvm_immediate_mode}(hjAjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=jubah}(h]h ](jjeh"]h$]h&]jjuh1jhjjhhhj.jhMubj>)}(h(struct drm_gpuvm *gpuvm)h]jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hj]jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYjubj)}(h h]h }(hjjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj{jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj}jmodnameN classnameNjj)}j]j)}j}jCjsbc.drm_gpuvm_immediate_modeasbuh1hhjYjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYjubj)}(hgpuvmh]hgpuvm}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjUjubah}(h]h ]h"]h$]h&]jjuh1j=hjjhhhj.jhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhj.jhMubah}(h]jjah ](jjeh"]h$]h&]j j )j huh1jhj.jhMhjjhhubj )}(hhh]h)}(h;indicates whether :c:type:`DRM_GPUVM_IMMEDIATE_MODE` is seth](hindicates whether }(hjjhhhNhNubh)}(h":c:type:`DRM_GPUVM_IMMEDIATE_MODE`h]j^ )}(hjjh]hDRM_GPUVM_IMMEDIATE_MODE}(hjjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jjc.drm_gpuvm_immediate_modeasbj DRM_GPUVM_IMMEDIATE_MODEuh1hhjZhKhjjubh is set}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjjhhubah}(h]h ]h"]h$]h&]uh1j hjjhhhj.jhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j kj( j kj) j* j+ uh1jhhhjWQhNhNubj- )}(h**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` **Return** true if :c:type:`DRM_GPUVM_IMMEDIATE_MODE` is set, false otherwise.h](h)}(h**Parameters**h]j7 )}(hj*kh]h Parameters}(hj,khhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj(kubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj$kubjM )}(hhh]jR )}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjIkh]hstruct drm_gpuvm *gpuvm}(hjKkhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjGkubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjCkubjt )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjbkhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjlkh]h drm_gpuvm}(hjnkhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjjkubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj^khMhjbkubeh}(h]h ]h"]h$]h&]uh1hhj^khMhj_kubah}(h]h ]h"]h$]h&]uh1js hjCkubeh}(h]h ]h"]h$]h&]uh1jQ hj^khMhj@kubah}(h]h ]h"]h$]h&]uh1jL hj$kubh)}(h **Return**h]j7 )}(hjkh]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjkubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj$kubh)}(hCtrue if :c:type:`DRM_GPUVM_IMMEDIATE_MODE` is set, false otherwise.h](htrue if }(hjkhhhNhNubh)}(h":c:type:`DRM_GPUVM_IMMEDIATE_MODE`h]j^ )}(hjkh]hDRM_GPUVM_IMMEDIATE_MODE}(hjkhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjkubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_GPUVM_IMMEDIATE_MODEuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjkubh is set, false otherwise.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhMhj$kubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_resv (C macro)c.drm_gpuvm_resvhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuvm_resvh]j)}(hdrm_gpuvm_resvh]j)}(hdrm_gpuvm_resvh]j)}(hjlh]hdrm_gpuvm_resv}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj lubah}(h]h ](jjeh"]h$]h&]jjuh1jhjlhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhj"lhMubah}(h]jkah ](jjeh"]h$]h&]j j )j huh1jhj"lhMhjlhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjlhhhj"lhMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' j;lj( j;lj) j* j+ uh1jhhhjWQhNhNubh)}(h``drm_gpuvm_resv (gpuvm__)``h]j^ )}(hjAlh]hdrm_gpuvm_resv (gpuvm__)}(hjClhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj?lubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubj )}(h5returns the :c:type:`drm_gpuvm`'s :c:type:`dma_resv` h]h)}(h4returns the :c:type:`drm_gpuvm`'s :c:type:`dma_resv`h](h returns the }(hj[lhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjelh]h drm_gpuvm}(hjglhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjclubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj[lubh’s }(hj[lhhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjlh]hdma_resv}(hjlhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhjlhMhj[lubeh}(h]h ]h"]h$]h&]uh1hhjlhMhjWlubah}(h]h ]h"]h$]h&]uh1jhjlhMhjWQhhubj- )}(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]j7 )}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjlubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjlubjM )}(hhh]jR )}(h$``gpuvm__`` the :c:type:`drm_gpuvm` h](jX )}(h ``gpuvm__``h]j^ )}(hjlh]hgpuvm__}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjlubjt )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjlhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjlh]h drm_gpuvm}(hjlhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjlhMhjlubeh}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1js hjlubeh}(h]h ]h"]h$]h&]uh1jQ hjlhMhjlubah}(h]h ]h"]h$]h&]uh1jL hjlubh)}(h **Return**h]j7 )}(hj1mh]hReturn}(hj3mhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj/mubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjlubh)}(h@a pointer to the :c:type:`drm_gpuvm`'s shared :c:type:`dma_resv`h](ha pointer to the }(hjGmhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjQmh]h drm_gpuvm}(hjSmhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjOmubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjGmubh ’s shared }(hjGmhhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjumh]hdma_resv}(hjwmhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjsmubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhjnmhMhjGmubeh}(h]h ]h"]h$]h&]uh1hhjnmhMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_resv_obj (C macro)c.drm_gpuvm_resv_objhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuvm_resv_objh]j)}(hdrm_gpuvm_resv_objh]j)}(hdrm_gpuvm_resv_objh]j)}(hjmh]hdrm_gpuvm_resv_obj}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jhjmhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjmhMubah}(h]jmah ](jjeh"]h$]h&]j j )j huh1jhjmhMhjmhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjmhhhjmhMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jmj( jmj) j* j+ uh1jhhhjWQhNhNubh)}(h ``drm_gpuvm_resv_obj (gpuvm__)``h]j^ )}(hjmh]hdrm_gpuvm_resv_obj (gpuvm__)}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjmubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubj )}(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 }(hjnhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjnh]hdrm_gem_object}(hjnhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjnubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjnubh holding the }(hjnhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj6nh]h drm_gpuvm}(hj8nhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj4nubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj/nhMhjnubh’s }(hjnhhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjYnh]hdma_resv}(hj[nhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjWnubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhj/nhMhjnubeh}(h]h ]h"]h$]h&]uh1hhj/nhMhjnubah}(h]h ]h"]h$]h&]uh1jhj/nhMhjWQhhubj- )}(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]j7 )}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjnubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjnubjM )}(hhh]jR )}(h$``gpuvm__`` the :c:type:`drm_gpuvm` h](jX )}(h ``gpuvm__``h]j^ )}(hjnh]hgpuvm__}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjnubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjnubjt )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjnhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjnh]h drm_gpuvm}(hjnhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjnubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjnhMhjnubeh}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1js hjnubeh}(h]h ]h"]h$]h&]uh1jQ hjnhMhjnubah}(h]h ]h"]h$]h&]uh1jL hjnubh)}(h **Return**h]j7 )}(hjoh]hReturn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjnubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjnubh)}(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 }(hjohhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hj!oh]hdrm_gem_object}(hj#ohhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjoubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjoubh holding the }(hjohhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjEoh]h drm_gpuvm}(hjGohhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjCoubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj>ohMhjoubh ’s shared }(hjohhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjhoh]hdma_resv}(hjjohhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjfoubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhj>ohMhjoubeh}(h]h ]h"]h$]h&]uh1hhj>ohMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gpuvm_is_extobj (C function)c.drm_gpuvm_is_extobjhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjohMubj)}(hdrm_gpuvm_is_extobjh]j)}(hdrm_gpuvm_is_extobjh]hdrm_gpuvm_is_extobj}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jhjohhhjohMubj>)}(h5(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjpmodnameN classnameNjj)}j]j)}j}josbc.drm_gpuvm_is_extobjasbuh1hhjoubj)}(h h]h }(hj%phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hj3phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hgpuvmh]hgpuvm}(hj@phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjoubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjYphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUpubj)}(h h]h }(hjfphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUpubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjwphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtpubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjypmodnameN classnameNjj)}j]j!pc.drm_gpuvm_is_extobjasbuh1hhjUpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUpubj)}(hobjh]hobj}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUpubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjoubeh}(h]h ]h"]h$]h&]jjuh1j=hjohhhjohMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohMubah}(h]joah ](jjeh"]h$]h&]j j )j huh1jhjohMhjohhubj )}(hhh]h)}(hJindicates whether the given :c:type:`drm_gem_object` is an external objecth](hindicates whether the given }(hjphhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjph]hdrm_gem_object}(hjphhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjpubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j!pc.drm_gpuvm_is_extobjasbj drm_gem_objectuh1hhjZhKhjpubh is an external object}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjphhubah}(h]h ]h"]h$]h&]uh1j hjohhhjohMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jqj( jqj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hj$qh]h Parameters}(hj&qhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj"qubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjqubjM )}(hhh](jR )}(h=``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to check h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjCqh]hstruct drm_gpuvm *gpuvm}(hjEqhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjAqubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj=qubjt )}(hhh]h)}(h the :c:type:`drm_gpuvm` to checkh](hthe }(hj\qhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjfqh]h drm_gpuvm}(hjhqhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjdqubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjXqhMhj\qubh to check}(hj\qhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjXqhMhjYqubah}(h]h ]h"]h$]h&]uh1js hj=qubeh}(h]h ]h"]h$]h&]uh1jQ hjXqhMhj:qubjR )}(hE``struct drm_gem_object *obj`` the :c:type:`drm_gem_object` to check h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjqh]hstruct drm_gem_object *obj}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjqubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjqubjt )}(hhh]h)}(h%the :c:type:`drm_gem_object` to checkh](hthe }(hjqhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjqh]hdrm_gem_object}(hjqhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjqubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjqhMhjqubh to check}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqhMhjqubah}(h]h ]h"]h$]h&]uh1js hjqubeh}(h]h ]h"]h$]h&]uh1jQ hjqhMhj:qubeh}(h]h ]h"]h$]h&]uh1jL hjqubh)}(h **Return**h]j7 )}(hjqh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjqubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjqubh)}(htrue if the :c:type:`drm_gem_object` :c:type:`dma_resv` differs from the :c:type:`drm_gpuvms` :c:type:`dma_resv`, false otherwiseh](h true if the }(hjrhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjrh]hdrm_gem_object}(hjrhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjrubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjrubh }(hjrhhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hjArh]hdma_resv}(hjCrhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj?rubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhj:rhMhjrubh differs from the }(hjrhhhNhNubh)}(h:c:type:`drm_gpuvms`h]j^ )}(hjdrh]h drm_gpuvms}(hjfrhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjbrubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmsuh1hhj:rhMhjrubh }hjrsbh)}(h:c:type:`dma_resv`h]j^ )}(hjrh]hdma_resv}(hjrhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjrubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhj:rhMhjrubh, false otherwise}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:rhMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_gpuvm_for_each_va_range (C macro)c.drm_gpuvm_for_each_va_rangehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuvm_for_each_va_rangeh]j)}(hdrm_gpuvm_for_each_va_rangeh]j)}(hdrm_gpuvm_for_each_va_rangeh]j)}(hjrh]hdrm_gpuvm_for_each_va_range}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jhjrhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjrhMubah}(h]jrah ](jjeh"]h$]h&]j j )j huh1jhjrhMhjrhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjrhhhjrhMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jrj( jrj) j* j+ uh1jhhhjWQhNhNubh)}(h?``drm_gpuvm_for_each_va_range (va__, gpuvm__, start__, end__)``h]j^ )}(hjsh]h;drm_gpuvm_for_each_va_range (va__, gpuvm__, start__, end__)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubj )}(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 }(hjshhhNhNubh)}(h:c:type:`drm_gpuvas`h]j^ )}(hj(sh]h drm_gpuvas}(hj*shhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj&subah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvasuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjsubeh}(h]h ]h"]h$]h&]uh1hhjEshMhjsubah}(h]h ]h"]h$]h&]uh1jhjEshMhjWQhhubj- )}(hX8**Parameters** ``va__`` :c:type:`drm_gpuva` structure to assign to in each iteration step ``gpuvm__`` :c:type:`drm_gpuvm` to walk over ``start__`` starting offset, the first gpuva will overlap this ``end__`` ending offset, the last gpuva will start before this (but may overlap) **Description** This iterator walks over all :c:type:`drm_gpuvas` in the :c:type:`drm_gpuvm` that lie between **start__** and **end__**. It is implemented similarly to list_for_each(), but is using the :c:type:`drm_gpuvm`'s internal interval tree to accelerate the search for the starting :c:type:`drm_gpuva`, and hence isn't safe against removal of elements. It assumes that **end__** is within (or is the upper limit of) the :c:type:`drm_gpuvm`. This iterator does not skip over the :c:type:`drm_gpuvm`'s **kernel_alloc_node**.h](h)}(h**Parameters**h]j7 )}(hjXsh]h Parameters}(hjZshhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjVsubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjRsubjM )}(hhh](jR )}(hK``va__`` :c:type:`drm_gpuva` structure to assign to in each iteration step h](jX )}(h``va__``h]j^ )}(hjwsh]hva__}(hjyshhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjusubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjqsubjt )}(hhh]h)}(hA:c:type:`drm_gpuva` structure to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j^ )}(hjsh]h drm_gpuva}(hjshhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjshMhjsubh. structure to assign to in each iteration step}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1js hjqsubeh}(h]h ]h"]h$]h&]uh1jQ hjshMhjnsubjR )}(h-``gpuvm__`` :c:type:`drm_gpuvm` to walk over h](jX )}(h ``gpuvm__``h]j^ )}(hjsh]hgpuvm__}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjsubjt )}(hhh]h)}(h :c:type:`drm_gpuvm` to walk overh](h)}(h:c:type:`drm_gpuvm`h]j^ )}(hjsh]h drm_gpuvm}(hjshhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjshMhjsubh to walk over}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1js hjsubeh}(h]h ]h"]h$]h&]uh1jQ hjshMhjnsubjR )}(h?``start__`` starting offset, the first gpuva will overlap this h](jX )}(h ``start__``h]j^ )}(hj'th]hstart__}(hj)thhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj%tubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj!tubjt )}(hhh]h)}(h2starting offset, the first gpuva will overlap thish]h2starting offset, the first gpuva will overlap this}(hj@thhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj:ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_execuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj2ubh should be.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjYhMhjWQhhubh)}(hWOptionally, **extra** can be set in order to lock additional :c:type:`drm_gem_objects`.h](h Optionally, }(hjdhhhNhNubj7 )}(h **extra**h]hextra}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjdubh( can be set in order to lock additional }(hjdhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j^ )}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj~ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjdubh.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjWQhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_gpuvm_exec_unlock (C function)c.drm_gpuvm_exec_unlockhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h;void drm_gpuvm_exec_unlock (struct drm_gpuvm_exec *vm_exec)h]j)}(h:void drm_gpuvm_exec_unlock(struct drm_gpuvm_exec *vm_exec)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMRubj)}(h h]h }(hjЁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjρhMRubj)}(hdrm_gpuvm_exec_unlockh]j)}(hdrm_gpuvm_exec_unlockh]hdrm_gpuvm_exec_unlock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjށubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjρhMRubj>)}(h (struct drm_gpuvm_exec *vm_exec)h]jD)}(hstruct drm_gpuvm_exec *vm_exech](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_exec_unlockasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvm_exech]hvm_exec}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjρhMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjρhMRubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjρhMRhjhhubj )}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMRhj~hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjρhMRubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMVhjubjM )}(hhh]jR )}(hH``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper h](jX )}(h"``struct drm_gpuvm_exec *vm_exec``h]j^ )}(hj‚h]hstruct drm_gpuvm_exec *vm_exec}(hjĂhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMShjubjt )}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hjۂhhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j^ )}(hjh]hdrm_gpuvm_exec}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_execuh1hhjׂhMShjۂubh wrapper}(hjۂhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjׂhMShj؂ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjׂhMShjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMUhjubh)}(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 }(hj6hhhNhNubh)}(h:c:type:`drm_gem_objects`h]j^ )}(hj@h]hdrm_gem_objects}(hjBhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj>ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMThj6ubhC previously acquired through drm_gpuvm_exec_lock() or its variants.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hMThjubh)}(h **Return**h]j7 )}(hjjh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjhubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMWhjubh)}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_gpuvm_exec_resv_add_fence (C function)c.drm_gpuvm_exec_resv_add_fencehNtauh1jhjWQhhhNhNubj)}(hhh](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]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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMhubj)}(hdrm_gpuvm_exec_resv_add_fenceh]j)}(hdrm_gpuvm_exec_resv_add_fenceh]hdrm_gpuvm_exec_resv_add_fence}(hjЃhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̃ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMhubj>)}(h~(struct drm_gpuvm_exec *vm_exec, struct dma_fence *fence, enum dma_resv_usage private_usage, enum dma_resv_usage extobj_usage)h](jD)}(hstruct drm_gpuvm_exec *vm_exech](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}j҃sbc.drm_gpuvm_exec_resv_add_fenceasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvm_exech]hvm_exec}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct dma_fence *fenceh](j)}(hj? h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj~modnameN classnameNjj)}j]j&c.drm_gpuvm_exec_resv_add_fenceasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hfenceh]hfence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h!enum dma_resv_usage private_usageh](j)}(hjh]henum}(hj΄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʄubj)}(h h]h }(hjۄhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʄubh)}(hhh]j)}(hdma_resv_usageh]hdma_resv_usage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j&c.drm_gpuvm_exec_resv_add_fenceasbuh1hhjʄubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʄubj)}(h private_usageh]h private_usage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʄubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h enum dma_resv_usage extobj_usageh](j)}(hjh]henum}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(hdma_resv_usageh]hdma_resv_usage}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjQmodnameN classnameNjj)}j]j&c.drm_gpuvm_exec_resv_add_fenceasbuh1hhj-ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h extobj_usageh]h extobj_usage}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMhubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhhjhhubj )}(hhh]h)}(h#add fence to private and all extobjh]h#add fence to private and all extobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMhubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(hX5**Parameters** ``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper ``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 usage **Description** See drm_gpuvm_resv_add_fence().h](h)}(h**Parameters**h]j7 )}(hjDžh]h Parameters}(hjɅhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjŅubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMlhjubjM )}(hhh](jR )}(hH``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper h](jX )}(h"``struct drm_gpuvm_exec *vm_exec``h]j^ )}(hjh]hstruct drm_gpuvm_exec *vm_exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMihjubjt )}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j^ )}(hj h]hdrm_gpuvm_exec}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_execuh1hhjhMihjubh wrapper}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMihjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMihj݅ubjR )}(h)``struct dma_fence *fence`` fence to add h](jX )}(h``struct dma_fence *fence``h]j^ )}(hjBh]hstruct dma_fence *fence}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMjhj<ubjt )}(hhh]h)}(h fence to addh]h fence to add}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMjhjXubah}(h]h ]h"]h$]h&]uh1js hj<ubeh}(h]h ]h"]h$]h&]uh1jQ hjWhMjhj݅ubjR )}(h=``enum dma_resv_usage private_usage`` private dma-resv usage h](jX )}(h%``enum dma_resv_usage private_usage``h]j^ )}(hj{h]h!enum dma_resv_usage private_usage}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjyubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMkhjuubjt )}(hhh]h)}(hprivate dma-resv usageh]hprivate dma-resv usage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMkhjubah}(h]h ]h"]h$]h&]uh1js hjuubeh}(h]h ]h"]h$]h&]uh1jQ hjhMkhj݅ubjR )}(h;``enum dma_resv_usage extobj_usage`` extobj dma-resv usage h](jX )}(h$``enum dma_resv_usage extobj_usage``h]j^ )}(hjh]h enum dma_resv_usage extobj_usage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMlhjubjt )}(hhh]h)}(hextobj dma-resv usageh]hextobj dma-resv usage}(hj͆hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɆhMlhjʆubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjɆhMlhj݅ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMnhjubh)}(hSee drm_gpuvm_resv_add_fence().h]hSee drm_gpuvm_resv_add_fence().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMmhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_gpuvm_exec_validate (C function)c.drm_gpuvm_exec_validatehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h)}(h (struct drm_gpuvm_exec *vm_exec)h]jD)}(hstruct drm_gpuvm_exec *vm_exech](j)}(hj? h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hhh]j)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jWsbc.drm_gpuvm_exec_validateasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hvm_exech]hvm_exec}(hjʇhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjiubah}(h]h ]h"]h$]h&]jjuh1j=hj0hhhjBhM{ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjBhM{ubah}(h]j'ah ](jjeh"]h$]h&]j j )j huh1jhjBhM{hj)hhubj )}(hhh]h)}(h"validate all BOs marked as evictedh]h"validate all BOs marked as evicted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM{hjhhubah}(h]h ]h"]h$]h&]uh1j Bhj)hhhjBhM{ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjM )}(hhh]jR )}(hH``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper h](jX )}(h"``struct drm_gpuvm_exec *vm_exec``h]j^ )}(hj5h]hstruct drm_gpuvm_exec *vm_exec}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj3ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM|hj/ubjt )}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hjNhhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j^ )}(hjXh]hdrm_gpuvm_exec}(hjZhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjVubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_execuh1hhjJhM|hjNubh wrapper}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJhM|hjKubah}(h]h ]h"]h$]h&]uh1js hj/ubeh}(h]h ]h"]h$]h&]uh1jQ hjJhM|hj,ubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM~hjubh)}(hSee drm_gpuvm_validate().h]hSee drm_gpuvm_validate().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM}hjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjЈhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_bo (C struct)c.drm_gpuvm_bohNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h drm_gpuvm_boh]j)}(hstruct drm_gpuvm_boh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubj)}(h drm_gpuvm_boh]j)}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj hMhjhhubj )}(hhh]h)}(hUstructure representing a :c:type:`drm_gpuvm` and :c:type:`drm_gem_object` combinationh](hstructure representing a }(hjAhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjKh]h drm_gpuvm}(hjMhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j)}j}jsbc.drm_gpuvm_boasbj drm_gpuvmuh1hhjZhKhjAubh and }(hjAhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjuh]hdrm_gem_object}(hjwhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjjgj drm_gem_objectuh1hhjZhKhjAubh combination}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj>hhubah}(h]h ]h"]h$]h&]uh1j hjhhhj hMubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(hX**Definition**:: struct drm_gpuvm_bo { struct drm_gpuvm *vm; struct drm_gem_object *obj; bool evicted; struct kref kref; struct { struct list_head gpuva; struct { struct list_head gem; struct list_head extobj; struct list_head evict; struct llist_node bo_defer; } entry; } list; }; **Members** ``vm`` The :c:type:`drm_gpuvm` the **obj** is mapped in. This is a reference counted pointer. ``obj`` The :c:type:`drm_gem_object` being mapped in **vm**. This is a reference counted pointer. ``evicted`` Indicates whether the :c:type:`drm_gem_object` is evicted; field protected by the :c:type:`drm_gem_object`'s dma-resv lock. ``kref`` The reference count for this :c:type:`drm_gpuvm_bo`. ``list`` Structure containing all :c:type:`list_heads`. ``list.gpuva`` The list of linked :c:type:`drm_gpuvas`. It is safe to access entries from this list as long as the GEM's gpuva lock is held. See also struct drm_gem_object. ``list.entry`` Structure containing all :c:type:`list_heads` serving as entry. ``list.entry.gem`` List entry to attach to the :c:type:`drm_gem_objects` gpuva list. ``list.entry.evict`` List entry to attach to the :c:type:`drm_gpuvms` evict list. ``list.entry.bo_defer`` List entry to attach to the :c:type:`drm_gpuvms` bo_defer list.h](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubj )}(hXhstruct drm_gpuvm_bo { struct drm_gpuvm *vm; struct drm_gem_object *obj; bool evicted; struct kref kref; struct { struct list_head gpuva; struct { struct list_head gem; struct list_head extobj; struct list_head evict; struct llist_node bo_defer; } entry; } list; };h]hXhstruct drm_gpuvm_bo { struct drm_gpuvm *vm; struct drm_gem_object *obj; bool evicted; struct kref kref; struct { struct list_head gpuva; struct { struct list_head gem; struct list_head extobj; struct list_head evict; struct llist_node bo_defer; } entry; } list; };}hjˉsbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh)}(h **Members**h]j7 )}(hj܉h]hMembers}(hjމhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjډubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjM )}(hhh](jR )}(h^``vm`` The :c:type:`drm_gpuvm` the **obj** is mapped in. This is a reference counted pointer. h](jX )}(h``vm``h]j^ )}(hjh]hvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh]h)}(hVThe :c:type:`drm_gpuvm` the **obj** is mapped in. This is a reference counted pointer.h](hThe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh the }(hjhhhNhNubj7 )}(h**obj**h]hobj}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh3 is mapped in. This is a reference counted pointer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;hMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hb``obj`` The :c:type:`drm_gem_object` being mapped in **vm**. This is a reference counted pointer. h](jX )}(h``obj``h]j^ )}(hjjh]hobj}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjhubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjdubjt )}(hhh]h)}(hYThe :c:type:`drm_gem_object` being mapped in **vm**. This is a reference counted pointer.h](hThe }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh being mapped in }(hjhhhNhNubj7 )}(h**vm**h]hvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh&. This is a reference counted pointer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjdubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(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](jX )}(h ``evicted``h]j^ )}(hjيh]hevicted}(hjۊhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj׊ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjӊubjt )}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh$ is evicted; field protected by the }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hj h]hdrm_gem_object}(hj"hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjhMhjubh’s dma-resv lock.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjӊubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h>``kref`` The reference count for this :c:type:`drm_gpuvm_bo`. h](jX )}(h``kref``h]j^ )}(hjYh]hkref}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjWubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjSubjt )}(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^ )}(hj|h]h drm_gpuvm_bo}(hj~hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjzubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjnhMhjrubh.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1js hjSubeh}(h]h ]h"]h$]h&]uh1jQ hjnhMhjubjR )}(h8``list`` Structure containing all :c:type:`list_heads`. h](jX )}(h``list``h]j^ )}(hjh]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh]h)}(h.Structure containing all :c:type:`list_heads`.h](hStructure containing all }(hj΋hhhNhNubh)}(h:c:type:`list_heads`h]j^ )}(hj؋h]h list_heads}(hjڋhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj֋ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j list_headsuh1hhjʋhMhj΋ubh.}(hj΋hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjʋhMhjˋubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjʋhMhjubjR )}(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](jX )}(h``list.gpuva``h]j^ )}(hjh]h list.gpuva}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj ubjt )}(hhh](h)}(h(The list of linked :c:type:`drm_gpuvas`.h](hThe list of linked }(hj*hhhNhNubh)}(h:c:type:`drm_gpuvas`h]j^ )}(hj4h]h drm_gpuvas}(hj6hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj2ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvasuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj*ubh.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQhMhj'ubh)}(htIt is safe to access entries from this list as long as the GEM's gpuva lock is held. See also struct drm_gem_object.h]hvIt is safe to access entries from this list as long as the GEM’s gpuva lock is held. See also struct drm_gem_object.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj'ubeh}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj&hMhjubjR )}(hO``list.entry`` Structure containing all :c:type:`list_heads` serving as entry. h](jX )}(h``list.entry``h]j^ )}(hj}h]h list.entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj{ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjwubjt )}(hhh]h)}(h?Structure containing all :c:type:`list_heads` serving as entry.h](hStructure containing all }(hjhhhNhNubh)}(h:c:type:`list_heads`h]j^ )}(hjh]h list_heads}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j list_headsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh serving as entry.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjwubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hU``list.entry.gem`` List entry to attach to the :c:type:`drm_gem_objects` gpuva list. h](jX )}(h``list.entry.gem``h]j^ )}(hjڌh]hlist.entry.gem}(hj܌hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj،ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjԌubjt )}(hhh]h)}(hAList entry to attach to the :c:type:`drm_gem_objects` gpuva list.h](hList entry to attach to the }(hjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j^ )}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh gpuva list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjԌubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hR``list.entry.evict`` List entry to attach to the :c:type:`drm_gpuvms` evict list. h](jX )}(h``list.entry.evict``h]j^ )}(hj7h]hlist.entry.evict}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj1ubjt )}(hhh]h)}(h)}(h(struct drm_gpuvm_bo *vm_bo)h]jD)}(hstruct drm_gpuvm_bo *vm_boh](j)}(hj? h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j?c.drm_gpuvm_bo_getasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjȏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hvm_boh]hvm_bo}(hjՏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjvubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h'acquire a struct drm_gpuvm_bo referenceh]h'acquire a struct drm_gpuvm_bo reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjM )}(hhh]jR )}(hV``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to acquire the reference of h](jX )}(h``struct drm_gpuvm_bo *vm_bo``h]j^ )}(hj@h]hstruct drm_gpuvm_bo *vm_bo}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj>ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj:ubjt )}(hhh]h)}(h6the :c:type:`drm_gpuvm_bo` to acquire the reference ofh](hthe }(hjYhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjch]h drm_gpuvm_bo}(hjehhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjUhMhjYubh to acquire the reference of}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1js hj:ubeh}(h]h ]h"]h$]h&]uh1jQ hjUhMhj7ubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh)}(hThis function acquires an additional reference to **vm_bo**. It is illegal to call this without already holding a reference. No locks required.h](h2This function acquires an additional reference to }(hjhhhNhNubj7 )}(h **vm_bo**h]hvm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubhT. It is illegal to call this without already holding a reference. No locks required.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh)}(h **Return**h]j7 )}(hjאh]hReturn}(hjِhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjՐubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh)}(h*the :c:type:`struct vm_bo ` pointerh](hthe }(hjhhhNhNubh)}(h:c:type:`struct vm_bo `h]j^ )}(hjh]h struct vm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j vm_bouh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh pointer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_gpuvm_bo_gem_evict (C function)c.drm_gpuvm_bo_gem_evicthNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhMubj)}(hdrm_gpuvm_bo_gem_evicth]j)}(hdrm_gpuvm_bo_gem_evicth]hdrm_gpuvm_bo_gem_evict}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj;hhhjMhMubj>)}(h((struct drm_gem_object *obj, bool evict)h](jD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jbsbc.drm_gpuvm_bo_gem_evictasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hjh]h*}(hjȑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hobjh]hobj}(hjՑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjtubjD)}(h bool evicth](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hevicth]hevict}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjtubeh}(h]h ]h"]h$]h&]jjuh1j=hj;hhhjMhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhjMhMubah}(h]j2ah ](jjeh"]h$]h&]j j )j huh1jhjMhMhj4hhubj )}(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 }(hj3hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hj=h]h drm_gpuvm_bo}(hj?hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj;ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gpuvm_bo_gem_evictasbj drm_gpuvm_bouh1hhjZhKhj3ubh’s in the list to/from the }(hj3hhhNhNubh)}(h:c:type:`drm_gpuvms`h]j^ )}(hjeh]h drm_gpuvms}(hjghhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjcubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjjYj drm_gpuvmsuh1hhjZhKhj3ubh evicted list}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj0hhubah}(h]h ]h"]h$]h&]uh1j hj4hhhjMhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjM )}(hhh](jR )}(h<``struct drm_gem_object *obj`` the :c:type:`drm_gem_object` h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh]h)}(hthe :c:type:`drm_gem_object`h](hthe }(hjؒhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjԒhMhjؒubeh}(h]h ]h"]h$]h&]uh1hhjԒhMhjՒubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjԒhMhjubjR )}(h4``bool evict`` indicates whether **obj** is evicted h](jX )}(h``bool evict``h]j^ )}(hjh]h bool evict}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh]h)}(h$indicates whether **obj** is evictedh](hindicates whether }(hj0hhhNhNubj7 )}(h**obj**h]hobj}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj0ubh is evicted}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj,hMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjbubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh)}(hSee drm_gpuvm_bo_evict().h]hSee drm_gpuvm_bo_evict().}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_gpuvm_bo_for_each_va (C macro)c.drm_gpuvm_bo_for_each_vahNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuvm_bo_for_each_vah]j)}(hdrm_gpuvm_bo_for_each_vah]j)}(hdrm_gpuvm_bo_for_each_vah]j)}(hjh]hdrm_gpuvm_bo_for_each_va}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jٓj( jٓj) j* j+ uh1jhhhjWQhNhNubh)}(h,``drm_gpuvm_bo_for_each_va (va__, vm_bo__)``h]j^ )}(hjߓh]h(drm_gpuvm_bo_for_each_va (va__, vm_bo__)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjݓubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubj )}(h4iterator to walk over a list of :c:type:`drm_gpuva` h]h)}(h3iterator to walk over a list of :c:type:`drm_gpuva`h](h iterator to walk over a list of }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ]h"]h$]h&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1jhj hMhjWQhhubj- )}(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]j7 )}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj1ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj-ubjM )}(hhh](jR )}(hK``va__`` :c:type:`drm_gpuva` structure to assign to in each iteration step h](jX )}(h``va__``h]j^ )}(hjRh]hva__}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjPubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjLubjt )}(hhh]h)}(hA:c:type:`drm_gpuva` structure to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j^ )}(hjqh]h drm_gpuva}(hjshhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjoubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjghMhjkubh. structure to assign to in each iteration step}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1js hjLubeh}(h]h ]h"]h$]h&]uh1jQ hjghMhjIubjR )}(h[``vm_bo__`` the :c:type:`drm_gpuvm_bo` the :c:type:`drm_gpuva` to walk are associated with h](jX )}(h ``vm_bo__``h]j^ )}(hjh]hvm_bo__}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hj˔ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhMhjÔubh the }(hjÔhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjhMhjÔubh to walk are associated with}(hjÔhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjIubeh}(h]h ]h"]h$]h&]uh1jL hj-ubh)}(h**Description**h]j7 )}(hj+h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj)ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj-ubh)}(hgThis iterator walks over all :c:type:`drm_gpuva` structures associated with the :c:type:`drm_gpuvm_bo`.h](hThis iterator walks over all }(hjAhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjKh]h drm_gpuva}(hjMhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjAubh structures associated with the }(hjAhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjoh]h drm_gpuvm_bo}(hjqhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjmubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhhMhjAubh.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhhMhj-ubh)}(h*The caller must hold the GEM's gpuva lock.h]h,The caller must hold the GEM’s gpuva lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(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_safehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuvm_bo_for_each_va_safeh]j)}(hdrm_gpuvm_bo_for_each_va_safeh]j)}(hdrm_gpuvm_bo_for_each_va_safeh]j)}(hjh]hdrm_gpuvm_bo_for_each_va_safe}(hjɕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŕubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM$ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjܕhM$ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjܕhM$hjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjܕhM$ubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubh)}(h9``drm_gpuvm_bo_for_each_va_safe (va__, next__, vm_bo__)``h]j^ )}(hjh]h5drm_gpuvm_bo_for_each_va_safe (va__, next__, vm_bo__)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM&hjWQhhubj )}(h;iterator to safely walk over a list of :c:type:`drm_gpuva` h]h)}(h:iterator to safely walk over a list of :c:type:`drm_gpuva`h](h'iterator to safely walk over a list of }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjh]h drm_gpuva}(hj!hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM$hjubeh}(h]h ]h"]h$]h&]uh1hhj<hM$hjubah}(h]h ]h"]h$]h&]uh1jhj<hM$hjWQhhubj- )}(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]j7 )}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjMubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM(hjIubjM )}(hhh](jR )}(hK``va__`` :c:type:`drm_gpuva` structure to assign to in each iteration step h](jX )}(h``va__``h]j^ )}(hjnh]hva__}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM&hjhubjt )}(hhh]h)}(hA:c:type:`drm_gpuva` structure to assign to in each iteration steph](h)}(h:c:type:`drm_gpuva`h]j^ )}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjhM&hjubh. structure to assign to in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM&hjubah}(h]h ]h"]h$]h&]uh1js hjhubeh}(h]h ]h"]h$]h&]uh1jQ hjhM&hjeubjR )}(hE``next__`` :c:type:`next` :c:type:`drm_gpuva` to store the next step h](jX )}(h ``next__``h]j^ )}(hjƖh]hnext__}(hjȖhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjĖubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM'hjubjt )}(hhh]h)}(h9:c:type:`next` :c:type:`drm_gpuva` to store the next steph](h)}(h:c:type:`next`h]j^ )}(hjh]hnext}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j nextuh1hhjۖhM'hjߖubh }(hjߖhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjh]h drm_gpuva}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j 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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjۖhM'hjeubjR )}(h[``vm_bo__`` the :c:type:`drm_gpuvm_bo` the :c:type:`drm_gpuva` to walk are associated with h](jX )}(h ``vm_bo__``h]j^ )}(hjAh]hvm_bo__}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj?ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM(hj;ubjt )}(hhh]h)}(hNthe :c:type:`drm_gpuvm_bo` the :c:type:`drm_gpuva` to walk are associated withh](hthe }(hjZhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjdh]h drm_gpuvm_bo}(hjfhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjbubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjVhM(hjZubh the }(hjZhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjVhM(hjZubh to walk are associated with}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjVhM(hjWubah}(h]h ]h"]h$]h&]uh1js hj;ubeh}(h]h ]h"]h$]h&]uh1jQ hjVhM(hjeubeh}(h]h ]h"]h$]h&]uh1jL hjIubh)}(h**Description**h]j7 )}(hj—h]h Description}(hjėhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM*hjIubh)}(hThis iterator walks over all :c:type:`drm_gpuva` structures associated with the :c:type:`drm_gpuvm_bo`. It is implemented with list_for_each_entry_safe(), hence it is save against removal of elements.h](hThis iterator walks over all }(hjؗhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM)hjؗubh structures associated with the }(hjؗhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhM)hjؗubhb. It is implemented with list_for_each_entry_safe(), hence it is save against removal of elements.}(hjؗhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM)hjIubh)}(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:522: ./include/drm/drm_gpuvm.hhM-hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_op_type (C enum)c.drm_gpuva_op_typehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_op_typeh]j)}(henum drm_gpuva_op_typeh](j)}(hjh]henum}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM2ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjihM2ubj)}(hdrm_gpuva_op_typeh]j)}(hjVh]hdrm_gpuva_op_type}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jhjXhhhjihM2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjihM2ubah}(h]jOah ](jjeh"]h$]h&]j j )j huh1jhjihM2hjQhhubj )}(hhh]h)}(hGPU VA operation typeh]hGPU VA operation type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM4hjhhubah}(h]h ]h"]h$]h&]uh1j hjQhhhjihM2ubeh}(h]h ](j! enumeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Constants}(hj˜hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM8hjubjM )}(hhh](jR )}(h%``DRM_GPUVA_OP_MAP`` the map op type h](jX )}(h``DRM_GPUVA_OP_MAP``h]j^ )}(hjߘh]hDRM_GPUVA_OP_MAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjݘubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM;hj٘ubjt )}(hhh]h)}(hthe map op typeh]hthe map op type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1js hj٘ubeh}(h]h ]h"]h$]h&]uh1jQ hjhM;hj֘ubjR )}(h)``DRM_GPUVA_OP_REMAP`` the remap op type h](jX )}(h``DRM_GPUVA_OP_REMAP``h]j^ )}(hjh]hDRM_GPUVA_OP_REMAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM>hjubjt )}(hhh]h)}(hthe remap op typeh]hthe remap op type}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hM>hj.ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj-hM>hj֘ubjR )}(h)``DRM_GPUVA_OP_UNMAP`` the unmap op type h](jX )}(h``DRM_GPUVA_OP_UNMAP``h]j^ )}(hjQh]hDRM_GPUVA_OP_UNMAP}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjOubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMAhjKubjt )}(hhh]h)}(hthe unmap op typeh]hthe unmap op type}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMAhjgubah}(h]h ]h"]h$]h&]uh1js hjKubeh}(h]h ]h"]h$]h&]uh1jQ hjfhMAhj֘ubjR )}(h/``DRM_GPUVA_OP_PREFETCH`` the prefetch op type h](jX )}(h``DRM_GPUVA_OP_PREFETCH``h]j^ )}(hjh]hDRM_GPUVA_OP_PREFETCH}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMDhjubjt )}(hhh]h)}(hthe prefetch op typeh]hthe prefetch op type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMDhj֘ubjR )}(h2``DRM_GPUVA_OP_DRIVER`` the driver defined op typeh](jX )}(h``DRM_GPUVA_OP_DRIVER``h]j^ )}(hjÙh]hDRM_GPUVA_OP_DRIVER}(hjřhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMFhjubjt )}(hhh]h)}(hthe driver defined op typeh]hthe driver defined op type}(hjܙhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMGhjٙubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjؙhMFhj֘ubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMIhjWQhhubh)}(hKOperations to alter the GPU VA mappings tracked by the :c:type:`drm_gpuvm`.h](h7Operations to alter the GPU VA mappings tracked by the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj&h]h drm_gpuvm}(hj(hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj$ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM5hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjChM5hjWQhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_op_map (C struct)c.drm_gpuva_op_maphNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_op_maph]j)}(hstruct drm_gpuva_op_maph](j)}(hj? h]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM:ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjthM:ubj)}(hdrm_gpuva_op_maph]j)}(hjah]hdrm_gpuva_op_map}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjchhhjthM:ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhjthM:ubah}(h]jZah ](jjeh"]h$]h&]j j )j huh1jhjthM:hj\hhubj )}(hhh]h)}(hGPU VA map operationh]hGPU VA map operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMThjhhubah}(h]h ]h"]h$]h&]uh1j hj\hhhjthM:ubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(hXA**Definition**:: struct drm_gpuva_op_map { struct { u64 addr; u64 range; } va; struct { u64 offset; struct drm_gem_object *obj; } gem; }; **Members** ``va`` structure containing address and range of a map operation ``va.addr`` the base address of the new mapping ``va.range`` the range of the new mapping ``gem`` structure containing the :c:type:`drm_gem_object` and its offset ``gem.offset`` the offset within the :c:type:`drm_gem_object` ``gem.obj`` the :c:type:`drm_gem_object` to maph](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hj͚hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjɚubh:}(hjɚhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMXhjŚubj )}(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&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMZhjŚubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMehjŚubjM )}(hhh](jR )}(hA``va`` structure containing address and range of a map operation h](jX )}(h``va``h]j^ )}(hjh]hva}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM]hjubjt )}(hhh]h)}(h9structure containing address and range of a map operationh]h9structure containing address and range of a map operation}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM\hj,ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj+hM]hj ubjR )}(h0``va.addr`` the base address of the new mapping h](jX )}(h ``va.addr``h]j^ )}(hjPh]hva.addr}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjNubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMahjJubjt )}(hhh]h)}(h#the base address of the new mappingh]h#the base address of the new mapping}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMahjfubah}(h]h ]h"]h$]h&]uh1js hjJubeh}(h]h ]h"]h$]h&]uh1jQ hjehMahj ubjR )}(h*``va.range`` the range of the new mapping h](jX )}(h ``va.range``h]j^ )}(hjh]hva.range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMfhjubjt )}(hhh]h)}(hthe range of the new mappingh]hthe range of the new mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMfhj ubjR )}(hI``gem`` structure containing the :c:type:`drm_gem_object` and its offset h](jX )}(h``gem``h]j^ )}(hj›h]hgem}(hjěhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMlhjubjt )}(hhh]h)}(h@structure containing the :c:type:`drm_gem_object` and its offseth](hstructure containing the }(hjۛhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjכhMlhjۛubh and its offset}(hjۛhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjכhMlhj؛ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjכhMlhj ubjR )}(h>``gem.offset`` the offset within the :c:type:`drm_gem_object` h](jX )}(h``gem.offset``h]j^ )}(hjh]h gem.offset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMphjubjt )}(hhh]h)}(h.the offset within the :c:type:`drm_gem_object`h](hthe offset within the }(hj7hhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjAh]hdrm_gem_object}(hjChhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj?ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhj3hMphj7ubeh}(h]h ]h"]h$]h&]uh1hhj3hMphj4ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj3hMphj ubjR )}(h/``gem.obj`` the :c:type:`drm_gem_object` to maph](jX )}(h ``gem.obj``h]j^ )}(hjvh]hgem.obj}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjtubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMthjpubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMuhjubh to map}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1js hjpubeh}(h]h ]h"]h$]h&]uh1jQ hjhMthj ubeh}(h]h ]h"]h$]h&]uh1jL hjŚubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubh)}(h**Description**h]j7 )}(hjܜh]h Description}(hjޜhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjڜubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMxhjWQhhubh)}(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:522: ./include/drm/drm_gpuvm.hhMUhjWQhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_op_unmap (C struct)c.drm_gpuva_op_unmaphNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_op_unmaph]j)}(hstruct drm_gpuva_op_unmaph](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM[ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj'hM[ubj)}(hdrm_gpuva_op_unmaph]j)}(hjh]hdrm_gpuva_op_unmap}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj'hM[ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj'hM[ubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj'hM[hjhhubj )}(hhh]h)}(hGPU VA unmap operationh]hGPU VA unmap operation}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM{hjYhhubah}(h]h ]h"]h$]h&]uh1j hjhhhj'hM[ubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jtj( jtj) j* j+ uh1jhhhjWQhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj|ubh:}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjxubj )}(hGstruct drm_gpuva_op_unmap { struct drm_gpuva *va; bool keep; };h]hGstruct drm_gpuva_op_unmap { struct drm_gpuva *va; bool keep; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjxubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjxubjM )}(hhh](jR )}(h(``va`` the :c:type:`drm_gpuva` to unmap h](jX )}(h``va``h]j^ )}(hjɝh]hva}(hj˝hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjǝubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjÝubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjޝhMhjubh to unmap}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjޝhMhjߝubah}(h]h ]h"]h$]h&]uh1js hjÝubeh}(h]h ]h"]h$]h&]uh1jQ hjޝhMhjubjR )}(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](jX )}(h``keep``h]j^ )}(hj%h]hkeep}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh](h)}(hfIndicates whether this :c:type:`drm_gpuva` is physically contiguous with the original mapping request.h](hIndicates whether this }(hj>hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjHh]h drm_gpuva}(hjJhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj>ubh< is physically contiguous with the original mapping request.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjehMhj;ubh)}(hOptionally, if :c:type:`keep` is set, drivers may keep the actual page table mappings for this :c:type:`drm_gpuva`, adding the missing page table entries only and update the :c:type:`drm_gpuvm` accordingly.h](hOptionally, if }(hjphhhNhNubh)}(h:c:type:`keep`h]j^ )}(hjzh]hkeep}(hj|hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjxubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j keepuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjpubhB is set, drivers may keep the actual page table mappings for this }(hjphhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjhMhjpubh<, adding the missing page table entries only and update the }(hjphhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjÞhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhMhjpubh accordingly.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj;ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj:hMhjubeh}(h]h ]h"]h$]h&]uh1jL hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubh)}(hWThis structure represents a single unmap operation generated by the DRM GPU VA manager.h]hWThis structure represents a single unmap operation generated by the DRM GPU VA manager.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM|hjWQhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_op_remap (C struct)c.drm_gpuva_op_remaphNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_op_remaph]j)}(hstruct drm_gpuva_op_remaph](j)}(hj? h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhjNhMubj)}(hdrm_gpuva_op_remaph]j)}(hj;h]hdrm_gpuva_op_remap}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj=hhhjNhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjNhMubah}(h]j4ah ](jjeh"]h$]h&]j j )j huh1jhjNhMhj6hhubj )}(hhh]h)}(hGPU VA remap operationh]hGPU VA remap operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j hj6hhhjNhMubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubj )}(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; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh)}(h **Members**h]j7 )}(hjџh]hMembers}(hjӟhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjϟubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjM )}(hhh](jR )}(h/``prev`` the preceding part of a split mapping h](jX )}(h``prev``h]j^ )}(hjh]hprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h0``next`` the subsequent part of a split mapping h](jX )}(h``next``h]j^ )}(hj)h]hnext}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj'ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj#ubjt )}(hhh]h)}(h&the subsequent part of a split mappingh]h&the subsequent part of a split mapping}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1js hj#ubeh}(h]h ]h"]h$]h&]uh1jQ hj>hMhjubjR )}(h?``unmap`` the unmap operation for the original existing mappingh](jX )}(h ``unmap``h]j^ )}(hjbh]hunmap}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj`ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj\ubjt )}(hhh]h)}(h5the unmap operation for the original existing mappingh]h5the unmap operation for the original existing mapping}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjxubah}(h]h ]h"]h$]h&]uh1js hj\ubeh}(h]h ]h"]h$]h&]uh1jQ hjwhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubh)}(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.}(hjʠhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubh)}(hThe **unmap** operation takes care of removing the original existing mapping. **prev** is used to remap the preceding part, **next** the subsequent part.h](hThe }(hj٠hhhNhNubj7 )}(h **unmap**h]hunmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj٠ubhA operation takes care of removing the original existing mapping. }(hj٠hhhNhNubj7 )}(h**prev**h]hprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj٠ubh& is used to remap the preceding part, }(hj٠hhhNhNubj7 )}(h**next**h]hnext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj٠ubh the subsequent part.}(hj٠hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubh)}(hX_If 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. This will also be the case when the requested mapping begins before the old mapping's start address or stretches beyond its end address.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 }(hjhhhNhNubj7 )}(h**prev**h]hprev}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh or }(hjhhhNhNubj7 )}(h**next**h]hnext}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh is NULL. This will also be the case when the requested mapping begins before the old mapping’s start address or stretches beyond its end address.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubh)}(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 }(hjQhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj[h]h drm_gpuva}(hj]hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjYubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjQubhL structure which typically is embedded in larger driver specific structures.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxhMhjWQhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gpuva_op_prefetch (C struct)c.drm_gpuva_op_prefetchhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_op_prefetchh]j)}(hstruct drm_gpuva_op_prefetchh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gpuva_op_prefetchh]j)}(hjh]hdrm_gpuva_op_prefetch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(hGPU VA prefetch operationh]hGPU VA prefetch operation}(hjޡhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjۡhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(h**Definition**:: struct drm_gpuva_op_prefetch { struct drm_gpuva *va; }; **Members** ``va`` the :c:type:`drm_gpuva` to prefetchh](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubj )}(h;struct drm_gpuva_op_prefetch { struct drm_gpuva *va; };h]h;struct drm_gpuva_op_prefetch { struct drm_gpuva *va; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh)}(h **Members**h]j7 )}(hj,h]hMembers}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj*ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjM )}(hhh]jR )}(h*``va`` the :c:type:`drm_gpuva` to prefetchh](jX )}(h``va``h]j^ )}(hjKh]hva}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjEubjt )}(hhh]h)}(h#the :c:type:`drm_gpuva` to prefetchh](hthe }(hjdhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjnh]h drm_gpuva}(hjphhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjdubh to prefetch}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjaubah}(h]h ]h"]h$]h&]uh1js hjEubeh}(h]h ]h"]h$]h&]uh1jQ hj`hMhjBubah}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubh)}(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.}(hjǢhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_op (C struct)c.drm_gpuva_ophNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h drm_gpuva_oph]j)}(hstruct drm_gpuva_oph](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h drm_gpuva_oph]j)}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(hGPU VA operationh]hGPU VA operation}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj.hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jIj( jIj) j* j+ uh1jhhhjWQhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjQubh:}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjMubj )}(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; }; };}hjnsbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjMubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj}ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjMubjM )}(hhh](jR )}(hn``entry`` The :c:type:`list_head` used to distribute instances of this struct within :c:type:`drm_gpuva_ops`. h](jX )}(h ``entry``h]j^ )}(hjh]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh]h)}(hcThe :c:type:`list_head` used to distribute instances of this struct within :c:type:`drm_gpuva_ops`.h](hThe }(hjhhhNhNubh)}(h:c:type:`list_head`h]j^ )}(hjh]h list_head}(hjãhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh4 used to distribute instances of this struct within }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhjޣhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjޣhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h!``op`` the type of the operation h](jX )}(h``op``h]j^ )}(hjh]hop}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh]h)}(hthe type of the operationh]hthe type of the operation}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj3hMhjubjR )}(h``{unnamed_union}`` anonymous h](jX )}(h``{unnamed_union}``h]j^ )}(hjWh]h{unnamed_union}}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjUubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhKhjQubjt )}(hhh]h)}(h anonymoush]h anonymous}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKhjmubah}(h]h ]h"]h$]h&]uh1js hjQubeh}(h]h ]h"]h$]h&]uh1jQ hjlhKhjubjR )}(h``map`` the map operation h](jX )}(h``map``h]j^ )}(hjh]hmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh]h)}(hthe map operationh]hthe map operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h``remap`` the remap operation h](jX )}(h ``remap``h]j^ )}(hjɤh]hremap}(hjˤhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjǤubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjäubjt )}(hhh]h)}(hthe remap operationh]hthe remap operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjޤhMhjߤubah}(h]h ]h"]h$]h&]uh1js hjäubeh}(h]h ]h"]h$]h&]uh1jQ hjޤhMhjubjR )}(h``unmap`` the unmap operation h](jX )}(h ``unmap``h]j^ )}(hjh]hunmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh]h)}(hthe unmap operationh]hthe unmap operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h#``prefetch`` the prefetch operationh](jX )}(h ``prefetch``h]j^ )}(hj;h]hprefetch}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj9ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj5ubjt )}(hhh]h)}(hthe prefetch operationh]hthe prefetch operation}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjQubah}(h]h ]h"]h$]h&]uh1js hj5ubeh}(h]h ]h"]h$]h&]uh1jQ hjPhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjMubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubh)}(h**Description**h]j7 )}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj|ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubh)}(h5This structure represents a single generic operation.h]h5This structure represents a single generic operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubh)}(h:The particular type of the operation is defined by **op**.h](h3The particular type of the operation is defined by }(hjhhhNhNubj7 )}(h**op**h]hop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_ops (C struct)c.drm_gpuva_opshNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h drm_gpuva_opsh]j)}(hstruct drm_gpuva_opsh](j)}(hj? h]hstruct}(hjݥhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj٥hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj٥hhhjhMubj)}(h drm_gpuva_opsh]j)}(hjץh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj٥hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjեhhhjhMubah}(h]jХah ](jjeh"]h$]h&]j j )j huh1jhjhMhjҥhhubj )}(hhh]h)}(h&wraps a list of :c:type:`drm_gpuva_op`h](hwraps a list of }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hj)h]h drm_gpuva_op}(hj+hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj'ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j)}j}jץsbc.drm_gpuva_opsasbj drm_gpuva_opuh1hhjZhKhjubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j hjҥhhhjhMubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j]j( j]j) j* j+ uh1jhhhjWQhNhNubj- )}(h}**Definition**:: struct drm_gpuva_ops { struct list_head list; }; **Members** ``list`` the :c:type:`list_head`h](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjeubh:}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjaubj )}(h4struct drm_gpuva_ops { struct list_head list; };h]h4struct drm_gpuva_ops { struct list_head list; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjaubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjaubjM )}(hhh]jR )}(h ``list`` the :c:type:`list_head`h](jX )}(h``list``h]j^ )}(hjh]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh]h)}(hthe :c:type:`list_head`h](hthe }(hj˦hhhNhNubh)}(h:c:type:`list_head`h]j^ )}(hjզh]h list_head}(hjצhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjӦubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j list_headuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj˦ubeh}(h]h ]h"]h$]h&]uh1hhjhMhjȦubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjǦhMhjubah}(h]h ]h"]h$]h&]uh1jL hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_for_each_op (C macro)c.drm_gpuva_for_each_ophNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_for_each_oph]j)}(hdrm_gpuva_for_each_oph]j)}(hdrm_gpuva_for_each_oph]j)}(hj%h]hdrm_gpuva_for_each_op}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj'hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhjBhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjBhMhj hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj hhhjBhMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' j[j( j[j) j* j+ uh1jhhhjWQhNhNubh)}(h#``drm_gpuva_for_each_op (op, ops)``h]j^ )}(hjah]hdrm_gpuva_for_each_op (op, ops)}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj_ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubj )}(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 }(hj{hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj{ubeh}(h]h ]h"]h$]h&]uh1hhjhMhjwubah}(h]h ]h"]h$]h&]uh1jhjhMhjWQhhubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjM )}(hhh](jR )}(h?``op`` :c:type:`drm_gpuva_op` to assign in each iteration step h](jX )}(h``op``h]j^ )}(hjԧh]hop}(hj֧hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjҧubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjΧubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhjhMhjubh! to assign in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjΧubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj˧ubjR )}(h(``ops`` :c:type:`drm_gpuva_ops` to walk h](jX )}(h``ops``h]j^ )}(hj,h]hops}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj*ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj&ubjt )}(hhh]h)}(h:c:type:`drm_gpuva_ops` to walkh](h)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjKh]h drm_gpuva_ops}(hjMhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhjAhMhjEubh to walk}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1js hj&ubeh}(h]h ]h"]h$]h&]uh1jQ hjAhMhj˧ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_gpuva_for_each_op_safe (C macro)c.drm_gpuva_for_each_op_safehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_for_each_op_safeh]j)}(hdrm_gpuva_for_each_op_safeh]j)}(hdrm_gpuva_for_each_op_safeh]j)}(hjŨh]hdrm_gpuva_for_each_op_safe}(hjϨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˨ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjǨhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjèhhhjhM ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM hjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjhM ubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubh)}(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&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM hjWQhhubj )}(h5iterator to safely walk over :c:type:`drm_gpuva_ops` h]h)}(h4iterator to safely walk over :c:type:`drm_gpuva_ops`h](hiterator to safely walk over }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hj%h]h drm_gpuva_ops}(hj'hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM hjubeh}(h]h ]h"]h$]h&]uh1hhjBhM hjubah}(h]h ]h"]h$]h&]uh1jhjBhM hjWQhhubj- )}(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]j7 )}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjSubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjOubjM )}(hhh](jR )}(h?``op`` :c:type:`drm_gpuva_op` to assign in each iteration step h](jX )}(h``op``h]j^ )}(hjth]hop}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjrubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM hjnubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhjhM hjubh! to assign in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1js hjnubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hjkubjR )}(hF``next`` :c:type:`next` :c:type:`drm_gpuva_op` to store the next step h](jX )}(h``next``h]j^ )}(hj̩h]hnext}(hjΩhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjʩubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM hjƩubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j nextuh1hhjhM hjubh }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhjhM hjubh to store the next step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1js hjƩubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hjkubjR )}(h(``ops`` :c:type:`drm_gpuva_ops` to walk h](jX )}(h``ops``h]j^ )}(hjGh]hops}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjEubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM hjAubjt )}(hhh]h)}(h:c:type:`drm_gpuva_ops` to walkh](h)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjfh]h drm_gpuva_ops}(hjhhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjdubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhj\hM hj`ubh to walk}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\hM hj]ubah}(h]h ]h"]h$]h&]uh1js hjAubeh}(h]h ]h"]h$]h&]uh1jQ hj\hM hjkubeh}(h]h ]h"]h$]h&]uh1jL hjOubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjOubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(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_reversehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h"drm_gpuva_for_each_op_from_reverseh]j)}(h"drm_gpuva_for_each_op_from_reverseh]j)}(h"drm_gpuva_for_each_op_from_reverseh]j)}(hjh]h"drm_gpuva_for_each_op_from_reverse}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjުhhhjhMubah}(h]j٪ah ](jjeh"]h$]h&]j j )j huh1jhjhMhj۪hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj۪hhhjhMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubh)}(h0``drm_gpuva_for_each_op_from_reverse (op, ops)``h]j^ )}(hjh]h,drm_gpuva_for_each_op_from_reverse (op, ops)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubj )}(h'iterate backwards from the given point h]h)}(h&iterate backwards from the given pointh]h&iterate backwards from the given point}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj2ubah}(h]h ]h"]h$]h&]uh1jhjDhMhjWQhhubj- )}(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]j7 )}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjOubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjKubjM )}(hhh](jR )}(h?``op`` :c:type:`drm_gpuva_op` to assign in each iteration step h](jX )}(h``op``h]j^ )}(hjph]hop}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjnubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhjhMhjubh! to assign in each iteration step}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjgubjR )}(h(``ops`` :c:type:`drm_gpuva_ops` to walk h](jX )}(h``ops``h]j^ )}(hjȫh]hops}(hjʫhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjƫubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj«ubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhjݫhMhjubh to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjݫhMhjޫubah}(h]h ]h"]h$]h&]uh1js hj«ubeh}(h]h ]h"]h$]h&]uh1jQ hjݫhMhjgubeh}(h]h ]h"]h$]h&]uh1jL hjKubh)}(h**Description**h]j7 )}(hj"h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjKubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'drm_gpuva_for_each_op_reverse (C macro)c.drm_gpuva_for_each_op_reversehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_for_each_op_reverseh]j)}(hdrm_gpuva_for_each_op_reverseh]j)}(hdrm_gpuva_for_each_op_reverseh]j)}(hjah]hdrm_gpuva_for_each_op_reverse}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jhjchhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM!ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhj~hM!ubah}(h]jZah ](jjeh"]h$]h&]j j )j huh1jhj~hM!hj\hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj\hhhj~hM!ubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubh)}(h+``drm_gpuva_for_each_op_reverse (op, ops)``h]j^ )}(hjh]h'drm_gpuva_for_each_op_reverse (op, ops)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM#hjWQhhubj )}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjh]h drm_gpuva_ops}(hjìhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM!hjubh in reverse}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjެhM!hjubah}(h]h ]h"]h$]h&]uh1jhjެhM!hjWQhhubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM%hjubjM )}(hhh](jR )}(h?``op`` :c:type:`drm_gpuva_op` to assign in each iteration step h](jX )}(h``op``h]j^ )}(hjh]hop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM"hjubjt )}(hhh]h)}(h7:c:type:`drm_gpuva_op` to assign in each iteration steph](h)}(h:c:type:`drm_gpuva_op`h]j^ )}(hj3h]h drm_gpuva_op}(hj5hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj1ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhj)hM"hj-ubh! to assign in each iteration step}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj)hM"hj*ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj)hM"hj ubjR )}(h(``ops`` :c:type:`drm_gpuva_ops` to walk h](jX )}(h``ops``h]j^ )}(hjlh]hops}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM#hjfubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhjhM#hjubh to walk}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1js hjfubeh}(h]h ]h"]h$]h&]uh1jQ hjhM#hj ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjƭh]h Description}(hjȭhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjĭubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM%hjubh)}(hMThis iterator walks over all ops within a given list of operations in reverseh]hMThis iterator walks over all ops within a given list of operations in reverse}(hjܭhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_first_op (C macro)c.drm_gpuva_first_ophNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_first_oph]j)}(hdrm_gpuva_first_oph]j)}(hdrm_gpuva_first_oph]j)}(hjh]hdrm_gpuva_first_op}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM+ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj"hM+ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj"hM+hjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhj"hM+ubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' j;j( j;j) j* j+ uh1jhhhjWQhNhNubh)}(h``drm_gpuva_first_op (ops)``h]j^ )}(hjAh]hdrm_gpuva_first_op (ops)}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj?ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM-hjWQhhubj )}(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 }(hj[hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hjeh]h drm_gpuva_op}(hjghhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjcubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM+hj[ubh from }(hj[hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhjhM+hj[ubeh}(h]h ]h"]h$]h&]uh1hhjhM+hjWubah}(h]h ]h"]h$]h&]uh1jhjhM+hjWQhhubj- )}(ha**Parameters** ``ops`` the :c:type:`drm_gpuva_ops` to get the fist :c:type:`drm_gpuva_op` fromh](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM/hjubjM )}(hhh]jR )}(hO``ops`` the :c:type:`drm_gpuva_ops` to get the fist :c:type:`drm_gpuva_op` fromh](jX )}(h``ops``h]j^ )}(hj׮h]hops}(hjٮhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjծubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM1hjѮubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM,hjubh to get the fist }(hjhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hjh]h drm_gpuva_op}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhjhM,hjubh from}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM,hjubah}(h]h ]h"]h$]h&]uh1js hjѮubeh}(h]h ]h"]h$]h&]uh1jQ hjhM1hjήubah}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_last_op (C macro)c.drm_gpuva_last_ophNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_last_oph]j)}(hdrm_gpuva_last_oph]j)}(hdrm_gpuva_last_oph]j)}(hjqh]hdrm_gpuva_last_op}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jhjshhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM2ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhM2ubah}(h]jjah ](jjeh"]h$]h&]j j )j huh1jhjhM2hjlhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjlhhhjhM2ubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubh)}(h``drm_gpuva_last_op (ops)``h]j^ )}(hjh]hdrm_gpuva_last_op (ops)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM4hjWQhhubj )}(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 }(hjǯhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hjѯh]h drm_gpuva_op}(hjӯhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjϯubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM2hjǯubh from }(hjǯhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjh]h drm_gpuva_ops}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhjhM2hjǯubeh}(h]h ]h"]h$]h&]uh1hhjhM2hjïubah}(h]h ]h"]h$]h&]uh1jhjhM2hjWQhhubj- )}(ha**Parameters** ``ops`` the :c:type:`drm_gpuva_ops` to get the last :c:type:`drm_gpuva_op` fromh](h)}(h**Parameters**h]j7 )}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj"ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM6hjubjM )}(hhh]jR )}(hO``ops`` the :c:type:`drm_gpuva_ops` to get the last :c:type:`drm_gpuva_op` fromh](jX )}(h``ops``h]j^ )}(hjCh]hops}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjAubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM8hj=ubjt )}(hhh]h)}(hGthe :c:type:`drm_gpuva_ops` to get the last :c:type:`drm_gpuva_op` fromh](hthe }(hj\hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjfh]h drm_gpuva_ops}(hjhhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjdubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM3hj\ubh to get the last }(hj\hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hjh]h drm_gpuva_op}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhjhM3hj\ubh from}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM3hjYubah}(h]h ]h"]h$]h&]uh1js hj=ubeh}(h]h ]h"]h$]h&]uh1jQ hjXhM8hj:ubah}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_prev_op (C macro)c.drm_gpuva_prev_ophNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_prev_oph]j)}(hdrm_gpuva_prev_oph]j)}(hdrm_gpuva_prev_oph]j)}(hjݰh]hdrm_gpuva_prev_op}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj߰hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM9ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj۰hhhjhM9ubah}(h]jְah ](jjeh"]h$]h&]j j )j huh1jhjhM9hjذhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjذhhhjhM9ubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubh)}(h``drm_gpuva_prev_op (op)``h]j^ )}(hjh]hdrm_gpuva_prev_op (op)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM;hjWQhhubj )}(h,previous :c:type:`drm_gpuva_op` in the list h]h)}(h+previous :c:type:`drm_gpuva_op` in the listh](h previous }(hj3hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hj=h]h drm_gpuva_op}(hj?hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj;ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM9hj3ubh in the list}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhM9hj/ubah}(h]h ]h"]h$]h&]uh1jhjZhM9hjWQhhubj- )}(h;**Parameters** ``op`` the current :c:type:`drm_gpuva_op`h](h)}(h**Parameters**h]j7 )}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjoubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM=hjkubjM )}(hhh]jR )}(h)``op`` the current :c:type:`drm_gpuva_op`h](jX )}(h``op``h]j^ )}(hjh]hop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM?hjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM:hjubeh}(h]h ]h"]h$]h&]uh1hhjбhM:hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM?hjubah}(h]h ]h"]h$]h&]uh1jL hjkubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_next_op (C macro)c.drm_gpuva_next_ophNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuva_next_oph]j)}(hdrm_gpuva_next_oph]j)}(hdrm_gpuva_next_oph]j)}(hjh]hdrm_gpuva_next_op}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM?ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hM?ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj hM?hjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhj hM?ubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' j9j( j9j) j* j+ uh1jhhhjWQhNhNubh)}(h``drm_gpuva_next_op (op)``h]j^ )}(hj?h]hdrm_gpuva_next_op (op)}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj=ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMAhjWQhhubj )}(h(next :c:type:`drm_gpuva_op` in the list h]h)}(h'next :c:type:`drm_gpuva_op` in the listh](hnext }(hjYhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hjch]h drm_gpuva_op}(hjehhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM?hjYubh in the list}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM?hjUubah}(h]h ]h"]h$]h&]uh1jhjhM?hjWQhhubj- )}(h;**Parameters** ``op`` the current :c:type:`drm_gpuva_op`h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMChjubjM )}(hhh]jR )}(h)``op`` the current :c:type:`drm_gpuva_op`h](jX )}(h``op``h]j^ )}(hjh]hop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMEhjubjt )}(hhh]h)}(h"the current :c:type:`drm_gpuva_op`h](h the current }(hjϲhhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hjٲh]h drm_gpuva_op}(hj۲hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjײubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM@hjϲubeh}(h]h ]h"]h$]h&]uh1hhjhM@hj̲ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj˲hMEhjubah}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_map_req (C struct)c.drm_gpuvm_map_reqhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hdrm_gpuvm_map_reqh]j)}(hstruct drm_gpuvm_map_reqh](j)}(hj? h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMEubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj<hMEubj)}(hdrm_gpuvm_map_reqh]j)}(hj)h]hdrm_gpuvm_map_req}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jhj+hhhj<hMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhj<hMEubah}(h]j"ah ](jjeh"]h$]h&]j j )j huh1jhj<hMEhj$hhubj )}(hhh]h)}(h3arguments passed to drm_gpuvm_sm_map[_ops_create]()h]h3arguments passed to drm_gpuvm_sm_map[_ops_create]()}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMEhjnhhubah}(h]h ]h"]h$]h&]uh1j hj$hhhj<hMEubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(h**Definition**:: struct drm_gpuvm_map_req { struct drm_gpuva_op_map map; }; **Members** ``map`` struct drm_gpuva_op_maph](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMIhjubj )}(h>struct drm_gpuvm_map_req { struct drm_gpuva_op_map map; };h]h>struct drm_gpuvm_map_req { struct drm_gpuva_op_map map; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMKhjubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMOhjubjM )}(hhh]jR )}(h``map`` struct drm_gpuva_op_maph](jX )}(h``map``h]j^ )}(hj޳h]hmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjܳubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMIhjسubjt )}(hhh]h)}(hstruct drm_gpuva_op_maph]hstruct drm_gpuva_op_map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMJhjubah}(h]h ]h"]h$]h&]uh1js hjسubeh}(h]h ]h"]h$]h&]uh1jQ hjhMIhjճubah}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_ops (C struct)c.drm_gpuvm_opshNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h drm_gpuvm_opsh]j)}(hstruct drm_gpuvm_opsh](j)}(hj? h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMPubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjEhMPubj)}(h drm_gpuvm_opsh]j)}(hj2h]h drm_gpuvm_ops}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jhj4hhhjEhMPubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjEhMPubah}(h]j+ah ](jjeh"]h$]h&]j j )j huh1jhjEhMPhj-hhubj )}(hhh]h)}(hcallbacks for split/merge stepsh]hcallbacks for split/merge steps}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMmhjwhhubah}(h]h ]h"]h$]h&]uh1j hj-hhhjEhMPubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(hX9**Definition**:: struct drm_gpuvm_ops { void (*vm_free)(struct drm_gpuvm *gpuvm); struct drm_gpuva_op *(*op_alloc)(void); void (*op_free)(struct drm_gpuva_op *op); struct drm_gpuvm_bo *(*vm_bo_alloc)(void); void (*vm_bo_free)(struct drm_gpuvm_bo *vm_bo); int (*vm_bo_validate)(struct drm_gpuvm_bo *vm_bo, struct drm_exec *exec); int (*sm_step_map)(struct drm_gpuva_op *op, void *priv); int (*sm_step_remap)(struct drm_gpuva_op *op, void *priv); int (*sm_step_unmap)(struct drm_gpuva_op *op, void *priv); }; **Members** ``vm_free`` called when the last reference of a struct drm_gpuvm is dropped This callback is mandatory. ``op_alloc`` called when the :c:type:`drm_gpuvm` allocates a struct drm_gpuva_op Some drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can allocate memory accordingly. This callback is optional. ``op_free`` called when the :c:type:`drm_gpuvm` frees a struct drm_gpuva_op Some drivers may want to embed struct drm_gpuva_op into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly. This callback is optional. ``vm_bo_alloc`` called when the :c:type:`drm_gpuvm` allocates a struct drm_gpuvm_bo Some drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can allocate memory accordingly. This callback is optional. ``vm_bo_free`` called when the :c:type:`drm_gpuvm` frees a struct drm_gpuvm_bo Some drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can free the previously allocated memory accordingly. This callback is optional. ``vm_bo_validate`` called from drm_gpuvm_validate() Drivers receive this callback for every evicted :c:type:`drm_gem_object` being mapped in the corresponding :c:type:`drm_gpuvm`. Typically, drivers would call their driver specific variant of ttm_bo_validate() from within this callback. ``sm_step_map`` called from :c:type:`drm_gpuvm_sm_map` to finally insert the mapping once all previous steps were completed The :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively. Can be NULL if :c:type:`drm_gpuvm_sm_map` is used. ``sm_step_remap`` called from :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to split up an existent mapping This callback is called when existent mapping needs to be split up. This is the case when either a newly requested mapping overlaps or is enclosed by an existent mapping or a partial unmap of an existent mapping is requested. The :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively. Can be NULL if neither :c:type:`drm_gpuvm_sm_map` nor :c:type:`drm_gpuvm_sm_unmap` is used. ``sm_step_unmap`` called from :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to unmap an existing mapping This callback is called when existing mapping needs to be unmapped. This is the case when either a newly requested mapping encloses an existing mapping or an unmap of an existing mapping is requested. The :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively. Can be NULL if neither :c:type:`drm_gpuvm_sm_map` nor :c:type:`drm_gpuvm_sm_unmap` is used.h](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMqhjubj )}(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); };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMshjubh)}(h **Members**h]j7 )}(hjȴh]hMembers}(hjʴhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjƴubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjM )}(hhh](jR )}(hi``vm_free`` called when the last reference of a struct drm_gpuvm is dropped This callback is mandatory. h](jX )}(h ``vm_free``h]j^ )}(hjh]hvm_free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMyhjubjt )}(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:522: ./include/drm/drm_gpuvm.hhMvhjubh)}(hThis callback is mandatory.h]hThis callback is mandatory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMyhjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMyhj޴ubjR )}(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](jX )}(h ``op_alloc``h]j^ )}(hj/h]hop_alloc}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj-ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj)ubjt )}(hhh](h)}(hCcalled when the :c:type:`drm_gpuvm` allocates a struct drm_gpuva_oph](hcalled when the }(hjHhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjRh]h drm_gpuvm}(hjThhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjPubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhM~hjHubh allocates a struct drm_gpuva_op}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjohM~hjEubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjEubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubeh}(h]h ]h"]h$]h&]uh1js hj)ubeh}(h]h ]h"]h$]h&]uh1jQ hjDhMhj޴ubjR )}(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](jX )}(h ``op_free``h]j^ )}(hjh]hop_free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh](h)}(h?called when the :c:type:`drm_gpuvm` frees a struct drm_gpuva_oph](hcalled when the }(hjµhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj̵h]h drm_gpuvm}(hjεhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjʵubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjµubh frees a struct drm_gpuva_op}(hjµhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(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:522: ./include/drm/drm_gpuvm.hhMhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj޴ubjR )}(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](jX )}(h``vm_bo_alloc``h]j^ )}(hj#h]h vm_bo_alloc}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj!ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh](h)}(hCcalled when the :c:type:`drm_gpuvm` allocates a struct drm_gpuvm_boh](hcalled when the }(hj<hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjFh]h drm_gpuvm}(hjHhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjDubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj<ubh allocates a struct drm_gpuvm_bo}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchMhj9ubh)}(hSome drivers may want to embed struct drm_gpuvm_bo into driver specific structures. By implementing this callback drivers can 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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj9ubh)}(hThis callback is optional.h]hThis callback is optional.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj8hMhj޴ubjR )}(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](jX )}(h``vm_bo_free``h]j^ )}(hjh]h vm_bo_free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh](h)}(h?called when the :c:type:`drm_gpuvm` frees a struct drm_gpuvm_boh](hcalled when the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hj¶hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh frees a struct drm_gpuvm_bo}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjݶhMhjubh)}(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:522: ./include/drm/drm_gpuvm.hhMhjubh)}(hThis callback is optional.h]hThis callback is optional.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj޴ubjR )}(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](jX )}(h``vm_bo_validate``h]j^ )}(hjh]hvm_bo_validate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh](h)}(h called from drm_gpuvm_validate()h]h called from drm_gpuvm_validate()}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./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 }(hj?hhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjIh]hdrm_gem_object}(hjKhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj?ubh# being mapped in the corresponding }(hj?hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjmh]h drm_gpuvm}(hjohhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjkubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjfhMhj?ubh.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjfhMhj-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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj-ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj,hMhj޴ubjR )}(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](jX )}(h``sm_step_map``h]j^ )}(hjh]h sm_step_map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(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^ )}(hjطh]hdrm_gpuvm_sm_map}(hjڷhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjַubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./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^ )}(hj h]hpriv}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j privuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./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}(hj0hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj,ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_mapuh1hhj'hMhjubh or }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j^ )}(hjQh]hdrm_gpuvm_sm_unmap}(hjShhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjOubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_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 }(hjxhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j^ )}(hjh]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_mapuh1hhjʷhMhjxubh is used.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjʷhMhj˷ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjʷhMhj޴ubjR )}(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](jX )}(h``sm_step_remap``h]j^ )}(hjh]h sm_step_remap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(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 }(hjԸhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j^ )}(hj޸h]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjܸubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjԸubh and }(hjԸhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j^ )}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_unmapuh1hhjhMhjԸubh to split up an existent mapping}(hjԸhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjѸubh)}(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:522: ./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 }(hj8hhhNhNubh)}(h:c:type:`priv`h]j^ )}(hjBh]hpriv}(hjDhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j privuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj8ubh. pointer matches the one the driver passed to }(hj8hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j^ )}(hjfh]hdrm_gpuvm_sm_map}(hjhhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjdubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_mapuh1hhj_hMhj8ubh or }(hj8hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j^ )}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_unmapuh1hhj_hMhj8ubh, respectively.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_hMhjѸubh)}(h[Can be NULL if neither :c:type:`drm_gpuvm_sm_map` nor :c:type:`drm_gpuvm_sm_unmap` is used.h](hCan be NULL if neither }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j^ )}(hjh]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh nor }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j^ )}(hj޹h]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjܹubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_unmapuh1hhj׹hMhjubh is used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj׹hMhjѸubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjиhMhj޴ubjR )}(hX(``sm_step_unmap`` called from :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to unmap an existing mapping This callback is called when existing mapping needs to be unmapped. This is the case when either a newly requested mapping encloses an existing mapping or an unmap of an existing mapping is requested. The :c:type:`priv` pointer matches the one the driver passed to :c:type:`drm_gpuvm_sm_map` or :c:type:`drm_gpuvm_sm_unmap`, respectively. Can be NULL if neither :c:type:`drm_gpuvm_sm_map` nor :c:type:`drm_gpuvm_sm_unmap` is used.h](jX )}(h``sm_step_unmap``h]j^ )}(hjh]h sm_step_unmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh](h)}(hdcalled from :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to unmap an existing mappingh](h called from }(hj0hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j^ )}(hj:h]hdrm_gpuvm_sm_map}(hj<hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj8ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj0ubh and }(hj0hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j^ )}(hj^h]hdrm_gpuvm_sm_unmap}(hj`hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj\ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_unmapuh1hhjWhMhj0ubh to unmap an existing mapping}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWhMhj-ubh)}(hThis callback is called when existing mapping needs to be unmapped. This is the case when either a newly requested mapping encloses an existing mapping or an unmap of an existing mapping is requested.h]hThis callback is called when existing mapping needs to be unmapped. This is the case when either a newly requested mapping encloses an existing mapping or an unmap of an existing mapping is requested.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./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 }(hjhhhNhNubh)}(h:c:type:`priv`h]j^ )}(hjh]hpriv}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j privuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh. pointer matches the one the driver passed to }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j^ )}(hjºh]hdrm_gpuvm_sm_map}(hjĺhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_mapuh1hhjhMhjubh or }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j^ )}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_unmapuh1hhjhMhjubh, respectively.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj-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 }(hj hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j^ )}(hjh]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_mapuh1hhj,hMhj ubh nor }(hj hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j^ )}(hj9h]hdrm_gpuvm_sm_unmap}(hj;hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj7ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_unmapuh1hhj,hMhj ubh is used.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj,hMhj޴ubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubh)}(h**Description**h]j7 )}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjyubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjWQhhubh)}(hThis structure defines the callbacks used by :c:type:`drm_gpuvm_sm_map` and :c:type:`drm_gpuvm_sm_unmap` to provide the split/merge steps for map and unmap operations to drivers.h](h-This structure defines the callbacks used by }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j^ )}(hjh]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_mapuh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMnhjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j^ )}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_unmapuh1hhjhMnhjubhJ to provide the split/merge steps for map and unmap operations to drivers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMnhjWQhhubj)}(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_rangehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubj)}(h!drm_gpuva_op_remap_to_unmap_rangeh]j)}(h!drm_gpuva_op_remap_to_unmap_rangeh]h!drm_gpuva_op_remap_to_unmap_range}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj hMubj>)}(hB(const struct drm_gpuva_op_remap *op, u64 *start_addr, u64 *range)h](jD)}(h#const struct drm_gpuva_op_remap *oph](j)}(hjJh]hconst}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hj? h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]j)}(hdrm_gpuva_op_remaph]hdrm_gpuva_op_remap}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjwmodnameN classnameNjj)}j]j)}j}j"sb#c.drm_gpuva_op_remap_to_unmap_rangeasbuh1hhj8ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hoph]hop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj4ubjD)}(hu64 *start_addrh](h)}(hhh]j)}(hu64h]hu64}(hj̼hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɼubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjμmodnameN classnameNjj)}j]j#c.drm_gpuva_op_remap_to_unmap_rangeasbuh1hhjżubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjżubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjżubj)}(h start_addrh]h start_addr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjżubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj4ubjD)}(h u64 *rangeh](h)}(hhh]j)}(hu64h]hu64}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj#modnameN classnameNjj)}j]j#c.drm_gpuva_op_remap_to_unmap_rangeasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrangeh]hrange}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj4ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj hMhjhhubj )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhj hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjM )}(hhh](jR )}(h2``const struct drm_gpuva_op_remap *op`` Remap op. h](jX )}(h'``const struct drm_gpuva_op_remap *op``h]j^ )}(hjŽh]h#const struct drm_gpuva_op_remap *op}(hjǽhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjýubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh]h)}(h Remap op.h]h Remap op.}(hj޽hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڽhMhj۽ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjڽhMhjubjR )}(hH``u64 *start_addr`` Output pointer for the start of the required unmap. h](jX )}(h``u64 *start_addr``h]j^ )}(hjh]hu64 *start_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubjt )}(hhh]h)}(h3Output pointer for the start of the required unmap.h]h3Output pointer for the start of the required unmap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hD``u64 *range`` Output pointer for the length of the required unmap. h](jX )}(h``u64 *range``h]j^ )}(hj7h]h u64 *range}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]uh1jW hS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhj1ubjt )}(hhh]h)}(h4Output pointer for the length of the required unmap.h]h4Output pointer for the length of the required unmap.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1js hj1ubeh}(h]h ]h"]h$]h&]uh1jQ hjLhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjpubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubh)}(hThe given start address and range will be set such that they represent the range of the address space that was previously covered by the mapping being re-mapped, but is now empty.h]hThe given start address and range will be set such that they represent the range of the address space that was previously covered by the mapping being re-mapped, but is now empty.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:522: ./include/drm/drm_gpuvm.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_gpuvm_range_valid (C function)c.drm_gpuvm_range_validhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjžhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjľhMubj)}(hdrm_gpuvm_range_validh]j)}(hdrm_gpuvm_range_validh]hdrm_gpuvm_range_valid}(hj׾hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӾubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjľhMubj>)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jپsbc.drm_gpuvm_range_validasbuh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjjmodnameN classnameNjj)}j]j-c.drm_gpuvm_range_validasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j-c.drm_gpuvm_range_validasbuh1hhjubj)}(h h]h }(hjοhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrangeh]hrange}(hjܿhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjľhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjľhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjľhMhjhhubj )}(hhh]h)}(hIchecks whether the given range is valid for the given :c:type:`drm_gpuvm`h](h6checks whether the given range is valid for the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j-c.drm_gpuvm_range_validasbj drm_gpuvmuh1hhjľhMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjľhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jBj( jBj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjJubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjFubjM )}(hhh](jR )}(h=``struct drm_gpuvm *gpuvm`` the GPUVM to check the range for h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjkh]hstruct drm_gpuvm *gpuvm}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjiubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjeubjt )}(hhh]h)}(h the GPUVM to check the range forh]h the GPUVM to check the range for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjeubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjbubjR )}(h``u64 addr`` the base address h](jX )}(h ``u64 addr``h]j^ )}(hjh]hu64 addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(hthe base addressh]hthe base address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjbubjR )}(h7``u64 range`` the range starting from the base address h](jX )}(h ``u64 range``h]j^ )}(hjh]h u64 range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjbubeh}(h]h ]h"]h$]h&]uh1jL hjFubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjFubh)}(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:525: ./drivers/gpu/drm/drm_gpuvm.chMhjFubh)}(h **Return**h]j7 )}(hj?h]hReturn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj=ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjFubh)}(h'true for a valid range, false otherwiseh]h'true for a valid range, false otherwise}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_gpuvm_resv_object_alloc (C function)c.drm_gpuvm_resv_object_allochNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_gpuvm_resv_object_allocsbc.drm_gpuvm_resv_object_allocasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gpuvm_resv_object_alloch]j)}(hjh]hdrm_gpuvm_resv_object_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h(struct drm_device *drm)h]jD)}(hstruct drm_device *drmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_resv_object_allocasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdrmh]hdrm}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhMubah}(h]jwah ](jjeh"]h$]h&]j j )j huh1jhjhMhjyhhubj )}(hhh]h)}(h)allocate a dummy :c:type:`drm_gem_object`h](hallocate a dummy }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gpuvm_resv_object_allocasbj drm_gem_objectuh1hhjľhMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj|hhubah}(h]h ]h"]h$]h&]uh1j hjyhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh]jR )}(h<``struct drm_device *drm`` the drivers :c:type:`drm_device` h](jX )}(h``struct drm_device *drm``h]j^ )}(hjh]hstruct drm_device *drm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(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}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_deviceuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj>h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj<ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(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 }(hjThhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hj^h]hdrm_gem_object}(hj`hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj\ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjTubh\ which can be passed to drm_gpuvm_init() in order to serve as root GEM object providing the }(hjThhhNhNubh)}(h:c:type:`drm_resv`h]j^ )}(hjh]hdrm_resv}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_resvuh1hhj{hMhjTubh shared across }(hjThhhNhNubh)}(h:c:type:`drm_gem_objects`h]j^ )}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhj{hMhjTubh local to a single GPUVM.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{hMhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM!hjubh on success, NULL on failure}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_init (C function)c.drm_gpuvm_inithNtauh1jhjWQhhhNhNubj)}(hhh](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]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](j)}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjDhM4ubj)}(hdrm_gpuvm_inith]j)}(hdrm_gpuvm_inith]hdrm_gpuvm_init}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jhj2hhhjDhM4ubj>)}(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](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jYsbc.drm_gpuvm_initasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjkubjD)}(hconst char *nameh](j)}(hjJh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjkubjD)}(henum drm_gpuvm_flags flagsh](j)}(hjh]henum}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]j)}(hdrm_gpuvm_flagsh]hdrm_gpuvm_flags}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjbmodnameN classnameNjj)}j]jc.drm_gpuvm_initasbuh1hhj>ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjkubjD)}(hstruct drm_device *drmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjkubjD)}(hstruct drm_gem_object *r_objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj5modnameN classnameNjj)}j]jc.drm_gpuvm_initasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hr_objh]hr_obj}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjkubjD)}(hu64 start_offseth](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h start_offseth]h start_offset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjkubjD)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjkubjD)}(hu64 reserve_offseth](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_initasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hreserve_offseth]hreserve_offset}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjkubjD)}(hu64 reserve_rangeh](h)}(hhh]j)}(hu64h]hu64}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjbmodnameN classnameNjj)}j]jc.drm_gpuvm_initasbuh1hhjYubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h reserve_rangeh]h reserve_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjkubjD)}(hconst struct drm_gpuvm_ops *opsh](j)}(hjJh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvm_opsh]h drm_gpuvm_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hopsh]hops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjkubeh}(h]h ]h"]h$]h&]jjuh1j=hj2hhhjDhM4ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjDhM4ubah}(h]j)ah ](jjeh"]h$]h&]j j )j huh1jhjDhM4hj+hhubj )}(hhh]h)}(h initialize a :c:type:`drm_gpuvm`h](h initialize a }(hjAhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjKh]h drm_gpuvm}(hjMhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gpuvm_initasbj drm_gpuvmuh1hhjľhMhjAubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM4hj>hhubah}(h]h ]h"]h$]h&]uh1j hj+hhhjDhM4ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j}j( j}j) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM8hjubjM )}(hhh](jR )}(hM``struct drm_gpuvm *gpuvm`` pointer to the :c:type:`drm_gpuvm` to initialize h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM5hjubjt )}(hhh]h)}(h0pointer to the :c:type:`drm_gpuvm` to initializeh](hpointer to the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhM5hjubh to initialize}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM5hjubjR )}(h2``const char *name`` the name of the GPU VA space h](jX )}(h``const char *name``h]j^ )}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM6hjubjt )}(hhh]h)}(hthe name of the GPU VA spaceh]hthe name of the GPU VA space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM6hjubjR )}(hL``enum drm_gpuvm_flags flags`` the :c:type:`drm_gpuvm_flags` for this GPUVM h](jX )}(h``enum drm_gpuvm_flags flags``h]j^ )}(hj;h]henum drm_gpuvm_flags flags}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj9ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM7hj5ubjt )}(hhh]h)}(h,the :c:type:`drm_gpuvm_flags` for this GPUVMh](hthe }(hjThhhNhNubh)}(h:c:type:`drm_gpuvm_flags`h]j^ )}(hj^h]hdrm_gpuvm_flags}(hj`hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj\ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_flagsuh1hhjPhM7hjTubh for this GPUVM}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhM7hjQubah}(h]h ]h"]h$]h&]uh1js hj5ubeh}(h]h ]h"]h$]h&]uh1jQ hjPhM7hjubjR )}(hG``struct drm_device *drm`` the :c:type:`drm_device` this VM resides in h](jX )}(h``struct drm_device *drm``h]j^ )}(hjh]hstruct drm_device *drm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM8hjubjt )}(hhh]h)}(h+the :c:type:`drm_device` this VM resides inh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j^ )}(hjh]h drm_device}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_deviceuh1hhjhM8hjubh this VM resides in}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM8hjubjR )}(hs``struct drm_gem_object *r_obj`` the resv :c:type:`drm_gem_object` providing the GPUVM's common :c:type:`dma_resv` h](jX )}(h ``struct drm_gem_object *r_obj``h]j^ )}(hjh]hstruct drm_gem_object *r_obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM9hjubjt )}(hhh]h)}(hQthe resv :c:type:`drm_gem_object` providing the GPUVM's common :c:type:`dma_resv`h](h the resv }(hj hhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjhM9hj ubh providing the GPUVM’s common }(hj hhhNhNubh)}(h:c:type:`dma_resv`h]j^ )}(hj9h]hdma_resv}(hj;hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj7ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_resvuh1hhjhM9hj ubeh}(h]h ]h"]h$]h&]uh1hhjhM9hj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM9hjubjR )}(h:``u64 start_offset`` the start offset of the GPU VA space h](jX )}(h``u64 start_offset``h]j^ )}(hjnh]hu64 start_offset}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM:hjhubjt )}(hhh]h)}(h$the start offset of the GPU VA spaceh]h$the start offset of the GPU VA space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1js hjhubeh}(h]h ]h"]h$]h&]uh1jQ hjhM:hjubjR )}(h+``u64 range`` the size of the GPU VA space h](jX )}(h ``u64 range``h]j^ )}(hjh]h u64 range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM;hjubjt )}(hhh]h)}(hthe size of the GPU VA spaceh]hthe size of the GPU VA space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM;hjubjR )}(hD``u64 reserve_offset`` the start of the kernel reserved GPU VA area h](jX )}(h``u64 reserve_offset``h]j^ )}(hjh]hu64 reserve_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM<hjubjt )}(hhh]h)}(h,the start of the kernel reserved GPU VA areah]h,the start of the kernel reserved GPU VA area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM<hjubjR )}(hB``u64 reserve_range`` the size of the kernel reserved GPU VA area h](jX )}(h``u64 reserve_range``h]j^ )}(hjh]hu64 reserve_range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM=hjubjt )}(hhh]h)}(h+the size of the kernel reserved GPU VA areah]h+the size of the kernel reserved GPU VA area}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hM=hj/ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj.hM=hjubjR )}(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](jX )}(h#``const struct drm_gpuvm_ops *ops``h]j^ )}(hjRh]hconst struct drm_gpuvm_ops *ops}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjPubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM>hjLubjt )}(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^ )}(hjqh]h drm_gpuvm_ops}(hjshhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjoubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_opsuh1hhjghM>hjkubh called on }(hjkhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j^ )}(hjh]hdrm_gpuvm_sm_map}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_mapuh1hhjghM>hjkubh / }(hjkhhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j^ )}(hjh]hdrm_gpuvm_sm_unmap}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_unmapuh1hhjghM>hjkubeh}(h]h ]h"]h$]h&]uh1hhjghM>hjhubah}(h]h ]h"]h$]h&]uh1js hjLubeh}(h]h ]h"]h$]h&]uh1jQ hjghM>hjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM@hjubh)}(hJThe :c:type:`drm_gpuvm` must be initialized with this function before use.h](hThe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM?hjubh3 must be initialized with this function before use.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hM?hjubh)}(hNote that **gpuvm** must be cleared to 0 before calling this function. The given :c:type:`name` is expected to be managed by the surrounding driver structures.h](h Note that }(hj6hhhNhNubj7 )}(h **gpuvm**h]hgpuvm}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj6ubh> must be cleared to 0 before calling this function. The given }(hj6hhhNhNubh)}(h:c:type:`name`h]j^ )}(hjRh]hname}(hjThhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjPubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j nameuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMAhj6ubh@ is expected to be managed by the surrounding driver structures.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjohMAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_put (C function)c.drm_gpuvm_puthNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h,void drm_gpuvm_put (struct drm_gpuvm *gpuvm)h]j)}(h+void drm_gpuvm_put(struct drm_gpuvm *gpuvm)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h drm_gpuvm_puth]j)}(h drm_gpuvm_puth]h drm_gpuvm_put}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h(struct drm_gpuvm *gpuvm)h]jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_putasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h!drop a struct drm_gpuvm referenceh]h!drop a struct drm_gpuvm reference}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjWhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jrj( jrj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjzubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjvubjM )}(hhh]jR )}(hP``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to release the reference of h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(h3the :c:type:`drm_gpuvm` to release the reference ofh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhMhjubh to release the reference of}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubah}(h]h ]h"]h$]h&]uh1jL hjvubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjvubh)}(h'This releases a reference to **gpuvm**.h](hThis releases a reference to }(hjhhhNhNubj7 )}(h **gpuvm**h]hgpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjvubh)}(h0This function may be called from atomic context.h]h0This function may be called from atomic context.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_gpuvm_prepare_vm (C function)c.drm_gpuvm_prepare_vmhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhjmhMubj)}(hdrm_gpuvm_prepare_vmh]j)}(hdrm_gpuvm_prepare_vmh]hdrm_gpuvm_prepare_vm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj[hhhjmhMubj>)}(hI(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_prepare_vmasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj.modnameN classnameNjj)}j]jc.drm_gpuvm_prepare_vmasbuh1hhj ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hexech]hexec}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned int num_fencesh](j)}(hunsignedh]hunsigned}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h num_fencesh]h num_fences}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hj[hhhjmhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjmhMubah}(h]jRah ](jjeh"]h$]h&]j j )j huh1jhjmhMhjThhubj )}(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:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjThhhjmhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh](jR )}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj!h]hstruct drm_gpuvm *gpuvm}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hj:hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjDh]h drm_gpuvm}(hjFhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjBubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj6hMhj:ubeh}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj6hMhjubjR )}(h9``struct drm_exec *exec`` the :c:type:`drm_exec` context h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjyh]hstruct drm_exec *exec}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjwubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjsubjt )}(hhh]h)}(hthe :c:type:`drm_exec` contexth](hthe }(hjhhhNhNubh)}(h:c:type:`drm_exec`h]j^ )}(hjh]hdrm_exec}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_execuh1hhjhMhjubh context}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjsubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hJ``unsigned int num_fences`` the amount of :c:type:`dma_fences` to reserve h](jX )}(h``unsigned int num_fences``h]j^ )}(hjh]hunsigned int num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_fencesuh1hhjhMhjubh to reserve}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj1ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hCalls drm_exec_prepare_obj() for the GPUVMs dummy :c:type:`drm_gem_object`; if **num_fences** is zero drm_exec_lock_obj() is called instead.h](h2Calls drm_exec_prepare_obj() for the GPUVMs dummy }(hjIhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjSh]hdrm_gem_object}(hjUhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjQubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjIubh; if }(hjIhhhNhNubj7 )}(h**num_fences**h]h num_fences}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjIubh/ is zero drm_exec_lock_obj() is called instead.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphMhjubh)}(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:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./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:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drm_gpuvm_prepare_objects (C function)c.drm_gpuvm_prepare_objectshNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gpuvm_prepare_objectsh]j)}(hdrm_gpuvm_prepare_objectsh]hdrm_gpuvm_prepare_objects}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(hI(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj@modnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_prepare_objectsasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jZc.drm_gpuvm_prepare_objectsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned int num_fencesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h num_fencesh]h num_fences}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(hprepare all associated BOsh]hprepare all associated BOs}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjahhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j|j( j|j) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh](jR )}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hA``struct drm_exec *exec`` the :c:type:`drm_exec` locking context h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjh]hstruct drm_exec *exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(h&the :c:type:`drm_exec` locking contexth](hthe }(hjhhhNhNubh)}(h:c:type:`drm_exec`h]j^ )}(hj h]hdrm_exec}(hj"hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_execuh1hhjhMhjubh locking context}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hJ``unsigned int num_fences`` the amount of :c:type:`dma_fences` to reserve h](jX )}(h``unsigned int num_fences``h]j^ )}(hjYh]hunsigned int num_fences}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjWubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjSubjt )}(hhh]h)}(h-the amount of :c:type:`dma_fences` to reserveh](hthe amount of }(hjrhhhNhNubh)}(h:c:type:`dma_fences`h]j^ )}(hj|h]h dma_fences}(hj~hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjzubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_fencesuh1hhjnhMhjrubh to reserve}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1js hjSubeh}(h]h ]h"]h$]h&]uh1jQ hjnhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hCalls drm_exec_prepare_obj() for all :c:type:`drm_gem_objects` the given :c:type:`drm_gpuvm` contains mappings of; if **num_fences** is zero drm_exec_lock_obj() is called instead.h](h%Calls drm_exec_prepare_obj() for all }(hjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j^ )}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhMhjubh contains mappings of; if }(hjhhhNhNubj7 )}(h**num_fences**h]h num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh/ is zero drm_exec_lock_obj() is called instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(hwUsing this function directly, it is the drivers responsibility to call drm_exec_init() and drm_exec_fini() accordingly.h]hwUsing this function directly, it is the drivers responsibility to call drm_exec_init() and drm_exec_fini() accordingly.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h**Note**h]j7 )}(hjEh]hNote}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjCubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hThis function is safe against concurrent insertion and removal of external objects, however it is not safe against concurrent usage itself.h]hThis function is safe against concurrent insertion and removal of external objects, however it is not safe against concurrent usage itself.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hDrivers need to make sure to protect this case with either an outer VM lock or by calling drm_gpuvm_prepare_vm() before this function within the drm_exec_until_all_locked() loop, such that the GPUVM's dma-resv lock ensures mutual exclusion.h]hDrivers need to make sure to protect this case with either an outer VM lock or by calling drm_gpuvm_prepare_vm() before this function within the drm_exec_until_all_locked() loop, such that the GPUVM’s dma-resv lock ensures mutual exclusion.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h **Return**h]j7 )}(hj{h]hReturn}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjyubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_gpuvm_prepare_range (C function)c.drm_gpuvm_prepare_rangehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gpuvm_prepare_rangeh]j)}(hdrm_gpuvm_prepare_rangeh]hdrm_gpuvm_prepare_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h^(struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 addr, u64 range, unsigned int num_fences)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_prepare_rangeasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j7c.drm_gpuvm_prepare_rangeasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j7c.drm_gpuvm_prepare_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj,modnameN classnameNjj)}j]j7c.drm_gpuvm_prepare_rangeasbuh1hhj#ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hrangeh]hrange}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned int num_fencesh](j)}(hunsignedh]hunsigned}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h num_fencesh]h num_fences}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(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:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh](jR )}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj ubjt )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hj+hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj5h]h drm_gpuvm}(hj7hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj3ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj'hMhj+ubeh}(h]h ]h"]h$]h&]uh1hhj'hMhj(ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj'hMhj ubjR )}(hA``struct drm_exec *exec`` the :c:type:`drm_exec` locking context h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjjh]hstruct drm_exec *exec}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjhubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjdubjt )}(hhh]h)}(h&the :c:type:`drm_exec` locking contexth](hthe }(hjhhhNhNubh)}(h:c:type:`drm_exec`h]j^ )}(hjh]hdrm_exec}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_execuh1hhjhMhjubh locking context}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjdubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj ubjR )}(h3``u64 addr`` the start address within the VA space h](jX )}(h ``u64 addr``h]j^ )}(hjh]hu64 addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj ubjR )}(h7``u64 range`` the range to iterate within the VA space h](jX )}(h ``u64 range``h]j^ )}(hjh]h u64 range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(h(the range to iterate within the VA spaceh]h(the range to iterate within the VA space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj ubjR )}(hJ``unsigned int num_fences`` the amount of :c:type:`dma_fences` to reserve h](jX )}(h``unsigned int num_fences``h]j^ )}(hj8h]hunsigned int num_fences}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj6ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj2ubjt )}(hhh]h)}(h-the amount of :c:type:`dma_fences` to reserveh](hthe amount of }(hjQhhhNhNubh)}(h:c:type:`dma_fences`h]j^ )}(hj[h]h dma_fences}(hj]hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjYubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_fencesuh1hhjMhMhjQubh to reserve}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1js hj2ubeh}(h]h ]h"]h$]h&]uh1jQ hjMhMhj ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjubh)}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j^ )}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh mapped between }(hjhhhNhNubj7 )}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh and }(hjhhhNhNubj7 )}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh + }(hjhhhNhNubj7 )}(h **range**h]hrange}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh; if }(hjhhhNhNubj7 )}(h**num_fences**h]h num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh/ is zero drm_exec_lock_obj() is called instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h **Return**h]j7 )}(hj(h]hReturn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM#hjubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gpuvm_exec_lock (C function)c.drm_gpuvm_exec_lockhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM>ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj{hM>ubj)}(hdrm_gpuvm_exec_lockh]j)}(hdrm_gpuvm_exec_lockh]hdrm_gpuvm_exec_lock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjihhhj{hM>ubj>)}(h (struct drm_gpuvm_exec *vm_exec)h]jD)}(hstruct drm_gpuvm_exec *vm_exech](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_exec_lockasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvm_exech]hvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjihhhj{hM>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhj{hM>ubah}(h]j`ah ](jjeh"]h$]h&]j j )j huh1jhj{hM>hjbhhubj )}(hhh]h)}(h'lock all dma-resv of all associated BOsh]h'lock all dma-resv of all associated BOs}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM>hj*hhubah}(h]h ]h"]h$]h&]uh1j hjbhhhj{hM>ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jEj( jEj) j* j+ uh1jhhhjWQhNhNubj- )}(hX@**Parameters** ``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper **Description** Acquires all dma-resv locks of all :c:type:`drm_gem_objects` the given :c:type:`drm_gpuvm` contains mappings of. Additionally, when calling this function with struct drm_gpuvm_exec::extra being set the driver receives the given **fn** callback to lock additional dma-resv in the context of the :c:type:`drm_gpuvm_exec` instance. Typically, drivers would call drm_exec_prepare_obj() from within this callback. **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j7 )}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjMubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMBhjIubjM )}(hhh]jR )}(hH``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper h](jX )}(h"``struct drm_gpuvm_exec *vm_exec``h]j^ )}(hjnh]hstruct drm_gpuvm_exec *vm_exec}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM?hjhubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_execuh1hhjhM?hjubh wrapper}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1js hjhubeh}(h]h ]h"]h$]h&]uh1jQ hjhM?hjeubah}(h]h ]h"]h$]h&]uh1jL hjIubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMAhjIubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM@hjubh the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj hM@hjubh contains mappings of.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hM@hjIubh)}(hX'Additionally, when calling this function with struct drm_gpuvm_exec::extra being set the driver receives the given **fn** callback to lock additional dma-resv in the context of the :c:type:`drm_gpuvm_exec` instance. Typically, drivers would call drm_exec_prepare_obj() from within this callback.h](hsAdditionally, when calling this function with struct drm_gpuvm_exec::extra being set the driver receives the given }(hj7hhhNhNubj7 )}(h**fn**h]hfn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj7ubh< callback to lock additional dma-resv in the context of the }(hj7hhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j^ )}(hjSh]hdrm_gpuvm_exec}(hjUhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjQubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_execuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMChj7ubhZ instance. Typically, drivers would call drm_exec_prepare_obj() from within this callback.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphMChjIubh)}(h **Return**h]j7 )}(hj}h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj{ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMHhjIubh)}(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:525: ./drivers/gpu/drm/drm_gpuvm.chMIhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drm_gpuvm_exec_lock_array (C function)c.drm_gpuvm_exec_lock_arrayhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM}ubj)}(hdrm_gpuvm_exec_lock_arrayh]j)}(hdrm_gpuvm_exec_lock_arrayh]hdrm_gpuvm_exec_lock_array}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM}ubj>)}(hU(struct drm_gpuvm_exec *vm_exec, struct drm_gem_object **objs, unsigned int num_objs)h](jD)}(hstruct drm_gpuvm_exec *vm_exech](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_exec_lock_arrayasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvm_exech]hvm_exec}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_gem_object **objsh](j)}(hj? h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j9c.drm_gpuvm_exec_lock_arrayasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hobjsh]hobjs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned int num_objsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnum_objsh]hnum_objs}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM}ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM}ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM}hjhhubj )}(hhh]h)}(h'lock all dma-resv of all associated BOsh]h'lock all dma-resv of all associated BOs}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM}hjMhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM}ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jhj( jhj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjpubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjlubjM )}(hhh](jR )}(hH``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper h](jX )}(h"``struct drm_gpuvm_exec *vm_exec``h]j^ )}(hjh]hstruct drm_gpuvm_exec *vm_exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM~hjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_execuh1hhjhM~hjubh wrapper}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM~hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM~hjubjR )}(hN``struct drm_gem_object **objs`` additional :c:type:`drm_gem_objects` to lock h](jX )}(h ``struct drm_gem_object **objs``h]j^ )}(hjh]hstruct drm_gem_object **objs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhjhMhjubh to lock}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hU``unsigned int num_objs`` the number of additional :c:type:`drm_gem_objects` to lock h](jX )}(h``unsigned int num_objs``h]j^ )}(hjIh]hunsigned int num_objs}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjCubjt )}(hhh]h)}(h:the number of additional :c:type:`drm_gem_objects` to lockh](hthe number of additional }(hjbhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j^ )}(hjlh]hdrm_gem_objects}(hjnhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhj^hMhjbubh to lock}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1js hjCubeh}(h]h ]h"]h$]h&]uh1jQ hj^hMhjubeh}(h]h ]h"]h$]h&]uh1jL hjlubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjlubh)}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gem_objects`h]j^ )}(hjh]hdrm_gem_objects}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhMhjubh3 contains mappings of, plus the ones given through }(hjhhhNhNubj7 )}(h**objs**h]hobjs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjlubh)}(h **Return**h]j7 )}(hj&h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj$ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjlubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drm_gpuvm_exec_lock_range (C function)c.drm_gpuvm_exec_lock_rangehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjyhMubj)}(hdrm_gpuvm_exec_lock_rangeh]j)}(hdrm_gpuvm_exec_lock_rangeh]hdrm_gpuvm_exec_lock_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjghhhjyhMubj>)}(h5(struct drm_gpuvm_exec *vm_exec, u64 addr, u64 range)h](jD)}(hstruct drm_gpuvm_exec *vm_exech](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpuvm_exech]hdrm_gpuvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_exec_lock_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvm_exech]hvm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_exec_lock_rangeasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjgmodnameN classnameNjj)}j]jc.drm_gpuvm_exec_lock_rangeasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjghhhjyhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjyhMubah}(h]j^ah ](jjeh"]h$]h&]j j )j huh1jhjyhMhj`hhubj )}(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:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj`hhhjyhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh](jR )}(hH``struct drm_gpuvm_exec *vm_exec`` the :c:type:`drm_gpuvm_exec` wrapper h](jX )}(h"``struct drm_gpuvm_exec *vm_exec``h]j^ )}(hjh]hstruct drm_gpuvm_exec *vm_exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(h$the :c:type:`drm_gpuvm_exec` wrapperh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_exec`h]j^ )}(hjh]hdrm_gpuvm_exec}(hj!hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_execuh1hhjhMhjubh wrapper}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h3``u64 addr`` the start address within the VA space h](jX )}(h ``u64 addr``h]j^ )}(hjXh]hu64 addr}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjVubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjRubjt )}(hhh]h)}(h%the start address within the VA spaceh]h%the start address within the VA space}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1js hjRubeh}(h]h ]h"]h$]h&]uh1jQ hjmhMhjubjR )}(h7``u64 range`` the range to iterate within the VA space h](jX )}(h ``u64 range``h]j^ )}(hjh]h u64 range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(h(the range to iterate within the VA spaceh]h(the range to iterate within the VA space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh mapped between }(hjhhhNhNubj7 )}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh and }(hjhhhNhNubj7 )}(h**addr**h]haddr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh + }(hjhhhNhNubj7 )}(h **range**h]hrange}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhjubh)}(h **Return**h]j7 )}(hjLh]hReturn}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjJubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_validate (C function)c.drm_gpuvm_validatehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gpuvm_validateh]j)}(hdrm_gpuvm_validateh]hdrm_gpuvm_validate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h0(struct drm_gpuvm *gpuvm, struct drm_exec *exec)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_validateasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj`modnameN classnameNjj)}j]jc.drm_gpuvm_validateasbuh1hhj<ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h"validate all BOs marked as evictedh]h"validate all BOs marked as evicted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh](jR )}(hL``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to validate evicted BOs h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(h/the :c:type:`drm_gpuvm` to validate evicted BOsh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj%h]h drm_gpuvm}(hj'hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhMhjubh to validate evicted BOs}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hU``struct drm_exec *exec`` the :c:type:`drm_exec` instance used for locking the GPUVM h](jX )}(h``struct drm_exec *exec``h]j^ )}(hj^h]hstruct drm_exec *exec}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj\ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjXubjt )}(hhh]h)}(h:the :c:type:`drm_exec` instance used for locking the GPUVMh](hthe }(hjwhhhNhNubh)}(h:c:type:`drm_exec`h]j^ )}(hjh]hdrm_exec}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_execuh1hhjshMhjwubh$ instance used for locking the GPUVM}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1js hjXubeh}(h]h ]h"]h$]h&]uh1jQ hjshMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h **Return**h]j7 )}(hj)h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj'ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_gpuvm_resv_add_fence (C function)c.drm_gpuvm_resv_add_fencehNtauh1jhjWQhhhNhNubj)}(hhh](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]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](j)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhj|hMubj)}(hdrm_gpuvm_resv_add_fenceh]j)}(hdrm_gpuvm_resv_add_fenceh]hdrm_gpuvm_resv_add_fence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjjhhhj|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](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_resv_add_fenceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj=modnameN classnameNjj)}j]jc.drm_gpuvm_resv_add_fenceasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hexech]hexec}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct dma_fence *fenceh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_resv_add_fenceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfenceh]hfence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h!enum dma_resv_usage private_usageh](j)}(hjh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_resv_usageh]hdma_resv_usage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_resv_add_fenceasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h private_usageh]h private_usage}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h enum dma_resv_usage extobj_usageh](j)}(hjh]henum}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hhh]j)}(hdma_resv_usageh]hdma_resv_usage}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_resv_add_fenceasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h extobj_usageh]h extobj_usage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjjhhhj|hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhj|hMubah}(h]jaah ](jjeh"]h$]h&]j j )j huh1jhj|hMhjchhubj )}(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:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjchhhj|hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjubjM )}(hhh](jR )}(hF``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to add a fence to h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjubjt )}(hhh]h)}(h)the :c:type:`drm_gpuvm` to add a fence toh](hthe }(hj.hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj8h]h drm_gpuvm}(hj:hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj6ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj*hM hj.ubh to add a fence to}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj*hM hj+ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj*hM hj ubjR )}(hA``struct drm_exec *exec`` the :c:type:`drm_exec` locking context h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjqh]hstruct drm_exec *exec}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjoubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjkubjt )}(hhh]h)}(h&the :c:type:`drm_exec` locking contexth](hthe }(hjhhhNhNubh)}(h:c:type:`drm_exec`h]j^ )}(hjh]hdrm_exec}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_execuh1hhjhM hjubh locking context}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1js hjkubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hj ubjR )}(h)``struct dma_fence *fence`` fence to add h](jX )}(h``struct dma_fence *fence``h]j^ )}(hjh]hstruct dma_fence *fence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjubjt )}(hhh]h)}(h fence to addh]h fence to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hj ubjR )}(h=``enum dma_resv_usage private_usage`` private dma-resv usage h](jX )}(h%``enum dma_resv_usage private_usage``h]j^ )}(hjh]h!enum dma_resv_usage private_usage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjubjt )}(hhh]h)}(hprivate dma-resv usageh]hprivate dma-resv usage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hj ubjR )}(h:``enum dma_resv_usage extobj_usage`` extobj dma-resv usageh](jX )}(h$``enum dma_resv_usage extobj_usage``h]j^ )}(hj?h]h enum dma_resv_usage extobj_usage}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj=ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj9ubjt )}(hhh]h)}(hextobj dma-resv usageh]hextobj dma-resv usage}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjUubah}(h]h ]h"]h$]h&]uh1js hj9ubeh}(h]h ]h"]h$]h&]uh1jQ hjThMhj ubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_gpuvm_bo_create (C function)c.drm_gpuvm_bo_createhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM#ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM#ubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_gpuvm_bo_createsbc.drm_gpuvm_bo_createasbuh1hhjhhhjhM#ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM#ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM#ubj)}(hdrm_gpuvm_bo_createh]j)}(hjh]hdrm_gpuvm_bo_create}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM#ubj>)}(h5(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj3modnameN classnameNjj)}j]jc.drm_gpuvm_bo_createasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_bo_createasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM#ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM#hjhhubj )}(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:525: ./drivers/gpu/drm/drm_gpuvm.chM#hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM#ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj$ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM'hj ubjM )}(hhh](jR )}(hN``struct drm_gpuvm *gpuvm`` The :c:type:`drm_gpuvm` the **obj** is mapped in. h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjEh]hstruct drm_gpuvm *gpuvm}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjCubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM$hj?ubjt )}(hhh]h)}(h1The :c:type:`drm_gpuvm` the **obj** is mapped in.h](hThe }(hj^hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjhh]h drm_gpuvm}(hjjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjfubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjZhM$hj^ubh the }(hj^hhhNhNubj7 )}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj^ubh is mapped in.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhM$hj[ubah}(h]h ]h"]h$]h&]uh1js hj?ubeh}(h]h ]h"]h$]h&]uh1jQ hjZhM$hj<ubjR )}(h[``struct drm_gem_object *obj`` The :c:type:`drm_gem_object` being mapped in the **gpuvm**. h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM%hjubjt )}(hhh]h)}(h;The :c:type:`drm_gem_object` being mapped in the **gpuvm**.h](hThe }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjhM%hjubh being mapped in the }(hjhhhNhNubj7 )}(h **gpuvm**h]hgpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM%hj<ubeh}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hj#h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj!ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM'hj ubh)}(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 }(hj9hhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j^ )}(hjCh]h drm_gpuvm_ops}(hjEhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjAubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM&hj9ubh$ vm_bo_alloc() callback to allocate.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`hM&hj ubh)}(h **Return**h]j7 )}(hjmh]hReturn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjkubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM)hj ubh)}(hCa pointer to the :c:type:`drm_gpuvm_bo` on success, NULL on failureh](ha pointer to the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM*hjubh on success, NULL on failure}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM*hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_bo_put (C function)c.drm_gpuvm_bo_puthNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gpuvm_bo_puth]j)}(hdrm_gpuvm_bo_puth]hdrm_gpuvm_bo_put}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h(struct drm_gpuvm_bo *vm_bo)h]jD)}(hstruct drm_gpuvm_bo *vm_boh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj1modnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_bo_putasbuh1hhj ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hvm_boh]hvm_bo}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h$drop a struct drm_gpuvm_bo referenceh]h$drop a struct drm_gpuvm_bo reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(hXc**Parameters** ``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to release the reference of **Description** This releases a reference to **vm_bo**. If the reference count drops to zero, the :c:type:`gpuvm_bo` is destroyed, which includes removing it from the GEMs gpuva list. Hence, if a call to this function can potentially let the reference count drop to zero the caller must hold the lock that the GEM uses for its gpuva list (either the GEM's dma-resv or gpuva.lock mutex). This function may only be called from non-atomic context. **Return** true if vm_bo was destroyed, false otherwise.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh]jR )}(hV``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to release the reference of h](jX )}(h``struct drm_gpuvm_bo *vm_bo``h]j^ )}(hjh]hstruct drm_gpuvm_bo *vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhMhjubh to release the reference of}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj1ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h'This releases a reference to **vm_bo**.h](hThis releases a reference to }(hjIhhhNhNubj7 )}(h **vm_bo**h]hvm_bo}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjIubh.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hXJIf the reference count drops to zero, the :c:type:`gpuvm_bo` is destroyed, which includes removing it from the GEMs gpuva list. Hence, if a call to this function can potentially let the reference count drop to zero the caller must hold the lock that the GEM uses for its gpuva list (either the GEM's dma-resv or gpuva.lock mutex).h](h*If the reference count drops to zero, the }(hjjhhhNhNubh)}(h:c:type:`gpuvm_bo`h]j^ )}(hjth]hgpuvm_bo}(hjvhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjrubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjjubhX is destroyed, which includes removing it from the GEMs gpuva list. Hence, if a call to this function can potentially let the reference count drop to zero the caller must hold the lock that the GEM uses for its gpuva list (either the GEM’s dma-resv or gpuva.lock mutex).}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h9This function may only be called from non-atomic context.h]h9This function may only be called from non-atomic context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h-true if vm_bo was destroyed, false otherwise.h]h-true if vm_bo was destroyed, false otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drm_gpuvm_bo_put_deferred (C function)c.drm_gpuvm_bo_put_deferredhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h;bool drm_gpuvm_bo_put_deferred (struct drm_gpuvm_bo *vm_bo)h]j)}(h:bool drm_gpuvm_bo_put_deferred(struct drm_gpuvm_bo *vm_bo)h](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gpuvm_bo_put_deferredh]j)}(hdrm_gpuvm_bo_put_deferredh]hdrm_gpuvm_bo_put_deferred}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h(struct drm_gpuvm_bo *vm_bo)h]jD)}(hstruct drm_gpuvm_bo *vm_boh](j)}(hj? h]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjNmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_bo_put_deferredasbuh1hhj*ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hvm_boh]hvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj&ubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h:drop a struct drm_gpuvm_bo reference with deferred cleanuph]h:drop a struct drm_gpuvm_bo reference with deferred cleanup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(hXj**Parameters** ``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to release the reference of **Description** This releases a reference to **vm_bo**. This might take and release the GEMs GPUVA lock. You should call drm_gpuvm_bo_deferred_cleanup() later to complete the cleanup process. **Return** true if vm_bo is being destroyed, false otherwise.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh]jR )}(hV``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to release the reference of h](jX )}(h``struct drm_gpuvm_bo *vm_bo``h]j^ )}(hjh]hstruct drm_gpuvm_bo *vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(h6the :c:type:`drm_gpuvm_bo` to release the reference ofh](hthe }(hj hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhMhj ubh to release the reference of}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h'This releases a reference to **vm_bo**.h](hThis releases a reference to }(hjfhhhNhNubj7 )}(h **vm_bo**h]hvm_bo}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjfubh.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hThis might take and release the GEMs GPUVA lock. You should call drm_gpuvm_bo_deferred_cleanup() later to complete the cleanup process.h]hThis might take and release the GEMs GPUVA lock. You should call drm_gpuvm_bo_deferred_cleanup() later to complete the cleanup process.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h2true if vm_bo is being destroyed, false otherwise.h]h2true if vm_bo is being destroyed, false otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_gpuvm_bo_deferred_cleanup (C function)c.drm_gpuvm_bo_deferred_cleanuphNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h)}(h(struct drm_gpuvm *gpuvm)h]jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj:modnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_bo_deferred_cleanupasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h2clean up BOs in the deferred list deferred cleanuph]h2clean up BOs in the deferred list deferred cleanup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(h**Parameters** ``struct drm_gpuvm *gpuvm`` the VM to clean up **Description** Cleans up :c:type:`drm_gpuvm_bo` instances in the deferred cleanup list.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh]jR )}(h/``struct drm_gpuvm *gpuvm`` the VM to clean up h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(hthe VM to clean uph]hthe VM to clean up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hHCleans up :c:type:`drm_gpuvm_bo` instances in the deferred cleanup list.h](h Cleans up }(hj/hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hj9h]h drm_gpuvm_bo}(hj;hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj7ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj/ubh( instances in the deferred cleanup list.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjVhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_bo_find (C function)c.drm_gpuvm_bo_findhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhjhMubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_gpuvm_bo_findsbc.drm_gpuvm_bo_findasbuh1hhj}hhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhjhMubj)}(hdrm_gpuvm_bo_findh]j)}(hjh]hdrm_gpuvm_bo_find}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj}hhhjhMubj>)}(h5(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_bo_findasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_bo_findasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hj}hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjhMubah}(h]jtah ](jjeh"]h$]h&]j j )j huh1jhjhMhjvhhubj )}(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 }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gpuvm_bo_findasbj drm_gpuvm_bouh1hhjľhMhjubh for the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjľhMhjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjAh]hdrm_gem_object}(hjChhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj?ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjjj drm_gem_objectuh1hhjľhMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjvhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jnj( jnj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjvubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM!hjrubjM )}(hhh](jR )}(hN``struct drm_gpuvm *gpuvm`` The :c:type:`drm_gpuvm` the **obj** is mapped in. h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhMhjubh the }(hjhhhNhNubj7 )}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh is mapped in.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h[``struct drm_gem_object *obj`` The :c:type:`drm_gem_object` being mapped in the **gpuvm**. h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjubjt )}(hhh]h)}(h;The :c:type:`drm_gem_object` being mapped in the **gpuvm**.h](hThe }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hj(h]hdrm_gem_object}(hj*hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjhM hjubh being mapped in the }(hjhhhNhNubj7 )}(h **gpuvm**h]hgpuvm}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hjubeh}(h]h ]h"]h$]h&]uh1jL hjrubh)}(h**Description**h]j7 )}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjsubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM"hjrubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhM!hjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjhM!hjubh1. If found, increases the reference count of the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhM!hjubh accordingly.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM!hjrubh)}(h **Return**h]j7 )}(hj(h]hReturn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM%hjrubh)}(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^ )}(hjHh]h drm_gpuvm_bo}(hjJhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM&hj>ubh on success, NULL on failure}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjehM&hjrubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'drm_gpuvm_bo_obtain_locked (C function)c.drm_gpuvm_bo_obtain_lockedhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hfstruct drm_gpuvm_bo * drm_gpuvm_bo_obtain_locked (struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h]j)}(hdstruct drm_gpuvm_bo *drm_gpuvm_bo_obtain_locked(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM3ubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_gpuvm_bo_obtain_lockedsbc.drm_gpuvm_bo_obtain_lockedasbuh1hhjhhhjhM3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM3ubj)}(hdrm_gpuvm_bo_obtain_lockedh]j)}(hjh]hdrm_gpuvm_bo_obtain_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM3ubj>)}(h5(struct drm_gpuvm *gpuvm, struct drm_gem_object *obj)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj*modnameN classnameNjj)}j]jc.drm_gpuvm_bo_obtain_lockedasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuvm_bo_obtain_lockedasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM3ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM3hjhhubj )}(hhh]h)}(hpobtains an instance of the :c:type:`drm_gpuvm_bo` for the given :c:type:`drm_gpuvm` and :c:type:`drm_gem_object`h](hobtains an instance of the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gpuvm_bo_obtain_lockedasbj drm_gpuvm_bouh1hhjľhMhjubh for the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj-h]h drm_gpuvm}(hj/hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj+ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj!j drm_gpuvmuh1hhjľhMhjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjPh]hdrm_gem_object}(hjRhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjNubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj!j drm_gem_objectuh1hhjľhMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM3hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM3ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j}j( j}j) j* j+ uh1jhhhjWQhNhNubj- )}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` The :c:type:`drm_gpuvm` the **obj** is mapped in. ``struct drm_gem_object *obj`` The :c:type:`drm_gem_object` being mapped in the **gpuvm**. **Description** Find the :c:type:`drm_gpuvm_bo` representing the combination of the given :c:type:`drm_gpuvm` and :c:type:`drm_gem_object`. If found, increases the reference count of the :c:type:`drm_gpuvm_bo` accordingly. If not found, allocates a new :c:type:`drm_gpuvm_bo`. Requires the lock for the GEMs gpuva list. A new :c:type:`drm_gpuvm_bo` is added to the GEMs gpuva list. **Return** a pointer to the :c:type:`drm_gpuvm_bo` on success, an ERR_PTR on failureh](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM7hjubjM )}(hhh](jR )}(hN``struct drm_gpuvm *gpuvm`` The :c:type:`drm_gpuvm` the **obj** is mapped in. h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM5hjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhM5hjubh the }(hjhhhNhNubj7 )}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh is mapped in.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM5hjubjR )}(h[``struct drm_gem_object *obj`` The :c:type:`drm_gem_object` being mapped in the **gpuvm**. h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM6hjubjt )}(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^ )}(hj7h]hdrm_gem_object}(hj9hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhj)hM6hj-ubh being mapped in the }(hj-hhhNhNubj7 )}(h **gpuvm**h]hgpuvm}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj-ubh.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj)hM6hj*ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj)hM6hjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM8hjubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM7hjubh+ representing the combination of the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhM7hjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjhM7hjubh1. If found, increases the reference count of the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhM7hjubh, accordingly. If not found, allocates a new }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hj1h]h drm_gpuvm_bo}(hj3hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj/ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhM7hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM7hjubh)}(h*Requires the lock for the GEMs gpuva list.h]h*Requires the lock for the GEMs gpuva list.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM<hjubh)}(h=A new :c:type:`drm_gpuvm_bo` is added to the GEMs gpuva list.h](hA new }(hjghhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjqh]h drm_gpuvm_bo}(hjshhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjoubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM>hjgubh! is added to the GEMs gpuva list.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM>hjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM@hjubh)}(hIa pointer to the :c:type:`drm_gpuvm_bo` on success, an ERR_PTR on failureh](ha pointer to the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMAhjubh" on success, an ERR_PTR on failure}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)drm_gpuvm_bo_obtain_prealloc (C function)c.drm_gpuvm_bo_obtain_preallochNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMaubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj$modnameN classnameNjj)}j]j)}j}drm_gpuvm_bo_obtain_preallocsbc.drm_gpuvm_bo_obtain_preallocasbuh1hhjhhhjhMaubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMaubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMaubj)}(hdrm_gpuvm_bo_obtain_prealloch]j)}(hj@h]hdrm_gpuvm_bo_obtain_prealloc}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMaubj>)}(h(struct drm_gpuvm_bo *__vm_bo)h]jD)}(hstruct drm_gpuvm_bo *__vm_boh](j)}(hj? h]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j>c.drm_gpuvm_bo_obtain_preallocasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h__vm_boh]h__vm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjuubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMaubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMaubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMahjhhubj )}(hhh]h)}(hpobtains an instance of the :c:type:`drm_gpuvm_bo` for the given :c:type:`drm_gpuvm` and :c:type:`drm_gem_object`h](hobtains an instance of the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j>c.drm_gpuvm_bo_obtain_preallocasbj drm_gpuvm_bouh1hhjľhMhjubh for the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj0h]h drm_gpuvm}(hj2hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj.ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj$j drm_gpuvmuh1hhjľhMhjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjSh]hdrm_gem_object}(hjUhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjQubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj$j drm_gem_objectuh1hhjľhMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMahjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMaubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(hX**Parameters** ``struct drm_gpuvm_bo *__vm_bo`` A pre-allocated struct drm_gpuvm_bo. **Description** Find the :c:type:`drm_gpuvm_bo` representing the combination of the given :c:type:`drm_gpuvm` and :c:type:`drm_gem_object`. If found, increases the reference count of the found :c:type:`drm_gpuvm_bo` accordingly, while the **__vm_bo** reference count is decreased. If not found **__vm_bo** is returned without further increase of the reference count. The provided **__vm_bo** must not already be in the gpuva, evict, or extobj lists prior to calling this method. A new :c:type:`drm_gpuvm_bo` is added to the GEMs gpuva list. **Return** a pointer to the found :c:type:`drm_gpuvm_bo` or **__vm_bo** if no existing :c:type:`drm_gpuvm_bo` was foundh](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMehjubjM )}(hhh]jR )}(hF``struct drm_gpuvm_bo *__vm_bo`` A pre-allocated struct drm_gpuvm_bo. h](jX )}(h ``struct drm_gpuvm_bo *__vm_bo``h]j^ )}(hjh]hstruct drm_gpuvm_bo *__vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMchjubjt )}(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&]uh1hhjhMchjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMchjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMehjubh)}(hX^Find the :c:type:`drm_gpuvm_bo` representing the combination of the given :c:type:`drm_gpuvm` and :c:type:`drm_gem_object`. If found, increases the reference count of the found :c:type:`drm_gpuvm_bo` accordingly, while the **__vm_bo** reference count is decreased. If not found **__vm_bo** is returned without further increase of the reference count.h](h Find the }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMdhjubh+ representing the combination of the given }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj(h]h drm_gpuvm}(hj*hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj!hMdhjubh and }(hjhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjKh]hdrm_gem_object}(hjMhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhj!hMdhjubh7. If found, increases the reference count of the found }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjnh]h drm_gpuvm_bo}(hjphhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhj!hMdhjubh accordingly, while the }(hjhhhNhNubj7 )}(h **__vm_bo**h]h__vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh, reference count is decreased. If not found }(hjhhhNhNubj7 )}(h **__vm_bo**h]h__vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh= is returned without further increase of the reference count.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!hMdhjubh)}(hoThe provided **__vm_bo** must not already be in the gpuva, evict, or extobj lists prior to calling this method.h](h The provided }(hjhhhNhNubj7 )}(h **__vm_bo**h]h__vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubhW must not already be in the gpuva, evict, or extobj lists prior to calling this method.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMjhjubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMmhjubh! is added to the GEMs gpuva list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMmhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMohjubh)}(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 }(hj$hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hj.h]h drm_gpuvm_bo}(hj0hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj,ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMphj$ubh or }(hj$hhhNhNubj7 )}(h **__vm_bo**h]h__vm_bo}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj$ubh if no existing }(hj$hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjdh]h drm_gpuvm_bo}(hjfhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjbubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjKhMphj$ubh was found}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKhMphjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_gpuvm_bo_extobj_add (C function)c.drm_gpuvm_bo_extobj_addhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gpuvm_bo_extobj_addh]j)}(hdrm_gpuvm_bo_extobj_addh]hdrm_gpuvm_bo_extobj_add}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h(struct drm_gpuvm_bo *vm_bo)h]jD)}(hstruct drm_gpuvm_bo *vm_boh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_bo_extobj_addasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvm_boh]hvm_bo}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(hHadds the :c:type:`drm_gpuvm_bo` to its :c:type:`drm_gpuvm`'s extobj listh](h adds the }(hjkhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjuh]h drm_gpuvm_bo}(hjwhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j"c.drm_gpuvm_bo_extobj_addasbj drm_gpuvm_bouh1hhjľhMhjkubh to its }(hjkhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjjj drm_gpuvmuh1hhjľhMhjkubh’s extobj list}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh]jR )}(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](jX )}(h``struct drm_gpuvm_bo *vm_bo``h]j^ )}(hjh]hstruct drm_gpuvm_bo *vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(hOThe :c:type:`drm_gpuvm_bo` to add to its :c:type:`drm_gpuvm`'s the extobj list.h](hThe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhj hMhjubh to add to its }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj=h]h drm_gpuvm}(hj?hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj;ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj hMhjubh’s the extobj list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjvubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./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 }(hjhhhNhNubj7 )}(h **vm_bo**h]hvm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh to its }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjhMhjubh! is an external object, actually.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_bo_evict (C function)c.drm_gpuvm_bo_evicthNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hMubj)}(hdrm_gpuvm_bo_evicth]j)}(hdrm_gpuvm_bo_evicth]hdrm_gpuvm_bo_evict}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj#hMubj>)}(h((struct drm_gpuvm_bo *vm_bo, bool evict)h](jD)}(hstruct drm_gpuvm_bo *vm_boh](j)}(hj? h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjrmodnameN classnameNjj)}j]j)}j}j8sbc.drm_gpuvm_bo_evictasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hvm_boh]hvm_bo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjJubjD)}(h bool evicth](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hevicth]hevict}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjJubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj#hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj#hMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj#hMhj hhubj )}(hhh]h)}(hUadd / remove a :c:type:`drm_gpuvm_bo` to / from the :c:type:`drm_gpuvms` evicted listh](hadd / remove a }(hj hhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gpuvm_bo_evictasbj drm_gpuvm_bouh1hhjľhMhj ubh to / from the }(hj hhhNhNubh)}(h:c:type:`drm_gpuvms`h]j^ )}(hj;h]h drm_gpuvms}(hj=hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj9ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj/j drm_gpuvmsuh1hhjľhMhj ubh evicted list}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj hhhj#hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jlj( jlj) j* j+ uh1jhhhjWQhNhNubj- )}(hX**Parameters** ``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to add or remove ``bool evict`` indicates whether the object is evicted **Description** Adds a :c:type:`drm_gpuvm_bo` to or removes it from the :c:type:`drm_gpuvm`'s evicted list.h](h)}(h**Parameters**h]j7 )}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjtubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjpubjM )}(hhh](jR )}(hK``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to add or remove h](jX )}(h``struct drm_gpuvm_bo *vm_bo``h]j^ )}(hjh]hstruct drm_gpuvm_bo *vm_bo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhMhjubh to add or remove}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h7``bool evict`` indicates whether the object is evicted h](jX )}(h``bool evict``h]j^ )}(hjh]h bool evict}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(h'indicates whether the object is evictedh]h'indicates whether the object is evicted}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjpubh)}(h**Description**h]j7 )}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj*ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjpubh)}(h[Adds a :c:type:`drm_gpuvm_bo` to or removes it from the :c:type:`drm_gpuvm`'s evicted list.h](hAdds a }(hjBhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjLh]h drm_gpuvm_bo}(hjNhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjJubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjBubh to or removes it from the }(hjBhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjph]h drm_gpuvm}(hjrhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjnubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjihMhjBubh’s evicted list.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjihMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_insert (C function)c.drm_gpuva_inserthNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gpuva_inserth]j)}(hdrm_gpuva_inserth]hdrm_gpuva_insert}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h/(struct drm_gpuvm *gpuvm, struct drm_gpuva *va)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuva_insertasbuh1hhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_gpuva *vah](j)}(hj? h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j.c.drm_gpuva_insertasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hvah]hva}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j.c.drm_gpuva_insertasbj drm_gpuvauh1hhjľhMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j#j( j#j) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj+ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj'ubjM )}(hhh](jR )}(hY``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to insert the :c:type:`drm_gpuva` in h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjLh]hstruct drm_gpuvm *gpuvm}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjJubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjFubjt )}(hhh]h)}(h)}(h(struct drm_gpuva *va)h]jD)}(hstruct drm_gpuva *vah](j)}(hj? h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjGmodnameN classnameNjj)}j]j)}j}j sbc.drm_gpuva_removeasbuh1hhj#ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hvah]hva}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM hjhhubj )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jac.drm_gpuva_removeasbj drm_gpuvauh1hhjľhMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(hXA**Parameters** ``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to remove **Description** This removes the given :c:type:`va` from the underlying 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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh]jR )}(h;``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to remove h](jX )}(h``struct drm_gpuva *va``h]j^ )}(hj h]hstruct drm_gpuva *va}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj ubjt )}(hhh]h)}(h!the :c:type:`drm_gpuva` to removeh](hthe }(hj( hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj2 h]h drm_gpuva}(hj4 hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj0 ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhj$ hM hj( ubh to remove}(hj( hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj$ hM hj% ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj$ hM hj ubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjm h]h Description}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjk ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(h=This removes the given :c:type:`va` from the underlying tree.h](hThis removes the given }(hj hhhNhNubh)}(h :c:type:`va`h]j^ )}(hj h]hva}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j vauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj ubh from the underlying tree.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhjubh)}(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().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_link (C function)c.drm_gpuva_linkhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM&ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hM&ubj)}(hdrm_gpuva_linkh]j)}(hdrm_gpuva_linkh]hdrm_gpuva_link}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhj hM&ubj>)}(h2(struct drm_gpuva *va, struct drm_gpuvm_bo *vm_bo)h](jD)}(hstruct drm_gpuva *vah](j)}(hj? h]hstruct}(hj! hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj. hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj? hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj< ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjA modnameN classnameNjj)}j]j)}j}j sbc.drm_gpuva_linkasbuh1hhj ubj)}(h h]h }(hj_ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjm hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hvah]hva}(hjz hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubjD)}(hstruct drm_gpuvm_bo *vm_boh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j[ c.drm_gpuva_linkasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hvm_boh]hvm_bo}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubeh}(h]h ]h"]h$]h&]jjuh1j=hj hhhj hM&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM&ubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj hM&hj hhubj )}(hhh]h)}(hlink a :c:type:`drm_gpuva`h](hlink a }(hj hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj h]h drm_gpuva}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j[ c.drm_gpuva_linkasbj drm_gpuvauh1hhjľhMhj ubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM&hj hhubah}(h]h ]h"]h$]h&]uh1j hj hhhj hM&ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jP j( jP j) j* j+ uh1jhhhjWQhNhNubj- )}(hXm**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 GEM's dma-resv or gpuva.lock mutex.h](h)}(h**Parameters**h]j7 )}(hjZ h]h Parameters}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjX ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM*hjT ubjM )}(hhh](jR )}(h9``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to link h](jX )}(h``struct drm_gpuva *va``h]j^ )}(hjy h]hstruct drm_gpuva *va}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjw ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM'hjs ubjt )}(hhh]h)}(hthe :c:type:`drm_gpuva` to linkh](hthe }(hj hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj h]h drm_gpuva}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhj hM'hj ubh to link}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hM'hj ubah}(h]h ]h"]h$]h&]uh1js hjs ubeh}(h]h ]h"]h$]h&]uh1jQ hj hM'hjp ubjR )}(h\``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` to add the :c:type:`drm_gpuva` to h](jX )}(h``struct drm_gpuvm_bo *vm_bo``h]j^ )}(hj h]hstruct drm_gpuvm_bo *vm_bo}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM(hj ubjt )}(hhh]h)}(h)}(h(struct drm_gpuva *va)h]jD)}(hstruct drm_gpuva *vah](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}j sbc.drm_gpuva_unlinkasbuh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hvah]hva}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubah}(h]h ]h"]h$]h&]jjuh1j=hj hhhj hMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMFubah}(h]j~ ah ](jjeh"]h$]h&]j j )j huh1jhj hMFhj hhubj )}(hhh]h)}(hunlink a :c:type:`drm_gpuva`h](h unlink a }(hjKhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjUh]h drm_gpuva}(hjWhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjSubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gpuva_unlinkasbj drm_gpuvauh1hhjľhMhjKubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMFhjHhhubah}(h]h ]h"]h$]h&]uh1j hj hhhj hMFubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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 GEM's dma-resv or gpuva.lock mutex.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMJhjubjM )}(hhh]jR )}(h;``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to unlink h](jX )}(h``struct drm_gpuva *va``h]j^ )}(hjh]hstruct drm_gpuva *va}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMGhjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjhMGhjubh to unlink}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMGhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMIhjubh)}(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 }(hj$hhhNhNubh)}(h :c:type:`va`h]j^ )}(hj.h]hva}(hj0hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj,ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j vauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMHhj$ubh from the GPU VA list of the }(hj$hhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjRh]hdrm_gem_object}(hjThhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjPubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjKhMHhj$ubh it is associated with.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKhMHhjubh)}(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 }(hjyhhhNhNubh)}(h :c:type:`va`h]j^ )}(hjh]hva}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j vauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMKhjyubh from the GPU VA list of the }(hjyhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhMKhjyubh and the }(hjyhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhMKhjyubh from the }(hjyhhhNhNubh)}(h:c:type:`drm_gem_object`h]j^ )}(hjh]hdrm_gem_object}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gem_objectuh1hhjhMKhjyubh: it is associated with in case this call unlinks the last }(hjyhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjhMKhjyubh from the }hjysbh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hj3h]h drm_gpuvm_bo}(hj5hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj1ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhMKhjyubh.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMKhjubh)}(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 }(hjZhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjdh]h drm_gpuva}(hjfhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjbubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMOhjZubh entry removed from the }(hjZhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjh]h drm_gpuvm_bo}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjhMOhjZubh& a reference of the latter is dropped.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMOhjubh)}(hThis function expects the caller to protect the GEM's GPUVA list against concurrent access using either the GEM's dma-resv or gpuva.lock mutex.h]hThis function expects the caller to protect the GEM’s GPUVA list against concurrent access using either the GEM’s dma-resv or gpuva.lock mutex.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_gpuva_unlink_defer (C function)c.drm_gpuva_unlink_deferhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h2void drm_gpuva_unlink_defer (struct drm_gpuva *va)h]j)}(h1void drm_gpuva_unlink_defer(struct drm_gpuva *va)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMhubj)}(hdrm_gpuva_unlink_deferh]j)}(hdrm_gpuva_unlink_deferh]hdrm_gpuva_unlink_defer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMhubj>)}(h(struct drm_gpuva *va)h]jD)}(hstruct drm_gpuva *vah](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj;modnameN classnameNjj)}j]j)}j}jsbc.drm_gpuva_unlink_deferasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvah]hva}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMhubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhhjhhubj )}(hhh]h)}(h8unlink a :c:type:`drm_gpuva` with deferred vm_bo cleanuph](h unlink a }(hjhhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjh]h drm_gpuva}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jUc.drm_gpuva_unlink_deferasbj drm_gpuvauh1hhjľhMhjubh with deferred vm_bo cleanup}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMhubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(h**Parameters** ``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to unlink **Description** Similar to drm_gpuva_unlink(), but uses drm_gpuvm_bo_put_deferred() and takes the lock for the caller.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMlhjubjM )}(hhh]jR )}(h;``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to unlink h](jX )}(h``struct drm_gpuva *va``h]j^ )}(hjh]hstruct drm_gpuva *va}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMihjubjt )}(hhh]h)}(h!the :c:type:`drm_gpuva` to unlinkh](hthe }(hj hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj*h]h drm_gpuva}(hj,hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj(ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhjhMihj ubh to unlink}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMihjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMihjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjcubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMkhjubh)}(hfSimilar to drm_gpuva_unlink(), but uses drm_gpuvm_bo_put_deferred() and takes the lock for the caller.h]hfSimilar to drm_gpuva_unlink(), but uses drm_gpuvm_bo_put_deferred() and takes the lock for the caller.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMjhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_gpuva_find_first (C function)c.drm_gpuva_find_firsthNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_gpuva_find_firstsbc.drm_gpuva_find_firstasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gpuva_find_firsth]j)}(hjh]hdrm_gpuva_find_first}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjDmodnameN classnameNjj)}j]jc.drm_gpuva_find_firstasbuh1hhj ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hgpuvmh]hgpuvm}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuva_find_firstasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuva_find_firstasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrangeh]hrange}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h5find the first :c:type:`drm_gpuva` in the given rangeh](hfind the first }(hj5hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj?h]h drm_gpuva}(hjAhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj=ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gpuva_find_firstasbj drm_gpuvauh1hhjľhMhj5ubh in the given range}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj2hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' juj( juj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj}ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjyubjM )}(hhh](jR )}(hA``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to search in h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhMhjubh to search in}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h.``u64 addr`` the :c:type:`drm_gpuvas` address h](jX )}(h ``u64 addr``h]j^ )}(hjh]hu64 addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvasuh1hhjhMhjubh address}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h-``u64 range`` the :c:type:`drm_gpuvas` range h](jX )}(h ``u64 range``h]j^ )}(hjVh]h u64 range}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjTubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjPubjt )}(hhh]h)}(hthe :c:type:`drm_gpuvas` rangeh](hthe }(hjohhhNhNubh)}(h:c:type:`drm_gpuvas`h]j^ )}(hjyh]h drm_gpuvas}(hj{hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjwubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvasuh1hhjkhMhjoubh range}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1js hjPubeh}(h]h ]h"]h$]h&]uh1jQ hjkhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjyubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjyubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh within the given range}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_find (C function)c.drm_gpuva_findhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hMubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj=modnameN classnameNjj)}j]j)}j}drm_gpuva_findsbc.drm_gpuva_findasbuh1hhjhhhj)hMubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hMubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hMubj)}(hdrm_gpuva_findh]j)}(hjYh]hdrm_gpuva_find}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj)hMubj>)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jWc.drm_gpuva_findasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]jWc.drm_gpuva_findasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjSmodnameN classnameNjj)}j]jWc.drm_gpuva_findasbuh1hhjJubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hrangeh]hrange}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj)hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj)hMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj)hMhjhhubj )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jWc.drm_gpuva_findasbj drm_gpuvauh1hhjľhMhjubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhj)hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh](jR )}(hA``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to search in h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj h]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(h$the :c:type:`drm_gpuvm` to search inh](hthe }(hj%hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj/h]h drm_gpuvm}(hj1hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj-ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj!hMhj%ubh to search in}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj!hMhjubjR )}(h.``u64 addr`` the :c:type:`drm_gpuvas` address h](jX )}(h ``u64 addr``h]j^ )}(hjhh]hu64 addr}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjfubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjbubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvasuh1hhj}hMhjubh address}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1js hjbubeh}(h]h ]h"]h$]h&]uh1jQ hj}hMhjubjR )}(h-``u64 range`` the :c:type:`drm_gpuvas` range h](jX )}(h ``u64 range``h]j^ )}(hjh]h u64 range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(hthe :c:type:`drm_gpuvas` rangeh](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvas`h]j^ )}(hjh]h drm_gpuvas}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvasuh1hhjhMhjubh range}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h **Return**h]j7 )}(hj"h]hReturn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hRthe :c:type:`drm_gpuva` at a given :c:type:`addr` and with a given :c:type:`range`h](hthe }(hj8hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjBh]h drm_gpuva}(hjDhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj8ubh at a given }(hj8hhhNhNubh)}(h:c:type:`addr`h]j^ )}(hjfh]haddr}(hjhhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjdubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j addruh1hhj_hMhj8ubh and with a given }(hj8hhhNhNubh)}(h:c:type:`range`h]j^ )}(hjh]hrange}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j rangeuh1hhj_hMhj8ubeh}(h]h ]h"]h$]h&]uh1hhj_hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_gpuvm_interval_empty (C function)c.drm_gpuvm_interval_emptyhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gpuvm_interval_emptyh]j)}(hdrm_gpuvm_interval_emptyh]hdrm_gpuvm_interval_empty}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj(modnameN classnameNjj)}j]j)}j}jsbc.drm_gpuvm_interval_emptyasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jBc.drm_gpuvm_interval_emptyasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jBc.drm_gpuvm_interval_emptyasbuh1hhjubj )}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrangeh]hrange}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(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:525: ./drivers/gpu/drm/drm_gpuvm.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j3j( j3j) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj;ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj7ubjM )}(hhh](jR )}(hK``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` to check the range for h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj\h]hstruct drm_gpuvm *gpuvm}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjZubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjVubjt )}(hhh]h)}(h.the :c:type:`drm_gpuvm` to check the range forh](hthe }(hjuhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj}ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjqhMhjuubh to check the range for}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1js hjVubeh}(h]h ]h"]h$]h&]uh1jQ hjqhMhjSubjR )}(h,``u64 addr`` the start address of the range h](jX )}(h ``u64 addr``h]j^ )}(hjh]hu64 addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(hthe start address of the rangeh]hthe start address of the range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjSubjR )}(h(``u64 range`` the range of the interval h](jX )}(h ``u64 range``h]j^ )}(hjh]h u64 range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(hthe range of the intervalh]hthe range of the interval}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjSubeh}(h]h ]h"]h$]h&]uh1jL hj7ubh)}(h **Return**h]j7 )}(hj,h]hReturn}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj*ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj7ubh)}(h.true if the interval is empty, false otherwiseh]h.true if the interval is empty, false otherwise}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_map (C function)c.drm_gpuva_maphNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hevoid drm_gpuva_map (struct drm_gpuvm *gpuvm, struct drm_gpuva *va, const struct drm_gpuva_op_map *op)h]j)}(hdvoid drm_gpuva_map(struct drm_gpuvm *gpuvm, struct drm_gpuva *va, const struct drm_gpuva_op_map *op)h](j)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjhMubj)}(h drm_gpuva_maph]j)}(h drm_gpuva_maph]h drm_gpuva_map}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjmhhhjhMubj>)}(hR(struct drm_gpuvm *gpuvm, struct drm_gpuva *va, const struct drm_gpuva_op_map *op)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_gpuva_mapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgpuvmh]hgpuvm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_gpuva *vah](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj@modnameN classnameNjj)}j]jc.drm_gpuva_mapasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvah]hva}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h!const struct drm_gpuva_op_map *oph](j)}(hjJh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpuva_op_maph]hdrm_gpuva_op_map}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_gpuva_mapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hoph]hop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjmhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhMubah}(h]jdah ](jjeh"]h$]h&]j j )j huh1jhjhMhjfhhubj )}(hhh]h)}(hPhelper to insert a :c:type:`drm_gpuva` according to a :c:type:`drm_gpuva_op_map`h](hhelper to insert a }(hj,hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj6h]h drm_gpuva}(hj8hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj4ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jc.drm_gpuva_mapasbj drm_gpuvauh1hhjľhMhj,ubh according to a }(hj,hhhNhNubh)}(h:c:type:`drm_gpuva_op_map`h]j^ )}(hj^h]hdrm_gpuva_op_map}(hj`hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj\ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjjRj drm_gpuva_op_mapuh1hhjľhMhj,ubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj)hhubah}(h]h ]h"]h$]h&]uh1j hjfhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjWQhNhNubj- )}(hXG**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` ``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to insert ``const struct drm_gpuva_op_map *op`` the :c:type:`drm_gpuva_op_map` to initialize **va** with **Description** Initializes the **va** from the **op** and inserts it into the given **gpuvm**.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjM )}(hhh](jR )}(h4``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjh]hstruct drm_gpuvm *gpuvm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(hthe :c:type:`drm_gpuvm`h](hthe }(hjhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjh]h drm_gpuvm}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h;``struct drm_gpuva *va`` the :c:type:`drm_gpuva` to insert h](jX )}(h``struct drm_gpuva *va``h]j^ )}(hj h]hstruct drm_gpuva *va}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubjt )}(hhh]h)}(h!the :c:type:`drm_gpuva` to inserth](hthe }(hj%hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj/h]h drm_gpuva}(hj1hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj-ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhj!hMhj%ubh to insert}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj!hMhjubjR )}(h_``const struct drm_gpuva_op_map *op`` the :c:type:`drm_gpuva_op_map` to initialize **va** with h](jX )}(h%``const struct drm_gpuva_op_map *op``h]j^ )}(hjhh]h!const struct drm_gpuva_op_map *op}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjfubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjbubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_op_mapuh1hhj}hMhjubh to initialize }(hjhhhNhNubj7 )}(h**va**h]hva}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh with}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1js hjbubeh}(h]h ]h"]h$]h&]uh1jQ hj}hMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubh)}(hOInitializes the **va** from the **op** and inserts it into the given **gpuvm**.h](hInitializes the }(hjhhhNhNubj7 )}(h**va**h]hva}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh from the }(hjhhhNhNubj7 )}(h**op**h]hop}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh and inserts it into the given }(hjhhhNhNubj7 )}(h **gpuvm**h]hgpuvm}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_remap (C function)c.drm_gpuva_remaphNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hjvoid drm_gpuva_remap (struct drm_gpuva *prev, struct drm_gpuva *next, const struct drm_gpuva_op_remap *op)h]j)}(hivoid drm_gpuva_remap(struct drm_gpuva *prev, struct drm_gpuva *next, const struct drm_gpuva_op_remap *op)h](j)}(hvoidh]hvoid}(hjS hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjb hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO hhhja hMubj)}(hdrm_gpuva_remaph]j)}(hdrm_gpuva_remaph]hdrm_gpuva_remap}(hjt hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjO hhhja hMubj>)}(hU(struct drm_gpuva *prev, struct drm_gpuva *next, const struct drm_gpuva_op_remap *op)h](jD)}(hstruct drm_gpuva *prevh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}jv sbc.drm_gpuva_remapasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hprevh]hprev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubjD)}(hstruct drm_gpuva *nexth](j)}(hj? h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h drm_gpuvah]h drm_gpuva}(hj !hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj"!modnameN classnameNjj)}j]j c.drm_gpuva_remapasbuh1hhj ubj)}(h h]h }(hj>!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjL!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hnexth]hnext}(hjY!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubjD)}(h#const struct drm_gpuva_op_remap *oph](j)}(hjJh]hconst}(hjr!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn!ubj)}(hj? h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn!ubh)}(hhh]j)}(hdrm_gpuva_op_remaph]hdrm_gpuva_op_remap}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj!modnameN classnameNjj)}j]j c.drm_gpuva_remapasbuh1hhjn!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn!ubj)}(hoph]hop}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubeh}(h]h ]h"]h$]h&]jjuh1j=hjO hhhja hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjK hhhja hMubah}(h]jF ah ](jjeh"]h$]h&]j j )j huh1jhja hMhjH hhubj )}(hhh]h)}(hQhelper to remap a :c:type:`drm_gpuva` according to a :c:type:`drm_gpuva_op_remap`h](hhelper to remap a }(hj"hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj"h]h drm_gpuva}(hj"hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj"ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j c.drm_gpuva_remapasbj drm_gpuvauh1hhjľhMhj"ubh according to a }(hj"hhhNhNubh)}(h:c:type:`drm_gpuva_op_remap`h]j^ )}(hj@"h]hdrm_gpuva_op_remap}(hjB"hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj>"ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj4"j drm_gpuva_op_remapuh1hhjľhMhj"ubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj "hhubah}(h]h ]h"]h$]h&]uh1j hjH hhhja hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jm"j( jm"j) j* j+ uh1jhhhjWQhNhNubj- )}(hX**Parameters** ``struct drm_gpuva *prev`` the :c:type:`drm_gpuva` to remap when keeping the start of a mapping ``struct drm_gpuva *next`` the :c:type:`drm_gpuva` to remap when keeping the end of a mapping ``const struct drm_gpuva_op_remap *op`` the :c:type:`drm_gpuva_op_remap` to initialize **prev** and **next** with **Description** Removes the currently mapped :c:type:`drm_gpuva` and remaps it using **prev** and/or **next**.h](h)}(h**Parameters**h]j7 )}(hjw"h]h Parameters}(hjy"hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hju"ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjq"ubjM )}(hhh](jR )}(h```struct drm_gpuva *prev`` the :c:type:`drm_gpuva` to remap when keeping the start of a mapping h](jX )}(h``struct drm_gpuva *prev``h]j^ )}(hj"h]hstruct drm_gpuva *prev}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj"ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj"ubjt )}(hhh]h)}(hDthe :c:type:`drm_gpuva` to remap when keeping the start of a mappingh](hthe }(hj"hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj"h]h drm_gpuva}(hj"hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj"ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhj"hMhj"ubh- to remap when keeping the start of a mapping}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1js hj"ubeh}(h]h ]h"]h$]h&]uh1jQ hj"hMhj"ubjR )}(h^``struct drm_gpuva *next`` the :c:type:`drm_gpuva` to remap when keeping the end of a mapping h](jX )}(h``struct drm_gpuva *next``h]j^ )}(hj"h]hstruct drm_gpuva *next}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj"ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj"ubjt )}(hhh]h)}(hBthe :c:type:`drm_gpuva` to remap when keeping the end of a mappingh](hthe }(hj #hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj#h]h drm_gpuva}(hj#hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhj#hMhj #ubh+ to remap when keeping the end of a mapping}(hj #hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1js hj"ubeh}(h]h ]h"]h$]h&]uh1jQ hj#hMhj"ubjR )}(hr``const struct drm_gpuva_op_remap *op`` the :c:type:`drm_gpuva_op_remap` to initialize **prev** and **next** with h](jX )}(h'``const struct drm_gpuva_op_remap *op``h]j^ )}(hjN#h]h#const struct drm_gpuva_op_remap *op}(hjP#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjL#ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjH#ubjt )}(hhh]h)}(hIthe :c:type:`drm_gpuva_op_remap` to initialize **prev** and **next** withh](hthe }(hjg#hhhNhNubh)}(h:c:type:`drm_gpuva_op_remap`h]j^ )}(hjq#h]hdrm_gpuva_op_remap}(hjs#hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjo#ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_op_remapuh1hhjc#hMhjg#ubh to initialize }(hjg#hhhNhNubj7 )}(h**prev**h]hprev}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjg#ubh and }(hjg#hhhNhNubj7 )}(h**next**h]hnext}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjg#ubh with}(hjg#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjc#hMhjd#ubah}(h]h ]h"]h$]h&]uh1js hjH#ubeh}(h]h ]h"]h$]h&]uh1jQ hjc#hMhj"ubeh}(h]h ]h"]h$]h&]uh1jL hjq"ubh)}(h**Description**h]j7 )}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj#ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjq"ubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj#ubh and remaps it using }(hj#hhhNhNubj7 )}(h**prev**h]hprev}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj#ubh and/or }(hj#hhhNhNubj7 )}(h**next**h]hnext}(hj$$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj#ubh.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj $hMhjq"ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_unmap (C function)c.drm_gpuva_unmaphNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h:void drm_gpuva_unmap (const struct drm_gpuva_op_unmap *op)h]j)}(h9void drm_gpuva_unmap(const struct drm_gpuva_op_unmap *op)h](j)}(hvoidh]hvoid}(hj\$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX$hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMubj)}(h h]h }(hjk$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX$hhhjj$hMubj)}(hdrm_gpuva_unmaph]j)}(hdrm_gpuva_unmaph]hdrm_gpuva_unmap}(hj}$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy$ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjX$hhhjj$hMubj>)}(h%(const struct drm_gpuva_op_unmap *op)h]jD)}(h#const struct drm_gpuva_op_unmap *oph](j)}(hjJh]hconst}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hj? h]hstruct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]j)}(hdrm_gpuva_op_unmaph]hdrm_gpuva_op_unmap}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj$modnameN classnameNjj)}j]j)}j}j$sbc.drm_gpuva_unmapasbuh1hhj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hoph]hop}(hj %hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj$ubah}(h]h ]h"]h$]h&]jjuh1j=hjX$hhhjj$hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjT$hhhjj$hMubah}(h]jO$ah ](jjeh"]h$]h&]j j )j huh1jhjj$hMhjQ$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 }(hj7%hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hjA%h]h drm_gpuva}(hjC%hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj?%ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j$c.drm_gpuva_unmapasbj drm_gpuvauh1hhjľhMhj7%ubh according to a }(hj7%hhhNhNubh)}(h:c:type:`drm_gpuva_op_unmap`h]j^ )}(hji%h]hdrm_gpuva_op_unmap}(hjk%hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjg%ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj]%j drm_gpuva_op_unmapuh1hhjľhMhj7%ubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj4%hhubah}(h]h ]h"]h$]h&]uh1j hjQ$hhhjj$hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j%j( j%j) j* j+ uh1jhhhjWQhNhNubj- )}(h**Parameters** ``const struct drm_gpuva_op_unmap *op`` the :c:type:`drm_gpuva_op_unmap` specifying the :c:type:`drm_gpuva` to remove **Description** Removes the :c:type:`drm_gpuva` associated with the :c:type:`drm_gpuva_op_unmap`.h](h)}(h**Parameters**h]j7 )}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj%ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj%ubjM )}(hhh]jR )}(hv``const struct drm_gpuva_op_unmap *op`` the :c:type:`drm_gpuva_op_unmap` specifying the :c:type:`drm_gpuva` to remove h](jX )}(h'``const struct drm_gpuva_op_unmap *op``h]j^ )}(hj%h]h#const struct drm_gpuva_op_unmap *op}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj%ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhj%ubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hj%ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_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 ](j j! c-typeeh"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhj%hMhj%ubh to remove}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1js hj%ubeh}(h]h ]h"]h$]h&]uh1jQ hj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jL hj%ubh)}(h**Description**h]j7 )}(hj@&h]h Description}(hjB&hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj>&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj%ubh)}(hQRemoves the :c:type:`drm_gpuva` associated with the :c:type:`drm_gpuva_op_unmap`.h](h Removes the }(hjV&hhhNhNubh)}(h:c:type:`drm_gpuva`h]j^ )}(hj`&h]h drm_gpuva}(hjb&hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj^&ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvauh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMhjV&ubh associated with the }(hjV&hhhNhNubh)}(h:c:type:`drm_gpuva_op_unmap`h]j^ )}(hj&h]hdrm_gpuva_op_unmap}(hj&hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_op_unmapuh1hhj}&hMhjV&ubh.}(hjV&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}&hMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_sm_map (C function)c.drm_gpuvm_sm_maphNtauh1jhjWQhhhNhNubj)}(hhh](j)}(h_int drm_gpuvm_sm_map (struct drm_gpuvm *gpuvm, void *priv, const struct drm_gpuvm_map_req *req)h]j)}(h^int drm_gpuvm_sm_map(struct drm_gpuvm *gpuvm, void *priv, const struct drm_gpuvm_map_req *req)h](j)}(hinth]hint}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM+ ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj&hM+ ubj)}(hdrm_gpuvm_sm_maph]j)}(hdrm_gpuvm_sm_maph]hdrm_gpuvm_sm_map}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj&hhhj&hM+ ubj>)}(hJ(struct drm_gpuvm *gpuvm, void *priv, const struct drm_gpuvm_map_req *req)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj&'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#'ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj('modnameN classnameNjj)}j]j)}j}j&sbc.drm_gpuvm_sm_mapasbuh1hhj'ubj)}(h h]h }(hjF'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjT'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hgpuvmh]hgpuvm}(hja'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj'ubjD)}(h void *privh](j)}(hvoidh]hvoid}(hjz'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv'ubj)}(hprivh]hpriv}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj'ubjD)}(h#const struct drm_gpuvm_map_req *reqh](j)}(hjJh]hconst}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hj? h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j)}(hdrm_gpuvm_map_reqh]hdrm_gpuvm_map_req}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj'modnameN classnameNjj)}j]jB'c.drm_gpuvm_sm_mapasbuh1hhj'ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hj!(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hreqh]hreq}(hj.(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj'ubeh}(h]h ]h"]h$]h&]jjuh1j=hj&hhhj&hM+ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhj&hM+ ubah}(h]j&ah ](jjeh"]h$]h&]j j )j huh1jhj&hM+ hj&hhubj )}(hhh]h)}(h2calls the :c:type:`drm_gpuva_op` split/merge stepsh](h calls the }(hjX(hhhNhNubh)}(h:c:type:`drm_gpuva_op`h]j^ )}(hjb(h]h drm_gpuva_op}(hjd(hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj`(ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jB'c.drm_gpuvm_sm_mapasbj drm_gpuva_opuh1hhjľhMhjX(ubh split/merge steps}(hjX(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM+ hjU(hhubah}(h]h ]h"]h$]h&]uh1j hj&hhhj&hM+ ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j(j( j(j) j* j+ uh1jhhhjWQhNhNubj- )}(hXy**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``void *priv`` pointer to a driver private data structure ``const struct drm_gpuvm_map_req *req`` ptr to struct drm_gpuvm_map_req **Description** This function iterates the given range of the GPU VA space. It utilizes the :c:type:`drm_gpuvm_ops` to call back into the driver providing the split and merge steps. Drivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor :c:type:`drm_gpuvm_sm_unmap` is allowed to be called before the :c:type:`drm_gpuvm`'s view of the GPU VA space was updated with the previous set of operations. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used. A sequence of callbacks can contain map, unmap and remap operations, but the sequence of callbacks might also be empty if no operation is required, e.g. if the requested mapping already exists in the exact same way. There can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller. **Return** 0 on success or a negative error codeh](h)}(h**Parameters**h]j7 )}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM/ hj(ubjM )}(hhh](jR )}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj(h]hstruct drm_gpuvm *gpuvm}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj(ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM, hj(ubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hj(ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j 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&]uh1js hj(ubeh}(h]h ]h"]h$]h&]uh1jQ hj(hM, hj(ubjR )}(h:``void *priv`` pointer to a driver private data structure h](jX )}(h``void *priv``h]j^ )}(hj)h]h void *priv}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj)ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM- hj)ubjt )}(hhh]h)}(h*pointer to a driver private data structureh]h*pointer to a driver private data structure}(hj6)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2)hM- hj3)ubah}(h]h ]h"]h$]h&]uh1js hj)ubeh}(h]h ]h"]h$]h&]uh1jQ hj2)hM- hj(ubjR )}(hH``const struct drm_gpuvm_map_req *req`` ptr to struct drm_gpuvm_map_req h](jX )}(h'``const struct drm_gpuvm_map_req *req``h]j^ )}(hjV)h]h#const struct drm_gpuvm_map_req *req}(hjX)hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjT)ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM. hjP)ubjt )}(hhh]h)}(hptr to struct drm_gpuvm_map_reqh]hptr to struct drm_gpuvm_map_req}(hjo)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk)hM. hjl)ubah}(h]h ]h"]h$]h&]uh1js hjP)ubeh}(h]h ]h"]h$]h&]uh1jQ hjk)hM. hj(ubeh}(h]h ]h"]h$]h&]uh1jL hj(ubh)}(h**Description**h]j7 )}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj)ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM0 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 }(hj)hhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j^ )}(hj)h]h drm_gpuvm_ops}(hj)hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj)ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM/ hj)ubhB to call back into the driver providing the split and merge steps.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj)hM/ hj(ubh)}(hXDrivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor :c:type:`drm_gpuvm_sm_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 }(hj)hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_unmap`h]j^ )}(hj)h]hdrm_gpuvm_sm_unmap}(hj)hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj)ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_unmapuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM3 hj)ubh$ is allowed to be called before the }(hj)hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj*h]h drm_gpuvm}(hj *hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj*ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj*hM3 hj)ubh]’s view of the GPU VA space was updated with the previous set of operations. To update the }(hj)hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj**h]h drm_gpuvm}(hj,*hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj(*ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj*hM3 hj)ubh’s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj*hM3 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.}(hjQ*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./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:525: ./drivers/gpu/drm/drm_gpuvm.chM@ hj(ubh)}(h **Return**h]j7 )}(hjq*h]hReturn}(hjs*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjo*ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMD hj(ubh)}(h%0 on success or a negative error codeh]h%0 on success or a negative error code}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chME hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuvm_sm_unmap (C function)c.drm_gpuvm_sm_unmaphNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMW ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj*hMW ubj)}(hdrm_gpuvm_sm_unmaph]j)}(hdrm_gpuvm_sm_unmaph]hdrm_gpuvm_sm_unmap}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj*hhhj*hMW ubj>)}(hB(struct drm_gpuvm *gpuvm, void *priv, u64 req_addr, u64 req_range)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj+modnameN classnameNjj)}j]j)}j}j*sbc.drm_gpuvm_sm_unmapasbuh1hhj*ubj)}(h h]h }(hj1+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hj?+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hgpuvmh]hgpuvm}(hjL+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj*ubjD)}(h void *privh](j)}(hvoidh]hvoid}(hje+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja+ubj)}(h h]h }(hjs+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja+ubj)}(hprivh]hpriv}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj*ubjD)}(h u64 req_addrh](h)}(hhh]j)}(hu64h]hu64}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj+modnameN classnameNjj)}j]j-+c.drm_gpuvm_sm_unmapasbuh1hhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hreq_addrh]hreq_addr}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj*ubjD)}(h u64 req_rangeh](h)}(hhh]j)}(hu64h]hu64}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj+modnameN classnameNjj)}j]j-+c.drm_gpuvm_sm_unmapasbuh1hhj+ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h req_rangeh]h req_range}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj*ubeh}(h]h ]h"]h$]h&]jjuh1j=hj*hhhj*hMW ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj*hMW ubah}(h]j*ah ](jjeh"]h$]h&]j j )j huh1jhj*hMW hj*hhubj )}(hhh]h)}(h3calls the :c:type:`drm_gpuva_ops` to split on unmaph](h calls the }(hjH,hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjR,h]h drm_gpuva_ops}(hjT,hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjP,ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j-+c.drm_gpuvm_sm_unmapasbj drm_gpuva_opsuh1hhjľhMhjH,ubh to split on unmap}(hjH,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMW hjE,hhubah}(h]h ]h"]h$]h&]uh1j hj*hhhj*hMW ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j,j( j,j) j* j+ uh1jhhhjWQhNhNubj- )}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``void *priv`` pointer to a driver private data structure ``u64 req_addr`` the start address of the range to unmap ``u64 req_range`` the range of the mappings to unmap **Description** This function iterates the given range of the GPU VA space. It utilizes the :c:type:`drm_gpuvm_ops` to call back into the driver providing the operations to unmap and, if required, split existing mappings. Drivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor :c:type:`drm_gpuvm_sm_map` is allowed to be called before the :c:type:`drm_gpuvm`'s view of the GPU VA space was updated with the previous set of operations. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used. A sequence of callbacks can contain unmap and remap operations, depending on whether there are actual overlapping mappings to split. There can be an arbitrary amount of unmap operations and a maximum of two remap operations. **Return** 0 on success or a negative error codeh](h)}(h**Parameters**h]j7 )}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj,ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM[ hj,ubjM )}(hhh](jR )}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj,h]hstruct drm_gpuvm *gpuvm}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj,ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMX hj,ubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hj,ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj,hMX hj,ubh representing the GPU VA space}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hMX hj,ubah}(h]h ]h"]h$]h&]uh1js hj,ubeh}(h]h ]h"]h$]h&]uh1jQ hj,hMX hj,ubjR )}(h:``void *priv`` pointer to a driver private data structure h](jX )}(h``void *priv``h]j^ )}(hj -h]h void *priv}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj -ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMY hj-ubjt )}(hhh]h)}(h*pointer to a driver private data structureh]h*pointer to a driver private data structure}(hj&-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"-hMY hj#-ubah}(h]h ]h"]h$]h&]uh1js hj-ubeh}(h]h ]h"]h$]h&]uh1jQ hj"-hMY hj,ubjR )}(h9``u64 req_addr`` the start address of the range to unmap h](jX )}(h``u64 req_addr``h]j^ )}(hjF-h]h u64 req_addr}(hjH-hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjD-ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMZ hj@-ubjt )}(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&]uh1js hj@-ubeh}(h]h ]h"]h$]h&]uh1jQ hj[-hMZ hj,ubjR )}(h5``u64 req_range`` the range of the mappings to unmap h](jX )}(h``u64 req_range``h]j^ )}(hj-h]h u64 req_range}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj}-ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM[ hjy-ubjt )}(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&]uh1js hjy-ubeh}(h]h ]h"]h$]h&]uh1jQ hj-hM[ hj,ubeh}(h]h ]h"]h$]h&]uh1jL hj,ubh)}(h**Description**h]j7 )}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj-ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM] hj,ubh)}(hThis function iterates the given range of the GPU VA space. It utilizes the :c:type:`drm_gpuvm_ops` to call back into the driver providing the operations to unmap and, if required, split existing mappings.h](hLThis function iterates the given range of the GPU VA space. It utilizes the }(hj-hhhNhNubh)}(h:c:type:`drm_gpuvm_ops`h]j^ )}(hj-h]h drm_gpuvm_ops}(hj-hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj-ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM\ hj-ubhj to call back into the driver providing the operations to unmap and, if required, split existing mappings.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-hM\ hj,ubh)}(hXDrivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor :c:type:`drm_gpuvm_sm_map` is allowed to be called before the :c:type:`drm_gpuvm`'s view of the GPU VA space was updated with the previous set of operations. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.h](hDrivers may use these callbacks to update the GPU VA space right away within the callback. In case the driver decides to copy and store the operations for later processing neither this function nor }(hj.hhhNhNubh)}(h:c:type:`drm_gpuvm_sm_map`h]j^ )}(hj .h]hdrm_gpuvm_sm_map}(hj.hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj .ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_sm_mapuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM` hj.ubh$ is allowed to be called before the }(hj.hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj0.h]h drm_gpuvm}(hj2.hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj..ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj).hM` hj.ubh]’s view of the GPU VA space was updated with the previous set of operations. To update the }(hj.hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjS.h]h drm_gpuvm}(hjU.hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjQ.ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj).hM` hj.ubh’s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj).hM` hj,ubh)}(hA sequence of callbacks can contain unmap and remap operations, depending on whether there are actual overlapping mappings to split.h]hA sequence of callbacks can contain unmap and remap operations, depending on whether there are actual overlapping mappings to split.}(hjz.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMh hj,ubh)}(h[There can be an arbitrary amount of unmap operations and a maximum of two remap operations.h]h[There can be an arbitrary amount of unmap operations and a maximum of two remap operations.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMk hj,ubh)}(h **Return**h]j7 )}(hj.h]hReturn}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj.ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMn hj,ubh)}(h%0 on success or a negative error codeh]h%0 on success or a negative error code}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMo hj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'drm_gpuvm_sm_map_exec_lock (C function)c.drm_gpuvm_sm_map_exec_lockhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hint drm_gpuvm_sm_map_exec_lock (struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences, struct drm_gpuvm_map_req *req)h]j)}(hint drm_gpuvm_sm_map_exec_lock(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences, struct drm_gpuvm_map_req *req)h](j)}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj.hM ubj)}(hdrm_gpuvm_sm_map_exec_lockh]j)}(hdrm_gpuvm_sm_map_exec_lockh]hdrm_gpuvm_sm_map_exec_lock}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj.hhhj.hM ubj>)}(hh(struct drm_gpuvm *gpuvm, struct drm_exec *exec, unsigned int num_fences, struct drm_gpuvm_map_req *req)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj)/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj:/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7/ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjh]h num_fences}(hj60hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj/ubjD)}(hstruct drm_gpuvm_map_req *reqh](j)}(hj? h]hstruct}(hjO0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK0ubj)}(h h]h }(hj\0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK0ubh)}(hhh]j)}(hdrm_gpuvm_map_reqh]hdrm_gpuvm_map_req}(hjm0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj0ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjo0modnameN classnameNjj)}j]jV/c.drm_gpuvm_sm_map_exec_lockasbuh1hhjK0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK0ubj)}(hreqh]hreq}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj/ubeh}(h]h ]h"]h$]h&]jjuh1j=hj.hhhj.hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhj.hM ubah}(h]j.ah ](jjeh"]h$]h&]j j )j huh1jhj.hM hj.hhubj )}(hhh]h)}(h1locks the objects touched by a drm_gpuvm_sm_map()h]h1locks the objects touched by a drm_gpuvm_sm_map()}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj0hhubah}(h]h ]h"]h$]h&]uh1j hj.hhhj.hM ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j0j( j0j) j* j+ uh1jhhhjWQhNhNubj- )}(hX}**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``struct drm_exec *exec`` the :c:type:`drm_exec` locking context ``unsigned int num_fences`` for newly mapped objects, the # of fences to reserve ``struct drm_gpuvm_map_req *req`` ptr to drm_gpuvm_map_req struct **Description** This function locks (drm_exec_lock_obj()) objects that will be unmapped/ remapped, and locks+prepares (drm_exec_prepare_object()) objects that will be newly mapped. The expected usage is:: vm_bind { struct drm_exec exec; // IGNORE_DUPLICATES is required, INTERRUPTIBLE_WAIT is recommended: drm_exec_init(&exec, IGNORE_DUPLICATES | INTERRUPTIBLE_WAIT, 0); drm_exec_until_all_locked (&exec) { for_each_vm_bind_operation { switch (op->op) { case DRIVER_OP_UNMAP: ret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, &exec, op->addr, op->range); break; case DRIVER_OP_MAP: ret = drm_gpuvm_sm_map_exec_lock(gpuvm, &exec, num_fences, &req); break; } drm_exec_retry_on_contention(&exec); if (ret) return ret; } } } This enables all locking to be performed before the driver begins modifying the VM. This is safe to do in the case of overlapping DRIVER_VM_BIND_OPs, where an earlier op can alter the sequence of steps generated for a later op, because the later altered step will involve the same GEM object(s) already seen in the earlier locking step. For example: 1) An earlier driver DRIVER_OP_UNMAP op removes the need for a DRM_GPUVA_OP_REMAP/UNMAP step. This is safe because we've already locked the GEM object in the earlier DRIVER_OP_UNMAP op. 2) An earlier DRIVER_OP_MAP op overlaps with a later DRIVER_OP_MAP/UNMAP op, introducing a DRM_GPUVA_OP_REMAP/UNMAP that wouldn't have been required without the earlier DRIVER_OP_MAP. This is safe because we've already locked the GEM object in the earlier DRIVER_OP_MAP step. **Return** 0 on success or a negative error codeh](h)}(h**Parameters**h]j7 )}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj0ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj0ubjM )}(hhh](jR )}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj1h]hstruct drm_gpuvm *gpuvm}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj1ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj 1ubjt )}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hj*1hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj41h]h drm_gpuvm}(hj61hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj21ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj&1hM hj*1ubh representing the GPU VA space}(hj*1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&1hM hj'1ubah}(h]h ]h"]h$]h&]uh1js hj 1ubeh}(h]h ]h"]h$]h&]uh1jQ hj&1hM hj1ubjR )}(hA``struct drm_exec *exec`` the :c:type:`drm_exec` locking context h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjm1h]hstruct drm_exec *exec}(hjo1hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjk1ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjg1ubjt )}(hhh]h)}(h&the :c:type:`drm_exec` locking contexth](hthe }(hj1hhhNhNubh)}(h:c:type:`drm_exec`h]j^ )}(hj1h]hdrm_exec}(hj1hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj1ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_execuh1hhj1hM hj1ubh locking context}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1hM hj1ubah}(h]h ]h"]h$]h&]uh1js hjg1ubeh}(h]h ]h"]h$]h&]uh1jQ hj1hM hj1ubjR )}(hQ``unsigned int num_fences`` for newly mapped objects, the # of fences to reserve h](jX )}(h``unsigned int num_fences``h]j^ )}(hj1h]hunsigned int num_fences}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj1ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj1ubjt )}(hhh]h)}(h4for newly mapped objects, the # of fences to reserveh]h4for newly mapped objects, the # of fences to reserve}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM hj1ubah}(h]h ]h"]h$]h&]uh1js hj1ubeh}(h]h ]h"]h$]h&]uh1jQ hj1hM hj1ubjR )}(hB``struct drm_gpuvm_map_req *req`` ptr to drm_gpuvm_map_req struct h](jX )}(h!``struct drm_gpuvm_map_req *req``h]j^ )}(hj2h]hstruct drm_gpuvm_map_req *req}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj2ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj1ubjt )}(hhh]h)}(hptr to drm_gpuvm_map_req structh]hptr to drm_gpuvm_map_req struct}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM hj2ubah}(h]h ]h"]h$]h&]uh1js hj1ubeh}(h]h ]h"]h$]h&]uh1jQ hj2hM hj1ubeh}(h]h ]h"]h$]h&]uh1jL hj0ubh)}(h**Description**h]j7 )}(hj=2h]h Description}(hj?2hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj;2ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj0ubh)}(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.}(hjS2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj0ubh)}(hThe expected usage is::h]hThe expected usage is:}(hjb2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj0ubj )}(hXvm_bind { struct drm_exec exec; // IGNORE_DUPLICATES is required, INTERRUPTIBLE_WAIT is recommended: drm_exec_init(&exec, IGNORE_DUPLICATES | INTERRUPTIBLE_WAIT, 0); drm_exec_until_all_locked (&exec) { for_each_vm_bind_operation { switch (op->op) { case DRIVER_OP_UNMAP: ret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, &exec, op->addr, op->range); break; case DRIVER_OP_MAP: ret = drm_gpuvm_sm_map_exec_lock(gpuvm, &exec, num_fences, &req); break; } drm_exec_retry_on_contention(&exec); if (ret) return ret; } } }h]hXvm_bind { struct drm_exec exec; // IGNORE_DUPLICATES is required, INTERRUPTIBLE_WAIT is recommended: drm_exec_init(&exec, IGNORE_DUPLICATES | INTERRUPTIBLE_WAIT, 0); drm_exec_until_all_locked (&exec) { for_each_vm_bind_operation { switch (op->op) { case DRIVER_OP_UNMAP: ret = drm_gpuvm_sm_unmap_exec_lock(gpuvm, &exec, op->addr, op->range); break; case DRIVER_OP_MAP: ret = drm_gpuvm_sm_map_exec_lock(gpuvm, &exec, num_fences, &req); break; } drm_exec_retry_on_contention(&exec); if (ret) return ret; } } }}hjq2sbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj0ubh)}(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:}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj0ubjJ)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubj)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]jMjMjMhjMjuh1jJhj0ubh)}(h **Return**h]j7 )}(hj2h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj2ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj0ubh)}(h%0 on success or a negative error codeh]h%0 on success or a negative error code}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)drm_gpuvm_sm_unmap_exec_lock (C function)c.drm_gpuvm_sm_unmap_exec_lockhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 3hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM ubj)}(h h]h }(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 3hhhj3hM ubj)}(hdrm_gpuvm_sm_unmap_exec_lockh]j)}(hdrm_gpuvm_sm_unmap_exec_lockh]hdrm_gpuvm_sm_unmap_exec_lock}(hj23hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.3ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj 3hhhj3hM ubj>)}(hM(struct drm_gpuvm *gpuvm, struct drm_exec *exec, u64 req_addr, u64 req_range)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjN3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ3ubj)}(h h]h }(hj[3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ3ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjl3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji3ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjn3modnameN classnameNjj)}j]j)}j}j43sbc.drm_gpuvm_sm_unmap_exec_lockasbuh1hhjJ3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ3ubj)}(hgpuvmh]hgpuvm}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjF3ubjD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj3modnameN classnameNjj)}j]j3c.drm_gpuvm_sm_unmap_exec_lockasbuh1hhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj 4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hexech]hexec}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjF3ubjD)}(h u64 req_addrh](h)}(hhh]j)}(hu64h]hu64}(hj34hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj04ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj54modnameN classnameNjj)}j]j3c.drm_gpuvm_sm_unmap_exec_lockasbuh1hhj,4ubj)}(h h]h }(hjQ4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,4ubj)}(hreq_addrh]hreq_addr}(hj_4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjF3ubjD)}(h u64 req_rangeh](h)}(hhh]j)}(hu64h]hu64}(hj{4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx4ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj}4modnameN classnameNjj)}j]j3c.drm_gpuvm_sm_unmap_exec_lockasbuh1hhjt4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt4ubj)}(h req_rangeh]h req_range}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjF3ubeh}(h]h ]h"]h$]h&]jjuh1j=hj 3hhhj3hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj 3hhhj3hM ubah}(h]j3ah ](jjeh"]h$]h&]j j )j huh1jhj3hM hj3hhubj )}(hhh]h)}(h1locks the objects touched by drm_gpuvm_sm_unmap()h]h1locks the objects touched by drm_gpuvm_sm_unmap()}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj4hhubah}(h]h ]h"]h$]h&]uh1j hj3hhhj3hM ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j4j( j4j) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj4ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj4ubjM )}(hhh](jR )}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj5h]hstruct drm_gpuvm *gpuvm}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj 5ubjt )}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hj+5hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj55h]h drm_gpuvm}(hj75hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj35ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj'5hM hj+5ubh representing the GPU VA space}(hj+5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj'5hM hj(5ubah}(h]h ]h"]h$]h&]uh1js hj 5ubeh}(h]h ]h"]h$]h&]uh1jQ hj'5hM hj 5ubjR )}(hA``struct drm_exec *exec`` the :c:type:`drm_exec` locking context h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjn5h]hstruct drm_exec *exec}(hjp5hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjl5ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjh5ubjt )}(hhh]h)}(h&the :c:type:`drm_exec` locking contexth](hthe }(hj5hhhNhNubh)}(h:c:type:`drm_exec`h]j^ )}(hj5h]hdrm_exec}(hj5hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_execuh1hhj5hM hj5ubh locking context}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1js hjh5ubeh}(h]h ]h"]h$]h&]uh1jQ hj5hM hj 5ubjR )}(h9``u64 req_addr`` the start address of the range to unmap h](jX )}(h``u64 req_addr``h]j^ )}(hj5h]h u64 req_addr}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj5ubjt )}(hhh]h)}(h'the start address of the range to unmaph]h'the start address of the range to unmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1js hj5ubeh}(h]h ]h"]h$]h&]uh1jQ hj5hM hj 5ubjR )}(h5``u64 req_range`` the range of the mappings to unmap h](jX )}(h``u64 req_range``h]j^ )}(hj6h]h u64 req_range}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj6ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj5ubjt )}(hhh]h)}(h"the range of the mappings to unmaph]h"the range of the mappings to unmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hM hj6ubah}(h]h ]h"]h$]h&]uh1js hj5ubeh}(h]h ]h"]h$]h&]uh1jQ hj6hM hj 5ubeh}(h]h ]h"]h$]h&]uh1jL hj4ubh)}(h**Description**h]j7 )}(hj>6h]h Description}(hj@6hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj<6ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj4ubh)}(hjThis function locks (drm_exec_lock_obj()) objects that will be unmapped/ remapped by drm_gpuvm_sm_unmap().h]hjThis function locks (drm_exec_lock_obj()) objects that will be unmapped/ remapped by drm_gpuvm_sm_unmap().}(hjT6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj4ubh)}(h4See drm_gpuvm_sm_map_exec_lock() for expected usage.h]h4See drm_gpuvm_sm_map_exec_lock() for expected usage.}(hjc6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj4ubh)}(h **Return**h]j7 )}(hjt6h]hReturn}(hjv6hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjr6ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj4ubh)}(h%0 on success or a negative error codeh]h%0 on success or a negative error code}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_gpuvm_sm_map_ops_create (C function)c.drm_gpuvm_sm_map_ops_createhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hqstruct drm_gpuva_ops * drm_gpuvm_sm_map_ops_create (struct drm_gpuvm *gpuvm, const struct drm_gpuvm_map_req *req)h]j)}(hostruct drm_gpuva_ops *drm_gpuvm_sm_map_ops_create(struct drm_gpuvm *gpuvm, const struct drm_gpuvm_map_req *req)h](j)}(hj? h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMt ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hMt ubh)}(hhh]j)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj6modnameN classnameNjj)}j]j)}j}drm_gpuvm_sm_map_ops_createsbc.drm_gpuvm_sm_map_ops_createasbuh1hhj6hhhj6hMt ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hMt ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hMt ubj)}(hdrm_gpuvm_sm_map_ops_createh]j)}(hj6h]hdrm_gpuvm_sm_map_ops_create}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj6hhhj6hMt ubj>)}(h>(struct drm_gpuvm *gpuvm, const struct drm_gpuvm_map_req *req)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hj37hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/7ubj)}(h h]h }(hj@7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/7ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjQ7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN7ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjS7modnameN classnameNjj)}j]j6c.drm_gpuvm_sm_map_ops_createasbuh1hhj/7ubj)}(h h]h }(hjo7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/7ubj)}(hjh]h*}(hj}7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/7ubj)}(hgpuvmh]hgpuvm}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj+7ubjD)}(h#const struct drm_gpuvm_map_req *reqh](j)}(hjJh]hconst}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hj? h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(hdrm_gpuvm_map_reqh]hdrm_gpuvm_map_req}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj7modnameN classnameNjj)}j]j6c.drm_gpuvm_sm_map_ops_createasbuh1hhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hreqh]hreq}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj+7ubeh}(h]h ]h"]h$]h&]jjuh1j=hj6hhhj6hMt ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhj6hMt ubah}(h]j6ah ](jjeh"]h$]h&]j j )j huh1jhj6hMt hj6hhubj )}(hhh]h)}(h6creates the :c:type:`drm_gpuva_ops` to split and mergeh](h creates the }(hj?8hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjI8h]h drm_gpuva_ops}(hjK8hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjG8ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j6c.drm_gpuvm_sm_map_ops_createasbj drm_gpuva_opsuh1hhjľhMhj?8ubh to split and merge}(hj?8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMt hj<8hhubah}(h]h ]h"]h$]h&]uh1j hj6hhhj6hMt ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j8j( j8j) j* j+ uh1jhhhjWQhNhNubj- )}(hXj**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``const struct drm_gpuvm_map_req *req`` map request arguments **Description** This function creates a list of operations to perform splitting and merging of existing mapping(s) with the newly requested one. The list can be iterated with :c:type:`drm_gpuva_for_each_op` and must be processed in the given order. It can contain map, unmap and remap operations, but it also can be empty if no operation is required, e.g. if the requested mapping already exists in the exact same way. There can be an arbitrary amount of unmap operations, a maximum of two remap operations and a single map operation. The latter one represents the original map operation requested by the caller. Note that before calling this function again with another mapping request it is necessary to update the :c:type:`drm_gpuvm`'s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used. After the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`. **Return** a pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](h)}(h**Parameters**h]j7 )}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj8ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMx hj8ubjM )}(hhh](jR )}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj8h]hstruct drm_gpuvm *gpuvm}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj8ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMu hj8ubjt )}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hj8hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj8h]h drm_gpuvm}(hj8hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj8ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj8hMu hj8ubh representing the GPU VA space}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj8hMu hj8ubah}(h]h ]h"]h$]h&]uh1js hj8ubeh}(h]h ]h"]h$]h&]uh1jQ hj8hMu hj8ubjR )}(h>``const struct drm_gpuvm_map_req *req`` map request arguments h](jX )}(h'``const struct drm_gpuvm_map_req *req``h]j^ )}(hj9h]h#const struct drm_gpuvm_map_req *req}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj9ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMv hj8ubjt )}(hhh]h)}(hmap request argumentsh]hmap request arguments}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMv hj9ubah}(h]h ]h"]h$]h&]uh1js hj8ubeh}(h]h ]h"]h$]h&]uh1jQ hj9hMv hj8ubeh}(h]h ]h"]h$]h&]uh1jL hj8ubh)}(h**Description**h]j7 )}(hj?9h]h Description}(hjA9hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj=9ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMx hj8ubh)}(hThis function creates a list of operations to perform splitting and merging of existing mapping(s) with the newly requested one.h]hThis function creates a list of operations to perform splitting and merging of existing mapping(s) with the newly requested one.}(hjU9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMw hj8ubh)}(hXThe list can be iterated with :c:type:`drm_gpuva_for_each_op` and must be processed in the given order. It can contain map, unmap and remap operations, but it also can be empty if no operation is required, e.g. if the requested mapping already exists in the exact same way.h](hThe list can be iterated with }(hjd9hhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j^ )}(hjn9h]hdrm_gpuva_for_each_op}(hjp9hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjl9ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMz hjd9ubh and must be processed in the given order. It can contain map, unmap and remap operations, but it also can be empty if no operation is required, e.g. if the requested mapping already exists in the exact same way.}(hjd9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hMz hj8ubh)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj8ubh)}(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 }(hj9hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj9h]h drm_gpuvm}(hj9hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj9ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj9ubhw’s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the }(hj9hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj9h]h drm_gpuvm}(hj9hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj9ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj9hM hj9ubh’s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hM hj8ubh)}(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 }(hj9hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hj:h]h drm_gpuva_ops}(hj:hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj:ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj9ubh, they must be freed with }(hj9hhhNhNubh)}(h:c:type:`drm_gpuva_ops_free`h]j^ )}(hj(:h]hdrm_gpuva_ops_free}(hj*:hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj&:ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_ops_freeuh1hhj!:hM hj9ubh.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!:hM hj8ubh)}(h **Return**h]j7 )}(hjQ:h]hReturn}(hjS:hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjO:ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj8ubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hjg:hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjq:h]h drm_gpuva_ops}(hjs:hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjo:ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjg:ubh" on success, an ERR_PTR on failure}(hjg:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:hM hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)drm_gpuvm_madvise_ops_create (C function)c.drm_gpuvm_madvise_ops_createhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(hrstruct drm_gpuva_ops * drm_gpuvm_madvise_ops_create (struct drm_gpuvm *gpuvm, const struct drm_gpuvm_map_req *req)h]j)}(hpstruct drm_gpuva_ops *drm_gpuvm_madvise_ops_create(struct drm_gpuvm *gpuvm, const struct drm_gpuvm_map_req *req)h](j)}(hj? h]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hM ubh)}(hhh]j)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj:modnameN classnameNjj)}j]j)}j}drm_gpuvm_madvise_ops_createsbc.drm_gpuvm_madvise_ops_createasbuh1hhj:hhhj:hM ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hM ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hM ubj)}(hdrm_gpuvm_madvise_ops_createh]j)}(hj:h]hdrm_gpuvm_madvise_ops_create}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj:hhhj:hM ubj>)}(h>(struct drm_gpuvm *gpuvm, const struct drm_gpuvm_map_req *req)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hj3;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/;ubj)}(h h]h }(hj@;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/;ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjQ;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN;ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjS;modnameN classnameNjj)}j]j:c.drm_gpuvm_madvise_ops_createasbuh1hhj/;ubj)}(h h]h }(hjo;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/;ubj)}(hjh]h*}(hj};hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/;ubj)}(hgpuvmh]hgpuvm}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj+;ubjD)}(h#const struct drm_gpuvm_map_req *reqh](j)}(hjJh]hconst}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hj? h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]j)}(hdrm_gpuvm_map_reqh]hdrm_gpuvm_map_req}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj;modnameN classnameNjj)}j]j:c.drm_gpuvm_madvise_ops_createasbuh1hhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hreqh]hreq}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj+;ubeh}(h]h ]h"]h$]h&]jjuh1j=hj:hhhj:hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:hhhj:hM ubah}(h]j:ah ](jjeh"]h$]h&]j j )j huh1jhj:hM hj:hhubj )}(hhh]h)}(h,creates the :c:type:`drm_gpuva_ops` to splith](h creates the }(hj?<hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjI<h]h drm_gpuva_ops}(hjK<hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjG<ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j:c.drm_gpuvm_madvise_ops_createasbj drm_gpuva_opsuh1hhjľhMhj?<ubh to split}(hj?<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj<<hhubah}(h]h ]h"]h$]h&]uh1j hj:hhhj:hM ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j<j( j<j) j* j+ uh1jhhhjWQhNhNubj- )}(hX**Parameters** ``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space ``const struct drm_gpuvm_map_req *req`` map request arguments **Description** This function creates a list of operations to perform splitting of existent mapping(s) at start or end, based on the request map. The list can be iterated with :c:type:`drm_gpuva_for_each_op` and must be processed in the given order. It can contain map and remap operations, but it also can be empty if no operation is required, e.g. if the requested mapping already exists is the exact same way. There will be no unmap operations, a maximum of two remap operations and two map operations. The two map operations correspond to: one from start to the end of drm_gpuvaX, and another from the start of drm_gpuvaY to end. Note that before calling this function again with another mapping request it is necessary to update the :c:type:`drm_gpuvm`'s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the :c:type:`drm_gpuvm`'s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used. After the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`. **Return** a pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](h)}(h**Parameters**h]j7 )}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj<ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj<ubjM )}(hhh](jR )}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj<h]hstruct drm_gpuvm *gpuvm}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj<ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj<ubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hj<ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j 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&]uh1js hj<ubeh}(h]h ]h"]h$]h&]uh1jQ hj<hM hj<ubjR )}(h>``const struct drm_gpuvm_map_req *req`` map request arguments h](jX )}(h'``const struct drm_gpuvm_map_req *req``h]j^ )}(hj=h]h#const struct drm_gpuvm_map_req *req}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj=ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj<ubjt )}(hhh]h)}(hmap request argumentsh]hmap request arguments}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM hj=ubah}(h]h ]h"]h$]h&]uh1js hj<ubeh}(h]h ]h"]h$]h&]uh1jQ hj=hM hj<ubeh}(h]h ]h"]h$]h&]uh1jL hj<ubh)}(h**Description**h]j7 )}(hj?=h]h Description}(hjA=hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj==ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj<ubh)}(hThis function creates a list of operations to perform splitting of existent mapping(s) at start or end, based on the request map.h]hThis function creates a list of operations to perform splitting of existent mapping(s) at start or end, based on the request map.}(hjU=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj<ubh)}(hX The list can be iterated with :c:type:`drm_gpuva_for_each_op` and must be processed in the given order. It can contain map and remap operations, but it also can be empty if no operation is required, e.g. if the requested mapping already exists is the exact same way.h](hThe list can be iterated with }(hjd=hhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j^ )}(hjn=h]hdrm_gpuva_for_each_op}(hjp=hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjl=ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjd=ubh and must be processed in the given order. It can contain map and remap operations, but it also can be empty if no operation is required, e.g. if the requested mapping already exists is the exact same way.}(hjd=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj=hM hj<ubh)}(hThere will be no unmap operations, a maximum of two remap operations and two map operations. The two map operations correspond to: one from start to the end of drm_gpuvaX, and another from the start of drm_gpuvaY to end.h]hThere will be no unmap operations, a maximum of two remap operations and two map operations. The two map operations correspond to: one from start to the end of drm_gpuvaX, and another from the start of drm_gpuvaY to end.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM 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 ](j j! c-typeeh"]h$]h&]uh1j] hj=ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj=ubhw’s view of the GPU VA space. The previously obtained operations must be either processed or abandoned. To update the }(hj=hhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hj=h]h drm_gpuvm}(hj=hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj=ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhj=hM hj=ubh’s view of the GPU VA space drm_gpuva_insert(), drm_gpuva_destroy_locked() and/or drm_gpuva_destroy_unlocked() should be used.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj=hM hj<ubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hj>ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./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 ](j j! c-typeeh"]h$]h&]uh1j] hj&>ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_ops_freeuh1hhj!>hM hj=ubh.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!>hM hj<ubh)}(h **Return**h]j7 )}(hjQ>h]hReturn}(hjS>hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjO>ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./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 }(hjg>hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjq>h]h drm_gpuva_ops}(hjs>hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjo>ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjg>ubh" on success, an ERR_PTR on failure}(hjg>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj>hM hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_gpuvm_sm_unmap_ops_create (C function)c.drm_gpuvm_sm_unmap_ops_createhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hM ubh)}(hhh]j)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj>modnameN classnameNjj)}j]j)}j}drm_gpuvm_sm_unmap_ops_createsbc.drm_gpuvm_sm_unmap_ops_createasbuh1hhj>hhhj>hM ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hM ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hM ubj)}(hdrm_gpuvm_sm_unmap_ops_createh]j)}(hj>h]hdrm_gpuvm_sm_unmap_ops_create}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj>hhhj>hM ubj>)}(h6(struct drm_gpuvm *gpuvm, u64 req_addr, u64 req_range)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hj3?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/?ubj)}(h h]h }(hj@?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/?ubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjQ?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN?ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjS?modnameN classnameNjj)}j]j>c.drm_gpuvm_sm_unmap_ops_createasbuh1hhj/?ubj)}(h h]h }(hjo?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/?ubj)}(hjh]h*}(hj}?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/?ubj)}(hgpuvmh]hgpuvm}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj+?ubjD)}(h u64 req_addrh](h)}(hhh]j)}(hu64h]hu64}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj?modnameN classnameNjj)}j]j>c.drm_gpuvm_sm_unmap_ops_createasbuh1hhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hreq_addrh]hreq_addr}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj+?ubjD)}(h u64 req_rangeh](h)}(hhh]j)}(hu64h]hu64}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj?modnameN classnameNjj)}j]j>c.drm_gpuvm_sm_unmap_ops_createasbuh1hhj?ubj)}(h h]h }(hj @hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h req_rangeh]h req_range}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj+?ubeh}(h]h ]h"]h$]h&]jjuh1j=hj>hhhj>hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhj>hM ubah}(h]j>ah ](jjeh"]h$]h&]j j )j huh1jhj>hM hj>hhubj )}(hhh]h)}(h5creates the :c:type:`drm_gpuva_ops` to split on unmaph](h creates the }(hjD@hhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjN@h]h drm_gpuva_ops}(hjP@hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjL@ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j>c.drm_gpuvm_sm_unmap_ops_createasbj drm_gpuva_opsuh1hhjľhMhjD@ubh to split on unmap}(hjD@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjA@hhubah}(h]h ]h"]h$]h&]uh1j hj>hhhj>hM ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j@j( j@j) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj@ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj@ubjM )}(hhh](jR )}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj@h]hstruct drm_gpuvm *gpuvm}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj@ubjt )}(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 ](j j! c-typeeh"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j 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&]uh1js hj@ubeh}(h]h ]h"]h$]h&]uh1jQ hj@hM hj@ubjR )}(h9``u64 req_addr`` the start address of the range to unmap h](jX )}(h``u64 req_addr``h]j^ )}(hj Ah]h u64 req_addr}(hj AhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjAubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjAubjt )}(hhh]h)}(h'the start address of the range to unmaph]h'the start address of the range to unmap}(hj"AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM hjAubah}(h]h ]h"]h$]h&]uh1js hjAubeh}(h]h ]h"]h$]h&]uh1jQ hjAhM hj@ubjR )}(h5``u64 req_range`` the range of the mappings to unmap h](jX )}(h``u64 req_range``h]j^ )}(hjBAh]h u64 req_range}(hjDAhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj@Aubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj)}(h.(struct drm_gpuvm *gpuvm, u64 addr, u64 range)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjqChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmCubj)}(h h]h }(hj~ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmCubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjCmodnameN classnameNjj)}j]j2Cc.drm_gpuvm_prefetch_ops_createasbuh1hhjmCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmCubj)}(hgpuvmh]hgpuvm}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmCubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjiCubjD)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjCmodnameN classnameNjj)}j]j2Cc.drm_gpuvm_prefetch_ops_createasbuh1hhjCubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(haddrh]haddr}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjiCubjD)}(h u64 rangeh](h)}(hhh]j)}(hu64h]hu64}(hj,DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Dubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj.DmodnameN classnameNjj)}j]j2Cc.drm_gpuvm_prefetch_ops_createasbuh1hhj%Dubj)}(h h]h }(hjJDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Dubj)}(hrangeh]hrange}(hjXDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjiCubeh}(h]h ]h"]h$]h&]jjuh1j=hjBhhhjChM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjChM ubah}(h]jBah ](jjeh"]h$]h&]j j )j huh1jhjChM hjBhhubj )}(hhh]h)}(h/creates the :c:type:`drm_gpuva_ops` to prefetchh](h creates the }(hjDhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjDh]h drm_gpuva_ops}(hjDhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjDubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j2Cc.drm_gpuvm_prefetch_ops_createasbj drm_gpuva_opsuh1hhjľhMhjDubh to prefetch}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjDhhubah}(h]h ]h"]h$]h&]uh1j hjBhhhjChM ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jDj( jDj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjDubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjDubjM )}(hhh](jR )}(hR``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` representing the GPU VA space h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hjDh]hstruct drm_gpuvm *gpuvm}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjDubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjDubjt )}(hhh]h)}(h5the :c:type:`drm_gpuvm` representing the GPU VA spaceh](hthe }(hjEhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjEh]h drm_gpuvm}(hjEhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj Eubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjEhM hjEubh representing the GPU VA space}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEhM hjEubah}(h]h ]h"]h$]h&]uh1js hjDubeh}(h]h ]h"]h$]h&]uh1jQ hjEhM hjDubjR )}(h8``u64 addr`` the start address of the range to prefetch h](jX )}(h ``u64 addr``h]j^ )}(hjGEh]hu64 addr}(hjIEhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjEEubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjAEubjt )}(hhh]h)}(h*the start address of the range to prefetchh]h*the start address of the range to prefetch}(hj`EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\EhM hj]Eubah}(h]h ]h"]h$]h&]uh1js hjAEubeh}(h]h ]h"]h$]h&]uh1jQ hj\EhM hjDubjR )}(h4``u64 range`` the range of the mappings to prefetch h](jX )}(h ``u64 range``h]j^ )}(hjEh]h u64 range}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj~Eubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjzEubjt )}(hhh]h)}(h%the range of the mappings to prefetchh]h%the range of the mappings to prefetch}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM hjEubah}(h]h ]h"]h$]h&]uh1js hjzEubeh}(h]h ]h"]h$]h&]uh1jQ hjEhM hjDubeh}(h]h ]h"]h$]h&]uh1jL hjDubh)}(h**Description**h]j7 )}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjEubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjDubh)}(hBThis function creates a list of operations to perform prefetching.h]hBThis function creates a list of operations to perform prefetching.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjDubh)}(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 }(hjEhhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j^ )}(hjEh]hdrm_gpuva_for_each_op}(hjEhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjEubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjEubhN and must be processed in the given order. It can contain prefetch operations.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjFhM hjDubh)}(h8There can be an arbitrary amount of prefetch operations.h]h8There can be an arbitrary amount of prefetch operations.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjDubh)}(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!FhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hj+Fh]h drm_gpuva_ops}(hj-FhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj)Fubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hj!Fubh, they must be freed with }(hj!FhhhNhNubh)}(h:c:type:`drm_gpuva_ops_free`h]j^ )}(hjOFh]hdrm_gpuva_ops_free}(hjQFhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjMFubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_ops_freeuh1hhjHFhM hj!Fubh.}(hj!FhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjHFhM hjDubh)}(h **Return**h]j7 )}(hjxFh]hReturn}(hjzFhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjvFubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjDubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hjFhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjFh]h drm_gpuva_ops}(hjFhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM hjFubh" on success, an ERR_PTR on failure}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjFhM hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_gpuvm_bo_unmap_ops_create (C function)c.drm_gpuvm_bo_unmap_ops_createhNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM2 ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhM2 ubh)}(hhh]j)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjGmodnameN classnameNjj)}j]j)}j}drm_gpuvm_bo_unmap_ops_createsbc.drm_gpuvm_bo_unmap_ops_createasbuh1hhjFhhhjFhM2 ubj)}(h h]h }(hj GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhM2 ubj)}(hjh]h*}(hj.GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhM2 ubj)}(hdrm_gpuvm_bo_unmap_ops_createh]j)}(hjGh]hdrm_gpuvm_bo_unmap_ops_create}(hj?GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Gubah}(h]h ](jjeh"]h$]h&]jjuh1jhjFhhhjFhM2 ubj>)}(h(struct drm_gpuvm_bo *vm_bo)h]jD)}(hstruct drm_gpuvm_bo *vm_boh](j)}(hj? h]hstruct}(hjZGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVGubj)}(h h]h }(hjgGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVGubh)}(hhh]j)}(h drm_gpuvm_boh]h drm_gpuvm_bo}(hjxGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuGubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjzGmodnameN classnameNjj)}j]jGc.drm_gpuvm_bo_unmap_ops_createasbuh1hhjVGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVGubj)}(hvm_boh]hvm_bo}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVGubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjRGubah}(h]h ]h"]h$]h&]jjuh1j=hjFhhhjFhM2 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhjFhM2 ubah}(h]jFah ](jjeh"]h$]h&]j j )j huh1jhjFhM2 hjFhhubj )}(hhh]h)}(h2creates the :c:type:`drm_gpuva_ops` to unmap a GEMh](h creates the }(hjGhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjGh]h drm_gpuva_ops}(hjGhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjGubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]jGc.drm_gpuvm_bo_unmap_ops_createasbj drm_gpuva_opsuh1hhjľhMhjGubh to unmap a GEM}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM2 hjGhhubah}(h]h ]h"]h$]h&]uh1j hjFhhhjFhM2 ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jHj( jHj) j* j+ uh1jhhhjWQhNhNubj- )}(hX**Parameters** ``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` abstraction **Description** This function creates a list of operations to perform unmapping for every GPUVA attached to a GEM. The list can be iterated with :c:type:`drm_gpuva_for_each_op` and consists out of an arbitrary amount of unmap operations. After the caller finished processing the returned :c:type:`drm_gpuva_ops`, they must be freed with :c:type:`drm_gpuva_ops_free`. This function expects the caller to protect the GEM's GPUVA list against concurrent access using either the GEM's dma-resv or gpuva.lock mutex. **Return** a pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](h)}(h**Parameters**h]j7 )}(hj%Hh]h Parameters}(hj'HhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj#Hubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM6 hjHubjM )}(hhh]jR )}(hF``struct drm_gpuvm_bo *vm_bo`` the :c:type:`drm_gpuvm_bo` abstraction h](jX )}(h``struct drm_gpuvm_bo *vm_bo``h]j^ )}(hjDHh]hstruct drm_gpuvm_bo *vm_bo}(hjFHhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjBHubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM3 hj>Hubjt )}(hhh]h)}(h&the :c:type:`drm_gpuvm_bo` abstractionh](hthe }(hj]HhhhNhNubh)}(h:c:type:`drm_gpuvm_bo`h]j^ )}(hjgHh]h drm_gpuvm_bo}(hjiHhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjeHubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvm_bouh1hhjYHhM3 hj]Hubh abstraction}(hj]HhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjYHhM3 hjZHubah}(h]h ]h"]h$]h&]uh1js hj>Hubeh}(h]h ]h"]h$]h&]uh1jQ hjYHhM3 hj;Hubah}(h]h ]h"]h$]h&]uh1jL hjHubh)}(h**Description**h]j7 )}(hjHh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjHubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM5 hjHubh)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM4 hjHubh)}(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 }(hjHhhhNhNubh)}(h:c:type:`drm_gpuva_for_each_op`h]j^ )}(hjHh]hdrm_gpuva_for_each_op}(hjHhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjHubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_for_each_opuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM7 hjHubh= and consists out of an arbitrary amount of unmap operations.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjHhM7 hjHubh)}(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 }(hjHhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjIh]h drm_gpuva_ops}(hjIhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM: hjHubh, they must be freed with }(hjHhhhNhNubh)}(h:c:type:`drm_gpuva_ops_free`h]j^ )}(hj'Ih]hdrm_gpuva_ops_free}(hj)IhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj%Iubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_ops_freeuh1hhj IhM: hjHubh.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj IhM: hjHubh)}(hThis function expects the caller to protect the GEM's GPUVA list against concurrent access using either the GEM's dma-resv or gpuva.lock mutex.h]hThis function expects the caller to protect the GEM’s GPUVA list against concurrent access using either the GEM’s dma-resv or gpuva.lock mutex.}(hjNIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM= hjHubh)}(h **Return**h]j7 )}(hj_Ih]hReturn}(hjaIhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj]Iubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chM@ hjHubh)}(hJa pointer to the :c:type:`drm_gpuva_ops` on success, an ERR_PTR on failureh](ha pointer to the }(hjuIhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjIh]h drm_gpuva_ops}(hjIhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj}Iubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMA hjuIubh" on success, an ERR_PTR on failure}(hjuIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhMA hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpuva_ops_free (C function)c.drm_gpuva_ops_freehNtauh1jhjWQhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMh ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjIhMh ubj)}(hdrm_gpuva_ops_freeh]j)}(hdrm_gpuva_ops_freeh]hdrm_gpuva_ops_free}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jhjIhhhjIhMh ubj>)}(h4(struct drm_gpuvm *gpuvm, struct drm_gpuva_ops *ops)h](jD)}(hstruct drm_gpuvm *gpuvmh](j)}(hj? h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]j)}(h drm_gpuvmh]h drm_gpuvm}(hj"JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj$JmodnameN classnameNjj)}j]j)}j}jIsbc.drm_gpuva_ops_freeasbuh1hhjJubj)}(h h]h }(hjBJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjPJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hgpuvmh]hgpuvm}(hj]JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjIubjD)}(hstruct drm_gpuva_ops *opsh](j)}(hj? h]hstruct}(hjvJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrJubh)}(hhh]j)}(h drm_gpuva_opsh]h drm_gpuva_ops}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjJmodnameN classnameNjj)}j]j>Jc.drm_gpuva_ops_freeasbuh1hhjrJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrJubj)}(hopsh]hops}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrJubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjIubeh}(h]h ]h"]h$]h&]jjuh1j=hjIhhhjIhMh ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhjIhMh ubah}(h]jIah ](jjeh"]h$]h&]j j )j huh1jhjIhMh hjIhhubj )}(hhh]h)}(h&free the given :c:type:`drm_gpuva_ops`h](hfree the given }(hjJhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjKh]h drm_gpuva_ops}(hjKhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjJubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj)}j]j>Jc.drm_gpuva_ops_freeasbj drm_gpuva_opsuh1hhjľhMhjJubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMh hjJhhubah}(h]h ]h"]h$]h&]uh1j hjIhhhjIhMh ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j3Kj( j3Kj) j* j+ uh1jhhhjWQhNhNubj- )}(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]j7 )}(hj=Kh]h Parameters}(hj?KhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj;Kubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMl hj7KubjM )}(hhh](jR )}(hM``struct drm_gpuvm *gpuvm`` the :c:type:`drm_gpuvm` the ops were created for h](jX )}(h``struct drm_gpuvm *gpuvm``h]j^ )}(hj\Kh]hstruct drm_gpuvm *gpuvm}(hj^KhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjZKubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMi hjVKubjt )}(hhh]h)}(h0the :c:type:`drm_gpuvm` the ops were created forh](hthe }(hjuKhhhNhNubh)}(h:c:type:`drm_gpuvm`h]j^ )}(hjKh]h drm_gpuvm}(hjKhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj}Kubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuvmuh1hhjqKhMi hjuKubh the ops were created for}(hjuKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqKhMi hjrKubah}(h]h ]h"]h$]h&]uh1js hjVKubeh}(h]h ]h"]h$]h&]uh1jQ hjqKhMi hjSKubjR )}(hB``struct drm_gpuva_ops *ops`` the :c:type:`drm_gpuva_ops` to free h](jX )}(h``struct drm_gpuva_ops *ops``h]j^ )}(hjKh]hstruct drm_gpuva_ops *ops}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjKubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMj hjKubjt )}(hhh]h)}(h#the :c:type:`drm_gpuva_ops` to freeh](hthe }(hjKhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hjKh]h drm_gpuva_ops}(hjKhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjKubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhjKhMj hjKubh to free}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKhMj hjKubah}(h]h ]h"]h$]h&]uh1js hjKubeh}(h]h ]h"]h$]h&]uh1jQ hjKhMj hjSKubeh}(h]h ]h"]h$]h&]uh1jL hj7Kubh)}(h**Description**h]j7 )}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjLubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMl hj7Kubh)}(h[Frees the given :c:type:`drm_gpuva_ops` structure including all the ops associated with it.h](hFrees the given }(hj,LhhhNhNubh)}(h:c:type:`drm_gpuva_ops`h]j^ )}(hj6Lh]h drm_gpuva_ops}(hj8LhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj4Lubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpuva_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:525: ./drivers/gpu/drm/drm_gpuvm.chMk hj,Lubh4 structure including all the ops associated with it.}(hj,LhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjSLhMk hj7Kubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjWQhhhNhNubeh}(h]jDah ]h"]drm gpuvm function referencesah$]h&]uh1hhj*AhhhhhMubeh}(h](jid2eh ]h"]( drm gpuvm drm_gpuvmeh$]h&]uh1hhhhhhhhMj}jrLjAsj}jjAsubh)}(hhh](h)}(hDRM Buddy Allocatorh]hDRM Buddy Allocator}(hjzLhhhNhNubah}(h]h ]h"]h$]h&]hjluh1hhjwLhhhhhMubh)}(hhh](h)}(h/Buddy Allocator Function References (GPU buddy)h]h/Buddy Allocator Function References (GPU buddy)}(hjLhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjLhhhhhMubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpu_buddy_init (C function)c.gpu_buddy_inithNtauh1jhjLhhhNhNubj)}(hhh](j)}(hCint gpu_buddy_init (struct gpu_buddy *mm, u64 size, u64 chunk_size)h]j)}(hBint gpu_buddy_init(struct gpu_buddy *mm, u64 size, u64 chunk_size)h](j)}(hinth]hint}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMoubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjLhMoubj)}(hgpu_buddy_inith]j)}(hgpu_buddy_inith]hgpu_buddy_init}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jhjLhhhjLhMoubj>)}(h0(struct gpu_buddy *mm, u64 size, u64 chunk_size)h](jD)}(hstruct gpu_buddy *mmh](j)}(hj? h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hj MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Mubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjMmodnameN classnameNjj)}j]j)}j}jLsbc.gpu_buddy_initasbuh1hhjLubj)}(h h]h }(hj-MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hj;MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hmmh]hmm}(hjHMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjLubjD)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjdMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaMubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjfMmodnameN classnameNjj)}j]j)Mc.gpu_buddy_initasbuh1hhj]Mubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Mubj)}(hsizeh]hsize}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjLubjD)}(hu64 chunk_sizeh](h)}(hhh]j)}(hu64h]hu64}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjMmodnameN classnameNjj)}j]j)Mc.gpu_buddy_initasbuh1hhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h chunk_sizeh]h chunk_size}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjLubeh}(h]h ]h"]h$]h&]jjuh1j=hjLhhhjLhMoubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjLhMoubah}(h]jLah ](jjeh"]h$]h&]j j )j huh1jhjLhMohjLhhubj )}(hhh]h)}(hinit memory managerh]hinit memory manager}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMohjMhhubah}(h]h ]h"]h$]h&]uh1j hjLhhhjLhMoubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jNj( jNj) j* j+ uh1jhhhjLhNhNubj- )}(hX-**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager to initialize ``u64 size`` size in bytes to manage ``u64 chunk_size`` minimum page size in bytes for our allocations **Description** Initializes the memory manager and its resources. **Return** 0 on success, error code on failure.h](h)}(h**Parameters**h]j7 )}(hj$Nh]h Parameters}(hj&NhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj"Nubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMshjNubjM )}(hhh](jR )}(h9``struct gpu_buddy *mm`` GPU buddy manager to initialize h](jX )}(h``struct gpu_buddy *mm``h]j^ )}(hjCNh]hstruct gpu_buddy *mm}(hjENhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjANubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMqhj=Nubjt )}(hhh]h)}(hGPU buddy manager to initializeh]hGPU buddy manager to initialize}(hj\NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXNhMqhjYNubah}(h]h ]h"]h$]h&]uh1js hj=Nubeh}(h]h ]h"]h$]h&]uh1jQ hjXNhMqhj:NubjR )}(h%``u64 size`` size in bytes to manage h](jX )}(h ``u64 size``h]j^ )}(hj|Nh]hu64 size}(hj~NhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjzNubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMrhjvNubjt )}(hhh]h)}(hsize in bytes to manageh]hsize in bytes to manage}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMrhjNubah}(h]h ]h"]h$]h&]uh1js hjvNubeh}(h]h ]h"]h$]h&]uh1jQ hjNhMrhj:NubjR )}(hB``u64 chunk_size`` minimum page size in bytes for our allocations h](jX )}(h``u64 chunk_size``h]j^ )}(hjNh]hu64 chunk_size}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjNubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMshjNubjt )}(hhh]h)}(h.minimum page size in bytes for our allocationsh]h.minimum page size in bytes for our allocations}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMshjNubah}(h]h ]h"]h$]h&]uh1js hjNubeh}(h]h ]h"]h$]h&]uh1jQ hjNhMshj:Nubeh}(h]h ]h"]h$]h&]uh1jL hjNubh)}(h**Description**h]j7 )}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMuhjNubh)}(h1Initializes the memory manager and its resources.h]h1Initializes the memory manager and its resources.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMthjNubh)}(h **Return**h]j7 )}(hjOh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjOubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMvhjNubh)}(h$0 on success, error code on failure.h]h$0 on success, error code on failure.}(hj-OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMwhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjLhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpu_buddy_fini (C function)c.gpu_buddy_finihNtauh1jhjLhhhNhNubj)}(hhh](j)}(h*void gpu_buddy_fini (struct gpu_buddy *mm)h]j)}(h)void gpu_buddy_fini(struct gpu_buddy *mm)h](j)}(hvoidh]hvoid}(hj\OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXOhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMubj)}(h h]h }(hjkOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXOhhhjjOhMubj)}(hgpu_buddy_finih]j)}(hgpu_buddy_finih]hgpu_buddy_fini}(hj}OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyOubah}(h]h ](jjeh"]h$]h&]jjuh1jhjXOhhhjjOhMubj>)}(h(struct gpu_buddy *mm)h]jD)}(hstruct gpu_buddy *mmh](j)}(hj? h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjOmodnameN classnameNjj)}j]j)}j}jOsbc.gpu_buddy_finiasbuh1hhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hmmh]hmm}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubah}(h]h ]h"]h$]h&]jjuh1j=hjXOhhhjjOhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjTOhhhjjOhMubah}(h]jOOah ](jjeh"]h$]h&]j j )j huh1jhjjOhMhjQOhhubj )}(hhh]h)}(htear down the memory managerh]htear down the memory manager}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhjPhhubah}(h]h ]h"]h$]h&]uh1j hjQOhhhjjOhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j4Pj( j4Pj) j* j+ uh1jhhhjLhNhNubj- )}(h**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager to free **Description** Cleanup memory manager resources and the freetreeh](h)}(h**Parameters**h]j7 )}(hj>Ph]h Parameters}(hj@PhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj)}(h%(struct gpu_buddy *mm, bool is_clear)h](jD)}(hstruct gpu_buddy *mmh](j)}(hj? h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hj'QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hj8QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Qubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj:QmodnameN classnameNjj)}j]j)}j}jQsbc.gpu_buddy_reset_clearasbuh1hhjQubj)}(h h]h }(hjXQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hjh]h*}(hjfQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hmmh]hmm}(hjsQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjQubjD)}(h bool is_clearh](j)}(hj=2h]hbool}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(his_clearh]his_clear}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjQubeh}(h]h ]h"]h$]h&]jjuh1j=hjPhhhjPhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjPhM0ubah}(h]jPah ](jjeh"]h$]h&]j j )j huh1jhjPhM0hjPhhubj )}(hhh]h)}(hreset blocks clear stateh]hreset blocks clear state}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM0hjQhhubah}(h]h ]h"]h$]h&]uh1j hjPhhhjPhM0ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jQj( jQj) j* j+ uh1jhhhjLhNhNubj- )}(h**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager ``bool is_clear`` blocks clear state **Description** Reset the clear state based on **is_clear** value for each block in the freetree.h](h)}(h**Parameters**h]j7 )}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjQubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM4hjQubjM )}(hhh](jR )}(h+``struct gpu_buddy *mm`` GPU buddy manager h](jX )}(h``struct gpu_buddy *mm``h]j^ )}(hjRh]hstruct gpu_buddy *mm}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjRubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM2hj Rubjt )}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hj+RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'RhM2hj(Rubah}(h]h ]h"]h$]h&]uh1js hj Rubeh}(h]h ]h"]h$]h&]uh1jQ hj'RhM2hj RubjR )}(h%``bool is_clear`` blocks clear state h](jX )}(h``bool is_clear``h]j^ )}(hjKRh]h bool is_clear}(hjMRhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjIRubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM3hjERubjt )}(hhh]h)}(hblocks clear stateh]hblocks clear state}(hjdRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`RhM3hjaRubah}(h]h ]h"]h$]h&]uh1js hjERubeh}(h]h ]h"]h$]h&]uh1jQ hj`RhM3hj Rubeh}(h]h ]h"]h$]h&]uh1jL hjQubh)}(h**Description**h]j7 )}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjRubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM5hjQubh)}(hQReset the clear state based on **is_clear** value for each block in the freetree.h](hReset the clear state based on }(hjRhhhNhNubj7 )}(h **is_clear**h]his_clear}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjRubh& value for each block in the freetree.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM4hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjLhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!gpu_buddy_free_block (C function)c.gpu_buddy_free_blockhNtauh1jhjLhhhNhNubj)}(hhh](j)}(hOvoid gpu_buddy_free_block (struct gpu_buddy *mm, struct gpu_buddy_block *block)h]j)}(hNvoid gpu_buddy_free_block(struct gpu_buddy *mm, struct gpu_buddy_block *block)h](j)}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMbubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjRhMbubj)}(hgpu_buddy_free_blockh]j)}(hgpu_buddy_free_blockh]hgpu_buddy_free_block}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jhjRhhhjRhMbubj>)}(h5(struct gpu_buddy *mm, struct gpu_buddy_block *block)h](jD)}(hstruct gpu_buddy *mmh](j)}(hj? h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hj'ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hj8ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Subah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj:SmodnameN classnameNjj)}j]j)}j}jSsbc.gpu_buddy_free_blockasbuh1hhjSubj)}(h h]h }(hjXShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjfShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hmmh]hmm}(hjsShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjSubjD)}(hstruct gpu_buddy_block *blockh](j)}(hj? h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j)}(hgpu_buddy_blockh]hgpu_buddy_block}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjSmodnameN classnameNjj)}j]jTSc.gpu_buddy_free_blockasbuh1hhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hblockh]hblock}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjSubeh}(h]h ]h"]h$]h&]jjuh1j=hjRhhhjRhMbubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjRhMbubah}(h]jRah ](jjeh"]h$]h&]j j )j huh1jhjRhMbhjRhhubj )}(hhh]h)}(h free a blockh]h free a block}(hj ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMbhj Thhubah}(h]h ]h"]h$]h&]uh1j hjRhhhjRhMbubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j%Tj( j%Tj) j* j+ uh1jhhhjLhNhNubj- )}(hs**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager ``struct gpu_buddy_block *block`` block to be freedh](h)}(h**Parameters**h]j7 )}(hj/Th]h Parameters}(hj1ThhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj-Tubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMfhj)TubjM )}(hhh](jR )}(h+``struct gpu_buddy *mm`` GPU buddy manager h](jX )}(h``struct gpu_buddy *mm``h]j^ )}(hjNTh]hstruct gpu_buddy *mm}(hjPThhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjLTubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMdhjHTubjt )}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hjgThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcThMdhjdTubah}(h]h ]h"]h$]h&]uh1js hjHTubeh}(h]h ]h"]h$]h&]uh1jQ hjcThMdhjETubjR )}(h3``struct gpu_buddy_block *block`` block to be freedh](jX )}(h!``struct gpu_buddy_block *block``h]j^ )}(hjTh]hstruct gpu_buddy_block *block}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjTubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMfhjTubjt )}(hhh]h)}(hblock to be freedh]hblock to be freed}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMehjTubah}(h]h ]h"]h$]h&]uh1js hjTubeh}(h]h ]h"]h$]h&]uh1jQ hjThMfhjETubeh}(h]h ]h"]h$]h&]uh1jL hj)Tubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjLhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j.gpu_buddy_allocated_addr_to_block (C function)#c.gpu_buddy_allocated_addr_to_blockhNtauh1jhjLhhhNhNubj)}(hhh](j)}(h[struct gpu_buddy_block * gpu_buddy_allocated_addr_to_block (struct gpu_buddy *mm, u64 addr)h]j)}(hYstruct gpu_buddy_block *gpu_buddy_allocated_addr_to_block(struct gpu_buddy *mm, u64 addr)h](j)}(hj? h]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMuubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThMuubh)}(hhh]j)}(hgpu_buddy_blockh]hgpu_buddy_block}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjUmodnameN classnameNjj)}j]j)}j}!gpu_buddy_allocated_addr_to_blocksb#c.gpu_buddy_allocated_addr_to_blockasbuh1hhjThhhjThMuubj)}(h h]h }(hj!UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThMuubj)}(hjh]h*}(hj/UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThMuubj)}(h!gpu_buddy_allocated_addr_to_blockh]j)}(hjUh]h!gpu_buddy_allocated_addr_to_block}(hj@UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)}(h (struct gpu_buddy *mm, u64 addr)h](jD)}(hstruct gpu_buddy *mmh](j)}(hj? h]hstruct}(hj[UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWUubj)}(h h]h }(hjhUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWUubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjyUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvUubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj{UmodnameN classnameNjj)}j]jU#c.gpu_buddy_allocated_addr_to_blockasbuh1hhjWUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWUubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWUubj)}(hmmh]hmm}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWUubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjSUubjD)}(hu64 addrh](h)}(hhh]j)}(hu64h]hu64}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjUmodnameN classnameNjj)}j]jU#c.gpu_buddy_allocated_addr_to_blockasbuh1hhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(haddrh]haddr}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjSUubeh}(h]h ]h"]h$]h&]jjuh1j=hjThhhjThMuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjThMuubah}(h]jTah ](jjeh"]h$]h&]j j )j huh1jhjThMuhjThhubj )}(hhh]h)}(h/given relative address find the allocated blockh]h/given relative address find the allocated block}(hj$VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMuhj!Vhhubah}(h]h ]h"]h$]h&]uh1j hjThhhjThMuubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j)}(hE(struct gpu_buddy *mm, struct list_head *objects, unsigned int flags)h](jD)}(hstruct gpu_buddy *mmh](j)}(hj? h]hstruct}(hj[WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWWubj)}(h h]h }(hjhWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWWubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjyWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvWubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj{WmodnameN classnameNjj)}j]j)}j}jAWsbc.gpu_buddy_free_listasbuh1hhjWWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWWubj)}(hmmh]hmm}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWWubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjSWubjD)}(hstruct list_head *objectsh](j)}(hj? h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j)}(h list_headh]h list_head}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjWmodnameN classnameNjj)}j]jWc.gpu_buddy_free_listasbuh1hhjWubj)}(h h]h }(hj XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hobjectsh]hobjects}(hj$XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjSWubjD)}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hj=XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Xubj)}(h h]h }(hjKXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Xubj)}(hinth]hint}(hjYXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Xubj)}(h h]h }(hjgXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Xubj)}(hflagsh]hflags}(hjuXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Xubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjSWubeh}(h]h ]h"]h$]h&]jjuh1j=hjWhhhj,WhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhj,WhMubah}(h]jWah ](jjeh"]h$]h&]j j )j huh1jhj,WhMhjWhhubj )}(hhh]h)}(h free blocksh]h free blocks}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhjXhhubah}(h]h ]h"]h$]h&]uh1j hjWhhhj,WhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jXj( jXj) j* j+ uh1jhhhjLhNhNubj- )}(h**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager ``struct list_head *objects`` input list head to free blocks ``unsigned int flags`` optional flags like GPU_BUDDY_CLEAREDh](h)}(h**Parameters**h]j7 )}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjXubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhjXubjM )}(hhh](jR )}(h+``struct gpu_buddy *mm`` GPU buddy manager h](jX )}(h``struct gpu_buddy *mm``h]j^ )}(hjXh]hstruct gpu_buddy *mm}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjXubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhjXubjt )}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1js hjXubeh}(h]h ]h"]h$]h&]uh1jQ hjXhMhjXubjR )}(h=``struct list_head *objects`` input list head to free blocks h](jX )}(h``struct list_head *objects``h]j^ )}(hjYh]hstruct list_head *objects}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjYubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhjYubjt )}(hhh]h)}(hinput list head to free blocksh]hinput list head to free blocks}(hj2YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.YhMhj/Yubah}(h]h ]h"]h$]h&]uh1js hjYubeh}(h]h ]h"]h$]h&]uh1jQ hj.YhMhjXubjR )}(h<``unsigned int flags`` optional flags like GPU_BUDDY_CLEAREDh](jX )}(h``unsigned int flags``h]j^ )}(hjRYh]hunsigned int flags}(hjTYhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjPYubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhjLYubjt )}(hhh]h)}(h%optional flags like GPU_BUDDY_CLEAREDh]h%optional flags like GPU_BUDDY_CLEARED}(hjkYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhjhYubah}(h]h ]h"]h$]h&]uh1js hjLYubeh}(h]h ]h"]h$]h&]uh1jQ hjgYhMhjXubeh}(h]h ]h"]h$]h&]uh1jL hjXubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjLhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!gpu_buddy_block_trim (C function)c.gpu_buddy_block_trimhNtauh1jhjLhhhNhNubj)}(hhh](j)}(hcint gpu_buddy_block_trim (struct gpu_buddy *mm, u64 *start, u64 new_size, struct list_head *blocks)h]j)}(hbint gpu_buddy_block_trim(struct gpu_buddy *mm, u64 *start, u64 new_size, struct list_head *blocks)h](j)}(hinth]hint}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjYhMubj)}(hgpu_buddy_block_trimh]j)}(hgpu_buddy_block_trimh]hgpu_buddy_block_trim}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jhjYhhhjYhMubj>)}(hJ(struct gpu_buddy *mm, u64 *start, u64 new_size, struct list_head *blocks)h](jD)}(hstruct gpu_buddy *mmh](j)}(hj? h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj ZmodnameN classnameNjj)}j]j)}j}jYsbc.gpu_buddy_block_trimasbuh1hhjYubj)}(h h]h }(hj'ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hj5ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hmmh]hmm}(hjBZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjYubjD)}(h u64 *starth](h)}(hhh]j)}(hu64h]hu64}(hj^ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Zubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj`ZmodnameN classnameNjj)}j]j#Zc.gpu_buddy_block_trimasbuh1hhjWZubj)}(h h]h }(hj|ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWZubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWZubj)}(hstarth]hstart}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWZubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjYubjD)}(h u64 new_sizeh](h)}(hhh]j)}(hu64h]hu64}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjZmodnameN classnameNjj)}j]j#Zc.gpu_buddy_block_trimasbuh1hhjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hnew_sizeh]hnew_size}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjYubjD)}(hstruct list_head *blocksh](j)}(hj? h]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j)}(h list_headh]h list_head}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj[modnameN classnameNjj)}j]j#Zc.gpu_buddy_block_trimasbuh1hhjZubj)}(h h]h }(hj4[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjB[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hblocksh]hblocks}(hjO[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjYubeh}(h]h ]h"]h$]h&]jjuh1j=hjYhhhjYhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjYhMubah}(h]jYah ](jjeh"]h$]h&]j j )j huh1jhjYhMhjYhhubj )}(hhh]h)}(hfree unused pagesh]hfree unused pages}(hjy[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhjv[hhubah}(h]h ]h"]h$]h&]uh1j hjYhhhjYhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j[j( j[j) j* j+ uh1jhhhjLhNhNubj- )}(hX**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager ``u64 *start`` start address to begin the trimming. ``u64 new_size`` original size requested ``struct list_head *blocks`` Input and output list of allocated blocks. MUST contain single block as input to be trimmed. On success will contain the newly allocated blocks making up the **new_size**. Blocks always appear in ascending order **Description** For contiguous allocation, we round up the size to the nearest power of two value, drivers consume *actual* size, so remaining portions are unused and can be optionally freed with this function **Return** 0 on success, error code on failure.h](h)}(h**Parameters**h]j7 )}(hj[h]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj[ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhj[ubjM )}(hhh](jR )}(h+``struct gpu_buddy *mm`` GPU buddy manager h](jX )}(h``struct gpu_buddy *mm``h]j^ )}(hj[h]hstruct gpu_buddy *mm}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj[ubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhj[ubjt )}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMhj[ubah}(h]h ]h"]h$]h&]uh1js hj[ubeh}(h]h ]h"]h$]h&]uh1jQ hj[hMhj[ubjR )}(h4``u64 *start`` start address to begin the trimming. h](jX )}(h``u64 *start``h]j^ )}(hj[h]h u64 *start}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj[ubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhj[ubjt )}(hhh]h)}(h$start address to begin the trimming.h]h$start address to begin the trimming.}(hj \hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj \ubah}(h]h ]h"]h$]h&]uh1js hj[ubeh}(h]h ]h"]h$]h&]uh1jQ hj\hMhj[ubjR )}(h)``u64 new_size`` original size requested h](jX )}(h``u64 new_size``h]j^ )}(hj,\h]h u64 new_size}(hj.\hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj*\ubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhj&\ubjt )}(hhh]h)}(horiginal size requestedh]horiginal size requested}(hjE\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA\hMhjB\ubah}(h]h ]h"]h$]h&]uh1js hj&\ubeh}(h]h ]h"]h$]h&]uh1jQ hjA\hMhj[ubjR )}(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](jX )}(h``struct list_head *blocks``h]j^ )}(hje\h]hstruct list_head *blocks}(hjg\hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjc\ubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhj_\ubjt )}(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 }(hj~\hhhNhNubj7 )}(h **new_size**h]hnew_size}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj~\ubh). Blocks always appear in ascending order}(hj~\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhj{\ubah}(h]h ]h"]h$]h&]uh1js hj_\ubeh}(h]h ]h"]h$]h&]uh1jQ hjz\hMhj[ubeh}(h]h ]h"]h$]h&]uh1jL hj[ubh)}(h**Description**h]j7 )}(hj\h]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj\ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhj[ubh)}(hFor contiguous allocation, we round up the size to the nearest power of two value, drivers consume *actual* size, so remaining portions are unused and can be optionally freed with this functionh](hcFor contiguous allocation, we round up the size to the nearest power of two value, drivers consume }(hj\hhhNhNubj)}(h*actual*h]hactual}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubhV size, so remaining portions are unused and can be optionally freed with this function}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhj[ubh)}(h **Return**h]j7 )}(hj\h]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj\ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhj[ubh)}(h$0 on success, error code on failure.h]h$0 on success, error code on failure.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjLhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#gpu_buddy_alloc_blocks (C function)c.gpu_buddy_alloc_blockshNtauh1jhjLhhhNhNubj)}(hhh](j)}(hint gpu_buddy_alloc_blocks (struct gpu_buddy *mm, u64 start, u64 end, u64 size, u64 min_block_size, struct list_head *blocks, unsigned long flags)h]j)}(hint gpu_buddy_alloc_blocks(struct gpu_buddy *mm, u64 start, u64 end, u64 size, u64 min_block_size, struct list_head *blocks, unsigned long flags)h](j)}(hinth]hint}(hj1]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-]hhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM]ubj)}(h h]h }(hj@]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-]hhhj?]hM]ubj)}(hgpu_buddy_alloc_blocksh]j)}(hgpu_buddy_alloc_blocksh]hgpu_buddy_alloc_blocks}(hjR]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN]ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj-]hhhj?]hM]ubj>)}(hw(struct gpu_buddy *mm, u64 start, u64 end, u64 size, u64 min_block_size, struct list_head *blocks, unsigned long flags)h](jD)}(hstruct gpu_buddy *mmh](j)}(hj? h]hstruct}(hjn]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj]ubj)}(h h]h }(hj{]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj]ubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj]modnameN classnameNjj)}j]j)}j}jT]sbc.gpu_buddy_alloc_blocksasbuh1hhjj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj]ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj]ubj)}(hmmh]hmm}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjf]ubjD)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj]modnameN classnameNjj)}j]j]c.gpu_buddy_alloc_blocksasbuh1hhj]ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hstarth]hstart}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjf]ubjD)}(hu64 endh](h)}(hhh]j)}(hu64h]hu64}(hj+^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(^ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj-^modnameN classnameNjj)}j]j]c.gpu_buddy_alloc_blocksasbuh1hhj$^ubj)}(h h]h }(hjI^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$^ubj)}(hendh]hend}(hjW^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjf]ubjD)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjs^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp^ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetju^modnameN classnameNjj)}j]j]c.gpu_buddy_alloc_blocksasbuh1hhjl^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl^ubj)}(hsizeh]hsize}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjf]ubjD)}(hu64 min_block_sizeh](h)}(hhh]j)}(hu64h]hu64}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj^modnameN classnameNjj)}j]j]c.gpu_buddy_alloc_blocksasbuh1hhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hmin_block_sizeh]hmin_block_size}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjf]ubjD)}(hstruct list_head *blocksh](j)}(hj? h]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hj _hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hhh]j)}(h list_headh]h list_head}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj _modnameN classnameNjj)}j]j]c.gpu_buddy_alloc_blocksasbuh1hhj^ubj)}(h h]h }(hj<_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hjh]h*}(hjJ_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hblocksh]hblocks}(hjW_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjf]ubjD)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjp_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl_ubj)}(h h]h }(hj~_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl_ubj)}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl_ubj)}(hflagsh]hflags}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjf]ubeh}(h]h ]h"]h$]h&]jjuh1j=hj-]hhhj?]hM]ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)]hhhj?]hM]ubah}(h]j$]ah ](jjeh"]h$]h&]j j )j huh1jhj?]hM]hj&]hhubj )}(hhh]h)}(hallocate power-of-two blocksh]hallocate power-of-two blocks}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM]hj_hhubah}(h]h ]h"]h$]h&]uh1j hj&]hhhj?]hM]ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j_j( j_j) j* j+ uh1jhhhjLhNhNubj- )}(hX**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager to allocate from ``u64 start`` start of the allowed range for this block ``u64 end`` end of the allowed range for this block ``u64 size`` size of the allocation in bytes ``u64 min_block_size`` alignment of the allocation ``struct list_head *blocks`` output list head to add allocated blocks ``unsigned long flags`` GPU_BUDDY_*_ALLOCATION flags **Description** alloc_range_bias() called on range limitations, which traverses the tree and returns the desired block. alloc_from_freetree() called when *no* range restrictions are enforced, which picks the block from the freetree. **Return** 0 on success, error code on failure.h](h)}(h**Parameters**h]j7 )}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj_ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMahj_ubjM )}(hhh](jR )}(h<``struct gpu_buddy *mm`` GPU buddy manager to allocate from h](jX )}(h``struct gpu_buddy *mm``h]j^ )}(hj`h]hstruct gpu_buddy *mm}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj`ubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM_hj `ubjt )}(hhh]h)}(h"GPU buddy manager to allocate fromh]h"GPU buddy manager to allocate from}(hj,`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(`hM_hj)`ubah}(h]h ]h"]h$]h&]uh1js hj `ubeh}(h]h ]h"]h$]h&]uh1jQ hj(`hM_hj `ubjR )}(h8``u64 start`` start of the allowed range for this block h](jX )}(h ``u64 start``h]j^ )}(hjL`h]h u64 start}(hjN`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjJ`ubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM`hjF`ubjt )}(hhh]h)}(h)start of the allowed range for this blockh]h)start of the allowed range for this block}(hje`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja`hM`hjb`ubah}(h]h ]h"]h$]h&]uh1js hjF`ubeh}(h]h ]h"]h$]h&]uh1jQ hja`hM`hj `ubjR )}(h4``u64 end`` end of the allowed range for this block h](jX )}(h ``u64 end``h]j^ )}(hj`h]hu64 end}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj`ubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMahj`ubjt )}(hhh]h)}(h'end of the allowed range for this blockh]h'end of the allowed range for this block}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMahj`ubah}(h]h ]h"]h$]h&]uh1js hj`ubeh}(h]h ]h"]h$]h&]uh1jQ hj`hMahj `ubjR )}(h-``u64 size`` size of the allocation in bytes h](jX )}(h ``u64 size``h]j^ )}(hj`h]hu64 size}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj`ubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMbhj`ubjt )}(hhh]h)}(hsize of the allocation in bytesh]hsize of the allocation in bytes}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMbhj`ubah}(h]h ]h"]h$]h&]uh1js hj`ubeh}(h]h ]h"]h$]h&]uh1jQ hj`hMbhj `ubjR )}(h3``u64 min_block_size`` alignment of the allocation h](jX )}(h``u64 min_block_size``h]j^ )}(hj`h]hu64 min_block_size}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj`ubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMchj`ubjt )}(hhh]h)}(halignment of the allocationh]halignment of the allocation}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ahMchj aubah}(h]h ]h"]h$]h&]uh1js hj`ubeh}(h]h ]h"]h$]h&]uh1jQ hj ahMchj `ubjR )}(hF``struct list_head *blocks`` output list head to add allocated blocks h](jX )}(h``struct list_head *blocks``h]j^ )}(hj0ah]hstruct list_head *blocks}(hj2ahhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj.aubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMdhj*aubjt )}(hhh]h)}(h(output list head to add allocated blocksh]h(output list head to add allocated blocks}(hjIahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEahMdhjFaubah}(h]h ]h"]h$]h&]uh1js hj*aubeh}(h]h ]h"]h$]h&]uh1jQ hjEahMdhj `ubjR )}(h5``unsigned long flags`` GPU_BUDDY_*_ALLOCATION flags h](jX )}(h``unsigned long flags``h]j^ )}(hjiah]hunsigned long flags}(hjkahhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjgaubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMehjcaubjt )}(hhh]h)}(hGPU_BUDDY_*_ALLOCATION flagsh]hGPU_BUDDY_*_ALLOCATION flags}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ahMehjaubah}(h]h ]h"]h$]h&]uh1js hjcaubeh}(h]h ]h"]h$]h&]uh1jQ hj~ahMehj `ubeh}(h]h ]h"]h$]h&]uh1jL hj_ubh)}(h**Description**h]j7 )}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjaubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMghj_ubh)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMfhj_ubh)}(hpalloc_from_freetree() called when *no* range restrictions are enforced, which picks the block from the freetree.h](h"alloc_from_freetree() called when }(hjahhhNhNubj)}(h*no*h]hno}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubhJ range restrictions are enforced, which picks the block from the freetree.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMihj_ubh)}(h **Return**h]j7 )}(hjah]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjaubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMlhj_ubh)}(h$0 on success, error code on failure.h]h$0 on success, error code on failure.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chMmhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjLhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"gpu_buddy_block_print (C function)c.gpu_buddy_block_printhNtauh1jhjLhhhNhNubj)}(hhh](j)}(hPvoid gpu_buddy_block_print (struct gpu_buddy *mm, struct gpu_buddy_block *block)h]j)}(hOvoid gpu_buddy_block_print(struct gpu_buddy *mm, struct gpu_buddy_block *block)h](j)}(hvoidh]hvoid}(hj1bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-bhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM"ubj)}(h h]h }(hj@bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-bhhhj?bhM"ubj)}(hgpu_buddy_block_printh]j)}(hgpu_buddy_block_printh]hgpu_buddy_block_print}(hjRbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNbubah}(h]h ](jjeh"]h$]h&]jjuh1jhj-bhhhj?bhM"ubj>)}(h5(struct gpu_buddy *mm, struct gpu_buddy_block *block)h](jD)}(hstruct gpu_buddy *mmh](j)}(hj? h]hstruct}(hjnbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjbubj)}(h h]h }(hj{bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjbubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjbmodnameN classnameNjj)}j]j)}j}jTbsbc.gpu_buddy_block_printasbuh1hhjjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjbubj)}(hmmh]hmm}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjfbubjD)}(hstruct gpu_buddy_block *blockh](j)}(hj? h]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j)}(hgpu_buddy_blockh]hgpu_buddy_block}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjcmodnameN classnameNjj)}j]jbc.gpu_buddy_block_printasbuh1hhjbubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hj*chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hblockh]hblock}(hj7chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjfbubeh}(h]h ]h"]h$]h&]jjuh1j=hj-bhhhj?bhM"ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)bhhhj?bhM"ubah}(h]j$bah ](jjeh"]h$]h&]j j )j huh1jhj?bhM"hj&bhhubj )}(hhh]h)}(hprint block informationh]hprint block information}(hjachhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM"hj^chhubah}(h]h ]h"]h$]h&]uh1j hj&bhhhj?bhM"ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jycj( jycj) j* j+ uh1jhhhjLhNhNubj- )}(hq**Parameters** ``struct gpu_buddy *mm`` GPU buddy manager ``struct gpu_buddy_block *block`` GPU buddy blockh](h)}(h**Parameters**h]j7 )}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjcubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM&hj}cubjM )}(hhh](jR )}(h+``struct gpu_buddy *mm`` GPU buddy manager h](jX )}(h``struct gpu_buddy *mm``h]j^ )}(hjch]hstruct gpu_buddy *mm}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjcubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM$hjcubjt )}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM$hjcubah}(h]h ]h"]h$]h&]uh1js hjcubeh}(h]h ]h"]h$]h&]uh1jQ hjchM$hjcubjR )}(h1``struct gpu_buddy_block *block`` GPU buddy blockh](jX )}(h!``struct gpu_buddy_block *block``h]j^ )}(hjch]hstruct gpu_buddy_block *block}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjcubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM&hjcubjt )}(hhh]h)}(hGPU buddy blockh]hGPU buddy block}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM%hjcubah}(h]h ]h"]h$]h&]uh1js hjcubeh}(h]h ]h"]h$]h&]uh1jQ hjchM&hjcubeh}(h]h ]h"]h$]h&]uh1jL hj}cubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjLhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpu_buddy_print (C function)c.gpu_buddy_printhNtauh1jhjLhhhNhNubj)}(hhh](j)}(h+void gpu_buddy_print (struct gpu_buddy *mm)h]j)}(h*void gpu_buddy_print(struct gpu_buddy *mm)h](j)}(hvoidh]hvoid}(hj5dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1dhhhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM2ubj)}(h h]h }(hjDdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1dhhhjCdhM2ubj)}(hgpu_buddy_printh]j)}(hgpu_buddy_printh]hgpu_buddy_print}(hjVdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRdubah}(h]h ](jjeh"]h$]h&]jjuh1jhj1dhhhjCdhM2ubj>)}(h(struct gpu_buddy *mm)h]jD)}(hstruct gpu_buddy *mmh](j)}(hj? h]hstruct}(hjrdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjndubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjndubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjdmodnameN classnameNjj)}j]j)}j}jXdsbc.gpu_buddy_printasbuh1hhjndubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjndubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjndubj)}(hmmh]hmm}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjndubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjjdubah}(h]h ]h"]h$]h&]jjuh1j=hj1dhhhjCdhM2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-dhhhjCdhM2ubah}(h]j(dah ](jjeh"]h$]h&]j j )j huh1jhjCdhM2hj*dhhubj )}(hhh]h)}(hprint allocator stateh]hprint allocator state}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM2hjdhhubah}(h]h ]h"]h$]h&]uh1j hj*dhhhjCdhM2ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j ej( j ej) j* j+ uh1jhhhjLhNhNubj- )}(h<**Parameters** ``struct gpu_buddy *mm`` GPU buddy managerh](h)}(h**Parameters**h]j7 )}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjeubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM6hjeubjM )}(hhh]jR )}(h*``struct gpu_buddy *mm`` GPU buddy managerh](jX )}(h``struct gpu_buddy *mm``h]j^ )}(hj6eh]hstruct gpu_buddy *mm}(hj8ehhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj4eubah}(h]h ]h"]h$]h&]uh1jW hO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM8hj0eubjt )}(hhh]h)}(hGPU buddy managerh]hGPU buddy manager}(hjOehhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:534: ./drivers/gpu/buddy.chM4hjLeubah}(h]h ]h"]h$]h&]uh1js hj0eubeh}(h]h ]h"]h$]h&]uh1jQ hjKehM8hj-eubah}(h]h ]h"]h$]h&]uh1jL hjeubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjLhhhNhNubeh}(h]jah ]h"]/buddy allocator function references (gpu buddy)ah$]h&]uh1hhjwLhhhhhMubh)}(hhh](h)}(h.DRM Buddy Specific Logging Function Referencesh]h.DRM Buddy Specific Logging Function References}(hjehhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhj~ehhhhhMubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_buddy_block_print (C function)c.drm_buddy_block_printhNtauh1jhj~ehhhNhNubj)}(hhh](j)}(hgvoid drm_buddy_block_print (struct gpu_buddy *mm, struct gpu_buddy_block *block, struct drm_printer *p)h]j)}(hfvoid drm_buddy_block_print(struct gpu_buddy *mm, struct gpu_buddy_block *block, struct drm_printer *p)h](j)}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chKubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjehKubj)}(hdrm_buddy_block_printh]j)}(hdrm_buddy_block_printh]hdrm_buddy_block_print}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jhjehhhjehKubj>)}(hL(struct gpu_buddy *mm, struct gpu_buddy_block *block, struct drm_printer *p)h](jD)}(hstruct gpu_buddy *mmh](j)}(hj? h]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjfmodnameN classnameNjj)}j]j)}j}jesbc.drm_buddy_block_printasbuh1hhjeubj)}(h h]h }(hj#fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hj1fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hmmh]hmm}(hj>fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjeubjD)}(hstruct gpu_buddy_block *blockh](j)}(hj? h]hstruct}(hjWfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSfubj)}(h h]h }(hjdfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSfubh)}(hhh]j)}(hgpu_buddy_blockh]hgpu_buddy_block}(hjufhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrfubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjwfmodnameN classnameNjj)}j]jfc.drm_buddy_block_printasbuh1hhjSfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSfubj)}(hblockh]hblock}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSfubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjeubjD)}(hstruct drm_printer *ph](j)}(hj? h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjfmodnameN classnameNjj)}j]jfc.drm_buddy_block_printasbuh1hhjfubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hjh]hp}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjeubeh}(h]h ]h"]h$]h&]jjuh1j=hjehhhjehKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjehKubah}(h]jeah ](jjeh"]h$]h&]j j )j huh1jhjehKhjehhubj )}(hhh]h)}(hprint block informationh]hprint block information}(hjGghhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chKhjDghhubah}(h]h ]h"]h$]h&]uh1j hjehhhjehKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j_gj( j_gj) j* j+ uh1jhhhj~ehNhNubj- )}(h**Parameters** ``struct gpu_buddy *mm`` DRM buddy manager ``struct gpu_buddy_block *block`` DRM buddy block ``struct drm_printer *p`` DRM printer to useh](h)}(h**Parameters**h]j7 )}(hjigh]h Parameters}(hjkghhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjggubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chKhjcgubjM )}(hhh](jR )}(h+``struct gpu_buddy *mm`` DRM buddy manager h](jX )}(h``struct gpu_buddy *mm``h]j^ )}(hjgh]hstruct gpu_buddy *mm}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjgubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chKhjgubjt )}(hhh]h)}(hDRM buddy managerh]hDRM buddy manager}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKhjgubah}(h]h ]h"]h$]h&]uh1js hjgubeh}(h]h ]h"]h$]h&]uh1jQ hjghKhjgubjR )}(h2``struct gpu_buddy_block *block`` DRM buddy block h](jX )}(h!``struct gpu_buddy_block *block``h]j^ )}(hjgh]hstruct gpu_buddy_block *block}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjgubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chKhjgubjt )}(hhh]h)}(hDRM buddy blockh]hDRM buddy block}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKhjgubah}(h]h ]h"]h$]h&]uh1js hjgubeh}(h]h ]h"]h$]h&]uh1jQ hjghKhjgubjR )}(h,``struct drm_printer *p`` DRM printer to useh](jX )}(h``struct drm_printer *p``h]j^ )}(hjgh]hstruct drm_printer *p}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjgubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chKhjgubjt )}(hhh]h)}(hDRM printer to useh]hDRM printer to use}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chKhjhubah}(h]h ]h"]h$]h&]uh1js hjgubeh}(h]h ]h"]h$]h&]uh1jQ hjhhKhjgubeh}(h]h ]h"]h$]h&]uh1jL hjcgubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj~ehhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_buddy_print (C function)c.drm_buddy_printhNtauh1jhj~ehhhNhNubj)}(hhh](j)}(hBvoid drm_buddy_print (struct gpu_buddy *mm, struct drm_printer *p)h]j)}(hAvoid drm_buddy_print(struct gpu_buddy *mm, struct drm_printer *p)h](j)}(hvoidh]hvoid}(hjThhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chK$ubj)}(h h]h }(hjchhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhhjbhhK$ubj)}(hdrm_buddy_printh]j)}(hdrm_buddy_printh]hdrm_buddy_print}(hjuhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhubah}(h]h ](jjeh"]h$]h&]jjuh1jhjPhhhhjbhhK$ubj>)}(h-(struct gpu_buddy *mm, struct drm_printer *p)h](jD)}(hstruct gpu_buddy *mmh](j)}(hj? h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]j)}(h gpu_buddyh]h gpu_buddy}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjhmodnameN classnameNjj)}j]j)}j}jwhsbc.drm_buddy_printasbuh1hhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hmmh]hmm}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjhubjD)}(hstruct drm_printer *ph](j)}(hj? h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj!ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj#imodnameN classnameNjj)}j]jhc.drm_buddy_printasbuh1hhjhubj)}(h h]h }(hj?ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjMihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hjh]hp}(hjZihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjhubeh}(h]h ]h"]h$]h&]jjuh1j=hjPhhhhjbhhK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhhjbhhK$ubah}(h]jGhah ](jjeh"]h$]h&]j j )j huh1jhjbhhK$hjIhhhubj )}(hhh]h)}(hprint allocator stateh]hprint allocator state}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chK$hjihhubah}(h]h ]h"]h$]h&]uh1j hjIhhhhjbhhK$ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jij( jij) j* j+ uh1jhhhj~ehNhNubj- )}(hl**Parameters** ``struct gpu_buddy *mm`` DRM buddy manager ``struct drm_printer *p`` DRM printer to useh](h)}(h**Parameters**h]j7 )}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjiubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chK(hjiubjM )}(hhh](jR )}(h+``struct gpu_buddy *mm`` DRM buddy manager h](jX )}(h``struct gpu_buddy *mm``h]j^ )}(hjih]hstruct gpu_buddy *mm}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjiubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chK&hjiubjt )}(hhh]h)}(hDRM buddy managerh]hDRM buddy manager}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihK&hjiubah}(h]h ]h"]h$]h&]uh1js hjiubeh}(h]h ]h"]h$]h&]uh1jQ hjihK&hjiubjR )}(h,``struct drm_printer *p`` DRM printer to useh](jX )}(h``struct drm_printer *p``h]j^ )}(hjih]hstruct drm_printer *p}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjiubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chK(hjiubjt )}(hhh]h)}(hDRM printer to useh]hDRM printer to use}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:540: ./drivers/gpu/drm/drm_buddy.chK'hjjubah}(h]h ]h"]h$]h&]uh1js hjiubeh}(h]h ]h"]h$]h&]uh1jQ hjjhK(hjiubeh}(h]h ]h"]h$]h&]uh1jL hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hj~ehhhNhNubeh}(h]jah ]h"].drm buddy specific logging function referencesah$]h&]uh1hhjwLhhhhhMubeh}(h]jrah ]h"]drm buddy allocatorah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h'DRM Cache Handling and Fast WC memcpy()h]h'DRM Cache Handling and Fast WC memcpy()}(hjOjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjLjhhhhhM ubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_clflush_pages (C function)c.drm_clflush_pageshNtauh1jhjLjhhhNhNubj)}(hhh](j)}(hFvoid drm_clflush_pages (struct page *pages[], unsigned long num_pages)h]j)}(hEvoid drm_clflush_pages(struct page *pages[], unsigned long num_pages)h](j)}(hvoidh]hvoid}(hjvjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKOubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrjhhhjjhKOubj)}(hdrm_clflush_pagesh]j)}(hdrm_clflush_pagesh]hdrm_clflush_pages}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjrjhhhjjhKOubj>)}(h/(struct page *pages[], unsigned long num_pages)h](jD)}(hstruct page *pages[]h](j)}(hj? h]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j)}(hpageh]hpage}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjjmodnameN classnameNjj)}j]j)}j}jjsbc.drm_clflush_pagesasbuh1hhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hpagesh]hpages}(hj khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h[h]h[}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h]h]h]}(hj(khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjjubjD)}(hunsigned long num_pagesh](j)}(hunsignedh]hunsigned}(hjAkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=kubj)}(h h]h }(hjOkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=kubj)}(hlongh]hlong}(hj]khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=kubj)}(h h]h }(hjkkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=kubj)}(h num_pagesh]h num_pages}(hjykhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=kubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjjubeh}(h]h ]h"]h$]h&]jjuh1j=hjrjhhhjjhKOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnjhhhjjhKOubah}(h]jijah ](jjeh"]h$]h&]j j )j huh1jhjjhKOhjkjhhubj )}(hhh]h)}(h%Flush dcache lines of a set of pages.h]h%Flush dcache lines of a set of pages.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKOhjkhhubah}(h]h ]h"]h$]h&]uh1j hjkjhhhjjhKOubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jkj( jkj) j* j+ uh1jhhhjLjhNhNubj- )}(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]j7 )}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjkubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKShjkubjM )}(hhh](jR )}(h6``struct page *pages[]`` List of pages to be flushed. h](jX )}(h``struct page *pages[]``h]j^ )}(hjkh]hstruct page *pages[]}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjkubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKPhjkubjt )}(hhh]h)}(hList of pages to be flushed.h]hList of pages to be flushed.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKPhjkubah}(h]h ]h"]h$]h&]uh1js hjkubeh}(h]h ]h"]h$]h&]uh1jQ hjkhKPhjkubjR )}(h:``unsigned long num_pages`` Number of pages in the array. h](jX )}(h``unsigned long num_pages``h]j^ )}(hjlh]hunsigned long num_pages}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKQhjlubjt )}(hhh]h)}(hNumber of pages in the array.h]hNumber of pages in the array.}(hj6lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2lhKQhj3lubah}(h]h ]h"]h$]h&]uh1js hjlubeh}(h]h ]h"]h$]h&]uh1jQ hj2lhKQhjkubeh}(h]h ]h"]h$]h&]uh1jL hjkubh)}(h**Description**h]j7 )}(hjXlh]h Description}(hjZlhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjVlubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKShjkubh)}(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.}(hjnlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKRhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjLjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_clflush_sg (C function)c.drm_clflush_sghNtauh1jhjLjhhhNhNubj)}(hhh](j)}(h)void drm_clflush_sg (struct sg_table *st)h]j)}(h(void drm_clflush_sg(struct sg_table *st)h](j)}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKxubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhjlhKxubj)}(hdrm_clflush_sgh]j)}(hdrm_clflush_sgh]hdrm_clflush_sg}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jhjlhhhjlhKxubj>)}(h(struct sg_table *st)h]jD)}(hstruct sg_table *sth](j)}(hj? h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j)}(hsg_tableh]hsg_table}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjlmodnameN classnameNjj)}j]j)}j}jlsbc.drm_clflush_sgasbuh1hhjlubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hjh]h*}(hj&mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hsth]hst}(hj3mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjlubah}(h]h ]h"]h$]h&]jjuh1j=hjlhhhjlhKxubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjlhKxubah}(h]jlah ](jjeh"]h$]h&]j j )j huh1jhjlhKxhjlhhubj )}(hhh]h)}(h0Flush dcache lines pointing to a scather-gather.h]h0Flush dcache lines pointing to a scather-gather.}(hj]mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKxhjZmhhubah}(h]h ]h"]h$]h&]uh1j hjlhhhjlhKxubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jumj( jumj) j* j+ uh1jhhhjLjhNhNubj- )}(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]j7 )}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj}mubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chK|hjymubjM )}(hhh]jR )}(h)``struct sg_table *st`` struct sg_table. h](jX )}(h``struct sg_table *st``h]j^ )}(hjmh]hstruct sg_table *st}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjmubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKyhjmubjt )}(hhh]h)}(hstruct sg_table.h]hstruct sg_table.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKyhjmubah}(h]h ]h"]h$]h&]uh1js hjmubeh}(h]h ]h"]h$]h&]uh1jQ hjmhKyhjmubah}(h]h ]h"]h$]h&]uh1jL hjymubh)}(h**Description**h]j7 )}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjmubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chK{hjymubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKzhjymubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjLjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_clflush_virt_range (C function)c.drm_clflush_virt_rangehNtauh1jhjLjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKubj)}(h h]h }(hj-nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhj,nhKubj)}(hdrm_clflush_virt_rangeh]j)}(hdrm_clflush_virt_rangeh]hdrm_clflush_virt_range}(hj?nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;nubah}(h]h ](jjeh"]h$]h&]jjuh1jhjnhhhj,nhKubj>)}(h"(void *addr, unsigned long length)h](jD)}(h void *addrh](j)}(hvoidh]hvoid}(hj[nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWnubj)}(h h]h }(hjinhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWnubj)}(hjh]h*}(hjwnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWnubj)}(haddrh]haddr}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWnubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjSnubjD)}(hunsigned long lengthh](j)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hlengthh]hlength}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjSnubeh}(h]h ]h"]h$]h&]jjuh1j=hjnhhhj,nhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhj,nhKubah}(h]jnah ](jjeh"]h$]h&]j j )j huh1jhj,nhKhjnhhubj )}(hhh]h)}(hFlush dcache lines of a regionh]hFlush dcache lines of a region}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKhjnhhubah}(h]h ]h"]h$]h&]uh1j hjnhhhj,nhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' joj( joj) j* j+ uh1jhhhjLjhNhNubj- )}(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]j7 )}(hj!oh]h Parameters}(hj#ohhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjoubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKhjoubjM )}(hhh](jR )}(h.``void *addr`` Initial kernel memory address. h](jX )}(h``void *addr``h]j^ )}(hj@oh]h void *addr}(hjBohhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj>oubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKhj:oubjt )}(hhh]h)}(hInitial kernel memory address.h]hInitial kernel memory address.}(hjYohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUohKhjVoubah}(h]h ]h"]h$]h&]uh1js hj:oubeh}(h]h ]h"]h$]h&]uh1jQ hjUohKhj7oubjR )}(h&``unsigned long length`` Region size. h](jX )}(h``unsigned long length``h]j^ )}(hjyoh]hunsigned long length}(hj{ohhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjwoubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKhjsoubjt )}(hhh]h)}(h Region size.h]h Region size.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohKhjoubah}(h]h ]h"]h$]h&]uh1js hjsoubeh}(h]h ]h"]h$]h&]uh1jQ hjohKhj7oubeh}(h]h ]h"]h$]h&]uh1jL hjoubh)}(h**Description**h]j7 )}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjoubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKhjoubh)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chKhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjLjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_memcpy_from_wc (C function)c.drm_memcpy_from_wchNtauh1jhjLjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chM%ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjphM%ubj)}(hdrm_memcpy_from_wch]j)}(hdrm_memcpy_from_wch]hdrm_memcpy_from_wc}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jhjohhhjphM%ubj>)}(hG(struct iosys_map *dst, const struct iosys_map *src, unsigned long len)h](jD)}(hstruct iosys_map *dsth](j)}(hj? h]hstruct}(hj6phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2pubj)}(h h]h }(hjCphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2pubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjTphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQpubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjVpmodnameN classnameNjj)}j]j)}j}jpsbc.drm_memcpy_from_wcasbuh1hhj2pubj)}(h h]h }(hjtphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2pubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2pubj)}(hdsth]hdst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2pubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj.pubjD)}(hconst struct iosys_map *srch](j)}(hjJh]hconst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hj? h]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j)}(h iosys_maph]h iosys_map}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjpmodnameN classnameNjj)}j]jppc.drm_memcpy_from_wcasbuh1hhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hj qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hsrch]hsrc}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj.pubjD)}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hj3qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/qubj)}(h h]h }(hjAqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/qubj)}(hlongh]hlong}(hjOqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/qubj)}(h h]h }(hj]qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/qubj)}(hlenh]hlen}(hjkqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/qubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj.pubeh}(h]h ]h"]h$]h&]jjuh1j=hjohhhjphM%ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjphM%ubah}(h]joah ](jjeh"]h$]h&]j j )j huh1jhjphM%hjohhubj )}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chM%hjqhhubah}(h]h ]h"]h$]h&]uh1j hjohhhjphM%ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jqj( jqj) j* j+ uh1jhhhjLjhNhNubj- )}(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]j7 )}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjqubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chM)hjqubjM )}(hhh](jR )}(h2``struct iosys_map *dst`` The destination pointer h](jX )}(h``struct iosys_map *dst``h]j^ )}(hjqh]hstruct iosys_map *dst}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjqubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chM'hjqubjt )}(hhh]h)}(hThe destination pointerh]hThe destination pointer}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM'hjqubah}(h]h ]h"]h$]h&]uh1js hjqubeh}(h]h ]h"]h$]h&]uh1jQ hjqhM'hjqubjR )}(h3``const struct iosys_map *src`` The source pointer h](jX )}(h``const struct iosys_map *src``h]j^ )}(hjrh]hconst struct iosys_map *src}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj rubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chM(hj rubjt )}(hhh]h)}(hThe source pointerh]hThe source pointer}(hj(rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$rhM(hj%rubah}(h]h ]h"]h$]h&]uh1js hj rubeh}(h]h ]h"]h$]h&]uh1jQ hj$rhM(hjqubjR )}(h?``unsigned long len`` The size of the area o transfer in bytes h](jX )}(h``unsigned long len``h]j^ )}(hjHrh]hunsigned long len}(hjJrhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjFrubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chM)hjBrubjt )}(hhh]h)}(h(The size of the area o transfer in bytesh]h(The size of the area o transfer in bytes}(hjarhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]rhM)hj^rubah}(h]h ]h"]h$]h&]uh1js hjBrubeh}(h]h ]h"]h$]h&]uh1jQ hj]rhM)hjqubeh}(h]h ]h"]h$]h&]uh1jL hjqubh)}(h**Description**h]j7 )}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjrubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chM+hjqubh)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:546: ./drivers/gpu/drm/drm_cache.chM*hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjLjhhhNhNubj)}(h.. _drm_sync_objects:h]h}(h]h ]h"]h$]h&]hjuh1jhM%hjLjhhhhubeh}(h]jah ]h"]'drm cache handling and fast wc memcpy()ah$]h&]uh1hhhhhhhhM ubh)}(hhh](h)}(hDRM Sync Objectsh]hDRM Sync Objects}(hjrhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjrhhhhhM(ubh)}(hXDRM synchronisation objects (syncobj, see struct :c:type:`drm_syncobj`) provide a container for a synchronization primitive which can be used by userspace to explicitly synchronize GPU commands, can be shared between userspace processes, and can be shared between different DRM drivers. Their primary use-case is to implement Vulkan fences and semaphores. The syncobj userspace API provides ioctls for several operations:h](h1DRM synchronisation objects (syncobj, see struct }(hjrhhhNhNubh)}(h:c:type:`drm_syncobj`h]j^ )}(hjrh]h drm_syncobj}(hjrhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjrubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_syncobjuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKhjrubhX_) 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:}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhKhjrhhubj )}(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)}(hj sh]h$Creation and destruction of syncobjs}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK%hj subah}(h]h ]h"]h$]h&]uh1jhjsubj)}(h?Import and export of syncobjs to/from a syncobj file descriptorh]h)}(hj$sh]h?Import and export of syncobjs to/from a syncobj file descriptor}(hj&shhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK&hj"subah}(h]h ]h"]h$]h&]uh1jhjsubj)}(hBImport and export a syncobj's underlying fence to/from a sync fileh]h)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK'hj:subah}(h]h ]h"]h$]h&]uh1jhjsubj)}(h'Reset a syncobj (set its fence to NULL)h]h)}(hjTsh]h'Reset a syncobj (set its fence to NULL)}(hjVshhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK(hjRsubah}(h]h ]h"]h$]h&]uh1jhjsubj)}(h1Signal a syncobj (set a trivially signaled fence)h]h)}(hjlsh]h1Signal a syncobj (set a trivially signaled fence)}(hjnshhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK)hjjsubah}(h]h ]h"]h$]h&]uh1jhjsubj)}(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}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK*hjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1j hjshK%hjsubah}(h]h ]h"]h$]h&]uh1jhjshK%hjrhhubh)}(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 }(hjshhhNhNubh)}(h:c:type:`dma_fence_chain`h]j^ )}(hjsh]hdma_fence_chain}(hjshhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_fence_chainuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK,hjsubh rather than a single struct }(hjshhhNhNubh)}(h:c:type:`dma_fence`h]j^ )}(hjsh]h dma_fence}(hjshhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_fenceuh1hhjshK,hjsubh#, through the following operations:}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjshK,hjrhhubj )}(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)}(hjth]h$Signal a given point on the timeline}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK0hjtubah}(h]h ]h"]h$]h&]uh1jhjtubj)}(h3Wait for a given point to appear and/or be signaledh]h)}(hjth]h3Wait for a given point to appear and/or be signaled}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK1hjtubah}(h]h ]h"]h$]h&]uh1jhjtubj)}(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}(hj7thhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK2hj3tubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1j hjthK0hjsubah}(h]h ]h"]h$]h&]uh1jhjthK0hjrhhubh)}(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 }(hjXthhhNhNubh)}(h:c:type:`dma_fence`h]j^ )}(hjbth]h dma_fence}(hjdthhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj`tubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_fenceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK4hjXtubh 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 }(hjXthhhNhNubh)}(h%:c:type:`DRM_SYNCOBJ_CREATE_SIGNALED`h]j^ )}(hjth]hDRM_SYNCOBJ_CREATE_SIGNALED}(hjthhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjtubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_SYNCOBJ_CREATE_SIGNALEDuh1hhjthK4hjXtubh flag is passed to }(hjXthhhNhNubh)}(h":c:type:`DRM_IOCTL_SYNCOBJ_CREATE`h]j^ )}(hjth]hDRM_IOCTL_SYNCOBJ_CREATE}(hjthhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjtubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_IOCTL_SYNCOBJ_CREATEuh1hhjthK4hjXtubh.}(hjXthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjthK4hjrhhubh)}(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 }(hjthhhNhNubh)}(h:c:type:`dma_fence_chain`h]j^ )}(hjth]hdma_fence_chain}(hjthhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjtubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_fence_chainuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK;hjtubhv pointing to the DRM driver’s fence and also pointing to the previous fence that was in the syncobj. The new struct }(hjthhhNhNubh)}(h:c:type:`dma_fence_chain`h]j^ )}(hjth]hdma_fence_chain}(hjuhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjtubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_fence_chainuh1hhjthK;hjtubh 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.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjthK;hjrhhubh)}(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 :}(hj%uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKGhjrhhubj )}(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.}(hj?uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKKhj;uubah}(h]h ]h"]h$]h&]uh1jhj8uubj)}(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 }(hjXuhhhNhNubh)}(h:c:type:`dma_fence`h]j^ )}(hjbuh]h dma_fence}(hjduhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj`uubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_fenceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKMhjXuubhT associated with a given point if the syncobj is considered as a timeline primitive.}(hjXuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjuhKMhjTuubah}(h]h ]h"]h$]h&]uh1jhj8uubeh}(h]h ]h"]h$]h&]jjuh1j hjMuhKKhj4uubah}(h]h ]h"]h$]h&]uh1jhjMuhKKhjrhhubh)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKPhjrhhubh)}(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. }(hjuhhhNhNubh)}(h!:c:type:`DRM_IOCTL_SYNCOBJ_RESET`h]j^ )}(hjuh]hDRM_IOCTL_SYNCOBJ_RESET}(hjuhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjuubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_IOCTL_SYNCOBJ_RESETuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKShjuubh and }(hjuhhhNhNubh)}(h":c:type:`DRM_IOCTL_SYNCOBJ_SIGNAL`h]j^ )}(hjuh]hDRM_IOCTL_SYNCOBJ_SIGNAL}(hjuhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjuubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_IOCTL_SYNCOBJ_SIGNALuh1hhjuhKShjuubh 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.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjuhKShjrhhubh)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK[hjrhhubh)}(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).}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chK`hjrhhubh)}(hhh](h)}(hHost-side wait on syncobjsh]hHost-side wait on syncobjs}(hj!vhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjvhNhNubh)}(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^ )}(hj5vh]hDRM_IOCTL_SYNCOBJ_WAIT}(hj7vhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj3vubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_IOCTL_SYNCOBJ_WAITuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKlhj/vubhm takes an array of syncobj handles and does a host-side wait on all of the syncobj fences simultaneously. If }(hj/vhhhNhNubh)}(h):c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL`h]j^ )}(hjYvh]hDRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL}(hj[vhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjWvubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALLuh1hhjRvhKlhj/vubh 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/vhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjRvhKlhjvubh)}(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 }(hjvhhhNhNubh)}(h0:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT`h]j^ )}(hjvh]h&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT}(hjvhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjvubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMITuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKshjvubhx 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 }(hjvhhhNhNubh)}(h0:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT`h]j^ )}(hjvh]h&DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT}(hjvhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjvubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMITuh1hhjvhKshjvubhX 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.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjvhKshjvubh)}(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 }(hjvhhhNhNubh)}(h.:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE`h]j^ )}(hjvh]h$DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE}(hjvhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjvubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j $DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINEuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKhjvubh 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 }(hjvhhhNhNubh)}(h:c:type:`CLOCK_MONOTONIC`h]j^ )}(hjwh]hCLOCK_MONOTONIC}(hjwhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjwubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j CLOCK_MONOTONICuh1hhjvhKhjvubh value in units of ns.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjvhKhjvubh)}(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*whhhNhNubh)}(h):c:type:`DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT`h]j^ )}(hj4wh]hDRM_IOCTL_SYNCOBJ_TIMELINE_WAIT}(hj6whhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj2wubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_IOCTL_SYNCOBJ_TIMELINE_WAITuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKhj*wubh 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*whhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQwhKhjvubh)}(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^ )}(hjbwh]hDRM_IOCTL_SYNCOBJ_TIMELINE_WAIT}(hjdwhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj`wubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_IOCTL_SYNCOBJ_TIMELINE_WAITuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKhj\wubh 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\whhhNhNubh)}(h/:c:type:`DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE`h]j^ )}(hjwh]h%DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE}(hjwhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjwubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j %DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLEuh1hhjwhKhj\wubhx flag. This requirement is inherited from the wait-before-signal behavior required by the Vulkan timeline semaphore API.}(hj\whhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhKhjvubh)}(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, }(hjwhhhNhNubh)}(h#:c:type:`DRM_IOCTL_SYNCOBJ_EVENTFD`h]j^ )}(hjwh]hDRM_IOCTL_SYNCOBJ_EVENTFD}(hjwhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjwubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_IOCTL_SYNCOBJ_EVENTFDuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKhjwubh 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.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhKhjvubeh}(h]j"ah ]h"]host-side wait on syncobjsah$]h&]uh1hhjrhhhNhNubh)}(hhh](h)}(hImport/export of syncobjsh]hImport/export of syncobjs}(hjwhhhNhNubah}(h]h ]h"]h$]h&]hj>uh1hhjwhNhNubh)}(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^ )}(hjwh]hDRM_IOCTL_SYNCOBJ_FD_TO_HANDLE}(hjwhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjwubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_IOCTL_SYNCOBJ_FD_TO_HANDLEuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKhjwubh and }(hjwhhhNhNubh)}(h(:c:type:`DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD`h]j^ )}(hj!xh]hDRM_IOCTL_SYNCOBJ_HANDLE_TO_FD}(hj#xhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjxubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_IOCTL_SYNCOBJ_HANDLE_TO_FDuh1hhjxhKhjwubh6 provide two mechanisms for import/export of syncobjs.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxhKhjwubh)}(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 }(hjHxhhhNhNubh)}(h:c:type:`drm_syncobj`h]j^ )}(hjRxh]h drm_syncobj}(hjTxhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjPxubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_syncobjuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKhjHxubhXy 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.}(hjHxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjoxhKhjwubh)}(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 }(hjzxhhhNhNubh)}(h9:c:type:`DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE`h]j^ )}(hjxh]h/DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE}(hjxhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjxubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j /DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILEuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKhjzxubh or }(hjzxhhhNhNubh)}(h9:c:type:`DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE`h]j^ )}(hjxh]h/DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE}(hjxhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjxubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j /DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILEuh1hhjxhKhjzxubhG lets the client import/export the syncobj’s current fence from/to a }(hjzxhhhNhNubh)}(h:c:type:`sync_file`h]j^ )}(hjxh]h sync_file}(hjxhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjxubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j sync_fileuh1hhjxhKhjzxubhX. 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.}(hjzxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxhKhjwubeh}(h]jDah ]h"]import/export of syncobjsah$]h&]uh1hhjrhhhNhNubh)}(hhh](h)}(h5Import/export of timeline points in timeline syncobjsh]h5Import/export of timeline points in timeline syncobjs}(hjxhhhNhNubah}(h]h ]h"]h$]h&]hj`uh1hhjxhNhNubh)}(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^ )}(hjyh]hDRM_IOCTL_SYNCOBJ_TRANSFER}(hjyhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjyubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j DRM_IOCTL_SYNCOBJ_TRANSFERuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKhj yubh+ provides a mechanism to transfer a struct }(hj yhhhNhNubh)}(h:c:type:`dma_fence_chain`h]j^ )}(hj4yh]hdma_fence_chain}(hj6yhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj2yubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_fence_chainuh1hhj-yhKhj yubhM of a syncobj at a given u64 point to another u64 point into another syncobj.}(hj yhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-yhKhjxubh)}(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[yhhhNhNubh)}(h:c:type:`dma_fence_chain`h]j^ )}(hjeyh]hdma_fence_chain}(hjgyhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjcyubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_fence_chainuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:554: ./drivers/gpu/drm/drm_syncobj.chKhj[yubh 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[yhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjyhKhjxubeh}(h]jfah ]h"]5import/export of timeline points in timeline syncobjsah$]h&]uh1hhjrhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_syncobj (C struct) c.drm_syncobjhNtauh1jhjrhhhNhNubj)}(hhh](j)}(h drm_syncobjh]j)}(hstruct drm_syncobjh](j)}(hj? h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjyhKubj)}(h drm_syncobjh]j)}(hjyh]h drm_syncobj}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jhjyhhhjyhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjyhKubah}(h]jyah ](jjeh"]h$]h&]j j )j huh1jhjyhKhjyhhubj )}(hhh]h)}(h sync object.h]h sync object.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK#hjyhhubah}(h]h ]h"]h$]h&]uh1j hjyhhhjyhKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jzj( jzj) j* j+ uh1jhhhjrhNhNubj- )}(hX**Definition**:: struct drm_syncobj { struct kref refcount; struct dma_fence *fence; struct list_head cb_list; struct list_head ev_fd_list; spinlock_t lock; struct file *file; }; **Members** ``refcount`` Reference count of this object. ``fence`` NULL or a pointer to the fence bound to this object. This field should not be used directly. Use drm_syncobj_fence_get() and drm_syncobj_replace_fence() instead. ``cb_list`` List of callbacks to call when the :c:type:`fence` gets replaced. ``ev_fd_list`` List of registered eventfd. ``lock`` Protects :c:type:`cb_list` and :c:type:`ev_fd_list`, and write-locks :c:type:`fence`. ``file`` A file backing for this syncobj.h](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjzubh:}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK'hj zubj )}(hstruct drm_syncobj { struct kref refcount; struct dma_fence *fence; struct list_head cb_list; struct list_head ev_fd_list; spinlock_t lock; struct file *file; };h]hstruct drm_syncobj { struct kref refcount; struct dma_fence *fence; struct list_head cb_list; struct list_head ev_fd_list; spinlock_t lock; struct file *file; };}hj,zsbah}(h]h ]h"]h$]h&]jjuh1j hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK)hj zubh)}(h **Members**h]j7 )}(hj=zh]hMembers}(hj?zhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj;zubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK2hj zubjM )}(hhh](jR )}(h-``refcount`` Reference count of this object. h](jX )}(h ``refcount``h]j^ )}(hj\zh]hrefcount}(hj^zhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjZzubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK*hjVzubjt )}(hhh]h)}(hReference count of this object.h]hReference count of this object.}(hjuzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqzhK*hjrzubah}(h]h ]h"]h$]h&]uh1js hjVzubeh}(h]h ]h"]h$]h&]uh1jQ hjqzhK*hjSzubjR )}(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](jX )}(h ``fence``h]j^ )}(hjzh]hfence}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjzubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK1hjzubjt )}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK.hjzubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK0hjzubeh}(h]h ]h"]h$]h&]uh1js hjzubeh}(h]h ]h"]h$]h&]uh1jQ hjzhK1hjSzubjR )}(hN``cb_list`` List of callbacks to call when the :c:type:`fence` gets replaced. h](jX )}(h ``cb_list``h]j^ )}(hjzh]hcb_list}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjzubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK6hjzubjt )}(hhh]h)}(hAList of callbacks to call when the :c:type:`fence` gets replaced.h](h#List of callbacks to call when the }(hjzhhhNhNubh)}(h:c:type:`fence`h]j^ )}(hj{h]hfence}(hj{hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjzubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j fenceuh1hhjzhK6hjzubh gets replaced.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhK6hjzubah}(h]h ]h"]h$]h&]uh1js hjzubeh}(h]h ]h"]h$]h&]uh1jQ hjzhK6hjSzubjR )}(h+``ev_fd_list`` List of registered eventfd. h](jX )}(h``ev_fd_list``h]j^ )}(hj:{h]h ev_fd_list}(hj<{hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj8{ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK:hj4{ubjt )}(hhh]h)}(hList of registered eventfd.h]hList of registered eventfd.}(hjS{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO{hK:hjP{ubah}(h]h ]h"]h$]h&]uh1js hj4{ubeh}(h]h ]h"]h$]h&]uh1jQ hjO{hK:hjSzubjR )}(h_``lock`` Protects :c:type:`cb_list` and :c:type:`ev_fd_list`, and write-locks :c:type:`fence`. h](jX )}(h``lock``h]j^ )}(hjs{h]hlock}(hju{hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjq{ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK>hjm{ubjt )}(hhh]h)}(hUProtects :c:type:`cb_list` and :c:type:`ev_fd_list`, and write-locks :c:type:`fence`.h](h Protects }(hj{hhhNhNubh)}(h:c:type:`cb_list`h]j^ )}(hj{h]hcb_list}(hj{hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj{ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j cb_listuh1hhj{hK>hj{ubh and }(hj{hhhNhNubh)}(h:c:type:`ev_fd_list`h]j^ )}(hj{h]h ev_fd_list}(hj{hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj{ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j ev_fd_listuh1hhj{hK>hj{ubh, and write-locks }(hj{hhhNhNubh)}(h:c:type:`fence`h]j^ )}(hj{h]hfence}(hj{hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj{ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j fenceuh1hhj{hK>hj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{hK>hj{ubah}(h]h ]h"]h$]h&]uh1js hjm{ubeh}(h]h ]h"]h$]h&]uh1jQ hj{hK>hjSzubjR )}(h)``file`` A file backing for this syncobj.h](jX )}(h``file``h]j^ )}(hj|h]hfile}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj|ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKAhj|ubjt )}(hhh]h)}(h A file backing for this syncobj.h]h A file backing for this syncobj.}(hj.|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKBhj+|ubah}(h]h ]h"]h$]h&]uh1js hj|ubeh}(h]h ]h"]h$]h&]uh1jQ hj*|hKAhjSzubeh}(h]h ]h"]h$]h&]uh1jL hj zubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubh)}(h**Description**h]j7 )}(hjX|h]h Description}(hjZ|hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjV|ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKEhjrhhubh)}(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 }(hjn|hhhNhNubh)}(h:c:type:`dma_fence`h]j^ )}(hjx|h]h dma_fence}(hjz|hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjv|ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j dma_fenceuh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK$hjn|ubh.}(hjn|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|hK$hjrhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_syncobj_get (C function)c.drm_syncobj_gethNtauh1jhjrhhhNhNubj)}(hhh](j)}(h.void drm_syncobj_get (struct drm_syncobj *obj)h]j)}(h-void drm_syncobj_get(struct drm_syncobj *obj)h](j)}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKIubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj|hKIubj)}(hdrm_syncobj_geth]j)}(hdrm_syncobj_geth]hdrm_syncobj_get}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj|hhhj|hKIubj>)}(h(struct drm_syncobj *obj)h]jD)}(hstruct drm_syncobj *objh](j)}(hj? h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj}modnameN classnameNjj)}j]j)}j}j|sbc.drm_syncobj_getasbuh1hhj|ubj)}(h h]h }(hj4}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hjB}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hobjh]hobj}(hjO}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj|ubah}(h]h ]h"]h$]h&]jjuh1j=hj|hhhj|hKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hKIubah}(h]j|ah ](jjeh"]h$]h&]j j )j huh1jhj|hKIhj|hhubj )}(hhh]h)}(hacquire a syncobj referenceh]hacquire a syncobj reference}(hjy}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKIhjv}hhubah}(h]h ]h"]h$]h&]uh1j hj|hhhj|hKIubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j}j( j}j) j* j+ uh1jhhhjrhNhNubj- )}(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]j7 )}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj}ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKMhj}ubjM )}(hhh]jR )}(h(``struct drm_syncobj *obj`` sync object h](jX )}(h``struct drm_syncobj *obj``h]j^ )}(hj}h]hstruct drm_syncobj *obj}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj}ubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKJhj}ubjt )}(hhh]h)}(h sync objecth]h sync object}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKJhj}ubah}(h]h ]h"]h$]h&]uh1js hj}ubeh}(h]h ]h"]h$]h&]uh1jQ hj}hKJhj}ubah}(h]h ]h"]h$]h&]uh1jL hj}ubh)}(h**Description**h]j7 )}(hj}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj}ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKLhj}ubh)}(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 }(hj ~hhhNhNubj7 )}(h**obj**h]hobj}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ~ubhT. It is illegal to call this without already holding a reference. No locks required.}(hj ~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKKhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_syncobj_put (C function)c.drm_syncobj_puthNtauh1jhjrhhhNhNubj)}(hhh](j)}(h.void drm_syncobj_put (struct drm_syncobj *obj)h]j)}(h-void drm_syncobj_put(struct drm_syncobj *obj)h](j)}(hvoidh]hvoid}(hjL~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH~hhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKVubj)}(h h]h }(hj[~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH~hhhjZ~hKVubj)}(hdrm_syncobj_puth]j)}(hdrm_syncobj_puth]hdrm_syncobj_put}(hjm~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji~ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjH~hhhjZ~hKVubj>)}(h(struct drm_syncobj *obj)h]jD)}(hstruct drm_syncobj *objh](j)}(hj? h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj~modnameN classnameNjj)}j]j)}j}jo~sbc.drm_syncobj_putasbuh1hhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hobjh]hobj}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj~ubah}(h]h ]h"]h$]h&]jjuh1j=hjH~hhhjZ~hKVubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjD~hhhjZ~hKVubah}(h]j?~ah ](jjeh"]h$]h&]j j )j huh1jhjZ~hKVhjA~hhubj )}(hhh]h)}(h%release a reference to a sync object.h]h%release a reference to a sync object.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKVhj hhubah}(h]h ]h"]h$]h&]uh1j hjA~hhhjZ~hKVubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j$j( j$j) j* j+ uh1jhhhjrhNhNubj- )}(h:**Parameters** ``struct drm_syncobj *obj`` sync object.h](h)}(h**Parameters**h]j7 )}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj,ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKZhj(ubjM )}(hhh]jR )}(h(``struct drm_syncobj *obj`` sync object.h](jX )}(h``struct drm_syncobj *obj``h]j^ )}(hjMh]hstruct drm_syncobj *obj}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjKubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK\hjGubjt )}(hhh]h)}(h sync object.h]h sync object.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKWhjcubah}(h]h ]h"]h$]h&]uh1js hjGubeh}(h]h ]h"]h$]h&]uh1jQ hjbhK\hjDubah}(h]h ]h"]h$]h&]uh1jL hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_syncobj_fence_get (C function)c.drm_syncobj_fence_gethNtauh1jhjrhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK`ubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_syncobj_fence_getsbc.drm_syncobj_fence_getasbuh1hhjhhhjhK`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK`ubj)}(hdrm_syncobj_fence_geth]j)}(hjh]hdrm_syncobj_fence_get}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhK`ubj>)}(h(struct drm_syncobj *syncobj)h]jD)}(hstruct drm_syncobj *syncobjh](j)}(hj? h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjAmodnameN classnameNjj)}j]jc.drm_syncobj_fence_getasbuh1hhjubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsyncobjh]hsyncobj}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhK`ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK`ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhK`hjhhubj )}(hhh]h)}(h+get a reference to a fence in a sync objecth]h+get a reference to a fence in a sync object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhK`hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhK`ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjrhNhNubj- )}(hXX**Parameters** ``struct drm_syncobj *syncobj`` sync object. **Description** This acquires additional reference to :c:type:`drm_syncobj.fence ` contained in **obj**, if not NULL. It is illegal to call this without already holding a reference. No locks required. **Return** Either the fence of **obj** or NULL if there's none.h](h)}(h**Parameters**h]j7 )}(hjĀh]h Parameters}(hjƀhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj€ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKdhjubjM )}(hhh]jR )}(h-``struct drm_syncobj *syncobj`` sync object. h](jX )}(h``struct drm_syncobj *syncobj``h]j^ )}(hjh]hstruct drm_syncobj *syncobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKahj݀ubjt )}(hhh]h)}(h sync object.h]h sync object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKahjubah}(h]h ]h"]h$]h&]uh1js hj݀ubeh}(h]h ]h"]h$]h&]uh1jQ hjhKahjڀubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKchjubh)}(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 }(hj4hhhNhNubh)}(h):c:type:`drm_syncobj.fence `h]j^ )}(hj>h]hdrm_syncobj.fence}(hj@hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj<ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_syncobjuh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKbhj4ubh contained in }(hj4hhhNhNubj7 )}(h**obj**h]hobj}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj4ubha, if not NULL. It is illegal to call this without already holding a reference. No locks required.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj[hKbhjubh)}(h **Return**h]j7 )}(hjzh]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjxubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKfhjubh)}(h4Either the fence of **obj** or NULL if there's none.h](hEither the fence of }(hjhhhNhNubj7 )}(h**obj**h]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh or NULL if there’s none.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:557: ./include/drm/drm_syncobj.hhKghjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_syncobj_find (C function)c.drm_syncobj_findhNtauh1jhjrhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjсhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj́hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chKubj)}(h h]h }(hj߁hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj́hhhjށhKubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_syncobj_findsbc.drm_syncobj_findasbuh1hhj́hhhjށhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj́hhhjށhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj́hhhjށhKubj)}(hdrm_syncobj_findh]j)}(hjh]hdrm_syncobj_find}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj́hhhjށhKubj>)}(h+(struct drm_file *file_private, u32 handle)h](jD)}(hstruct drm_file *file_privateh](j)}(hj? h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjkmodnameN classnameNjj)}j]j c.drm_syncobj_findasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h file_privateh]h file_private}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjCubjD)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j c.drm_syncobj_findasbuh1hhjubj)}(h h]h }(hj܂hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjCubeh}(h]h ]h"]h$]h&]jjuh1j=hj́hhhjށhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjɁhhhjށhKubah}(h]jāah ](jjeh"]h$]h&]j j )j huh1jhjށhKhjƁhhubj )}(hhh]h)}(h#lookup and reference a sync object.h]h#lookup and reference a sync object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chKhjhhubah}(h]h ]h"]h$]h&]uh1j hjƁhhhjށhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j,j( j,j) j* j+ uh1jhhhjrhNhNubj- )}(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]j7 )}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj4ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chKhj0ubjM )}(hhh](jR )}(h;``struct drm_file *file_private`` drm file private pointer h](jX )}(h!``struct drm_file *file_private``h]j^ )}(hjUh]hstruct drm_file *file_private}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjSubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chKhjOubjt )}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKhjkubah}(h]h ]h"]h$]h&]uh1js hjOubeh}(h]h ]h"]h$]h&]uh1jQ hjjhKhjLubjR )}(h-``u32 handle`` sync object handle to lookup. h](jX )}(h``u32 handle``h]j^ )}(hjh]h u32 handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chKhjubjt )}(hhh]h)}(hsync object handle to lookup.h]hsync object handle to lookup.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjLubeh}(h]h ]h"]h$]h&]uh1jL hj0ubh)}(h**Description**h]j7 )}(hjɃh]h Description}(hj˃hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjǃubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chKhj0ubh)}(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().}(hj߃hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chKhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_syncobj_add_point (C function)c.drm_syncobj_add_pointhNtauh1jhjrhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMEubj)}(hdrm_syncobj_add_pointh]j)}(hdrm_syncobj_add_pointh]hdrm_syncobj_add_point}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhjhMEubj>)}(he(struct drm_syncobj *syncobj, struct dma_fence_chain *chain, struct dma_fence *fence, uint64_t point)h](jD)}(hstruct drm_syncobj *syncobjh](j)}(hj? h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjkmodnameN classnameNjj)}j]j)}j}j1sbc.drm_syncobj_add_pointasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hsyncobjh]hsyncobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjCubjD)}(hstruct dma_fence_chain *chainh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjʄhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_fence_chainh]hdma_fence_chain}(hjۄhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؄ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj݄modnameN classnameNjj)}j]jc.drm_syncobj_add_pointasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hchainh]hchain}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjCubjD)}(hstruct dma_fence *fenceh](j)}(hj? h]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjMmodnameN classnameNjj)}j]jc.drm_syncobj_add_pointasbuh1hhj)ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hfenceh]hfence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjCubjD)}(huint64_t pointh](h)}(hhh]j)}(huint64_th]huint64_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_syncobj_add_pointasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpointh]hpoint}(hj̅hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjCubeh}(h]h ]h"]h$]h&]jjuh1j=hj hhhjhMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMEubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMEhjhhubj )}(hhh]h)}(h%add new timeline point to the syncobjh]h%add new timeline point to the syncobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMEhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMEubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjrhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMIhjubjM )}(hhh](jR )}(hE``struct drm_syncobj *syncobj`` sync object to add timeline point do h](jX )}(h``struct drm_syncobj *syncobj``h]j^ )}(hj7h]hstruct drm_syncobj *syncobj}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj5ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMFhj1ubjt )}(hhh]h)}(h$sync object to add timeline point doh]h$sync object to add timeline point do}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMFhjMubah}(h]h ]h"]h$]h&]uh1js hj1ubeh}(h]h ]h"]h$]h&]uh1jQ hjLhMFhj.ubjR )}(hE``struct dma_fence_chain *chain`` chain node to use to add the point h](jX )}(h!``struct dma_fence_chain *chain``h]j^ )}(hjph]hstruct dma_fence_chain *chain}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjnubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMGhjjubjt )}(hhh]h)}(h"chain node to use to add the pointh]h"chain node to use to add the point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1js hjjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMGhj.ubjR )}(hC``struct dma_fence *fence`` fence to encapsulate in the chain node h](jX )}(h``struct dma_fence *fence``h]j^ )}(hjh]hstruct dma_fence *fence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMHhjubjt )}(hhh]h)}(h&fence to encapsulate in the chain nodeh]h&fence to encapsulate in the chain node}(hj†hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMHhj.ubjR )}(h8``uint64_t point`` sequence number to use for the point h](jX )}(h``uint64_t point``h]j^ )}(hjh]huint64_t point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMIhj܆ubjt )}(hhh]h)}(h$sequence number to use for the pointh]h$sequence number to use for the point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1js hj܆ubeh}(h]h ]h"]h$]h&]uh1jQ hjhMIhj.ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMKhjubh)}(h8Add the chain node as new timeline point to the syncobj.h]h8Add the chain node as new timeline point to the syncobj.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drm_syncobj_replace_fence (C function)c.drm_syncobj_replace_fencehNtauh1jhjrhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMnubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhjphMnubj)}(hdrm_syncobj_replace_fenceh]j)}(hdrm_syncobj_replace_fenceh]hdrm_syncobj_replace_fence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj^hhhjphMnubj>)}(h6(struct drm_syncobj *syncobj, struct dma_fence *fence)h](jD)}(hstruct drm_syncobj *syncobjh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_syncobj_replace_fenceasbuh1hhjubj)}(h h]h }(hj݇hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsyncobjh]hsyncobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct dma_fence *fenceh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj1modnameN classnameNjj)}j]jهc.drm_syncobj_replace_fenceasbuh1hhj ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hfenceh]hfence}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hj^hhhjphMnubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjphMnubah}(h]jUah ](jjeh"]h$]h&]j j )j huh1jhjphMnhjWhhubj )}(hhh]h)}(hreplace fence in a sync object.h]hreplace fence in a sync object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMnhjhhubah}(h]h ]h"]h$]h&]uh1j hjWhhhjphMnubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjrhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMrhjubjM )}(hhh](jR )}(h@``struct drm_syncobj *syncobj`` Sync object to replace fence in h](jX )}(h``struct drm_syncobj *syncobj``h]j^ )}(hjӈh]hstruct drm_syncobj *syncobj}(hjՈhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjшubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMohj͈ubjt )}(hhh]h)}(hSync object to replace fence inh]hSync object to replace fence in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1js hj͈ubeh}(h]h ]h"]h$]h&]uh1jQ hjhMohjʈubjR )}(h;``struct dma_fence *fence`` fence to install in sync file. h](jX )}(h``struct dma_fence *fence``h]j^ )}(hj h]hstruct dma_fence *fence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMphjubjt )}(hhh]h)}(hfence to install in sync file.h]hfence to install in sync file.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMphj"ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj!hMphjʈubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjEubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMrhjubh)}(h)This replaces the fence on a sync object.h]h)This replaces the fence on a sync object.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMqhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_syncobj_find_fence (C function)c.drm_syncobj_find_fencehNtauh1jhjrhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_syncobj_find_fenceh]j)}(hdrm_syncobj_find_fenceh]hdrm_syncobj_find_fence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h[(struct drm_file *file_private, u32 handle, u64 point, u64 flags, struct dma_fence **fence)h](jD)}(hstruct drm_file *file_privateh](j)}(hj? h]hstruct}(hjɉhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʼnubj)}(h h]h }(hj։hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʼnubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_syncobj_find_fenceasbuh1hhjʼnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʼnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʼnubj)}(h file_privateh]h file_private}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʼnubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj@modnameN classnameNjj)}j]jc.drm_syncobj_find_fenceasbuh1hhj7ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hhandleh]hhandle}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u64 pointh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_syncobj_find_fenceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpointh]hpoint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u64 flagsh](h)}(hhh]j)}(hu64h]hu64}(hjΊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjˊubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjЊmodnameN classnameNjj)}j]jc.drm_syncobj_find_fenceasbuh1hhjNJubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNJubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNJubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct dma_fence **fenceh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj3modnameN classnameNjj)}j]jc.drm_syncobj_find_fenceasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfenceh]hfence}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h/lookup and reference the fence in a sync objecth]h/lookup and reference the fence in a sync object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjrhNhNubj- )}(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]j7 )}(hjËh]h Parameters}(hjŋhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubjM )}(hhh](jR )}(h;``struct drm_file *file_private`` drm file private pointer h](jX )}(h!``struct drm_file *file_private``h]j^ )}(hjh]hstruct drm_file *file_private}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhj܋ubjt )}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hj܋ubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjًubjR )}(h-``u32 handle`` sync object handle to lookup. h](jX )}(h``u32 handle``h]j^ )}(hjh]h u32 handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubjt )}(hhh]h)}(hsync object handle to lookup.h]hsync object handle to lookup.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj0hMhjًubjR )}(h``u64 point`` timeline point h](jX )}(h ``u64 point``h]j^ )}(hjTh]h u64 point}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjRubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjNubjt )}(hhh]h)}(htimeline pointh]htimeline point}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1js hjNubeh}(h]h ]h"]h$]h&]uh1jQ hjihMhjًubjR )}(h<``u64 flags`` DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or not h](jX )}(h ``u64 flags``h]j^ )}(hjh]h u64 flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubjt )}(hhh]h)}(h-DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or noth]h-DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT or not}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjًubjR )}(h9``struct dma_fence **fence`` out parameter for the fence h](jX )}(h``struct dma_fence **fence``h]j^ )}(hjƌh]hstruct dma_fence **fence}(hjȌhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjČubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubjt )}(hhh]h)}(hout parameter for the fenceh]hout parameter for the fence}(hjߌhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjیhMhj܌ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjیhMhjًubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubh)}(haThis is just a convenience function that combines drm_syncobj_find() and drm_syncobj_fence_get().h]haThis is just a convenience function that combines drm_syncobj_find() and drm_syncobj_fence_get().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubh)}(hReturns 0 on success or a negative error value on failure. On success **fence** contains a reference to the fence, which must be released by calling dma_fence_put().h](hFReturns 0 on success or a negative error value on failure. On success }(hj&hhhNhNubj7 )}(h **fence**h]hfence}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj&ubhV contains a reference to the fence, which must be released by calling dma_fence_put().}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_syncobj_free (C function)c.drm_syncobj_freehNtauh1jhjrhhhNhNubj)}(hhh](j)}(h)void drm_syncobj_free (struct kref *kref)h]j)}(h(void drm_syncobj_free(struct kref *kref)h](j)}(hvoidh]hvoid}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjuhM ubj)}(hdrm_syncobj_freeh]j)}(hdrm_syncobj_freeh]hdrm_syncobj_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjchhhjuhM ubj>)}(h(struct kref *kref)h]jD)}(hstruct kref *krefh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjčmodnameN classnameNjj)}j]j)}j}jsbc.drm_syncobj_freeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjchhhjuhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhjuhM ubah}(h]jZah ](jjeh"]h$]h&]j j )j huh1jhjuhM hj\hhubj )}(hhh]h)}(hfree a sync object.h]hfree a sync object.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM hj$hhubah}(h]h ]h"]h$]h&]uh1j hj\hhhjuhM ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j?j( j?j) j* j+ uh1jhhhjrhNhNubj- )}(h{**Parameters** ``struct kref *kref`` kref to free. **Description** Only to be called from kref_put in drm_syncobj_put.h](h)}(h**Parameters**h]j7 )}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjGubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjCubjM )}(hhh]jR )}(h$``struct kref *kref`` kref to free. h](jX )}(h``struct kref *kref``h]j^ )}(hjhh]hstruct kref *kref}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjfubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM hjbubjt )}(hhh]h)}(h kref to free.h]h kref to free.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hM hj~ubah}(h]h ]h"]h$]h&]uh1js hjbubeh}(h]h ]h"]h$]h&]uh1jQ hj}hM hj_ubah}(h]h ]h"]h$]h&]uh1jL hjCubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjCubh)}(h3Only to be called from kref_put in drm_syncobj_put.h]h3Only to be called from kref_put in drm_syncobj_put.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_syncobj_create (C function)c.drm_syncobj_createhNtauh1jhjrhhhNhNubj)}(hhh](j)}(hbint drm_syncobj_create (struct drm_syncobj **out_syncobj, uint32_t flags, struct dma_fence *fence)h]j)}(haint drm_syncobj_create(struct drm_syncobj **out_syncobj, uint32_t flags, struct dma_fence *fence)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM!ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM!ubj)}(hdrm_syncobj_createh]j)}(hdrm_syncobj_createh]hdrm_syncobj_create}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM!ubj>)}(hK(struct drm_syncobj **out_syncobj, uint32_t flags, struct dma_fence *fence)h](jD)}(h struct drm_syncobj **out_syncobjh](j)}(hj? h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjEmodnameN classnameNjj)}j]j)}j}j sbc.drm_syncobj_createasbuh1hhj!ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h out_syncobjh]h out_syncobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(huint32_t flagsh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j_c.drm_syncobj_createasbuh1hhjubj)}(h h]h }(hjŏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hjӏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct dma_fence *fenceh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j_c.drm_syncobj_createasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfenceh]hfence}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM!ubah}(h]jێah ](jjeh"]h$]h&]j j )j huh1jhjhM!hjݎhhubj )}(hhh]h)}(hcreate a new syncobjh]hcreate a new syncobj}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM!hjjhhubah}(h]h ]h"]h$]h&]uh1j hjݎhhhjhM!ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjrhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM%hjubjM )}(hhh](jR )}(h6``struct drm_syncobj **out_syncobj`` returned syncobj h](jX )}(h$``struct drm_syncobj **out_syncobj``h]j^ )}(hjh]h struct drm_syncobj **out_syncobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM"hjubjt )}(hhh]h)}(hreturned syncobjh]hreturned syncobj}(hjǐhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjÐhM"hjĐubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjÐhM"hjubjR )}(h'``uint32_t flags`` DRM_SYNCOBJ_* flags h](jX )}(h``uint32_t flags``h]j^ )}(hjh]huint32_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM#hjubjt )}(hhh]h)}(hDRM_SYNCOBJ_* flagsh]hDRM_SYNCOBJ_* flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM#hjubjR )}(hO``struct dma_fence *fence`` if non-NULL, the syncobj will represent this fence h](jX )}(h``struct dma_fence *fence``h]j^ )}(hj h]hstruct dma_fence *fence}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM$hjubjt )}(hhh]h)}(h2if non-NULL, the syncobj will represent this fenceh]h2if non-NULL, the syncobj will represent this fence}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM$hj6ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj5hM$hjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjYubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM&hjubh)}(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().}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM%hjubh)}(h:Returns 0 on success or a negative error value on failure.h]h:Returns 0 on success or a negative error value on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chM)hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_syncobj_get_handle (C function)c.drm_syncobj_get_handlehNtauh1jhjrhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMLubj)}(hdrm_syncobj_get_handleh]j)}(hdrm_syncobj_get_handleh]hdrm_syncobj_get_handle}(hjБhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̑ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMLubj>)}(hI(struct drm_file *file_private, struct drm_syncobj *syncobj, u32 *handle)h](jD)}(hstruct drm_file *file_privateh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}jґsbc.drm_syncobj_get_handleasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h file_privateh]h file_private}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_syncobj *syncobjh](j)}(hj? h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj~modnameN classnameNjj)}j]j&c.drm_syncobj_get_handleasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hsyncobjh]hsyncobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u32 *handleh](h)}(hhh]j)}(hu32h]hu32}(hjђhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΒubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjӒmodnameN classnameNjj)}j]j&c.drm_syncobj_get_handleasbuh1hhjʒubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʒubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʒubj)}(hhandleh]hhandle}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʒubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMLubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMLhjhhubj )}(hhh]h)}(hget a handle from a syncobjh]hget a handle from a syncobj}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMLhj1hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMLubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jLj( jLj) j* j+ uh1jhhhjrhNhNubj- )}(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]j7 )}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjTubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMPhjPubjM )}(hhh](jR )}(h;``struct drm_file *file_private`` drm file private pointer h](jX )}(h!``struct drm_file *file_private``h]j^ )}(hjuh]hstruct drm_file *file_private}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjsubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMMhjoubjt )}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1js hjoubeh}(h]h ]h"]h$]h&]uh1jQ hjhMMhjlubjR )}(h6``struct drm_syncobj *syncobj`` Sync object to export h](jX )}(h``struct drm_syncobj *syncobj``h]j^ )}(hjh]hstruct drm_syncobj *syncobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMNhjubjt )}(hhh]h)}(hSync object to exporth]hSync object to export}(hjǓhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjÓhMNhjēubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjÓhMNhjlubjR )}(h2``u32 *handle`` out parameter with the new handle h](jX )}(h``u32 *handle``h]j^ )}(hjh]h u32 *handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMOhjubjt )}(hhh]h)}(h!out parameter with the new handleh]h!out parameter with the new handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMOhjlubeh}(h]h ]h"]h$]h&]uh1jL hjPubh)}(h**Description**h]j7 )}(hj"h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMQhjPubh)}(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 }(hj8hhhNhNubj7 )}(h**file_private**h]h file_private}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj8ubh to userspace.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMPhjPubh)}(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:560: ./drivers/gpu/drm/drm_syncobj.chMShjPubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_syncobj_get_fd (C function)c.drm_syncobj_get_fdhNtauh1jhjrhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_syncobj_get_fdh]j)}(hdrm_syncobj_get_fdh]hdrm_syncobj_get_fd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h((struct drm_syncobj *syncobj, int *p_fd)h](jD)}(hstruct drm_syncobj *syncobjh](j)}(hj? h]hstruct}(hjŔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjҔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_syncobjh]h drm_syncobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_syncobj_get_fdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsyncobjh]hsyncobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h int *p_fdh](j)}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hp_fdh]hp_fd}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j{ah ](jjeh"]h$]h&]j j )j huh1jhjhMhj}hhubj )}(hhh]h)}(h$get a file descriptor from a syncobjh]h$get a file descriptor from a syncobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj}hhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjrhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubjM )}(hhh](jR )}(h6``struct drm_syncobj *syncobj`` Sync object to export h](jX )}(h``struct drm_syncobj *syncobj``h]j^ )}(hj˕h]hstruct drm_syncobj *syncobj}(hj͕hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjɕubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjŕubjt )}(hhh]h)}(hSync object to exporth]hSync object to export}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjŕubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj•ubjR )}(h9``int *p_fd`` out parameter with the new file descriptor h](jX )}(h ``int *p_fd``h]j^ )}(hjh]h int *p_fd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubjt )}(hhh]h)}(h*out parameter with the new file descriptorh]h*out parameter with the new file descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhj•ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj=ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubh)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubh)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'drm_timeout_abs_to_jiffies (C function)c.drm_timeout_abs_to_jiffieshNtauh1jhjrhhhNhNubj)}(hhh](j)}(h=signed long drm_timeout_abs_to_jiffies (int64_t timeout_nsec)h]j)}(h)}(h(int64_t timeout_nsec)h]jD)}(hint64_t timeout_nsech](h)}(hhh]j)}(hint64_th]hint64_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jҖsbc.drm_timeout_abs_to_jiffiesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h timeout_nsech]h timeout_nsec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h-calculate jiffies timeout from absolute valueh]h-calculate jiffies timeout from absolute value}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjDhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j_j( j_j) j* j+ uh1jhhhjrhNhNubj- )}(h**Parameters** ``int64_t timeout_nsec`` timeout nsec component in ns, 0 for poll **Description** Calculate the timeout in jiffies from an absolute time in sec/nsec.h](h)}(h**Parameters**h]j7 )}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjgubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjcubjM )}(hhh]jR )}(hB``int64_t timeout_nsec`` timeout nsec component in ns, 0 for poll h](jX )}(h``int64_t timeout_nsec``h]j^ )}(hjh]hint64_t timeout_nsec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjubjt )}(hhh]h)}(h(timeout nsec component in ns, 0 for pollh]h(timeout nsec component in ns, 0 for poll}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubah}(h]h ]h"]h$]h&]uh1jL hjcubh)}(h**Description**h]j7 )}(hj×h]h Description}(hjŗhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjcubh)}(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.}(hjٗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:560: ./drivers/gpu/drm/drm_syncobj.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjrhhhNhNubeh}(h](jid4eh ]h"](drm sync objectsdrm_sync_objectseh$]h&]uh1hhhhhhhhM(j}jjrsj}jjrsubh)}(hhh](h)}(hDRM Execution contexth]hDRM Execution context}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhM4ubh)}(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:566: ./drivers/gpu/drm/drm_exec.chK hjhhubh)}(hIf a contention is detected while locking a GEM object the cleanup procedure unlocks all previously locked GEM objects and locks the contended one first before locking any further objects.h]hIf a contention is detected while locking a GEM object the cleanup procedure unlocks all previously locked GEM objects and locks the contended one first before locking any further objects.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:566: ./drivers/gpu/drm/drm_exec.chKhjhhubh)}(hoAfter an object is locked fences slots can optionally be reserved on the dma_resv object inside the GEM object.h]hoAfter an object is locked fences slots can optionally be reserved on the dma_resv object inside the GEM object.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:566: ./drivers/gpu/drm/drm_exec.chKhjhhubh)}(h/A typical usage pattern should look like this::h]h.A typical usage pattern should look like this:}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:566: ./drivers/gpu/drm/drm_exec.chKhjhhubj )}(hXDstruct drm_gem_object *obj; struct drm_exec exec; 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, obj) { dma_resv_add_fence(obj->resv, fence, DMA_RESV_USAGE_READ); ... } drm_exec_fini(&exec);h]hXDstruct drm_gem_object *obj; struct drm_exec exec; 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, obj) { dma_resv_add_fence(obj->resv, fence, DMA_RESV_USAGE_READ); ... } drm_exec_fini(&exec);}hjGsbah}(h]h ]h"]h$]h&]jjuh1j hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:566: ./drivers/gpu/drm/drm_exec.chKhjhhubh)}(h%See struct dma_exec for more details.h]h%See struct dma_exec for more details.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:566: ./drivers/gpu/drm/drm_exec.chK.hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_exec (C struct) c.drm_exechNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_exech]j)}(hstruct drm_exech](j)}(hj? h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjhKubj)}(hdrm_exech]j)}(hjxh]hdrm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjzhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjhKubah}(h]jqah ](jjeh"]h$]h&]j j )j huh1jhjhKhjshhubj )}(hhh]h)}(hExecution contexth]hExecution context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j hjshhhjhKubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jؘj( jؘj) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjܘubj )}(hXstruct drm_exec { u32 flags; struct ww_acquire_ctx ticket; unsigned int num_objects; unsigned int max_objects; struct drm_gem_object **objects; struct drm_gem_object *contended; struct drm_gem_object *prelocked; };h]hXstruct drm_exec { u32 flags; struct ww_acquire_ctx ticket; unsigned int num_objects; unsigned int max_objects; struct drm_gem_object **objects; struct drm_gem_object *contended; struct drm_gem_object *prelocked; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjܘubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhK%hjܘubjM )}(hhh](jR )}(h,``flags`` Flags to control locking behavior h](jX )}(h ``flags``h]j^ )}(hj-h]hflags}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj+ubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhj'ubjt )}(hhh]h)}(h!Flags to control locking behaviorh]h!Flags to control locking behavior}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjCubah}(h]h ]h"]h$]h&]uh1js hj'ubeh}(h]h ]h"]h$]h&]uh1jQ hjBhKhj$ubjR )}(h.``ticket`` WW ticket used for acquiring locks h](jX )}(h ``ticket``h]j^ )}(hjfh]hticket}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjdubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhj`ubjt )}(hhh]h)}(h"WW ticket used for acquiring locksh]h"WW ticket used for acquiring locks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hKhj|ubah}(h]h ]h"]h$]h&]uh1js hj`ubeh}(h]h ]h"]h$]h&]uh1jQ hj{hKhj$ubjR )}(h)``num_objects`` number of objects locked h](jX )}(h``num_objects``h]j^ )}(hjh]h num_objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhK$hjubjt )}(hhh]h)}(hnumber of objects lockedh]hnumber of objects locked}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK$hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhK$hj$ubjR )}(h)``max_objects`` maximum objects in array h](jX )}(h``max_objects``h]j^ )}(hjؙh]h max_objects}(hjڙhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj֙ubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhK)hjҙubjt )}(hhh]h)}(hmaximum objects in arrayh]hmaximum objects in array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK)hjubah}(h]h ]h"]h$]h&]uh1js hjҙubeh}(h]h ]h"]h$]h&]uh1jQ hjhK)hj$ubjR )}(h(``objects`` array of the locked objects h](jX )}(h ``objects``h]j^ )}(hjh]hobjects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhK.hj ubjt )}(hhh]h)}(harray of the locked objectsh]harray of the locked objects}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hK.hj'ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj&hK.hj$ubjR )}(h5``contended`` contended GEM object we backed off for h](jX )}(h ``contended``h]j^ )}(hjJh]h contended}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjHubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhK3hjDubjt )}(hhh]h)}(h&contended GEM object we backed off forh]h&contended GEM object we backed off for}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hK3hj`ubah}(h]h ]h"]h$]h&]uh1js hjDubeh}(h]h ]h"]h$]h&]uh1jQ hj_hK3hj$ubjR )}(h9``prelocked`` already locked GEM object due to contentionh](jX )}(h ``prelocked``h]j^ )}(hjh]h prelocked}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhK7hj}ubjt )}(hhh]h)}(h+already locked GEM object due to contentionh]h+already locked GEM object due to contention}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhK8hjubah}(h]h ]h"]h$]h&]uh1js hj}ubeh}(h]h ]h"]h$]h&]uh1jQ hjhK7hj$ubeh}(h]h ]h"]h$]h&]uh1jL hjܘubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_exec_obj (C function)c.drm_exec_objhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hjݚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٚhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhK=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٚhhhjhK=ubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j} drm_exec_objsbc.drm_exec_objasbuh1hhjٚhhhjhK=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٚhhhjhK=ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٚhhhjhK=ubj)}(h drm_exec_objh]j)}(hjh]h drm_exec_obj}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjٚhhhjhK=ubj>)}(h,(struct drm_exec *exec, unsigned long index)h](jD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjwmodnameN classnameNjj)}j]jc.drm_exec_objasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubjD)}(hunsigned long indexh](j)}(hunsignedh]hunsigned}(hjǛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÛubj)}(h h]h }(hj՛hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÛubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÛubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÛubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÛubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjOubeh}(h]h ]h"]h$]h&]jjuh1j=hjٚhhhjhK=ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj՚hhhjhK=ubah}(h]jКah ](jjeh"]h$]h&]j j )j huh1jhjhK=hjҚhhubj )}(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:569: ./include/drm/drm_exec.hhK=hj&hhubah}(h]h ]h"]h$]h&]uh1j hjҚhhhjhK=ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jAj( jAj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjIubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKAhjEubjM )}(hhh](jR )}(h:``struct drm_exec *exec`` Pointer to the drm_exec context h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjjh]hstruct drm_exec *exec}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjhubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhK>hjdubjt )}(hhh]h)}(hPointer to the drm_exec contexth]hPointer to the drm_exec context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK>hjubah}(h]h ]h"]h$]h&]uh1js hjdubeh}(h]h ]h"]h$]h&]uh1jQ hjhK>hjaubjR )}(h#``unsigned long index`` The index. h](jX )}(h``unsigned long index``h]j^ )}(hjh]hunsigned long index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhK?hjubjt )}(hhh]h)}(h The index.h]h The index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK?hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhK?hjaubeh}(h]h ]h"]h$]h&]uh1jL hjEubh)}(h **Return**h]j7 )}(hjޜh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjܜubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKAhjEubh)}(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 }(hjhhhNhNubj7 )}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubhA 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:569: ./include/drm/drm_exec.hhKAhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)drm_exec_for_each_locked_object (C macro)!c.drm_exec_for_each_locked_objecthNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_exec_for_each_locked_objecth]j)}(hdrm_exec_for_each_locked_objecth]j)}(hdrm_exec_for_each_locked_objecth]j)}(hj/h]hdrm_exec_for_each_locked_object}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj1hhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKNubah}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjLhKNubah}(h]j(ah ](jjeh"]h$]h&]j j )j huh1jhjLhKNhj*hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj*hhhjLhKNubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jej( jej) j* j+ uh1jhhhjhNhNubh)}(h/``drm_exec_for_each_locked_object (exec, obj)``h]j^ )}(hjkh]h+drm_exec_for_each_locked_object (exec, obj)}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjiubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKPhjhhubj )}(h$iterate over all the locked objects h]h)}(h#iterate over all the locked objectsh]h#iterate over all the locked objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKNhjubah}(h]h ]h"]h$]h&]uh1jhjhKNhjhhubj- )}(h**Parameters** ``exec`` drm_exec object ``obj`` the current GEM object **Description** Iterate over all the locked GEM objects inside the drm_exec object.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKRhjubjM )}(hhh](jR )}(h``exec`` drm_exec object h](jX )}(h``exec``h]j^ )}(hjh]hexec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKOhjubjt )}(hhh]h)}(hdrm_exec objecth]hdrm_exec object}(hj؝hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԝhKOhj՝ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjԝhKOhjubjR )}(h``obj`` the current GEM object h](jX )}(h``obj``h]j^ )}(hjh]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKPhjubjt )}(hhh]h)}(hthe current GEM objecth]hthe current GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKPhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hKPhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj1ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKRhjubh)}(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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKQhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j1drm_exec_for_each_locked_object_reverse (C macro))c.drm_exec_for_each_locked_object_reversehNtauh1jhjhhhNhNubj)}(hhh](j)}(h'drm_exec_for_each_locked_object_reverseh]j)}(h'drm_exec_for_each_locked_object_reverseh]j)}(h'drm_exec_for_each_locked_object_reverseh]j)}(hjrh]h'drm_exec_for_each_locked_object_reverse}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jhjthhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhK\ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjhK\ubah}(h]jkah ](jjeh"]h$]h&]j j )j huh1jhjhK\hjmhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjmhhhjhK\ubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubh)}(h7``drm_exec_for_each_locked_object_reverse (exec, obj)``h]j^ )}(hjh]h3drm_exec_for_each_locked_object_reverse (exec, obj)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhK^hjhhubj )}(h=iterate over all the locked objects in reverse locking order h]h)}(h)}(h(struct drm_exec *exec)h]jD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj:modnameN classnameNjj)}j]j)}j}jsbc.drm_exec_is_contendedasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hexech]hexec}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjڡhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj֡hhhjhKubah}(h]jѡah ](jjeh"]h$]h&]j j )j huh1jhjhKhjӡhhubj )}(hhh]h)}(hcheck for contentionh]hcheck for contention}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j hjӡhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjubjM )}(hhh]jR )}(h*``struct drm_exec *exec`` drm_exec object h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjޢh]hstruct drm_exec *exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjܢubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjآubjt )}(hhh]h)}(hdrm_exec objecth]hdrm_exec object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjآubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjբubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjubh)}(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.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_exec_retry (C macro)c.drm_exec_retryhNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_exec_retryh]j)}(hdrm_exec_retryh]j)}(hdrm_exec_retryh]j)}(hjXh]hdrm_exec_retry}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjZhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjuhKubah}(h]jQah ](jjeh"]h$]h&]j j )j huh1jhjuhKhjShhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjShhhjuhKubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubh)}(h``drm_exec_retry (_exec)``h]j^ )}(hjh]hdrm_exec_retry (_exec)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjhhubj )}(h4Unconditionally restart the loop to grab all locks. h]h)}(h3Unconditionally restart the loop to grab all locks.h]h3Unconditionally restart the loop to grab all locks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj- )}(hX**Parameters** ``_exec`` *undescribed* **Description** Unconditionally retry the loop to lock all objects. For consistency, the exec object needs to be newly initialized. The __drm_exec_loop check exists to prevent usage outside of an drm_exec_until_all_locked() loop.h](h)}(h**Parameters**h]j7 )}(hjɣh]h Parameters}(hjˣhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjǣubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjãubjM )}(hhh]jR )}(h``_exec`` *undescribed* h](jX )}(h ``_exec``h]j^ )}(hjh]h_exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjubjt )}(hhh]h)}(h *undescribed*h]j)}(hjh]h undescribed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjߣubah}(h]h ]h"]h$]h&]uh1jL hjãubh)}(h**Description**h]j7 )}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj*ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjãubh)}(hUnconditionally retry the loop to lock all objects. For consistency, the exec object needs to be newly initialized. The __drm_exec_loop check exists to prevent usage outside of an drm_exec_until_all_locked() loop.h]hUnconditionally retry the loop to lock all objects. For consistency, the exec object needs to be newly initialized. The __drm_exec_loop check exists to prevent usage outside of an drm_exec_until_all_locked() loop.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjãubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_exec_ticket (C function)c.drm_exec_tickethNtauh1jhjhhhNhNubj)}(hhh](j)}(h?struct ww_acquire_ctx * drm_exec_ticket (struct drm_exec *exec)h]j)}(h=struct ww_acquire_ctx *drm_exec_ticket(struct drm_exec *exec)h](j)}(hj? h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhj~hKubh)}(hhh]j)}(hww_acquire_ctxh]hww_acquire_ctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}drm_exec_ticketsbc.drm_exec_ticketasbuh1hhjmhhhj~hKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhj~hKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhj~hKubj)}(hdrm_exec_ticketh]j)}(hjh]hdrm_exec_ticket}(hjФhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̤ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjmhhhj~hKubj>)}(h(struct drm_exec *exec)h]jD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]jc.drm_exec_ticketasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hexech]hexec}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjmhhhj~hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhj~hKubah}(h]jdah ](jjeh"]h$]h&]j j )j huh1jhj~hKhjfhhubj )}(hhh]h)}(h/return the ww_acquire_ctx for this exec contexth]h/return the ww_acquire_ctx for this exec context}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjihhubah}(h]h ]h"]h$]h&]uh1j hjfhhhj~hKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(h|**Parameters** ``struct drm_exec *exec`` drm_exec object **Return** Pointer to the ww_acquire_ctx embedded in **exec**.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjubjM )}(hhh]jR )}(h*``struct drm_exec *exec`` drm_exec object h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjh]hstruct drm_exec *exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjubjt )}(hhh]h)}(hdrm_exec objecth]hdrm_exec object}(hjƥhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj¥hKhjåubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj¥hKhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjubh)}(h3Pointer to the ww_acquire_ctx embedded in **exec**.h](h*Pointer to the ww_acquire_ctx embedded in }(hjhhhNhNubj7 )}(h**exec**h]hexec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:569: ./include/drm/drm_exec.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_exec_init (C function)c.drm_exec_inithNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKBubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhKBubj)}(h drm_exec_inith]j)}(h drm_exec_inith]h drm_exec_init}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj;hhhjMhKBubj>)}(h/(struct drm_exec *exec, u32 flags, unsigned nr)h](jD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jbsbc.drm_exec_initasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hjh]h*}(hjȦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hexech]hexec}(hjզhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjtubjD)}(h u32 flagsh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_exec_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjtubjD)}(h unsigned nrh](j)}(hunsignedh]hunsigned}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hnrh]hnr}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjtubeh}(h]h ]h"]h$]h&]jjuh1j=hj;hhhjMhKBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhjMhKBubah}(h]j2ah ](jjeh"]h$]h&]j j )j huh1jhjMhKBhj4hhubj )}(hhh]h)}(hinitialize a drm_exec objecth]hinitialize a drm_exec object}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKBhjyhhubah}(h]h ]h"]h$]h&]uh1j hj4hhhjMhKBubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKFhjubjM )}(hhh](jR )}(h<``struct drm_exec *exec`` the drm_exec object to initialize h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjh]hstruct drm_exec *exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKChjubjt )}(hhh]h)}(h!the drm_exec object to initializeh]h!the drm_exec object to initialize}(hj֧hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjҧhKChjӧubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjҧhKChjubjR )}(h@``u32 flags`` controls locking behavior, see DRM_EXEC_* defines h](jX )}(h ``u32 flags``h]j^ )}(hjh]h u32 flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKDhjubjt )}(hhh]h)}(h1controls locking behavior, see DRM_EXEC_* definesh]h1controls locking behavior, see DRM_EXEC_* defines}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKDhj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hKDhjubjR )}(h)``unsigned nr`` the initial # of objects h](jX )}(h``unsigned nr``h]j^ )}(hj/h]h unsigned nr}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj-ubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKEhj)ubjt )}(hhh]h)}(hthe initial # of objectsh]hthe initial # of objects}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKEhjEubah}(h]h ]h"]h$]h&]uh1js hj)ubeh}(h]h ]h"]h$]h&]uh1jQ hjDhKEhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjhubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKGhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKFhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKHhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_exec_fini (C function)c.drm_exec_finihNtauh1jhjhhhNhNubj)}(hhh](j)}(h*void drm_exec_fini (struct drm_exec *exec)h]j)}(h)void drm_exec_fini(struct drm_exec *exec)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chK]ubj)}(h h]h }(hjͨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj̨hK]ubj)}(h drm_exec_finih]j)}(h drm_exec_finih]h drm_exec_fini}(hjߨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۨubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj̨hK]ubj>)}(h(struct drm_exec *exec)h]jD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_exec_finiasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hexech]hexec}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhj̨hK]ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj̨hK]ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj̨hK]hjhhubj )}(hhh]h)}(hfinalize a drm_exec objecth]hfinalize a drm_exec object}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chK]hj{hhubah}(h]h ]h"]h$]h&]uh1j hjhhhj̨hK]ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKahjubjM )}(hhh]jR )}(h:``struct drm_exec *exec`` the drm_exec object to finalize h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjh]hstruct drm_exec *exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chK^hjubjt )}(hhh]h)}(hthe drm_exec object to finalizeh]hthe drm_exec object to finalize}(hjةhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԩhK^hjթubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjԩhK^hjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chK`hjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chK_hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_exec_cleanup (C function)c.drm_exec_cleanuphNtauh1jhjhhhNhNubj)}(hhh](j)}(h-bool drm_exec_cleanup (struct drm_exec *exec)h]j)}(h,bool drm_exec_cleanup(struct drm_exec *exec)h](j)}(hj=2h]hbool}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKoubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjLhKoubj)}(hdrm_exec_cleanuph]j)}(hdrm_exec_cleanuph]hdrm_exec_cleanup}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj;hhhjLhKoubj>)}(h(struct drm_exec *exec)h]jD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct\}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jasbc.drm_exec_cleanupasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hjh]h*}(hjǪhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hexech]hexec}(hjԪhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjsubah}(h]h ]h"]h$]h&]jjuh1j=hj;hhhjLhKoubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhjLhKoubah}(h]j2ah ](jjeh"]h$]h&]j j )j huh1jhjLhKohj4hhubj )}(hhh]h)}(h#cleanup when contention is detectedh]h#cleanup when contention is detected}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKohjhhubah}(h]h ]h"]h$]h&]uh1j hj4hhhjLhKoubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKshjubjM )}(hhh]jR )}(h9``struct drm_exec *exec`` the drm_exec object to cleanup h](jX )}(h``struct drm_exec *exec``h]j^ )}(hj?h]hstruct drm_exec *exec}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj=ubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKphj9ubjt )}(hhh]h)}(hthe drm_exec object to cleanuph]hthe drm_exec object to cleanup}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKphjUubah}(h]h ]h"]h$]h&]uh1js hj9ubeh}(h]h ]h"]h$]h&]uh1jQ hjThKphj6ubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjzh]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjxubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKrhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKqhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_exec_lock_obj (C function)c.drm_exec_lock_objhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKubj)}(h h]h }(hjΫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjͫhKubj)}(hdrm_exec_lock_objh]j)}(hdrm_exec_lock_objh]hdrm_exec_lock_obj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܫubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjͫhKubj>)}(h3(struct drm_exec *exec, struct drm_gem_object *obj)h](jD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_exec_lock_objasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hexech]hexec}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j6c.drm_exec_lock_objasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hobjh]hobj}(hjŬhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjͫhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjͫhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjͫhKhjhhubj )}(hhh]h)}(hlock a GEM object for useh]hlock a GEM object for use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjͫhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhj ubjM )}(hhh](jR )}(h=``struct drm_exec *exec`` the drm_exec object with the state h](jX )}(h``struct drm_exec *exec``h]j^ )}(hj0h]hstruct drm_exec *exec}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj.ubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhj*ubjt )}(hhh]h)}(h"the drm_exec object with the stateh]h"the drm_exec object with the state}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjFubah}(h]h ]h"]h$]h&]uh1js hj*ubeh}(h]h ]h"]h$]h&]uh1jQ hjEhKhj'ubjR )}(h6``struct drm_gem_object *obj`` the GEM object to lock h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjih]hstruct drm_gem_object *obj}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjgubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhjcubjt )}(hhh]h)}(hthe GEM object to lockh]hthe GEM object to lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKhjubah}(h]h ]h"]h$]h&]uh1js hjcubeh}(h]h ]h"]h$]h&]uh1jQ hj~hKhj'ubeh}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhj ubh)}(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:572: ./drivers/gpu/drm/drm_exec.chKhj ubh)}(h **Return**h]j7 )}(hj˭h]hReturn}(hjͭhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjɭubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhj ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_exec_unlock_obj (C function)c.drm_exec_unlock_objhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhKubj)}(hdrm_exec_unlock_objh]j)}(hdrm_exec_unlock_objh]hdrm_exec_unlock_obj}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhjhKubj>)}(h3(struct drm_exec *exec, struct drm_gem_object *obj)h](jD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmmodnameN classnameNjj)}j]j)}j}j3sbc.drm_exec_unlock_objasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjEubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj̮hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjݮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڮubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj߮modnameN classnameNjj)}j]jc.drm_exec_unlock_objasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjEubeh}(h]h ]h"]h$]h&]jjuh1j=hj hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]h)}(h(unlock a GEM object in this exec contexth]h(unlock a GEM object in this exec context}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhj=hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jXj( jXj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj`ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhj\ubjM )}(hhh](jR )}(h=``struct drm_exec *exec`` the drm_exec object with the state h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjh]hstruct drm_exec *exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhj{ubjt )}(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&]uh1js hj{ubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjxubjR )}(h8``struct drm_gem_object *obj`` the GEM object to unlock h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhjubjt )}(hhh]h)}(hthe GEM object to unlockh]hthe GEM object to unlock}(hjӯhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϯhKhjЯubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjϯhKhjxubeh}(h]h ]h"]h$]h&]uh1jL hj\ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhj\ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chKhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_exec_prepare_obj (C function)c.drm_exec_prepare_objhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhjHhMubj)}(hdrm_exec_prepare_objh]j)}(hdrm_exec_prepare_objh]hdrm_exec_prepare_obj}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jhj6hhhjHhMubj>)}(hL(struct drm_exec *exec, struct drm_gem_object *obj, unsigned int num_fences)h](jD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}j]sbc.drm_exec_prepare_objasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjðhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hexech]hexec}(hjаhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjoubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]jc.drm_exec_prepare_objasbuh1hhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjoubjD)}(hunsigned int num_fencesh](j)}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hinth]hint}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h num_fencesh]h num_fences}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjoubeh}(h]h ]h"]h$]h&]jjuh1j=hj6hhhjHhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhjHhMubah}(h]j-ah ](jjeh"]h$]h&]j j )j huh1jhjHhMhj/hhubj )}(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:572: ./drivers/gpu/drm/drm_exec.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj/hhhjHhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jӱj( jӱj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjݱh]h Parameters}(hj߱hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj۱ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chMhjױubjM )}(hhh](jR )}(h=``struct drm_exec *exec`` the drm_exec object with the state h](jX )}(h``struct drm_exec *exec``h]j^ )}(hjh]hstruct drm_exec *exec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chMhjubjt )}(hhh]h)}(h"the drm_exec object with the stateh]h"the drm_exec object with the state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h9``struct drm_gem_object *obj`` the GEM object to prepare h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hj5h]hstruct drm_gem_object *obj}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj3ubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chMhj/ubjt )}(hhh]h)}(hthe GEM object to prepareh]hthe GEM object to prepare}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1js hj/ubeh}(h]h ]h"]h$]h&]uh1jQ hjJhMhjubjR )}(h7``unsigned int num_fences`` how many fences to reserve h](jX )}(h``unsigned int num_fences``h]j^ )}(hjnh]hunsigned int num_fences}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chMhjhubjt )}(hhh]h)}(hhow many fences to reserveh]hhow many fences to reserve}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjhubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjױubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chMhjױubh)}(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:572: ./drivers/gpu/drm/drm_exec.chMhjױubh)}(h **Return**h]j7 )}(hjвh]hReturn}(hjҲhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjβubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chMhjױubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chMhjױubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_exec_prepare_array (C function)c.drm_exec_prepare_arrayhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chM2ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hM2ubj)}(hdrm_exec_prepare_arrayh]j)}(hdrm_exec_prepare_arrayh]hdrm_exec_prepare_array}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj#hM2ubj>)}(hk(struct drm_exec *exec, struct drm_gem_object **objects, unsigned int num_objects, unsigned int num_fences)h](jD)}(hstruct drm_exec *exech](j)}(hj? h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hhh]j)}(hdrm_exech]hdrm_exec}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjrmodnameN classnameNjj)}j]j)}j}j8sbc.drm_exec_prepare_arrayasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hexech]hexec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjJubjD)}(hstruct drm_gem_object **objectsh](j)}(hj? h]hstruct}(hjijhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjѳhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߳ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jc.drm_exec_prepare_arrayasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjectsh]hobjects}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjJubjD)}(hunsigned int num_objectsh](j)}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hinth]hint}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h num_objectsh]h num_objects}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjJubjD)}(hunsigned int num_fencesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h num_fencesh]h num_fences}(hjʴhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjJubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj#hM2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj#hM2ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj#hM2hj hhubj )}(hhh]h)}(h%helper to prepare an array of objectsh]h%helper to prepare an array of objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chM2hjhhubah}(h]h ]h"]h$]h&]uh1j hj hhhj#hM2ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chM6hjubjM )}(hhh](jR )}(h=``struct drm_exec *exec`` the drm_exec object with the state h](jX )}(h``struct drm_exec *exec``h]j^ )}(hj5h]hstruct drm_exec *exec}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj3ubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chM3hj/ubjt )}(hhh]h)}(h"the drm_exec object with the stateh]h"the drm_exec object with the state}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhM3hjKubah}(h]h ]h"]h$]h&]uh1js hj/ubeh}(h]h ]h"]h$]h&]uh1jQ hjJhM3hj,ubjR )}(hC``struct drm_gem_object **objects`` array of GEM object to prepare h](jX )}(h#``struct drm_gem_object **objects``h]j^ )}(hjnh]hstruct drm_gem_object **objects}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjlubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chM4hjhubjt )}(hhh]h)}(harray of GEM object to prepareh]harray of GEM object to prepare}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1js hjhubeh}(h]h ]h"]h$]h&]uh1jQ hjhM4hj,ubjR )}(h@``unsigned int num_objects`` number of GEM objects in the array h](jX )}(h``unsigned int num_objects``h]j^ )}(hjh]hunsigned int num_objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chM5hjubjt )}(hhh]h)}(h"number of GEM objects in the arrayh]h"number of GEM objects in the array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM5hj,ubjR )}(hK``unsigned int num_fences`` number of fences to reserve on each GEM object h](jX )}(h``unsigned int num_fences``h]j^ )}(hjh]hunsigned int num_fences}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj޵ubah}(h]h ]h"]h$]h&]uh1jW hV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chM6hjڵubjt )}(hhh]h)}(h.number of fences to reserve on each GEM objecth]h.number of fences to reserve on each GEM object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1js hjڵubeh}(h]h ]h"]h$]h&]uh1jQ hjhM6hj,ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chM8hjubh)}(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 }(hj1hhhNhNubj7 )}(h**num_fences**h]h num_fences}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj1ubh% on each GEM object after locking it.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chM7hjubh)}(h **Return**h]j7 )}(hjTh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjRubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chM:hjubh)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:572: ./drivers/gpu/drm/drm_exec.chM;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubeh}(h]jah ]h"]drm execution contextah$]h&]uh1hhhhhhhhM4ubh)}(hhh](h)}(h GPU Schedulerh]h GPU Scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhM@ubh)}(hhh](h)}(hOverviewh]hOverview}(hjhhhNhNubah}(h]h ]h"]h$]h&]hjuh1hhjhhhhhMCubh)}(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:581: ./drivers/gpu/drm/scheduler/sched_main.chKhjhhubh)}(h3The organisation of the scheduler is the following:h]h3The organisation of the scheduler is the following:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:581: ./drivers/gpu/drm/scheduler/sched_main.chK!hjhhubjJ)}(hhh](j)}(h#Each hw run queue has one schedulerh]h)}(hj̶h]h#Each hw run queue has one scheduler}(hjζhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:581: ./drivers/gpu/drm/scheduler/sched_main.chK#hjʶubah}(h]h ]h"]h$]h&]uh1jhjǶ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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:581: ./drivers/gpu/drm/scheduler/sched_main.chK$hjubah}(h]h ]h"]h$]h&]uh1jhjǶubj)}(hj( j>j) j* j+ uh1jhhhjhNhNubh)}(h!``DRM_SCHED_FENCE_DONT_PIPELINE``h]j^ )}(hjDh]hDRM_SCHED_FENCE_DONT_PIPELINE}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjBubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK)hjhhubj )}(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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK'hj^ubah}(h]h ]h"]h$]h&]uh1jhjphK'hjZubh)}(h**Description**h]j7 )}(hjyh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjwubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK)hjZubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK(hjZubeh}(h]h ]h"]h$]h&]uh1jhjphK'hjhhubj)}(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_BIThNtauh1jhjhhhNhNubj)}(hhh](j)}(h%DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BITh]j)}(h%DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BITh]j)}(h%DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BITh]j)}(hjh]h%DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BIT}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK0ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjԸhK0ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjԸhK0hjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhjԸhK0ubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubh)}(h)``DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BIT``h]j^ )}(hjh]h%DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BIT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK2hjhhubj )}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK0hj ubah}(h]h ]h"]h$]h&]uh1jhjhK0hj ubh)}(h**Description**h]j7 )}(hj(h]h Description}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK2hj ubh)}(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.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK1hj ubeh}(h]h ]h"]h$]h&]uh1jhjhK0hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_sched_entity (C struct)c.drm_sched_entityhNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_sched_entityh]j)}(hstruct drm_sched_entityh](j)}(hj? h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK8ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjyhK8ubj)}(hdrm_sched_entityh]j)}(hjfh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhhjyhK8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjyhK8ubah}(h]j_ah ](jjeh"]h$]h&]j j )j huh1jhjyhK8hjahhubj )}(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:593: ./include/drm/gpu_scheduler.hhKQhjhhubah}(h]h ]h"]h$]h&]uh1j hjahhhjyhK8ubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jƹj( jƹj) j* j+ uh1jhhhjhNhNubj- )}(hX**Definition**:: struct drm_sched_entity { struct list_head list; spinlock_t lock; struct drm_sched_rq *rq; struct drm_sched_entity_stats *stats; struct drm_gpu_scheduler **sched_list; unsigned int num_sched_list; enum drm_sched_priority priority; enum drm_sched_priority rq_priority; ktime_t rr_ts; struct spsc_queue job_queue; atomic_t fence_seq; uint64_t fence_context; struct dma_fence *dependency; struct dma_fence_cb cb; atomic_t *guilty; struct dma_fence *last_scheduled; struct task_struct *last_user; bool stopped; struct completion entity_idle; ktime_t oldest_job_waiting; struct rb_node rb_tree_node; }; **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**, the list of schedulers (**sched_list**, **num_sched_list**) and the **rr_ts** field. ``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. ``stats`` Stats object reference held by the entity and jobs. ``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**. ``rq_priority`` Run-queue priority ``rr_ts`` Fake timestamp of the last popped job from the entity. ``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(). ``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](j7 )}(h**Definition**h]h Definition}(hjҹhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjιubh:}(hjιhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKUhjʹubj )}(hXEstruct drm_sched_entity { struct list_head list; spinlock_t lock; struct drm_sched_rq *rq; struct drm_sched_entity_stats *stats; struct drm_gpu_scheduler **sched_list; unsigned int num_sched_list; enum drm_sched_priority priority; enum drm_sched_priority rq_priority; ktime_t rr_ts; struct spsc_queue job_queue; atomic_t fence_seq; uint64_t fence_context; struct dma_fence *dependency; struct dma_fence_cb cb; atomic_t *guilty; struct dma_fence *last_scheduled; struct task_struct *last_user; bool stopped; struct completion entity_idle; ktime_t oldest_job_waiting; struct rb_node rb_tree_node; };h]hXEstruct drm_sched_entity { struct list_head list; spinlock_t lock; struct drm_sched_rq *rq; struct drm_sched_entity_stats *stats; struct drm_gpu_scheduler **sched_list; unsigned int num_sched_list; enum drm_sched_priority priority; enum drm_sched_priority rq_priority; ktime_t rr_ts; struct spsc_queue job_queue; atomic_t fence_seq; uint64_t fence_context; struct dma_fence *dependency; struct dma_fence_cb cb; atomic_t *guilty; struct dma_fence *last_scheduled; struct task_struct *last_user; bool stopped; struct completion entity_idle; ktime_t oldest_job_waiting; struct rb_node rb_tree_node; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKWhjʹubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKohjʹubjM )}(hhh](jR )}(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](jX )}(h``list``h]j^ )}(hjh]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK^hjubjt )}(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 }(hj4hhhNhNubj7 )}(h**rq**h]hrq}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj4ubh under }(hj4hhhNhNubh)}(h.:c:type:`drm_sched_rq.entities `h]j^ )}(hjPh]hdrm_sched_rq.entities}(hjRhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjNubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_rquh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK[hj4ubh.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjmhK[hj1ubh)}(hBProtected by :c:type:`drm_sched_rq.lock ` of **rq**.h](h Protected by }(hjxhhhNhNubh)}(h*:c:type:`drm_sched_rq.lock `h]j^ )}(hjh]hdrm_sched_rq.lock}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_rquh1hhj0hK^hjxubh of }(hjxhhhNhNubj7 )}(h**rq**h]hrq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjxubh.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0hK^hj1ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj0hK^hjubjR )}(h``lock`` Lock protecting the run-queue (**rq**) to which this entity belongs, **priority**, the list of schedulers (**sched_list**, **num_sched_list**) and the **rr_ts** field. h](jX )}(h``lock``h]j^ )}(hjͺh]hlock}(hjϺhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj˺ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKghjǺubjt )}(hhh]h)}(hLock protecting the run-queue (**rq**) to which this entity belongs, **priority**, the list of schedulers (**sched_list**, **num_sched_list**) and the **rr_ts** field.h](hLock protecting the run-queue (}(hjhhhNhNubj7 )}(h**rq**h]hrq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh ) to which this entity belongs, }(hjhhhNhNubj7 )}(h **priority**h]hpriority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh, the list of schedulers (}(hjhhhNhNubj7 )}(h**sched_list**h]h sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh, }(hjhhhNhNubj7 )}(h**num_sched_list**h]hnum_sched_list}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh ) and the }(hjhhhNhNubj7 )}(h **rr_ts**h]hrr_ts}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh field.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKehjubah}(h]h ]h"]h$]h&]uh1js hjǺubeh}(h]h ]h"]h$]h&]uh1jQ hjhKghjubjR )}(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](jX )}(h``rq``h]j^ )}(hjah]hrq}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj_ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKrhj[ubjt )}(hhh](h)}(h5Runqueue on which this entity is currently scheduled.h]h5Runqueue on which this entity is currently scheduled.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKnhjwubh)}(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 }(hjhhhNhNubj7 )}(h**lock**h]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubhU, 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:593: ./include/drm/gpu_scheduler.hhKphjwubeh}(h]h ]h"]h$]h&]uh1js hj[ubeh}(h]h ]h"]h$]h&]uh1jQ hjvhKrhjubjR )}(h>``stats`` Stats object reference held by the entity and jobs. h](jX )}(h ``stats``h]j^ )}(hjh]hstats}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKyhjubjt )}(hhh]h)}(h3Stats object reference held by the entity and jobs.h]h3Stats object reference held by the entity and jobs.}(hjջhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѻhKyhjһubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjѻhKyhjubjR )}(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](jX )}(h``sched_list``h]j^ )}(hjh]h sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubjt )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhK~hj ubh)}(hThis can be modified by calling drm_sched_entity_modify_sched(). Locking is entirely up to the driver, see the above function for more details.h]hThis can be modified by calling drm_sched_entity_modify_sched(). Locking is entirely up to the driver, see the above function for more details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhj ubh)}(h^This will be set to NULL if :c:type:`num_sched_list` equals 1 and **rq** has been set already.h](hThis will be set to NULL if }(hj,hhhNhNubh)}(h:c:type:`num_sched_list`h]j^ )}(hj6h]hnum_sched_list}(hj8hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj4ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j num_sched_listuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhj,ubh equals 1 and }(hj,hhhNhNubj7 )}(h**rq**h]hrq}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj,ubh has been set already.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjShKhj ubh)}(hpFIXME: This means priority changes through drm_sched_entity_set_priority() will be lost henceforth in this case.h]hpFIXME: This means priority changes through drm_sched_entity_set_priority() will be lost henceforth in this case.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhj ubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hKhjubjR )}(hG``num_sched_list`` Number of drm_gpu_schedulers in the **sched_list**. h](jX )}(h``num_sched_list``h]j^ )}(hjh]hnum_sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubjt )}(hhh]h)}(h3Number of drm_gpu_schedulers in the **sched_list**.h](h$Number of drm_gpu_schedulers in the }(hjhhhNhNubj7 )}(h**sched_list**h]h sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h}``priority`` Priority of the entity. This can be modified by calling drm_sched_entity_set_priority(). Protected by **lock**. h](jX )}(h ``priority``h]j^ )}(hjܼh]hpriority}(hj޼hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjڼubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjּubjt )}(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 }(hjhhhNhNubj7 )}(h**lock**h]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubah}(h]h ]h"]h$]h&]uh1js hjּubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h#``rq_priority`` Run-queue priority h](jX )}(h``rq_priority``h]j^ )}(hj(h]h rq_priority}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhj"ubjt )}(hhh]h)}(hRun-queue priorityh]hRun-queue priority}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKhj>ubah}(h]h ]h"]h$]h&]uh1js hj"ubeh}(h]h ]h"]h$]h&]uh1jQ hj=hKhjubjR )}(hA``rr_ts`` Fake timestamp of the last popped job from the entity. h](jX )}(h ``rr_ts``h]j^ )}(hjah]hrr_ts}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj_ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhj[ubjt )}(hhh]h)}(h6Fake timestamp of the last popped job from the entity.h]h6Fake timestamp of the last popped job from the entity.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKhjwubah}(h]h ]h"]h$]h&]uh1js hj[ubeh}(h]h ]h"]h$]h&]uh1jQ hjvhKhjubjR )}(h/``job_queue`` the list of jobs of this entity. h](jX )}(h ``job_queue``h]j^ )}(hjh]h job_queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubjt )}(hhh]h)}(h the list of jobs of this entity.h]h the list of jobs of this entity.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(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](jX )}(h ``fence_seq``h]j^ )}(hjӽh]h fence_seq}(hjսhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjѽubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjͽubjt )}(hhh](h)}(hlA linearly increasing seqno incremented with each new :c:type:`drm_sched_fence` which is part of the entity.h](h6A linearly increasing seqno incremented with each new }(hjhhhNhNubh)}(h:c:type:`drm_sched_fence`h]j^ )}(hjh]hdrm_sched_fence}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_fenceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubh which is part of the entity.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(heFIXME: Callers of drm_sched_job_arm() need to ensure correct locking, this doesn't need to be atomic.h]hgFIXME: Callers of drm_sched_job_arm() need to ensure correct locking, this doesn’t need to be atomic.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubeh}(h]h ]h"]h$]h&]uh1js hjͽubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(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](jX )}(h``fence_context``h]j^ )}(hj?h]h fence_context}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj=ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhj9ubjt )}(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 }(hjXhhhNhNubh)}(h5:c:type:`drm_sched_fence.scheduled `h]j^ )}(hjbh]hdrm_sched_fence.scheduled}(hjdhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj`ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_fenceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjXubh uses the fence_context but }(hjXhhhNhNubh)}(h4:c:type:`drm_sched_fence.finished `h]j^ )}(hjh]hdrm_sched_fence.finished}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_fenceuh1hhjhKhjXubh uses fence_context + 1.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjUubah}(h]h ]h"]h$]h&]uh1js hj9ubeh}(h]h ]h"]h$]h&]uh1jQ hjThKhjubjR )}(hU``dependency`` The dependency fence of the job which is on the top of the job queue. h](jX )}(h``dependency``h]j^ )}(hjh]h dependency}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubjt )}(hhh]h)}(hEThe dependency fence of the job which is on the top of the job queue.h]hEThe dependency fence of the job which is on the top of the job queue.}(hjؾhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԾhKhjվubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjԾhKhjubjR )}(h0``cb`` Callback for the dependency fence above. h](jX )}(h``cb``h]j^ )}(hjh]hcb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubjt )}(hhh]h)}(h(Callback for the dependency fence above.h]h(Callback for the dependency fence above.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hKhjubjR )}(h'``guilty`` Points to entities' guilty. h](jX )}(h ``guilty``h]j^ )}(hj1h]hguilty}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj/ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhj+ubjt )}(hhh]h)}(hPoints to entities' guilty.h]hPoints to entities’ guilty.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhKhjGubah}(h]h ]h"]h$]h&]uh1js hj+ubeh}(h]h ]h"]h$]h&]uh1jQ hjFhKhjubjR )}(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](jX )}(h``last_scheduled``h]j^ )}(hjjh]hlast_scheduled}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjhubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjdubjt )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubah}(h]h ]h"]h$]h&]uh1js hjdubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h?``last_user`` last group leader pushing a job into the entity. h](jX )}(h ``last_user``h]j^ )}(hjh]h last_user}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubjt )}(hhh]h)}(h0last group leader pushing a job into the entity.h]h0last group leader pushing a job into the entity.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(h~``stopped`` Marks the enity as removed from rq and destined for termination. This is set by calling drm_sched_entity_flush(). h](jX )}(h ``stopped``h]j^ )}(hjݿh]hstopped}(hj߿hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjۿubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhj׿ubjt )}(hhh]h)}(hqMarks the enity as removed from rq and destined for termination. This is set by calling drm_sched_entity_flush().h]hqMarks the enity as removed from rq and destined for termination. This is set by calling drm_sched_entity_flush().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubah}(h]h ]h"]h$]h&]uh1js hj׿ubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubjR )}(ho``entity_idle`` Signals when entity is not in use, used to sequence entity cleanup in drm_sched_entity_fini(). h](jX )}(h``entity_idle``h]j^ )}(hjh]h entity_idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubjt )}(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().}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhj-ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj,hKhjubjR )}(h>``oldest_job_waiting`` Marks earliest job waiting in SW queue h](jX )}(h``oldest_job_waiting``h]j^ )}(hjQh]holdest_job_waiting}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjOubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjKubjt )}(hhh]h)}(h&Marks earliest job waiting in SW queueh]h&Marks earliest job waiting in SW queue}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjgubah}(h]h ]h"]h$]h&]uh1js hjKubeh}(h]h ]h"]h$]h&]uh1jQ hjfhKhjubjR )}(hS``rb_tree_node`` The node used to insert this entity into time based priority queueh](jX )}(h``rb_tree_node``h]j^ )}(hjh]h rb_tree_node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubjt )}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubeh}(h]h ]h"]h$]h&]uh1jL hjʹubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjhhubh)}(hEntities will emit jobs in order to their corresponding hardware ring, and the scheduler will alternate between entities based on scheduling policy.h]hEntities will emit jobs in order to their corresponding hardware ring, and the scheduler will alternate between entities based on scheduling policy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKRhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_sched_rq (C struct)c.drm_sched_rqhNtauh1jhjhhhNhNubj)}(hhh](j)}(h drm_sched_rqh]j)}(hstruct drm_sched_rqh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKYubj)}(h drm_sched_rqh]j)}(hjh]h drm_sched_rq}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKYubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKYhjhhubj )}(hhh]h)}(h"queue of entities to be scheduled.h]h"queue of entities to be scheduled.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjJhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKYubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jej( jej) j* j+ uh1jhhhjhNhNubj- )}(hX**Definition**:: struct drm_sched_rq { struct drm_gpu_scheduler *sched; spinlock_t lock; ktime_t rr_ts; struct list_head entities; struct rb_root_cached rb_tree_root; enum drm_sched_priority head_prio; }; **Members** ``sched`` the scheduler to which this rq belongs to. ``lock`` protects **entities**, **rb_tree_root**, **rr_ts** and **head_prio**. ``rr_ts`` monotonically incrementing fake timestamp for RR mode. ``entities`` list of the entities to be scheduled. ``rb_tree_root`` root of time based priority queue of entities for FIFO scheduling ``head_prio`` priority of the top tree element.h](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjmubh:}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjiubj )}(hstruct drm_sched_rq { struct drm_gpu_scheduler *sched; spinlock_t lock; ktime_t rr_ts; struct list_head entities; struct rb_root_cached rb_tree_root; enum drm_sched_priority head_prio; };h]hstruct drm_sched_rq { struct drm_gpu_scheduler *sched; spinlock_t lock; ktime_t rr_ts; struct list_head entities; struct rb_root_cached rb_tree_root; enum drm_sched_priority head_prio; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjiubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjiubjM )}(hhh](jR )}(h5``sched`` the scheduler to which this rq belongs to. h](jX )}(h ``sched``h]j^ )}(hjh]hsched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjubjt )}(hhh]h)}(h*the scheduler to which this rq belongs to.h]h*the scheduler to which this rq belongs to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hjubjR )}(hO``lock`` protects **entities**, **rb_tree_root**, **rr_ts** and **head_prio**. h](jX )}(h``lock``h]j^ )}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjubjt )}(hhh]h)}(hEprotects **entities**, **rb_tree_root**, **rr_ts** and **head_prio**.h](h protects }(hj hhhNhNubj7 )}(h **entities**h]hentities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubh, }(hj hhhNhNubj7 )}(h**rb_tree_root**h]h rb_tree_root}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubh, }hj sbj7 )}(h **rr_ts**h]hrr_ts}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubh and }(hj hhhNhNubj7 )}(h **head_prio**h]h head_prio}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hjubjR )}(hA``rr_ts`` monotonically incrementing fake timestamp for RR mode. h](jX )}(h ``rr_ts``h]j^ )}(hjth]hrr_ts}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjrubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjnubjt )}(hhh]h)}(h6monotonically incrementing fake timestamp for RR mode.h]h6monotonically incrementing fake timestamp for RR mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1js hjnubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hjubjR )}(h3``entities`` list of the entities to be scheduled. h](jX )}(h ``entities``h]j^ )}(hjh]hentities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjubjt )}(hhh]h)}(h%list of the entities to be scheduled.h]h%list of the entities to be scheduled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hjubjR )}(hS``rb_tree_root`` root of time based priority queue of entities for FIFO scheduling h](jX )}(h``rb_tree_root``h]j^ )}(hjh]h rb_tree_root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjubjt )}(hhh]h)}(hAroot of time based priority queue of entities for FIFO schedulingh]hAroot of time based priority queue of entities for FIFO scheduling}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hjubjR )}(h/``head_prio`` priority of the top tree element.h](jX )}(h ``head_prio``h]j^ )}(hjh]h head_prio}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjubjt )}(hhh]h)}(h!priority of the top tree element.h]h!priority of the top tree element.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhj5ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj4hM hjubeh}(h]h ]h"]h$]h&]uh1jL hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj`ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjhhubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_sched_fence (C struct)c.drm_sched_fencehNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_sched_fenceh]j)}(hstruct drm_sched_fenceh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_sched_fenceh]j)}(hjh]hdrm_sched_fence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h0fences corresponding to the scheduling of a job.h]h0fences corresponding to the scheduling of a job.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM#hjubj )}(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; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM%hjubh)}(h **Members**h]j7 )}(hj0h]hMembers}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj.ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM0hjubjM )}(hhh](jR )}(h^``scheduled`` this fence is what will be signaled by the scheduler when the job is scheduled. h](jX )}(h ``scheduled``h]j^ )}(hjOh]h scheduled}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjMubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM%hjIubjt )}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM$hjeubah}(h]h ]h"]h$]h&]uh1js hjIubeh}(h]h ]h"]h$]h&]uh1jQ hjdhM%hjFubjR )}(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](jX )}(h ``finished``h]j^ )}(hjh]hfinished}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM1hjubjt )}(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:593: ./include/drm/gpu_scheduler.hhM*hjubh)}(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:593: ./include/drm/gpu_scheduler.hhM-hjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM1hjFubjR )}(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](jX )}(h ``deadline``h]j^ )}(hjh]hdeadline}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM7hjubjt )}(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 }(hjhhhNhNubh)}(h4:c:type:`drm_sched_fence.finished `h]j^ )}(hjh]hdrm_sched_fence.finished}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_fenceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM6hjubh- which potentially needs to be propagated to }(hjhhhNhNubh)}(h2:c:type:`drm_sched_fence.parent `h]j^ )}(hjh]hdrm_sched_fence.parent}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_fenceuh1hhjhM6hjubeh}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM7hjFubjR )}(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](jX )}(h ``parent``h]j^ )}(hjNh]hparent}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjLubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM>hjHubjt )}(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 }(hjghhhNhNubh)}(h?:c:type:`drm_sched_backend_ops.run_job `h]j^ )}(hjqh]hdrm_sched_backend_ops.run_job}(hjshhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjoubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_backend_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM<hjgubh4 when scheduling the job on hardware. We signal the }(hjghhhNhNubh)}(h4:c:type:`drm_sched_fence.finished `h]j^ )}(hjh]hdrm_sched_fence.finished}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_fenceuh1hhjhM<hjgubh fence once parent is signalled.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM<hjdubah}(h]h ]h"]h$]h&]uh1js hjHubeh}(h]h ]h"]h$]h&]uh1jQ hjchM>hjFubjR )}(hQ``sched`` the scheduler instance to which the job having this struct belongs to. h](jX )}(h ``sched``h]j^ )}(hjh]hsched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMChjubjt )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMBhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMChjFubjR )}(hA``lock`` the lock used by the scheduled and the finished fences. h](jX )}(h``lock``h]j^ )}(hjh]hlock}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMGhjubjt )}(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&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMGhjFubjR )}(h"``owner`` job owner for debugging h](jX )}(h ``owner``h]j^ )}(hjAh]howner}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj?ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMKhj;ubjt )}(hhh]h)}(hjob owner for debuggingh]hjob owner for debugging}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMKhjWubah}(h]h ]h"]h$]h&]uh1js hj;ubeh}(h]h ]h"]h$]h&]uh1jQ hjVhMKhjFubjR )}(hC``drm_client_id`` The client_id of the drm_file which owns the job.h](jX )}(h``drm_client_id``h]j^ )}(hjzh]h drm_client_id}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjxubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMOhjtubjt )}(hhh]h)}(h1The client_id of the drm_file which owns the job.h]h1The client_id of the drm_file which owns the job.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMPhjubah}(h]h ]h"]h$]h&]uh1js hjtubeh}(h]h ]h"]h$]h&]uh1jQ hjhMOhjFubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_sched_job (C struct)c.drm_sched_jobhNtauh1jhjhhhNhNubj)}(hhh](j)}(h drm_sched_jobh]j)}(hstruct drm_sched_jobh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMVubj)}(h drm_sched_jobh]j)}(hjh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMVubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMVubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMVhjhhubj )}(hhh]h)}(hA job to be run by an entity.h]hA job to be run by an entity.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMYhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMVubeh}(h]h ](j! structeh"]h$]h&]j& j! j' j.j( j.j) j* j+ uh1jhhhjhNhNubj- )}(hX**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; struct drm_sched_entity_stats *entity_stats; 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. ``entity_stats`` Stats object reference held by the job and entity. ``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](j7 )}(h**Definition**h]h Definition}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj6ubh:}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM]hj2ubj )}(hXstruct drm_sched_job { ktime_t submit_ts; struct drm_gpu_scheduler *sched; struct drm_sched_fence *s_fence; struct drm_sched_entity *entity; struct drm_sched_entity_stats *entity_stats; 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]hXstruct drm_sched_job { ktime_t submit_ts; struct drm_gpu_scheduler *sched; struct drm_sched_fence *s_fence; struct drm_sched_entity *entity; struct drm_sched_entity_stats *entity_stats; 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; };}hjSsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM_hj2ubh)}(h **Members**h]j7 )}(hjdh]hMembers}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjbubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMshj2ubjM )}(hhh](jR )}(h=``submit_ts`` When the job was pushed into the entity queue. h](jX )}(h ``submit_ts``h]j^ )}(hjh]h submit_ts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMphj}ubjt )}(hhh]h)}(h.When the job was pushed into the entity queue.h]h.When the job was pushed into the entity queue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMphjubah}(h]h ]h"]h$]h&]uh1js hj}ubeh}(h]h ]h"]h$]h&]uh1jQ hjhMphjzubjR )}(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](jX )}(h ``sched``h]j^ )}(hjh]hsched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMyhjubjt )}(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:593: ./include/drm/gpu_scheduler.hhMwhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMyhjzubjR )}(h;``s_fence`` contains the fences for the scheduling of job. h](jX )}(h ``s_fence``h]j^ )}(hjh]hs_fence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM_hjubjt )}(hhh]h)}(h.contains the fences for the scheduling of job.h]h.contains the fences for the scheduling of job.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM_hj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hM_hjzubjR )}(h1``entity`` the entity to which this job belongs. h](jX )}(h ``entity``h]j^ )}(hj/h]hentity}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj-ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMghj)ubjt )}(hhh]h)}(h%the entity to which this job belongs.h]h%the entity to which this job belongs.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMghjEubah}(h]h ]h"]h$]h&]uh1js hj)ubeh}(h]h ]h"]h$]h&]uh1jQ hjDhMghjzubjR )}(hD``entity_stats`` Stats object reference held by the job and entity. h](jX )}(h``entity_stats``h]j^ )}(hjhh]h entity_stats}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjfubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjbubjt )}(hhh]h)}(h2Stats object reference held by the job and entity.h]h2Stats object reference held by the job and entity.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1js hjbubeh}(h]h ]h"]h$]h&]uh1jQ hj}hMhjzubjR )}(h(``s_priority`` the priority of the job. h](jX )}(h``s_priority``h]j^ )}(hjh]h s_priority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMfhjubjt )}(hhh]h)}(hthe priority of the job.h]hthe priority of the job.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMfhjzubjR )}(hH``credits`` the number of credits this job contributes to the scheduler h](jX )}(h ``credits``h]j^ )}(hjh]hcredits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMahjubjt )}(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&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMahjzubjR )}(h;``last_dependency`` tracks **dependencies** as they signal h](jX )}(h``last_dependency``h]j^ )}(hjh]hlast_dependency}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhj ubjt )}(hhh]h)}(h&tracks **dependencies** as they signalh](htracks }(hj,hhhNhNubj7 )}(h**dependencies**h]h dependencies}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj,ubh as they signal}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj(hMhj)ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj(hMhjzubjR )}(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](jX )}(h ``karma``h]j^ )}(hj^h]hkarma}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj\ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMehjXubjt )}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMchjtubah}(h]h ]h"]h$]h&]uh1js hjXubeh}(h]h ]h"]h$]h&]uh1jQ hjshMehjzubjR )}(hM``queue_node`` used to append this struct to the queue of jobs in an entity. h](jX )}(h``queue_node``h]j^ )}(hjh]h queue_node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM\hjubjt )}(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&]uh1hhjhM\hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM\hjzubjR )}(h=``list`` a job participates in a "pending" and "done" lists. h](jX )}(h``list``h]j^ )}(hjh]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM]hjubjt )}(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&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM]hjzubjR )}(h``{unnamed_union}`` anonymous h](jX )}(h``{unnamed_union}``h]j^ )}(hj h]h{unnamed_union}}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhKhjubjt )}(hhh]h)}(h anonymoush]h anonymous}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjzubjR )}(h3``finish_cb`` the callback for the finished fence. h](jX )}(h ``finish_cb``h]j^ )}(hjCh]h finish_cb}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjAubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM`hj=ubjt )}(hhh]h)}(h$the callback for the finished fence.h]h$the callback for the finished fence.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM`hjYubah}(h]h ]h"]h$]h&]uh1js hj=ubeh}(h]h ]h"]h$]h&]uh1jQ hjXhM`hjzubjR )}(h=``work`` Helper to reschedule job kill to different context. h](jX )}(h``work``h]j^ )}(hj|h]hwork}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjzubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMbhjvubjt )}(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&]uh1hhjhMbhjubah}(h]h ]h"]h$]h&]uh1js hjvubeh}(h]h ]h"]h$]h&]uh1jQ hjhMbhjzubjR )}(h5``cb`` the callback for the parent fence in s_fence. h](jX )}(h``cb``h]j^ )}(hjh]hcb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhhjubjt )}(hhh]h)}(h-the callback for the parent fence in s_fence.h]h-the callback for the parent fence in s_fence.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhhjzubjR )}(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](jX )}(h``dependencies``h]j^ )}(hjh]h dependencies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjzubeh}(h]h ]h"]h$]h&]uh1jL hj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj/ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjhhubh)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpu_sched_stat (C enum)c.drm_gpu_sched_stathNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_gpu_sched_stath]j)}(henum drm_gpu_sched_stath](j)}(hjh]henum}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMoubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhj|hMoubj)}(hdrm_gpu_sched_stath]j)}(hjih]hdrm_gpu_sched_stat}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjkhhhj|hMoubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhj|hMoubah}(h]jbah ](jjeh"]h$]h&]j j )j huh1jhj|hMohjdhhubj )}(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:593: ./include/drm/gpu_scheduler.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j hjdhhhj|hMoubeh}(h]h ](j! enumeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjM )}(hhh](jR )}(h2``DRM_GPU_SCHED_STAT_NONE`` Reserved. Do not use. h](jX )}(h``DRM_GPU_SCHED_STAT_NONE``h]j^ )}(hjh]hDRM_GPU_SCHED_STAT_NONE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(hhh]h)}(hReserved. Do not use.h]hReserved. Do not use.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hB``DRM_GPU_SCHED_STAT_RESET`` The GPU hung and successfully reset. h](jX )}(h``DRM_GPU_SCHED_STAT_RESET``h]j^ )}(hj+h]hDRM_GPU_SCHED_STAT_RESET}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj)ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhj%ubjt )}(hhh]h)}(h$The GPU hung and successfully reset.h]h$The GPU hung and successfully reset.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1js hj%ubeh}(h]h ]h"]h$]h&]uh1jQ hj@hMhjubjR )}(hF``DRM_GPU_SCHED_STAT_ENODEV`` Error: Device is not available anymore. h](jX )}(h``DRM_GPU_SCHED_STAT_ENODEV``h]j^ )}(hjdh]hDRM_GPU_SCHED_STAT_ENODEV}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjbubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhj^ubjt )}(hhh]h)}(h'Error: Device is not available anymore.h]h'Error: Device is not available anymore.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1js hj^ubeh}(h]h ]h"]h$]h&]uh1jQ hjyhMhjubjR )}(hm``DRM_GPU_SCHED_STAT_NO_HANG`` Contrary to scheduler's assumption, the GPU did not hang and is still running.h](jX )}(h``DRM_GPU_SCHED_STAT_NO_HANG``h]j^ )}(hjh]hDRM_GPU_SCHED_STAT_NO_HANG}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_sched_backend_ops (C struct)c.drm_sched_backend_opshNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_sched_backend_opsh]j)}(hstruct drm_sched_backend_opsh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_sched_backend_opsh]j)}(hjh]hdrm_sched_backend_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h5Define the backend operations called by the schedulerh]h5Define the backend operations called by the scheduler}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhj5hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jPj( jPj) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjXubh:}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjTubj )}(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); };}hjusbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjTubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjTubjM )}(hhh](jR )}(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](jX )}(h``prepare_job``h]j^ )}(hjh]h prepare_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(hhh](h)}(hCalled when the scheduler is considering scheduling this job next, to get another struct dma_fence for this job to block on. Once it returns NULL, run_job() may be called.h]hCalled when the scheduler is considering scheduling this job next, to get another struct dma_fence for this job to block on. Once it returns NULL, run_job() may be called.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(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](jX )}(h ``run_job``h]j^ )}(hjh]hrun_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubh)}(h**sched_job**: the job to runh](j7 )}(h **sched_job**h]h sched_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh: the job to run}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubh)}(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 }(hj3hhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j^ )}(hj=h]hstruct drm_sched_backend_ops}(hj?hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj;ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_backend_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhj3ubhXf.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.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhMhjubh)}(h4TODO: Document what drivers should do / use instead.h]h4TODO: Document what drivers should do / use instead.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubh)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubh)}(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:593: ./include/drm/gpu_scheduler.hhMhjubh)}(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:593: ./include/drm/gpu_scheduler.hhMhjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(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](jX )}(h``timedout_job``h]j^ )}(hjh]h timedout_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(hhh](h)}(hICalled when a job has taken too long to execute, to trigger GPU recovery.h]hICalled when a job has taken too long to execute, to trigger GPU recovery.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubh)}(h)**sched_job**: The job that has timed outh](j7 )}(h **sched_job**h]h sched_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh: The job that has timed out}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubh)}(hDrivers typically issue a reset to recover from GPU hangs. This procedure looks very different depending on whether a firmware or a hardware scheduler is being used.h]hDrivers typically issue a reset to recover from GPU hangs. This procedure looks very different depending on whether a firmware or a hardware scheduler is being used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubh)}(hFor a FIRMWARE SCHEDULER, each ring has one scheduler, and each scheduler has one entity. Hence, the steps taken typically look as follows:h]hFor a FIRMWARE SCHEDULER, each ring has one scheduler, and each scheduler has one entity. Hence, the steps taken typically look as follows:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjJ)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjKubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jMjMjMhjMj2uh1jJhjubh)}(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).}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubh)}(hWConsequently, the procedure to recover with a hardware scheduler should look like this:h]hWConsequently, the procedure to recover with a hardware scheduler should look like this:}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjJ)}(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:593: ./include/drm/gpu_scheduler.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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:593: ./include/drm/gpu_scheduler.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h8Issue a GPU reset on all faulty rings (driver-specific).h]h)}(hjh]h8Issue a GPU reset on all faulty rings (driver-specific).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hfRe-submit jobs on all schedulers impacted by re-submitting them to the entities which are still alive.h]h)}(hfRe-submit jobs on all schedulers impacted by re-submitting them to the entities which are still alive.h]hfRe-submit jobs on all schedulers impacted by re-submitting them to the entities which are still alive.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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:593: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jMjMjMhjMj2uh1jJhjubh)}(hXNote that some GPUs have distinct hardware queues but need to reset the GPU globally, which requires extra synchronization between the timeout handlers of different schedulers. One way to achieve this synchronization is to create an ordered workqueue (using alloc_ordered_workqueue()) at the driver level, and pass this queue as drm_sched_init()'s **timeout_wq** parameter. This will guarantee that timeout handlers are executed sequentially.h](hX^Note that some GPUs have distinct hardware queues but need to reset the GPU globally, which requires extra synchronization between the timeout handlers of different schedulers. One way to achieve this synchronization is to create an ordered workqueue (using alloc_ordered_workqueue()) at the driver level, and pass this queue as drm_sched_init()’s }(hj hhhNhNubj7 )}(h**timeout_wq**h]h timeout_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubhP parameter. This will guarantee that timeout handlers are executed sequentially.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubh)}(haReturn: The scheduler's status, defined by :c:type:`enum drm_gpu_sched_stat `h](h-Return: The scheduler’s status, defined by }(hj,hhhNhNubh)}(h6:c:type:`enum drm_gpu_sched_stat `h]j^ )}(hj6h]henum drm_gpu_sched_stat}(hj8hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj4ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpu_sched_statuh1hhjhMhj,ubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hb``free_job`` Called once the job's finished fence has been signaled and it's time to clean it up. h](jX )}(h ``free_job``h]j^ )}(hjkh]hfree_job}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjiubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM"hjeubjt )}(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:593: ./include/drm/gpu_scheduler.hhM!hjubah}(h]h ]h"]h$]h&]uh1js hjeubeh}(h]h ]h"]h$]h&]uh1jQ hjhM"hjubjR )}(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](jX )}(h``cancel_job``h]j^ )}(hjh]h cancel_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM3hjubjt )}(hhh](h)}(h[Used by the scheduler to guarantee remaining jobs' fences get signaled in drm_sched_fini().h]h]Used by the scheduler to guarantee remaining jobs’ fences get signaled in drm_sched_fini().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM'hjubh)}(hUsed by the scheduler to cancel all jobs that have not been executed with :c:type:`struct drm_sched_backend_ops `.run_job by the time drm_sched_fini() gets invoked.h](hJUsed by the scheduler to cancel all jobs that have not been executed with }(hjhhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j^ )}(hjh]hstruct drm_sched_backend_ops}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_backend_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM*hjubh3.run_job by the time drm_sched_fini() gets invoked.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM*hjubh)}(hDrivers need to signal the passed job's hardware fence with an appropriate error code (e.g., -ECANCELED) in this callback. They must not free the job.h]hDrivers need to signal the passed job’s hardware fence with an appropriate error code (e.g., -ECANCELED) in this callback. They must not free the job.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM.hjubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_backend_opsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM2hjubh .free_job.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5hM2hjubeh}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM3hjubeh}(h]h ]h"]h$]h&]uh1jL hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjYubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM7hjhhubh)}(h9These functions should be implemented in the driver side.h]h9These functions should be implemented in the driver side.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_gpu_scheduler (C struct)c.drm_gpu_schedulerhNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_gpu_schedulerh]j)}(hstruct drm_gpu_schedulerh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_gpu_schedulerh]j)}(hjh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(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:593: ./include/drm/gpu_scheduler.hhM9hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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; u32 num_user_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 ewma_drm_sched_avgtime avg_job_us; 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`` Equal to **num_user_rqs** for FIFO and RR and 1 for the FAIR policy. ``num_user_rqs`` Number of run-queues. This is at most DRM_SCHED_PRIORITY_COUNT, as there's usually one run-queue per priority, but could be less. ``sched_rq`` An allocated array of run-queues of size **num_rqs**; ``job_scheduled`` once drm_sched_entity_flush() is called the scheduler waits on this wait queue until all the scheduled jobs are finished. ``job_id_count`` used to assign unique id to the each job. ``submit_wq`` workqueue used to queue **work_run_job** and **work_free_job** ``timeout_wq`` workqueue used to queue **work_tdr** ``avg_job_us`` Average job duration. ``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](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM=hjubj )}(hXstruct 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; u32 num_user_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 ewma_drm_sched_avgtime avg_job_us; 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]hXstruct 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; u32 num_user_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 ewma_drm_sched_avgtime avg_job_us; 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&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM?hjubh)}(h **Members**h]j7 )}(hj)h]hMembers}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj'ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM\hjubjM )}(hhh](jR )}(h3``ops`` backend operations provided by the driver. h](jX )}(h``ops``h]j^ )}(hjHh]hops}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM<hjBubjt )}(hhh]h)}(h*backend operations provided by the driver.h]h*backend operations provided by the driver.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM<hj^ubah}(h]h ]h"]h$]h&]uh1js hjBubeh}(h]h ]h"]h$]h&]uh1jQ hj]hM<hj?ubjR )}(h4``credit_limit`` the credit limit of this scheduler h](jX )}(h``credit_limit``h]j^ )}(hjh]h credit_limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM=hj{ubjt )}(hhh]h)}(h"the credit limit of this schedulerh]h"the credit limit of this scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1js hj{ubeh}(h]h ]h"]h$]h&]uh1jQ hjhM=hj?ubjR )}(h<``credit_count`` the current credit count of this scheduler h](jX )}(h``credit_count``h]j^ )}(hjh]h credit_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM>hjubjt )}(hhh]h)}(h*the current credit count of this schedulerh]h*the current credit count of this scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM>hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM>hj?ubjR )}(hF``timeout`` the time after which a job is removed from the scheduler. h](jX )}(h ``timeout``h]j^ )}(hjh]htimeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM?hjubjt )}(hhh]h)}(h9the time after which a job is removed from the scheduler.h]h9the time after which a job is removed from the scheduler.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM?hj?ubjR )}(hB``name`` name of the ring for which this scheduler is being used. h](jX )}(h``name``h]j^ )}(hj,h]hname}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj*ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM@hj&ubjt )}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM@hjBubah}(h]h ]h"]h$]h&]uh1js hj&ubeh}(h]h ]h"]h$]h&]uh1jQ hjAhM@hj?ubjR )}(hQ``num_rqs`` Equal to **num_user_rqs** for FIFO and RR and 1 for the FAIR policy. h](jX )}(h ``num_rqs``h]j^ )}(hjeh]hnum_rqs}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjcubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMDhj_ubjt )}(hhh]h)}(hDEqual to **num_user_rqs** for FIFO and RR and 1 for the FAIR policy.h](h Equal to }(hj~hhhNhNubj7 )}(h**num_user_rqs**h]h num_user_rqs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj~ubh+ for FIFO and RR and 1 for the FAIR policy.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMDhj{ubah}(h]h ]h"]h$]h&]uh1js hj_ubeh}(h]h ]h"]h$]h&]uh1jQ hjzhMDhj?ubjR )}(h``num_user_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](jX )}(h``num_user_rqs``h]j^ )}(hjh]h num_user_rqs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMChjubjt )}(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:593: ./include/drm/gpu_scheduler.hhMAhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMChj?ubjR )}(hC``sched_rq`` An allocated array of run-queues of size **num_rqs**; h](jX )}(h ``sched_rq``h]j^ )}(hjh]hsched_rq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMEhjubjt )}(hhh]h)}(h5An allocated array of run-queues of size **num_rqs**;h](h)An allocated array of run-queues of size }(hjhhhNhNubj7 )}(h **num_rqs**h]hnum_rqs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMEhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMEhj?ubjR )}(h``job_scheduled`` once drm_sched_entity_flush() is called the scheduler waits on this wait queue until all the scheduled jobs are finished. h](jX )}(h``job_scheduled``h]j^ )}(hj5h]h job_scheduled}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj3ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMHhj/ubjt )}(hhh]h)}(hyonce drm_sched_entity_flush() is called the scheduler waits on this wait queue until all the scheduled jobs are finished.h]hyonce drm_sched_entity_flush() is called the scheduler waits on this wait queue until all the scheduled jobs are finished.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMFhjKubah}(h]h ]h"]h$]h&]uh1js hj/ubeh}(h]h ]h"]h$]h&]uh1jQ hjJhMHhj?ubjR )}(h;``job_id_count`` used to assign unique id to the each job. h](jX )}(h``job_id_count``h]j^ )}(hjoh]h job_id_count}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjmubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMIhjiubjt )}(hhh]h)}(h)used to assign unique id to the each job.h]h)used to assign unique id to the each job.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1js hjiubeh}(h]h ]h"]h$]h&]uh1jQ hjhMIhj?ubjR )}(hM``submit_wq`` workqueue used to queue **work_run_job** and **work_free_job** h](jX )}(h ``submit_wq``h]j^ )}(hjh]h submit_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMJhjubjt )}(hhh]h)}(h>workqueue used to queue **work_run_job** and **work_free_job**h](hworkqueue used to queue }(hjhhhNhNubj7 )}(h**work_run_job**h]h work_run_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh and }(hjhhhNhNubj7 )}(h**work_free_job**h]h work_free_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubeh}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMJhj?ubjR )}(h4``timeout_wq`` workqueue used to queue **work_tdr** h](jX )}(h``timeout_wq``h]j^ )}(hjh]h timeout_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMKhjubjt )}(hhh]h)}(h$workqueue used to queue **work_tdr**h](hworkqueue used to queue }(hjhhhNhNubj7 )}(h **work_tdr**h]hwork_tdr}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubeh}(h]h ]h"]h$]h&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMKhj?ubjR )}(h%``avg_job_us`` Average job duration. h](jX )}(h``avg_job_us``h]j^ )}(hjHh]h avg_job_us}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMLhjBubjt )}(hhh]h)}(hAverage job duration.h]hAverage job duration.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMLhj^ubah}(h]h ]h"]h$]h&]uh1js hjBubeh}(h]h ]h"]h$]h&]uh1jQ hj]hMLhj?ubjR )}(h@``work_run_job`` work which calls run_job op of each scheduler. h](jX )}(h``work_run_job``h]j^ )}(hjh]h work_run_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMMhj{ubjt )}(hhh]h)}(h.work which calls run_job op of each scheduler.h]h.work which calls run_job op of each scheduler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1js hj{ubeh}(h]h ]h"]h$]h&]uh1jQ hjhMMhj?ubjR )}(hB``work_free_job`` work which calls free_job op of each scheduler. h](jX )}(h``work_free_job``h]j^ )}(hjh]h work_free_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMNhjubjt )}(hhh]h)}(h/work which calls free_job op of each scheduler.h]h/work which calls free_job op of each scheduler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMNhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMNhj?ubjR )}(hh``work_tdr`` schedules a delayed call to **drm_sched_job_timedout** after the timeout interval is over. h](jX )}(h ``work_tdr``h]j^ )}(hjh]hwork_tdr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMPhjubjt )}(hhh]h)}(hZschedules a delayed call to **drm_sched_job_timedout** after the timeout interval is over.h](hschedules a delayed call to }(hj hhhNhNubj7 )}(h**drm_sched_job_timedout**h]hdrm_sched_job_timedout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubh$ after the timeout interval is over.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMOhj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMPhj?ubjR )}(hH``pending_list`` the list of jobs which are currently in the job queue. h](jX )}(h``pending_list``h]j^ )}(hj?h]h pending_list}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj=ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMQhj9ubjt )}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMQhjUubah}(h]h ]h"]h$]h&]uh1js hj9ubeh}(h]h ]h"]h$]h&]uh1jQ hjThMQhj?ubjR )}(h4``job_list_lock`` lock to protect the pending_list. h](jX )}(h``job_list_lock``h]j^ )}(hjxh]h job_list_lock}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjvubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMRhjrubjt )}(hhh]h)}(h!lock to protect the pending_list.h]h!lock to protect the pending_list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMRhjubah}(h]h ]h"]h$]h&]uh1js hjrubeh}(h]h ]h"]h$]h&]uh1jQ hjhMRhj?ubjR )}(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](jX )}(h``hang_limit``h]j^ )}(hjh]h hang_limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMThjubjt )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMShjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMThj?ubjR )}(h7``score`` score to help loadbalancer pick a idle sched h](jX )}(h ``score``h]j^ )}(hjh]hscore}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMUhjubjt )}(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&]uh1hhjhMUhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMUhj?ubjR )}(h:``_score`` score used when the driver doesn't provide one h](jX )}(h ``_score``h]j^ )}(hj$h]h_score}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj"ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMVhjubjt )}(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&]uh1hhj9hMVhj:ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj9hMVhj?ubjR )}(h6``ready`` marks if the underlying HW is ready to work h](jX )}(h ``ready``h]j^ )}(hj]h]hready}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj[ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMWhjWubjt )}(hhh]h)}(h+marks if the underlying HW is ready to workh]h+marks if the underlying HW is ready to work}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMWhjsubah}(h]h ]h"]h$]h&]uh1js hjWubeh}(h]h ]h"]h$]h&]uh1jQ hjrhMWhj?ubjR )}(hB``free_guilty`` A hit to time out handler to free the guilty job. h](jX )}(h``free_guilty``h]j^ )}(hjh]h free_guilty}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMXhjubjt )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMXhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMXhj?ubjR )}(hD``pause_submit`` pause queuing of **work_run_job** on **submit_wq** h](jX )}(h``pause_submit``h]j^ )}(hjh]h pause_submit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMYhjubjt )}(hhh]h)}(h2pause queuing of **work_run_job** on **submit_wq**h](hpause queuing of }(hjhhhNhNubj7 )}(h**work_run_job**h]h work_run_job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh on }(hjhhhNhNubj7 )}(h **submit_wq**h]h submit_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubeh}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMYhj?ubjR )}(h=``own_submit_wq`` scheduler owns allocation of **submit_wq** h](jX )}(h``own_submit_wq``h]j^ )}(hj(h]h own_submit_wq}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj&ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMZhj"ubjt )}(hhh]h)}(h*scheduler owns allocation of **submit_wq**h](hscheduler owns allocation of }(hjAhhhNhNubj7 )}(h **submit_wq**h]h submit_wq}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjAubeh}(h]h ]h"]h$]h&]uh1hhj=hMZhj>ubah}(h]h ]h"]h$]h&]uh1js hj"ubeh}(h]h ]h"]h$]h&]uh1jQ hj=hMZhj?ubjR )}(h/``dev`` system :c:type:`struct device `h](jX )}(h``dev``h]j^ )}(hjoh]hdev}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjmubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMZhjiubjt )}(hhh]h)}(h'system :c:type:`struct device `h](hsystem }(hjhhhNhNubh)}(h :c:type:`struct device `h]j^ )}(hjh]h struct device}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM[hjubeh}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1js hjiubeh}(h]h ]h"]h$]h&]uh1jQ hjhMZhj?ubeh}(h]h ]h"]h$]h&]uh1jL hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM^hjhhubh)}(h4One scheduler is implemented for each hardware ring.h]h4One scheduler is implemented for each hardware ring.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM[hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_sched_init_args (C struct)c.drm_sched_init_argshNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_sched_init_argsh]j)}(hstruct drm_sched_init_argsh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhM`ubj)}(hdrm_sched_init_argsh]j)}(hj h]hdrm_sched_init_args}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhjhM`ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM`ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM`hjhhubj )}(hhh]h)}(h/parameters for initializing a DRM GPU schedulerh]h/parameters for initializing a DRM GPU scheduler}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM|hjNhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM`ubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jij( jij) j* j+ uh1jhhhjhNhNubj- )}(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](j7 )}(h**Definition**h]h Definition}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjqubh:}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjmubj )}(hX6struct drm_sched_init_args { const struct drm_sched_backend_ops *ops; struct workqueue_struct *submit_wq; struct workqueue_struct *timeout_wq; u32 num_rqs; u32 credit_limit; unsigned int hang_limit; long timeout; atomic_t *score; const char *name; struct device *dev; };h]hX6struct drm_sched_init_args { const struct drm_sched_backend_ops *ops; struct workqueue_struct *submit_wq; struct workqueue_struct *timeout_wq; u32 num_rqs; u32 credit_limit; unsigned int hang_limit; long timeout; atomic_t *score; const char *name; struct device *dev; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjmubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjmubjM )}(hhh](jR )}(h2``ops`` backend operations provided by the driver h](jX )}(h``ops``h]j^ )}(hjh]hops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(hhh]h)}(h)backend operations provided by the driverh]h)backend operations provided by the driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h]``submit_wq`` workqueue to use for submission. If NULL, an ordered wq is allocated and used. h](jX )}(h ``submit_wq``h]j^ )}(hjh]h submit_wq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(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:593: ./include/drm/gpu_scheduler.hhMhj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhjubjR )}(hR``timeout_wq`` workqueue to use for timeout work. If NULL, the system_wq is used. h](jX )}(h``timeout_wq``h]j^ )}(hj1h]h timeout_wq}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj/ubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhj+ubjt )}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1js hj+ubeh}(h]h ]h"]h$]h&]uh1jQ hjFhMhjubjR )}(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](jX )}(h ``num_rqs``h]j^ )}(hjjh]hnum_rqs}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjhubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjdubjt )}(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:593: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1js hjdubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hM``credit_limit`` the number of credits this scheduler can hold from all jobs h](jX )}(h``credit_limit``h]j^ )}(hjh]h credit_limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hu``hang_limit`` number of times to allow a job to hang before dropping it. This mechanism is DEPRECATED. Set it to 0. h](jX )}(h``hang_limit``h]j^ )}(hjh]h hang_limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(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:593: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h9``timeout`` timeout value in jiffies for submitted jobs. h](jX )}(h ``timeout``h]j^ )}(hjh]htimeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(hhh]h)}(h,timeout value in jiffies for submitted jobs.h]h,timeout value in jiffies for submitted jobs.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj,hMhjubjR )}(hB``score`` score atomic shared with other schedulers. May be NULL. h](jX )}(h ``score``h]j^ )}(hjPh]hscore}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjNubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjJubjt )}(hhh]h)}(h7score atomic shared with other schedulers. May be NULL.h]h7score atomic shared with other schedulers. May be NULL.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1js hjJubeh}(h]h ]h"]h$]h&]uh1jQ hjehMhjubjR )}(h@``name`` name (typically the driver's name). Used for debugging h](jX )}(h``name``h]j^ )}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(hhh]h)}(h6name (typically the driver's name). Used for debuggingh]h8name (typically the driver’s name). Used for debugging}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h-``dev`` associated device. Used for debuggingh](jX )}(h``dev``h]j^ )}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(hhh]h)}(h%associated device. Used for debuggingh]h%associated device. Used for debugging}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_sched_pending_job_iter (C struct)c.drm_sched_pending_job_iterhNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_sched_pending_job_iterh]j)}(h!struct drm_sched_pending_job_iterh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hMubj)}(hdrm_sched_pending_job_iterh]j)}(hjh]hdrm_sched_pending_job_iter}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj)hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj)hMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj)hMhjhhubj )}(hhh]h)}(h(DRM scheduler pending job iterator stateh]h(DRM scheduler pending job iterator state}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhj[hhubah}(h]h ]h"]h$]h&]uh1j hjhhhj)hMubeh}(h]h ](j! structeh"]h$]h&]j& j! j' jvj( jvj) j* j+ uh1jhhhjhNhNubj- )}(h**Definition**:: struct drm_sched_pending_job_iter { struct drm_gpu_scheduler *sched; }; **Members** ``sched`` DRM scheduler associated with pending job iteratorh](h)}(h**Definition**::h](j7 )}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj~ubh:}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjzubj )}(hKstruct drm_sched_pending_job_iter { struct drm_gpu_scheduler *sched; };h]hKstruct drm_sched_pending_job_iter { struct drm_gpu_scheduler *sched; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjzubh)}(h **Members**h]j7 )}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjzubjM )}(hhh]jR )}(h<``sched`` DRM scheduler associated with pending job iteratorh](jX )}(h ``sched``h]j^ )}(hjh]hsched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubjt )}(hhh]h)}(h2DRM scheduler associated with pending job iteratorh]h2DRM scheduler associated with pending job iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubah}(h]h ]h"]h$]h&]uh1jL hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_sched_for_each_pending_job (C macro) c.drm_sched_for_each_pending_jobhNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_sched_for_each_pending_jobh]j)}(hdrm_sched_for_each_pending_jobh]j)}(hdrm_sched_for_each_pending_jobh]j)}(hjh]hdrm_sched_for_each_pending_job}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj!hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj<hMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj<hMhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjhhhj<hMubeh}(h]h ](j! macroeh"]h$]h&]j& j! j' jUj( jUj) j* j+ uh1jhhhjhNhNubh)}(h=``drm_sched_for_each_pending_job (__job, __sched, __entity)``h]j^ )}(hj[h]h9drm_sched_for_each_pending_job (__job, __sched, __entity)}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjYubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjhhubj )}(h+Iterator for each pending job in scheduler h]h)}(h*Iterator for each pending job in schedulerh]h*Iterator for each pending job in scheduler}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhMhjqubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj- )}(hXJ**Parameters** ``__job`` Current pending job being iterated over ``__sched`` DRM scheduler to iterate over pending jobs ``__entity`` DRM scheduler entity to filter jobs, NULL indicates no filter **Description** Iterator for each pending job in scheduler, filtering on an entity, and enforcing scheduler is fully stoppedh](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjubjM )}(hhh](jR )}(h2``__job`` Current pending job being iterated over h](jX )}(h ``__job``h]j^ )}(hjh]h__job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjubjt )}(hhh]h)}(h'Current pending job being iterated overh]h'Current pending job being iterated over}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hjubjR )}(h7``__sched`` DRM scheduler to iterate over pending jobs h](jX )}(h ``__sched``h]j^ )}(hjh]h__sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjubjt )}(hhh]h)}(h*DRM scheduler to iterate over pending jobsh]h*DRM scheduler to iterate over pending jobs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM hjubjR )}(hK``__entity`` DRM scheduler entity to filter jobs, NULL indicates no filter h](jX )}(h ``__entity``h]j^ )}(hj!h]h__entity}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjubjt )}(hhh]h)}(h=DRM scheduler entity to filter jobs, NULL indicates no filterh]h=DRM scheduler entity to filter jobs, NULL indicates no filter}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hM hj7ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj6hM hjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj\h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjZubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjubh)}(hlIterator for each pending job in scheduler, filtering on an entity, and enforcing scheduler is fully stoppedh]hlIterator for each pending job in scheduler, filtering on an entity, and enforcing scheduler is fully stopped}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:593: ./include/drm/gpu_scheduler.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_sched_tdr_queue_imm (C function)c.drm_sched_tdr_queue_immhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_sched_tdr_queue_immh]j)}(hdrm_sched_tdr_queue_immh]hdrm_sched_tdr_queue_imm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubj>)}(h!(struct drm_gpu_scheduler *sched)h]jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_sched_tdr_queue_immasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hschedh]hsched}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(hhh]j)}(hhh]j)}(h%immediately start job timeout handlerh]h)}(hjfh]h%immediately start job timeout handler}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjdubah}(h]h ]h"]h$]h&]uh1jhjahhhjuhNubah}(h]h ]h"]h$]h&]jjuh1j hjuhKhj^hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjubjM )}(hhh]jR )}(h```struct drm_gpu_scheduler *sched`` scheduler for which the timeout handling should be started. h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjubjt )}(hhh]h)}(h;scheduler for which the timeout handling should be started.h]h;scheduler for which the timeout handling should be started.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_sched_fault (C function)c.drm_sched_faulthNtauh1jhjhhhNhNubj)}(hhh](j)}(h6void drm_sched_fault (struct drm_gpu_scheduler *sched)h]j)}(h5void drm_sched_fault(struct drm_gpu_scheduler *sched)h](j)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjBhKubj)}(hdrm_sched_faulth]j)}(hdrm_sched_faulth]hdrm_sched_fault}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jhj0hhhjBhKubj>)}(h!(struct drm_gpu_scheduler *sched)h]jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jWsbc.drm_sched_faultasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjiubah}(h]h ]h"]h$]h&]jjuh1j=hj0hhhjBhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjBhKubah}(h]j'ah ](jjeh"]h$]h&]j j )j huh1jhjBhKhj)hhubj )}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjhhubah}(h]h ]h"]h$]h&]uh1j hj)hhhjBhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjubjM )}(hhh]jR )}(h\``struct drm_gpu_scheduler *sched`` scheduler where the timeout handling should be started. h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hj5h]hstruct drm_gpu_scheduler *sched}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj3ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKhj/ubjt )}(hhh]h)}(h7scheduler where the timeout handling should be started.h]h7scheduler where the timeout handling should be started.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKhjKubah}(h]h ]h"]h$]h&]uh1js hj/ubeh}(h]h ]h"]h$]h&]uh1jQ hjJhKhj,ubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjnubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drm_sched_suspend_timeout (C function)c.drm_sched_suspend_timeouthNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_sched_suspend_timeouth]j)}(hdrm_sched_suspend_timeouth]hdrm_sched_suspend_timeout}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubj>)}(h!(struct drm_gpu_scheduler *sched)h]jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj.modnameN classnameNjj)}j]j)}j}jsbc.drm_sched_suspend_timeoutasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hschedh]hsched}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhKhjhhubj )}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjubjM )}(hhh]jR )}(hX``struct drm_gpu_scheduler *sched`` scheduler instance for which to suspend the timeout h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjubjt )}(hhh]h)}(h3scheduler instance for which to suspend the timeouth]h3scheduler instance for which to suspend the timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjubh)}(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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjubh)}(hReturns the timeout remainingh]hReturns the timeout remaining}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_sched_resume_timeout (C function)c.drm_sched_resume_timeouthNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhjohMubj)}(hdrm_sched_resume_timeouth]j)}(hdrm_sched_resume_timeouth]hdrm_sched_resume_timeout}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj]hhhjohMubj>)}(h:(struct drm_gpu_scheduler *sched, unsigned long remaining)h](jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_sched_resume_timeoutasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned long remainingh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h remainingh]h remaining}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hj]hhhjohMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjohMubah}(h]jTah ](jjeh"]h$]h&]j j )j huh1jhjohMhjVhhubj )}(hhh]h)}(hResume scheduler job timeouth]hResume scheduler job timeout}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjohhubah}(h]h ]h"]h$]h&]uh1j hjVhhhjohMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjM )}(hhh](jR )}(hW``struct drm_gpu_scheduler *sched`` scheduler instance for which to resume the timeout h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h.``unsigned long remaining`` remaining timeout h](jX )}(h``unsigned long remaining``h]j^ )}(hjh]hunsigned long remaining}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(hhh]h)}(hremaining timeouth]hremaining timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj%ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(h2Resume the delayed work timeout for the scheduler.h]h2Resume the delayed work timeout for the scheduler.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_sched_stop (C function)c.drm_sched_stophNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMyubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjzhMyubj)}(hdrm_sched_stoph]j)}(hdrm_sched_stoph]hdrm_sched_stop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhhjzhMyubj>)}(h<(struct drm_gpu_scheduler *sched, struct drm_sched_job *bad)h](jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_sched_stopasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_sched_job *badh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj;modnameN classnameNjj)}j]jc.drm_sched_stopasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbadh]hbad}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhhjzhMyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjzhMyubah}(h]j_ah ](jjeh"]h$]h&]j j )j huh1jhjzhMyhjahhubj )}(hhh]h)}(hstop the schedulerh]hstop the scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMyhjhhubah}(h]h ]h"]h$]h&]uh1j hjahhhjzhMyubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM}hjubjM )}(hhh](jR )}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM{hjubjt )}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM{hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM{hjubjR )}(h<``struct drm_sched_job *bad`` job which caused the time out h](jX )}(h``struct drm_sched_job *bad``h]j^ )}(hjh]hstruct drm_sched_job *bad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM|hjubjt )}(hhh]h)}(hjob which caused the time outh]hjob which caused the time out}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM|hj,ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj+hM|hjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjOubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM}hjubh)}(h**Note**h]j7 )}(hjxh]hNote}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjvubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hThis function is typically used for reset recovery (see the docu of drm_sched_backend_ops.timedout_job() for details). Do not call it for scheduler 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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hXAs it's only used for reset recovery, drivers must not call this function in their :c:type:`struct drm_sched_backend_ops `.timedout_job callback when they skip a reset using :c:type:`enum drm_gpu_sched_stat `.DRM_GPU_SCHED_STAT_NO_HANG.h](hUAs it’s only used for reset recovery, drivers must not call this function in their }(hjhhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j^ )}(hjh]hstruct drm_sched_backend_ops}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_backend_opsuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh4.timedout_job callback when they skip a reset using }(hjhhhNhNubh)}(h6:c:type:`enum drm_gpu_sched_stat `h]j^ )}(hjh]henum drm_gpu_sched_stat}(hjhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpu_sched_statuh1hhjhMhjubh.DRM_GPU_SCHED_STAT_NO_HANG.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_sched_start (C function)c.drm_sched_starthNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj/hMubj)}(hdrm_sched_starth]j)}(hdrm_sched_starth]hdrm_sched_start}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj/hMubj>)}(h,(struct drm_gpu_scheduler *sched, int errno)h](jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj~modnameN classnameNjj)}j]j)}j}jDsbc.drm_sched_startasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjVubjD)}(h int errnoh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(herrnoh]herrno}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjVubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj/hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj/hMhjhhubj )}(hhh]h)}(hrecover jobs after a reseth]hrecover jobs after a reset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhj/hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j.j( j.j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj6ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj2ubjM )}(hhh](jR )}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hjWh]hstruct drm_gpu_scheduler *sched}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjUubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjQubjt )}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1js hjQubeh}(h]h ]h"]h$]h&]uh1jQ hjlhMhjNubjR )}(h1``int errno`` error to set on the pending fences h](jX )}(h ``int errno``h]j^ )}(hjh]h int errno}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjNubeh}(h]h ]h"]h$]h&]uh1jL hj2ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj2ubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj2ubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_backend_opsuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh4.timedout_job callback when they skip a reset using }(hjhhhNhNubh)}(h6:c:type:`enum drm_gpu_sched_stat `h]j^ )}(hjh]henum drm_gpu_sched_stat}(hj hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_gpu_sched_statuh1hhjhMhjubh.DRM_GPU_SCHED_STAT_NO_HANG.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$drm_sched_resubmit_jobs (C function)c.drm_sched_resubmit_jobshNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjshMubj)}(hdrm_sched_resubmit_jobsh]j)}(hdrm_sched_resubmit_jobsh]hdrm_sched_resubmit_jobs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjahhhjshMubj>)}(h!(struct drm_gpu_scheduler *sched)h]jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_sched_resubmit_jobsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjahhhjshMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhjshMubah}(h]jXah ](jjeh"]h$]h&]j j )j huh1jhjshMhjZhhubj )}(hhh]h)}(h"Deprecated, don't use in new code!h]h$Deprecated, don’t use in new code!}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj"hhubah}(h]h ]h"]h$]h&]uh1j hjZhhhjshMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j=j( j=j) j* j+ uh1jhhhjhNhNubj- )}(hX**Parameters** ``struct drm_gpu_scheduler *sched`` scheduler instance **Description** Re-submitting jobs was a concept AMD came up as cheap way to implement recovery after a job timeout. This turned out to be not working very well. First of all there are many problem with the dma_fence implementation and requirements. Either the implementation is risking deadlocks with core memory management or violating documented implementation details of the dma_fence object. Drivers can still save and restore their state for recovery operations, but we shouldn't make this a general scheduler feature around the dma_fence interface. The suggested driver-side replacement is to use drm_sched_for_each_pending_job() after stopping the scheduler and implement their own recovery operations.h](h)}(h**Parameters**h]j7 )}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjEubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjAubjM )}(hhh]jR )}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hjfh]hstruct drm_gpu_scheduler *sched}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjdubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj`ubjt )}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1js hj`ubeh}(h]h ]h"]h$]h&]uh1jQ hj{hMhj]ubah}(h]h ]h"]h$]h&]uh1jL hjAubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjAubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjAubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjAubh)}(hX9Drivers can still save and restore their state for recovery operations, but we shouldn't make this a general scheduler feature around the dma_fence interface. The suggested driver-side replacement is to use drm_sched_for_each_pending_job() after stopping the scheduler and implement their own recovery operations.h]hX;Drivers can still save and restore their state for recovery operations, but we shouldn’t make this a general scheduler feature around the dma_fence interface. The suggested driver-side replacement is to use drm_sched_for_each_pending_job() after stopping the scheduler and implement their own recovery operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_sched_job_init (C function)c.drm_sched_job_inithNtauh1jhjhhhNhNubj)}(hhh](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]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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM9ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM9ubj)}(hdrm_sched_job_inith]j)}(hdrm_sched_job_inith]hdrm_sched_job_init}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM9ubj>)}(hn(struct drm_sched_job *job, struct drm_sched_entity *entity, u32 credits, void *owner, uint64_t drm_client_id)h](jD)}(hstruct drm_sched_job *jobh](j)}(hj? h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjamodnameN classnameNjj)}j]j)}j}j'sbc.drm_sched_job_initasbuh1hhj=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj9ubjD)}(hstruct drm_sched_entity *entityh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j{c.drm_sched_job_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentityh]hentity}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj9ubjD)}(h u32 creditsh](h)}(hhh]j)}(hu32h]hu32}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj(modnameN classnameNjj)}j]j{c.drm_sched_job_initasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcreditsh]hcredits}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj9ubjD)}(h void *ownerh](j)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hownerh]howner}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj9ubjD)}(huint64_t drm_client_idh](h)}(hhh]j)}(huint64_th]huint64_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j{c.drm_sched_job_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h drm_client_idh]h drm_client_id}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj9ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM9ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM9hjhhubj )}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chM9hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM9ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj&ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM=hj"ubjM )}(hhh](jR )}(h4``struct drm_sched_job *job`` scheduler job to init h](jX )}(h``struct drm_sched_job *job``h]j^ )}(hjGh]hstruct drm_sched_job *job}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjEubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM:hjAubjt )}(hhh]h)}(hscheduler job to inith]hscheduler job to init}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hM:hj]ubah}(h]h ]h"]h$]h&]uh1js hjAubeh}(h]h ]h"]h$]h&]uh1jQ hj\hM:hj>ubjR )}(h<``struct drm_sched_entity *entity`` scheduler entity to use h](jX )}(h#``struct drm_sched_entity *entity``h]j^ )}(hjh]hstruct drm_sched_entity *entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj~ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM;hjzubjt )}(hhh]h)}(hscheduler entity to useh]hscheduler entity to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1js hjzubeh}(h]h ]h"]h$]h&]uh1jQ hjhM;hj>ubjR )}(hZ``u32 credits`` the number of credits this job contributes to the schedulers credit limit h](jX )}(h``u32 credits``h]j^ )}(hjh]h u32 credits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM=hjubjt )}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chM<hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM=hj>ubjR )}(h(``void *owner`` job owner for debugging h](jX )}(h``void *owner``h]j^ )}(hjh]h void *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM>hjubjt )}(hhh]h)}(hjob owner for debuggingh]hjob owner for debugging}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM>hj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM>hj>ubjR )}(hn``uint64_t drm_client_id`` :c:type:`struct drm_file `.client_id of the owner (used by trace events) h](jX )}(h``uint64_t drm_client_id``h]j^ )}(hj,h]huint64_t drm_client_id}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj*ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM@hj&ubjt )}(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^ )}(hjKh]hstruct drm_file}(hjMhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjIubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_fileuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM?hjEubh..client_id of the owner (used by trace events)}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhhM?hjBubah}(h]h ]h"]h$]h&]uh1js hj&ubeh}(h]h ]h"]h$]h&]uh1jQ hjAhM@hj>ubeh}(h]h ]h"]h$]h&]uh1jL hj"ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMBhj"ubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMAhj"ubh)}(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 }(hjhhhNhNubj7 )}(h**job**h]hjob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh1 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:596: ./drivers/gpu/drm/scheduler/sched_main.chMDhj"ubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMGhj"ubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_scheduh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMKhjubh] to signal when the hardware has died, which can mean that there’s no valid runqueue for a }(hjhhhNhNubj7 )}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubhn. This function returns -ENOENT in this case (which probably should be -EIO as a more meanigful return value).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMKhj"ubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMPhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_sched_job_arm (C function)c.drm_sched_job_armhNtauh1jhjhhhNhNubj)}(hhh](j)}(h2void drm_sched_job_arm (struct drm_sched_job *job)h]j)}(h1void drm_sched_job_arm(struct drm_sched_job *job)h](j)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMtubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj]hMtubj)}(hdrm_sched_job_armh]j)}(hdrm_sched_job_armh]hdrm_sched_job_arm}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jhjKhhhj]hMtubj>)}(h(struct drm_sched_job *job)h]jD)}(hstruct drm_sched_job *jobh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jrsbc.drm_sched_job_armasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjKhhhj]hMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhj]hMtubah}(h]jBah ](jjeh"]h$]h&]j j )j huh1jhj]hMthjDhhubj )}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMthj hhubah}(h]h ]h"]h$]h&]uh1j hjDhhhj]hMtubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j'j( j'j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj/ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMxhj+ubjM )}(hhh]jR )}(h3``struct drm_sched_job *job`` scheduler job to arm h](jX )}(h``struct drm_sched_job *job``h]j^ )}(hjPh]hstruct drm_sched_job *job}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjNubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMuhjJubjt )}(hhh]h)}(hscheduler job to armh]hscheduler job to arm}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMuhjfubah}(h]h ]h"]h$]h&]uh1js hjJubeh}(h]h ]h"]h$]h&]uh1jQ hjehMuhjGubah}(h]h ]h"]h$]h&]uh1jL hj+ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMwhj+ubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_jobuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMvhjubh of }(hjhhhNhNubj7 )}(h**job**h]hjob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh, 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&]uh1hhjhMvhj+ubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chM{hj+ubh)}(hZOnce this function was called, you *must* submit **job** with drm_sched_entity_push_job().h](h#Once this function was called, you }(hjhhhNhNubj)}(h*must*h]hmust}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh submit }(hjhhhNhNubj7 )}(h**job**h]hjob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh" with drm_sched_entity_push_job().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM~hj+ubh)}(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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)drm_sched_job_add_dependency (C function)c.drm_sched_job_add_dependencyhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjdhMubj)}(hdrm_sched_job_add_dependencyh]j)}(hdrm_sched_job_add_dependencyh]hdrm_sched_job_add_dependency}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jhjRhhhjdhMubj>)}(h4(struct drm_sched_job *job, struct dma_fence *fence)h](jD)}(hstruct drm_sched_job *jobh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jysbc.drm_sched_job_add_dependencyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct dma_fence *fenceh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj%modnameN classnameNjj)}j]jc.drm_sched_job_add_dependencyasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfenceh]hfence}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjRhhhjdhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjdhMubah}(h]jIah ](jjeh"]h$]h&]j j )j huh1jhjdhMhjKhhubj )}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjKhhhjdhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjM )}(hhh](jR )}(hG``struct drm_sched_job *job`` scheduler job to add the dependencies to h](jX )}(h``struct drm_sched_job *job``h]j^ )}(hjh]hstruct drm_sched_job *job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hN``struct dma_fence *fence`` the dma_fence to add to the list of dependencies. h](jX )}(h``struct dma_fence *fence``h]j^ )}(hjh]hstruct dma_fence *fence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(hhh]h)}(h1the dma_fence to add to the list of dependencies.h]h1the dma_fence to add to the list of dependencies.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj9ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hDNote that **fence** is consumed in both the success and error cases.h](h Note that }(hjQhhhNhNubj7 )}(h **fence**h]hfence}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjQubh1 is consumed in both the success and error cases.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(h **Return**h]j7 )}(hjth]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjrubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j1drm_sched_job_add_syncobj_dependency (C function)&c.drm_sched_job_add_syncobj_dependencyhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h$drm_sched_job_add_syncobj_dependencyh]j)}(h$drm_sched_job_add_syncobj_dependencyh]h$drm_sched_job_add_syncobj_dependency}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(hI(struct drm_sched_job *job, struct drm_file *file, u32 handle, u32 point)h](jD)}(hstruct drm_sched_job *jobh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsb&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjobh]hjob}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hstruct drm_file *fileh](j)}(hj? h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j0&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u32 handleh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j0&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hhandleh]hhandle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h u32 pointh](h)}(hhh]j)}(hu32h]hu32}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj%modnameN classnameNjj)}j]j0&c.drm_sched_job_add_syncobj_dependencyasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpointh]hpoint}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(h*adds a syncobj's fence as a job dependencyh]h,adds a syncobj’s fence as a job dependency}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjvhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjM )}(hhh](jR )}(hG``struct drm_sched_job *job`` scheduler job to add the dependencies to h](jX )}(h``struct drm_sched_job *job``h]j^ )}(hjh]hstruct drm_sched_job *job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h3``struct drm_file *file`` drm file private pointer h](jX )}(h``struct drm_file *file``h]j^ )}(hjh]hstruct drm_file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(hhh]h)}(hdrm file private pointerh]hdrm file private pointer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(h(``u32 handle`` syncobj handle to lookup h](jX )}(h``u32 handle``h]j^ )}(hj,h]h u32 handle}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj*ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj&ubjt )}(hhh]h)}(hsyncobj handle to lookuph]hsyncobj handle to lookup}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1js hj&ubeh}(h]h ]h"]h$]h&]uh1jQ hjAhMhjubjR )}(h``u32 point`` timeline point h](jX )}(h ``u32 point``h]j^ )}(hjeh]h u32 point}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjcubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj_ubjt )}(hhh]h)}(htimeline pointh]htimeline point}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1js hj_ubeh}(h]h ]h"]h$]h&]uh1jQ hjzhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./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 }(hjhhhNhNubj7 )}(h**job**h]hjob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j0drm_sched_job_add_resv_dependencies (C function)%c.drm_sched_job_add_resv_dependencieshNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj,hMubj)}(h#drm_sched_job_add_resv_dependenciesh]j)}(h#drm_sched_job_add_resv_dependenciesh]h#drm_sched_job_add_resv_dependencies}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj,hMubj>)}(hM(struct drm_sched_job *job, struct dma_resv *resv, enum dma_resv_usage usage)h](jD)}(hstruct drm_sched_job *jobh](j)}(hj? h]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj{modnameN classnameNjj)}j]j)}j}jAsb%c.drm_sched_job_add_resv_dependenciesasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjSubjD)}(hstruct dma_resv *resvh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdma_resvh]hdma_resv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j%c.drm_sched_job_add_resv_dependenciesasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hresvh]hresv}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjSubjD)}(henum dma_resv_usage usageh](j)}(hjh]henum}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(hdma_resv_usageh]hdma_resv_usage}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj]modnameN classnameNjj)}j]j%c.drm_sched_job_add_resv_dependenciesasbuh1hhj9ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(husageh]husage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjSubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj,hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj,hMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj,hMhjhhubj )}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhj,hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjM )}(hhh](jR )}(hG``struct drm_sched_job *job`` scheduler job to add the dependencies to h](jX )}(h``struct drm_sched_job *job``h]j^ )}(hjh]hstruct drm_sched_job *job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hE``struct dma_resv *resv`` the dma_resv object to get the fences from h](jX )}(h``struct dma_resv *resv``h]j^ )}(hj+h]hstruct dma_resv *resv}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj)ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj%ubjt )}(hhh]h)}(h*the dma_resv object to get the fences fromh]h*the dma_resv object to get the fences from}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1js hj%ubeh}(h]h ]h"]h$]h&]uh1jQ hj@hMhjubjR )}(hM``enum dma_resv_usage usage`` the dma_resv_usage to use to filter the fences h](jX )}(h``enum dma_resv_usage usage``h]j^ )}(hjdh]henum dma_resv_usage usage}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjbubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj^ubjt )}(hhh]h)}(h.the dma_resv_usage to use to filter the fencesh]h.the dma_resv_usage to use to filter the fences}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1js hj^ubeh}(h]h ]h"]h$]h&]uh1jQ hjyhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./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 }(hjhhhNhNubj7 )}(h**resv**h]hresv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh to }(hjhhhNhNubj7 )}(h**job**h]hjob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh. Must be called with the }(hjhhhNhNubj7 )}(h**resv**h]hresv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh lock held.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j4drm_sched_job_add_implicit_dependencies (C function))c.drm_sched_job_add_implicit_dependencieshNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhjOhMubj)}(h'drm_sched_job_add_implicit_dependenciesh]j)}(h'drm_sched_job_add_implicit_dependenciesh]h'drm_sched_job_add_implicit_dependencies}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj=hhhjOhMubj>)}(hC(struct drm_sched_job *job, struct drm_gem_object *obj, bool write)h](jD)}(hstruct drm_sched_job *jobh](j)}(hj? h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jdsb)c.drm_sched_job_add_implicit_dependenciesasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjvubjD)}(hstruct drm_gem_object *objh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_objecth]hdrm_gem_object}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)c.drm_sched_job_add_implicit_dependenciesasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hobjh]hobj}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjvubjD)}(h bool writeh](j)}(hj=2h]hbool}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hwriteh]hwrite}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjvubeh}(h]h ]h"]h$]h&]jjuh1j=hj=hhhjOhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhMubah}(h]j4ah ](jjeh"]h$]h&]j j )j huh1jhjOhMhj6hhubj )}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj6hhhjOhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjM )}(hhh](jR )}(hG``struct drm_sched_job *job`` scheduler job to add the dependencies to h](jX )}(h``struct drm_sched_job *job``h]j^ )}(hjh]hstruct drm_sched_job *job}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(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&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hL``struct drm_gem_object *obj`` the gem object to add new dependencies from. h](jX )}(h``struct drm_gem_object *obj``h]j^ )}(hjh]hstruct drm_gem_object *obj}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(hhh]h)}(h,the gem object to add new dependencies from.h]h,the gem object to add new dependencies from.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hj4hMhjubjR )}(hy``bool write`` whether the job might write the object (so we need to depend on shared fences in the reservation object). h](jX )}(h``bool write``h]j^ )}(hjXh]h bool write}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjVubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM hjRubjt )}(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).}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjnubah}(h]h ]h"]h$]h&]uh1js hjRubeh}(h]h ]h"]h$]h&]uh1jQ hjmhM hjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM hjubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chM hjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)drm_sched_job_has_dependency (C function)c.drm_sched_job_has_dependencyhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubj)}(hdrm_sched_job_has_dependencyh]j)}(hdrm_sched_job_has_dependencyh]hdrm_sched_job_has_dependency}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj hMubj>)}(h4(struct drm_sched_job *job, struct dma_fence *fence)h](jD)}(hstruct drm_sched_job *jobh](j)}(hj? h]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj\modnameN classnameNjj)}j]j)}j}j"sbc.drm_sched_job_has_dependencyasbuh1hhj8ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj4ubjD)}(hstruct dma_fence *fenceh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h dma_fenceh]h dma_fence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jvc.drm_sched_job_has_dependencyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfenceh]hfence}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj4ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj hMhjhhubj )}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj,hhubah}(h]h ]h"]h$]h&]uh1j hjhhhj hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jGj( jGj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjOubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM hjKubjM )}(hhh](jR )}(h5``struct drm_sched_job *job`` scheduler job to check h](jX )}(h``struct drm_sched_job *job``h]j^ )}(hjph]hstruct drm_sched_job *job}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjnubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjjubjt )}(hhh]h)}(hscheduler job to checkh]hscheduler job to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjgubjR )}(h.``struct dma_fence *fence`` fence to look for h](jX )}(h``struct dma_fence *fence``h]j^ )}(hjh]hstruct dma_fence *fence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(hhh]h)}(hfence to look forh]hfence to look for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjgubeh}(h]h ]h"]h$]h&]uh1jL hjKubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM hjKubh)}(hMTrue if **fence** is found within the job's dependencies, or otherwise false.h](hTrue if }(hjhhhNhNubj7 )}(h **fence**h]hfence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh> 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:596: ./drivers/gpu/drm/scheduler/sched_main.chM hjKubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_sched_job_cleanup (C function)c.drm_sched_job_cleanuphNtauh1jhjhhhNhNubj)}(hhh](j)}(h6void drm_sched_job_cleanup (struct drm_sched_job *job)h]j)}(h5void drm_sched_job_cleanup(struct drm_sched_job *job)h](j)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM3ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhjIhM3ubj)}(hdrm_sched_job_cleanuph]j)}(hdrm_sched_job_cleanuph]hdrm_sched_job_cleanup}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jhj7hhhjIhM3ubj>)}(h(struct drm_sched_job *job)h]jD)}(hstruct drm_sched_job *jobh](j)}(hj? h]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}j^sbc.drm_sched_job_cleanupasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjpubah}(h]h ]h"]h$]h&]jjuh1j=hj7hhhjIhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhjIhM3ubah}(h]j.ah ](jjeh"]h$]h&]j j )j huh1jhjIhM3hj0hhubj )}(hhh]h)}(h clean up scheduler job resourcesh]h clean up scheduler job resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM3hjhhubah}(h]h ]h"]h$]h&]uh1j hj0hhhjIhM3ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM7hjubjM )}(hhh]jR )}(h8``struct drm_sched_job *job`` scheduler job to clean up h](jX )}(h``struct drm_sched_job *job``h]j^ )}(hj<h]hstruct drm_sched_job *job}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj:ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM4hj6ubjt )}(hhh]h)}(hscheduler job to clean uph]hscheduler job to clean up}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM4hjRubah}(h]h ]h"]h$]h&]uh1js hj6ubeh}(h]h ]h"]h$]h&]uh1jQ hjQhM4hj3ubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjuubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM6hjubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_backend_opsuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM?hjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM?hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_sched_pick_best (C function)c.drm_sched_pick_besthNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hj? h]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj=hMubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjQmodnameN classnameNjj)}j]j)}j}drm_sched_pick_bestsbc.drm_sched_pick_bestasbuh1hhj,hhhj=hMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj=hMubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj=hMubj)}(hdrm_sched_pick_besth]j)}(hjmh]hdrm_sched_pick_best}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj,hhhj=hMubj>)}(hD(struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h](jD)}(h%struct drm_gpu_scheduler **sched_listh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jkc.drm_sched_pick_bestasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h sched_listh]h sched_list}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned int num_sched_listh](j)}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hnum_sched_listh]hnum_sched_list}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hj,hhhj=hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj=hMubah}(h]j#ah ](jjeh"]h$]h&]j j )j huh1jhj=hMhj%hhubj )}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj%hhhj=hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjM )}(hhh](jR )}(hE``struct drm_gpu_scheduler **sched_list`` list of drm_gpu_schedulers h](jX )}(h)``struct drm_gpu_scheduler **sched_list``h]j^ )}(hjh]h%struct drm_gpu_scheduler **sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(hhh]h)}(hlist of drm_gpu_schedulersh]hlist of drm_gpu_schedulers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubjR )}(hO``unsigned int num_sched_list`` number of drm_gpu_schedulers in the sched_list h](jX )}(h``unsigned int num_sched_list``h]j^ )}(hj3h]hunsigned int num_sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(hhh]h)}(h.number of drm_gpu_schedulers in the sched_listh]h.number of drm_gpu_schedulers in the sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj>h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj<ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./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}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_sched_init (C function)c.drm_sched_inithNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMFubj)}(hdrm_sched_inith]j)}(hdrm_sched_inith]hdrm_sched_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMFubj>)}(hI(struct drm_gpu_scheduler *sched, const struct drm_sched_init_args *args)h](jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_sched_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hschedh]hsched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h&const struct drm_sched_init_args *argsh](j)}(hjJh]hconst}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hj? h]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(hhh]j)}(hdrm_sched_init_argsh]hdrm_sched_init_args}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmmodnameN classnameNjj)}j]jc.drm_sched_initasbuh1hhj.ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhjhMFubah}(h]jvah ](jjeh"]h$]h&]j j )j huh1jhjhMFhjxhhubj )}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMFhjhhubah}(h]h ]h"]h$]h&]uh1j hjxhhhjhMFubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMJhjubjM )}(hhh](jR )}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMHhj ubjt )}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMHhj%ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj$hMHhjubjR )}(hN``const struct drm_sched_init_args *args`` scheduler initialization arguments h](jX )}(h*``const struct drm_sched_init_args *args``h]j^ )}(hjHh]h&const struct drm_sched_init_args *args}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjFubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMIhjBubjt )}(hhh]h)}(h"scheduler initialization argumentsh]h"scheduler initialization arguments}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMIhj^ubah}(h]h ]h"]h$]h&]uh1js hjBubeh}(h]h ]h"]h$]h&]uh1jQ hj]hMIhjubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMKhjubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_sched_fini (C function)c.drm_sched_finihNtauh1jhjhhhNhNubj)}(hhh](j)}(h5void drm_sched_fini (struct drm_gpu_scheduler *sched)h]j)}(h4void drm_sched_fini(struct drm_gpu_scheduler *sched)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_sched_finih]j)}(hdrm_sched_finih]hdrm_sched_fini}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h!(struct drm_gpu_scheduler *sched)h]jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj%modnameN classnameNjj)}j]j)}j}jsbc.drm_sched_finiasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hschedh]hsched}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjM )}(hhh]jR )}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubjt )}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMhjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(h'Tears down and cleans up the scheduler.h]h'Tears down and cleans up the scheduler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./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 }(hj)hhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j^ )}(hj3h]hstruct drm_sched_backend_ops}(hj5hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hj1ubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_backend_opsuh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj)ubh .run_job. If }(hj)hhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j^ )}(hjWh]hstruct drm_sched_backend_ops}(hjYhhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjUubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_backend_opsuh1hhjPhMhj)ubhc.cancel_job is implemented, all jobs will be canceled through it and afterwards cleaned up through }(hj)hhhNhNubh)}(h>:c:type:`struct drm_sched_backend_ops `h]j^ )}(hjzh]hstruct drm_sched_backend_ops}(hj|hhhNhNubah}(h]h ](j j! c-typeeh"]h$]h&]uh1j] hjxubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j drm_sched_backend_opsuh1hhjPhMhj)ubh?.free_job. If cancel_job is not implemented, memory could leak.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_sched_increase_karma (C function)c.drm_sched_increase_karmahNtauh1jhjhhhNhNubj)}(hhh](j)}(h9void drm_sched_increase_karma (struct drm_sched_job *bad)h]j)}(h8void drm_sched_increase_karma(struct drm_sched_job *bad)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_sched_increase_karmah]j)}(hdrm_sched_increase_karmah]hdrm_sched_increase_karma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubj>)}(h(struct drm_sched_job *bad)h]jD)}(hstruct drm_sched_job *badh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}jsbc.drm_sched_increase_karmaasbuh1hhjubj)}(h h]h }(hj< hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjJ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbadh]hbad}(hjW hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhMhjhhubj )}(hhh]h)}(hUpdate sched_entity guilty flagh]hUpdate sched_entity guilty flag}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj~ hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj ubjM )}(hhh]jR )}(h9``struct drm_sched_job *bad`` The job guilty of time out h](jX )}(h``struct drm_sched_job *bad``h]j^ )}(hj h]hstruct drm_sched_job *bad}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj ubjt )}(hhh]h)}(hThe job guilty of time outh]hThe job guilty of time out}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhj ubah}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj ubh)}(hIncrement on every hang caused by the 'bad' job. If this exceeds the hang limit of the scheduler then the respective sched entity is marked guilty and jobs from it will not be scheduled furtherh]hIncrement on every hang caused by the ‘bad’ job. If this exceeds the hang limit of the scheduler then the respective sched entity is marked guilty and jobs from it will not be scheduled further}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_sched_wqueue_ready (C function)c.drm_sched_wqueue_readyhNtauh1jhjhhhNhNubj)}(hhh](j)}(h=bool drm_sched_wqueue_ready (struct drm_gpu_scheduler *sched)h]j)}(h hhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMubj)}(h h]h }(hjP hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj> hhhjO hMubj)}(hdrm_sched_wqueue_readyh]j)}(hdrm_sched_wqueue_readyh]hdrm_sched_wqueue_ready}(hjb hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj> hhhjO hMubj>)}(h!(struct drm_gpu_scheduler *sched)h]jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hj~ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}jd sbc.drm_sched_wqueue_readyasbuh1hhjz ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubj)}(hschedh]hsched}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjv ubah}(h]h ]h"]h$]h&]jjuh1j=hj> hhhjO hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj: hhhjO hMubah}(h]j5 ah ](jjeh"]h$]h&]j j )j huh1jhjO hMhj7 hhubj )}(hhh]h)}(h%Is the scheduler ready for submissionh]h%Is the scheduler ready for submission}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj hhubah}(h]h ]h"]h$]h&]uh1j hj7 hhhjO hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhjhNhNubj- )}(h~**Parameters** ``struct drm_gpu_scheduler *sched`` scheduler instance **Description** Returns true if submission is readyh](h)}(h**Parameters**h]j7 )}(hj# h]h Parameters}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj! ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj ubjM )}(hhh]jR )}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hjB h]hstruct drm_gpu_scheduler *sched}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj@ ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj< ubjt )}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW hMhjX ubah}(h]h ]h"]h$]h&]uh1js hj< ubeh}(h]h ]h"]h$]h&]uh1jQ hjW hMhj9 ubah}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hj} h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj{ ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj ubh)}(h#Returns true if submission is readyh]h#Returns true if submission is ready}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_sched_wqueue_stop (C function)c.drm_sched_wqueue_stophNtauh1jhjhhhNhNubj)}(hhh](j)}(h)}(h!(struct drm_gpu_scheduler *sched)h]jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}j sbc.drm_sched_wqueue_stopasbuh1hhj ubj)}(h h]h }(hj= hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjK hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hschedh]hsched}(hjX hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj ubah}(h]h ]h"]h$]h&]jjuh1j=hj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]j j )j huh1jhj hMhj hhubj )}(hhh]h)}(hstop scheduler submissionh]hstop scheduler submission}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj hhubah}(h]h ]h"]h$]h&]uh1j hj hhhj hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj ubjM )}(hhh]jR )}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hj h]hstruct drm_gpu_scheduler *sched}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj ubjt )}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj hMhj ubah}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj ubh)}(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:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_sched_wqueue_start (C function)c.drm_sched_wqueue_starthNtauh1jhjhhhNhNubj)}(hhh](j)}(h=void drm_sched_wqueue_start (struct drm_gpu_scheduler *sched)h]j)}(h)}(h!(struct drm_gpu_scheduler *sched)h]jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj| ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj| ubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj modnameN classnameNjj)}j]j)}j}jf sbc.drm_sched_wqueue_startasbuh1hhj| ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj| ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj| ubj)}(hschedh]hsched}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj| ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjx ubah}(h]h ]h"]h$]h&]jjuh1j=hj? hhhjQ hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj; hhhjQ hMubah}(h]j6 ah ](jjeh"]h$]h&]j j )j huh1jhjQ hMhj8 hhubj )}(hhh]h)}(hstart scheduler submissionh]hstart scheduler submission}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjhhubah}(h]h ]h"]h$]h&]uh1j hj8 hhhjQ hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(hX **Parameters** ``struct drm_gpu_scheduler *sched`` scheduler instance **Description** Restarts the scheduler after drm_sched_wqueue_stop() has stopped it. This function is not necessary for 'conventional' startup. The scheduler is fully operational after drm_sched_init() succeeded.h](h)}(h**Parameters**h]j7 )}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj#ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM!hjubjM )}(hhh]jR )}(h7``struct drm_gpu_scheduler *sched`` scheduler instance h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hjDh]hstruct drm_gpu_scheduler *sched}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjBubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhj>ubjt )}(hhh]h)}(hscheduler instanceh]hscheduler instance}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1js hj>ubeh}(h]h ]h"]h$]h&]uh1jQ hjYhMhj;ubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj}ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM hjubh)}(hDRestarts the scheduler after drm_sched_wqueue_stop() has stopped it.h]hDRestarts the scheduler after drm_sched_wqueue_stop() has stopped it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMhjubh)}(hThis function is not necessary for 'conventional' startup. The scheduler is fully operational after drm_sched_init() succeeded.h]hThis function is not necessary for ‘conventional’ startup. The scheduler is fully operational after drm_sched_init() succeeded.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_sched_is_stopped (C function)c.drm_sched_is_stoppedhNtauh1jhjhhhNhNubj)}(hhh](j)}(h;bool drm_sched_is_stopped (struct drm_gpu_scheduler *sched)h]j)}(h:bool drm_sched_is_stopped(struct drm_gpu_scheduler *sched)h](j)}(hj=2h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM.ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM.ubj)}(hdrm_sched_is_stoppedh]j)}(hdrm_sched_is_stoppedh]hdrm_sched_is_stopped}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM.ubj>)}(h!(struct drm_gpu_scheduler *sched)h]jD)}(hstruct drm_gpu_scheduler *schedh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj/modnameN classnameNjj)}j]j)}j}jsbc.drm_sched_is_stoppedasbuh1hhj ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hschedh]hsched}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM.ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM.hjhhubj )}(hhh]h)}(h#Checks whether drm_sched is stoppedh]h#Checks whether drm_sched is stopped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM.hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM.ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(hz**Parameters** ``struct drm_gpu_scheduler *sched`` DRM scheduler **Return** true if sched is stopped, false otherwiseh](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM2hjubjM )}(hhh]jR )}(h2``struct drm_gpu_scheduler *sched`` DRM scheduler h](jX )}(h#``struct drm_gpu_scheduler *sched``h]j^ )}(hjh]hstruct drm_gpu_scheduler *sched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM/hjubjt )}(hhh]h)}(h DRM schedulerh]h DRM scheduler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM/hjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM1hjubh)}(h)true if sched is stopped, false otherwiseh]h)true if sched is stopped, false otherwise}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drm_sched_job_is_signaled (C function)c.drm_sched_job_is_signaledhNtauh1jhjhhhNhNubj)}(hhh](j)}(h:bool drm_sched_job_is_signaled (struct drm_sched_job *job)h]j)}(h9bool drm_sched_job_is_signaled(struct drm_sched_job *job)h](j)}(hj=2h]hbool}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM:ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhj`hM:ubj)}(hdrm_sched_job_is_signaledh]j)}(hdrm_sched_job_is_signaledh]hdrm_sched_job_is_signaled}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jhjOhhhj`hM:ubj>)}(h(struct drm_sched_job *job)h]jD)}(hstruct drm_sched_job *jobh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jusbc.drm_sched_job_is_signaledasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjobh]hjob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjOhhhj`hM:ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhj`hM:ubah}(h]jFah ](jjeh"]h$]h&]j j )j huh1jhj`hM:hjHhhubj )}(hhh]h)}(hDRM scheduler job is signaledh]hDRM scheduler job is signaled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM:hjhhubah}(h]h ]h"]h$]h&]uh1j hjHhhhj`hM:ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j*j( j*j) j* j+ uh1jhhhjhNhNubj- )}(hXl**Parameters** ``struct drm_sched_job *job`` DRM scheduler job **Description** Determine if DRM scheduler job is signaled. DRM scheduler should be stopped to obtain a stable snapshot of state. Both parent fence (hardware fence) and finished fence (software fence) are checked to determine signaling state. **Return** true if job is signaled, false otherwiseh](h)}(h**Parameters**h]j7 )}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj2ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM>hj.ubjM )}(hhh]jR )}(h0``struct drm_sched_job *job`` DRM scheduler job h](jX )}(h``struct drm_sched_job *job``h]j^ )}(hjSh]hstruct drm_sched_job *job}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjQubah}(h]h ]h"]h$]h&]uh1jW hb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM;hjMubjt )}(hhh]h)}(hDRM scheduler jobh]hDRM scheduler job}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhM;hjiubah}(h]h ]h"]h$]h&]uh1js hjMubeh}(h]h ]h"]h$]h&]uh1jQ hjhhM;hjJubah}(h]h ]h"]h$]h&]uh1jL hj.ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM=hj.ubh)}(hDetermine if DRM scheduler job is signaled. DRM scheduler should be stopped to obtain a stable snapshot of state. Both parent fence (hardware fence) and finished fence (software fence) are checked to determine signaling state.h]hDetermine if DRM scheduler job is signaled. DRM scheduler should be stopped to obtain a stable snapshot of state. Both parent fence (hardware fence) and finished fence (software fence) are checked to determine signaling state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM<hj.ubh)}(h **Return**h]j7 )}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chM@hj.ubh)}(h(true if job is signaled, false otherwiseh]h(true if job is signaled, false otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:596: ./drivers/gpu/drm/scheduler/sched_main.chMAhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_sched_entity_init (C function)c.drm_sched_entity_inithNtauh1jhjhhhNhNubj)}(hhh](j)}(hint drm_sched_entity_init (struct drm_sched_entity *entity, enum drm_sched_priority priority, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list, atomic_t *guilty)h]j)}(hint drm_sched_entity_init(struct drm_sched_entity *entity, enum drm_sched_priority priority, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list, atomic_t *guilty)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chK^ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK^ubj)}(hdrm_sched_entity_inith]j)}(hdrm_sched_entity_inith]hdrm_sched_entity_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhK^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](jD)}(hstruct drm_sched_entity *entityh](j)}(hj? h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjWmodnameN classnameNjj)}j]j)}j}jsbc.drm_sched_entity_initasbuh1hhj3ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj/ubjD)}(h enum drm_sched_priority priorityh](j)}(hjh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_sched_priorityh]hdrm_sched_priority}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jqc.drm_sched_entity_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpriorityh]hpriority}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj/ubjD)}(h%struct drm_gpu_scheduler **sched_listh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj,modnameN classnameNjj)}j]jqc.drm_sched_entity_initasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h sched_listh]h sched_list}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj/ubjD)}(hunsigned int num_sched_listh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnum_sched_listh]hnum_sched_list}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj/ubjD)}(hatomic_t *guiltyh](h)}(hhh]j)}(hatomic_th]hatomic_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]jqc.drm_sched_entity_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hguiltyh]hguilty}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj/ubeh}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhK^ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK^ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhK^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:599: ./drivers/gpu/drm/scheduler/sched_entity.chK^hj=hhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhK^ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jXj( jXj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj`ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKbhj\ubjM )}(hhh](jR )}(h=``struct drm_sched_entity *entity`` scheduler entity to init h](jX )}(h#``struct drm_sched_entity *entity``h]j^ )}(hjh]hstruct drm_sched_entity *entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKahj{ubjt )}(hhh]h)}(hscheduler entity to inith]hscheduler entity to init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKahjubah}(h]h ]h"]h$]h&]uh1js hj{ubeh}(h]h ]h"]h$]h&]uh1jQ hjhKahjxubjR )}(h<``enum drm_sched_priority priority`` priority of the entity h](jX )}(h$``enum drm_sched_priority priority``h]j^ )}(hjh]h enum drm_sched_priority priority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKbhjubjt )}(hhh]h)}(hpriority of the entityh]hpriority of the entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKbhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKbhjxubjR )}(hq``struct drm_gpu_scheduler **sched_list`` the list of drm scheds on which jobs from this entity can be submitted h](jX )}(h)``struct drm_gpu_scheduler **sched_list``h]j^ )}(hjh]h%struct drm_gpu_scheduler **sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKdhjubjt )}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKchj ubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKdhjxubjR )}(hB``unsigned int num_sched_list`` number of drm sched in sched_list h](jX )}(h``unsigned int num_sched_list``h]j^ )}(hj-h]hunsigned int num_sched_list}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj+ubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKehj'ubjt )}(hhh]h)}(h!number of drm sched in sched_listh]h!number of drm sched in sched_list}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKehjCubah}(h]h ]h"]h$]h&]uh1js hj'ubeh}(h]h ]h"]h$]h&]uh1jQ hjBhKehjxubjR )}(hh``atomic_t *guilty`` atomic_t set to 1 when a job on this queue is found to be guilty causing a timeout h](jX )}(h``atomic_t *guilty``h]j^ )}(hjfh]hatomic_t *guilty}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjdubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKghj`ubjt )}(hhh]h)}(hRatomic_t set to 1 when a job on this queue is found to be guilty causing a timeouth]hRatomic_t set to 1 when a job on this queue is found to be guilty causing a timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKfhj|ubah}(h]h ]h"]h$]h&]uh1js hj`ubeh}(h]h ]h"]h$]h&]uh1jQ hj{hKghjxubeh}(h]h ]h"]h$]h&]uh1jL hj\ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKihj\ubh)}(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 ](j j! c-typeeh"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]refdocj refdomainj! reftypetype refexplicitrefwarnjj j sched_listuh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhhjubh7 must have at least one element to schedule the entity.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhhj\ubh)}(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 }(hjhhhNhNubj7 )}(h **priority**h]hpriority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh] later on at runtime see drm_sched_entity_set_priority(). For changing the set of schedulers }(hjhhhNhNubj7 )}(h**sched_list**h]h sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh0 at runtime see drm_sched_entity_modify_sched().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKjhj\ubh)}(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:599: ./drivers/gpu/drm/scheduler/sched_entity.chKnhj\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&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKqhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_sched_entity_modify_sched (C function)c.drm_sched_entity_modify_schedhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhjihKubj)}(hdrm_sched_entity_modify_schedh]j)}(hdrm_sched_entity_modify_schedh]hdrm_sched_entity_modify_sched}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jhjWhhhjihKubj>)}(he(struct drm_sched_entity *entity, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list)h](jD)}(hstruct drm_sched_entity *entityh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}j~sbc.drm_sched_entity_modify_schedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h%struct drm_gpu_scheduler **sched_listh](j)}(hj? h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gpu_schedulerh]hdrm_gpu_scheduler}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj*modnameN classnameNjj)}j]jc.drm_sched_entity_modify_schedasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h sched_listh]h sched_list}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(hunsigned int num_sched_listh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnum_sched_listh]hnum_sched_list}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjWhhhjihKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjihKubah}(h]jNah ](jjeh"]h$]h&]j j )j huh1jhjihKhjPhhubj )}(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:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhjhhubah}(h]h ]h"]h$]h&]uh1j hjPhhhjihKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhjubjM )}(hhh](jR )}(h=``struct drm_sched_entity *entity`` scheduler entity to init h](jX )}(h#``struct drm_sched_entity *entity``h]j^ )}(hj*h]hstruct drm_sched_entity *entity}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj(ubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhj$ubjt )}(hhh]h)}(hscheduler entity to inith]hscheduler entity to init}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hKhj@ubah}(h]h ]h"]h$]h&]uh1js hj$ubeh}(h]h ]h"]h$]h&]uh1jQ hj?hKhj!ubjR )}(ht``struct drm_gpu_scheduler **sched_list`` the list of new drm scheds which will replace existing entity->sched_list h](jX )}(h)``struct drm_gpu_scheduler **sched_list``h]j^ )}(hjch]h%struct drm_gpu_scheduler **sched_list}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjaubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhj]ubjt )}(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}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhjyubah}(h]h ]h"]h$]h&]uh1js hj]ubeh}(h]h ]h"]h$]h&]uh1jQ hjxhKhj!ubjR )}(hB``unsigned int num_sched_list`` number of drm sched in sched_list h](jX )}(h``unsigned int num_sched_list``h]j^ )}(hjh]hunsigned int num_sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhjubjt )}(hhh]h)}(h!number of drm sched in sched_listh]h!number of drm sched in sched_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhKhj!ubeh}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhjubh)}(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 }(hjhhhNhNubj7 )}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh 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 }(hjhhhNhNubj7 )}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_sched_entity_error (C function)c.drm_sched_entity_errorhNtauh1jhjhhhNhNubj)}(hhh](j)}(h)}(h!(struct drm_sched_entity *entity)h]jD)}(hstruct drm_sched_entity *entityh](j)}(hj? h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jdsbc.drm_sched_entity_errorasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjvubah}(h]h ]h"]h$]h&]jjuh1j=hj=hhhjOhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhKubah}(h]j4ah ](jjeh"]h$]h&]j j )j huh1jhjOhKhj6hhubj )}(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:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhjhhubah}(h]h ]h"]h$]h&]uh1j hj6hhhjOhKubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj!ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhjubjM )}(hhh]jR )}(h>``struct drm_sched_entity *entity`` scheduler entity to check h](jX )}(h#``struct drm_sched_entity *entity``h]j^ )}(hjBh]hstruct drm_sched_entity *entity}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj@ubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhj<ubjt )}(hhh]h)}(hscheduler entity to checkh]hscheduler entity to check}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKhjXubah}(h]h ]h"]h$]h&]uh1js hj<ubeh}(h]h ]h"]h$]h&]uh1jQ hjWhKhj9ubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj{ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_sched_entity_kill (C function)c.drm_sched_entity_killhNtauh1jhjhhhNhNubj)}(hhh](j)}(h)}(h!(struct drm_sched_entity *entity)h]jD)}(hstruct drm_sched_entity *entityh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jsbc.drm_sched_entity_killasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentityh]hentity}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhjhM)ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM)ubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhjhM)hjhhubj )}(hhh]h)}(h+kill an entity's pending jobs and remove ith]h-kill an entity’s pending jobs and remove it}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chM)hjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhjhM)ubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jj( jj) j* j+ uh1jhhhjhNhNubj- )}(hX,**Parameters** ``struct drm_sched_entity *entity`` the entity to remove **Description** Removes the entity from the scheduler's run queue and kills all pending jobs. This function should be used over drm_sched_entity_flush() if it is not desired to actually wait for all pending jobs to finish.h](h)}(h**Parameters**h]j7 )}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chM-hjubjM )}(hhh]jR )}(h9``struct drm_sched_entity *entity`` the entity to remove h](jX )}(h#``struct drm_sched_entity *entity``h]j^ )}(hjh]hstruct drm_sched_entity *entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chM*hjubjt )}(hhh]h)}(hthe entity to removeh]hthe entity to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhM*hjubah}(h]h ]h"]h$]h&]uh1jL hjubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chM,hjubh)}(hMRemoves the entity from the scheduler's run queue and kills all pending jobs.h]hORemoves the entity from the scheduler’s run queue and kills all pending jobs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chM+hjubh)}(hThis function should be used over drm_sched_entity_flush() if it is not desired to actually wait for all pending jobs to finish.h]hThis function should be used over drm_sched_entity_flush() if it is not desired to actually wait for all pending jobs to finish.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chM-hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_sched_entity_flush (C function)c.drm_sched_entity_flushhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hlongh]hlong}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMWubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhj`hMWubj)}(hdrm_sched_entity_flushh]j)}(hdrm_sched_entity_flushh]hdrm_sched_entity_flush}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jhjNhhhj`hMWubj>)}(h/(struct drm_sched_entity *entity, long timeout)h](jD)}(hstruct drm_sched_entity *entityh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jusbc.drm_sched_entity_flushasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubjD)}(h long timeouth](j)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htimeouth]htimeout}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubeh}(h]h ]h"]h$]h&]jjuh1j=hjNhhhj`hMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhj`hMWubah}(h]jEah ](jjeh"]h$]h&]j j )j huh1jhj`hMWhjGhhubj )}(hhh]h)}(hFlush a context entityh]hFlush a context entity}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMWhjDhhubah}(h]h ]h"]h$]h&]uh1j hjGhhhj`hMWubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j_j( j_j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjgubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chM[hjcubjM )}(hhh](jR )}(h5``struct drm_sched_entity *entity`` scheduler entity h](jX )}(h#``struct drm_sched_entity *entity``h]j^ )}(hjh]hstruct drm_sched_entity *entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMYhjubjt )}(hhh]h)}(hscheduler entityh]hscheduler entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMYhjubjR )}(hC``long timeout`` time to wait in for Q to become empty in jiffies. h](jX )}(h``long timeout``h]j^ )}(hjh]h long timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMZhjubjt )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMZhjubah}(h]h ]h"]h$]h&]uh1js hjubeh}(h]h ]h"]h$]h&]uh1jQ hjhMZhjubeh}(h]h ]h"]h$]h&]uh1jL hjcubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chM\hjcubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chM[hjcubh)}(hAReturns the remaining time in jiffies left from the input timeouth]hAReturns the remaining time in jiffies left from the input timeout}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chM_hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_sched_entity_fini (C function)c.drm_sched_entity_finihNtauh1jhjhhhNhNubj)}(hhh](j)}(h)}(h!(struct drm_sched_entity *entity)h]jD)}(hstruct drm_sched_entity *entityh](j)}(hj? h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjmodnameN classnameNjj)}j]j)}j}jssbc.drm_sched_entity_finiasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentityh]hentity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jChjubah}(h]h ]h"]h$]h&]jjuh1j=hjLhhhj^hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHhhhj^hMubah}(h]jCah ](jjeh"]h$]h&]j j )j huh1jhj^hMhjEhhubj )}(hhh]h)}(hDestroy a context entityh]hDestroy a context entity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj hhubah}(h]h ]h"]h$]h&]uh1j hjEhhhj^hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j(j( j(j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj0ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj,ubjM )}(hhh]jR )}(h5``struct drm_sched_entity *entity`` scheduler entity h](jX )}(h#``struct drm_sched_entity *entity``h]j^ )}(hjQh]hstruct drm_sched_entity *entity}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j] hjOubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhjKubjt )}(hhh]h)}(hscheduler entityh]hscheduler entity}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1js hjKubeh}(h]h ]h"]h$]h&]uh1jQ hjfhMhjHubah}(h]h ]h"]h$]h&]uh1jL hj,ubh)}(h**Description**h]j7 )}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj,ubh)}(hMCleanups up **entity** which has been initialized by drm_sched_entity_init().h](h Cleanups up }(hjhhhNhNubj7 )}(h **entity**h]hentity}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjubh7 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:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj,ubh)}(hIf there are potentially job still in flight or getting newly queued drm_sched_entity_flush() must be called first. This function then goes over the entity and signals all jobs with an error code if the process was killed.h]hIf there are potentially job still in flight or getting newly queued drm_sched_entity_flush() must be called first. This function then goes over the entity and signals all jobs with an error code if the process was killed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%drm_sched_entity_destroy (C function)c.drm_sched_entity_destroyhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubj)}(hdrm_sched_entity_destroyh]j)}(hdrm_sched_entity_destroyh]hdrm_sched_entity_destroy}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj hMubj>)}(h!(struct drm_sched_entity *entity)h]jD)}(hstruct drm_sched_entity *entityh](j)}(hj? h]hstruct}(hj/ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubj)}(h h]h }(hj< hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hjM hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjO modnameN classnameNjj)}j]j)}j}j sbc.drm_sched_entity_destroyasbuh1hhj+ ubj)}(h h]h }(hjm hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubj)}(hjh]h*}(hj{ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubj)}(hentityh]hentity}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj' ubah}(h]h ]h"]h$]h&]jjuh1j=hjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]j j )j huh1jhj hMhjhhubj )}(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:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj hhubah}(h]h ]h"]h$]h&]uh1j hjhhhj hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j j( j j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj ubjM )}(hhh]jR )}(h5``struct drm_sched_entity *entity`` scheduler entity h](jX )}(h#``struct drm_sched_entity *entity``h]j^ )}(hj h]hstruct drm_sched_entity *entity}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj ubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj ubjt )}(hhh]h)}(hscheduler entityh]hscheduler entity}(hj !hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj !ubah}(h]h ]h"]h$]h&]uh1js hj ubeh}(h]h ]h"]h$]h&]uh1jQ hj!hMhj ubah}(h]h ]h"]h$]h&]uh1jL hj ubh)}(h**Description**h]j7 )}(hj.!h]h Description}(hj0!hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj,!ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj 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.}(hjD!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_sched_entity_set_priority (C function)c.drm_sched_entity_set_priorityhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hjs!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo!hhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo!hhhj!hMubj)}(hdrm_sched_entity_set_priorityh]j)}(hdrm_sched_entity_set_priorityh]hdrm_sched_entity_set_priority}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjo!hhhj!hMubj>)}(hC(struct drm_sched_entity *entity, enum drm_sched_priority priority)h](jD)}(hstruct drm_sched_entity *entityh](j)}(hj? h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hhh]j)}(hdrm_sched_entityh]hdrm_sched_entity}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj!modnameN classnameNjj)}j]j)}j}j!sbc.drm_sched_entity_set_priorityasbuh1hhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hentityh]hentity}(hj "hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj!ubjD)}(h enum drm_sched_priority priorityh](j)}(hjh]henum}(hj""hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj/"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]j)}(hdrm_sched_priorityh]hdrm_sched_priority}(hj@"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj="ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetjB"modnameN classnameNjj)}j]j!c.drm_sched_entity_set_priorityasbuh1hhj"ubj)}(h h]h }(hj^"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hpriorityh]hpriority}(hjl"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj!ubeh}(h]h ]h"]h$]h&]jjuh1j=hjo!hhhj!hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjk!hhhj!hMubah}(h]jf!ah ](jjeh"]h$]h&]j j )j huh1jhj!hMhjh!hhubj )}(hhh]h)}(hSets priority of the entityh]hSets priority of the entity}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj"hhubah}(h]h ]h"]h$]h&]uh1j hjh!hhhj!hMubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' j"j( j"j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj"ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj"ubjM )}(hhh](jR )}(h5``struct drm_sched_entity *entity`` scheduler entity h](jX )}(h#``struct drm_sched_entity *entity``h]j^ )}(hj"h]hstruct drm_sched_entity *entity}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj"ubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj"ubjt )}(hhh]h)}(hscheduler entityh]hscheduler entity}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1js hj"ubeh}(h]h ]h"]h$]h&]uh1jQ hj"hMhj"ubjR )}(h8``enum drm_sched_priority priority`` scheduler priority h](jX )}(h$``enum drm_sched_priority priority``h]j^ )}(hj#h]h enum drm_sched_priority priority}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj#ubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj #ubjt )}(hhh]h)}(hscheduler priorityh]hscheduler priority}(hj)#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%#hMhj&#ubah}(h]h ]h"]h$]h&]uh1js hj #ubeh}(h]h ]h"]h$]h&]uh1jQ hj%#hMhj"ubeh}(h]h ]h"]h$]h&]uh1jL hj"ubh)}(h**Description**h]j7 )}(hjK#h]h Description}(hjM#hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjI#ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj"ubh)}(h5Update the priority of runqueues used for the entity.h]h5Update the priority of runqueues used for the entity.}(hja#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drm_sched_entity_push_job (C function)c.drm_sched_entity_push_jobhNtauh1jhjhhhNhNubj)}(hhh](j)}(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](j)}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj#hMjubj)}(hdrm_sched_entity_push_jobh]j)}(hdrm_sched_entity_push_jobh]hdrm_sched_entity_push_job}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj#hhhj#hMjubj>)}(h!(struct drm_sched_job *sched_job)h]jD)}(hstruct drm_sched_job *sched_jobh](j)}(hj? h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubh)}(hhh]j)}(h drm_sched_jobh]h drm_sched_job}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainj! reftypej} reftargetj#modnameN classnameNjj)}j]j)}j}j#sbc.drm_sched_entity_push_jobasbuh1hhj#ubj)}(h h]h }(hj $hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h sched_jobh]h sched_job}(hj&$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jChj#ubah}(h]h ]h"]h$]h&]jjuh1j=hj#hhhj#hMjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj#hMjubah}(h]j#ah ](jjeh"]h$]h&]j j )j huh1jhj#hMjhj#hhubj )}(hhh]h)}(h&Submit a job to the entity's job queueh]h(Submit a job to the entity’s job queue}(hjP$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMjhjM$hhubah}(h]h ]h"]h$]h&]uh1j hj#hhhj#hMjubeh}(h]h ](j! functioneh"]h$]h&]j& j! j' jh$j( jh$j) j* j+ uh1jhhhjhNhNubj- )}(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]j7 )}(hjr$h]h Parameters}(hjt$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hjp$ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMnhjl$ubjM )}(hhh]jR )}(h2``struct drm_sched_job *sched_job`` job to submit h](jX )}(h#``struct drm_sched_job *sched_job``h]j^ )}(hj$h]hstruct drm_sched_job *sched_job}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j] hj$ubah}(h]h ]h"]h$]h&]uh1jW hd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMkhj$ubjt )}(hhh]h)}(h job to submith]h job to submit}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMkhj$ubah}(h]h ]h"]h$]h&]uh1js hj$ubeh}(h]h ]h"]h$]h&]uh1jQ hj$hMkhj$ubah}(h]h ]h"]h$]h&]uh1jL hjl$ubh)}(h**Note**h]j7 )}(hj$h]hNote}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj$ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMmhjl$ubh)}(hTo guarantee that the order of insertion to queue matches the job's fence sequence number this function should be called with drm_sched_job_arm() under common lock for the struct drm_sched_entity that was set up for **sched_job** in drm_sched_job_init().h](hTo guarantee that the order of insertion to queue matches the job’s fence sequence number this function should be called with drm_sched_job_arm() under common lock for the struct drm_sched_entity that was set up for }(hj$hhhNhNubj7 )}(h **sched_job**h]h sched_job}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j6 hj$ubh in drm_sched_job_init().}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/gpu/drm-mm:599: ./drivers/gpu/drm/scheduler/sched_entity.chMmhjl$ubeh}(h]h ] kernelindentah"]h$]h&]uh1j, hjhhhNhNubeh}(h]jah ]h"]scheduler function referencesah$]h&]uh1hhjhhhhhMOubeh}(h]jah ]h"] gpu schedulerah$]h&]uh1hhhhhhhhM@ubeh}(h]j*ah ]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_handlerjB%error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceȟ _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]jAajM]jMaj]jraunameids}(j%j*jJjFjjIjgjhjjjTjjNxjjjj!jj"j=jj_jjjjjejjjjj jZj+j$jMjWjojjjjj+jjjjjj#j"jjAjjoj#jj|jjjj'Aj overviewNjjMj AjojrLjjqLjnLjMjjZPjMjYPjjTQj"jiLjDjIjjrj{ejjBjjjrjjjjjjwj"jxjDjyjfjjj%jjjj%ju nametypes}(j%jJjjgjjTjNxjj!j"jjjjejjjZj$jWjjj+jjj#jjj#j|jj'Aj%jj AjrLjqLjMjZPjYPjTQjiLjIjj{ejBjjrjjjwjxjyjj%jj%uh}(j*hjFhjIjMjjjhj j0 j5 j j jjjjjjjjjjTjYjjjjjwj|jjjjjjj!j!j"j"j%j%je'jj'j(j(j**j/*j,j,j0j 0j1j1j_3jd3j4j4ji6jn6j7j7j-9j29jW;j\;j<j=j?j?jBjBjDjDj4Fj9Fj(Hj-HjLjLjNjNjRj RjjTjTjTjXjXj5Zj:Zj[j[jk]jp]j^j^j`j`jdjdj&fj+fjAhjFhjijijljljnjnj1pj6pjrqjwqjItjNtjvjvjjQxjnxjsxj[zj`zj|j|j jj3j8jUjZjօjۅjjj=jΈj_j%jjjjjjjjhj jj+jjьj֌jjjoj.j3jjjjjjjߟjjjj{jjjjjj)j.jj#j+j0jjj6j;jjjjj jj!j&jjj}jj jjbjgj%j*j*j/jjjjj!j&jjjjj=jBjjj?jDj j%jjjKjPjjjZj_jjj(j-jRjWjj jMj]jjjjjkjpjjjjjjj^jcjbjgjjjjj$j)jjj j j5 j: jajfjpjujfjkjIjNjjjjjD!jI!joj$jJ%jP%j(j(j*j*j-j-jZ/j_/j0j1j3j 3jx5j}5jJ6jO6j9j!9j;j;j=j=j>j>j*@j/@jAjAj EjEj7HjjCjjj jj+j0jMj*jojjjjjjjjj jj jjjjj j j j jjjojjjj!jjj jjjjjj;j@jm jr j$j$ju'jz'jF-jK-j.j.j*4j/4jz6j6j8j8j:j:j=j=j?j?jj*AjnLj*Ajj;Ajj!HjMjMjjMj"j_PjDjWQjtQjyQj SjSjXjXj&[j+[j]j]j^j^jejej*hj/hjjjjjkjljmjmjojojrjrjujujwyj|yj]{jb{j}j}jjjjj'j,jjjjj2j7jjjjjOjTjZj_j jj4j9jjjjjХjեjj#jjèj٪jުjZj_jjjjjojְj۰jjj"j'j+j0jjjjjwj|j)j.jjjRjWjjjjj`jejjj^jcjjjajfjjjjjjjjjtjyjjjjjjjj jjjjj j j~ j jjjjjjjjjdjijF jK jO$jT$j&j&j*j*j.j.j3j 3j6j6j:j:j>j>jBjBjFjFjIjIjrjwLjjLjLjLjOOjTOjPjPjRjRjTjTjWjWjYjYj$]j)]j$bj)bj(dj-djj~ejejejGhjLhjjLjjijjnjjljljnjnjojojjrjjrj"jvjDjwjfjxjyjyj|j|j?~jD~jjjājɁjjjUjZjjjZj_jێjjjj{jjjjjjqjvjКj՚j(j-jkjpjjjǠj̠jѡj֡jQjVjdjij2j7jjj2j7jjjjj-j2jj jjjjjjYjjjjjjj_jdjjjjjjjbjgjjjjjjjjjjjjj'j,jjjTjYj_jdjjjXj]jjjBjGjIjNjjjjj4j9jjj.j3j#j(jvj{jjjjj5 j: j j j6 j; jjjFjKjjjNjSj4j9jjjEjJjCjHjjjf!jk!j#j#hjjCj:jbjYjj{jjjjjjjjj7j.jYjPj{jrjjjjjjjjj%jjGj>jij`jjjjjjjjjjj;j2jij`jjjjjjjjj%jjGj>jij`jjjjjjjjjjj>j5jljcjjjjjjjjjjj>j5j`jWjjjjjjjjjj u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jP%K8sRparse_messages](hsystem_message)}(hhh]h)}(h+Duplicate implicit target name: "overview".h]h/Duplicate implicit target name: “overview”.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]jalevelKtypeINFOsourceȟlineMuh1j%hj;AhhhhhMubj%)}(hhh]h)}(h+Duplicate implicit target name: "overview".h]h/Duplicate implicit target name: “overview”.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]jalevelKtypej%sourceȟlineMCuh1j%hjhhhhhMCubetransform_messages](j%)}(hhh]h)}(hhh]h:Hyperlink target "prime-buffer-sharing" is not referenced.}hj%sbah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]levelKtypej%sourceȟlineMuh1j%ubj%)}(hhh]h)}(hhh]h/Hyperlink target "drm-gpuvm" is not referenced.}hj&sbah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]levelKtypej%sourceȟlineMuh1j%ubj%)}(hhh]h)}(hhh]h7Hyperlink target "drm-gpuvm-locking" is not referenced.}hj&sbah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]levelKtypej%sourceȟlineMuh1j%ubj%)}(hhh]h)}(hhh]h6Hyperlink target "drm-sync-objects" is not referenced.}hj5&sbah}(h]h ]h"]h$]h&]uh1hhj2&ubah}(h]h ]h"]h$]h&]levelKtypej%sourceȟlineM%uh1j%ube transformerN include_log] decorationNhhub.