drivers/media/platform/qcom/venus/hfi_platform_v6.c
Source file repositories/reference/linux-study-clean/drivers/media/platform/qcom/venus/hfi_platform_v6.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/qcom/venus/hfi_platform_v6.c- Extension
.c- Size
- 14532 bytes
- Lines
- 348
- 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
core.hhfi_platform.h
Detected Declarations
function get_codecsfunction get_codec_freq_datafunction codec_vpp_freqfunction codec_vsp_freqfunction codec_lp_freq
Annotated Snippet
if (data[i].pixfmt == pixfmt && data[i].session_type == session_type) {
found = &data[i];
break;
}
}
return found;
}
static unsigned long codec_vpp_freq(struct venus_core *core, u32 session_type,
u32 codec)
{
const struct hfi_platform_codec_freq_data *data;
data = get_codec_freq_data(core, session_type, codec);
if (data)
return data->vpp_freq;
return 0;
}
static unsigned long codec_vsp_freq(struct venus_core *core, u32 session_type,
u32 codec)
{
const struct hfi_platform_codec_freq_data *data;
data = get_codec_freq_data(core, session_type, codec);
if (data)
return data->vsp_freq;
return 0;
}
static unsigned long codec_lp_freq(struct venus_core *core, u32 session_type,
u32 codec)
{
const struct hfi_platform_codec_freq_data *data;
data = get_codec_freq_data(core, session_type, codec);
if (data)
return data->low_power_freq;
return 0;
}
const struct hfi_platform hfi_plat_v6 = {
.codec_vpp_freq = codec_vpp_freq,
.codec_vsp_freq = codec_vsp_freq,
.codec_lp_freq = codec_lp_freq,
.codecs = get_codecs,
.capabilities = get_capabilities,
.bufreq = hfi_plat_bufreq_v6,
};
Annotation
- Immediate include surface: `core.h`, `hfi_platform.h`.
- Detected declarations: `function get_codecs`, `function get_codec_freq_data`, `function codec_vpp_freq`, `function codec_vsp_freq`, `function codec_lp_freq`.
- 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.