drivers/gpu/drm/arm/display/include/malidp_utils.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/arm/display/include/malidp_utils.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/arm/display/include/malidp_utils.h
Extension
.h
Size
975 bytes
Lines
44
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 malidp_range {
	u32 start;
	u32 end;
};

static inline void set_range(struct malidp_range *rg, u32 start, u32 end)
{
	rg->start = start;
	rg->end   = end;
}

static inline bool malidp_in_range(struct malidp_range *rg, u32 v)
{
	return (v >= rg->start) && (v <= rg->end);
}

#endif /* _MALIDP_UTILS_ */

Annotation

Implementation Notes