drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c- Extension
.c- Size
- 11552 bytes
- Lines
- 427
- Domain
- Driver Families
- Bucket
- drivers/staging
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
hmm.hassert_support.hia_css_debug.hia_css_sdis_types.hsdis/common/ia_css_sdis_common.host.hia_css_sdis.host.h
Detected Declarations
function fill_rowfunction ia_css_sdis_horicoef_vmem_encodefunction ia_css_sdis_vertcoef_vmem_encodefunction ia_css_sdis_horiproj_encodefunction ia_css_sdis_vertproj_encodefunction ia_css_get_isp_dis_coefficientsfunction ia_css_sdis_hor_coef_tbl_bytesfunction ia_css_sdis_ver_coef_tbl_bytesfunction ia_css_sdis_init_infofunction ia_css_sdis_clear_coefficientsfunction ia_css_get_dvs_statisticsfunction ia_css_translate_dvs_statisticsfunction ia_css_isp_dvs_statistics_allocatefunction ia_css_isp_dvs_statistics_map_allocatefunction ia_css_isp_dvs_statistics_map_freefunction ia_css_isp_dvs_statistics_freefunction ia_css_sdis_horicoef_debug_dtracefunction ia_css_sdis_vertcoef_debug_dtracefunction ia_css_sdis_horiproj_debug_dtracefunction ia_css_sdis_vertproj_debug_dtrace
Annotated Snippet
if (!me->data_ptr) {
IA_CSS_LOG("cannot allocate memory");
goto err;
}
}
base_ptr = me->data_ptr;
me->size = isp_stats->size;
/* GCC complains when we assign a char * to a void *, so these
* casts are necessary unfortunately. */
me->hor_proj = (void *)base_ptr;
me->ver_proj = (void *)(base_ptr + isp_stats->hor_size);
return me;
err:
kvfree(me);
return NULL;
}
void
ia_css_isp_dvs_statistics_map_free(struct ia_css_isp_dvs_statistics_map *me)
{
if (me) {
if (me->data_allocated)
kvfree(me->data_ptr);
kvfree(me);
}
}
void
ia_css_isp_dvs_statistics_free(struct ia_css_isp_dvs_statistics *me)
{
if (me) {
hmm_free(me->data_ptr);
kvfree(me);
}
}
void ia_css_sdis_horicoef_debug_dtrace(
const struct ia_css_dvs_coefficients *config, unsigned int level)
{
(void)config;
(void)level;
}
void ia_css_sdis_vertcoef_debug_dtrace(
const struct ia_css_dvs_coefficients *config, unsigned int level)
{
(void)config;
(void)level;
}
void ia_css_sdis_horiproj_debug_dtrace(
const struct ia_css_dvs_coefficients *config, unsigned int level)
{
(void)config;
(void)level;
}
void ia_css_sdis_vertproj_debug_dtrace(
const struct ia_css_dvs_coefficients *config, unsigned int level)
{
(void)config;
(void)level;
}
Annotation
- Immediate include surface: `hmm.h`, `assert_support.h`, `ia_css_debug.h`, `ia_css_sdis_types.h`, `sdis/common/ia_css_sdis_common.host.h`, `ia_css_sdis.host.h`.
- Detected declarations: `function fill_row`, `function ia_css_sdis_horicoef_vmem_encode`, `function ia_css_sdis_vertcoef_vmem_encode`, `function ia_css_sdis_horiproj_encode`, `function ia_css_sdis_vertproj_encode`, `function ia_css_get_isp_dis_coefficients`, `function ia_css_sdis_hor_coef_tbl_bytes`, `function ia_css_sdis_ver_coef_tbl_bytes`, `function ia_css_sdis_init_info`, `function ia_css_sdis_clear_coefficients`.
- Atlas domain: Driver Families / drivers/staging.
- 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.