drivers/usb/gadget/udc/net2280.c
Source file repositories/reference/linux-study-clean/drivers/usb/gadget/udc/net2280.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/gadget/udc/net2280.c- Extension
.c- Size
- 102748 bytes
- Lines
- 3883
- Domain
- Driver Families
- Bucket
- drivers/usb
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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 an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/pci.hlinux/dma-mapping.hlinux/kernel.hlinux/delay.hlinux/ioport.hlinux/slab.hlinux/errno.hlinux/init.hlinux/timer.hlinux/list.hlinux/interrupt.hlinux/moduleparam.hlinux/device.hlinux/usb/ch9.hlinux/usb/gadget.hlinux/prefetch.hlinux/io.hlinux/iopoll.hasm/byteorder.hasm/irq.hlinux/unaligned.hnet2280.h
Detected Declarations
function enable_pciirqenbfunction net2280_enablefunction handshakefunction ep_reset_228xfunction readfunction ep_reset_338xfunction net2280_disablefunction net2280_free_requestfunction write_fifofunction infunction out_flushfunction read_fifofunction fill_dma_descfunction spin_stop_dmafunction stop_dmafunction start_queuefunction start_dmafunction BITfunction queue_dmafunction donefunction net2280_queuefunction dma_donefunction scan_dma_completionsfunction restart_dmafunction abort_dmafunction nukefunction net2280_dequeuefunction net2280_set_halt_and_wedgefunction net2280_set_haltfunction net2280_set_wedgefunction net2280_fifo_statusfunction net2280_fifo_flushfunction net2280_get_framefunction net2280_wakeupfunction net2280_set_selfpoweredfunction net2280_pullupfunction usb_endpoint_dir_infunction usb_endpoint_dir_infunction function_showfunction registers_showfunction queues_showfunction list_for_each_entryfunction set_fifo_modefunction defect7374_disable_data_epsfunction defect7374_enable_data_eps_zerofunction driverfunction usb_reset_338xfunction usb_reset
Annotated Snippet
static struct pci_driver net2280_pci_driver = {
.name = driver_name,
.id_table = pci_ids,
.probe = net2280_probe,
.remove = net2280_remove,
.shutdown = net2280_shutdown,
/* FIXME add power management support */
};
module_pci_driver(net2280_pci_driver);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_AUTHOR("David Brownell");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/pci.h`, `linux/dma-mapping.h`, `linux/kernel.h`, `linux/delay.h`, `linux/ioport.h`, `linux/slab.h`, `linux/errno.h`.
- Detected declarations: `function enable_pciirqenb`, `function net2280_enable`, `function handshake`, `function ep_reset_228x`, `function read`, `function ep_reset_338x`, `function net2280_disable`, `function net2280_free_request`, `function write_fifo`, `function in`.
- Atlas domain: Driver Families / drivers/usb.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.