drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_dbgfs.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_dbgfs.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_dbgfs.h- Extension
.h- Size
- 1934 bytes
- Lines
- 75
- Domain
- Driver Families
- Bucket
- drivers/media
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct mtk_vcodec_dec_devstruct mtk_vcodec_dec_ctxstruct mtk_vcodec_dbgfs_inststruct mtk_vcodec_dbgfsenum mtk_vdec_dbgfs_log_indexfunction mtk_vcodec_dbgfs_create
Annotated Snippet
struct mtk_vcodec_dbgfs_inst {
struct list_head node;
struct mtk_vcodec_dec_ctx *vcodec_ctx;
int inst_id;
};
/**
* struct mtk_vcodec_dbgfs - dbgfs information
* @dbgfs_head: list head used to link each instance
* @vcodec_root: vcodec dbgfs entry
* @dbgfs_lock: dbgfs lock used to protect dbgfs_buf
* @dbgfs_buf: dbgfs buf used to store dbgfs cmd
* @buf_size: buffer size of dbgfs
* @inst_count: the count of total instance
*/
struct mtk_vcodec_dbgfs {
struct list_head dbgfs_head;
struct dentry *vcodec_root;
struct mutex dbgfs_lock;
char dbgfs_buf[1024];
int buf_size;
int inst_count;
};
#if defined(CONFIG_DEBUG_FS)
void mtk_vcodec_dbgfs_create(struct mtk_vcodec_dec_ctx *ctx);
void mtk_vcodec_dbgfs_remove(struct mtk_vcodec_dec_dev *vcodec_dev, int ctx_id);
void mtk_vcodec_dbgfs_init(void *vcodec_dev, bool is_encode);
void mtk_vcodec_dbgfs_deinit(struct mtk_vcodec_dbgfs *dbgfs);
#else
static inline void mtk_vcodec_dbgfs_create(struct mtk_vcodec_dec_ctx *ctx)
{
}
static inline void mtk_vcodec_dbgfs_remove(struct mtk_vcodec_dec_dev *vcodec_dev, int ctx_id)
{
}
static inline void mtk_vcodec_dbgfs_init(void *vcodec_dev, bool is_encode)
{
}
static inline void mtk_vcodec_dbgfs_deinit(struct mtk_vcodec_dbgfs *dbgfs)
{
}
#endif
#endif
Annotation
- Detected declarations: `struct mtk_vcodec_dec_dev`, `struct mtk_vcodec_dec_ctx`, `struct mtk_vcodec_dbgfs_inst`, `struct mtk_vcodec_dbgfs`, `enum mtk_vdec_dbgfs_log_index`, `function mtk_vcodec_dbgfs_create`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.