Home
last modified time | relevance | path

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

12345678910>>...33

/linux/drivers/input/touchscreen/
A Dgoodix.c399 devm_free_irq(&ts->client->dev, ts->client->irq, ts); in goodix_free_irq()
406 ts->irq_flags, ts->client->name, ts); in goodix_request_irq()
735 ts->gpio_int_idx = ts->gpio_count; in goodix_resource()
793 ts->gpio_count, ts->gpio_int_idx); in goodix_add_acpi_gpio_mappings()
894 if (!ts->gpiod_int || !ts->gpiod_rst) in goodix_get_gpio_config()
902 if (ts->gpiod_int && ts->gpiod_rst) { in goodix_get_gpio_config()
949 ts->chip->calc_config_checksum(ts); in goodix_read_config()
1033 ts->input_dev->keycode = ts->keymap; in goodix_configure_dev()
1058 if (!ts->prop.max_x || !ts->prop.max_y || !ts->max_touch_num) { in goodix_configure_dev()
1061 ts->prop.max_x, ts->prop.max_y, ts->max_touch_num); in goodix_configure_dev()
[all …]
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()
635 if (!ts) in cyttsp_probe()
[all …]
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 …]
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 …]
A Dtsc200x-core.c164 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()
199 struct tsc200x *ts = from_timer(ts, t, penup_timer); in tsc200x_penup_timer() local
212 ts->tsc200x_cmd(ts->dev, TSC200X_CMD_NORMAL); in tsc200x_start_scan()
217 ts->tsc200x_cmd(ts->dev, TSC200X_CMD_STOP); in tsc200x_stop_scan()
247 if (ts->esd_timeout && ts->reset_gpio) { in __tsc200x_enable()
463 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in tsc200x_probe()
464 if (!ts) in tsc200x_probe()
505 snprintf(ts->phys, sizeof(ts->phys), in tsc200x_probe()
596 if (!ts->suspended && ts->opened) in tsc200x_suspend()
[all …]
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 …]
A Ds3c2410_ts.c136 if (ts.count == (1 << ts.shift)) { in touch_timer_fire()
137 ts.xp >>= ts.shift; in touch_timer_fire()
138 ts.yp >>= ts.shift; in touch_timer_fire()
141 __func__, ts.xp, ts.yp, ts.count); in touch_timer_fire()
143 input_report_abs(ts.input, ABS_X, ts.xp); in touch_timer_fire()
144 input_report_abs(ts.input, ABS_Y, ts.yp); in touch_timer_fire()
154 s3c_adc_start(ts.client, 0, 1 << ts.shift); in touch_timer_fire()
156 ts.xp = 0; in touch_timer_fire()
192 s3c_adc_start(ts.client, 0, 1 << ts.shift); in stylus_irq()
373 free_irq(ts.irq_tc, ts.input); in s3c2410ts_probe()
[all …]
A Dhideep.c690 if (ts->reset_gpio) in hideep_power_off()
781 ts->prop.max_x, ts->prop.max_y); in hideep_get_axis_info()
800 input_set_drvdata(ts->input_dev, ts); in hideep_init_input()
808 touchscreen_parse_properties(ts->input_dev, true, &ts->prop); in hideep_init_input()
810 if (ts->prop.max_x == 0 || ts->prop.max_y == 0) { in hideep_init_input()
824 ts->key_num); in hideep_init_input()
841 ts->input_dev->keycode = ts->key_codes; in hideep_init_input()
842 ts->input_dev->keycodesize = sizeof(ts->key_codes[0]); in hideep_init_input()
843 ts->input_dev->keycodemax = ts->key_num; in hideep_init_input()
1017 ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL); in hideep_probe()
[all …]
A Dads7846.c243 if (!ts->disabled && !ts->suspended) { in ads7846_stop()
255 if (!ts->disabled && !ts->suspended) { in ads7846_restart()
257 if (ts->pendown && !get_pendown_state(ts)) in ads7846_restart()
650 if (!ts->read_cnt || (abs(ts->last_read - *val) > ts->debounce_tol)) { in ads7846_debounce_filter()
657 if (ts->read_cnt < ts->debounce_max) { in ads7846_debounce_filter()
672 if (++ts->read_rep > ts->debounce_rep) { in ads7846_debounce_filter()
937 wait_event_timeout(ts->wait, ts->stopped, in ads7846_irq()
941 if (ts->pendown && !ts->stopped) in ads7846_irq()
1053 if (ts->debounce_max && ts->debounce_rep) in ads7846_setup_spi_msg()
1286 ts->filter_data = ts; in ads7846_probe()
[all …]
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()
190 ts->stopped = true; in tsc2007_stop()
210 tsc2007_stop(ts); in tsc2007_open()
221 tsc2007_stop(ts); in tsc2007_close()
267 if (ts->gpiod) in tsc2007_probe_properties()
319 if (!ts) in tsc2007_probe()
342 snprintf(ts->phys, sizeof(ts->phys), in tsc2007_probe()
384 ts->irq, err); in tsc2007_probe()
[all …]
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_zone_of_sensor_register(ts->dev, 0, ts, in sun4i_ts_probe()
[all …]
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()
750 if (!ts) in zforce_probe()
762 if (ts->gpio_rst) { in zforce_probe()
827 snprintf(ts->phys, sizeof(ts->phys), in zforce_probe()
839 ts->pdata = pdata; in zforce_probe()
840 ts->client = client; in zforce_probe()
867 input_set_drvdata(ts->input, ts); in zforce_probe()
[all …]
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()
557 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in ilitek_ts_i2c_probe()
558 if (!ts) in ilitek_ts_i2c_probe()
[all …]
A Dad7877.c378 struct ad7877 *ts = from_timer(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()
642 m = &ts->msg; in ad7877_setup_ts_def_msg()
646 m->context = ts; in ad7877_setup_ts_def_msg()
648 ts->xfer[0].tx_buf = &ts->cmd_crtl1; in ad7877_setup_ts_def_msg()
654 ts->xfer[1].tx_buf = &ts->cmd_dummy; /* Send ZERO */ in ad7877_setup_ts_def_msg()
701 if (!ts) in ad7877_probe()
[all …]
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 …]
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 …]
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()
174 struct zet6223_ts *ts; in zet6223_probe() local
183 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in zet6223_probe()
184 if (!ts) in zet6223_probe()
[all …]
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()
204 struct cy8ctma140 *ts; in cy8ctma140_probe() local
209 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); in cy8ctma140_probe()
210 if (!ts) in cy8ctma140_probe()
217 ts->dev = dev; in cy8ctma140_probe()
218 ts->client = client; in cy8ctma140_probe()
[all …]
A Delants_i2c.c332 (int)sizeof(ts->cmd_resp), ts->cmd_resp); in elants_i2c_calibrate()
406 if (ts->fw_version != 0x0000 && ts->fw_version != 0xffff) in elants_i2c_query_fw_version()
578 ts->x_res = DIV_ROUND_CLOSEST(ts->x_max, phy_x); in elants_i2c_query_ts_info_ekth()
580 ts->y_res = DIV_ROUND_CLOSEST(ts->y_max, phy_y); in elants_i2c_query_ts_info_ekth()
1087 memcpy(ts->cmd_resp, ts->buf, sizeof(ts->cmd_resp)); in elants_i2c_irq()
1119 elants_i2c_event(ts, &ts->buf[HEADER_SIZE], in elants_i2c_irq()
1435 if (!ts) in elants_i2c_probe()
1525 touchscreen_parse_properties(ts->input, true, &ts->prop); in elants_i2c_probe()
1527 if (ts->chip_id == EKTF3624 && ts->phy_x && ts->phy_y) { in elants_i2c_probe()
1529 ts->x_res = DIV_ROUND_CLOSEST(ts->prop.max_x, ts->phy_x); in elants_i2c_probe()
[all …]
/linux/drivers/mfd/
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 …]
/linux/tools/perf/util/
A Dthread-stack.c210 struct thread_stack *ts = thread->ts; in thread__cpu_stack() local
243 if (ts->cnt == ts->sz) { in thread_stack__push()
366 struct thread_stack *ts = thread->ts; in thread_stack__flush() local
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()
791 if (ts->cnt == ts->sz) { in thread_stack__push_cp()
797 tse = &ts->stack[ts->cnt++]; in thread_stack__push_cp()
1007 tse = &ts->stack[ts->cnt - 1]; in thread_stack__trace_begin()
1026 if (!ts->cnt || (ts->cnt == 1 && ts->stack[0].ref == ref)) in thread_stack__trace_end()
1097 ts->stack[ts->cnt - 1].cp = cp; in thread_stack__x86_retpoline()
[all …]
/linux/kernel/time/
A Dtick-sched.c199 if (ts->inidle) in tick_sched_do_timer()
637 ts->idle_sleeptime = ktime_add(ts->idle_sleeptime, delta); in update_ts_time_stats()
745 hrtimer_set_expires(&ts->sched_timer, ts->last_tick); in tick_nohz_restart()
880 if (ts->tick_stopped && (expires == ts->next_tick)) { in tick_nohz_stop_tick()
902 ts->last_tick = hrtimer_get_expires(&ts->sched_timer); in tick_nohz_stop_tick()
981 if (!ts->tick_stopped && ts->nohz_mode == NOHZ_MODE_INACTIVE) in tick_nohz_full_update_tick()
1068 ts->idle_jiffies = ts->last_jiffies; in __tick_nohz_idle_stop_tick()
1113 ts->inidle = 1; in tick_nohz_idle_enter()
1131 if (ts->inidle) in tick_nohz_irq_exit()
1373 if (!ts->idle_active && !ts->tick_stopped) in tick_nohz_irq_enter()
[all …]
/linux/drivers/gpio/
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 …]
/linux/drivers/thermal/tegra/
A Dtegra30-tsensor.c165 const struct tegra_tsensor *ts = tsc->ts; in tegra_tsensor_get_temp() local
203 c4 = ts->calib.n; in tegra_tsensor_get_temp()
214 c1 = DIV_ROUND_CLOSEST(ts->calib.p - temp * 1000, ts->calib.m); in tegra_tsensor_temp_to_counter()
215 c2 = -ts->calib.r - int_sqrt(ts->calib.r * ts->calib.r - c1); in tegra_tsensor_temp_to_counter()
223 const struct tegra_tsensor *ts = tsc->ts; in tegra_tsensor_set_trips() local
486 ts->calib.b = t1_25C * 1000000 - ts->calib.a * c1_25C; in tegra_tsensor_nvmem_setup()
499 ts->calib.r = DIV_ROUND_CLOSEST(ts->calib.n, ts->calib.m * 2); in tegra_tsensor_nvmem_setup()
515 tsc->ts = ts; in tegra_tsensor_register_channel()
545 ts = devm_kzalloc(&pdev->dev, sizeof(*ts), GFP_KERNEL); in tegra_tsensor_probe()
546 if (!ts) in tegra_tsensor_probe()
[all …]
/linux/drivers/net/wireless/quantenna/qtnfmac/pcie/
A Dtopaz_pcie.c287 ts->rx_bd_vbase[ts->base.rx_bd_num - 1].info |= in topaz_alloc_rx_buffers()
583 disable_rx_irqs(ts); in qtnf_pcie_topaz_interrupt()
713 enable_rx_irqs(ts); in qtnf_topaz_rx_poll()
733 enable_rx_irqs(ts); in qtnf_pcie_data_rx_start()
740 disable_rx_irqs(ts); in qtnf_pcie_data_rx_stop()
863 writeb(ts->base.msi_enabled, &ts->bda->bda_rc_msi_enabled); in qtnf_pre_init_ep()
890 setup_rx_irqs(ts); in qtnf_post_init_ep()
891 disable_rx_irqs(ts); in qtnf_post_init_ep()
1131 ts->bda = ts->base.epmem_bar; in qtnf_pcie_topaz_probe()
1166 ipc_int.arg = ts; in qtnf_pcie_topaz_probe()
[all …]

Completed in 84 milliseconds

12345678910>>...33