drivers/staging/media/atomisp/pci/sh_css_metrics.h
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/sh_css_metrics.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/sh_css_metrics.h- Extension
.h- Size
- 1141 bytes
- Lines
- 48
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
type_support.hia_css_types.h
Detected Declarations
struct sh_css_pc_histogramstruct sh_css_binary_metricsstruct ia_css_frame_metricsstruct sh_css_metrics
Annotated Snippet
struct sh_css_pc_histogram {
unsigned int length;
unsigned int *run;
unsigned int *stall;
unsigned int *msink;
};
struct sh_css_binary_metrics {
unsigned int mode;
unsigned int id;
struct sh_css_pc_histogram isp_histogram;
struct sh_css_pc_histogram sp_histogram;
struct sh_css_binary_metrics *next;
};
struct ia_css_frame_metrics {
unsigned int num_frames;
};
struct sh_css_metrics {
struct sh_css_binary_metrics *binary_metrics;
struct ia_css_frame_metrics frame_metrics;
};
extern struct sh_css_metrics sh_css_metrics;
/* includes ia_css_binary.h, which depends on sh_css_metrics.h */
#include "ia_css_types.h"
/* Sample ISP and SP pc and add to histogram */
void sh_css_metrics_enable_pc_histogram(bool enable);
void sh_css_metrics_start_frame(void);
void sh_css_metrics_start_binary(struct sh_css_binary_metrics *metrics);
void sh_css_metrics_sample_pcs(void);
#endif /* _SH_CSS_METRICS_H_ */
Annotation
- Immediate include surface: `type_support.h`, `ia_css_types.h`.
- Detected declarations: `struct sh_css_pc_histogram`, `struct sh_css_binary_metrics`, `struct ia_css_frame_metrics`, `struct sh_css_metrics`.
- 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.