drivers/media/platform/renesas/vsp1/vsp1_rwpf.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/renesas/vsp1/vsp1_rwpf.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/renesas/vsp1/vsp1_rwpf.h- Extension
.h- Size
- 1902 bytes
- Lines
- 89
- 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/spinlock.hmedia/media-entity.hmedia/v4l2-ctrls.hmedia/v4l2-subdev.hvsp1.hvsp1_entity.h
Detected Declarations
struct v4l2_ctrlstruct vsp1_dl_managerstruct vsp1_rwpfstruct vsp1_videostruct vsp1_rwpf_memorystruct vsp1_rwpf
Annotated Snippet
struct vsp1_rwpf_memory {
dma_addr_t addr[3];
};
struct vsp1_rwpf {
struct vsp1_entity entity;
struct v4l2_ctrl_handler ctrls;
struct vsp1_video *video;
struct v4l2_pix_format_mplane format;
const struct vsp1_format_info *fmtinfo;
unsigned int brx_input;
unsigned int alpha;
u32 mult_alpha;
u32 outfmt;
struct {
spinlock_t lock;
struct {
struct v4l2_ctrl *vflip;
struct v4l2_ctrl *hflip;
struct v4l2_ctrl *rotate;
} ctrls;
unsigned int pending;
unsigned int active;
bool rotate;
} flip;
struct vsp1_rwpf_memory mem;
bool writeback;
struct vsp1_dl_manager *dlm;
};
static inline struct vsp1_rwpf *to_rwpf(struct v4l2_subdev *subdev)
{
return container_of(subdev, struct vsp1_rwpf, entity.subdev);
}
static inline struct vsp1_rwpf *entity_to_rwpf(struct vsp1_entity *entity)
{
return container_of(entity, struct vsp1_rwpf, entity);
}
struct vsp1_rwpf *vsp1_rpf_create(struct vsp1_device *vsp1, unsigned int index);
struct vsp1_rwpf *vsp1_wpf_create(struct vsp1_device *vsp1, unsigned int index);
void vsp1_wpf_stop(struct vsp1_rwpf *wpf);
int vsp1_rwpf_init_ctrls(struct vsp1_rwpf *rwpf, unsigned int ncontrols);
extern const struct v4l2_subdev_ops vsp1_rwpf_subdev_ops;
#endif /* __VSP1_RWPF_H__ */
Annotation
- Immediate include surface: `linux/spinlock.h`, `media/media-entity.h`, `media/v4l2-ctrls.h`, `media/v4l2-subdev.h`, `vsp1.h`, `vsp1_entity.h`.
- Detected declarations: `struct v4l2_ctrl`, `struct vsp1_dl_manager`, `struct vsp1_rwpf`, `struct vsp1_video`, `struct vsp1_rwpf_memory`, `struct vsp1_rwpf`.
- 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.