STRUCT DPU_HW_LM_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct dpu_hw_lm_ops β€” Kernel API Manual energy ✨

Okay bestie, welcome to the struct dpu_hw_lm_ops(9) page, straight outta the Kernel API Manual 🫢 This is the interface to the mixer Hw driver functions, and it is very much giving β€œcall me after the clocks are enabled” ✨

⚠️ The assumption is these functions will be called after clocks are enabled. So clock first, then functions β€” no cap πŸ’€

🌸 NAME 🌸

struct dpu_hw_lm_ops β€” Interface to the mixer Hw driver functions. Assumption is these functions will be called after clocks are enabled πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

Here’s the struct, exactly as it appears β€” no edits, no β€œfixing” the line wraps, okay? πŸ’…

struct dpu_hw_lm_ops {
    void (*setup_mixer_out)(struct dpu_hw_mixer *ctx, struct
dpu_hw_mixer_cfg *cfg);
    void (*setup_blend_config)(struct dpu_hw_mixer *ctx, uint32_t stage,
u16 fg_alpha, u16 bg_alpha, uint32_t blend_op);
    void (*setup_alpha_out)(struct dpu_hw_mixer *ctx, uint32_t
mixer_op);
    int (*clear_all_blendstages)(struct dpu_hw_mixer *ctx);
    int (*setup_blendstage)(struct dpu_hw_mixer *ctx, enum dpu_lm lm,
struct dpu_hw_stage_cfg *stage_cfg);
    void (*setup_border_color)(struct dpu_hw_mixer *ctx, struct
dpu_mdss_color *color, u8 border_en);
    void (*setup_misr)(struct dpu_hw_mixer *ctx);
    int (*collect_misr)(struct dpu_hw_mixer *ctx, u32 *misr_value);
};

πŸ’… Members πŸ’…

  • setup_mixer_out β€” Sets up the mixer output width and height, plus the border color if it’s enabled ✨
  • setup_blend_config β€” Alpha blending configuration for the specified stage πŸ’–
  • setup_alpha_out β€” Alpha color component selection from either fg or bg πŸ‘‘
  • clear_all_blendstages β€” Clear layer mixer to pipe configuration. ctx is the mixer ctx pointer. Returns: 0 on success or -error 😭
  • setup_blendstage β€” Configure layer mixer to pipe configuration. ctx is the mixer ctx pointer, lm is the layer mixer enumeration, and stage_cfg is the blend stage configuration. Returns: 0 on success or -error πŸ”₯
  • setup_border_color β€” enable/disable border color 🌈
  • setup_misr β€” Enable/disable MISR ⭐
  • collect_misr β€” Read MISR signature πŸ¦‹

🌈 SEE ALSO 🌈


So yeah, that’s the whole vibe: source ./drivers/gpu/drm/msm/disp/dpu1, October 2026, and this iconic little page is struct dpu_hw_lm_ops(9) β€” bye bestie, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from