drivers/gpu/drm/ttm/ttm_pool_internal.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/ttm/ttm_pool_internal.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/ttm/ttm_pool_internal.h
Extension
.h
Size
600 bytes
Lines
26
Domain
Driver Families
Bucket
drivers/gpu
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _TTM_POOL_INTERNAL_H_
#define _TTM_POOL_INTERNAL_H_

#include <drm/ttm/ttm_allocation.h>
#include <drm/ttm/ttm_pool.h>

static inline bool ttm_pool_uses_dma_alloc(struct ttm_pool *pool)
{
	return pool->alloc_flags & TTM_ALLOCATION_POOL_USE_DMA_ALLOC;
}

static inline bool ttm_pool_uses_dma32(struct ttm_pool *pool)
{
	return pool->alloc_flags & TTM_ALLOCATION_POOL_USE_DMA32;
}

static inline unsigned int ttm_pool_beneficial_order(struct ttm_pool *pool)
{
	return pool->alloc_flags & 0xff;
}

#endif

Annotation

Implementation Notes