drivers/media/platform/renesas/vsp1/vsp1_histo.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/renesas/vsp1/vsp1_histo.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/renesas/vsp1/vsp1_histo.h- Extension
.h- Size
- 1850 bytes
- Lines
- 76
- 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
linux/list.hlinux/mutex.hlinux/spinlock.hmedia/media-entity.hmedia/v4l2-dev.hmedia/videobuf2-v4l2.hvsp1_entity.h
Detected Declarations
struct vsp1_devicestruct vsp1_histogram_bufferstruct vsp1_histogram
Annotated Snippet
struct vsp1_histogram_buffer {
struct vb2_v4l2_buffer buf;
struct list_head queue;
void *addr;
};
struct vsp1_histogram {
struct vsp1_entity entity;
struct video_device video;
struct media_pad pad;
size_t data_size;
u32 meta_format;
struct mutex lock;
struct vb2_queue queue;
spinlock_t irqlock;
struct list_head irqqueue;
wait_queue_head_t wait_queue;
bool readout;
};
static inline struct vsp1_histogram *vdev_to_histo(struct video_device *vdev)
{
return container_of(vdev, struct vsp1_histogram, video);
}
static inline struct vsp1_histogram *subdev_to_histo(struct v4l2_subdev *subdev)
{
return container_of(subdev, struct vsp1_histogram, entity.subdev);
}
int vsp1_histogram_init(struct vsp1_device *vsp1, struct vsp1_histogram *histo,
enum vsp1_entity_type type, const char *name,
const struct vsp1_entity_operations *ops,
const unsigned int *formats, unsigned int num_formats,
size_t data_size, u32 meta_format);
void vsp1_histogram_destroy(struct vsp1_entity *entity);
struct vsp1_histogram_buffer *
vsp1_histogram_buffer_get(struct vsp1_histogram *histo);
void vsp1_histogram_buffer_complete(struct vsp1_histogram *histo,
struct vsp1_histogram_buffer *buf,
size_t size);
#endif /* __VSP1_HISTO_H__ */
Annotation
- Immediate include surface: `linux/list.h`, `linux/mutex.h`, `linux/spinlock.h`, `media/media-entity.h`, `media/v4l2-dev.h`, `media/videobuf2-v4l2.h`, `vsp1_entity.h`.
- Detected declarations: `struct vsp1_device`, `struct vsp1_histogram_buffer`, `struct vsp1_histogram`.
- 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.