id
stringlengths
4
63
text
stringlengths
153
8.81M
tsm_mr_create_attribute_group(9)
NAME tsm_mr_create_attribute_group - creates an attribute group for measurement registers (MRs) SYNOPSIS const struct attribute_group * tsm_mr_create_attribute_group (const struct tsm_measurements *tm ); ARGUMENTS tm pointer to struct tsm_measurements containing the MR definitions. DESCRIPTION This functio...
tsm_mr_free_attribute_group(9)
NAME tsm_mr_free_attribute_group - frees the attribute group returned by tsm_mr_create_attribute_group() SYNOPSIS void tsm_mr_free_attribute_group (const struct attribute_group *attr_grp ); ARGUMENTS attr_grp attribute group returned by tsm_mr_create_attribute_group CONTEXT Process context. SEE ALSO Kernel file ...
tso_fill_packet_with_fragment(9)
NAME tso_fill_packet_with_fragment - form descriptors for the current fragment SYNOPSIS void tso_fill_packet_with_fragment (struct efx_tx_queue *tx_queue , const struct sk_buff *skb , struct tso_state *st ); ARGUMENTS tx_queue Efx TX queue skb Socket buffer st TSO state DESCRIPTIO...
tso_start_new_packet(9)
NAME tso_start_new_packet - generate a new header and prepare for the new packet SYNOPSIS int tso_start_new_packet (struct efx_tx_queue *tx_queue , const struct sk_buff *skb , struct tso_state *st ); ARGUMENTS tx_queue Efx TX queue skb Socket buffer st TSO state DESCRIPTION Genera...
tsort(1)
NAME tsort - perform topological sort SYNOPSIS tsort [OPTION] [FILE] DESCRIPTION Write totally ordered list consistent with the partial ordering in FILE. With no FILE, or when FILE is -, read standard input. --help display this help and exit --version output version information a...
tsort(1p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME tsort — topological sort SYNOPSIS tsort [file] DESCRIPTI...
tsync_works_trim(9)
NAME tsync_works_trim - Put the last tsync_work element SYNOPSIS void tsync_works_trim (struct tsync_works *s ); ARGUMENTS s TSYNC works to trim. DESCRIPTION Put the last task and decrement the size of s. This helper does not cancel a running task, but just reset the last element to zero. SEE ALSO Kernel...
ttc_clock_event_interrupt(9)
NAME ttc_clock_event_interrupt - Clock event timer interrupt handler SYNOPSIS irqreturn_t ttc_clock_event_interrupt (int irq , void *dev_id ); ARGUMENTS irq IRQ number of the Timer dev_id void pointer to the ttc_timer instance RETURN Always IRQ_HANDLED - success SEE ALSO Kernel file ./drivers/c...
ttc_set_interval(9)
NAME ttc_set_interval - Set the timer interval value SYNOPSIS void ttc_set_interval (struct ttc_timer *timer , unsigned long cycles ); ARGUMENTS timer Pointer to the timer instance cycles Timer interval ticks SEE ALSO Kernel file ./drivers/clocksource/timer-cadence-ttc.c struct ttc_timer(9), ttc_c...
ttc_set_next_event(9)
NAME ttc_set_next_event - Sets the time interval for next event SYNOPSIS int ttc_set_next_event (unsigned long cycles , struct clock_event_device *evt ); ARGUMENTS cycles Timer interval ticks evt Address of clock event instance RETURN Always 0 - success SEE ALSO Kernel file ./drivers/clocksourc...
ttc_set_periodic(9)
NAME ttc_set_periodic - Sets the state of timer SYNOPSIS int ttc_set_periodic (struct clock_event_device *evt ); ARGUMENTS evt Address of clock event instance RETURN Always 0 - success SEE ALSO Kernel file ./drivers/clocksource/timer-cadence-ttc.c struct ttc_timer(9), ttc_set_interval(9), ttc_clock_event_in...
ttc_shutdown(9)
NAME ttc_shutdown - Sets the state of timer SYNOPSIS int ttc_shutdown (struct clock_event_device *evt ); ARGUMENTS evt Address of clock event instance DESCRIPTION Used for shutdown or oneshot. RETURN Always 0 - success SEE ALSO Kernel file ./drivers/clocksource/timer-cadence-ttc.c struct ttc_timer(9), ttc_...
ttf2afm(1)
NAME ttf2afm - utility to generate AFM files for TrueType fonts SYNOPSIS ttf2afm [OPTIONS] FONTFILE DESCRIPTION ttf2afm is used to generate Adobe Font Metrics (AFM) files for TrueType (TTF) fonts to allow them to be used with TeX. ttf2afm takes the name of a TrueType font file as a required argument. It may ...
ttf2pk(1)
NAME ttf2pk - convert a TrueType font into TeX's PK format SYNOPSIS ttf2pk [-q] [-n] font-name resolution ttf2pk -t [-q] font-name ttf2pk --version | --help DESCRIPTION This program converts a TrueType font into a PK file; the created font can then be used with TeX or LaTeX. CJKV (Chinese/Japanese/Korean/old ...
ttf2tfm(1)
NAME ttf2tfm - build TeX metric files from a TrueType font SYNOPSIS ttf2tfm ttffile[.ttf|.ttc] [-c caps-height-factor] [-e extension-factor] [-E encoding-id] [-f font-index] [-l] [-L ligature-file[.sfd]] [-n] [-N] [-O] [-p inencfile[.enc]] [-P platform-id] [-q] [-r old-glyphname new-glyphname] [-R replacement-file[.rp...
ttfdump(1)
NAME ttfdump - Dumping the contents of a TrueType Font file SYNOPSIS ttfdump [-h] [-t tablename] [-g glyphnumber] [-c collection] [-o dumpfile] [-i] ttfile DESCRIPTION ttfdump dumps the contents of a TrueType font file in ASCII form. A TrueType font file is consist of various tables. Those table are divided into t...
ttftotype42(1)
NAME ttftotype42 - create PostScript Type 42 wrapper of TrueType font SYNOPSIS ttftotype42 [input [output]] DESCRIPTION Ttftotype42 converts TrueType or TrueType-flavored OpenType font programs into PostScript Type 42 format, which is a wrapper for the TrueType outlines. This conversion preserves all outlines and hi...
ttm_agp_tt_create(9)
NAME ttm_agp_tt_create - SYNOPSIS struct ttm_tt * ttm_agp_tt_create (struct ttm_buffer_object *bo , struct agp_bridge_data *bridge , uint32_t page_flags ); ARGUMENTS bo Buffer object we allocate the ttm for. bridge The agp bridge this device is sitting on. page_flags Page flags as ident...
ttm_backup_backup_page(9)
NAME ttm_backup_backup_page - Backup a page SYNOPSIS s64 ttm_backup_backup_page (struct file *backup , struct page *page , bool writeback , pgoff_t idx , gfp_t page_gfp , gfp_t alloc_gfp ); ARGUMENTS backup The struct backup pointer to use. page The page to back up. writeback Whether to ...
ttm_backup_bytes_avail(9)
NAME ttm_backup_bytes_avail - Report the approximate number of bytes of backup space left for backup. SYNOPSIS u64 ttm_backup_bytes_avail (void ); ARGUMENTS void no arguments DESCRIPTION This function is intended also for driver use to indicate whether a backup attempt is meaningful. RETURN An approximate si...
ttm_backup_copy_page(9)
NAME ttm_backup_copy_page - Copy the contents of a previously backed up page SYNOPSIS int ttm_backup_copy_page (struct file *backup , struct page *dst , pgoff_t handle , bool intr ); ARGUMENTS backup The struct backup pointer used to back up the page. dst The struct page to copy into. han...
ttm_backup_drop(9)
NAME ttm_backup_drop - release memory associated with a handle SYNOPSIS void ttm_backup_drop (struct file *backup , pgoff_t handle ); ARGUMENTS backup The struct backup pointer used to obtain the handle handle The handle obtained from the backup_page function. SEE ALSO Kernel file ./drivers/gpu/drm...
ttm_backup_fini(9)
NAME ttm_backup_fini - Free the struct backup resources after last use. SYNOPSIS void ttm_backup_fini (struct file *backup ); ARGUMENTS backup Pointer to the struct backup whose resources to free. DESCRIPTION After a call to this function, it's illegal to use the backup pointer. SEE ALSO Kernel file ./drivers/...
ttm_backup_handle_to_page_ptr(9)
NAME ttm_backup_handle_to_page_ptr - Convert handle to struct page pointer SYNOPSIS struct page * ttm_backup_handle_to_page_ptr (unsigned long handle ); ARGUMENTS handle The handle to convert. DESCRIPTION Converts an opaque handle received from the ttm_backup_backup_page function to an (invalid) struct page poi...
ttm_backup_page_ptr_is_handle(9)
NAME ttm_backup_page_ptr_is_handle - Whether a struct page pointer is a handle SYNOPSIS bool ttm_backup_page_ptr_is_handle (const struct page *page ); ARGUMENTS page The struct page pointer to check. RETURN true if the struct page pointer is a handld returned from ttm_backup_handle_to_page_ptr. False otherwis...
ttm_backup_page_ptr_to_handle(9)
NAME ttm_backup_page_ptr_to_handle - Convert a struct page pointer to a handle SYNOPSIS unsigned long ttm_backup_page_ptr_to_handle (const struct page *page ); ARGUMENTS page The struct page pointer to convert RETURN The handle that was previously used in ttm_backup_handle_to_page_ptr to obtain a struct page ...
ttm_backup_shmem_create(9)
NAME ttm_backup_shmem_create - Create a shmem-based struct backup. SYNOPSIS struct file * ttm_backup_shmem_create (loff_t size ); ARGUMENTS size The maximum size (in bytes) to back up. DESCRIPTION Create a backup utilizing shmem objects. RETURN A pointer to a struct file on success, an error pointer on error...
ttm_base_object_init(9)
NAME ttm_base_object_init - SYNOPSIS int ttm_base_object_init (struct ttm_object_file *tfile , struct ttm_base_object *base , bool shareable , enum ttm_object_type type , void (*refcount_release) (struct ttm_base_object **) ); ARGUMENTS tfile Pointer to a struct ttm_object_file. base The struct t...
ttm_base_object_lookup(9)
NAME ttm_base_object_lookup - SYNOPSIS struct ttm_base_object * ttm_base_object_lookup (struct ttm_object_file *tfile , uint64_t key ); ARGUMENTS tfile Pointer to a struct ttm_object_file. key Hash key DESCRIPTION Looks up a struct ttm_base_object with the key key. SEE ALSO Kernel file ./dri...
ttm_base_object_lookup_for_ref(9)
NAME ttm_base_object_lookup_for_ref - SYNOPSIS struct ttm_base_object * ttm_base_object_lookup_for_ref (struct ttm_object_device *tdev , uint64_t key ); ARGUMENTS tdev Pointer to a struct ttm_object_device. key Hash key DESCRIPTION Looks up a struct ttm_base_object with the key key. This func...
ttm_base_object_unref(9)
NAME ttm_base_object_unref - SYNOPSIS void ttm_base_object_unref (struct ttm_base_object **p_base ); ARGUMENTS p_base Pointer to a pointer referencing a struct ttm_base_object. DESCRIPTION Decrements the base object refcount and clears the pointer pointed to by p_base. SEE ALSO Kernel file ./drivers/gpu/drm/...
ttm_bo_access(9)
NAME ttm_bo_access - Helper to access a buffer object SYNOPSIS int ttm_bo_access (struct ttm_buffer_object *bo , unsigned long offset , void *buf , int len , int write ); ARGUMENTS bo ttm buffer object offset access offset into buffer object buf pointer to caller memory to read i...
ttm_bo_alloc_resource(9)
NAME ttm_bo_alloc_resource - Allocate backing store for a BO SYNOPSIS int ttm_bo_alloc_resource (struct ttm_buffer_object *bo , struct ttm_placement *placement , struct ttm_operation_ctx *ctx , bool force_space , struct ttm_resource **res ); ARGUMENTS bo Pointer to a struct ttm_buffer_object of which we want...
ttm_bo_evict_first(9)
NAME ttm_bo_evict_first - Evict the first bo on the manager's LRU list. SYNOPSIS int ttm_bo_evict_first (struct ttm_device *bdev , struct ttm_resource_manager *man , struct ttm_operation_ctx *ctx ); ARGUMENTS bdev The ttm device. man The manager whose bo to evict. ctx The TTM op...
ttm_bo_eviction_valuable(9)
NAME ttm_bo_eviction_valuable - SYNOPSIS bool ttm_bo_eviction_valuable (struct ttm_buffer_object *bo , const struct ttm_place *place ); ARGUMENTS bo The buffer object to evict place the placement we need to make room for DESCRIPTION Check if it is valuable to evict the BO to make room for the ...
ttm_bo_get(9)
NAME ttm_bo_get - reference a struct ttm_buffer_object SYNOPSIS void ttm_bo_get (struct ttm_buffer_object *bo ); ARGUMENTS bo The buffer object. SEE ALSO Kernel file ./drivers/gpu/drm/ttm/ttm_bo_internal.h ttm_bo_get_unless_zero(9) April 2026 ...
ttm_bo_get_unless_zero(9)
NAME ttm_bo_get_unless_zero - reference a struct ttm_buffer_object unless its refcount has already reached zero. SYNOPSIS struct ttm_buffer_object * ttm_bo_get_unless_zero (struct ttm_buffer_object *bo ); ARGUMENTS bo The buffer object. DESCRIPTION Used to reference a TTM buffer object in lookups where the ...
ttm_bo_init_reserved(9)
NAME ttm_bo_init_reserved - SYNOPSIS int ttm_bo_init_reserved (struct ttm_device *bdev , struct ttm_buffer_object *bo , enum ttm_bo_type type , struct ttm_placement *placement , uint32_t alignment , struct ttm_operation_ctx *ctx , struct sg_table *sg , struct dma_resv *resv , void (*destroy) (struct ttm_buffer_o...
ttm_bo_init_validate(9)
NAME ttm_bo_init_validate - SYNOPSIS int ttm_bo_init_validate (struct ttm_device *bdev , struct ttm_buffer_object *bo , enum ttm_bo_type type , struct ttm_placement *placement , uint32_t alignment , bool interruptible , struct sg_table *sg , struct dma_resv *resv , void (*destroy) (struct ttm_buffer_object *) ); ARG...
ttm_bo_kmap(9)
NAME ttm_bo_kmap - SYNOPSIS int ttm_bo_kmap (struct ttm_buffer_object *bo , unsigned long start_page , unsigned long num_pages , struct ttm_bo_kmap_obj *map ); ARGUMENTS bo The buffer object. start_page The first page to map. num_pages Number of pages to map. map pointer to...
ttm_bo_kmap_try_from_panic(9)
NAME ttm_bo_kmap_try_from_panic - SYNOPSIS void * ttm_bo_kmap_try_from_panic (struct ttm_buffer_object *bo , unsigned long page ); ARGUMENTS bo The buffer object page The page to map DESCRIPTION Sets up a kernel virtual mapping using kmap_local_page_try_from_panic. This should only be calle...
ttm_bo_kunmap(9)
NAME ttm_bo_kunmap - SYNOPSIS void ttm_bo_kunmap (struct ttm_bo_kmap_obj *map ); ARGUMENTS map Object describing the map to unmap. DESCRIPTION Unmaps a kernel map set up by ttm_bo_kmap. SEE ALSO Kernel file ./drivers/gpu/drm/ttm/ttm_bo_util.c ttm_move_memcpy(9), ttm_bo_move_memcpy(9), ttm_buffer_object_t...
ttm_bo_lru_cursor_fini(9)
NAME ttm_bo_lru_cursor_fini - Stop using a struct ttm_bo_lru_cursor and clean up any iteration it was used for. SYNOPSIS void ttm_bo_lru_cursor_fini (struct ttm_bo_lru_cursor *curs ); ARGUMENTS curs The cursor. SEE ALSO Kernel file ./drivers/gpu/drm/ttm/ttm_bo_util.c ttm_move_memcpy(9), ttm_bo_move_memcpy(...
ttm_bo_lru_cursor_first(9)
NAME ttm_bo_lru_cursor_first - Start iterating a manager's LRU lists to find and lock buffer object. SYNOPSIS struct ttm_buffer_object * ttm_bo_lru_cursor_first (struct ttm_bo_lru_cursor *curs ); ARGUMENTS curs The cursor initialized using ttm_bo_lru_cursor_init. RETURN A pointer to a locked and reference-cou...
ttm_bo_lru_cursor_init(9)
NAME ttm_bo_lru_cursor_init - Initialize a struct ttm_bo_lru_cursor SYNOPSIS struct ttm_bo_lru_cursor * ttm_bo_lru_cursor_init (struct ttm_bo_lru_cursor *curs , struct ttm_resource_manager *man , struct ttm_lru_walk_arg *arg ); ARGUMENTS curs The ttm_bo_lru_cursor to initialize. man The ttm res...
ttm_bo_lru_cursor_next(9)
NAME ttm_bo_lru_cursor_next - Continue iterating a manager's LRU lists to find and lock buffer object. SYNOPSIS struct ttm_buffer_object * ttm_bo_lru_cursor_next (struct ttm_bo_lru_cursor *curs ); ARGUMENTS curs The cursor initialized using ttm_bo_lru_cursor_init and ttm_bo_lru_cursor_first. RETURN A pointer ...
ttm_bo_lru_for_each_reserved_guarded(9)
NAME ttm_bo_lru_for_each_reserved_guarded - Iterate over buffer objects owning resources on LRU lists. SYNOPSIS ttm_bo_lru_for_each_reserved_guarded (_cursor , _man , _arg , _bo ); ARGUMENTS _cursor struct ttm_bo_lru_cursor to use for the iteration. _man The resource manager whose LRU lists to iter...
ttm_bo_mmap_obj(9)
NAME ttm_bo_mmap_obj - mmap memory backed by a ttm buffer object. SYNOPSIS int ttm_bo_mmap_obj (struct vm_area_struct *vma , struct ttm_buffer_object *bo ); ARGUMENTS vma vma as input from the fbdev mmap method. bo The bo backing the address space. DESCRIPTION Maps a buffer object. SEE ALSO...
ttm_bo_move_accel_cleanup(9)
NAME ttm_bo_move_accel_cleanup - cleanup helper for hw copies SYNOPSIS int ttm_bo_move_accel_cleanup (struct ttm_buffer_object *bo , struct dma_fence *fence , bool evict , bool pipeline , struct ttm_resource *new_mem ); ARGUMENTS bo A pointer to a struct ttm_buffer_object. fence A fence object ...
ttm_bo_move_memcpy(9)
NAME ttm_bo_move_memcpy - SYNOPSIS int ttm_bo_move_memcpy (struct ttm_buffer_object *bo , struct ttm_operation_ctx *ctx , struct ttm_resource *dst_mem ); ARGUMENTS bo A pointer to a struct ttm_buffer_object. ctx operation context dst_mem struct ttm_resource indicating where to mov...
ttm_bo_move_null(9)
NAME ttm_bo_move_null - assign memory for a buffer object. SYNOPSIS void ttm_bo_move_null (struct ttm_buffer_object *bo , struct ttm_resource *new_mem ); ARGUMENTS bo The bo to assign the memory to new_mem The memory to be assigned. DESCRIPTION Assign the memory from new_mem to the memory of the...
ttm_bo_move_sync_cleanup(9)
NAME ttm_bo_move_sync_cleanup - cleanup by waiting for the move to finish SYNOPSIS void ttm_bo_move_sync_cleanup (struct ttm_buffer_object *bo , struct ttm_resource *new_mem ); ARGUMENTS bo A pointer to a struct ttm_buffer_object. new_mem struct ttm_resource indicating where to move. DESCRIPTION...
ttm_bo_move_to_lru_tail(9)
NAME ttm_bo_move_to_lru_tail - SYNOPSIS void ttm_bo_move_to_lru_tail (struct ttm_buffer_object *bo ); ARGUMENTS bo The buffer object. DESCRIPTION Move this BO to the tail of all lru lists used to lookup and reserve an object. This function must be called with struct ttm_global::lru_lock held, and is used to...
ttm_bo_pin(9)
NAME ttm_bo_pin - Pin the buffer object. SYNOPSIS void ttm_bo_pin (struct ttm_buffer_object *bo ); ARGUMENTS bo The buffer object to pin DESCRIPTION Make sure the buffer is not evicted any more during memory pressure. bo must be unpinned again by calling ttm_bo_unpin. SEE ALSO Kernel file ./drivers/gpu/...
ttm_bo_pipeline_gutting(9)
NAME ttm_bo_pipeline_gutting - purge the contents of a bo SYNOPSIS int ttm_bo_pipeline_gutting (struct ttm_buffer_object *bo ); ARGUMENTS bo The buffer object DESCRIPTION Purge the contents of a bo, async if the bo is not idle. After a successful call, the bo is left unpopulated in system placement. The fu...
ttm_bo_populate(9)
NAME ttm_bo_populate - Ensure that a buffer object has backing pages SYNOPSIS int ttm_bo_populate (struct ttm_buffer_object *bo , struct ttm_operation_ctx *ctx ); ARGUMENTS bo The buffer object ctx The ttm_operation_ctx governing the operation. DESCRIPTION For buffer objects in a memory ...
ttm_bo_reserve(9)
NAME ttm_bo_reserve - SYNOPSIS int ttm_bo_reserve (struct ttm_buffer_object *bo , bool interruptible , bool no_wait , struct ww_acquire_ctx *ticket ); ARGUMENTS bo A pointer to a struct ttm_buffer_object. interruptible Sleep interruptible if waiting. no_wait Don't sleep...
ttm_bo_reserve_slowpath(9)
NAME ttm_bo_reserve_slowpath - SYNOPSIS int ttm_bo_reserve_slowpath (struct ttm_buffer_object *bo , bool interruptible , struct ww_acquire_ctx *ticket ); ARGUMENTS bo A pointer to a struct ttm_buffer_object. interruptible Sleep interruptible if waiting. ticket Ticket u...
ttm_bo_set_bulk_move(9)
NAME ttm_bo_set_bulk_move - update BOs bulk move object SYNOPSIS void ttm_bo_set_bulk_move (struct ttm_buffer_object *bo , struct ttm_lru_bulk_move *bulk ); ARGUMENTS bo The buffer object. bulk bulk move structure DESCRIPTION Update the BOs bulk move object, making sure that resources are...
ttm_bo_shrink(9)
NAME ttm_bo_shrink - Helper to shrink a ttm buffer object. SYNOPSIS long ttm_bo_shrink (struct ttm_operation_ctx *ctx , struct ttm_buffer_object *bo , const struct ttm_bo_shrink_flags flags ); ARGUMENTS ctx The struct ttm_operation_ctx used for the shrinking operation. bo The buffer object. ...
ttm_bo_shrink_avoid_wait(9)
NAME ttm_bo_shrink_avoid_wait - Whether to avoid waiting for GPU during shrinking SYNOPSIS bool ttm_bo_shrink_avoid_wait (void ); ARGUMENTS void no arguments DESCRIPTION In some situations, like direct reclaim, waiting (in particular gpu waiting) should be avoided since it may stall a system that could otherw...
ttm_bo_shrink_suitable(9)
NAME ttm_bo_shrink_suitable - Whether a bo is suitable for shinking SYNOPSIS bool ttm_bo_shrink_suitable (struct ttm_buffer_object *bo , struct ttm_operation_ctx *ctx ); ARGUMENTS bo The candidate for shrinking. ctx The struct ttm_operation_ctx governing the shrinking. DESCRIPTION Check whet...
ttm_bo_swapout(9)
NAME ttm_bo_swapout - Swap out buffer objects on the LRU list to shmem. SYNOPSIS s64 ttm_bo_swapout (struct ttm_device *bdev , struct ttm_operation_ctx *ctx , struct ttm_resource_manager *man , gfp_t gfp_flags , s64 target ); ARGUMENTS bdev The ttm device. ctx The ttm_operation_ctx governing th...
ttm_bo_unmap_virtual(9)
NAME ttm_bo_unmap_virtual - SYNOPSIS void ttm_bo_unmap_virtual (struct ttm_buffer_object *bo ); ARGUMENTS bo tear down the virtual mappings for this BO SEE ALSO Kernel file ./drivers/gpu/drm/ttm/ttm_bo.c ttm_bo_move_to_lru_tail(9), ttm_bo_set_bulk_move(9), ttm_bo_eviction_valuable(9), ttm_bo_evict_first(9...
ttm_bo_unpin(9)
NAME ttm_bo_unpin - Unpin the buffer object. SYNOPSIS void ttm_bo_unpin (struct ttm_buffer_object *bo ); ARGUMENTS bo The buffer object to unpin DESCRIPTION Allows the buffer object to be evicted again during memory pressure. SEE ALSO Kernel file ./drivers/gpu/drm/ttm/ttm_bo.c ttm_bo_move_to_lru_tail(9)...
ttm_bo_unreserve(9)
NAME ttm_bo_unreserve - SYNOPSIS void ttm_bo_unreserve (struct ttm_buffer_object *bo ); ARGUMENTS bo A pointer to a struct ttm_buffer_object. DESCRIPTION Unreserve a previous reservation of bo. SEE ALSO Kernel file ./include/drm/ttm/ttm_bo.h enum ttm_bo_type(9), struct ttm_buffer_object(9), struc...
ttm_bo_validate(9)
NAME ttm_bo_validate - SYNOPSIS int ttm_bo_validate (struct ttm_buffer_object *bo , struct ttm_placement *placement , struct ttm_operation_ctx *ctx ); ARGUMENTS bo The buffer object. placement Proposed placement for the buffer object. ctx validation parameters. DESCRIPTION Changes ...
ttm_bo_vm_fault_reserved(9)
NAME ttm_bo_vm_fault_reserved - TTM fault helper SYNOPSIS vm_fault_t ttm_bo_vm_fault_reserved (struct vm_fault *vmf , pgprot_t prot , pgoff_t num_prefault ); ARGUMENTS vmf The struct vm_fault given as argument to the fault callback prot The page protection to be used for this memory area. ...
ttm_bo_vm_reserve(9)
NAME ttm_bo_vm_reserve - Reserve a buffer object in a retryable vm callback SYNOPSIS vm_fault_t ttm_bo_vm_reserve (struct ttm_buffer_object *bo , struct vm_fault *vmf ); ARGUMENTS bo The buffer object vmf The fault structure handed to the callback DESCRIPTION vm callbacks like fault and *_m...
ttm_bo_vmap(9)
NAME ttm_bo_vmap - SYNOPSIS int ttm_bo_vmap (struct ttm_buffer_object *bo , struct iosys_map *map ); ARGUMENTS bo The buffer object. map pointer to a struct iosys_map representing the map. DESCRIPTION Sets up a kernel virtual mapping, using ioremap or vmap to the data in the buffer object...
ttm_bo_vunmap(9)
NAME ttm_bo_vunmap - SYNOPSIS void ttm_bo_vunmap (struct ttm_buffer_object *bo , struct iosys_map *map ); ARGUMENTS bo The buffer object. map Object describing the map to unmap. DESCRIPTION Unmaps a kernel map set up by ttm_bo_vmap. SEE ALSO Kernel file ./drivers/gpu/drm/ttm/ttm_bo_util.c...
ttm_bo_wait_ctx(9)
NAME ttm_bo_wait_ctx - wait for buffer idle. SYNOPSIS int ttm_bo_wait_ctx (struct ttm_buffer_object *bo , struct ttm_operation_ctx *ctx ); ARGUMENTS bo The buffer object. ctx defines how to wait DESCRIPTION Waits for the buffer to be idle. Used timeout depends on the context. Returns -EBUSY...
ttm_buffer_object_transfer(9)
NAME ttm_buffer_object_transfer - SYNOPSIS int ttm_buffer_object_transfer (struct ttm_buffer_object *bo , struct ttm_buffer_object **new_obj ); ARGUMENTS bo A pointer to a struct ttm_buffer_object. new_obj A pointer to a pointer to a newly created ttm_buffer_object, holding the data of bo with th...
ttm_device_init(9)
NAME ttm_device_init - SYNOPSIS int ttm_device_init (struct ttm_device *bdev , const struct ttm_device_funcs *funcs , struct device *dev , struct address_space *mapping , struct drm_vma_offset_manager *vma_manager , unsigned int alloc_flags ); ARGUMENTS bdev A pointer to a struct ttm_device to initialize. ...
ttm_device_prepare_hibernation(9)
NAME ttm_device_prepare_hibernation - move GTT BOs to shmem for hibernation. SYNOPSIS int ttm_device_prepare_hibernation (struct ttm_device *bdev ); ARGUMENTS bdev A pointer to a struct ttm_device to prepare hibernation for. RETURN 0 on success, negative number on failure. SEE ALSO Kernel file ./drivers/gpu/...
ttm_eu_backoff_reservation(9)
NAME ttm_eu_backoff_reservation - SYNOPSIS void ttm_eu_backoff_reservation (struct ww_acquire_ctx *ticket , struct list_head *list ); ARGUMENTS ticket ww_acquire_ctx from reserve call list thread private list of ttm_validate_buffer structs. DESCRIPTION Undoes all buffer validation reservations fo...
ttm_eu_fence_buffer_objects(9)
NAME ttm_eu_fence_buffer_objects - SYNOPSIS void ttm_eu_fence_buffer_objects (struct ww_acquire_ctx *ticket , struct list_head *list , struct dma_fence *fence ); ARGUMENTS ticket ww_acquire_ctx from reserve call list thread private list of ttm_validate_buffer structs. fence The new e...
ttm_eu_reserve_buffers(9)
NAME ttm_eu_reserve_buffers - SYNOPSIS int ttm_eu_reserve_buffers (struct ww_acquire_ctx *ticket , struct list_head *list , bool intr , struct list_head *dups ); ARGUMENTS ticket [out] ww_acquire_ctx filled in by call, or NULL if only non-blocking reserves should be tried. list thread private list...
ttm_io_prot(9)
NAME ttm_io_prot - SYNOPSIS pgprot_t ttm_io_prot (struct ttm_buffer_object *bo , struct ttm_resource *res , pgprot_t tmp ); ARGUMENTS bo ttm buffer object res ttm resource object tmp Page protection flag for a normal, cached mapping. DESCRIPTION Utility function that returns ...
ttm_kmap_iter_iomap_init(9)
NAME ttm_kmap_iter_iomap_init - Initialize a struct ttm_kmap_iter_iomap SYNOPSIS struct 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 ); ARGUMENTS iter_io The struct ttm_kmap_iter_iomap to initialize. ...
ttm_kmap_iter_linear_io_fini(9)
NAME ttm_kmap_iter_linear_io_fini - Clean up an iterator for linear io memory SYNOPSIS void ttm_kmap_iter_linear_io_fini (struct ttm_kmap_iter_linear_io *iter_io , struct ttm_device *bdev , struct ttm_resource *mem ); ARGUMENTS iter_io The iterator to initialize bdev The TTM device mem ...
ttm_kmap_iter_linear_io_init(9)
NAME ttm_kmap_iter_linear_io_init - Initialize an iterator for linear io memory SYNOPSIS struct ttm_kmap_iter * ttm_kmap_iter_linear_io_init (struct ttm_kmap_iter_linear_io *iter_io , struct ttm_device *bdev , struct ttm_resource *mem ); ARGUMENTS iter_io The iterator to initialize bdev The TTM dev...
ttm_kmap_iter_tt_init(9)
NAME ttm_kmap_iter_tt_init - Initialize a struct ttm_kmap_iter_tt SYNOPSIS struct ttm_kmap_iter * ttm_kmap_iter_tt_init (struct ttm_kmap_iter_tt *iter_tt , struct ttm_tt *tt ); ARGUMENTS iter_tt The struct ttm_kmap_iter_tt to initialize. tt Struct ttm_tt holding page pointers of the struct ttm_re...
ttm_kmap_obj_virtual(9)
NAME ttm_kmap_obj_virtual - SYNOPSIS void * ttm_kmap_obj_virtual (struct ttm_bo_kmap_obj *map , bool *is_iomem ); ARGUMENTS map A struct ttm_bo_kmap_obj returned from ttm_bo_kmap. is_iomem Pointer to an integer that on return indicates 1 if the virtual map is io memory, 0 if normal memory. DESCRIP...
ttm_lru_bulk_move_fini(9)
NAME ttm_lru_bulk_move_fini - finalize a bulk move structure SYNOPSIS void ttm_lru_bulk_move_fini (struct ttm_device *bdev , struct ttm_lru_bulk_move *bulk ); ARGUMENTS bdev The struct ttm_device bulk the structure to finalize DESCRIPTION Sanity checks that bulk moves don't have any resources l...
ttm_lru_bulk_move_init(9)
NAME ttm_lru_bulk_move_init - initialize a bulk move structure SYNOPSIS void ttm_lru_bulk_move_init (struct ttm_lru_bulk_move *bulk ); ARGUMENTS bulk the structure to init DESCRIPTION For now just memset the structure to zero. SEE ALSO Kernel file ./drivers/gpu/drm/ttm/ttm_resource.c ttm_resource_cursor_init...
ttm_lru_bulk_move_tail(9)
NAME ttm_lru_bulk_move_tail - bulk move range of resources to the LRU tail. SYNOPSIS void ttm_lru_bulk_move_tail (struct ttm_lru_bulk_move *bulk ); ARGUMENTS 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 b...
ttm_lru_first_res_or_null(9)
NAME ttm_lru_first_res_or_null - Return the first resource on an lru list SYNOPSIS struct ttm_resource * ttm_lru_first_res_or_null (struct list_head *head ); ARGUMENTS head The list head of the lru list. RETURN Pointer to the first resource on the lru list or NULL if there is none. SEE ALSO Kernel file ./d...
ttm_lru_item_init(9)
NAME ttm_lru_item_init - initialize a struct ttm_lru_item SYNOPSIS void ttm_lru_item_init (struct ttm_lru_item *item , enum ttm_lru_item_type type ); ARGUMENTS item The item to initialize type The subclass type SEE ALSO Kernel file ./include/drm/ttm/ttm_resource.h TTM_NUM_MOVE_FENCES(9), enum ...
ttm_lru_item_to_res(9)
NAME ttm_lru_item_to_res - Downcast a struct ttm_lru_item to a struct ttm_resource SYNOPSIS struct ttm_resource * ttm_lru_item_to_res (struct ttm_lru_item *item ); ARGUMENTS item The struct ttm_lru_item to downcast RETURN Pointer to the embedding struct ttm_resource SEE ALSO Kernel file ./include/drm/ttm/t...
ttm_lru_walk_for_evict(9)
NAME ttm_lru_walk_for_evict - Perform a LRU list walk, with actions taken on valid items. SYNOPSIS s64 ttm_lru_walk_for_evict (struct ttm_lru_walk *walk , struct ttm_device *bdev , struct ttm_resource_manager *man , s64 target ); ARGUMENTS walk describe the walks and actions taken bdev The TTM d...
ttm_move_memcpy(9)
NAME ttm_move_memcpy - Helper to perform a memcpy ttm move operation. SYNOPSIS void ttm_move_memcpy (bool clear , u32 num_pages , struct ttm_kmap_iter *dst_iter , struct ttm_kmap_iter *src_iter ); ARGUMENTS clear Whether to clear rather than copy. num_pages Number of pages of the operation. ds...
ttm_object_device_release(9)
NAME ttm_object_device_release - release data held by a ttm_object_device SYNOPSIS void ttm_object_device_release (struct ttm_object_device **p_tdev ); ARGUMENTS p_tdev Pointer to pointer to the ttm_object_device object to release. *p_tdev will be set to NULL by this function. DESCRIPTION Releases all data ass...
ttm_object_file_init(9)
NAME ttm_object_file_init - initialize a struct ttm_object file SYNOPSIS struct ttm_object_file * ttm_object_file_init (struct ttm_object_device *tdev ); ARGUMENTS tdev A struct ttm_object device this file is initialized on. DESCRIPTION This is typically called by the file_ops::open function. SEE ALSO Kernel...
ttm_object_file_release(9)
NAME ttm_object_file_release - release data held by a ttm_object_file SYNOPSIS void ttm_object_file_release (struct ttm_object_file **p_tfile ); ARGUMENTS p_tfile Pointer to pointer to the ttm_object_file object to release. *p_tfile will be set to NULL by this function. DESCRIPTION Releases all data associated ...
ttm_pool_alloc(9)
NAME ttm_pool_alloc - Fill a ttm_tt object SYNOPSIS int ttm_pool_alloc (struct ttm_pool *pool , struct ttm_tt *tt , struct ttm_operation_ctx *ctx ); ARGUMENTS pool ttm_pool to use tt ttm_tt object to fill ctx operation context DESCRIPTION Fill the ttm_tt object with pages and ...
ttm_pool_backup(9)
NAME ttm_pool_backup - Back up or purge a struct ttm_tt SYNOPSIS long ttm_pool_backup (struct ttm_pool *pool , struct ttm_tt *tt , const struct ttm_backup_flags *flags ); ARGUMENTS pool The pool used when allocating the struct ttm_tt. tt The struct ttm_tt. flags Flags to govern t...
ttm_pool_debugfs(9)
NAME ttm_pool_debugfs - Debugfs dump function for a pool SYNOPSIS int ttm_pool_debugfs (struct ttm_pool *pool , struct seq_file *m ); ARGUMENTS pool the pool to dump the information for m seq_file to dump to DESCRIPTION Make a debugfs dump with the per pool and global information. SEE ALSO ...
ttm_pool_drop_backed_up(9)
NAME ttm_pool_drop_backed_up - Release content of a swapped-out struct ttm_tt SYNOPSIS void ttm_pool_drop_backed_up (struct ttm_tt *tt ); ARGUMENTS tt The struct ttm_tt. DESCRIPTION Release handles with associated content or any remaining pages of a backed-up struct ttm_tt. SEE ALSO Kernel file ./drivers/...
ttm_pool_fini(9)
NAME ttm_pool_fini - Cleanup a pool SYNOPSIS void ttm_pool_fini (struct ttm_pool *pool ); ARGUMENTS pool the pool to clean up DESCRIPTION Free all pages in the pool and unregister the types from the global shrinker. SEE ALSO Kernel file ./drivers/gpu/drm/ttm/ttm_pool.c struct ttm_pool_dma(9), struct ttm_poo...