STRUCT MTK_JPEGDEC_COMP_DEV(9)
β¨ 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β themtk_jpeg_devdevice πjdec_clkβ anmtk_jpegdec_clkπjpegdec_irqβ the jpeg decode irq num π₯job_timeout_workβ the decode timeout workqueue β° (she's astruct 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
- 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