/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
H A 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 in read_tsi() 104 start_tsi(struct da9034_touch *touch) start_tsi() argument 110 stop_tsi(struct da9034_touch *touch) stop_tsi() argument 116 report_pen_down(struct da9034_touch *touch) report_pen_down() argument 135 report_pen_up(struct da9034_touch *touch) report_pen_up() argument 141 da9034_event_handler(struct da9034_touch *touch, int event) da9034_event_handler() argument 225 struct da9034_touch *touch = da9034_tsi_work() local 234 struct da9034_touch *touch = da9034_touch_notifier() local 248 struct da9034_touch *touch = input_get_drvdata(dev); da9034_touch_open() local 279 struct da9034_touch *touch = input_get_drvdata(dev); da9034_touch_close() local 299 struct da9034_touch *touch; da9034_touch_probe() local [all...] |
H A 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 in pm860x_touch_handler() 92 struct pm860x_touch *touch = input_get_drvdata(dev); pm860x_touch_open() local 107 struct pm860x_touch *touch = input_get_drvdata(dev); pm860x_touch_close() local 182 struct pm860x_touch *touch; pm860x_touch_probe() local [all...] |
H A D | mms114.c | 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 in mms114_process_mt() 195 struct mms114_touch touch[MMS114_MAX_TOUCH]; mms114_interrupt() local [all...] |
H A 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 packe in w8001_interrupt() 467 struct w8001_touch_query touch; w8001_setup_touch() local [all...] |
H A 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 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() 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 282 touch = priv->chip->parse_touch_data(touchdata, i, &x, &y, &z); in ili210x_report_events() 285 if (input_mt_report_slot_state(input, MT_TOOL_FINGER, touch)) { in ili210x_report_events() 306 bool touch; ili210x_irq() local [all...] |
/kernel/linux/linux-6.6/drivers/input/touchscreen/ |
H A 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 in read_tsi() 104 start_tsi(struct da9034_touch *touch) start_tsi() argument 110 stop_tsi(struct da9034_touch *touch) stop_tsi() argument 116 report_pen_down(struct da9034_touch *touch) report_pen_down() argument 135 report_pen_up(struct da9034_touch *touch) report_pen_up() argument 141 da9034_event_handler(struct da9034_touch *touch, int event) da9034_event_handler() argument 225 struct da9034_touch *touch = da9034_tsi_work() local 234 struct da9034_touch *touch = da9034_touch_notifier() local 248 struct da9034_touch *touch = input_get_drvdata(dev); da9034_touch_open() local 279 struct da9034_touch *touch = input_get_drvdata(dev); da9034_touch_close() local 299 struct da9034_touch *touch; da9034_touch_probe() local [all...] |
H A 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 in pm860x_touch_handler() 92 struct pm860x_touch *touch = input_get_drvdata(dev); pm860x_touch_open() local 107 struct pm860x_touch *touch = input_get_drvdata(dev); pm860x_touch_close() local 182 struct pm860x_touch *touch; pm860x_touch_probe() local [all...] |
H A D | mms114.c | 160 static void mms114_process_mt(struct mms114_data *data, struct mms114_touch *touch) in mms114_process_mt() argument 168 if (touch->id > MMS114_MAX_TOUCH) { in mms114_process_mt() 169 dev_err(&client->dev, "Wrong touch id (%d)\n", touch->id); in mms114_process_mt() 173 id = touch->id - 1; in mms114_process_mt() 174 x = touch->x_lo | touch->x_hi << 8; in mms114_process_mt() 175 y = touch->y_lo | touch->y_hi << 8; in mms114_process_mt() 179 id, touch in mms114_process_mt() 192 mms114_process_touchkey(struct mms114_data *data, struct mms114_touch *touch) mms114_process_touchkey() argument 220 struct mms114_touch touch[MMS114_MAX_TOUCH]; mms114_interrupt() local [all...] |
H A 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 packe in w8001_interrupt() 467 struct w8001_touch_query touch; w8001_setup_touch() local [all...] |
H A D | novatek-nvt-ts.c | 95 u8 *touch; in nvt_ts_irq() local 103 touch = &data->buf[i * NVT_TS_TOUCH_SIZE]; in nvt_ts_irq() 105 if (touch[0] == NVT_TS_TOUCH_INVALID) in nvt_ts_irq() 108 slot = touch[0] >> NVT_TS_TOUCH_SLOT_SHIFT; in nvt_ts_irq() 114 switch (touch[0] & NVT_TS_TOUCH_TYPE_MASK) { in nvt_ts_irq() 123 dev_warn(dev, "slot %d unknown state %d\n", slot, touch[0] & 7); in nvt_ts_irq() 128 x = (touch[1] << 4) | (touch[3] >> 4); in nvt_ts_irq() 129 y = (touch[2] << 4) | (touch[ in nvt_ts_irq() [all...] |
/kernel/linux/linux-5.10/drivers/input/mouse/ |
H A 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 in synaptics_i2c_irq() 380 synaptics_i2c_check_params(struct synaptics_i2c *touch) synaptics_i2c_check_params() argument 407 synaptics_i2c_adjust_delay(struct synaptics_i2c *touch, bool have_data) synaptics_i2c_adjust_delay() argument 434 struct synaptics_i2c *touch = synaptics_i2c_work_handler() local 456 struct synaptics_i2c *touch = input_get_drvdata(input); synaptics_i2c_open() local 472 struct synaptics_i2c *touch = input_get_drvdata(input); synaptics_i2c_close() local 483 synaptics_i2c_set_input_params(struct synaptics_i2c *touch) synaptics_i2c_set_input_params() argument 509 struct synaptics_i2c *touch; synaptics_i2c_touch_create() local 528 struct synaptics_i2c *touch; synaptics_i2c_probe() local 592 struct synaptics_i2c *touch = i2c_get_clientdata(client); synaptics_i2c_remove() local 606 struct synaptics_i2c *touch = i2c_get_clientdata(client); synaptics_i2c_suspend() local 620 struct synaptics_i2c *touch = i2c_get_clientdata(client); synaptics_i2c_resume() local [all...] |
H A D | byd.c | 53 /* Time in jiffies used to timeout various touch events (64 ms) */ 233 bool touch; member 241 input_report_key(dev, BTN_TOUCH, priv->touch); in byd_report_input() 242 input_report_key(dev, BTN_TOOL_FINGER, priv->touch); in byd_report_input() 258 priv->touch = false; in byd_clear_touch() 265 * Move cursor back to center of pad when we lose touch - this in byd_clear_touch() 291 if (!priv->touch) { in byd_process_byte() 295 priv->touch = time_after(jiffies, tap_time); in byd_process_byte() 314 priv->touch = true; in byd_process_byte() 330 /* Reset time since last touch in byd_process_byte() [all...] |
/kernel/linux/linux-6.6/drivers/input/mouse/ |
H A 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 in synaptics_i2c_irq() 380 synaptics_i2c_check_params(struct synaptics_i2c *touch) synaptics_i2c_check_params() argument 407 synaptics_i2c_adjust_delay(struct synaptics_i2c *touch, bool have_data) synaptics_i2c_adjust_delay() argument 434 struct synaptics_i2c *touch = synaptics_i2c_work_handler() local 456 struct synaptics_i2c *touch = input_get_drvdata(input); synaptics_i2c_open() local 472 struct synaptics_i2c *touch = input_get_drvdata(input); synaptics_i2c_close() local 483 synaptics_i2c_set_input_params(struct synaptics_i2c *touch) synaptics_i2c_set_input_params() argument 509 struct synaptics_i2c *touch; synaptics_i2c_touch_create() local 527 struct synaptics_i2c *touch; synaptics_i2c_probe() local 591 struct synaptics_i2c *touch = i2c_get_clientdata(client); synaptics_i2c_remove() local 603 struct synaptics_i2c *touch = i2c_get_clientdata(client); synaptics_i2c_suspend() local 617 struct synaptics_i2c *touch = i2c_get_clientdata(client); synaptics_i2c_resume() local [all...] |
H A D | byd.c | 53 /* Time in jiffies used to timeout various touch events (64 ms) */ 233 bool touch; member 241 input_report_key(dev, BTN_TOUCH, priv->touch); in byd_report_input() 242 input_report_key(dev, BTN_TOOL_FINGER, priv->touch); in byd_report_input() 258 priv->touch = false; in byd_clear_touch() 265 * Move cursor back to center of pad when we lose touch - this in byd_clear_touch() 291 if (!priv->touch) { in byd_process_byte() 295 priv->touch = time_after(jiffies, tap_time); in byd_process_byte() 314 priv->touch = true; in byd_process_byte() 330 /* Reset time since last touch in byd_process_byte() [all...] |
/kernel/linux/linux-5.10/tools/testing/scatterlist/ |
H A D | Makefile | 28 @touch asm/io.h 29 @touch linux/highmem.h 30 @touch linux/kmemleak.h 31 @touch linux/slab.h
|
/kernel/linux/linux-6.6/tools/testing/scatterlist/ |
H A D | Makefile | 28 @touch asm/io.h 29 @touch linux/highmem.h 30 @touch linux/kmemleak.h 31 @touch linux/slab.h
|
/kernel/linux/linux-5.10/drivers/hid/ |
H A 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 in udraw_raw_event() [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A 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 in udraw_raw_event() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/ia64/ |
H A D | aliasing-test.c | 24 static int map_mem(char *path, off_t offset, size_t length, int touch) in map_mem() argument 46 if (touch) { in map_mem() 62 static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) in scan_tree() argument 89 rc = map_mem(path2, offset, length, touch); in scan_tree() 91 fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable" : "mappable"); in scan_tree() 101 rc = scan_tree(path2, file, offset, length, touch); in scan_tree()
|
/kernel/linux/linux-6.6/tools/testing/selftests/ia64/ |
H A D | aliasing-test.c | 24 static int map_mem(char *path, off_t offset, size_t length, int touch) in map_mem() argument 46 if (touch) { in map_mem() 62 static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) in scan_tree() argument 89 rc = map_mem(path2, offset, length, touch); in scan_tree() 91 fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable" : "mappable"); in scan_tree() 101 rc = scan_tree(path2, file, offset, length, touch); in scan_tree()
|
/kernel/linux/linux-5.10/tools/perf/tests/shell/ |
H A D | test_arm_coresight.sh | 36 -- taskset -c $2 touch $file 43 # touch 6512 1 branches:u: ffffb220824c strcmp+0xc (/lib/aarch64-linux-gnu/ld-2.27.so) 44 # touch 6512 1 branches:u: ffffb22082e0 strcmp+0xa0 (/lib/aarch64-linux-gnu/ld-2.27.so) 45 # touch 6512 1 branches:u: ffffb2208320 strcmp+0xe0 (/lib/aarch64-linux-gnu/ld-2.27.so) 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 l [all...] |
/kernel/linux/linux-6.6/tools/perf/tests/shell/ |
H A D | test_arm_coresight.sh | 41 -- taskset -c $2 touch $file > /dev/null 2>&1 48 # touch 6512 1 branches:u: ffffb220824c strcmp+0xc (/lib/aarch64-linux-gnu/ld-2.27.so) 49 # touch 6512 1 branches:u: ffffb22082e0 strcmp+0xa0 (/lib/aarch64-linux-gnu/ld-2.27.so) 50 # touch 6512 1 branches:u: ffffb2208320 strcmp+0xe0 (/lib/aarch64-linux-gnu/ld-2.27.so) 59 # 73.04% 73.04% touch libc-2.27.so [.] _dl_addr 60 # 7.71% 7.71% touch libc-2.27.so [.] getenv 61 # 2.59% 2.59% touch ld-2.27.so [.] strcmp 70 # 68.12% touch libc-2.27.so [.] _dl_addr 71 # 5.80% touch libc-2.27.so [.] getenv 72 # 4.35% touch l [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/benchmarks/ |
H A D | context_switch.c | 55 static void touch(void) in touch() function 189 touch(); in pipe_thread1() 192 touch(); in pipe_thread1() 204 touch(); in pipe_thread2() 207 touch(); in pipe_thread2() 234 touch(); in yield_thread1() 246 touch(); in yield_thread2() 408 fprintf(stderr, "\t\t--no-fp\t\tDon't touch FP\n"); in usage() 410 fprintf(stderr, "\t\t--no-altivec\tDon't touch altivec\n"); in usage() 412 fprintf(stderr, "\t\t--no-vector\tDon't touch vecto in usage() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/benchmarks/ |
H A D | context_switch.c | 55 static void touch(void) in touch() function 189 touch(); in pipe_thread1() 192 touch(); in pipe_thread1() 204 touch(); in pipe_thread2() 207 touch(); in pipe_thread2() 234 touch(); in yield_thread1() 246 touch(); in yield_thread2() 408 fprintf(stderr, "\t\t--no-fp\t\tDon't touch FP\n"); in usage() 410 fprintf(stderr, "\t\t--no-altivec\tDon't touch altivec\n"); in usage() 412 fprintf(stderr, "\t\t--no-vector\tDon't touch vecto in usage() [all...] |
/kernel/linux/linux-5.10/drivers/media/rc/ |
H A D | imon.c | 129 struct input_dev *touch; /* input device for touchscreen */ member 148 char name_touch[128]; /* touch screen name */ 149 char phys_touch[64]; /* touch screen phys path */ 150 struct timer_list ttimer; /* touch screen timer */ 1104 input_report_abs(ictx->touch, ABS_X, ictx->touch_x); in imon_touch_display_timeout() 1105 input_report_abs(ictx->touch, ABS_Y, ictx->touch_y); in imon_touch_display_timeout() 1106 input_report_key(ictx->touch, BTN_TOUCH, 0x00); in imon_touch_display_timeout() 1107 input_sync(ictx->touch); in imon_touch_display_timeout() 1389 input_report_abs(ictx->touch, ABS_X, ictx->touch_x); in imon_touch_event() 1390 input_report_abs(ictx->touch, ABS_ in imon_touch_event() 2080 struct input_dev *touch; imon_init_touch() local [all...] |