/drivers/hid/ |
D | hid-magicmouse.c | 104 struct input_dev *input; member 146 int last_state = test_bit(BTN_LEFT, msc->input->key) << 0 | in magicmouse_emit_buttons() 147 test_bit(BTN_RIGHT, msc->input->key) << 1 | in magicmouse_emit_buttons() 148 test_bit(BTN_MIDDLE, msc->input->key) << 2; in magicmouse_emit_buttons() 171 input_report_key(msc->input, BTN_MIDDLE, state & 4); in magicmouse_emit_buttons() 174 input_report_key(msc->input, BTN_LEFT, state & 1); in magicmouse_emit_buttons() 175 input_report_key(msc->input, BTN_RIGHT, state & 2); in magicmouse_emit_buttons() 183 struct input_dev *input = msc->input; in magicmouse_emit_touch() local 186 if (input->id.product == USB_DEVICE_ID_APPLE_MAGICMOUSE) { in magicmouse_emit_touch() 243 input_report_rel(input, REL_HWHEEL, -step_x); in magicmouse_emit_touch() [all …]
|
D | wacom_wac.c | 72 struct input_dev *input = wacom->pen_input; in wacom_penpartner_irq() local 79 input_report_key(input, wacom->tool[0], 1); in wacom_penpartner_irq() 80 input_report_abs(input, ABS_MISC, wacom->id[0]); /* report tool id */ in wacom_penpartner_irq() 81 input_report_abs(input, ABS_X, get_unaligned_le16(&data[1])); in wacom_penpartner_irq() 82 input_report_abs(input, ABS_Y, get_unaligned_le16(&data[3])); in wacom_penpartner_irq() 83 input_report_abs(input, ABS_PRESSURE, (signed char)data[6] + 127); in wacom_penpartner_irq() 84 input_report_key(input, BTN_TOUCH, ((signed char)data[6] > -127)); in wacom_penpartner_irq() 85 input_report_key(input, BTN_STYLUS, (data[5] & 0x40)); in wacom_penpartner_irq() 87 input_report_key(input, wacom->tool[0], 0); in wacom_penpartner_irq() 88 input_report_abs(input, ABS_MISC, 0); /* report tool id */ in wacom_penpartner_irq() [all …]
|
D | hid-steam.c | 118 struct input_dev __rcu *input; member 386 struct input_dev *input; in steam_input_register() local 390 input = rcu_dereference(steam->input); in steam_input_register() 392 if (input) { in steam_input_register() 397 input = input_allocate_device(); in steam_input_register() 398 if (!input) in steam_input_register() 401 input_set_drvdata(input, steam); in steam_input_register() 402 input->dev.parent = &hdev->dev; in steam_input_register() 403 input->open = steam_input_open; in steam_input_register() 404 input->close = steam_input_close; in steam_input_register() [all …]
|
D | hid-wiimote-modules.c | 67 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_LEFT], in wiimod_keys_in_keys() 69 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_RIGHT], in wiimod_keys_in_keys() 71 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_DOWN], in wiimod_keys_in_keys() 73 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_UP], in wiimod_keys_in_keys() 75 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_PLUS], in wiimod_keys_in_keys() 77 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_TWO], in wiimod_keys_in_keys() 79 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_ONE], in wiimod_keys_in_keys() 81 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_B], in wiimod_keys_in_keys() 83 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_A], in wiimod_keys_in_keys() 85 input_report_key(wdata->input, wiimod_keys_map[WIIPROTO_KEY_MINUS], in wiimod_keys_in_keys() [all …]
|
/drivers/media/pci/ddbridge/ |
D | ddbridge-core.c | 243 pbuf = dev->input[i].pbuf; in ddb_address_table() 244 for (j = 0; j < dev->input[i].dma_buf_num; j++) { in ddb_address_table() 296 if (io_alloc(dev->pdev, port->input[0]->vbuf, in ddb_buffers_alloc() 297 port->input[0]->pbuf, in ddb_buffers_alloc() 298 port->input[0]->dma_buf_size, in ddb_buffers_alloc() 299 port->input[0]->dma_buf_num) < 0) in ddb_buffers_alloc() 301 if (io_alloc(dev->pdev, port->input[1]->vbuf, in ddb_buffers_alloc() 302 port->input[1]->pbuf, in ddb_buffers_alloc() 303 port->input[1]->dma_buf_size, in ddb_buffers_alloc() 304 port->input[1]->dma_buf_num) < 0) in ddb_buffers_alloc() [all …]
|
/drivers/input/touchscreen/ |
D | ipaq-micro-ts.c | 26 struct input_dev *input; member 35 input_report_abs(ts->input, ABS_X, in micro_ts_receive() 37 input_report_abs(ts->input, ABS_Y, in micro_ts_receive() 39 input_report_key(ts->input, BTN_TOUCH, 1); in micro_ts_receive() 40 input_sync(ts->input); in micro_ts_receive() 42 input_report_abs(ts->input, ABS_X, 0); in micro_ts_receive() 43 input_report_abs(ts->input, ABS_Y, 0); in micro_ts_receive() 44 input_report_key(ts->input, BTN_TOUCH, 0); in micro_ts_receive() 45 input_sync(ts->input); in micro_ts_receive() 66 static int micro_ts_open(struct input_dev *input) in micro_ts_open() argument [all …]
|
D | wacom_i2c.c | 40 struct input_dev *input; member 97 struct input_dev *input = wac_i2c->input; in wacom_i2c_irq() local 122 input_report_key(input, BTN_TOUCH, tsw || ers); in wacom_i2c_irq() 123 input_report_key(input, wac_i2c->tool, wac_i2c->prox); in wacom_i2c_irq() 124 input_report_key(input, BTN_STYLUS, f1); in wacom_i2c_irq() 125 input_report_key(input, BTN_STYLUS2, f2); in wacom_i2c_irq() 126 input_report_abs(input, ABS_X, x); in wacom_i2c_irq() 127 input_report_abs(input, ABS_Y, y); in wacom_i2c_irq() 128 input_report_abs(input, ABS_PRESSURE, pressure); in wacom_i2c_irq() 129 input_sync(input); in wacom_i2c_irq() [all …]
|
D | chipone_icn8318.c | 53 struct input_dev *input; member 122 input_mt_slot(data->input, touch->slot); in icn8318_irq() 123 input_mt_report_slot_state(data->input, MT_TOOL_FINGER, act); in icn8318_irq() 137 input_event(data->input, EV_ABS, ABS_MT_POSITION_X, x); in icn8318_irq() 138 input_event(data->input, EV_ABS, ABS_MT_POSITION_Y, y); in icn8318_irq() 140 input_event(data->input, EV_ABS, ABS_MT_POSITION_X, y); in icn8318_irq() 141 input_event(data->input, EV_ABS, ABS_MT_POSITION_Y, x); in icn8318_irq() 145 input_mt_sync_frame(data->input); in icn8318_irq() 146 input_sync(data->input); in icn8318_irq() 176 mutex_lock(&data->input->mutex); in icn8318_suspend() [all …]
|
D | migor_ts.c | 38 struct input_dev *input; member 86 input_report_key(priv->input, BTN_TOUCH, 1); in migor_ts_isr() 87 input_report_abs(priv->input, ABS_X, ypos); /*X-Y swap*/ in migor_ts_isr() 88 input_report_abs(priv->input, ABS_Y, xpos); in migor_ts_isr() 89 input_sync(priv->input); in migor_ts_isr() 93 input_report_key(priv->input, BTN_TOUCH, 0); in migor_ts_isr() 94 input_sync(priv->input); in migor_ts_isr() 136 struct input_dev *input; in migor_ts_probe() local 140 input = input_allocate_device(); in migor_ts_probe() 141 if (!priv || !input) { in migor_ts_probe() [all …]
|
D | lpc32xx_ts.c | 92 struct input_dev *input = tsc->dev; in lpc32xx_ts_interrupt() local 123 input_report_abs(input, ABS_X, (xs[1] + xs[2]) / 2); in lpc32xx_ts_interrupt() 124 input_report_abs(input, ABS_Y, (ys[1] + ys[2]) / 2); in lpc32xx_ts_interrupt() 125 input_report_key(input, BTN_TOUCH, 1); in lpc32xx_ts_interrupt() 127 input_report_key(input, BTN_TOUCH, 0); in lpc32xx_ts_interrupt() 130 input_sync(input); in lpc32xx_ts_interrupt() 208 struct input_dev *input; in lpc32xx_ts_probe() local 227 input = input_allocate_device(); in lpc32xx_ts_probe() 228 if (!tsc || !input) { in lpc32xx_ts_probe() 234 tsc->dev = input; in lpc32xx_ts_probe() [all …]
|
/drivers/input/misc/ |
D | pcf50633-input.c | 38 struct pcf50633_input *input; in pcf50633_input_irq() local 41 input = data; in pcf50633_input_irq() 44 onkey_released = pcf50633_reg_read(input->pcf, PCF50633_REG_OOCSTAT) in pcf50633_input_irq() 48 input_report_key(input->input_dev, KEY_POWER, 1); in pcf50633_input_irq() 50 input_report_key(input->input_dev, KEY_POWER, 0); in pcf50633_input_irq() 52 input_sync(input->input_dev); in pcf50633_input_irq() 57 struct pcf50633_input *input; in pcf50633_input_probe() local 62 input = kzalloc(sizeof(*input), GFP_KERNEL); in pcf50633_input_probe() 63 if (!input) in pcf50633_input_probe() 68 kfree(input); in pcf50633_input_probe() [all …]
|
D | bfin_rotary.c | 30 struct input_dev *input; member 46 static void report_key_event(struct input_dev *input, int keycode) in report_key_event() argument 49 input_report_key(input, keycode, 1); in report_key_event() 50 input_sync(input); in report_key_event() 51 input_report_key(input, keycode, 0); in report_key_event() 52 input_sync(input); in report_key_event() 57 struct input_dev *input = rotary->input; in report_rotary_event() local 60 report_key_event(input, in report_rotary_event() 63 input_report_rel(input, rotary->rel_code, delta); in report_rotary_event() 64 input_sync(input); in report_rotary_event() [all …]
|
D | sgi_btns.c | 69 struct input_dev *input = dev->input; in handle_buttons() local 78 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons() 79 input_report_key(input, bdev->keymap[i], 1); in handle_buttons() 80 input_sync(input); in handle_buttons() 84 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons() 85 input_report_key(input, bdev->keymap[i], 0); in handle_buttons() 86 input_sync(input); in handle_buttons() 97 struct input_dev *input; in sgi_buttons_probe() local 113 input = poll_dev->input; in sgi_buttons_probe() 114 input->name = "SGI buttons"; in sgi_buttons_probe() [all …]
|
D | cobalt_btns.c | 51 struct input_dev *input = dev->input; in handle_buttons() local 60 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons() 61 input_report_key(input, bdev->keymap[i], 1); in handle_buttons() 62 input_sync(input); in handle_buttons() 66 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons() 67 input_report_key(input, bdev->keymap[i], 0); in handle_buttons() 68 input_sync(input); in handle_buttons() 79 struct input_dev *input; in cobalt_buttons_probe() local 96 input = poll_dev->input; in cobalt_buttons_probe() 97 input->name = "Cobalt buttons"; in cobalt_buttons_probe() [all …]
|
D | sirfsoc-onkey.c | 21 struct input_dev *input; member 48 input_event(pwrcdrv->input, EV_KEY, KEY_POWER, 0); in sirfsoc_pwrc_report_event() 49 input_sync(pwrcdrv->input); in sirfsoc_pwrc_report_event() 63 input_event(pwrcdrv->input, EV_KEY, KEY_POWER, 1); in sirfsoc_pwrc_isr() 64 input_sync(pwrcdrv->input); in sirfsoc_pwrc_isr() 84 static int sirfsoc_pwrc_open(struct input_dev *input) in sirfsoc_pwrc_open() argument 86 struct sirfsoc_pwrc_drvdata *pwrcdrv = input_get_drvdata(input); in sirfsoc_pwrc_open() 93 static void sirfsoc_pwrc_close(struct input_dev *input) in sirfsoc_pwrc_close() argument 95 struct sirfsoc_pwrc_drvdata *pwrcdrv = input_get_drvdata(input); in sirfsoc_pwrc_close() 132 pwrcdrv->input = devm_input_allocate_device(&pdev->dev); in sirfsoc_pwrc_probe() [all …]
|
D | dm355evm_keys.c | 33 struct input_dev *input; member 157 ke = sparse_keymap_entry_from_scancode(keys->input, event); in dm355evm_keys_irq() 164 input_report_key(keys->input, keycode, 1); in dm355evm_keys_irq() 165 input_sync(keys->input); in dm355evm_keys_irq() 166 input_report_key(keys->input, keycode, 0); in dm355evm_keys_irq() 167 input_sync(keys->input); in dm355evm_keys_irq() 178 struct input_dev *input; in dm355evm_keys_probe() local 183 input = input_allocate_device(); in dm355evm_keys_probe() 184 if (!keys || !input) { in dm355evm_keys_probe() 190 keys->input = input; in dm355evm_keys_probe() [all …]
|
/drivers/input/mouse/ |
D | navpoint.c | 36 struct input_dev *input; member 99 input_report_key(navpoint->input, BTN_TOUCH, finger); in navpoint_packet() 100 input_report_abs(navpoint->input, ABS_X, x); in navpoint_packet() 101 input_report_abs(navpoint->input, ABS_Y, y); in navpoint_packet() 102 input_report_abs(navpoint->input, ABS_PRESSURE, z); in navpoint_packet() 103 input_report_key(navpoint->input, BTN_TOOL_FINGER, finger); in navpoint_packet() 104 input_report_key(navpoint->input, BTN_LEFT, gesture); in navpoint_packet() 105 input_sync(navpoint->input); in navpoint_packet() 192 static int navpoint_open(struct input_dev *input) in navpoint_open() argument 194 struct navpoint *navpoint = input_get_drvdata(input); in navpoint_open() [all …]
|
D | gpio_mouse.c | 25 struct input_dev *input = dev->input; in gpio_mouse_scan() local 29 input_report_key(input, BTN_LEFT, in gpio_mouse_scan() 32 input_report_key(input, BTN_MIDDLE, in gpio_mouse_scan() 35 input_report_key(input, BTN_RIGHT, in gpio_mouse_scan() 43 input_report_rel(input, REL_X, x); in gpio_mouse_scan() 44 input_report_rel(input, REL_Y, y); in gpio_mouse_scan() 45 input_sync(input); in gpio_mouse_scan() 52 struct input_dev *input; in gpio_mouse_probe() local 110 input = input_poll->input; in gpio_mouse_probe() 111 input->name = pdev->name; in gpio_mouse_probe() [all …]
|
/drivers/input/keyboard/ |
D | opencores-kbd.c | 20 struct input_dev *input; member 29 struct input_dev *input = opencores_kbd->input; in opencores_kbd_isr() local 33 input_report_key(input, c & 0x7f, c & 0x80 ? 0 : 1); in opencores_kbd_isr() 34 input_sync(input); in opencores_kbd_isr() 41 struct input_dev *input; in opencores_kbd_probe() local 63 input = devm_input_allocate_device(&pdev->dev); in opencores_kbd_probe() 64 if (!input) { in opencores_kbd_probe() 69 opencores_kbd->input = input; in opencores_kbd_probe() 75 input->name = pdev->name; in opencores_kbd_probe() 76 input->phys = "opencores-kbd/input0"; in opencores_kbd_probe() [all …]
|
D | ipaq-micro-keys.c | 28 struct input_dev *input; member 53 input_report_key(keys->input, keys->codes[key], down); in micro_key_receive() 54 input_sync(keys->input); in micro_key_receive() 74 static int micro_key_open(struct input_dev *input) in micro_key_open() argument 76 struct ipaq_micro_keys *keys = input_get_drvdata(input); in micro_key_open() 83 static void micro_key_close(struct input_dev *input) in micro_key_close() argument 85 struct ipaq_micro_keys *keys = input_get_drvdata(input); in micro_key_close() 102 keys->input = devm_input_allocate_device(&pdev->dev); in micro_key_probe() 103 if (!keys->input) in micro_key_probe() 106 keys->input->keycodesize = sizeof(micro_keycodes[0]); in micro_key_probe() [all …]
|
D | bf54x-keys.c | 78 struct input_dev *input; member 90 struct input_dev *input, u16 keyident) in bfin_kpad_find_key() argument 94 for (i = 0; i < input->keycodemax; i++) in bfin_kpad_find_key() 95 if (bf54x_kpad->keycode[i + input->keycodemax] == keyident) in bfin_kpad_find_key() 142 input_report_key(bf54x_kpad->input, bf54x_kpad->lastkey, 0); in bfin_kpad_timer() 143 input_sync(bf54x_kpad->input); in bfin_kpad_timer() 155 struct input_dev *input = bf54x_kpad->input; in bfin_kpad_isr() local 159 key = bfin_kpad_find_key(bf54x_kpad, input, rowcol); in bfin_kpad_isr() 161 input_report_key(input, key, 1); in bfin_kpad_isr() 162 input_sync(input); in bfin_kpad_isr() [all …]
|
D | gpio_keys.c | 37 struct input_dev *input; member 53 struct input_dev *input; member 232 const unsigned long *bitmap = get_bm_events_by_type(ddata->input, type); in gpio_keys_attr_store_helper() 359 struct input_dev *input = bdata->input; in gpio_keys_gpio_report_event() local 364 dev_err(input->dev.parent, "failed to get gpio state\n"); in gpio_keys_gpio_report_event() 371 input_event(input, type, button->code, button->value); in gpio_keys_gpio_report_event() 373 input_event(input, type, button->code, !!state); in gpio_keys_gpio_report_event() 375 input_sync(input); in gpio_keys_gpio_report_event() 386 pm_relax(bdata->input->dev.parent); in gpio_keys_gpio_work_func() 396 pm_stay_awake(bdata->input->dev.parent); in gpio_keys_gpio_isr() [all …]
|
D | adp5520-keys.c | 18 struct input_dev *input; member 31 input_report_key(dev->input, dev->keycode[i], value); in adp5520_keys_report_event() 33 input_sync(dev->input); in adp5520_keys_report_event() 75 struct input_dev *input; in adp5520_keys_probe() local 99 input = devm_input_allocate_device(&pdev->dev); in adp5520_keys_probe() 100 if (!input) in adp5520_keys_probe() 104 dev->input = input; in adp5520_keys_probe() 106 input->name = pdev->name; in adp5520_keys_probe() 107 input->phys = "adp5520-keys/input0"; in adp5520_keys_probe() 108 input->dev.parent = &pdev->dev; in adp5520_keys_probe() [all …]
|
/drivers/platform/x86/ |
D | intel_mid_powerbtn.c | 41 struct input_dev *input = dev_id; in mfld_pb_isr() local 46 dev_dbg(input->dev.parent, "PB_INT status= %d\n", pbstat); in mfld_pb_isr() 49 dev_err(input->dev.parent, "Read error %d while reading" in mfld_pb_isr() 52 input_event(input, EV_KEY, KEY_POWER, in mfld_pb_isr() 54 input_sync(input); in mfld_pb_isr() 62 struct input_dev *input; in mfld_pb_probe() local 69 input = input_allocate_device(); in mfld_pb_probe() 70 if (!input) in mfld_pb_probe() 73 input->name = pdev->name; in mfld_pb_probe() 74 input->phys = "power-button/input0"; in mfld_pb_probe() [all …]
|
/drivers/input/ |
D | input-polldev.c | 45 static int input_open_polled_device(struct input_dev *input) in input_open_polled_device() argument 47 struct input_polled_dev *dev = input_get_drvdata(input); in input_open_polled_device() 61 static void input_close_polled_device(struct input_dev *input) in input_close_polled_device() argument 63 struct input_polled_dev *dev = input_get_drvdata(input); in input_close_polled_device() 86 struct input_dev *input = polldev->input; in input_polldev_set_poll() local 100 mutex_lock(&input->mutex); in input_polldev_set_poll() 104 if (input->users) { in input_polldev_set_poll() 110 mutex_unlock(&input->mutex); in input_polldev_set_poll() 169 dev->input = input_allocate_device(); in input_allocate_polled_device() 170 if (!dev->input) { in input_allocate_polled_device() [all …]
|