STRUCT MIPI_DBI_DEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct mipi_dbi_dev(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual ✨ β€” today's main character is struct mipi_dbi_dev, aka the MIPI DBI device struct itself. yes it's a struct, yes it's iconic, let's get into it πŸ’…

✨ NAME ✨

struct mipi_dbi_dev β€” the MIPI DBI device πŸ’–

✨ SYNOPSIS ✨

struct mipi_dbi_dev {
    struct drm_device drm;
    struct drm_display_mode mode;
    u32 pixel_format;
    u16 *tx_buf;
    unsigned int rotation;
    unsigned int left_offset;
    unsigned int top_offset;
    struct backlight_device *backlight;
    struct regulator *regulator;
    struct regulator *io_regulator;
    struct mipi_dbi dbi;
    void *driver_private;
 };

🌸 Members 🌸

like, every single field, no skips, we're doing all of them 🫢

  • drm β€” the DRM device πŸ‘‘
  • mode β€” the fixed display mode. it's giving "locked in" ✨
  • pixel_format β€” the native pixel format (DRM_FORMAT_) 🎨
  • tx_buf β€” the buffer used for transfer (it copies the clip rect area, fyi) πŸ“¦
  • rotation β€” the initial rotation, in degrees, Counter Clock Wise πŸ”„
  • left_offset β€” the horizontal offset of the display relative to the controller's driver array ↔️
  • top_offset β€” the vertical offset of the display relative to the controller's driver array ↕️
  • backlight β€” the backlight device (optional) πŸ’‘
  • regulator β€” the power regulator (Vdd) (optional) ⚑
  • io_regulator β€” the I/O power regulator (Vddi) (optional) πŸ”Œ
  • dbi β€” the MIPI DBI interface πŸ¦‹
  • driver_private β€” driver private data. and ngl, this one's necessary for drivers with private data, because devm_drm_dev_alloc literally can't allocate structures that embed a structure which then again embeds drm_device 😭 like the nesting is real, iykyk

πŸ’œ SEE ALSO πŸ’œ

go read those next bestie, slay 🧚


and that's the whole page fr fr πŸ’€ β€” brought to you by ./include/drm, dated October 2026, from the Kernel API Manual, all about struct mipi_dbi_dev(9). ate and left no crumbs πŸŒˆβ­πŸ’…

πŸ“¦ where this page comes from