drivers/staging/media/atomisp/pci/runtime/frame/interface/ia_css_frame.h
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/runtime/frame/interface/ia_css_frame.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/runtime/frame/interface/ia_css_frame.h- Extension
.h- Size
- 4218 bytes
- Lines
- 135
- 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
ia_css_types.hia_css_frame_format.hia_css_frame_public.hdma.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef __IA_CSS_FRAME_H__
#define __IA_CSS_FRAME_H__
/* ISP2401 */
#include <ia_css_types.h>
#include <ia_css_frame_format.h>
#include <ia_css_frame_public.h>
#include "dma.h"
/*********************************************************************
**** Frame INFO APIs
**********************************************************************/
/* @brief Sets the given width and alignment to the frame info
*
* @param
* @param[in] info The info to which parameters would set
* @param[in] width The width to be set to info
* @param[in] aligned The aligned to be set to info
* @return
*/
void ia_css_frame_info_set_width(struct ia_css_frame_info *info,
unsigned int width,
unsigned int min_padded_width);
/* @brief Sets the given format to the frame info
*
* @param
* @param[in] info The info to which parameters would set
* @param[in] format The format to be set to info
* @return
*/
void ia_css_frame_info_set_format(struct ia_css_frame_info *info,
enum ia_css_frame_format format);
/* @brief Sets the frame info with the given parameters
*
* @param
* @param[in] info The info to which parameters would set
* @param[in] width The width to be set to info
* @param[in] height The height to be set to info
* @param[in] format The format to be set to info
* @param[in] aligned The aligned to be set to info
* @return
*/
void ia_css_frame_info_init(struct ia_css_frame_info *info,
unsigned int width,
unsigned int height,
enum ia_css_frame_format format,
unsigned int aligned);
/* @brief Checks whether 2 frame infos has the same resolution
*
* @param
* @param[in] frame_a The first frame to be compared
* @param[in] frame_b The second frame to be compared
* @return Returns true if the frames are equal
*/
bool ia_css_frame_info_is_same_resolution(
const struct ia_css_frame_info *info_a,
const struct ia_css_frame_info *info_b);
/* @brief Check the frame info is valid
*
* @param
* @param[in] info The frame attributes to be initialized
* @return The error code.
*/
int ia_css_frame_check_info(const struct ia_css_frame_info *info);
/*********************************************************************
**** Frame APIs
**********************************************************************/
/* @brief Initialize the plane depending on the frame type
*
* @param
* @param[in] frame The frame attributes to be initialized
* @return The error code.
*/
int ia_css_frame_init_planes(struct ia_css_frame *frame);
/* @brief Free an array of frames
*
* @param
* @param[in] num_frames The number of frames to be freed in the array
* @param[in] **frames_array The array of frames to be removed
* @return
*/
void ia_css_frame_free_multiple(unsigned int num_frames,
Annotation
- Immediate include surface: `ia_css_types.h`, `ia_css_frame_format.h`, `ia_css_frame_public.h`, `dma.h`.
- 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.