STRUCT ATMEL_HLCDC_PLANE_STATE(9)
π struct atmel_hlcdc_plane_state(9) β Kernel API Manual, but make it cute π
okay so bestie, welcome to the Kernel API Manual β¨ we're talking about the one and only struct atmel_hlcdc_plane_state β literally the Atmel HLCDC Plane state structure, no cap π
πΈ NAME πΈ
struct atmel_hlcdc_plane_state β the Atmel HLCDC Plane state structure. that's it, that's the vibe π
β¨ SYNOPSIS β¨
here's the whole glow-up, every field exactly as it lives, don't touch a single character:
struct atmel_hlcdc_plane_state {
struct drm_plane_state base;
int crtc_x;
int crtc_y;
unsigned int crtc_w;
unsigned int crtc_h;
uint32_t src_x;
uint32_t src_y;
uint32_t src_w;
uint32_t src_h;
int disc_x;
int disc_y;
int disc_w;
int disc_h;
int ahb_id;
int bpp[ATMEL_HLCDC_LAYER_MAX_PLANES];
unsigned int offsets[ATMEL_HLCDC_LAYER_MAX_PLANES];
int xstride[ATMEL_HLCDC_LAYER_MAX_PLANES];
int pstride[ATMEL_HLCDC_LAYER_MAX_PLANES];
int nplanes;
struct atmel_hlcdc_dma_channel_dscr *dscrs[ATMEL_HLCDC_LAYER_MAX_PLANES];
};
π¦ Members π¦
time for the member-by-member vibe check, and yes we're doing all of them, iykyk π
baseβ the DRM plane state, the main character it's built on top of πcrtc_xβ x position of the plane relative to the CRTC, lowkey where it sits horizontallycrtc_yβ y position of the plane relative to the CRTC, aka the vertical situationcrtc_wβ visible width of the plane, the width u actually see πΈcrtc_hβ visible height of the plane, tall queen energysrc_xβ x buffer position, where we're reading from bbsrc_yβ y buffer position, same but vertical β¨src_wβ buffer width, the whole width of the sourcesrc_hβ buffer height, the whole height of the sourcedisc_xβ x discard position, literally throwing x away πdisc_yβ y discard position, bye bye ydisc_wβ discard width, how much width we're discardingdisc_hβ discard height, how much height we're discardingahb_idβ AHB identification number, its little ID card πbppβ bytes per pixel, deduced frompixel_format(it's giving detective work π)offsetsβ offsets to apply to the GEM buffers, gotta shift 'em into placexstrideβ value to add to the pixel pointer between each line, horizontal stride bestiepstrideβ value to add to the pixel pointer between each pixel, pixel-to-pixel strut πnplanesβ number of planes, deduced frompixel_format(again with the deduction, obsessed)dscrsβ DMA descriptors, the wholestruct atmel_hlcdc_dma_channel_dscr *situation, slay
π«Ά SEE ALSO π«Ά
go read the kernel file, it's literally right here:
./drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
and that's the whole page, bestie π no notes, ate and left no crumbs π
fr fr this came out of./drivers/gpu/drm/atmel-hlcdcin October 2026, and the page itself isstruct atmel..._plane_state(9)β periodt ππ§
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms