| /drivers/input/touchscreen/ |
| A D | goodix.c | 541 devm_free_irq(&ts->client->dev, ts->client->irq, ts); in goodix_free_irq() 551 ts->irq_flags, ts->client->name, ts); in goodix_request_irq() 862 ts->gpio_int_idx = ts->gpio_count; in goodix_resource() 951 ts->gpio_count, ts->gpio_int_idx); in goodix_add_acpi_gpio_mappings() 1039 if (!ts->gpiod_int || !ts->gpiod_rst) in goodix_get_gpio_config() 1094 ts->chip->calc_config_checksum(ts); in goodix_read_config() 1178 ts->input_dev->keycode = ts->keymap; in goodix_configure_dev() 1204 if (!ts->prop.max_x || !ts->prop.max_y || !ts->max_touch_num) { in goodix_configure_dev() 1217 ts->prop.max_x, ts->prop.max_y, ts->max_touch_num); in goodix_configure_dev() 1248 input_set_drvdata(ts->input_dev, ts); in goodix_configure_dev() [all …]
|
| A D | mxs-lradc-ts.c | 394 input_report_abs(ts->ts_input, ABS_X, ts->ts_x_pos); in mxs_lradc_report_ts_event() 395 input_report_abs(ts->ts_input, ABS_Y, ts->ts_y_pos); in mxs_lradc_report_ts_event() 396 input_report_abs(ts->ts_input, ABS_PRESSURE, ts->ts_pressure); in mxs_lradc_report_ts_event() 436 if (ts->ts_valid) { in mxs_lradc_finish_touch_event() 467 ts->ts_y_pos = in mxs_lradc_handle_touch() 473 ts->ts_x_pos = in mxs_lradc_handle_touch() 479 ts->ts_pressure = in mxs_lradc_handle_touch() 612 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in mxs_lradc_ts_probe() 613 if (!ts) in mxs_lradc_ts_probe() 618 ts->lradc = lradc; in mxs_lradc_ts_probe() [all …]
|
| A D | ad7879.c | 263 ad7879_write(ts, AD7879_REG_CTRL2, ts->cmd_crtl2); in __ad7879_enable() 264 ad7879_write(ts, AD7879_REG_CTRL3, ts->cmd_crtl3); in __ad7879_enable() 265 ad7879_write(ts, AD7879_REG_CTRL1, ts->cmd_crtl1); in __ad7879_enable() 288 if (!ts->disabled && !ts->suspended) in ad7879_open() 299 if (!ts->disabled && !ts->suspended) in ad7879_close() 309 if (!ts->suspended && !ts->disabled && input_device_enabled(ts->input)) in ad7879_suspend() 325 if (ts->suspended && !ts->disabled && input_device_enabled(ts->input)) in ad7879_resume() 484 ts->gc.parent = ts->dev; in ad7879_gpio_add() 486 ret = devm_gpiochip_add_data(ts->dev, &ts->gc, ts); in ad7879_gpio_add() 539 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in ad7879_probe() [all …]
|
| A D | cyttsp_core.c | 84 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data() 102 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data() 129 memset(&ts->bl_data, 0, sizeof(ts->bl_data)); in cyttsp_load_bl_regs() 133 sizeof(ts->bl_data), &ts->bl_data); in cyttsp_load_bl_regs() 174 sizeof(ts->xy_data), &ts->xy_data); in cyttsp_set_operational_mode() 189 memset(&ts->sysinfo_data, 0, sizeof(ts->sysinfo_data)); in cyttsp_set_sysinfo_mode() 207 if (!ts->sysinfo_data.tts_verh && !ts->sysinfo_data.tts_verl) in cyttsp_set_sysinfo_mode() 224 ts->lp_intrvl in cyttsp_set_sysinfo_regs() 468 sizeof(ts->xy_data), &ts->xy_data); in cyttsp_enable() 630 if (!ts) in cyttsp_probe() [all …]
|
| A D | tsc200x-core.c | 118 touchscreen_report_pos(ts->idev, &ts->prop, x, y, false); in tsc200x_update_pen_state() 164 ts->in_x == tsdata.x && ts->in_y == tsdata.y && in tsc200x_irq_thread() 165 ts->in_z1 == tsdata.z1 && ts->in_z2 == tsdata.z2) { in tsc200x_irq_thread() 208 ts->tsc200x_cmd(ts->dev, TSC200X_CMD_NORMAL); in tsc200x_start_scan() 213 ts->tsc200x_cmd(ts->dev, TSC200X_CMD_STOP); in tsc200x_stop_scan() 241 if (ts->esd_timeout && ts->reset_gpio) { in __tsc200x_enable() 454 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in tsc200x_probe() 455 if (!ts) in tsc200x_probe() 482 snprintf(ts->phys, sizeof(ts->phys), in tsc200x_probe() 562 if (!ts->suspended && ts->opened) in tsc200x_suspend() [all …]
|
| A D | melfas_mip4.c | 287 snprintf(ts->fw_name, sizeof(ts->fw_name), in mip4_query_device() 295 ts->ic_name, sizeof(ts->ic_name)); in mip4_query_device() 301 (int)sizeof(ts->ic_name), ts->ic_name); in mip4_query_device() 310 ts->fw_version.boot, ts->fw_version.core, in mip4_query_device() 311 ts->fw_version.app, ts->fw_version.param); in mip4_query_device() 325 ts->max_x, ts->max_y); in mip4_query_device() 332 ts->node_x, ts->node_y, ts->node_key); in mip4_query_device() 337 ts->ppm_x, ts->ppm_y); in mip4_query_device() 341 ts->key_num = ts->node_key; in mip4_query_device() 356 ts->event_format, ts->event_size); in mip4_query_device() [all …]
|
| A D | hideep.c | 696 if (ts->reset_gpio) in hideep_power_off() 787 ts->prop.max_x, ts->prop.max_y); in hideep_get_axis_info() 806 input_set_drvdata(ts->input_dev, ts); in hideep_init_input() 814 touchscreen_parse_properties(ts->input_dev, true, &ts->prop); in hideep_init_input() 816 if (ts->prop.max_x == 0 || ts->prop.max_y == 0) { in hideep_init_input() 830 ts->key_num); in hideep_init_input() 847 ts->input_dev->keycode = ts->key_codes; in hideep_init_input() 848 ts->input_dev->keycodesize = sizeof(ts->key_codes[0]); in hideep_init_input() 849 ts->input_dev->keycodemax = ts->key_num; in hideep_init_input() 1034 ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL); in hideep_probe() [all …]
|
| A D | ads7846.c | 242 if (!ts->disabled && !ts->suspended) { in ads7846_stop() 254 if (!ts->disabled && !ts->suspended) { in ads7846_restart() 256 if (ts->pendown && !get_pendown_state(ts)) in ads7846_restart() 652 if (!ts->read_cnt || (abs(ts->last_read - *val) > ts->debounce_tol)) { in ads7846_debounce_filter() 659 if (ts->read_cnt < ts->debounce_max) { in ads7846_debounce_filter() 674 if (++ts->read_rep > ts->debounce_rep) { in ads7846_debounce_filter() 955 wait_event_timeout(ts->wait, ts->stopped, in ads7846_irq() 959 if (ts->pendown && !ts->stopped) in ads7846_irq() 1059 if (ts->debounce_max && ts->debounce_rep) in ads7846_setup_spi_msg() 1287 ts->filter_data = ts; in ads7846_probe() [all …]
|
| A D | imagis.c | 147 touchscreen_report_pos(ts->input_dev, &ts->prop, in imagis_interrupt() 158 input_report_key(ts->input_dev, ts->keycodes[i], in imagis_interrupt() 172 regulator_bulk_disable(ARRAY_SIZE(ts->supplies), ts->supplies); in imagis_power_off() 221 imagis_stop(ts); in imagis_input_close() 249 ts->keycodes, 0, ARRAY_SIZE(ts->keycodes)); in imagis_init_input_dev() 265 if (!ts->prop.max_x || !ts->prop.max_y) { in imagis_init_input_dev() 307 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in imagis_probe() 308 if (!ts) in imagis_probe() 311 ts->client = i2c; in imagis_probe() 314 if (!ts->tdata) { in imagis_probe() [all …]
|
| A D | cyttsp5.c | 328 touchscreen_report_pos(ts->input, &ts->prop, in cyttsp5_get_mt_touches() 703 error = cyttsp5_read(ts, ts->input_buf, CY_MAX_INPUT); in cyttsp5_handle_irq() 724 memcpy(ts->response_buf, ts->input_buf, size); in cyttsp5_handle_irq() 729 memcpy(ts->response_buf, ts->input_buf, size); in cyttsp5_handle_irq() 795 error = cyttsp5_get_hid_descriptor(ts, &ts->hid_desc); in cyttsp5_startup() 830 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in cyttsp5_probe() 831 if (!ts) in cyttsp5_probe() 836 ts->dev = dev; in cyttsp5_probe() 870 ts->input->phys = ts->phys; in cyttsp5_probe() 871 input_set_drvdata(ts->input, ts); in cyttsp5_probe() [all …]
|
| A D | sun4i-ts.c | 155 ts->temp_data = readl(ts->base + TEMP_DATA); in sun4i_ts_irq() 157 if (ts->input) in sun4i_ts_irq() 190 *temp = ts->temp_data * ts->temp_step - ts->temp_offset; in sun4i_get_temp() 248 if (!ts) in sun4i_ts_probe() 251 ts->dev = dev; in sun4i_ts_probe() 253 ts->temp_data = -1; in sun4i_ts_probe() 286 if (!ts->input) in sun4i_ts_probe() 301 input_set_drvdata(ts->input, ts); in sun4i_ts_probe() 309 error = devm_request_irq(dev, ts->irq, sun4i_ts_irq, 0, "sun4i-ts", ts); in sun4i_ts_probe() 359 thermal = devm_thermal_of_zone_register(ts->dev, 0, ts, in sun4i_ts_probe() [all …]
|
| A D | tsc2007_core.c | 108 return ts->get_pendown_state(&ts->client->dev); in tsc2007_is_pen_down() 118 while (!ts->stopped && tsc2007_is_pen_down(ts)) { in tsc2007_soft_irq() 159 wait_event_timeout(ts->wait, ts->stopped, ts->poll_period); in tsc2007_soft_irq() 176 ts->stopped = true; in tsc2007_stop() 196 tsc2007_stop(ts); in tsc2007_open() 207 tsc2007_stop(ts); in tsc2007_close() 253 if (ts->gpiod) in tsc2007_probe_properties() 305 if (!ts) in tsc2007_probe() 328 snprintf(ts->phys, sizeof(ts->phys), in tsc2007_probe() 370 ts->irq, err); in tsc2007_probe() [all …]
|
| A D | zforce_ts.c | 248 error = zforce_resolution(ts, ts->prop.max_x, ts->prop.max_y); in zforce_start() 357 touchscreen_report_pos(ts->input, &ts->prop, in zforce_touch_event() 519 ts->version_rev = in zforce_irq_thread() 524 ts->version_major, ts->version_minor, in zforce_irq_thread() 525 ts->version_build, ts->version_rev); in zforce_irq_thread() 688 if (!ts) in zforce_probe() 698 if (ts->gpio_rst) { in zforce_probe() 745 snprintf(ts->phys, sizeof(ts->phys), in zforce_probe() 765 if (ts->prop.max_x == 0 || ts->prop.max_y == 0) in zforce_probe() 779 input_set_drvdata(ts->input, ts); in zforce_probe() [all …]
|
| A D | ilitek_ts_i2c.c | 203 ts->screen_min_x, x, ts->screen_max_x, in ilitek_process_and_report_v6() 204 ts->screen_min_y, y, ts->screen_max_y); in ilitek_process_and_report_v6() 264 memset(ts->product_id, 0, sizeof(ts->product_id)); in api_protocol_get_mcu_ver() 522 ts->firmware_ver[0], ts->firmware_ver[1], in firmware_version_show() 523 ts->firmware_ver[2], ts->firmware_ver[3], in firmware_version_show() 524 ts->firmware_ver[4], ts->firmware_ver[5], in firmware_version_show() 525 ts->firmware_ver[6], ts->firmware_ver[7]); in firmware_version_show() 536 ts->mcu_ver, ts->product_id); in product_id_show() 558 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in ilitek_ts_i2c_probe() 559 if (!ts) in ilitek_ts_i2c_probe() [all …]
|
| A D | himax_hx83112b.c | 184 ts->input_dev = devm_input_allocate_device(&ts->client->dev); in himax_input_register() 185 if (!ts->input_dev) { in himax_input_register() 197 touchscreen_parse_properties(ts->input_dev, true, &ts->props); in himax_input_register() 239 touchscreen_report_pos(ts->input_dev, &ts->props, x, y, true); in himax_process_event_point() 297 error = ts->chip->read_events(ts, &event, sizeof(event)); in himax_handle_input() 330 struct himax_ts_data *ts; in himax_probe() local 337 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in himax_probe() 338 if (!ts) in himax_probe() 342 ts->client = client; in himax_probe() 359 himax_reset(ts); in himax_probe() [all …]
|
| A D | ad7877.c | 378 struct ad7877 *ts = timer_container_of(ts, t, timer); in ad7877_timer() local 392 error = spi_sync(ts->spi, &ts->msg); in ad7877_irq() 543 ts->gpio3 = !!val; in ad7877_gpio3_store() 545 (ts->gpio4 << 4) | (ts->gpio3 << 5)); in ad7877_gpio3_store() 576 (ts->gpio4 << 4) | (ts->gpio3 << 5)); in ad7877_gpio4_store() 643 m = &ts->msg; in ad7877_setup_ts_def_msg() 647 m->context = ts; in ad7877_setup_ts_def_msg() 649 ts->xfer[0].tx_buf = &ts->cmd_crtl1; in ad7877_setup_ts_def_msg() 655 ts->xfer[1].tx_buf = &ts->cmd_dummy; /* Send ZERO */ in ad7877_setup_ts_def_msg() 702 if (!ts) in ad7877_probe() [all …]
|
| A D | ipaq-micro-ts.c | 37 input_sync(ts->input); in micro_ts_receive() 42 input_sync(ts->input); in micro_ts_receive() 53 micro->ts = micro_ts_receive; in micro_ts_toggle_receive() 54 micro->ts_data = ts; in micro_ts_toggle_receive() 56 micro->ts = NULL; in micro_ts_toggle_receive() 82 struct touchscreen_data *ts; in micro_ts_probe() local 85 ts = devm_kzalloc(&pdev->dev, sizeof(*ts), GFP_KERNEL); in micro_ts_probe() 86 if (!ts) in micro_ts_probe() 89 ts->micro = micro; in micro_ts_probe() 92 if (!ts->input) { in micro_ts_probe() [all …]
|
| A D | goodix_fwupload.c | 266 if (ts->bak_ref) in goodix_prepare_bak_ref() 284 ts->bak_ref = devm_kzalloc(&ts->client->dev, in goodix_prepare_bak_ref() 286 if (!ts->bak_ref) in goodix_prepare_bak_ref() 304 ts->bak_ref[ts->bak_ref_len - 1] = 1; in goodix_prepare_bak_ref() 334 if (!ts->firmware_name) in goodix_firmware_check() 365 error = goodix_send_cfg(ts, ts->config, ts->chip->config_len); in goodix_handle_fw_request() 376 ts->bak_ref, ts->bak_ref_len); in goodix_handle_fw_request() 411 if (!ts->firmware_name) in goodix_save_bak_ref() 422 ts->bak_ref, ts->bak_ref_len); in goodix_save_bak_ref() 424 memset(ts->bak_ref, 0, ts->bak_ref_len); in goodix_save_bak_ref() [all …]
|
| A D | auo-pixcir-ts.c | 211 wait_event_timeout(ts->wait, ts->stopped, in auo_pixcir_interrupt() 254 wait_event_timeout(ts->wait, ts->stopped, in auo_pixcir_interrupt() 363 ts->stopped = false; in auo_pixcir_start() 392 ts->stopped = true; in auo_pixcir_stop() 394 wake_up(&ts->wait); in auo_pixcir_stop() 410 auo_pixcir_stop(ts); in auo_pixcir_input_close() 492 ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL); in auo_pixcir_probe() 493 if (!ts) in auo_pixcir_probe() 505 ts->stopped = true; in auo_pixcir_probe() 508 snprintf(ts->phys, sizeof(ts->phys), in auo_pixcir_probe() [all …]
|
| A D | zet6223.c | 39 enable_irq(ts->client->irq); in zet6223_start() 91 input_sync(ts->input); in zet6223_irq() 100 regulator_bulk_disable(ARRAY_SIZE(ts->supplies), ts->supplies); in zet6223_power_off() 112 ts->supplies); in zet6223_power_on() 116 error = regulator_bulk_enable(ARRAY_SIZE(ts->supplies), ts->supplies); in zet6223_power_on() 141 dev_err(&ts->client->dev, in zet6223_query_device() 149 dev_err(&ts->client->dev, in zet6223_query_device() 171 struct zet6223_ts *ts; in zet6223_probe() local 180 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in zet6223_probe() 181 if (!ts) in zet6223_probe() [all …]
|
| /drivers/mfd/ |
| A D | ucb1x00-ts.c | 174 return ucb1x00_adc_read(ts->ucb, 0, ts->adcsync); in ucb1x00_ts_read_xres() 186 return ucb1x00_adc_read(ts->ucb, 0, ts->adcsync); in ucb1x00_ts_read_yres() 327 ts->x_res = ucb1x00_ts_read_xres(ts); in ucb1x00_ts_open() 328 ts->y_res = ucb1x00_ts_read_yres(ts); in ucb1x00_ts_open() 331 ts->rtask = kthread_run(ucb1x00_thread, ts, "ktsd"); in ucb1x00_ts_open() 335 free_irq(ts->ucb->irq_base + UCB_IRQ_TSPX, ts); in ucb1x00_ts_open() 355 free_irq(ts->ucb->irq_base + UCB_IRQ_TSPX, ts); in ucb1x00_ts_close() 394 ts->x_res = ucb1x00_ts_read_xres(ts); in ucb1x00_ts_add() 395 ts->y_res = ucb1x00_ts_read_yres(ts); in ucb1x00_ts_add() 412 kfree(ts); in ucb1x00_ts_add() [all …]
|
| /drivers/gpio/ |
| A D | gpio-max730x.c | 66 mutex_lock(&ts->lock); in max7301_direction_input() 71 ret = ts->write(ts->dev, 0x08 + (offset >> 2), *config); in max7301_direction_input() 82 return ts->write(ts->dev, 0x20 + offset, 0x01); in __max7301_set() 85 return ts->write(ts->dev, 0x20 + offset, 0x00); in __max7301_set() 103 mutex_lock(&ts->lock); in max7301_direction_output() 111 ret = ts->write(ts->dev, 0x08 + (offset >> 2), *config); in max7301_direction_output() 126 mutex_lock(&ts->lock); in max7301_get() 139 level = ts->read(ts->dev, 0x20 + offset) & 0x01; in max7301_get() 171 ret = devm_mutex_init(ts->dev, &ts->lock); in __max730x_probe() 184 ts->chip.base = -1; in __max730x_probe() [all …]
|
| /drivers/iio/common/inv_sensors/ |
| A D | inv_sensors_timestamp.c | 44 memset(ts, 0, sizeof(*ts)); in inv_sensors_timestamp_init() 86 period_min = ts->min_period * ts->mult; in inv_validate_period() 87 period_max = ts->max_period * ts->mult; in inv_validate_period() 105 ts->period = ts->mult * ts->chip_period.val; in inv_update_chip_period() 112 const int64_t period_min = (int64_t)ts->min_period * ts->mult; in inv_align_timestamp_it() 113 const int64_t period_max = (int64_t)ts->max_period * ts->mult; in inv_align_timestamp_it() 119 delta = ts->it.lo - ts->timestamp; in inv_align_timestamp_it() 147 it = &ts->it; in inv_sensors_timestamp_interrupt() 182 ts->mult = ts->new_mult; in inv_sensors_timestamp_apply_odr() 184 ts->period = ts->mult * ts->chip_period.val; in inv_sensors_timestamp_apply_odr() [all …]
|
| /drivers/hid/ |
| A D | hid-goodix-spi.c | 310 ts->event_buf = devm_krealloc(ts->dev, ts->event_buf, in goodix_hid_start() 312 if (!ts->event_buf) in goodix_hid_start() 587 event = goodix_get_event_report(ts, ts->hid_report_addr, ts->event_buf, in goodix_hid_irq() 640 error = goodix_spi_read(ts, GOODIX_HID_DESC_ADDR, &ts->hid_desc, in goodix_hid_init() 669 ts->hid = hid; in goodix_hid_init() 686 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in goodix_spi_probe() 687 if (!ts) in goodix_spi_probe() 692 ts->spi = spi; in goodix_spi_probe() 693 ts->dev = dev; in goodix_spi_probe() 696 ts->event_buf = devm_kmalloc(dev, ts->hid_max_event_sz, GFP_KERNEL); in goodix_spi_probe() [all …]
|
| /drivers/thermal/tegra/ |
| A D | tegra30-tsensor.c | 164 const struct tegra_tsensor *ts = tsc->ts; in tegra_tsensor_get_temp() local 202 c4 = ts->calib.n; in tegra_tsensor_get_temp() 213 c1 = DIV_ROUND_CLOSEST(ts->calib.p - temp * 1000, ts->calib.m); in tegra_tsensor_temp_to_counter() 214 c2 = -ts->calib.r - int_sqrt(ts->calib.r * ts->calib.r - c1); in tegra_tsensor_temp_to_counter() 222 const struct tegra_tsensor *ts = tsc->ts; in tegra_tsensor_set_trips() local 484 ts->calib.b = t1_25C * 1000000 - ts->calib.a * c1_25C; in tegra_tsensor_nvmem_setup() 497 ts->calib.r = DIV_ROUND_CLOSEST(ts->calib.n, ts->calib.m * 2); in tegra_tsensor_nvmem_setup() 513 tsc->ts = ts; in tegra_tsensor_register_channel() 542 ts = devm_kzalloc(&pdev->dev, sizeof(*ts), GFP_KERNEL); in tegra_tsensor_probe() 543 if (!ts) in tegra_tsensor_probe() [all …]
|