Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 1190) sorted by relevance

12345678910>>...48

/openbmc/linux/drivers/input/touchscreen/
H A Dgoodix.c518 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 …]
H A Dmxs-lradc-ts.c394 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 …]
H A Dcyttsp_core.c85 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data()
103 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data()
130 memset(&ts->bl_data, 0, sizeof(ts->bl_data)); in cyttsp_load_bl_regs()
134 sizeof(ts->bl_data), &ts->bl_data); in cyttsp_load_bl_regs()
175 sizeof(ts->xy_data), &ts->xy_data); in cyttsp_set_operational_mode()
190 memset(&ts->sysinfo_data, 0, sizeof(ts->sysinfo_data)); in cyttsp_set_sysinfo_mode()
208 if (!ts->sysinfo_data.tts_verh && !ts->sysinfo_data.tts_verl) in cyttsp_set_sysinfo_mode()
225 ts->lp_intrvl in cyttsp_set_sysinfo_regs()
469 sizeof(ts->xy_data), &ts->xy_data); in cyttsp_enable()
634 if (!ts) in cyttsp_probe()
[all …]
H A Dad7879.c240 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()
475 ts->gc.parent = ts->dev; in ad7879_gpio_add()
477 ret = devm_gpiochip_add_data(ts->dev, &ts->gc, ts); in ad7879_gpio_add()
530 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in ad7879_probe()
[all …]
H A Dtsc200x-core.c165 ts->in_x == tsdata.x && ts->in_y == tsdata.y && in tsc200x_irq_thread()
166 ts->in_z1 == tsdata.z1 && ts->in_z2 == tsdata.z2) { in tsc200x_irq_thread()
200 struct tsc200x *ts = from_timer(ts, t, penup_timer); in tsc200x_penup_timer() local
213 ts->tsc200x_cmd(ts->dev, TSC200X_CMD_NORMAL); in tsc200x_start_scan()
218 ts->tsc200x_cmd(ts->dev, TSC200X_CMD_STOP); in tsc200x_stop_scan()
248 if (ts->esd_timeout && ts->reset_gpio) { in __tsc200x_enable()
464 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in tsc200x_probe()
465 if (!ts) in tsc200x_probe()
506 snprintf(ts->phys, sizeof(ts->phys), in tsc200x_probe()
597 if (!ts->suspended && ts->opened) in tsc200x_suspend()
[all …]
H A Dmelfas_mip4.c287 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 …]
H A Dhideep.c696 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()
1039 ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL); in hideep_probe()
[all …]
H A Dsun4i-ts.c155 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 …]
H A Dads7846.c241 if (!ts->disabled && !ts->suspended) { in ads7846_stop()
253 if (!ts->disabled && !ts->suspended) { in ads7846_restart()
255 if (ts->pendown && !get_pendown_state(ts)) in ads7846_restart()
648 if (!ts->read_cnt || (abs(ts->last_read - *val) > ts->debounce_tol)) { in ads7846_debounce_filter()
655 if (ts->read_cnt < ts->debounce_max) { in ads7846_debounce_filter()
670 if (++ts->read_rep > ts->debounce_rep) { in ads7846_debounce_filter()
929 wait_event_timeout(ts->wait, ts->stopped, in ads7846_irq()
933 if (ts->pendown && !ts->stopped) in ads7846_irq()
1033 if (ts->debounce_max && ts->debounce_rep) in ads7846_setup_spi_msg()
1251 ts->filter_data = ts; in ads7846_probe()
[all …]
H A Dtsc2007_core.c108 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 …]
H A Dipaq-micro-ts.c37 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 …]
H A Dzforce_ts.c494 if (ts->suspended) { in zforce_irq_thread()
564 ts->version_major, ts->version_minor, in zforce_irq_thread()
565 ts->version_build, ts->version_rev); in zforce_irq_thread()
647 ts->suspended = true; in zforce_suspend()
749 if (!ts) in zforce_probe()
761 if (ts->gpio_rst) { in zforce_probe()
826 snprintf(ts->phys, sizeof(ts->phys), in zforce_probe()
838 ts->pdata = pdata; in zforce_probe()
839 ts->client = client; in zforce_probe()
866 input_set_drvdata(ts->input, ts); in zforce_probe()
[all …]
H A Dcyttsp5.c328 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()
865 ts->input->phys = ts->phys; in cyttsp5_probe()
866 input_set_drvdata(ts->input, ts); in cyttsp5_probe()
[all …]
H A Dilitek_ts_i2c.c198 ts->screen_min_x, x, ts->screen_max_x, in ilitek_process_and_report_v6()
199 ts->screen_min_y, y, ts->screen_max_y); in ilitek_process_and_report_v6()
259 memset(ts->product_id, 0, sizeof(ts->product_id)); in api_protocol_get_mcu_ver()
517 ts->firmware_ver[0], ts->firmware_ver[1], in firmware_version_show()
518 ts->firmware_ver[2], ts->firmware_ver[3], in firmware_version_show()
519 ts->firmware_ver[4], ts->firmware_ver[5], in firmware_version_show()
520 ts->firmware_ver[6], ts->firmware_ver[7]); in firmware_version_show()
531 ts->mcu_ver, ts->product_id); in product_id_show()
556 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in ilitek_ts_i2c_probe()
557 if (!ts) in ilitek_ts_i2c_probe()
[all …]
H A Dimagis.c117 touchscreen_report_pos(ts->input_dev, &ts->prop, in imagis_interrupt()
136 regulator_bulk_disable(ARRAY_SIZE(ts->supplies), ts->supplies); in imagis_power_off()
143 error = regulator_bulk_enable(ARRAY_SIZE(ts->supplies), ts->supplies); in imagis_power_on()
169 imagis_power_off(ts); in imagis_stop()
178 return imagis_start(ts); in imagis_input_open()
185 imagis_stop(ts); in imagis_input_close()
212 if (!ts->prop.max_x || !ts->prop.max_y) { in imagis_init_input_dev()
251 struct imagis_ts *ts; in imagis_probe() local
254 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in imagis_probe()
255 if (!ts) in imagis_probe()
[all …]
H A Dhimax_hx83112b.c128 dev_err(&ts->client->dev, in himax_check_product_id()
138 ts->input_dev = devm_input_allocate_device(&ts->client->dev); in himax_input_register()
139 if (!ts->input_dev) { in himax_input_register()
151 touchscreen_parse_properties(ts->input_dev, true, &ts->props); in himax_input_register()
156 dev_err(&ts->client->dev, in himax_input_register()
193 touchscreen_report_pos(ts->input_dev, &ts->props, x, y, true); in himax_process_event_point()
279 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in himax_probe()
280 if (!ts) in himax_probe()
284 ts->client = client; in himax_probe()
300 himax_reset(ts); in himax_probe()
[all …]
H A Dgoodix_fwupload.c266 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 …]
H A Dzet6223.c41 enable_irq(ts->client->irq); in zet6223_start()
93 input_sync(ts->input); in zet6223_irq()
102 regulator_bulk_disable(ARRAY_SIZE(ts->supplies), ts->supplies); in zet6223_power_off()
114 ts->supplies); in zet6223_power_on()
118 error = regulator_bulk_enable(ARRAY_SIZE(ts->supplies), ts->supplies); in zet6223_power_on()
143 dev_err(&ts->client->dev, in zet6223_query_device()
151 dev_err(&ts->client->dev, in zet6223_query_device()
173 struct zet6223_ts *ts; in zet6223_probe() local
182 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in zet6223_probe()
183 if (!ts) in zet6223_probe()
[all …]
H A Dcy8ctma140.c87 touchscreen_report_pos(ts->input, &ts->props, x, y, true); in cy8ctma140_report()
92 input_sync(ts->input); in cy8ctma140_report()
97 struct cy8ctma140 *ts = d; in cy8ctma140_irq_thread() local
176 ts->regulators); in cy8ctma140_power_up()
190 ts->regulators); in cy8ctma140_power_down()
203 struct cy8ctma140 *ts; in cy8ctma140_probe() local
208 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in cy8ctma140_probe()
209 if (!ts) in cy8ctma140_probe()
216 ts->dev = dev; in cy8ctma140_probe()
217 ts->client = client; in cy8ctma140_probe()
[all …]
/openbmc/linux/drivers/mfd/
H A Ducb1x00-ts.c174 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 …]
/openbmc/linux/kernel/time/
H A Dtick-sched.c227 if (ts->inidle) in tick_sched_do_timer()
674 ts->idle_sleeptime = ktime_add(ts->idle_sleeptime, delta); in tick_nohz_stop_idle()
743 return get_cpu_sleep_time_us(ts, &ts->idle_sleeptime, in get_cpu_idle_time_us()
769 return get_cpu_sleep_time_us(ts, &ts->iowait_sleeptime, in get_cpu_iowait_time_us()
777 hrtimer_set_expires(&ts->sched_timer, ts->last_tick); in tick_nohz_restart()
910 if (ts->tick_stopped && (expires == ts->next_tick)) { in tick_nohz_stop_tick()
932 ts->last_tick = hrtimer_get_expires(&ts->sched_timer); in tick_nohz_stop_tick()
1013 if (!ts->tick_stopped && ts->nohz_mode == NOHZ_MODE_INACTIVE) in tick_nohz_full_update_tick()
1136 ts->idle_jiffies = ts->last_jiffies; in tick_nohz_idle_stop_tick()
1437 if (!ts->idle_active && !ts->tick_stopped) in tick_nohz_irq_enter()
[all …]
/openbmc/linux/tools/perf/util/
H A Dthread-stack.c243 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 …]
/openbmc/linux/drivers/gpio/
H A Dgpio-max730x.c66 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 …]
/openbmc/linux/drivers/iio/common/inv_sensors/
H A Dinv_sensors_timestamp.c44 memset(ts, 0, sizeof(*ts)); in inv_sensors_timestamp_init()
47 ts->chip = *chip; in inv_sensors_timestamp_init()
67 ts->new_mult = period / ts->chip.clock_period; in inv_sensors_timestamp_update_odr()
97 ts->period = ts->mult * ts->chip_period.val; in inv_update_chip_period()
108 delta = ts->it.lo - ts->timestamp; in inv_align_timestamp_it()
111 jitter = INV_SENSORS_TIMESTAMP_JITTER((int64_t)ts->period, ts->chip.jitter); in inv_align_timestamp_it()
136 it = &ts->it; in inv_sensors_timestamp_interrupt()
171 ts->mult = ts->new_mult; in inv_sensors_timestamp_apply_odr()
172 ts->new_mult = 0; in inv_sensors_timestamp_apply_odr()
173 ts->period = ts->mult * ts->chip_period.val; in inv_sensors_timestamp_apply_odr()
[all …]
/openbmc/linux/drivers/thermal/tegra/
H A Dtegra30-tsensor.c164 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
479 ts->calib.b = t1_25C * 1000000 - ts->calib.a * c1_25C; in tegra_tsensor_nvmem_setup()
492 ts->calib.r = DIV_ROUND_CLOSEST(ts->calib.n, ts->calib.m * 2); in tegra_tsensor_nvmem_setup()
508 tsc->ts = ts; in tegra_tsensor_register_channel()
537 ts = devm_kzalloc(&pdev->dev, sizeof(*ts), GFP_KERNEL); in tegra_tsensor_probe()
538 if (!ts) in tegra_tsensor_probe()
[all …]

12345678910>>...48