drivers/input/misc/iqs269a.c
Source file repositories/reference/linux-study-clean/drivers/input/misc/iqs269a.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/input/misc/iqs269a.c- Extension
.c- Size
- 50443 bytes
- Lines
- 1977
- Domain
- Driver Families
- Bucket
- drivers/input
- 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.
- 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/bits.hlinux/completion.hlinux/delay.hlinux/device.hlinux/err.hlinux/i2c.hlinux/input.hlinux/interrupt.hlinux/kernel.hlinux/mod_devicetable.hlinux/module.hlinux/mutex.hlinux/property.hlinux/regmap.hlinux/slab.h
Detected Declarations
struct iqs269_switch_descstruct iqs269_event_descstruct iqs269_ver_infostruct iqs269_ch_regstruct iqs269_sys_regstruct iqs269_flagsstruct iqs269_privateenum iqs269_local_cap_sizeenum iqs269_st_offsenum iqs269_th_offsenum iqs269_event_idenum iqs269_slider_idenum iqs269_gesture_idfunction iqs269_slider_typefunction iqs269_ati_mode_setfunction iqs269_ati_mode_getfunction iqs269_ati_base_setfunction iqs269_ati_base_getfunction iqs269_ati_target_setfunction iqs269_ati_target_getfunction iqs269_parse_maskfunction iqs269_parse_chanfunction iqs269_parse_propfunction device_for_each_child_node_scopedfunction iqs269_dev_initfunction iqs269_input_initfunction iqs269_reportfunction iqs269_irqfunction counts_showfunction hall_bin_showfunction hall_enable_showfunction hall_enable_storefunction ch_number_showfunction ch_number_storefunction rx_enable_showfunction rx_enable_storefunction ati_mode_showfunction ati_mode_storefunction ati_base_showfunction ati_base_storefunction ati_target_showfunction ati_target_storefunction ati_trigger_showfunction ati_trigger_storefunction iqs269_probefunction iqs269_general_getfunction iqs269_suspendfunction iqs269_resume
Annotated Snippet
struct iqs269_switch_desc {
unsigned int code;
bool enabled;
};
struct iqs269_event_desc {
const char *name;
enum iqs269_st_offs st_offs;
enum iqs269_th_offs th_offs;
bool dir_up;
u8 mask;
};
static const struct iqs269_event_desc iqs269_events[] = {
[IQS269_EVENT_PROX_DN] = {
.name = "event-prox",
.st_offs = IQS269_ST_OFFS_PROX,
.th_offs = IQS269_TH_OFFS_PROX,
.mask = IQS269_EVENT_MASK_PROX,
},
[IQS269_EVENT_PROX_UP] = {
.name = "event-prox-alt",
.st_offs = IQS269_ST_OFFS_PROX,
.th_offs = IQS269_TH_OFFS_PROX,
.dir_up = true,
.mask = IQS269_EVENT_MASK_PROX,
},
[IQS269_EVENT_TOUCH_DN] = {
.name = "event-touch",
.st_offs = IQS269_ST_OFFS_TOUCH,
.th_offs = IQS269_TH_OFFS_TOUCH,
.mask = IQS269_EVENT_MASK_TOUCH,
},
[IQS269_EVENT_TOUCH_UP] = {
.name = "event-touch-alt",
.st_offs = IQS269_ST_OFFS_TOUCH,
.th_offs = IQS269_TH_OFFS_TOUCH,
.dir_up = true,
.mask = IQS269_EVENT_MASK_TOUCH,
},
[IQS269_EVENT_DEEP_DN] = {
.name = "event-deep",
.st_offs = IQS269_ST_OFFS_DEEP,
.th_offs = IQS269_TH_OFFS_DEEP,
.mask = IQS269_EVENT_MASK_DEEP,
},
[IQS269_EVENT_DEEP_UP] = {
.name = "event-deep-alt",
.st_offs = IQS269_ST_OFFS_DEEP,
.th_offs = IQS269_TH_OFFS_DEEP,
.dir_up = true,
.mask = IQS269_EVENT_MASK_DEEP,
},
};
struct iqs269_ver_info {
u8 prod_num;
u8 sw_num;
u8 hw_num;
u8 fw_num;
} __packed;
struct iqs269_ch_reg {
u8 rx_enable;
u8 tx_enable;
__be16 engine_a;
__be16 engine_b;
__be16 ati_comp;
u8 thresh[3];
u8 hyst;
u8 assoc_select;
u8 assoc_weight;
} __packed;
struct iqs269_sys_reg {
__be16 general;
u8 active;
u8 filter;
u8 reseed;
u8 event_mask;
u8 rate_np;
u8 rate_lp;
u8 rate_ulp;
u8 timeout_pwr;
u8 timeout_rdy;
u8 timeout_lta;
__be16 misc_a;
__be16 misc_b;
u8 blocking;
u8 padding;
Annotation
- Immediate include surface: `linux/bits.h`, `linux/completion.h`, `linux/delay.h`, `linux/device.h`, `linux/err.h`, `linux/i2c.h`, `linux/input.h`, `linux/interrupt.h`.
- Detected declarations: `struct iqs269_switch_desc`, `struct iqs269_event_desc`, `struct iqs269_ver_info`, `struct iqs269_ch_reg`, `struct iqs269_sys_reg`, `struct iqs269_flags`, `struct iqs269_private`, `enum iqs269_local_cap_size`, `enum iqs269_st_offs`, `enum iqs269_th_offs`.
- Atlas domain: Driver Families / drivers/input.
- Implementation status: source implementation candidate.
- 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.