| /linux/drivers/input/touchscreen/ |
| A D | goodix.c | 518 devm_free_irq(&ts->client->dev, ts->client->irq, ts); in goodix_free_irq() 525 ts->irq_flags, ts->client->name, ts); in goodix_request_irq() 836 ts->gpio_int_idx = ts->gpio_count; in goodix_resource() 925 ts->gpio_count, ts->gpio_int_idx); in goodix_add_acpi_gpio_mappings() 1013 if (!ts->gpiod_int || !ts->gpiod_rst) in goodix_get_gpio_config() 1021 if (ts->gpiod_int && ts->gpiod_rst) { in goodix_get_gpio_config() 1068 ts->chip->calc_config_checksum(ts); in goodix_read_config() 1152 ts->input_dev->keycode = ts->keymap; in goodix_configure_dev() 1178 if (!ts->prop.max_x || !ts->prop.max_y || !ts->max_touch_num) { in goodix_configure_dev() 1191 ts->prop.max_x, ts->prop.max_y, ts->max_touch_num); 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 | 240 struct ad7879 *ts = from_timer(ts, t, timer); in ad7879_timer() local 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() 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() 481 ts->gc.parent = ts->dev; in ad7879_gpio_add() 483 ret = devm_gpiochip_add_data(ts->dev, &ts->gc, ts); in ad7879_gpio_add() 536 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 | 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() 197 struct tsc200x *ts = from_timer(ts, t, penup_timer); in tsc200x_penup_timer() local 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() 642 if (!ts->read_cnt || (abs(ts->last_read - *val) > ts->debounce_tol)) { in ads7846_debounce_filter() 649 if (ts->read_cnt < ts->debounce_max) { in ads7846_debounce_filter() 664 if (++ts->read_rep > ts->debounce_rep) { in ads7846_debounce_filter() 945 wait_event_timeout(ts->wait, ts->stopped, in ads7846_irq() 949 if (ts->pendown && !ts->stopped) in ads7846_irq() 1049 if (ts->debounce_max && ts->debounce_rep) in ads7846_setup_spi_msg() 1277 ts->filter_data = ts; in ads7846_probe() [all …]
|
| A D | imagis.c | 146 touchscreen_report_pos(ts->input_dev, &ts->prop, in imagis_interrupt() 157 input_report_key(ts->input_dev, ts->keycodes[i], in imagis_interrupt() 171 regulator_bulk_disable(ARRAY_SIZE(ts->supplies), ts->supplies); in imagis_power_off() 220 imagis_stop(ts); in imagis_input_close() 248 ts->keycodes, 0, ARRAY_SIZE(ts->keycodes)); in imagis_init_input_dev() 264 if (!ts->prop.max_x || !ts->prop.max_y) { in imagis_init_input_dev() 306 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in imagis_probe() 307 if (!ts) in imagis_probe() 310 ts->client = i2c; in imagis_probe() 313 if (!ts->tdata) { in imagis_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 | 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 | 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() 160 wait_event_timeout(ts->wait, ts->stopped, ts->poll_period); in tsc2007_soft_irq() 177 ts->stopped = true; in tsc2007_stop() 197 tsc2007_stop(ts); in tsc2007_open() 208 tsc2007_stop(ts); in tsc2007_close() 254 if (ts->gpiod) in tsc2007_probe_properties() 306 if (!ts) in tsc2007_probe() 329 snprintf(ts->phys, sizeof(ts->phys), in tsc2007_probe() 371 ts->irq, err); in tsc2007_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 | 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 | 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 | 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 | 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 …]
|
| /linux/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 …]
|
| /linux/kernel/time/ |
| A D | tick-sched.c | 194 ts->flags |= flag; in tick_sched_flag_set() 201 ts->flags &= ~flag; in tick_sched_flag_clear() 273 ts->next_tick = 0; in tick_sched_handle() 742 ts->iowait_sleeptime = ktime_add(ts->iowait_sleeptime, delta); in tick_nohz_stop_idle() 744 ts->idle_sleeptime = ktime_add(ts->idle_sleeptime, delta); in tick_nohz_stop_idle() 813 return get_cpu_sleep_time_us(ts, &ts->idle_sleeptime, in get_cpu_idle_time_us() 839 return get_cpu_sleep_time_us(ts, &ts->iowait_sleeptime, in get_cpu_iowait_time_us() 847 hrtimer_set_expires(&ts->sched_timer, ts->last_tick); in tick_nohz_restart() 1052 ts->last_tick = hrtimer_get_expires(&ts->sched_timer); in tick_nohz_stop_tick() 1238 ts->idle_jiffies = ts->last_jiffies; in tick_nohz_idle_stop_tick() [all …]
|
| /linux/tools/perf/util/ |
| A D | thread-stack.c | 243 if (ts->cnt == ts->sz) { in thread_stack__push() 389 ts->br_stack_pos = ts->br_stack_sz; in thread_stack__update_br_stack() 499 memset(ts, 0, sizeof(*ts)); in thread_stack__reset() 546 ip = ts->stack[ts->cnt - j].ret_addr; in thread_stack__sample() 792 if (ts->cnt == ts->sz) { in thread_stack__push_cp() 798 tse = &ts->stack[ts->cnt++]; in thread_stack__push_cp() 940 parent = ts->stack[ts->cnt - 1].cp; in thread_stack__no_call_return() 1008 tse = &ts->stack[ts->cnt - 1]; in thread_stack__trace_begin() 1027 if (!ts->cnt || (ts->cnt == 1 && ts->stack[0].ref == ref)) in thread_stack__trace_end() 1096 ts->stack[ts->cnt - 1].cp = cp; in thread_stack__x86_retpoline() [all …]
|
| /linux/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() 153 mutex_lock(&ts->lock); in max7301_set() 178 ts->chip.base = -1; in __max730x_probe() [all …]
|
| /linux/drivers/iio/common/inv_sensors/ |
| A D | inv_sensors_timestamp.c | 44 memset(ts, 0, sizeof(*ts)); in inv_sensors_timestamp_init() 82 period_min = ts->min_period * ts->mult; in inv_validate_period() 83 period_max = ts->max_period * ts->mult; in inv_validate_period() 101 ts->period = ts->mult * ts->chip_period.val; in inv_update_chip_period() 108 const int64_t period_min = ts->min_period * ts->mult; in inv_align_timestamp_it() 109 const int64_t period_max = ts->max_period * ts->mult; in inv_align_timestamp_it() 115 delta = ts->it.lo - ts->timestamp; in inv_align_timestamp_it() 143 it = &ts->it; in inv_sensors_timestamp_interrupt() 178 ts->mult = ts->new_mult; in inv_sensors_timestamp_apply_odr() 180 ts->period = ts->mult * ts->chip_period.val; in inv_sensors_timestamp_apply_odr() [all …]
|
| /linux/drivers/hid/ |
| A D | hid-goodix-spi.c | 308 ts->event_buf = devm_krealloc(ts->dev, ts->event_buf, in goodix_hid_start() 351 error = goodix_spi_read(ts, ts->hid_report_addr, in goodix_hid_check_ack_status() 451 error = goodix_spi_read(ts, ts->hid_report_addr + in goodix_hid_get_raw_report() 582 event = goodix_get_event_report(ts, ts->hid_report_addr, ts->event_buf, in goodix_hid_irq() 635 error = goodix_spi_read(ts, GOODIX_HID_DESC_ADDR, &ts->hid_desc, in goodix_hid_init() 664 ts->hid = hid; in goodix_hid_init() 681 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in goodix_spi_probe() 682 if (!ts) in goodix_spi_probe() 687 ts->spi = spi; in goodix_spi_probe() 688 ts->dev = dev; in goodix_spi_probe() [all …]
|
| /linux/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 …]
|