drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c- Extension
.c- Size
- 4638 bytes
- Lines
- 217
- 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
bus.h
Detected Declarations
function filesfunction nvkm_i2c_drive_sdafunction nvkm_i2c_sense_sclfunction nvkm_i2c_sense_sdafunction nvkm_i2c_delayfunction nvkm_i2c_raise_sclfunction i2c_startfunction i2c_stopfunction i2c_bitwfunction i2c_bitrfunction nvkm_i2c_get_bytefunction nvkm_i2c_put_bytefunction i2c_addrfunction nvkm_i2c_bit_xferfunction nvkm_i2c_bit_xfer
Annotated Snippet
if (msg->flags & I2C_M_RD) {
while (!ret && remaining--)
ret = nvkm_i2c_get_byte(bus, ptr++, !remaining);
} else {
while (!ret && remaining--)
ret = nvkm_i2c_put_byte(bus, *ptr++);
}
msg++;
}
i2c_stop(bus);
return (ret < 0) ? ret : num;
}
#else
int
nvkm_i2c_bit_xfer(struct nvkm_i2c_bus *bus, struct i2c_msg *msgs, int num)
{
return -ENODEV;
}
#endif
Annotation
- Immediate include surface: `bus.h`.
- Detected declarations: `function files`, `function nvkm_i2c_drive_sda`, `function nvkm_i2c_sense_scl`, `function nvkm_i2c_sense_sda`, `function nvkm_i2c_delay`, `function nvkm_i2c_raise_scl`, `function i2c_start`, `function i2c_stop`, `function i2c_bitw`, `function i2c_bitr`.
- 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.