/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 | 158 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 …]
|
/drivers/input/tablet/ |
D | hanwang.c | 53 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 …]
|
/drivers/input/keyboard/ |
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 | ep93xx_keypad.c | 65 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 …]
|
D | pxa930_rotary.c | 22 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 …]
|
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() 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 …]
|
D | spear-keyboard.c | 56 struct input_dev *input; 72 struct input_dev *input = kbd->input; in spear_kbd_interrupt() 102 static int spear_kbd_open(struct input_dev *dev) in spear_kbd_open() 132 static void spear_kbd_close(struct input_dev *dev) in spear_kbd_close() 188 struct input_dev *input_dev; in spear_kbd_probe() local 203 input_dev = devm_input_allocate_device(&pdev->dev); in spear_kbd_probe() 204 if (!input_dev) { in spear_kbd_probe() 209 kbd->input = input_dev; in spear_kbd_probe() 231 input_dev->name = "Spear Keyboard"; in spear_kbd_probe() 232 input_dev->phys = "keyboard/input0"; in spear_kbd_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 …]
|
/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 …]
|
/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 160 struct input_dev *input_dev = data->input_dev; in mms114_process_mt() local 184 input_mt_slot(input_dev, id); in mms114_process_mt() 185 input_mt_report_slot_state(input_dev, MT_TOOL_FINGER, touch->pressed); in mms114_process_mt() 188 touchscreen_report_pos(input_dev, &data->props, x, y, true); in mms114_process_mt() 189 input_report_abs(input_dev, ABS_MT_TOUCH_MAJOR, touch->width); in mms114_process_mt() 190 input_report_abs(input_dev, ABS_MT_PRESSURE, touch->strength); in mms114_process_mt() 197 struct input_dev *input_dev = data->input_dev; in mms114_interrupt() local 204 mutex_lock(&input_dev->mutex); in mms114_interrupt() 205 if (!input_device_enabled(input_dev)) { in mms114_interrupt() [all …]
|
D | tps6507x-ts.c | 42 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 …]
|
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() 168 struct input_dev *input_dev; in egalax_ts_probe() local [all …]
|
D | msg2638.c | 52 struct input_dev *input_dev; member 73 struct input_dev *input = msg2638->input_dev; in msg2638_ts_irq_handler() 121 input_mt_sync_frame(msg2638->input_dev); in msg2638_ts_irq_handler() 122 input_sync(msg2638->input_dev); in msg2638_ts_irq_handler() 174 static int msg2638_input_open(struct input_dev *dev) in msg2638_input_open() 181 static void msg2638_input_close(struct input_dev *dev) in msg2638_input_close() 191 struct input_dev *input_dev; in msg2638_init_input_dev() local 194 input_dev = devm_input_allocate_device(dev); in msg2638_init_input_dev() 195 if (!input_dev) { in msg2638_init_input_dev() 200 input_set_drvdata(input_dev, msg2638); in msg2638_init_input_dev() [all …]
|
/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 | sparcspkr.c | 33 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 …]
|
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 | 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 | 41 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 …]
|
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 | cma3000_d0x.c | 60 struct input_dev *input_dev; member 116 input_report_abs(data->input_dev, ABS_MISC, 1); in cma3000_thread_irq() 117 input_sync(data->input_dev); in cma3000_thread_irq() 119 input_report_abs(data->input_dev, ABS_MISC, 0); in cma3000_thread_irq() 139 input_report_abs(data->input_dev, ABS_X, datax); in cma3000_thread_irq() 140 input_report_abs(data->input_dev, ABS_Y, datay); in cma3000_thread_irq() 141 input_report_abs(data->input_dev, ABS_Z, dataz); in cma3000_thread_irq() 142 input_sync(data->input_dev); in cma3000_thread_irq() 216 static int cma3000_open(struct input_dev *input_dev) in cma3000_open() argument 218 struct cma3000_accl_data *data = input_get_drvdata(input_dev); in cma3000_open() [all …]
|
/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 …]
|
/drivers/input/joystick/ |
D | walkera0701.c | 53 struct input_dev *input_dev; member 108 input_report_abs(w->input_dev, ABS_X, val2); in walkera0701_parse_frame() 109 input_report_abs(w->input_dev, ABS_Y, val1); in walkera0701_parse_frame() 110 input_report_abs(w->input_dev, ABS_Z, val6); in walkera0701_parse_frame() 111 input_report_abs(w->input_dev, ABS_THROTTLE, val3); in walkera0701_parse_frame() 112 input_report_abs(w->input_dev, ABS_RUDDER, val4); in walkera0701_parse_frame() 113 input_report_abs(w->input_dev, ABS_MISC, val7); in walkera0701_parse_frame() 114 input_report_key(w->input_dev, BTN_GEAR_DOWN, val5 > 0); in walkera0701_parse_frame() 178 static int walkera0701_open(struct input_dev *dev) in walkera0701_open() 189 static void walkera0701_close(struct input_dev *dev) in walkera0701_close() [all …]
|
/drivers/input/joystick/iforce/ |
D | iforce-main.c | 66 static int iforce_playback(struct input_dev *dev, int effect_id, int value) in iforce_playback() 80 static void iforce_set_gain(struct input_dev *dev, u16 gain) in iforce_set_gain() 89 static void iforce_set_autocenter(struct input_dev *dev, u16 magnitude) in iforce_set_autocenter() 107 static int iforce_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *… in iforce_upload_effect() 153 static int iforce_erase_effect(struct input_dev *dev, int effect_id) in iforce_erase_effect() 171 static int iforce_open(struct input_dev *dev) in iforce_open() 185 static void iforce_close(struct input_dev *dev) in iforce_close() 214 struct input_dev *input_dev; in iforce_init_device() local 222 input_dev = input_allocate_device(); in iforce_init_device() 223 if (!input_dev) in iforce_init_device() [all …]
|