Home
last modified time | relevance | path

Searched refs:input_dev (Results 1 – 25 of 530) sorted by relevance

12345678910>>...22

/Linux-v5.10/drivers/hid/
Dhid-udraw-ps3.c69 struct input_dev *joy_input_dev;
70 struct input_dev *touch_input_dev;
71 struct input_dev *pen_input_dev;
72 struct input_dev *accel_input_dev;
264 static int udraw_open(struct input_dev *dev) in udraw_open()
271 static void udraw_close(struct input_dev *dev) in udraw_close()
278 static struct input_dev *allocate_and_setup(struct hid_device *hdev, in allocate_and_setup()
281 struct input_dev *input_dev; in allocate_and_setup() local
283 input_dev = devm_input_allocate_device(&hdev->dev); in allocate_and_setup()
284 if (!input_dev) in allocate_and_setup()
[all …]
Dhid-hyperv.c158 struct mousevsc_dev *input_dev; in mousevsc_alloc_device() local
160 input_dev = kzalloc(sizeof(struct mousevsc_dev), GFP_KERNEL); in mousevsc_alloc_device()
162 if (!input_dev) in mousevsc_alloc_device()
165 input_dev->device = device; in mousevsc_alloc_device()
166 hv_set_drvdata(device, input_dev); in mousevsc_alloc_device()
167 init_completion(&input_dev->wait_event); in mousevsc_alloc_device()
168 input_dev->init_complete = false; in mousevsc_alloc_device()
170 return input_dev; in mousevsc_alloc_device()
254 struct mousevsc_dev *input_dev = hv_get_drvdata(device); in mousevsc_on_receive() local
280 memcpy(&input_dev->protocol_resp, pipe_msg, in mousevsc_on_receive()
[all …]
/Linux-v5.10/include/linux/
Dinput.h131 struct input_dev { struct
155 int (*setkeycode)(struct input_dev *dev, argument
158 int (*getkeycode)(struct input_dev *dev, argument
179 int (*open)(struct input_dev *dev); argument
180 void (*close)(struct input_dev *dev); argument
181 int (*flush)(struct input_dev *dev, struct file *file); argument
182 int (*event)(struct input_dev *dev, unsigned int type, unsigned int code, int value); argument
205 #define to_input_dev(d) container_of(d, struct input_dev, dev) argument
310 bool (*match)(struct input_handler *handler, struct input_dev *dev);
311 …int (*connect)(struct input_handler *handler, struct input_dev *dev, const struct input_device_id …
[all …]
/Linux-v5.10/drivers/input/misc/
Dixp4xx-beeper.c49 static int ixp4xx_spkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) in ixp4xx_spkr_event()
90 struct input_dev *input_dev; in ixp4xx_spkr_probe() local
94 input_dev = input_allocate_device(); in ixp4xx_spkr_probe()
95 if (!input_dev) in ixp4xx_spkr_probe()
98 input_set_drvdata(input_dev, (void *) dev->id); in ixp4xx_spkr_probe()
100 input_dev->name = "ixp4xx beeper", in ixp4xx_spkr_probe()
101 input_dev->phys = "ixp4xx/gpio"; in ixp4xx_spkr_probe()
102 input_dev->id.bustype = BUS_HOST; in ixp4xx_spkr_probe()
103 input_dev->id.vendor = 0x001f; in ixp4xx_spkr_probe()
104 input_dev->id.product = 0x0001; in ixp4xx_spkr_probe()
[all …]
Dm68kspkr.c25 static int m68kspkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) in m68kspkr_event()
48 struct input_dev *input_dev; in m68kspkr_probe() local
51 input_dev = input_allocate_device(); in m68kspkr_probe()
52 if (!input_dev) in m68kspkr_probe()
55 input_dev->name = "m68k beeper"; in m68kspkr_probe()
56 input_dev->phys = "m68k/generic"; in m68kspkr_probe()
57 input_dev->id.bustype = BUS_HOST; in m68kspkr_probe()
58 input_dev->id.vendor = 0x001f; in m68kspkr_probe()
59 input_dev->id.product = 0x0001; in m68kspkr_probe()
60 input_dev->id.version = 0x0100; in m68kspkr_probe()
[all …]
Datlas_btns.c23 static struct input_dev *input_dev; variable
46 input_event(input_dev, EV_MSC, MSC_SCAN, code); in acpi_atlas_button_handler()
47 input_report_key(input_dev, atlas_keymap[code], key_down); in acpi_atlas_button_handler()
48 input_sync(input_dev); in acpi_atlas_button_handler()
66 input_dev = input_allocate_device(); in atlas_acpi_button_add()
67 if (!input_dev) { in atlas_acpi_button_add()
72 input_dev->name = "Atlas ACPI button driver"; in atlas_acpi_button_add()
73 input_dev->phys = "ASIM0000/atlas/input0"; in atlas_acpi_button_add()
74 input_dev->id.bustype = BUS_HOST; in atlas_acpi_button_add()
75 input_dev->keycode = atlas_keymap; in atlas_acpi_button_add()
[all …]
Dsparcspkr.c33 int (*event)(struct input_dev *dev, unsigned int type, unsigned int code, int value);
35 struct input_dev *input_dev; member
66 static int bbc_spkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) in bbc_spkr_event()
104 static int grover_spkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) in grover_spkr_event()
146 struct input_dev *input_dev; in sparcspkr_probe() local
149 input_dev = input_allocate_device(); in sparcspkr_probe()
150 if (!input_dev) in sparcspkr_probe()
153 input_dev->name = state->name; in sparcspkr_probe()
154 input_dev->phys = "sparc/input0"; in sparcspkr_probe()
155 input_dev->id.bustype = BUS_ISA; in sparcspkr_probe()
[all …]
Dpcf50633-input.c27 struct input_dev *input_dev; member
43 input_report_key(input->input_dev, KEY_POWER, 1); in pcf50633_input_irq()
45 input_report_key(input->input_dev, KEY_POWER, 0); in pcf50633_input_irq()
47 input_sync(input->input_dev); in pcf50633_input_irq()
53 struct input_dev *input_dev; in pcf50633_input_probe() local
61 input_dev = input_allocate_device(); in pcf50633_input_probe()
62 if (!input_dev) { in pcf50633_input_probe()
69 input->input_dev = input_dev; in pcf50633_input_probe()
71 input_dev->name = "PCF50633 PMU events"; in pcf50633_input_probe()
72 input_dev->id.bustype = BUS_I2C; in pcf50633_input_probe()
[all …]
Dstpmic1_onkey.c21 struct input_dev *input_dev; member
29 struct input_dev *input_dev = onkey->input_dev; in onkey_falling_irq() local
31 input_report_key(input_dev, KEY_POWER, 1); in onkey_falling_irq()
32 pm_wakeup_event(input_dev->dev.parent, 0); in onkey_falling_irq()
33 input_sync(input_dev); in onkey_falling_irq()
41 struct input_dev *input_dev = onkey->input_dev; in onkey_rising_irq() local
43 input_report_key(input_dev, KEY_POWER, 0); in onkey_rising_irq()
44 pm_wakeup_event(input_dev->dev.parent, 0); in onkey_rising_irq()
45 input_sync(input_dev); in onkey_rising_irq()
54 struct input_dev *input_dev; in stpmic1_onkey_probe() local
[all …]
Dpalmas-pwrbutton.c41 struct input_dev *input_dev; member
65 struct input_dev *input_dev = pwron->input_dev; in palmas_power_button_work() local
72 dev_err(input_dev->dev.parent, in palmas_power_button_work()
76 input_report_key(input_dev, KEY_POWER, 0); in palmas_power_button_work()
77 input_sync(input_dev); in palmas_power_button_work()
95 struct input_dev *input_dev = pwron->input_dev; in pwron_irq() local
97 input_report_key(input_dev, KEY_POWER, 1); in pwron_irq()
98 pm_wakeup_event(input_dev->dev.parent, 0); in pwron_irq()
99 input_sync(input_dev); in pwron_irq()
166 struct input_dev *input_dev; in palmas_pwron_probe() local
[all …]
/Linux-v5.10/drivers/input/tablet/
Dhanwang.c53 struct input_dev *dev;
110 struct input_dev *input_dev = hanwang->dev; in hanwang_parse_packet() local
127 input_report_key(input_dev, in hanwang_parse_packet()
135 input_report_key(input_dev, in hanwang_parse_packet()
146 input_report_key(input_dev, BTN_TOOL_PEN, 1); in hanwang_parse_packet()
152 input_report_key(input_dev, BTN_TOOL_RUBBER, 1); in hanwang_parse_packet()
180 input_report_abs(input_dev, ABS_X, in hanwang_parse_packet()
182 input_report_abs(input_dev, ABS_Y, in hanwang_parse_packet()
184 input_report_abs(input_dev, ABS_PRESSURE, p); in hanwang_parse_packet()
185 input_report_abs(input_dev, ABS_TILT_X, data[7] & 0x3f); in hanwang_parse_packet()
[all …]
/Linux-v5.10/drivers/input/touchscreen/
Dts4800-ts.c35 struct input_dev *input;
48 static int ts4800_ts_open(struct input_dev *input_dev) in ts4800_ts_open() argument
50 struct ts4800_ts *ts = input_get_drvdata(input_dev); in ts4800_ts_open()
65 static void ts4800_ts_close(struct input_dev *input_dev) in ts4800_ts_close() argument
67 struct ts4800_ts *ts = input_get_drvdata(input_dev); in ts4800_ts_close()
76 static void ts4800_ts_poll(struct input_dev *input_dev) in ts4800_ts_poll() argument
78 struct ts4800_ts *ts = input_get_drvdata(input_dev); in ts4800_ts_poll()
90 input_report_key(input_dev, BTN_TOUCH, 1); in ts4800_ts_poll()
97 input_report_abs(input_dev, ABS_X, last_x); in ts4800_ts_poll()
98 input_report_abs(input_dev, ABS_Y, last_y); in ts4800_ts_poll()
[all …]
Dmms114.c62 struct input_dev *input_dev; member
157 struct input_dev *input_dev = data->input_dev; in mms114_process_mt() local
181 input_mt_slot(input_dev, id); in mms114_process_mt()
182 input_mt_report_slot_state(input_dev, MT_TOOL_FINGER, touch->pressed); in mms114_process_mt()
185 touchscreen_report_pos(input_dev, &data->props, x, y, true); in mms114_process_mt()
186 input_report_abs(input_dev, ABS_MT_TOUCH_MAJOR, touch->width); in mms114_process_mt()
187 input_report_abs(input_dev, ABS_MT_PRESSURE, touch->strength); in mms114_process_mt()
194 struct input_dev *input_dev = data->input_dev; in mms114_interrupt() local
201 mutex_lock(&input_dev->mutex); in mms114_interrupt()
202 if (!input_dev->users) { in mms114_interrupt()
[all …]
Degalax_ts.c61 struct input_dev *input_dev; member
67 struct input_dev *input_dev = ts->input_dev; in egalax_ts_interrupt() local
101 input_mt_slot(input_dev, id); in egalax_ts_interrupt()
102 input_mt_report_slot_state(input_dev, MT_TOOL_FINGER, down); in egalax_ts_interrupt()
108 input_report_abs(input_dev, ABS_MT_POSITION_X, x); in egalax_ts_interrupt()
109 input_report_abs(input_dev, ABS_MT_POSITION_Y, y); in egalax_ts_interrupt()
110 input_report_abs(input_dev, ABS_MT_PRESSURE, z); in egalax_ts_interrupt()
113 input_mt_report_pointer_emulation(input_dev, true); in egalax_ts_interrupt()
114 input_sync(input_dev); in egalax_ts_interrupt()
168 struct input_dev *input_dev; in egalax_ts_probe() local
[all …]
Dtps6507x-ts.c42 struct input_dev *input;
150 static void tps6507x_ts_poll(struct input_dev *input_dev) in tps6507x_ts_poll() argument
152 struct tps6507x_ts *tsc = input_get_drvdata(input_dev); in tps6507x_ts_poll()
165 input_report_key(input_dev, BTN_TOUCH, 0); in tps6507x_ts_poll()
166 input_report_abs(input_dev, ABS_PRESSURE, 0); in tps6507x_ts_poll()
167 input_sync(input_dev); in tps6507x_ts_poll()
175 input_report_key(input_dev, BTN_TOUCH, 1); in tps6507x_ts_poll()
189 input_report_abs(input_dev, ABS_X, tsc->tc.x); in tps6507x_ts_poll()
190 input_report_abs(input_dev, ABS_Y, tsc->tc.y); in tps6507x_ts_poll()
191 input_report_abs(input_dev, ABS_PRESSURE, tsc->tc.pressure); in tps6507x_ts_poll()
[all …]
Dmax11801_ts.c80 struct input_dev *input_dev; member
134 input_report_abs(data->input_dev, ABS_X, x); in max11801_ts_interrupt()
135 input_report_abs(data->input_dev, ABS_Y, y); in max11801_ts_interrupt()
136 input_event(data->input_dev, EV_KEY, BTN_TOUCH, 1); in max11801_ts_interrupt()
137 input_sync(data->input_dev); in max11801_ts_interrupt()
141 input_event(data->input_dev, EV_KEY, BTN_TOUCH, 0); in max11801_ts_interrupt()
142 input_sync(data->input_dev); in max11801_ts_interrupt()
175 struct input_dev *input_dev; in max11801_ts_probe() local
179 input_dev = devm_input_allocate_device(&client->dev); in max11801_ts_probe()
180 if (!data || !input_dev) { in max11801_ts_probe()
[all …]
/Linux-v5.10/drivers/input/keyboard/
Dep93xx_keypad.c65 struct input_dev *input_dev; member
83 struct input_dev *input_dev = keypad->input_dev; in ep93xx_keypad_irq_handler() local
97 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler()
100 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler()
102 input_report_key(input_dev, key1, 1); in ep93xx_keypad_irq_handler()
103 input_report_key(input_dev, key2, 1); in ep93xx_keypad_irq_handler()
110 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler()
113 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler()
115 input_report_key(input_dev, key1, 1); in ep93xx_keypad_irq_handler()
121 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler()
[all …]
Dpxa930_rotary.c22 struct input_dev *input_dev; member
54 input_report_key(r->input_dev, key, 1); in rotary_irq()
55 input_sync(r->input_dev); in rotary_irq()
56 input_report_key(r->input_dev, key, 0); in rotary_irq()
58 input_report_rel(r->input_dev, pdata->rel_code, delta); in rotary_irq()
60 input_sync(r->input_dev); in rotary_irq()
65 static int pxa930_rotary_open(struct input_dev *dev) in pxa930_rotary_open()
74 static void pxa930_rotary_close(struct input_dev *dev) in pxa930_rotary_close()
86 struct input_dev *input_dev; in pxa930_rotary_probe() local
121 input_dev = input_allocate_device(); in pxa930_rotary_probe()
[all …]
Dpxa27x_keypad.c100 struct input_dev *input_dev; member
121 struct input_dev *input_dev = keypad->input_dev; in pxa27x_keypad_matrix_key_parse_dt() local
122 struct device *dev = input_dev->dev.parent; in pxa27x_keypad_matrix_key_parse_dt()
141 keypad->keycodes, input_dev); in pxa27x_keypad_matrix_key_parse_dt()
151 struct input_dev *input_dev = keypad->input_dev; in pxa27x_keypad_direct_key_parse_dt() local
152 struct device *dev = input_dev->dev.parent; in pxa27x_keypad_direct_key_parse_dt()
202 __set_bit(code, input_dev->keybit); in pxa27x_keypad_direct_key_parse_dt()
217 struct input_dev *input_dev = keypad->input_dev; in pxa27x_keypad_rotary_parse_dt() local
218 struct device *dev = input_dev->dev.parent; in pxa27x_keypad_rotary_parse_dt()
229 __set_bit(relcode, input_dev->relbit); in pxa27x_keypad_rotary_parse_dt()
[all …]
Dmax7359_keypad.c60 struct input_dev *input_dev; member
88 struct input_dev *input_dev = keypad->input_dev; in max7359_interrupt() local
101 input_event(input_dev, EV_MSC, MSC_SCAN, code); in max7359_interrupt()
102 input_report_key(input_dev, keypad->keycodes[code], !release); in max7359_interrupt()
103 input_sync(input_dev); in max7359_interrupt()
127 static int max7359_open(struct input_dev *dev) in max7359_open()
136 static void max7359_close(struct input_dev *dev) in max7359_close()
164 struct input_dev *input_dev; in max7359_probe() local
189 input_dev = devm_input_allocate_device(&client->dev); in max7359_probe()
190 if (!input_dev) { in max7359_probe()
[all …]
Djornada680_kbd.c66 struct input_dev *input;
75 struct input_dev *input_dev = jornadakbd->input; in jornada_parse_kbd() local
92 input_event(input_dev, in jornada_parse_kbd()
94 input_report_key(input_dev, in jornada_parse_kbd()
103 input_sync(input_dev); in jornada_parse_kbd()
169 static void jornadakbd680_poll(struct input_dev *input) in jornadakbd680_poll()
181 struct input_dev *input_dev; in jornada680kbd_probe() local
189 input_dev = devm_input_allocate_device(&pdev->dev); in jornada680kbd_probe()
190 if (!input_dev) { in jornada680kbd_probe()
195 jornadakbd->input = input_dev; in jornada680kbd_probe()
[all …]
/Linux-v5.10/sound/drivers/pcsp/
Dpcsp_input.c43 static int pcspkr_input_event(struct input_dev *dev, unsigned int type, in pcspkr_input_event()
76 int pcspkr_input_init(struct input_dev **rdev, struct device *dev) in pcspkr_input_init()
80 struct input_dev *input_dev = input_allocate_device(); in pcspkr_input_init() local
81 if (!input_dev) in pcspkr_input_init()
84 input_dev->name = "PC Speaker"; in pcspkr_input_init()
85 input_dev->phys = "isa0061/input0"; in pcspkr_input_init()
86 input_dev->id.bustype = BUS_ISA; in pcspkr_input_init()
87 input_dev->id.vendor = 0x001f; in pcspkr_input_init()
88 input_dev->id.product = 0x0001; in pcspkr_input_init()
89 input_dev->id.version = 0x0100; in pcspkr_input_init()
[all …]
/Linux-v5.10/drivers/input/mouse/
Dsynaptics_usb.c86 struct input_dev *input;
96 struct input_dev *input_dev = synusb->input; in synusb_report_buttons() local
98 input_report_key(input_dev, BTN_LEFT, synusb->data[1] & 0x04); in synusb_report_buttons()
99 input_report_key(input_dev, BTN_RIGHT, synusb->data[1] & 0x01); in synusb_report_buttons()
100 input_report_key(input_dev, BTN_MIDDLE, synusb->data[1] & 0x02); in synusb_report_buttons()
105 struct input_dev *input_dev = synusb->input; in synusb_report_stick() local
114 input_report_rel(input_dev, REL_X, x); in synusb_report_stick()
115 input_report_rel(input_dev, REL_Y, -y); in synusb_report_stick()
118 input_report_abs(input_dev, ABS_PRESSURE, pressure); in synusb_report_stick()
122 input_sync(input_dev); in synusb_report_stick()
[all …]
/Linux-v5.10/drivers/input/
Dmatrix-keymap.c22 static bool matrix_keypad_map_key(struct input_dev *input_dev, in matrix_keypad_map_key() argument
26 unsigned short *keymap = input_dev->keycode; in matrix_keypad_map_key()
32 dev_err(input_dev->dev.parent, in matrix_keypad_map_key()
39 __set_bit(code, input_dev->keybit); in matrix_keypad_map_key()
71 struct input_dev *input_dev) in matrix_keypad_parse_keymap() argument
73 struct device *dev = input_dev->dev.parent; in matrix_keypad_parse_keymap()
109 if (!matrix_keypad_map_key(input_dev, rows, cols, in matrix_keypad_parse_keymap()
154 struct input_dev *input_dev) in matrix_keypad_build_keymap() argument
161 if (WARN_ON(!input_dev->dev.parent)) in matrix_keypad_build_keymap()
165 keymap = devm_kcalloc(input_dev->dev.parent, in matrix_keypad_build_keymap()
[all …]
/Linux-v5.10/drivers/input/joystick/
Dwarrior.c37 struct input_dev *dev;
50 struct input_dev *dev = warrior->dev; in warrior_process_packet()
127 struct input_dev *input_dev; in warrior_connect() local
131 input_dev = input_allocate_device(); in warrior_connect()
132 if (!warrior || !input_dev) in warrior_connect()
135 warrior->dev = input_dev; in warrior_connect()
138 input_dev->name = "Logitech WingMan Warrior"; in warrior_connect()
139 input_dev->phys = warrior->phys; in warrior_connect()
140 input_dev->id.bustype = BUS_RS232; in warrior_connect()
141 input_dev->id.vendor = SERIO_WARRIOR; in warrior_connect()
[all …]

12345678910>>...22