| /kernel/linux/linux-4.19/drivers/input/touchscreen/ |
| D | da9034-ts.c | 69 static inline int is_pen_down(struct da9034_touch *touch) in is_pen_down() argument 71 return da903x_query_status(touch->da9034_dev, DA9034_STATUS_PEN_DOWN); in is_pen_down() 74 static inline int detect_pen_down(struct da9034_touch *touch, int on) in detect_pen_down() argument 77 return da903x_set_bits(touch->da9034_dev, in detect_pen_down() 80 return da903x_clr_bits(touch->da9034_dev, in detect_pen_down() 84 static int read_tsi(struct da9034_touch *touch) in read_tsi() argument 89 ret = da903x_read(touch->da9034_dev, DA9034_TSI_X_MSB, &_x); in read_tsi() 93 ret = da903x_read(touch->da9034_dev, DA9034_TSI_Y_MSB, &_y); in read_tsi() 97 ret = da903x_read(touch->da9034_dev, DA9034_TSI_XY_LSB, &_v); in read_tsi() 101 touch->last_x = ((_x << 2) & 0x3fc) | (_v & 0x3); in read_tsi() [all …]
|
| D | 88pm860x-ts.c | 24 /* touch register */ 36 /* bit definitions of touch */ 53 struct pm860x_touch *touch = data; in pm860x_touch_handler() local 54 struct pm860x_chip *chip = touch->chip; in pm860x_touch_handler() 60 ret = pm860x_bulk_read(touch->i2c, MEAS_TSIX_1, MEAS_LEN, buf); in pm860x_touch_handler() 71 if ((x != 0) && (z1 != 0) && (touch->res_x != 0)) { in pm860x_touch_handler() 73 rt = (rt * touch->res_x * x) >> ACCURATE_BIT; in pm860x_touch_handler() 77 input_report_abs(touch->idev, ABS_X, x); in pm860x_touch_handler() 78 input_report_abs(touch->idev, ABS_Y, y); in pm860x_touch_handler() 79 input_report_abs(touch->idev, ABS_PRESSURE, rt); in pm860x_touch_handler() [all …]
|
| D | wacom_w8001.c | 35 /* set in first byte of touch data packets */ 69 /* touch query reply packet */ 155 bool touch = data[0] & (1 << i); in parse_multi_touch() local 158 input_mt_report_slot_state(dev, MT_TOOL_FINGER, touch); in parse_multi_touch() 159 if (touch) { in parse_multi_touch() 173 /* emulate single touch events when stylus is out of proximity. in parse_multi_touch() 174 * This is to make single touch backward support consistent in parse_multi_touch() 175 * across all Wacom single touch devices. in parse_multi_touch() 202 /* Early days' single-finger touch models need the following defaults */ in parse_touchquery() 338 /* 2 finger touch packet */ in w8001_interrupt() [all …]
|
| D | mms114.c | 49 /* Touch type */ 154 static void mms114_process_mt(struct mms114_data *data, struct mms114_touch *touch) in mms114_process_mt() argument 162 if (touch->id > MMS114_MAX_TOUCH) { in mms114_process_mt() 163 dev_err(&client->dev, "Wrong touch id (%d)\n", touch->id); in mms114_process_mt() 167 if (touch->type != MMS114_TYPE_TOUCHSCREEN) { in mms114_process_mt() 168 dev_err(&client->dev, "Wrong touch type (%d)\n", touch->type); in mms114_process_mt() 172 id = touch->id - 1; in mms114_process_mt() 173 x = touch->x_lo | touch->x_hi << 8; in mms114_process_mt() 174 y = touch->y_lo | touch->y_hi << 8; in mms114_process_mt() 178 id, touch->type, touch->pressed, in mms114_process_mt() [all …]
|
| D | bu21013_ts.c | 140 * struct bu21013_ts_data - touch panel data structure 143 * @touch_stopped: touch stop flag 144 * @chip: pointer to the touch panel controller 147 * @regulator: pointer to the Regulator used for touch screen 149 * Touch panel device data structure 163 * bu21013_read_block_data(): read the touch co-ordinates 167 * Read the touch co-ordinates using i2c read block into buffer 185 * bu21013_do_touch_report(): Get the touch co-ordinates 188 * Get the touch co-ordinates from touch sensor registers and writes 249 * bu21013_gpio_irq() - gpio thread function for touch interrupt [all …]
|
| /kernel/linux/linux-5.10/drivers/input/touchscreen/ |
| D | da9034-ts.c | 66 static inline int is_pen_down(struct da9034_touch *touch) in is_pen_down() argument 68 return da903x_query_status(touch->da9034_dev, DA9034_STATUS_PEN_DOWN); in is_pen_down() 71 static inline int detect_pen_down(struct da9034_touch *touch, int on) in detect_pen_down() argument 74 return da903x_set_bits(touch->da9034_dev, in detect_pen_down() 77 return da903x_clr_bits(touch->da9034_dev, in detect_pen_down() 81 static int read_tsi(struct da9034_touch *touch) in read_tsi() argument 86 ret = da903x_read(touch->da9034_dev, DA9034_TSI_X_MSB, &_x); in read_tsi() 90 ret = da903x_read(touch->da9034_dev, DA9034_TSI_Y_MSB, &_y); in read_tsi() 94 ret = da903x_read(touch->da9034_dev, DA9034_TSI_XY_LSB, &_v); in read_tsi() 98 touch->last_x = ((_x << 2) & 0x3fc) | (_v & 0x3); in read_tsi() [all …]
|
| D | 88pm860x-ts.c | 21 /* touch register */ 33 /* bit definitions of touch */ 50 struct pm860x_touch *touch = data; in pm860x_touch_handler() local 51 struct pm860x_chip *chip = touch->chip; in pm860x_touch_handler() 57 ret = pm860x_bulk_read(touch->i2c, MEAS_TSIX_1, MEAS_LEN, buf); in pm860x_touch_handler() 68 if ((x != 0) && (z1 != 0) && (touch->res_x != 0)) { in pm860x_touch_handler() 70 rt = (rt * touch->res_x * x) >> ACCURATE_BIT; in pm860x_touch_handler() 74 input_report_abs(touch->idev, ABS_X, x); in pm860x_touch_handler() 75 input_report_abs(touch->idev, ABS_Y, y); in pm860x_touch_handler() 76 input_report_abs(touch->idev, ABS_PRESSURE, rt); in pm860x_touch_handler() [all …]
|
| D | wacom_w8001.c | 37 /* set in first byte of touch data packets */ 71 /* touch query reply packet */ 157 bool touch = data[0] & (1 << i); in parse_multi_touch() local 160 input_mt_report_slot_state(dev, MT_TOOL_FINGER, touch); in parse_multi_touch() 161 if (touch) { in parse_multi_touch() 175 /* emulate single touch events when stylus is out of proximity. in parse_multi_touch() 176 * This is to make single touch backward support consistent in parse_multi_touch() 177 * across all Wacom single touch devices. in parse_multi_touch() 204 /* Early days' single-finger touch models need the following defaults */ in parse_touchquery() 340 /* 2 finger touch packet */ in w8001_interrupt() [all …]
|
| D | mms114.c | 49 /* Touch type */ 154 static void mms114_process_mt(struct mms114_data *data, struct mms114_touch *touch) in mms114_process_mt() argument 162 if (touch->id > MMS114_MAX_TOUCH) { in mms114_process_mt() 163 dev_err(&client->dev, "Wrong touch id (%d)\n", touch->id); in mms114_process_mt() 167 if (touch->type != MMS114_TYPE_TOUCHSCREEN) { in mms114_process_mt() 168 dev_err(&client->dev, "Wrong touch type (%d)\n", touch->type); in mms114_process_mt() 172 id = touch->id - 1; in mms114_process_mt() 173 x = touch->x_lo | touch->x_hi << 8; in mms114_process_mt() 174 y = touch->y_lo | touch->y_hi << 8; in mms114_process_mt() 178 id, touch->type, touch->pressed, in mms114_process_mt() [all …]
|
| D | ili210x.c | 34 bool (*continue_polling)(const u8 *data, bool touch); 99 static bool ili210x_check_continue_polling(const u8 *data, bool touch) in ili210x_check_continue_polling() argument 160 static bool ili211x_decline_polling(const u8 *data, bool touch) in ili211x_decline_polling() argument 182 if (!(val & BIT(15))) /* Touch indication */ in ili212x_touchdata_to_coords() 191 static bool ili212x_check_continue_polling(const u8 *data, bool touch) in ili212x_check_continue_polling() argument 193 return touch; in ili212x_check_continue_polling() 249 if (!(val & BIT(15))) /* Touch indication */ in ili251x_touchdata_to_coords() 259 static bool ili251x_check_continue_polling(const u8 *data, bool touch) in ili251x_check_continue_polling() argument 261 return touch; in ili251x_check_continue_polling() 278 bool contact = false, touch; in ili210x_report_events() local [all …]
|
| /kernel/linux/linux-4.19/drivers/input/mouse/ |
| D | synaptics_i2c.c | 231 static inline void set_scan_rate(struct synaptics_i2c *touch, int scan_rate) in set_scan_rate() argument 233 touch->scan_ms = MSEC_PER_SEC / scan_rate; in set_scan_rate() 234 touch->scan_rate_param = scan_rate; in set_scan_rate() 336 static bool synaptics_i2c_get_input(struct synaptics_i2c *touch) in synaptics_i2c_get_input() argument 338 struct input_dev *input = touch->input; in synaptics_i2c_get_input() 344 if (synaptics_i2c_check_error(touch->client)) in synaptics_i2c_get_input() 348 data = synaptics_i2c_reg_get(touch->client, DATA_REG0); in synaptics_i2c_get_input() 355 xy_delta = synaptics_i2c_word_get(touch->client, REL_X_REG) & 0xffff; in synaptics_i2c_get_input() 372 static void synaptics_i2c_reschedule_work(struct synaptics_i2c *touch, in synaptics_i2c_reschedule_work() argument 377 spin_lock_irqsave(&touch->lock, flags); in synaptics_i2c_reschedule_work() [all …]
|
| /kernel/linux/linux-5.10/drivers/input/mouse/ |
| D | synaptics_i2c.c | 230 static inline void set_scan_rate(struct synaptics_i2c *touch, int scan_rate) in set_scan_rate() argument 232 touch->scan_ms = MSEC_PER_SEC / scan_rate; in set_scan_rate() 233 touch->scan_rate_param = scan_rate; in set_scan_rate() 335 static bool synaptics_i2c_get_input(struct synaptics_i2c *touch) in synaptics_i2c_get_input() argument 337 struct input_dev *input = touch->input; in synaptics_i2c_get_input() 343 if (synaptics_i2c_check_error(touch->client)) in synaptics_i2c_get_input() 347 data = synaptics_i2c_reg_get(touch->client, DATA_REG0); in synaptics_i2c_get_input() 354 xy_delta = synaptics_i2c_word_get(touch->client, REL_X_REG) & 0xffff; in synaptics_i2c_get_input() 373 struct synaptics_i2c *touch = dev_id; in synaptics_i2c_irq() local 375 mod_delayed_work(system_wq, &touch->dwork, 0); in synaptics_i2c_irq() [all …]
|
| /kernel/linux/linux-4.19/Documentation/media/uapi/v4l/ |
| D | dev-touch.rst | 6 Touch Devices 9 Touch devices are accessed through character device special files named 16 Sensors may be Optical, or Projected Capacitive touch (PCT). 21 analogue front end device which delivers touch data at high rate, and any touch 24 For capacitive touch sensing, the touchscreen is composed of an array of 30 A touch input may be determined by comparing the raw capacitance measurement to 31 a no-touch reference (or "baseline") measurement: 36 the touch sensor matrix, for example manufacturing irregularities, 42 Devices supporting the touch interface set the ``V4L2_CAP_VIDEO_CAPTURE`` flag 50 The formats supported by touch devices are documented in [all …]
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
| D | dev-touch.rst | 6 Touch Devices 9 Touch devices are accessed through character device special files named 16 Sensors may be Optical, or Projected Capacitive touch (PCT). 21 analogue front end device which delivers touch data at high rate, and any touch 24 For capacitive touch sensing, the touchscreen is composed of an array of 30 A touch input may be determined by comparing the raw capacitance measurement to 31 a no-touch reference (or "baseline") measurement: 36 the touch sensor matrix, for example manufacturing irregularities, 42 Devices supporting the touch interface set the ``V4L2_CAP_VIDEO_CAPTURE`` flag 50 The formats supported by touch devices are documented in [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/input/touchscreen/ |
| D | bu21013.txt | 1 * Rohm BU21013 Touch Screen 8 - touch-gpio : GPIO pin registering a touch event 10 - rohm,touch-max-x : Maximum outward permitted limit in the X axis 11 - rohm,touch-max-y : Maximum outward permitted limit in the Y axis 12 - rohm,flip-x : Flip touch coordinates on the X axis 13 - rohm,flip-y : Flip touch coordinates on the Y axis 21 touch-gpio = <&gpio2 20 0x4>; 24 rohm,touch-max-x = <384>; 25 rohm,touch-max-y = <704>;
|
| D | imx6ul_tsc.txt | 1 * Freescale i.MX6UL Touch Controller 5 - reg: this touch controller address and the ADC2 address. 6 - interrupts: the interrupt of this touch controller and ADC2. 7 - clocks: the root clock of touch controller and ADC2. 10 This xnur-gpio returns to low once the finger leave the touch screen (The 11 last touch event the touch controller capture). 17 This value depends on the touch screen. 18 - pre-charge-time: the touch screen need some time to precharge. 19 This value depends on the touch screen.
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/touchscreen/ |
| D | imx6ul_tsc.txt | 1 * Freescale i.MX6UL Touch Controller 5 - reg: this touch controller address and the ADC2 address. 6 - interrupts: the interrupt of this touch controller and ADC2. 7 - clocks: the root clock of touch controller and ADC2. 10 This xnur-gpio returns to low once the finger leave the touch screen (The 11 last touch event the touch controller capture). 17 This value depends on the touch screen. 18 - pre-charge-time: the touch screen need some time to precharge. 19 This value depends on the touch screen.
|
| D | bu21013.txt | 1 * Rohm BU21013 Touch Screen 11 - touch-gpios : GPIO pin registering a touch event 23 - rohm,touch-max-x : Maximum outward permitted limit in the X axis 24 - rohm,touch-max-y : Maximum outward permitted limit in the Y axis 25 - rohm,flip-x : Flip touch coordinates on the X axis 26 - rohm,flip-y : Flip touch coordinates on the Y axis 36 touch-gpio = <&gpio2 20 GPIO_ACTIVE_LOW>;
|
| /kernel/linux/linux-5.10/tools/perf/tests/shell/ |
| D | test_arm_coresight.sh | 36 -- taskset -c $2 touch $file 43 …# touch 6512 1 branches:u: ffffb220824c strcmp+0xc (/lib/aarch64-linux-gn… 44 …# touch 6512 1 branches:u: ffffb22082e0 strcmp+0xa0 (/lib/aarch64-linux-g… 45 …# touch 6512 1 branches:u: ffffb2208320 strcmp+0xe0 (/lib/aarch64-linux-g… 54 # 73.04% 73.04% touch libc-2.27.so [.] _dl_addr 55 # 7.71% 7.71% touch libc-2.27.so [.] getenv 56 # 2.59% 2.59% touch ld-2.27.so [.] strcmp 65 # 68.12% touch libc-2.27.so [.] _dl_addr 66 # 5.80% touch libc-2.27.so [.] getenv 67 # 4.35% touch ld-2.27.so [.] _dl_fixup [all …]
|
| /kernel/linux/linux-5.10/Documentation/input/ |
| D | multi-touch-protocol.rst | 4 Multi-touch (MT) Protocol 13 In order to utilize the full power of the new multi-touch and multi-user 16 document describes the multi-touch (MT) protocol which allows kernel 34 packet. Since these events are ignored by current single-touch (ST) 48 All drivers mark the end of a multi-touch transfer by calling the usual 95 Here is what a minimal event sequence for a two-contact touch would look 131 Here is what a minimal event sequence for a two-contact touch would look 176 The TOUCH and WIDTH parameters have a geometrical interpretation; imagine 182 ABS_MT_TOOL_X/Y. The touch diameter is ABS_MT_TOUCH_MAJOR and the finger 184 harder against the glass. The touch region will increase, and in general, [all …]
|
| /kernel/linux/linux-4.19/Documentation/input/ |
| D | multi-touch-protocol.rst | 4 Multi-touch (MT) Protocol 13 In order to utilize the full power of the new multi-touch and multi-user 16 document describes the multi-touch (MT) protocol which allows kernel 34 packet. Since these events are ignored by current single-touch (ST) 48 All drivers mark the end of a multi-touch transfer by calling the usual 95 Here is what a minimal event sequence for a two-contact touch would look 131 Here is what a minimal event sequence for a two-contact touch would look 176 The TOUCH and WIDTH parameters have a geometrical interpretation; imagine 182 ABS_MT_TOOL_X/Y. The touch diameter is ABS_MT_TOUCH_MAJOR and the finger 184 harder against the glass. The touch region will increase, and in general, [all …]
|
| /kernel/linux/linux-5.10/drivers/hid/ |
| D | hid-udraw-ps3.c | 26 * - the touch area which works as a touchpad 77 * the device could report a single touch when the two fingers 81 * We'll make do without it, and try to report the first touch 105 int touch; in udraw_raw_event() local 112 touch = TOUCH_NONE; in udraw_raw_event() 114 touch = TOUCH_PEN; in udraw_raw_event() 116 touch = TOUCH_FINGER; in udraw_raw_event() 118 touch = TOUCH_TWOFINGER; in udraw_raw_event() 171 if (touch != TOUCH_NONE) { in udraw_raw_event() 178 if (touch == TOUCH_FINGER) { in udraw_raw_event() [all …]
|
| /kernel/linux/linux-4.19/drivers/hid/ |
| D | hid-magicmouse.c | 54 MODULE_PARM_DESC(report_undeciphered, "Report undeciphered multi-touch state field using a MSC_RAW … 60 * 0x03 seem to indicate the aspect ratio of the touch, bits 0x70 seem 72 /* Touch surface information. Dimension is in hundredths of a mm, min and max 98 * @ntouches: Number of touches in most recent touch report. 101 * @touches: Most recent data for a touch, indexed by tracking ID. 102 * @tracking_ids: Mapping of current touch input data to @touches. 124 int touch = -1; in magicmouse_firm_touch() local 127 /* If there is only one "firm" touch, set touch to its in magicmouse_firm_touch() 133 /* Ignore this touch. */ in magicmouse_firm_touch() 134 } else if (touch >= 0) { in magicmouse_firm_touch() [all …]
|
| D | hid-udraw-ps3.c | 34 * - the touch area which works as a touchpad 85 * the device could report a single touch when the two fingers 89 * We'll make do without it, and try to report the first touch 113 int touch; in udraw_raw_event() local 120 touch = TOUCH_NONE; in udraw_raw_event() 122 touch = TOUCH_PEN; in udraw_raw_event() 124 touch = TOUCH_FINGER; in udraw_raw_event() 126 touch = TOUCH_TWOFINGER; in udraw_raw_event() 179 if (touch != TOUCH_NONE) { in udraw_raw_event() 186 if (touch == TOUCH_FINGER) { in udraw_raw_event() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/ |
| D | iqs62x-keys.yaml | 37 Specifies the numeric keycodes associated with each available touch or 44 | 0 | CH0 Touch | x | x | x | x | x | 45 | | Antenna 1 Touch* | x | | | | | 50 | 2 | CH1 Touch | x | x | x | x | x | 51 | | Ant. 1 Deep Touch* | x | | | | | 55 | 4 | CH2 Touch | x | | | | | 60 | 6 | Metal (+) Touch** | x | x | | | | 61 | | Ant. 2 Deep Touch* | x | | | | | 64 | | Antenna 2 Touch* | x | | | | | 66 | 8 | Metal (-) Touch** | x | x | | | | [all …]
|