/linux-6.6.21/drivers/input/tests/ |
D | input_test.c | 17 struct input_dev *input_dev; in input_test_init() local 20 input_dev = input_allocate_device(); in input_test_init() 21 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, input_dev); in input_test_init() 23 input_dev->name = "Test input device"; in input_test_init() 24 input_dev->id.bustype = BUS_VIRTUAL; in input_test_init() 25 input_dev->id.vendor = 1; in input_test_init() 26 input_dev->id.product = 1; in input_test_init() 27 input_dev->id.version = 1; in input_test_init() 28 input_set_capability(input_dev, EV_KEY, BTN_LEFT); in input_test_init() 29 input_set_capability(input_dev, EV_KEY, BTN_RIGHT); in input_test_init() [all …]
|
/linux-6.6.21/drivers/hid/ |
D | hid-udraw-ps3.c | 69 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 …]
|
D | hid-hyperv.c | 150 struct mousevsc_dev *input_dev; in mousevsc_alloc_device() local 152 input_dev = kzalloc(sizeof(struct mousevsc_dev), GFP_KERNEL); in mousevsc_alloc_device() 154 if (!input_dev) in mousevsc_alloc_device() 157 input_dev->device = device; in mousevsc_alloc_device() 158 hv_set_drvdata(device, input_dev); in mousevsc_alloc_device() 159 init_completion(&input_dev->wait_event); in mousevsc_alloc_device() 160 input_dev->init_complete = false; in mousevsc_alloc_device() 162 return input_dev; in mousevsc_alloc_device() 247 struct mousevsc_dev *input_dev = hv_get_drvdata(device); in mousevsc_on_receive() local 271 memcpy(&input_dev->protocol_resp, pipe_msg, len); in mousevsc_on_receive() [all …]
|
/linux-6.6.21/include/linux/ |
D | input.h | 137 struct input_dev { struct 161 int (*setkeycode)(struct input_dev *dev, argument 164 int (*getkeycode)(struct input_dev *dev, argument 185 int (*open)(struct input_dev *dev); argument 186 void (*close)(struct input_dev *dev); argument 187 int (*flush)(struct input_dev *dev, struct file *file); argument 188 int (*event)(struct input_dev *dev, unsigned int type, unsigned int code, int value); argument 213 #define to_input_dev(d) container_of(d, struct input_dev, dev) argument 318 bool (*match)(struct input_handler *handler, struct input_dev *dev); 319 …int (*connect)(struct input_handler *handler, struct input_dev *dev, const struct input_device_id … [all …]
|
/linux-6.6.21/drivers/input/tablet/ |
D | hanwang.c | 50 struct input_dev *dev; 107 struct input_dev *input_dev = hanwang->dev; in hanwang_parse_packet() local 124 input_report_key(input_dev, in hanwang_parse_packet() 132 input_report_key(input_dev, in hanwang_parse_packet() 143 input_report_key(input_dev, BTN_TOOL_PEN, 1); in hanwang_parse_packet() 149 input_report_key(input_dev, BTN_TOOL_RUBBER, 1); in hanwang_parse_packet() 177 input_report_abs(input_dev, ABS_X, in hanwang_parse_packet() 179 input_report_abs(input_dev, ABS_Y, in hanwang_parse_packet() 181 input_report_abs(input_dev, ABS_PRESSURE, p); in hanwang_parse_packet() 182 input_report_abs(input_dev, ABS_TILT_X, data[7] & 0x3f); in hanwang_parse_packet() [all …]
|
/linux-6.6.21/drivers/input/keyboard/ |
D | ep93xx_keypad.c | 68 struct input_dev *input_dev; member 86 struct input_dev *input_dev = keypad->input_dev; in ep93xx_keypad_irq_handler() local 100 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler() 103 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler() 105 input_report_key(input_dev, key1, 1); in ep93xx_keypad_irq_handler() 106 input_report_key(input_dev, key2, 1); in ep93xx_keypad_irq_handler() 113 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler() 116 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler() 118 input_report_key(input_dev, key1, 1); in ep93xx_keypad_irq_handler() 124 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler() [all …]
|
D | pxa27x_keypad.c | 100 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 …]
|
D | max7359_keypad.c | 60 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() 163 struct input_dev *input_dev; in max7359_probe() local 188 input_dev = devm_input_allocate_device(&client->dev); in max7359_probe() 189 if (!input_dev) { in max7359_probe() [all …]
|
D | jornada680_kbd.c | 66 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-6.6.21/drivers/input/touchscreen/ |
D | ts4800-ts.c | 35 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 …]
|
D | mms114.c | 65 struct input_dev *input_dev; member 163 struct input_dev *input_dev = data->input_dev; in mms114_process_mt() local 182 input_mt_slot(input_dev, id); in mms114_process_mt() 183 input_mt_report_slot_state(input_dev, MT_TOOL_FINGER, touch->pressed); in mms114_process_mt() 186 touchscreen_report_pos(input_dev, &data->props, x, y, true); in mms114_process_mt() 187 input_report_abs(input_dev, ABS_MT_TOUCH_MAJOR, touch->width); in mms114_process_mt() 188 input_report_abs(input_dev, ABS_MT_PRESSURE, touch->strength); in mms114_process_mt() 196 struct input_dev *input_dev = data->input_dev; in mms114_process_touchkey() local 212 input_report_key(input_dev, data->keycodes[keycode_id], touch->pressed); in mms114_process_touchkey() 219 struct input_dev *input_dev = data->input_dev; in mms114_interrupt() local [all …]
|
D | egalax_ts.c | 61 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() 161 struct input_dev *input_dev; in egalax_ts_probe() local [all …]
|
D | tps6507x-ts.c | 42 struct input_dev *input; 148 static void tps6507x_ts_poll(struct input_dev *input_dev) in tps6507x_ts_poll() argument 150 struct tps6507x_ts *tsc = input_get_drvdata(input_dev); in tps6507x_ts_poll() 163 input_report_key(input_dev, BTN_TOUCH, 0); in tps6507x_ts_poll() 164 input_report_abs(input_dev, ABS_PRESSURE, 0); in tps6507x_ts_poll() 165 input_sync(input_dev); in tps6507x_ts_poll() 173 input_report_key(input_dev, BTN_TOUCH, 1); in tps6507x_ts_poll() 187 input_report_abs(input_dev, ABS_X, tsc->tc.x); in tps6507x_ts_poll() 188 input_report_abs(input_dev, ABS_Y, tsc->tc.y); in tps6507x_ts_poll() 189 input_report_abs(input_dev, ABS_PRESSURE, tsc->tc.pressure); in tps6507x_ts_poll() [all …]
|
D | max11801_ts.c | 80 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() 174 struct input_dev *input_dev; in max11801_ts_probe() local 178 input_dev = devm_input_allocate_device(&client->dev); in max11801_ts_probe() 179 if (!data || !input_dev) { in max11801_ts_probe() [all …]
|
/linux-6.6.21/drivers/input/mouse/ |
D | synaptics_usb.c | 86 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-6.6.21/drivers/input/misc/ |
D | m68kspkr.c | 25 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 …]
|
D | atlas_btns.c | 23 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 …]
|
D | sparcspkr.c | 34 int (*event)(struct input_dev *dev, unsigned int type, unsigned int code, int value); 36 struct input_dev *input_dev; member 67 static int bbc_spkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) in bbc_spkr_event() 105 static int grover_spkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) in grover_spkr_event() 147 struct input_dev *input_dev; in sparcspkr_probe() local 150 input_dev = input_allocate_device(); in sparcspkr_probe() 151 if (!input_dev) in sparcspkr_probe() 154 input_dev->name = state->name; in sparcspkr_probe() 155 input_dev->phys = "sparc/input0"; in sparcspkr_probe() 156 input_dev->id.bustype = BUS_ISA; in sparcspkr_probe() [all …]
|
D | pcf50633-input.c | 27 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 …]
|
D | stpmic1_onkey.c | 21 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 …]
|
D | palmas-pwrbutton.c | 34 struct input_dev *input_dev; member 58 struct input_dev *input_dev = pwron->input_dev; in palmas_power_button_work() local 65 dev_err(input_dev->dev.parent, in palmas_power_button_work() 69 input_report_key(input_dev, KEY_POWER, 0); in palmas_power_button_work() 70 input_sync(input_dev); in palmas_power_button_work() 88 struct input_dev *input_dev = pwron->input_dev; in pwron_irq() local 90 input_report_key(input_dev, KEY_POWER, 1); in pwron_irq() 91 pm_wakeup_event(input_dev->dev.parent, 0); in pwron_irq() 92 input_sync(input_dev); in pwron_irq() 159 struct input_dev *input_dev; in palmas_pwron_probe() local [all …]
|
/linux-6.6.21/sound/drivers/pcsp/ |
D | pcsp_input.c | 43 static int pcspkr_input_event(struct input_dev *dev, unsigned int type, in pcspkr_input_event() 77 int pcspkr_input_init(struct input_dev **rdev, struct device *dev) in pcspkr_input_init() 81 struct input_dev *input_dev = devm_input_allocate_device(dev); in pcspkr_input_init() local 82 if (!input_dev) in pcspkr_input_init() 85 input_dev->name = "PC Speaker"; in pcspkr_input_init() 86 input_dev->phys = "isa0061/input0"; in pcspkr_input_init() 87 input_dev->id.bustype = BUS_ISA; in pcspkr_input_init() 88 input_dev->id.vendor = 0x001f; in pcspkr_input_init() 89 input_dev->id.product = 0x0001; in pcspkr_input_init() 90 input_dev->id.version = 0x0100; in pcspkr_input_init() [all …]
|
/linux-6.6.21/drivers/input/ |
D | matrix-keymap.c | 22 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-6.6.21/drivers/input/joystick/ |
D | warrior.c | 34 struct input_dev *dev; 47 struct input_dev *dev = warrior->dev; in warrior_process_packet() 124 struct input_dev *input_dev; in warrior_connect() local 128 input_dev = input_allocate_device(); in warrior_connect() 129 if (!warrior || !input_dev) in warrior_connect() 132 warrior->dev = input_dev; in warrior_connect() 135 input_dev->name = "Logitech WingMan Warrior"; in warrior_connect() 136 input_dev->phys = warrior->phys; in warrior_connect() 137 input_dev->id.bustype = BUS_RS232; in warrior_connect() 138 input_dev->id.vendor = SERIO_WARRIOR; in warrior_connect() [all …]
|
D | zhenhua.c | 54 struct input_dev *dev; 67 struct input_dev *dev = zhenhua->dev; in zhenhua_process_packet() 131 struct input_dev *input_dev; in zhenhua_connect() local 135 input_dev = input_allocate_device(); in zhenhua_connect() 136 if (!zhenhua || !input_dev) in zhenhua_connect() 139 zhenhua->dev = input_dev; in zhenhua_connect() 142 input_dev->name = "Zhen Hua 5-byte device"; in zhenhua_connect() 143 input_dev->phys = zhenhua->phys; in zhenhua_connect() 144 input_dev->id.bustype = BUS_RS232; in zhenhua_connect() 145 input_dev->id.vendor = SERIO_ZHENHUA; in zhenhua_connect() [all …]
|