STRUCT MTK_JPEGDEC_COMP_DEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct mtk_jpegdec_comp_dev(9) ✨

okay so bestie, welcome to the Kernel API Manual β€” this is the page for struct mtk_jpegdec_comp_dev, and we're gonna get you so comfy with it πŸ’–


🌸 NAME 🌸

struct mtk_jpegdec_comp_dev β€” JPEG COREX abstraction πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct mtk_jpegdec_comp_dev {
    struct device *dev;
    struct platform_device *plat_dev;
    void __iomem *reg_base;
    struct mtk_jpeg_dev *master_dev;
    struct mtk_jpegdec_clk jdec_clk;
    int jpegdec_irq;
    struct delayed_work job_timeout_work;
    struct mtk_jpeg_hw_param hw_param;
    enum mtk_jpeg_hw_state hw_state;
    spinlock_t hw_lock;
 };

like, that's the whole shape of it. no cap, just read it top to bottom and it lowkey starts making sense πŸ‘‘


πŸ’… Members πŸ’…

okay this is the part where we go member by member, bestie β€” every single one, no skipping πŸ™ˆ

  • dev β€” the JPEG device ✨
  • plat_dev β€” the platform device data 🌈
  • reg_base β€” the JPEG registers mapping, i.e. where the registers live in memory πŸ’–
  • master_dev β€” the mtk_jpeg_dev device πŸ‘‘
  • jdec_clk β€” an mtk_jpegdec_clk πŸŽ€
  • jpegdec_irq β€” the jpeg decode irq num πŸ”₯
  • job_timeout_work β€” the decode timeout workqueue ⏰ (she's a struct delayed_work, very demure)
  • hw_param β€” the jpeg decode hw parameters 🧚
  • hw_state β€” records the hw state ⭐
  • hw_lock β€” a spinlock protecting hw πŸ”’ literally the bouncer at the club

🌟 SEE ALSO 🌟

go look at the kernel file ./drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.h, plus the enum mtk_jpeg_ctx_state(9) β€” and the whole friend group is here too, bestie 🫢:

  • struct mtk_jpeg_variant(9)
  • struct mtk_jpegenc_clk(9)
  • struct mtk_jpegdec_clk(9)
  • struct mtk_jpegenc_comp_dev(9)
  • struct mtk_jpeg_dev(9)
  • struct mtk_jpeg_fmt(9)
  • struct mtk_jpeg_q_data(9)
  • struct mtk_jpeg_ctx(9)

πŸ’€ reminder: hw_lock is a spinlock protecting hw β€” that's its whole job, so don't be weird about it, okay?

and that's the page!! mwah πŸ’‹ sign-off time: this one's sourced from ./drivers/media/platform/media..., dated October 2026, and it's literally about struct mtk_jpegdec_comp_dev(9) β€” periodt πŸŽ€πŸ’œπŸ¦‹

πŸ“¦ where this page comes from