/drivers/media/pci/tw5864/ |
D | tw5864-video.c | 189 static void tw5864_frame_interval_set(struct tw5864_input *input); 217 static int tw5864_input_std_get(struct tw5864_input *input, in tw5864_input_std_get() argument 220 struct tw5864_dev *dev = input->root; in tw5864_input_std_get() 221 u8 std_reg = tw_indir_readb(TW5864_INDIR_VIN_E(input->nr)); in tw5864_input_std_get() 234 static int tw5864_enable_input(struct tw5864_input *input) in tw5864_enable_input() argument 236 struct tw5864_dev *dev = input->root; in tw5864_enable_input() 237 int nr = input->nr; in tw5864_enable_input() 249 input->frame_seqno = 0; in tw5864_enable_input() 250 input->frame_gop_seqno = 0; in tw5864_enable_input() 251 input->h264_idr_pic_id = 0; in tw5864_enable_input() [all …]
|
/drivers/hid/ |
D | hid-magicmouse.c | 105 struct input_dev *input; member 147 int last_state = test_bit(BTN_LEFT, msc->input->key) << 0 | in magicmouse_emit_buttons() 148 test_bit(BTN_RIGHT, msc->input->key) << 1 | in magicmouse_emit_buttons() 149 test_bit(BTN_MIDDLE, msc->input->key) << 2; in magicmouse_emit_buttons() 172 input_report_key(msc->input, BTN_MIDDLE, state & 4); in magicmouse_emit_buttons() 175 input_report_key(msc->input, BTN_LEFT, state & 1); in magicmouse_emit_buttons() 176 input_report_key(msc->input, BTN_RIGHT, state & 2); in magicmouse_emit_buttons() 184 struct input_dev *input = msc->input; in magicmouse_emit_touch() local 187 if (input->id.product == USB_DEVICE_ID_APPLE_MAGICMOUSE) { in magicmouse_emit_touch() 244 input_report_rel(input, REL_HWHEEL, -step_x); in magicmouse_emit_touch() [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 …]
|
D | wacom_wac.c | 88 struct input_dev *input = wacom->pen_input; in wacom_penpartner_irq() local 95 input_report_key(input, wacom->tool[0], 1); in wacom_penpartner_irq() 96 input_report_abs(input, ABS_MISC, wacom->id[0]); /* report tool id */ in wacom_penpartner_irq() 97 input_report_abs(input, ABS_X, get_unaligned_le16(&data[1])); in wacom_penpartner_irq() 98 input_report_abs(input, ABS_Y, get_unaligned_le16(&data[3])); in wacom_penpartner_irq() 99 input_report_abs(input, ABS_PRESSURE, (signed char)data[6] + 127); in wacom_penpartner_irq() 100 input_report_key(input, BTN_TOUCH, ((signed char)data[6] > -127)); in wacom_penpartner_irq() 101 input_report_key(input, BTN_STYLUS, (data[5] & 0x40)); in wacom_penpartner_irq() 103 input_report_key(input, wacom->tool[0], 0); in wacom_penpartner_irq() 104 input_report_abs(input, ABS_MISC, 0); /* report tool id */ in wacom_penpartner_irq() [all …]
|
D | hid-alps.c | 80 struct input_dev *input; member 106 u8 *input; in u1_read_write_register() local 109 input = kzalloc(U1_FEATURE_REPORT_LEN, GFP_KERNEL); in u1_read_write_register() 110 if (!input) in u1_read_write_register() 113 input[0] = U1_FEATURE_REPORT_ID; in u1_read_write_register() 115 input[1] = U1_CMD_REGISTER_READ; in u1_read_write_register() 116 input[6] = 0x00; in u1_read_write_register() 118 input[1] = U1_CMD_REGISTER_WRITE; in u1_read_write_register() 119 input[6] = write_val; in u1_read_write_register() 122 put_unaligned_le32(address, input + 2); in u1_read_write_register() [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 | chipone_icn8318.c | 54 struct input_dev *input; member 119 input_mt_slot(data->input, touch->slot); in icn8318_irq() 120 input_mt_report_slot_state(data->input, MT_TOOL_FINGER, act); in icn8318_irq() 124 touchscreen_report_pos(data->input, &data->prop, in icn8318_irq() 129 input_mt_sync_frame(data->input); in icn8318_irq() 130 input_sync(data->input); in icn8318_irq() 160 mutex_lock(&data->input->mutex); in icn8318_suspend() 161 if (data->input->users) in icn8318_suspend() 162 icn8318_stop(data->input); in icn8318_suspend() 163 mutex_unlock(&data->input->mutex); in icn8318_suspend() [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 | surface3_spi.c | 258 struct input_dev *input; in surface3_spi_create_touch_input() local 261 input = devm_input_allocate_device(&data->spi->dev); in surface3_spi_create_touch_input() 262 if (!input) in surface3_spi_create_touch_input() 265 data->input_dev = input; in surface3_spi_create_touch_input() 267 input_set_abs_params(input, ABS_MT_POSITION_X, 0, 9600, 0, 0); in surface3_spi_create_touch_input() 268 input_abs_set_res(input, ABS_MT_POSITION_X, 40); in surface3_spi_create_touch_input() 269 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, 7200, 0, 0); in surface3_spi_create_touch_input() 270 input_abs_set_res(input, ABS_MT_POSITION_Y, 48); in surface3_spi_create_touch_input() 271 input_set_abs_params(input, ABS_MT_WIDTH_MAJOR, 0, 1024, 0, 0); in surface3_spi_create_touch_input() 272 input_set_abs_params(input, ABS_MT_WIDTH_MINOR, 0, 1024, 0, 0); in surface3_spi_create_touch_input() [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 | hisi_powerkey.c | 31 struct input_dev *input = q; in hi65xx_power_press_isr() local 33 pm_wakeup_event(input->dev.parent, MAX_HELD_TIME); in hi65xx_power_press_isr() 34 input_report_key(input, KEY_POWER, 1); in hi65xx_power_press_isr() 35 input_sync(input); in hi65xx_power_press_isr() 42 struct input_dev *input = q; in hi65xx_power_release_isr() local 44 pm_wakeup_event(input->dev.parent, MAX_HELD_TIME); in hi65xx_power_release_isr() 45 input_report_key(input, KEY_POWER, 0); in hi65xx_power_release_isr() 46 input_sync(input); in hi65xx_power_release_isr() 53 struct input_dev *input = q; in hi65xx_restart_toggle_isr() local 54 int value = test_bit(KEY_RESTART, input->key); in hi65xx_restart_toggle_isr() [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 | 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 | 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 …]
|
/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 | 38 struct input_dev *input; member 55 struct input_dev *input; member 234 const unsigned long *bitmap = get_bm_events_by_type(ddata->input, type); in gpio_keys_attr_store_helper() 361 struct input_dev *input = bdata->input; in gpio_keys_gpio_report_event() local 367 dev_err(input->dev.parent, in gpio_keys_gpio_report_event() 374 input_event(input, type, button->code, button->value); in gpio_keys_gpio_report_event() 376 input_event(input, type, button->code, state); in gpio_keys_gpio_report_event() 378 input_sync(input); in gpio_keys_gpio_report_event() 389 pm_relax(bdata->input->dev.parent); in gpio_keys_gpio_work_func() 399 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 …]
|