Lines Matching defs:input
313 struct input_dev *input;
315 input = devm_input_allocate_device(dev);
316 if (!input)
319 input_copy_abs(input, ABS_X, ts->input_dev, ABS_MT_POSITION_X);
320 input_copy_abs(input, ABS_Y, ts->input_dev, ABS_MT_POSITION_Y);
326 input_abs_set_res(input, ABS_X, 10);
327 input_abs_set_res(input, ABS_Y, 10);
328 input_set_abs_params(input, ABS_PRESSURE, 0, 255, 0, 0);
330 input_set_capability(input, EV_KEY, BTN_TOUCH);
331 input_set_capability(input, EV_KEY, BTN_TOOL_PEN);
332 input_set_capability(input, EV_KEY, BTN_STYLUS);
333 input_set_capability(input, EV_KEY, BTN_STYLUS2);
334 __set_bit(INPUT_PROP_DIRECT, input->propbit);
336 input->name = "Goodix Active Pen";
337 input->phys = "input/pen";
338 input->id.bustype = BUS_I2C;
339 input->id.vendor = 0x0416;
340 if (kstrtou16(ts->id, 10, &input->id.product))
341 input->id.product = 0x1001;
342 input->id.version = ts->version;
344 ts->input_pen = input;
464 * the input events to the user space.
774 * Put the reset pin back in to input / high-impedance mode to save
913 * mode and the call should have put the int GPIO in input mode,
919 * which will explicitly set the direction to input.
935 * Normally we put the reset pin in input / high-impedance mode to save
967 * By default we request the reset pin as input, leaving it in
1140 dev_err(&ts->client->dev, "Failed to allocate input device.");
1145 ts->input_dev->phys = "input/ts";
1225 "Failed to register input device: %d", error);