drivers/gpu/drm/msm/disp/mdp_format.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/msm/disp/mdp_format.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/msm/disp/mdp_format.h
Extension
.h
Size
2473 bytes
Lines
82
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

struct msm_format {
	uint32_t pixel_format;
	enum mdp_bpc bpc_g_y, bpc_b_cb, bpc_r_cr;
	enum mdp_bpc_alpha bpc_a;
	u8 element[4];
	enum mdp_fetch_type fetch_type;
	enum mdp_chroma_samp_type chroma_sample;
	bool alpha_enable;
	u8 unpack_count;
	u8 bpp;
	unsigned long flags;
	u8 num_planes;
	enum mdp_fetch_mode fetch_mode;
	u16 tile_height;
};

#define MSM_FORMAT_IS_YUV(X)		((X)->flags & MSM_FORMAT_FLAG_YUV)
#define MSM_FORMAT_IS_DX(X)		((X)->flags & MSM_FORMAT_FLAG_DX)
#define MSM_FORMAT_IS_LINEAR(X)		((X)->fetch_mode == MDP_FETCH_LINEAR)
#define MSM_FORMAT_IS_TILE(X) \
	(((X)->fetch_mode == MDP_FETCH_UBWC) && \
	 !((X)->flags & MSM_FORMAT_FLAG_COMPRESSED))
#define MSM_FORMAT_IS_UBWC(X) \
	(((X)->fetch_mode == MDP_FETCH_UBWC) && \
	 ((X)->flags & MSM_FORMAT_FLAG_COMPRESSED))

#endif

Annotation

Implementation Notes