drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/sun4i/sun8i_vi_scaler.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/sun4i/sun8i_vi_scaler.c- Extension
.c- Size
- 40682 bytes
- Lines
- 1003
- Domain
- Driver Families
- Bucket
- drivers/gpu
- 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
sun8i_vi_scaler.h
Detected Declarations
function sun8i_vi_scaler_basefunction sun8i_vi_scaler_coef_indexfunction sun8i_vi_scaler_set_coefffunction sun8i_vi_scaler_enablefunction sun8i_vi_scaler_setup
Annotated Snippet
#include "sun8i_vi_scaler.h"
static const u32 lan3coefftab32_left[480] = {
0x40000000, 0x40fe0000, 0x3ffd0100, 0x3efc0100,
0x3efb0100, 0x3dfa0200, 0x3cf90200, 0x3bf80200,
0x39f70200, 0x37f70200, 0x35f70200, 0x33f70200,
0x31f70200, 0x2ef70200, 0x2cf70200, 0x2af70200,
0x27f70200, 0x24f80100, 0x22f80100, 0x1ef90100,
0x1cf90100, 0x19fa0100, 0x17fa0100, 0x14fb0100,
0x11fc0000, 0x0ffc0000, 0x0cfd0000, 0x0afd0000,
0x08fe0000, 0x05ff0000, 0x03ff0000, 0x02000000,
0x3806fc02, 0x3805fc02, 0x3803fd01, 0x3801fe01,
0x3700fe01, 0x35ffff01, 0x35fdff01, 0x34fc0001,
0x34fb0000, 0x33fa0000, 0x31fa0100, 0x2ff90100,
0x2df80200, 0x2bf80200, 0x2af70200, 0x28f70200,
0x27f70200, 0x24f70300, 0x22f70300, 0x1ff70300,
0x1ef70300, 0x1cf70300, 0x1af70300, 0x18f70300,
0x16f80300, 0x13f80300, 0x11f90300, 0x0ef90300,
0x0efa0200, 0x0cfa0200, 0x0afb0200, 0x08fb0200,
0x320bfa02, 0x3309fa02, 0x3208fb02, 0x3206fb02,
0x3205fb02, 0x3104fc02, 0x3102fc01, 0x3001fd01,
0x3000fd01, 0x2ffffd01, 0x2efefe01, 0x2dfdfe01,
0x2bfcff01, 0x29fcff01, 0x28fbff01, 0x27fa0001,
0x26fa0000, 0x24f90000, 0x22f90100, 0x20f90100,
0x1ff80100, 0x1ef80100, 0x1cf80100, 0x1af80200,
0x18f80200, 0x17f80200, 0x15f80200, 0x12f80200,
0x11f90200, 0x0ff90200, 0x0df90200, 0x0cfa0200,
0x2e0efa01, 0x2f0dfa01, 0x2f0bfa01, 0x2e0afa01,
0x2e09fa01, 0x2e07fb01, 0x2d06fb01, 0x2d05fb01,
0x2c04fb01, 0x2b03fc01, 0x2a02fc01, 0x2a01fc01,
0x2800fd01, 0x28fffd01, 0x26fefd01, 0x25fefe01,
0x24fdfe01, 0x23fcfe01, 0x21fcff01, 0x20fbff01,
0x1efbff01, 0x1efbff00, 0x1cfa0000, 0x1bfa0000,
0x19fa0000, 0x18fa0000, 0x17f90000, 0x15f90100,
0x14f90100, 0x12f90100, 0x11f90100, 0x0ff90100,
0x2b10fa00, 0x2b0ffa00, 0x2b0efa00, 0x2b0cfa00,
0x2b0bfa00, 0x2a0afb01, 0x2a09fb01, 0x2908fb01,
0x2807fb01, 0x2806fb01, 0x2805fb01, 0x2604fc01,
0x2503fc01, 0x2502fc01, 0x2401fc01, 0x2301fc01,
0x2100fd01, 0x21fffd01, 0x21fffd01, 0x20fefd01,
0x1dfefe01, 0x1cfdfe01, 0x1cfdfe00, 0x1bfcfe00,
0x19fcff00, 0x19fbff00, 0x17fbff00, 0x16fbff00,
0x15fbff00, 0x14fb0000, 0x13fa0000, 0x11fa0000,
0x2811fcff, 0x2810fcff, 0x280ffbff, 0x280efbff,
0x270dfb00, 0x270cfb00, 0x270bfb00, 0x260afb00,
0x2609fb00, 0x2508fb00, 0x2507fb00, 0x2407fb00,
0x2406fc00, 0x2305fc00, 0x2204fc00, 0x2203fc00,
0x2103fc00, 0x2002fc00, 0x1f01fd00, 0x1e01fd00,
0x1d00fd00, 0x1dfffd00, 0x1cfffd00, 0x1bfefd00,
0x1afefe00, 0x19fefe00, 0x18fdfe00, 0x17fdfe00,
0x16fdfe00, 0x15fcff00, 0x13fcff00, 0x12fcff00,
0x2512fdfe, 0x2511fdff, 0x2410fdff, 0x240ffdff,
0x240efcff, 0x240dfcff, 0x240dfcff, 0x240cfcff,
0x230bfcff, 0x230afc00, 0x2209fc00, 0x2108fc00,
0x2108fc00, 0x2007fc00, 0x2006fc00, 0x2005fc00,
0x1f05fc00, 0x1e04fc00, 0x1e03fc00, 0x1c03fd00,
0x1c02fd00, 0x1b02fd00, 0x1b01fd00, 0x1a00fd00,
0x1900fd00, 0x1800fd00, 0x17fffe00, 0x16fffe00,
0x16fefe00, 0x14fefe00, 0x13fefe00, 0x13fdfe00,
0x2212fffe, 0x2211fefe, 0x2211fefe, 0x2110fefe,
0x210ffeff, 0x220efdff, 0x210dfdff, 0x210dfdff,
0x210cfdff, 0x210bfdff, 0x200afdff, 0x200afdff,
0x1f09fdff, 0x1f08fdff, 0x1d08fd00, 0x1c07fd00,
0x1d06fd00, 0x1b06fd00, 0x1b05fd00, 0x1c04fd00,
0x1b04fd00, 0x1a03fd00, 0x1a03fd00, 0x1902fd00,
0x1802fd00, 0x1801fd00, 0x1701fd00, 0x1600fd00,
0x1400fe00, 0x1400fe00, 0x14fffe00, 0x13fffe00,
0x201200fe, 0x201100fe, 0x1f11fffe, 0x2010fffe,
0x1f0ffffe, 0x1e0ffffe, 0x1f0efeff, 0x1f0dfeff,
0x1f0dfeff, 0x1e0cfeff, 0x1e0bfeff, 0x1d0bfeff,
0x1d0afeff, 0x1d09fdff, 0x1d09fdff, 0x1c08fdff,
0x1c07fdff, 0x1b07fd00, 0x1b06fd00, 0x1a06fd00,
0x1a05fd00, 0x1805fd00, 0x1904fd00, 0x1804fd00,
0x1703fd00, 0x1703fd00, 0x1602fe00, 0x1502fe00,
0x1501fe00, 0x1401fe00, 0x1301fe00, 0x1300fe00,
0x1c1202fe, 0x1c1102fe, 0x1b1102fe, 0x1c1001fe,
0x1b1001fe, 0x1b0f01ff, 0x1b0e00ff, 0x1b0e00ff,
0x1b0d00ff, 0x1a0d00ff, 0x1a0c00ff, 0x1a0cffff,
0x1a0bffff, 0x1a0bffff, 0x1a0affff, 0x180affff,
0x1909ffff, 0x1809ffff, 0x1808ffff, 0x1808feff,
0x1807feff, 0x1707fe00, 0x1606fe00, 0x1506fe00,
Annotation
- Immediate include surface: `sun8i_vi_scaler.h`.
- Detected declarations: `function sun8i_vi_scaler_base`, `function sun8i_vi_scaler_coef_index`, `function sun8i_vi_scaler_set_coeff`, `function sun8i_vi_scaler_enable`, `function sun8i_vi_scaler_setup`.
- Atlas domain: Driver Families / drivers/gpu.
- 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.